go-core 0.1.44 → 0.1.46-beta0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/code.es5.js +8 -8
- package/dist/code.umd.js +8 -8
- package/package.json +2 -1
package/dist/code.es5.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import t from"lodash";import e from"axios";var n="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function r(){throw new Error("Dynamic requires are not currently supported by rollup-plugin-commonjs")}function i(t,e){return t(e={exports:{}},e.exports),e.exports}var a=i((function(t,e){t.exports=function(){var e,n;function i(){return e.apply(null,arguments)}function a(t){e=t}function o(t){return t instanceof Array||"[object Array]"===Object.prototype.toString.call(t)}function s(t){return null!=t&&"[object Object]"===Object.prototype.toString.call(t)}function u(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function l(t){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(t).length;var e;for(e in t)if(u(t,e))return!1;return!0}function c(t){return void 0===t}function h(t){return"number"==typeof t||"[object Number]"===Object.prototype.toString.call(t)}function f(t){return t instanceof Date||"[object Date]"===Object.prototype.toString.call(t)}function d(t,e){var n,r=[],i=t.length;for(n=0;n<i;++n)r.push(e(t[n],n));return r}function p(t,e){for(var n in e)u(e,n)&&(t[n]=e[n]);return u(e,"toString")&&(t.toString=e.toString),u(e,"valueOf")&&(t.valueOf=e.valueOf),t}function g(t,e,n,r){return Zn(t,e,n,r,!0).utc()}function v(){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 m(t){return null==t._pf&&(t._pf=v()),t._pf}function y(t){if(null==t._isValid){var e=m(t),r=n.call(e.parsedDateParts,(function(t){return null!=t})),i=!isNaN(t._d.getTime())&&e.overflow<0&&!e.empty&&!e.invalidEra&&!e.invalidMonth&&!e.invalidWeekday&&!e.weekdayMismatch&&!e.nullInput&&!e.invalidFormat&&!e.userInvalidated&&(!e.meridiem||e.meridiem&&r);if(t._strict&&(i=i&&0===e.charsLeftOver&&0===e.unusedTokens.length&&void 0===e.bigHour),null!=Object.isFrozen&&Object.isFrozen(t))return i;t._isValid=i}return t._isValid}function _(t){var e=g(NaN);return null!=t?p(m(e),t):m(e).userInvalidated=!0,e}n=Array.prototype.some?Array.prototype.some:function(t){var e,n=Object(this),r=n.length>>>0;for(e=0;e<r;e++)if(e in n&&t.call(this,n[e],e,n))return!0;return!1};var b=i.momentProperties=[],w=!1;function D(t,e){var n,r,i,a=b.length;if(c(e._isAMomentObject)||(t._isAMomentObject=e._isAMomentObject),c(e._i)||(t._i=e._i),c(e._f)||(t._f=e._f),c(e._l)||(t._l=e._l),c(e._strict)||(t._strict=e._strict),c(e._tzm)||(t._tzm=e._tzm),c(e._isUTC)||(t._isUTC=e._isUTC),c(e._offset)||(t._offset=e._offset),c(e._pf)||(t._pf=m(e)),c(e._locale)||(t._locale=e._locale),a>0)for(n=0;n<a;n++)c(i=e[r=b[n]])||(t[r]=i);return t}function S(t){D(this,t),this._d=new Date(null!=t._d?t._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===w&&(w=!0,i.updateOffset(this),w=!1)}function x(t){return t instanceof S||null!=t&&null!=t._isAMomentObject}function T(t){!1===i.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+t)}function k(t,e){var n=!0;return p((function(){if(null!=i.deprecationHandler&&i.deprecationHandler(null,t),n){var r,a,o,s=[],l=arguments.length;for(a=0;a<l;a++){if(r="","object"==typeof arguments[a]){for(o in r+="\n["+a+"] ",arguments[0])u(arguments[0],o)&&(r+=o+": "+arguments[0][o]+", ");r=r.slice(0,-2)}else r=arguments[a];s.push(r)}T(t+"\nArguments: "+Array.prototype.slice.call(s).join("")+"\n"+(new Error).stack),n=!1}return e.apply(this,arguments)}),e)}var C,E={};function O(t,e){null!=i.deprecationHandler&&i.deprecationHandler(t,e),E[t]||(T(e),E[t]=!0)}function M(t){return"undefined"!=typeof Function&&t instanceof Function||"[object Function]"===Object.prototype.toString.call(t)}function A(t){var e,n;for(n in t)u(t,n)&&(M(e=t[n])?this[n]=e:this["_"+n]=e);this._config=t,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function P(t,e){var n,r=p({},t);for(n in e)u(e,n)&&(s(t[n])&&s(e[n])?(r[n]={},p(r[n],t[n]),p(r[n],e[n])):null!=e[n]?r[n]=e[n]:delete r[n]);for(n in t)u(t,n)&&!u(e,n)&&s(t[n])&&(r[n]=p({},r[n]));return r}function B(t){null!=t&&this.set(t)}i.suppressDeprecationWarnings=!1,i.deprecationHandler=null,C=Object.keys?Object.keys:function(t){var e,n=[];for(e in t)u(t,e)&&n.push(e);return n};var R={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function N(t,e,n){var r=this._calendar[t]||this._calendar.sameElse;return M(r)?r.call(e,n):r}function V(t,e,n){var r=""+Math.abs(t),i=e-r.length;return(t>=0?n?"+":"":"-")+Math.pow(10,Math.max(0,i)).toString().substr(1)+r}var I=/(\[[^\[]*\])|(\\)?([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,F=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,Y={},L={};function j(t,e,n,r){var i=r;"string"==typeof r&&(i=function(){return this[r]()}),t&&(L[t]=i),e&&(L[e[0]]=function(){return V(i.apply(this,arguments),e[1],e[2])}),n&&(L[n]=function(){return this.localeData().ordinal(i.apply(this,arguments),t)})}function H(t){return t.match(/\[[\s\S]/)?t.replace(/^\[|\]$/g,""):t.replace(/\\/g,"")}function z(t){var e,n,r=t.match(I);for(e=0,n=r.length;e<n;e++)L[r[e]]?r[e]=L[r[e]]:r[e]=H(r[e]);return function(e){var i,a="";for(i=0;i<n;i++)a+=M(r[i])?r[i].call(e,t):r[i];return a}}function U(t,e){return t.isValid()?(e=W(e,t.localeData()),Y[e]=Y[e]||z(e),Y[e](t)):t.localeData().invalidDate()}function W(t,e){var n=5;function r(t){return e.longDateFormat(t)||t}for(F.lastIndex=0;n>=0&&F.test(t);)t=t.replace(F,r),F.lastIndex=0,n-=1;return t}var q={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 G(t){var e=this._longDateFormat[t],n=this._longDateFormat[t.toUpperCase()];return e||!n?e:(this._longDateFormat[t]=n.match(I).map((function(t){return"MMMM"===t||"MM"===t||"DD"===t||"dddd"===t?t.slice(1):t})).join(""),this._longDateFormat[t])}var K="Invalid date";function Z(){return this._invalidDate}var X="%d",$=/\d{1,2}/;function J(t){return this._ordinal.replace("%d",t)}var Q={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 tt(t,e,n,r){var i=this._relativeTime[n];return M(i)?i(t,e,n,r):i.replace(/%d/i,t)}function et(t,e){var n=this._relativeTime[t>0?"future":"past"];return M(n)?n(e):n.replace(/%s/i,e)}var nt={};function rt(t,e){var n=t.toLowerCase();nt[n]=nt[n+"s"]=nt[e]=t}function it(t){return"string"==typeof t?nt[t]||nt[t.toLowerCase()]:void 0}function at(t){var e,n,r={};for(n in t)u(t,n)&&(e=it(n))&&(r[e]=t[n]);return r}var ot={};function st(t,e){ot[t]=e}function ut(t){var e,n=[];for(e in t)u(t,e)&&n.push({unit:e,priority:ot[e]});return n.sort((function(t,e){return t.priority-e.priority})),n}function lt(t){return t%4==0&&t%100!=0||t%400==0}function ct(t){return t<0?Math.ceil(t)||0:Math.floor(t)}function ht(t){var e=+t,n=0;return 0!==e&&isFinite(e)&&(n=ct(e)),n}function ft(t,e){return function(n){return null!=n?(pt(this,t,n),i.updateOffset(this,e),this):dt(this,t)}}function dt(t,e){return t.isValid()?t._d["get"+(t._isUTC?"UTC":"")+e]():NaN}function pt(t,e,n){t.isValid()&&!isNaN(n)&&("FullYear"===e&<(t.year())&&1===t.month()&&29===t.date()?(n=ht(n),t._d["set"+(t._isUTC?"UTC":"")+e](n,t.month(),te(n,t.month()))):t._d["set"+(t._isUTC?"UTC":"")+e](n))}function gt(t){return M(this[t=it(t)])?this[t]():this}function vt(t,e){if("object"==typeof t){var n,r=ut(t=at(t)),i=r.length;for(n=0;n<i;n++)this[r[n].unit](t[r[n].unit])}else if(M(this[t=it(t)]))return this[t](e);return this}var mt,yt=/\d/,_t=/\d\d/,bt=/\d{3}/,wt=/\d{4}/,Dt=/[+-]?\d{6}/,St=/\d\d?/,xt=/\d\d\d\d?/,Tt=/\d\d\d\d\d\d?/,kt=/\d{1,3}/,Ct=/\d{1,4}/,Et=/[+-]?\d{1,6}/,Ot=/\d+/,Mt=/[+-]?\d+/,At=/Z|[+-]\d\d:?\d\d/gi,Pt=/Z|[+-]\d\d(?::?\d\d)?/gi,Bt=/[+-]?\d+(\.\d{1,3})?/,Rt=/[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;function Nt(t,e,n){mt[t]=M(e)?e:function(t,r){return t&&n?n:e}}function Vt(t,e){return u(mt,t)?mt[t](e._strict,e._locale):new RegExp(It(t))}function It(t){return Ft(t.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,(function(t,e,n,r,i){return e||n||r||i})))}function Ft(t){return t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}mt={};var Yt={};function Lt(t,e){var n,r,i=e;for("string"==typeof t&&(t=[t]),h(e)&&(i=function(t,n){n[e]=ht(t)}),r=t.length,n=0;n<r;n++)Yt[t[n]]=i}function jt(t,e){Lt(t,(function(t,n,r,i){r._w=r._w||{},e(t,r._w,r,i)}))}function Ht(t,e,n){null!=e&&u(Yt,t)&&Yt[t](e,n._a,n,t)}var zt,Ut=0,Wt=1,qt=2,Gt=3,Kt=4,Zt=5,Xt=6,$t=7,Jt=8;function Qt(t,e){return(t%e+e)%e}function te(t,e){if(isNaN(t)||isNaN(e))return NaN;var n=Qt(e,12);return t+=(e-n)/12,1===n?lt(t)?29:28:31-n%7%2}zt=Array.prototype.indexOf?Array.prototype.indexOf:function(t){var e;for(e=0;e<this.length;++e)if(this[e]===t)return e;return-1},j("M",["MM",2],"Mo",(function(){return this.month()+1})),j("MMM",0,0,(function(t){return this.localeData().monthsShort(this,t)})),j("MMMM",0,0,(function(t){return this.localeData().months(this,t)})),rt("month","M"),st("month",8),Nt("M",St),Nt("MM",St,_t),Nt("MMM",(function(t,e){return e.monthsShortRegex(t)})),Nt("MMMM",(function(t,e){return e.monthsRegex(t)})),Lt(["M","MM"],(function(t,e){e[Wt]=ht(t)-1})),Lt(["MMM","MMMM"],(function(t,e,n,r){var i=n._locale.monthsParse(t,r,n._strict);null!=i?e[Wt]=i:m(n).invalidMonth=t}));var ee="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ne="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),re=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,ie=Rt,ae=Rt;function oe(t,e){return t?o(this._months)?this._months[t.month()]:this._months[(this._months.isFormat||re).test(e)?"format":"standalone"][t.month()]:o(this._months)?this._months:this._months.standalone}function se(t,e){return t?o(this._monthsShort)?this._monthsShort[t.month()]:this._monthsShort[re.test(e)?"format":"standalone"][t.month()]:o(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function ue(t,e,n){var r,i,a,o=t.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],r=0;r<12;++r)a=g([2e3,r]),this._shortMonthsParse[r]=this.monthsShort(a,"").toLocaleLowerCase(),this._longMonthsParse[r]=this.months(a,"").toLocaleLowerCase();return n?"MMM"===e?-1!==(i=zt.call(this._shortMonthsParse,o))?i:null:-1!==(i=zt.call(this._longMonthsParse,o))?i:null:"MMM"===e?-1!==(i=zt.call(this._shortMonthsParse,o))||-1!==(i=zt.call(this._longMonthsParse,o))?i:null:-1!==(i=zt.call(this._longMonthsParse,o))||-1!==(i=zt.call(this._shortMonthsParse,o))?i:null}function le(t,e,n){var r,i,a;if(this._monthsParseExact)return ue.call(this,t,e,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),r=0;r<12;r++){if(i=g([2e3,r]),n&&!this._longMonthsParse[r]&&(this._longMonthsParse[r]=new RegExp("^"+this.months(i,"").replace(".","")+"$","i"),this._shortMonthsParse[r]=new RegExp("^"+this.monthsShort(i,"").replace(".","")+"$","i")),n||this._monthsParse[r]||(a="^"+this.months(i,"")+"|^"+this.monthsShort(i,""),this._monthsParse[r]=new RegExp(a.replace(".",""),"i")),n&&"MMMM"===e&&this._longMonthsParse[r].test(t))return r;if(n&&"MMM"===e&&this._shortMonthsParse[r].test(t))return r;if(!n&&this._monthsParse[r].test(t))return r}}function ce(t,e){var n;if(!t.isValid())return t;if("string"==typeof e)if(/^\d+$/.test(e))e=ht(e);else if(!h(e=t.localeData().monthsParse(e)))return t;return n=Math.min(t.date(),te(t.year(),e)),t._d["set"+(t._isUTC?"UTC":"")+"Month"](e,n),t}function he(t){return null!=t?(ce(this,t),i.updateOffset(this,!0),this):dt(this,"Month")}function fe(){return te(this.year(),this.month())}function de(t){return this._monthsParseExact?(u(this,"_monthsRegex")||ge.call(this),t?this._monthsShortStrictRegex:this._monthsShortRegex):(u(this,"_monthsShortRegex")||(this._monthsShortRegex=ie),this._monthsShortStrictRegex&&t?this._monthsShortStrictRegex:this._monthsShortRegex)}function pe(t){return this._monthsParseExact?(u(this,"_monthsRegex")||ge.call(this),t?this._monthsStrictRegex:this._monthsRegex):(u(this,"_monthsRegex")||(this._monthsRegex=ae),this._monthsStrictRegex&&t?this._monthsStrictRegex:this._monthsRegex)}function ge(){function t(t,e){return e.length-t.length}var e,n,r=[],i=[],a=[];for(e=0;e<12;e++)n=g([2e3,e]),r.push(this.monthsShort(n,"")),i.push(this.months(n,"")),a.push(this.months(n,"")),a.push(this.monthsShort(n,""));for(r.sort(t),i.sort(t),a.sort(t),e=0;e<12;e++)r[e]=Ft(r[e]),i[e]=Ft(i[e]);for(e=0;e<24;e++)a[e]=Ft(a[e]);this._monthsRegex=new RegExp("^("+a.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+i.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+r.join("|")+")","i")}function ve(t){return lt(t)?366:365}j("Y",0,0,(function(){var t=this.year();return t<=9999?V(t,4):"+"+t})),j(0,["YY",2],0,(function(){return this.year()%100})),j(0,["YYYY",4],0,"year"),j(0,["YYYYY",5],0,"year"),j(0,["YYYYYY",6,!0],0,"year"),rt("year","y"),st("year",1),Nt("Y",Mt),Nt("YY",St,_t),Nt("YYYY",Ct,wt),Nt("YYYYY",Et,Dt),Nt("YYYYYY",Et,Dt),Lt(["YYYYY","YYYYYY"],Ut),Lt("YYYY",(function(t,e){e[Ut]=2===t.length?i.parseTwoDigitYear(t):ht(t)})),Lt("YY",(function(t,e){e[Ut]=i.parseTwoDigitYear(t)})),Lt("Y",(function(t,e){e[Ut]=parseInt(t,10)})),i.parseTwoDigitYear=function(t){return ht(t)+(ht(t)>68?1900:2e3)};var me=ft("FullYear",!0);function ye(){return lt(this.year())}function _e(t,e,n,r,i,a,o){var s;return t<100&&t>=0?(s=new Date(t+400,e,n,r,i,a,o),isFinite(s.getFullYear())&&s.setFullYear(t)):s=new Date(t,e,n,r,i,a,o),s}function be(t){var e,n;return t<100&&t>=0?((n=Array.prototype.slice.call(arguments))[0]=t+400,e=new Date(Date.UTC.apply(null,n)),isFinite(e.getUTCFullYear())&&e.setUTCFullYear(t)):e=new Date(Date.UTC.apply(null,arguments)),e}function we(t,e,n){var r=7+e-n;return-(7+be(t,0,r).getUTCDay()-e)%7+r-1}function De(t,e,n,r,i){var a,o,s=1+7*(e-1)+(7+n-r)%7+we(t,r,i);return s<=0?o=ve(a=t-1)+s:s>ve(t)?(a=t+1,o=s-ve(t)):(a=t,o=s),{year:a,dayOfYear:o}}function Se(t,e,n){var r,i,a=we(t.year(),e,n),o=Math.floor((t.dayOfYear()-a-1)/7)+1;return o<1?r=o+xe(i=t.year()-1,e,n):o>xe(t.year(),e,n)?(r=o-xe(t.year(),e,n),i=t.year()+1):(i=t.year(),r=o),{week:r,year:i}}function xe(t,e,n){var r=we(t,e,n),i=we(t+1,e,n);return(ve(t)-r+i)/7}function Te(t){return Se(t,this._week.dow,this._week.doy).week}j("w",["ww",2],"wo","week"),j("W",["WW",2],"Wo","isoWeek"),rt("week","w"),rt("isoWeek","W"),st("week",5),st("isoWeek",5),Nt("w",St),Nt("ww",St,_t),Nt("W",St),Nt("WW",St,_t),jt(["w","ww","W","WW"],(function(t,e,n,r){e[r.substr(0,1)]=ht(t)}));var ke={dow:0,doy:6};function Ce(){return this._week.dow}function Ee(){return this._week.doy}function Oe(t){var e=this.localeData().week(this);return null==t?e:this.add(7*(t-e),"d")}function Me(t){var e=Se(this,1,4).week;return null==t?e:this.add(7*(t-e),"d")}function Ae(t,e){return"string"!=typeof t?t:isNaN(t)?"number"==typeof(t=e.weekdaysParse(t))?t:null:parseInt(t,10)}function Pe(t,e){return"string"==typeof t?e.weekdaysParse(t)%7||7:isNaN(t)?null:t}function Be(t,e){return t.slice(e,7).concat(t.slice(0,e))}j("d",0,"do","day"),j("dd",0,0,(function(t){return this.localeData().weekdaysMin(this,t)})),j("ddd",0,0,(function(t){return this.localeData().weekdaysShort(this,t)})),j("dddd",0,0,(function(t){return this.localeData().weekdays(this,t)})),j("e",0,0,"weekday"),j("E",0,0,"isoWeekday"),rt("day","d"),rt("weekday","e"),rt("isoWeekday","E"),st("day",11),st("weekday",11),st("isoWeekday",11),Nt("d",St),Nt("e",St),Nt("E",St),Nt("dd",(function(t,e){return e.weekdaysMinRegex(t)})),Nt("ddd",(function(t,e){return e.weekdaysShortRegex(t)})),Nt("dddd",(function(t,e){return e.weekdaysRegex(t)})),jt(["dd","ddd","dddd"],(function(t,e,n,r){var i=n._locale.weekdaysParse(t,r,n._strict);null!=i?e.d=i:m(n).invalidWeekday=t})),jt(["d","e","E"],(function(t,e,n,r){e[r]=ht(t)}));var Re="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Ne="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Ve="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Ie=Rt,Fe=Rt,Ye=Rt;function Le(t,e){var n=o(this._weekdays)?this._weekdays:this._weekdays[t&&!0!==t&&this._weekdays.isFormat.test(e)?"format":"standalone"];return!0===t?Be(n,this._week.dow):t?n[t.day()]:n}function je(t){return!0===t?Be(this._weekdaysShort,this._week.dow):t?this._weekdaysShort[t.day()]:this._weekdaysShort}function He(t){return!0===t?Be(this._weekdaysMin,this._week.dow):t?this._weekdaysMin[t.day()]:this._weekdaysMin}function ze(t,e,n){var r,i,a,o=t.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)a=g([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?"dddd"===e?-1!==(i=zt.call(this._weekdaysParse,o))?i:null:"ddd"===e?-1!==(i=zt.call(this._shortWeekdaysParse,o))?i:null:-1!==(i=zt.call(this._minWeekdaysParse,o))?i:null:"dddd"===e?-1!==(i=zt.call(this._weekdaysParse,o))||-1!==(i=zt.call(this._shortWeekdaysParse,o))||-1!==(i=zt.call(this._minWeekdaysParse,o))?i:null:"ddd"===e?-1!==(i=zt.call(this._shortWeekdaysParse,o))||-1!==(i=zt.call(this._weekdaysParse,o))||-1!==(i=zt.call(this._minWeekdaysParse,o))?i:null:-1!==(i=zt.call(this._minWeekdaysParse,o))||-1!==(i=zt.call(this._weekdaysParse,o))||-1!==(i=zt.call(this._shortWeekdaysParse,o))?i:null}function Ue(t,e,n){var r,i,a;if(this._weekdaysParseExact)return ze.call(this,t,e,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(i=g([2e3,1]).day(r),n&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(i,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(i,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(i,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[r]||(a="^"+this.weekdays(i,"")+"|^"+this.weekdaysShort(i,"")+"|^"+this.weekdaysMin(i,""),this._weekdaysParse[r]=new RegExp(a.replace(".",""),"i")),n&&"dddd"===e&&this._fullWeekdaysParse[r].test(t))return r;if(n&&"ddd"===e&&this._shortWeekdaysParse[r].test(t))return r;if(n&&"dd"===e&&this._minWeekdaysParse[r].test(t))return r;if(!n&&this._weekdaysParse[r].test(t))return r}}function We(t){if(!this.isValid())return null!=t?this:NaN;var e=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=t?(t=Ae(t,this.localeData()),this.add(t-e,"d")):e}function qe(t){if(!this.isValid())return null!=t?this:NaN;var e=(this.day()+7-this.localeData()._week.dow)%7;return null==t?e:this.add(t-e,"d")}function Ge(t){if(!this.isValid())return null!=t?this:NaN;if(null!=t){var e=Pe(t,this.localeData());return this.day(this.day()%7?e:e-7)}return this.day()||7}function Ke(t){return this._weekdaysParseExact?(u(this,"_weekdaysRegex")||$e.call(this),t?this._weekdaysStrictRegex:this._weekdaysRegex):(u(this,"_weekdaysRegex")||(this._weekdaysRegex=Ie),this._weekdaysStrictRegex&&t?this._weekdaysStrictRegex:this._weekdaysRegex)}function Ze(t){return this._weekdaysParseExact?(u(this,"_weekdaysRegex")||$e.call(this),t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(u(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Fe),this._weekdaysShortStrictRegex&&t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function Xe(t){return this._weekdaysParseExact?(u(this,"_weekdaysRegex")||$e.call(this),t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(u(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Ye),this._weekdaysMinStrictRegex&&t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function $e(){function t(t,e){return e.length-t.length}var e,n,r,i,a,o=[],s=[],u=[],l=[];for(e=0;e<7;e++)n=g([2e3,1]).day(e),r=Ft(this.weekdaysMin(n,"")),i=Ft(this.weekdaysShort(n,"")),a=Ft(this.weekdays(n,"")),o.push(r),s.push(i),u.push(a),l.push(r),l.push(i),l.push(a);o.sort(t),s.sort(t),u.sort(t),l.sort(t),this._weekdaysRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+u.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+o.join("|")+")","i")}function Je(){return this.hours()%12||12}function Qe(){return this.hours()||24}function tn(t,e){j(t,0,0,(function(){return this.localeData().meridiem(this.hours(),this.minutes(),e)}))}function en(t,e){return e._meridiemParse}function nn(t){return"p"===(t+"").toLowerCase().charAt(0)}j("H",["HH",2],0,"hour"),j("h",["hh",2],0,Je),j("k",["kk",2],0,Qe),j("hmm",0,0,(function(){return""+Je.apply(this)+V(this.minutes(),2)})),j("hmmss",0,0,(function(){return""+Je.apply(this)+V(this.minutes(),2)+V(this.seconds(),2)})),j("Hmm",0,0,(function(){return""+this.hours()+V(this.minutes(),2)})),j("Hmmss",0,0,(function(){return""+this.hours()+V(this.minutes(),2)+V(this.seconds(),2)})),tn("a",!0),tn("A",!1),rt("hour","h"),st("hour",13),Nt("a",en),Nt("A",en),Nt("H",St),Nt("h",St),Nt("k",St),Nt("HH",St,_t),Nt("hh",St,_t),Nt("kk",St,_t),Nt("hmm",xt),Nt("hmmss",Tt),Nt("Hmm",xt),Nt("Hmmss",Tt),Lt(["H","HH"],Gt),Lt(["k","kk"],(function(t,e,n){var r=ht(t);e[Gt]=24===r?0:r})),Lt(["a","A"],(function(t,e,n){n._isPm=n._locale.isPM(t),n._meridiem=t})),Lt(["h","hh"],(function(t,e,n){e[Gt]=ht(t),m(n).bigHour=!0})),Lt("hmm",(function(t,e,n){var r=t.length-2;e[Gt]=ht(t.substr(0,r)),e[Kt]=ht(t.substr(r)),m(n).bigHour=!0})),Lt("hmmss",(function(t,e,n){var r=t.length-4,i=t.length-2;e[Gt]=ht(t.substr(0,r)),e[Kt]=ht(t.substr(r,2)),e[Zt]=ht(t.substr(i)),m(n).bigHour=!0})),Lt("Hmm",(function(t,e,n){var r=t.length-2;e[Gt]=ht(t.substr(0,r)),e[Kt]=ht(t.substr(r))})),Lt("Hmmss",(function(t,e,n){var r=t.length-4,i=t.length-2;e[Gt]=ht(t.substr(0,r)),e[Kt]=ht(t.substr(r,2)),e[Zt]=ht(t.substr(i))}));var rn=/[ap]\.?m?\.?/i,an=ft("Hours",!0);function on(t,e,n){return t>11?n?"pm":"PM":n?"am":"AM"}var sn,un={calendar:R,longDateFormat:q,invalidDate:K,ordinal:X,dayOfMonthOrdinalParse:$,relativeTime:Q,months:ee,monthsShort:ne,week:ke,weekdays:Re,weekdaysMin:Ve,weekdaysShort:Ne,meridiemParse:rn},ln={},cn={};function hn(t,e){var n,r=Math.min(t.length,e.length);for(n=0;n<r;n+=1)if(t[n]!==e[n])return n;return r}function fn(t){return t?t.toLowerCase().replace("_","-"):t}function dn(t){for(var e,n,r,i,a=0;a<t.length;){for(e=(i=fn(t[a]).split("-")).length,n=(n=fn(t[a+1]))?n.split("-"):null;e>0;){if(r=gn(i.slice(0,e).join("-")))return r;if(n&&n.length>=e&&hn(i,n)>=e-1)break;e--}a++}return sn}function pn(t){return null!=t.match("^[^/\\\\]*$")}function gn(e){var n=null;if(void 0===ln[e]&&t&&t.exports&&pn(e))try{n=sn._abbr,r(),vn(n)}catch(t){ln[e]=null}return ln[e]}function vn(t,e){var n;return t&&((n=c(e)?_n(t):mn(t,e))?sn=n:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+t+" not found. Did you forget to load it?")),sn._abbr}function mn(t,e){if(null!==e){var n,r=un;if(e.abbr=t,null!=ln[t])O("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=ln[t]._config;else if(null!=e.parentLocale)if(null!=ln[e.parentLocale])r=ln[e.parentLocale]._config;else{if(null==(n=gn(e.parentLocale)))return cn[e.parentLocale]||(cn[e.parentLocale]=[]),cn[e.parentLocale].push({name:t,config:e}),null;r=n._config}return ln[t]=new B(P(r,e)),cn[t]&&cn[t].forEach((function(t){mn(t.name,t.config)})),vn(t),ln[t]}return delete ln[t],null}function yn(t,e){if(null!=e){var n,r,i=un;null!=ln[t]&&null!=ln[t].parentLocale?ln[t].set(P(ln[t]._config,e)):(null!=(r=gn(t))&&(i=r._config),e=P(i,e),null==r&&(e.abbr=t),(n=new B(e)).parentLocale=ln[t],ln[t]=n),vn(t)}else null!=ln[t]&&(null!=ln[t].parentLocale?(ln[t]=ln[t].parentLocale,t===vn()&&vn(t)):null!=ln[t]&&delete ln[t]);return ln[t]}function _n(t){var e;if(t&&t._locale&&t._locale._abbr&&(t=t._locale._abbr),!t)return sn;if(!o(t)){if(e=gn(t))return e;t=[t]}return dn(t)}function bn(){return C(ln)}function wn(t){var e,n=t._a;return n&&-2===m(t).overflow&&(e=n[Wt]<0||n[Wt]>11?Wt:n[qt]<1||n[qt]>te(n[Ut],n[Wt])?qt:n[Gt]<0||n[Gt]>24||24===n[Gt]&&(0!==n[Kt]||0!==n[Zt]||0!==n[Xt])?Gt:n[Kt]<0||n[Kt]>59?Kt:n[Zt]<0||n[Zt]>59?Zt:n[Xt]<0||n[Xt]>999?Xt:-1,m(t)._overflowDayOfYear&&(e<Ut||e>qt)&&(e=qt),m(t)._overflowWeeks&&-1===e&&(e=$t),m(t)._overflowWeekday&&-1===e&&(e=Jt),m(t).overflow=e),t}var Dn=/^\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)?)?$/,Sn=/^\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)?)?$/,xn=/Z|[+-]\d\d(?::?\d\d)?/,Tn=[["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]],kn=[["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/]],Cn=/^\/?Date\((-?\d+)/i,En=/^(?:(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}))$/,On={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function Mn(t){var e,n,r,i,a,o,s=t._i,u=Dn.exec(s)||Sn.exec(s),l=Tn.length,c=kn.length;if(u){for(m(t).iso=!0,e=0,n=l;e<n;e++)if(Tn[e][1].exec(u[1])){i=Tn[e][0],r=!1!==Tn[e][2];break}if(null==i)return void(t._isValid=!1);if(u[3]){for(e=0,n=c;e<n;e++)if(kn[e][1].exec(u[3])){a=(u[2]||" ")+kn[e][0];break}if(null==a)return void(t._isValid=!1)}if(!r&&null!=a)return void(t._isValid=!1);if(u[4]){if(!xn.exec(u[4]))return void(t._isValid=!1);o="Z"}t._f=i+(a||"")+(o||""),Hn(t)}else t._isValid=!1}function An(t,e,n,r,i,a){var o=[Pn(t),ne.indexOf(e),parseInt(n,10),parseInt(r,10),parseInt(i,10)];return a&&o.push(parseInt(a,10)),o}function Pn(t){var e=parseInt(t,10);return e<=49?2e3+e:e<=999?1900+e:e}function Bn(t){return t.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function Rn(t,e,n){return!t||Ne.indexOf(t)===new Date(e[0],e[1],e[2]).getDay()||(m(n).weekdayMismatch=!0,n._isValid=!1,!1)}function Nn(t,e,n){if(t)return On[t];if(e)return 0;var r=parseInt(n,10),i=r%100;return(r-i)/100*60+i}function Vn(t){var e,n=En.exec(Bn(t._i));if(n){if(e=An(n[4],n[3],n[2],n[5],n[6],n[7]),!Rn(n[1],e,t))return;t._a=e,t._tzm=Nn(n[8],n[9],n[10]),t._d=be.apply(null,t._a),t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),m(t).rfc2822=!0}else t._isValid=!1}function In(t){var e=Cn.exec(t._i);null===e?(Mn(t),!1===t._isValid&&(delete t._isValid,Vn(t),!1===t._isValid&&(delete t._isValid,t._strict?t._isValid=!1:i.createFromInputFallback(t)))):t._d=new Date(+e[1])}function Fn(t,e,n){return null!=t?t:null!=e?e:n}function Yn(t){var e=new Date(i.now());return t._useUTC?[e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()]:[e.getFullYear(),e.getMonth(),e.getDate()]}function Ln(t){var e,n,r,i,a,o=[];if(!t._d){for(r=Yn(t),t._w&&null==t._a[qt]&&null==t._a[Wt]&&jn(t),null!=t._dayOfYear&&(a=Fn(t._a[Ut],r[Ut]),(t._dayOfYear>ve(a)||0===t._dayOfYear)&&(m(t)._overflowDayOfYear=!0),n=be(a,0,t._dayOfYear),t._a[Wt]=n.getUTCMonth(),t._a[qt]=n.getUTCDate()),e=0;e<3&&null==t._a[e];++e)t._a[e]=o[e]=r[e];for(;e<7;e++)t._a[e]=o[e]=null==t._a[e]?2===e?1:0:t._a[e];24===t._a[Gt]&&0===t._a[Kt]&&0===t._a[Zt]&&0===t._a[Xt]&&(t._nextDay=!0,t._a[Gt]=0),t._d=(t._useUTC?be:_e).apply(null,o),i=t._useUTC?t._d.getUTCDay():t._d.getDay(),null!=t._tzm&&t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),t._nextDay&&(t._a[Gt]=24),t._w&&void 0!==t._w.d&&t._w.d!==i&&(m(t).weekdayMismatch=!0)}}function jn(t){var e,n,r,i,a,o,s,u,l;null!=(e=t._w).GG||null!=e.W||null!=e.E?(a=1,o=4,n=Fn(e.GG,t._a[Ut],Se(Xn(),1,4).year),r=Fn(e.W,1),((i=Fn(e.E,1))<1||i>7)&&(u=!0)):(a=t._locale._week.dow,o=t._locale._week.doy,l=Se(Xn(),a,o),n=Fn(e.gg,t._a[Ut],l.year),r=Fn(e.w,l.week),null!=e.d?((i=e.d)<0||i>6)&&(u=!0):null!=e.e?(i=e.e+a,(e.e<0||e.e>6)&&(u=!0)):i=a),r<1||r>xe(n,a,o)?m(t)._overflowWeeks=!0:null!=u?m(t)._overflowWeekday=!0:(s=De(n,r,i,a,o),t._a[Ut]=s.year,t._dayOfYear=s.dayOfYear)}function Hn(t){if(t._f!==i.ISO_8601)if(t._f!==i.RFC_2822){t._a=[],m(t).empty=!0;var e,n,r,a,o,s,u,l=""+t._i,c=l.length,h=0;for(u=(r=W(t._f,t._locale).match(I)||[]).length,e=0;e<u;e++)a=r[e],(n=(l.match(Vt(a,t))||[])[0])&&((o=l.substr(0,l.indexOf(n))).length>0&&m(t).unusedInput.push(o),l=l.slice(l.indexOf(n)+n.length),h+=n.length),L[a]?(n?m(t).empty=!1:m(t).unusedTokens.push(a),Ht(a,n,t)):t._strict&&!n&&m(t).unusedTokens.push(a);m(t).charsLeftOver=c-h,l.length>0&&m(t).unusedInput.push(l),t._a[Gt]<=12&&!0===m(t).bigHour&&t._a[Gt]>0&&(m(t).bigHour=void 0),m(t).parsedDateParts=t._a.slice(0),m(t).meridiem=t._meridiem,t._a[Gt]=zn(t._locale,t._a[Gt],t._meridiem),null!==(s=m(t).era)&&(t._a[Ut]=t._locale.erasConvertYear(s,t._a[Ut])),Ln(t),wn(t)}else Vn(t);else Mn(t)}function zn(t,e,n){var r;return null==n?e:null!=t.meridiemHour?t.meridiemHour(e,n):null!=t.isPM?((r=t.isPM(n))&&e<12&&(e+=12),r||12!==e||(e=0),e):e}function Un(t){var e,n,r,i,a,o,s=!1,u=t._f.length;if(0===u)return m(t).invalidFormat=!0,void(t._d=new Date(NaN));for(i=0;i<u;i++)a=0,o=!1,e=D({},t),null!=t._useUTC&&(e._useUTC=t._useUTC),e._f=t._f[i],Hn(e),y(e)&&(o=!0),a+=m(e).charsLeftOver,a+=10*m(e).unusedTokens.length,m(e).score=a,s?a<r&&(r=a,n=e):(null==r||a<r||o)&&(r=a,n=e,o&&(s=!0));p(t,n||e)}function Wn(t){if(!t._d){var e=at(t._i),n=void 0===e.day?e.date:e.day;t._a=d([e.year,e.month,n,e.hour,e.minute,e.second,e.millisecond],(function(t){return t&&parseInt(t,10)})),Ln(t)}}function qn(t){var e=new S(wn(Gn(t)));return e._nextDay&&(e.add(1,"d"),e._nextDay=void 0),e}function Gn(t){var e=t._i,n=t._f;return t._locale=t._locale||_n(t._l),null===e||void 0===n&&""===e?_({nullInput:!0}):("string"==typeof e&&(t._i=e=t._locale.preparse(e)),x(e)?new S(wn(e)):(f(e)?t._d=e:o(n)?Un(t):n?Hn(t):Kn(t),y(t)||(t._d=null),t))}function Kn(t){var e=t._i;c(e)?t._d=new Date(i.now()):f(e)?t._d=new Date(e.valueOf()):"string"==typeof e?In(t):o(e)?(t._a=d(e.slice(0),(function(t){return parseInt(t,10)})),Ln(t)):s(e)?Wn(t):h(e)?t._d=new Date(e):i.createFromInputFallback(t)}function Zn(t,e,n,r,i){var a={};return!0!==e&&!1!==e||(r=e,e=void 0),!0!==n&&!1!==n||(r=n,n=void 0),(s(t)&&l(t)||o(t)&&0===t.length)&&(t=void 0),a._isAMomentObject=!0,a._useUTC=a._isUTC=i,a._l=n,a._i=t,a._f=e,a._strict=r,qn(a)}function Xn(t,e,n,r){return Zn(t,e,n,r,!1)}i.createFromInputFallback=k("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",(function(t){t._d=new Date(t._i+(t._useUTC?" UTC":""))})),i.ISO_8601=function(){},i.RFC_2822=function(){};var $n=k("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var t=Xn.apply(null,arguments);return this.isValid()&&t.isValid()?t<this?this:t:_()})),Jn=k("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var t=Xn.apply(null,arguments);return this.isValid()&&t.isValid()?t>this?this:t:_()}));function Qn(t,e){var n,r;if(1===e.length&&o(e[0])&&(e=e[0]),!e.length)return Xn();for(n=e[0],r=1;r<e.length;++r)e[r].isValid()&&!e[r][t](n)||(n=e[r]);return n}function tr(){return Qn("isBefore",[].slice.call(arguments,0))}function er(){return Qn("isAfter",[].slice.call(arguments,0))}var nr=function(){return Date.now?Date.now():+new Date},rr=["year","quarter","month","week","day","hour","minute","second","millisecond"];function ir(t){var e,n,r=!1,i=rr.length;for(e in t)if(u(t,e)&&(-1===zt.call(rr,e)||null!=t[e]&&isNaN(t[e])))return!1;for(n=0;n<i;++n)if(t[rr[n]]){if(r)return!1;parseFloat(t[rr[n]])!==ht(t[rr[n]])&&(r=!0)}return!0}function ar(){return this._isValid}function or(){return Or(NaN)}function sr(t){var e=at(t),n=e.year||0,r=e.quarter||0,i=e.month||0,a=e.week||e.isoWeek||0,o=e.day||0,s=e.hour||0,u=e.minute||0,l=e.second||0,c=e.millisecond||0;this._isValid=ir(e),this._milliseconds=+c+1e3*l+6e4*u+1e3*s*60*60,this._days=+o+7*a,this._months=+i+3*r+12*n,this._data={},this._locale=_n(),this._bubble()}function ur(t){return t instanceof sr}function lr(t){return t<0?-1*Math.round(-1*t):Math.round(t)}function cr(t,e,n){var r,i=Math.min(t.length,e.length),a=Math.abs(t.length-e.length),o=0;for(r=0;r<i;r++)(n&&t[r]!==e[r]||!n&&ht(t[r])!==ht(e[r]))&&o++;return o+a}function hr(t,e){j(t,0,0,(function(){var t=this.utcOffset(),n="+";return t<0&&(t=-t,n="-"),n+V(~~(t/60),2)+e+V(~~t%60,2)}))}hr("Z",":"),hr("ZZ",""),Nt("Z",Pt),Nt("ZZ",Pt),Lt(["Z","ZZ"],(function(t,e,n){n._useUTC=!0,n._tzm=dr(Pt,t)}));var fr=/([\+\-]|\d\d)/gi;function dr(t,e){var n,r,i=(e||"").match(t);return null===i?null:0===(r=60*(n=((i[i.length-1]||[])+"").match(fr)||["-",0,0])[1]+ht(n[2]))?0:"+"===n[0]?r:-r}function pr(t,e){var n,r;return e._isUTC?(n=e.clone(),r=(x(t)||f(t)?t.valueOf():Xn(t).valueOf())-n.valueOf(),n._d.setTime(n._d.valueOf()+r),i.updateOffset(n,!1),n):Xn(t).local()}function gr(t){return-Math.round(t._d.getTimezoneOffset())}function vr(t,e,n){var r,a=this._offset||0;if(!this.isValid())return null!=t?this:NaN;if(null!=t){if("string"==typeof t){if(null===(t=dr(Pt,t)))return this}else Math.abs(t)<16&&!n&&(t*=60);return!this._isUTC&&e&&(r=gr(this)),this._offset=t,this._isUTC=!0,null!=r&&this.add(r,"m"),a!==t&&(!e||this._changeInProgress?Rr(this,Or(t-a,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,i.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?a:gr(this)}function mr(t,e){return null!=t?("string"!=typeof t&&(t=-t),this.utcOffset(t,e),this):-this.utcOffset()}function yr(t){return this.utcOffset(0,t)}function _r(t){return this._isUTC&&(this.utcOffset(0,t),this._isUTC=!1,t&&this.subtract(gr(this),"m")),this}function br(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var t=dr(At,this._i);null!=t?this.utcOffset(t):this.utcOffset(0,!0)}return this}function wr(t){return!!this.isValid()&&(t=t?Xn(t).utcOffset():0,(this.utcOffset()-t)%60==0)}function Dr(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function Sr(){if(!c(this._isDSTShifted))return this._isDSTShifted;var t,e={};return D(e,this),(e=Gn(e))._a?(t=e._isUTC?g(e._a):Xn(e._a),this._isDSTShifted=this.isValid()&&cr(e._a,t.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function xr(){return!!this.isValid()&&!this._isUTC}function Tr(){return!!this.isValid()&&this._isUTC}function kr(){return!!this.isValid()&&this._isUTC&&0===this._offset}i.updateOffset=function(){};var Cr=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Er=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Or(t,e){var n,r,i,a=t,o=null;return ur(t)?a={ms:t._milliseconds,d:t._days,M:t._months}:h(t)||!isNaN(+t)?(a={},e?a[e]=+t:a.milliseconds=+t):(o=Cr.exec(t))?(n="-"===o[1]?-1:1,a={y:0,d:ht(o[qt])*n,h:ht(o[Gt])*n,m:ht(o[Kt])*n,s:ht(o[Zt])*n,ms:ht(lr(1e3*o[Xt]))*n}):(o=Er.exec(t))?(n="-"===o[1]?-1:1,a={y:Mr(o[2],n),M:Mr(o[3],n),w:Mr(o[4],n),d:Mr(o[5],n),h:Mr(o[6],n),m:Mr(o[7],n),s:Mr(o[8],n)}):null==a?a={}:"object"==typeof a&&("from"in a||"to"in a)&&(i=Pr(Xn(a.from),Xn(a.to)),(a={}).ms=i.milliseconds,a.M=i.months),r=new sr(a),ur(t)&&u(t,"_locale")&&(r._locale=t._locale),ur(t)&&u(t,"_isValid")&&(r._isValid=t._isValid),r}function Mr(t,e){var n=t&&parseFloat(t.replace(",","."));return(isNaN(n)?0:n)*e}function Ar(t,e){var n={};return n.months=e.month()-t.month()+12*(e.year()-t.year()),t.clone().add(n.months,"M").isAfter(e)&&--n.months,n.milliseconds=+e-+t.clone().add(n.months,"M"),n}function Pr(t,e){var n;return t.isValid()&&e.isValid()?(e=pr(e,t),t.isBefore(e)?n=Ar(t,e):((n=Ar(e,t)).milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}function Br(t,e){return function(n,r){var i;return null===r||isNaN(+r)||(O(e,"moment()."+e+"(period, number) is deprecated. Please use moment()."+e+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),i=n,n=r,r=i),Rr(this,Or(n,r),t),this}}function Rr(t,e,n,r){var a=e._milliseconds,o=lr(e._days),s=lr(e._months);t.isValid()&&(r=null==r||r,s&&ce(t,dt(t,"Month")+s*n),o&&pt(t,"Date",dt(t,"Date")+o*n),a&&t._d.setTime(t._d.valueOf()+a*n),r&&i.updateOffset(t,o||s))}Or.fn=sr.prototype,Or.invalid=or;var Nr=Br(1,"add"),Vr=Br(-1,"subtract");function Ir(t){return"string"==typeof t||t instanceof String}function Fr(t){return x(t)||f(t)||Ir(t)||h(t)||Lr(t)||Yr(t)||null==t}function Yr(t){var e,n,r=s(t)&&!l(t),i=!1,a=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],o=a.length;for(e=0;e<o;e+=1)n=a[e],i=i||u(t,n);return r&&i}function Lr(t){var e=o(t),n=!1;return e&&(n=0===t.filter((function(e){return!h(e)&&Ir(t)})).length),e&&n}function jr(t){var e,n,r=s(t)&&!l(t),i=!1,a=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"];for(e=0;e<a.length;e+=1)n=a[e],i=i||u(t,n);return r&&i}function Hr(t,e){var n=t.diff(e,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"}function zr(t,e){1===arguments.length&&(arguments[0]?Fr(arguments[0])?(t=arguments[0],e=void 0):jr(arguments[0])&&(e=arguments[0],t=void 0):(t=void 0,e=void 0));var n=t||Xn(),r=pr(n,this).startOf("day"),a=i.calendarFormat(this,r)||"sameElse",o=e&&(M(e[a])?e[a].call(this,n):e[a]);return this.format(o||this.localeData().calendar(a,this,Xn(n)))}function Ur(){return new S(this)}function Wr(t,e){var n=x(t)?t:Xn(t);return!(!this.isValid()||!n.isValid())&&("millisecond"===(e=it(e)||"millisecond")?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(e).valueOf())}function qr(t,e){var n=x(t)?t:Xn(t);return!(!this.isValid()||!n.isValid())&&("millisecond"===(e=it(e)||"millisecond")?this.valueOf()<n.valueOf():this.clone().endOf(e).valueOf()<n.valueOf())}function Gr(t,e,n,r){var i=x(t)?t:Xn(t),a=x(e)?e:Xn(e);return!!(this.isValid()&&i.isValid()&&a.isValid())&&("("===(r=r||"()")[0]?this.isAfter(i,n):!this.isBefore(i,n))&&(")"===r[1]?this.isBefore(a,n):!this.isAfter(a,n))}function Kr(t,e){var n,r=x(t)?t:Xn(t);return!(!this.isValid()||!r.isValid())&&("millisecond"===(e=it(e)||"millisecond")?this.valueOf()===r.valueOf():(n=r.valueOf(),this.clone().startOf(e).valueOf()<=n&&n<=this.clone().endOf(e).valueOf()))}function Zr(t,e){return this.isSame(t,e)||this.isAfter(t,e)}function Xr(t,e){return this.isSame(t,e)||this.isBefore(t,e)}function $r(t,e,n){var r,i,a;if(!this.isValid())return NaN;if(!(r=pr(t,this)).isValid())return NaN;switch(i=6e4*(r.utcOffset()-this.utcOffset()),e=it(e)){case"year":a=Jr(this,r)/12;break;case"month":a=Jr(this,r);break;case"quarter":a=Jr(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-i)/864e5;break;case"week":a=(this-r-i)/6048e5;break;default:a=this-r}return n?a:ct(a)}function Jr(t,e){if(t.date()<e.date())return-Jr(e,t);var n=12*(e.year()-t.year())+(e.month()-t.month()),r=t.clone().add(n,"months");return-(n+(e-r<0?(e-r)/(r-t.clone().add(n-1,"months")):(e-r)/(t.clone().add(n+1,"months")-r)))||0}function Qr(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function ti(t){if(!this.isValid())return null;var e=!0!==t,n=e?this.clone().utc():this;return n.year()<0||n.year()>9999?U(n,e?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):M(Date.prototype.toISOString)?e?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",U(n,"Z")):U(n,e?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function ei(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var t,e,n,r,i="moment",a="";return this.isLocal()||(i=0===this.utcOffset()?"moment.utc":"moment.parseZone",a="Z"),t="["+i+'("]',e=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",n="-MM-DD[T]HH:mm:ss.SSS",r=a+'[")]',this.format(t+e+n+r)}function ni(t){t||(t=this.isUtc()?i.defaultFormatUtc:i.defaultFormat);var e=U(this,t);return this.localeData().postformat(e)}function ri(t,e){return this.isValid()&&(x(t)&&t.isValid()||Xn(t).isValid())?Or({to:this,from:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()}function ii(t){return this.from(Xn(),t)}function ai(t,e){return this.isValid()&&(x(t)&&t.isValid()||Xn(t).isValid())?Or({from:this,to:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()}function oi(t){return this.to(Xn(),t)}function si(t){var e;return void 0===t?this._locale._abbr:(null!=(e=_n(t))&&(this._locale=e),this)}i.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",i.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var ui=k("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",(function(t){return void 0===t?this.localeData():this.locale(t)}));function li(){return this._locale}var ci=1e3,hi=60*ci,fi=60*hi,di=3506328*fi;function pi(t,e){return(t%e+e)%e}function gi(t,e,n){return t<100&&t>=0?new Date(t+400,e,n)-di:new Date(t,e,n).valueOf()}function vi(t,e,n){return t<100&&t>=0?Date.UTC(t+400,e,n)-di:Date.UTC(t,e,n)}function mi(t){var e,n;if(void 0===(t=it(t))||"millisecond"===t||!this.isValid())return this;switch(n=this._isUTC?vi:gi,t){case"year":e=n(this.year(),0,1);break;case"quarter":e=n(this.year(),this.month()-this.month()%3,1);break;case"month":e=n(this.year(),this.month(),1);break;case"week":e=n(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":e=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":e=n(this.year(),this.month(),this.date());break;case"hour":e=this._d.valueOf(),e-=pi(e+(this._isUTC?0:this.utcOffset()*hi),fi);break;case"minute":e=this._d.valueOf(),e-=pi(e,hi);break;case"second":e=this._d.valueOf(),e-=pi(e,ci)}return this._d.setTime(e),i.updateOffset(this,!0),this}function yi(t){var e,n;if(void 0===(t=it(t))||"millisecond"===t||!this.isValid())return this;switch(n=this._isUTC?vi:gi,t){case"year":e=n(this.year()+1,0,1)-1;break;case"quarter":e=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":e=n(this.year(),this.month()+1,1)-1;break;case"week":e=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":e=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":e=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":e=this._d.valueOf(),e+=fi-pi(e+(this._isUTC?0:this.utcOffset()*hi),fi)-1;break;case"minute":e=this._d.valueOf(),e+=hi-pi(e,hi)-1;break;case"second":e=this._d.valueOf(),e+=ci-pi(e,ci)-1}return this._d.setTime(e),i.updateOffset(this,!0),this}function _i(){return this._d.valueOf()-6e4*(this._offset||0)}function bi(){return Math.floor(this.valueOf()/1e3)}function wi(){return new Date(this.valueOf())}function Di(){var t=this;return[t.year(),t.month(),t.date(),t.hour(),t.minute(),t.second(),t.millisecond()]}function Si(){var t=this;return{years:t.year(),months:t.month(),date:t.date(),hours:t.hours(),minutes:t.minutes(),seconds:t.seconds(),milliseconds:t.milliseconds()}}function xi(){return this.isValid()?this.toISOString():null}function Ti(){return y(this)}function ki(){return p({},m(this))}function Ci(){return m(this).overflow}function Ei(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}function Oi(t,e){var n,r,a,o=this._eras||_n("en")._eras;for(n=0,r=o.length;n<r;++n)switch("string"==typeof o[n].since&&(a=i(o[n].since).startOf("day"),o[n].since=a.valueOf()),typeof o[n].until){case"undefined":o[n].until=1/0;break;case"string":a=i(o[n].until).startOf("day").valueOf(),o[n].until=a.valueOf()}return o}function Mi(t,e,n){var r,i,a,o,s,u=this.eras();for(t=t.toUpperCase(),r=0,i=u.length;r<i;++r)if(a=u[r].name.toUpperCase(),o=u[r].abbr.toUpperCase(),s=u[r].narrow.toUpperCase(),n)switch(e){case"N":case"NN":case"NNN":if(o===t)return u[r];break;case"NNNN":if(a===t)return u[r];break;case"NNNNN":if(s===t)return u[r]}else if([a,o,s].indexOf(t)>=0)return u[r]}function Ai(t,e){var n=t.since<=t.until?1:-1;return void 0===e?i(t.since).year():i(t.since).year()+(e-t.offset)*n}function Pi(){var t,e,n,r=this.localeData().eras();for(t=0,e=r.length;t<e;++t){if(n=this.clone().startOf("day").valueOf(),r[t].since<=n&&n<=r[t].until)return r[t].name;if(r[t].until<=n&&n<=r[t].since)return r[t].name}return""}function Bi(){var t,e,n,r=this.localeData().eras();for(t=0,e=r.length;t<e;++t){if(n=this.clone().startOf("day").valueOf(),r[t].since<=n&&n<=r[t].until)return r[t].narrow;if(r[t].until<=n&&n<=r[t].since)return r[t].narrow}return""}function Ri(){var t,e,n,r=this.localeData().eras();for(t=0,e=r.length;t<e;++t){if(n=this.clone().startOf("day").valueOf(),r[t].since<=n&&n<=r[t].until)return r[t].abbr;if(r[t].until<=n&&n<=r[t].since)return r[t].abbr}return""}function Ni(){var t,e,n,r,a=this.localeData().eras();for(t=0,e=a.length;t<e;++t)if(n=a[t].since<=a[t].until?1:-1,r=this.clone().startOf("day").valueOf(),a[t].since<=r&&r<=a[t].until||a[t].until<=r&&r<=a[t].since)return(this.year()-i(a[t].since).year())*n+a[t].offset;return this.year()}function Vi(t){return u(this,"_erasNameRegex")||zi.call(this),t?this._erasNameRegex:this._erasRegex}function Ii(t){return u(this,"_erasAbbrRegex")||zi.call(this),t?this._erasAbbrRegex:this._erasRegex}function Fi(t){return u(this,"_erasNarrowRegex")||zi.call(this),t?this._erasNarrowRegex:this._erasRegex}function Yi(t,e){return e.erasAbbrRegex(t)}function Li(t,e){return e.erasNameRegex(t)}function ji(t,e){return e.erasNarrowRegex(t)}function Hi(t,e){return e._eraYearOrdinalRegex||Ot}function zi(){var t,e,n=[],r=[],i=[],a=[],o=this.eras();for(t=0,e=o.length;t<e;++t)r.push(Ft(o[t].name)),n.push(Ft(o[t].abbr)),i.push(Ft(o[t].narrow)),a.push(Ft(o[t].name)),a.push(Ft(o[t].abbr)),a.push(Ft(o[t].narrow));this._erasRegex=new RegExp("^("+a.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+r.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+n.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+i.join("|")+")","i")}function Ui(t,e){j(0,[t,t.length],0,e)}function Wi(t){return $i.call(this,t,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)}function qi(t){return $i.call(this,t,this.isoWeek(),this.isoWeekday(),1,4)}function Gi(){return xe(this.year(),1,4)}function Ki(){return xe(this.isoWeekYear(),1,4)}function Zi(){var t=this.localeData()._week;return xe(this.year(),t.dow,t.doy)}function Xi(){var t=this.localeData()._week;return xe(this.weekYear(),t.dow,t.doy)}function $i(t,e,n,r,i){var a;return null==t?Se(this,r,i).year:(e>(a=xe(t,r,i))&&(e=a),Ji.call(this,t,e,n,r,i))}function Ji(t,e,n,r,i){var a=De(t,e,n,r,i),o=be(a.year,0,a.dayOfYear);return this.year(o.getUTCFullYear()),this.month(o.getUTCMonth()),this.date(o.getUTCDate()),this}function Qi(t){return null==t?Math.ceil((this.month()+1)/3):this.month(3*(t-1)+this.month()%3)}j("N",0,0,"eraAbbr"),j("NN",0,0,"eraAbbr"),j("NNN",0,0,"eraAbbr"),j("NNNN",0,0,"eraName"),j("NNNNN",0,0,"eraNarrow"),j("y",["y",1],"yo","eraYear"),j("y",["yy",2],0,"eraYear"),j("y",["yyy",3],0,"eraYear"),j("y",["yyyy",4],0,"eraYear"),Nt("N",Yi),Nt("NN",Yi),Nt("NNN",Yi),Nt("NNNN",Li),Nt("NNNNN",ji),Lt(["N","NN","NNN","NNNN","NNNNN"],(function(t,e,n,r){var i=n._locale.erasParse(t,r,n._strict);i?m(n).era=i:m(n).invalidEra=t})),Nt("y",Ot),Nt("yy",Ot),Nt("yyy",Ot),Nt("yyyy",Ot),Nt("yo",Hi),Lt(["y","yy","yyy","yyyy"],Ut),Lt(["yo"],(function(t,e,n,r){var i;n._locale._eraYearOrdinalRegex&&(i=t.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?e[Ut]=n._locale.eraYearOrdinalParse(t,i):e[Ut]=parseInt(t,10)})),j(0,["gg",2],0,(function(){return this.weekYear()%100})),j(0,["GG",2],0,(function(){return this.isoWeekYear()%100})),Ui("gggg","weekYear"),Ui("ggggg","weekYear"),Ui("GGGG","isoWeekYear"),Ui("GGGGG","isoWeekYear"),rt("weekYear","gg"),rt("isoWeekYear","GG"),st("weekYear",1),st("isoWeekYear",1),Nt("G",Mt),Nt("g",Mt),Nt("GG",St,_t),Nt("gg",St,_t),Nt("GGGG",Ct,wt),Nt("gggg",Ct,wt),Nt("GGGGG",Et,Dt),Nt("ggggg",Et,Dt),jt(["gggg","ggggg","GGGG","GGGGG"],(function(t,e,n,r){e[r.substr(0,2)]=ht(t)})),jt(["gg","GG"],(function(t,e,n,r){e[r]=i.parseTwoDigitYear(t)})),j("Q",0,"Qo","quarter"),rt("quarter","Q"),st("quarter",7),Nt("Q",yt),Lt("Q",(function(t,e){e[Wt]=3*(ht(t)-1)})),j("D",["DD",2],"Do","date"),rt("date","D"),st("date",9),Nt("D",St),Nt("DD",St,_t),Nt("Do",(function(t,e){return t?e._dayOfMonthOrdinalParse||e._ordinalParse:e._dayOfMonthOrdinalParseLenient})),Lt(["D","DD"],qt),Lt("Do",(function(t,e){e[qt]=ht(t.match(St)[0])}));var ta=ft("Date",!0);function ea(t){var e=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==t?e:this.add(t-e,"d")}j("DDD",["DDDD",3],"DDDo","dayOfYear"),rt("dayOfYear","DDD"),st("dayOfYear",4),Nt("DDD",kt),Nt("DDDD",bt),Lt(["DDD","DDDD"],(function(t,e,n){n._dayOfYear=ht(t)})),j("m",["mm",2],0,"minute"),rt("minute","m"),st("minute",14),Nt("m",St),Nt("mm",St,_t),Lt(["m","mm"],Kt);var na=ft("Minutes",!1);j("s",["ss",2],0,"second"),rt("second","s"),st("second",15),Nt("s",St),Nt("ss",St,_t),Lt(["s","ss"],Zt);var ra,ia,aa=ft("Seconds",!1);for(j("S",0,0,(function(){return~~(this.millisecond()/100)})),j(0,["SS",2],0,(function(){return~~(this.millisecond()/10)})),j(0,["SSS",3],0,"millisecond"),j(0,["SSSS",4],0,(function(){return 10*this.millisecond()})),j(0,["SSSSS",5],0,(function(){return 100*this.millisecond()})),j(0,["SSSSSS",6],0,(function(){return 1e3*this.millisecond()})),j(0,["SSSSSSS",7],0,(function(){return 1e4*this.millisecond()})),j(0,["SSSSSSSS",8],0,(function(){return 1e5*this.millisecond()})),j(0,["SSSSSSSSS",9],0,(function(){return 1e6*this.millisecond()})),rt("millisecond","ms"),st("millisecond",16),Nt("S",kt,yt),Nt("SS",kt,_t),Nt("SSS",kt,bt),ra="SSSS";ra.length<=9;ra+="S")Nt(ra,Ot);function oa(t,e){e[Xt]=ht(1e3*("0."+t))}for(ra="S";ra.length<=9;ra+="S")Lt(ra,oa);function sa(){return this._isUTC?"UTC":""}function ua(){return this._isUTC?"Coordinated Universal Time":""}ia=ft("Milliseconds",!1),j("z",0,0,"zoneAbbr"),j("zz",0,0,"zoneName");var la=S.prototype;function ca(t){return Xn(1e3*t)}function ha(){return Xn.apply(null,arguments).parseZone()}function fa(t){return t}la.add=Nr,la.calendar=zr,la.clone=Ur,la.diff=$r,la.endOf=yi,la.format=ni,la.from=ri,la.fromNow=ii,la.to=ai,la.toNow=oi,la.get=gt,la.invalidAt=Ci,la.isAfter=Wr,la.isBefore=qr,la.isBetween=Gr,la.isSame=Kr,la.isSameOrAfter=Zr,la.isSameOrBefore=Xr,la.isValid=Ti,la.lang=ui,la.locale=si,la.localeData=li,la.max=Jn,la.min=$n,la.parsingFlags=ki,la.set=vt,la.startOf=mi,la.subtract=Vr,la.toArray=Di,la.toObject=Si,la.toDate=wi,la.toISOString=ti,la.inspect=ei,"undefined"!=typeof Symbol&&null!=Symbol.for&&(la[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),la.toJSON=xi,la.toString=Qr,la.unix=bi,la.valueOf=_i,la.creationData=Ei,la.eraName=Pi,la.eraNarrow=Bi,la.eraAbbr=Ri,la.eraYear=Ni,la.year=me,la.isLeapYear=ye,la.weekYear=Wi,la.isoWeekYear=qi,la.quarter=la.quarters=Qi,la.month=he,la.daysInMonth=fe,la.week=la.weeks=Oe,la.isoWeek=la.isoWeeks=Me,la.weeksInYear=Zi,la.weeksInWeekYear=Xi,la.isoWeeksInYear=Gi,la.isoWeeksInISOWeekYear=Ki,la.date=ta,la.day=la.days=We,la.weekday=qe,la.isoWeekday=Ge,la.dayOfYear=ea,la.hour=la.hours=an,la.minute=la.minutes=na,la.second=la.seconds=aa,la.millisecond=la.milliseconds=ia,la.utcOffset=vr,la.utc=yr,la.local=_r,la.parseZone=br,la.hasAlignedHourOffset=wr,la.isDST=Dr,la.isLocal=xr,la.isUtcOffset=Tr,la.isUtc=kr,la.isUTC=kr,la.zoneAbbr=sa,la.zoneName=ua,la.dates=k("dates accessor is deprecated. Use date instead.",ta),la.months=k("months accessor is deprecated. Use month instead",he),la.years=k("years accessor is deprecated. Use year instead",me),la.zone=k("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",mr),la.isDSTShifted=k("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",Sr);var da=B.prototype;function pa(t,e,n,r){var i=_n(),a=g().set(r,e);return i[n](a,t)}function ga(t,e,n){if(h(t)&&(e=t,t=void 0),t=t||"",null!=e)return pa(t,e,n,"month");var r,i=[];for(r=0;r<12;r++)i[r]=pa(t,r,n,"month");return i}function va(t,e,n,r){"boolean"==typeof t?(h(e)&&(n=e,e=void 0),e=e||""):(n=e=t,t=!1,h(e)&&(n=e,e=void 0),e=e||"");var i,a=_n(),o=t?a._week.dow:0,s=[];if(null!=n)return pa(e,(n+o)%7,r,"day");for(i=0;i<7;i++)s[i]=pa(e,(i+o)%7,r,"day");return s}function ma(t,e){return ga(t,e,"months")}function ya(t,e){return ga(t,e,"monthsShort")}function _a(t,e,n){return va(t,e,n,"weekdays")}function ba(t,e,n){return va(t,e,n,"weekdaysShort")}function wa(t,e,n){return va(t,e,n,"weekdaysMin")}da.calendar=N,da.longDateFormat=G,da.invalidDate=Z,da.ordinal=J,da.preparse=fa,da.postformat=fa,da.relativeTime=tt,da.pastFuture=et,da.set=A,da.eras=Oi,da.erasParse=Mi,da.erasConvertYear=Ai,da.erasAbbrRegex=Ii,da.erasNameRegex=Vi,da.erasNarrowRegex=Fi,da.months=oe,da.monthsShort=se,da.monthsParse=le,da.monthsRegex=pe,da.monthsShortRegex=de,da.week=Te,da.firstDayOfYear=Ee,da.firstDayOfWeek=Ce,da.weekdays=Le,da.weekdaysMin=He,da.weekdaysShort=je,da.weekdaysParse=Ue,da.weekdaysRegex=Ke,da.weekdaysShortRegex=Ze,da.weekdaysMinRegex=Xe,da.isPM=nn,da.meridiem=on,vn("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(t){var e=t%10;return t+(1===ht(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th")}}),i.lang=k("moment.lang is deprecated. Use moment.locale instead.",vn),i.langData=k("moment.langData is deprecated. Use moment.localeData instead.",_n);var Da=Math.abs;function Sa(){var t=this._data;return this._milliseconds=Da(this._milliseconds),this._days=Da(this._days),this._months=Da(this._months),t.milliseconds=Da(t.milliseconds),t.seconds=Da(t.seconds),t.minutes=Da(t.minutes),t.hours=Da(t.hours),t.months=Da(t.months),t.years=Da(t.years),this}function xa(t,e,n,r){var i=Or(e,n);return t._milliseconds+=r*i._milliseconds,t._days+=r*i._days,t._months+=r*i._months,t._bubble()}function Ta(t,e){return xa(this,t,e,1)}function ka(t,e){return xa(this,t,e,-1)}function Ca(t){return t<0?Math.floor(t):Math.ceil(t)}function Ea(){var t,e,n,r,i,a=this._milliseconds,o=this._days,s=this._months,u=this._data;return a>=0&&o>=0&&s>=0||a<=0&&o<=0&&s<=0||(a+=864e5*Ca(Ma(s)+o),o=0,s=0),u.milliseconds=a%1e3,t=ct(a/1e3),u.seconds=t%60,e=ct(t/60),u.minutes=e%60,n=ct(e/60),u.hours=n%24,o+=ct(n/24),s+=i=ct(Oa(o)),o-=Ca(Ma(i)),r=ct(s/12),s%=12,u.days=o,u.months=s,u.years=r,this}function Oa(t){return 4800*t/146097}function Ma(t){return 146097*t/4800}function Aa(t){if(!this.isValid())return NaN;var e,n,r=this._milliseconds;if("month"===(t=it(t))||"quarter"===t||"year"===t)switch(e=this._days+r/864e5,n=this._months+Oa(e),t){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(e=this._days+Math.round(Ma(this._months)),t){case"week":return e/7+r/6048e5;case"day":return e+r/864e5;case"hour":return 24*e+r/36e5;case"minute":return 1440*e+r/6e4;case"second":return 86400*e+r/1e3;case"millisecond":return Math.floor(864e5*e)+r;default:throw new Error("Unknown unit "+t)}}function Pa(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*ht(this._months/12):NaN}function Ba(t){return function(){return this.as(t)}}var Ra=Ba("ms"),Na=Ba("s"),Va=Ba("m"),Ia=Ba("h"),Fa=Ba("d"),Ya=Ba("w"),La=Ba("M"),ja=Ba("Q"),Ha=Ba("y");function za(){return Or(this)}function Ua(t){return t=it(t),this.isValid()?this[t+"s"]():NaN}function Wa(t){return function(){return this.isValid()?this._data[t]:NaN}}var qa=Wa("milliseconds"),Ga=Wa("seconds"),Ka=Wa("minutes"),Za=Wa("hours"),Xa=Wa("days"),$a=Wa("months"),Ja=Wa("years");function Qa(){return ct(this.days()/7)}var to=Math.round,eo={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function no(t,e,n,r,i){return i.relativeTime(e||1,!!n,t,r)}function ro(t,e,n,r){var i=Or(t).abs(),a=to(i.as("s")),o=to(i.as("m")),s=to(i.as("h")),u=to(i.as("d")),l=to(i.as("M")),c=to(i.as("w")),h=to(i.as("y")),f=a<=n.ss&&["s",a]||a<n.s&&["ss",a]||o<=1&&["m"]||o<n.m&&["mm",o]||s<=1&&["h"]||s<n.h&&["hh",s]||u<=1&&["d"]||u<n.d&&["dd",u];return null!=n.w&&(f=f||c<=1&&["w"]||c<n.w&&["ww",c]),(f=f||l<=1&&["M"]||l<n.M&&["MM",l]||h<=1&&["y"]||["yy",h])[2]=e,f[3]=+t>0,f[4]=r,no.apply(null,f)}function io(t){return void 0===t?to:"function"==typeof t&&(to=t,!0)}function ao(t,e){return void 0!==eo[t]&&(void 0===e?eo[t]:(eo[t]=e,"s"===t&&(eo.ss=e-1),!0))}function oo(t,e){if(!this.isValid())return this.localeData().invalidDate();var n,r,i=!1,a=eo;return"object"==typeof t&&(e=t,t=!1),"boolean"==typeof t&&(i=t),"object"==typeof e&&(a=Object.assign({},eo,e),null!=e.s&&null==e.ss&&(a.ss=e.s-1)),r=ro(this,!i,a,n=this.localeData()),i&&(r=n.pastFuture(+this,r)),n.postformat(r)}var so=Math.abs;function uo(t){return(t>0)-(t<0)||+t}function lo(){if(!this.isValid())return this.localeData().invalidDate();var t,e,n,r,i,a,o,s,u=so(this._milliseconds)/1e3,l=so(this._days),c=so(this._months),h=this.asSeconds();return h?(t=ct(u/60),e=ct(t/60),u%=60,t%=60,n=ct(c/12),c%=12,r=u?u.toFixed(3).replace(/\.?0+$/,""):"",i=h<0?"-":"",a=uo(this._months)!==uo(h)?"-":"",o=uo(this._days)!==uo(h)?"-":"",s=uo(this._milliseconds)!==uo(h)?"-":"",i+"P"+(n?a+n+"Y":"")+(c?a+c+"M":"")+(l?o+l+"D":"")+(e||t||u?"T":"")+(e?s+e+"H":"")+(t?s+t+"M":"")+(u?s+r+"S":"")):"P0D"}var co=sr.prototype;return co.isValid=ar,co.abs=Sa,co.add=Ta,co.subtract=ka,co.as=Aa,co.asMilliseconds=Ra,co.asSeconds=Na,co.asMinutes=Va,co.asHours=Ia,co.asDays=Fa,co.asWeeks=Ya,co.asMonths=La,co.asQuarters=ja,co.asYears=Ha,co.valueOf=Pa,co._bubble=Ea,co.clone=za,co.get=Ua,co.milliseconds=qa,co.seconds=Ga,co.minutes=Ka,co.hours=Za,co.days=Xa,co.weeks=Qa,co.months=$a,co.years=Ja,co.humanize=oo,co.toISOString=lo,co.toString=lo,co.toJSON=lo,co.locale=si,co.localeData=li,co.toIsoString=k("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",lo),co.lang=ui,j("X",0,0,"unix"),j("x",0,0,"valueOf"),Nt("x",Mt),Nt("X",Bt),Lt("X",(function(t,e,n){n._d=new Date(1e3*parseFloat(t))})),Lt("x",(function(t,e,n){n._d=new Date(ht(t))})),
|
|
1
|
+
import t from"lodash";import e from"axios";import{setAutoFreeze as n,produce as r}from"immer";var i="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function a(){throw new Error("Dynamic requires are not currently supported by rollup-plugin-commonjs")}function o(t,e){return t(e={exports:{}},e.exports),e.exports}var s=o((function(t,e){t.exports=function(){var e,n;function r(){return e.apply(null,arguments)}function i(t){e=t}function o(t){return t instanceof Array||"[object Array]"===Object.prototype.toString.call(t)}function s(t){return null!=t&&"[object Object]"===Object.prototype.toString.call(t)}function u(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function l(t){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(t).length;var e;for(e in t)if(u(t,e))return!1;return!0}function c(t){return void 0===t}function h(t){return"number"==typeof t||"[object Number]"===Object.prototype.toString.call(t)}function f(t){return t instanceof Date||"[object Date]"===Object.prototype.toString.call(t)}function d(t,e){var n,r=[],i=t.length;for(n=0;n<i;++n)r.push(e(t[n],n));return r}function p(t,e){for(var n in e)u(e,n)&&(t[n]=e[n]);return u(e,"toString")&&(t.toString=e.toString),u(e,"valueOf")&&(t.valueOf=e.valueOf),t}function g(t,e,n,r){return Zn(t,e,n,r,!0).utc()}function m(){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 v(t){return null==t._pf&&(t._pf=m()),t._pf}function y(t){if(null==t._isValid){var e=v(t),r=n.call(e.parsedDateParts,(function(t){return null!=t})),i=!isNaN(t._d.getTime())&&e.overflow<0&&!e.empty&&!e.invalidEra&&!e.invalidMonth&&!e.invalidWeekday&&!e.weekdayMismatch&&!e.nullInput&&!e.invalidFormat&&!e.userInvalidated&&(!e.meridiem||e.meridiem&&r);if(t._strict&&(i=i&&0===e.charsLeftOver&&0===e.unusedTokens.length&&void 0===e.bigHour),null!=Object.isFrozen&&Object.isFrozen(t))return i;t._isValid=i}return t._isValid}function _(t){var e=g(NaN);return null!=t?p(v(e),t):v(e).userInvalidated=!0,e}n=Array.prototype.some?Array.prototype.some:function(t){var e,n=Object(this),r=n.length>>>0;for(e=0;e<r;e++)if(e in n&&t.call(this,n[e],e,n))return!0;return!1};var b=r.momentProperties=[],w=!1;function D(t,e){var n,r,i,a=b.length;if(c(e._isAMomentObject)||(t._isAMomentObject=e._isAMomentObject),c(e._i)||(t._i=e._i),c(e._f)||(t._f=e._f),c(e._l)||(t._l=e._l),c(e._strict)||(t._strict=e._strict),c(e._tzm)||(t._tzm=e._tzm),c(e._isUTC)||(t._isUTC=e._isUTC),c(e._offset)||(t._offset=e._offset),c(e._pf)||(t._pf=v(e)),c(e._locale)||(t._locale=e._locale),a>0)for(n=0;n<a;n++)c(i=e[r=b[n]])||(t[r]=i);return t}function S(t){D(this,t),this._d=new Date(null!=t._d?t._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===w&&(w=!0,r.updateOffset(this),w=!1)}function x(t){return t instanceof S||null!=t&&null!=t._isAMomentObject}function T(t){!1===r.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+t)}function k(t,e){var n=!0;return p((function(){if(null!=r.deprecationHandler&&r.deprecationHandler(null,t),n){var i,a,o,s=[],l=arguments.length;for(a=0;a<l;a++){if(i="","object"==typeof arguments[a]){for(o in i+="\n["+a+"] ",arguments[0])u(arguments[0],o)&&(i+=o+": "+arguments[0][o]+", ");i=i.slice(0,-2)}else i=arguments[a];s.push(i)}T(t+"\nArguments: "+Array.prototype.slice.call(s).join("")+"\n"+(new Error).stack),n=!1}return e.apply(this,arguments)}),e)}var C,E={};function M(t,e){null!=r.deprecationHandler&&r.deprecationHandler(t,e),E[t]||(T(e),E[t]=!0)}function O(t){return"undefined"!=typeof Function&&t instanceof Function||"[object Function]"===Object.prototype.toString.call(t)}function A(t){var e,n;for(n in t)u(t,n)&&(O(e=t[n])?this[n]=e:this["_"+n]=e);this._config=t,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function P(t,e){var n,r=p({},t);for(n in e)u(e,n)&&(s(t[n])&&s(e[n])?(r[n]={},p(r[n],t[n]),p(r[n],e[n])):null!=e[n]?r[n]=e[n]:delete r[n]);for(n in t)u(t,n)&&!u(e,n)&&s(t[n])&&(r[n]=p({},r[n]));return r}function B(t){null!=t&&this.set(t)}r.suppressDeprecationWarnings=!1,r.deprecationHandler=null,C=Object.keys?Object.keys:function(t){var e,n=[];for(e in t)u(t,e)&&n.push(e);return n};var R={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function V(t,e,n){var r=this._calendar[t]||this._calendar.sameElse;return O(r)?r.call(e,n):r}function N(t,e,n){var r=""+Math.abs(t),i=e-r.length;return(t>=0?n?"+":"":"-")+Math.pow(10,Math.max(0,i)).toString().substr(1)+r}var I=/(\[[^\[]*\])|(\\)?([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,F=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,Y={},L={};function j(t,e,n,r){var i=r;"string"==typeof r&&(i=function(){return this[r]()}),t&&(L[t]=i),e&&(L[e[0]]=function(){return N(i.apply(this,arguments),e[1],e[2])}),n&&(L[n]=function(){return this.localeData().ordinal(i.apply(this,arguments),t)})}function H(t){return t.match(/\[[\s\S]/)?t.replace(/^\[|\]$/g,""):t.replace(/\\/g,"")}function z(t){var e,n,r=t.match(I);for(e=0,n=r.length;e<n;e++)L[r[e]]?r[e]=L[r[e]]:r[e]=H(r[e]);return function(e){var i,a="";for(i=0;i<n;i++)a+=O(r[i])?r[i].call(e,t):r[i];return a}}function U(t,e){return t.isValid()?(e=W(e,t.localeData()),Y[e]=Y[e]||z(e),Y[e](t)):t.localeData().invalidDate()}function W(t,e){var n=5;function r(t){return e.longDateFormat(t)||t}for(F.lastIndex=0;n>=0&&F.test(t);)t=t.replace(F,r),F.lastIndex=0,n-=1;return t}var q={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 G(t){var e=this._longDateFormat[t],n=this._longDateFormat[t.toUpperCase()];return e||!n?e:(this._longDateFormat[t]=n.match(I).map((function(t){return"MMMM"===t||"MM"===t||"DD"===t||"dddd"===t?t.slice(1):t})).join(""),this._longDateFormat[t])}var K="Invalid date";function Z(){return this._invalidDate}var X="%d",$=/\d{1,2}/;function J(t){return this._ordinal.replace("%d",t)}var Q={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 tt(t,e,n,r){var i=this._relativeTime[n];return O(i)?i(t,e,n,r):i.replace(/%d/i,t)}function et(t,e){var n=this._relativeTime[t>0?"future":"past"];return O(n)?n(e):n.replace(/%s/i,e)}var nt={};function rt(t,e){var n=t.toLowerCase();nt[n]=nt[n+"s"]=nt[e]=t}function it(t){return"string"==typeof t?nt[t]||nt[t.toLowerCase()]:void 0}function at(t){var e,n,r={};for(n in t)u(t,n)&&(e=it(n))&&(r[e]=t[n]);return r}var ot={};function st(t,e){ot[t]=e}function ut(t){var e,n=[];for(e in t)u(t,e)&&n.push({unit:e,priority:ot[e]});return n.sort((function(t,e){return t.priority-e.priority})),n}function lt(t){return t%4==0&&t%100!=0||t%400==0}function ct(t){return t<0?Math.ceil(t)||0:Math.floor(t)}function ht(t){var e=+t,n=0;return 0!==e&&isFinite(e)&&(n=ct(e)),n}function ft(t,e){return function(n){return null!=n?(pt(this,t,n),r.updateOffset(this,e),this):dt(this,t)}}function dt(t,e){return t.isValid()?t._d["get"+(t._isUTC?"UTC":"")+e]():NaN}function pt(t,e,n){t.isValid()&&!isNaN(n)&&("FullYear"===e&<(t.year())&&1===t.month()&&29===t.date()?(n=ht(n),t._d["set"+(t._isUTC?"UTC":"")+e](n,t.month(),te(n,t.month()))):t._d["set"+(t._isUTC?"UTC":"")+e](n))}function gt(t){return O(this[t=it(t)])?this[t]():this}function mt(t,e){if("object"==typeof t){var n,r=ut(t=at(t)),i=r.length;for(n=0;n<i;n++)this[r[n].unit](t[r[n].unit])}else if(O(this[t=it(t)]))return this[t](e);return this}var vt,yt=/\d/,_t=/\d\d/,bt=/\d{3}/,wt=/\d{4}/,Dt=/[+-]?\d{6}/,St=/\d\d?/,xt=/\d\d\d\d?/,Tt=/\d\d\d\d\d\d?/,kt=/\d{1,3}/,Ct=/\d{1,4}/,Et=/[+-]?\d{1,6}/,Mt=/\d+/,Ot=/[+-]?\d+/,At=/Z|[+-]\d\d:?\d\d/gi,Pt=/Z|[+-]\d\d(?::?\d\d)?/gi,Bt=/[+-]?\d+(\.\d{1,3})?/,Rt=/[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;function Vt(t,e,n){vt[t]=O(e)?e:function(t,r){return t&&n?n:e}}function Nt(t,e){return u(vt,t)?vt[t](e._strict,e._locale):new RegExp(It(t))}function It(t){return Ft(t.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,(function(t,e,n,r,i){return e||n||r||i})))}function Ft(t){return t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}vt={};var Yt={};function Lt(t,e){var n,r,i=e;for("string"==typeof t&&(t=[t]),h(e)&&(i=function(t,n){n[e]=ht(t)}),r=t.length,n=0;n<r;n++)Yt[t[n]]=i}function jt(t,e){Lt(t,(function(t,n,r,i){r._w=r._w||{},e(t,r._w,r,i)}))}function Ht(t,e,n){null!=e&&u(Yt,t)&&Yt[t](e,n._a,n,t)}var zt,Ut=0,Wt=1,qt=2,Gt=3,Kt=4,Zt=5,Xt=6,$t=7,Jt=8;function Qt(t,e){return(t%e+e)%e}function te(t,e){if(isNaN(t)||isNaN(e))return NaN;var n=Qt(e,12);return t+=(e-n)/12,1===n?lt(t)?29:28:31-n%7%2}zt=Array.prototype.indexOf?Array.prototype.indexOf:function(t){var e;for(e=0;e<this.length;++e)if(this[e]===t)return e;return-1},j("M",["MM",2],"Mo",(function(){return this.month()+1})),j("MMM",0,0,(function(t){return this.localeData().monthsShort(this,t)})),j("MMMM",0,0,(function(t){return this.localeData().months(this,t)})),rt("month","M"),st("month",8),Vt("M",St),Vt("MM",St,_t),Vt("MMM",(function(t,e){return e.monthsShortRegex(t)})),Vt("MMMM",(function(t,e){return e.monthsRegex(t)})),Lt(["M","MM"],(function(t,e){e[Wt]=ht(t)-1})),Lt(["MMM","MMMM"],(function(t,e,n,r){var i=n._locale.monthsParse(t,r,n._strict);null!=i?e[Wt]=i:v(n).invalidMonth=t}));var ee="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ne="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),re=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,ie=Rt,ae=Rt;function oe(t,e){return t?o(this._months)?this._months[t.month()]:this._months[(this._months.isFormat||re).test(e)?"format":"standalone"][t.month()]:o(this._months)?this._months:this._months.standalone}function se(t,e){return t?o(this._monthsShort)?this._monthsShort[t.month()]:this._monthsShort[re.test(e)?"format":"standalone"][t.month()]:o(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function ue(t,e,n){var r,i,a,o=t.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],r=0;r<12;++r)a=g([2e3,r]),this._shortMonthsParse[r]=this.monthsShort(a,"").toLocaleLowerCase(),this._longMonthsParse[r]=this.months(a,"").toLocaleLowerCase();return n?"MMM"===e?-1!==(i=zt.call(this._shortMonthsParse,o))?i:null:-1!==(i=zt.call(this._longMonthsParse,o))?i:null:"MMM"===e?-1!==(i=zt.call(this._shortMonthsParse,o))||-1!==(i=zt.call(this._longMonthsParse,o))?i:null:-1!==(i=zt.call(this._longMonthsParse,o))||-1!==(i=zt.call(this._shortMonthsParse,o))?i:null}function le(t,e,n){var r,i,a;if(this._monthsParseExact)return ue.call(this,t,e,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),r=0;r<12;r++){if(i=g([2e3,r]),n&&!this._longMonthsParse[r]&&(this._longMonthsParse[r]=new RegExp("^"+this.months(i,"").replace(".","")+"$","i"),this._shortMonthsParse[r]=new RegExp("^"+this.monthsShort(i,"").replace(".","")+"$","i")),n||this._monthsParse[r]||(a="^"+this.months(i,"")+"|^"+this.monthsShort(i,""),this._monthsParse[r]=new RegExp(a.replace(".",""),"i")),n&&"MMMM"===e&&this._longMonthsParse[r].test(t))return r;if(n&&"MMM"===e&&this._shortMonthsParse[r].test(t))return r;if(!n&&this._monthsParse[r].test(t))return r}}function ce(t,e){var n;if(!t.isValid())return t;if("string"==typeof e)if(/^\d+$/.test(e))e=ht(e);else if(!h(e=t.localeData().monthsParse(e)))return t;return n=Math.min(t.date(),te(t.year(),e)),t._d["set"+(t._isUTC?"UTC":"")+"Month"](e,n),t}function he(t){return null!=t?(ce(this,t),r.updateOffset(this,!0),this):dt(this,"Month")}function fe(){return te(this.year(),this.month())}function de(t){return this._monthsParseExact?(u(this,"_monthsRegex")||ge.call(this),t?this._monthsShortStrictRegex:this._monthsShortRegex):(u(this,"_monthsShortRegex")||(this._monthsShortRegex=ie),this._monthsShortStrictRegex&&t?this._monthsShortStrictRegex:this._monthsShortRegex)}function pe(t){return this._monthsParseExact?(u(this,"_monthsRegex")||ge.call(this),t?this._monthsStrictRegex:this._monthsRegex):(u(this,"_monthsRegex")||(this._monthsRegex=ae),this._monthsStrictRegex&&t?this._monthsStrictRegex:this._monthsRegex)}function ge(){function t(t,e){return e.length-t.length}var e,n,r=[],i=[],a=[];for(e=0;e<12;e++)n=g([2e3,e]),r.push(this.monthsShort(n,"")),i.push(this.months(n,"")),a.push(this.months(n,"")),a.push(this.monthsShort(n,""));for(r.sort(t),i.sort(t),a.sort(t),e=0;e<12;e++)r[e]=Ft(r[e]),i[e]=Ft(i[e]);for(e=0;e<24;e++)a[e]=Ft(a[e]);this._monthsRegex=new RegExp("^("+a.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+i.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+r.join("|")+")","i")}function me(t){return lt(t)?366:365}j("Y",0,0,(function(){var t=this.year();return t<=9999?N(t,4):"+"+t})),j(0,["YY",2],0,(function(){return this.year()%100})),j(0,["YYYY",4],0,"year"),j(0,["YYYYY",5],0,"year"),j(0,["YYYYYY",6,!0],0,"year"),rt("year","y"),st("year",1),Vt("Y",Ot),Vt("YY",St,_t),Vt("YYYY",Ct,wt),Vt("YYYYY",Et,Dt),Vt("YYYYYY",Et,Dt),Lt(["YYYYY","YYYYYY"],Ut),Lt("YYYY",(function(t,e){e[Ut]=2===t.length?r.parseTwoDigitYear(t):ht(t)})),Lt("YY",(function(t,e){e[Ut]=r.parseTwoDigitYear(t)})),Lt("Y",(function(t,e){e[Ut]=parseInt(t,10)})),r.parseTwoDigitYear=function(t){return ht(t)+(ht(t)>68?1900:2e3)};var ve=ft("FullYear",!0);function ye(){return lt(this.year())}function _e(t,e,n,r,i,a,o){var s;return t<100&&t>=0?(s=new Date(t+400,e,n,r,i,a,o),isFinite(s.getFullYear())&&s.setFullYear(t)):s=new Date(t,e,n,r,i,a,o),s}function be(t){var e,n;return t<100&&t>=0?((n=Array.prototype.slice.call(arguments))[0]=t+400,e=new Date(Date.UTC.apply(null,n)),isFinite(e.getUTCFullYear())&&e.setUTCFullYear(t)):e=new Date(Date.UTC.apply(null,arguments)),e}function we(t,e,n){var r=7+e-n;return-(7+be(t,0,r).getUTCDay()-e)%7+r-1}function De(t,e,n,r,i){var a,o,s=1+7*(e-1)+(7+n-r)%7+we(t,r,i);return s<=0?o=me(a=t-1)+s:s>me(t)?(a=t+1,o=s-me(t)):(a=t,o=s),{year:a,dayOfYear:o}}function Se(t,e,n){var r,i,a=we(t.year(),e,n),o=Math.floor((t.dayOfYear()-a-1)/7)+1;return o<1?r=o+xe(i=t.year()-1,e,n):o>xe(t.year(),e,n)?(r=o-xe(t.year(),e,n),i=t.year()+1):(i=t.year(),r=o),{week:r,year:i}}function xe(t,e,n){var r=we(t,e,n),i=we(t+1,e,n);return(me(t)-r+i)/7}function Te(t){return Se(t,this._week.dow,this._week.doy).week}j("w",["ww",2],"wo","week"),j("W",["WW",2],"Wo","isoWeek"),rt("week","w"),rt("isoWeek","W"),st("week",5),st("isoWeek",5),Vt("w",St),Vt("ww",St,_t),Vt("W",St),Vt("WW",St,_t),jt(["w","ww","W","WW"],(function(t,e,n,r){e[r.substr(0,1)]=ht(t)}));var ke={dow:0,doy:6};function Ce(){return this._week.dow}function Ee(){return this._week.doy}function Me(t){var e=this.localeData().week(this);return null==t?e:this.add(7*(t-e),"d")}function Oe(t){var e=Se(this,1,4).week;return null==t?e:this.add(7*(t-e),"d")}function Ae(t,e){return"string"!=typeof t?t:isNaN(t)?"number"==typeof(t=e.weekdaysParse(t))?t:null:parseInt(t,10)}function Pe(t,e){return"string"==typeof t?e.weekdaysParse(t)%7||7:isNaN(t)?null:t}function Be(t,e){return t.slice(e,7).concat(t.slice(0,e))}j("d",0,"do","day"),j("dd",0,0,(function(t){return this.localeData().weekdaysMin(this,t)})),j("ddd",0,0,(function(t){return this.localeData().weekdaysShort(this,t)})),j("dddd",0,0,(function(t){return this.localeData().weekdays(this,t)})),j("e",0,0,"weekday"),j("E",0,0,"isoWeekday"),rt("day","d"),rt("weekday","e"),rt("isoWeekday","E"),st("day",11),st("weekday",11),st("isoWeekday",11),Vt("d",St),Vt("e",St),Vt("E",St),Vt("dd",(function(t,e){return e.weekdaysMinRegex(t)})),Vt("ddd",(function(t,e){return e.weekdaysShortRegex(t)})),Vt("dddd",(function(t,e){return e.weekdaysRegex(t)})),jt(["dd","ddd","dddd"],(function(t,e,n,r){var i=n._locale.weekdaysParse(t,r,n._strict);null!=i?e.d=i:v(n).invalidWeekday=t})),jt(["d","e","E"],(function(t,e,n,r){e[r]=ht(t)}));var Re="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Ve="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Ne="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Ie=Rt,Fe=Rt,Ye=Rt;function Le(t,e){var n=o(this._weekdays)?this._weekdays:this._weekdays[t&&!0!==t&&this._weekdays.isFormat.test(e)?"format":"standalone"];return!0===t?Be(n,this._week.dow):t?n[t.day()]:n}function je(t){return!0===t?Be(this._weekdaysShort,this._week.dow):t?this._weekdaysShort[t.day()]:this._weekdaysShort}function He(t){return!0===t?Be(this._weekdaysMin,this._week.dow):t?this._weekdaysMin[t.day()]:this._weekdaysMin}function ze(t,e,n){var r,i,a,o=t.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)a=g([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?"dddd"===e?-1!==(i=zt.call(this._weekdaysParse,o))?i:null:"ddd"===e?-1!==(i=zt.call(this._shortWeekdaysParse,o))?i:null:-1!==(i=zt.call(this._minWeekdaysParse,o))?i:null:"dddd"===e?-1!==(i=zt.call(this._weekdaysParse,o))||-1!==(i=zt.call(this._shortWeekdaysParse,o))||-1!==(i=zt.call(this._minWeekdaysParse,o))?i:null:"ddd"===e?-1!==(i=zt.call(this._shortWeekdaysParse,o))||-1!==(i=zt.call(this._weekdaysParse,o))||-1!==(i=zt.call(this._minWeekdaysParse,o))?i:null:-1!==(i=zt.call(this._minWeekdaysParse,o))||-1!==(i=zt.call(this._weekdaysParse,o))||-1!==(i=zt.call(this._shortWeekdaysParse,o))?i:null}function Ue(t,e,n){var r,i,a;if(this._weekdaysParseExact)return ze.call(this,t,e,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(i=g([2e3,1]).day(r),n&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(i,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(i,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(i,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[r]||(a="^"+this.weekdays(i,"")+"|^"+this.weekdaysShort(i,"")+"|^"+this.weekdaysMin(i,""),this._weekdaysParse[r]=new RegExp(a.replace(".",""),"i")),n&&"dddd"===e&&this._fullWeekdaysParse[r].test(t))return r;if(n&&"ddd"===e&&this._shortWeekdaysParse[r].test(t))return r;if(n&&"dd"===e&&this._minWeekdaysParse[r].test(t))return r;if(!n&&this._weekdaysParse[r].test(t))return r}}function We(t){if(!this.isValid())return null!=t?this:NaN;var e=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=t?(t=Ae(t,this.localeData()),this.add(t-e,"d")):e}function qe(t){if(!this.isValid())return null!=t?this:NaN;var e=(this.day()+7-this.localeData()._week.dow)%7;return null==t?e:this.add(t-e,"d")}function Ge(t){if(!this.isValid())return null!=t?this:NaN;if(null!=t){var e=Pe(t,this.localeData());return this.day(this.day()%7?e:e-7)}return this.day()||7}function Ke(t){return this._weekdaysParseExact?(u(this,"_weekdaysRegex")||$e.call(this),t?this._weekdaysStrictRegex:this._weekdaysRegex):(u(this,"_weekdaysRegex")||(this._weekdaysRegex=Ie),this._weekdaysStrictRegex&&t?this._weekdaysStrictRegex:this._weekdaysRegex)}function Ze(t){return this._weekdaysParseExact?(u(this,"_weekdaysRegex")||$e.call(this),t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(u(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Fe),this._weekdaysShortStrictRegex&&t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function Xe(t){return this._weekdaysParseExact?(u(this,"_weekdaysRegex")||$e.call(this),t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(u(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Ye),this._weekdaysMinStrictRegex&&t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function $e(){function t(t,e){return e.length-t.length}var e,n,r,i,a,o=[],s=[],u=[],l=[];for(e=0;e<7;e++)n=g([2e3,1]).day(e),r=Ft(this.weekdaysMin(n,"")),i=Ft(this.weekdaysShort(n,"")),a=Ft(this.weekdays(n,"")),o.push(r),s.push(i),u.push(a),l.push(r),l.push(i),l.push(a);o.sort(t),s.sort(t),u.sort(t),l.sort(t),this._weekdaysRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+u.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+o.join("|")+")","i")}function Je(){return this.hours()%12||12}function Qe(){return this.hours()||24}function tn(t,e){j(t,0,0,(function(){return this.localeData().meridiem(this.hours(),this.minutes(),e)}))}function en(t,e){return e._meridiemParse}function nn(t){return"p"===(t+"").toLowerCase().charAt(0)}j("H",["HH",2],0,"hour"),j("h",["hh",2],0,Je),j("k",["kk",2],0,Qe),j("hmm",0,0,(function(){return""+Je.apply(this)+N(this.minutes(),2)})),j("hmmss",0,0,(function(){return""+Je.apply(this)+N(this.minutes(),2)+N(this.seconds(),2)})),j("Hmm",0,0,(function(){return""+this.hours()+N(this.minutes(),2)})),j("Hmmss",0,0,(function(){return""+this.hours()+N(this.minutes(),2)+N(this.seconds(),2)})),tn("a",!0),tn("A",!1),rt("hour","h"),st("hour",13),Vt("a",en),Vt("A",en),Vt("H",St),Vt("h",St),Vt("k",St),Vt("HH",St,_t),Vt("hh",St,_t),Vt("kk",St,_t),Vt("hmm",xt),Vt("hmmss",Tt),Vt("Hmm",xt),Vt("Hmmss",Tt),Lt(["H","HH"],Gt),Lt(["k","kk"],(function(t,e,n){var r=ht(t);e[Gt]=24===r?0:r})),Lt(["a","A"],(function(t,e,n){n._isPm=n._locale.isPM(t),n._meridiem=t})),Lt(["h","hh"],(function(t,e,n){e[Gt]=ht(t),v(n).bigHour=!0})),Lt("hmm",(function(t,e,n){var r=t.length-2;e[Gt]=ht(t.substr(0,r)),e[Kt]=ht(t.substr(r)),v(n).bigHour=!0})),Lt("hmmss",(function(t,e,n){var r=t.length-4,i=t.length-2;e[Gt]=ht(t.substr(0,r)),e[Kt]=ht(t.substr(r,2)),e[Zt]=ht(t.substr(i)),v(n).bigHour=!0})),Lt("Hmm",(function(t,e,n){var r=t.length-2;e[Gt]=ht(t.substr(0,r)),e[Kt]=ht(t.substr(r))})),Lt("Hmmss",(function(t,e,n){var r=t.length-4,i=t.length-2;e[Gt]=ht(t.substr(0,r)),e[Kt]=ht(t.substr(r,2)),e[Zt]=ht(t.substr(i))}));var rn=/[ap]\.?m?\.?/i,an=ft("Hours",!0);function on(t,e,n){return t>11?n?"pm":"PM":n?"am":"AM"}var sn,un={calendar:R,longDateFormat:q,invalidDate:K,ordinal:X,dayOfMonthOrdinalParse:$,relativeTime:Q,months:ee,monthsShort:ne,week:ke,weekdays:Re,weekdaysMin:Ne,weekdaysShort:Ve,meridiemParse:rn},ln={},cn={};function hn(t,e){var n,r=Math.min(t.length,e.length);for(n=0;n<r;n+=1)if(t[n]!==e[n])return n;return r}function fn(t){return t?t.toLowerCase().replace("_","-"):t}function dn(t){for(var e,n,r,i,a=0;a<t.length;){for(e=(i=fn(t[a]).split("-")).length,n=(n=fn(t[a+1]))?n.split("-"):null;e>0;){if(r=gn(i.slice(0,e).join("-")))return r;if(n&&n.length>=e&&hn(i,n)>=e-1)break;e--}a++}return sn}function pn(t){return null!=t.match("^[^/\\\\]*$")}function gn(e){var n=null;if(void 0===ln[e]&&t&&t.exports&&pn(e))try{n=sn._abbr,a(),mn(n)}catch(t){ln[e]=null}return ln[e]}function mn(t,e){var n;return t&&((n=c(e)?_n(t):vn(t,e))?sn=n:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+t+" not found. Did you forget to load it?")),sn._abbr}function vn(t,e){if(null!==e){var n,r=un;if(e.abbr=t,null!=ln[t])M("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=ln[t]._config;else if(null!=e.parentLocale)if(null!=ln[e.parentLocale])r=ln[e.parentLocale]._config;else{if(null==(n=gn(e.parentLocale)))return cn[e.parentLocale]||(cn[e.parentLocale]=[]),cn[e.parentLocale].push({name:t,config:e}),null;r=n._config}return ln[t]=new B(P(r,e)),cn[t]&&cn[t].forEach((function(t){vn(t.name,t.config)})),mn(t),ln[t]}return delete ln[t],null}function yn(t,e){if(null!=e){var n,r,i=un;null!=ln[t]&&null!=ln[t].parentLocale?ln[t].set(P(ln[t]._config,e)):(null!=(r=gn(t))&&(i=r._config),e=P(i,e),null==r&&(e.abbr=t),(n=new B(e)).parentLocale=ln[t],ln[t]=n),mn(t)}else null!=ln[t]&&(null!=ln[t].parentLocale?(ln[t]=ln[t].parentLocale,t===mn()&&mn(t)):null!=ln[t]&&delete ln[t]);return ln[t]}function _n(t){var e;if(t&&t._locale&&t._locale._abbr&&(t=t._locale._abbr),!t)return sn;if(!o(t)){if(e=gn(t))return e;t=[t]}return dn(t)}function bn(){return C(ln)}function wn(t){var e,n=t._a;return n&&-2===v(t).overflow&&(e=n[Wt]<0||n[Wt]>11?Wt:n[qt]<1||n[qt]>te(n[Ut],n[Wt])?qt:n[Gt]<0||n[Gt]>24||24===n[Gt]&&(0!==n[Kt]||0!==n[Zt]||0!==n[Xt])?Gt:n[Kt]<0||n[Kt]>59?Kt:n[Zt]<0||n[Zt]>59?Zt:n[Xt]<0||n[Xt]>999?Xt:-1,v(t)._overflowDayOfYear&&(e<Ut||e>qt)&&(e=qt),v(t)._overflowWeeks&&-1===e&&(e=$t),v(t)._overflowWeekday&&-1===e&&(e=Jt),v(t).overflow=e),t}var Dn=/^\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)?)?$/,Sn=/^\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)?)?$/,xn=/Z|[+-]\d\d(?::?\d\d)?/,Tn=[["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]],kn=[["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/]],Cn=/^\/?Date\((-?\d+)/i,En=/^(?:(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}))$/,Mn={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function On(t){var e,n,r,i,a,o,s=t._i,u=Dn.exec(s)||Sn.exec(s),l=Tn.length,c=kn.length;if(u){for(v(t).iso=!0,e=0,n=l;e<n;e++)if(Tn[e][1].exec(u[1])){i=Tn[e][0],r=!1!==Tn[e][2];break}if(null==i)return void(t._isValid=!1);if(u[3]){for(e=0,n=c;e<n;e++)if(kn[e][1].exec(u[3])){a=(u[2]||" ")+kn[e][0];break}if(null==a)return void(t._isValid=!1)}if(!r&&null!=a)return void(t._isValid=!1);if(u[4]){if(!xn.exec(u[4]))return void(t._isValid=!1);o="Z"}t._f=i+(a||"")+(o||""),Hn(t)}else t._isValid=!1}function An(t,e,n,r,i,a){var o=[Pn(t),ne.indexOf(e),parseInt(n,10),parseInt(r,10),parseInt(i,10)];return a&&o.push(parseInt(a,10)),o}function Pn(t){var e=parseInt(t,10);return e<=49?2e3+e:e<=999?1900+e:e}function Bn(t){return t.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function Rn(t,e,n){return!t||Ve.indexOf(t)===new Date(e[0],e[1],e[2]).getDay()||(v(n).weekdayMismatch=!0,n._isValid=!1,!1)}function Vn(t,e,n){if(t)return Mn[t];if(e)return 0;var r=parseInt(n,10),i=r%100;return(r-i)/100*60+i}function Nn(t){var e,n=En.exec(Bn(t._i));if(n){if(e=An(n[4],n[3],n[2],n[5],n[6],n[7]),!Rn(n[1],e,t))return;t._a=e,t._tzm=Vn(n[8],n[9],n[10]),t._d=be.apply(null,t._a),t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),v(t).rfc2822=!0}else t._isValid=!1}function In(t){var e=Cn.exec(t._i);null===e?(On(t),!1===t._isValid&&(delete t._isValid,Nn(t),!1===t._isValid&&(delete t._isValid,t._strict?t._isValid=!1:r.createFromInputFallback(t)))):t._d=new Date(+e[1])}function Fn(t,e,n){return null!=t?t:null!=e?e:n}function Yn(t){var e=new Date(r.now());return t._useUTC?[e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()]:[e.getFullYear(),e.getMonth(),e.getDate()]}function Ln(t){var e,n,r,i,a,o=[];if(!t._d){for(r=Yn(t),t._w&&null==t._a[qt]&&null==t._a[Wt]&&jn(t),null!=t._dayOfYear&&(a=Fn(t._a[Ut],r[Ut]),(t._dayOfYear>me(a)||0===t._dayOfYear)&&(v(t)._overflowDayOfYear=!0),n=be(a,0,t._dayOfYear),t._a[Wt]=n.getUTCMonth(),t._a[qt]=n.getUTCDate()),e=0;e<3&&null==t._a[e];++e)t._a[e]=o[e]=r[e];for(;e<7;e++)t._a[e]=o[e]=null==t._a[e]?2===e?1:0:t._a[e];24===t._a[Gt]&&0===t._a[Kt]&&0===t._a[Zt]&&0===t._a[Xt]&&(t._nextDay=!0,t._a[Gt]=0),t._d=(t._useUTC?be:_e).apply(null,o),i=t._useUTC?t._d.getUTCDay():t._d.getDay(),null!=t._tzm&&t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),t._nextDay&&(t._a[Gt]=24),t._w&&void 0!==t._w.d&&t._w.d!==i&&(v(t).weekdayMismatch=!0)}}function jn(t){var e,n,r,i,a,o,s,u,l;null!=(e=t._w).GG||null!=e.W||null!=e.E?(a=1,o=4,n=Fn(e.GG,t._a[Ut],Se(Xn(),1,4).year),r=Fn(e.W,1),((i=Fn(e.E,1))<1||i>7)&&(u=!0)):(a=t._locale._week.dow,o=t._locale._week.doy,l=Se(Xn(),a,o),n=Fn(e.gg,t._a[Ut],l.year),r=Fn(e.w,l.week),null!=e.d?((i=e.d)<0||i>6)&&(u=!0):null!=e.e?(i=e.e+a,(e.e<0||e.e>6)&&(u=!0)):i=a),r<1||r>xe(n,a,o)?v(t)._overflowWeeks=!0:null!=u?v(t)._overflowWeekday=!0:(s=De(n,r,i,a,o),t._a[Ut]=s.year,t._dayOfYear=s.dayOfYear)}function Hn(t){if(t._f!==r.ISO_8601)if(t._f!==r.RFC_2822){t._a=[],v(t).empty=!0;var e,n,i,a,o,s,u,l=""+t._i,c=l.length,h=0;for(u=(i=W(t._f,t._locale).match(I)||[]).length,e=0;e<u;e++)a=i[e],(n=(l.match(Nt(a,t))||[])[0])&&((o=l.substr(0,l.indexOf(n))).length>0&&v(t).unusedInput.push(o),l=l.slice(l.indexOf(n)+n.length),h+=n.length),L[a]?(n?v(t).empty=!1:v(t).unusedTokens.push(a),Ht(a,n,t)):t._strict&&!n&&v(t).unusedTokens.push(a);v(t).charsLeftOver=c-h,l.length>0&&v(t).unusedInput.push(l),t._a[Gt]<=12&&!0===v(t).bigHour&&t._a[Gt]>0&&(v(t).bigHour=void 0),v(t).parsedDateParts=t._a.slice(0),v(t).meridiem=t._meridiem,t._a[Gt]=zn(t._locale,t._a[Gt],t._meridiem),null!==(s=v(t).era)&&(t._a[Ut]=t._locale.erasConvertYear(s,t._a[Ut])),Ln(t),wn(t)}else Nn(t);else On(t)}function zn(t,e,n){var r;return null==n?e:null!=t.meridiemHour?t.meridiemHour(e,n):null!=t.isPM?((r=t.isPM(n))&&e<12&&(e+=12),r||12!==e||(e=0),e):e}function Un(t){var e,n,r,i,a,o,s=!1,u=t._f.length;if(0===u)return v(t).invalidFormat=!0,void(t._d=new Date(NaN));for(i=0;i<u;i++)a=0,o=!1,e=D({},t),null!=t._useUTC&&(e._useUTC=t._useUTC),e._f=t._f[i],Hn(e),y(e)&&(o=!0),a+=v(e).charsLeftOver,a+=10*v(e).unusedTokens.length,v(e).score=a,s?a<r&&(r=a,n=e):(null==r||a<r||o)&&(r=a,n=e,o&&(s=!0));p(t,n||e)}function Wn(t){if(!t._d){var e=at(t._i),n=void 0===e.day?e.date:e.day;t._a=d([e.year,e.month,n,e.hour,e.minute,e.second,e.millisecond],(function(t){return t&&parseInt(t,10)})),Ln(t)}}function qn(t){var e=new S(wn(Gn(t)));return e._nextDay&&(e.add(1,"d"),e._nextDay=void 0),e}function Gn(t){var e=t._i,n=t._f;return t._locale=t._locale||_n(t._l),null===e||void 0===n&&""===e?_({nullInput:!0}):("string"==typeof e&&(t._i=e=t._locale.preparse(e)),x(e)?new S(wn(e)):(f(e)?t._d=e:o(n)?Un(t):n?Hn(t):Kn(t),y(t)||(t._d=null),t))}function Kn(t){var e=t._i;c(e)?t._d=new Date(r.now()):f(e)?t._d=new Date(e.valueOf()):"string"==typeof e?In(t):o(e)?(t._a=d(e.slice(0),(function(t){return parseInt(t,10)})),Ln(t)):s(e)?Wn(t):h(e)?t._d=new Date(e):r.createFromInputFallback(t)}function Zn(t,e,n,r,i){var a={};return!0!==e&&!1!==e||(r=e,e=void 0),!0!==n&&!1!==n||(r=n,n=void 0),(s(t)&&l(t)||o(t)&&0===t.length)&&(t=void 0),a._isAMomentObject=!0,a._useUTC=a._isUTC=i,a._l=n,a._i=t,a._f=e,a._strict=r,qn(a)}function Xn(t,e,n,r){return Zn(t,e,n,r,!1)}r.createFromInputFallback=k("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",(function(t){t._d=new Date(t._i+(t._useUTC?" UTC":""))})),r.ISO_8601=function(){},r.RFC_2822=function(){};var $n=k("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var t=Xn.apply(null,arguments);return this.isValid()&&t.isValid()?t<this?this:t:_()})),Jn=k("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var t=Xn.apply(null,arguments);return this.isValid()&&t.isValid()?t>this?this:t:_()}));function Qn(t,e){var n,r;if(1===e.length&&o(e[0])&&(e=e[0]),!e.length)return Xn();for(n=e[0],r=1;r<e.length;++r)e[r].isValid()&&!e[r][t](n)||(n=e[r]);return n}function tr(){return Qn("isBefore",[].slice.call(arguments,0))}function er(){return Qn("isAfter",[].slice.call(arguments,0))}var nr=function(){return Date.now?Date.now():+new Date},rr=["year","quarter","month","week","day","hour","minute","second","millisecond"];function ir(t){var e,n,r=!1,i=rr.length;for(e in t)if(u(t,e)&&(-1===zt.call(rr,e)||null!=t[e]&&isNaN(t[e])))return!1;for(n=0;n<i;++n)if(t[rr[n]]){if(r)return!1;parseFloat(t[rr[n]])!==ht(t[rr[n]])&&(r=!0)}return!0}function ar(){return this._isValid}function or(){return Mr(NaN)}function sr(t){var e=at(t),n=e.year||0,r=e.quarter||0,i=e.month||0,a=e.week||e.isoWeek||0,o=e.day||0,s=e.hour||0,u=e.minute||0,l=e.second||0,c=e.millisecond||0;this._isValid=ir(e),this._milliseconds=+c+1e3*l+6e4*u+1e3*s*60*60,this._days=+o+7*a,this._months=+i+3*r+12*n,this._data={},this._locale=_n(),this._bubble()}function ur(t){return t instanceof sr}function lr(t){return t<0?-1*Math.round(-1*t):Math.round(t)}function cr(t,e,n){var r,i=Math.min(t.length,e.length),a=Math.abs(t.length-e.length),o=0;for(r=0;r<i;r++)(n&&t[r]!==e[r]||!n&&ht(t[r])!==ht(e[r]))&&o++;return o+a}function hr(t,e){j(t,0,0,(function(){var t=this.utcOffset(),n="+";return t<0&&(t=-t,n="-"),n+N(~~(t/60),2)+e+N(~~t%60,2)}))}hr("Z",":"),hr("ZZ",""),Vt("Z",Pt),Vt("ZZ",Pt),Lt(["Z","ZZ"],(function(t,e,n){n._useUTC=!0,n._tzm=dr(Pt,t)}));var fr=/([\+\-]|\d\d)/gi;function dr(t,e){var n,r,i=(e||"").match(t);return null===i?null:0===(r=60*(n=((i[i.length-1]||[])+"").match(fr)||["-",0,0])[1]+ht(n[2]))?0:"+"===n[0]?r:-r}function pr(t,e){var n,i;return e._isUTC?(n=e.clone(),i=(x(t)||f(t)?t.valueOf():Xn(t).valueOf())-n.valueOf(),n._d.setTime(n._d.valueOf()+i),r.updateOffset(n,!1),n):Xn(t).local()}function gr(t){return-Math.round(t._d.getTimezoneOffset())}function mr(t,e,n){var i,a=this._offset||0;if(!this.isValid())return null!=t?this:NaN;if(null!=t){if("string"==typeof t){if(null===(t=dr(Pt,t)))return this}else Math.abs(t)<16&&!n&&(t*=60);return!this._isUTC&&e&&(i=gr(this)),this._offset=t,this._isUTC=!0,null!=i&&this.add(i,"m"),a!==t&&(!e||this._changeInProgress?Rr(this,Mr(t-a,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,r.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?a:gr(this)}function vr(t,e){return null!=t?("string"!=typeof t&&(t=-t),this.utcOffset(t,e),this):-this.utcOffset()}function yr(t){return this.utcOffset(0,t)}function _r(t){return this._isUTC&&(this.utcOffset(0,t),this._isUTC=!1,t&&this.subtract(gr(this),"m")),this}function br(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var t=dr(At,this._i);null!=t?this.utcOffset(t):this.utcOffset(0,!0)}return this}function wr(t){return!!this.isValid()&&(t=t?Xn(t).utcOffset():0,(this.utcOffset()-t)%60==0)}function Dr(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function Sr(){if(!c(this._isDSTShifted))return this._isDSTShifted;var t,e={};return D(e,this),(e=Gn(e))._a?(t=e._isUTC?g(e._a):Xn(e._a),this._isDSTShifted=this.isValid()&&cr(e._a,t.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function xr(){return!!this.isValid()&&!this._isUTC}function Tr(){return!!this.isValid()&&this._isUTC}function kr(){return!!this.isValid()&&this._isUTC&&0===this._offset}r.updateOffset=function(){};var Cr=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Er=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Mr(t,e){var n,r,i,a=t,o=null;return ur(t)?a={ms:t._milliseconds,d:t._days,M:t._months}:h(t)||!isNaN(+t)?(a={},e?a[e]=+t:a.milliseconds=+t):(o=Cr.exec(t))?(n="-"===o[1]?-1:1,a={y:0,d:ht(o[qt])*n,h:ht(o[Gt])*n,m:ht(o[Kt])*n,s:ht(o[Zt])*n,ms:ht(lr(1e3*o[Xt]))*n}):(o=Er.exec(t))?(n="-"===o[1]?-1:1,a={y:Or(o[2],n),M:Or(o[3],n),w:Or(o[4],n),d:Or(o[5],n),h:Or(o[6],n),m:Or(o[7],n),s:Or(o[8],n)}):null==a?a={}:"object"==typeof a&&("from"in a||"to"in a)&&(i=Pr(Xn(a.from),Xn(a.to)),(a={}).ms=i.milliseconds,a.M=i.months),r=new sr(a),ur(t)&&u(t,"_locale")&&(r._locale=t._locale),ur(t)&&u(t,"_isValid")&&(r._isValid=t._isValid),r}function Or(t,e){var n=t&&parseFloat(t.replace(",","."));return(isNaN(n)?0:n)*e}function Ar(t,e){var n={};return n.months=e.month()-t.month()+12*(e.year()-t.year()),t.clone().add(n.months,"M").isAfter(e)&&--n.months,n.milliseconds=+e-+t.clone().add(n.months,"M"),n}function Pr(t,e){var n;return t.isValid()&&e.isValid()?(e=pr(e,t),t.isBefore(e)?n=Ar(t,e):((n=Ar(e,t)).milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}function Br(t,e){return function(n,r){var i;return null===r||isNaN(+r)||(M(e,"moment()."+e+"(period, number) is deprecated. Please use moment()."+e+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),i=n,n=r,r=i),Rr(this,Mr(n,r),t),this}}function Rr(t,e,n,i){var a=e._milliseconds,o=lr(e._days),s=lr(e._months);t.isValid()&&(i=null==i||i,s&&ce(t,dt(t,"Month")+s*n),o&&pt(t,"Date",dt(t,"Date")+o*n),a&&t._d.setTime(t._d.valueOf()+a*n),i&&r.updateOffset(t,o||s))}Mr.fn=sr.prototype,Mr.invalid=or;var Vr=Br(1,"add"),Nr=Br(-1,"subtract");function Ir(t){return"string"==typeof t||t instanceof String}function Fr(t){return x(t)||f(t)||Ir(t)||h(t)||Lr(t)||Yr(t)||null==t}function Yr(t){var e,n,r=s(t)&&!l(t),i=!1,a=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],o=a.length;for(e=0;e<o;e+=1)n=a[e],i=i||u(t,n);return r&&i}function Lr(t){var e=o(t),n=!1;return e&&(n=0===t.filter((function(e){return!h(e)&&Ir(t)})).length),e&&n}function jr(t){var e,n,r=s(t)&&!l(t),i=!1,a=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"];for(e=0;e<a.length;e+=1)n=a[e],i=i||u(t,n);return r&&i}function Hr(t,e){var n=t.diff(e,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"}function zr(t,e){1===arguments.length&&(arguments[0]?Fr(arguments[0])?(t=arguments[0],e=void 0):jr(arguments[0])&&(e=arguments[0],t=void 0):(t=void 0,e=void 0));var n=t||Xn(),i=pr(n,this).startOf("day"),a=r.calendarFormat(this,i)||"sameElse",o=e&&(O(e[a])?e[a].call(this,n):e[a]);return this.format(o||this.localeData().calendar(a,this,Xn(n)))}function Ur(){return new S(this)}function Wr(t,e){var n=x(t)?t:Xn(t);return!(!this.isValid()||!n.isValid())&&("millisecond"===(e=it(e)||"millisecond")?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(e).valueOf())}function qr(t,e){var n=x(t)?t:Xn(t);return!(!this.isValid()||!n.isValid())&&("millisecond"===(e=it(e)||"millisecond")?this.valueOf()<n.valueOf():this.clone().endOf(e).valueOf()<n.valueOf())}function Gr(t,e,n,r){var i=x(t)?t:Xn(t),a=x(e)?e:Xn(e);return!!(this.isValid()&&i.isValid()&&a.isValid())&&("("===(r=r||"()")[0]?this.isAfter(i,n):!this.isBefore(i,n))&&(")"===r[1]?this.isBefore(a,n):!this.isAfter(a,n))}function Kr(t,e){var n,r=x(t)?t:Xn(t);return!(!this.isValid()||!r.isValid())&&("millisecond"===(e=it(e)||"millisecond")?this.valueOf()===r.valueOf():(n=r.valueOf(),this.clone().startOf(e).valueOf()<=n&&n<=this.clone().endOf(e).valueOf()))}function Zr(t,e){return this.isSame(t,e)||this.isAfter(t,e)}function Xr(t,e){return this.isSame(t,e)||this.isBefore(t,e)}function $r(t,e,n){var r,i,a;if(!this.isValid())return NaN;if(!(r=pr(t,this)).isValid())return NaN;switch(i=6e4*(r.utcOffset()-this.utcOffset()),e=it(e)){case"year":a=Jr(this,r)/12;break;case"month":a=Jr(this,r);break;case"quarter":a=Jr(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-i)/864e5;break;case"week":a=(this-r-i)/6048e5;break;default:a=this-r}return n?a:ct(a)}function Jr(t,e){if(t.date()<e.date())return-Jr(e,t);var n=12*(e.year()-t.year())+(e.month()-t.month()),r=t.clone().add(n,"months");return-(n+(e-r<0?(e-r)/(r-t.clone().add(n-1,"months")):(e-r)/(t.clone().add(n+1,"months")-r)))||0}function Qr(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function ti(t){if(!this.isValid())return null;var e=!0!==t,n=e?this.clone().utc():this;return n.year()<0||n.year()>9999?U(n,e?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):O(Date.prototype.toISOString)?e?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",U(n,"Z")):U(n,e?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function ei(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var t,e,n,r,i="moment",a="";return this.isLocal()||(i=0===this.utcOffset()?"moment.utc":"moment.parseZone",a="Z"),t="["+i+'("]',e=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",n="-MM-DD[T]HH:mm:ss.SSS",r=a+'[")]',this.format(t+e+n+r)}function ni(t){t||(t=this.isUtc()?r.defaultFormatUtc:r.defaultFormat);var e=U(this,t);return this.localeData().postformat(e)}function ri(t,e){return this.isValid()&&(x(t)&&t.isValid()||Xn(t).isValid())?Mr({to:this,from:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()}function ii(t){return this.from(Xn(),t)}function ai(t,e){return this.isValid()&&(x(t)&&t.isValid()||Xn(t).isValid())?Mr({from:this,to:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()}function oi(t){return this.to(Xn(),t)}function si(t){var e;return void 0===t?this._locale._abbr:(null!=(e=_n(t))&&(this._locale=e),this)}r.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",r.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var ui=k("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",(function(t){return void 0===t?this.localeData():this.locale(t)}));function li(){return this._locale}var ci=1e3,hi=60*ci,fi=60*hi,di=3506328*fi;function pi(t,e){return(t%e+e)%e}function gi(t,e,n){return t<100&&t>=0?new Date(t+400,e,n)-di:new Date(t,e,n).valueOf()}function mi(t,e,n){return t<100&&t>=0?Date.UTC(t+400,e,n)-di:Date.UTC(t,e,n)}function vi(t){var e,n;if(void 0===(t=it(t))||"millisecond"===t||!this.isValid())return this;switch(n=this._isUTC?mi:gi,t){case"year":e=n(this.year(),0,1);break;case"quarter":e=n(this.year(),this.month()-this.month()%3,1);break;case"month":e=n(this.year(),this.month(),1);break;case"week":e=n(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":e=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":e=n(this.year(),this.month(),this.date());break;case"hour":e=this._d.valueOf(),e-=pi(e+(this._isUTC?0:this.utcOffset()*hi),fi);break;case"minute":e=this._d.valueOf(),e-=pi(e,hi);break;case"second":e=this._d.valueOf(),e-=pi(e,ci)}return this._d.setTime(e),r.updateOffset(this,!0),this}function yi(t){var e,n;if(void 0===(t=it(t))||"millisecond"===t||!this.isValid())return this;switch(n=this._isUTC?mi:gi,t){case"year":e=n(this.year()+1,0,1)-1;break;case"quarter":e=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":e=n(this.year(),this.month()+1,1)-1;break;case"week":e=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":e=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":e=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":e=this._d.valueOf(),e+=fi-pi(e+(this._isUTC?0:this.utcOffset()*hi),fi)-1;break;case"minute":e=this._d.valueOf(),e+=hi-pi(e,hi)-1;break;case"second":e=this._d.valueOf(),e+=ci-pi(e,ci)-1}return this._d.setTime(e),r.updateOffset(this,!0),this}function _i(){return this._d.valueOf()-6e4*(this._offset||0)}function bi(){return Math.floor(this.valueOf()/1e3)}function wi(){return new Date(this.valueOf())}function Di(){var t=this;return[t.year(),t.month(),t.date(),t.hour(),t.minute(),t.second(),t.millisecond()]}function Si(){var t=this;return{years:t.year(),months:t.month(),date:t.date(),hours:t.hours(),minutes:t.minutes(),seconds:t.seconds(),milliseconds:t.milliseconds()}}function xi(){return this.isValid()?this.toISOString():null}function Ti(){return y(this)}function ki(){return p({},v(this))}function Ci(){return v(this).overflow}function Ei(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}function Mi(t,e){var n,i,a,o=this._eras||_n("en")._eras;for(n=0,i=o.length;n<i;++n)switch("string"==typeof o[n].since&&(a=r(o[n].since).startOf("day"),o[n].since=a.valueOf()),typeof o[n].until){case"undefined":o[n].until=1/0;break;case"string":a=r(o[n].until).startOf("day").valueOf(),o[n].until=a.valueOf()}return o}function Oi(t,e,n){var r,i,a,o,s,u=this.eras();for(t=t.toUpperCase(),r=0,i=u.length;r<i;++r)if(a=u[r].name.toUpperCase(),o=u[r].abbr.toUpperCase(),s=u[r].narrow.toUpperCase(),n)switch(e){case"N":case"NN":case"NNN":if(o===t)return u[r];break;case"NNNN":if(a===t)return u[r];break;case"NNNNN":if(s===t)return u[r]}else if([a,o,s].indexOf(t)>=0)return u[r]}function Ai(t,e){var n=t.since<=t.until?1:-1;return void 0===e?r(t.since).year():r(t.since).year()+(e-t.offset)*n}function Pi(){var t,e,n,r=this.localeData().eras();for(t=0,e=r.length;t<e;++t){if(n=this.clone().startOf("day").valueOf(),r[t].since<=n&&n<=r[t].until)return r[t].name;if(r[t].until<=n&&n<=r[t].since)return r[t].name}return""}function Bi(){var t,e,n,r=this.localeData().eras();for(t=0,e=r.length;t<e;++t){if(n=this.clone().startOf("day").valueOf(),r[t].since<=n&&n<=r[t].until)return r[t].narrow;if(r[t].until<=n&&n<=r[t].since)return r[t].narrow}return""}function Ri(){var t,e,n,r=this.localeData().eras();for(t=0,e=r.length;t<e;++t){if(n=this.clone().startOf("day").valueOf(),r[t].since<=n&&n<=r[t].until)return r[t].abbr;if(r[t].until<=n&&n<=r[t].since)return r[t].abbr}return""}function Vi(){var t,e,n,i,a=this.localeData().eras();for(t=0,e=a.length;t<e;++t)if(n=a[t].since<=a[t].until?1:-1,i=this.clone().startOf("day").valueOf(),a[t].since<=i&&i<=a[t].until||a[t].until<=i&&i<=a[t].since)return(this.year()-r(a[t].since).year())*n+a[t].offset;return this.year()}function Ni(t){return u(this,"_erasNameRegex")||zi.call(this),t?this._erasNameRegex:this._erasRegex}function Ii(t){return u(this,"_erasAbbrRegex")||zi.call(this),t?this._erasAbbrRegex:this._erasRegex}function Fi(t){return u(this,"_erasNarrowRegex")||zi.call(this),t?this._erasNarrowRegex:this._erasRegex}function Yi(t,e){return e.erasAbbrRegex(t)}function Li(t,e){return e.erasNameRegex(t)}function ji(t,e){return e.erasNarrowRegex(t)}function Hi(t,e){return e._eraYearOrdinalRegex||Mt}function zi(){var t,e,n=[],r=[],i=[],a=[],o=this.eras();for(t=0,e=o.length;t<e;++t)r.push(Ft(o[t].name)),n.push(Ft(o[t].abbr)),i.push(Ft(o[t].narrow)),a.push(Ft(o[t].name)),a.push(Ft(o[t].abbr)),a.push(Ft(o[t].narrow));this._erasRegex=new RegExp("^("+a.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+r.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+n.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+i.join("|")+")","i")}function Ui(t,e){j(0,[t,t.length],0,e)}function Wi(t){return $i.call(this,t,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)}function qi(t){return $i.call(this,t,this.isoWeek(),this.isoWeekday(),1,4)}function Gi(){return xe(this.year(),1,4)}function Ki(){return xe(this.isoWeekYear(),1,4)}function Zi(){var t=this.localeData()._week;return xe(this.year(),t.dow,t.doy)}function Xi(){var t=this.localeData()._week;return xe(this.weekYear(),t.dow,t.doy)}function $i(t,e,n,r,i){var a;return null==t?Se(this,r,i).year:(e>(a=xe(t,r,i))&&(e=a),Ji.call(this,t,e,n,r,i))}function Ji(t,e,n,r,i){var a=De(t,e,n,r,i),o=be(a.year,0,a.dayOfYear);return this.year(o.getUTCFullYear()),this.month(o.getUTCMonth()),this.date(o.getUTCDate()),this}function Qi(t){return null==t?Math.ceil((this.month()+1)/3):this.month(3*(t-1)+this.month()%3)}j("N",0,0,"eraAbbr"),j("NN",0,0,"eraAbbr"),j("NNN",0,0,"eraAbbr"),j("NNNN",0,0,"eraName"),j("NNNNN",0,0,"eraNarrow"),j("y",["y",1],"yo","eraYear"),j("y",["yy",2],0,"eraYear"),j("y",["yyy",3],0,"eraYear"),j("y",["yyyy",4],0,"eraYear"),Vt("N",Yi),Vt("NN",Yi),Vt("NNN",Yi),Vt("NNNN",Li),Vt("NNNNN",ji),Lt(["N","NN","NNN","NNNN","NNNNN"],(function(t,e,n,r){var i=n._locale.erasParse(t,r,n._strict);i?v(n).era=i:v(n).invalidEra=t})),Vt("y",Mt),Vt("yy",Mt),Vt("yyy",Mt),Vt("yyyy",Mt),Vt("yo",Hi),Lt(["y","yy","yyy","yyyy"],Ut),Lt(["yo"],(function(t,e,n,r){var i;n._locale._eraYearOrdinalRegex&&(i=t.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?e[Ut]=n._locale.eraYearOrdinalParse(t,i):e[Ut]=parseInt(t,10)})),j(0,["gg",2],0,(function(){return this.weekYear()%100})),j(0,["GG",2],0,(function(){return this.isoWeekYear()%100})),Ui("gggg","weekYear"),Ui("ggggg","weekYear"),Ui("GGGG","isoWeekYear"),Ui("GGGGG","isoWeekYear"),rt("weekYear","gg"),rt("isoWeekYear","GG"),st("weekYear",1),st("isoWeekYear",1),Vt("G",Ot),Vt("g",Ot),Vt("GG",St,_t),Vt("gg",St,_t),Vt("GGGG",Ct,wt),Vt("gggg",Ct,wt),Vt("GGGGG",Et,Dt),Vt("ggggg",Et,Dt),jt(["gggg","ggggg","GGGG","GGGGG"],(function(t,e,n,r){e[r.substr(0,2)]=ht(t)})),jt(["gg","GG"],(function(t,e,n,i){e[i]=r.parseTwoDigitYear(t)})),j("Q",0,"Qo","quarter"),rt("quarter","Q"),st("quarter",7),Vt("Q",yt),Lt("Q",(function(t,e){e[Wt]=3*(ht(t)-1)})),j("D",["DD",2],"Do","date"),rt("date","D"),st("date",9),Vt("D",St),Vt("DD",St,_t),Vt("Do",(function(t,e){return t?e._dayOfMonthOrdinalParse||e._ordinalParse:e._dayOfMonthOrdinalParseLenient})),Lt(["D","DD"],qt),Lt("Do",(function(t,e){e[qt]=ht(t.match(St)[0])}));var ta=ft("Date",!0);function ea(t){var e=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==t?e:this.add(t-e,"d")}j("DDD",["DDDD",3],"DDDo","dayOfYear"),rt("dayOfYear","DDD"),st("dayOfYear",4),Vt("DDD",kt),Vt("DDDD",bt),Lt(["DDD","DDDD"],(function(t,e,n){n._dayOfYear=ht(t)})),j("m",["mm",2],0,"minute"),rt("minute","m"),st("minute",14),Vt("m",St),Vt("mm",St,_t),Lt(["m","mm"],Kt);var na=ft("Minutes",!1);j("s",["ss",2],0,"second"),rt("second","s"),st("second",15),Vt("s",St),Vt("ss",St,_t),Lt(["s","ss"],Zt);var ra,ia,aa=ft("Seconds",!1);for(j("S",0,0,(function(){return~~(this.millisecond()/100)})),j(0,["SS",2],0,(function(){return~~(this.millisecond()/10)})),j(0,["SSS",3],0,"millisecond"),j(0,["SSSS",4],0,(function(){return 10*this.millisecond()})),j(0,["SSSSS",5],0,(function(){return 100*this.millisecond()})),j(0,["SSSSSS",6],0,(function(){return 1e3*this.millisecond()})),j(0,["SSSSSSS",7],0,(function(){return 1e4*this.millisecond()})),j(0,["SSSSSSSS",8],0,(function(){return 1e5*this.millisecond()})),j(0,["SSSSSSSSS",9],0,(function(){return 1e6*this.millisecond()})),rt("millisecond","ms"),st("millisecond",16),Vt("S",kt,yt),Vt("SS",kt,_t),Vt("SSS",kt,bt),ra="SSSS";ra.length<=9;ra+="S")Vt(ra,Mt);function oa(t,e){e[Xt]=ht(1e3*("0."+t))}for(ra="S";ra.length<=9;ra+="S")Lt(ra,oa);function sa(){return this._isUTC?"UTC":""}function ua(){return this._isUTC?"Coordinated Universal Time":""}ia=ft("Milliseconds",!1),j("z",0,0,"zoneAbbr"),j("zz",0,0,"zoneName");var la=S.prototype;function ca(t){return Xn(1e3*t)}function ha(){return Xn.apply(null,arguments).parseZone()}function fa(t){return t}la.add=Vr,la.calendar=zr,la.clone=Ur,la.diff=$r,la.endOf=yi,la.format=ni,la.from=ri,la.fromNow=ii,la.to=ai,la.toNow=oi,la.get=gt,la.invalidAt=Ci,la.isAfter=Wr,la.isBefore=qr,la.isBetween=Gr,la.isSame=Kr,la.isSameOrAfter=Zr,la.isSameOrBefore=Xr,la.isValid=Ti,la.lang=ui,la.locale=si,la.localeData=li,la.max=Jn,la.min=$n,la.parsingFlags=ki,la.set=mt,la.startOf=vi,la.subtract=Nr,la.toArray=Di,la.toObject=Si,la.toDate=wi,la.toISOString=ti,la.inspect=ei,"undefined"!=typeof Symbol&&null!=Symbol.for&&(la[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),la.toJSON=xi,la.toString=Qr,la.unix=bi,la.valueOf=_i,la.creationData=Ei,la.eraName=Pi,la.eraNarrow=Bi,la.eraAbbr=Ri,la.eraYear=Vi,la.year=ve,la.isLeapYear=ye,la.weekYear=Wi,la.isoWeekYear=qi,la.quarter=la.quarters=Qi,la.month=he,la.daysInMonth=fe,la.week=la.weeks=Me,la.isoWeek=la.isoWeeks=Oe,la.weeksInYear=Zi,la.weeksInWeekYear=Xi,la.isoWeeksInYear=Gi,la.isoWeeksInISOWeekYear=Ki,la.date=ta,la.day=la.days=We,la.weekday=qe,la.isoWeekday=Ge,la.dayOfYear=ea,la.hour=la.hours=an,la.minute=la.minutes=na,la.second=la.seconds=aa,la.millisecond=la.milliseconds=ia,la.utcOffset=mr,la.utc=yr,la.local=_r,la.parseZone=br,la.hasAlignedHourOffset=wr,la.isDST=Dr,la.isLocal=xr,la.isUtcOffset=Tr,la.isUtc=kr,la.isUTC=kr,la.zoneAbbr=sa,la.zoneName=ua,la.dates=k("dates accessor is deprecated. Use date instead.",ta),la.months=k("months accessor is deprecated. Use month instead",he),la.years=k("years accessor is deprecated. Use year instead",ve),la.zone=k("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",vr),la.isDSTShifted=k("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",Sr);var da=B.prototype;function pa(t,e,n,r){var i=_n(),a=g().set(r,e);return i[n](a,t)}function ga(t,e,n){if(h(t)&&(e=t,t=void 0),t=t||"",null!=e)return pa(t,e,n,"month");var r,i=[];for(r=0;r<12;r++)i[r]=pa(t,r,n,"month");return i}function ma(t,e,n,r){"boolean"==typeof t?(h(e)&&(n=e,e=void 0),e=e||""):(n=e=t,t=!1,h(e)&&(n=e,e=void 0),e=e||"");var i,a=_n(),o=t?a._week.dow:0,s=[];if(null!=n)return pa(e,(n+o)%7,r,"day");for(i=0;i<7;i++)s[i]=pa(e,(i+o)%7,r,"day");return s}function va(t,e){return ga(t,e,"months")}function ya(t,e){return ga(t,e,"monthsShort")}function _a(t,e,n){return ma(t,e,n,"weekdays")}function ba(t,e,n){return ma(t,e,n,"weekdaysShort")}function wa(t,e,n){return ma(t,e,n,"weekdaysMin")}da.calendar=V,da.longDateFormat=G,da.invalidDate=Z,da.ordinal=J,da.preparse=fa,da.postformat=fa,da.relativeTime=tt,da.pastFuture=et,da.set=A,da.eras=Mi,da.erasParse=Oi,da.erasConvertYear=Ai,da.erasAbbrRegex=Ii,da.erasNameRegex=Ni,da.erasNarrowRegex=Fi,da.months=oe,da.monthsShort=se,da.monthsParse=le,da.monthsRegex=pe,da.monthsShortRegex=de,da.week=Te,da.firstDayOfYear=Ee,da.firstDayOfWeek=Ce,da.weekdays=Le,da.weekdaysMin=He,da.weekdaysShort=je,da.weekdaysParse=Ue,da.weekdaysRegex=Ke,da.weekdaysShortRegex=Ze,da.weekdaysMinRegex=Xe,da.isPM=nn,da.meridiem=on,mn("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(t){var e=t%10;return t+(1===ht(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th")}}),r.lang=k("moment.lang is deprecated. Use moment.locale instead.",mn),r.langData=k("moment.langData is deprecated. Use moment.localeData instead.",_n);var Da=Math.abs;function Sa(){var t=this._data;return this._milliseconds=Da(this._milliseconds),this._days=Da(this._days),this._months=Da(this._months),t.milliseconds=Da(t.milliseconds),t.seconds=Da(t.seconds),t.minutes=Da(t.minutes),t.hours=Da(t.hours),t.months=Da(t.months),t.years=Da(t.years),this}function xa(t,e,n,r){var i=Mr(e,n);return t._milliseconds+=r*i._milliseconds,t._days+=r*i._days,t._months+=r*i._months,t._bubble()}function Ta(t,e){return xa(this,t,e,1)}function ka(t,e){return xa(this,t,e,-1)}function Ca(t){return t<0?Math.floor(t):Math.ceil(t)}function Ea(){var t,e,n,r,i,a=this._milliseconds,o=this._days,s=this._months,u=this._data;return a>=0&&o>=0&&s>=0||a<=0&&o<=0&&s<=0||(a+=864e5*Ca(Oa(s)+o),o=0,s=0),u.milliseconds=a%1e3,t=ct(a/1e3),u.seconds=t%60,e=ct(t/60),u.minutes=e%60,n=ct(e/60),u.hours=n%24,o+=ct(n/24),s+=i=ct(Ma(o)),o-=Ca(Oa(i)),r=ct(s/12),s%=12,u.days=o,u.months=s,u.years=r,this}function Ma(t){return 4800*t/146097}function Oa(t){return 146097*t/4800}function Aa(t){if(!this.isValid())return NaN;var e,n,r=this._milliseconds;if("month"===(t=it(t))||"quarter"===t||"year"===t)switch(e=this._days+r/864e5,n=this._months+Ma(e),t){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(e=this._days+Math.round(Oa(this._months)),t){case"week":return e/7+r/6048e5;case"day":return e+r/864e5;case"hour":return 24*e+r/36e5;case"minute":return 1440*e+r/6e4;case"second":return 86400*e+r/1e3;case"millisecond":return Math.floor(864e5*e)+r;default:throw new Error("Unknown unit "+t)}}function Pa(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*ht(this._months/12):NaN}function Ba(t){return function(){return this.as(t)}}var Ra=Ba("ms"),Va=Ba("s"),Na=Ba("m"),Ia=Ba("h"),Fa=Ba("d"),Ya=Ba("w"),La=Ba("M"),ja=Ba("Q"),Ha=Ba("y");function za(){return Mr(this)}function Ua(t){return t=it(t),this.isValid()?this[t+"s"]():NaN}function Wa(t){return function(){return this.isValid()?this._data[t]:NaN}}var qa=Wa("milliseconds"),Ga=Wa("seconds"),Ka=Wa("minutes"),Za=Wa("hours"),Xa=Wa("days"),$a=Wa("months"),Ja=Wa("years");function Qa(){return ct(this.days()/7)}var to=Math.round,eo={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function no(t,e,n,r,i){return i.relativeTime(e||1,!!n,t,r)}function ro(t,e,n,r){var i=Mr(t).abs(),a=to(i.as("s")),o=to(i.as("m")),s=to(i.as("h")),u=to(i.as("d")),l=to(i.as("M")),c=to(i.as("w")),h=to(i.as("y")),f=a<=n.ss&&["s",a]||a<n.s&&["ss",a]||o<=1&&["m"]||o<n.m&&["mm",o]||s<=1&&["h"]||s<n.h&&["hh",s]||u<=1&&["d"]||u<n.d&&["dd",u];return null!=n.w&&(f=f||c<=1&&["w"]||c<n.w&&["ww",c]),(f=f||l<=1&&["M"]||l<n.M&&["MM",l]||h<=1&&["y"]||["yy",h])[2]=e,f[3]=+t>0,f[4]=r,no.apply(null,f)}function io(t){return void 0===t?to:"function"==typeof t&&(to=t,!0)}function ao(t,e){return void 0!==eo[t]&&(void 0===e?eo[t]:(eo[t]=e,"s"===t&&(eo.ss=e-1),!0))}function oo(t,e){if(!this.isValid())return this.localeData().invalidDate();var n,r,i=!1,a=eo;return"object"==typeof t&&(e=t,t=!1),"boolean"==typeof t&&(i=t),"object"==typeof e&&(a=Object.assign({},eo,e),null!=e.s&&null==e.ss&&(a.ss=e.s-1)),r=ro(this,!i,a,n=this.localeData()),i&&(r=n.pastFuture(+this,r)),n.postformat(r)}var so=Math.abs;function uo(t){return(t>0)-(t<0)||+t}function lo(){if(!this.isValid())return this.localeData().invalidDate();var t,e,n,r,i,a,o,s,u=so(this._milliseconds)/1e3,l=so(this._days),c=so(this._months),h=this.asSeconds();return h?(t=ct(u/60),e=ct(t/60),u%=60,t%=60,n=ct(c/12),c%=12,r=u?u.toFixed(3).replace(/\.?0+$/,""):"",i=h<0?"-":"",a=uo(this._months)!==uo(h)?"-":"",o=uo(this._days)!==uo(h)?"-":"",s=uo(this._milliseconds)!==uo(h)?"-":"",i+"P"+(n?a+n+"Y":"")+(c?a+c+"M":"")+(l?o+l+"D":"")+(e||t||u?"T":"")+(e?s+e+"H":"")+(t?s+t+"M":"")+(u?s+r+"S":"")):"P0D"}var co=sr.prototype;return co.isValid=ar,co.abs=Sa,co.add=Ta,co.subtract=ka,co.as=Aa,co.asMilliseconds=Ra,co.asSeconds=Va,co.asMinutes=Na,co.asHours=Ia,co.asDays=Fa,co.asWeeks=Ya,co.asMonths=La,co.asQuarters=ja,co.asYears=Ha,co.valueOf=Pa,co._bubble=Ea,co.clone=za,co.get=Ua,co.milliseconds=qa,co.seconds=Ga,co.minutes=Ka,co.hours=Za,co.days=Xa,co.weeks=Qa,co.months=$a,co.years=Ja,co.humanize=oo,co.toISOString=lo,co.toString=lo,co.toJSON=lo,co.locale=si,co.localeData=li,co.toIsoString=k("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",lo),co.lang=ui,j("X",0,0,"unix"),j("x",0,0,"valueOf"),Vt("x",Ot),Vt("X",Bt),Lt("X",(function(t,e,n){n._d=new Date(1e3*parseFloat(t))})),Lt("x",(function(t,e,n){n._d=new Date(ht(t))})),
|
|
2
2
|
//! moment.js
|
|
3
|
-
i.version="2.29.4",a(Xn),i.fn=la,i.min=tr,i.max=er,i.now=nr,i.utc=g,i.unix=ca,i.months=ma,i.isDate=f,i.locale=vn,i.invalid=_,i.duration=Or,i.isMoment=x,i.weekdays=_a,i.parseZone=ha,i.localeData=_n,i.isDuration=ur,i.monthsShort=ya,i.weekdaysMin=wa,i.defineLocale=mn,i.updateLocale=yn,i.locales=bn,i.weekdaysShort=ba,i.normalizeUnits=it,i.relativeTimeRounding=io,i.relativeTimeThreshold=ao,i.calendarFormat=Hr,i.prototype=la,i.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"},i}()})),o={size:{width:1920,height:1080},resource:{jspaths:[],csspaths:[],otherpaths:[],fonts:[]},globalSource:[],alternateData:{},contextList:{},selectd:[],baseComs:[],globalVars:[],globalConstant:[],globalEvents:[],pages:[],pageIndex:0,groupFlag:!1,plant:{baseData:{width:1920,height:1080},option:null,optionDes:null},list:[],menuList:[],syncFlag:!0,multiple:!1,undoRedoPointer:-1,undos:[],redos:[],cache:[],cloneCache:[],shareVariable:{},shareVariableTree:{},catch:{selectd:[],list:[]},currentEditerCid:"",currentArea:{left:0,top:0,width:0,height:0,show:!1},caseList:[],constant:[],caseInfo:null,pageId:null,toPage:null,tw:null,watermark:null,endnotes:null,selectdChangeOrigin:"",sysConst:[{des:"年份",key:1001,mapField:"YEAR",mapping:"-",model:"2",name:"YEAR",value:a().get("year")},{des:"月份",key:1005,mapField:"MONTH",mapping:"-",model:"2",name:"MONTH",value:a().get("month")},{des:"日期",key:1004,mapField:"DATE",mapping:"-",model:"2",name:"DATE",value:a().get("date")},{des:"星期",key:1003,mapField:"WEEK",mapping:"-",model:"2",name:"WEEK",value:a().format("dddd")},{des:"版本",key:1002,mapField:"VERSION",mapping:"-",model:"2",name:"VERSION",value:"1.0.0"},{des:"手机号",key:2001,mapField:"U_PHONE",mapping:"-",model:"2",name:"U_PHONE",value:""},{des:"用户省",key:2002,mapField:"U_PROVINCE",mapping:"-",model:"2",name:"U_PROVINCE",value:""},{des:"用户市",key:2003,mapField:"U_CITY",mapping:"-",model:"2",name:"U_CITY",value:""},{des:"用户区县",key:2004,mapField:"U_COUNTY",mapping:"-",model:"2",name:"U_COUNTY",value:""}]},s=function(t,e){return s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},s(t,e)};var u=function(){return u=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},u.apply(this,arguments)};function l(t,e,n,r){return new(n||(n=Promise))((function(i,a){function o(t){try{u(r.next(t))}catch(t){a(t)}}function s(t){try{u(r.throw(t))}catch(t){a(t)}}function u(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(o,s)}u((r=r.apply(t,e||[])).next())}))}function c(t,e){var n,r,i,a,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(s){return function(u){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(o=0)),o;)try{if(n=1,r&&(i=2&s[0]?r.return:s[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,s[1])).done)return i;switch(r=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return o.label++,{value:s[1],done:!1};case 5:o.label++,r=s[1],s=[0];continue;case 7:s=o.ops.pop(),o.trys.pop();continue;default:if(!(i=o.trys,(i=i.length>0&&i[i.length-1])||6!==s[0]&&2!==s[0])){o=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]<i[3])){o.label=s[1];break}if(6===s[0]&&o.label<i[1]){o.label=i[1],i=s;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(s);break}i[2]&&o.ops.pop(),o.trys.pop();continue}s=e.call(t,o)}catch(t){s=[6,t],r=0}finally{n=i=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,u])}}}function h(t,e,n){if(n||2===arguments.length)for(var r,i=0,a=e.length;i<a;i++)!r&&i in e||(r||(r=Array.prototype.slice.call(e,0,i)),r[i]=e[i]);return t.concat(r||Array.prototype.slice.call(e))}var f={createItem:function(e){e.catch={selectd:t.cloneDeep(e.selectd),list:t.cloneDeep(e.list)}},resetData:function(e,n){var r=t.cloneDeep(n);e.selected=r.selected,e.list=r.list},execute:function(e){e.undoRedoPointer===e.undos.length-1?(e.undos.length>10&&t.pullAt(e.undos,0),e.undos.push({selectd:t.cloneDeep(e.selectd),list:t.cloneDeep(e.list)})):e.undos.splice(e.undoRedoPointer+1,e.undos.length-1-e.undoRedoPointer,{selectd:t.cloneDeep(e.selectd),list:t.cloneDeep(e.list)}),e.undoRedoPointer=e.undos.length-1},undo:function(t){if(t.undoRedoPointer>0&&t.undoRedoPointer<t.undos.length){t.undoRedoPointer=t.undoRedoPointer-1;var e=t.undos[t.undoRedoPointer];this.commit("GoCom/resetData",e)}},redo:function(t){if(t.undoRedoPointer>=0&&t.undoRedoPointer<t.undos.length){t.undoRedoPointer=t.undoRedoPointer+1;var e=t.undos[t.undoRedoPointer];this.commit("GoCom/resetData",e)}}},d=new Blob(["\nfunction proxyObj(originObj) {\n const exposeObj = new Proxy(originObj, {\n has: (target, key) => {\n if (['fetch', 'XMLHttpRequest', 'postMessage'].indexOf(key) >= 0) {\n throw new Error('Illegal operation for key'+key)\n } else {\n return target[key]\n }\n },\n })\n return exposeObj\n}\nfunction compileCode(src) {\n src = 'with (exposeObj) {'+src+'}'\n //console.log(src)\n return new Function('exposeObj', src)\n}\nfunction run(code) {\n let proxy = proxyObj({})\n let result = compileCode(code)(proxy)\n return result\n}\n\nonmessage = (e) => {\n try {\n let result = run(e.data.code)\n postMessage({\n code: 1,\n result,\n })\n } catch (err) {\n postMessage({\n code: -1,\n err,\n })\n }\n}\n\n"]),p=URL.createObjectURL(d);function g(t,e){return void 0===e&&(e=5e3),l(this,void 0,void 0,(function(){var n;return c(this,(function(r){return n=new Worker(p),[2,new Promise((function(r,i){var a=function(){clearTimeout(s),n.removeEventListener("message",o),n.terminate(),n=null},o=function(t){var e=t.data,n=e.code,o=e.result,s=e.err;a(),1===n?r(o):i(s)};n.postMessage({code:t}),n.addEventListener("message",o);var s=setTimeout((function(){a(),i("timeout")}),e)}))]}))}))}function v(e,n,r,i,a){return l(this,void 0,void 0,(function(){var r,a,o,s,u,l,h;return c(this,(function(f){switch(f.label){case 0:if(r=e,a=t.cloneDeep(n),o=a.use,s=a.data,!o)return[3,4];l=function(e){var n,a;return c(this,(function(o){switch(o.label){case 0:return s[e].use?(n=s[e].dependVars,a={},i&&a&&n&&n.length&&n.map((function(e){var n=t.cloneDeep(i).filter((function(t){var n=t.mapField==e;return n&&(a[e]=t.value),n}));n&&0!=n.length||(a[e]="")})),[4,m(s[e].code,r,a)]):[3,2];case 1:u=o.sent(),r=u.data,o.label=2;case 2:return[2]}}))},h=0,f.label=1;case 1:return h<s.length?[5,l(h)]:[3,4];case 2:f.sent(),f.label=3;case 3:return h++,[3,1];case 4:return[2,r]}}))}))}function m(e,n,r){return void 0===r&&(r={}),l(this,void 0,void 0,(function(){var i,a,o,s,u,l;return c(this,(function(c){switch(c.label){case 0:return c.trys.push([0,2,,3]),i=t.cloneDeep(n),s=(a=[i,r,""])[1],u=a[2],"object"==typeof(o=a[0])&&(o=JSON.stringify(i)),"object"==typeof r&&(s=JSON.stringify(r)),Object.keys(r).forEach((function(t){return u+="".concat(t,",")})),l="let data=eval(".concat(o,"); "),l+=u?"let {".concat(u,"} = eval(").concat(s,"); "):"",[4,g(l+="".concat(e))];case 1:return[2,{success:!0,data:c.sent()}];case 2:return[2,{success:!1,error:c.sent(),data:n}];case 3:return[2]}}))}))}var y="undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{};function _(){throw new Error("setTimeout has not been defined")}function b(){throw new Error("clearTimeout has not been defined")}var w=_,D=b;function S(t){if(w===setTimeout)return setTimeout(t,0);if((w===_||!w)&&setTimeout)return w=setTimeout,setTimeout(t,0);try{return w(t,0)}catch(e){try{return w.call(null,t,0)}catch(e){return w.call(this,t,0)}}}"function"==typeof y.setTimeout&&(w=setTimeout),"function"==typeof y.clearTimeout&&(D=clearTimeout);var x,T=[],k=!1,C=-1;function E(){k&&x&&(k=!1,x.length?T=x.concat(T):C=-1,T.length&&O())}function O(){if(!k){var t=S(E);k=!0;for(var e=T.length;e;){for(x=T,T=[];++C<e;)x&&x[C].run();C=-1,e=T.length}x=null,k=!1,function(t){if(D===clearTimeout)return clearTimeout(t);if((D===b||!D)&&clearTimeout)return D=clearTimeout,clearTimeout(t);try{return D(t)}catch(e){try{return D.call(null,t)}catch(e){return D.call(this,t)}}}(t)}}function M(t,e){this.fun=t,this.array=e}M.prototype.run=function(){this.fun.apply(null,this.array)};function A(){}var P=A,B=A,R=A,N=A,V=A,I=A,F=A;var Y=y.performance||{},L=Y.now||Y.mozNow||Y.msNow||Y.oNow||Y.webkitNow||function(){return(new Date).getTime()};var j=new Date;var H={nextTick:function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)e[n-1]=arguments[n];T.push(new M(t,e)),1!==T.length||k||S(O)},title:"browser",browser:!0,env:{},argv:[],version:"",versions:{},on:P,addListener:B,once:R,off:N,removeListener:V,removeAllListeners:I,emit:F,binding:function(t){throw new Error("process.binding is not supported")},cwd:function(){return"/"},chdir:function(t){throw new Error("process.chdir is not supported")},umask:function(){return 0},hrtime:function(t){var e=.001*L.call(Y),n=Math.floor(e),r=Math.floor(e%1*1e9);return t&&(n-=t[0],(r-=t[1])<0&&(n--,r+=1e9)),[n,r]},platform:"browser",release:{},config:{},uptime:function(){return(new Date-j)/1e3}},z="0123456789abcdefghijklmnopqrstuvwxyz";function U(t){return z.charAt(t)}function W(t,e){return t&e}function q(t,e){return t|e}function G(t,e){return t^e}function K(t,e){return t&~e}function Z(t){if(0==t)return-1;var e=0;return 0==(65535&t)&&(t>>=16,e+=16),0==(255&t)&&(t>>=8,e+=8),0==(15&t)&&(t>>=4,e+=4),0==(3&t)&&(t>>=2,e+=2),0==(1&t)&&++e,e}function X(t){for(var e=0;0!=t;)t&=t-1,++e;return e}var $,J="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";function Q(t){var e,n,r="";for(e=0;e+3<=t.length;e+=3)n=parseInt(t.substring(e,e+3),16),r+=J.charAt(n>>6)+J.charAt(63&n);for(e+1==t.length?(n=parseInt(t.substring(e,e+1),16),r+=J.charAt(n<<2)):e+2==t.length&&(n=parseInt(t.substring(e,e+2),16),r+=J.charAt(n>>2)+J.charAt((3&n)<<4));(3&r.length)>0;)r+="=";return r}function tt(t){var e,n="",r=0,i=0;for(e=0;e<t.length&&"="!=t.charAt(e);++e){var a=J.indexOf(t.charAt(e));a<0||(0==r?(n+=U(a>>2),i=3&a,r=1):1==r?(n+=U(i<<2|a>>4),i=15&a,r=2):2==r?(n+=U(i),n+=U(a>>2),i=3&a,r=3):(n+=U(i<<2|a>>4),n+=U(15&a),r=0))}return 1==r&&(n+=U(i<<2)),n}var et,nt=function(t){var e;if(void 0===$){var n="0123456789ABCDEF",r=" \f\n\r\t \u2028\u2029";for($={},e=0;e<16;++e)$[n.charAt(e)]=e;for(n=n.toLowerCase(),e=10;e<16;++e)$[n.charAt(e)]=e;for(e=0;e<8;++e)$[r.charAt(e)]=-1}var i=[],a=0,o=0;for(e=0;e<t.length;++e){var s=t.charAt(e);if("="==s)break;if(-1!=(s=$[s])){if(void 0===s)throw new Error("Illegal character at offset "+e);a|=s,++o>=2?(i[i.length]=a,a=0,o=0):a<<=4}}if(o)throw new Error("Hex encoding incomplete: 4 bits missing");return i},rt={decode:function(t){var e;if(void 0===et){var n="= \f\n\r\t \u2028\u2029";for(et=Object.create(null),e=0;e<64;++e)et["ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(e)]=e;for(et["-"]=62,et._=63,e=0;e<9;++e)et[n.charAt(e)]=-1}var r=[],i=0,a=0;for(e=0;e<t.length;++e){var o=t.charAt(e);if("="==o)break;if(-1!=(o=et[o])){if(void 0===o)throw new Error("Illegal character at offset "+e);i|=o,++a>=4?(r[r.length]=i>>16,r[r.length]=i>>8&255,r[r.length]=255&i,i=0,a=0):i<<=6}}switch(a){case 1:throw new Error("Base64 encoding incomplete: at least 2 bits missing");case 2:r[r.length]=i>>10;break;case 3:r[r.length]=i>>16,r[r.length]=i>>8&255}return r},re:/-----BEGIN [^-]+-----([A-Za-z0-9+\/=\s]+)-----END [^-]+-----|begin-base64[^\n]+\n([A-Za-z0-9+\/=\s]+)====/,unarmor:function(t){var e=rt.re.exec(t);if(e)if(e[1])t=e[1];else{if(!e[2])throw new Error("RegExp out of sync");t=e[2]}return rt.decode(t)}},it=1e13,at=function(){function t(t){this.buf=[+t||0]}return t.prototype.mulAdd=function(t,e){var n,r,i=this.buf,a=i.length;for(n=0;n<a;++n)(r=i[n]*t+e)<it?e=0:r-=(e=0|r/it)*it,i[n]=r;e>0&&(i[n]=e)},t.prototype.sub=function(t){var e,n,r=this.buf,i=r.length;for(e=0;e<i;++e)(n=r[e]-t)<0?(n+=it,t=1):t=0,r[e]=n;for(;0===r[r.length-1];)r.pop()},t.prototype.toString=function(t){if(10!=(t||10))throw new Error("only base 10 is supported");for(var e=this.buf,n=e[e.length-1].toString(),r=e.length-2;r>=0;--r)n+=(it+e[r]).toString().substring(1);return n},t.prototype.valueOf=function(){for(var t=this.buf,e=0,n=t.length-1;n>=0;--n)e=e*it+t[n];return e},t.prototype.simplify=function(){var t=this.buf;return 1==t.length?t[0]:this},t}(),ot="…",st=/^(\d\d)(0[1-9]|1[0-2])(0[1-9]|[12]\d|3[01])([01]\d|2[0-3])(?:([0-5]\d)(?:([0-5]\d)(?:[.,](\d{1,3}))?)?)?(Z|[-+](?:[0]\d|1[0-2])([0-5]\d)?)?$/,ut=/^(\d\d\d\d)(0[1-9]|1[0-2])(0[1-9]|[12]\d|3[01])([01]\d|2[0-3])(?:([0-5]\d)(?:([0-5]\d)(?:[.,](\d{1,3}))?)?)?(Z|[-+](?:[0]\d|1[0-2])([0-5]\d)?)?$/;function lt(t,e){return t.length>e&&(t=t.substring(0,e)+ot),t}var ct,ht=function(){function t(e,n){this.hexDigits="0123456789ABCDEF",e instanceof t?(this.enc=e.enc,this.pos=e.pos):(this.enc=e,this.pos=n)}return t.prototype.get=function(t){if(void 0===t&&(t=this.pos++),t>=this.enc.length)throw new Error("Requesting byte offset ".concat(t," on a stream of length ").concat(this.enc.length));return"string"==typeof this.enc?this.enc.charCodeAt(t):this.enc[t]},t.prototype.hexByte=function(t){return this.hexDigits.charAt(t>>4&15)+this.hexDigits.charAt(15&t)},t.prototype.hexDump=function(t,e,n){for(var r="",i=t;i<e;++i)if(r+=this.hexByte(this.get(i)),!0!==n)switch(15&i){case 7:r+=" ";break;case 15:r+="\n";break;default:r+=" "}return r},t.prototype.isASCII=function(t,e){for(var n=t;n<e;++n){var r=this.get(n);if(r<32||r>176)return!1}return!0},t.prototype.parseStringISO=function(t,e){for(var n="",r=t;r<e;++r)n+=String.fromCharCode(this.get(r));return n},t.prototype.parseStringUTF=function(t,e){for(var n="",r=t;r<e;){var i=this.get(r++);n+=i<128?String.fromCharCode(i):i>191&&i<224?String.fromCharCode((31&i)<<6|63&this.get(r++)):String.fromCharCode((15&i)<<12|(63&this.get(r++))<<6|63&this.get(r++))}return n},t.prototype.parseStringBMP=function(t,e){for(var n,r,i="",a=t;a<e;)n=this.get(a++),r=this.get(a++),i+=String.fromCharCode(n<<8|r);return i},t.prototype.parseTime=function(t,e,n){var r=this.parseStringISO(t,e),i=(n?st:ut).exec(r);return i?(n&&(i[1]=+i[1],i[1]+=+i[1]<70?2e3:1900),r=i[1]+"-"+i[2]+"-"+i[3]+" "+i[4],i[5]&&(r+=":"+i[5],i[6]&&(r+=":"+i[6],i[7]&&(r+="."+i[7]))),i[8]&&(r+=" UTC","Z"!=i[8]&&(r+=i[8],i[9]&&(r+=":"+i[9]))),r):"Unrecognized time: "+r},t.prototype.parseInteger=function(t,e){for(var n,r=this.get(t),i=r>127,a=i?255:0,o="";r==a&&++t<e;)r=this.get(t);if(0===(n=e-t))return i?-1:0;if(n>4){for(o=r,n<<=3;0==(128&(+o^a));)o=+o<<1,--n;o="("+n+" bit)\n"}i&&(r-=256);for(var s=new at(r),u=t+1;u<e;++u)s.mulAdd(256,this.get(u));return o+s.toString()},t.prototype.parseBitString=function(t,e,n){for(var r=this.get(t),i="("+((e-t-1<<3)-r)+" bit)\n",a="",o=t+1;o<e;++o){for(var s=this.get(o),u=o==e-1?r:0,l=7;l>=u;--l)a+=s>>l&1?"1":"0";if(a.length>n)return i+lt(a,n)}return i+a},t.prototype.parseOctetString=function(t,e,n){if(this.isASCII(t,e))return lt(this.parseStringISO(t,e),n);var r=e-t,i="("+r+" byte)\n";r>(n/=2)&&(e=t+n);for(var a=t;a<e;++a)i+=this.hexByte(this.get(a));return r>n&&(i+=ot),i},t.prototype.parseOID=function(t,e,n){for(var r="",i=new at,a=0,o=t;o<e;++o){var s=this.get(o);if(i.mulAdd(128,127&s),a+=7,!(128&s)){if(""===r)if((i=i.simplify())instanceof at)i.sub(80),r="2."+i.toString();else{var u=i<80?i<40?0:1:2;r=u+"."+(i-40*u)}else r+="."+i.toString();if(r.length>n)return lt(r,n);i=new at,a=0}}return a>0&&(r+=".incomplete"),r},t}(),ft=function(){function t(t,e,n,r,i){if(!(r instanceof dt))throw new Error("Invalid tag value.");this.stream=t,this.header=e,this.length=n,this.tag=r,this.sub=i}return t.prototype.typeName=function(){switch(this.tag.tagClass){case 0:switch(this.tag.tagNumber){case 0:return"EOC";case 1:return"BOOLEAN";case 2:return"INTEGER";case 3:return"BIT_STRING";case 4:return"OCTET_STRING";case 5:return"NULL";case 6:return"OBJECT_IDENTIFIER";case 7:return"ObjectDescriptor";case 8:return"EXTERNAL";case 9:return"REAL";case 10:return"ENUMERATED";case 11:return"EMBEDDED_PDV";case 12:return"UTF8String";case 16:return"SEQUENCE";case 17:return"SET";case 18:return"NumericString";case 19:return"PrintableString";case 20:return"TeletexString";case 21:return"VideotexString";case 22:return"IA5String";case 23:return"UTCTime";case 24:return"GeneralizedTime";case 25:return"GraphicString";case 26:return"VisibleString";case 27:return"GeneralString";case 28:return"UniversalString";case 30:return"BMPString"}return"Universal_"+this.tag.tagNumber.toString();case 1:return"Application_"+this.tag.tagNumber.toString();case 2:return"["+this.tag.tagNumber.toString()+"]";case 3:return"Private_"+this.tag.tagNumber.toString()}},t.prototype.content=function(t){if(void 0===this.tag)return null;void 0===t&&(t=1/0);var e=this.posContent(),n=Math.abs(this.length);if(!this.tag.isUniversal())return null!==this.sub?"("+this.sub.length+" elem)":this.stream.parseOctetString(e,e+n,t);switch(this.tag.tagNumber){case 1:return 0===this.stream.get(e)?"false":"true";case 2:return this.stream.parseInteger(e,e+n);case 3:return this.sub?"("+this.sub.length+" elem)":this.stream.parseBitString(e,e+n,t);case 4:return this.sub?"("+this.sub.length+" elem)":this.stream.parseOctetString(e,e+n,t);case 6:return this.stream.parseOID(e,e+n,t);case 16:case 17:return null!==this.sub?"("+this.sub.length+" elem)":"(no elem)";case 12:return lt(this.stream.parseStringUTF(e,e+n),t);case 18:case 19:case 20:case 21:case 22:case 26:return lt(this.stream.parseStringISO(e,e+n),t);case 30:return lt(this.stream.parseStringBMP(e,e+n),t);case 23:case 24:return this.stream.parseTime(e,e+n,23==this.tag.tagNumber)}return null},t.prototype.toString=function(){return this.typeName()+"@"+this.stream.pos+"[header:"+this.header+",length:"+this.length+",sub:"+(null===this.sub?"null":this.sub.length)+"]"},t.prototype.toPrettyString=function(t){void 0===t&&(t="");var e=t+this.typeName()+" @"+this.stream.pos;if(this.length>=0&&(e+="+"),e+=this.length,this.tag.tagConstructed?e+=" (constructed)":!this.tag.isUniversal()||3!=this.tag.tagNumber&&4!=this.tag.tagNumber||null===this.sub||(e+=" (encapsulates)"),e+="\n",null!==this.sub){t+=" ";for(var n=0,r=this.sub.length;n<r;++n)e+=this.sub[n].toPrettyString(t)}return e},t.prototype.posStart=function(){return this.stream.pos},t.prototype.posContent=function(){return this.stream.pos+this.header},t.prototype.posEnd=function(){return this.stream.pos+this.header+Math.abs(this.length)},t.prototype.toHexString=function(){return this.stream.hexDump(this.posStart(),this.posEnd(),!0)},t.decodeLength=function(t){var e=t.get(),n=127&e;if(n==e)return n;if(n>6)throw new Error("Length over 48 bits not supported at position "+(t.pos-1));if(0===n)return null;e=0;for(var r=0;r<n;++r)e=256*e+t.get();return e},t.prototype.getHexStringValue=function(){var t=this.toHexString(),e=2*this.header,n=2*this.length;return t.substr(e,n)},t.decode=function(e){var n;n=e instanceof ht?e:new ht(e,0);var r=new ht(n),i=new dt(n),a=t.decodeLength(n),o=n.pos,s=o-r.pos,u=null,l=function(){var e=[];if(null!==a){for(var r=o+a;n.pos<r;)e[e.length]=t.decode(n);if(n.pos!=r)throw new Error("Content size is not correct for container starting at offset "+o)}else try{for(;;){var i=t.decode(n);if(i.tag.isEOC())break;e[e.length]=i}a=o-n.pos}catch(t){throw new Error("Exception while decoding undefined length content: "+t)}return e};if(i.tagConstructed)u=l();else if(i.isUniversal()&&(3==i.tagNumber||4==i.tagNumber))try{if(3==i.tagNumber&&0!=n.get())throw new Error("BIT STRINGs with unused bits cannot encapsulate.");u=l();for(var c=0;c<u.length;++c)if(u[c].tag.isEOC())throw new Error("EOC is not supposed to be actual content.")}catch(t){u=null}if(null===u){if(null===a)throw new Error("We can't skip over an invalid tag with undefined length at offset "+o);n.pos=o+Math.abs(a)}return new t(r,s,a,i,u)},t}(),dt=function(){function t(t){var e=t.get();if(this.tagClass=e>>6,this.tagConstructed=0!=(32&e),this.tagNumber=31&e,31==this.tagNumber){var n=new at;do{e=t.get(),n.mulAdd(128,127&e)}while(128&e);this.tagNumber=n.simplify()}}return t.prototype.isUniversal=function(){return 0===this.tagClass},t.prototype.isEOC=function(){return 0===this.tagClass&&0===this.tagNumber},t}(),pt=[2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149,151,157,163,167,173,179,181,191,193,197,199,211,223,227,229,233,239,241,251,257,263,269,271,277,281,283,293,307,311,313,317,331,337,347,349,353,359,367,373,379,383,389,397,401,409,419,421,431,433,439,443,449,457,461,463,467,479,487,491,499,503,509,521,523,541,547,557,563,569,571,577,587,593,599,601,607,613,617,619,631,641,643,647,653,659,661,673,677,683,691,701,709,719,727,733,739,743,751,757,761,769,773,787,797,809,811,821,823,827,829,839,853,857,859,863,877,881,883,887,907,911,919,929,937,941,947,953,967,971,977,983,991,997],gt=(1<<26)/pt[pt.length-1],vt=function(){function t(t,e,n){null!=t&&("number"==typeof t?this.fromNumber(t,e,n):null==e&&"string"!=typeof t?this.fromString(t,256):this.fromString(t,e))}return t.prototype.toString=function(t){if(this.s<0)return"-"+this.negate().toString(t);var e;if(16==t)e=4;else if(8==t)e=3;else if(2==t)e=1;else if(32==t)e=5;else{if(4!=t)return this.toRadix(t);e=2}var n,r=(1<<e)-1,i=!1,a="",o=this.t,s=this.DB-o*this.DB%e;if(o-- >0)for(s<this.DB&&(n=this[o]>>s)>0&&(i=!0,a=U(n));o>=0;)s<e?(n=(this[o]&(1<<s)-1)<<e-s,n|=this[--o]>>(s+=this.DB-e)):(n=this[o]>>(s-=e)&r,s<=0&&(s+=this.DB,--o)),n>0&&(i=!0),i&&(a+=U(n));return i?a:"0"},t.prototype.negate=function(){var e=wt();return t.ZERO.subTo(this,e),e},t.prototype.abs=function(){return this.s<0?this.negate():this},t.prototype.compareTo=function(t){var e=this.s-t.s;if(0!=e)return e;var n=this.t;if(0!=(e=n-t.t))return this.s<0?-e:e;for(;--n>=0;)if(0!=(e=this[n]-t[n]))return e;return 0},t.prototype.bitLength=function(){return this.t<=0?0:this.DB*(this.t-1)+Ot(this[this.t-1]^this.s&this.DM)},t.prototype.mod=function(e){var n=wt();return this.abs().divRemTo(e,null,n),this.s<0&&n.compareTo(t.ZERO)>0&&e.subTo(n,n),n},t.prototype.modPowInt=function(t,e){var n;return n=t<256||e.isEven()?new yt(e):new _t(e),this.exp(t,n)},t.prototype.clone=function(){var t=wt();return this.copyTo(t),t},t.prototype.intValue=function(){if(this.s<0){if(1==this.t)return this[0]-this.DV;if(0==this.t)return-1}else{if(1==this.t)return this[0];if(0==this.t)return 0}return(this[1]&(1<<32-this.DB)-1)<<this.DB|this[0]},t.prototype.byteValue=function(){return 0==this.t?this.s:this[0]<<24>>24},t.prototype.shortValue=function(){return 0==this.t?this.s:this[0]<<16>>16},t.prototype.signum=function(){return this.s<0?-1:this.t<=0||1==this.t&&this[0]<=0?0:1},t.prototype.toByteArray=function(){var t=this.t,e=[];e[0]=this.s;var n,r=this.DB-t*this.DB%8,i=0;if(t-- >0)for(r<this.DB&&(n=this[t]>>r)!=(this.s&this.DM)>>r&&(e[i++]=n|this.s<<this.DB-r);t>=0;)r<8?(n=(this[t]&(1<<r)-1)<<8-r,n|=this[--t]>>(r+=this.DB-8)):(n=this[t]>>(r-=8)&255,r<=0&&(r+=this.DB,--t)),0!=(128&n)&&(n|=-256),0==i&&(128&this.s)!=(128&n)&&++i,(i>0||n!=this.s)&&(e[i++]=n);return e},t.prototype.equals=function(t){return 0==this.compareTo(t)},t.prototype.min=function(t){return this.compareTo(t)<0?this:t},t.prototype.max=function(t){return this.compareTo(t)>0?this:t},t.prototype.and=function(t){var e=wt();return this.bitwiseTo(t,W,e),e},t.prototype.or=function(t){var e=wt();return this.bitwiseTo(t,q,e),e},t.prototype.xor=function(t){var e=wt();return this.bitwiseTo(t,G,e),e},t.prototype.andNot=function(t){var e=wt();return this.bitwiseTo(t,K,e),e},t.prototype.not=function(){for(var t=wt(),e=0;e<this.t;++e)t[e]=this.DM&~this[e];return t.t=this.t,t.s=~this.s,t},t.prototype.shiftLeft=function(t){var e=wt();return t<0?this.rShiftTo(-t,e):this.lShiftTo(t,e),e},t.prototype.shiftRight=function(t){var e=wt();return t<0?this.lShiftTo(-t,e):this.rShiftTo(t,e),e},t.prototype.getLowestSetBit=function(){for(var t=0;t<this.t;++t)if(0!=this[t])return t*this.DB+Z(this[t]);return this.s<0?this.t*this.DB:-1},t.prototype.bitCount=function(){for(var t=0,e=this.s&this.DM,n=0;n<this.t;++n)t+=X(this[n]^e);return t},t.prototype.testBit=function(t){var e=Math.floor(t/this.DB);return e>=this.t?0!=this.s:0!=(this[e]&1<<t%this.DB)},t.prototype.setBit=function(t){return this.changeBit(t,q)},t.prototype.clearBit=function(t){return this.changeBit(t,K)},t.prototype.flipBit=function(t){return this.changeBit(t,G)},t.prototype.add=function(t){var e=wt();return this.addTo(t,e),e},t.prototype.subtract=function(t){var e=wt();return this.subTo(t,e),e},t.prototype.multiply=function(t){var e=wt();return this.multiplyTo(t,e),e},t.prototype.divide=function(t){var e=wt();return this.divRemTo(t,e,null),e},t.prototype.remainder=function(t){var e=wt();return this.divRemTo(t,null,e),e},t.prototype.divideAndRemainder=function(t){var e=wt(),n=wt();return this.divRemTo(t,e,n),[e,n]},t.prototype.modPow=function(t,e){var n,r,i=t.bitLength(),a=Et(1);if(i<=0)return a;n=i<18?1:i<48?3:i<144?4:i<768?5:6,r=i<8?new yt(e):e.isEven()?new bt(e):new _t(e);var o=[],s=3,u=n-1,l=(1<<n)-1;if(o[1]=r.convert(this),n>1){var c=wt();for(r.sqrTo(o[1],c);s<=l;)o[s]=wt(),r.mulTo(c,o[s-2],o[s]),s+=2}var h,f,d=t.t-1,p=!0,g=wt();for(i=Ot(t[d])-1;d>=0;){for(i>=u?h=t[d]>>i-u&l:(h=(t[d]&(1<<i+1)-1)<<u-i,d>0&&(h|=t[d-1]>>this.DB+i-u)),s=n;0==(1&h);)h>>=1,--s;if((i-=s)<0&&(i+=this.DB,--d),p)o[h].copyTo(a),p=!1;else{for(;s>1;)r.sqrTo(a,g),r.sqrTo(g,a),s-=2;s>0?r.sqrTo(a,g):(f=a,a=g,g=f),r.mulTo(g,o[h],a)}for(;d>=0&&0==(t[d]&1<<i);)r.sqrTo(a,g),f=a,a=g,g=f,--i<0&&(i=this.DB-1,--d)}return r.revert(a)},t.prototype.modInverse=function(e){var n=e.isEven();if(this.isEven()&&n||0==e.signum())return t.ZERO;for(var r=e.clone(),i=this.clone(),a=Et(1),o=Et(0),s=Et(0),u=Et(1);0!=r.signum();){for(;r.isEven();)r.rShiftTo(1,r),n?(a.isEven()&&o.isEven()||(a.addTo(this,a),o.subTo(e,o)),a.rShiftTo(1,a)):o.isEven()||o.subTo(e,o),o.rShiftTo(1,o);for(;i.isEven();)i.rShiftTo(1,i),n?(s.isEven()&&u.isEven()||(s.addTo(this,s),u.subTo(e,u)),s.rShiftTo(1,s)):u.isEven()||u.subTo(e,u),u.rShiftTo(1,u);r.compareTo(i)>=0?(r.subTo(i,r),n&&a.subTo(s,a),o.subTo(u,o)):(i.subTo(r,i),n&&s.subTo(a,s),u.subTo(o,u))}return 0!=i.compareTo(t.ONE)?t.ZERO:u.compareTo(e)>=0?u.subtract(e):u.signum()<0?(u.addTo(e,u),u.signum()<0?u.add(e):u):u},t.prototype.pow=function(t){return this.exp(t,new mt)},t.prototype.gcd=function(t){var e=this.s<0?this.negate():this.clone(),n=t.s<0?t.negate():t.clone();if(e.compareTo(n)<0){var r=e;e=n,n=r}var i=e.getLowestSetBit(),a=n.getLowestSetBit();if(a<0)return e;for(i<a&&(a=i),a>0&&(e.rShiftTo(a,e),n.rShiftTo(a,n));e.signum()>0;)(i=e.getLowestSetBit())>0&&e.rShiftTo(i,e),(i=n.getLowestSetBit())>0&&n.rShiftTo(i,n),e.compareTo(n)>=0?(e.subTo(n,e),e.rShiftTo(1,e)):(n.subTo(e,n),n.rShiftTo(1,n));return a>0&&n.lShiftTo(a,n),n},t.prototype.isProbablePrime=function(t){var e,n=this.abs();if(1==n.t&&n[0]<=pt[pt.length-1]){for(e=0;e<pt.length;++e)if(n[0]==pt[e])return!0;return!1}if(n.isEven())return!1;for(e=1;e<pt.length;){for(var r=pt[e],i=e+1;i<pt.length&&r<gt;)r*=pt[i++];for(r=n.modInt(r);e<i;)if(r%pt[e++]==0)return!1}return n.millerRabin(t)},t.prototype.copyTo=function(t){for(var e=this.t-1;e>=0;--e)t[e]=this[e];t.t=this.t,t.s=this.s},t.prototype.fromInt=function(t){this.t=1,this.s=t<0?-1:0,t>0?this[0]=t:t<-1?this[0]=t+this.DV:this.t=0},t.prototype.fromString=function(e,n){var r;if(16==n)r=4;else if(8==n)r=3;else if(256==n)r=8;else if(2==n)r=1;else if(32==n)r=5;else{if(4!=n)return void this.fromRadix(e,n);r=2}this.t=0,this.s=0;for(var i=e.length,a=!1,o=0;--i>=0;){var s=8==r?255&+e[i]:Ct(e,i);s<0?"-"==e.charAt(i)&&(a=!0):(a=!1,0==o?this[this.t++]=s:o+r>this.DB?(this[this.t-1]|=(s&(1<<this.DB-o)-1)<<o,this[this.t++]=s>>this.DB-o):this[this.t-1]|=s<<o,(o+=r)>=this.DB&&(o-=this.DB))}8==r&&0!=(128&+e[0])&&(this.s=-1,o>0&&(this[this.t-1]|=(1<<this.DB-o)-1<<o)),this.clamp(),a&&t.ZERO.subTo(this,this)},t.prototype.clamp=function(){for(var t=this.s&this.DM;this.t>0&&this[this.t-1]==t;)--this.t},t.prototype.dlShiftTo=function(t,e){var n;for(n=this.t-1;n>=0;--n)e[n+t]=this[n];for(n=t-1;n>=0;--n)e[n]=0;e.t=this.t+t,e.s=this.s},t.prototype.drShiftTo=function(t,e){for(var n=t;n<this.t;++n)e[n-t]=this[n];e.t=Math.max(this.t-t,0),e.s=this.s},t.prototype.lShiftTo=function(t,e){for(var n=t%this.DB,r=this.DB-n,i=(1<<r)-1,a=Math.floor(t/this.DB),o=this.s<<n&this.DM,s=this.t-1;s>=0;--s)e[s+a+1]=this[s]>>r|o,o=(this[s]&i)<<n;for(s=a-1;s>=0;--s)e[s]=0;e[a]=o,e.t=this.t+a+1,e.s=this.s,e.clamp()},t.prototype.rShiftTo=function(t,e){e.s=this.s;var n=Math.floor(t/this.DB);if(n>=this.t)e.t=0;else{var r=t%this.DB,i=this.DB-r,a=(1<<r)-1;e[0]=this[n]>>r;for(var o=n+1;o<this.t;++o)e[o-n-1]|=(this[o]&a)<<i,e[o-n]=this[o]>>r;r>0&&(e[this.t-n-1]|=(this.s&a)<<i),e.t=this.t-n,e.clamp()}},t.prototype.subTo=function(t,e){for(var n=0,r=0,i=Math.min(t.t,this.t);n<i;)r+=this[n]-t[n],e[n++]=r&this.DM,r>>=this.DB;if(t.t<this.t){for(r-=t.s;n<this.t;)r+=this[n],e[n++]=r&this.DM,r>>=this.DB;r+=this.s}else{for(r+=this.s;n<t.t;)r-=t[n],e[n++]=r&this.DM,r>>=this.DB;r-=t.s}e.s=r<0?-1:0,r<-1?e[n++]=this.DV+r:r>0&&(e[n++]=r),e.t=n,e.clamp()},t.prototype.multiplyTo=function(e,n){var r=this.abs(),i=e.abs(),a=r.t;for(n.t=a+i.t;--a>=0;)n[a]=0;for(a=0;a<i.t;++a)n[a+r.t]=r.am(0,i[a],n,a,0,r.t);n.s=0,n.clamp(),this.s!=e.s&&t.ZERO.subTo(n,n)},t.prototype.squareTo=function(t){for(var e=this.abs(),n=t.t=2*e.t;--n>=0;)t[n]=0;for(n=0;n<e.t-1;++n){var r=e.am(n,e[n],t,2*n,0,1);(t[n+e.t]+=e.am(n+1,2*e[n],t,2*n+1,r,e.t-n-1))>=e.DV&&(t[n+e.t]-=e.DV,t[n+e.t+1]=1)}t.t>0&&(t[t.t-1]+=e.am(n,e[n],t,2*n,0,1)),t.s=0,t.clamp()},t.prototype.divRemTo=function(e,n,r){var i=e.abs();if(!(i.t<=0)){var a=this.abs();if(a.t<i.t)return null!=n&&n.fromInt(0),void(null!=r&&this.copyTo(r));null==r&&(r=wt());var o=wt(),s=this.s,u=e.s,l=this.DB-Ot(i[i.t-1]);l>0?(i.lShiftTo(l,o),a.lShiftTo(l,r)):(i.copyTo(o),a.copyTo(r));var c=o.t,h=o[c-1];if(0!=h){var f=h*(1<<this.F1)+(c>1?o[c-2]>>this.F2:0),d=this.FV/f,p=(1<<this.F1)/f,g=1<<this.F2,v=r.t,m=v-c,y=null==n?wt():n;for(o.dlShiftTo(m,y),r.compareTo(y)>=0&&(r[r.t++]=1,r.subTo(y,r)),t.ONE.dlShiftTo(c,y),y.subTo(o,o);o.t<c;)o[o.t++]=0;for(;--m>=0;){var _=r[--v]==h?this.DM:Math.floor(r[v]*d+(r[v-1]+g)*p);if((r[v]+=o.am(0,_,r,m,0,c))<_)for(o.dlShiftTo(m,y),r.subTo(y,r);r[v]<--_;)r.subTo(y,r)}null!=n&&(r.drShiftTo(c,n),s!=u&&t.ZERO.subTo(n,n)),r.t=c,r.clamp(),l>0&&r.rShiftTo(l,r),s<0&&t.ZERO.subTo(r,r)}}},t.prototype.invDigit=function(){if(this.t<1)return 0;var t=this[0];if(0==(1&t))return 0;var e=3&t;return(e=(e=(e=(e=e*(2-(15&t)*e)&15)*(2-(255&t)*e)&255)*(2-((65535&t)*e&65535))&65535)*(2-t*e%this.DV)%this.DV)>0?this.DV-e:-e},t.prototype.isEven=function(){return 0==(this.t>0?1&this[0]:this.s)},t.prototype.exp=function(e,n){if(e>4294967295||e<1)return t.ONE;var r=wt(),i=wt(),a=n.convert(this),o=Ot(e)-1;for(a.copyTo(r);--o>=0;)if(n.sqrTo(r,i),(e&1<<o)>0)n.mulTo(i,a,r);else{var s=r;r=i,i=s}return n.revert(r)},t.prototype.chunkSize=function(t){return Math.floor(Math.LN2*this.DB/Math.log(t))},t.prototype.toRadix=function(t){if(null==t&&(t=10),0==this.signum()||t<2||t>36)return"0";var e=this.chunkSize(t),n=Math.pow(t,e),r=Et(n),i=wt(),a=wt(),o="";for(this.divRemTo(r,i,a);i.signum()>0;)o=(n+a.intValue()).toString(t).substr(1)+o,i.divRemTo(r,i,a);return a.intValue().toString(t)+o},t.prototype.fromRadix=function(e,n){this.fromInt(0),null==n&&(n=10);for(var r=this.chunkSize(n),i=Math.pow(n,r),a=!1,o=0,s=0,u=0;u<e.length;++u){var l=Ct(e,u);l<0?"-"==e.charAt(u)&&0==this.signum()&&(a=!0):(s=n*s+l,++o>=r&&(this.dMultiply(i),this.dAddOffset(s,0),o=0,s=0))}o>0&&(this.dMultiply(Math.pow(n,o)),this.dAddOffset(s,0)),a&&t.ZERO.subTo(this,this)},t.prototype.fromNumber=function(e,n,r){if("number"==typeof n)if(e<2)this.fromInt(1);else for(this.fromNumber(e,r),this.testBit(e-1)||this.bitwiseTo(t.ONE.shiftLeft(e-1),q,this),this.isEven()&&this.dAddOffset(1,0);!this.isProbablePrime(n);)this.dAddOffset(2,0),this.bitLength()>e&&this.subTo(t.ONE.shiftLeft(e-1),this);else{var i=[],a=7&e;i.length=1+(e>>3),n.nextBytes(i),a>0?i[0]&=(1<<a)-1:i[0]=0,this.fromString(i,256)}},t.prototype.bitwiseTo=function(t,e,n){var r,i,a=Math.min(t.t,this.t);for(r=0;r<a;++r)n[r]=e(this[r],t[r]);if(t.t<this.t){for(i=t.s&this.DM,r=a;r<this.t;++r)n[r]=e(this[r],i);n.t=this.t}else{for(i=this.s&this.DM,r=a;r<t.t;++r)n[r]=e(i,t[r]);n.t=t.t}n.s=e(this.s,t.s),n.clamp()},t.prototype.changeBit=function(e,n){var r=t.ONE.shiftLeft(e);return this.bitwiseTo(r,n,r),r},t.prototype.addTo=function(t,e){for(var n=0,r=0,i=Math.min(t.t,this.t);n<i;)r+=this[n]+t[n],e[n++]=r&this.DM,r>>=this.DB;if(t.t<this.t){for(r+=t.s;n<this.t;)r+=this[n],e[n++]=r&this.DM,r>>=this.DB;r+=this.s}else{for(r+=this.s;n<t.t;)r+=t[n],e[n++]=r&this.DM,r>>=this.DB;r+=t.s}e.s=r<0?-1:0,r>0?e[n++]=r:r<-1&&(e[n++]=this.DV+r),e.t=n,e.clamp()},t.prototype.dMultiply=function(t){this[this.t]=this.am(0,t-1,this,0,0,this.t),++this.t,this.clamp()},t.prototype.dAddOffset=function(t,e){if(0!=t){for(;this.t<=e;)this[this.t++]=0;for(this[e]+=t;this[e]>=this.DV;)this[e]-=this.DV,++e>=this.t&&(this[this.t++]=0),++this[e]}},t.prototype.multiplyLowerTo=function(t,e,n){var r=Math.min(this.t+t.t,e);for(n.s=0,n.t=r;r>0;)n[--r]=0;for(var i=n.t-this.t;r<i;++r)n[r+this.t]=this.am(0,t[r],n,r,0,this.t);for(i=Math.min(t.t,e);r<i;++r)this.am(0,t[r],n,r,0,e-r);n.clamp()},t.prototype.multiplyUpperTo=function(t,e,n){--e;var r=n.t=this.t+t.t-e;for(n.s=0;--r>=0;)n[r]=0;for(r=Math.max(e-this.t,0);r<t.t;++r)n[this.t+r-e]=this.am(e-r,t[r],n,0,0,this.t+r-e);n.clamp(),n.drShiftTo(1,n)},t.prototype.modInt=function(t){if(t<=0)return 0;var e=this.DV%t,n=this.s<0?t-1:0;if(this.t>0)if(0==e)n=this[0]%t;else for(var r=this.t-1;r>=0;--r)n=(e*n+this[r])%t;return n},t.prototype.millerRabin=function(e){var n=this.subtract(t.ONE),r=n.getLowestSetBit();if(r<=0)return!1;var i=n.shiftRight(r);(e=e+1>>1)>pt.length&&(e=pt.length);for(var a=wt(),o=0;o<e;++o){a.fromInt(pt[Math.floor(Math.random()*pt.length)]);var s=a.modPow(i,this);if(0!=s.compareTo(t.ONE)&&0!=s.compareTo(n)){for(var u=1;u++<r&&0!=s.compareTo(n);)if(0==(s=s.modPowInt(2,this)).compareTo(t.ONE))return!1;if(0!=s.compareTo(n))return!1}}return!0},t.prototype.square=function(){var t=wt();return this.squareTo(t),t},t.prototype.gcda=function(t,e){var n=this.s<0?this.negate():this.clone(),r=t.s<0?t.negate():t.clone();if(n.compareTo(r)<0){var i=n;n=r,r=i}var a=n.getLowestSetBit(),o=r.getLowestSetBit();if(o<0)e(n);else{a<o&&(o=a),o>0&&(n.rShiftTo(o,n),r.rShiftTo(o,r));var s=function(){(a=n.getLowestSetBit())>0&&n.rShiftTo(a,n),(a=r.getLowestSetBit())>0&&r.rShiftTo(a,r),n.compareTo(r)>=0?(n.subTo(r,n),n.rShiftTo(1,n)):(r.subTo(n,r),r.rShiftTo(1,r)),n.signum()>0?setTimeout(s,0):(o>0&&r.lShiftTo(o,r),setTimeout((function(){e(r)}),0))};setTimeout(s,10)}},t.prototype.fromNumberAsync=function(e,n,r,i){if("number"==typeof n)if(e<2)this.fromInt(1);else{this.fromNumber(e,r),this.testBit(e-1)||this.bitwiseTo(t.ONE.shiftLeft(e-1),q,this),this.isEven()&&this.dAddOffset(1,0);var a=this,o=function(){a.dAddOffset(2,0),a.bitLength()>e&&a.subTo(t.ONE.shiftLeft(e-1),a),a.isProbablePrime(n)?setTimeout((function(){i()}),0):setTimeout(o,0)};setTimeout(o,0)}else{var s=[],u=7&e;s.length=1+(e>>3),n.nextBytes(s),u>0?s[0]&=(1<<u)-1:s[0]=0,this.fromString(s,256)}},t}(),mt=function(){function t(){}return t.prototype.convert=function(t){return t},t.prototype.revert=function(t){return t},t.prototype.mulTo=function(t,e,n){t.multiplyTo(e,n)},t.prototype.sqrTo=function(t,e){t.squareTo(e)},t}(),yt=function(){function t(t){this.m=t}return t.prototype.convert=function(t){return t.s<0||t.compareTo(this.m)>=0?t.mod(this.m):t},t.prototype.revert=function(t){return t},t.prototype.reduce=function(t){t.divRemTo(this.m,null,t)},t.prototype.mulTo=function(t,e,n){t.multiplyTo(e,n),this.reduce(n)},t.prototype.sqrTo=function(t,e){t.squareTo(e),this.reduce(e)},t}(),_t=function(){function t(t){this.m=t,this.mp=t.invDigit(),this.mpl=32767&this.mp,this.mph=this.mp>>15,this.um=(1<<t.DB-15)-1,this.mt2=2*t.t}return t.prototype.convert=function(t){var e=wt();return t.abs().dlShiftTo(this.m.t,e),e.divRemTo(this.m,null,e),t.s<0&&e.compareTo(vt.ZERO)>0&&this.m.subTo(e,e),e},t.prototype.revert=function(t){var e=wt();return t.copyTo(e),this.reduce(e),e},t.prototype.reduce=function(t){for(;t.t<=this.mt2;)t[t.t++]=0;for(var e=0;e<this.m.t;++e){var n=32767&t[e],r=n*this.mpl+((n*this.mph+(t[e]>>15)*this.mpl&this.um)<<15)&t.DM;for(t[n=e+this.m.t]+=this.m.am(0,r,t,e,0,this.m.t);t[n]>=t.DV;)t[n]-=t.DV,t[++n]++}t.clamp(),t.drShiftTo(this.m.t,t),t.compareTo(this.m)>=0&&t.subTo(this.m,t)},t.prototype.mulTo=function(t,e,n){t.multiplyTo(e,n),this.reduce(n)},t.prototype.sqrTo=function(t,e){t.squareTo(e),this.reduce(e)},t}(),bt=function(){function t(t){this.m=t,this.r2=wt(),this.q3=wt(),vt.ONE.dlShiftTo(2*t.t,this.r2),this.mu=this.r2.divide(t)}return t.prototype.convert=function(t){if(t.s<0||t.t>2*this.m.t)return t.mod(this.m);if(t.compareTo(this.m)<0)return t;var e=wt();return t.copyTo(e),this.reduce(e),e},t.prototype.revert=function(t){return t},t.prototype.reduce=function(t){for(t.drShiftTo(this.m.t-1,this.r2),t.t>this.m.t+1&&(t.t=this.m.t+1,t.clamp()),this.mu.multiplyUpperTo(this.r2,this.m.t+1,this.q3),this.m.multiplyLowerTo(this.q3,this.m.t+1,this.r2);t.compareTo(this.r2)<0;)t.dAddOffset(1,this.m.t+1);for(t.subTo(this.r2,t);t.compareTo(this.m)>=0;)t.subTo(this.m,t)},t.prototype.mulTo=function(t,e,n){t.multiplyTo(e,n),this.reduce(n)},t.prototype.sqrTo=function(t,e){t.squareTo(e),this.reduce(e)},t}();function wt(){return new vt(null)}function Dt(t,e){return new vt(t,e)}var St="undefined"!=typeof navigator;St&&"Microsoft Internet Explorer"==navigator.appName?(vt.prototype.am=function(t,e,n,r,i,a){for(var o=32767&e,s=e>>15;--a>=0;){var u=32767&this[t],l=this[t++]>>15,c=s*u+l*o;i=((u=o*u+((32767&c)<<15)+n[r]+(1073741823&i))>>>30)+(c>>>15)+s*l+(i>>>30),n[r++]=1073741823&u}return i},ct=30):St&&"Netscape"!=navigator.appName?(vt.prototype.am=function(t,e,n,r,i,a){for(;--a>=0;){var o=e*this[t++]+n[r]+i;i=Math.floor(o/67108864),n[r++]=67108863&o}return i},ct=26):(vt.prototype.am=function(t,e,n,r,i,a){for(var o=16383&e,s=e>>14;--a>=0;){var u=16383&this[t],l=this[t++]>>14,c=s*u+l*o;i=((u=o*u+((16383&c)<<14)+n[r]+i)>>28)+(c>>14)+s*l,n[r++]=268435455&u}return i},ct=28),vt.prototype.DB=ct,vt.prototype.DM=(1<<ct)-1,vt.prototype.DV=1<<ct;vt.prototype.FV=Math.pow(2,52),vt.prototype.F1=52-ct,vt.prototype.F2=2*ct-52;var xt,Tt,kt=[];for(xt="0".charCodeAt(0),Tt=0;Tt<=9;++Tt)kt[xt++]=Tt;for(xt="a".charCodeAt(0),Tt=10;Tt<36;++Tt)kt[xt++]=Tt;for(xt="A".charCodeAt(0),Tt=10;Tt<36;++Tt)kt[xt++]=Tt;function Ct(t,e){var n=kt[t.charCodeAt(e)];return null==n?-1:n}function Et(t){var e=wt();return e.fromInt(t),e}function Ot(t){var e,n=1;return 0!=(e=t>>>16)&&(t=e,n+=16),0!=(e=t>>8)&&(t=e,n+=8),0!=(e=t>>4)&&(t=e,n+=4),0!=(e=t>>2)&&(t=e,n+=2),0!=(e=t>>1)&&(t=e,n+=1),n}vt.ZERO=Et(0),vt.ONE=Et(1);var Mt=function(){function t(){this.i=0,this.j=0,this.S=[]}return t.prototype.init=function(t){var e,n,r;for(e=0;e<256;++e)this.S[e]=e;for(n=0,e=0;e<256;++e)n=n+this.S[e]+t[e%t.length]&255,r=this.S[e],this.S[e]=this.S[n],this.S[n]=r;this.i=0,this.j=0},t.prototype.next=function(){var t;return this.i=this.i+1&255,this.j=this.j+this.S[this.i]&255,t=this.S[this.i],this.S[this.i]=this.S[this.j],this.S[this.j]=t,this.S[t+this.S[this.i]&255]},t}();var At,Pt,Bt=null;if(null==Bt){Bt=[],Pt=0;var Rt=void 0;if("undefined"!=typeof window&&window.crypto&&window.crypto.getRandomValues){var Nt=new Uint32Array(256);for(window.crypto.getRandomValues(Nt),Rt=0;Rt<Nt.length;++Rt)Bt[Pt++]=255&Nt[Rt]}var Vt=0,It=function(t){if((Vt=Vt||0)>=256||Pt>=256)window.removeEventListener?window.removeEventListener("mousemove",It,!1):window.detachEvent&&window.detachEvent("onmousemove",It);else try{var e=t.x+t.y;Bt[Pt++]=255&e,Vt+=1}catch(t){}};"undefined"!=typeof window&&(window.addEventListener?window.addEventListener("mousemove",It,!1):window.attachEvent&&window.attachEvent("onmousemove",It))}function Ft(){if(null==At){for(At=new Mt;Pt<256;){var t=Math.floor(65536*Math.random());Bt[Pt++]=255&t}for(At.init(Bt),Pt=0;Pt<Bt.length;++Pt)Bt[Pt]=0;Pt=0}return At.next()}var Yt=function(){function t(){}return t.prototype.nextBytes=function(t){for(var e=0;e<t.length;++e)t[e]=Ft()},t}();var Lt=function(){function t(){this.n=null,this.e=0,this.d=null,this.p=null,this.q=null,this.dmp1=null,this.dmq1=null,this.coeff=null}return t.prototype.doPublic=function(t){return t.modPowInt(this.e,this.n)},t.prototype.doPrivate=function(t){if(null==this.p||null==this.q)return t.modPow(this.d,this.n);for(var e=t.mod(this.p).modPow(this.dmp1,this.p),n=t.mod(this.q).modPow(this.dmq1,this.q);e.compareTo(n)<0;)e=e.add(this.p);return e.subtract(n).multiply(this.coeff).mod(this.p).multiply(this.q).add(n)},t.prototype.setPublic=function(t,e){null!=t&&null!=e&&t.length>0&&e.length>0?(this.n=Dt(t,16),this.e=parseInt(e,16)):console.error("Invalid RSA public key")},t.prototype.encrypt=function(t){var e=this.n.bitLength()+7>>3,n=function(t,e){if(e<t.length+11)return console.error("Message too long for RSA"),null;for(var n=[],r=t.length-1;r>=0&&e>0;){var i=t.charCodeAt(r--);i<128?n[--e]=i:i>127&&i<2048?(n[--e]=63&i|128,n[--e]=i>>6|192):(n[--e]=63&i|128,n[--e]=i>>6&63|128,n[--e]=i>>12|224)}n[--e]=0;for(var a=new Yt,o=[];e>2;){for(o[0]=0;0==o[0];)a.nextBytes(o);n[--e]=o[0]}return n[--e]=2,n[--e]=0,new vt(n)}(t,e);if(null==n)return null;var r=this.doPublic(n);if(null==r)return null;for(var i=r.toString(16),a=i.length,o=0;o<2*e-a;o++)i="0"+i;return i},t.prototype.setPrivate=function(t,e,n){null!=t&&null!=e&&t.length>0&&e.length>0?(this.n=Dt(t,16),this.e=parseInt(e,16),this.d=Dt(n,16)):console.error("Invalid RSA private key")},t.prototype.setPrivateEx=function(t,e,n,r,i,a,o,s){null!=t&&null!=e&&t.length>0&&e.length>0?(this.n=Dt(t,16),this.e=parseInt(e,16),this.d=Dt(n,16),this.p=Dt(r,16),this.q=Dt(i,16),this.dmp1=Dt(a,16),this.dmq1=Dt(o,16),this.coeff=Dt(s,16)):console.error("Invalid RSA private key")},t.prototype.generate=function(t,e){var n=new Yt,r=t>>1;this.e=parseInt(e,16);for(var i=new vt(e,16);;){for(;this.p=new vt(t-r,1,n),0!=this.p.subtract(vt.ONE).gcd(i).compareTo(vt.ONE)||!this.p.isProbablePrime(10););for(;this.q=new vt(r,1,n),0!=this.q.subtract(vt.ONE).gcd(i).compareTo(vt.ONE)||!this.q.isProbablePrime(10););if(this.p.compareTo(this.q)<=0){var a=this.p;this.p=this.q,this.q=a}var o=this.p.subtract(vt.ONE),s=this.q.subtract(vt.ONE),u=o.multiply(s);if(0==u.gcd(i).compareTo(vt.ONE)){this.n=this.p.multiply(this.q),this.d=i.modInverse(u),this.dmp1=this.d.mod(o),this.dmq1=this.d.mod(s),this.coeff=this.q.modInverse(this.p);break}}},t.prototype.decrypt=function(t){var e=Dt(t,16),n=this.doPrivate(e);return null==n?null:function(t,e){var n=t.toByteArray(),r=0;for(;r<n.length&&0==n[r];)++r;if(n.length-r!=e-1||2!=n[r])return null;++r;for(;0!=n[r];)if(++r>=n.length)return null;var i="";for(;++r<n.length;){var a=255&n[r];a<128?i+=String.fromCharCode(a):a>191&&a<224?(i+=String.fromCharCode((31&a)<<6|63&n[r+1]),++r):(i+=String.fromCharCode((15&a)<<12|(63&n[r+1])<<6|63&n[r+2]),r+=2)}return i}(n,this.n.bitLength()+7>>3)},t.prototype.generateAsync=function(t,e,n){var r=new Yt,i=t>>1;this.e=parseInt(e,16);var a=new vt(e,16),o=this,s=function(){var e=function(){if(o.p.compareTo(o.q)<=0){var t=o.p;o.p=o.q,o.q=t}var e=o.p.subtract(vt.ONE),r=o.q.subtract(vt.ONE),i=e.multiply(r);0==i.gcd(a).compareTo(vt.ONE)?(o.n=o.p.multiply(o.q),o.d=a.modInverse(i),o.dmp1=o.d.mod(e),o.dmq1=o.d.mod(r),o.coeff=o.q.modInverse(o.p),setTimeout((function(){n()}),0)):setTimeout(s,0)},u=function(){o.q=wt(),o.q.fromNumberAsync(i,1,r,(function(){o.q.subtract(vt.ONE).gcda(a,(function(t){0==t.compareTo(vt.ONE)&&o.q.isProbablePrime(10)?setTimeout(e,0):setTimeout(u,0)}))}))},l=function(){o.p=wt(),o.p.fromNumberAsync(t-i,1,r,(function(){o.p.subtract(vt.ONE).gcda(a,(function(t){0==t.compareTo(vt.ONE)&&o.p.isProbablePrime(10)?setTimeout(u,0):setTimeout(l,0)}))}))};setTimeout(l,0)};setTimeout(s,0)},t.prototype.sign=function(t,e,n){var r=function(t,e){if(e<t.length+22)return console.error("Message too long for RSA"),null;for(var n=e-t.length-6,r="",i=0;i<n;i+=2)r+="ff";return Dt("0001"+r+"00"+t,16)}((jt[n]||"")+e(t).toString(),this.n.bitLength()/4);if(null==r)return null;var i=this.doPrivate(r);if(null==i)return null;var a=i.toString(16);return 0==(1&a.length)?a:"0"+a},t.prototype.verify=function(t,e,n){var r=Dt(e,16),i=this.doPublic(r);return null==i?null:function(t){for(var e in jt)if(jt.hasOwnProperty(e)){var n=jt[e],r=n.length;if(t.substr(0,r)==n)return t.substr(r)}return t}
|
|
3
|
+
r.version="2.29.4",i(Xn),r.fn=la,r.min=tr,r.max=er,r.now=nr,r.utc=g,r.unix=ca,r.months=va,r.isDate=f,r.locale=mn,r.invalid=_,r.duration=Mr,r.isMoment=x,r.weekdays=_a,r.parseZone=ha,r.localeData=_n,r.isDuration=ur,r.monthsShort=ya,r.weekdaysMin=wa,r.defineLocale=vn,r.updateLocale=yn,r.locales=bn,r.weekdaysShort=ba,r.normalizeUnits=it,r.relativeTimeRounding=io,r.relativeTimeThreshold=ao,r.calendarFormat=Hr,r.prototype=la,r.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"},r}()})),u={size:{width:1920,height:1080},resource:{jspaths:[],csspaths:[],otherpaths:[],fonts:[]},globalSource:[],alternateData:{},contextList:{},selectd:[],baseComs:[],globalVars:[],globalConstant:[],globalEvents:[],pages:[],pageIndex:0,groupFlag:!1,plant:{baseData:{width:1920,height:1080},option:null,optionDes:null},list:[],menuList:[],syncFlag:!0,multiple:!1,undoRedoPointer:-1,undos:[],redos:[],cache:[],cloneCache:[],shareVariable:{},shareVariableTree:{},catch:{selectd:[],list:[]},currentEditerCid:"",currentArea:{left:0,top:0,width:0,height:0,show:!1},caseList:[],constant:[],caseInfo:null,pageId:null,toPage:null,tw:null,watermark:null,endnotes:null,selectdChangeOrigin:"",sysConst:[{des:"年份",key:1001,mapField:"YEAR",mapping:"-",model:"2",name:"YEAR",value:s().get("year")},{des:"月份",key:1005,mapField:"MONTH",mapping:"-",model:"2",name:"MONTH",value:s().get("month")},{des:"日期",key:1004,mapField:"DATE",mapping:"-",model:"2",name:"DATE",value:s().get("date")},{des:"星期",key:1003,mapField:"WEEK",mapping:"-",model:"2",name:"WEEK",value:s().format("dddd")},{des:"版本",key:1002,mapField:"VERSION",mapping:"-",model:"2",name:"VERSION",value:"1.0.0"},{des:"手机号",key:2001,mapField:"U_PHONE",mapping:"-",model:"2",name:"U_PHONE",value:""},{des:"用户省",key:2002,mapField:"U_PROVINCE",mapping:"-",model:"2",name:"U_PROVINCE",value:""},{des:"用户市",key:2003,mapField:"U_CITY",mapping:"-",model:"2",name:"U_CITY",value:""},{des:"用户区县",key:2004,mapField:"U_COUNTY",mapping:"-",model:"2",name:"U_COUNTY",value:""}]},l=function(t,e){return l=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},l(t,e)};var c=function(){return c=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},c.apply(this,arguments)};function h(t,e,n,r){return new(n||(n=Promise))((function(i,a){function o(t){try{u(r.next(t))}catch(t){a(t)}}function s(t){try{u(r.throw(t))}catch(t){a(t)}}function u(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(o,s)}u((r=r.apply(t,e||[])).next())}))}function f(t,e){var n,r,i,a,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(s){return function(u){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(o=0)),o;)try{if(n=1,r&&(i=2&s[0]?r.return:s[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,s[1])).done)return i;switch(r=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return o.label++,{value:s[1],done:!1};case 5:o.label++,r=s[1],s=[0];continue;case 7:s=o.ops.pop(),o.trys.pop();continue;default:if(!(i=o.trys,(i=i.length>0&&i[i.length-1])||6!==s[0]&&2!==s[0])){o=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]<i[3])){o.label=s[1];break}if(6===s[0]&&o.label<i[1]){o.label=i[1],i=s;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(s);break}i[2]&&o.ops.pop(),o.trys.pop();continue}s=e.call(t,o)}catch(t){s=[6,t],r=0}finally{n=i=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,u])}}}function d(t,e,n){if(n||2===arguments.length)for(var r,i=0,a=e.length;i<a;i++)!r&&i in e||(r||(r=Array.prototype.slice.call(e,0,i)),r[i]=e[i]);return t.concat(r||Array.prototype.slice.call(e))}var p={createItem:function(e){e.catch={selectd:t.cloneDeep(e.selectd),list:t.cloneDeep(e.list)}},resetData:function(e,n){var r=t.cloneDeep(n);e.selected=r.selected,e.list=r.list},execute:function(e){e.undoRedoPointer===e.undos.length-1?(e.undos.length>10&&t.pullAt(e.undos,0),e.undos.push({selectd:t.cloneDeep(e.selectd),list:t.cloneDeep(e.list)})):e.undos.splice(e.undoRedoPointer+1,e.undos.length-1-e.undoRedoPointer,{selectd:t.cloneDeep(e.selectd),list:t.cloneDeep(e.list)}),e.undoRedoPointer=e.undos.length-1},undo:function(t){if(t.undoRedoPointer>0&&t.undoRedoPointer<t.undos.length){t.undoRedoPointer=t.undoRedoPointer-1;var e=t.undos[t.undoRedoPointer];this.commit("GoCom/resetData",e)}},redo:function(t){if(t.undoRedoPointer>=0&&t.undoRedoPointer<t.undos.length){t.undoRedoPointer=t.undoRedoPointer+1;var e=t.undos[t.undoRedoPointer];this.commit("GoCom/resetData",e)}}},g=new Blob(["\nfunction proxyObj(originObj) {\n const exposeObj = new Proxy(originObj, {\n has: (target, key) => {\n if (['fetch', 'XMLHttpRequest', 'postMessage'].indexOf(key) >= 0) {\n throw new Error('Illegal operation for key'+key)\n } else {\n return target[key]\n }\n },\n })\n return exposeObj\n}\nfunction compileCode(src) {\n src = 'with (exposeObj) {'+src+'}'\n //console.log(src)\n return new Function('exposeObj', src)\n}\nfunction run(code) {\n let proxy = proxyObj({})\n let result = compileCode(code)(proxy)\n return result\n}\n\nonmessage = (e) => {\n try {\n let result = run(e.data.code)\n postMessage({\n code: 1,\n result,\n })\n } catch (err) {\n postMessage({\n code: -1,\n err,\n })\n }\n}\n\n"]),m=URL.createObjectURL(g);function v(t,e){return void 0===e&&(e=5e3),h(this,void 0,void 0,(function(){var n;return f(this,(function(r){return n=new Worker(m),[2,new Promise((function(r,i){var a=function(){clearTimeout(s),n.removeEventListener("message",o),n.terminate(),n=null},o=function(t){var e=t.data,n=e.code,o=e.result,s=e.err;a(),1===n?r(o):i(s)};n.postMessage({code:t}),n.addEventListener("message",o);var s=setTimeout((function(){a(),i("timeout")}),e)}))]}))}))}function y(e,n,r,i,a){return h(this,void 0,void 0,(function(){var r,a,o,s,u,l,c;return f(this,(function(h){switch(h.label){case 0:if(r=e,a=t.cloneDeep(n),o=a.use,s=a.data,!o)return[3,4];l=function(e){var n,a;return f(this,(function(o){switch(o.label){case 0:return s[e].use?(n=s[e].dependVars,a={},i&&a&&n&&n.length&&n.map((function(e){var n=t.cloneDeep(i).filter((function(t){var n=t.mapField==e&&""!=t.value;return n&&(a[e]=t.value),n}));if(!n||0==n.length){var r=i.filter((function(t){return""!=t.value}));r&&r.length&&(a[e]=r[0].value)}})),[4,_(s[e].code,r,a)]):[3,2];case 1:u=o.sent(),r=u.data,o.label=2;case 2:return[2]}}))},c=0,h.label=1;case 1:return c<s.length?[5,l(c)]:[3,4];case 2:h.sent(),h.label=3;case 3:return c++,[3,1];case 4:return[2,r]}}))}))}function _(e,n,r){return void 0===r&&(r={}),h(this,void 0,void 0,(function(){var i,a,o,s,u,l;return f(this,(function(c){switch(c.label){case 0:return c.trys.push([0,2,,3]),i=t.cloneDeep(n),s=(a=[i,r,""])[1],u=a[2],"object"==typeof(o=a[0])&&(o=JSON.stringify(i)),"object"==typeof r&&(s=JSON.stringify(r)),Object.keys(r).forEach((function(t){return u+="".concat(t,",")})),l="let data=eval(".concat(o,"); "),l+=u?"let {".concat(u,"} = eval(").concat(s,"); "):"",[4,v(l+="".concat(e))];case 1:return[2,{success:!0,data:c.sent()}];case 2:return[2,{success:!1,error:c.sent(),data:n}];case 3:return[2]}}))}))}var b="undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{};function w(){throw new Error("setTimeout has not been defined")}function D(){throw new Error("clearTimeout has not been defined")}var S=w,x=D;function T(t){if(S===setTimeout)return setTimeout(t,0);if((S===w||!S)&&setTimeout)return S=setTimeout,setTimeout(t,0);try{return S(t,0)}catch(e){try{return S.call(null,t,0)}catch(e){return S.call(this,t,0)}}}"function"==typeof b.setTimeout&&(S=setTimeout),"function"==typeof b.clearTimeout&&(x=clearTimeout);var k,C=[],E=!1,M=-1;function O(){E&&k&&(E=!1,k.length?C=k.concat(C):M=-1,C.length&&A())}function A(){if(!E){var t=T(O);E=!0;for(var e=C.length;e;){for(k=C,C=[];++M<e;)k&&k[M].run();M=-1,e=C.length}k=null,E=!1,function(t){if(x===clearTimeout)return clearTimeout(t);if((x===D||!x)&&clearTimeout)return x=clearTimeout,clearTimeout(t);try{return x(t)}catch(e){try{return x.call(null,t)}catch(e){return x.call(this,t)}}}(t)}}function P(t,e){this.fun=t,this.array=e}P.prototype.run=function(){this.fun.apply(null,this.array)};function B(){}var R=B,V=B,N=B,I=B,F=B,Y=B,L=B;var j=b.performance||{},H=j.now||j.mozNow||j.msNow||j.oNow||j.webkitNow||function(){return(new Date).getTime()};var z=new Date;var U={nextTick:function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)e[n-1]=arguments[n];C.push(new P(t,e)),1!==C.length||E||T(A)},title:"browser",browser:!0,env:{},argv:[],version:"",versions:{},on:R,addListener:V,once:N,off:I,removeListener:F,removeAllListeners:Y,emit:L,binding:function(t){throw new Error("process.binding is not supported")},cwd:function(){return"/"},chdir:function(t){throw new Error("process.chdir is not supported")},umask:function(){return 0},hrtime:function(t){var e=.001*H.call(j),n=Math.floor(e),r=Math.floor(e%1*1e9);return t&&(n-=t[0],(r-=t[1])<0&&(n--,r+=1e9)),[n,r]},platform:"browser",release:{},config:{},uptime:function(){return(new Date-z)/1e3}},W="0123456789abcdefghijklmnopqrstuvwxyz";function q(t){return W.charAt(t)}function G(t,e){return t&e}function K(t,e){return t|e}function Z(t,e){return t^e}function X(t,e){return t&~e}function $(t){if(0==t)return-1;var e=0;return 0==(65535&t)&&(t>>=16,e+=16),0==(255&t)&&(t>>=8,e+=8),0==(15&t)&&(t>>=4,e+=4),0==(3&t)&&(t>>=2,e+=2),0==(1&t)&&++e,e}function J(t){for(var e=0;0!=t;)t&=t-1,++e;return e}var Q,tt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";function et(t){var e,n,r="";for(e=0;e+3<=t.length;e+=3)n=parseInt(t.substring(e,e+3),16),r+=tt.charAt(n>>6)+tt.charAt(63&n);for(e+1==t.length?(n=parseInt(t.substring(e,e+1),16),r+=tt.charAt(n<<2)):e+2==t.length&&(n=parseInt(t.substring(e,e+2),16),r+=tt.charAt(n>>2)+tt.charAt((3&n)<<4));(3&r.length)>0;)r+="=";return r}function nt(t){var e,n="",r=0,i=0;for(e=0;e<t.length&&"="!=t.charAt(e);++e){var a=tt.indexOf(t.charAt(e));a<0||(0==r?(n+=q(a>>2),i=3&a,r=1):1==r?(n+=q(i<<2|a>>4),i=15&a,r=2):2==r?(n+=q(i),n+=q(a>>2),i=3&a,r=3):(n+=q(i<<2|a>>4),n+=q(15&a),r=0))}return 1==r&&(n+=q(i<<2)),n}var rt,it=function(t){var e;if(void 0===Q){var n="0123456789ABCDEF",r=" \f\n\r\t \u2028\u2029";for(Q={},e=0;e<16;++e)Q[n.charAt(e)]=e;for(n=n.toLowerCase(),e=10;e<16;++e)Q[n.charAt(e)]=e;for(e=0;e<8;++e)Q[r.charAt(e)]=-1}var i=[],a=0,o=0;for(e=0;e<t.length;++e){var s=t.charAt(e);if("="==s)break;if(-1!=(s=Q[s])){if(void 0===s)throw new Error("Illegal character at offset "+e);a|=s,++o>=2?(i[i.length]=a,a=0,o=0):a<<=4}}if(o)throw new Error("Hex encoding incomplete: 4 bits missing");return i},at={decode:function(t){var e;if(void 0===rt){var n="= \f\n\r\t \u2028\u2029";for(rt=Object.create(null),e=0;e<64;++e)rt["ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(e)]=e;for(rt["-"]=62,rt._=63,e=0;e<9;++e)rt[n.charAt(e)]=-1}var r=[],i=0,a=0;for(e=0;e<t.length;++e){var o=t.charAt(e);if("="==o)break;if(-1!=(o=rt[o])){if(void 0===o)throw new Error("Illegal character at offset "+e);i|=o,++a>=4?(r[r.length]=i>>16,r[r.length]=i>>8&255,r[r.length]=255&i,i=0,a=0):i<<=6}}switch(a){case 1:throw new Error("Base64 encoding incomplete: at least 2 bits missing");case 2:r[r.length]=i>>10;break;case 3:r[r.length]=i>>16,r[r.length]=i>>8&255}return r},re:/-----BEGIN [^-]+-----([A-Za-z0-9+\/=\s]+)-----END [^-]+-----|begin-base64[^\n]+\n([A-Za-z0-9+\/=\s]+)====/,unarmor:function(t){var e=at.re.exec(t);if(e)if(e[1])t=e[1];else{if(!e[2])throw new Error("RegExp out of sync");t=e[2]}return at.decode(t)}},ot=1e13,st=function(){function t(t){this.buf=[+t||0]}return t.prototype.mulAdd=function(t,e){var n,r,i=this.buf,a=i.length;for(n=0;n<a;++n)(r=i[n]*t+e)<ot?e=0:r-=(e=0|r/ot)*ot,i[n]=r;e>0&&(i[n]=e)},t.prototype.sub=function(t){var e,n,r=this.buf,i=r.length;for(e=0;e<i;++e)(n=r[e]-t)<0?(n+=ot,t=1):t=0,r[e]=n;for(;0===r[r.length-1];)r.pop()},t.prototype.toString=function(t){if(10!=(t||10))throw new Error("only base 10 is supported");for(var e=this.buf,n=e[e.length-1].toString(),r=e.length-2;r>=0;--r)n+=(ot+e[r]).toString().substring(1);return n},t.prototype.valueOf=function(){for(var t=this.buf,e=0,n=t.length-1;n>=0;--n)e=e*ot+t[n];return e},t.prototype.simplify=function(){var t=this.buf;return 1==t.length?t[0]:this},t}(),ut="…",lt=/^(\d\d)(0[1-9]|1[0-2])(0[1-9]|[12]\d|3[01])([01]\d|2[0-3])(?:([0-5]\d)(?:([0-5]\d)(?:[.,](\d{1,3}))?)?)?(Z|[-+](?:[0]\d|1[0-2])([0-5]\d)?)?$/,ct=/^(\d\d\d\d)(0[1-9]|1[0-2])(0[1-9]|[12]\d|3[01])([01]\d|2[0-3])(?:([0-5]\d)(?:([0-5]\d)(?:[.,](\d{1,3}))?)?)?(Z|[-+](?:[0]\d|1[0-2])([0-5]\d)?)?$/;function ht(t,e){return t.length>e&&(t=t.substring(0,e)+ut),t}var ft,dt=function(){function t(e,n){this.hexDigits="0123456789ABCDEF",e instanceof t?(this.enc=e.enc,this.pos=e.pos):(this.enc=e,this.pos=n)}return t.prototype.get=function(t){if(void 0===t&&(t=this.pos++),t>=this.enc.length)throw new Error("Requesting byte offset ".concat(t," on a stream of length ").concat(this.enc.length));return"string"==typeof this.enc?this.enc.charCodeAt(t):this.enc[t]},t.prototype.hexByte=function(t){return this.hexDigits.charAt(t>>4&15)+this.hexDigits.charAt(15&t)},t.prototype.hexDump=function(t,e,n){for(var r="",i=t;i<e;++i)if(r+=this.hexByte(this.get(i)),!0!==n)switch(15&i){case 7:r+=" ";break;case 15:r+="\n";break;default:r+=" "}return r},t.prototype.isASCII=function(t,e){for(var n=t;n<e;++n){var r=this.get(n);if(r<32||r>176)return!1}return!0},t.prototype.parseStringISO=function(t,e){for(var n="",r=t;r<e;++r)n+=String.fromCharCode(this.get(r));return n},t.prototype.parseStringUTF=function(t,e){for(var n="",r=t;r<e;){var i=this.get(r++);n+=i<128?String.fromCharCode(i):i>191&&i<224?String.fromCharCode((31&i)<<6|63&this.get(r++)):String.fromCharCode((15&i)<<12|(63&this.get(r++))<<6|63&this.get(r++))}return n},t.prototype.parseStringBMP=function(t,e){for(var n,r,i="",a=t;a<e;)n=this.get(a++),r=this.get(a++),i+=String.fromCharCode(n<<8|r);return i},t.prototype.parseTime=function(t,e,n){var r=this.parseStringISO(t,e),i=(n?lt:ct).exec(r);return i?(n&&(i[1]=+i[1],i[1]+=+i[1]<70?2e3:1900),r=i[1]+"-"+i[2]+"-"+i[3]+" "+i[4],i[5]&&(r+=":"+i[5],i[6]&&(r+=":"+i[6],i[7]&&(r+="."+i[7]))),i[8]&&(r+=" UTC","Z"!=i[8]&&(r+=i[8],i[9]&&(r+=":"+i[9]))),r):"Unrecognized time: "+r},t.prototype.parseInteger=function(t,e){for(var n,r=this.get(t),i=r>127,a=i?255:0,o="";r==a&&++t<e;)r=this.get(t);if(0===(n=e-t))return i?-1:0;if(n>4){for(o=r,n<<=3;0==(128&(+o^a));)o=+o<<1,--n;o="("+n+" bit)\n"}i&&(r-=256);for(var s=new st(r),u=t+1;u<e;++u)s.mulAdd(256,this.get(u));return o+s.toString()},t.prototype.parseBitString=function(t,e,n){for(var r=this.get(t),i="("+((e-t-1<<3)-r)+" bit)\n",a="",o=t+1;o<e;++o){for(var s=this.get(o),u=o==e-1?r:0,l=7;l>=u;--l)a+=s>>l&1?"1":"0";if(a.length>n)return i+ht(a,n)}return i+a},t.prototype.parseOctetString=function(t,e,n){if(this.isASCII(t,e))return ht(this.parseStringISO(t,e),n);var r=e-t,i="("+r+" byte)\n";r>(n/=2)&&(e=t+n);for(var a=t;a<e;++a)i+=this.hexByte(this.get(a));return r>n&&(i+=ut),i},t.prototype.parseOID=function(t,e,n){for(var r="",i=new st,a=0,o=t;o<e;++o){var s=this.get(o);if(i.mulAdd(128,127&s),a+=7,!(128&s)){if(""===r)if((i=i.simplify())instanceof st)i.sub(80),r="2."+i.toString();else{var u=i<80?i<40?0:1:2;r=u+"."+(i-40*u)}else r+="."+i.toString();if(r.length>n)return ht(r,n);i=new st,a=0}}return a>0&&(r+=".incomplete"),r},t}(),pt=function(){function t(t,e,n,r,i){if(!(r instanceof gt))throw new Error("Invalid tag value.");this.stream=t,this.header=e,this.length=n,this.tag=r,this.sub=i}return t.prototype.typeName=function(){switch(this.tag.tagClass){case 0:switch(this.tag.tagNumber){case 0:return"EOC";case 1:return"BOOLEAN";case 2:return"INTEGER";case 3:return"BIT_STRING";case 4:return"OCTET_STRING";case 5:return"NULL";case 6:return"OBJECT_IDENTIFIER";case 7:return"ObjectDescriptor";case 8:return"EXTERNAL";case 9:return"REAL";case 10:return"ENUMERATED";case 11:return"EMBEDDED_PDV";case 12:return"UTF8String";case 16:return"SEQUENCE";case 17:return"SET";case 18:return"NumericString";case 19:return"PrintableString";case 20:return"TeletexString";case 21:return"VideotexString";case 22:return"IA5String";case 23:return"UTCTime";case 24:return"GeneralizedTime";case 25:return"GraphicString";case 26:return"VisibleString";case 27:return"GeneralString";case 28:return"UniversalString";case 30:return"BMPString"}return"Universal_"+this.tag.tagNumber.toString();case 1:return"Application_"+this.tag.tagNumber.toString();case 2:return"["+this.tag.tagNumber.toString()+"]";case 3:return"Private_"+this.tag.tagNumber.toString()}},t.prototype.content=function(t){if(void 0===this.tag)return null;void 0===t&&(t=1/0);var e=this.posContent(),n=Math.abs(this.length);if(!this.tag.isUniversal())return null!==this.sub?"("+this.sub.length+" elem)":this.stream.parseOctetString(e,e+n,t);switch(this.tag.tagNumber){case 1:return 0===this.stream.get(e)?"false":"true";case 2:return this.stream.parseInteger(e,e+n);case 3:return this.sub?"("+this.sub.length+" elem)":this.stream.parseBitString(e,e+n,t);case 4:return this.sub?"("+this.sub.length+" elem)":this.stream.parseOctetString(e,e+n,t);case 6:return this.stream.parseOID(e,e+n,t);case 16:case 17:return null!==this.sub?"("+this.sub.length+" elem)":"(no elem)";case 12:return ht(this.stream.parseStringUTF(e,e+n),t);case 18:case 19:case 20:case 21:case 22:case 26:return ht(this.stream.parseStringISO(e,e+n),t);case 30:return ht(this.stream.parseStringBMP(e,e+n),t);case 23:case 24:return this.stream.parseTime(e,e+n,23==this.tag.tagNumber)}return null},t.prototype.toString=function(){return this.typeName()+"@"+this.stream.pos+"[header:"+this.header+",length:"+this.length+",sub:"+(null===this.sub?"null":this.sub.length)+"]"},t.prototype.toPrettyString=function(t){void 0===t&&(t="");var e=t+this.typeName()+" @"+this.stream.pos;if(this.length>=0&&(e+="+"),e+=this.length,this.tag.tagConstructed?e+=" (constructed)":!this.tag.isUniversal()||3!=this.tag.tagNumber&&4!=this.tag.tagNumber||null===this.sub||(e+=" (encapsulates)"),e+="\n",null!==this.sub){t+=" ";for(var n=0,r=this.sub.length;n<r;++n)e+=this.sub[n].toPrettyString(t)}return e},t.prototype.posStart=function(){return this.stream.pos},t.prototype.posContent=function(){return this.stream.pos+this.header},t.prototype.posEnd=function(){return this.stream.pos+this.header+Math.abs(this.length)},t.prototype.toHexString=function(){return this.stream.hexDump(this.posStart(),this.posEnd(),!0)},t.decodeLength=function(t){var e=t.get(),n=127&e;if(n==e)return n;if(n>6)throw new Error("Length over 48 bits not supported at position "+(t.pos-1));if(0===n)return null;e=0;for(var r=0;r<n;++r)e=256*e+t.get();return e},t.prototype.getHexStringValue=function(){var t=this.toHexString(),e=2*this.header,n=2*this.length;return t.substr(e,n)},t.decode=function(e){var n;n=e instanceof dt?e:new dt(e,0);var r=new dt(n),i=new gt(n),a=t.decodeLength(n),o=n.pos,s=o-r.pos,u=null,l=function(){var e=[];if(null!==a){for(var r=o+a;n.pos<r;)e[e.length]=t.decode(n);if(n.pos!=r)throw new Error("Content size is not correct for container starting at offset "+o)}else try{for(;;){var i=t.decode(n);if(i.tag.isEOC())break;e[e.length]=i}a=o-n.pos}catch(t){throw new Error("Exception while decoding undefined length content: "+t)}return e};if(i.tagConstructed)u=l();else if(i.isUniversal()&&(3==i.tagNumber||4==i.tagNumber))try{if(3==i.tagNumber&&0!=n.get())throw new Error("BIT STRINGs with unused bits cannot encapsulate.");u=l();for(var c=0;c<u.length;++c)if(u[c].tag.isEOC())throw new Error("EOC is not supposed to be actual content.")}catch(t){u=null}if(null===u){if(null===a)throw new Error("We can't skip over an invalid tag with undefined length at offset "+o);n.pos=o+Math.abs(a)}return new t(r,s,a,i,u)},t}(),gt=function(){function t(t){var e=t.get();if(this.tagClass=e>>6,this.tagConstructed=0!=(32&e),this.tagNumber=31&e,31==this.tagNumber){var n=new st;do{e=t.get(),n.mulAdd(128,127&e)}while(128&e);this.tagNumber=n.simplify()}}return t.prototype.isUniversal=function(){return 0===this.tagClass},t.prototype.isEOC=function(){return 0===this.tagClass&&0===this.tagNumber},t}(),mt=[2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149,151,157,163,167,173,179,181,191,193,197,199,211,223,227,229,233,239,241,251,257,263,269,271,277,281,283,293,307,311,313,317,331,337,347,349,353,359,367,373,379,383,389,397,401,409,419,421,431,433,439,443,449,457,461,463,467,479,487,491,499,503,509,521,523,541,547,557,563,569,571,577,587,593,599,601,607,613,617,619,631,641,643,647,653,659,661,673,677,683,691,701,709,719,727,733,739,743,751,757,761,769,773,787,797,809,811,821,823,827,829,839,853,857,859,863,877,881,883,887,907,911,919,929,937,941,947,953,967,971,977,983,991,997],vt=(1<<26)/mt[mt.length-1],yt=function(){function t(t,e,n){null!=t&&("number"==typeof t?this.fromNumber(t,e,n):null==e&&"string"!=typeof t?this.fromString(t,256):this.fromString(t,e))}return t.prototype.toString=function(t){if(this.s<0)return"-"+this.negate().toString(t);var e;if(16==t)e=4;else if(8==t)e=3;else if(2==t)e=1;else if(32==t)e=5;else{if(4!=t)return this.toRadix(t);e=2}var n,r=(1<<e)-1,i=!1,a="",o=this.t,s=this.DB-o*this.DB%e;if(o-- >0)for(s<this.DB&&(n=this[o]>>s)>0&&(i=!0,a=q(n));o>=0;)s<e?(n=(this[o]&(1<<s)-1)<<e-s,n|=this[--o]>>(s+=this.DB-e)):(n=this[o]>>(s-=e)&r,s<=0&&(s+=this.DB,--o)),n>0&&(i=!0),i&&(a+=q(n));return i?a:"0"},t.prototype.negate=function(){var e=St();return t.ZERO.subTo(this,e),e},t.prototype.abs=function(){return this.s<0?this.negate():this},t.prototype.compareTo=function(t){var e=this.s-t.s;if(0!=e)return e;var n=this.t;if(0!=(e=n-t.t))return this.s<0?-e:e;for(;--n>=0;)if(0!=(e=this[n]-t[n]))return e;return 0},t.prototype.bitLength=function(){return this.t<=0?0:this.DB*(this.t-1)+At(this[this.t-1]^this.s&this.DM)},t.prototype.mod=function(e){var n=St();return this.abs().divRemTo(e,null,n),this.s<0&&n.compareTo(t.ZERO)>0&&e.subTo(n,n),n},t.prototype.modPowInt=function(t,e){var n;return n=t<256||e.isEven()?new bt(e):new wt(e),this.exp(t,n)},t.prototype.clone=function(){var t=St();return this.copyTo(t),t},t.prototype.intValue=function(){if(this.s<0){if(1==this.t)return this[0]-this.DV;if(0==this.t)return-1}else{if(1==this.t)return this[0];if(0==this.t)return 0}return(this[1]&(1<<32-this.DB)-1)<<this.DB|this[0]},t.prototype.byteValue=function(){return 0==this.t?this.s:this[0]<<24>>24},t.prototype.shortValue=function(){return 0==this.t?this.s:this[0]<<16>>16},t.prototype.signum=function(){return this.s<0?-1:this.t<=0||1==this.t&&this[0]<=0?0:1},t.prototype.toByteArray=function(){var t=this.t,e=[];e[0]=this.s;var n,r=this.DB-t*this.DB%8,i=0;if(t-- >0)for(r<this.DB&&(n=this[t]>>r)!=(this.s&this.DM)>>r&&(e[i++]=n|this.s<<this.DB-r);t>=0;)r<8?(n=(this[t]&(1<<r)-1)<<8-r,n|=this[--t]>>(r+=this.DB-8)):(n=this[t]>>(r-=8)&255,r<=0&&(r+=this.DB,--t)),0!=(128&n)&&(n|=-256),0==i&&(128&this.s)!=(128&n)&&++i,(i>0||n!=this.s)&&(e[i++]=n);return e},t.prototype.equals=function(t){return 0==this.compareTo(t)},t.prototype.min=function(t){return this.compareTo(t)<0?this:t},t.prototype.max=function(t){return this.compareTo(t)>0?this:t},t.prototype.and=function(t){var e=St();return this.bitwiseTo(t,G,e),e},t.prototype.or=function(t){var e=St();return this.bitwiseTo(t,K,e),e},t.prototype.xor=function(t){var e=St();return this.bitwiseTo(t,Z,e),e},t.prototype.andNot=function(t){var e=St();return this.bitwiseTo(t,X,e),e},t.prototype.not=function(){for(var t=St(),e=0;e<this.t;++e)t[e]=this.DM&~this[e];return t.t=this.t,t.s=~this.s,t},t.prototype.shiftLeft=function(t){var e=St();return t<0?this.rShiftTo(-t,e):this.lShiftTo(t,e),e},t.prototype.shiftRight=function(t){var e=St();return t<0?this.lShiftTo(-t,e):this.rShiftTo(t,e),e},t.prototype.getLowestSetBit=function(){for(var t=0;t<this.t;++t)if(0!=this[t])return t*this.DB+$(this[t]);return this.s<0?this.t*this.DB:-1},t.prototype.bitCount=function(){for(var t=0,e=this.s&this.DM,n=0;n<this.t;++n)t+=J(this[n]^e);return t},t.prototype.testBit=function(t){var e=Math.floor(t/this.DB);return e>=this.t?0!=this.s:0!=(this[e]&1<<t%this.DB)},t.prototype.setBit=function(t){return this.changeBit(t,K)},t.prototype.clearBit=function(t){return this.changeBit(t,X)},t.prototype.flipBit=function(t){return this.changeBit(t,Z)},t.prototype.add=function(t){var e=St();return this.addTo(t,e),e},t.prototype.subtract=function(t){var e=St();return this.subTo(t,e),e},t.prototype.multiply=function(t){var e=St();return this.multiplyTo(t,e),e},t.prototype.divide=function(t){var e=St();return this.divRemTo(t,e,null),e},t.prototype.remainder=function(t){var e=St();return this.divRemTo(t,null,e),e},t.prototype.divideAndRemainder=function(t){var e=St(),n=St();return this.divRemTo(t,e,n),[e,n]},t.prototype.modPow=function(t,e){var n,r,i=t.bitLength(),a=Ot(1);if(i<=0)return a;n=i<18?1:i<48?3:i<144?4:i<768?5:6,r=i<8?new bt(e):e.isEven()?new Dt(e):new wt(e);var o=[],s=3,u=n-1,l=(1<<n)-1;if(o[1]=r.convert(this),n>1){var c=St();for(r.sqrTo(o[1],c);s<=l;)o[s]=St(),r.mulTo(c,o[s-2],o[s]),s+=2}var h,f,d=t.t-1,p=!0,g=St();for(i=At(t[d])-1;d>=0;){for(i>=u?h=t[d]>>i-u&l:(h=(t[d]&(1<<i+1)-1)<<u-i,d>0&&(h|=t[d-1]>>this.DB+i-u)),s=n;0==(1&h);)h>>=1,--s;if((i-=s)<0&&(i+=this.DB,--d),p)o[h].copyTo(a),p=!1;else{for(;s>1;)r.sqrTo(a,g),r.sqrTo(g,a),s-=2;s>0?r.sqrTo(a,g):(f=a,a=g,g=f),r.mulTo(g,o[h],a)}for(;d>=0&&0==(t[d]&1<<i);)r.sqrTo(a,g),f=a,a=g,g=f,--i<0&&(i=this.DB-1,--d)}return r.revert(a)},t.prototype.modInverse=function(e){var n=e.isEven();if(this.isEven()&&n||0==e.signum())return t.ZERO;for(var r=e.clone(),i=this.clone(),a=Ot(1),o=Ot(0),s=Ot(0),u=Ot(1);0!=r.signum();){for(;r.isEven();)r.rShiftTo(1,r),n?(a.isEven()&&o.isEven()||(a.addTo(this,a),o.subTo(e,o)),a.rShiftTo(1,a)):o.isEven()||o.subTo(e,o),o.rShiftTo(1,o);for(;i.isEven();)i.rShiftTo(1,i),n?(s.isEven()&&u.isEven()||(s.addTo(this,s),u.subTo(e,u)),s.rShiftTo(1,s)):u.isEven()||u.subTo(e,u),u.rShiftTo(1,u);r.compareTo(i)>=0?(r.subTo(i,r),n&&a.subTo(s,a),o.subTo(u,o)):(i.subTo(r,i),n&&s.subTo(a,s),u.subTo(o,u))}return 0!=i.compareTo(t.ONE)?t.ZERO:u.compareTo(e)>=0?u.subtract(e):u.signum()<0?(u.addTo(e,u),u.signum()<0?u.add(e):u):u},t.prototype.pow=function(t){return this.exp(t,new _t)},t.prototype.gcd=function(t){var e=this.s<0?this.negate():this.clone(),n=t.s<0?t.negate():t.clone();if(e.compareTo(n)<0){var r=e;e=n,n=r}var i=e.getLowestSetBit(),a=n.getLowestSetBit();if(a<0)return e;for(i<a&&(a=i),a>0&&(e.rShiftTo(a,e),n.rShiftTo(a,n));e.signum()>0;)(i=e.getLowestSetBit())>0&&e.rShiftTo(i,e),(i=n.getLowestSetBit())>0&&n.rShiftTo(i,n),e.compareTo(n)>=0?(e.subTo(n,e),e.rShiftTo(1,e)):(n.subTo(e,n),n.rShiftTo(1,n));return a>0&&n.lShiftTo(a,n),n},t.prototype.isProbablePrime=function(t){var e,n=this.abs();if(1==n.t&&n[0]<=mt[mt.length-1]){for(e=0;e<mt.length;++e)if(n[0]==mt[e])return!0;return!1}if(n.isEven())return!1;for(e=1;e<mt.length;){for(var r=mt[e],i=e+1;i<mt.length&&r<vt;)r*=mt[i++];for(r=n.modInt(r);e<i;)if(r%mt[e++]==0)return!1}return n.millerRabin(t)},t.prototype.copyTo=function(t){for(var e=this.t-1;e>=0;--e)t[e]=this[e];t.t=this.t,t.s=this.s},t.prototype.fromInt=function(t){this.t=1,this.s=t<0?-1:0,t>0?this[0]=t:t<-1?this[0]=t+this.DV:this.t=0},t.prototype.fromString=function(e,n){var r;if(16==n)r=4;else if(8==n)r=3;else if(256==n)r=8;else if(2==n)r=1;else if(32==n)r=5;else{if(4!=n)return void this.fromRadix(e,n);r=2}this.t=0,this.s=0;for(var i=e.length,a=!1,o=0;--i>=0;){var s=8==r?255&+e[i]:Mt(e,i);s<0?"-"==e.charAt(i)&&(a=!0):(a=!1,0==o?this[this.t++]=s:o+r>this.DB?(this[this.t-1]|=(s&(1<<this.DB-o)-1)<<o,this[this.t++]=s>>this.DB-o):this[this.t-1]|=s<<o,(o+=r)>=this.DB&&(o-=this.DB))}8==r&&0!=(128&+e[0])&&(this.s=-1,o>0&&(this[this.t-1]|=(1<<this.DB-o)-1<<o)),this.clamp(),a&&t.ZERO.subTo(this,this)},t.prototype.clamp=function(){for(var t=this.s&this.DM;this.t>0&&this[this.t-1]==t;)--this.t},t.prototype.dlShiftTo=function(t,e){var n;for(n=this.t-1;n>=0;--n)e[n+t]=this[n];for(n=t-1;n>=0;--n)e[n]=0;e.t=this.t+t,e.s=this.s},t.prototype.drShiftTo=function(t,e){for(var n=t;n<this.t;++n)e[n-t]=this[n];e.t=Math.max(this.t-t,0),e.s=this.s},t.prototype.lShiftTo=function(t,e){for(var n=t%this.DB,r=this.DB-n,i=(1<<r)-1,a=Math.floor(t/this.DB),o=this.s<<n&this.DM,s=this.t-1;s>=0;--s)e[s+a+1]=this[s]>>r|o,o=(this[s]&i)<<n;for(s=a-1;s>=0;--s)e[s]=0;e[a]=o,e.t=this.t+a+1,e.s=this.s,e.clamp()},t.prototype.rShiftTo=function(t,e){e.s=this.s;var n=Math.floor(t/this.DB);if(n>=this.t)e.t=0;else{var r=t%this.DB,i=this.DB-r,a=(1<<r)-1;e[0]=this[n]>>r;for(var o=n+1;o<this.t;++o)e[o-n-1]|=(this[o]&a)<<i,e[o-n]=this[o]>>r;r>0&&(e[this.t-n-1]|=(this.s&a)<<i),e.t=this.t-n,e.clamp()}},t.prototype.subTo=function(t,e){for(var n=0,r=0,i=Math.min(t.t,this.t);n<i;)r+=this[n]-t[n],e[n++]=r&this.DM,r>>=this.DB;if(t.t<this.t){for(r-=t.s;n<this.t;)r+=this[n],e[n++]=r&this.DM,r>>=this.DB;r+=this.s}else{for(r+=this.s;n<t.t;)r-=t[n],e[n++]=r&this.DM,r>>=this.DB;r-=t.s}e.s=r<0?-1:0,r<-1?e[n++]=this.DV+r:r>0&&(e[n++]=r),e.t=n,e.clamp()},t.prototype.multiplyTo=function(e,n){var r=this.abs(),i=e.abs(),a=r.t;for(n.t=a+i.t;--a>=0;)n[a]=0;for(a=0;a<i.t;++a)n[a+r.t]=r.am(0,i[a],n,a,0,r.t);n.s=0,n.clamp(),this.s!=e.s&&t.ZERO.subTo(n,n)},t.prototype.squareTo=function(t){for(var e=this.abs(),n=t.t=2*e.t;--n>=0;)t[n]=0;for(n=0;n<e.t-1;++n){var r=e.am(n,e[n],t,2*n,0,1);(t[n+e.t]+=e.am(n+1,2*e[n],t,2*n+1,r,e.t-n-1))>=e.DV&&(t[n+e.t]-=e.DV,t[n+e.t+1]=1)}t.t>0&&(t[t.t-1]+=e.am(n,e[n],t,2*n,0,1)),t.s=0,t.clamp()},t.prototype.divRemTo=function(e,n,r){var i=e.abs();if(!(i.t<=0)){var a=this.abs();if(a.t<i.t)return null!=n&&n.fromInt(0),void(null!=r&&this.copyTo(r));null==r&&(r=St());var o=St(),s=this.s,u=e.s,l=this.DB-At(i[i.t-1]);l>0?(i.lShiftTo(l,o),a.lShiftTo(l,r)):(i.copyTo(o),a.copyTo(r));var c=o.t,h=o[c-1];if(0!=h){var f=h*(1<<this.F1)+(c>1?o[c-2]>>this.F2:0),d=this.FV/f,p=(1<<this.F1)/f,g=1<<this.F2,m=r.t,v=m-c,y=null==n?St():n;for(o.dlShiftTo(v,y),r.compareTo(y)>=0&&(r[r.t++]=1,r.subTo(y,r)),t.ONE.dlShiftTo(c,y),y.subTo(o,o);o.t<c;)o[o.t++]=0;for(;--v>=0;){var _=r[--m]==h?this.DM:Math.floor(r[m]*d+(r[m-1]+g)*p);if((r[m]+=o.am(0,_,r,v,0,c))<_)for(o.dlShiftTo(v,y),r.subTo(y,r);r[m]<--_;)r.subTo(y,r)}null!=n&&(r.drShiftTo(c,n),s!=u&&t.ZERO.subTo(n,n)),r.t=c,r.clamp(),l>0&&r.rShiftTo(l,r),s<0&&t.ZERO.subTo(r,r)}}},t.prototype.invDigit=function(){if(this.t<1)return 0;var t=this[0];if(0==(1&t))return 0;var e=3&t;return(e=(e=(e=(e=e*(2-(15&t)*e)&15)*(2-(255&t)*e)&255)*(2-((65535&t)*e&65535))&65535)*(2-t*e%this.DV)%this.DV)>0?this.DV-e:-e},t.prototype.isEven=function(){return 0==(this.t>0?1&this[0]:this.s)},t.prototype.exp=function(e,n){if(e>4294967295||e<1)return t.ONE;var r=St(),i=St(),a=n.convert(this),o=At(e)-1;for(a.copyTo(r);--o>=0;)if(n.sqrTo(r,i),(e&1<<o)>0)n.mulTo(i,a,r);else{var s=r;r=i,i=s}return n.revert(r)},t.prototype.chunkSize=function(t){return Math.floor(Math.LN2*this.DB/Math.log(t))},t.prototype.toRadix=function(t){if(null==t&&(t=10),0==this.signum()||t<2||t>36)return"0";var e=this.chunkSize(t),n=Math.pow(t,e),r=Ot(n),i=St(),a=St(),o="";for(this.divRemTo(r,i,a);i.signum()>0;)o=(n+a.intValue()).toString(t).substr(1)+o,i.divRemTo(r,i,a);return a.intValue().toString(t)+o},t.prototype.fromRadix=function(e,n){this.fromInt(0),null==n&&(n=10);for(var r=this.chunkSize(n),i=Math.pow(n,r),a=!1,o=0,s=0,u=0;u<e.length;++u){var l=Mt(e,u);l<0?"-"==e.charAt(u)&&0==this.signum()&&(a=!0):(s=n*s+l,++o>=r&&(this.dMultiply(i),this.dAddOffset(s,0),o=0,s=0))}o>0&&(this.dMultiply(Math.pow(n,o)),this.dAddOffset(s,0)),a&&t.ZERO.subTo(this,this)},t.prototype.fromNumber=function(e,n,r){if("number"==typeof n)if(e<2)this.fromInt(1);else for(this.fromNumber(e,r),this.testBit(e-1)||this.bitwiseTo(t.ONE.shiftLeft(e-1),K,this),this.isEven()&&this.dAddOffset(1,0);!this.isProbablePrime(n);)this.dAddOffset(2,0),this.bitLength()>e&&this.subTo(t.ONE.shiftLeft(e-1),this);else{var i=[],a=7&e;i.length=1+(e>>3),n.nextBytes(i),a>0?i[0]&=(1<<a)-1:i[0]=0,this.fromString(i,256)}},t.prototype.bitwiseTo=function(t,e,n){var r,i,a=Math.min(t.t,this.t);for(r=0;r<a;++r)n[r]=e(this[r],t[r]);if(t.t<this.t){for(i=t.s&this.DM,r=a;r<this.t;++r)n[r]=e(this[r],i);n.t=this.t}else{for(i=this.s&this.DM,r=a;r<t.t;++r)n[r]=e(i,t[r]);n.t=t.t}n.s=e(this.s,t.s),n.clamp()},t.prototype.changeBit=function(e,n){var r=t.ONE.shiftLeft(e);return this.bitwiseTo(r,n,r),r},t.prototype.addTo=function(t,e){for(var n=0,r=0,i=Math.min(t.t,this.t);n<i;)r+=this[n]+t[n],e[n++]=r&this.DM,r>>=this.DB;if(t.t<this.t){for(r+=t.s;n<this.t;)r+=this[n],e[n++]=r&this.DM,r>>=this.DB;r+=this.s}else{for(r+=this.s;n<t.t;)r+=t[n],e[n++]=r&this.DM,r>>=this.DB;r+=t.s}e.s=r<0?-1:0,r>0?e[n++]=r:r<-1&&(e[n++]=this.DV+r),e.t=n,e.clamp()},t.prototype.dMultiply=function(t){this[this.t]=this.am(0,t-1,this,0,0,this.t),++this.t,this.clamp()},t.prototype.dAddOffset=function(t,e){if(0!=t){for(;this.t<=e;)this[this.t++]=0;for(this[e]+=t;this[e]>=this.DV;)this[e]-=this.DV,++e>=this.t&&(this[this.t++]=0),++this[e]}},t.prototype.multiplyLowerTo=function(t,e,n){var r=Math.min(this.t+t.t,e);for(n.s=0,n.t=r;r>0;)n[--r]=0;for(var i=n.t-this.t;r<i;++r)n[r+this.t]=this.am(0,t[r],n,r,0,this.t);for(i=Math.min(t.t,e);r<i;++r)this.am(0,t[r],n,r,0,e-r);n.clamp()},t.prototype.multiplyUpperTo=function(t,e,n){--e;var r=n.t=this.t+t.t-e;for(n.s=0;--r>=0;)n[r]=0;for(r=Math.max(e-this.t,0);r<t.t;++r)n[this.t+r-e]=this.am(e-r,t[r],n,0,0,this.t+r-e);n.clamp(),n.drShiftTo(1,n)},t.prototype.modInt=function(t){if(t<=0)return 0;var e=this.DV%t,n=this.s<0?t-1:0;if(this.t>0)if(0==e)n=this[0]%t;else for(var r=this.t-1;r>=0;--r)n=(e*n+this[r])%t;return n},t.prototype.millerRabin=function(e){var n=this.subtract(t.ONE),r=n.getLowestSetBit();if(r<=0)return!1;var i=n.shiftRight(r);(e=e+1>>1)>mt.length&&(e=mt.length);for(var a=St(),o=0;o<e;++o){a.fromInt(mt[Math.floor(Math.random()*mt.length)]);var s=a.modPow(i,this);if(0!=s.compareTo(t.ONE)&&0!=s.compareTo(n)){for(var u=1;u++<r&&0!=s.compareTo(n);)if(0==(s=s.modPowInt(2,this)).compareTo(t.ONE))return!1;if(0!=s.compareTo(n))return!1}}return!0},t.prototype.square=function(){var t=St();return this.squareTo(t),t},t.prototype.gcda=function(t,e){var n=this.s<0?this.negate():this.clone(),r=t.s<0?t.negate():t.clone();if(n.compareTo(r)<0){var i=n;n=r,r=i}var a=n.getLowestSetBit(),o=r.getLowestSetBit();if(o<0)e(n);else{a<o&&(o=a),o>0&&(n.rShiftTo(o,n),r.rShiftTo(o,r));var s=function(){(a=n.getLowestSetBit())>0&&n.rShiftTo(a,n),(a=r.getLowestSetBit())>0&&r.rShiftTo(a,r),n.compareTo(r)>=0?(n.subTo(r,n),n.rShiftTo(1,n)):(r.subTo(n,r),r.rShiftTo(1,r)),n.signum()>0?setTimeout(s,0):(o>0&&r.lShiftTo(o,r),setTimeout((function(){e(r)}),0))};setTimeout(s,10)}},t.prototype.fromNumberAsync=function(e,n,r,i){if("number"==typeof n)if(e<2)this.fromInt(1);else{this.fromNumber(e,r),this.testBit(e-1)||this.bitwiseTo(t.ONE.shiftLeft(e-1),K,this),this.isEven()&&this.dAddOffset(1,0);var a=this,o=function(){a.dAddOffset(2,0),a.bitLength()>e&&a.subTo(t.ONE.shiftLeft(e-1),a),a.isProbablePrime(n)?setTimeout((function(){i()}),0):setTimeout(o,0)};setTimeout(o,0)}else{var s=[],u=7&e;s.length=1+(e>>3),n.nextBytes(s),u>0?s[0]&=(1<<u)-1:s[0]=0,this.fromString(s,256)}},t}(),_t=function(){function t(){}return t.prototype.convert=function(t){return t},t.prototype.revert=function(t){return t},t.prototype.mulTo=function(t,e,n){t.multiplyTo(e,n)},t.prototype.sqrTo=function(t,e){t.squareTo(e)},t}(),bt=function(){function t(t){this.m=t}return t.prototype.convert=function(t){return t.s<0||t.compareTo(this.m)>=0?t.mod(this.m):t},t.prototype.revert=function(t){return t},t.prototype.reduce=function(t){t.divRemTo(this.m,null,t)},t.prototype.mulTo=function(t,e,n){t.multiplyTo(e,n),this.reduce(n)},t.prototype.sqrTo=function(t,e){t.squareTo(e),this.reduce(e)},t}(),wt=function(){function t(t){this.m=t,this.mp=t.invDigit(),this.mpl=32767&this.mp,this.mph=this.mp>>15,this.um=(1<<t.DB-15)-1,this.mt2=2*t.t}return t.prototype.convert=function(t){var e=St();return t.abs().dlShiftTo(this.m.t,e),e.divRemTo(this.m,null,e),t.s<0&&e.compareTo(yt.ZERO)>0&&this.m.subTo(e,e),e},t.prototype.revert=function(t){var e=St();return t.copyTo(e),this.reduce(e),e},t.prototype.reduce=function(t){for(;t.t<=this.mt2;)t[t.t++]=0;for(var e=0;e<this.m.t;++e){var n=32767&t[e],r=n*this.mpl+((n*this.mph+(t[e]>>15)*this.mpl&this.um)<<15)&t.DM;for(t[n=e+this.m.t]+=this.m.am(0,r,t,e,0,this.m.t);t[n]>=t.DV;)t[n]-=t.DV,t[++n]++}t.clamp(),t.drShiftTo(this.m.t,t),t.compareTo(this.m)>=0&&t.subTo(this.m,t)},t.prototype.mulTo=function(t,e,n){t.multiplyTo(e,n),this.reduce(n)},t.prototype.sqrTo=function(t,e){t.squareTo(e),this.reduce(e)},t}(),Dt=function(){function t(t){this.m=t,this.r2=St(),this.q3=St(),yt.ONE.dlShiftTo(2*t.t,this.r2),this.mu=this.r2.divide(t)}return t.prototype.convert=function(t){if(t.s<0||t.t>2*this.m.t)return t.mod(this.m);if(t.compareTo(this.m)<0)return t;var e=St();return t.copyTo(e),this.reduce(e),e},t.prototype.revert=function(t){return t},t.prototype.reduce=function(t){for(t.drShiftTo(this.m.t-1,this.r2),t.t>this.m.t+1&&(t.t=this.m.t+1,t.clamp()),this.mu.multiplyUpperTo(this.r2,this.m.t+1,this.q3),this.m.multiplyLowerTo(this.q3,this.m.t+1,this.r2);t.compareTo(this.r2)<0;)t.dAddOffset(1,this.m.t+1);for(t.subTo(this.r2,t);t.compareTo(this.m)>=0;)t.subTo(this.m,t)},t.prototype.mulTo=function(t,e,n){t.multiplyTo(e,n),this.reduce(n)},t.prototype.sqrTo=function(t,e){t.squareTo(e),this.reduce(e)},t}();function St(){return new yt(null)}function xt(t,e){return new yt(t,e)}var Tt="undefined"!=typeof navigator;Tt&&"Microsoft Internet Explorer"==navigator.appName?(yt.prototype.am=function(t,e,n,r,i,a){for(var o=32767&e,s=e>>15;--a>=0;){var u=32767&this[t],l=this[t++]>>15,c=s*u+l*o;i=((u=o*u+((32767&c)<<15)+n[r]+(1073741823&i))>>>30)+(c>>>15)+s*l+(i>>>30),n[r++]=1073741823&u}return i},ft=30):Tt&&"Netscape"!=navigator.appName?(yt.prototype.am=function(t,e,n,r,i,a){for(;--a>=0;){var o=e*this[t++]+n[r]+i;i=Math.floor(o/67108864),n[r++]=67108863&o}return i},ft=26):(yt.prototype.am=function(t,e,n,r,i,a){for(var o=16383&e,s=e>>14;--a>=0;){var u=16383&this[t],l=this[t++]>>14,c=s*u+l*o;i=((u=o*u+((16383&c)<<14)+n[r]+i)>>28)+(c>>14)+s*l,n[r++]=268435455&u}return i},ft=28),yt.prototype.DB=ft,yt.prototype.DM=(1<<ft)-1,yt.prototype.DV=1<<ft;yt.prototype.FV=Math.pow(2,52),yt.prototype.F1=52-ft,yt.prototype.F2=2*ft-52;var kt,Ct,Et=[];for(kt="0".charCodeAt(0),Ct=0;Ct<=9;++Ct)Et[kt++]=Ct;for(kt="a".charCodeAt(0),Ct=10;Ct<36;++Ct)Et[kt++]=Ct;for(kt="A".charCodeAt(0),Ct=10;Ct<36;++Ct)Et[kt++]=Ct;function Mt(t,e){var n=Et[t.charCodeAt(e)];return null==n?-1:n}function Ot(t){var e=St();return e.fromInt(t),e}function At(t){var e,n=1;return 0!=(e=t>>>16)&&(t=e,n+=16),0!=(e=t>>8)&&(t=e,n+=8),0!=(e=t>>4)&&(t=e,n+=4),0!=(e=t>>2)&&(t=e,n+=2),0!=(e=t>>1)&&(t=e,n+=1),n}yt.ZERO=Ot(0),yt.ONE=Ot(1);var Pt=function(){function t(){this.i=0,this.j=0,this.S=[]}return t.prototype.init=function(t){var e,n,r;for(e=0;e<256;++e)this.S[e]=e;for(n=0,e=0;e<256;++e)n=n+this.S[e]+t[e%t.length]&255,r=this.S[e],this.S[e]=this.S[n],this.S[n]=r;this.i=0,this.j=0},t.prototype.next=function(){var t;return this.i=this.i+1&255,this.j=this.j+this.S[this.i]&255,t=this.S[this.i],this.S[this.i]=this.S[this.j],this.S[this.j]=t,this.S[t+this.S[this.i]&255]},t}();var Bt,Rt,Vt=null;if(null==Vt){Vt=[],Rt=0;var Nt=void 0;if("undefined"!=typeof window&&window.crypto&&window.crypto.getRandomValues){var It=new Uint32Array(256);for(window.crypto.getRandomValues(It),Nt=0;Nt<It.length;++Nt)Vt[Rt++]=255&It[Nt]}var Ft=0,Yt=function(t){if((Ft=Ft||0)>=256||Rt>=256)window.removeEventListener?window.removeEventListener("mousemove",Yt,!1):window.detachEvent&&window.detachEvent("onmousemove",Yt);else try{var e=t.x+t.y;Vt[Rt++]=255&e,Ft+=1}catch(t){}};"undefined"!=typeof window&&(window.addEventListener?window.addEventListener("mousemove",Yt,!1):window.attachEvent&&window.attachEvent("onmousemove",Yt))}function Lt(){if(null==Bt){for(Bt=new Pt;Rt<256;){var t=Math.floor(65536*Math.random());Vt[Rt++]=255&t}for(Bt.init(Vt),Rt=0;Rt<Vt.length;++Rt)Vt[Rt]=0;Rt=0}return Bt.next()}var jt=function(){function t(){}return t.prototype.nextBytes=function(t){for(var e=0;e<t.length;++e)t[e]=Lt()},t}();var Ht=function(){function t(){this.n=null,this.e=0,this.d=null,this.p=null,this.q=null,this.dmp1=null,this.dmq1=null,this.coeff=null}return t.prototype.doPublic=function(t){return t.modPowInt(this.e,this.n)},t.prototype.doPrivate=function(t){if(null==this.p||null==this.q)return t.modPow(this.d,this.n);for(var e=t.mod(this.p).modPow(this.dmp1,this.p),n=t.mod(this.q).modPow(this.dmq1,this.q);e.compareTo(n)<0;)e=e.add(this.p);return e.subtract(n).multiply(this.coeff).mod(this.p).multiply(this.q).add(n)},t.prototype.setPublic=function(t,e){null!=t&&null!=e&&t.length>0&&e.length>0?(this.n=xt(t,16),this.e=parseInt(e,16)):console.error("Invalid RSA public key")},t.prototype.encrypt=function(t){var e=this.n.bitLength()+7>>3,n=function(t,e){if(e<t.length+11)return console.error("Message too long for RSA"),null;for(var n=[],r=t.length-1;r>=0&&e>0;){var i=t.charCodeAt(r--);i<128?n[--e]=i:i>127&&i<2048?(n[--e]=63&i|128,n[--e]=i>>6|192):(n[--e]=63&i|128,n[--e]=i>>6&63|128,n[--e]=i>>12|224)}n[--e]=0;for(var a=new jt,o=[];e>2;){for(o[0]=0;0==o[0];)a.nextBytes(o);n[--e]=o[0]}return n[--e]=2,n[--e]=0,new yt(n)}(t,e);if(null==n)return null;var r=this.doPublic(n);if(null==r)return null;for(var i=r.toString(16),a=i.length,o=0;o<2*e-a;o++)i="0"+i;return i},t.prototype.setPrivate=function(t,e,n){null!=t&&null!=e&&t.length>0&&e.length>0?(this.n=xt(t,16),this.e=parseInt(e,16),this.d=xt(n,16)):console.error("Invalid RSA private key")},t.prototype.setPrivateEx=function(t,e,n,r,i,a,o,s){null!=t&&null!=e&&t.length>0&&e.length>0?(this.n=xt(t,16),this.e=parseInt(e,16),this.d=xt(n,16),this.p=xt(r,16),this.q=xt(i,16),this.dmp1=xt(a,16),this.dmq1=xt(o,16),this.coeff=xt(s,16)):console.error("Invalid RSA private key")},t.prototype.generate=function(t,e){var n=new jt,r=t>>1;this.e=parseInt(e,16);for(var i=new yt(e,16);;){for(;this.p=new yt(t-r,1,n),0!=this.p.subtract(yt.ONE).gcd(i).compareTo(yt.ONE)||!this.p.isProbablePrime(10););for(;this.q=new yt(r,1,n),0!=this.q.subtract(yt.ONE).gcd(i).compareTo(yt.ONE)||!this.q.isProbablePrime(10););if(this.p.compareTo(this.q)<=0){var a=this.p;this.p=this.q,this.q=a}var o=this.p.subtract(yt.ONE),s=this.q.subtract(yt.ONE),u=o.multiply(s);if(0==u.gcd(i).compareTo(yt.ONE)){this.n=this.p.multiply(this.q),this.d=i.modInverse(u),this.dmp1=this.d.mod(o),this.dmq1=this.d.mod(s),this.coeff=this.q.modInverse(this.p);break}}},t.prototype.decrypt=function(t){var e=xt(t,16),n=this.doPrivate(e);return null==n?null:function(t,e){var n=t.toByteArray(),r=0;for(;r<n.length&&0==n[r];)++r;if(n.length-r!=e-1||2!=n[r])return null;++r;for(;0!=n[r];)if(++r>=n.length)return null;var i="";for(;++r<n.length;){var a=255&n[r];a<128?i+=String.fromCharCode(a):a>191&&a<224?(i+=String.fromCharCode((31&a)<<6|63&n[r+1]),++r):(i+=String.fromCharCode((15&a)<<12|(63&n[r+1])<<6|63&n[r+2]),r+=2)}return i}(n,this.n.bitLength()+7>>3)},t.prototype.generateAsync=function(t,e,n){var r=new jt,i=t>>1;this.e=parseInt(e,16);var a=new yt(e,16),o=this,s=function(){var e=function(){if(o.p.compareTo(o.q)<=0){var t=o.p;o.p=o.q,o.q=t}var e=o.p.subtract(yt.ONE),r=o.q.subtract(yt.ONE),i=e.multiply(r);0==i.gcd(a).compareTo(yt.ONE)?(o.n=o.p.multiply(o.q),o.d=a.modInverse(i),o.dmp1=o.d.mod(e),o.dmq1=o.d.mod(r),o.coeff=o.q.modInverse(o.p),setTimeout((function(){n()}),0)):setTimeout(s,0)},u=function(){o.q=St(),o.q.fromNumberAsync(i,1,r,(function(){o.q.subtract(yt.ONE).gcda(a,(function(t){0==t.compareTo(yt.ONE)&&o.q.isProbablePrime(10)?setTimeout(e,0):setTimeout(u,0)}))}))},l=function(){o.p=St(),o.p.fromNumberAsync(t-i,1,r,(function(){o.p.subtract(yt.ONE).gcda(a,(function(t){0==t.compareTo(yt.ONE)&&o.p.isProbablePrime(10)?setTimeout(u,0):setTimeout(l,0)}))}))};setTimeout(l,0)};setTimeout(s,0)},t.prototype.sign=function(t,e,n){var r=function(t,e){if(e<t.length+22)return console.error("Message too long for RSA"),null;for(var n=e-t.length-6,r="",i=0;i<n;i+=2)r+="ff";return xt("0001"+r+"00"+t,16)}((zt[n]||"")+e(t).toString(),this.n.bitLength()/4);if(null==r)return null;var i=this.doPrivate(r);if(null==i)return null;var a=i.toString(16);return 0==(1&a.length)?a:"0"+a},t.prototype.verify=function(t,e,n){var r=xt(e,16),i=this.doPublic(r);return null==i?null:function(t){for(var e in zt)if(zt.hasOwnProperty(e)){var n=zt[e],r=n.length;if(t.substr(0,r)==n)return t.substr(r)}return t}
|
|
4
4
|
/*!
|
|
5
5
|
Copyright (c) 2011, Yahoo! Inc. All rights reserved.
|
|
6
6
|
Code licensed under the BSD License:
|
|
7
7
|
http://developer.yahoo.com/yui/license.html
|
|
8
8
|
version: 2.9.0
|
|
9
|
-
*/(i.toString(16).replace(/^1f+00/,""))==n(t).toString()},t}();var
|
|
9
|
+
*/(i.toString(16).replace(/^1f+00/,""))==n(t).toString()},t}();var zt={md2:"3020300c06082a864886f70d020205000410",md5:"3020300c06082a864886f70d020505000410",sha1:"3021300906052b0e03021a05000414",sha224:"302d300d06096086480165030402040500041c",sha256:"3031300d060960864801650304020105000420",sha384:"3041300d060960864801650304020205000430",sha512:"3051300d060960864801650304020305000440",ripemd160:"3021300906052b2403020105000414"};var Ut={};Ut.lang={extend:function(t,e,n){if(!e||!t)throw new Error("YAHOO.lang.extend failed, please check that all dependencies are included.");var r=function(){};if(r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t,t.superclass=e.prototype,e.prototype.constructor==Object.prototype.constructor&&(e.prototype.constructor=e),n){var i;for(i in n)t.prototype[i]=n[i];var a=function(){},o=["toString","valueOf"];try{/MSIE/.test(navigator.userAgent)&&(a=function(t,e){for(i=0;i<o.length;i+=1){var n=o[i],r=e[n];"function"==typeof r&&r!=Object.prototype[n]&&(t[n]=r)}})}catch(t){}a(t.prototype,n)}}};
|
|
10
10
|
/**
|
|
11
11
|
* @fileOverview
|
|
12
12
|
* @name asn1-1.0.js
|
|
@@ -15,7 +15,7 @@ version: 2.9.0
|
|
|
15
15
|
* @since jsrsasign 2.1
|
|
16
16
|
* @license <a href="https://kjur.github.io/jsrsasign/license/">MIT License</a>
|
|
17
17
|
*/
|
|
18
|
-
var zt={};void 0!==zt.asn1&&zt.asn1||(zt.asn1={}),zt.asn1.ASN1Util=new function(){this.integerToByteHex=function(t){var e=t.toString(16);return e.length%2==1&&(e="0"+e),e},this.bigIntToMinTwosComplementsHex=function(t){var e=t.toString(16);if("-"!=e.substr(0,1))e.length%2==1?e="0"+e:e.match(/^[0-7]/)||(e="00"+e);else{var n=e.substr(1).length;n%2==1?n+=1:e.match(/^[0-7]/)||(n+=2);for(var r="",i=0;i<n;i++)r+="f";e=new vt(r,16).xor(t).add(vt.ONE).toString(16).replace(/^-/,"")}return e},this.getPEMStringFromHex=function(t,e){return hextopem(t,e)},this.newObject=function(t){var e=zt.asn1,n=e.DERBoolean,r=e.DERInteger,i=e.DERBitString,a=e.DEROctetString,o=e.DERNull,s=e.DERObjectIdentifier,u=e.DEREnumerated,l=e.DERUTF8String,c=e.DERNumericString,h=e.DERPrintableString,f=e.DERTeletexString,d=e.DERIA5String,p=e.DERUTCTime,g=e.DERGeneralizedTime,v=e.DERSequence,m=e.DERSet,y=e.DERTaggedObject,_=e.ASN1Util.newObject,b=Object.keys(t);if(1!=b.length)throw"key of param shall be only one.";var w=b[0];if(-1==":bool:int:bitstr:octstr:null:oid:enum:utf8str:numstr:prnstr:telstr:ia5str:utctime:gentime:seq:set:tag:".indexOf(":"+w+":"))throw"undefined key: "+w;if("bool"==w)return new n(t[w]);if("int"==w)return new r(t[w]);if("bitstr"==w)return new i(t[w]);if("octstr"==w)return new a(t[w]);if("null"==w)return new o(t[w]);if("oid"==w)return new s(t[w]);if("enum"==w)return new u(t[w]);if("utf8str"==w)return new l(t[w]);if("numstr"==w)return new c(t[w]);if("prnstr"==w)return new h(t[w]);if("telstr"==w)return new f(t[w]);if("ia5str"==w)return new d(t[w]);if("utctime"==w)return new p(t[w]);if("gentime"==w)return new g(t[w]);if("seq"==w){for(var D=t[w],S=[],x=0;x<D.length;x++){var T=_(D[x]);S.push(T)}return new v({array:S})}if("set"==w){for(D=t[w],S=[],x=0;x<D.length;x++){T=_(D[x]);S.push(T)}return new m({array:S})}if("tag"==w){var k=t[w];if("[object Array]"===Object.prototype.toString.call(k)&&3==k.length){var C=_(k[2]);return new y({tag:k[0],explicit:k[1],obj:C})}var E={};if(void 0!==k.explicit&&(E.explicit=k.explicit),void 0!==k.tag&&(E.tag=k.tag),void 0===k.obj)throw"obj shall be specified for 'tag'.";return E.obj=_(k.obj),new y(E)}},this.jsonToASN1HEX=function(t){return this.newObject(t).getEncodedHex()}},zt.asn1.ASN1Util.oidHexToInt=function(t){for(var e="",n=parseInt(t.substr(0,2),16),r=(e=Math.floor(n/40)+"."+n%40,""),i=2;i<t.length;i+=2){var a=("00000000"+parseInt(t.substr(i,2),16).toString(2)).slice(-8);if(r+=a.substr(1,7),"0"==a.substr(0,1))e=e+"."+new vt(r,2).toString(10),r=""}return e},zt.asn1.ASN1Util.oidIntToHex=function(t){var e=function(t){var e=t.toString(16);return 1==e.length&&(e="0"+e),e},n=function(t){var n="",r=new vt(t,10).toString(2),i=7-r.length%7;7==i&&(i=0);for(var a="",o=0;o<i;o++)a+="0";r=a+r;for(o=0;o<r.length-1;o+=7){var s=r.substr(o,7);o!=r.length-7&&(s="1"+s),n+=e(parseInt(s,2))}return n};if(!t.match(/^[0-9.]+$/))throw"malformed oid string: "+t;var r="",i=t.split("."),a=40*parseInt(i[0])+parseInt(i[1]);r+=e(a),i.splice(0,2);for(var o=0;o<i.length;o++)r+=n(i[o]);return r},zt.asn1.ASN1Object=function(){this.getLengthHexFromValue=function(){if(void 0===this.hV||null==this.hV)throw"this.hV is null or undefined.";if(this.hV.length%2==1)throw"value hex must be even length: n=0,v="+this.hV;var t=this.hV.length/2,e=t.toString(16);if(e.length%2==1&&(e="0"+e),t<128)return e;var n=e.length/2;if(n>15)throw"ASN.1 length too long to represent by 8x: n = "+t.toString(16);return(128+n).toString(16)+e},this.getEncodedHex=function(){return(null==this.hTLV||this.isModified)&&(this.hV=this.getFreshValueHex(),this.hL=this.getLengthHexFromValue(),this.hTLV=this.hT+this.hL+this.hV,this.isModified=!1),this.hTLV},this.getValueHex=function(){return this.getEncodedHex(),this.hV},this.getFreshValueHex=function(){return""}},zt.asn1.DERAbstractString=function(t){zt.asn1.DERAbstractString.superclass.constructor.call(this),this.getString=function(){return this.s},this.setString=function(t){this.hTLV=null,this.isModified=!0,this.s=t,this.hV=stohex(this.s)},this.setStringHex=function(t){this.hTLV=null,this.isModified=!0,this.s=null,this.hV=t},this.getFreshValueHex=function(){return this.hV},void 0!==t&&("string"==typeof t?this.setString(t):void 0!==t.str?this.setString(t.str):void 0!==t.hex&&this.setStringHex(t.hex))},Ht.lang.extend(zt.asn1.DERAbstractString,zt.asn1.ASN1Object),zt.asn1.DERAbstractTime=function(t){zt.asn1.DERAbstractTime.superclass.constructor.call(this),this.localDateToUTC=function(t){return utc=t.getTime()+6e4*t.getTimezoneOffset(),new Date(utc)},this.formatDate=function(t,e,n){var r=this.zeroPadding,i=this.localDateToUTC(t),a=String(i.getFullYear());"utc"==e&&(a=a.substr(2,2));var o=a+r(String(i.getMonth()+1),2)+r(String(i.getDate()),2)+r(String(i.getHours()),2)+r(String(i.getMinutes()),2)+r(String(i.getSeconds()),2);if(!0===n){var s=i.getMilliseconds();if(0!=s){var u=r(String(s),3);o=o+"."+(u=u.replace(/[0]+$/,""))}}return o+"Z"},this.zeroPadding=function(t,e){return t.length>=e?t:new Array(e-t.length+1).join("0")+t},this.getString=function(){return this.s},this.setString=function(t){this.hTLV=null,this.isModified=!0,this.s=t,this.hV=stohex(t)},this.setByDateValue=function(t,e,n,r,i,a){var o=new Date(Date.UTC(t,e-1,n,r,i,a,0));this.setByDate(o)},this.getFreshValueHex=function(){return this.hV}},Ht.lang.extend(zt.asn1.DERAbstractTime,zt.asn1.ASN1Object),zt.asn1.DERAbstractStructured=function(t){zt.asn1.DERAbstractString.superclass.constructor.call(this),this.setByASN1ObjectArray=function(t){this.hTLV=null,this.isModified=!0,this.asn1Array=t},this.appendASN1Object=function(t){this.hTLV=null,this.isModified=!0,this.asn1Array.push(t)},this.asn1Array=new Array,void 0!==t&&void 0!==t.array&&(this.asn1Array=t.array)},Ht.lang.extend(zt.asn1.DERAbstractStructured,zt.asn1.ASN1Object),zt.asn1.DERBoolean=function(){zt.asn1.DERBoolean.superclass.constructor.call(this),this.hT="01",this.hTLV="0101ff"},Ht.lang.extend(zt.asn1.DERBoolean,zt.asn1.ASN1Object),zt.asn1.DERInteger=function(t){zt.asn1.DERInteger.superclass.constructor.call(this),this.hT="02",this.setByBigInteger=function(t){this.hTLV=null,this.isModified=!0,this.hV=zt.asn1.ASN1Util.bigIntToMinTwosComplementsHex(t)},this.setByInteger=function(t){var e=new vt(String(t),10);this.setByBigInteger(e)},this.setValueHex=function(t){this.hV=t},this.getFreshValueHex=function(){return this.hV},void 0!==t&&(void 0!==t.bigint?this.setByBigInteger(t.bigint):void 0!==t.int?this.setByInteger(t.int):"number"==typeof t?this.setByInteger(t):void 0!==t.hex&&this.setValueHex(t.hex))},Ht.lang.extend(zt.asn1.DERInteger,zt.asn1.ASN1Object),zt.asn1.DERBitString=function(t){if(void 0!==t&&void 0!==t.obj){var e=zt.asn1.ASN1Util.newObject(t.obj);t.hex="00"+e.getEncodedHex()}zt.asn1.DERBitString.superclass.constructor.call(this),this.hT="03",this.setHexValueIncludingUnusedBits=function(t){this.hTLV=null,this.isModified=!0,this.hV=t},this.setUnusedBitsAndHexValue=function(t,e){if(t<0||7<t)throw"unused bits shall be from 0 to 7: u = "+t;var n="0"+t;this.hTLV=null,this.isModified=!0,this.hV=n+e},this.setByBinaryString=function(t){var e=8-(t=t.replace(/0+$/,"")).length%8;8==e&&(e=0);for(var n=0;n<=e;n++)t+="0";var r="";for(n=0;n<t.length-1;n+=8){var i=t.substr(n,8),a=parseInt(i,2).toString(16);1==a.length&&(a="0"+a),r+=a}this.hTLV=null,this.isModified=!0,this.hV="0"+e+r},this.setByBooleanArray=function(t){for(var e="",n=0;n<t.length;n++)1==t[n]?e+="1":e+="0";this.setByBinaryString(e)},this.newFalseArray=function(t){for(var e=new Array(t),n=0;n<t;n++)e[n]=!1;return e},this.getFreshValueHex=function(){return this.hV},void 0!==t&&("string"==typeof t&&t.toLowerCase().match(/^[0-9a-f]+$/)?this.setHexValueIncludingUnusedBits(t):void 0!==t.hex?this.setHexValueIncludingUnusedBits(t.hex):void 0!==t.bin?this.setByBinaryString(t.bin):void 0!==t.array&&this.setByBooleanArray(t.array))},Ht.lang.extend(zt.asn1.DERBitString,zt.asn1.ASN1Object),zt.asn1.DEROctetString=function(t){if(void 0!==t&&void 0!==t.obj){var e=zt.asn1.ASN1Util.newObject(t.obj);t.hex=e.getEncodedHex()}zt.asn1.DEROctetString.superclass.constructor.call(this,t),this.hT="04"},Ht.lang.extend(zt.asn1.DEROctetString,zt.asn1.DERAbstractString),zt.asn1.DERNull=function(){zt.asn1.DERNull.superclass.constructor.call(this),this.hT="05",this.hTLV="0500"},Ht.lang.extend(zt.asn1.DERNull,zt.asn1.ASN1Object),zt.asn1.DERObjectIdentifier=function(t){var e=function(t){var e=t.toString(16);return 1==e.length&&(e="0"+e),e},n=function(t){var n="",r=new vt(t,10).toString(2),i=7-r.length%7;7==i&&(i=0);for(var a="",o=0;o<i;o++)a+="0";r=a+r;for(o=0;o<r.length-1;o+=7){var s=r.substr(o,7);o!=r.length-7&&(s="1"+s),n+=e(parseInt(s,2))}return n};zt.asn1.DERObjectIdentifier.superclass.constructor.call(this),this.hT="06",this.setValueHex=function(t){this.hTLV=null,this.isModified=!0,this.s=null,this.hV=t},this.setValueOidString=function(t){if(!t.match(/^[0-9.]+$/))throw"malformed oid string: "+t;var r="",i=t.split("."),a=40*parseInt(i[0])+parseInt(i[1]);r+=e(a),i.splice(0,2);for(var o=0;o<i.length;o++)r+=n(i[o]);this.hTLV=null,this.isModified=!0,this.s=null,this.hV=r},this.setValueName=function(t){var e=zt.asn1.x509.OID.name2oid(t);if(""===e)throw"DERObjectIdentifier oidName undefined: "+t;this.setValueOidString(e)},this.getFreshValueHex=function(){return this.hV},void 0!==t&&("string"==typeof t?t.match(/^[0-2].[0-9.]+$/)?this.setValueOidString(t):this.setValueName(t):void 0!==t.oid?this.setValueOidString(t.oid):void 0!==t.hex?this.setValueHex(t.hex):void 0!==t.name&&this.setValueName(t.name))},Ht.lang.extend(zt.asn1.DERObjectIdentifier,zt.asn1.ASN1Object),zt.asn1.DEREnumerated=function(t){zt.asn1.DEREnumerated.superclass.constructor.call(this),this.hT="0a",this.setByBigInteger=function(t){this.hTLV=null,this.isModified=!0,this.hV=zt.asn1.ASN1Util.bigIntToMinTwosComplementsHex(t)},this.setByInteger=function(t){var e=new vt(String(t),10);this.setByBigInteger(e)},this.setValueHex=function(t){this.hV=t},this.getFreshValueHex=function(){return this.hV},void 0!==t&&(void 0!==t.int?this.setByInteger(t.int):"number"==typeof t?this.setByInteger(t):void 0!==t.hex&&this.setValueHex(t.hex))},Ht.lang.extend(zt.asn1.DEREnumerated,zt.asn1.ASN1Object),zt.asn1.DERUTF8String=function(t){zt.asn1.DERUTF8String.superclass.constructor.call(this,t),this.hT="0c"},Ht.lang.extend(zt.asn1.DERUTF8String,zt.asn1.DERAbstractString),zt.asn1.DERNumericString=function(t){zt.asn1.DERNumericString.superclass.constructor.call(this,t),this.hT="12"},Ht.lang.extend(zt.asn1.DERNumericString,zt.asn1.DERAbstractString),zt.asn1.DERPrintableString=function(t){zt.asn1.DERPrintableString.superclass.constructor.call(this,t),this.hT="13"},Ht.lang.extend(zt.asn1.DERPrintableString,zt.asn1.DERAbstractString),zt.asn1.DERTeletexString=function(t){zt.asn1.DERTeletexString.superclass.constructor.call(this,t),this.hT="14"},Ht.lang.extend(zt.asn1.DERTeletexString,zt.asn1.DERAbstractString),zt.asn1.DERIA5String=function(t){zt.asn1.DERIA5String.superclass.constructor.call(this,t),this.hT="16"},Ht.lang.extend(zt.asn1.DERIA5String,zt.asn1.DERAbstractString),zt.asn1.DERUTCTime=function(t){zt.asn1.DERUTCTime.superclass.constructor.call(this,t),this.hT="17",this.setByDate=function(t){this.hTLV=null,this.isModified=!0,this.date=t,this.s=this.formatDate(this.date,"utc"),this.hV=stohex(this.s)},this.getFreshValueHex=function(){return void 0===this.date&&void 0===this.s&&(this.date=new Date,this.s=this.formatDate(this.date,"utc"),this.hV=stohex(this.s)),this.hV},void 0!==t&&(void 0!==t.str?this.setString(t.str):"string"==typeof t&&t.match(/^[0-9]{12}Z$/)?this.setString(t):void 0!==t.hex?this.setStringHex(t.hex):void 0!==t.date&&this.setByDate(t.date))},Ht.lang.extend(zt.asn1.DERUTCTime,zt.asn1.DERAbstractTime),zt.asn1.DERGeneralizedTime=function(t){zt.asn1.DERGeneralizedTime.superclass.constructor.call(this,t),this.hT="18",this.withMillis=!1,this.setByDate=function(t){this.hTLV=null,this.isModified=!0,this.date=t,this.s=this.formatDate(this.date,"gen",this.withMillis),this.hV=stohex(this.s)},this.getFreshValueHex=function(){return void 0===this.date&&void 0===this.s&&(this.date=new Date,this.s=this.formatDate(this.date,"gen",this.withMillis),this.hV=stohex(this.s)),this.hV},void 0!==t&&(void 0!==t.str?this.setString(t.str):"string"==typeof t&&t.match(/^[0-9]{14}Z$/)?this.setString(t):void 0!==t.hex?this.setStringHex(t.hex):void 0!==t.date&&this.setByDate(t.date),!0===t.millis&&(this.withMillis=!0))},Ht.lang.extend(zt.asn1.DERGeneralizedTime,zt.asn1.DERAbstractTime),zt.asn1.DERSequence=function(t){zt.asn1.DERSequence.superclass.constructor.call(this,t),this.hT="30",this.getFreshValueHex=function(){for(var t="",e=0;e<this.asn1Array.length;e++){t+=this.asn1Array[e].getEncodedHex()}return this.hV=t,this.hV}},Ht.lang.extend(zt.asn1.DERSequence,zt.asn1.DERAbstractStructured),zt.asn1.DERSet=function(t){zt.asn1.DERSet.superclass.constructor.call(this,t),this.hT="31",this.sortFlag=!0,this.getFreshValueHex=function(){for(var t=new Array,e=0;e<this.asn1Array.length;e++){var n=this.asn1Array[e];t.push(n.getEncodedHex())}return 1==this.sortFlag&&t.sort(),this.hV=t.join(""),this.hV},void 0!==t&&void 0!==t.sortflag&&0==t.sortflag&&(this.sortFlag=!1)},Ht.lang.extend(zt.asn1.DERSet,zt.asn1.DERAbstractStructured),zt.asn1.DERTaggedObject=function(t){zt.asn1.DERTaggedObject.superclass.constructor.call(this),this.hT="a0",this.hV="",this.isExplicit=!0,this.asn1Object=null,this.setASN1Object=function(t,e,n){this.hT=e,this.isExplicit=t,this.asn1Object=n,this.isExplicit?(this.hV=this.asn1Object.getEncodedHex(),this.hTLV=null,this.isModified=!0):(this.hV=null,this.hTLV=n.getEncodedHex(),this.hTLV=this.hTLV.replace(/^../,e),this.isModified=!1)},this.getFreshValueHex=function(){return this.hV},void 0!==t&&(void 0!==t.tag&&(this.hT=t.tag),void 0!==t.explicit&&(this.isExplicit=t.explicit),void 0!==t.obj&&(this.asn1Object=t.obj,this.setASN1Object(this.isExplicit,this.hT,this.asn1Object)))},Ht.lang.extend(zt.asn1.DERTaggedObject,zt.asn1.ASN1Object);var Ut,Wt=window&&window.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),qt=function(t){function e(n){var r=t.call(this)||this;return n&&("string"==typeof n?r.parseKey(n):(e.hasPrivateKeyProperty(n)||e.hasPublicKeyProperty(n))&&r.parsePropertiesFrom(n)),r}return Wt(e,t),e.prototype.parseKey=function(t){try{var e=0,n=0,r=/^\s*(?:[0-9A-Fa-f][0-9A-Fa-f]\s*)+$/.test(t)?nt(t):rt.unarmor(t),i=ft.decode(r);if(3===i.sub.length&&(i=i.sub[2].sub[0]),9===i.sub.length){e=i.sub[1].getHexStringValue(),this.n=Dt(e,16),n=i.sub[2].getHexStringValue(),this.e=parseInt(n,16);var a=i.sub[3].getHexStringValue();this.d=Dt(a,16);var o=i.sub[4].getHexStringValue();this.p=Dt(o,16);var s=i.sub[5].getHexStringValue();this.q=Dt(s,16);var u=i.sub[6].getHexStringValue();this.dmp1=Dt(u,16);var l=i.sub[7].getHexStringValue();this.dmq1=Dt(l,16);var c=i.sub[8].getHexStringValue();this.coeff=Dt(c,16)}else{if(2!==i.sub.length)return!1;if(i.sub[0].sub){var h=i.sub[1].sub[0];e=h.sub[0].getHexStringValue(),this.n=Dt(e,16),n=h.sub[1].getHexStringValue(),this.e=parseInt(n,16)}else e=i.sub[0].getHexStringValue(),this.n=Dt(e,16),n=i.sub[1].getHexStringValue(),this.e=parseInt(n,16)}return!0}catch(t){return!1}},e.prototype.getPrivateBaseKey=function(){var t={array:[new zt.asn1.DERInteger({int:0}),new zt.asn1.DERInteger({bigint:this.n}),new zt.asn1.DERInteger({int:this.e}),new zt.asn1.DERInteger({bigint:this.d}),new zt.asn1.DERInteger({bigint:this.p}),new zt.asn1.DERInteger({bigint:this.q}),new zt.asn1.DERInteger({bigint:this.dmp1}),new zt.asn1.DERInteger({bigint:this.dmq1}),new zt.asn1.DERInteger({bigint:this.coeff})]};return new zt.asn1.DERSequence(t).getEncodedHex()},e.prototype.getPrivateBaseKeyB64=function(){return Q(this.getPrivateBaseKey())},e.prototype.getPublicBaseKey=function(){var t=new zt.asn1.DERSequence({array:[new zt.asn1.DERObjectIdentifier({oid:"1.2.840.113549.1.1.1"}),new zt.asn1.DERNull]}),e=new zt.asn1.DERSequence({array:[new zt.asn1.DERInteger({bigint:this.n}),new zt.asn1.DERInteger({int:this.e})]}),n=new zt.asn1.DERBitString({hex:"00"+e.getEncodedHex()});return new zt.asn1.DERSequence({array:[t,n]}).getEncodedHex()},e.prototype.getPublicBaseKeyB64=function(){return Q(this.getPublicBaseKey())},e.wordwrap=function(t,e){if(!t)return t;var n="(.{1,"+(e=e||64)+"})( +|$\n?)|(.{1,"+e+"})";return t.match(RegExp(n,"g")).join("\n")},e.prototype.getPrivateKey=function(){var t="-----BEGIN RSA PRIVATE KEY-----\n";return t+=e.wordwrap(this.getPrivateBaseKeyB64())+"\n",t+="-----END RSA PRIVATE KEY-----"},e.prototype.getPublicKey=function(){var t="-----BEGIN PUBLIC KEY-----\n";return t+=e.wordwrap(this.getPublicBaseKeyB64())+"\n",t+="-----END PUBLIC KEY-----"},e.hasPublicKeyProperty=function(t){return(t=t||{}).hasOwnProperty("n")&&t.hasOwnProperty("e")},e.hasPrivateKeyProperty=function(t){return(t=t||{}).hasOwnProperty("n")&&t.hasOwnProperty("e")&&t.hasOwnProperty("d")&&t.hasOwnProperty("p")&&t.hasOwnProperty("q")&&t.hasOwnProperty("dmp1")&&t.hasOwnProperty("dmq1")&&t.hasOwnProperty("coeff")},e.prototype.parsePropertiesFrom=function(t){this.n=t.n,this.e=t.e,t.hasOwnProperty("d")&&(this.d=t.d,this.p=t.p,this.q=t.q,this.dmp1=t.dmp1,this.dmq1=t.dmq1,this.coeff=t.coeff)},e}(Lt),Gt=void 0!==H?null===(Ut=H.env)||void 0===Ut?void 0:Ut.npm_package_version:void 0,Kt=function(){function t(t){void 0===t&&(t={}),t=t||{},this.default_key_size=t.default_key_size?parseInt(t.default_key_size,10):1024,this.default_public_exponent=t.default_public_exponent||"010001",this.log=t.log||!1,this.key=null}return t.prototype.setKey=function(t){this.log&&this.key&&console.warn("A key was already set, overriding existing."),this.key=new qt(t)},t.prototype.setPrivateKey=function(t){this.setKey(t)},t.prototype.setPublicKey=function(t){this.setKey(t)},t.prototype.decrypt=function(t){try{return this.getKey().decrypt(tt(t))}catch(t){return!1}},t.prototype.encrypt=function(t){try{return Q(this.getKey().encrypt(t))}catch(t){return!1}},t.prototype.sign=function(t,e,n){try{return Q(this.getKey().sign(t,e,n))}catch(t){return!1}},t.prototype.verify=function(t,e,n){try{return this.getKey().verify(t,tt(e),n)}catch(t){return!1}},t.prototype.getKey=function(t){if(!this.key){if(this.key=new qt,t&&"[object Function]"==={}.toString.call(t))return void this.key.generateAsync(this.default_key_size,this.default_public_exponent,t);this.key.generate(this.default_key_size,this.default_public_exponent)}return this.key},t.prototype.getPrivateKey=function(){return this.getKey().getPrivateKey()},t.prototype.getPrivateKeyB64=function(){return this.getKey().getPrivateBaseKeyB64()},t.prototype.getPublicKey=function(){return this.getKey().getPublicKey()},t.prototype.getPublicKeyB64=function(){return this.getKey().getPublicBaseKeyB64()},t.version=Gt,t}(),Zt={},Xt=i((function(t,e){var r;t.exports=(r=r||function(t,e){var r;if("undefined"!=typeof window&&window.crypto&&(r=window.crypto),"undefined"!=typeof self&&self.crypto&&(r=self.crypto),"undefined"!=typeof globalThis&&globalThis.crypto&&(r=globalThis.crypto),!r&&"undefined"!=typeof window&&window.msCrypto&&(r=window.msCrypto),!r&&void 0!==n&&n.crypto&&(r=n.crypto),!r)try{r=Zt}catch(t){}var i=function(){if(r){if("function"==typeof r.getRandomValues)try{return r.getRandomValues(new Uint32Array(1))[0]}catch(t){}if("function"==typeof r.randomBytes)try{return r.randomBytes(4).readInt32LE()}catch(t){}}throw new Error("Native crypto module could not be used to get secure random number.")},a=Object.create||function(){function t(){}return function(e){var n;return t.prototype=e,n=new t,t.prototype=null,n}}(),o={},s=o.lib={},u=s.Base={extend:function(t){var e=a(this);return t&&e.mixIn(t),e.hasOwnProperty("init")&&this.init!==e.init||(e.init=function(){e.$super.init.apply(this,arguments)}),e.init.prototype=e,e.$super=this,e},create:function(){var t=this.extend();return t.init.apply(t,arguments),t},init:function(){},mixIn:function(t){for(var e in t)t.hasOwnProperty(e)&&(this[e]=t[e]);t.hasOwnProperty("toString")&&(this.toString=t.toString)},clone:function(){return this.init.prototype.extend(this)}},l=s.WordArray=u.extend({init:function(t,n){t=this.words=t||[],this.sigBytes=n!=e?n:4*t.length},toString:function(t){return(t||h).stringify(this)},concat:function(t){var e=this.words,n=t.words,r=this.sigBytes,i=t.sigBytes;if(this.clamp(),r%4)for(var a=0;a<i;a++){var o=n[a>>>2]>>>24-a%4*8&255;e[r+a>>>2]|=o<<24-(r+a)%4*8}else for(var s=0;s<i;s+=4)e[r+s>>>2]=n[s>>>2];return this.sigBytes+=i,this},clamp:function(){var e=this.words,n=this.sigBytes;e[n>>>2]&=4294967295<<32-n%4*8,e.length=t.ceil(n/4)},clone:function(){var t=u.clone.call(this);return t.words=this.words.slice(0),t},random:function(t){for(var e=[],n=0;n<t;n+=4)e.push(i());return new l.init(e,t)}}),c=o.enc={},h=c.Hex={stringify:function(t){for(var e=t.words,n=t.sigBytes,r=[],i=0;i<n;i++){var a=e[i>>>2]>>>24-i%4*8&255;r.push((a>>>4).toString(16)),r.push((15&a).toString(16))}return r.join("")},parse:function(t){for(var e=t.length,n=[],r=0;r<e;r+=2)n[r>>>3]|=parseInt(t.substr(r,2),16)<<24-r%8*4;return new l.init(n,e/2)}},f=c.Latin1={stringify:function(t){for(var e=t.words,n=t.sigBytes,r=[],i=0;i<n;i++){var a=e[i>>>2]>>>24-i%4*8&255;r.push(String.fromCharCode(a))}return r.join("")},parse:function(t){for(var e=t.length,n=[],r=0;r<e;r++)n[r>>>2]|=(255&t.charCodeAt(r))<<24-r%4*8;return new l.init(n,e)}},d=c.Utf8={stringify:function(t){try{return decodeURIComponent(escape(f.stringify(t)))}catch(t){throw new Error("Malformed UTF-8 data")}},parse:function(t){return f.parse(unescape(encodeURIComponent(t)))}},p=s.BufferedBlockAlgorithm=u.extend({reset:function(){this._data=new l.init,this._nDataBytes=0},_append:function(t){"string"==typeof t&&(t=d.parse(t)),this._data.concat(t),this._nDataBytes+=t.sigBytes},_process:function(e){var n,r=this._data,i=r.words,a=r.sigBytes,o=this.blockSize,s=a/(4*o),u=(s=e?t.ceil(s):t.max((0|s)-this._minBufferSize,0))*o,c=t.min(4*u,a);if(u){for(var h=0;h<u;h+=o)this._doProcessBlock(i,h);n=i.splice(0,u),r.sigBytes-=c}return new l.init(n,c)},clone:function(){var t=u.clone.call(this);return t._data=this._data.clone(),t},_minBufferSize:0});s.Hasher=p.extend({cfg:u.extend(),init:function(t){this.cfg=this.cfg.extend(t),this.reset()},reset:function(){p.reset.call(this),this._doReset()},update:function(t){return this._append(t),this._process(),this},finalize:function(t){return t&&this._append(t),this._doFinalize()},blockSize:16,_createHelper:function(t){return function(e,n){return new t.init(n).finalize(e)}},_createHmacHelper:function(t){return function(e,n){return new g.HMAC.init(t,n).finalize(e)}}});var g=o.algo={};return o}(Math),r)})),$t=(i((function(t,e){var n,r,i,a,o,s,u;t.exports=(i=(r=u=Xt).lib,a=i.Base,o=i.WordArray,(s=r.x64={}).Word=a.extend({init:function(t,e){this.high=t,this.low=e}}),s.WordArray=a.extend({init:function(t,e){t=this.words=t||[],this.sigBytes=e!=n?e:8*t.length},toX32:function(){for(var t=this.words,e=t.length,n=[],r=0;r<e;r++){var i=t[r];n.push(i.high),n.push(i.low)}return o.create(n,this.sigBytes)},clone:function(){for(var t=a.clone.call(this),e=t.words=this.words.slice(0),n=e.length,r=0;r<n;r++)e[r]=e[r].clone();return t}}),u)})),i((function(t,e){var n;t.exports=(n=Xt,function(){if("function"==typeof ArrayBuffer){var t=n.lib.WordArray,e=t.init,r=t.init=function(t){if(t instanceof ArrayBuffer&&(t=new Uint8Array(t)),(t instanceof Int8Array||"undefined"!=typeof Uint8ClampedArray&&t instanceof Uint8ClampedArray||t instanceof Int16Array||t instanceof Uint16Array||t instanceof Int32Array||t instanceof Uint32Array||t instanceof Float32Array||t instanceof Float64Array)&&(t=new Uint8Array(t.buffer,t.byteOffset,t.byteLength)),t instanceof Uint8Array){for(var n=t.byteLength,r=[],i=0;i<n;i++)r[i>>>2]|=t[i]<<24-i%4*8;e.call(this,r,n)}else e.apply(this,arguments)};r.prototype=t}}(),n.lib.WordArray)})),i((function(t,e){var n;t.exports=(n=Xt,function(){var t=n,e=t.lib.WordArray,r=t.enc;function i(t){return t<<8&4278255360|t>>>8&16711935}r.Utf16=r.Utf16BE={stringify:function(t){for(var e=t.words,n=t.sigBytes,r=[],i=0;i<n;i+=2){var a=e[i>>>2]>>>16-i%4*8&65535;r.push(String.fromCharCode(a))}return r.join("")},parse:function(t){for(var n=t.length,r=[],i=0;i<n;i++)r[i>>>1]|=t.charCodeAt(i)<<16-i%2*16;return e.create(r,2*n)}},r.Utf16LE={stringify:function(t){for(var e=t.words,n=t.sigBytes,r=[],a=0;a<n;a+=2){var o=i(e[a>>>2]>>>16-a%4*8&65535);r.push(String.fromCharCode(o))}return r.join("")},parse:function(t){for(var n=t.length,r=[],a=0;a<n;a++)r[a>>>1]|=i(t.charCodeAt(a)<<16-a%2*16);return e.create(r,2*n)}}}(),n.enc.Utf16)})),i((function(t,e){var n;t.exports=(n=Xt,function(){var t=n,e=t.lib.WordArray;function r(t,n,r){for(var i=[],a=0,o=0;o<n;o++)if(o%4){var s=r[t.charCodeAt(o-1)]<<o%4*2|r[t.charCodeAt(o)]>>>6-o%4*2;i[a>>>2]|=s<<24-a%4*8,a++}return e.create(i,a)}t.enc.Base64={stringify:function(t){var e=t.words,n=t.sigBytes,r=this._map;t.clamp();for(var i=[],a=0;a<n;a+=3)for(var o=(e[a>>>2]>>>24-a%4*8&255)<<16|(e[a+1>>>2]>>>24-(a+1)%4*8&255)<<8|e[a+2>>>2]>>>24-(a+2)%4*8&255,s=0;s<4&&a+.75*s<n;s++)i.push(r.charAt(o>>>6*(3-s)&63));var u=r.charAt(64);if(u)for(;i.length%4;)i.push(u);return i.join("")},parse:function(t){var e=t.length,n=this._map,i=this._reverseMap;if(!i){i=this._reverseMap=[];for(var a=0;a<n.length;a++)i[n.charCodeAt(a)]=a}var o=n.charAt(64);if(o){var s=t.indexOf(o);-1!==s&&(e=s)}return r(t,e,i)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="}}(),n.enc.Base64)})),i((function(t,e){var n;t.exports=(n=Xt,function(){var t=n,e=t.lib.WordArray;function r(t,n,r){for(var i=[],a=0,o=0;o<n;o++)if(o%4){var s=r[t.charCodeAt(o-1)]<<o%4*2|r[t.charCodeAt(o)]>>>6-o%4*2;i[a>>>2]|=s<<24-a%4*8,a++}return e.create(i,a)}t.enc.Base64url={stringify:function(t,e=!0){var n=t.words,r=t.sigBytes,i=e?this._safe_map:this._map;t.clamp();for(var a=[],o=0;o<r;o+=3)for(var s=(n[o>>>2]>>>24-o%4*8&255)<<16|(n[o+1>>>2]>>>24-(o+1)%4*8&255)<<8|n[o+2>>>2]>>>24-(o+2)%4*8&255,u=0;u<4&&o+.75*u<r;u++)a.push(i.charAt(s>>>6*(3-u)&63));var l=i.charAt(64);if(l)for(;a.length%4;)a.push(l);return a.join("")},parse:function(t,e=!0){var n=t.length,i=e?this._safe_map:this._map,a=this._reverseMap;if(!a){a=this._reverseMap=[];for(var o=0;o<i.length;o++)a[i.charCodeAt(o)]=o}var s=i.charAt(64);if(s){var u=t.indexOf(s);-1!==u&&(n=u)}return r(t,n,a)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",_safe_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"}}(),n.enc.Base64url)})),i((function(t,e){var n;t.exports=(n=Xt,function(t){var e=n,r=e.lib,i=r.WordArray,a=r.Hasher,o=e.algo,s=[];!function(){for(var e=0;e<64;e++)s[e]=4294967296*t.abs(t.sin(e+1))|0}();var u=o.MD5=a.extend({_doReset:function(){this._hash=new i.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(t,e){for(var n=0;n<16;n++){var r=e+n,i=t[r];t[r]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8)}var a=this._hash.words,o=t[e+0],u=t[e+1],d=t[e+2],p=t[e+3],g=t[e+4],v=t[e+5],m=t[e+6],y=t[e+7],_=t[e+8],b=t[e+9],w=t[e+10],D=t[e+11],S=t[e+12],x=t[e+13],T=t[e+14],k=t[e+15],C=a[0],E=a[1],O=a[2],M=a[3];C=l(C,E,O,M,o,7,s[0]),M=l(M,C,E,O,u,12,s[1]),O=l(O,M,C,E,d,17,s[2]),E=l(E,O,M,C,p,22,s[3]),C=l(C,E,O,M,g,7,s[4]),M=l(M,C,E,O,v,12,s[5]),O=l(O,M,C,E,m,17,s[6]),E=l(E,O,M,C,y,22,s[7]),C=l(C,E,O,M,_,7,s[8]),M=l(M,C,E,O,b,12,s[9]),O=l(O,M,C,E,w,17,s[10]),E=l(E,O,M,C,D,22,s[11]),C=l(C,E,O,M,S,7,s[12]),M=l(M,C,E,O,x,12,s[13]),O=l(O,M,C,E,T,17,s[14]),C=c(C,E=l(E,O,M,C,k,22,s[15]),O,M,u,5,s[16]),M=c(M,C,E,O,m,9,s[17]),O=c(O,M,C,E,D,14,s[18]),E=c(E,O,M,C,o,20,s[19]),C=c(C,E,O,M,v,5,s[20]),M=c(M,C,E,O,w,9,s[21]),O=c(O,M,C,E,k,14,s[22]),E=c(E,O,M,C,g,20,s[23]),C=c(C,E,O,M,b,5,s[24]),M=c(M,C,E,O,T,9,s[25]),O=c(O,M,C,E,p,14,s[26]),E=c(E,O,M,C,_,20,s[27]),C=c(C,E,O,M,x,5,s[28]),M=c(M,C,E,O,d,9,s[29]),O=c(O,M,C,E,y,14,s[30]),C=h(C,E=c(E,O,M,C,S,20,s[31]),O,M,v,4,s[32]),M=h(M,C,E,O,_,11,s[33]),O=h(O,M,C,E,D,16,s[34]),E=h(E,O,M,C,T,23,s[35]),C=h(C,E,O,M,u,4,s[36]),M=h(M,C,E,O,g,11,s[37]),O=h(O,M,C,E,y,16,s[38]),E=h(E,O,M,C,w,23,s[39]),C=h(C,E,O,M,x,4,s[40]),M=h(M,C,E,O,o,11,s[41]),O=h(O,M,C,E,p,16,s[42]),E=h(E,O,M,C,m,23,s[43]),C=h(C,E,O,M,b,4,s[44]),M=h(M,C,E,O,S,11,s[45]),O=h(O,M,C,E,k,16,s[46]),C=f(C,E=h(E,O,M,C,d,23,s[47]),O,M,o,6,s[48]),M=f(M,C,E,O,y,10,s[49]),O=f(O,M,C,E,T,15,s[50]),E=f(E,O,M,C,v,21,s[51]),C=f(C,E,O,M,S,6,s[52]),M=f(M,C,E,O,p,10,s[53]),O=f(O,M,C,E,w,15,s[54]),E=f(E,O,M,C,u,21,s[55]),C=f(C,E,O,M,_,6,s[56]),M=f(M,C,E,O,k,10,s[57]),O=f(O,M,C,E,m,15,s[58]),E=f(E,O,M,C,x,21,s[59]),C=f(C,E,O,M,g,6,s[60]),M=f(M,C,E,O,D,10,s[61]),O=f(O,M,C,E,d,15,s[62]),E=f(E,O,M,C,b,21,s[63]),a[0]=a[0]+C|0,a[1]=a[1]+E|0,a[2]=a[2]+O|0,a[3]=a[3]+M|0},_doFinalize:function(){var e=this._data,n=e.words,r=8*this._nDataBytes,i=8*e.sigBytes;n[i>>>5]|=128<<24-i%32;var a=t.floor(r/4294967296),o=r;n[15+(i+64>>>9<<4)]=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),n[14+(i+64>>>9<<4)]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),e.sigBytes=4*(n.length+1),this._process();for(var s=this._hash,u=s.words,l=0;l<4;l++){var c=u[l];u[l]=16711935&(c<<8|c>>>24)|4278255360&(c<<24|c>>>8)}return s},clone:function(){var t=a.clone.call(this);return t._hash=this._hash.clone(),t}});function l(t,e,n,r,i,a,o){var s=t+(e&n|~e&r)+i+o;return(s<<a|s>>>32-a)+e}function c(t,e,n,r,i,a,o){var s=t+(e&r|n&~r)+i+o;return(s<<a|s>>>32-a)+e}function h(t,e,n,r,i,a,o){var s=t+(e^n^r)+i+o;return(s<<a|s>>>32-a)+e}function f(t,e,n,r,i,a,o){var s=t+(n^(e|~r))+i+o;return(s<<a|s>>>32-a)+e}e.MD5=a._createHelper(u),e.HmacMD5=a._createHmacHelper(u)}(Math),n.MD5)})),i((function(t,e){var n,r,i,a,o,s,u,l;t.exports=(r=(n=l=Xt).lib,i=r.WordArray,a=r.Hasher,o=n.algo,s=[],u=o.SHA1=a.extend({_doReset:function(){this._hash=new i.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(t,e){for(var n=this._hash.words,r=n[0],i=n[1],a=n[2],o=n[3],u=n[4],l=0;l<80;l++){if(l<16)s[l]=0|t[e+l];else{var c=s[l-3]^s[l-8]^s[l-14]^s[l-16];s[l]=c<<1|c>>>31}var h=(r<<5|r>>>27)+u+s[l];h+=l<20?1518500249+(i&a|~i&o):l<40?1859775393+(i^a^o):l<60?(i&a|i&o|a&o)-1894007588:(i^a^o)-899497514,u=o,o=a,a=i<<30|i>>>2,i=r,r=h}n[0]=n[0]+r|0,n[1]=n[1]+i|0,n[2]=n[2]+a|0,n[3]=n[3]+o|0,n[4]=n[4]+u|0},_doFinalize:function(){var t=this._data,e=t.words,n=8*this._nDataBytes,r=8*t.sigBytes;return e[r>>>5]|=128<<24-r%32,e[14+(r+64>>>9<<4)]=Math.floor(n/4294967296),e[15+(r+64>>>9<<4)]=n,t.sigBytes=4*e.length,this._process(),this._hash},clone:function(){var t=a.clone.call(this);return t._hash=this._hash.clone(),t}}),n.SHA1=a._createHelper(u),n.HmacSHA1=a._createHmacHelper(u),l.SHA1)})),i((function(t,e){var n;t.exports=(n=Xt,function(t){var e=n,r=e.lib,i=r.WordArray,a=r.Hasher,o=e.algo,s=[],u=[];!function(){function e(e){for(var n=t.sqrt(e),r=2;r<=n;r++)if(!(e%r))return!1;return!0}function n(t){return 4294967296*(t-(0|t))|0}for(var r=2,i=0;i<64;)e(r)&&(i<8&&(s[i]=n(t.pow(r,.5))),u[i]=n(t.pow(r,1/3)),i++),r++}();var l=[],c=o.SHA256=a.extend({_doReset:function(){this._hash=new i.init(s.slice(0))},_doProcessBlock:function(t,e){for(var n=this._hash.words,r=n[0],i=n[1],a=n[2],o=n[3],s=n[4],c=n[5],h=n[6],f=n[7],d=0;d<64;d++){if(d<16)l[d]=0|t[e+d];else{var p=l[d-15],g=(p<<25|p>>>7)^(p<<14|p>>>18)^p>>>3,v=l[d-2],m=(v<<15|v>>>17)^(v<<13|v>>>19)^v>>>10;l[d]=g+l[d-7]+m+l[d-16]}var y=r&i^r&a^i&a,_=(r<<30|r>>>2)^(r<<19|r>>>13)^(r<<10|r>>>22),b=f+((s<<26|s>>>6)^(s<<21|s>>>11)^(s<<7|s>>>25))+(s&c^~s&h)+u[d]+l[d];f=h,h=c,c=s,s=o+b|0,o=a,a=i,i=r,r=b+(_+y)|0}n[0]=n[0]+r|0,n[1]=n[1]+i|0,n[2]=n[2]+a|0,n[3]=n[3]+o|0,n[4]=n[4]+s|0,n[5]=n[5]+c|0,n[6]=n[6]+h|0,n[7]=n[7]+f|0},_doFinalize:function(){var e=this._data,n=e.words,r=8*this._nDataBytes,i=8*e.sigBytes;return n[i>>>5]|=128<<24-i%32,n[14+(i+64>>>9<<4)]=t.floor(r/4294967296),n[15+(i+64>>>9<<4)]=r,e.sigBytes=4*n.length,this._process(),this._hash},clone:function(){var t=a.clone.call(this);return t._hash=this._hash.clone(),t}});e.SHA256=a._createHelper(c),e.HmacSHA256=a._createHmacHelper(c)}(Math),n.SHA256)})),i((function(t,e){var n,r,i,a,o,s;t.exports=(r=(n=s=Xt).lib.WordArray,i=n.algo,a=i.SHA256,o=i.SHA224=a.extend({_doReset:function(){this._hash=new r.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var t=a._doFinalize.call(this);return t.sigBytes-=4,t}}),n.SHA224=a._createHelper(o),n.HmacSHA224=a._createHmacHelper(o),s.SHA224)})),i((function(t,e){var n;t.exports=(n=Xt,function(){var t=n,e=t.lib.Hasher,r=t.x64,i=r.Word,a=r.WordArray,o=t.algo;function s(){return i.create.apply(i,arguments)}var u=[s(1116352408,3609767458),s(1899447441,602891725),s(3049323471,3964484399),s(3921009573,2173295548),s(961987163,4081628472),s(1508970993,3053834265),s(2453635748,2937671579),s(2870763221,3664609560),s(3624381080,2734883394),s(310598401,1164996542),s(607225278,1323610764),s(1426881987,3590304994),s(1925078388,4068182383),s(2162078206,991336113),s(2614888103,633803317),s(3248222580,3479774868),s(3835390401,2666613458),s(4022224774,944711139),s(264347078,2341262773),s(604807628,2007800933),s(770255983,1495990901),s(1249150122,1856431235),s(1555081692,3175218132),s(1996064986,2198950837),s(2554220882,3999719339),s(2821834349,766784016),s(2952996808,2566594879),s(3210313671,3203337956),s(3336571891,1034457026),s(3584528711,2466948901),s(113926993,3758326383),s(338241895,168717936),s(666307205,1188179964),s(773529912,1546045734),s(1294757372,1522805485),s(1396182291,2643833823),s(1695183700,2343527390),s(1986661051,1014477480),s(2177026350,1206759142),s(2456956037,344077627),s(2730485921,1290863460),s(2820302411,3158454273),s(3259730800,3505952657),s(3345764771,106217008),s(3516065817,3606008344),s(3600352804,1432725776),s(4094571909,1467031594),s(275423344,851169720),s(430227734,3100823752),s(506948616,1363258195),s(659060556,3750685593),s(883997877,3785050280),s(958139571,3318307427),s(1322822218,3812723403),s(1537002063,2003034995),s(1747873779,3602036899),s(1955562222,1575990012),s(2024104815,1125592928),s(2227730452,2716904306),s(2361852424,442776044),s(2428436474,593698344),s(2756734187,3733110249),s(3204031479,2999351573),s(3329325298,3815920427),s(3391569614,3928383900),s(3515267271,566280711),s(3940187606,3454069534),s(4118630271,4000239992),s(116418474,1914138554),s(174292421,2731055270),s(289380356,3203993006),s(460393269,320620315),s(685471733,587496836),s(852142971,1086792851),s(1017036298,365543100),s(1126000580,2618297676),s(1288033470,3409855158),s(1501505948,4234509866),s(1607167915,987167468),s(1816402316,1246189591)],l=[];!function(){for(var t=0;t<80;t++)l[t]=s()}();var c=o.SHA512=e.extend({_doReset:function(){this._hash=new a.init([new i.init(1779033703,4089235720),new i.init(3144134277,2227873595),new i.init(1013904242,4271175723),new i.init(2773480762,1595750129),new i.init(1359893119,2917565137),new i.init(2600822924,725511199),new i.init(528734635,4215389547),new i.init(1541459225,327033209)])},_doProcessBlock:function(t,e){for(var n=this._hash.words,r=n[0],i=n[1],a=n[2],o=n[3],s=n[4],c=n[5],h=n[6],f=n[7],d=r.high,p=r.low,g=i.high,v=i.low,m=a.high,y=a.low,_=o.high,b=o.low,w=s.high,D=s.low,S=c.high,x=c.low,T=h.high,k=h.low,C=f.high,E=f.low,O=d,M=p,A=g,P=v,B=m,R=y,N=_,V=b,I=w,F=D,Y=S,L=x,j=T,H=k,z=C,U=E,W=0;W<80;W++){var q,G,K=l[W];if(W<16)G=K.high=0|t[e+2*W],q=K.low=0|t[e+2*W+1];else{var Z=l[W-15],X=Z.high,$=Z.low,J=(X>>>1|$<<31)^(X>>>8|$<<24)^X>>>7,Q=($>>>1|X<<31)^($>>>8|X<<24)^($>>>7|X<<25),tt=l[W-2],et=tt.high,nt=tt.low,rt=(et>>>19|nt<<13)^(et<<3|nt>>>29)^et>>>6,it=(nt>>>19|et<<13)^(nt<<3|et>>>29)^(nt>>>6|et<<26),at=l[W-7],ot=at.high,st=at.low,ut=l[W-16],lt=ut.high,ct=ut.low;G=(G=(G=J+ot+((q=Q+st)>>>0<Q>>>0?1:0))+rt+((q+=it)>>>0<it>>>0?1:0))+lt+((q+=ct)>>>0<ct>>>0?1:0),K.high=G,K.low=q}var ht,ft=I&Y^~I&j,dt=F&L^~F&H,pt=O&A^O&B^A&B,gt=M&P^M&R^P&R,vt=(O>>>28|M<<4)^(O<<30|M>>>2)^(O<<25|M>>>7),mt=(M>>>28|O<<4)^(M<<30|O>>>2)^(M<<25|O>>>7),yt=(I>>>14|F<<18)^(I>>>18|F<<14)^(I<<23|F>>>9),_t=(F>>>14|I<<18)^(F>>>18|I<<14)^(F<<23|I>>>9),bt=u[W],wt=bt.high,Dt=bt.low,St=z+yt+((ht=U+_t)>>>0<U>>>0?1:0),xt=mt+gt;z=j,U=H,j=Y,H=L,Y=I,L=F,I=N+(St=(St=(St=St+ft+((ht+=dt)>>>0<dt>>>0?1:0))+wt+((ht+=Dt)>>>0<Dt>>>0?1:0))+G+((ht+=q)>>>0<q>>>0?1:0))+((F=V+ht|0)>>>0<V>>>0?1:0)|0,N=B,V=R,B=A,R=P,A=O,P=M,O=St+(vt+pt+(xt>>>0<mt>>>0?1:0))+((M=ht+xt|0)>>>0<ht>>>0?1:0)|0}p=r.low=p+M,r.high=d+O+(p>>>0<M>>>0?1:0),v=i.low=v+P,i.high=g+A+(v>>>0<P>>>0?1:0),y=a.low=y+R,a.high=m+B+(y>>>0<R>>>0?1:0),b=o.low=b+V,o.high=_+N+(b>>>0<V>>>0?1:0),D=s.low=D+F,s.high=w+I+(D>>>0<F>>>0?1:0),x=c.low=x+L,c.high=S+Y+(x>>>0<L>>>0?1:0),k=h.low=k+H,h.high=T+j+(k>>>0<H>>>0?1:0),E=f.low=E+U,f.high=C+z+(E>>>0<U>>>0?1:0)},_doFinalize:function(){var t=this._data,e=t.words,n=8*this._nDataBytes,r=8*t.sigBytes;return e[r>>>5]|=128<<24-r%32,e[30+(r+128>>>10<<5)]=Math.floor(n/4294967296),e[31+(r+128>>>10<<5)]=n,t.sigBytes=4*e.length,this._process(),this._hash.toX32()},clone:function(){var t=e.clone.call(this);return t._hash=this._hash.clone(),t},blockSize:32});t.SHA512=e._createHelper(c),t.HmacSHA512=e._createHmacHelper(c)}(),n.SHA512)})),i((function(t,e){var n,r,i,a,o,s,u,l;t.exports=(r=(n=l=Xt).x64,i=r.Word,a=r.WordArray,o=n.algo,s=o.SHA512,u=o.SHA384=s.extend({_doReset:function(){this._hash=new a.init([new i.init(3418070365,3238371032),new i.init(1654270250,914150663),new i.init(2438529370,812702999),new i.init(355462360,4144912697),new i.init(1731405415,4290775857),new i.init(2394180231,1750603025),new i.init(3675008525,1694076839),new i.init(1203062813,3204075428)])},_doFinalize:function(){var t=s._doFinalize.call(this);return t.sigBytes-=16,t}}),n.SHA384=s._createHelper(u),n.HmacSHA384=s._createHmacHelper(u),l.SHA384)})),i((function(t,e){var n;t.exports=(n=Xt,function(t){var e=n,r=e.lib,i=r.WordArray,a=r.Hasher,o=e.x64.Word,s=e.algo,u=[],l=[],c=[];!function(){for(var t=1,e=0,n=0;n<24;n++){u[t+5*e]=(n+1)*(n+2)/2%64;var r=(2*t+3*e)%5;t=e%5,e=r}for(t=0;t<5;t++)for(e=0;e<5;e++)l[t+5*e]=e+(2*t+3*e)%5*5;for(var i=1,a=0;a<24;a++){for(var s=0,h=0,f=0;f<7;f++){if(1&i){var d=(1<<f)-1;d<32?h^=1<<d:s^=1<<d-32}128&i?i=i<<1^113:i<<=1}c[a]=o.create(s,h)}}();var h=[];!function(){for(var t=0;t<25;t++)h[t]=o.create()}();var f=s.SHA3=a.extend({cfg:a.cfg.extend({outputLength:512}),_doReset:function(){for(var t=this._state=[],e=0;e<25;e++)t[e]=new o.init;this.blockSize=(1600-2*this.cfg.outputLength)/32},_doProcessBlock:function(t,e){for(var n=this._state,r=this.blockSize/2,i=0;i<r;i++){var a=t[e+2*i],o=t[e+2*i+1];a=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),o=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),(E=n[i]).high^=o,E.low^=a}for(var s=0;s<24;s++){for(var f=0;f<5;f++){for(var d=0,p=0,g=0;g<5;g++)d^=(E=n[f+5*g]).high,p^=E.low;var v=h[f];v.high=d,v.low=p}for(f=0;f<5;f++){var m=h[(f+4)%5],y=h[(f+1)%5],_=y.high,b=y.low;for(d=m.high^(_<<1|b>>>31),p=m.low^(b<<1|_>>>31),g=0;g<5;g++)(E=n[f+5*g]).high^=d,E.low^=p}for(var w=1;w<25;w++){var D=(E=n[w]).high,S=E.low,x=u[w];x<32?(d=D<<x|S>>>32-x,p=S<<x|D>>>32-x):(d=S<<x-32|D>>>64-x,p=D<<x-32|S>>>64-x);var T=h[l[w]];T.high=d,T.low=p}var k=h[0],C=n[0];for(k.high=C.high,k.low=C.low,f=0;f<5;f++)for(g=0;g<5;g++){var E=n[w=f+5*g],O=h[w],M=h[(f+1)%5+5*g],A=h[(f+2)%5+5*g];E.high=O.high^~M.high&A.high,E.low=O.low^~M.low&A.low}E=n[0];var P=c[s];E.high^=P.high,E.low^=P.low}},_doFinalize:function(){var e=this._data,n=e.words;this._nDataBytes;var r=8*e.sigBytes,a=32*this.blockSize;n[r>>>5]|=1<<24-r%32,n[(t.ceil((r+1)/a)*a>>>5)-1]|=128,e.sigBytes=4*n.length,this._process();for(var o=this._state,s=this.cfg.outputLength/8,u=s/8,l=[],c=0;c<u;c++){var h=o[c],f=h.high,d=h.low;f=16711935&(f<<8|f>>>24)|4278255360&(f<<24|f>>>8),d=16711935&(d<<8|d>>>24)|4278255360&(d<<24|d>>>8),l.push(d),l.push(f)}return new i.init(l,s)},clone:function(){for(var t=a.clone.call(this),e=t._state=this._state.slice(0),n=0;n<25;n++)e[n]=e[n].clone();return t}});e.SHA3=a._createHelper(f),e.HmacSHA3=a._createHmacHelper(f)}(Math),n.SHA3)})),i((function(t,e){var n;t.exports=(n=Xt,
|
|
18
|
+
var Wt={};void 0!==Wt.asn1&&Wt.asn1||(Wt.asn1={}),Wt.asn1.ASN1Util=new function(){this.integerToByteHex=function(t){var e=t.toString(16);return e.length%2==1&&(e="0"+e),e},this.bigIntToMinTwosComplementsHex=function(t){var e=t.toString(16);if("-"!=e.substr(0,1))e.length%2==1?e="0"+e:e.match(/^[0-7]/)||(e="00"+e);else{var n=e.substr(1).length;n%2==1?n+=1:e.match(/^[0-7]/)||(n+=2);for(var r="",i=0;i<n;i++)r+="f";e=new yt(r,16).xor(t).add(yt.ONE).toString(16).replace(/^-/,"")}return e},this.getPEMStringFromHex=function(t,e){return hextopem(t,e)},this.newObject=function(t){var e=Wt.asn1,n=e.DERBoolean,r=e.DERInteger,i=e.DERBitString,a=e.DEROctetString,o=e.DERNull,s=e.DERObjectIdentifier,u=e.DEREnumerated,l=e.DERUTF8String,c=e.DERNumericString,h=e.DERPrintableString,f=e.DERTeletexString,d=e.DERIA5String,p=e.DERUTCTime,g=e.DERGeneralizedTime,m=e.DERSequence,v=e.DERSet,y=e.DERTaggedObject,_=e.ASN1Util.newObject,b=Object.keys(t);if(1!=b.length)throw"key of param shall be only one.";var w=b[0];if(-1==":bool:int:bitstr:octstr:null:oid:enum:utf8str:numstr:prnstr:telstr:ia5str:utctime:gentime:seq:set:tag:".indexOf(":"+w+":"))throw"undefined key: "+w;if("bool"==w)return new n(t[w]);if("int"==w)return new r(t[w]);if("bitstr"==w)return new i(t[w]);if("octstr"==w)return new a(t[w]);if("null"==w)return new o(t[w]);if("oid"==w)return new s(t[w]);if("enum"==w)return new u(t[w]);if("utf8str"==w)return new l(t[w]);if("numstr"==w)return new c(t[w]);if("prnstr"==w)return new h(t[w]);if("telstr"==w)return new f(t[w]);if("ia5str"==w)return new d(t[w]);if("utctime"==w)return new p(t[w]);if("gentime"==w)return new g(t[w]);if("seq"==w){for(var D=t[w],S=[],x=0;x<D.length;x++){var T=_(D[x]);S.push(T)}return new m({array:S})}if("set"==w){for(D=t[w],S=[],x=0;x<D.length;x++){T=_(D[x]);S.push(T)}return new v({array:S})}if("tag"==w){var k=t[w];if("[object Array]"===Object.prototype.toString.call(k)&&3==k.length){var C=_(k[2]);return new y({tag:k[0],explicit:k[1],obj:C})}var E={};if(void 0!==k.explicit&&(E.explicit=k.explicit),void 0!==k.tag&&(E.tag=k.tag),void 0===k.obj)throw"obj shall be specified for 'tag'.";return E.obj=_(k.obj),new y(E)}},this.jsonToASN1HEX=function(t){return this.newObject(t).getEncodedHex()}},Wt.asn1.ASN1Util.oidHexToInt=function(t){for(var e="",n=parseInt(t.substr(0,2),16),r=(e=Math.floor(n/40)+"."+n%40,""),i=2;i<t.length;i+=2){var a=("00000000"+parseInt(t.substr(i,2),16).toString(2)).slice(-8);if(r+=a.substr(1,7),"0"==a.substr(0,1))e=e+"."+new yt(r,2).toString(10),r=""}return e},Wt.asn1.ASN1Util.oidIntToHex=function(t){var e=function(t){var e=t.toString(16);return 1==e.length&&(e="0"+e),e},n=function(t){var n="",r=new yt(t,10).toString(2),i=7-r.length%7;7==i&&(i=0);for(var a="",o=0;o<i;o++)a+="0";r=a+r;for(o=0;o<r.length-1;o+=7){var s=r.substr(o,7);o!=r.length-7&&(s="1"+s),n+=e(parseInt(s,2))}return n};if(!t.match(/^[0-9.]+$/))throw"malformed oid string: "+t;var r="",i=t.split("."),a=40*parseInt(i[0])+parseInt(i[1]);r+=e(a),i.splice(0,2);for(var o=0;o<i.length;o++)r+=n(i[o]);return r},Wt.asn1.ASN1Object=function(){this.getLengthHexFromValue=function(){if(void 0===this.hV||null==this.hV)throw"this.hV is null or undefined.";if(this.hV.length%2==1)throw"value hex must be even length: n=0,v="+this.hV;var t=this.hV.length/2,e=t.toString(16);if(e.length%2==1&&(e="0"+e),t<128)return e;var n=e.length/2;if(n>15)throw"ASN.1 length too long to represent by 8x: n = "+t.toString(16);return(128+n).toString(16)+e},this.getEncodedHex=function(){return(null==this.hTLV||this.isModified)&&(this.hV=this.getFreshValueHex(),this.hL=this.getLengthHexFromValue(),this.hTLV=this.hT+this.hL+this.hV,this.isModified=!1),this.hTLV},this.getValueHex=function(){return this.getEncodedHex(),this.hV},this.getFreshValueHex=function(){return""}},Wt.asn1.DERAbstractString=function(t){Wt.asn1.DERAbstractString.superclass.constructor.call(this),this.getString=function(){return this.s},this.setString=function(t){this.hTLV=null,this.isModified=!0,this.s=t,this.hV=stohex(this.s)},this.setStringHex=function(t){this.hTLV=null,this.isModified=!0,this.s=null,this.hV=t},this.getFreshValueHex=function(){return this.hV},void 0!==t&&("string"==typeof t?this.setString(t):void 0!==t.str?this.setString(t.str):void 0!==t.hex&&this.setStringHex(t.hex))},Ut.lang.extend(Wt.asn1.DERAbstractString,Wt.asn1.ASN1Object),Wt.asn1.DERAbstractTime=function(t){Wt.asn1.DERAbstractTime.superclass.constructor.call(this),this.localDateToUTC=function(t){return utc=t.getTime()+6e4*t.getTimezoneOffset(),new Date(utc)},this.formatDate=function(t,e,n){var r=this.zeroPadding,i=this.localDateToUTC(t),a=String(i.getFullYear());"utc"==e&&(a=a.substr(2,2));var o=a+r(String(i.getMonth()+1),2)+r(String(i.getDate()),2)+r(String(i.getHours()),2)+r(String(i.getMinutes()),2)+r(String(i.getSeconds()),2);if(!0===n){var s=i.getMilliseconds();if(0!=s){var u=r(String(s),3);o=o+"."+(u=u.replace(/[0]+$/,""))}}return o+"Z"},this.zeroPadding=function(t,e){return t.length>=e?t:new Array(e-t.length+1).join("0")+t},this.getString=function(){return this.s},this.setString=function(t){this.hTLV=null,this.isModified=!0,this.s=t,this.hV=stohex(t)},this.setByDateValue=function(t,e,n,r,i,a){var o=new Date(Date.UTC(t,e-1,n,r,i,a,0));this.setByDate(o)},this.getFreshValueHex=function(){return this.hV}},Ut.lang.extend(Wt.asn1.DERAbstractTime,Wt.asn1.ASN1Object),Wt.asn1.DERAbstractStructured=function(t){Wt.asn1.DERAbstractString.superclass.constructor.call(this),this.setByASN1ObjectArray=function(t){this.hTLV=null,this.isModified=!0,this.asn1Array=t},this.appendASN1Object=function(t){this.hTLV=null,this.isModified=!0,this.asn1Array.push(t)},this.asn1Array=new Array,void 0!==t&&void 0!==t.array&&(this.asn1Array=t.array)},Ut.lang.extend(Wt.asn1.DERAbstractStructured,Wt.asn1.ASN1Object),Wt.asn1.DERBoolean=function(){Wt.asn1.DERBoolean.superclass.constructor.call(this),this.hT="01",this.hTLV="0101ff"},Ut.lang.extend(Wt.asn1.DERBoolean,Wt.asn1.ASN1Object),Wt.asn1.DERInteger=function(t){Wt.asn1.DERInteger.superclass.constructor.call(this),this.hT="02",this.setByBigInteger=function(t){this.hTLV=null,this.isModified=!0,this.hV=Wt.asn1.ASN1Util.bigIntToMinTwosComplementsHex(t)},this.setByInteger=function(t){var e=new yt(String(t),10);this.setByBigInteger(e)},this.setValueHex=function(t){this.hV=t},this.getFreshValueHex=function(){return this.hV},void 0!==t&&(void 0!==t.bigint?this.setByBigInteger(t.bigint):void 0!==t.int?this.setByInteger(t.int):"number"==typeof t?this.setByInteger(t):void 0!==t.hex&&this.setValueHex(t.hex))},Ut.lang.extend(Wt.asn1.DERInteger,Wt.asn1.ASN1Object),Wt.asn1.DERBitString=function(t){if(void 0!==t&&void 0!==t.obj){var e=Wt.asn1.ASN1Util.newObject(t.obj);t.hex="00"+e.getEncodedHex()}Wt.asn1.DERBitString.superclass.constructor.call(this),this.hT="03",this.setHexValueIncludingUnusedBits=function(t){this.hTLV=null,this.isModified=!0,this.hV=t},this.setUnusedBitsAndHexValue=function(t,e){if(t<0||7<t)throw"unused bits shall be from 0 to 7: u = "+t;var n="0"+t;this.hTLV=null,this.isModified=!0,this.hV=n+e},this.setByBinaryString=function(t){var e=8-(t=t.replace(/0+$/,"")).length%8;8==e&&(e=0);for(var n=0;n<=e;n++)t+="0";var r="";for(n=0;n<t.length-1;n+=8){var i=t.substr(n,8),a=parseInt(i,2).toString(16);1==a.length&&(a="0"+a),r+=a}this.hTLV=null,this.isModified=!0,this.hV="0"+e+r},this.setByBooleanArray=function(t){for(var e="",n=0;n<t.length;n++)1==t[n]?e+="1":e+="0";this.setByBinaryString(e)},this.newFalseArray=function(t){for(var e=new Array(t),n=0;n<t;n++)e[n]=!1;return e},this.getFreshValueHex=function(){return this.hV},void 0!==t&&("string"==typeof t&&t.toLowerCase().match(/^[0-9a-f]+$/)?this.setHexValueIncludingUnusedBits(t):void 0!==t.hex?this.setHexValueIncludingUnusedBits(t.hex):void 0!==t.bin?this.setByBinaryString(t.bin):void 0!==t.array&&this.setByBooleanArray(t.array))},Ut.lang.extend(Wt.asn1.DERBitString,Wt.asn1.ASN1Object),Wt.asn1.DEROctetString=function(t){if(void 0!==t&&void 0!==t.obj){var e=Wt.asn1.ASN1Util.newObject(t.obj);t.hex=e.getEncodedHex()}Wt.asn1.DEROctetString.superclass.constructor.call(this,t),this.hT="04"},Ut.lang.extend(Wt.asn1.DEROctetString,Wt.asn1.DERAbstractString),Wt.asn1.DERNull=function(){Wt.asn1.DERNull.superclass.constructor.call(this),this.hT="05",this.hTLV="0500"},Ut.lang.extend(Wt.asn1.DERNull,Wt.asn1.ASN1Object),Wt.asn1.DERObjectIdentifier=function(t){var e=function(t){var e=t.toString(16);return 1==e.length&&(e="0"+e),e},n=function(t){var n="",r=new yt(t,10).toString(2),i=7-r.length%7;7==i&&(i=0);for(var a="",o=0;o<i;o++)a+="0";r=a+r;for(o=0;o<r.length-1;o+=7){var s=r.substr(o,7);o!=r.length-7&&(s="1"+s),n+=e(parseInt(s,2))}return n};Wt.asn1.DERObjectIdentifier.superclass.constructor.call(this),this.hT="06",this.setValueHex=function(t){this.hTLV=null,this.isModified=!0,this.s=null,this.hV=t},this.setValueOidString=function(t){if(!t.match(/^[0-9.]+$/))throw"malformed oid string: "+t;var r="",i=t.split("."),a=40*parseInt(i[0])+parseInt(i[1]);r+=e(a),i.splice(0,2);for(var o=0;o<i.length;o++)r+=n(i[o]);this.hTLV=null,this.isModified=!0,this.s=null,this.hV=r},this.setValueName=function(t){var e=Wt.asn1.x509.OID.name2oid(t);if(""===e)throw"DERObjectIdentifier oidName undefined: "+t;this.setValueOidString(e)},this.getFreshValueHex=function(){return this.hV},void 0!==t&&("string"==typeof t?t.match(/^[0-2].[0-9.]+$/)?this.setValueOidString(t):this.setValueName(t):void 0!==t.oid?this.setValueOidString(t.oid):void 0!==t.hex?this.setValueHex(t.hex):void 0!==t.name&&this.setValueName(t.name))},Ut.lang.extend(Wt.asn1.DERObjectIdentifier,Wt.asn1.ASN1Object),Wt.asn1.DEREnumerated=function(t){Wt.asn1.DEREnumerated.superclass.constructor.call(this),this.hT="0a",this.setByBigInteger=function(t){this.hTLV=null,this.isModified=!0,this.hV=Wt.asn1.ASN1Util.bigIntToMinTwosComplementsHex(t)},this.setByInteger=function(t){var e=new yt(String(t),10);this.setByBigInteger(e)},this.setValueHex=function(t){this.hV=t},this.getFreshValueHex=function(){return this.hV},void 0!==t&&(void 0!==t.int?this.setByInteger(t.int):"number"==typeof t?this.setByInteger(t):void 0!==t.hex&&this.setValueHex(t.hex))},Ut.lang.extend(Wt.asn1.DEREnumerated,Wt.asn1.ASN1Object),Wt.asn1.DERUTF8String=function(t){Wt.asn1.DERUTF8String.superclass.constructor.call(this,t),this.hT="0c"},Ut.lang.extend(Wt.asn1.DERUTF8String,Wt.asn1.DERAbstractString),Wt.asn1.DERNumericString=function(t){Wt.asn1.DERNumericString.superclass.constructor.call(this,t),this.hT="12"},Ut.lang.extend(Wt.asn1.DERNumericString,Wt.asn1.DERAbstractString),Wt.asn1.DERPrintableString=function(t){Wt.asn1.DERPrintableString.superclass.constructor.call(this,t),this.hT="13"},Ut.lang.extend(Wt.asn1.DERPrintableString,Wt.asn1.DERAbstractString),Wt.asn1.DERTeletexString=function(t){Wt.asn1.DERTeletexString.superclass.constructor.call(this,t),this.hT="14"},Ut.lang.extend(Wt.asn1.DERTeletexString,Wt.asn1.DERAbstractString),Wt.asn1.DERIA5String=function(t){Wt.asn1.DERIA5String.superclass.constructor.call(this,t),this.hT="16"},Ut.lang.extend(Wt.asn1.DERIA5String,Wt.asn1.DERAbstractString),Wt.asn1.DERUTCTime=function(t){Wt.asn1.DERUTCTime.superclass.constructor.call(this,t),this.hT="17",this.setByDate=function(t){this.hTLV=null,this.isModified=!0,this.date=t,this.s=this.formatDate(this.date,"utc"),this.hV=stohex(this.s)},this.getFreshValueHex=function(){return void 0===this.date&&void 0===this.s&&(this.date=new Date,this.s=this.formatDate(this.date,"utc"),this.hV=stohex(this.s)),this.hV},void 0!==t&&(void 0!==t.str?this.setString(t.str):"string"==typeof t&&t.match(/^[0-9]{12}Z$/)?this.setString(t):void 0!==t.hex?this.setStringHex(t.hex):void 0!==t.date&&this.setByDate(t.date))},Ut.lang.extend(Wt.asn1.DERUTCTime,Wt.asn1.DERAbstractTime),Wt.asn1.DERGeneralizedTime=function(t){Wt.asn1.DERGeneralizedTime.superclass.constructor.call(this,t),this.hT="18",this.withMillis=!1,this.setByDate=function(t){this.hTLV=null,this.isModified=!0,this.date=t,this.s=this.formatDate(this.date,"gen",this.withMillis),this.hV=stohex(this.s)},this.getFreshValueHex=function(){return void 0===this.date&&void 0===this.s&&(this.date=new Date,this.s=this.formatDate(this.date,"gen",this.withMillis),this.hV=stohex(this.s)),this.hV},void 0!==t&&(void 0!==t.str?this.setString(t.str):"string"==typeof t&&t.match(/^[0-9]{14}Z$/)?this.setString(t):void 0!==t.hex?this.setStringHex(t.hex):void 0!==t.date&&this.setByDate(t.date),!0===t.millis&&(this.withMillis=!0))},Ut.lang.extend(Wt.asn1.DERGeneralizedTime,Wt.asn1.DERAbstractTime),Wt.asn1.DERSequence=function(t){Wt.asn1.DERSequence.superclass.constructor.call(this,t),this.hT="30",this.getFreshValueHex=function(){for(var t="",e=0;e<this.asn1Array.length;e++){t+=this.asn1Array[e].getEncodedHex()}return this.hV=t,this.hV}},Ut.lang.extend(Wt.asn1.DERSequence,Wt.asn1.DERAbstractStructured),Wt.asn1.DERSet=function(t){Wt.asn1.DERSet.superclass.constructor.call(this,t),this.hT="31",this.sortFlag=!0,this.getFreshValueHex=function(){for(var t=new Array,e=0;e<this.asn1Array.length;e++){var n=this.asn1Array[e];t.push(n.getEncodedHex())}return 1==this.sortFlag&&t.sort(),this.hV=t.join(""),this.hV},void 0!==t&&void 0!==t.sortflag&&0==t.sortflag&&(this.sortFlag=!1)},Ut.lang.extend(Wt.asn1.DERSet,Wt.asn1.DERAbstractStructured),Wt.asn1.DERTaggedObject=function(t){Wt.asn1.DERTaggedObject.superclass.constructor.call(this),this.hT="a0",this.hV="",this.isExplicit=!0,this.asn1Object=null,this.setASN1Object=function(t,e,n){this.hT=e,this.isExplicit=t,this.asn1Object=n,this.isExplicit?(this.hV=this.asn1Object.getEncodedHex(),this.hTLV=null,this.isModified=!0):(this.hV=null,this.hTLV=n.getEncodedHex(),this.hTLV=this.hTLV.replace(/^../,e),this.isModified=!1)},this.getFreshValueHex=function(){return this.hV},void 0!==t&&(void 0!==t.tag&&(this.hT=t.tag),void 0!==t.explicit&&(this.isExplicit=t.explicit),void 0!==t.obj&&(this.asn1Object=t.obj,this.setASN1Object(this.isExplicit,this.hT,this.asn1Object)))},Ut.lang.extend(Wt.asn1.DERTaggedObject,Wt.asn1.ASN1Object);var qt,Gt=window&&window.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Kt=function(t){function e(n){var r=t.call(this)||this;return n&&("string"==typeof n?r.parseKey(n):(e.hasPrivateKeyProperty(n)||e.hasPublicKeyProperty(n))&&r.parsePropertiesFrom(n)),r}return Gt(e,t),e.prototype.parseKey=function(t){try{var e=0,n=0,r=/^\s*(?:[0-9A-Fa-f][0-9A-Fa-f]\s*)+$/.test(t)?it(t):at.unarmor(t),i=pt.decode(r);if(3===i.sub.length&&(i=i.sub[2].sub[0]),9===i.sub.length){e=i.sub[1].getHexStringValue(),this.n=xt(e,16),n=i.sub[2].getHexStringValue(),this.e=parseInt(n,16);var a=i.sub[3].getHexStringValue();this.d=xt(a,16);var o=i.sub[4].getHexStringValue();this.p=xt(o,16);var s=i.sub[5].getHexStringValue();this.q=xt(s,16);var u=i.sub[6].getHexStringValue();this.dmp1=xt(u,16);var l=i.sub[7].getHexStringValue();this.dmq1=xt(l,16);var c=i.sub[8].getHexStringValue();this.coeff=xt(c,16)}else{if(2!==i.sub.length)return!1;if(i.sub[0].sub){var h=i.sub[1].sub[0];e=h.sub[0].getHexStringValue(),this.n=xt(e,16),n=h.sub[1].getHexStringValue(),this.e=parseInt(n,16)}else e=i.sub[0].getHexStringValue(),this.n=xt(e,16),n=i.sub[1].getHexStringValue(),this.e=parseInt(n,16)}return!0}catch(t){return!1}},e.prototype.getPrivateBaseKey=function(){var t={array:[new Wt.asn1.DERInteger({int:0}),new Wt.asn1.DERInteger({bigint:this.n}),new Wt.asn1.DERInteger({int:this.e}),new Wt.asn1.DERInteger({bigint:this.d}),new Wt.asn1.DERInteger({bigint:this.p}),new Wt.asn1.DERInteger({bigint:this.q}),new Wt.asn1.DERInteger({bigint:this.dmp1}),new Wt.asn1.DERInteger({bigint:this.dmq1}),new Wt.asn1.DERInteger({bigint:this.coeff})]};return new Wt.asn1.DERSequence(t).getEncodedHex()},e.prototype.getPrivateBaseKeyB64=function(){return et(this.getPrivateBaseKey())},e.prototype.getPublicBaseKey=function(){var t=new Wt.asn1.DERSequence({array:[new Wt.asn1.DERObjectIdentifier({oid:"1.2.840.113549.1.1.1"}),new Wt.asn1.DERNull]}),e=new Wt.asn1.DERSequence({array:[new Wt.asn1.DERInteger({bigint:this.n}),new Wt.asn1.DERInteger({int:this.e})]}),n=new Wt.asn1.DERBitString({hex:"00"+e.getEncodedHex()});return new Wt.asn1.DERSequence({array:[t,n]}).getEncodedHex()},e.prototype.getPublicBaseKeyB64=function(){return et(this.getPublicBaseKey())},e.wordwrap=function(t,e){if(!t)return t;var n="(.{1,"+(e=e||64)+"})( +|$\n?)|(.{1,"+e+"})";return t.match(RegExp(n,"g")).join("\n")},e.prototype.getPrivateKey=function(){var t="-----BEGIN RSA PRIVATE KEY-----\n";return t+=e.wordwrap(this.getPrivateBaseKeyB64())+"\n",t+="-----END RSA PRIVATE KEY-----"},e.prototype.getPublicKey=function(){var t="-----BEGIN PUBLIC KEY-----\n";return t+=e.wordwrap(this.getPublicBaseKeyB64())+"\n",t+="-----END PUBLIC KEY-----"},e.hasPublicKeyProperty=function(t){return(t=t||{}).hasOwnProperty("n")&&t.hasOwnProperty("e")},e.hasPrivateKeyProperty=function(t){return(t=t||{}).hasOwnProperty("n")&&t.hasOwnProperty("e")&&t.hasOwnProperty("d")&&t.hasOwnProperty("p")&&t.hasOwnProperty("q")&&t.hasOwnProperty("dmp1")&&t.hasOwnProperty("dmq1")&&t.hasOwnProperty("coeff")},e.prototype.parsePropertiesFrom=function(t){this.n=t.n,this.e=t.e,t.hasOwnProperty("d")&&(this.d=t.d,this.p=t.p,this.q=t.q,this.dmp1=t.dmp1,this.dmq1=t.dmq1,this.coeff=t.coeff)},e}(Ht),Zt=void 0!==U?null===(qt=U.env)||void 0===qt?void 0:qt.npm_package_version:void 0,Xt=function(){function t(t){void 0===t&&(t={}),t=t||{},this.default_key_size=t.default_key_size?parseInt(t.default_key_size,10):1024,this.default_public_exponent=t.default_public_exponent||"010001",this.log=t.log||!1,this.key=null}return t.prototype.setKey=function(t){this.log&&this.key&&console.warn("A key was already set, overriding existing."),this.key=new Kt(t)},t.prototype.setPrivateKey=function(t){this.setKey(t)},t.prototype.setPublicKey=function(t){this.setKey(t)},t.prototype.decrypt=function(t){try{return this.getKey().decrypt(nt(t))}catch(t){return!1}},t.prototype.encrypt=function(t){try{return et(this.getKey().encrypt(t))}catch(t){return!1}},t.prototype.sign=function(t,e,n){try{return et(this.getKey().sign(t,e,n))}catch(t){return!1}},t.prototype.verify=function(t,e,n){try{return this.getKey().verify(t,nt(e),n)}catch(t){return!1}},t.prototype.getKey=function(t){if(!this.key){if(this.key=new Kt,t&&"[object Function]"==={}.toString.call(t))return void this.key.generateAsync(this.default_key_size,this.default_public_exponent,t);this.key.generate(this.default_key_size,this.default_public_exponent)}return this.key},t.prototype.getPrivateKey=function(){return this.getKey().getPrivateKey()},t.prototype.getPrivateKeyB64=function(){return this.getKey().getPrivateBaseKeyB64()},t.prototype.getPublicKey=function(){return this.getKey().getPublicKey()},t.prototype.getPublicKeyB64=function(){return this.getKey().getPublicBaseKeyB64()},t.version=Zt,t}(),$t={},Jt=o((function(t,e){var n;t.exports=(n=n||function(t,e){var n;if("undefined"!=typeof window&&window.crypto&&(n=window.crypto),"undefined"!=typeof self&&self.crypto&&(n=self.crypto),"undefined"!=typeof globalThis&&globalThis.crypto&&(n=globalThis.crypto),!n&&"undefined"!=typeof window&&window.msCrypto&&(n=window.msCrypto),!n&&void 0!==i&&i.crypto&&(n=i.crypto),!n)try{n=$t}catch(t){}var r=function(){if(n){if("function"==typeof n.getRandomValues)try{return n.getRandomValues(new Uint32Array(1))[0]}catch(t){}if("function"==typeof n.randomBytes)try{return n.randomBytes(4).readInt32LE()}catch(t){}}throw new Error("Native crypto module could not be used to get secure random number.")},a=Object.create||function(){function t(){}return function(e){var n;return t.prototype=e,n=new t,t.prototype=null,n}}(),o={},s=o.lib={},u=s.Base={extend:function(t){var e=a(this);return t&&e.mixIn(t),e.hasOwnProperty("init")&&this.init!==e.init||(e.init=function(){e.$super.init.apply(this,arguments)}),e.init.prototype=e,e.$super=this,e},create:function(){var t=this.extend();return t.init.apply(t,arguments),t},init:function(){},mixIn:function(t){for(var e in t)t.hasOwnProperty(e)&&(this[e]=t[e]);t.hasOwnProperty("toString")&&(this.toString=t.toString)},clone:function(){return this.init.prototype.extend(this)}},l=s.WordArray=u.extend({init:function(t,n){t=this.words=t||[],this.sigBytes=n!=e?n:4*t.length},toString:function(t){return(t||h).stringify(this)},concat:function(t){var e=this.words,n=t.words,r=this.sigBytes,i=t.sigBytes;if(this.clamp(),r%4)for(var a=0;a<i;a++){var o=n[a>>>2]>>>24-a%4*8&255;e[r+a>>>2]|=o<<24-(r+a)%4*8}else for(var s=0;s<i;s+=4)e[r+s>>>2]=n[s>>>2];return this.sigBytes+=i,this},clamp:function(){var e=this.words,n=this.sigBytes;e[n>>>2]&=4294967295<<32-n%4*8,e.length=t.ceil(n/4)},clone:function(){var t=u.clone.call(this);return t.words=this.words.slice(0),t},random:function(t){for(var e=[],n=0;n<t;n+=4)e.push(r());return new l.init(e,t)}}),c=o.enc={},h=c.Hex={stringify:function(t){for(var e=t.words,n=t.sigBytes,r=[],i=0;i<n;i++){var a=e[i>>>2]>>>24-i%4*8&255;r.push((a>>>4).toString(16)),r.push((15&a).toString(16))}return r.join("")},parse:function(t){for(var e=t.length,n=[],r=0;r<e;r+=2)n[r>>>3]|=parseInt(t.substr(r,2),16)<<24-r%8*4;return new l.init(n,e/2)}},f=c.Latin1={stringify:function(t){for(var e=t.words,n=t.sigBytes,r=[],i=0;i<n;i++){var a=e[i>>>2]>>>24-i%4*8&255;r.push(String.fromCharCode(a))}return r.join("")},parse:function(t){for(var e=t.length,n=[],r=0;r<e;r++)n[r>>>2]|=(255&t.charCodeAt(r))<<24-r%4*8;return new l.init(n,e)}},d=c.Utf8={stringify:function(t){try{return decodeURIComponent(escape(f.stringify(t)))}catch(t){throw new Error("Malformed UTF-8 data")}},parse:function(t){return f.parse(unescape(encodeURIComponent(t)))}},p=s.BufferedBlockAlgorithm=u.extend({reset:function(){this._data=new l.init,this._nDataBytes=0},_append:function(t){"string"==typeof t&&(t=d.parse(t)),this._data.concat(t),this._nDataBytes+=t.sigBytes},_process:function(e){var n,r=this._data,i=r.words,a=r.sigBytes,o=this.blockSize,s=a/(4*o),u=(s=e?t.ceil(s):t.max((0|s)-this._minBufferSize,0))*o,c=t.min(4*u,a);if(u){for(var h=0;h<u;h+=o)this._doProcessBlock(i,h);n=i.splice(0,u),r.sigBytes-=c}return new l.init(n,c)},clone:function(){var t=u.clone.call(this);return t._data=this._data.clone(),t},_minBufferSize:0});s.Hasher=p.extend({cfg:u.extend(),init:function(t){this.cfg=this.cfg.extend(t),this.reset()},reset:function(){p.reset.call(this),this._doReset()},update:function(t){return this._append(t),this._process(),this},finalize:function(t){return t&&this._append(t),this._doFinalize()},blockSize:16,_createHelper:function(t){return function(e,n){return new t.init(n).finalize(e)}},_createHmacHelper:function(t){return function(e,n){return new g.HMAC.init(t,n).finalize(e)}}});var g=o.algo={};return o}(Math),n)})),Qt=(o((function(t,e){var n,r,i,a,o,s,u;t.exports=(i=(r=u=Jt).lib,a=i.Base,o=i.WordArray,(s=r.x64={}).Word=a.extend({init:function(t,e){this.high=t,this.low=e}}),s.WordArray=a.extend({init:function(t,e){t=this.words=t||[],this.sigBytes=e!=n?e:8*t.length},toX32:function(){for(var t=this.words,e=t.length,n=[],r=0;r<e;r++){var i=t[r];n.push(i.high),n.push(i.low)}return o.create(n,this.sigBytes)},clone:function(){for(var t=a.clone.call(this),e=t.words=this.words.slice(0),n=e.length,r=0;r<n;r++)e[r]=e[r].clone();return t}}),u)})),o((function(t,e){var n;t.exports=(n=Jt,function(){if("function"==typeof ArrayBuffer){var t=n.lib.WordArray,e=t.init,r=t.init=function(t){if(t instanceof ArrayBuffer&&(t=new Uint8Array(t)),(t instanceof Int8Array||"undefined"!=typeof Uint8ClampedArray&&t instanceof Uint8ClampedArray||t instanceof Int16Array||t instanceof Uint16Array||t instanceof Int32Array||t instanceof Uint32Array||t instanceof Float32Array||t instanceof Float64Array)&&(t=new Uint8Array(t.buffer,t.byteOffset,t.byteLength)),t instanceof Uint8Array){for(var n=t.byteLength,r=[],i=0;i<n;i++)r[i>>>2]|=t[i]<<24-i%4*8;e.call(this,r,n)}else e.apply(this,arguments)};r.prototype=t}}(),n.lib.WordArray)})),o((function(t,e){var n;t.exports=(n=Jt,function(){var t=n,e=t.lib.WordArray,r=t.enc;function i(t){return t<<8&4278255360|t>>>8&16711935}r.Utf16=r.Utf16BE={stringify:function(t){for(var e=t.words,n=t.sigBytes,r=[],i=0;i<n;i+=2){var a=e[i>>>2]>>>16-i%4*8&65535;r.push(String.fromCharCode(a))}return r.join("")},parse:function(t){for(var n=t.length,r=[],i=0;i<n;i++)r[i>>>1]|=t.charCodeAt(i)<<16-i%2*16;return e.create(r,2*n)}},r.Utf16LE={stringify:function(t){for(var e=t.words,n=t.sigBytes,r=[],a=0;a<n;a+=2){var o=i(e[a>>>2]>>>16-a%4*8&65535);r.push(String.fromCharCode(o))}return r.join("")},parse:function(t){for(var n=t.length,r=[],a=0;a<n;a++)r[a>>>1]|=i(t.charCodeAt(a)<<16-a%2*16);return e.create(r,2*n)}}}(),n.enc.Utf16)})),o((function(t,e){var n;t.exports=(n=Jt,function(){var t=n,e=t.lib.WordArray;function r(t,n,r){for(var i=[],a=0,o=0;o<n;o++)if(o%4){var s=r[t.charCodeAt(o-1)]<<o%4*2|r[t.charCodeAt(o)]>>>6-o%4*2;i[a>>>2]|=s<<24-a%4*8,a++}return e.create(i,a)}t.enc.Base64={stringify:function(t){var e=t.words,n=t.sigBytes,r=this._map;t.clamp();for(var i=[],a=0;a<n;a+=3)for(var o=(e[a>>>2]>>>24-a%4*8&255)<<16|(e[a+1>>>2]>>>24-(a+1)%4*8&255)<<8|e[a+2>>>2]>>>24-(a+2)%4*8&255,s=0;s<4&&a+.75*s<n;s++)i.push(r.charAt(o>>>6*(3-s)&63));var u=r.charAt(64);if(u)for(;i.length%4;)i.push(u);return i.join("")},parse:function(t){var e=t.length,n=this._map,i=this._reverseMap;if(!i){i=this._reverseMap=[];for(var a=0;a<n.length;a++)i[n.charCodeAt(a)]=a}var o=n.charAt(64);if(o){var s=t.indexOf(o);-1!==s&&(e=s)}return r(t,e,i)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="}}(),n.enc.Base64)})),o((function(t,e){var n;t.exports=(n=Jt,function(){var t=n,e=t.lib.WordArray;function r(t,n,r){for(var i=[],a=0,o=0;o<n;o++)if(o%4){var s=r[t.charCodeAt(o-1)]<<o%4*2|r[t.charCodeAt(o)]>>>6-o%4*2;i[a>>>2]|=s<<24-a%4*8,a++}return e.create(i,a)}t.enc.Base64url={stringify:function(t,e=!0){var n=t.words,r=t.sigBytes,i=e?this._safe_map:this._map;t.clamp();for(var a=[],o=0;o<r;o+=3)for(var s=(n[o>>>2]>>>24-o%4*8&255)<<16|(n[o+1>>>2]>>>24-(o+1)%4*8&255)<<8|n[o+2>>>2]>>>24-(o+2)%4*8&255,u=0;u<4&&o+.75*u<r;u++)a.push(i.charAt(s>>>6*(3-u)&63));var l=i.charAt(64);if(l)for(;a.length%4;)a.push(l);return a.join("")},parse:function(t,e=!0){var n=t.length,i=e?this._safe_map:this._map,a=this._reverseMap;if(!a){a=this._reverseMap=[];for(var o=0;o<i.length;o++)a[i.charCodeAt(o)]=o}var s=i.charAt(64);if(s){var u=t.indexOf(s);-1!==u&&(n=u)}return r(t,n,a)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",_safe_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"}}(),n.enc.Base64url)})),o((function(t,e){var n;t.exports=(n=Jt,function(t){var e=n,r=e.lib,i=r.WordArray,a=r.Hasher,o=e.algo,s=[];!function(){for(var e=0;e<64;e++)s[e]=4294967296*t.abs(t.sin(e+1))|0}();var u=o.MD5=a.extend({_doReset:function(){this._hash=new i.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(t,e){for(var n=0;n<16;n++){var r=e+n,i=t[r];t[r]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8)}var a=this._hash.words,o=t[e+0],u=t[e+1],d=t[e+2],p=t[e+3],g=t[e+4],m=t[e+5],v=t[e+6],y=t[e+7],_=t[e+8],b=t[e+9],w=t[e+10],D=t[e+11],S=t[e+12],x=t[e+13],T=t[e+14],k=t[e+15],C=a[0],E=a[1],M=a[2],O=a[3];C=l(C,E,M,O,o,7,s[0]),O=l(O,C,E,M,u,12,s[1]),M=l(M,O,C,E,d,17,s[2]),E=l(E,M,O,C,p,22,s[3]),C=l(C,E,M,O,g,7,s[4]),O=l(O,C,E,M,m,12,s[5]),M=l(M,O,C,E,v,17,s[6]),E=l(E,M,O,C,y,22,s[7]),C=l(C,E,M,O,_,7,s[8]),O=l(O,C,E,M,b,12,s[9]),M=l(M,O,C,E,w,17,s[10]),E=l(E,M,O,C,D,22,s[11]),C=l(C,E,M,O,S,7,s[12]),O=l(O,C,E,M,x,12,s[13]),M=l(M,O,C,E,T,17,s[14]),C=c(C,E=l(E,M,O,C,k,22,s[15]),M,O,u,5,s[16]),O=c(O,C,E,M,v,9,s[17]),M=c(M,O,C,E,D,14,s[18]),E=c(E,M,O,C,o,20,s[19]),C=c(C,E,M,O,m,5,s[20]),O=c(O,C,E,M,w,9,s[21]),M=c(M,O,C,E,k,14,s[22]),E=c(E,M,O,C,g,20,s[23]),C=c(C,E,M,O,b,5,s[24]),O=c(O,C,E,M,T,9,s[25]),M=c(M,O,C,E,p,14,s[26]),E=c(E,M,O,C,_,20,s[27]),C=c(C,E,M,O,x,5,s[28]),O=c(O,C,E,M,d,9,s[29]),M=c(M,O,C,E,y,14,s[30]),C=h(C,E=c(E,M,O,C,S,20,s[31]),M,O,m,4,s[32]),O=h(O,C,E,M,_,11,s[33]),M=h(M,O,C,E,D,16,s[34]),E=h(E,M,O,C,T,23,s[35]),C=h(C,E,M,O,u,4,s[36]),O=h(O,C,E,M,g,11,s[37]),M=h(M,O,C,E,y,16,s[38]),E=h(E,M,O,C,w,23,s[39]),C=h(C,E,M,O,x,4,s[40]),O=h(O,C,E,M,o,11,s[41]),M=h(M,O,C,E,p,16,s[42]),E=h(E,M,O,C,v,23,s[43]),C=h(C,E,M,O,b,4,s[44]),O=h(O,C,E,M,S,11,s[45]),M=h(M,O,C,E,k,16,s[46]),C=f(C,E=h(E,M,O,C,d,23,s[47]),M,O,o,6,s[48]),O=f(O,C,E,M,y,10,s[49]),M=f(M,O,C,E,T,15,s[50]),E=f(E,M,O,C,m,21,s[51]),C=f(C,E,M,O,S,6,s[52]),O=f(O,C,E,M,p,10,s[53]),M=f(M,O,C,E,w,15,s[54]),E=f(E,M,O,C,u,21,s[55]),C=f(C,E,M,O,_,6,s[56]),O=f(O,C,E,M,k,10,s[57]),M=f(M,O,C,E,v,15,s[58]),E=f(E,M,O,C,x,21,s[59]),C=f(C,E,M,O,g,6,s[60]),O=f(O,C,E,M,D,10,s[61]),M=f(M,O,C,E,d,15,s[62]),E=f(E,M,O,C,b,21,s[63]),a[0]=a[0]+C|0,a[1]=a[1]+E|0,a[2]=a[2]+M|0,a[3]=a[3]+O|0},_doFinalize:function(){var e=this._data,n=e.words,r=8*this._nDataBytes,i=8*e.sigBytes;n[i>>>5]|=128<<24-i%32;var a=t.floor(r/4294967296),o=r;n[15+(i+64>>>9<<4)]=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),n[14+(i+64>>>9<<4)]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),e.sigBytes=4*(n.length+1),this._process();for(var s=this._hash,u=s.words,l=0;l<4;l++){var c=u[l];u[l]=16711935&(c<<8|c>>>24)|4278255360&(c<<24|c>>>8)}return s},clone:function(){var t=a.clone.call(this);return t._hash=this._hash.clone(),t}});function l(t,e,n,r,i,a,o){var s=t+(e&n|~e&r)+i+o;return(s<<a|s>>>32-a)+e}function c(t,e,n,r,i,a,o){var s=t+(e&r|n&~r)+i+o;return(s<<a|s>>>32-a)+e}function h(t,e,n,r,i,a,o){var s=t+(e^n^r)+i+o;return(s<<a|s>>>32-a)+e}function f(t,e,n,r,i,a,o){var s=t+(n^(e|~r))+i+o;return(s<<a|s>>>32-a)+e}e.MD5=a._createHelper(u),e.HmacMD5=a._createHmacHelper(u)}(Math),n.MD5)})),o((function(t,e){var n,r,i,a,o,s,u,l;t.exports=(r=(n=l=Jt).lib,i=r.WordArray,a=r.Hasher,o=n.algo,s=[],u=o.SHA1=a.extend({_doReset:function(){this._hash=new i.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(t,e){for(var n=this._hash.words,r=n[0],i=n[1],a=n[2],o=n[3],u=n[4],l=0;l<80;l++){if(l<16)s[l]=0|t[e+l];else{var c=s[l-3]^s[l-8]^s[l-14]^s[l-16];s[l]=c<<1|c>>>31}var h=(r<<5|r>>>27)+u+s[l];h+=l<20?1518500249+(i&a|~i&o):l<40?1859775393+(i^a^o):l<60?(i&a|i&o|a&o)-1894007588:(i^a^o)-899497514,u=o,o=a,a=i<<30|i>>>2,i=r,r=h}n[0]=n[0]+r|0,n[1]=n[1]+i|0,n[2]=n[2]+a|0,n[3]=n[3]+o|0,n[4]=n[4]+u|0},_doFinalize:function(){var t=this._data,e=t.words,n=8*this._nDataBytes,r=8*t.sigBytes;return e[r>>>5]|=128<<24-r%32,e[14+(r+64>>>9<<4)]=Math.floor(n/4294967296),e[15+(r+64>>>9<<4)]=n,t.sigBytes=4*e.length,this._process(),this._hash},clone:function(){var t=a.clone.call(this);return t._hash=this._hash.clone(),t}}),n.SHA1=a._createHelper(u),n.HmacSHA1=a._createHmacHelper(u),l.SHA1)})),o((function(t,e){var n;t.exports=(n=Jt,function(t){var e=n,r=e.lib,i=r.WordArray,a=r.Hasher,o=e.algo,s=[],u=[];!function(){function e(e){for(var n=t.sqrt(e),r=2;r<=n;r++)if(!(e%r))return!1;return!0}function n(t){return 4294967296*(t-(0|t))|0}for(var r=2,i=0;i<64;)e(r)&&(i<8&&(s[i]=n(t.pow(r,.5))),u[i]=n(t.pow(r,1/3)),i++),r++}();var l=[],c=o.SHA256=a.extend({_doReset:function(){this._hash=new i.init(s.slice(0))},_doProcessBlock:function(t,e){for(var n=this._hash.words,r=n[0],i=n[1],a=n[2],o=n[3],s=n[4],c=n[5],h=n[6],f=n[7],d=0;d<64;d++){if(d<16)l[d]=0|t[e+d];else{var p=l[d-15],g=(p<<25|p>>>7)^(p<<14|p>>>18)^p>>>3,m=l[d-2],v=(m<<15|m>>>17)^(m<<13|m>>>19)^m>>>10;l[d]=g+l[d-7]+v+l[d-16]}var y=r&i^r&a^i&a,_=(r<<30|r>>>2)^(r<<19|r>>>13)^(r<<10|r>>>22),b=f+((s<<26|s>>>6)^(s<<21|s>>>11)^(s<<7|s>>>25))+(s&c^~s&h)+u[d]+l[d];f=h,h=c,c=s,s=o+b|0,o=a,a=i,i=r,r=b+(_+y)|0}n[0]=n[0]+r|0,n[1]=n[1]+i|0,n[2]=n[2]+a|0,n[3]=n[3]+o|0,n[4]=n[4]+s|0,n[5]=n[5]+c|0,n[6]=n[6]+h|0,n[7]=n[7]+f|0},_doFinalize:function(){var e=this._data,n=e.words,r=8*this._nDataBytes,i=8*e.sigBytes;return n[i>>>5]|=128<<24-i%32,n[14+(i+64>>>9<<4)]=t.floor(r/4294967296),n[15+(i+64>>>9<<4)]=r,e.sigBytes=4*n.length,this._process(),this._hash},clone:function(){var t=a.clone.call(this);return t._hash=this._hash.clone(),t}});e.SHA256=a._createHelper(c),e.HmacSHA256=a._createHmacHelper(c)}(Math),n.SHA256)})),o((function(t,e){var n,r,i,a,o,s;t.exports=(r=(n=s=Jt).lib.WordArray,i=n.algo,a=i.SHA256,o=i.SHA224=a.extend({_doReset:function(){this._hash=new r.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var t=a._doFinalize.call(this);return t.sigBytes-=4,t}}),n.SHA224=a._createHelper(o),n.HmacSHA224=a._createHmacHelper(o),s.SHA224)})),o((function(t,e){var n;t.exports=(n=Jt,function(){var t=n,e=t.lib.Hasher,r=t.x64,i=r.Word,a=r.WordArray,o=t.algo;function s(){return i.create.apply(i,arguments)}var u=[s(1116352408,3609767458),s(1899447441,602891725),s(3049323471,3964484399),s(3921009573,2173295548),s(961987163,4081628472),s(1508970993,3053834265),s(2453635748,2937671579),s(2870763221,3664609560),s(3624381080,2734883394),s(310598401,1164996542),s(607225278,1323610764),s(1426881987,3590304994),s(1925078388,4068182383),s(2162078206,991336113),s(2614888103,633803317),s(3248222580,3479774868),s(3835390401,2666613458),s(4022224774,944711139),s(264347078,2341262773),s(604807628,2007800933),s(770255983,1495990901),s(1249150122,1856431235),s(1555081692,3175218132),s(1996064986,2198950837),s(2554220882,3999719339),s(2821834349,766784016),s(2952996808,2566594879),s(3210313671,3203337956),s(3336571891,1034457026),s(3584528711,2466948901),s(113926993,3758326383),s(338241895,168717936),s(666307205,1188179964),s(773529912,1546045734),s(1294757372,1522805485),s(1396182291,2643833823),s(1695183700,2343527390),s(1986661051,1014477480),s(2177026350,1206759142),s(2456956037,344077627),s(2730485921,1290863460),s(2820302411,3158454273),s(3259730800,3505952657),s(3345764771,106217008),s(3516065817,3606008344),s(3600352804,1432725776),s(4094571909,1467031594),s(275423344,851169720),s(430227734,3100823752),s(506948616,1363258195),s(659060556,3750685593),s(883997877,3785050280),s(958139571,3318307427),s(1322822218,3812723403),s(1537002063,2003034995),s(1747873779,3602036899),s(1955562222,1575990012),s(2024104815,1125592928),s(2227730452,2716904306),s(2361852424,442776044),s(2428436474,593698344),s(2756734187,3733110249),s(3204031479,2999351573),s(3329325298,3815920427),s(3391569614,3928383900),s(3515267271,566280711),s(3940187606,3454069534),s(4118630271,4000239992),s(116418474,1914138554),s(174292421,2731055270),s(289380356,3203993006),s(460393269,320620315),s(685471733,587496836),s(852142971,1086792851),s(1017036298,365543100),s(1126000580,2618297676),s(1288033470,3409855158),s(1501505948,4234509866),s(1607167915,987167468),s(1816402316,1246189591)],l=[];!function(){for(var t=0;t<80;t++)l[t]=s()}();var c=o.SHA512=e.extend({_doReset:function(){this._hash=new a.init([new i.init(1779033703,4089235720),new i.init(3144134277,2227873595),new i.init(1013904242,4271175723),new i.init(2773480762,1595750129),new i.init(1359893119,2917565137),new i.init(2600822924,725511199),new i.init(528734635,4215389547),new i.init(1541459225,327033209)])},_doProcessBlock:function(t,e){for(var n=this._hash.words,r=n[0],i=n[1],a=n[2],o=n[3],s=n[4],c=n[5],h=n[6],f=n[7],d=r.high,p=r.low,g=i.high,m=i.low,v=a.high,y=a.low,_=o.high,b=o.low,w=s.high,D=s.low,S=c.high,x=c.low,T=h.high,k=h.low,C=f.high,E=f.low,M=d,O=p,A=g,P=m,B=v,R=y,V=_,N=b,I=w,F=D,Y=S,L=x,j=T,H=k,z=C,U=E,W=0;W<80;W++){var q,G,K=l[W];if(W<16)G=K.high=0|t[e+2*W],q=K.low=0|t[e+2*W+1];else{var Z=l[W-15],X=Z.high,$=Z.low,J=(X>>>1|$<<31)^(X>>>8|$<<24)^X>>>7,Q=($>>>1|X<<31)^($>>>8|X<<24)^($>>>7|X<<25),tt=l[W-2],et=tt.high,nt=tt.low,rt=(et>>>19|nt<<13)^(et<<3|nt>>>29)^et>>>6,it=(nt>>>19|et<<13)^(nt<<3|et>>>29)^(nt>>>6|et<<26),at=l[W-7],ot=at.high,st=at.low,ut=l[W-16],lt=ut.high,ct=ut.low;G=(G=(G=J+ot+((q=Q+st)>>>0<Q>>>0?1:0))+rt+((q+=it)>>>0<it>>>0?1:0))+lt+((q+=ct)>>>0<ct>>>0?1:0),K.high=G,K.low=q}var ht,ft=I&Y^~I&j,dt=F&L^~F&H,pt=M&A^M&B^A&B,gt=O&P^O&R^P&R,mt=(M>>>28|O<<4)^(M<<30|O>>>2)^(M<<25|O>>>7),vt=(O>>>28|M<<4)^(O<<30|M>>>2)^(O<<25|M>>>7),yt=(I>>>14|F<<18)^(I>>>18|F<<14)^(I<<23|F>>>9),_t=(F>>>14|I<<18)^(F>>>18|I<<14)^(F<<23|I>>>9),bt=u[W],wt=bt.high,Dt=bt.low,St=z+yt+((ht=U+_t)>>>0<U>>>0?1:0),xt=vt+gt;z=j,U=H,j=Y,H=L,Y=I,L=F,I=V+(St=(St=(St=St+ft+((ht+=dt)>>>0<dt>>>0?1:0))+wt+((ht+=Dt)>>>0<Dt>>>0?1:0))+G+((ht+=q)>>>0<q>>>0?1:0))+((F=N+ht|0)>>>0<N>>>0?1:0)|0,V=B,N=R,B=A,R=P,A=M,P=O,M=St+(mt+pt+(xt>>>0<vt>>>0?1:0))+((O=ht+xt|0)>>>0<ht>>>0?1:0)|0}p=r.low=p+O,r.high=d+M+(p>>>0<O>>>0?1:0),m=i.low=m+P,i.high=g+A+(m>>>0<P>>>0?1:0),y=a.low=y+R,a.high=v+B+(y>>>0<R>>>0?1:0),b=o.low=b+N,o.high=_+V+(b>>>0<N>>>0?1:0),D=s.low=D+F,s.high=w+I+(D>>>0<F>>>0?1:0),x=c.low=x+L,c.high=S+Y+(x>>>0<L>>>0?1:0),k=h.low=k+H,h.high=T+j+(k>>>0<H>>>0?1:0),E=f.low=E+U,f.high=C+z+(E>>>0<U>>>0?1:0)},_doFinalize:function(){var t=this._data,e=t.words,n=8*this._nDataBytes,r=8*t.sigBytes;return e[r>>>5]|=128<<24-r%32,e[30+(r+128>>>10<<5)]=Math.floor(n/4294967296),e[31+(r+128>>>10<<5)]=n,t.sigBytes=4*e.length,this._process(),this._hash.toX32()},clone:function(){var t=e.clone.call(this);return t._hash=this._hash.clone(),t},blockSize:32});t.SHA512=e._createHelper(c),t.HmacSHA512=e._createHmacHelper(c)}(),n.SHA512)})),o((function(t,e){var n,r,i,a,o,s,u,l;t.exports=(r=(n=l=Jt).x64,i=r.Word,a=r.WordArray,o=n.algo,s=o.SHA512,u=o.SHA384=s.extend({_doReset:function(){this._hash=new a.init([new i.init(3418070365,3238371032),new i.init(1654270250,914150663),new i.init(2438529370,812702999),new i.init(355462360,4144912697),new i.init(1731405415,4290775857),new i.init(2394180231,1750603025),new i.init(3675008525,1694076839),new i.init(1203062813,3204075428)])},_doFinalize:function(){var t=s._doFinalize.call(this);return t.sigBytes-=16,t}}),n.SHA384=s._createHelper(u),n.HmacSHA384=s._createHmacHelper(u),l.SHA384)})),o((function(t,e){var n;t.exports=(n=Jt,function(t){var e=n,r=e.lib,i=r.WordArray,a=r.Hasher,o=e.x64.Word,s=e.algo,u=[],l=[],c=[];!function(){for(var t=1,e=0,n=0;n<24;n++){u[t+5*e]=(n+1)*(n+2)/2%64;var r=(2*t+3*e)%5;t=e%5,e=r}for(t=0;t<5;t++)for(e=0;e<5;e++)l[t+5*e]=e+(2*t+3*e)%5*5;for(var i=1,a=0;a<24;a++){for(var s=0,h=0,f=0;f<7;f++){if(1&i){var d=(1<<f)-1;d<32?h^=1<<d:s^=1<<d-32}128&i?i=i<<1^113:i<<=1}c[a]=o.create(s,h)}}();var h=[];!function(){for(var t=0;t<25;t++)h[t]=o.create()}();var f=s.SHA3=a.extend({cfg:a.cfg.extend({outputLength:512}),_doReset:function(){for(var t=this._state=[],e=0;e<25;e++)t[e]=new o.init;this.blockSize=(1600-2*this.cfg.outputLength)/32},_doProcessBlock:function(t,e){for(var n=this._state,r=this.blockSize/2,i=0;i<r;i++){var a=t[e+2*i],o=t[e+2*i+1];a=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),o=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),(E=n[i]).high^=o,E.low^=a}for(var s=0;s<24;s++){for(var f=0;f<5;f++){for(var d=0,p=0,g=0;g<5;g++)d^=(E=n[f+5*g]).high,p^=E.low;var m=h[f];m.high=d,m.low=p}for(f=0;f<5;f++){var v=h[(f+4)%5],y=h[(f+1)%5],_=y.high,b=y.low;for(d=v.high^(_<<1|b>>>31),p=v.low^(b<<1|_>>>31),g=0;g<5;g++)(E=n[f+5*g]).high^=d,E.low^=p}for(var w=1;w<25;w++){var D=(E=n[w]).high,S=E.low,x=u[w];x<32?(d=D<<x|S>>>32-x,p=S<<x|D>>>32-x):(d=S<<x-32|D>>>64-x,p=D<<x-32|S>>>64-x);var T=h[l[w]];T.high=d,T.low=p}var k=h[0],C=n[0];for(k.high=C.high,k.low=C.low,f=0;f<5;f++)for(g=0;g<5;g++){var E=n[w=f+5*g],M=h[w],O=h[(f+1)%5+5*g],A=h[(f+2)%5+5*g];E.high=M.high^~O.high&A.high,E.low=M.low^~O.low&A.low}E=n[0];var P=c[s];E.high^=P.high,E.low^=P.low}},_doFinalize:function(){var e=this._data,n=e.words;this._nDataBytes;var r=8*e.sigBytes,a=32*this.blockSize;n[r>>>5]|=1<<24-r%32,n[(t.ceil((r+1)/a)*a>>>5)-1]|=128,e.sigBytes=4*n.length,this._process();for(var o=this._state,s=this.cfg.outputLength/8,u=s/8,l=[],c=0;c<u;c++){var h=o[c],f=h.high,d=h.low;f=16711935&(f<<8|f>>>24)|4278255360&(f<<24|f>>>8),d=16711935&(d<<8|d>>>24)|4278255360&(d<<24|d>>>8),l.push(d),l.push(f)}return new i.init(l,s)},clone:function(){for(var t=a.clone.call(this),e=t._state=this._state.slice(0),n=0;n<25;n++)e[n]=e[n].clone();return t}});e.SHA3=a._createHelper(f),e.HmacSHA3=a._createHmacHelper(f)}(Math),n.SHA3)})),o((function(t,e){var n;t.exports=(n=Jt,
|
|
19
19
|
/** @preserve
|
|
20
20
|
(c) 2012 by Cédric Mesnil. All rights reserved.
|
|
21
21
|
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
|
|
@@ -23,13 +23,13 @@ var zt={};void 0!==zt.asn1&&zt.asn1||(zt.asn1={}),zt.asn1.ASN1Util=new function(
|
|
|
23
23
|
- Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
|
|
24
24
|
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
25
25
|
*/
|
|
26
|
-
function(t){var e=n,r=e.lib,i=r.WordArray,a=r.Hasher,o=e.algo,s=i.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),u=i.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),l=i.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),c=i.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),h=i.create([0,1518500249,1859775393,2400959708,2840853838]),f=i.create([1352829926,1548603684,1836072691,2053994217,0]),d=o.RIPEMD160=a.extend({_doReset:function(){this._hash=i.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(t,e){for(var n=0;n<16;n++){var r=e+n,i=t[r];t[r]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8)}var a,o,d,b,w,D,S,x,T,k,C,E=this._hash.words,
|
|
26
|
+
function(t){var e=n,r=e.lib,i=r.WordArray,a=r.Hasher,o=e.algo,s=i.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),u=i.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),l=i.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),c=i.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),h=i.create([0,1518500249,1859775393,2400959708,2840853838]),f=i.create([1352829926,1548603684,1836072691,2053994217,0]),d=o.RIPEMD160=a.extend({_doReset:function(){this._hash=i.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(t,e){for(var n=0;n<16;n++){var r=e+n,i=t[r];t[r]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8)}var a,o,d,b,w,D,S,x,T,k,C,E=this._hash.words,M=h.words,O=f.words,A=s.words,P=u.words,B=l.words,R=c.words;for(D=a=E[0],S=o=E[1],x=d=E[2],T=b=E[3],k=w=E[4],n=0;n<80;n+=1)C=a+t[e+A[n]]|0,C+=n<16?p(o,d,b)+M[0]:n<32?g(o,d,b)+M[1]:n<48?m(o,d,b)+M[2]:n<64?v(o,d,b)+M[3]:y(o,d,b)+M[4],C=(C=_(C|=0,B[n]))+w|0,a=w,w=b,b=_(d,10),d=o,o=C,C=D+t[e+P[n]]|0,C+=n<16?y(S,x,T)+O[0]:n<32?v(S,x,T)+O[1]:n<48?m(S,x,T)+O[2]:n<64?g(S,x,T)+O[3]:p(S,x,T)+O[4],C=(C=_(C|=0,R[n]))+k|0,D=k,k=T,T=_(x,10),x=S,S=C;C=E[1]+d+T|0,E[1]=E[2]+b+k|0,E[2]=E[3]+w+D|0,E[3]=E[4]+a+S|0,E[4]=E[0]+o+x|0,E[0]=C},_doFinalize:function(){var t=this._data,e=t.words,n=8*this._nDataBytes,r=8*t.sigBytes;e[r>>>5]|=128<<24-r%32,e[14+(r+64>>>9<<4)]=16711935&(n<<8|n>>>24)|4278255360&(n<<24|n>>>8),t.sigBytes=4*(e.length+1),this._process();for(var i=this._hash,a=i.words,o=0;o<5;o++){var s=a[o];a[o]=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8)}return i},clone:function(){var t=a.clone.call(this);return t._hash=this._hash.clone(),t}});function p(t,e,n){return t^e^n}function g(t,e,n){return t&e|~t&n}function m(t,e,n){return(t|~e)^n}function v(t,e,n){return t&n|e&~n}function y(t,e,n){return t^(e|~n)}function _(t,e){return t<<e|t>>>32-e}e.RIPEMD160=a._createHelper(d),e.HmacRIPEMD160=a._createHmacHelper(d)}(),n.RIPEMD160)})),o((function(t,e){var n,r,i;t.exports=(r=(n=Jt).lib.Base,i=n.enc.Utf8,void(n.algo.HMAC=r.extend({init:function(t,e){t=this._hasher=new t.init,"string"==typeof e&&(e=i.parse(e));var n=t.blockSize,r=4*n;e.sigBytes>r&&(e=t.finalize(e)),e.clamp();for(var a=this._oKey=e.clone(),o=this._iKey=e.clone(),s=a.words,u=o.words,l=0;l<n;l++)s[l]^=1549556828,u[l]^=909522486;a.sigBytes=o.sigBytes=r,this.reset()},reset:function(){var t=this._hasher;t.reset(),t.update(this._iKey)},update:function(t){return this._hasher.update(t),this},finalize:function(t){var e=this._hasher,n=e.finalize(t);return e.reset(),e.finalize(this._oKey.clone().concat(n))}})))})),o((function(t,e){var n,r,i,a,o,s,u,l,c;t.exports=(r=(n=c=Jt).lib,i=r.Base,a=r.WordArray,o=n.algo,s=o.SHA1,u=o.HMAC,l=o.PBKDF2=i.extend({cfg:i.extend({keySize:4,hasher:s,iterations:1}),init:function(t){this.cfg=this.cfg.extend(t)},compute:function(t,e){for(var n=this.cfg,r=u.create(n.hasher,t),i=a.create(),o=a.create([1]),s=i.words,l=o.words,c=n.keySize,h=n.iterations;s.length<c;){var f=r.update(e).finalize(o);r.reset();for(var d=f.words,p=d.length,g=f,m=1;m<h;m++){g=r.finalize(g),r.reset();for(var v=g.words,y=0;y<p;y++)d[y]^=v[y]}i.concat(f),l[0]++}return i.sigBytes=4*c,i}}),n.PBKDF2=function(t,e,n){return l.create(n).compute(t,e)},c.PBKDF2)})),o((function(t,e){var n,r,i,a,o,s,u,l;t.exports=(r=(n=l=Jt).lib,i=r.Base,a=r.WordArray,o=n.algo,s=o.MD5,u=o.EvpKDF=i.extend({cfg:i.extend({keySize:4,hasher:s,iterations:1}),init:function(t){this.cfg=this.cfg.extend(t)},compute:function(t,e){for(var n,r=this.cfg,i=r.hasher.create(),o=a.create(),s=o.words,u=r.keySize,l=r.iterations;s.length<u;){n&&i.update(n),n=i.update(t).finalize(e),i.reset();for(var c=1;c<l;c++)n=i.finalize(n),i.reset();o.concat(n)}return o.sigBytes=4*u,o}}),n.EvpKDF=function(t,e,n){return u.create(n).compute(t,e)},l.EvpKDF)})),o((function(t,e){var n;t.exports=void((n=Jt).lib.Cipher||function(t){var e=n,r=e.lib,i=r.Base,a=r.WordArray,o=r.BufferedBlockAlgorithm,s=e.enc;s.Utf8;var u=s.Base64,l=e.algo.EvpKDF,c=r.Cipher=o.extend({cfg:i.extend(),createEncryptor:function(t,e){return this.create(this._ENC_XFORM_MODE,t,e)},createDecryptor:function(t,e){return this.create(this._DEC_XFORM_MODE,t,e)},init:function(t,e,n){this.cfg=this.cfg.extend(n),this._xformMode=t,this._key=e,this.reset()},reset:function(){o.reset.call(this),this._doReset()},process:function(t){return this._append(t),this._process()},finalize:function(t){return t&&this._append(t),this._doFinalize()},keySize:4,ivSize:4,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function t(t){return"string"==typeof t?_:v}return function(e){return{encrypt:function(n,r,i){return t(r).encrypt(e,n,r,i)},decrypt:function(n,r,i){return t(r).decrypt(e,n,r,i)}}}}()});r.StreamCipher=c.extend({_doFinalize:function(){return this._process(!0)},blockSize:1});var h=e.mode={},f=r.BlockCipherMode=i.extend({createEncryptor:function(t,e){return this.Encryptor.create(t,e)},createDecryptor:function(t,e){return this.Decryptor.create(t,e)},init:function(t,e){this._cipher=t,this._iv=e}}),d=h.CBC=function(){var e=f.extend();function n(e,n,r){var i,a=this._iv;a?(i=a,this._iv=t):i=this._prevBlock;for(var o=0;o<r;o++)e[n+o]^=i[o]}return e.Encryptor=e.extend({processBlock:function(t,e){var r=this._cipher,i=r.blockSize;n.call(this,t,e,i),r.encryptBlock(t,e),this._prevBlock=t.slice(e,e+i)}}),e.Decryptor=e.extend({processBlock:function(t,e){var r=this._cipher,i=r.blockSize,a=t.slice(e,e+i);r.decryptBlock(t,e),n.call(this,t,e,i),this._prevBlock=a}}),e}(),p=(e.pad={}).Pkcs7={pad:function(t,e){for(var n=4*e,r=n-t.sigBytes%n,i=r<<24|r<<16|r<<8|r,o=[],s=0;s<r;s+=4)o.push(i);var u=a.create(o,r);t.concat(u)},unpad:function(t){var e=255&t.words[t.sigBytes-1>>>2];t.sigBytes-=e}};r.BlockCipher=c.extend({cfg:c.cfg.extend({mode:d,padding:p}),reset:function(){var t;c.reset.call(this);var e=this.cfg,n=e.iv,r=e.mode;this._xformMode==this._ENC_XFORM_MODE?t=r.createEncryptor:(t=r.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==t?this._mode.init(this,n&&n.words):(this._mode=t.call(r,this,n&&n.words),this._mode.__creator=t)},_doProcessBlock:function(t,e){this._mode.processBlock(t,e)},_doFinalize:function(){var t,e=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(e.pad(this._data,this.blockSize),t=this._process(!0)):(t=this._process(!0),e.unpad(t)),t},blockSize:4});var g=r.CipherParams=i.extend({init:function(t){this.mixIn(t)},toString:function(t){return(t||this.formatter).stringify(this)}}),m=(e.format={}).OpenSSL={stringify:function(t){var e=t.ciphertext,n=t.salt;return(n?a.create([1398893684,1701076831]).concat(n).concat(e):e).toString(u)},parse:function(t){var e,n=u.parse(t),r=n.words;return 1398893684==r[0]&&1701076831==r[1]&&(e=a.create(r.slice(2,4)),r.splice(0,4),n.sigBytes-=16),g.create({ciphertext:n,salt:e})}},v=r.SerializableCipher=i.extend({cfg:i.extend({format:m}),encrypt:function(t,e,n,r){r=this.cfg.extend(r);var i=t.createEncryptor(n,r),a=i.finalize(e),o=i.cfg;return g.create({ciphertext:a,key:n,iv:o.iv,algorithm:t,mode:o.mode,padding:o.padding,blockSize:t.blockSize,formatter:r.format})},decrypt:function(t,e,n,r){return r=this.cfg.extend(r),e=this._parse(e,r.format),t.createDecryptor(n,r).finalize(e.ciphertext)},_parse:function(t,e){return"string"==typeof t?e.parse(t,this):t}}),y=(e.kdf={}).OpenSSL={execute:function(t,e,n,r){r||(r=a.random(8));var i=l.create({keySize:e+n}).compute(t,r),o=a.create(i.words.slice(e),4*n);return i.sigBytes=4*e,g.create({key:i,iv:o,salt:r})}},_=r.PasswordBasedCipher=v.extend({cfg:v.cfg.extend({kdf:y}),encrypt:function(t,e,n,r){var i=(r=this.cfg.extend(r)).kdf.execute(n,t.keySize,t.ivSize);r.iv=i.iv;var a=v.encrypt.call(this,t,e,i.key,r);return a.mixIn(i),a},decrypt:function(t,e,n,r){r=this.cfg.extend(r),e=this._parse(e,r.format);var i=r.kdf.execute(n,t.keySize,t.ivSize,e.salt);return r.iv=i.iv,v.decrypt.call(this,t,e,i.key,r)}})}())})),o((function(t,e){var n;t.exports=((n=Jt).mode.CFB=function(){var t=n.lib.BlockCipherMode.extend();function e(t,e,n,r){var i,a=this._iv;a?(i=a.slice(0),this._iv=void 0):i=this._prevBlock,r.encryptBlock(i,0);for(var o=0;o<n;o++)t[e+o]^=i[o]}return t.Encryptor=t.extend({processBlock:function(t,n){var r=this._cipher,i=r.blockSize;e.call(this,t,n,i,r),this._prevBlock=t.slice(n,n+i)}}),t.Decryptor=t.extend({processBlock:function(t,n){var r=this._cipher,i=r.blockSize,a=t.slice(n,n+i);e.call(this,t,n,i,r),this._prevBlock=a}}),t}(),n.mode.CFB)})),o((function(t,e){var n,r,i;t.exports=((i=Jt).mode.CTR=(n=i.lib.BlockCipherMode.extend(),r=n.Encryptor=n.extend({processBlock:function(t,e){var n=this._cipher,r=n.blockSize,i=this._iv,a=this._counter;i&&(a=this._counter=i.slice(0),this._iv=void 0);var o=a.slice(0);n.encryptBlock(o,0),a[r-1]=a[r-1]+1|0;for(var s=0;s<r;s++)t[e+s]^=o[s]}}),n.Decryptor=r,n),i.mode.CTR)})),o((function(t,e){var n;t.exports=(
|
|
27
27
|
/** @preserve
|
|
28
28
|
* Counter block mode compatible with Dr Brian Gladman fileenc.c
|
|
29
29
|
* derived from CryptoJS.mode.CTR
|
|
30
30
|
* Jan Hruby jhruby.web@gmail.com
|
|
31
31
|
*/
|
|
32
|
-
(n=Xt).mode.CTRGladman=function(){var t=n.lib.BlockCipherMode.extend();function e(t){if(255==(t>>24&255)){var e=t>>16&255,n=t>>8&255,r=255&t;255===e?(e=0,255===n?(n=0,255===r?r=0:++r):++n):++e,t=0,t+=e<<16,t+=n<<8,t+=r}else t+=1<<24;return t}function r(t){return 0===(t[0]=e(t[0]))&&(t[1]=e(t[1])),t}var i=t.Encryptor=t.extend({processBlock:function(t,e){var n=this._cipher,i=n.blockSize,a=this._iv,o=this._counter;a&&(o=this._counter=a.slice(0),this._iv=void 0),r(o);var s=o.slice(0);n.encryptBlock(s,0);for(var u=0;u<i;u++)t[e+u]^=s[u]}});return t.Decryptor=i,t}(),n.mode.CTRGladman)})),i((function(t,e){var n,r,i;t.exports=((i=Xt).mode.OFB=(n=i.lib.BlockCipherMode.extend(),r=n.Encryptor=n.extend({processBlock:function(t,e){var n=this._cipher,r=n.blockSize,i=this._iv,a=this._keystream;i&&(a=this._keystream=i.slice(0),this._iv=void 0),n.encryptBlock(a,0);for(var o=0;o<r;o++)t[e+o]^=a[o]}}),n.Decryptor=r,n),i.mode.OFB)})),i((function(t,e){var n,r;t.exports=((r=Xt).mode.ECB=((n=r.lib.BlockCipherMode.extend()).Encryptor=n.extend({processBlock:function(t,e){this._cipher.encryptBlock(t,e)}}),n.Decryptor=n.extend({processBlock:function(t,e){this._cipher.decryptBlock(t,e)}}),n),r.mode.ECB)})),i((function(t,e){var n;t.exports=((n=Xt).pad.AnsiX923={pad:function(t,e){var n=t.sigBytes,r=4*e,i=r-n%r,a=n+i-1;t.clamp(),t.words[a>>>2]|=i<<24-a%4*8,t.sigBytes+=i},unpad:function(t){var e=255&t.words[t.sigBytes-1>>>2];t.sigBytes-=e}},n.pad.Ansix923)})),i((function(t,e){var n;t.exports=((n=Xt).pad.Iso10126={pad:function(t,e){var r=4*e,i=r-t.sigBytes%r;t.concat(n.lib.WordArray.random(i-1)).concat(n.lib.WordArray.create([i<<24],1))},unpad:function(t){var e=255&t.words[t.sigBytes-1>>>2];t.sigBytes-=e}},n.pad.Iso10126)})),i((function(t,e){var n;t.exports=((n=Xt).pad.Iso97971={pad:function(t,e){t.concat(n.lib.WordArray.create([2147483648],1)),n.pad.ZeroPadding.pad(t,e)},unpad:function(t){n.pad.ZeroPadding.unpad(t),t.sigBytes--}},n.pad.Iso97971)})),i((function(t,e){var n;t.exports=((n=Xt).pad.ZeroPadding={pad:function(t,e){var n=4*e;t.clamp(),t.sigBytes+=n-(t.sigBytes%n||n)},unpad:function(t){var e=t.words,n=t.sigBytes-1;for(n=t.sigBytes-1;n>=0;n--)if(e[n>>>2]>>>24-n%4*8&255){t.sigBytes=n+1;break}}},n.pad.ZeroPadding)})),i((function(t,e){var n;t.exports=((n=Xt).pad.NoPadding={pad:function(){},unpad:function(){}},n.pad.NoPadding)})),i((function(t,e){var n;t.exports=(n=Xt,function(t){var e=n,r=e.lib.CipherParams,i=e.enc.Hex;e.format.Hex={stringify:function(t){return t.ciphertext.toString(i)},parse:function(t){var e=i.parse(t);return r.create({ciphertext:e})}}}(),n.format.Hex)})),i((function(t,e){var n;t.exports=(n=Xt,function(){var t=n,e=t.lib.BlockCipher,r=t.algo,i=[],a=[],o=[],s=[],u=[],l=[],c=[],h=[],f=[],d=[];!function(){for(var t=[],e=0;e<256;e++)t[e]=e<128?e<<1:e<<1^283;var n=0,r=0;for(e=0;e<256;e++){var p=r^r<<1^r<<2^r<<3^r<<4;p=p>>>8^255&p^99,i[n]=p,a[p]=n;var g=t[n],v=t[g],m=t[v],y=257*t[p]^16843008*p;o[n]=y<<24|y>>>8,s[n]=y<<16|y>>>16,u[n]=y<<8|y>>>24,l[n]=y,y=16843009*m^65537*v^257*g^16843008*n,c[p]=y<<24|y>>>8,h[p]=y<<16|y>>>16,f[p]=y<<8|y>>>24,d[p]=y,n?(n=g^t[t[t[m^g]]],r^=t[t[r]]):n=r=1}}();var p=[0,1,2,4,8,16,32,64,128,27,54],g=r.AES=e.extend({_doReset:function(){if(!this._nRounds||this._keyPriorReset!==this._key){for(var t=this._keyPriorReset=this._key,e=t.words,n=t.sigBytes/4,r=4*((this._nRounds=n+6)+1),a=this._keySchedule=[],o=0;o<r;o++)o<n?a[o]=e[o]:(l=a[o-1],o%n?n>6&&o%n==4&&(l=i[l>>>24]<<24|i[l>>>16&255]<<16|i[l>>>8&255]<<8|i[255&l]):(l=i[(l=l<<8|l>>>24)>>>24]<<24|i[l>>>16&255]<<16|i[l>>>8&255]<<8|i[255&l],l^=p[o/n|0]<<24),a[o]=a[o-n]^l);for(var s=this._invKeySchedule=[],u=0;u<r;u++){if(o=r-u,u%4)var l=a[o];else l=a[o-4];s[u]=u<4||o<=4?l:c[i[l>>>24]]^h[i[l>>>16&255]]^f[i[l>>>8&255]]^d[i[255&l]]}}},encryptBlock:function(t,e){this._doCryptBlock(t,e,this._keySchedule,o,s,u,l,i)},decryptBlock:function(t,e){var n=t[e+1];t[e+1]=t[e+3],t[e+3]=n,this._doCryptBlock(t,e,this._invKeySchedule,c,h,f,d,a),n=t[e+1],t[e+1]=t[e+3],t[e+3]=n},_doCryptBlock:function(t,e,n,r,i,a,o,s){for(var u=this._nRounds,l=t[e]^n[0],c=t[e+1]^n[1],h=t[e+2]^n[2],f=t[e+3]^n[3],d=4,p=1;p<u;p++){var g=r[l>>>24]^i[c>>>16&255]^a[h>>>8&255]^o[255&f]^n[d++],v=r[c>>>24]^i[h>>>16&255]^a[f>>>8&255]^o[255&l]^n[d++],m=r[h>>>24]^i[f>>>16&255]^a[l>>>8&255]^o[255&c]^n[d++],y=r[f>>>24]^i[l>>>16&255]^a[c>>>8&255]^o[255&h]^n[d++];l=g,c=v,h=m,f=y}g=(s[l>>>24]<<24|s[c>>>16&255]<<16|s[h>>>8&255]<<8|s[255&f])^n[d++],v=(s[c>>>24]<<24|s[h>>>16&255]<<16|s[f>>>8&255]<<8|s[255&l])^n[d++],m=(s[h>>>24]<<24|s[f>>>16&255]<<16|s[l>>>8&255]<<8|s[255&c])^n[d++],y=(s[f>>>24]<<24|s[l>>>16&255]<<16|s[c>>>8&255]<<8|s[255&h])^n[d++],t[e]=g,t[e+1]=v,t[e+2]=m,t[e+3]=y},keySize:8});t.AES=e._createHelper(g)}(),n.AES)})),i((function(t,e){var n;t.exports=(n=Xt,function(){var t=n,e=t.lib,r=e.WordArray,i=e.BlockCipher,a=t.algo,o=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],s=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],u=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],l=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}],c=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],h=a.DES=i.extend({_doReset:function(){for(var t=this._key.words,e=[],n=0;n<56;n++){var r=o[n]-1;e[n]=t[r>>>5]>>>31-r%32&1}for(var i=this._subKeys=[],a=0;a<16;a++){var l=i[a]=[],c=u[a];for(n=0;n<24;n++)l[n/6|0]|=e[(s[n]-1+c)%28]<<31-n%6,l[4+(n/6|0)]|=e[28+(s[n+24]-1+c)%28]<<31-n%6;for(l[0]=l[0]<<1|l[0]>>>31,n=1;n<7;n++)l[n]=l[n]>>>4*(n-1)+3;l[7]=l[7]<<5|l[7]>>>27}var h=this._invSubKeys=[];for(n=0;n<16;n++)h[n]=i[15-n]},encryptBlock:function(t,e){this._doCryptBlock(t,e,this._subKeys)},decryptBlock:function(t,e){this._doCryptBlock(t,e,this._invSubKeys)},_doCryptBlock:function(t,e,n){this._lBlock=t[e],this._rBlock=t[e+1],f.call(this,4,252645135),f.call(this,16,65535),d.call(this,2,858993459),d.call(this,8,16711935),f.call(this,1,1431655765);for(var r=0;r<16;r++){for(var i=n[r],a=this._lBlock,o=this._rBlock,s=0,u=0;u<8;u++)s|=l[u][((o^i[u])&c[u])>>>0];this._lBlock=o,this._rBlock=a^s}var h=this._lBlock;this._lBlock=this._rBlock,this._rBlock=h,f.call(this,1,1431655765),d.call(this,8,16711935),d.call(this,2,858993459),f.call(this,16,65535),f.call(this,4,252645135),t[e]=this._lBlock,t[e+1]=this._rBlock},keySize:2,ivSize:2,blockSize:2});function f(t,e){var n=(this._lBlock>>>t^this._rBlock)&e;this._rBlock^=n,this._lBlock^=n<<t}function d(t,e){var n=(this._rBlock>>>t^this._lBlock)&e;this._lBlock^=n,this._rBlock^=n<<t}t.DES=i._createHelper(h);var p=a.TripleDES=i.extend({_doReset:function(){var t=this._key.words;if(2!==t.length&&4!==t.length&&t.length<6)throw new Error("Invalid key length - 3DES requires the key length to be 64, 128, 192 or >192.");var e=t.slice(0,2),n=t.length<4?t.slice(0,2):t.slice(2,4),i=t.length<6?t.slice(0,2):t.slice(4,6);this._des1=h.createEncryptor(r.create(e)),this._des2=h.createEncryptor(r.create(n)),this._des3=h.createEncryptor(r.create(i))},encryptBlock:function(t,e){this._des1.encryptBlock(t,e),this._des2.decryptBlock(t,e),this._des3.encryptBlock(t,e)},decryptBlock:function(t,e){this._des3.decryptBlock(t,e),this._des2.encryptBlock(t,e),this._des1.decryptBlock(t,e)},keySize:6,ivSize:2,blockSize:2});t.TripleDES=i._createHelper(p)}(),n.TripleDES)})),i((function(t,e){var n;t.exports=(n=Xt,function(){var t=n,e=t.lib.StreamCipher,r=t.algo,i=r.RC4=e.extend({_doReset:function(){for(var t=this._key,e=t.words,n=t.sigBytes,r=this._S=[],i=0;i<256;i++)r[i]=i;i=0;for(var a=0;i<256;i++){var o=i%n,s=e[o>>>2]>>>24-o%4*8&255;a=(a+r[i]+s)%256;var u=r[i];r[i]=r[a],r[a]=u}this._i=this._j=0},_doProcessBlock:function(t,e){t[e]^=a.call(this)},keySize:8,ivSize:0});function a(){for(var t=this._S,e=this._i,n=this._j,r=0,i=0;i<4;i++){n=(n+t[e=(e+1)%256])%256;var a=t[e];t[e]=t[n],t[n]=a,r|=t[(t[e]+t[n])%256]<<24-8*i}return this._i=e,this._j=n,r}t.RC4=e._createHelper(i);var o=r.RC4Drop=i.extend({cfg:i.cfg.extend({drop:192}),_doReset:function(){i._doReset.call(this);for(var t=this.cfg.drop;t>0;t--)a.call(this)}});t.RC4Drop=e._createHelper(o)}(),n.RC4)})),i((function(t,e){var n;t.exports=(n=Xt,function(){var t=n,e=t.lib.StreamCipher,r=t.algo,i=[],a=[],o=[],s=r.Rabbit=e.extend({_doReset:function(){for(var t=this._key.words,e=this.cfg.iv,n=0;n<4;n++)t[n]=16711935&(t[n]<<8|t[n]>>>24)|4278255360&(t[n]<<24|t[n]>>>8);var r=this._X=[t[0],t[3]<<16|t[2]>>>16,t[1],t[0]<<16|t[3]>>>16,t[2],t[1]<<16|t[0]>>>16,t[3],t[2]<<16|t[1]>>>16],i=this._C=[t[2]<<16|t[2]>>>16,4294901760&t[0]|65535&t[1],t[3]<<16|t[3]>>>16,4294901760&t[1]|65535&t[2],t[0]<<16|t[0]>>>16,4294901760&t[2]|65535&t[3],t[1]<<16|t[1]>>>16,4294901760&t[3]|65535&t[0]];for(this._b=0,n=0;n<4;n++)u.call(this);for(n=0;n<8;n++)i[n]^=r[n+4&7];if(e){var a=e.words,o=a[0],s=a[1],l=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),c=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),h=l>>>16|4294901760&c,f=c<<16|65535&l;for(i[0]^=l,i[1]^=h,i[2]^=c,i[3]^=f,i[4]^=l,i[5]^=h,i[6]^=c,i[7]^=f,n=0;n<4;n++)u.call(this)}},_doProcessBlock:function(t,e){var n=this._X;u.call(this),i[0]=n[0]^n[5]>>>16^n[3]<<16,i[1]=n[2]^n[7]>>>16^n[5]<<16,i[2]=n[4]^n[1]>>>16^n[7]<<16,i[3]=n[6]^n[3]>>>16^n[1]<<16;for(var r=0;r<4;r++)i[r]=16711935&(i[r]<<8|i[r]>>>24)|4278255360&(i[r]<<24|i[r]>>>8),t[e+r]^=i[r]},blockSize:4,ivSize:2});function u(){for(var t=this._X,e=this._C,n=0;n<8;n++)a[n]=e[n];for(e[0]=e[0]+1295307597+this._b|0,e[1]=e[1]+3545052371+(e[0]>>>0<a[0]>>>0?1:0)|0,e[2]=e[2]+886263092+(e[1]>>>0<a[1]>>>0?1:0)|0,e[3]=e[3]+1295307597+(e[2]>>>0<a[2]>>>0?1:0)|0,e[4]=e[4]+3545052371+(e[3]>>>0<a[3]>>>0?1:0)|0,e[5]=e[5]+886263092+(e[4]>>>0<a[4]>>>0?1:0)|0,e[6]=e[6]+1295307597+(e[5]>>>0<a[5]>>>0?1:0)|0,e[7]=e[7]+3545052371+(e[6]>>>0<a[6]>>>0?1:0)|0,this._b=e[7]>>>0<a[7]>>>0?1:0,n=0;n<8;n++){var r=t[n]+e[n],i=65535&r,s=r>>>16,u=((i*i>>>17)+i*s>>>15)+s*s,l=((4294901760&r)*r|0)+((65535&r)*r|0);o[n]=u^l}t[0]=o[0]+(o[7]<<16|o[7]>>>16)+(o[6]<<16|o[6]>>>16)|0,t[1]=o[1]+(o[0]<<8|o[0]>>>24)+o[7]|0,t[2]=o[2]+(o[1]<<16|o[1]>>>16)+(o[0]<<16|o[0]>>>16)|0,t[3]=o[3]+(o[2]<<8|o[2]>>>24)+o[1]|0,t[4]=o[4]+(o[3]<<16|o[3]>>>16)+(o[2]<<16|o[2]>>>16)|0,t[5]=o[5]+(o[4]<<8|o[4]>>>24)+o[3]|0,t[6]=o[6]+(o[5]<<16|o[5]>>>16)+(o[4]<<16|o[4]>>>16)|0,t[7]=o[7]+(o[6]<<8|o[6]>>>24)+o[5]|0}t.Rabbit=e._createHelper(s)}(),n.Rabbit)})),i((function(t,e){var n;t.exports=(n=Xt,function(){var t=n,e=t.lib.StreamCipher,r=t.algo,i=[],a=[],o=[],s=r.RabbitLegacy=e.extend({_doReset:function(){var t=this._key.words,e=this.cfg.iv,n=this._X=[t[0],t[3]<<16|t[2]>>>16,t[1],t[0]<<16|t[3]>>>16,t[2],t[1]<<16|t[0]>>>16,t[3],t[2]<<16|t[1]>>>16],r=this._C=[t[2]<<16|t[2]>>>16,4294901760&t[0]|65535&t[1],t[3]<<16|t[3]>>>16,4294901760&t[1]|65535&t[2],t[0]<<16|t[0]>>>16,4294901760&t[2]|65535&t[3],t[1]<<16|t[1]>>>16,4294901760&t[3]|65535&t[0]];this._b=0;for(var i=0;i<4;i++)u.call(this);for(i=0;i<8;i++)r[i]^=n[i+4&7];if(e){var a=e.words,o=a[0],s=a[1],l=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),c=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),h=l>>>16|4294901760&c,f=c<<16|65535&l;for(r[0]^=l,r[1]^=h,r[2]^=c,r[3]^=f,r[4]^=l,r[5]^=h,r[6]^=c,r[7]^=f,i=0;i<4;i++)u.call(this)}},_doProcessBlock:function(t,e){var n=this._X;u.call(this),i[0]=n[0]^n[5]>>>16^n[3]<<16,i[1]=n[2]^n[7]>>>16^n[5]<<16,i[2]=n[4]^n[1]>>>16^n[7]<<16,i[3]=n[6]^n[3]>>>16^n[1]<<16;for(var r=0;r<4;r++)i[r]=16711935&(i[r]<<8|i[r]>>>24)|4278255360&(i[r]<<24|i[r]>>>8),t[e+r]^=i[r]},blockSize:4,ivSize:2});function u(){for(var t=this._X,e=this._C,n=0;n<8;n++)a[n]=e[n];for(e[0]=e[0]+1295307597+this._b|0,e[1]=e[1]+3545052371+(e[0]>>>0<a[0]>>>0?1:0)|0,e[2]=e[2]+886263092+(e[1]>>>0<a[1]>>>0?1:0)|0,e[3]=e[3]+1295307597+(e[2]>>>0<a[2]>>>0?1:0)|0,e[4]=e[4]+3545052371+(e[3]>>>0<a[3]>>>0?1:0)|0,e[5]=e[5]+886263092+(e[4]>>>0<a[4]>>>0?1:0)|0,e[6]=e[6]+1295307597+(e[5]>>>0<a[5]>>>0?1:0)|0,e[7]=e[7]+3545052371+(e[6]>>>0<a[6]>>>0?1:0)|0,this._b=e[7]>>>0<a[7]>>>0?1:0,n=0;n<8;n++){var r=t[n]+e[n],i=65535&r,s=r>>>16,u=((i*i>>>17)+i*s>>>15)+s*s,l=((4294901760&r)*r|0)+((65535&r)*r|0);o[n]=u^l}t[0]=o[0]+(o[7]<<16|o[7]>>>16)+(o[6]<<16|o[6]>>>16)|0,t[1]=o[1]+(o[0]<<8|o[0]>>>24)+o[7]|0,t[2]=o[2]+(o[1]<<16|o[1]>>>16)+(o[0]<<16|o[0]>>>16)|0,t[3]=o[3]+(o[2]<<8|o[2]>>>24)+o[1]|0,t[4]=o[4]+(o[3]<<16|o[3]>>>16)+(o[2]<<16|o[2]>>>16)|0,t[5]=o[5]+(o[4]<<8|o[4]>>>24)+o[3]|0,t[6]=o[6]+(o[5]<<16|o[5]>>>16)+(o[4]<<16|o[4]>>>16)|0,t[7]=o[7]+(o[6]<<8|o[6]>>>24)+o[5]|0}t.RabbitLegacy=e._createHelper(s)}(),n.RabbitLegacy)})),i((function(t,e){t.exports=Xt})));function Jt(t){var e=sessionStorage.getItem(t);return e?JSON.parse(e):null}var Qt=function(t,e){try{var n=e.xRatio,r=e.yRatio;return isNaN(n)||isNaN(r)?(console.error("发生错误:on updataSizeDeep in go-code "),t):(t.forEach((function(t){var i;t.baseData.left=t.baseData.left*n,t.baseData.width=t.baseData.width*n,t.baseData.top=t.baseData.top*r,t.baseData.height=t.baseData.height*r,t.baseData.angle=t.baseData.angle,(null===(i=null==t?void 0:t.children)||void 0===i?void 0:i.length)&&Qt(null==t?void 0:t.children,e)})),t)}catch(e){return t}},te=function(t,e){var n=!0;try{for(var r=0,i=["width","height","left","top","opacity","angel","skewY","skewX","rotateX","rotateY"];r<i.length;r++){var a=i[r];if(Object.hasOwn(t,a)&&isNaN(t[a])){if(!("string"==typeof t[a]&&t[a].includes("%")||"NaN"==t[a])){console.warn(a+"--参数校验不合法:"+e),n=!1;break}n=!0}}return n}catch(t){return console.warn("参数校验不合法:"+e),!1}},ee=function(t,e,n){var r=t[n];return t.splice(n,1),t.splice(e,0,r),t},ne=function(e,n,r){var i=t.findIndex(e,(function(t){return t.cid==r})),a=t.findIndex(e,(function(t){return t.cid==n}));return ee(e,a,i)},re=function(t,e,n){for(var r=-1,i=0;i<t.length;i++){var a=t[i];if(a.children&&a.children.length)for(var o=0;o<a.children.length;o++){if(r=o,a.children[o].cid===n){switch(e){case"up":r>=1&&ee(a.children,r-1,r);break;case"down":r<a.children.length-2&&ee(a.children,r+1,r);break;case"top":0!==r&&ee(a.children,0,r);break;case"bottom":var s=a.children.length-1;r!==s&&ee(a.children,s,r)}break}}}return t},ie=function(e,n,r){var i=!1,a=function(e){for(var o=0;o<e.length;o++){if(e[o].cid==n){i=e[o],r&&t.remove(e,(function(t){return t.cid==n}));break}if(e[o].children)a(e[o].children);else if(e[o].dynamicChildren){if(e[o].dynamicChildren instanceof Map){for(var s=Array.from(e[o].dynamicChildren),u=0;u<s.length;u++)if(s[u]instanceof Array){var l=s[u][1];a(l)}}else if(e[o].dynamicChildren instanceof Array)for(s=e[o].dynamicChildren,u=0;u<s.length;u++)if(s[u]instanceof Array){l=s[u][1];a(l)}}else e[o].stateChildren&&a(e[o].stateChildren)}};return a(e),i||!1},ae=function(t,e){var n=null,r=function(t,i){for(var a=0,o=t;a<o.length;a++){var s=o[a];if(s.cid==e){n=i;break}if(s.children)r(s.children,s);else if(s.dynamicChildren)if(s.dynamicChildren instanceof Map){for(var u=Array.from(s.dynamicChildren),l=0;l<u.length;l++)if(u[l]instanceof Array){var c=u[l][1];r(c,s)}}else s.dynamicChildren;else s.stateChildren&&r(s.stateChildren,s)}};return r(t,null),n||!1},oe=function(t,e,n){for(var r,i=function(i){var a=t[i];if(a.cid===e)return r=a,n&&t.splice(i,1),{value:r};if(a.children&&a.children.length){for(var o=0;o<a.children.length;o++)if(a.children[o].cid===e)return r=a.children[o],n&&a.children.splice(o,1),{value:r}}else if(a.stateChildren&&a.stateChildren.length){for(o=0;o<a.stateChildren.length;o++)if(a.stateChildren[o].cid===e)return r=a.stateChildren[o],n&&a.stateChildren.splice(o,1),{value:r}}else if(a.dynamicChildren){var s=void 0;if(a.dynamicChildren instanceof Map?s=a.dynamicChildren.get(a.activeDynamic):a.dynamicChildren instanceof Array&&(s=a.dynamicChildren.find((function(t){return t[0]==a.activeDynamic}))[1]),s)for(o=0;o<s.length;o++)if(s[o].cid===e)return r=s[o],n&&s.splice(o,1),{value:r}}},a=0;a<t.length;a++){var o=i(a);if("object"==typeof o)return o.value}return!!r},se=function(t,e,n){var r=oe(t,e),i=oe(t,n);return r.pid&&i.pid||!r.pid&&!i.pid},ue=function(t,e){var n=function(t){for(var r,i,a,o=0,s=t;o<s.length;o++){var u=s[o],l=null===(a=null===(i=null===(r=null==u?void 0:u.tmpData)||void 0===r?void 0:r.source)||void 0===i?void 0:i.converse)||void 0===a?void 0:a.data;if(null==l?void 0:l.length)for(var c=0,h=l;c<h.length;c++){var f=h[c];f.code=f.code.replace(/>/g,">").replace(/</g,"<")}if(e(u),u&&u.children)n(u.children);else if(u&&u.dynamicChildren)for(var d=0,p=u.dynamicChildren;d<p.length;d++){var g=p[d][1];n(g)}else(null==u?void 0:u.stateChildren)&&n(u.stateChildren)}};n(t)},le=function(t){var e=t.length,n=function(t,e){for(var r=function(r){var i=t[r];if(i&&i.children&&i.children.length){var a=i.children.length;n(i.children,a)}else if(i&&i.dynamicChildren){var o=i.dynamicChildren.length;Array.from(i.dynamicChildren).forEach((function(t,e){n(t[1],o)}))}i.z=10*e-r},i=0;i<t.length;i++)r(i)};n(t,e)},ce=function(t){var e=function(t,n){for(var r=function(r){var i=t[r],a=xe();n?i.pid=n:i.drag||(i.baseData.left=0,i.baseData.top=0),i.cid=a,i&&i.children&&i.children.length?e(i.children,a):i&&i.dynamicChildren&&Array.from(i.dynamicChildren).forEach((function(t,n){e(t[1],a)}))},i=0;i<t.length;i++)r(i)};e(t)},he=function(e,n,r,i){try{if(!e||!e.hasOwnProperty(n)&&!e.hasOwnProperty(i))throw"The property you want to modify is not found. Please check whether the attribute ".concat(n," is entered correctly!");if(i){t.cloneDeep(e[i][n]);e[i][n]=r}else e[n]=r}catch(t){console.error(t)}},fe=function(t){try{if(!t)throw" 没有找到组件";t.isShow||"false"==t.isShow?t.isShow=!1:t.isShow=!0}catch(t){console.error(t)}},de=function(t,e){e.forEach((function(e){e.baseData.left=e.baseData.left-t.left,e.baseData.top=e.baseData.top-t.top}))},pe=function(e,n){var r=t.cloneDeep(e),i=[];return r.children&&r.children.length&&r.children.forEach((function(t){var e=n&&(null==r?void 0:r.pid)?ie(n,r.pid):null;ge(t,r,e),i.push(t)})),i},ge=function(t,e,n){var r=function(t,e,n){var r=t.baseData.left,i=t.baseData.top,a=e;if(r+=a.baseData.left,i+=a.baseData.top,n){if(n.baseData.angle){var o=n.baseData.angle*Math.PI/180,s=Math.cos(o),u=Math.sin(o),l=r*u+i*s;r=r*s-i*u,i=l}n.baseData.scale&&(r*=n.baseData.scale.x,i*=n.baseData.scale.y)}return{left:r,top:i}}(t,e,n),i=r.left,a=r.top;t.baseData.left=i,t.baseData.top=a},ve=function(t,e){t.baseData.left=t.baseData.left+e.left,t.baseData.top=t.baseData.top+e.top},me=function(t,e,n){var r={left:0,top:0};return n&&0!==n?(r.left=t.left-e.left,r.top=t.top-e.top):(r.left=t.left+e.left,r.top=t.top+e.top),r},ye=function(e,n){var r=t.cloneDeep(e),i=[],a=function(t,e){var n=ie(t,e);i.push(n.baseData),n.pid&&a(t,n.pid)};a(r,n);var o={left:0,top:0};return i.map((function(t){t&&(o.left+=t.left,o.top+=t.top)})),o},_e=function(e,n){var r=t.cloneDeep(e);return r.length>1&&r.sort((function(t,e){return t.baseData[n]-e.baseData[n]})),r},be=function(t,e){var n=[];return t.map((function(t){var r=e.find((function(e){return e.cid===t}));r&&n.push(r)})),we(n)},we=function(t){if(t.length>0){var e={left:0,top:0,width:0,height:0},n=_e(t,"left"),r=_e(t,"top"),i=n[0].baseData,a=n[n.length-1].baseData,o=r[0].baseData,s=r[r.length-1].baseData,u=Math.max.apply(Math,r.map((function(t){return 1*t.baseData.top+1*t.baseData.height}))),l=Math.max.apply(Math,r.map((function(t){return 1*t.baseData.left+1*t.baseData.width})));return e.left=i.left,e.width=Math.max(1*a.left+1*a.width,l)-1*i.left,e.top=o.top,e.height=Math.max(1*s.top+1*s.height,u)-1*o.top,e}return{left:0,top:0,width:0,height:0}},De=function(e,n,r){var i=e.children,a=t.cloneDeep(n),o=t.cloneDeep(we(i)),s=a.left,u=a.top;a.width,a.height;var l=o.left,c=o.top,h=o.width,f=o.height,d={left:s+l,top:u+c,width:h,height:f,angle:n.angle?n.angle:0};return i.forEach((function(e){var n=t.cloneDeep(e.baseData);e.baseData.left<0?n.left=0:n.left=n.left-l,e.baseData.top<0?n.top=0:n.top=n.top-c,e.baseData=n})),e.baseData=d,e.children=i,d},Se=function(t,e){for(var n=0;n<t.length;n++){var r=t[n];t[n].index=n,r.children&&r.children.length?Se(r.children):e&&e(r)}},xe=function(){return(Math.random().toString().substr(3,10)+Date.now()).toString()},Te=function(t,e){try{var n=e||window.location.href;if(-1!=n.indexOf("?")){var r={};return n.slice(n.indexOf("?")+1).split("&").forEach((function(t){var e=t.split("=");r[e[0]]=e[1]})),t?r[t]?r[t]:null:r}return console.log("没有参数"),null}catch(t){console.error(t)}};function ke(t,e){for(var n=t.types,r=t.element,i=t.actions,a=t.events,o=t.eventsComs,s=function(t){var e=n[t],s=r.tmpData.actions[t];if(s&&s.use){o&&o.push(r.cid);var u=s[s.behave];if(!u)return"continue";"vars"===s.behave?u.map((function(t){t.type=e,t.id=r.cid,t.model=0,t.mapField&&i.push(t)})):u.length>0&&u.forEach((function(t,n){"toggle"===s.behave&&""!==t.value&&t.value.length&&a.push({id:r.cid,type:s.behave,children:t.value.map((function(t){return{cid:t.cid,visible:t.visible}})),eventType:e,index:n}),"update"===s.behave&&""!==t.value&&t.value.length?a.push({id:r.cid,type:s.behave,children:t.value.map((function(t){return{cid:t.cid,visible:t.visible}})),eventType:e,index:n}):"link"===s.behave&&""!==t.value?a.push({id:r.cid,type:s.behave,link:t.value,eventType:e,target:t.target,index:n}):"page"===s.behave&&""!==t.value?a.push({id:r.cid,type:s.behave,page:t.value,params:t.params,eventType:e,index:n}):"dynamic"===s.behave&&""!==t.value&&t.value.length>0?a.push({id:r.cid,type:s.behave,dynamic:t.value,eventType:e,index:n}):a.push(void 0)}))}},u=0;u<n.length;u++)s(u)}var Ce="anov@2019:helloX",Ee="anov@2020:helloX";function Oe(t){var e=$t.enc.Utf8.parse(Ce),n=$t.enc.Utf8.parse(Ee);return $t.AES.encrypt(t,e,{iv:n,mode:$t.mode.CBC,padding:$t.pad.Pkcs7}).toString()}function Me(t,e){var n=ir.state.globalVars,r={};n.forEach((function(t){(null==t?void 0:t.name)&&(r[t.name]=t.value||t.originvalue)}));try{return/^(?:[^\r\n]*[\r\n]){0,2}(?:[^\r\n]*(?=\{))?\s*(?:function\s*[^\r\n]*|\(.*?\))?\s*[\w\s\$\._\[\]]*\s*(?:[=:]\s*)?(?:new\s+)?[A-Z]\w*\s*(?:\[.*?\]|\([^\r\n]*\))*\s*\{.*?\}/i.test(t),new Function("data","vars",t)(e,r)}catch(t){return console.error(t),e}}var Ae={type:"static",converse:{use:!1,data:[]},static:{data:{},originData:""},api:{requestType:"get",url:"",headers:{use:!1,value:""},params:"",agency:!1,cookie:!0,autoUpdate:{open:!1,time:10},data:""},datasource:{data:"",inputSql:"",dsName:"",dsType:300,autoUpdate:{open:!1,time:10}},indicator:{zbId:"",zbName:"",params:"",data:"",autoUpdate:{open:!1,time:10}},staticFile:{data:"",dsName:"",dsType:201}},Pe={updataArea:function(t,e){t.currentArea=e},selectdArea:function(t,e){var n=be(e,t.list);t.currentArea=n},updataAngle:function(t,e){var n=e.id,r=e.angle,i=ie(t.list,n);"boolean"!=typeof i&&(i.baseData.angle=r)},updataBaseData:function(t,e){var n,r=e.data;if(null==(null===(n=null==r?void 0:r.baseData)||void 0===n?void 0:n.opacity)&&(r.baseData.opacity=100),te(e.data.baseData,"updataBaseData")){var i=e.ratio,a=ie(t.list,r.cid),o=e.oldData;if("object"!=typeof a||a.pid){if("object"==typeof a&&a.pid){var s=ie(t.list,a.pid);"object"==typeof s&&(a.baseData.left<0&&(a.baseData.left=0),a.baseData.top<0&&(a.baseData.top=0),Object.assign(a.baseData,r.baseData),De(s,s.baseData),t.groupFlag=!t.groupFlag)}}else if(Object.assign(a.baseData,r.baseData),i&&a.children&&a.children.length>0){var u=a.baseData.width/o.width,l=a.baseData.height/o.height;Qt(a.children,{xRatio:u,yRatio:l})}}},multipleUpdataBaseData:function(e,n){if(n.ratio)for(var r=n.newData,i=n.oldData,a=r.width/i.width,o=r.height/i.height,s=e.cache.length;s--;)e.cache[s].baseData.left=e.cache[s].baseData.left*a,e.cache[s].baseData.width=e.cache[s].baseData.width*a,e.cache[s].baseData.top=e.cache[s].baseData.top*o,e.cache[s].baseData.height=e.cache[s].baseData.height*o;else for(s=e.cache.length;s--;){var u=t.cloneDeep(e.cache[s].baseData);u.left=u.left+n.deltaX,u.top=u.top+n.deltaY,e.cache[s].comPanel?e.cache[s].comPanel.setAttrData(Object.assign(u,n.baseData)):e.cache[s].baseData=u}},multipleUpdata:function(t,e){var n=e.ids,r=e.data,i=ie(t.list,n);i&&Object.assign(i.baseData,r)},multipleMove:function(t,e){},move:function(t,e){var n=t.selectd,r=e.type,i=e.speed?e.speed:1;if(0!==n.length){var a=t.list.filter((function(t){return n.includes(t.cid)}));0==a.length&&(a=[ie(t.list,n[0])]);for(var o=0;o<a.length;o++){var s=a[o];if(s.pid&&t.selectd.length>1)return void console.warn("Only one component can be moved within a group");if("up"===r?s.baseData.top=s.baseData.top-i:"down"===r?s.baseData.top+=i:"left"===r?s.baseData.left-=i:"right"===r&&(s.baseData.left+=i),"object"==typeof s&&s.pid){var u=ie(t.list,s.pid);"object"==typeof u&&(De(u,u.baseData),t.groupFlag=!t.groupFlag)}}}else console.warn("Warning! please select the component to move.")},updataGroupBaseData:function(e,n){var r=ie(e.list,n.pid),i=t.cloneDeep(r);ie(r.children,n.cid),De(r,i.baseData)},editGroupBaseData:function(t,e){var n=ie(t.list,e);n.children.forEach((function(t){ve(t,n.baseData)}))},syncBaseData:function(e,n){var r=n.cid,i=n.data,a=n.isContainer,o=t.cloneDeep(e.list);if(void 0!==a){var s=function(t){for(var e=0;e<t.length;e++)r===t[e].cid?t[e].baseData=Object.assign({},t[e].baseData,i):t[e].hasOwnProperty("children")&&s(t[e].children)};o.length&&s(o)}else{var u=ie(o,r);if(u){var l=t.cloneDeep(u.baseData),c=Object.assign({},u.baseData,i);this.commit("GoCom/updataBaseData",{data:{cid:r,baseData:c},oldData:l,ratio:!0})}}e.list=o},updataItemData:function(t,e){var n=e.cid,r=e.propsName,i=e.propsValue,a=ie(t.list,n);a&&(a[r]=i)},updataOpacity:function(t,e){var n=e.cid,r=e.propsValue,i=ie(t.list,n);"boolean"!=typeof i&&i&&(i.baseData.opacity=r)}},Be=function(e,n,r,i){try{var a={},o=[],s=[],u=[],l=t.cloneDeep(e);return ue(l,(function(t){var e,n;(null===(n=null===(e=null==t?void 0:t.tmpData)||void 0===e?void 0:e.actions)||void 0===n?void 0:n.length)&&ke({types:t.tmpData.actions.map((function(t){return t.eventType})),element:t,actions:o,events:s,eventsComs:u})})),n&&n.length&&(o=h(h([],o,!0),n,!0)),r&&r.length&&(o=h(h([],o,!0),r,!0)),i&&i.length&&(o=h(h([],o,!0),i,!0)),ue(l,(function(t){var e,n=null===(e=null==t?void 0:t.tmpData)||void 0===e?void 0:e.source;Re(n,o,t,a)})),o.filter((function(t){if(t.fork){var e=o.find((function(e){return e.mapField==t.forkValue||Array.isArray(t.forkValue)&&t.forkValue.includes(e.mapField)}));e&&(Array.isArray(t.forkValue)?t.originalValue=t.forkValue.map((function(t){return o.find((function(e){return e.mapField==t})).value})):t.originalValue=e.value)}})),{shareVariableTree:a,globalVars:o.filter((function(t){return t.hasOwnProperty("originalValue")||(t.originalValue=t.value),t.converter&&t.converterCode?t.value=Me(t.converterCode,t.originalValue):t.value=t.originalValue,t})),globalEvents:s.filter((function(t){return t})),eventsComs:u}}catch(t){return console.error("error",t),{}}},Re=function(t,e,n,r){var i,a,o;if(t){var s=t[null==t?void 0:t.type],u=null==t?void 0:t.converse;u&&u.use&&u.data.length&&u.data.map((function(t){var e;(null==t?void 0:t.dependVars)&&(null===(e=null==t?void 0:t.dependVars)||void 0===e?void 0:e.length)&&t.dependVars.map((function(t){Ve(r,t,n.cid)}))})),(null==s?void 0:s.inputSql)&&Ne(null==s?void 0:s.inputSql,e,n,r),(null==s?void 0:s.url)&&Ne(s.url,e,n,r),(null==s?void 0:s.headers)&&(null===(i=null==s?void 0:s.headers)||void 0===i?void 0:i.use)&&(null===(a=null==s?void 0:s.headers)||void 0===a?void 0:a.value)&&Ne(null===(o=null==s?void 0:s.headers)||void 0===o?void 0:o.value,e,n,r),(null==s?void 0:s.params)&&Ne(null==s?void 0:s.params,e,n,r)}},Ne=function(t,e,n,r){"string"!=typeof t&&(t=JSON.stringify(t));var i=t.match(/({{[\w]*}})|((@)[\w]*)/gm);if(i)for(var a=i.map((function(t){return t.replace(/{{|}}|@/gm,"")})),o=function(t){var i=a[t];if(!i||!e||e.findIndex((function(t){return t.mapField===i}))<0)return"continue";Ve(r,i,n.cid)},s=0;s<a.length;s++)o(s)},Ve=function(e,n,r){if(e[n]&&t.isArray(e[n])){e[n].push(r);var i=e[n];e[n]=t.uniq(i)}else e[n]=[],e[n].push(r)},Ie=function(t){if("string"==typeof t)try{var e=JSON.parse(t);return!("object"!=typeof e||!e)}catch(t){return!1}return!1};function Fe(t,e){return void 0===e&&(e=!1),e?Ie(t)?t:JSON.stringify(t):Ie(t)?JSON.parse(t):t}var Ye={delListItem:function(e,n){var r=t.cloneDeep(e.list);"string"==typeof n?ie(r,n,!0):n.forEach((function(t){ie(r,t,!0)})),e.list=r,e.globalVars=Be(e.list,e.globalConstant,e.sysConst).globalVars},editCloneCache:function(e,n){var r=t.cloneDeep(e.cloneCache);r.length&&r.map((function(t){t.baseData=Object.assign({},t.baseData,n)})),e.cloneCache=r},cloneItem:function(e){if(e.selectd.length>0){e.cloneCache=[];for(var n=function(n){var r=ie(e.list,e.selectd[n]);if("boolean"!=typeof r){var i=t.cloneDeep(r);if(i.cid=xe(),i.pid="",(null==i?void 0:i.stateChildren)||(null==i?void 0:i.children))((null==i?void 0:i.stateChildren)?null==i?void 0:i.stateChildren:null==i?void 0:i.children).forEach((function(t){var e,n,r,a,o=t.cid;if(t.cid=xe(),t.pid=i.cid,(null==i?void 0:i.stateChildren)&&(null===(n=null===(e=null==i?void 0:i.tmpData)||void 0===e?void 0:e.option)||void 0===n?void 0:n.children)){var s=null===(a=null===(r=null==i?void 0:i.tmpData)||void 0===r?void 0:r.option)||void 0===a?void 0:a.children.find((function(t){return t.cid==o}));s&&(s.cid=t.cid)}}));e.cloneCache.push(i)}},r=0;r<e.selectd.length;r++)n(r)}},shearItem:function(e,n){if(e.selectd.length>0){e.cloneCache=[];for(var r=0;r<e.selectd.length;r++){var i=ie(e.list,e.selectd[r],!0);if("boolean"!=typeof i){var a=t.cloneDeep(i);a.cid=xe(),e.cloneCache.push(a)}}e.selectd=[]}},pasteItem:function(e){var n,r=t.cloneDeep(e.cloneCache);if(r.length>0){var i=[];ue(r,(function(t){if(t.cid=xe(),t&&t.children)for(var e=0,n=t.children;e<n.length;e++){n[e].pid=t.cid}if("dynamicComponent"==t.componentType){var r=void 0;t.dynamicChildren instanceof Map?r=t.dynamicChildren.get(t.activeDynamic):t.dynamicChildren instanceof Array&&(r=t.dynamicChildren.find((function(t){return t[0]==t.activeDynamic}))[1]),r.forEach((function(e){e.pid=t.cid}))}i.push(t.cid)})),e.selectd.length>0?be(e.selectd,e.list):we(r),r.forEach((function(t){t.baseData.top=t.baseData.top+20,t.baseData.left=t.baseData.left+20})),(n=e.list).unshift.apply(n,t.cloneDeep(r)),e.selectd=i}},updataShow:function(t,e){var n=ie(t.list,e);if("boolean"!=typeof n){var r=!n.isShow;he(n,"isShow",r,"")}},changeShow:function(t,e){var n=e.cid,r=e.flag,i=ie(t.list,n);i&&he(i,"isShow",r,"")},comToggle:function(t,e){var n=ie(t.list,e);n&&fe(n)},updataLock:function(t,e){var n=ie(t.list,e);if("boolean"!=typeof n){var r=!n.isLock;he(n,"isLock",r,"")}},breakUp:function(t,e){var n,r;try{if(!e)throw"Please pass in the component CID correctly!";var i=ae(t.list,e),a=ie(t.list,e),o=a.baseData;if(isNaN(o.left)||isNaN(o.top))throw new Error("top or left is NAN");var s=pe(a,t.list);if(s.map((function(t){return t.pid=""})),i){var u=i.children.findIndex((function(t){return t.cid==e}));i.children.splice(u,1),(n=i.children).push.apply(n,s.reverse())}else{u=t.list.findIndex((function(t){return t.cid==e}));t.list.splice(u,1),(r=t.list).push.apply(r,s.reverse())}}catch(t){console.error(t)}},editGroup:function(t,e){var n,r=e.groupId;e.status;try{if(!r)throw"Please pass in the component CID correctly!";var i=t.list.findIndex((function(t){return t.cid===r})),a=t.list[i],o=pe(a);o.map((function(t){return t.pid=""})),t.list.splice(i,1),(n=t.list).push.apply(n,o)}catch(t){console.error(t)}},combination:function(e){t.cloneDeep(e.list);var n,r,i=[],a=[],o=xe(),s=ie(e.list,e.selectd[0]);s.pid?console.info("Sorry, only level 2 is supported group"):s.children&&1===e.selectd.length?console.info("Sorry, only level 2 is supported group"):(e.selectd.forEach((function(t){var n=e.list.findIndex((function(e){return e.cid===t}));if(n>-1){i.push(n);var r=e.list.splice(n,1)[0];r.pid=o,a.push(r)}})),n=i.sort((function(t,e){return t-e}))[0],r=1===a.length?t.cloneDeep(a[0].baseData):e.currentArea,Object.assign(r,{angle:0,opacity:100,rotate:0,rotateY:0}),de(r,a),e.list.splice(n,0,{cid:o,pid:"",isShow:!0,isLock:!1,editer:!1,baseData:r,z:0,toggle:!0,name:"群组",type:"folder",tmpData:{actions:null,option:null,source:Ae},children:a}),le(e.list),e.selectd=[o])},moveUp:function(t,e){try{var n=t.list.findIndex((function(t){return t.cid===e}));n>=1?ee(t.list,n-1,n):re(t.list,"up",e)}catch(t){console.error(t)}},moveDown:function(t,e){try{var n=t.list.findIndex((function(t){return t.cid===e}));n>-1&&n<=t.list.length-2?ee(t.list,n+1,n):re(t.list,"down",e)}catch(t){console.error(t)}},moveTop:function(t,e){try{var n=t.list.findIndex((function(t){return t.cid===e}));n>-1&&0!==n?ee(t.list,0,n):re(t.list,"top",e)}catch(t){console.error(t)}},moveBottom:function(t,e){try{var n=t.list.findIndex((function(t){return t.cid===e})),r=t.list.length-1;n>-1&&n!==r?ee(t.list,r,n):re(t.list,"bottom",e)}catch(t){console.error(t)}}},Le=3e4,je=function(t,n){void 0===t&&(t="");var r=e.create({baseURL:t,timeout:Le,headers:{"Content-Type":"application/x-www-form-urlencoded;charset=UTF-8"}});return r.interceptors.request.use((function(t){return sessionStorage.getItem("anov-go-token")&&"null"!=sessionStorage.getItem("anov-go-token")&&(t.headers["X-ANOV-ACCESS-TOKEN"]=sessionStorage.getItem("anov-go-token")),sessionStorage.getItem("unify-access-token")&&"null"!=sessionStorage.getItem("unify-access-token")&&(t.headers["X-UNIFY-ACCESS-TOKEN"]=sessionStorage.getItem("unify-access-token")),sessionStorage.getItem("dgcc_authorization")&&"null"!=sessionStorage.getItem("dgcc_authorization")&&(t.headers.dgcc_authorization=sessionStorage.getItem("dgcc_authorization")),"post"===t.method?(t.headers["Content-Type"]="application/json;",t):"get"===t.method?t:"put"===t.method?(t.headers["Content-Type"]="application/json; charset=UTF-8",t):"delete"===t.method?t:void 0}),(function(t){return Promise.reject(t)})),r.interceptors.response.use((function(t){var e;return 200===t.status||2e4==t.data.code?(n&&n(t),t.data):(n&&n(t),null==t||t.status,null===(e=null==t?void 0:t.data)||void 0===e||e.code,Promise.reject(t.data))}),(function(t){return n&&n(null==t?void 0:t.response),Promise.reject(t.response)})),r},He=Object.defineProperty,ze=Object.getOwnPropertySymbols,Ue=Object.prototype.hasOwnProperty,We=Object.prototype.propertyIsEnumerable,qe=(t,e,n)=>e in t?He(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Ge=(t,e)=>{for(var n in e||(e={}))Ue.call(e,n)&&qe(t,n,e[n]);if(ze)for(var n of ze(e))We.call(e,n)&&qe(t,n,e[n]);return t},Ke=(t,e,n)=>(qe(t,"symbol"!=typeof e?e+"":e,n),n),Ze=(t,e,n)=>new Promise(((r,i)=>{var a=t=>{try{s(n.next(t))}catch(t){i(t)}},o=t=>{try{s(n.throw(t))}catch(t){i(t)}},s=t=>t.done?r(t.value):Promise.resolve(t.value).then(a,o);s((n=n.apply(t,e)).next())})),Xe={gapX:100,gapY:100,offsetLeft:0,offsetTop:0,width:120,height:64,opacity:.15,rotate:-22,fontSize:16,fontStyle:"normal",fontVariant:"normal",fontWeight:"300",fontColor:"#000",fontFamily:"sans-serif",textAlign:"center",textBaseline:"alphabetic",monitor:!0,zIndex:9999,mode:"interval",pack:!0,blindFontSize:16,blindOpacity:.005},$e="data-watermark-tag",Je={childList:!0,subtree:!0,attributeFilter:["style","class",$e]};var Qe=t=>{let e="";return Object.keys(t).forEach((n=>{const r=n.replace(/([A-Z])/g,"-$1").toLowerCase();e+=`${r}:${t[n]};`})),e},tn=(t="")=>{return`${e=t,window.btoa(decodeURI(encodeURIComponent(e)))}-${(new Date).getTime()}-${Math.floor(Math.random()*Math.pow(10,8))}`;var e};var en=window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver,nn=i((function(t,e){!function(){function e(t,e){return void 0===e?e={autoBom:!1}:"object"!=typeof e&&(console.warn("Deprecated: Expected third argument to be a object"),e={autoBom:!e}),e.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(t.type)?new Blob(["\ufeff",t],{type:t.type}):t}function r(t,e,n){var r=new XMLHttpRequest;r.open("GET",t),r.responseType="blob",r.onload=function(){u(r.response,e,n)},r.onerror=function(){console.error("could not download file")},r.send()}function i(t){var e=new XMLHttpRequest;e.open("HEAD",t,!1);try{e.send()}catch(t){}return 200<=e.status&&299>=e.status}function a(t){try{t.dispatchEvent(new MouseEvent("click"))}catch(n){var e=document.createEvent("MouseEvents");e.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),t.dispatchEvent(e)}}var o="object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof n&&n.global===n?n:void 0,s=o.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),u=o.saveAs||("object"!=typeof window||window!==o?function(){}:"download"in HTMLAnchorElement.prototype&&!s?function(t,e,n){var s=o.URL||o.webkitURL,u=document.createElement("a");e=e||t.name||"download",u.download=e,u.rel="noopener","string"==typeof t?(u.href=t,u.origin===location.origin?a(u):i(u.href)?r(t,e,n):a(u,u.target="_blank")):(u.href=s.createObjectURL(t),setTimeout((function(){s.revokeObjectURL(u.href)}),4e4),setTimeout((function(){a(u)}),0))}:"msSaveOrOpenBlob"in navigator?function(t,n,o){if(n=n||t.name||"download","string"!=typeof t)navigator.msSaveOrOpenBlob(e(t,o),n);else if(i(t))r(t,n,o);else{var s=document.createElement("a");s.href=t,s.target="_blank",setTimeout((function(){a(s)}))}}:function(t,e,n,i){if((i=i||open("","_blank"))&&(i.document.title=i.document.body.innerText="downloading..."),"string"==typeof t)return r(t,e,n);var a="application/octet-stream"===t.type,u=/constructor/i.test(o.HTMLElement)||o.safari,l=/CriOS\/[\d]+/.test(navigator.userAgent);if((l||a&&u||s)&&"undefined"!=typeof FileReader){var c=new FileReader;c.onloadend=function(){var t=c.result;t=l?t:t.replace(/^data:[^;]*;/,"data:attachment/file;"),i?i.location.href=t:location=t,i=null},c.readAsDataURL(t)}else{var h=o.URL||o.webkitURL,f=h.createObjectURL(t);i?i.location=f:location.href=f,i=null,setTimeout((function(){h.revokeObjectURL(f)}),4e4)}});o.saveAs=u.saveAs=u,t.exports=u}()})),rn=function(e){if(0===e.length)return[];var n=function(e){for(var r,i,a,o,s=0;s<e.length;s++)e[s].tmpData&&(e[s]=Object.assign({},(i=e[s],a=void 0,o=void 0,a=t.cloneDeep(i),o=t.omit(a,["comData","source"]),u({},o)))),e[s]&&e[s].children&&(null===(r=e[s])||void 0===r?void 0:r.children.length)?n(e[s].children):e[s]&&e[s].dynamicChildren&&Array.from(e[s].dynamicChildren).forEach((function(t,e){n(t[1])}))};return n(e),e},an=function(e){var n=t.cloneDeep(e)?t.cloneDeep(e):{};"string"==typeof e&&(n=JSON.parse(e));var r=[];if(n instanceof Array)n.forEach((function(t,e){var n=JSON.parse(t.caseDetailData)?JSON.parse(t.caseDetailData):{},i=t.caseDetailPath,a=t.caseDetailName,o=n.theme,s=void 0===o?null:o,u=n.globalVars,l=void 0===u?null:u,c=n.shareVariableTree,h=void 0===c?null:c,f=n.plant,d=void 0===f?null:f,p=n.list,g=void 0===p?[]:p,v=n.path,m=void 0===v?"":v;n.name;var y=n.resource,_=void 0===y?{jspaths:[],csspaths:[],otherpaths:[]}:y,b=n.watermark,w=void 0===b?null:b,D=n.tw,S=void 0===D?null:D,x=n.globalSource,T=void 0===x?[]:x,k=n.globalEvents,C=void 0===k?[]:k;r.push({path:m||i,theme:s,name:a,resource:_,tw:S,watermark:w,globalSource:T,globalVars:l,globalEvents:C,shareVariableTree:h,plant:d,list:rn(g)})}));else{var i=n.theme,a=void 0===i?null:i,o=n.globalVars,s=void 0===o?null:o,u=n.shareVariableTree,l=void 0===u?null:u,c=n.plant,h=void 0===c?null:c,f=n.list,d=void 0===f?[]:f,p=n.resource,g=void 0===p?{jspaths:[],csspaths:[],otherpaths:[]}:p,v=n.watermark,m=void 0===v?null:v,y=n.tw,_=void 0===y?null:y,b=n.globalSource,w=void 0===b?[]:b,D=n.globalEvents,S=void 0===D?[]:D;r.push({resource:g,tw:_,watermark:m,globalSource:w,theme:a,globalVars:s,globalEvents:S,shareVariableTree:l,plant:h,list:rn(d)})}return r};function on(t,e){throw new Error("".concat(t,":Expected HTMLElement, got ").concat(e))}var sn=function(){function t(t){this.option=t,this.option.isResize&&window.addEventListener("resize",this.resize.bind(this))}return Object.defineProperty(t,"defaultOption",{get:function(){return t._defaultOption},set:function(e){t._defaultOption=e},enumerable:!1,configurable:!0}),t.getInstance=function(e){return t.instance||(t.instance=new t(e)),t.instance},t.prototype.removeResize=function(){window.removeEventListener("resize",this.resize.bind(this))},t.prototype.resize=function(){var t=this.option,e=t.isEqualScale,n=t.wrapSelector,r=t.viewSelector,i=t.designWidth,a=t.designHeight,o=t.horizontal,s=t.vertical,u=document.querySelector(n);u||on("wrap",u);var l=u.clientWidth,c=u.clientHeight,h=document.querySelector(r);h||on("view",h),h.style.position="absolute",h.style.width=i+"px",h.style.height=a+"px";var f,d,p,g,v=Math.min(l/i,c/a);if(e){switch(h.style.transform="scale(".concat(v,")"),o){case"center":f=(l-i)/2+"px";break;case"left":f=(v-1)/2*i+"px";break;case"right":p=(v-1)/2*i+"px"}switch(s){case"center":d=(c-a)/2+"px";break;case"top":d=(v-1)/2*a+"px";break;case"bottom":g=(v-1)/2*a+"px"}}else h.style.transform="scale('".concat(l/i,", ").concat(c/a,"')"),f=(l-i)/2+"px",d=(c-a)/2+"px";d?h.style.top=d:g&&(h.style.bottom=g),f?h.style.left=f:p&&(h.style.right=p)},t._defaultOption={isEqualScale:!0,designWidth:1920,designHeight:1080,wrapSelector:"body",viewSelector:"#app",horizontal:"center",vertical:"center",isResize:!0},t}(),un=function(){function e(t){this.wrap=null,this.target=null,this.type=0,this.minRatio=1,this.outSize={w:0,h:0},this.inSize={w:0,h:0};var e=t.wrap,n=t.target,r=t.type,i=t.size,a=t.callback;this.size=i,this.type=r,this.initOptions(e,n,i),this.initSize(i),this.layout(),this.scale(a),window.addEventListener("resize",this.reset.bind(this,a))}return e.prototype.reset=function(t){this.initSize(this.size),this.layout(),t?this.scale(t):this.scale()},e.getInstance=function(t){return e.instance||(e.instance=new e(t)),e.instance},e.prototype.removeResize=function(){window.removeEventListener("resize",this.reset.bind(this,void 0))},e.prototype.getDom=function(e){if(t.isElement(e))return e;var n=document.querySelector(e);return t.isElement(n)?n:null},e.prototype.initOptions=function(t,e,n){this.wrap=this.getDom(t),this.target=this.getDom(e),this.target.style.width=n.w+"px",this.target.style.height=n.h+"px",this.verificationDom()},e.prototype.initSize=function(t){this.outSize.w=this.wrap.clientWidth,this.outSize.h=this.wrap.clientHeight,this.inSize=t},e.prototype.verificationDom=function(){null!=this.wrap&&null!=this.target&&this.isChildOf(this.wrap,this.target)||console.warn("Please pass in the DOM element correctly!")},e.prototype.layout=function(){if(0==this.type||3==this.type){var t=(this.outSize.w-this.inSize.w)/2,e=(this.outSize.h-this.inSize.h)/2;this.target.style.top=e+"px",this.target.style.left=t+"px"}else this.wrap.style.display="flex",this.wrap.style["align-items"]="center",this.wrap.style["justify-content"]="center",this.target.style.position="static",1==this.type?(this.wrap.style["overflow-y"]="auto",this.wrap.style["overflow-x"]="hidden"):2==this.type&&(this.wrap.style["overflow-y"]="hidden",this.wrap.style["overflow-x"]="auto")},e.prototype.isChildOf=function(t,e){var n;if(t&&e)for(n=t.parentNode;n;){if(e===n)return!0;n=n.parentNode}return!1},e.prototype.scale=function(t){var e=1,n=1;switch(this.type){case 0:e=Math.min(this.outSize.w/this.inSize.w,this.outSize.h/this.inSize.h),n=Math.min(this.outSize.w/this.inSize.w,this.outSize.h/this.inSize.h);break;case 1:n=e=this.outSize.w/this.inSize.w;break;case 2:e=n=this.outSize.h/this.inSize.h;break;case 3:e=this.outSize.w/this.inSize.w,n=this.outSize.h/this.inSize.h}t&&t([e,n]),this.target.style.transform="scale(".concat(e,",").concat(n,")")},e.prototype.resize=function(){},e}(),ln=function(t){return l(this,void 0,void 0,(function(){var e,n,r,i,a;return c(this,(function(o){switch(o.label){case 0:return o.trys.push([0,3,,4]),e=t.fontUrl,n=t.fontName,r="__custom_font__",(i=document.getElementById(r))?[3,2]:((i=document.createElement("style")).id=r,[4,(document.head||document.getElementsByTagName("head")[0]).appendChild(i)]);case 1:o.sent(),o.label=2;case 2:return i.innerText+="@font-face{font-family:'".concat(n,"';src:url(").concat(e,");}"),[3,4];case 3:return a=o.sent(),console.warn(a),[3,4];case 4:return[2]}}))}))},cn=function(t,e,n){return void 0===e&&(e="jspaths"),l(void 0,void 0,void 0,(function(){var r,i;return c(this,(function(a){switch(a.label){case 0:return r="csspaths"===e?"link":"script",i=document.createElement(r),"jspaths"===e?i.defer=!0:i.rel="stylesheet",i.className=e,i.src=t,(n||document.head||document.getElementsByTagName("head")[0]).appendChild(i),[4,new Promise((function(t,e){i.addEventListener("load",t),i.addEventListener("error",t)}))];case 1:return a.sent(),[2]}}))}))},hn=function(t,e){return void 0===e&&(e="jspaths"),l(void 0,void 0,void 0,(function(){var n;return c(this,(function(r){switch(r.label){case 0:return n="fonts"===e?ln:cn,[4,Promise.all(t.map((function(t){return n(t)})))];case 1:return r.sent(),[2]}}))}))},fn=function(t){return l(void 0,void 0,void 0,(function(){return c(this,(function(e){switch(e.label){case 0:return t.fonts&&t.fonts.length?[4,hn(t.fonts,"fonts")]:[3,2];case 1:e.sent(),e.label=2;case 2:return[2]}}))}))},dn=function(e){var n=e.jspaths,r=void 0===n?[]:n,i=e.csspaths,a=void 0===i?[]:i,o=e.fonts,s=void 0===o?[]:o;return l(void 0,void 0,void 0,(function(){var e;return c(this,(function(n){switch(n.label){case 0:return e=t.uniqBy(s,"fontName"),[4,Promise.all([hn(r,"jspaths"),hn(a,"csspaths"),hn(e,"fonts")])];case 1:return n.sent(),[2]}}))}))},pn=function(){var t;(null==(t=document.getElementById("__custom_font__"))?void 0:t.parentNode)&&t.parentNode.removeChild(t),Array.from(document.getElementsByTagName("script")).filter((function(t){return"jspaths"==t.className})).forEach((function(t){!function(t){for(var e,n=Array.from(document.getElementsByTagName("script")),r=0;r<n.length;r++)n[r]&&n[r].src&&-1!=n[r].src.indexOf(t)&&(null===(e=n[r])||void 0===e?void 0:e.parentNode)&&n[r].parentNode.removeChild(n[r])}(t.src)})),Array.from(document.getElementsByTagName("link")).filter((function(t){return"csspaths"==t.className})).forEach((function(t){!function(t){for(var e,n=Array.from(document.getElementsByTagName("link")),r=0;r<n.length;r++)n[r].href,n[r]&&n[r].href&&-1!=n[r].href.indexOf(t)&&(null===(e=n[r])||void 0===e?void 0:e.parentNode)&&n[r].parentNode.removeChild(n[r])}(t.href)}))};var gn=i((function(t){!function(e){var n=function(){return{escape:function(t){return t.replace(/([.*+?^${}()|\[\]\/\\])/g,"\\$1")},parseExtension:t,mimeType:function(e){var n=t(e).toLowerCase();return(r="application/font-woff",i="image/jpeg",{woff:r,woff2:r,ttf:"application/font-truetype",eot:"application/vnd.ms-fontobject",png:"image/png",jpg:i,jpeg:i,gif:"image/gif",tiff:"image/tiff",svg:"image/svg+xml"})[n]||"";var r,i},dataAsUrl:function(t,e){return"data:"+e+";base64,"+t},isDataUrl:function(t){return-1!==t.search(/^(data:)/)},canvasToBlob:function(t){return t.toBlob?new Promise((function(e){t.toBlob(e)})):function(t){return new Promise((function(e){for(var n=window.atob(t.toDataURL().split(",")[1]),r=n.length,i=new Uint8Array(r),a=0;a<r;a++)i[a]=n.charCodeAt(a);e(new Blob([i],{type:"image/png"}))}))}(t)},resolveUrl:function(t,e){var n=document.implementation.createHTMLDocument(),r=n.createElement("base");n.head.appendChild(r);var i=n.createElement("a");return n.body.appendChild(i),r.href=e,i.href=t,i.href},getAndEncode:function(t){var e=3e4;s.impl.options.cacheBust&&(t+=(/\?/.test(t)?"&":"?")+(new Date).getTime());return new Promise((function(n){var r,i=new XMLHttpRequest;if(i.onreadystatechange=o,i.ontimeout=u,i.responseType="blob",i.timeout=e,i.open("GET",t,!0),i.send(),s.impl.options.imagePlaceholder){var a=s.impl.options.imagePlaceholder.split(/,/);a&&a[1]&&(r=a[1])}function o(){if(4===i.readyState)if(200===i.status){var e=new FileReader;e.onloadend=function(){var t=e.result.split(/,/)[1];n(t)},e.readAsDataURL(i.response)}else r?n(r):l("cannot fetch resource: "+t+", status: "+i.status)}function u(){r?n(r):l("timeout of "+e+"ms occured while fetching resource: "+t)}function l(t){console.error(t),n("")}}))},uid:function(){var t=0;return function(){return"u"+e()+t++;function e(){return("0000"+(Math.random()*Math.pow(36,4)<<0).toString(36)).slice(-4)}}}(),delay:function(t){return function(e){return new Promise((function(n){setTimeout((function(){n(e)}),t)}))}},asArray:function(t){for(var e=[],n=t.length,r=0;r<n;r++)e.push(t[r]);return e},escapeXhtml:function(t){return t.replace(/#/g,"%23").replace(/\n/g,"%0A")},makeImage:function(t){return new Promise((function(e,n){var r=new Image;r.onload=function(){e(r)},r.onerror=n,r.src=t}))},width:function(t){var n=e(t,"border-left-width"),r=e(t,"border-right-width");return t.scrollWidth+n+r},height:function(t){var n=e(t,"border-top-width"),r=e(t,"border-bottom-width");return t.scrollHeight+n+r}};function t(t){var e=/\.([^\.\/]*?)$/g.exec(t);return e?e[1]:""}function e(t,e){var n=window.getComputedStyle(t).getPropertyValue(e);return parseFloat(n.replace("px",""))}}(),r=function(){var t=/url\(['"]?([^'"]+?)['"]?\)/g;return{inlineAll:function(t,n,a){return o()?Promise.resolve(t):Promise.resolve(t).then(r).then((function(e){var r=Promise.resolve(t);return e.forEach((function(t){r=r.then((function(e){return i(e,t,n,a)}))})),r}));function o(){return!e(t)}},shouldProcess:e,impl:{readUrls:r,inline:i}};function e(e){return-1!==e.search(t)}function r(e){for(var r,i=[];null!==(r=t.exec(e));)i.push(r[1]);return i.filter((function(t){return!n.isDataUrl(t)}))}function i(t,e,r,i){return Promise.resolve(e).then((function(t){return r?n.resolveUrl(t,r):t})).then(i||n.getAndEncode).then((function(t){return n.dataAsUrl(t,n.mimeType(e))})).then((function(r){return t.replace(function(t){return new RegExp("(url\\(['\"]?)("+n.escape(t)+")(['\"]?\\))","g")}(e),"$1"+r+"$3")}))}}(),i=function(){return{resolveAll:function(){return t().then((function(t){return Promise.all(t.map((function(t){return t.resolve()})))})).then((function(t){return t.join("\n")}))},impl:{readAll:t}};function t(){return Promise.resolve(n.asArray(document.styleSheets)).then((function(t){var e=[];return t.forEach((function(t){try{n.asArray(t.cssRules||[]).forEach(e.push.bind(e))}catch(e){console.log("Error while reading CSS rules from "+t.href,e.toString())}})),e})).then((function(t){return t.filter((function(t){return t.type===CSSRule.FONT_FACE_RULE})).filter((function(t){return r.shouldProcess(t.style.getPropertyValue("src"))}))})).then((function(e){return e.map(t)}));function t(t){return{resolve:function(){var e=(t.parentStyleSheet||{}).href;return r.inlineAll(t.cssText,e)},src:function(){return t.style.getPropertyValue("src")}}}}}(),a=function(){return{inlineAll:function e(i){return i instanceof Element?a(i).then((function(){return i instanceof HTMLImageElement?t(i).inline():Promise.all(n.asArray(i.childNodes).map((function(t){return e(t)})))})):Promise.resolve(i);function a(t){var e=t.style.getPropertyValue("background");return e?r.inlineAll(e).then((function(e){t.style.setProperty("background",e,t.style.getPropertyPriority("background"))})).then((function(){return t})):Promise.resolve(t)}},impl:{newImage:t}};function t(t){return{inline:function(e){return n.isDataUrl(t.src)?Promise.resolve():Promise.resolve(t.src).then(e||n.getAndEncode).then((function(e){return n.dataAsUrl(e,n.mimeType(t.src))})).then((function(e){return new Promise((function(n,r){t.onload=n,t.onerror=r,t.src=e}))}))}}}}(),o={imagePlaceholder:void 0,cacheBust:!1},s={toSvg:u,toPng:function(t,e){return l(t,e||{}).then((function(t){return t.toDataURL()}))},toJpeg:function(t,e){return l(t,e=e||{}).then((function(t){return t.toDataURL("image/jpeg",e.quality||1)}))},toBlob:function(t,e){return l(t,e||{}).then(n.canvasToBlob)},toPixelData:function(t,e){return l(t,e||{}).then((function(e){return e.getContext("2d").getImageData(0,0,n.width(t),n.height(t)).data}))},impl:{fontFaces:i,images:a,util:n,inliner:r,options:{}}};function u(t,e){return function(t){void 0===t.imagePlaceholder?s.impl.options.imagePlaceholder=o.imagePlaceholder:s.impl.options.imagePlaceholder=t.imagePlaceholder;void 0===t.cacheBust?s.impl.options.cacheBust=o.cacheBust:s.impl.options.cacheBust=t.cacheBust}(e=e||{}),Promise.resolve(t).then((function(t){return c(t,e.filter,!0)})).then(h).then((function(t){e.bgcolor&&(t.style.backgroundColor=e.bgcolor);e.width&&(t.style.width=e.width+"px");e.height&&(t.style.height=e.height+"px");e.style&&Object.keys(e.style).forEach((function(n){t.style[n]=e.style[n]}));return t})).then((function(r){return function(t,e,r){return Promise.resolve(t).then((function(t){return t.setAttribute("xmlns","http://www.w3.org/1999/xhtml"),(new XMLSerializer).serializeToString(t)})).then(n.escapeXhtml).then((function(t){return'<foreignObject x="0" y="0" width="100%" height="100%">'+t+"</foreignObject>"})).then((function(t){return'<svg xmlns="http://www.w3.org/2000/svg" width="'+e+'" height="'+r+'">'+t+"</svg>"})).then((function(t){return"data:image/svg+xml;charset=utf-8,"+t}))}(r,e.width||n.width(t),e.height||n.height(t))}))}function l(t,e){return u(t,e).then(n.makeImage).then(n.delay(100)).then((function(r){var i=function(t){var r=document.createElement("canvas");if(r.width=e.width||n.width(t),r.height=e.height||n.height(t),e.bgcolor){var i=r.getContext("2d");i.fillStyle=e.bgcolor,i.fillRect(0,0,r.width,r.height)}return r}(t);return i.getContext("2d").drawImage(r,0,0),i}))}function c(t,e,r){return r||!e||e(t)?Promise.resolve(t).then((function(t){return t instanceof HTMLCanvasElement?n.makeImage(t.toDataURL()):t.cloneNode(!1)})).then((function(r){return function(t,e,r){var i=t.childNodes;return 0===i.length?Promise.resolve(e):a(e,n.asArray(i),r).then((function(){return e}));function a(t,e,n){var r=Promise.resolve();return e.forEach((function(e){r=r.then((function(){return c(e,n)})).then((function(e){e&&t.appendChild(e)}))})),r}}(t,r,e)})).then((function(e){return function(t,e){var r=e;return r instanceof Element?Promise.resolve().then(i).then(a).then(o).then(s).then(u).then((function(){return r})):r;function i(){if(r instanceof HTMLVideoElement){var e=window.getComputedStyle(t),n=document.createElement("canvas");n.width=parseInt(e.width,10),n.height=parseInt(e.height,10);var i=Math.max(t.videoWidth/n.width,t.videoHeight/n.height),a=t.videoWidth/i,o=t.videoHeight/i,s=n.width/2-a/2,u=n.height/2-o/2;n.getContext("2d").drawImage(t,s,u,a,o);var l=r=document.createElement("img");try{l.src=n.toDataURL()}catch(t){l.src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="}}}function a(){function e(t,e){function r(t,e){n.asArray(t).forEach((function(n){e.setProperty(n,t.getPropertyValue(n),t.getPropertyPriority(n))}))}t.cssText?e.cssText=t.cssText:r(t,e)}e(window.getComputedStyle(t),r.style)}function o(){function e(e){var i=window.getComputedStyle(t,e),a=i.getPropertyValue("content");if(""!==a&&"none"!==a){var o=n.uid();r.className=r.className+" "+o;var s=document.createElement("style");s.appendChild(u(o,e,i)),r.appendChild(s)}function u(t,e,r){var i="."+t+":"+e,a=r.cssText?o(r):s(r);return document.createTextNode(i+"{"+a+"}");function o(t){var e=t.getPropertyValue("content");return t.cssText+" content: "+e+";"}function s(t){return n.asArray(t).map(e).join("; ")+";";function e(e){return e+": "+t.getPropertyValue(e)+(t.getPropertyPriority(e)?" !important":"")}}}}[":before",":after"].forEach((function(t){e(t)}))}function s(){t instanceof HTMLTextAreaElement&&(r.innerHTML=t.value),t instanceof HTMLInputElement&&r.setAttribute("value",t.value)}function u(){r instanceof SVGElement&&(r.setAttribute("xmlns","http://www.w3.org/2000/svg"),r instanceof SVGRectElement&&["width","height"].forEach((function(t){var e=r.getAttribute(t);e&&r.style.setProperty(t,e)})))}}(t,e)})):Promise.resolve()}function h(t){return a.inlineAll(t).then((function(){return t}))}t.exports=s}()})),vn=function(t){if(!t)return!1;return 1==new RegExp(/http(s)?:\/\/([\w-]+\.)+[\w-]+(\/[\w- .\/?%&=]*)?/).test(t)},mn=function(t){for(var e="",n=new Uint8Array(t),r=n.byteLength,i=0;i<r;i++)e+=String.fromCharCode(n[i]);return"data:image/jpeg;base64,".concat(window.btoa(e))},yn=function(t,e){void 0===e&&(e="screenshot.jpeg");try{for(var n=t.split(","),r=n[0].match(/:(.*?);/)[1],i=atob(n[1]),a=i.length,o=new Uint8Array(a);a--;)o[a]=i.charCodeAt(a);return new File([o],e,{type:r})}catch(t){console.error("dataURLtoFile:数据转换错误 : "+t)}},_n=function(t,e){return l(void 0,void 0,void 0,(function(){var n;return c(this,(function(r){switch(r.label){case 0:return r.trys.push([0,11,,12]),"File"!=e||"string"!=typeof t?[3,2]:[4,yn(t)];case 1:case 3:case 5:case 7:return[2,r.sent()];case 2:return"File"!=e||"[object ArrayBuffer]"!=t.toString()?[3,4]:[4,new File([t],"screenshot.jpeg")];case 4:return"Base64"!=e||"string"!=typeof t?[3,6]:[4,t];case 6:return"Base64"!=e||"[object ArrayBuffer]"!=t.toString()?[3,8]:[4,mn(t)];case 8:return[4,new Error("transformData: 转换发生错误")];case 9:throw r.sent();case 10:return[3,12];case 11:return n=r.sent(),console.log(n),[3,12];case 12:return[2]}}))}))},bn=function(t,n,r,i){return l(void 0,void 0,void 0,(function(){return c(this,(function(a){switch(a.label){case 0:return a.trys.push([0,2,,3]),[4,e({url:t,method:"GET",responseType:"arraybuffer",params:{url:n,dom:r,quality:i}})];case 1:return[2,a.sent()];case 2:return a.sent(),console.warn("请求截图服务器发生错误,请检查地址及参数是否正确!",{url:t,path:n,dom:r,quality:i}),[2,null];case 3:return[2]}}))}))},wn=function(t,e){return l(void 0,void 0,void 0,(function(){var n,r;return c(this,(function(i){switch(i.label){case 0:if(i.trys.push([0,2,,3]),!(n=document.querySelector(t)))throw new Error("domToImg:"+t+" dom未被找到!");return[4,gn.toJpeg(n,{style:{transform:"scale(1)",position:"static"},quality:e})];case 1:return[2,i.sent()];case 2:return r=i.sent(),console.warn(r),[3,3];case 3:return[2]}}))}))},Dn=function(t){return"".concat(t>15?"":0).concat(t.toString(16))},Sn=function(t){var e=t.r,n=t.g,r=t.b,i=t.a,a=void 0===i?1:i;return"#".concat(Dn(e)).concat(Dn(n)).concat(Dn(r)).concat(1===a?"":Dn(Math.floor(255*a)))},xn=function(t){var e=t.r,n=t.g,r=t.b;return"rgb(".concat(e,",").concat(n,",").concat(r,")")},Tn=function(t,e){void 0===e&&(e=1e4);var n=t.r,r=t.g,i=t.b,a=t.a,o=void 0===a?1:a;return"rgba(".concat(n,",").concat(r,",").concat(i,",").concat(Math.floor(o*e)/e,")")},kn=function(t){var e=t.slice(1),n=1;3===e.length&&(e="".concat(e[0]).concat(e[0]).concat(e[1]).concat(e[1]).concat(e[2]).concat(e[2])),8===e.length&&(n=parseInt(e.slice(6),16)/255,e=e.slice(0,6));var r=parseInt(e,16);return{r:r>>16&255,g:r>>8&255,b:255&r,a:n}},Cn=function(t){var e=t.match(/(\d(\.\d+)?)+/g)||[],n=e.map((function(t){return parseInt(t,10)}));return{r:n[0],g:n[1],b:n[2],a:parseFloat(e[3])}},En=function(t){if(t.startsWith("#"))return kn(t);if(t.startsWith("rgb"))return Cn(t);if("transparent"===t)return kn("#00000000");throw new Error("color string error: ".concat(t))},On=Object.freeze({__proto__:null,Watermark:class{constructor(t={}){Ke(this,"options"),Ke(this,"container"),Ke(this,"watermarkContent"),Ke(this,"watermarkDom"),Ke(this,"style"),Ke(this,"watermarkTag"),Ke(this,"shadowRoot"),Ke(this,"mutationObserver"),Ke(this,"_isAgainRender",(t=>{if("attributes"===t.type){if(t.attributeName===$e)return!0;if(this.watermarkTag===this._getNodeRandomId(t.target))return!0}return!(!t.removedNodes.length||this.watermarkTag!==this._getNodeRandomId(t.removedNodes[0]))})),Ke(this,"_getNodeRandomId",(t=>{var e,n;return null==(e=null==t?void 0:t.dataset)?void 0:e[(n=$e,n.split("-").slice(1).reduce(((t,e,n)=>0===n?e:`${t}${e[0].toUpperCase()+e.slice(1)}`)))]})),Ke(this,"_destroyMutationObserver",(()=>{this.mutationObserver&&(this.mutationObserver.takeRecords(),this.mutationObserver.disconnect(),this.mutationObserver=null)})),Ke(this,"_getWatermarkDom",(t=>Ze(this,null,(function*(){this.watermarkDom||(this.watermarkDom=document.createElement("div")),"number"==typeof t&&t&&(this.style.height=`${t}px`);const e=yield function(t){const{text:e,gapX:n,gapY:r,offsetTop:i,offsetLeft:a,width:o,height:s,rotate:u,opacity:l,fontSize:c,fontStyle:h,fontVariant:f,fontWeight:d,fontFamily:p,fontColor:g,textAlign:v,textBaseline:m,image:y,blindText:_,blindFontSize:b,blindOpacity:w}=t;return new Promise(((t,D)=>{const S=document.createElement("canvas"),x=S.getContext("2d"),T=1*(Number(n)+Number(o)),k=1*(Number(r)+Number(s)),C=Number(a)||Number(n)/2,E=Number(i)||Number(r)/2;if(S.setAttribute("width",`${T}px`),S.setAttribute("height",`${k}px`),x){const n=1*o,r=1*s;if(x.translate(1*C,1*E),x.rotate(Math.PI/180*Number(u)),_&&(x.globalAlpha=w,x.font=`${b}px normal`,x.fillText(_,0,0)),x.globalAlpha=l,y){const e=new Image;return e.crossOrigin="anonymous",e.referrerPolicy="no-referrer",e.src=y,void(e.onload=()=>{x.drawImage(e,0,0,n,r),t({url:x.canvas.toDataURL(),width:T,height:k})})}const i=Array.isArray(e)?e:[e],a=i.map((t=>x.measureText(t).width)),h=Math.max(...a),f=1*Number(c);x.textAlign=v,x.textBaseline=m,x.fillStyle=g,x.font=O(`${f}px`),h>o&&(x.font=O(f/2+"px"));const d=f+5;let p=(r-(c*i.length+5*(i.length-1)))/2;p=p<0?0:p;for(let t=0;t<i.length;t++)x.fillText(i[t]||"",n/2,p+d*t);t({url:x.canvas.toDataURL(),width:T,height:k})}function O(t){return`${h} ${f} ${d} ${t} ${p}`}return D()}))}(this.options);if(null==e?void 0:e.url){const t=e.url;"repeat"===this.options.mode?this.style.backgroundImage=`url(${t})`:(this.style.backgroundImage=`url(${t}), url(${t})`,this.style.backgroundRepeat="repeat, repeat",this.style.backgroundPosition=`${e.width/2}px ${e.height/2}px, 0 0`),this.options.container||(this.style.position="fixed",this.style.height=void 0),this.watermarkDom.setAttribute("style",Qe(this.style))}return this.watermarkDom.setAttribute($e,this.watermarkTag),this.watermarkDom})))),Ke(this,"_getWatermarkHeight",(()=>{if(!this.container)return 0;let t=0;const{scrollHeight:e=0,clientHeight:n=0}=this.options.container?this.container.parentNode:this.container;return e>n&&(t=Math.max(e,n)),t})),this.options=Object.assign({},Xe,t),this.style={position:"absolute",left:0,top:0,right:0,bottom:0,pointerEvents:"none",overflow:"hidden",backgroundColor:"transparent",backgroundRepeat:"repeat"},this.style.zIndex=this.options.zIndex,this.watermarkTag=tn("watermark"),this.mutationObserver=null,this._render()}update(t={}){this.options=Ge(Ge({},this.options),t),this.style.zIndex=this.options.zIndex,this._render()}show(){this.watermarkDom&&(this.style.display="block",this.watermarkDom.setAttribute("style",Qe(this.style)))}hide(){this.watermarkDom&&(this.style.display="none",this.watermarkDom.setAttribute("style",Qe(this.style)))}destroy(){this.shadowRoot=void 0,this.watermarkContent&&(this.watermarkContent.remove(),this.watermarkContent=void 0),this.watermarkDom&&(this.watermarkDom.remove(),this.watermarkDom=void 0),this._destroyMutationObserver()}_render(){return Ze(this,null,(function*(){this._destroyMutationObserver(),this.container=((t,e,n={},r)=>{let i;if("string"==typeof t){if(i=document.getElementById(t),!i)throw new Error(`水印挂载节点未找到,请检查#${t}是否存在`)}else i=null!=t?t:document.body;i.setAttribute($e,e);const a=Ge({position:"relative"},n);return r||delete a.position,i.setAttribute("style",Qe(a)),i})(this.options.container,this.watermarkTag,this.options.containerStyle,this.options.pack),this.watermarkContent||(this.watermarkContent=(t=>{const e=document.createElement("div");return e.setAttribute("style",Qe({pointerEvents:"none"})),e.setAttribute($e,t),e})(this.watermarkTag),this.container.append(this.watermarkContent));const t=this._getWatermarkHeight();if(this.watermarkDom=yield this._getWatermarkDom(t),this.watermarkContent){const t=this.watermarkContent.childNodes||[];for(let e=0;e<t.length;e++)this.watermarkContent.removeChild(t[e])}"function"==typeof this.watermarkContent.attachShadow?this.shadowRoot||(this.shadowRoot=this.watermarkContent.attachShadow({mode:"open"})):this.shadowRoot=this.watermarkContent,this.shadowRoot.append(this.watermarkDom),en&&this.options.monitor&&(this.mutationObserver=new en((t=>{t.forEach((t=>{if(this._isAgainRender(t))return this.destroy(),void this._render()}))})),this.mutationObserver.observe(this.container,Je),this.shadowRoot&&this.mutationObserver.observe(this.shadowRoot,Je))}))}},generateComponentList:rn,generateCaseDataJson:an,generatePageData:function(t){var e={},n=e.theme,r=void 0===n?null:n,i=e.globalVars,a=void 0===i?null:i,o=e.shareVariableTree,s=void 0===o?null:o,u=e.plant,l=void 0===u?null:u,c=e.list,h=void 0===c?[]:c,f=e.undos,d=void 0===f?[]:f,p=e.undoRedoPointer,g=void 0===p?-1:p,v=e.globalEvents,m=void 0===v?[]:v;return t&&(r=t.theme,l=t.plant),{theme:r,globalVars:a,globalEvents:m,shareVariableTree:s,plant:l,undos:d,undoRedoPointer:g,list:rn(h)}},exportJson:function(t){var e=t.caseName,n=void 0===e?"case-name":e,r=t.caseImg,i=void 0===r?"":r,o=t.caseRemark,s=void 0===o?"":o,u=t.details,l=t.caseClientType,c=void 0===l?"":l,h=t.id,f={caseClientType:c,caseName:n,caseImg:i,caseRemark:s,caseId:void 0===h?"":h,createTime:a().format("YYYY-MM-DD , h:mm:ss"),caseData:an(u)},d=new Blob([JSON.stringify(f)],{type:"json"});nn.saveAs(d,n+".json")},generateJson:function(t){var e=t.caseName,n=void 0===e?"":e,r=t.caseData;return t.plangInfoForPsd,{caseName:n,createTime:a().format("YYYY-MM-DD , h:mm:ss"),caseData:an(r)}},SizeAdaption:sn,Scale:un,loadFontResource:ln,loadScript:cn,removeTag:pn,loadTag:dn,loadFont:fn,getDataForEvaluator:v,recursion:ue,setIndex:le,encrypt:function(t){var e=new Kt;return e.setPublicKey("MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEApWni7uLYVV8iyDPTR6Zs\naj+2BHCn4xTzFeVHADzTdtBiFH9i4fKeDK0IfbPV/9TGeRYNfl0qSfdLtU+1ZIzm\npqHppadukmk5+NbBG4Xm/lAZgVt3dUIrSyamxVjwnymN7PLdxaSOS/mgU6SDGMhN\nTM76AXKZZXWMK12UCXvKkh+TkGufcXzLe7LtrvHPLOgcnEED2CkWATuE9g8K9j4T\neOMxhJcHBUmXLgU6Chufa4nBed2899E7jxJa14+J1IDa2ahrDFLZN7H//ZsvwnXq\nxVbxm0k5jyWqfCpg13V7zD3DxNWlo3MIh2fPtIEUDVhugqPd0jPmqquqdBNTnu2I\nGQIDAQAB"),e.encrypt(t)},decrypt:function(t){var e=new Kt;return e.setPrivateKey("MIIEvgIBADANBgkqhkiG9w0BAQEFAASCBKgwggSkAgEAAoIBAQClaeLu4thVXyLI\nM9NHpmxqP7YEcKfjFPMV5UcAPNN20GIUf2Lh8p4MrQh9s9X/1MZ5Fg1+XSpJ90u1\nT7VkjOamoemlp26SaTn41sEbheb+UBmBW3d1QitLJqbFWPCfKY3s8t3FpI5L+aBT\npIMYyE1MzvoBcplldYwrXZQJe8qSH5OQa59xfMt7su2u8c8s6BycQQPYKRYBO4T2\nDwr2PhN44zGElwcFSZcuBToKG59ricF53bz30TuPElrXj4nUgNrZqGsMUtk3sf/9\nmy/CderFVvGbSTmPJap8KmDXdXvMPcPE1aWjcwiHZ8+0gRQNWG6Co93SM+aqq6p0\nE1Oe7YgZAgMBAAECggEABN8LadGQYWM92Pt9u1xxUOezaooOx6c0SW7JGn6wE42r\ndcMSnGjSsrjdySXkpXYUqjg2CYSg3DDGL/667s0fdcTK5q/5l6I1rNhWM4NL/C1L\nsv2IlRFvyPTIcINgAq/smA/G7C0ea6pcSFpN6grsC9kEj8paLhy6FgTZeTYGDyuG\nwI3D7XWZNzWfyQlAsoWEYAmDx72rOuEaeK4W4SMf3BB2g1hJ6fZoKT3ehHozAGcJ\nB7R8k3tGALVYdOqQgXhj8t3vNu1OATG0Q6d4z28e4TwsVunxReTyRcofrgOVwpry\nEmb4C5RYaN/rWxRrL8aW+nB3wAD/PFDacVBz/8RvaQKBgQDX90jqlLtLRVAsqbiS\nSHmX67CqQzNNDWgysQLmF2YmmkGyth4QR+cNEenIEeSSt+vc0VMAbxYY5SVzVCRl\nSZHoKHNlLGmepd3aJw5ZcFnpU86J7aG8fhvgZGEmCR+1JOZU7pUbpTvka0WQC3AK\n2+O7nUYIU65xeOaJVZvUu6My+wKBgQDEE6DrFVMNgI3dDZM0buHMYDJ2mL9F1DZb\n2URxYAlmvjkpaQb9Vq1VXV0ApZ3ItXgIX6cVrJB+MILmrsoxAamFOl/9AYiKnpnb\nYMxxqFYPuME7fzEli041915j6CpMmOwrAq6SrLiZ//hNlobJf76dAY9qyX91BTC8\nBfEWVhnk+wKBgQDT5kb+G+bVSPIMkI6PwVrE7DWQKZV5YdE+A55TgtvwvmP95GEF\nGneixFO8wYmjR6C+LgihoV1uGc+wI/v+AbyOrLnkqDoNtrNB7BZRPUKLBHbfsHCE\nELxrZDJJ7qPUyZrR9LIKyQpF6db8KazKiswc9oiTfP/pSHXyhDP8/Ap55wKBgQC6\njDI9dzxdTEGsXo3/BL+vQpbAXvMb7JsLJ9sGQuiu56xayaHsxdqDrSAezXMg0gYx\ncU/2Pwf6Bw2DjCiyF3LBXpiUjjDqMZsQLThVqmK28oBlqs2HetIeZgtX4jrcRWHs\nSdDtm4bGfdIvf1cdvnwLxMA+SRcKrrV/LegB6EkaoQKBgEwE4rllfRxOSGaF47ew\nRxTLGphZmxhLDsx0fMOHflx/BnGnxruBLEhdv3mlp12YMmb2s6kwFJvngLq4fZll\nTmC7BW3Z9h8XsL9j2xtID+5gsxYHHOCcdbzGuQV5KWb51cBym7EP9qk/3NP8w3/+\nH0iKrgAII5Ym0yh41dGL5HCo"),e.decrypt(t)},decrypAES:Oe,safeEval:Me,setActions:ke,genID:xe,arraySwap:ee,arraySwapDeep:re,arraySwapForId:ne,setAttr:function(t,e,n){for(var r,i=0;i<t.length;i++)(r=t[i]).cid!==e&&r.id!==e||(r[n]=!r[n])},RecursiveList:Se,selectdArea:be,setPorp:function(t,e,n){var r=e.find((function(e){return e.cid===t}));"folder"===r.type?r.children.length&&r.children.forEach((function(t){t[n]=!t[n]})):r[n]=!r[n]},setPositionForGroup:de,resetPositionForGroup:function(t,e){var n=e.map((function(t){return t.cid}));e.forEach((function(e){e.pid&&ve(e,t)}));var r=be(n,e);return de(r,e),{left:r.left,top:r.top,width:r.width,height:r.height}},setPositionForWorld:ve,breakUp:pe,findItem:oe,findItemDeep:ie,findParentDeep:ae,findItemIndexDeep:function(t,e){for(var n,r=0,i=0;i<t.length;i++){var a=t[i];if(r+=1,a.cid==e)break;if(null===(n=null==a?void 0:a.children)||void 0===n?void 0:n.length)for(var o=0;o<(null==a?void 0:a.children.length);o++){if(r+=1,(null==a?void 0:a.children[o]).cid==e)return r}}return r},getLength:function(t){var e=0,n=function(t){for(var r=function(r){if(t[r].isShow&&t[r].children)n(t[r].children);else if(t[r].isShow&&t[r].dynamicChildren){if(t[r].dynamicChildren instanceof Map){for(var i=Array.from(t[r].dynamicChildren),a=0;a<i.length;a++)if(i[a]instanceof Array){var o=i[a][1];n(o)}}else if(t[r].isShow&&t[r].dynamicChildren instanceof Array){var s=t[r].dynamicChildren.find((function(e){return e[0]=t[r].activeDynamic}));s&&s.length&&n(s[1])}}else t[r].isShow&&t[r].stateChildren?n(t[r].stateChildren):t[r].isShow&&e++},i=0;i<t.length;i++)r(i)};return n(t),e||!1},getPosition:we,updataAttribute:he,isPeer:se,transformPosition:me,upDataGroup:De,upDataGroupChildren:function(e,n,r){var i=e.children,a=t.cloneDeep(n),o=t.cloneDeep(we(i)),s=a.left,u=a.top;a.width,a.height;var l=o.left,c=o.top,h=o.width,f=o.height,d={left:s+l,top:u+c,width:h,height:f,angle:n.angle?n.angle:0};return i.forEach((function(e){var n=t.cloneDeep(e.baseData);e.baseData.left<0?n.left=0:n.left=n.left-l,e.baseData.top<0?n.top=0:n.top=n.top-c,e.baseData=n})),e.children=i,d},resziePositionForGroup:function(e,n,r,i){var a=e.baseData.left,o=e.baseData.top,s=n.left,u=n.top,l=t.cloneDeep(e.children),c=r||"";if(s-a<0)for(var h=0;h<l.length;h++){(f=l[h]).cid!==c&&(f.baseData.left=f.baseData.left+(a-s))}if(u-o<0)for(h=0;h<l.length;h++){var f;(f=l[h]).cid!==c&&(f.baseData.top=f.baseData.top+(o-u))}e.children=l},genCopyName:function(t,e,n){var r,i;void 0===n&&(n=" copy");var a=new RegExp("".concat(n,"( \\d+)?$")).exec(t);a?(r=a[1]?parseInt(a[1]):0,i=t.slice(0,a.index)):(r=0,i=t);var o=new RegExp("^".concat(i).concat(n,"( [1-9][0-9]*)?$")),s=[];e.forEach((function(t){if(a=o.exec(t)){var e=a[1]?parseInt(a[1]):1;s.push(e)}})),s.sort((function(t,e){return t-e})),r++;for(var u=0,l=s.length;u<l;u++)if(s[u]===r)r++;else if(s[u]>r)break;return i+n+" "+r},resetID:ce,getUrlParams:Te,updataSizeDeep:Qt,resizePosition:ye,resizeListPosition:function(t,e){var n=function(t,r){for(var i,a=0;a<t.length;a++){var o=t[a];if(o.pid!=r){var s=ye(e,o.cid),u=ye(e,o.pid);o.baseData.left=s.left-u.left,o.baseData.top=s.top-u.top}(null===(i=null==o?void 0:o.children)||void 0===i?void 0:i.length)&&n(o.children,o.cid)}};n(t,e)},checkBaseData:te,comToggle:fe,setSessionData:function(t,e){var n=JSON.stringify(e);sessionStorage.setItem(t,n)},getSessionData:Jt,globalSourceTemp:Ae,getInteractive:Be,executeFilter:function(t){return t.hasOwnProperty("originalValue")||(t.originalValue=t.value),t.converter&&t.converterCode?t.value=Me(t.converterCode,t.originalValue):t.value=t.originalValue,t},getShareTree:function(t,e){try{var n={},r=[],i=[];return ue(t,(function(t){var a,o,s,u=null===(a=null==t?void 0:t.tmpData)||void 0===a?void 0:a.source;(Re(u,e,t,n),null===(s=null===(o=null==t?void 0:t.tmpData)||void 0===o?void 0:o.actions)||void 0===s?void 0:s.length)&&ke({types:t.tmpData.actions.map((function(t){return t.eventType})),element:t,actions:r,events:i})})),n}catch(t){return console.error(t),{}}},isJSON:Ie,getStandardData:Fe,screenshot:function(t){return l(void 0,void 0,void 0,(function(){var e,n,r,i,a,o,s,u;return c(this,(function(l){switch(l.label){case 0:return l.trys.push([0,11,,12]),e=t.dom,n=t.servePath,r=t.targetPath,i=t.quality,a=t.type,o=void 0,vn(n)&&vn(r)?[4,bn(n,r,e,i||.5)]:[3,5];case 1:return(s=l.sent())&&200==s.status&&s.data?(o=s.data,[3,4]):[3,2];case 2:return console.warn("截取错误,请检查网络或服务地址配置是否正确,已转换为dom-to-img."),[4,wn(e,i||.5)];case 3:o=l.sent(),l.label=4;case 4:return[3,7];case 5:return console.warn("地址错误,请检查传入的地址是否争取,已转换为dom-to-img."),[4,wn(e,i||.5)];case 6:o=l.sent(),l.label=7;case 7:return o?[4,_n(o,a)]:[3,9];case 8:return[2,l.sent()];case 9:return[2,null];case 10:return[3,12];case 11:return u=l.sent(),console.error("截图发生错误:"+u),[2,null];case 12:return[2]}}))}))},toHex:Dn,toHexString:Sn,toRgbString:xn,toRgbaString:Tn,parseHexColor:kn,parseRgbaColor:Cn,parseColorString:En,getColorInfo:function(t){var e=En(t);return{hex:Sn(e),rgba:Tn(e),rgb:xn(e),rgbaObj:e}},hexToRgba:function(t){var e=En(t);return Tn(e)},rgbaToHex:function(t){var e=En(t);return Sn(e)}}),Mn=je();function An(n,r,i,a){return l(this,void 0,void 0,(function(){var o,s,l,h,f,d;return c(this,(function(c){switch(c.label){case 0:o=n,s=t.cloneDeep(i),l=r?r.toLowerCase():"get",c.label=1;case 1:return c.trys.push([1,6,,7]),h={},["post","put"].includes(l)?h.data=s:h.params=s,f=void 0,/.json$/.test(o)?[4,e.get(o).then((function(t){return t.data}))]:[3,3];case 2:return f=c.sent(),[3,5];case 3:return[4,Mn(u({method:Rn[l],headers:a,url:o,timeout:3e4},h)).then((function(t){return{code:2e4,data:t.data}}))];case 4:f=c.sent(),c.label=5;case 5:return[2,f];case 6:return d=c.sent(),console.error("error:"+d.message),[3,7];case 7:return[2]}}))}))}function Pn(t){return l(this,void 0,void 0,(function(){var e,n,r,i;return c(this,(function(a){switch(a.label){case 0:e=window.anUrl?window.anUrl:"",n=e+(window.agentPath?window.agentPath:"/ds/v1/api-proxy/v1/query"),r=null==t?void 0:t.params,a.label=1;case 1:return a.trys.push([1,3,,4]),r="{}"==JSON.stringify(null==t?void 0:t.params)?void 0:Fe(null==t?void 0:t.params,!0),"{}"==JSON.stringify(null==t?void 0:t.headers)&&(null==t||delete t.headers),[4,Mn({url:n,headers:{"Content-Type":"application/json;charset=UTF-8"},method:"post",data:{body:"post"==(null==t?void 0:t.method)?r:void 0,headers:null==t?void 0:t.headers,method:null==t?void 0:t.method,url:null==t?void 0:t.url}})];case 2:return[2,a.sent()];case 3:return i=a.sent(),console.error("error:"+i.message),[3,4];case 4:return[2]}}))}))}var Bn,Rn,Nn=function(e,n,r){var i,a=e.tmpData.source,o=r?r.value.api.agency:null===(i=null==a?void 0:a.api)||void 0===i?void 0:i.agency,s=a.type;if("static"!==s){var u=r?r.value.api:a[s],l=u.url,c=void 0===l?null:l,h=u.headers,f=u.params,d=u.requestType,p={};null==c||c.split("?")[0];var g=function(t){var e=new Object;if(t&&-1!==(null==t?void 0:t.indexOf("?")))for(var n=t.split("?")[1].split("&"),r=0;r<n.length;r++)e[n[r].split("=")[0]]=unescape(n[r].split("=")[1]);return e}(c);if((null==h?void 0:h.use)&&h.value){p=JSON.parse(h.value);var v=function(t){var e=Object.keys(t);if(null==e?void 0:e.length)for(var r,i,a=function(a){if("[object Object]"==Object.prototype.toString.call(t[e[a]]))v(t[e[a]]);else if("[object Array]"==Object.prototype.toString.call(t[e[a]]))t[e[a]]&&t[e[a]].length&&t[e[a]].map((function(t){v(t)}));else if(t[e[a]].toString().includes("@")){var o=n.filter((function(n){return n.mapField==t[e[a]].toString().replace(/{{|}}|@/gm,"")}))[0];o&&((/{|}/.test(o.value)||/\[|]/.test(o.value))&&(o.value=new Function("return "+o.value)()),t[e[a]]=o.value)}else if(r=null,/{{|}}/.test(t[e[a]].toString())){if(i=t[e[a]].toString().replace(/{{(.*?)}}/gm,(function(t,e){if(n.length){r=e.toString();for(var i=0;i<n.length;i++)if(void 0===e||n[i].mapField===e.toString())return n[i].value||n[i].originalValue}})),i){if(/{|}/.test(i)||/\[|]/.test(i))if("[object Object]"==i)for(var s=0;s<n.length;s++)r==n[s].mapField&&(i=n[s].value||n[s].originalValue);else i=new Function("return "+i)();t[e[a]]=i}i||(t[e[a]]="")}},o=0;o<e.length;o++)a(o)};v(p)}var m={};if(f&&t.isString(f)){var y={};try{y=JSON.parse(f)}catch(t){console.warn("转换参数异常")}t.assign(m,y)}else t.assign(m,f);var _=function(e){Object.keys(e).forEach((function(r){if("[object Object]"==Object.prototype.toString.call(e[r]))_(e[r]);else if("[object Array]"==Object.prototype.toString.call(e[r]))e[r]&&e[r].length&&e[r].map((function(t){_(t)}));else if(e[r].toString().includes("@")){var i=n.filter((function(t){return t.mapField==e[r].toString().replace(/{{|}}|@/gm,"")}))[0];i&&((/{|}/.test(i.value)||/\[|]/.test(i.value))&&(i.value=new Function("return "+i.value)()),e[r]=i.value,c=t.replace(c,g[r],i.value))}else{var a=null;if(/{{|}}/.test(e[r].toString())){var o=e[r].toString().replace(/{{(.*?)}}/gm,(function(t,e){if(n.length){a=e.toString();for(var r=0;r<n.length;r++)if(void 0===e||n[r].mapField===e.toString())return n[r].value||n[r].originalValue}}));if(o){if(/{|}/.test(o)||/\[|]/.test(o))if("[object Object]"==o)for(var s=0;s<n.length;s++)a==n[s].mapField&&(o=n[s].value||n[s].originalValue);else o=new Function("return "+o)();e[r]=o,c=t.replace(c,g[r],o)}o||(e[r]="",c=t.replace(c,g[r],""))}}}))};return _(m),{url:c,requestType:d,params:m,headers:p,agency:o}}return null},Vn=function(t,e,n){void 0===e&&(e=[]),e||(e=[]);var r=Nn(t,e);r&&n(r)},In=function(t,e,n,r,i,a){t.then((function(t){/.json$/.test(a)?Yn(e,Fn(t,e,n,r),i,t.data):!t||2e4!=t.code&&200!=t.code?Yn(e,Fn({error:!0,message:t.msg?t.msg:"data error"},e,n,r),i):n?Yn(e,Fn(t.data,e,n,r),i):Yn(e,Fn(t.data,e,n,r),i,t.data)})).catch((function(t){Yn(e,Fn({error:!0,message:t.msg?t.msg:"data error"},e,n,r),i)}))},Fn=function(t,e,n,r){void 0===n&&(n=!0);try{var i=e.tmpData.source,a=i.converse;i.mapFields;return a&&a.use&&n?new Promise((function(e,n){e(v(t,a,0,r))})):new Promise((function(e,n){e(t)}))}catch(t){console.error(t)}},Yn=function(t,e,n,r){e.then((function(e){r?Ln(t,e,n,r):Ln(t,e,n)}))},Ln=function(t,e,n,r){var i=t.tmpData.source.type;r?("static"==i&&(t.tmpData.source[i].originData=r),"indicatorCQ"===i?t.tmpData.source.indicator.data=e:t.tmpData.source[i].data=e):"indicatorCQ"===i?t.tmpData.source.indicator.data=e:t.tmpData.source[i].data=e,t.source=e,n({cid:t.cid,data:e})},jn=function(t,e,n,r,i,a,o){return void 0===r&&(r=!0),l(void 0,void 0,void 0,(function(){var s,u,l,h,f,d,p,g,v,m,y,_,b,w,D,S,x,T,k,C,E,O;return c(this,(function(c){return s=function(t){i(t)},u=null!==(T=null===(x=null===(S=window.goDevConfig)||void 0===S?void 0:S.deep)||void 0===x?void 0:x.valueOf())&&void 0!==T&&T,"globalData"==t&&a&&(t=null===(k=null==a?void 0:a.value)||void 0===k?void 0:k.type,l=null===(E=null===(C=null==e?void 0:e.tmpData)||void 0===C?void 0:C.source.globalData)||void 0===E?void 0:E.id,h=Jt(l))?(u?(f={tmpData:{source:a.value}},jn(t,f,n,!0,(function(t){Yn(e,Fn(t.data,e,r,n),s)}))):Yn(e,Fn(h.data,e,r,n),s),[2]):(d=e.tmpData.source[t],"api"==t?qn(e,n,r,s):"static"==t?(D=void 0,p=void 0,d.originData&&Object.keys(d.originData).length?(D=d.originData,p=D):D=d.data,Yn(e,Fn(D,e,r,n),s,p)):"datasource"==t?(g=/({{[\w]*}})|((@)[\w]*)/gm,v=d.inputSql.match(g),m=d.inputSql,v&&v.length&&v.forEach((function(t){var e=n.filter((function(e){return"@"+e.mapField==t||"{{"+e.mapField+"}}"==t})),r="";e&&e.length&&e.forEach((function(t){""!=t.value&&(r=t.value)})),m=m.replaceAll(t,r)})),Wn(d.dsName,{dsType:"1",sql:Oe(m),filter:d.sqlFilter},e,n,s,r,t)):"staticFile"==t?Wn(d.dsName,{dsType:d.dsType,sql:""},e,n,s,r,t):"indicator"==t?Un(d.zbId,{},e,n,s,r):"indicatorCQ"==t?(y=a?a.value.indicator:e.tmpData.source.indicator,zn(y.zbName,y.params,e,n,s,r)):"packData"==t?(o&&e.pid&&(_=ie(o,e.pid),b=null===(O=null==_?void 0:_.tmpData)||void 0===O?void 0:O.source,w=null==b?void 0:b.type,D=b[w].data,Yn(e,Fn(D,e,r,n),s)),console.log(o)):s({cid:e.cid,data:"",message:"发生错误"}),[2])}))}))},Hn=function(t,e,n,r,i,a){void 0===n&&(n=!0);try{var o=t.tmpData.source.type,s=void 0;s=r||function(){};var u=null;"globalData"==o&&i&&(u=i.find((function(e){return t.tmpData.source[o].id==e.key}))),jn(o,t,e,n,s,u,a||[])}catch(t){r&&r(t),console.log("error:11"+t)}},zn=function(t,e,n,r,i,a){return l(void 0,void 0,void 0,(function(){var o,s,u,l,h,f,d,p,g;return c(this,(function(c){switch(c.label){case 0:return o=window.BaseUrl,s=e.dateType,u=void 0===s?"":s,l=e.endPeriod,h=void 0===l?"":l,f=e.metricsName,d=void 0===f?t:f,p=e.startPeriod,g=void 0===p?"":p,[4,Mn({method:"GET",url:"".concat(o,"ds/v1/metrics/v1/data-alarm?dateType=").concat(u,"&endPeriod=").concat(h,"&metricsName=").concat(d,"&startPeriod=").concat(g),timeout:Le}).then((function(t){if(2e4==t.code){var e=t.data;e?Yn(n,Fn(e,n,a,r),i):(Yn(n,Fn({data:e,message:t.msg?t.msg:"data error"},n,a,r),i),i({data:e,message:"发生错误"}))}else i({data:"",message:"发生错误"}),console.error("发生错误"),Yn(n,Fn({error:!0,message:t.msg?t.msg:"data error"},n,a,r),i)})).catch((function(t){i(t)}))];case 1:return c.sent(),[2]}}))}))},Un=function(t,e,n,r,i,a){return l(void 0,void 0,void 0,(function(){var e,o,s,u,l,h,f,d,p,g;return c(this,(function(c){switch(c.label){case 0:e=window.BaseUrl?window.BaseUrl.replace("/management",""):"",o=Te("YZH_EXCHANGE_TOKEN")?Te("YZH_EXCHANGE_TOKEN"):null===(g=window.yzhAuth)||void 0===g?void 0:g.getToken(),u=window.gdPassid,s=window.BASE_RELEASE?"".concat(e,"/ds/data-engine/v1/").concat(t,"/zb-query?token=").concat(o,"&passid=").concat(u,"&preview=1"):"".concat(e,"/ds/data-engine/v1/").concat(t,"/zb-query?token=").concat(o,"&passid=").concat(u),l=Nn(n,r),h=l.params,f=void 0===h?"":h,d=l.headers,p={};try{f&&(p=JSON.parse(f))}catch(t){f&&(p=f)}return[4,Mn({method:"POST",url:s,data:{headers:d,param:p},timeout:Le}).then((function(t){if(2e4==t.code){var e=JSON.parse(t.data);e?Yn(n,Fn(e,n,a,r),i):(Yn(n,Fn({error:!0,message:t.msg?t.msg:"data error"},n,a,r),i),i({data:e,message:"发生错误"}))}else i({data:"",message:"发生错误"}),console.error("发生错误"),Yn(n,Fn({error:!0,message:t.msg?t.msg:"data error"},n,a,r),i)})).catch((function(t){i({data:t,message:"发生错误"})}))];case 1:return c.sent(),[2]}}))}))},Wn=function(t,e,n,r,i,a,o){return l(void 0,void 0,void 0,(function(){var s,l;return c(this,(function(c){switch(c.label){case 0:return"/"==(s=window.BaseUrl?window.BaseUrl.replace("/management",""):"")&&(s=""),e.newEncryption=!0,l={staticFile:{method:"get",params:e,url:"".concat(s,"/ds/v1/file/v1/").concat(t,"/query")},datasource:{method:"post",url:"".concat(s,"/ds/v1/database/v1/").concat(t,"/query"),data:u({},e)}},[4,Mn(u({method:"get",timeout:Le},l[o])).then((function(t){if(2e4==t.code){var e=Fe(t.data);e?Yn(n,Fn(e,n,a,r),i):(Yn(n,Fn({error:!0,message:t.msg?t.msg:"data error"},n,a,r),i),i({data:e,message:"发生错误"}))}else i({data:"",message:"发生错误"}),console.error("发生错误"),Yn(n,Fn({error:!0,message:t.msg?t.msg:"data error"},n,a,r),i)})).catch((function(t){i(t)}))];case 1:return c.sent(),[2]}}))}))},qn=function(t,e,n,r){void 0===n&&(n=!0);try{var i=Nn(t,e),a=i.url,o=i.requestType,s=i.params,u=i.headers,l=i.agency,c=a.match(/({{[\w]*}})|((@)[\w]*)/gm),h=a;c&&c.length&&c.forEach((function(t){var n=e.filter((function(e){return"@"+e.mapField==t||"{{"+e.mapField+"}}"==t})),r="";n&&n.length&&n.forEach((function(t){""!=t.value&&(r=t.value)})),h=h.replaceAll(t,r)})),In(l?Pn({method:o,url:h,params:s,headers:u}):An(h,o,s,u),t,n,e,r,h)}catch(t){console.log("error:22"+t)}},Gn=function(t,e,n,r,i,a){var o,s;void 0===a&&(a=!0),t&&"api"==(null===(s=null===(o=null==t?void 0:t.tmpData)||void 0===o?void 0:o.source)||void 0===s?void 0:s.type)&&Vn(t,e,(function(o){if(s=o.url,!new RegExp("^((https|http|ftp|rtsp|mms)?://)?(([0-9a-z_!~*'().&=+$%-]+: )?[0-9a-z_!~*'().&=+$%-]+@)?(([0-9]{1,3}.){3}[0-9]{1,3}|([0-9a-z_!~*'()-]+.)*([0-9a-z][0-9a-z-]{0,61})?[0-9a-z].[a-z]{2,6})(:[0-9]{1,4})?((/?)|(/[0-9a-z_!~*'().;?:@&=+$,%#-]+)+/?)$").test(s))return n({cid:t.cid,data:{error:!0,message:o.url+"不是一个正确的地址,请正确填写!"}}),!1;var s,u=o.url,l=o.requestType,c=o.params,h=o.headers;o.agency?Pn({method:l,url:u,params:c,headers:h}).then((function(r){r&&2e4==r.code?(!function(t,e,n){try{e.then((function(e){n(e?{cid:t.cid,data:e}:{cid:t.cid,data:"数据发生错误!"})}))}catch(t){console.error(t)}}(t,Fn(r.data,t,a,e),n),i&&"function"==typeof i&&i(1)):(i&&"function"==typeof i&&i(0),n({cid:t.cid,data:{error:!0,message:r.msg?r.msg:"error"}}))})).catch((function(e){i&&"function"==typeof i&&i(-1),n({cid:t.cid,data:{error:!0,message:e}})})):An(u,l,c,h).then((function(e){var i=[];if(r){var o=t.tmpData.source,s=o.converse;o.mapFields,s&&s.use&&a?v(e.data,s).then((function(e){i=e,n({cid:t.cid,data:i})})):(i=e.data,n({cid:t.cid,data:i}))}else i=e.data,n({cid:t.cid,data:i})})).catch((function(e){n({cid:t.cid,data:{error:!0,message:e}})}))}))};!function(t){t.json="application/json;charset=UTF-8",t.form="application/x-www-form-urlencoded; charset=UTF-8"}(Bn||(Bn={})),function(t){t.get="GET",t.post="POST",t.put="PUT",t.patch="PATCH",t.delete="DELETE"}(Rn||(Rn={}));var Kn=Object.freeze({__proto__:null,Http:function(t,e){return je(t,e)},axios:e,getDataForEvaluator:v,getData:An,agentData:Pn,getComponentData:Vn,autoUpdateComData:function(e,n,r){var i,a,o,s,u,l=null===(i=null==e?void 0:e.tmpData)||void 0===i?void 0:i.source,c=null===(o=null===(a=l[null==l?void 0:l.type])||void 0===a?void 0:a.autoUpdate)||void 0===o?void 0:o.open,h=null===(u=null===(s=l[null==l?void 0:l.type])||void 0===s?void 0:s.autoUpdate)||void 0===u?void 0:u.time;c&&t.isNumber(h)&&h>0&&setInterval((function(){Hn(e,n,!0,r)}),1e3*h)},updateComData:Hn,refreshData:Gn,get ContentType(){return Bn},get HttpMethod(){return Rn}});function Zn(e){var n=[],r=[];ue(t.cloneDeep(e),(function(t){var e,i;(null===(i=null===(e=null==t?void 0:t.tmpData)||void 0===e?void 0:e.actions)||void 0===i?void 0:i.length)&&ke({types:t.tmpData.actions.map((function(t){return t.eventType})),element:t,actions:n,events:r})}));var i=r.filter((function(t){return t}));return{actions:n,events:i}}var Xn={addGlobalSource:function(t,e){var n=e.name,r=e.value;t.globalSource.push({key:xe(),name:n,value:r})},editGlobalSource:function(e,n){var r=this,i=n.key,a=n.value,o=e.globalSource.find((function(t){return t.key==i}));o&&(o.name=n.name,o.value=a,ue(t.cloneDeep(e.list),(function(t){var n,a,o;if("globalData"==(null===(a=null===(n=null==t?void 0:t.tmpData)||void 0===n?void 0:n.source)||void 0===a?void 0:a.type)){var s=null===(o=null==t?void 0:t.tmpData)||void 0===o?void 0:o.source.globalData,u=(null==t?void 0:t.children)?null==t?void 0:t.children:null;(null==s?void 0:s.id)==i&&Hn(t,e.globalVars,!0,(function(t){r.commit("GoCom/updataSourceForComponent",t)}),e.globalSource,u)}})))},delGlobalSource:function(t,e){try{var n=t.globalSource.findIndex((function(t){return t.key===e}));-1!==n&&t.globalSource.splice(n,1)}catch(t){console.error("删除错误",t)}},setSyncFlag:function(t,e){t.syncFlag=e},goUpShareVar:function(t,e){t.shareVariable[e.key]=u({},e)},addGoRunVar:function(t,e){try{var n=Be(t.list,t.globalConstant,t.sysConst);t.globalVars=n.globalVars,t.eventsComs=n.eventsComs}catch(t){console.warn(t)}},addGoVar:function(t,e){try{var n=e.mapField,r=t.globalConstant.filter((function(t){return t.mapField==n})).length;if(!n||r)throw new Error("添加失败!变量已经存在!");t.globalConstant.push(e);var i=Be(t.list,t.globalConstant,t.sysConst);t.globalVars=i.globalVars,t.eventsComs=i.eventsComs}catch(t){console.warn(t)}},copyGoVar:function(e,n){try{for(var r=n.mapField,i=(r.toString().trim(),e.globalConstant.filter((function(t){return t.mapField.includes(r)}))),a=1,o=0;o<i.length;o++)a++;var s="".concat(r," (").concat(a,")"),u=e.globalConstant.find((function(t){return t.mapField==r}));if(r&&u){var l=t.cloneDeep(u);l.mapField=s,e.globalConstant.push(l);var c=Be(e.list,e.globalConstant,e.sysConst);e.globalVars=c.globalVars,e.eventsComs=c.eventsComs}}catch(t){console.warn(t)}},delGoVar:function(e,n){try{var r=n.mapField,i=(n.mold,e.globalConstant.filter((function(t){return t.mapField==r})).length);if(!r||!i)throw new Error("删除失败!");var a=t.cloneDeep(e.globalConstant);t.remove(a,(function(t){return t.mapField==r})),e.globalConstant=a;var o=Be(e.list,e.globalConstant,e.sysConst);e.globalVars=o.globalVars,e.eventsComs=o.eventsComs}catch(t){console.warn(t)}},editGoVar:function(t,e){try{var n=e.mapField,r=(e.value,e.mapping,e.converter),i=e.converterCode,a=e.model,o=e.des,s=e.originalValue,u=e.fork,l=e.forkValue,c=e.update;if(u&&-1==t.globalVars.findIndex((function(t){return t.mapField==n})))e.model=1,t.globalConstant.push(e);else if(0==a)ue(t.list,(function(t){var e,a,u=null===(e=null==t?void 0:t.tmpData)||void 0===e?void 0:e.actions;if(null==u?void 0:u.length)for(var l=u.filter((function(t){return"vars"===t.behave})),c=0,h=l;c<h.length;c++){var f=h[c];(null===(a=f.vars)||void 0===a?void 0:a.length)&&f.use&&f.vars.filter((function(t){return t.mapField===n})).forEach((function(t){t.value=s,t.originalValue=s,t.des=o,r?(t.converter=r,t.converterCode=i):(t.converter=!1,t.converterCode="return data")}))}}));else if(2==a)for(var h=0,f=t.sysConst;h<f.length;h++){(g=f[h]).mapField===n&&(l&&(g.forkValue=l),g.des=o,g.originalValue=s,g.value=s,r?(g.converter=r,g.converterCode=i):(g.converter=!1,g.converterCode="return data"))}else for(var d=0,p=t.globalConstant;d<p.length;d++){var g;(g=p[d]).mapField===n&&(g.des=o,l&&(g.forkValue=l),g.originalValue=s,g.value=s,r?(g.converter=r,g.converterCode=i):(g.converter=!1,g.converterCode="return data"))}var v=Be(t.list,t.globalConstant,t.sysConst);t.globalVars=v.globalVars,t.eventsComs=v.eventsComs,c&&this.commit("GoCom/updatComsForVar",n)}catch(t){console.warn(t)}},goEditVar:function(t,e){var n=e.key,r=e.value,i=t.globalVars.find((function(t){return t.mapField==n}));i&&(i.originalValue=r,i.update=!0,t.globalVars.forEach((function(t){t.mapField==n&&(t.originalValue=r,t.value=r)})),this.commit("GoCom/editGoVar",i))},goDelShareVar:function(t,e){delete t.shareVariable[e]},signal:function(t,e){},goSynchroDataAll:function(e,n){e.list=t.cloneDeep(n)},goSynchroData:function(e,n){if(e){var r=n.cid,i=n.attr,a=n.value,o=n.attrModel,s=ie(e.list,r);if("boolean"!=typeof s){if(s&&he(s,i,a,o),"actions"===i.toLowerCase()){var u=e.list,l=t.uniqWith(t.concat(Zn(u).actions,Zn(e.caseList).actions),t.isEqual),c=t.uniqWith(t.concat(Zn(u).events,Zn(e.caseList).events),t.isEqual);e.globalVars=h(h([],l,!0),e.globalConstant,!0),e.globalEvents=c,e.pages[e.pageIndex]&&(e.pages[e.pageIndex].globalVars=l),e.pages[e.pageIndex]&&(e.pages[e.pageIndex].globalEvents=c)}if("source"===i){if(!s.tmpData.source)return!1;var f=s.tmpData.source,d=f.type;if("api"===d){var p=f[d].url.match(/{{[\w]*}}|(@)[\w]*/gm);if(p)for(var g=p.map((function(t){return t.replace(/{{|}}|@/gm,"")})),v=function(n){var r=g[n];if(!r||!e.globalVars||e.globalVars.findIndex((function(t){return t.mapField===r}))<0)return"continue";if(e.shareVariableTree||(e.shareVariableTree={}),e.shareVariableTree[r]&&t.isArray(e.shareVariableTree[r])){e.shareVariableTree[r].push(s.cid);var i=e.shareVariableTree[r];e.shareVariableTree[r]=t.uniq(i)}else e.shareVariableTree[r]=[],e.shareVariableTree[r].push(s.cid)},m=0;m<g.length;m++)v(m)}}}}this.commit("GoCom/execute")},goUpdataSysVars:function(t,e){var n={U_CITY:"cityCode",U_COUNTY:"countyCode",U_PROVINCE:"provinceCode",U_PHONE:"userPhone"},r=t.sysConst,i=Object.keys(n);r.map((function(t){if((null==t?void 0:t.name)&&(null==i?void 0:i.includes(t.name))){var r=n[t.name];t.value=e[r],t.originalValue=e[r]}return t})),t.sysConst=r,t.globalVars=Be(t.list,t.globalConstant,t.sysConst).globalVars}},$n={updataList:function(e,n){var r=n.cid,i=t.cloneDeep(n.list);if(t.cloneDeep(e.list),-1===i.findIndex((function(t){return t.cid===r}))){console.log(2221111);for(var a=0;a<i.length;a++){var o=i[a];if(o.children&&o.children.length)for(var s=o.cid,u=0;u<o.children.length;u++){var l=o.children[u];if(l.cid===r){l.pid=s;var c=t.cloneDeep(o.baseData),h=me(l.baseData,o.baseData,1);Object.assign(l.baseData,h),De(o,c);break}}}}else{var f=i.find((function(t){return t.cid===r})),d=f.pid;if(d){f.pid="";var p=ie(i,d);console.log(p,"movGroup"),Object.assign(f.baseData,me(f.baseData,p.baseData));a=p.children.findIndex((function(t){return t.cid===f.cid}));p.children.splice(a,1),0===p.children.length?ie(i,p.cid,!0):De(p,p.baseData)}}le(i),e.list=i},updataListForContrast:function(e,n){var r=n.cid,i=n.list,a=ie(i,r);ae(i,r);var o=ae(e.list,r);if(!a.pid){a.pid=o.cid;var s=t.cloneDeep(a.baseData),u=me(a.baseData,o.baseData,1);Object.assign(a.baseData,u),De(o,s)}le(e.list)},updateTree:function(e){for(var n=e.list,r=0;r<n.length;r++){var i=n[r];if(i.pid)(s=ie(n,i.pid))&&Object.assign(i.baseData,me(i.baseData,s.baseData));if(i.children)for(var a=0;a<i.children.length;a++){var o=i.children[a];if(o.pid!=i.cid){var s=ie(n,o.pid);if(t.cloneDeep(o.baseData),s){Object.assign(o.baseData,me(o.baseData,s.baseData));var u=me(o.baseData,i.baseData,1);Object.assign(o.baseData,u),De(i,i.baseData)}o.pid=i.cid}}}le(n)}},Jn={reset:function(t){t.selectd=[],t.list=[],t.plant=null,t.tw=null,t.watermark=null,t.endnotes=null,t.globalConstant=[]},setFonts:function(t,e){t.resource.fonts.push({fontName:e.name,fontUrl:e.src}),fn(t.resource)},setCaseInfo:function(t,e){t.caseInfo=e},setPageId:function(t,e){t.pageId=e},pagePush:function(t,e){try{var n=e.type,r=e.value,i=["name","path","id"];if(!i.includes(n))throw new Error("页面跳转错误!".concat(n," 不是一个正确的参数 请填以下参数 ").concat(i.join(",")));if(!r)throw new Error("页面跳转错误!".concat(n," 不是一个正确的参数 请填正确的页面路径或者页面名称"));t.toPage={type:n,value:r}}catch(t){console.warn(t)}},updatComs:function(t,e){var n=this,r=ie(t.list,e);if("boolean"!=typeof r){var i=(null==r?void 0:r.children)?null==r?void 0:r.children:null;Hn(r,t.globalVars,!0,(function(t){n.commit("GoCom/updataSourceForComponent",t)}),null,i)}},updatComsForVar:function(e,n){var r=e.globalVars.map((function(t){var e,r;if((null===(e=null==t?void 0:t.forkValue)||void 0===e?void 0:e.length)&&(null===(r=null==t?void 0:t.forkValue)||void 0===r?void 0:r.includes(n))||t.forkValue==n)return t.mapField})).filter((function(t){return t})),i=[n];(null==r?void 0:r.length)&&(i=t.uniq(h([n],r,!0)));for(var a=[],o=0,s=i;o<s.length;o++){var u=s[o];e.shareVariableTree[u]&&a.push.apply(a,e.shareVariableTree[u])}if(null==a?void 0:a.length)for(var l=0,c=a;l<c.length;l++){var f=c[l];this.commit("GoCom/updatComs",f)}},addConstant:function(e,n){var r=t.find(e.constant,{name:n.name});r?Object.assign(r,n):e.constant.push(n)},editConstant:function(e,n){var r=t.find(e.constant,{name:n.name});r&&Object.assign(r,n)},delConstant:function(e,n){t.remove(e.constant,(function(t){return t.name==n}))},setResource:function(t,e){var n=e.type,r=e.value;t.resource[n]=r,pn(),dn(t.resource)},updataResource:function(t){pn(),dn(t.resource)},resetResource:function(t){t.resource={jspaths:[],csspaths:[],otherpaths:[]}},setData:function(t,e){t.selectd=e.selectd},setList:function(t,e){t.list=e,le(t.list)},saveDynamicChildren:function(t,e){var n=e.cid,r=e.data,i=e.name,a=t.pages[t.pageIndex].list,o=ie(a,n);o&&(o.activeDynamic=i,o.dynamicChildren instanceof Array&&(o.dynamicChildren=new Map(o.dynamicChildren)),o.dynamicChildren.set(i,r))},setTheme:function(t,e){t.theme=e},setPlant:function(t,e){var n=e.attr,r=e.value;t.plant||(t.plant={name:"",theme:null,baseData:{width:1920,height:1080,left:0,top:0},option:null,optionDes:null}),t.plant[n]=r},setPlantHeight:function(t,e){t.plant&&(t.plant.baseData.height=t.plant.baseData.height+e)},reversal:function(t,e){t.undos=[],t.undoRedoPointer=-1,t=Object.assign(t,e),le(t.list)},setComTmp:function(t,e){var n=t.list.find((function(t){return t.cid===e[0]}));n.com=e[1],n.tmp=e[2]},setLoading:function(t,e){var n=e.cid,r=e.flag,i=t.list.find((function(t){return t.cid===n}));i&&(i.loading=r)},setMultiple:function(t,e){t.multiple=e},setCaseList:function(t,e){t.caseList=e},updataComponentForList:function(t,e){var n=e.cid,r=e.data,i=t.list,a=ie(i,n);"boolean"!=typeof a&&Object.assign(a,r)},updataComponentForCaseList:function(t,e){var n=e.cid,r=e.data,i=t.caseList,a=ie(i,n);"boolean"!=typeof a&&Object.assign(a,r)},updataComponent:function(t,e){var n=e.cid,r=e.data,i=t.pages&&t.pages[0]&&t.pages[0].list&&t.pages[0].list.length?t.pages[0].list:t.list,a=ie(i,n);"boolean"!=typeof a&&Object.assign(a,r)},updataArea:function(t,e){t.currentArea.left+=e.deltaX,t.currentArea.top+=e.deltaY},updataSource:function(t,e){var n=e.cid,r=e.data,i=ie(t.list,n);"boolean"!=typeof i&&("indicatorCQ"===i.tmpData.source.type?i.tmpData.source.indicator.data=r:i.tmpData.source[i.tmpData.source.type].data=r)},updataSourceForComponent:function(e,n){var r=n.cid,i=n.data;if(e.list.length){var a=ie(e.list,r);"boolean"!=typeof a&&(a.source=t.cloneDeep(i))}},updataAnimationForComponent:function(t,e){var n=e.cid,r=e.data;if(t.list.length){var i=ie(t.list,n);"boolean"!=typeof i&&(i.tw=r)}},updataWatermark:function(t,e){t.watermark=e},updataEndnotes:function(t,e){t.endnotes=e},updataAnimation:function(t,e){t.tw=e},setContext:function(t,e){var n=e.cid,r=e.data,i=ie(t.list,n);"boolean"!=typeof i&&(i.example=r)},setContextList:function(t,e){var n=e.cid,r=e.data;t.contextList[n]=r},setPosition:function(t,e){ve(t.list.find((function(t){return t.cid===e[0]})),e[1])},setSelect:function(t,e){t.cache=[],t.selectd=e instanceof Array?e:[e],t.selectd.length>1&&t.selectd.forEach((function(e){t.cache.push(t.list.find((function(t){return t.cid===e&&"Other.Plant.Normal"!==t.type})))}))},setActive:function(e,n){var r=t.cloneDeep(n),i=r.id,a=r.multiple,o=r.origin,s=r.ctr,u=t.cloneDeep(e.selectd);if(a){var l=u.includes(i);if(u.length>=1)if(!u.every((function(t){return se(e.list,t,n.id)})))return void console.info("sorry Only sibling elements can be selected!");l?u.splice(u.findIndex((function(t){return t===i})),1):u.push(i),e.selectd=u}else e.selectd=[i];e.selectd.forEach((function(t){var n=ie(e.list,t);n.pid&&(ie(e.list,n.pid).toggle=!0);s||(n.toggle=!0)})),e.selectdChangeOrigin=o||""},setCache:function(t){t.cache=[],t.selectd.length>1&&t.selectd.forEach((function(e){t.cache.push(t.list.find((function(t){return t.cid===e})))}))},clearActive:function(t){t.selectd=[]},setMultipleActive:function(t,e){t.selectd=e},syncMenuInfo:function(t){Se(t.menuList,(function(e){var n=10*e.lv+e.index;t.list.filter((function(t){return t.cid===e.id}))[0].z=1e4-n}))},addComs:function(e,n){var r=n.com,i=n.isMobile;"MultiStateComponent"!=r.componentType||r.stateChildren||(r.stateChildren=[]),"dynamicComponent"!=r.componentType||r.dynamicChildren||(r.dynamicChildren=new Map,r.activeDynamic="状态1",r.dynamicChildren.set("状态1",[]),r.lines={h:[],v:[]}),i?e.list.push(r):e.list.unshift(r),e.menuList=t.cloneDeep(e.list),le(e.list),this.commit("GoCom/execute")},addComsForParent:function(e,n){var r=n.com,i=n.isMobile,a=n.PID;if("MultiStateComponent"!=r.componentType||r.stateChildren||(r.stateChildren=[]),"dynamicComponent"!=r.componentType||r.dynamicChildren||(r.dynamicChildren=new Map,r.activeDynamic="状态1",r.dynamicChildren.set("状态1",[])),a){var o=ie(e.list,a);i?(o.children=[],o.children.push(r)):o.children.unshift(r)}else i?e.list.splice(0,1,r):e.list.unshift(r);e.menuList=t.cloneDeep(e.list),le(e.list),this.commit("GoCom/execute")},addMyComs:function(e,n){var r;try{var i=n.data,a=n.shareVariableTree,o=n.globalVars,s=n.globalEvents;e.globalVars=t.uniq(t.concat(t.cloneDeep(e.globalVars),o)),e.globalEvents=t.uniq(t.concat(t.cloneDeep(e.globalEvents),s));var u=Object.keys(a),l=Object.keys(e.shareVariableTree),c=t.difference(u,l);c.length?c.forEach((function(n){e.shareVariableTree[n]=t.concat(t.cloneDeep(e.shareVariableTree[n]),a[n])})):e.shareVariableTree=Object.assign(t.cloneDeep(e.shareVariableTree),a),i instanceof Array?(ce(i),(r=e.list).unshift.apply(r,i)):(ce([i]),e.list.unshift(i)),e.menuList=t.cloneDeep(e.list),le(e.list),this.commit("GoCom/execute")}catch(t){}},addStateChildren:function(t,e){var n=ie(t.list,e.pid);n&&n.stateChildren.push(e)},addDynamicChildren:function(t,e){var n=ie(t.list,e.pid);n&&n.dynamicChildren.push(e)},arraySwap:function(e,n){var r;try{if(!n||2!=n.length)throw new Error("参数错误,方法接受两个组件的CID组成的数组!");var i=t.cloneDeep(e.list),a=ie(i,n[0]),o=ie(i,n[1]),s=ie(i,a.pid),u={},l=0,c=0;if(o)if("selectContainer"==o.componentType){var f=ie(i,n[1]);s?(l=t.findIndex(s.children,(function(t){return t.cid==n[0]})),u=s.children[l],s.children=s.children.filter((function(t){return t.cid!==u.cid}))):(u=ie(i,n[0]),i=i.filter((function(t){return t.cid!==u.cid}))),u.cid=xe(),u.pid=f.cid,f.children.push(u)}else if(a.pid||o.pid)if(s)if(l=t.findIndex(s.children,(function(t){return t.cid==n[0]})),u=s.children[l],a.pid!==o.pid){f=ie(i,o.pid);c=t.findIndex(f.children,(function(t){return t.cid==n[1]}));d=f.children[c];u.cid=xe(),u.pid=f.cid,d.cid=xe(),d.pid=s.cid,s.children.splice(l,1,d),f.children.splice(c,1,u)}else c=t.findIndex(s.children,(function(t){return t.cid==n[1]})),(r=s.children).splice.apply(r,h([c,1],s.children.splice(l,1,s.children[c]),!1));else{var f=ie(i,o.pid);l=t.findIndex(i,(function(t){return t.cid==n[0]})),c=t.findIndex(f.children,(function(t){return t.cid==n[1]})),u=ie(i,a.cid);var d=f.children[c];u.cid=xe(),u.pid=f.cid,d.cid=xe(),d.pid=null,i.splice(l,1,d),f.children.splice(c,1,u)}else ne(e.list,n[0],n[1]);else l=t.findIndex(s.children,(function(t){return t.cid==n[0]})),u=s.children[l],s.children.splice(l,1),u.cid=xe(),u.pid=null,i.push(u);e.list=i,le(e.list)}catch(t){console.warn("组件位置交换发生错误",t)}},changeDynamicState:function(t,e){var n=ie(t.list,e.cid);n&&"dynamicComponent"==n.componentType&&(n.dynamicChildren instanceof Array&&n.dynamicChildren.find((function(t){return t[0]==e.activeName}))||n.dynamicChildren instanceof Map&&n.dynamicChildren.has(e.activeName)?n.activeDynamic=e.activeName:console.error(e.activeName+"不是一个正确的状态"))},addAlternateData:function(t,e){t.alternateData[e.pid]||(t.alternateData[e.pid]=[]),t.alternateData[e.pid].push(e)},setOptionForCom:function(t,e){var n,r;try{var i=e.cid,a=e.key,o=e.value,s=ie(t.list,i);s&&(null===(r=null===(n=null==s?void 0:s.tmpData)||void 0===n?void 0:n.option)||void 0===r?void 0:r.hasOwnProperty(a))&&(s.tmpData.option[a]=o)}catch(t){console.warn("同步属性发生错误:"+t)}},mergeConfig:function(e,n){n.length>0&&n.forEach((function(t){e.list.unshift(t)})),e.menuList=t.cloneDeep(e.list),le(e.list),this.commit("GoCom/execute")},updataName:function(t,e){var n=ie(t.list,e.cid);n&&(n.name=e.name)},setDynamicActive:function(t,e){e.cid;var n=e.name,r=ie(t.list,e.cid);r&&"dynamicComponent"==r.componentType&&(r.activeDynamic=n)},updataScroll:function(t,e){e.cid;var n=e.data,r=ie(t.list,e.cid);r&&"dynamicComponent"==r.componentType&&(r.srcollInfo={use:!!(null==n?void 0:n.use)&&(null==n?void 0:n.use),data:(null==n?void 0:n.data)?null==n?void 0:n.data:null})},updataDySetting:function(t,e){e.cid;var n=e.data,r=ie(t.list,e.cid);r&&"dynamicComponent"==r.componentType&&(r.dyOption=n)},setCurrentEdited:function(t,e){if(e){var n=ie(t.list,e);if("boolean"!=typeof n){var r=pe(n);n.children=r}t.currentEditerCid=e}else t.currentEditerCid=""},setDynamicLine:function(e,n){var r=t.cloneDeep(e.list),i=ie(r,n.cid);r.length&&"boolean"!=typeof i&&(i.lines=Object.assign({},i.lines,n.lines)),e.list=r}},Qn={layout:function(e,n){var r=function(e,n){try{var r=e.map((function(t){var e=ie(n,t);if("object"==typeof e)return e;throw"Please check whether the input and output parameters are correct!"}));if(t.every(r,Object))return r;throw"Please check whether the input and output parameters are correct!"}catch(t){return console.error(t),[]}}(e.selectd,e.list);switch(n){case"alignLeft":!function(e,n){1===e.length&&(e[0].baseData.left=0);var r=t.sortBy(e,(function(t){return t.baseData.left}))[0].baseData.left;e.map((function(t){return t.baseData.left=r}))}(r);break;case"alignRight":!function(e,n){if(1===e.length){var r=n.plant?n.plant.baseData:{width:1920,height:1080};e[0].baseData.left=r.width-e[0].baseData.width}var i=t.sortBy(e,(function(t){return t.baseData.left})),a=1*i[i.length-1].baseData.left+1*i[i.length-1].baseData.width;e.map((function(t){return t.baseData.left=a-1*t.baseData.width}))}(r,e);break;case"horizontally":!function(e,n){if(1===e.length){var r=n.plant?n.plant.baseData:{width:1920,height:1080};e[0].baseData.left=r.width/2-e[0].baseData.width/2}var i=t.sortBy(e,(function(t){return t.baseData.left})),a=t.sortBy(e,(function(t){return 1*t.baseData.left+1*t.baseData.width})),o=(1*i[0].baseData.left+(1*a[a.length-1].baseData.left+1*a[a.length-1].baseData.width))/2;e.map((function(t){return t.baseData.left=o-t.baseData.width/2}))}(r,e);break;case"alignTop":!function(e,n){1===e.length&&(e[0].baseData.top=0);var r=1*t.sortBy(e,(function(t){return t.baseData.top}))[0].baseData.top;e.map((function(t){return t.baseData.top=r}))}(r);break;case"alignBottom":!function(e,n){if(1===e.length){var r=n.plant?n.plant.baseData:{width:1920,height:1080};e[0].baseData.top=r.height-e[0].baseData.height}var i=t.sortBy(e,(function(t){return 1*t.baseData.top})),a=1*i[i.length-1].baseData.top+1*i[i.length-1].baseData.height;e.map((function(t){return t.baseData.top=a-1*t.baseData.height}))}(r,e);break;case"verticalCenter":!function(e,n){if(1===e.length){var r=n.plant?n.plant.baseData:{width:1920,height:1080};e[0].baseData.top=r.height/2-e[0].baseData.height/2}var i=t.sortBy(e,(function(t){return t.baseData.top})),a=t.sortBy(e,(function(t){return 1*t.baseData.top+1*t.baseData.height})),o=(1*i[0].baseData.top+(1*a[a.length-1].baseData.top+1*a[a.length-1].baseData.height))/2;e.map((function(t){return t.baseData.top=o-t.baseData.height/2}))}(r,e);break;case"topDistribution":!function(e){if(e.length<3)return console.warn("A minimum of three elements are required for a distribution arrangement"),!1;var n=t.sortBy(e,(function(t){return t.baseData.top})),r=(n[n.length-1].baseData.top-n[0].baseData.top)/(n.length-1);n.map((function(t,e){e>0&&e<n.length-1&&(t.baseData.top=1*n[0].baseData.top+r*e)}))}(r);break;case"bottomDistribution":!function(e){if(e.length<3)return console.warn("A minimum of three elements are required for a distribution arrangement"),!1;var n=t.sortBy(e,(function(t){return t.baseData.top+t.baseData.height})),r=(n[n.length-1].baseData.top+n[n.length-1].baseData.height-(n[0].baseData.top+n[0].baseData.height))/(n.length-1);n.map((function(t,e){e>0&&e<n.length-1&&(t.baseData.top=1*n[0].baseData.top+1*n[0].baseData.height-1*t.baseData.height+r*e)}))}(r);break;case"xCenterDistribution":!function(e){if(e.length<3)return console.warn("A minimum of three elements are required for a distribution arrangement"),!1;var n=t.sortBy(e,(function(t){return t.baseData.left+t.baseData.width/2})),r=1*n[n.length-1].baseData.left+n[n.length-1].baseData.width/2,i=1*n[0].baseData.left+n[0].baseData.width/2,a=(r-i)/(n.length-1);n.map((function(t,e){e>0&&e<n.length-1&&(t.baseData.left=i-t.baseData.width/2+a*e)}))}(r);break;case"leftDistribution":!function(e){if(e.length<3)return console.warn("A minimum of three elements are required for a distribution arrangement"),!1;var n=t.sortBy(e,(function(t){return t.baseData.left})),r=(n[n.length-1].baseData.left-n[0].baseData.left)/(n.length-1);n.map((function(t,e){e>0&&e<n.length-1&&(t.baseData.left=n[0].baseData.left+r*e)}))}(r);break;case"rightDistribution":!function(e){if(e.length<3)return console.warn("A minimum of three elements are required for a distribution arrangement"),!1;var n=t.sortBy(e,(function(t){return t.baseData.left+t.baseData.width})),r=(n[n.length-1].baseData.left+n[n.length-1].baseData.width-(n[0].baseData.left+n[0].baseData.width))/(n.length-1);n.map((function(t,e){e>0&&e<n.length-1&&(t.baseData.left=n[0].baseData.left+n[0].baseData.width-t.baseData.width+r*e)}))}(r);break;case"yCenterDistribution":!function(e){if(e.length<3)return console.warn("A minimum of three elements are required for a distribution arrangement"),!1;var n=t.sortBy(e,(function(t){return t.baseData.top+t.baseData.height/2})),r=1*n[n.length-1].baseData.top+n[n.length-1].baseData.height/2,i=1*n[0].baseData.top+n[0].baseData.height/2,a=(r-i)/(n.length-1);n.map((function(t,e){e>0&&e<n.length-1&&(t.baseData.top=i-t.baseData.height/2+a*e)}))}(r)}}},tr={setPageData:function(t,e){t.pages[0]=e},parasePages:function(t,e){e instanceof Array&&(t.pages=e.map((function(t,e){return t.name||(t.name="页面"+(e+1)),t.path||(t.path="page"+(e+1)),t})))},addPage:function(t,e){var n=t.pages.length+1;e.name="页面"+n,e.path="page"+n,t.pages.push(e),t.pageIndex=t.pages.length-1,t.resource={jspaths:[],csspaths:[],otherpaths:[]}},setCurrentPageIndex:function(t,e){var n=t.globalEvents,r=t.globalVars,i=t.list,a=t.name,o=t.theme,s=t.plant,u=t.shareVariableTree,l=t.resource;t.pages[t.pageIndex]={globalEvents:n,globalVars:r,list:i,name:a,theme:o,plant:s,shareVariableTree:u,resource:l},t.pageIndex=e},setPageDataForIndex:function(t,e){var n=e.index,r=e.data;t.pages[n]=r},setPageName:function(t,e){t.name=e,t.pages[t.pageIndex].name=e},saveCurrentPageData:function(t){var e=t.globalEvents,n=t.globalVars,r=t.list,i=t.name,a=t.theme,o=t.plant,s=t.shareVariableTree,u=t.resource;t.pages[t.pageIndex]={globalEvents:e,globalVars:n,list:r,name:i,theme:a,plant:o,shareVariableTree:s,resource:u}},getCurrentPageData:function(t){var e=t.globalEvents,n=t.globalVars,r=t.list,i=t.name,a=t.theme,o=t.plant,s=t.shareVariableTree,u=t.resource;t.pages[t.pageIndex]={globalEvents:e,globalVars:n,list:r,name:i,theme:a,plant:o,shareVariableTree:s,resource:u}}},er={segmentationContainer:function(e,n){var r=t.cloneDeep(e.list),i=n.containerData,a=n.direction,o=[];if("del"==a)if(i.pid){var s=function(t){if(t.length)for(var e=0;e<t.length;e++)t[e].hasOwnProperty("children")&&t[e].children.length&&t[e].children.map((function(n){t[e].cid=n.pid})),i.pid===t[e].cid?t[e].children.length&&(t[e].children.map((function(t){t.cid!==i.cid&&t.hasOwnProperty("children")&&t.children.length&&(o=t.children)})),t[e].children=[],o.length&&(t[e].children=o)):t[e].hasOwnProperty("children")&&s(t[e].children)};r.length&&s(r)}else r.length&&(r=r.filter((function(t){return t.cid!==i.cid})));else if(i.pid){var u=function(t){for(var e=0;e<t.length;e++)if(i.cid===t[e].cid){t[e].direction=a,1===t[e].children.length&&((o=t[e].children)[0].pid=null,t[e].children=[]);for(var n=0;n<2;n++)t[e].children.push({isLock:!1,isShow:!0,baseData:{width:"col"==a?"100%":"50%",height:"col"==a?"50%":"100%",angle:0,penetrate:0,opacity:100},componentType:"selectContainer",iconClass:"__vue_devtool_undefined__",isAssembly:"__vue_devtool_undefined__",source:[],comData:{actions:[],option:{grid:[{val:0,unit:"px"},{val:0,unit:"px"},{val:0,unit:"px"},{val:0,unit:"px"}],bgColor:{alpha:1,blue:0,green:0,red:0,flag:1,style:"transparent"}}},tmpData:{},dynamic:0,filePath:"/anov-prod/mgt/go/assembly/162-bgImage.png",origin:"anov-go",name:"容器组件",path:"/index.js",viewComName:"selectContainer",optionComName:"",dataComName:"",eventComName:"",direction:"col",assemblyDeveloper:"",devEmail:"",version:null,devDept:"",toggle:!0,cid:xe(),pid:t[e].cid,nestIndex:0,children:[],isTop:!1,isCol:"col"==a,isRow:"col"!=a,isDragged:!1,grandParentId:i.pid});o.length&&(o[0].cid=xe(),o[0].pid=t[e].children[0].cid,t[e].children[0].children=o)}else t[e].hasOwnProperty("children")&&u(t[e].children)};r.length&&u(r)}else{var l=ie(r,i.cid);if(l){l.direction=a,1===l.children.length&&(o=l.children,l.children=[]);for(var c=0;c<2;c++)l.children.push({isLock:!1,isShow:!0,baseData:{width:"col"==a?"100%":"50%",height:"col"==a?"50%":"100%",angle:0,penetrate:0,opacity:100},componentType:"selectContainer",iconClass:"__vue_devtool_undefined__",isAssembly:"__vue_devtool_undefined__",source:[],comData:{actions:[],option:{grid:[{val:0,unit:"px"},{val:0,unit:"px"},{val:0,unit:"px"},{val:0,unit:"px"}],bgColor:{alpha:1,blue:0,green:0,red:0,flag:1,style:"transparent"}}},tmpData:{},dynamic:0,filePath:"/anov-prod/mgt/go/assembly/162-bgImage.png",origin:"anov-go",name:"容器组件",path:"/index.js",viewComName:"selectContainer",optionComName:"",dataComName:"",eventComName:"",assemblyDeveloper:"",devEmail:"",version:null,devDept:"",toggle:!0,cid:xe(),pid:l.cid,nestIndex:0,children:[],isTop:!1,isCol:"col"==a,isRow:"col"!=a,isDragged:!1,grandParentId:i.pid});o.length&&(o[0].cid=xe(),o[0].pid=l.children[0].cid,l.children[0].children=o)}}e.list=r}},nr={updataList:function(t,e){var n=t.commit;e&&n("updataList",e),n("updateTree")},updataBaseData:function(t,e){var n=t.commit;e&&n("updataBaseData",e)},setActive:function(t,e){var n=t.commit;e&&n("setActive",e)},setSyncFlag:function(t,e){var n=t.commit;e&&n("setSyncFlag",e)},execute:function(t,e){var n=t.commit;e&&n("execute",e)},updataAnimationForComponent:function(t,e){var n=t.commit;e&&n("updataAnimationForComponent",e)},updataAnimation:function(t,e){(0,t.commit)("updataAnimation",e)},setOptionForCom:function(t,e){(0,t.commit)("setOptionForCom",e)},updatComs:function(t,e){var n=t.commit;setTimeout((function(){n("updatComs",e)}))},updatComsForVar:function(e,n){var r=e.dispatch,i=e.state,a=i.globalVars.map((function(t){var e,r;if((null===(e=null==t?void 0:t.forkValue)||void 0===e?void 0:e.length)&&(null===(r=null==t?void 0:t.forkValue)||void 0===r?void 0:r.includes(n))||t.forkValue==n)return t.mapField})).filter((function(t){return t})),o=[n];(null==a?void 0:a.length)&&(o=t.uniq(h([n],a,!0)));for(var s=[],u=0,l=o;u<l.length;u++){var c=l[u];i.shareVariableTree[c]&&s.push.apply(s,i.shareVariableTree[c])}if(null==s?void 0:s.length)for(var f=0,d=s;f<d.length;f++){r("updatComs",d[f])}},goEditVar:function(t,e){var n=t.commit,r=t.state,i=e.key,a=e.value,o=r.globalVars.find((function(t){return t.mapField==i}));o.fork?console.warn("禁止修改,有引用值的变量!"):o&&(o.originalValue=a,o.update=!0,n("editGoVar",o))}},rr={getCurrentPage:function(t){return t.pages.length?t.pages[t.pageIndex]:[]},globalSourceTree:function(e){if(e.list.length&&e.globalSource.length){var n=[];return ue(t.cloneDeep(e.list),(function(t){var e,r,i;if("globalData"==(null===(r=null===(e=null==t?void 0:t.tmpData)||void 0===e?void 0:e.source)||void 0===r?void 0:r.type)){var a=null===(i=null==t?void 0:t.tmpData)||void 0===i?void 0:i.source.globalData;n.push({name:t.name,cid:t.cid,sourceId:a.id,viewComName:t.viewComName})}})),n}return[]}},ir={namespaced:!0,state:o,mutations:u(u(u(u(u(u(u(u(u({},f),Pe),Ye),Xn),$n),Jn),Qn),tr),er),actions:nr,getters:rr},ar=function(){function t(){}return t.setAppStore=function(e){t.store=e},t.prototype.getState=function(){return t.store.state[t.storeModule]},t.prototype.mapState=function(e){return or(t.storeModule,e)},t.prototype.mapGetters=function(e){return ur(t.storeModule,e)},t.prototype.mapMutations=function(e){return sr(t.storeModule,e)},t.prototype.callState=function(e){return t.store.state[t.storeModule][e]},t.prototype.callGetter=function(e,n){return t.store.getters[t.storeModule+"/"+e]},t.prototype.callMutation=function(e,n,r){r?t.store.commit(t.storeModule+"/"+e,n,!0):t.store.commit(t.storeModule+"/"+e,n)},t.prototype.callAction=function(e,n){t.store.dispatch(t.storeModule+"/"+e,n)},t.storeModule="GoCom",t}(),or=cr((function(t,e){var n;return lr(e).forEach((function(e){var r=e.key,i=e.val;n[r]=function(){var e=this.$store.state,n=this.$store.getters;if(t){var r=hr(this.$store,"mapState",t);if(!r)return;e=r.context.state,n=r.context.getters}return"function"==typeof i?i.call(this,e,n):e[i]},n[r].VuexServer=!0})),n})),sr=cr((function(t,e){var n;return lr(e).forEach((function(e){var r=e.key,i=e.val;n[r]=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var r=this.$store.commit;if(t){var a=hr(this.$store,"mapMutations",t);if(!a)return;r=a.context.commit}return"function"==typeof i?i.apply(this,[r].concat(e)):r.apply(this.$store,[i].concat(e))}})),n})),ur=cr((function(t,e){var n={};return lr(e).forEach((function(e){var r=e.key,i=e.val;i=t+i,n[r]=function(){if(!t||hr(this.$store,"mapGetters",t)){if("production"===process.env.NODE_ENV||i in this.$store.getters)return this.$store.getters[i];console.error("[VuexServer] unknown getter: ".concat(i))}},n[r].VuexServer=!0})),n}));function lr(t){return Array.isArray(t)?t.map((function(t){return{key:t,val:t}})):Object.keys(t).map((function(e){return{key:e,val:t[e]}}))}function cr(t){return function(e,n){return"string"!=typeof e?(n=e,e=""):"/"!==e.charAt(e.length-1)&&(e+="/"),t(e,n)}}function hr(t,e,n){var r=t._modulesNamespaceMap[n];return"production"===process.env.NODE_ENV||r||console.error("[VuexServer] module namespace not found in ".concat(e,"(): ").concat(n)),r}var fr=function(){function t(t){var e=this;if(this.isLock=!1,this.isShow=!0,this.baseData={left:0,top:0,width:300,height:200,angle:0,opacity:100,rotate:0,rotateY:0},this.componentType="BaseComponent",this.cid=xe(),t){Object.keys(t).forEach((function(n){e[n]=t[n]}));["AnEchartsMap","AnMaptalks","AnEchartsMap1","AnArcgisMapBase","AnAMap1","AnCesium","AnThreeMap3DChina","AnThreeMapForCesium","AnGisMap","AnMineMap","MineMapMarkerLayer","MineMapClusterLayer"].includes(t.viewComName)&&(this.componentType="MultiStateComponent"),"AnDynamic"!==t.viewComName&&"AmDynamic"!==t.viewComName||(this.componentType="dynamicComponent")}}return t.prototype.setIndex=function(t){this.z=t},t}(),dr=function(){function e(t){this.vueServer=t,this.loadScript=cn}return e.setStore=function(t){this.store=t},e.prototype.loadComponents=function(e){var n=e&&e.list?e.list:[];ue(n,(function(t){t.viewComName&&(t&&t.path&&t.path,t.origin,t.viewComName?t.viewComName:t.rawData.viewComName)})),e&&this.vueServer.callMutation("reversal",t.cloneDeep(e))},e.prototype.addStore=function(t){this.vueServer.callMutation("setActive",{id:t}),this.vueServer.callMutation("addComs",this)},e.prototype._addPlantStore=function(){this.vueServer.callMutation("setPlant",this)},e.prototype._loadComTmp=function(t,e){return l(this,void 0,void 0,(function(){var n,r,i=this;return c(this,(function(a){switch(a.label){case 0:if(window[e])return[3,5];n=function(e){var n;return c(this,(function(r){switch(r.label){case 0:return n=t[e],[4,new Promise((function(t){t(i._load(n))}))];case 1:return r.sent(),[2]}}))},r=0,a.label=1;case 1:return r<t.length?[5,n(r)]:[3,4];case 2:a.sent(),a.label=3;case 3:return r++,[3,1];case 4:window[e]=e,a.label=5;case 5:return[2]}}))}))},e.prototype._load=function(t){return l(this,void 0,void 0,(function(){var e=this;return c(this,(function(n){return[2,new Promise((function(n){n(e.loadScript(t))}))]}))}))},e}(),pr=function(){function t(t){var e=t.dbName,n=t.tables,r=t.version,i=void 0===r?1:r,a=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n}(t,["dbName","tables","version"]);this.dbName=e,this.tables=n,this.version=i,this.openDB(u({dbName:e,tables:n,version:i},a))}return t.deleteDB=function(t){var e;null===(e=window.indexedDB)||void 0===e||e.deleteDatabase(t)},t.prototype.deleteItem=function(t,e,n){var r=this.storage.transaction(t,"readwrite").objectStore(t).delete(e);return r.onsuccess=function(t){"function"==typeof n&&n(t)},r},t.prototype.getItem=function(t,e,n){var r=this.storage.transaction(t,"readwrite").objectStore(t),i=null;return(i=e?r.get(e):r.getAll()).onsuccess=function(t){var e;"function"==typeof n&&n(null===(e=null==t?void 0:t.target)||void 0===e?void 0:e.result)},i.onerror=function(t){console.error(t),n(t)},i},t.prototype.setItem=function(t,e,n,r){var i=this.storage.transaction(t,"readwrite").objectStore(t).put(n,e);return i.onsuccess=function(t){"function"==typeof r&&r(t)},i.onerror=function(t){"function"==typeof r&&r(t)},i},t.prototype.get=function(t,e){return this.getItem(this.tables[0],t,e)},t.prototype.set=function(t,e,n){return this.setItem(this.tables[0],t,e,n)},t.prototype.delete=function(t,e){return this.deleteItem(this.tables[0],t,e)},t.prototype.clear=function(t,e){var n=this.storage.transaction(this.dbName,"readwrite").objectStore(t).clear();return n.onsuccess=function(t){"function"==typeof e&&e(t)},n},t.prototype.getDB=function(){return this.storage},t.prototype.closeDB=function(){this.storage.close()},t.prototype.openDB=function(t){var e=this,n=t.dbName,r=t.tables,i=t.version,a=t.callback,o=window.indexedDB;if(o)if((null==r?void 0:r.length)<1)console.error("表名不能为空");else{var s=o.open(n,i);s.onerror=function(t){var e,n;console.error("打开数据库失败: ".concat(null===(n=null===(e=t.currentTarget)||void 0===e?void 0:e.error)||void 0===n?void 0:n.message)),"function"==typeof a&&a(t)},s.onsuccess=function(t){var n;e.storage=null===(n=t.target)||void 0===n?void 0:n.result,"function"==typeof a&&a(t)},s.onupgradeneeded=function(t){var n;e.storage=null===(n=t.target)||void 0===n?void 0:n.result,r.forEach((function(n){e.storage.objectStoreNames.contains(n)||(e.storage.createObjectStore(n),"function"==typeof a&&a(t))}))}}else console.error("你的浏览器不支持indexedDB")},t}(),gr=function(){function e(){this.VueServer=new ar}return e.getInstance=function(){return this.instance||(this.db=new pr({dbName:"AnovGo",tables:["logs"]}),this.instance=new e),this.instance},e.prototype.getAppStore=function(){return e.store},e.setAppStore=function(t){e.store=t,ar.setAppStore(t),dr.setStore(t)},e.prototype.add=function(t,e,n){e.MultiState?this.VueServer.callMutation("addStateChildren",e):(this.VueServer.callMutation("addComs",{com:e,isMobile:n}),this.VueServer.callMutation("setActive",{id:t}))},e.prototype.addForParent=function(t,e,n,r){this.VueServer.callMutation("addComsForParent",{com:e,PID:n,isMobile:r}),this.VueServer.callMutation("setActive",{id:t})},e.prototype.render=function(t,e){var n=new fr(t);e?this.add(n.cid,n,!0):this.add(n.cid,n)},e.prototype.renderForParent=function(t,e,n){var r=new fr(t);void 0!==n?this.addForParent(r.cid,r,e,n):this.addForParent(r.cid,r,e)},e.prototype.reversal=function(t){new dr(new ar).loadComponents(t)},e.prototype.log=function(t,n,r,i,a){var o=(new Date).toLocaleString();e.db.set(o,{type:n,info:r,user:t,trace:i}),e.db.get(null,(function(t){a&&a()}))},e.prototype.emitEvent=function(e,n){var r=this,i=this.VueServer.callState("globalEvents"),a=this.VueServer.callState("globalVars"),o=this.VueServer.callState("shareVariableTree"),s=this.VueServer.callState("globalSource");!function(e,n,r,i,a,o,s,u,l){for(var c=a.cid,h=a.actions.eventName,f=2===a.actions.mode,d=e.filter((function(t){return t.id===c&&t.eventType===h&&(!f||parseInt(t.index)+1===parseInt(a.index))})),p=function(t,e){return(null==t?void 0:t.field)&&a[null==t?void 0:t.field],(null==t?void 0:t.forkValue)&&a[null==t?void 0:t.forkValue],(null==t?void 0:t.field)&&(null==a?void 0:a.data)&&(null==a||a.data[null==t?void 0:t.field]),(null==t?void 0:t.forkValue)&&(null==a?void 0:a.data)&&(null==a||a.data[null==t?void 0:t.forkValue]),t.id===e&&!(null==t?void 0:t.forkValue)},g=function(t,e){return Array.isArray(e)?e.some((function(e){return t&&(void 0!==t[e]||t.hasOwnProperty(e))})):"string"==typeof e?t&&(void 0!==t[e]||t.hasOwnProperty(e)):void 0},v=function(t,e){var n,r;if(g(t,null==e?void 0:e.field)||g(t,null==e?void 0:e.forkValue))r=t[null==e?void 0:e.field]?t[e.field]:"";else if(g(t.data,null==e?void 0:e.field)||g(t.data,null==e?void 0:e.forkValue))r=t.data[null==e?void 0:e.field]?t.data[e.field]:"";else for(var a=ie(i,c),o=0,s=(null===(n=null==a?void 0:a.tmpData)||void 0===n?void 0:n.actions)||[];o<s.length;o++){var u=s[o].vars.find((function(t){return(null==t?void 0:t.mapField)===(null==e?void 0:e.mapField)}));if(u){r=u.value;break}}return r},m=[],y=0,_=n;y<_.length;y++)if(p(P=_[y],c)&&P.type==h){var b=v(a,P),w=void 0!==b?b:P.value;P.value=w,P.converter&&P.converterCode?(P.originalValue=w,P.value=Me(P.converterCode,w)):(P.originalValue=w,P.value=w);for(var D=0,S=n;D<S.length;D++){var x=S[D];if(x.id!=c&&!(null==P?void 0:P.forkValue)&&x.mapField==P.mapField){var T=void 0!==b?b:x.value;x.value=T,x.converter&&x.converterCode?(x.originalValue=T,x.value=Me(x.converterCode,T)):(x.originalValue=T,x.value=T)}}m.push(P)}for(var k=n.filter((function(t){return m&&(m.find((function(e){return e.mapField==t.mapField}))||m.find((function(e){return e.mapField==t.forkValue}))||m.find((function(e){return Array.isArray(t.forkValue)&&t.forkValue.includes(e.mapField)})))})),C=function(t){if(!r)return"break";var e=r[t.mapField]||[];if(t.fork)if(Array.isArray(t.forkValue))t.originalValue=t.forkValue.map((function(t){return n.find((function(e){return e.mapField==t})).value}));else{var a=n.find((function(e){return e.mapField==t.forkValue}));t.originalValue=a.value}t.converter&&t.converterCode?t.value=Me(t.converterCode,t.originalValue):t.value=t.originalValue;for(var o=function(e){t.eventSourceId=e;var r=ie(i,e);(null==t?void 0:t.delayUpdate)||setTimeout((function(){Hn(r,n,!0,s,l,i)}))},u=0,c=e;u<c.length;u++)o(c[u])},E=0,O=k=t.uniqBy(k,"mapField");E<O.length&&"break"!==C(P=O[E]);E++);for(var M=0,A=d;M<A.length;M++){var P;switch((P=A[M]).type){case"link":window.open(P.link,P.target);break;case"page":u&&u(P);break;case"dynamic":for(var B=0,R=P.dynamic||[];B<R.length;B++){var N=R[B];if(P.id===a.cid){var V=ie(i,N.pid);V&&(V.activeDynamic=N.name,V.isShow=N.visible||!f||P.index===a.index-1,o({cid:V.cid,flag:N.visible}))}}break;case"toggle":for(var I=0,F=P.children||[];I<F.length;I++){var Y=(z=F[I]).visible&&(!f||P.index===a.index-1);o({cid:z.cid,flag:Y})}break;case"update":for(var L=function(t){var e=ie(i,t.cid);setTimeout((function(){Hn(e,n,!0,s)}))},j=0,H=P.children||[];j<H.length;j++){var z;L(z=H[j])}}}}(i,a,o,this.VueServer.callState("list"),e,(function(t){r.VueServer.callMutation("changeShow",t)}),(function(t){r.VueServer.callMutation("updataSourceForComponent",t)}),n,s)},e}();function vr(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function mr(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}
|
|
32
|
+
(n=Jt).mode.CTRGladman=function(){var t=n.lib.BlockCipherMode.extend();function e(t){if(255==(t>>24&255)){var e=t>>16&255,n=t>>8&255,r=255&t;255===e?(e=0,255===n?(n=0,255===r?r=0:++r):++n):++e,t=0,t+=e<<16,t+=n<<8,t+=r}else t+=1<<24;return t}function r(t){return 0===(t[0]=e(t[0]))&&(t[1]=e(t[1])),t}var i=t.Encryptor=t.extend({processBlock:function(t,e){var n=this._cipher,i=n.blockSize,a=this._iv,o=this._counter;a&&(o=this._counter=a.slice(0),this._iv=void 0),r(o);var s=o.slice(0);n.encryptBlock(s,0);for(var u=0;u<i;u++)t[e+u]^=s[u]}});return t.Decryptor=i,t}(),n.mode.CTRGladman)})),o((function(t,e){var n,r,i;t.exports=((i=Jt).mode.OFB=(n=i.lib.BlockCipherMode.extend(),r=n.Encryptor=n.extend({processBlock:function(t,e){var n=this._cipher,r=n.blockSize,i=this._iv,a=this._keystream;i&&(a=this._keystream=i.slice(0),this._iv=void 0),n.encryptBlock(a,0);for(var o=0;o<r;o++)t[e+o]^=a[o]}}),n.Decryptor=r,n),i.mode.OFB)})),o((function(t,e){var n,r;t.exports=((r=Jt).mode.ECB=((n=r.lib.BlockCipherMode.extend()).Encryptor=n.extend({processBlock:function(t,e){this._cipher.encryptBlock(t,e)}}),n.Decryptor=n.extend({processBlock:function(t,e){this._cipher.decryptBlock(t,e)}}),n),r.mode.ECB)})),o((function(t,e){var n;t.exports=((n=Jt).pad.AnsiX923={pad:function(t,e){var n=t.sigBytes,r=4*e,i=r-n%r,a=n+i-1;t.clamp(),t.words[a>>>2]|=i<<24-a%4*8,t.sigBytes+=i},unpad:function(t){var e=255&t.words[t.sigBytes-1>>>2];t.sigBytes-=e}},n.pad.Ansix923)})),o((function(t,e){var n;t.exports=((n=Jt).pad.Iso10126={pad:function(t,e){var r=4*e,i=r-t.sigBytes%r;t.concat(n.lib.WordArray.random(i-1)).concat(n.lib.WordArray.create([i<<24],1))},unpad:function(t){var e=255&t.words[t.sigBytes-1>>>2];t.sigBytes-=e}},n.pad.Iso10126)})),o((function(t,e){var n;t.exports=((n=Jt).pad.Iso97971={pad:function(t,e){t.concat(n.lib.WordArray.create([2147483648],1)),n.pad.ZeroPadding.pad(t,e)},unpad:function(t){n.pad.ZeroPadding.unpad(t),t.sigBytes--}},n.pad.Iso97971)})),o((function(t,e){var n;t.exports=((n=Jt).pad.ZeroPadding={pad:function(t,e){var n=4*e;t.clamp(),t.sigBytes+=n-(t.sigBytes%n||n)},unpad:function(t){var e=t.words,n=t.sigBytes-1;for(n=t.sigBytes-1;n>=0;n--)if(e[n>>>2]>>>24-n%4*8&255){t.sigBytes=n+1;break}}},n.pad.ZeroPadding)})),o((function(t,e){var n;t.exports=((n=Jt).pad.NoPadding={pad:function(){},unpad:function(){}},n.pad.NoPadding)})),o((function(t,e){var n;t.exports=(n=Jt,function(t){var e=n,r=e.lib.CipherParams,i=e.enc.Hex;e.format.Hex={stringify:function(t){return t.ciphertext.toString(i)},parse:function(t){var e=i.parse(t);return r.create({ciphertext:e})}}}(),n.format.Hex)})),o((function(t,e){var n;t.exports=(n=Jt,function(){var t=n,e=t.lib.BlockCipher,r=t.algo,i=[],a=[],o=[],s=[],u=[],l=[],c=[],h=[],f=[],d=[];!function(){for(var t=[],e=0;e<256;e++)t[e]=e<128?e<<1:e<<1^283;var n=0,r=0;for(e=0;e<256;e++){var p=r^r<<1^r<<2^r<<3^r<<4;p=p>>>8^255&p^99,i[n]=p,a[p]=n;var g=t[n],m=t[g],v=t[m],y=257*t[p]^16843008*p;o[n]=y<<24|y>>>8,s[n]=y<<16|y>>>16,u[n]=y<<8|y>>>24,l[n]=y,y=16843009*v^65537*m^257*g^16843008*n,c[p]=y<<24|y>>>8,h[p]=y<<16|y>>>16,f[p]=y<<8|y>>>24,d[p]=y,n?(n=g^t[t[t[v^g]]],r^=t[t[r]]):n=r=1}}();var p=[0,1,2,4,8,16,32,64,128,27,54],g=r.AES=e.extend({_doReset:function(){if(!this._nRounds||this._keyPriorReset!==this._key){for(var t=this._keyPriorReset=this._key,e=t.words,n=t.sigBytes/4,r=4*((this._nRounds=n+6)+1),a=this._keySchedule=[],o=0;o<r;o++)o<n?a[o]=e[o]:(l=a[o-1],o%n?n>6&&o%n==4&&(l=i[l>>>24]<<24|i[l>>>16&255]<<16|i[l>>>8&255]<<8|i[255&l]):(l=i[(l=l<<8|l>>>24)>>>24]<<24|i[l>>>16&255]<<16|i[l>>>8&255]<<8|i[255&l],l^=p[o/n|0]<<24),a[o]=a[o-n]^l);for(var s=this._invKeySchedule=[],u=0;u<r;u++){if(o=r-u,u%4)var l=a[o];else l=a[o-4];s[u]=u<4||o<=4?l:c[i[l>>>24]]^h[i[l>>>16&255]]^f[i[l>>>8&255]]^d[i[255&l]]}}},encryptBlock:function(t,e){this._doCryptBlock(t,e,this._keySchedule,o,s,u,l,i)},decryptBlock:function(t,e){var n=t[e+1];t[e+1]=t[e+3],t[e+3]=n,this._doCryptBlock(t,e,this._invKeySchedule,c,h,f,d,a),n=t[e+1],t[e+1]=t[e+3],t[e+3]=n},_doCryptBlock:function(t,e,n,r,i,a,o,s){for(var u=this._nRounds,l=t[e]^n[0],c=t[e+1]^n[1],h=t[e+2]^n[2],f=t[e+3]^n[3],d=4,p=1;p<u;p++){var g=r[l>>>24]^i[c>>>16&255]^a[h>>>8&255]^o[255&f]^n[d++],m=r[c>>>24]^i[h>>>16&255]^a[f>>>8&255]^o[255&l]^n[d++],v=r[h>>>24]^i[f>>>16&255]^a[l>>>8&255]^o[255&c]^n[d++],y=r[f>>>24]^i[l>>>16&255]^a[c>>>8&255]^o[255&h]^n[d++];l=g,c=m,h=v,f=y}g=(s[l>>>24]<<24|s[c>>>16&255]<<16|s[h>>>8&255]<<8|s[255&f])^n[d++],m=(s[c>>>24]<<24|s[h>>>16&255]<<16|s[f>>>8&255]<<8|s[255&l])^n[d++],v=(s[h>>>24]<<24|s[f>>>16&255]<<16|s[l>>>8&255]<<8|s[255&c])^n[d++],y=(s[f>>>24]<<24|s[l>>>16&255]<<16|s[c>>>8&255]<<8|s[255&h])^n[d++],t[e]=g,t[e+1]=m,t[e+2]=v,t[e+3]=y},keySize:8});t.AES=e._createHelper(g)}(),n.AES)})),o((function(t,e){var n;t.exports=(n=Jt,function(){var t=n,e=t.lib,r=e.WordArray,i=e.BlockCipher,a=t.algo,o=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],s=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],u=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],l=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}],c=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],h=a.DES=i.extend({_doReset:function(){for(var t=this._key.words,e=[],n=0;n<56;n++){var r=o[n]-1;e[n]=t[r>>>5]>>>31-r%32&1}for(var i=this._subKeys=[],a=0;a<16;a++){var l=i[a]=[],c=u[a];for(n=0;n<24;n++)l[n/6|0]|=e[(s[n]-1+c)%28]<<31-n%6,l[4+(n/6|0)]|=e[28+(s[n+24]-1+c)%28]<<31-n%6;for(l[0]=l[0]<<1|l[0]>>>31,n=1;n<7;n++)l[n]=l[n]>>>4*(n-1)+3;l[7]=l[7]<<5|l[7]>>>27}var h=this._invSubKeys=[];for(n=0;n<16;n++)h[n]=i[15-n]},encryptBlock:function(t,e){this._doCryptBlock(t,e,this._subKeys)},decryptBlock:function(t,e){this._doCryptBlock(t,e,this._invSubKeys)},_doCryptBlock:function(t,e,n){this._lBlock=t[e],this._rBlock=t[e+1],f.call(this,4,252645135),f.call(this,16,65535),d.call(this,2,858993459),d.call(this,8,16711935),f.call(this,1,1431655765);for(var r=0;r<16;r++){for(var i=n[r],a=this._lBlock,o=this._rBlock,s=0,u=0;u<8;u++)s|=l[u][((o^i[u])&c[u])>>>0];this._lBlock=o,this._rBlock=a^s}var h=this._lBlock;this._lBlock=this._rBlock,this._rBlock=h,f.call(this,1,1431655765),d.call(this,8,16711935),d.call(this,2,858993459),f.call(this,16,65535),f.call(this,4,252645135),t[e]=this._lBlock,t[e+1]=this._rBlock},keySize:2,ivSize:2,blockSize:2});function f(t,e){var n=(this._lBlock>>>t^this._rBlock)&e;this._rBlock^=n,this._lBlock^=n<<t}function d(t,e){var n=(this._rBlock>>>t^this._lBlock)&e;this._lBlock^=n,this._rBlock^=n<<t}t.DES=i._createHelper(h);var p=a.TripleDES=i.extend({_doReset:function(){var t=this._key.words;if(2!==t.length&&4!==t.length&&t.length<6)throw new Error("Invalid key length - 3DES requires the key length to be 64, 128, 192 or >192.");var e=t.slice(0,2),n=t.length<4?t.slice(0,2):t.slice(2,4),i=t.length<6?t.slice(0,2):t.slice(4,6);this._des1=h.createEncryptor(r.create(e)),this._des2=h.createEncryptor(r.create(n)),this._des3=h.createEncryptor(r.create(i))},encryptBlock:function(t,e){this._des1.encryptBlock(t,e),this._des2.decryptBlock(t,e),this._des3.encryptBlock(t,e)},decryptBlock:function(t,e){this._des3.decryptBlock(t,e),this._des2.encryptBlock(t,e),this._des1.decryptBlock(t,e)},keySize:6,ivSize:2,blockSize:2});t.TripleDES=i._createHelper(p)}(),n.TripleDES)})),o((function(t,e){var n;t.exports=(n=Jt,function(){var t=n,e=t.lib.StreamCipher,r=t.algo,i=r.RC4=e.extend({_doReset:function(){for(var t=this._key,e=t.words,n=t.sigBytes,r=this._S=[],i=0;i<256;i++)r[i]=i;i=0;for(var a=0;i<256;i++){var o=i%n,s=e[o>>>2]>>>24-o%4*8&255;a=(a+r[i]+s)%256;var u=r[i];r[i]=r[a],r[a]=u}this._i=this._j=0},_doProcessBlock:function(t,e){t[e]^=a.call(this)},keySize:8,ivSize:0});function a(){for(var t=this._S,e=this._i,n=this._j,r=0,i=0;i<4;i++){n=(n+t[e=(e+1)%256])%256;var a=t[e];t[e]=t[n],t[n]=a,r|=t[(t[e]+t[n])%256]<<24-8*i}return this._i=e,this._j=n,r}t.RC4=e._createHelper(i);var o=r.RC4Drop=i.extend({cfg:i.cfg.extend({drop:192}),_doReset:function(){i._doReset.call(this);for(var t=this.cfg.drop;t>0;t--)a.call(this)}});t.RC4Drop=e._createHelper(o)}(),n.RC4)})),o((function(t,e){var n;t.exports=(n=Jt,function(){var t=n,e=t.lib.StreamCipher,r=t.algo,i=[],a=[],o=[],s=r.Rabbit=e.extend({_doReset:function(){for(var t=this._key.words,e=this.cfg.iv,n=0;n<4;n++)t[n]=16711935&(t[n]<<8|t[n]>>>24)|4278255360&(t[n]<<24|t[n]>>>8);var r=this._X=[t[0],t[3]<<16|t[2]>>>16,t[1],t[0]<<16|t[3]>>>16,t[2],t[1]<<16|t[0]>>>16,t[3],t[2]<<16|t[1]>>>16],i=this._C=[t[2]<<16|t[2]>>>16,4294901760&t[0]|65535&t[1],t[3]<<16|t[3]>>>16,4294901760&t[1]|65535&t[2],t[0]<<16|t[0]>>>16,4294901760&t[2]|65535&t[3],t[1]<<16|t[1]>>>16,4294901760&t[3]|65535&t[0]];for(this._b=0,n=0;n<4;n++)u.call(this);for(n=0;n<8;n++)i[n]^=r[n+4&7];if(e){var a=e.words,o=a[0],s=a[1],l=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),c=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),h=l>>>16|4294901760&c,f=c<<16|65535&l;for(i[0]^=l,i[1]^=h,i[2]^=c,i[3]^=f,i[4]^=l,i[5]^=h,i[6]^=c,i[7]^=f,n=0;n<4;n++)u.call(this)}},_doProcessBlock:function(t,e){var n=this._X;u.call(this),i[0]=n[0]^n[5]>>>16^n[3]<<16,i[1]=n[2]^n[7]>>>16^n[5]<<16,i[2]=n[4]^n[1]>>>16^n[7]<<16,i[3]=n[6]^n[3]>>>16^n[1]<<16;for(var r=0;r<4;r++)i[r]=16711935&(i[r]<<8|i[r]>>>24)|4278255360&(i[r]<<24|i[r]>>>8),t[e+r]^=i[r]},blockSize:4,ivSize:2});function u(){for(var t=this._X,e=this._C,n=0;n<8;n++)a[n]=e[n];for(e[0]=e[0]+1295307597+this._b|0,e[1]=e[1]+3545052371+(e[0]>>>0<a[0]>>>0?1:0)|0,e[2]=e[2]+886263092+(e[1]>>>0<a[1]>>>0?1:0)|0,e[3]=e[3]+1295307597+(e[2]>>>0<a[2]>>>0?1:0)|0,e[4]=e[4]+3545052371+(e[3]>>>0<a[3]>>>0?1:0)|0,e[5]=e[5]+886263092+(e[4]>>>0<a[4]>>>0?1:0)|0,e[6]=e[6]+1295307597+(e[5]>>>0<a[5]>>>0?1:0)|0,e[7]=e[7]+3545052371+(e[6]>>>0<a[6]>>>0?1:0)|0,this._b=e[7]>>>0<a[7]>>>0?1:0,n=0;n<8;n++){var r=t[n]+e[n],i=65535&r,s=r>>>16,u=((i*i>>>17)+i*s>>>15)+s*s,l=((4294901760&r)*r|0)+((65535&r)*r|0);o[n]=u^l}t[0]=o[0]+(o[7]<<16|o[7]>>>16)+(o[6]<<16|o[6]>>>16)|0,t[1]=o[1]+(o[0]<<8|o[0]>>>24)+o[7]|0,t[2]=o[2]+(o[1]<<16|o[1]>>>16)+(o[0]<<16|o[0]>>>16)|0,t[3]=o[3]+(o[2]<<8|o[2]>>>24)+o[1]|0,t[4]=o[4]+(o[3]<<16|o[3]>>>16)+(o[2]<<16|o[2]>>>16)|0,t[5]=o[5]+(o[4]<<8|o[4]>>>24)+o[3]|0,t[6]=o[6]+(o[5]<<16|o[5]>>>16)+(o[4]<<16|o[4]>>>16)|0,t[7]=o[7]+(o[6]<<8|o[6]>>>24)+o[5]|0}t.Rabbit=e._createHelper(s)}(),n.Rabbit)})),o((function(t,e){var n;t.exports=(n=Jt,function(){var t=n,e=t.lib.StreamCipher,r=t.algo,i=[],a=[],o=[],s=r.RabbitLegacy=e.extend({_doReset:function(){var t=this._key.words,e=this.cfg.iv,n=this._X=[t[0],t[3]<<16|t[2]>>>16,t[1],t[0]<<16|t[3]>>>16,t[2],t[1]<<16|t[0]>>>16,t[3],t[2]<<16|t[1]>>>16],r=this._C=[t[2]<<16|t[2]>>>16,4294901760&t[0]|65535&t[1],t[3]<<16|t[3]>>>16,4294901760&t[1]|65535&t[2],t[0]<<16|t[0]>>>16,4294901760&t[2]|65535&t[3],t[1]<<16|t[1]>>>16,4294901760&t[3]|65535&t[0]];this._b=0;for(var i=0;i<4;i++)u.call(this);for(i=0;i<8;i++)r[i]^=n[i+4&7];if(e){var a=e.words,o=a[0],s=a[1],l=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),c=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),h=l>>>16|4294901760&c,f=c<<16|65535&l;for(r[0]^=l,r[1]^=h,r[2]^=c,r[3]^=f,r[4]^=l,r[5]^=h,r[6]^=c,r[7]^=f,i=0;i<4;i++)u.call(this)}},_doProcessBlock:function(t,e){var n=this._X;u.call(this),i[0]=n[0]^n[5]>>>16^n[3]<<16,i[1]=n[2]^n[7]>>>16^n[5]<<16,i[2]=n[4]^n[1]>>>16^n[7]<<16,i[3]=n[6]^n[3]>>>16^n[1]<<16;for(var r=0;r<4;r++)i[r]=16711935&(i[r]<<8|i[r]>>>24)|4278255360&(i[r]<<24|i[r]>>>8),t[e+r]^=i[r]},blockSize:4,ivSize:2});function u(){for(var t=this._X,e=this._C,n=0;n<8;n++)a[n]=e[n];for(e[0]=e[0]+1295307597+this._b|0,e[1]=e[1]+3545052371+(e[0]>>>0<a[0]>>>0?1:0)|0,e[2]=e[2]+886263092+(e[1]>>>0<a[1]>>>0?1:0)|0,e[3]=e[3]+1295307597+(e[2]>>>0<a[2]>>>0?1:0)|0,e[4]=e[4]+3545052371+(e[3]>>>0<a[3]>>>0?1:0)|0,e[5]=e[5]+886263092+(e[4]>>>0<a[4]>>>0?1:0)|0,e[6]=e[6]+1295307597+(e[5]>>>0<a[5]>>>0?1:0)|0,e[7]=e[7]+3545052371+(e[6]>>>0<a[6]>>>0?1:0)|0,this._b=e[7]>>>0<a[7]>>>0?1:0,n=0;n<8;n++){var r=t[n]+e[n],i=65535&r,s=r>>>16,u=((i*i>>>17)+i*s>>>15)+s*s,l=((4294901760&r)*r|0)+((65535&r)*r|0);o[n]=u^l}t[0]=o[0]+(o[7]<<16|o[7]>>>16)+(o[6]<<16|o[6]>>>16)|0,t[1]=o[1]+(o[0]<<8|o[0]>>>24)+o[7]|0,t[2]=o[2]+(o[1]<<16|o[1]>>>16)+(o[0]<<16|o[0]>>>16)|0,t[3]=o[3]+(o[2]<<8|o[2]>>>24)+o[1]|0,t[4]=o[4]+(o[3]<<16|o[3]>>>16)+(o[2]<<16|o[2]>>>16)|0,t[5]=o[5]+(o[4]<<8|o[4]>>>24)+o[3]|0,t[6]=o[6]+(o[5]<<16|o[5]>>>16)+(o[4]<<16|o[4]>>>16)|0,t[7]=o[7]+(o[6]<<8|o[6]>>>24)+o[5]|0}t.RabbitLegacy=e._createHelper(s)}(),n.RabbitLegacy)})),o((function(t,e){t.exports=Jt}))),te=function(t,e){try{var n=e.xRatio,r=e.yRatio;return isNaN(n)||isNaN(r)?(console.error("发生错误:on updataSizeDeep in go-code "),t):(t.forEach((function(t){var i;t.baseData.left=t.baseData.left*n,t.baseData.width=t.baseData.width*n,t.baseData.top=t.baseData.top*r,t.baseData.height=t.baseData.height*r,t.baseData.angle=t.baseData.angle,(null===(i=null==t?void 0:t.children)||void 0===i?void 0:i.length)&&te(null==t?void 0:t.children,e)})),t)}catch(e){return t}},ee=function(t,e){var n=!0;try{for(var r=0,i=["width","height","left","top","opacity","angel","skewY","skewX","rotateX","rotateY"];r<i.length;r++){var a=i[r];if(Object.hasOwn(t,a)&&isNaN(t[a])){console.warn(a+"--参数校验不合法:"+e),n=!1;break}}return n}catch(t){return console.warn("参数校验不合法:"+e),!1}},ne=function(t,e,n){var r=t[n];return t.splice(n,1),t.splice(e,0,r),t},re=function(e,n,r){var i=t.findIndex(e,(function(t){return t.cid==r})),a=t.findIndex(e,(function(t){return t.cid==n}));return ne(e,a,i)},ie=function(t,e,n){for(var r=-1,i=0;i<t.length;i++){var a=t[i];if(a.children&&a.children.length)for(var o=0;o<a.children.length;o++){if(r=o,a.children[o].cid===n){switch(e){case"up":r>=1&&ne(a.children,r-1,r);break;case"down":r<a.children.length-2&&ne(a.children,r+1,r);break;case"top":0!==r&&ne(a.children,0,r);break;case"bottom":var s=a.children.length-1;r!==s&&ne(a.children,s,r)}break}}}return t},ae=function(e,n,r){var i=!1,a=function(e){for(var o=0;o<e.length;o++){if(e[o].cid==n){i=e[o],r&&t.remove(e,(function(t){return t.cid==n}));break}if(e[o].children)a(e[o].children);else if(e[o].dynamicChildren){if(e[o].dynamicChildren instanceof Map){for(var s=Array.from(e[o].dynamicChildren),u=0;u<s.length;u++)if(s[u]instanceof Array){var l=s[u][1];a(l)}}else if(e[o].dynamicChildren instanceof Array)for(s=e[o].dynamicChildren,u=0;u<s.length;u++)if(s[u]instanceof Array){l=s[u][1];a(l)}}else e[o].stateChildren&&a(e[o].stateChildren)}};return a(e),i||!1},oe=function(t,e){var n=null,r=function(t,i){for(var a=0,o=t;a<o.length;a++){var s=o[a];if(s.cid==e){n=i;break}if(s.children)r(s.children,s);else if(s.dynamicChildren)if(s.dynamicChildren instanceof Map){for(var u=Array.from(s.dynamicChildren),l=0;l<u.length;l++)if(u[l]instanceof Array){var c=u[l][1];r(c,s)}}else s.dynamicChildren;else s.stateChildren&&r(s.stateChildren,s)}};return r(t,null),n||!1},se=function(t,e,n){for(var r,i=function(i){var a=t[i];if(a.cid===e)return r=a,n&&t.splice(i,1),{value:r};if(a.children&&a.children.length){for(var o=0;o<a.children.length;o++)if(a.children[o].cid===e)return r=a.children[o],n&&a.children.splice(o,1),{value:r}}else if(a.stateChildren&&a.stateChildren.length){for(o=0;o<a.stateChildren.length;o++)if(a.stateChildren[o].cid===e)return r=a.stateChildren[o],n&&a.stateChildren.splice(o,1),{value:r}}else if(a.dynamicChildren){var s=void 0;if(a.dynamicChildren instanceof Map?s=a.dynamicChildren.get(a.activeDynamic):a.dynamicChildren instanceof Array&&(s=a.dynamicChildren.find((function(t){return t[0]==a.activeDynamic}))[1]),s)for(o=0;o<s.length;o++)if(s[o].cid===e)return r=s[o],n&&s.splice(o,1),{value:r}}},a=0;a<t.length;a++){var o=i(a);if("object"==typeof o)return o.value}return!!r},ue=function(t,e,n){var r=se(t,e),i=se(t,n);return r.pid&&i.pid||!r.pid&&!i.pid},le=function(t,e){var n=function(t){for(var r,i,a,o=0,s=t;o<s.length;o++){var u=s[o],l=null===(a=null===(i=null===(r=null==u?void 0:u.tmpData)||void 0===r?void 0:r.source)||void 0===i?void 0:i.converse)||void 0===a?void 0:a.data;if(null==l?void 0:l.length)for(var c=0,h=l;c<h.length;c++){var f=h[c];f.code=f.code.replace(/>/g,">").replace(/</g,"<")}if(e(u),u&&u.children)n(u.children);else if(u&&u.dynamicChildren)for(var d=0,p=u.dynamicChildren;d<p.length;d++){var g=p[d][1];n(g)}else(null==u?void 0:u.stateChildren)&&n(u.stateChildren)}};n(t)},ce=function(t){var e=t.length,n=function(t,e){for(var r=function(r){var i=t[r];if(i&&i.children&&i.children.length){var a=i.children.length;n(i.children,a)}else if(i&&i.dynamicChildren){var o=i.dynamicChildren.length;Array.from(i.dynamicChildren).forEach((function(t,e){n(t[1],o)}))}i.z=10*e-r},i=0;i<t.length;i++)r(i)};n(t,e)},he=function(t){var e=function(t,n){for(var r=function(r){var i=t[r],a=ke();n?i.pid=n:i.drag||(i.baseData.left=0,i.baseData.top=0),i.cid=a,i&&i.children&&i.children.length?e(i.children,a):i&&i.dynamicChildren&&Array.from(i.dynamicChildren).forEach((function(t,n){e(t[1],a)}))},i=0;i<t.length;i++)r(i)};e(t)},fe=function(e,n,r,i){try{if(!e||!e.hasOwnProperty(n)&&!e.hasOwnProperty(i))throw"The property you want to modify is not found. Please check whether the attribute ".concat(n," is entered correctly!");if(i){t.cloneDeep(e[i][n]);e[i][n]=r}else e[n]=r}catch(t){console.error(t)}},de=function(t){try{if(!t)throw" 没有找到组件";t.isShow||"false"==t.isShow?t.isShow=!1:t.isShow=!0}catch(t){console.error(t)}},pe=function(t,e){e.forEach((function(e){e.baseData.left=e.baseData.left-t.left,e.baseData.top=e.baseData.top-t.top}))},ge=function(e,n){var r=t.cloneDeep(e),i=[];return r.children&&r.children.length&&r.children.forEach((function(t){var e=n&&(null==r?void 0:r.pid)?ae(n,r.pid):null;me(t,r,e),i.push(t)})),i},me=function(t,e,n){var r=function(t,e,n){var r=t.baseData.left,i=t.baseData.top,a=e;if(r+=a.baseData.left,i+=a.baseData.top,n){if(n.baseData.angle){var o=n.baseData.angle*Math.PI/180,s=Math.cos(o),u=Math.sin(o),l=r*u+i*s;r=r*s-i*u,i=l}n.baseData.scale&&(r*=n.baseData.scale.x,i*=n.baseData.scale.y)}return{left:r,top:i}}(t,e,n),i=r.left,a=r.top;t.baseData.left=i,t.baseData.top=a},ve=function(t,e){t.baseData.left=t.baseData.left+e.left,t.baseData.top=t.baseData.top+e.top},ye=function(t,e,n){var r={left:0,top:0};return n&&0!==n?(r.left=t.left-e.left,r.top=t.top-e.top):(r.left=t.left+e.left,r.top=t.top+e.top),r},_e=function(e,n){var r=t.cloneDeep(e),i=[],a=function(t,e){var n=ae(t,e);i.push(n.baseData),n.pid&&a(t,n.pid)};a(r,n);var o={left:0,top:0};return i.map((function(t){t&&(o.left+=t.left,o.top+=t.top)})),o},be=function(t,e){var n=t.slice();return n.length>1&&n.sort((function(t,n){return t.baseData[e]-n.baseData[e]})),n},we=function(t,e){var n=[];return t.map((function(t){var r=e.find((function(e){return e.cid===t}));r&&n.push(r)})),De(n)},De=function(t){if(t.length>0){var e={left:0,top:0,width:0,height:0},n=be(t,"left"),r=be(t,"top"),i=n[0].baseData,a=n[n.length-1].baseData,o=r[0].baseData,s=r[r.length-1].baseData,u=Math.max.apply(Math,r.map((function(t){return 1*t.baseData.top+1*t.baseData.height}))),l=Math.max.apply(Math,r.map((function(t){return 1*t.baseData.left+1*t.baseData.width})));return e.left=i.left,e.width=Math.max(1*a.left+1*a.width,l)-1*i.left,e.top=o.top,e.height=Math.max(1*s.top+1*s.height,u)-1*o.top,e}return{left:0,top:0,width:0,height:0}},Se=function(e,n,r){var i=e.children,a=t.cloneDeep(n),o=t.cloneDeep(De(i)),s=a.left,u=a.top;a.width,a.height;var l=o.left,c=o.top,h=o.width,f=o.height,d={left:s+l,top:u+c,width:h,height:f,angle:n.angle?n.angle:0};return i.forEach((function(e){var n=t.cloneDeep(e.baseData);e.baseData.left<0?n.left=0:n.left=n.left-l,e.baseData.top<0?n.top=0:n.top=n.top-c,e.baseData=n})),e.baseData=d,e.children=i,d},xe=function(t,e,n){var r=t.children,i=e,a=De(r),o=i.left,s=i.top;i.width,i.height;var u=a.left,l=a.top,c=a.width,h=a.height,f={left:o+u,top:s+l,width:c,height:h,angle:e.angle?e.angle:0};return r.forEach((function(t){var e=t.baseData;t.baseData.left<0?e.left=0:e.left=e.left-u,t.baseData.top<0?e.top=0:e.top=e.top-l,t.baseData=e})),t.baseData=f,t.children=r,f},Te=function(t,e){for(var n=0;n<t.length;n++){var r=t[n];t[n].index=n,r.children&&r.children.length?Te(r.children):e&&e(r)}},ke=function(){return(Math.random().toString().substr(3,10)+Date.now()).toString()},Ce=function(t,e){try{var n=e||window.location.href;if(-1!=n.indexOf("?")){var r={};return n.slice(n.indexOf("?")+1).split("&").forEach((function(t){var e=t.split("=");r[e[0]]=e[1]})),t?r[t]?r[t]:null:r}return console.log("没有参数"),null}catch(t){console.error(t)}};function Ee(t,e){for(var n=t.types,r=t.element,i=t.actions,a=t.events,o=t.eventsComs,s=function(t){var e=n[t],s=r.tmpData.actions[t];if(s&&s.use){o&&o.push(r.cid);var u=s[s.behave];if(!u)return"continue";"vars"===s.behave?u.map((function(t){t.type=e,t.id=r.cid,t.model=0,t.mapField&&i.push(t)})):u.length>0&&u.forEach((function(t,n){"toggle"===s.behave&&""!==t.value&&t.value.length&&a.push({id:r.cid,type:s.behave,children:t.value.map((function(t){return{cid:t.cid,visible:t.visible}})),eventType:e,index:n}),"update"===s.behave&&""!==t.value&&t.value.length?a.push({id:r.cid,type:s.behave,children:t.value.map((function(t){return{cid:t.cid,visible:t.visible}})),eventType:e,index:n}):"link"===s.behave&&""!==t.value?a.push({id:r.cid,type:s.behave,link:t.value,eventType:e,target:t.target,index:n}):"page"===s.behave&&""!==t.value?a.push({id:r.cid,type:s.behave,page:t.value,params:t.params,eventType:e,index:n}):"dynamic"===s.behave&&""!==t.value&&t.value.length>0?a.push({id:r.cid,type:s.behave,dynamic:t.value,eventType:e,index:n}):a.push(void 0)}))}},u=0;u<n.length;u++)s(u)}var Me="anov@2019:helloX",Oe="anov@2020:helloX";function Ae(t){var e=Qt.enc.Utf8.parse(Me),n=Qt.enc.Utf8.parse(Oe);return Qt.AES.encrypt(t,e,{iv:n,mode:Qt.mode.CBC,padding:Qt.pad.Pkcs7}).toString()}function Pe(t,e){var n=ar.state.globalVars,r={};n.forEach((function(t){(null==t?void 0:t.name)&&(r[t.name]=t.value||t.originvalue)}));try{return/^(?:[^\r\n]*[\r\n]){0,2}(?:[^\r\n]*(?=\{))?\s*(?:function\s*[^\r\n]*|\(.*?\))?\s*[\w\s\$\._\[\]]*\s*(?:[=:]\s*)?(?:new\s+)?[A-Z]\w*\s*(?:\[.*?\]|\([^\r\n]*\))*\s*\{.*?\}/i.test(t),new Function("data","vars",t)(e,r)}catch(t){return console.error(t),e}}var Be={type:"static",converse:{use:!1,data:[]},static:{data:{},originData:""},api:{requestType:"get",url:"",headers:{use:!1,value:""},params:"",agency:!1,cookie:!0,autoUpdate:{open:!1,time:10},data:""},datasource:{data:"",inputSql:"",dsName:"",dsType:300,autoUpdate:{open:!1,time:10}},indicator:{zbId:"",zbName:"",params:"",data:"",autoUpdate:{open:!1,time:10}},staticFile:{data:"",dsName:"",dsType:201}},Re={updataArea:function(t,e){t.currentArea=e},selectdArea:function(t,e){var n=we(e,t.list);t.currentArea=n},updataAngle:function(t,e){var n=e.id,r=e.angle,i=ae(t.list,n);"boolean"!=typeof i&&(i.baseData.angle=r)},updataBaseData:function(t,e){var n=e.data;if(ee(e.data.baseData,"updataBaseData")){var r=e.ratio,i=ae(t.list,n.cid),a=e.oldData;if("object"!=typeof i||i.pid){if("object"==typeof i&&i.pid){var o=ae(t.list,i.pid);"object"==typeof o&&(i.baseData.left<0&&(i.baseData.left=0),i.baseData.top<0&&(i.baseData.top=0),Object.assign(i.baseData,n.baseData),Se(o,o.baseData),t.groupFlag=!t.groupFlag)}}else if(Object.assign(i.baseData,n.baseData),r&&i.children&&i.children.length>0){var s=i.baseData.width/a.width,u=i.baseData.height/a.height;te(i.children,{xRatio:s,yRatio:u})}}},multipleUpdataBaseData:function(e,n){if(n.ratio)for(var r=n.newData,i=n.oldData,a=r.width/i.width,o=r.height/i.height,s=e.cache.length;s--;)e.cache[s].baseData.left=e.cache[s].baseData.left*a,e.cache[s].baseData.width=e.cache[s].baseData.width*a,e.cache[s].baseData.top=e.cache[s].baseData.top*o,e.cache[s].baseData.height=e.cache[s].baseData.height*o;else for(s=e.cache.length;s--;){var u=t.cloneDeep(e.cache[s].baseData);u.left=u.left+n.deltaX,u.top=u.top+n.deltaY,e.cache[s].comPanel?e.cache[s].comPanel.setAttrData(Object.assign(u,n.baseData)):e.cache[s].baseData=u}},multipleUpdata:function(t,e){var n=e.ids,r=e.data,i=ae(t.list,n);i&&Object.assign(i.baseData,r)},multipleMove:function(t,e){},move:function(t,e){var n=t.selectd,r=e.type,i=e.speed?e.speed:1;if(0!==n.length){var a=t.list.filter((function(t){return n.includes(t.cid)}));0==a.length&&(a=[ae(t.list,n[0])]);for(var o=0;o<a.length;o++){var s=a[o];if(s.pid&&t.selectd.length>1)return void console.warn("Only one component can be moved within a group");if("up"===r?s.baseData.top=s.baseData.top-i:"down"===r?s.baseData.top+=i:"left"===r?s.baseData.left-=i:"right"===r&&(s.baseData.left+=i),"object"==typeof s&&s.pid){var u=ae(t.list,s.pid);"object"==typeof u&&(Se(u,u.baseData),t.groupFlag=!t.groupFlag)}}}else console.warn("Warning! please select the component to move.")},updataGroupBaseData:function(e,n){var r=ae(e.list,n.pid),i=t.cloneDeep(r);ae(r.children,n.cid),Se(r,i.baseData)},editGroupBaseData:function(t,e){var n=ae(t.list,e);n.children.forEach((function(t){ve(t,n.baseData)}))},syncBaseData:function(e,n){var r=n.cid,i=n.data,a=n.isContainer,o=t.cloneDeep(e.list);if(void 0!==a){var s=function(t){for(var e=0;e<t.length;e++)r===t[e].cid?t[e].baseData=Object.assign({},t[e].baseData,i):t[e].hasOwnProperty("children")&&s(t[e].children)};o.length&&s(o)}else{var u=ae(o,r);if(u){var l=t.cloneDeep(u.baseData),c=Object.assign({},u.baseData,i);this.commit("GoCom/updataBaseData",{data:{cid:r,baseData:c},oldData:l,ratio:!0})}}},updataItemData:function(t,e){var n=e.cid,r=e.propsName,i=e.propsValue,a=ae(t.list,n);a&&(a[r]=i)},updataOpacity:function(t,e){var n=e.cid,r=e.propsValue,i=ae(t.list,n);"boolean"!=typeof i&&i&&(i.baseData.opacity=r)}},Ve=function(e,n,r,i){try{var a={},o=[],s=[],u=[],l=t.cloneDeep(e);return le(l,(function(t){var e,n;(null===(n=null===(e=null==t?void 0:t.tmpData)||void 0===e?void 0:e.actions)||void 0===n?void 0:n.length)&&Ee({types:t.tmpData.actions.map((function(t){return t.eventType})),element:t,actions:o,events:s,eventsComs:u})})),n&&n.length&&(o=d(d([],o,!0),n,!0)),r&&r.length&&(o=d(d([],o,!0),r,!0)),i&&i.length&&(o=d(d([],o,!0),i,!0)),le(l,(function(t){var e,n=null===(e=null==t?void 0:t.tmpData)||void 0===e?void 0:e.source;Ne(n,o,t,a)})),o.filter((function(t){if(t.fork){var e=o.find((function(e){return e.mapField==t.forkValue||Array.isArray(t.forkValue)&&t.forkValue.includes(e.mapField)}));e&&(Array.isArray(t.forkValue)?t.originalValue=t.forkValue.map((function(t){return o.find((function(e){return e.mapField==t})).value})):t.originalValue=e.value)}})),{shareVariableTree:a,globalVars:o.filter((function(t){return t.hasOwnProperty("originalValue")||(t.originalValue=t.value),t.converter&&t.converterCode?t.value=Pe(t.converterCode,t.originalValue):t.value=t.originalValue,t})),globalEvents:s.filter((function(t){return t})),eventsComs:u}}catch(t){return console.error("error",t),{}}},Ne=function(t,e,n,r){var i,a,o;if(t){var s=t[null==t?void 0:t.type],u=null==t?void 0:t.converse;u&&u.use&&u.data.length&&u.data.map((function(t){var e;(null==t?void 0:t.dependVars)&&(null===(e=null==t?void 0:t.dependVars)||void 0===e?void 0:e.length)&&t.dependVars.map((function(t){Fe(r,t,n.cid)}))})),(null==s?void 0:s.inputSql)&&Ie(null==s?void 0:s.inputSql,e,n,r),(null==s?void 0:s.url)&&Ie(s.url,e,n,r),(null==s?void 0:s.headers)&&(null===(i=null==s?void 0:s.headers)||void 0===i?void 0:i.use)&&(null===(a=null==s?void 0:s.headers)||void 0===a?void 0:a.value)&&Ie(null===(o=null==s?void 0:s.headers)||void 0===o?void 0:o.value,e,n,r),(null==s?void 0:s.params)&&Ie(null==s?void 0:s.params,e,n,r)}},Ie=function(t,e,n,r){"string"!=typeof t&&(t=JSON.stringify(t));var i=t.match(/({{[\w]*}})|((@)[\w]*)/gm);if(i)for(var a=i.map((function(t){return t.replace(/{{|}}|@/gm,"")})),o=function(t){var i=a[t];if(!i||!e||e.findIndex((function(t){return t.mapField===i}))<0)return"continue";Fe(r,i,n.cid)},s=0;s<a.length;s++)o(s)},Fe=function(e,n,r){if(e[n]&&t.isArray(e[n])){e[n].push(r);var i=e[n];e[n]=t.uniq(i)}else e[n]=[],e[n].push(r)},Ye=function(t){if("string"==typeof t)try{var e=JSON.parse(t);return!("object"!=typeof e||!e)}catch(t){return!1}return!1};function Le(t,e){return void 0===e&&(e=!1),Ye(t)?e?JSON.stringify(t):JSON.parse(t):t}var je={delListItem:function(e,n){var r=t.cloneDeep(e.list);"string"==typeof n?ae(r,n,!0):n.forEach((function(t){ae(r,t,!0)})),e.list=r,e.globalVars=Ve(e.list,e.globalConstant,e.sysConst).globalVars},editCloneCache:function(e,n){var r=t.cloneDeep(e.cloneCache);r.length&&r.map((function(t){t.baseData=Object.assign({},t.baseData,n)})),e.cloneCache=r},cloneItem:function(e){if(e.selectd.length>0){e.cloneCache=[];for(var n=function(n){var r=ae(e.list,e.selectd[n]);if("boolean"!=typeof r){var i=t.cloneDeep(r);if(i.cid=ke(),i.pid="",(null==i?void 0:i.stateChildren)||(null==i?void 0:i.children))((null==i?void 0:i.stateChildren)?null==i?void 0:i.stateChildren:null==i?void 0:i.children).forEach((function(t){var e,n,r,a,o=t.cid;if(t.cid=ke(),t.pid=i.cid,(null==i?void 0:i.stateChildren)&&(null===(n=null===(e=null==i?void 0:i.tmpData)||void 0===e?void 0:e.option)||void 0===n?void 0:n.children)){var s=null===(a=null===(r=null==i?void 0:i.tmpData)||void 0===r?void 0:r.option)||void 0===a?void 0:a.children.find((function(t){return t.cid==o}));s&&(s.cid=t.cid)}}));e.cloneCache.push(i)}},r=0;r<e.selectd.length;r++)n(r)}},shearItem:function(e,n){if(e.selectd.length>0){e.cloneCache=[];for(var r=0;r<e.selectd.length;r++){var i=ae(e.list,e.selectd[r],!0);if("boolean"!=typeof i){var a=t.cloneDeep(i);a.cid=ke(),e.cloneCache.push(a)}}e.selectd=[]}},pasteItem:function(e){var n,r=t.cloneDeep(e.cloneCache);if(r.length>0){var i=[];le(r,(function(t){if(t.cid=ke(),t&&t.children)for(var e=0,n=t.children;e<n.length;e++){n[e].pid=t.cid}if("dynamicComponent"==t.componentType){var r=void 0;t.dynamicChildren instanceof Map?r=t.dynamicChildren.get(t.activeDynamic):t.dynamicChildren instanceof Array&&(r=t.dynamicChildren.find((function(t){return t[0]==t.activeDynamic}))[1]),r.forEach((function(e){e.pid=t.cid}))}i.push(t.cid)})),e.selectd.length>0?we(e.selectd,e.list):De(r),r.forEach((function(t){t.baseData.top=t.baseData.top+20,t.baseData.left=t.baseData.left+20})),(n=e.list).unshift.apply(n,t.cloneDeep(r)),e.selectd=i}},updataShow:function(t,e){var n=ae(t.list,e);if("boolean"!=typeof n){var r=!n.isShow;fe(n,"isShow",r,"")}},changeShow:function(t,e){var n=e.cid,r=e.flag,i=ae(t.list,n);i&&fe(i,"isShow",r,"")},comToggle:function(t,e){var n=ae(t.list,e);n&&de(n)},updataLock:function(t,e){var n=ae(t.list,e);if("boolean"!=typeof n){var r=!n.isLock;fe(n,"isLock",r,"")}},breakUp:function(t,e){var n,r;try{if(!e)throw"Please pass in the component CID correctly!";var i=oe(t.list,e),a=ae(t.list,e),o=a.baseData;if(isNaN(o.left)||isNaN(o.top))throw new Error("top or left is NAN");var s=ge(a,t.list);if(s.map((function(t){return t.pid=""})),i){var u=i.children.findIndex((function(t){return t.cid==e}));i.children.splice(u,1),(n=i.children).push.apply(n,s.reverse())}else{u=t.list.findIndex((function(t){return t.cid==e}));t.list.splice(u,1),(r=t.list).push.apply(r,s.reverse())}}catch(t){console.error(t)}},editGroup:function(t,e){var n,r=e.groupId;e.status;try{if(!r)throw"Please pass in the component CID correctly!";var i=t.list.findIndex((function(t){return t.cid===r})),a=t.list[i],o=ge(a);o.map((function(t){return t.pid=""})),t.list.splice(i,1),(n=t.list).push.apply(n,o)}catch(t){console.error(t)}},combination:function(e){t.cloneDeep(e.list);var n,r,i=[],a=[],o=ke(),s=ae(e.list,e.selectd[0]);s.pid?console.info("Sorry, only level 2 is supported group"):s.children&&1===e.selectd.length?console.info("Sorry, only level 2 is supported group"):(e.selectd.forEach((function(t){var n=e.list.findIndex((function(e){return e.cid===t}));if(n>-1){i.push(n);var r=e.list.splice(n,1)[0];r.pid=o,a.push(r)}})),n=i.sort((function(t,e){return t-e}))[0],r=1===a.length?t.cloneDeep(a[0].baseData):e.currentArea,Object.assign(r,{angle:0,opacity:100,rotate:0,rotateY:0}),pe(r,a),e.list.splice(n,0,{cid:o,pid:"",isShow:!0,isLock:!1,editer:!1,baseData:r,z:0,toggle:!0,name:"群组",type:"folder",tmpData:{actions:null,option:null,source:Be},children:a}),ce(e.list),e.selectd=[o])},moveUp:function(t,e){try{var n=t.list.findIndex((function(t){return t.cid===e}));n>=1?ne(t.list,n-1,n):ie(t.list,"up",e)}catch(t){console.error(t)}},moveDown:function(t,e){try{var n=t.list.findIndex((function(t){return t.cid===e}));n>-1&&n<=t.list.length-2?ne(t.list,n+1,n):ie(t.list,"down",e)}catch(t){console.error(t)}},moveTop:function(t,e){try{var n=t.list.findIndex((function(t){return t.cid===e}));n>-1&&0!==n?ne(t.list,0,n):ie(t.list,"top",e)}catch(t){console.error(t)}},moveBottom:function(t,e){try{var n=t.list.findIndex((function(t){return t.cid===e})),r=t.list.length-1;n>-1&&n!==r?ne(t.list,r,n):ie(t.list,"bottom",e)}catch(t){console.error(t)}}},He=3e4,ze=function(t,n){void 0===t&&(t="");var r=e.create({baseURL:t,timeout:He,headers:{"Content-Type":"application/x-www-form-urlencoded;charset=UTF-8"}});return r.interceptors.request.use((function(t){return sessionStorage.getItem("anov-go-token")&&"null"!=sessionStorage.getItem("anov-go-token")&&(t.headers["X-ANOV-ACCESS-TOKEN"]=sessionStorage.getItem("anov-go-token")),sessionStorage.getItem("unify-access-token")&&"null"!=sessionStorage.getItem("unify-access-token")&&(t.headers["X-UNIFY-ACCESS-TOKEN"]=sessionStorage.getItem("unify-access-token")),sessionStorage.getItem("dgcc_authorization")&&"null"!=sessionStorage.getItem("dgcc_authorization")&&(t.headers.dgcc_authorization=sessionStorage.getItem("dgcc_authorization")),"post"===t.method?(t.headers["Content-Type"]="application/json;",t):"get"===t.method?t:"put"===t.method?(t.headers["Content-Type"]="application/json; charset=UTF-8",t):"delete"===t.method?t:void 0}),(function(t){return Promise.reject(t)})),r.interceptors.response.use((function(t){var e;return 200===t.status||2e4==t.data.code?(n&&n(t),t.data):(n&&n(t),null==t||t.status,null===(e=null==t?void 0:t.data)||void 0===e||e.code,Promise.reject(t.data))}),(function(t){return n&&n(null==t?void 0:t.response),Promise.reject(t.response)})),r},Ue=Object.defineProperty,We=Object.getOwnPropertySymbols,qe=Object.prototype.hasOwnProperty,Ge=Object.prototype.propertyIsEnumerable,Ke=(t,e,n)=>e in t?Ue(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Ze=(t,e)=>{for(var n in e||(e={}))qe.call(e,n)&&Ke(t,n,e[n]);if(We)for(var n of We(e))Ge.call(e,n)&&Ke(t,n,e[n]);return t},Xe=(t,e,n)=>(Ke(t,"symbol"!=typeof e?e+"":e,n),n),$e=(t,e,n)=>new Promise(((r,i)=>{var a=t=>{try{s(n.next(t))}catch(t){i(t)}},o=t=>{try{s(n.throw(t))}catch(t){i(t)}},s=t=>t.done?r(t.value):Promise.resolve(t.value).then(a,o);s((n=n.apply(t,e)).next())})),Je={gapX:100,gapY:100,offsetLeft:0,offsetTop:0,width:120,height:64,opacity:.15,rotate:-22,fontSize:16,fontStyle:"normal",fontVariant:"normal",fontWeight:"300",fontColor:"#000",fontFamily:"sans-serif",textAlign:"center",textBaseline:"alphabetic",monitor:!0,zIndex:9999,mode:"interval",pack:!0,blindFontSize:16,blindOpacity:.005},Qe="data-watermark-tag",tn={childList:!0,subtree:!0,attributeFilter:["style","class",Qe]};var en=t=>{let e="";return Object.keys(t).forEach((n=>{const r=n.replace(/([A-Z])/g,"-$1").toLowerCase();e+=`${r}:${t[n]};`})),e},nn=(t="")=>{return`${e=t,window.btoa(decodeURI(encodeURIComponent(e)))}-${(new Date).getTime()}-${Math.floor(Math.random()*Math.pow(10,8))}`;var e};var rn=window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver,an=o((function(t,e){!function(){function e(t,e){return void 0===e?e={autoBom:!1}:"object"!=typeof e&&(console.warn("Deprecated: Expected third argument to be a object"),e={autoBom:!e}),e.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(t.type)?new Blob(["\ufeff",t],{type:t.type}):t}function n(t,e,n){var r=new XMLHttpRequest;r.open("GET",t),r.responseType="blob",r.onload=function(){u(r.response,e,n)},r.onerror=function(){console.error("could not download file")},r.send()}function r(t){var e=new XMLHttpRequest;e.open("HEAD",t,!1);try{e.send()}catch(t){}return 200<=e.status&&299>=e.status}function a(t){try{t.dispatchEvent(new MouseEvent("click"))}catch(n){var e=document.createEvent("MouseEvents");e.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),t.dispatchEvent(e)}}var o="object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof i&&i.global===i?i:void 0,s=o.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),u=o.saveAs||("object"!=typeof window||window!==o?function(){}:"download"in HTMLAnchorElement.prototype&&!s?function(t,e,i){var s=o.URL||o.webkitURL,u=document.createElement("a");e=e||t.name||"download",u.download=e,u.rel="noopener","string"==typeof t?(u.href=t,u.origin===location.origin?a(u):r(u.href)?n(t,e,i):a(u,u.target="_blank")):(u.href=s.createObjectURL(t),setTimeout((function(){s.revokeObjectURL(u.href)}),4e4),setTimeout((function(){a(u)}),0))}:"msSaveOrOpenBlob"in navigator?function(t,i,o){if(i=i||t.name||"download","string"!=typeof t)navigator.msSaveOrOpenBlob(e(t,o),i);else if(r(t))n(t,i,o);else{var s=document.createElement("a");s.href=t,s.target="_blank",setTimeout((function(){a(s)}))}}:function(t,e,r,i){if((i=i||open("","_blank"))&&(i.document.title=i.document.body.innerText="downloading..."),"string"==typeof t)return n(t,e,r);var a="application/octet-stream"===t.type,u=/constructor/i.test(o.HTMLElement)||o.safari,l=/CriOS\/[\d]+/.test(navigator.userAgent);if((l||a&&u||s)&&"undefined"!=typeof FileReader){var c=new FileReader;c.onloadend=function(){var t=c.result;t=l?t:t.replace(/^data:[^;]*;/,"data:attachment/file;"),i?i.location.href=t:location=t,i=null},c.readAsDataURL(t)}else{var h=o.URL||o.webkitURL,f=h.createObjectURL(t);i?i.location=f:location.href=f,i=null,setTimeout((function(){h.revokeObjectURL(f)}),4e4)}});o.saveAs=u.saveAs=u,t.exports=u}()})),on=function(e){if(0===e.length)return[];var n=function(e){for(var r,i,a,o=0;o<e.length;o++)e[o].tmpData&&(e[o]=Object.assign({},(i=e[o],a=void 0,a=t.cloneDeep(i),c({},a)))),e[o]&&e[o].children&&(null===(r=e[o])||void 0===r?void 0:r.children.length)?n(e[o].children):e[o]&&e[o].dynamicChildren&&Array.from(e[o].dynamicChildren).forEach((function(t,e){n(t[1])}))};return n(e),e},sn=function(e){var n=t.cloneDeep(e)?t.cloneDeep(e):{};"string"==typeof e&&(n=JSON.parse(e));var r=[];if(n instanceof Array)n.forEach((function(t,e){var n=JSON.parse(t.caseDetailData)?JSON.parse(t.caseDetailData):{},i=t.caseDetailPath,a=t.caseDetailName,o=n.theme,s=void 0===o?null:o,u=n.globalVars,l=void 0===u?null:u,c=n.shareVariableTree,h=void 0===c?null:c,f=n.plant,d=void 0===f?null:f,p=n.list,g=void 0===p?[]:p,m=n.path,v=void 0===m?"":m;n.name;var y=n.resource,_=void 0===y?{jspaths:[],csspaths:[],otherpaths:[]}:y,b=n.watermark,w=void 0===b?null:b,D=n.tw,S=void 0===D?null:D,x=n.globalSource,T=void 0===x?[]:x,k=n.globalEvents,C=void 0===k?[]:k;r.push({path:v||i,theme:s,name:a,resource:_,tw:S,watermark:w,globalSource:T,globalVars:l,globalEvents:C,shareVariableTree:h,plant:d,list:on(g)})}));else{var i=n.theme,a=void 0===i?null:i,o=n.globalVars,s=void 0===o?null:o,u=n.shareVariableTree,l=void 0===u?null:u,c=n.plant,h=void 0===c?null:c,f=n.list,d=void 0===f?[]:f,p=n.resource,g=void 0===p?{jspaths:[],csspaths:[],otherpaths:[]}:p,m=n.watermark,v=void 0===m?null:m,y=n.tw,_=void 0===y?null:y,b=n.globalSource,w=void 0===b?[]:b,D=n.globalEvents,S=void 0===D?[]:D;r.push({resource:g,tw:_,watermark:v,globalSource:w,theme:a,globalVars:s,globalEvents:S,shareVariableTree:l,plant:h,list:on(d)})}return r};function un(t,e){throw new Error("".concat(t,":Expected HTMLElement, got ").concat(e))}var ln=function(){function t(t){this.option=t,this.option.isResize&&window.addEventListener("resize",this.resize.bind(this))}return Object.defineProperty(t,"defaultOption",{get:function(){return t._defaultOption},set:function(e){t._defaultOption=e},enumerable:!1,configurable:!0}),t.getInstance=function(e){return t.instance||(t.instance=new t(e)),t.instance},t.prototype.removeResize=function(){window.removeEventListener("resize",this.resize.bind(this))},t.prototype.resize=function(){var t=this.option,e=t.isEqualScale,n=t.wrapSelector,r=t.viewSelector,i=t.designWidth,a=t.designHeight,o=t.horizontal,s=t.vertical,u=document.querySelector(n);u||un("wrap",u);var l=u.clientWidth,c=u.clientHeight,h=document.querySelector(r);h||un("view",h),h.style.position="absolute",h.style.width=i+"px",h.style.height=a+"px";var f,d,p,g,m=Math.min(l/i,c/a);if(e){switch(h.style.transform="scale(".concat(m,")"),o){case"center":f=(l-i)/2+"px";break;case"left":f=(m-1)/2*i+"px";break;case"right":p=(m-1)/2*i+"px"}switch(s){case"center":d=(c-a)/2+"px";break;case"top":d=(m-1)/2*a+"px";break;case"bottom":g=(m-1)/2*a+"px"}}else h.style.transform="scale('".concat(l/i,", ").concat(c/a,"')"),f=(l-i)/2+"px",d=(c-a)/2+"px";d?h.style.top=d:g&&(h.style.bottom=g),f?h.style.left=f:p&&(h.style.right=p)},t._defaultOption={isEqualScale:!0,designWidth:1920,designHeight:1080,wrapSelector:"body",viewSelector:"#app",horizontal:"center",vertical:"center",isResize:!0},t}(),cn=function(){function e(t){this.wrap=null,this.target=null,this.type=0,this.minRatio=1,this.outSize={w:0,h:0},this.inSize={w:0,h:0};var e=t.wrap,n=t.target,r=t.type,i=t.size,a=t.callback;this.size=i,this.type=r,this.initOptions(e,n,i),this.initSize(i),this.layout(),this.scale(a),window.addEventListener("resize",this.reset.bind(this,a))}return e.prototype.reset=function(t){this.initSize(this.size),this.layout(),t?this.scale(t):this.scale()},e.getInstance=function(t){return e.instance||(e.instance=new e(t)),e.instance},e.prototype.removeResize=function(){window.removeEventListener("resize",this.reset.bind(this,void 0))},e.prototype.getDom=function(e){if(t.isElement(e))return e;var n=document.querySelector(e);return t.isElement(n)?n:null},e.prototype.initOptions=function(t,e,n){this.wrap=this.getDom(t),this.target=this.getDom(e),this.target.style.width=n.w+"px",this.target.style.height=n.h+"px",this.verificationDom()},e.prototype.initSize=function(t){this.outSize.w=this.wrap.clientWidth,this.outSize.h=this.wrap.clientHeight,this.inSize=t},e.prototype.verificationDom=function(){null!=this.wrap&&null!=this.target&&this.isChildOf(this.wrap,this.target)||console.warn("Please pass in the DOM element correctly!")},e.prototype.layout=function(){if(0==this.type||3==this.type){var t=(this.outSize.w-this.inSize.w)/2,e=(this.outSize.h-this.inSize.h)/2;this.target.style.top=e+"px",this.target.style.left=t+"px"}else this.wrap.style.display="flex",this.wrap.style["align-items"]="center",this.wrap.style["justify-content"]="center",this.target.style.position="static",1==this.type?(this.wrap.style["overflow-y"]="auto",this.wrap.style["overflow-x"]="hidden"):2==this.type&&(this.wrap.style["overflow-y"]="hidden",this.wrap.style["overflow-x"]="auto")},e.prototype.isChildOf=function(t,e){var n;if(t&&e)for(n=t.parentNode;n;){if(e===n)return!0;n=n.parentNode}return!1},e.prototype.scale=function(t){var e=1,n=1;switch(this.type){case 0:e=Math.min(this.outSize.w/this.inSize.w,this.outSize.h/this.inSize.h),n=Math.min(this.outSize.w/this.inSize.w,this.outSize.h/this.inSize.h);break;case 1:n=e=this.outSize.w/this.inSize.w;break;case 2:e=n=this.outSize.h/this.inSize.h;break;case 3:e=this.outSize.w/this.inSize.w,n=this.outSize.h/this.inSize.h}t&&t([e,n]),this.target.style.transform="scale(".concat(e,",").concat(n,")")},e.prototype.resize=function(){},e}(),hn=function(t){return h(this,void 0,void 0,(function(){var e,n,r,i,a;return f(this,(function(o){switch(o.label){case 0:return o.trys.push([0,3,,4]),e=t.fontUrl,n=t.fontName,r="__custom_font__",(i=document.getElementById(r))?[3,2]:((i=document.createElement("style")).id=r,[4,(document.head||document.getElementsByTagName("head")[0]).appendChild(i)]);case 1:o.sent(),o.label=2;case 2:return i.innerText+="@font-face{font-family:'".concat(n,"';src:url(").concat(e,");}"),[3,4];case 3:return a=o.sent(),console.warn(a),[3,4];case 4:return[2]}}))}))},fn=function(t,e,n){return void 0===e&&(e="jspaths"),h(void 0,void 0,void 0,(function(){var r,i;return f(this,(function(a){switch(a.label){case 0:return r="csspaths"===e?"link":"script",i=document.createElement(r),"jspaths"===e?i.defer=!0:i.rel="stylesheet",i.className=e,i.src=t,(n||document.head).appendChild(i),[4,new Promise((function(t,e){i.addEventListener("load",t),i.addEventListener("error",t)}))];case 1:return a.sent(),[2]}}))}))},dn=function(t,e){return void 0===e&&(e="jspaths"),h(void 0,void 0,void 0,(function(){var n;return f(this,(function(r){switch(r.label){case 0:return n="fonts"===e?hn:fn,[4,Promise.all(t.map((function(t){return n(t)})))];case 1:return r.sent(),[2]}}))}))},pn=function(t){return h(void 0,void 0,void 0,(function(){return f(this,(function(e){switch(e.label){case 0:return t.fonts&&t.fonts.length?[4,dn(t.fonts,"fonts")]:[3,2];case 1:e.sent(),e.label=2;case 2:return[2]}}))}))},gn=function(e){var n=e.jspaths,r=void 0===n?[]:n,i=e.csspaths,a=void 0===i?[]:i,o=e.fonts,s=void 0===o?[]:o;return h(void 0,void 0,void 0,(function(){var e;return f(this,(function(n){switch(n.label){case 0:return e=t.uniqBy(s,"fontName"),[4,Promise.all([dn(r,"jspaths"),dn(a,"csspaths"),dn(e,"fonts")])];case 1:return n.sent(),[2]}}))}))},mn=function(){var t;(t=document.getElementById("__custom_font__")).parentNode&&t.parentNode.removeChild(t),Array.from(document.getElementsByTagName("script")).filter((function(t){return"jspaths"==t.className})).forEach((function(t){!function(t){for(var e=Array.from(document.getElementsByTagName("script")),n=0;n<e.length;n++)e[n]&&e[n].src&&-1!=e[n].src.indexOf(t)&&e[n].parentNode&&e[n].parentNode.removeChild(e[n])}(t.src)})),Array.from(document.getElementsByTagName("link")).filter((function(t){return"csspaths"==t.className})).forEach((function(t){!function(t){for(var e=Array.from(document.getElementsByTagName("link")),n=0;n<e.length;n++)e[n].href,e[n]&&e[n].href&&-1!=e[n].href.indexOf(t)&&e[n].parentNode&&e[n].parentNode.removeChild(e[n])}(t.href)}))};var vn=o((function(t){!function(e){var n=function(){return{escape:function(t){return t.replace(/([.*+?^${}()|\[\]\/\\])/g,"\\$1")},parseExtension:t,mimeType:function(e){var n=t(e).toLowerCase();return(r="application/font-woff",i="image/jpeg",{woff:r,woff2:r,ttf:"application/font-truetype",eot:"application/vnd.ms-fontobject",png:"image/png",jpg:i,jpeg:i,gif:"image/gif",tiff:"image/tiff",svg:"image/svg+xml"})[n]||"";var r,i},dataAsUrl:function(t,e){return"data:"+e+";base64,"+t},isDataUrl:function(t){return-1!==t.search(/^(data:)/)},canvasToBlob:function(t){return t.toBlob?new Promise((function(e){t.toBlob(e)})):function(t){return new Promise((function(e){for(var n=window.atob(t.toDataURL().split(",")[1]),r=n.length,i=new Uint8Array(r),a=0;a<r;a++)i[a]=n.charCodeAt(a);e(new Blob([i],{type:"image/png"}))}))}(t)},resolveUrl:function(t,e){var n=document.implementation.createHTMLDocument(),r=n.createElement("base");n.head.appendChild(r);var i=n.createElement("a");return n.body.appendChild(i),r.href=e,i.href=t,i.href},getAndEncode:function(t){var e=3e4;s.impl.options.cacheBust&&(t+=(/\?/.test(t)?"&":"?")+(new Date).getTime());return new Promise((function(n){var r,i=new XMLHttpRequest;if(i.onreadystatechange=o,i.ontimeout=u,i.responseType="blob",i.timeout=e,i.open("GET",t,!0),i.send(),s.impl.options.imagePlaceholder){var a=s.impl.options.imagePlaceholder.split(/,/);a&&a[1]&&(r=a[1])}function o(){if(4===i.readyState)if(200===i.status){var e=new FileReader;e.onloadend=function(){var t=e.result.split(/,/)[1];n(t)},e.readAsDataURL(i.response)}else r?n(r):l("cannot fetch resource: "+t+", status: "+i.status)}function u(){r?n(r):l("timeout of "+e+"ms occured while fetching resource: "+t)}function l(t){console.error(t),n("")}}))},uid:function(){var t=0;return function(){return"u"+e()+t++;function e(){return("0000"+(Math.random()*Math.pow(36,4)<<0).toString(36)).slice(-4)}}}(),delay:function(t){return function(e){return new Promise((function(n){setTimeout((function(){n(e)}),t)}))}},asArray:function(t){for(var e=[],n=t.length,r=0;r<n;r++)e.push(t[r]);return e},escapeXhtml:function(t){return t.replace(/#/g,"%23").replace(/\n/g,"%0A")},makeImage:function(t){return new Promise((function(e,n){var r=new Image;r.onload=function(){e(r)},r.onerror=n,r.src=t}))},width:function(t){var n=e(t,"border-left-width"),r=e(t,"border-right-width");return t.scrollWidth+n+r},height:function(t){var n=e(t,"border-top-width"),r=e(t,"border-bottom-width");return t.scrollHeight+n+r}};function t(t){var e=/\.([^\.\/]*?)$/g.exec(t);return e?e[1]:""}function e(t,e){var n=window.getComputedStyle(t).getPropertyValue(e);return parseFloat(n.replace("px",""))}}(),r=function(){var t=/url\(['"]?([^'"]+?)['"]?\)/g;return{inlineAll:function(t,n,a){return o()?Promise.resolve(t):Promise.resolve(t).then(r).then((function(e){var r=Promise.resolve(t);return e.forEach((function(t){r=r.then((function(e){return i(e,t,n,a)}))})),r}));function o(){return!e(t)}},shouldProcess:e,impl:{readUrls:r,inline:i}};function e(e){return-1!==e.search(t)}function r(e){for(var r,i=[];null!==(r=t.exec(e));)i.push(r[1]);return i.filter((function(t){return!n.isDataUrl(t)}))}function i(t,e,r,i){return Promise.resolve(e).then((function(t){return r?n.resolveUrl(t,r):t})).then(i||n.getAndEncode).then((function(t){return n.dataAsUrl(t,n.mimeType(e))})).then((function(r){return t.replace(function(t){return new RegExp("(url\\(['\"]?)("+n.escape(t)+")(['\"]?\\))","g")}(e),"$1"+r+"$3")}))}}(),i=function(){return{resolveAll:function(){return t().then((function(t){return Promise.all(t.map((function(t){return t.resolve()})))})).then((function(t){return t.join("\n")}))},impl:{readAll:t}};function t(){return Promise.resolve(n.asArray(document.styleSheets)).then((function(t){var e=[];return t.forEach((function(t){try{n.asArray(t.cssRules||[]).forEach(e.push.bind(e))}catch(e){console.log("Error while reading CSS rules from "+t.href,e.toString())}})),e})).then((function(t){return t.filter((function(t){return t.type===CSSRule.FONT_FACE_RULE})).filter((function(t){return r.shouldProcess(t.style.getPropertyValue("src"))}))})).then((function(e){return e.map(t)}));function t(t){return{resolve:function(){var e=(t.parentStyleSheet||{}).href;return r.inlineAll(t.cssText,e)},src:function(){return t.style.getPropertyValue("src")}}}}}(),a=function(){return{inlineAll:function e(i){return i instanceof Element?a(i).then((function(){return i instanceof HTMLImageElement?t(i).inline():Promise.all(n.asArray(i.childNodes).map((function(t){return e(t)})))})):Promise.resolve(i);function a(t){var e=t.style.getPropertyValue("background");return e?r.inlineAll(e).then((function(e){t.style.setProperty("background",e,t.style.getPropertyPriority("background"))})).then((function(){return t})):Promise.resolve(t)}},impl:{newImage:t}};function t(t){return{inline:function(e){return n.isDataUrl(t.src)?Promise.resolve():Promise.resolve(t.src).then(e||n.getAndEncode).then((function(e){return n.dataAsUrl(e,n.mimeType(t.src))})).then((function(e){return new Promise((function(n,r){t.onload=n,t.onerror=r,t.src=e}))}))}}}}(),o={imagePlaceholder:void 0,cacheBust:!1},s={toSvg:u,toPng:function(t,e){return l(t,e||{}).then((function(t){return t.toDataURL()}))},toJpeg:function(t,e){return l(t,e=e||{}).then((function(t){return t.toDataURL("image/jpeg",e.quality||1)}))},toBlob:function(t,e){return l(t,e||{}).then(n.canvasToBlob)},toPixelData:function(t,e){return l(t,e||{}).then((function(e){return e.getContext("2d").getImageData(0,0,n.width(t),n.height(t)).data}))},impl:{fontFaces:i,images:a,util:n,inliner:r,options:{}}};function u(t,e){return function(t){void 0===t.imagePlaceholder?s.impl.options.imagePlaceholder=o.imagePlaceholder:s.impl.options.imagePlaceholder=t.imagePlaceholder;void 0===t.cacheBust?s.impl.options.cacheBust=o.cacheBust:s.impl.options.cacheBust=t.cacheBust}(e=e||{}),Promise.resolve(t).then((function(t){return c(t,e.filter,!0)})).then(h).then((function(t){e.bgcolor&&(t.style.backgroundColor=e.bgcolor);e.width&&(t.style.width=e.width+"px");e.height&&(t.style.height=e.height+"px");e.style&&Object.keys(e.style).forEach((function(n){t.style[n]=e.style[n]}));return t})).then((function(r){return function(t,e,r){return Promise.resolve(t).then((function(t){return t.setAttribute("xmlns","http://www.w3.org/1999/xhtml"),(new XMLSerializer).serializeToString(t)})).then(n.escapeXhtml).then((function(t){return'<foreignObject x="0" y="0" width="100%" height="100%">'+t+"</foreignObject>"})).then((function(t){return'<svg xmlns="http://www.w3.org/2000/svg" width="'+e+'" height="'+r+'">'+t+"</svg>"})).then((function(t){return"data:image/svg+xml;charset=utf-8,"+t}))}(r,e.width||n.width(t),e.height||n.height(t))}))}function l(t,e){return u(t,e).then(n.makeImage).then(n.delay(100)).then((function(r){var i=function(t){var r=document.createElement("canvas");if(r.width=e.width||n.width(t),r.height=e.height||n.height(t),e.bgcolor){var i=r.getContext("2d");i.fillStyle=e.bgcolor,i.fillRect(0,0,r.width,r.height)}return r}(t);return i.getContext("2d").drawImage(r,0,0),i}))}function c(t,e,r){return r||!e||e(t)?Promise.resolve(t).then((function(t){return t instanceof HTMLCanvasElement?n.makeImage(t.toDataURL()):t.cloneNode(!1)})).then((function(r){return function(t,e,r){var i=t.childNodes;return 0===i.length?Promise.resolve(e):a(e,n.asArray(i),r).then((function(){return e}));function a(t,e,n){var r=Promise.resolve();return e.forEach((function(e){r=r.then((function(){return c(e,n)})).then((function(e){e&&t.appendChild(e)}))})),r}}(t,r,e)})).then((function(e){return function(t,e){var r=e;return r instanceof Element?Promise.resolve().then(i).then(a).then(o).then(s).then(u).then((function(){return r})):r;function i(){if(r instanceof HTMLVideoElement){var e=window.getComputedStyle(t),n=document.createElement("canvas");n.width=parseInt(e.width,10),n.height=parseInt(e.height,10);var i=Math.max(t.videoWidth/n.width,t.videoHeight/n.height),a=t.videoWidth/i,o=t.videoHeight/i,s=n.width/2-a/2,u=n.height/2-o/2;n.getContext("2d").drawImage(t,s,u,a,o);var l=r=document.createElement("img");try{l.src=n.toDataURL()}catch(t){l.src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="}}}function a(){function e(t,e){function r(t,e){n.asArray(t).forEach((function(n){e.setProperty(n,t.getPropertyValue(n),t.getPropertyPriority(n))}))}t.cssText?e.cssText=t.cssText:r(t,e)}e(window.getComputedStyle(t),r.style)}function o(){function e(e){var i=window.getComputedStyle(t,e),a=i.getPropertyValue("content");if(""!==a&&"none"!==a){var o=n.uid();r.className=r.className+" "+o;var s=document.createElement("style");s.appendChild(u(o,e,i)),r.appendChild(s)}function u(t,e,r){var i="."+t+":"+e,a=r.cssText?o(r):s(r);return document.createTextNode(i+"{"+a+"}");function o(t){var e=t.getPropertyValue("content");return t.cssText+" content: "+e+";"}function s(t){return n.asArray(t).map(e).join("; ")+";";function e(e){return e+": "+t.getPropertyValue(e)+(t.getPropertyPriority(e)?" !important":"")}}}}[":before",":after"].forEach((function(t){e(t)}))}function s(){t instanceof HTMLTextAreaElement&&(r.innerHTML=t.value),t instanceof HTMLInputElement&&r.setAttribute("value",t.value)}function u(){r instanceof SVGElement&&(r.setAttribute("xmlns","http://www.w3.org/2000/svg"),r instanceof SVGRectElement&&["width","height"].forEach((function(t){var e=r.getAttribute(t);e&&r.style.setProperty(t,e)})))}}(t,e)})):Promise.resolve()}function h(t){return a.inlineAll(t).then((function(){return t}))}t.exports=s}()})),yn=function(t){if(!t)return!1;return 1==new RegExp(/http(s)?:\/\/([\w-]+\.)+[\w-]+(\/[\w- .\/?%&=]*)?/).test(t)},_n=function(t){for(var e="",n=new Uint8Array(t),r=n.byteLength,i=0;i<r;i++)e+=String.fromCharCode(n[i]);return"data:image/jpeg;base64,".concat(window.btoa(e))},bn=function(t,e){void 0===e&&(e="screenshot.jpeg");try{for(var n=t.split(","),r=n[0].match(/:(.*?);/)[1],i=atob(n[1]),a=i.length,o=new Uint8Array(a);a--;)o[a]=i.charCodeAt(a);return new File([o],e,{type:r})}catch(t){console.error("dataURLtoFile:数据转换错误 : "+t)}},wn=function(t,e){return h(void 0,void 0,void 0,(function(){var n;return f(this,(function(r){switch(r.label){case 0:return r.trys.push([0,11,,12]),"File"!=e||"string"!=typeof t?[3,2]:[4,bn(t)];case 1:case 3:case 5:case 7:return[2,r.sent()];case 2:return"File"!=e||"[object ArrayBuffer]"!=t.toString()?[3,4]:[4,new File([t],"screenshot.jpeg")];case 4:return"Base64"!=e||"string"!=typeof t?[3,6]:[4,t];case 6:return"Base64"!=e||"[object ArrayBuffer]"!=t.toString()?[3,8]:[4,_n(t)];case 8:return[4,new Error("transformData: 转换发生错误")];case 9:throw r.sent();case 10:return[3,12];case 11:return n=r.sent(),console.log(n),[3,12];case 12:return[2]}}))}))},Dn=function(t,n,r,i){return h(void 0,void 0,void 0,(function(){return f(this,(function(a){switch(a.label){case 0:return a.trys.push([0,2,,3]),[4,e({url:t,method:"GET",responseType:"arraybuffer",params:{url:n,dom:r,quality:i}})];case 1:return[2,a.sent()];case 2:return a.sent(),console.warn("请求截图服务器发生错误,请检查地址及参数是否正确!",{url:t,path:n,dom:r,quality:i}),[2,null];case 3:return[2]}}))}))},Sn=function(t,e){return h(void 0,void 0,void 0,(function(){var n,r;return f(this,(function(i){switch(i.label){case 0:if(i.trys.push([0,2,,3]),!(n=document.querySelector(t)))throw new Error("domToImg:"+t+" dom未被找到!");return[4,vn.toJpeg(n,{style:{transform:"scale(1)",position:"static"},quality:e})];case 1:return[2,i.sent()];case 2:return r=i.sent(),console.warn(r),[3,3];case 3:return[2]}}))}))},xn=function(t){return"".concat(t>15?"":0).concat(t.toString(16))},Tn=function(t){var e=t.r,n=t.g,r=t.b,i=t.a,a=void 0===i?1:i;return"#".concat(xn(e)).concat(xn(n)).concat(xn(r)).concat(1===a?"":xn(Math.floor(255*a)))},kn=function(t){var e=t.r,n=t.g,r=t.b;return"rgb(".concat(e,",").concat(n,",").concat(r,")")},Cn=function(t,e){void 0===e&&(e=1e4);var n=t.r,r=t.g,i=t.b,a=t.a,o=void 0===a?1:a;return"rgba(".concat(n,",").concat(r,",").concat(i,",").concat(Math.floor(o*e)/e,")")},En=function(t){var e=t.slice(1),n=1;3===e.length&&(e="".concat(e[0]).concat(e[0]).concat(e[1]).concat(e[1]).concat(e[2]).concat(e[2])),8===e.length&&(n=parseInt(e.slice(6),16)/255,e=e.slice(0,6));var r=parseInt(e,16);return{r:r>>16&255,g:r>>8&255,b:255&r,a:n}},Mn=function(t){var e=t.match(/(\d(\.\d+)?)+/g)||[],n=e.map((function(t){return parseInt(t,10)}));return{r:n[0],g:n[1],b:n[2],a:parseFloat(e[3])}},On=function(t){if(t.startsWith("#"))return En(t);if(t.startsWith("rgb"))return Mn(t);if("transparent"===t)return En("#00000000");throw new Error("color string error: ".concat(t))},An=Object.freeze({__proto__:null,Watermark:class{constructor(t={}){Xe(this,"options"),Xe(this,"container"),Xe(this,"watermarkContent"),Xe(this,"watermarkDom"),Xe(this,"style"),Xe(this,"watermarkTag"),Xe(this,"shadowRoot"),Xe(this,"mutationObserver"),Xe(this,"_isAgainRender",(t=>{if("attributes"===t.type){if(t.attributeName===Qe)return!0;if(this.watermarkTag===this._getNodeRandomId(t.target))return!0}return!(!t.removedNodes.length||this.watermarkTag!==this._getNodeRandomId(t.removedNodes[0]))})),Xe(this,"_getNodeRandomId",(t=>{var e,n;return null==(e=null==t?void 0:t.dataset)?void 0:e[(n=Qe,n.split("-").slice(1).reduce(((t,e,n)=>0===n?e:`${t}${e[0].toUpperCase()+e.slice(1)}`)))]})),Xe(this,"_destroyMutationObserver",(()=>{this.mutationObserver&&(this.mutationObserver.takeRecords(),this.mutationObserver.disconnect(),this.mutationObserver=null)})),Xe(this,"_getWatermarkDom",(t=>$e(this,null,(function*(){this.watermarkDom||(this.watermarkDom=document.createElement("div")),"number"==typeof t&&t&&(this.style.height=`${t}px`);const e=yield function(t){const{text:e,gapX:n,gapY:r,offsetTop:i,offsetLeft:a,width:o,height:s,rotate:u,opacity:l,fontSize:c,fontStyle:h,fontVariant:f,fontWeight:d,fontFamily:p,fontColor:g,textAlign:m,textBaseline:v,image:y,blindText:_,blindFontSize:b,blindOpacity:w}=t;return new Promise(((t,D)=>{const S=document.createElement("canvas"),x=S.getContext("2d"),T=1*(Number(n)+Number(o)),k=1*(Number(r)+Number(s)),C=Number(a)||Number(n)/2,E=Number(i)||Number(r)/2;if(S.setAttribute("width",`${T}px`),S.setAttribute("height",`${k}px`),x){const n=1*o,r=1*s;if(x.translate(1*C,1*E),x.rotate(Math.PI/180*Number(u)),_&&(x.globalAlpha=w,x.font=`${b}px normal`,x.fillText(_,0,0)),x.globalAlpha=l,y){const e=new Image;return e.crossOrigin="anonymous",e.referrerPolicy="no-referrer",e.src=y,void(e.onload=()=>{x.drawImage(e,0,0,n,r),t({url:x.canvas.toDataURL(),width:T,height:k})})}const i=Array.isArray(e)?e:[e],a=i.map((t=>x.measureText(t).width)),h=Math.max(...a),f=1*Number(c);x.textAlign=m,x.textBaseline=v,x.fillStyle=g,x.font=M(`${f}px`),h>o&&(x.font=M(f/2+"px"));const d=f+5;let p=(r-(c*i.length+5*(i.length-1)))/2;p=p<0?0:p;for(let t=0;t<i.length;t++)x.fillText(i[t]||"",n/2,p+d*t);t({url:x.canvas.toDataURL(),width:T,height:k})}function M(t){return`${h} ${f} ${d} ${t} ${p}`}return D()}))}(this.options);if(null==e?void 0:e.url){const t=e.url;"repeat"===this.options.mode?this.style.backgroundImage=`url(${t})`:(this.style.backgroundImage=`url(${t}), url(${t})`,this.style.backgroundRepeat="repeat, repeat",this.style.backgroundPosition=`${e.width/2}px ${e.height/2}px, 0 0`),this.options.container||(this.style.position="fixed",this.style.height=void 0),this.watermarkDom.setAttribute("style",en(this.style))}return this.watermarkDom.setAttribute(Qe,this.watermarkTag),this.watermarkDom})))),Xe(this,"_getWatermarkHeight",(()=>{if(!this.container)return 0;let t=0;const{scrollHeight:e=0,clientHeight:n=0}=this.options.container?this.container.parentNode:this.container;return e>n&&(t=Math.max(e,n)),t})),this.options=Object.assign({},Je,t),this.style={position:"absolute",left:0,top:0,right:0,bottom:0,pointerEvents:"none",overflow:"hidden",backgroundColor:"transparent",backgroundRepeat:"repeat"},this.style.zIndex=this.options.zIndex,this.watermarkTag=nn("watermark"),this.mutationObserver=null,this._render()}update(t={}){this.options=Ze(Ze({},this.options),t),this.style.zIndex=this.options.zIndex,this._render()}show(){this.watermarkDom&&(this.style.display="block",this.watermarkDom.setAttribute("style",en(this.style)))}hide(){this.watermarkDom&&(this.style.display="none",this.watermarkDom.setAttribute("style",en(this.style)))}destroy(){this.shadowRoot=void 0,this.watermarkContent&&(this.watermarkContent.remove(),this.watermarkContent=void 0),this.watermarkDom&&(this.watermarkDom.remove(),this.watermarkDom=void 0),this._destroyMutationObserver()}_render(){return $e(this,null,(function*(){this._destroyMutationObserver(),this.container=((t,e,n={},r)=>{let i;if("string"==typeof t){if(i=document.getElementById(t),!i)throw new Error(`水印挂载节点未找到,请检查#${t}是否存在`)}else i=null!=t?t:document.body;i.setAttribute(Qe,e);const a=Ze({position:"relative"},n);return r||delete a.position,i.setAttribute("style",en(a)),i})(this.options.container,this.watermarkTag,this.options.containerStyle,this.options.pack),this.watermarkContent||(this.watermarkContent=(t=>{const e=document.createElement("div");return e.setAttribute("style",en({pointerEvents:"none"})),e.setAttribute(Qe,t),e})(this.watermarkTag),this.container.append(this.watermarkContent));const t=this._getWatermarkHeight();if(this.watermarkDom=yield this._getWatermarkDom(t),this.watermarkContent){const t=this.watermarkContent.childNodes||[];for(let e=0;e<t.length;e++)this.watermarkContent.removeChild(t[e])}"function"==typeof this.watermarkContent.attachShadow?this.shadowRoot||(this.shadowRoot=this.watermarkContent.attachShadow({mode:"open"})):this.shadowRoot=this.watermarkContent,this.shadowRoot.append(this.watermarkDom),rn&&this.options.monitor&&(this.mutationObserver=new rn((t=>{t.forEach((t=>{if(this._isAgainRender(t))return this.destroy(),void this._render()}))})),this.mutationObserver.observe(this.container,tn),this.shadowRoot&&this.mutationObserver.observe(this.shadowRoot,tn))}))}},generateComponentList:on,generateCaseDataJson:sn,generatePageData:function(t){var e={},n=e.theme,r=void 0===n?null:n,i=e.globalVars,a=void 0===i?null:i,o=e.shareVariableTree,s=void 0===o?null:o,u=e.plant,l=void 0===u?null:u,c=e.list,h=void 0===c?[]:c,f=e.undos,d=void 0===f?[]:f,p=e.undoRedoPointer,g=void 0===p?-1:p,m=e.globalEvents,v=void 0===m?[]:m;return t&&(r=t.theme,l=t.plant),{theme:r,globalVars:a,globalEvents:v,shareVariableTree:s,plant:l,undos:d,undoRedoPointer:g,list:on(h)}},exportJson:function(t){var e=t.caseName,n=void 0===e?"case-name":e,r=t.caseImg,i=void 0===r?"":r,a=t.caseRemark,o=void 0===a?"":a,u=t.details,l=t.caseClientType,c=void 0===l?"":l,h=t.id,f={caseClientType:c,caseName:n,caseImg:i,caseRemark:o,caseId:void 0===h?"":h,createTime:s().format("YYYY-MM-DD , h:mm:ss"),caseData:sn(u)},d=new Blob([JSON.stringify(f)],{type:"json"});an.saveAs(d,n+".json")},generateJson:function(t){var e=t.caseName,n=void 0===e?"":e,r=t.caseData;return t.plangInfoForPsd,{caseName:n,createTime:s().format("YYYY-MM-DD , h:mm:ss"),caseData:sn(r)}},SizeAdaption:ln,Scale:cn,loadFontResource:hn,loadScript:fn,removeTag:mn,loadTag:gn,loadFont:pn,getDataForEvaluator:y,recursion:le,setIndex:ce,encrypt:function(t){var e=new Xt;return e.setPublicKey("MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEApWni7uLYVV8iyDPTR6Zs\naj+2BHCn4xTzFeVHADzTdtBiFH9i4fKeDK0IfbPV/9TGeRYNfl0qSfdLtU+1ZIzm\npqHppadukmk5+NbBG4Xm/lAZgVt3dUIrSyamxVjwnymN7PLdxaSOS/mgU6SDGMhN\nTM76AXKZZXWMK12UCXvKkh+TkGufcXzLe7LtrvHPLOgcnEED2CkWATuE9g8K9j4T\neOMxhJcHBUmXLgU6Chufa4nBed2899E7jxJa14+J1IDa2ahrDFLZN7H//ZsvwnXq\nxVbxm0k5jyWqfCpg13V7zD3DxNWlo3MIh2fPtIEUDVhugqPd0jPmqquqdBNTnu2I\nGQIDAQAB"),e.encrypt(t)},decrypt:function(t){var e=new Xt;return e.setPrivateKey("MIIEvgIBADANBgkqhkiG9w0BAQEFAASCBKgwggSkAgEAAoIBAQClaeLu4thVXyLI\nM9NHpmxqP7YEcKfjFPMV5UcAPNN20GIUf2Lh8p4MrQh9s9X/1MZ5Fg1+XSpJ90u1\nT7VkjOamoemlp26SaTn41sEbheb+UBmBW3d1QitLJqbFWPCfKY3s8t3FpI5L+aBT\npIMYyE1MzvoBcplldYwrXZQJe8qSH5OQa59xfMt7su2u8c8s6BycQQPYKRYBO4T2\nDwr2PhN44zGElwcFSZcuBToKG59ricF53bz30TuPElrXj4nUgNrZqGsMUtk3sf/9\nmy/CderFVvGbSTmPJap8KmDXdXvMPcPE1aWjcwiHZ8+0gRQNWG6Co93SM+aqq6p0\nE1Oe7YgZAgMBAAECggEABN8LadGQYWM92Pt9u1xxUOezaooOx6c0SW7JGn6wE42r\ndcMSnGjSsrjdySXkpXYUqjg2CYSg3DDGL/667s0fdcTK5q/5l6I1rNhWM4NL/C1L\nsv2IlRFvyPTIcINgAq/smA/G7C0ea6pcSFpN6grsC9kEj8paLhy6FgTZeTYGDyuG\nwI3D7XWZNzWfyQlAsoWEYAmDx72rOuEaeK4W4SMf3BB2g1hJ6fZoKT3ehHozAGcJ\nB7R8k3tGALVYdOqQgXhj8t3vNu1OATG0Q6d4z28e4TwsVunxReTyRcofrgOVwpry\nEmb4C5RYaN/rWxRrL8aW+nB3wAD/PFDacVBz/8RvaQKBgQDX90jqlLtLRVAsqbiS\nSHmX67CqQzNNDWgysQLmF2YmmkGyth4QR+cNEenIEeSSt+vc0VMAbxYY5SVzVCRl\nSZHoKHNlLGmepd3aJw5ZcFnpU86J7aG8fhvgZGEmCR+1JOZU7pUbpTvka0WQC3AK\n2+O7nUYIU65xeOaJVZvUu6My+wKBgQDEE6DrFVMNgI3dDZM0buHMYDJ2mL9F1DZb\n2URxYAlmvjkpaQb9Vq1VXV0ApZ3ItXgIX6cVrJB+MILmrsoxAamFOl/9AYiKnpnb\nYMxxqFYPuME7fzEli041915j6CpMmOwrAq6SrLiZ//hNlobJf76dAY9qyX91BTC8\nBfEWVhnk+wKBgQDT5kb+G+bVSPIMkI6PwVrE7DWQKZV5YdE+A55TgtvwvmP95GEF\nGneixFO8wYmjR6C+LgihoV1uGc+wI/v+AbyOrLnkqDoNtrNB7BZRPUKLBHbfsHCE\nELxrZDJJ7qPUyZrR9LIKyQpF6db8KazKiswc9oiTfP/pSHXyhDP8/Ap55wKBgQC6\njDI9dzxdTEGsXo3/BL+vQpbAXvMb7JsLJ9sGQuiu56xayaHsxdqDrSAezXMg0gYx\ncU/2Pwf6Bw2DjCiyF3LBXpiUjjDqMZsQLThVqmK28oBlqs2HetIeZgtX4jrcRWHs\nSdDtm4bGfdIvf1cdvnwLxMA+SRcKrrV/LegB6EkaoQKBgEwE4rllfRxOSGaF47ew\nRxTLGphZmxhLDsx0fMOHflx/BnGnxruBLEhdv3mlp12YMmb2s6kwFJvngLq4fZll\nTmC7BW3Z9h8XsL9j2xtID+5gsxYHHOCcdbzGuQV5KWb51cBym7EP9qk/3NP8w3/+\nH0iKrgAII5Ym0yh41dGL5HCo"),e.decrypt(t)},decrypAES:Ae,safeEval:Pe,setActions:Ee,genID:ke,arraySwap:ne,arraySwapDeep:ie,arraySwapForId:re,setAttr:function(t,e,n){for(var r,i=0;i<t.length;i++)(r=t[i]).cid!==e&&r.id!==e||(r[n]=!r[n])},RecursiveList:Te,selectdArea:we,setPorp:function(t,e,n){var r=e.find((function(e){return e.cid===t}));"folder"===r.type?r.children.length&&r.children.forEach((function(t){t[n]=!t[n]})):r[n]=!r[n]},setPositionForGroup:pe,resetPositionForGroup:function(t,e){var n=e.map((function(t){return t.cid}));e.forEach((function(e){e.pid&&ve(e,t)}));var r=we(n,e);return pe(r,e),{left:r.left,top:r.top,width:r.width,height:r.height}},setPositionForWorld:ve,breakUp:ge,findItem:se,findItemDeep:ae,findParentDeep:oe,findItemIndexDeep:function(t,e){for(var n,r=0,i=0;i<t.length;i++){var a=t[i];if(r+=1,a.cid==e)break;if(null===(n=null==a?void 0:a.children)||void 0===n?void 0:n.length)for(var o=0;o<(null==a?void 0:a.children.length);o++){if(r+=1,(null==a?void 0:a.children[o]).cid==e)return r}}return r},getLength:function(t){var e=0,n=function(t){for(var r=function(r){if(t[r].isShow&&t[r].children)n(t[r].children);else if(t[r].isShow&&t[r].dynamicChildren){if(t[r].dynamicChildren instanceof Map){for(var i=Array.from(t[r].dynamicChildren),a=0;a<i.length;a++)if(i[a]instanceof Array){var o=i[a][1];n(o)}}else if(t[r].isShow&&t[r].dynamicChildren instanceof Array){var s=t[r].dynamicChildren.find((function(e){return e[0]=t[r].activeDynamic}));s&&s.length&&n(s[1])}}else t[r].isShow&&t[r].stateChildren?n(t[r].stateChildren):t[r].isShow&&e++},i=0;i<t.length;i++)r(i)};return n(t),e||!1},getPosition:De,updataAttribute:fe,isPeer:ue,transformPosition:ye,upDataGroup:Se,upDataGroupChildren:function(e,n,r){var i=e.children,a=t.cloneDeep(n),o=t.cloneDeep(De(i)),s=a.left,u=a.top;a.width,a.height;var l=o.left,c=o.top,h=o.width,f=o.height,d={left:s+l,top:u+c,width:h,height:f,angle:n.angle?n.angle:0};return i.forEach((function(e){var n=t.cloneDeep(e.baseData);e.baseData.left<0?n.left=0:n.left=n.left-l,e.baseData.top<0?n.top=0:n.top=n.top-c,e.baseData=n})),e.children=i,d},resziePositionForGroup:function(e,n,r,i){var a=e.baseData.left,o=e.baseData.top,s=n.left,u=n.top,l=t.cloneDeep(e.children),c=r||"";if(s-a<0)for(var h=0;h<l.length;h++){(f=l[h]).cid!==c&&(f.baseData.left=f.baseData.left+(a-s))}if(u-o<0)for(h=0;h<l.length;h++){var f;(f=l[h]).cid!==c&&(f.baseData.top=f.baseData.top+(o-u))}e.children=l},genCopyName:function(t,e,n){var r,i;void 0===n&&(n=" copy");var a=new RegExp("".concat(n,"( \\d+)?$")).exec(t);a?(r=a[1]?parseInt(a[1]):0,i=t.slice(0,a.index)):(r=0,i=t);var o=new RegExp("^".concat(i).concat(n,"( [1-9][0-9]*)?$")),s=[];e.forEach((function(t){if(a=o.exec(t)){var e=a[1]?parseInt(a[1]):1;s.push(e)}})),s.sort((function(t,e){return t-e})),r++;for(var u=0,l=s.length;u<l;u++)if(s[u]===r)r++;else if(s[u]>r)break;return i+n+" "+r},resetID:he,getUrlParams:Ce,updataSizeDeep:te,resizePosition:_e,resizeListPosition:function(t,e){var n=function(t,r){for(var i,a=0;a<t.length;a++){var o=t[a];if(o.pid!=r){var s=_e(e,o.cid),u=_e(e,o.pid);console.log(s,u),o.baseData.left=s.left-u.left,o.baseData.top=s.top-u.top}(null===(i=null==o?void 0:o.children)||void 0===i?void 0:i.length)&&n(o.children,o.cid)}};n(t,e)},checkBaseData:ee,comToggle:de,globalSourceTemp:Be,upDataGroupV2:xe,getInteractive:Ve,executeFilter:function(t){return t.hasOwnProperty("originalValue")||(t.originalValue=t.value),t.converter&&t.converterCode?t.value=Pe(t.converterCode,t.originalValue):t.value=t.originalValue,t},getShareTree:function(t,e){try{var n={},r=[],i=[];return le(t,(function(t){var a,o,s,u=null===(a=null==t?void 0:t.tmpData)||void 0===a?void 0:a.source;(Ne(u,e,t,n),null===(s=null===(o=null==t?void 0:t.tmpData)||void 0===o?void 0:o.actions)||void 0===s?void 0:s.length)&&Ee({types:t.tmpData.actions.map((function(t){return t.eventType})),element:t,actions:r,events:i})})),n}catch(t){return console.error(t),{}}},isJSON:Ye,getStandardData:Le,screenshot:function(t){return h(void 0,void 0,void 0,(function(){var e,n,r,i,a,o,s,u;return f(this,(function(l){switch(l.label){case 0:return l.trys.push([0,11,,12]),e=t.dom,n=t.servePath,r=t.targetPath,i=t.quality,a=t.type,o=void 0,yn(n)&&yn(r)?[4,Dn(n,r,e,i||.5)]:[3,5];case 1:return(s=l.sent())&&200==s.status&&s.data?(o=s.data,[3,4]):[3,2];case 2:return console.warn("截取错误,请检查网络或服务地址配置是否正确,已转换为dom-to-img."),[4,Sn(e,i||.5)];case 3:o=l.sent(),l.label=4;case 4:return[3,7];case 5:return console.warn("地址错误,请检查传入的地址是否争取,已转换为dom-to-img."),[4,Sn(e,i||.5)];case 6:o=l.sent(),l.label=7;case 7:return o?[4,wn(o,a)]:[3,9];case 8:return[2,l.sent()];case 9:return[2,null];case 10:return[3,12];case 11:return u=l.sent(),console.error("截图发生错误:"+u),[2,null];case 12:return[2]}}))}))},toHex:xn,toHexString:Tn,toRgbString:kn,toRgbaString:Cn,parseHexColor:En,parseRgbaColor:Mn,parseColorString:On,getColorInfo:function(t){var e=On(t);return{hex:Tn(e),rgba:Cn(e),rgb:kn(e),rgbaObj:e}},hexToRgba:function(t){var e=On(t);return Cn(e)},rgbaToHex:function(t){var e=On(t);return Tn(e)}}),Pn=ze();function Bn(n,r,i,a){return h(this,void 0,void 0,(function(){var o,s,u,l,h,d;return f(this,(function(f){switch(f.label){case 0:o=n,s=t.cloneDeep(i),u=r?r.toLowerCase():"get",f.label=1;case 1:return f.trys.push([1,6,,7]),l={},["post","put"].includes(u)?l.data=s:l.params=s,h=void 0,/.json$/.test(o)?[4,e.get(o).then((function(t){return t.data}))]:[3,3];case 2:return h=f.sent(),[3,5];case 3:return[4,Pn(c({method:Nn[u],headers:a,url:o,timeout:3e4},l)).then((function(t){return{code:2e4,data:t.data}}))];case 4:h=f.sent(),f.label=5;case 5:return[2,h];case 6:return d=f.sent(),console.error("error:"+d.message),[3,7];case 7:return[2]}}))}))}function Rn(t){return h(this,void 0,void 0,(function(){var e,n,r,i;return f(this,(function(a){switch(a.label){case 0:e=window.anUrl?window.anUrl:"",n=e+(window.agentPath?window.agentPath:"/ds/v1/api-proxy/v1/query"),r=null==t?void 0:t.params,a.label=1;case 1:return a.trys.push([1,3,,4]),"{}"==JSON.stringify(null==t?void 0:t.params)?r=void 0:Le(null==t?void 0:t.params,!0),"{}"==JSON.stringify(null==t?void 0:t.headers)&&(null==t||delete t.headers),[4,Pn({url:n,headers:{"Content-Type":"application/json;charset=UTF-8"},method:"post",data:{body:r,headers:null==t?void 0:t.headers,method:null==t?void 0:t.method,url:null==t?void 0:t.url}})];case 2:return[2,a.sent()];case 3:return i=a.sent(),console.error("error:"+i.message),[3,4];case 4:return[2]}}))}))}var Vn,Nn,In=function(e,n,r){var i,a=e.tmpData.source,o=r?r.value.api.agency:null===(i=null==a?void 0:a.api)||void 0===i?void 0:i.agency,s=a.type;if("static"!==s){var u=r?r.value.api:a[s],l=u.url,c=void 0===l?null:l,h=u.headers,f=u.params,d=u.requestType,p={};null==c||c.split("?")[0];var g=function(t){var e=new Object;if(t&&-1!==(null==t?void 0:t.indexOf("?")))for(var n=t.split("?")[1].split("&"),r=0;r<n.length;r++)e[n[r].split("=")[0]]=unescape(n[r].split("=")[1]);return e}(c);if((null==h?void 0:h.use)&&h.value){p=JSON.parse(h.value);var m=function(t){var e=Object.keys(t);if(null==e?void 0:e.length)for(var r,i,a=function(a){if("[object Object]"==Object.prototype.toString.call(t[e[a]]))m(t[e[a]]);else if("[object Array]"==Object.prototype.toString.call(t[e[a]]))t[e[a]]&&t[e[a]].length&&t[e[a]].map((function(t){m(t)}));else if(t[e[a]].toString().includes("@")){var o=n.filter((function(n){return n.mapField==t[e[a]].toString().replace(/{{|}}|@/gm,"")}))[0];o&&((/{|}/.test(o.value)||/\[|]/.test(o.value))&&(o.value=new Function("return "+o.value)()),t[e[a]]=o.value)}else if(r=null,/{{|}}/.test(t[e[a]].toString())){if(i=t[e[a]].toString().replace(/{{(.*?)}}/gm,(function(t,e){if(n.length){r=e.toString();for(var i=0;i<n.length;i++)if(void 0===e||n[i].mapField===e.toString())return n[i].value||n[i].originalValue}})),i){if(/{|}/.test(i)||/\[|]/.test(i))if("[object Object]"==i)for(var s=0;s<n.length;s++)r==n[s].mapField&&(i=n[s].value||n[s].originalValue);else i=new Function("return "+i)();t[e[a]]=i}i||(t[e[a]]="")}},o=0;o<e.length;o++)a(o)};m(p)}var v={};if(f&&t.isString(f)){var y={};try{y=JSON.parse(f)}catch(t){console.warn("转换参数异常")}t.assign(v,y)}else t.assign(v,f);var _=function(e){Object.keys(e).forEach((function(r){if("[object Object]"==Object.prototype.toString.call(e[r]))_(e[r]);else if("[object Array]"==Object.prototype.toString.call(e[r]))e[r]&&e[r].length&&e[r].map((function(t){_(t)}));else if(e[r].toString().includes("@")){var i=n.filter((function(t){return t.mapField==e[r].toString().replace(/{{|}}|@/gm,"")}))[0];i&&((/{|}/.test(i.value)||/\[|]/.test(i.value))&&(i.value=new Function("return "+i.value)()),e[r]=i.value,c=t.replace(c,g[r],i.value))}else{var a=null;if(/{{|}}/.test(e[r].toString())){var o=e[r].toString().replace(/{{(.*?)}}/gm,(function(t,e){if(n.length){a=e.toString();for(var r=0;r<n.length;r++)if(void 0===e||n[r].mapField===e.toString())return n[r].value||n[r].originalValue}}));if(o){if(/{|}/.test(o)||/\[|]/.test(o))if("[object Object]"==o)for(var s=0;s<n.length;s++)a==n[s].mapField&&(o=n[s].value||n[s].originalValue);else o=new Function("return "+o)();e[r]=o,c=t.replace(c,g[r],o)}o||(e[r]="",c=t.replace(c,g[r],""))}}}))};return _(v),{url:c,requestType:d,params:v,headers:p,agency:o}}return null},Fn=function(t,e,n){void 0===e&&(e=[]),e||(e=[]);var r=In(t,e);r&&n(r)},Yn=function(t,e,n,r,i,a){t.then((function(t){/.json$/.test(a)?jn(e,Ln(t,e,n,r),i,t.data):!t||2e4!=t.code&&200!=t.code?jn(e,Ln({error:!0,message:t.msg?t.msg:"data error"},e,n,r),i):n?jn(e,Ln(t.data,e,n,r),i):jn(e,Ln(t.data,e,n,r),i,t.data)})).catch((function(t){jn(e,Ln({error:!0,message:t.msg?t.msg:"data error"},e,n,r),i)}))},Ln=function(t,e,n,r){void 0===n&&(n=!0);try{var i=e.tmpData.source,a=i.converse;i.mapFields;return a&&a.use&&n?new Promise((function(e,n){e(y(t,a,0,r))})):new Promise((function(e,n){e(t)}))}catch(t){console.error(t)}},jn=function(t,e,n,r){e.then((function(e){r?Hn(t,e,n,r):Hn(t,e,n)}))},Hn=function(t,e,n,r){var i=t.tmpData.source.type;r?("static"==i&&(t.tmpData.source[i].originData=r),"indicatorCQ"===i?t.tmpData.source.indicator.data=e:t.tmpData.source[i].data=e):"indicatorCQ"===i?t.tmpData.source.indicator.data=e:t.tmpData.source[i].data=e,t.source=e,n({cid:t.cid,data:e})},zn=function(t,e,n,r,i,a){void 0===n&&(n=!0);try{var o=t.tmpData.source.type,s=void 0;s=r||function(){};var u=null;"globalData"==o&&(u=i.find((function(e){return t.tmpData.source[o].id==e.key}))),function(t,e,n,r,i,a,o){var s;void 0===r&&(r=!0),"globalData"==t&&(t=a.value.type);var u=function(t){i(t)},l=a?a.value[t]:e.tmpData.source[t];if("api"==t)Gn(e,n,r,u,a);else if("static"==t){var c=void 0,h=void 0;l.originData&&Object.keys(l.originData).length?h=c=l.originData:c=l.data,jn(e,Ln(c,e,r,n),u,h)}else if("datasource"==t){var f=l.inputSql.match(/({{[\w]*}})|((@)[\w]*)/gm),d=l.inputSql;f&&f.length&&f.forEach((function(t){var e=n.filter((function(e){return"@"+e.mapField==t||"{{"+e.mapField+"}}"==t})),r="";e&&e.length&&e.forEach((function(t){""!=t.value&&(r=t.value)})),d=d.replaceAll(t,r)})),qn(l.dsName,{dsType:"1",sql:Ae(d),filter:l.sqlFilter},e,n,u,r,t)}else if("staticFile"==t)qn(l.dsName,{dsType:l.dsType,sql:""},e,n,u,r,t);else if("indicator"==t)Wn(l.zbId,{},e,n,u,r);else if("indicatorCQ"==t){var p=a?a.value.indicator:e.tmpData.source.indicator;Un(p.zbName,p.params,e,n,u,r)}else if("packData"==t){if(o&&e.pid){var g=ae(o,e.pid),m=null===(s=null==g?void 0:g.tmpData)||void 0===s?void 0:s.source;c=m[null==m?void 0:m.type].data,jn(e,Ln(c,e,r,n),u)}console.log(o)}else u({cid:e.cid,data:"",message:"发生错误"})}(o,t,e,n,s,u,a||[])}catch(t){r&&r(t),console.log("error:11"+t)}},Un=function(t,e,n,r,i,a){return h(void 0,void 0,void 0,(function(){var o,s,u,l,c,h,d,p,g;return f(this,(function(f){switch(f.label){case 0:return o=window.BaseUrl,s=e.dateType,u=void 0===s?"":s,l=e.endPeriod,c=void 0===l?"":l,h=e.metricsName,d=void 0===h?t:h,p=e.startPeriod,g=void 0===p?"":p,[4,Pn({method:"GET",url:"".concat(o,"ds/v1/metrics/v1/data-alarm?dateType=").concat(u,"&endPeriod=").concat(c,"&metricsName=").concat(d,"&startPeriod=").concat(g),timeout:He}).then((function(t){if(2e4==t.code){var e=t.data;e?jn(n,Ln(e,n,a,r),i):(jn(n,Ln({data:e,message:t.msg?t.msg:"data error"},n,a,r),i),i({data:e,message:"发生错误"}))}else i({data:"",message:"发生错误"}),console.error("发生错误"),jn(n,Ln({error:!0,message:t.msg?t.msg:"data error"},n,a,r),i)})).catch((function(t){i(t)}))];case 1:return f.sent(),[2]}}))}))},Wn=function(t,e,n,r,i,a){return h(void 0,void 0,void 0,(function(){var e,o,s,u,l,c,h,d,p,g;return f(this,(function(f){switch(f.label){case 0:e=window.BaseUrl?window.BaseUrl.replace("/management",""):"",o=Ce("YZH_EXCHANGE_TOKEN")?Ce("YZH_EXCHANGE_TOKEN"):null===(g=window.yzhAuth)||void 0===g?void 0:g.getToken(),u=window.gdPassid,s=window.BASE_RELEASE?"".concat(e,"/ds/data-engine/v1/").concat(t,"/zb-query?token=").concat(o,"&passid=").concat(u,"&preview=1"):"".concat(e,"/ds/data-engine/v1/").concat(t,"/zb-query?token=").concat(o,"&passid=").concat(u),l=In(n,r),c=l.params,h=void 0===c?"":c,d=l.headers,p={};try{h&&(p=JSON.parse(h))}catch(t){h&&(p=h)}return[4,Pn({method:"POST",url:s,data:{headers:d,param:p},timeout:He}).then((function(t){if(2e4==t.code){var e=JSON.parse(t.data);e?jn(n,Ln(e,n,a,r),i):(jn(n,Ln({error:!0,message:t.msg?t.msg:"data error"},n,a,r),i),i({data:e,message:"发生错误"}))}else i({data:"",message:"发生错误"}),console.error("发生错误"),jn(n,Ln({error:!0,message:t.msg?t.msg:"data error"},n,a,r),i)})).catch((function(t){i({data:t,message:"发生错误"})}))];case 1:return f.sent(),[2]}}))}))},qn=function(t,e,n,r,i,a,o){return h(void 0,void 0,void 0,(function(){var s,u;return f(this,(function(l){switch(l.label){case 0:return"/"==(s=window.BaseUrl?window.BaseUrl.replace("/management",""):"")&&(s=""),e.newEncryption=!0,u={staticFile:{method:"get",params:e,url:"".concat(s,"/ds/v1/file/v1/").concat(t,"/query")},datasource:{method:"post",url:"".concat(s,"/ds/v1/database/v1/").concat(t,"/query"),data:c({},e)}},[4,Pn(c({method:"get",timeout:He},u[o])).then((function(t){if(2e4==t.code){var e=Le(t.data);e?jn(n,Ln(e,n,a,r),i):(jn(n,Ln({error:!0,message:t.msg?t.msg:"data error"},n,a,r),i),i({data:e,message:"发生错误"}))}else i({data:"",message:"发生错误"}),console.error("发生错误"),jn(n,Ln({error:!0,message:t.msg?t.msg:"data error"},n,a,r),i)})).catch((function(t){i(t)}))];case 1:return l.sent(),[2]}}))}))},Gn=function(t,e,n,r,i){void 0===n&&(n=!0);try{var a=In(t,e,i),o=a.url,s=a.requestType,u=a.params,l=a.headers,c=a.agency,h=o.match(/({{[\w]*}})|((@)[\w]*)/gm),f=o;h&&h.length&&h.forEach((function(t){var n=e.filter((function(e){return"@"+e.mapField==t||"{{"+e.mapField+"}}"==t})),r="";n&&n.length&&n.forEach((function(t){""!=t.value&&(r=t.value)})),f=f.replaceAll(t,r)})),Yn(c?Rn({method:s,url:f,params:u,headers:l}):Bn(f,s,u,l),t,n,e,r,f)}catch(t){console.log("error:22"+t)}},Kn=function(t,e,n,r,i,a){var o,s;void 0===a&&(a=!0),t&&"api"==(null===(s=null===(o=null==t?void 0:t.tmpData)||void 0===o?void 0:o.source)||void 0===s?void 0:s.type)&&Fn(t,e,(function(o){if(s=o.url,!new RegExp("^((https|http|ftp|rtsp|mms)?://)?(([0-9a-z_!~*'().&=+$%-]+: )?[0-9a-z_!~*'().&=+$%-]+@)?(([0-9]{1,3}.){3}[0-9]{1,3}|([0-9a-z_!~*'()-]+.)*([0-9a-z][0-9a-z-]{0,61})?[0-9a-z].[a-z]{2,6})(:[0-9]{1,4})?((/?)|(/[0-9a-z_!~*'().;?:@&=+$,%#-]+)+/?)$").test(s))return n({cid:t.cid,data:{error:!0,message:o.url+"不是一个正确的地址,请正确填写!"}}),!1;var s,u=o.url,l=o.requestType,c=o.params,h=o.headers;o.agency?Rn({method:l,url:u,params:c,headers:h}).then((function(r){r&&2e4==r.code?(!function(t,e,n){try{e.then((function(e){n(e?{cid:t.cid,data:e}:{cid:t.cid,data:"数据发生错误!"})}))}catch(t){console.error(t)}}(t,Ln(r.data,t,a,e),n),i&&"function"==typeof i&&i(1)):(i&&"function"==typeof i&&i(0),n({cid:t.cid,data:{error:!0,message:r.msg?r.msg:"error"}}))})).catch((function(e){i&&"function"==typeof i&&i(-1),n({cid:t.cid,data:{error:!0,message:e}})})):Bn(u,l,c,h).then((function(e){var i=[];if(r){var o=t.tmpData.source,s=o.converse;o.mapFields,s&&s.use&&a?y(e.data,s).then((function(e){i=e,n({cid:t.cid,data:i})})):(i=e.data,n({cid:t.cid,data:i}))}else i=e.data,n({cid:t.cid,data:i})})).catch((function(e){n({cid:t.cid,data:{error:!0,message:e}})}))}))};!function(t){t.json="application/json;charset=UTF-8",t.form="application/x-www-form-urlencoded; charset=UTF-8"}(Vn||(Vn={})),function(t){t.get="GET",t.post="POST",t.put="PUT",t.patch="PATCH",t.delete="DELETE"}(Nn||(Nn={}));var Zn=Object.freeze({__proto__:null,Http:function(t,e){return ze(t,e)},axios:e,getDataForEvaluator:y,getData:Bn,agentData:Rn,getComponentData:Fn,autoUpdateComData:function(e,n,r){var i,a,o,s,u,l=null===(i=null==e?void 0:e.tmpData)||void 0===i?void 0:i.source,c=null===(o=null===(a=l[null==l?void 0:l.type])||void 0===a?void 0:a.autoUpdate)||void 0===o?void 0:o.open,h=null===(u=null===(s=l[null==l?void 0:l.type])||void 0===s?void 0:s.autoUpdate)||void 0===u?void 0:u.time;c&&t.isNumber(h)&&h>0&&setInterval((function(){zn(e,n,!0,r)}),1e3*h)},updateComData:zn,refreshData:Kn,get ContentType(){return Vn},get HttpMethod(){return Nn}});function Xn(e){var n=[],r=[];le(t.cloneDeep(e),(function(t){var e,i;(null===(i=null===(e=null==t?void 0:t.tmpData)||void 0===e?void 0:e.actions)||void 0===i?void 0:i.length)&&Ee({types:t.tmpData.actions.map((function(t){return t.eventType})),element:t,actions:n,events:r})}));var i=r.filter((function(t){return t}));return{actions:n,events:i}}var $n={addGlobalSource:function(t,e){var n=e.name,r=e.value;t.globalSource.push({key:ke(),name:n,value:r})},editGlobalSource:function(e,n){var r=this,i=n.key,a=n.value,o=e.globalSource.find((function(t){return t.key==i}));o&&(o.name=n.name,o.value=a,le(t.cloneDeep(e.list),(function(t){var n,a,o;if("globalData"==(null===(a=null===(n=null==t?void 0:t.tmpData)||void 0===n?void 0:n.source)||void 0===a?void 0:a.type)){var s=null===(o=null==t?void 0:t.tmpData)||void 0===o?void 0:o.source.globalData,u=(null==t?void 0:t.children)?null==t?void 0:t.children:null;(null==s?void 0:s.id)==i&&zn(t,e.globalVars,!0,(function(t){r.commit("GoCom/updataSourceForComponent",t)}),e.globalSource,u)}})))},delGlobalSource:function(t,e){try{var n=t.globalSource.findIndex((function(t){return t.key===e}));-1!==n&&t.globalSource.splice(n,1)}catch(t){console.error("删除错误",t)}},setSyncFlag:function(t,e){t.syncFlag=e},goUpShareVar:function(t,e){t.shareVariable[e.key]=c({},e)},addGoRunVar:function(t,e){try{var n=Ve(t.list,t.globalConstant,t.sysConst);t.globalVars=n.globalVars,t.eventsComs=n.eventsComs}catch(t){console.warn(t)}},addGoVar:function(t,e){try{var n=e.mapField,r=t.globalConstant.filter((function(t){return t.mapField==n})).length;if(!n||r)throw new Error("添加失败!变量已经存在!");t.globalConstant.push(e);var i=Ve(t.list,t.globalConstant,t.sysConst);t.globalVars=i.globalVars,t.eventsComs=i.eventsComs}catch(t){console.warn(t)}},copyGoVar:function(e,n){try{for(var r=n.mapField,i=(r.toString().trim(),e.globalConstant.filter((function(t){return t.mapField.includes(r)}))),a=1,o=0;o<i.length;o++)a++;var s="".concat(r," (").concat(a,")"),u=e.globalConstant.find((function(t){return t.mapField==r}));if(r&&u){var l=t.cloneDeep(u);l.mapField=s,e.globalConstant.push(l);var c=Ve(e.list,e.globalConstant,e.sysConst);e.globalVars=c.globalVars,e.eventsComs=c.eventsComs}}catch(t){console.warn(t)}},delGoVar:function(e,n){try{var r=n.mapField,i=(n.mold,e.globalConstant.filter((function(t){return t.mapField==r})).length);if(!r||!i)throw new Error("删除失败!");var a=t.cloneDeep(e.globalConstant);t.remove(a,(function(t){return t.mapField==r})),e.globalConstant=a;var o=Ve(e.list,e.globalConstant,e.sysConst);e.globalVars=o.globalVars,e.eventsComs=o.eventsComs}catch(t){console.warn(t)}},editGoVar:function(t,e){try{var n=e.mapField,r=(e.value,e.mapping,e.converter),i=e.converterCode,a=e.model,o=e.des,s=e.originalValue,u=e.fork,l=e.forkValue,c=e.update;if(u&&-1==t.globalVars.findIndex((function(t){return t.mapField==n})))e.model=1,t.globalConstant.push(e);else if(0==a)le(t.list,(function(t){var e,a,u=null===(e=null==t?void 0:t.tmpData)||void 0===e?void 0:e.actions;if(null==u?void 0:u.length)for(var l=u.filter((function(t){return"vars"===t.behave})),c=0,h=l;c<h.length;c++){var f=h[c];(null===(a=f.vars)||void 0===a?void 0:a.length)&&f.use&&f.vars.filter((function(t){return t.mapField===n})).forEach((function(t){t.value=s,t.originalValue=s,t.des=o,r?(t.converter=r,t.converterCode=i):(t.converter=!1,t.converterCode="return data")}))}}));else if(2==a)for(var h=0,f=t.sysConst;h<f.length;h++){(g=f[h]).mapField===n&&(l&&(g.forkValue=l),g.des=o,g.originalValue=s,g.value=s,r?(g.converter=r,g.converterCode=i):(g.converter=!1,g.converterCode="return data"))}else for(var d=0,p=t.globalConstant;d<p.length;d++){var g;(g=p[d]).mapField===n&&(g.des=o,l&&(g.forkValue=l),g.originalValue=s,g.value=s,r?(g.converter=r,g.converterCode=i):(g.converter=!1,g.converterCode="return data"))}var m=Ve(t.list,t.globalConstant,t.sysConst);t.globalVars=m.globalVars,t.eventsComs=m.eventsComs,c&&this.commit("GoCom/updatComsForVar",n)}catch(t){console.warn(t)}},goEditVar:function(t,e){var n=e.key,r=e.value,i=t.globalVars.find((function(t){return t.mapField==n}));i&&(i.originalValue=r,i.update=!0,t.globalVars.forEach((function(t){t.mapField==n&&(t.originalValue=r,t.value=r)})),this.commit("GoCom/editGoVar",i))},goDelShareVar:function(t,e){delete t.shareVariable[e]},signal:function(t,e){},goSynchroDataAll:function(e,n){e.list=t.cloneDeep(n)},goSynchroData:function(e,n){if(e){var r=n.cid,i=n.attr,a=n.value,o=n.attrModel,s=ae(e.list,r);if("boolean"!=typeof s){if(s&&fe(s,i,a,o),"actions"===i.toLowerCase()){var u=e.list,l=t.uniqWith(t.concat(Xn(u).actions,Xn(e.caseList).actions),t.isEqual),c=t.uniqWith(t.concat(Xn(u).events,Xn(e.caseList).events),t.isEqual);e.globalVars=d(d([],l,!0),e.globalConstant,!0),e.globalEvents=c,e.pages[e.pageIndex]&&(e.pages[e.pageIndex].globalVars=l),e.pages[e.pageIndex]&&(e.pages[e.pageIndex].globalEvents=c)}if("source"===i){if(!s.tmpData.source)return!1;var h=s.tmpData.source,f=h.type;if("api"===f){var p=h[f].url.match(/{{[\w]*}}|(@)[\w]*/gm);if(p)for(var g=p.map((function(t){return t.replace(/{{|}}|@/gm,"")})),m=function(n){var r=g[n];if(!r||!e.globalVars||e.globalVars.findIndex((function(t){return t.mapField===r}))<0)return"continue";if(e.shareVariableTree||(e.shareVariableTree={}),e.shareVariableTree[r]&&t.isArray(e.shareVariableTree[r])){e.shareVariableTree[r].push(s.cid);var i=e.shareVariableTree[r];e.shareVariableTree[r]=t.uniq(i)}else e.shareVariableTree[r]=[],e.shareVariableTree[r].push(s.cid)},v=0;v<g.length;v++)m(v)}}}}this.commit("GoCom/execute")},goUpdataSysVars:function(t,e){var n={U_CITY:"cityCode",U_COUNTY:"countyCode",U_PROVINCE:"provinceCode",U_PHONE:"userPhone"},r=t.sysConst,i=Object.keys(n);r.map((function(t){if((null==t?void 0:t.name)&&(null==i?void 0:i.includes(t.name))){var r=n[t.name];t.value=e[r],t.originalValue=e[r]}return t})),t.sysConst=r,t.globalVars=Ve(t.list,t.globalConstant,t.sysConst).globalVars}};var Jn={updataList:function(t,e){console.time("更新组件列表");var i,a,o=e.cid,s=(i=e.list,a=function(t){if(-1===t.findIndex((function(t){return t.cid===o})))for(var e=0;e<t.length;e++){var n=t[e];if(n.children&&n.children.length)for(var r=n.cid,i=0;i<n.children.length;i++){var a=n.children[i];if(a.cid===o){a.pid=r;var s=c({},n.baseData),u=ye(a.baseData,n.baseData,1);Object.assign(a.baseData,u),xe(n,s);break}}}else{var l=t.find((function(t){return t.cid===o})),h=l.pid;if(h){l.pid="";var f=ae(t,h);Object.assign(l.baseData,ye(l.baseData,f.baseData)),e=f.children.findIndex((function(t){return t.cid===l.cid})),f.children=d([],f.children,!0),f.children.splice(e,1),0===f.children.length?ae(t,f.cid,!0):xe(f,f.baseData)}}},n(!1),r(i,a));console.timeEnd("更新组件列表"),ce(s),t.list=s},updataListForContrast:function(e,n){var r=n.cid,i=n.list,a=ae(i,r);oe(i,r);var o=oe(e.list,r);if(!a.pid){a.pid=o.cid;var s=t.cloneDeep(a.baseData),u=ye(a.baseData,o.baseData,1);Object.assign(a.baseData,u),Se(o,s)}ce(e.list),e.list=i},updateTree:function(e){for(var n=e.list,r=0;r<n.length;r++){var i=n[r];if(i.pid)(s=ae(n,i.pid))&&Object.assign(i.baseData,ye(i.baseData,s.baseData));if(i.children)for(var a=0;a<i.children.length;a++){var o=i.children[a];if(o.pid!=i.cid){var s=ae(n,o.pid);if(t.cloneDeep(o.baseData),s){Object.assign(o.baseData,ye(o.baseData,s.baseData));var u=ye(o.baseData,i.baseData,1);Object.assign(o.baseData,u),Se(i,i.baseData)}o.pid=i.cid}}}ce(n)}},Qn={reset:function(t){t.selectd=[],t.list=[],t.plant=null,t.tw=null,t.watermark=null,t.endnotes=null,t.globalConstant=[]},setFonts:function(t,e){t.resource.fonts.push({fontName:e.name,fontUrl:e.src}),pn(t.resource)},setCaseInfo:function(t,e){t.caseInfo=e},setPageId:function(t,e){t.pageId=e},pagePush:function(t,e){try{var n=e.type,r=e.value,i=["name","path","id"];if(!i.includes(n))throw new Error("页面跳转错误!".concat(n," 不是一个正确的参数 请填以下参数 ").concat(i.join(",")));if(!r)throw new Error("页面跳转错误!".concat(n," 不是一个正确的参数 请填正确的页面路径或者页面名称"));t.toPage={type:n,value:r}}catch(t){console.warn(t)}},updatComs:function(t,e){var n=this,r=ae(t.list,e);if("boolean"!=typeof r){var i=(null==r?void 0:r.children)?null==r?void 0:r.children:null;zn(r,t.globalVars,!0,(function(t){n.commit("GoCom/updataSourceForComponent",t)}),null,i)}},updatComsForVar:function(e,n){var r=e.globalVars.map((function(t){var e,r;if((null===(e=null==t?void 0:t.forkValue)||void 0===e?void 0:e.length)&&(null===(r=null==t?void 0:t.forkValue)||void 0===r?void 0:r.includes(n))||t.forkValue==n)return t.mapField})).filter((function(t){return t})),i=[n];(null==r?void 0:r.length)&&(i=t.uniq(d([n],r,!0)));for(var a=[],o=0,s=i;o<s.length;o++){var u=s[o];e.shareVariableTree[u]&&a.push.apply(a,e.shareVariableTree[u])}if(null==a?void 0:a.length)for(var l=0,c=a;l<c.length;l++){var h=c[l];this.commit("GoCom/updatComs",h)}},addConstant:function(e,n){var r=t.find(e.constant,{name:n.name});r?Object.assign(r,n):e.constant.push(n)},editConstant:function(e,n){var r=t.find(e.constant,{name:n.name});r&&Object.assign(r,n)},delConstant:function(e,n){t.remove(e.constant,(function(t){return t.name==n}))},setResource:function(t,e){var n=e.type,r=e.value;t.resource[n]=r,mn(),gn(t.resource)},updataResource:function(t){mn(),gn(t.resource)},setData:function(t,e){t.selectd=e.selectd},setList:function(t,e){t.list=e,ce(t.list)},saveDynamicChildren:function(t,e){var n=e.cid,r=e.data,i=e.name,a=t.pages[t.pageIndex].list,o=ae(a,n);o&&(o.activeDynamic=i,o.dynamicChildren instanceof Array&&(o.dynamicChildren=new Map(o.dynamicChildren)),o.dynamicChildren.set(i,r))},setTheme:function(t,e){t.theme=e},setPlant:function(t,e){var n=e.attr,r=e.value;t.plant||(t.plant={name:"",theme:null,baseData:{width:1920,height:1080,left:0,top:0},option:null,optionDes:null}),t.plant[n]=r},setPlantHeight:function(t,e){t.plant&&(t.plant.baseData.height=t.plant.baseData.height+e)},reversal:function(t,e){t.undos=[],t.undoRedoPointer=-1,t=Object.assign(t,e),ce(t.list)},setComTmp:function(t,e){var n=t.list.find((function(t){return t.cid===e[0]}));n.com=e[1],n.tmp=e[2]},setLoading:function(t,e){var n=e.cid,r=e.flag,i=t.list.find((function(t){return t.cid===n}));i&&(i.loading=r)},setMultiple:function(t,e){t.multiple=e},setCaseList:function(t,e){t.caseList=e},updataComponentForList:function(t,e){var n=e.cid,r=e.data,i=t.list,a=ae(i,n);"boolean"!=typeof a&&Object.assign(a,r)},updataComponentForCaseList:function(t,e){var n=e.cid,r=e.data,i=t.caseList,a=ae(i,n);"boolean"!=typeof a&&Object.assign(a,r)},updataComponent:function(t,e){var n=e.cid,r=e.data,i=t.pages&&t.pages[0]&&t.pages[0].list&&t.pages[0].list.length?t.pages[0].list:t.list,a=ae(i,n);"boolean"!=typeof a&&Object.assign(a,r)},updataArea:function(t,e){t.currentArea.left+=e.deltaX,t.currentArea.top+=e.deltaY},updataSource:function(t,e){var n=e.cid,r=e.data,i=ae(t.list,n);"boolean"!=typeof i&&("indicatorCQ"===i.tmpData.source.type?i.tmpData.source.indicator.data=r:i.tmpData.source[i.tmpData.source.type].data=r)},updataSourceForComponent:function(e,n){var r=n.cid,i=n.data;if(e.list.length){var a=ae(e.list,r);"boolean"!=typeof a&&(a.source=t.cloneDeep(i))}},updataAnimationForComponent:function(t,e){var n=e.cid,r=e.data;if(t.list.length){var i=ae(t.list,n);"boolean"!=typeof i&&(i.tw=r)}},updataWatermark:function(t,e){t.watermark=e},updataEndnotes:function(t,e){t.endnotes=e},updataAnimation:function(t,e){t.tw=e},setContext:function(t,e){var n=e.cid,r=e.data,i=ae(t.list,n);"boolean"!=typeof i&&(i.example=r)},setContextList:function(t,e){var n=e.cid,r=e.data;t.contextList[n]=r},setPosition:function(t,e){ve(t.list.find((function(t){return t.cid===e[0]})),e[1])},setSelect:function(t,e){t.cache=[],t.selectd=e instanceof Array?e:[e],t.selectd.length>1&&t.selectd.forEach((function(e){t.cache.push(t.list.find((function(t){return t.cid===e&&"Other.Plant.Normal"!==t.type})))}))},setActive:function(e,n){var r=t.cloneDeep(n),i=r.id,a=r.multiple,o=r.origin,s=r.ctr,u=t.cloneDeep(e.selectd);if(a){var l=u.includes(i);if(u.length>=1)if(!u.every((function(t){return ue(e.list,t,n.id)})))return void console.info("sorry Only sibling elements can be selected!");l?u.splice(u.findIndex((function(t){return t===i})),1):u.push(i),e.selectd=u}else e.selectd=[i];e.selectd.forEach((function(t){var n=ae(e.list,t);n.pid&&(ae(e.list,n.pid).toggle=!0);s||(n.toggle=!0)})),e.selectdChangeOrigin=o||""},setCache:function(t){t.cache=[],t.selectd.length>1&&t.selectd.forEach((function(e){t.cache.push(t.list.find((function(t){return t.cid===e})))}))},clearActive:function(t){t.selectd=[]},setMultipleActive:function(t,e){t.selectd=e},syncMenuInfo:function(t){Te(t.menuList,(function(e){var n=10*e.lv+e.index;t.list.filter((function(t){return t.cid===e.id}))[0].z=1e4-n}))},addComs:function(e,n){var r=n.com,i=n.isMobile;"MultiStateComponent"!=r.componentType||r.stateChildren||(r.stateChildren=[]),"dynamicComponent"!=r.componentType||r.dynamicChildren||(r.dynamicChildren=new Map,r.activeDynamic="状态1",r.dynamicChildren.set("状态1",[]),r.lines={h:[],v:[]}),i?e.list.push(r):e.list.unshift(r),e.menuList=t.cloneDeep(e.list),ce(e.list),this.commit("GoCom/execute")},addComsForParent:function(e,n){var r=n.com,i=n.isMobile,a=n.PID;if("MultiStateComponent"!=r.componentType||r.stateChildren||(r.stateChildren=[]),"dynamicComponent"!=r.componentType||r.dynamicChildren||(r.dynamicChildren=new Map,r.activeDynamic="状态1",r.dynamicChildren.set("状态1",[])),a){var o=ae(e.list,a);i?(o.children=[],o.children.push(r)):o.children.unshift(r)}else i?e.list.splice(0,1,r):e.list.unshift(r);e.menuList=t.cloneDeep(e.list),ce(e.list),this.commit("GoCom/execute")},addMyComs:function(e,n){var r;try{var i=n.data,a=n.shareVariableTree,o=n.globalVars,s=n.globalEvents;e.globalVars=t.uniq(t.concat(t.cloneDeep(e.globalVars),o)),e.globalEvents=t.uniq(t.concat(t.cloneDeep(e.globalEvents),s));var u=Object.keys(a),l=Object.keys(e.shareVariableTree),c=t.difference(u,l);c.length?c.forEach((function(n){e.shareVariableTree[n]=t.concat(t.cloneDeep(e.shareVariableTree[n]),a[n])})):e.shareVariableTree=Object.assign(t.cloneDeep(e.shareVariableTree),a),i instanceof Array?(he(i),(r=e.list).unshift.apply(r,i)):(he([i]),e.list.unshift(i)),e.menuList=t.cloneDeep(e.list),ce(e.list),this.commit("GoCom/execute")}catch(t){}},addStateChildren:function(t,e){var n=ae(t.list,e.pid);n&&n.stateChildren.push(e)},addDynamicChildren:function(t,e){var n=ae(t.list,e.pid);n&&n.dynamicChildren.push(e)},arraySwap:function(e,n){var r;try{if(!n||2!=n.length)throw new Error("参数错误,方法接受两个组件的CID组成的数组!");var i=t.cloneDeep(e.list),a=ae(i,n[0]),o=ae(i,n[1]),s=ae(i,a.pid),u={},l=0,c=0;if(o)if("selectContainer"==o.componentType){var h=ae(i,n[1]);s?(l=t.findIndex(s.children,(function(t){return t.cid==n[0]})),u=s.children[l],s.children=s.children.filter((function(t){return t.cid!==u.cid}))):(u=ae(i,n[0]),i=i.filter((function(t){return t.cid!==u.cid}))),u.cid=ke(),u.pid=h.cid,h.children.push(u)}else if(a.pid||o.pid)if(s)if(l=t.findIndex(s.children,(function(t){return t.cid==n[0]})),u=s.children[l],a.pid!==o.pid){h=ae(i,o.pid);c=t.findIndex(h.children,(function(t){return t.cid==n[1]}));f=h.children[c];u.cid=ke(),u.pid=h.cid,f.cid=ke(),f.pid=s.cid,s.children.splice(l,1,f),h.children.splice(c,1,u)}else c=t.findIndex(s.children,(function(t){return t.cid==n[1]})),(r=s.children).splice.apply(r,d([c,1],s.children.splice(l,1,s.children[c]),!1));else{var h=ae(i,o.pid);l=t.findIndex(i,(function(t){return t.cid==n[0]})),c=t.findIndex(h.children,(function(t){return t.cid==n[1]})),u=ae(i,a.cid);var f=h.children[c];u.cid=ke(),u.pid=h.cid,f.cid=ke(),f.pid=null,i.splice(l,1,f),h.children.splice(c,1,u)}else re(e.list,n[0],n[1]);else l=t.findIndex(s.children,(function(t){return t.cid==n[0]})),u=s.children[l],s.children.splice(l,1),u.cid=ke(),u.pid=null,i.push(u);e.list=i,ce(e.list)}catch(t){console.warn("组件位置交换发生错误",t)}},changeDynamicState:function(t,e){var n=ae(t.list,e.cid);n&&"dynamicComponent"==n.componentType&&(n.dynamicChildren instanceof Array&&n.dynamicChildren.find((function(t){return t[0]==e.activeName}))||n.dynamicChildren instanceof Map&&n.dynamicChildren.has(e.activeName)?n.activeDynamic=e.activeName:console.error(e.activeName+"不是一个正确的状态"))},addAlternateData:function(t,e){t.alternateData[e.pid]||(t.alternateData[e.pid]=[]),t.alternateData[e.pid].push(e)},setOptionForCom:function(t,e){var n,r;try{var i=e.cid,a=e.key,o=e.value,s=ae(t.list,i);s&&(null===(r=null===(n=null==s?void 0:s.tmpData)||void 0===n?void 0:n.option)||void 0===r?void 0:r.hasOwnProperty(a))&&(s.tmpData.option[a]=o)}catch(t){console.warn("同步属性发生错误:"+t)}},mergeConfig:function(e,n){n.length>0&&n.forEach((function(t){e.list.unshift(t)})),e.menuList=t.cloneDeep(e.list),ce(e.list),this.commit("GoCom/execute")},updataName:function(t,e){var n=ae(t.list,e.cid);n&&(n.name=e.name)},setDynamicActive:function(t,e){e.cid;var n=e.name,r=ae(t.list,e.cid);r&&"dynamicComponent"==r.componentType&&(r.activeDynamic=n)},updataScroll:function(t,e){e.cid;var n=e.data,r=ae(t.list,e.cid);r&&"dynamicComponent"==r.componentType&&(r.srcollInfo={use:!!(null==n?void 0:n.use)&&(null==n?void 0:n.use),data:(null==n?void 0:n.data)?null==n?void 0:n.data:null})},updataDySetting:function(t,e){e.cid;var n=e.data,r=ae(t.list,e.cid);r&&"dynamicComponent"==r.componentType&&(r.dyOption=n)},setCurrentEdited:function(t,e){if(e){var n=ae(t.list,e);if("boolean"!=typeof n){var r=ge(n);n.children=r}t.currentEditerCid=e}else t.currentEditerCid=""},setDynamicLine:function(e,n){var r=t.cloneDeep(e.list),i=ae(r,n.cid);r.length&&"boolean"!=typeof i&&(i.lines=Object.assign({},i.lines,n.lines)),e.list=r}},tr={layout:function(e,n){var r=function(e,n){try{var r=e.map((function(t){var e=ae(n,t);if("object"==typeof e)return e;throw"Please check whether the input and output parameters are correct!"}));if(t.every(r,Object))return r;throw"Please check whether the input and output parameters are correct!"}catch(t){return console.error(t),[]}}(e.selectd,e.list);switch(n){case"alignLeft":!function(e,n){1===e.length&&(e[0].baseData.left=0);var r=t.sortBy(e,(function(t){return t.baseData.left}))[0].baseData.left;e.map((function(t){return t.baseData.left=r}))}(r);break;case"alignRight":!function(e,n){if(1===e.length){var r=n.plant?n.plant.baseData:{width:1920,height:1080};e[0].baseData.left=r.width-e[0].baseData.width}var i=t.sortBy(e,(function(t){return t.baseData.left})),a=1*i[i.length-1].baseData.left+1*i[i.length-1].baseData.width;e.map((function(t){return t.baseData.left=a-1*t.baseData.width}))}(r,e);break;case"horizontally":!function(e,n){if(1===e.length){var r=n.plant?n.plant.baseData:{width:1920,height:1080};e[0].baseData.left=r.width/2-e[0].baseData.width/2}var i=t.sortBy(e,(function(t){return t.baseData.left})),a=t.sortBy(e,(function(t){return 1*t.baseData.left+1*t.baseData.width})),o=(1*i[0].baseData.left+(1*a[a.length-1].baseData.left+1*a[a.length-1].baseData.width))/2;e.map((function(t){return t.baseData.left=o-t.baseData.width/2}))}(r,e);break;case"alignTop":!function(e,n){1===e.length&&(e[0].baseData.top=0);var r=1*t.sortBy(e,(function(t){return t.baseData.top}))[0].baseData.top;e.map((function(t){return t.baseData.top=r}))}(r);break;case"alignBottom":!function(e,n){if(1===e.length){var r=n.plant?n.plant.baseData:{width:1920,height:1080};e[0].baseData.top=r.height-e[0].baseData.height}var i=t.sortBy(e,(function(t){return 1*t.baseData.top})),a=1*i[i.length-1].baseData.top+1*i[i.length-1].baseData.height;e.map((function(t){return t.baseData.top=a-1*t.baseData.height}))}(r,e);break;case"verticalCenter":!function(e,n){if(1===e.length){var r=n.plant?n.plant.baseData:{width:1920,height:1080};e[0].baseData.top=r.height/2-e[0].baseData.height/2}var i=t.sortBy(e,(function(t){return t.baseData.top})),a=t.sortBy(e,(function(t){return 1*t.baseData.top+1*t.baseData.height})),o=(1*i[0].baseData.top+(1*a[a.length-1].baseData.top+1*a[a.length-1].baseData.height))/2;e.map((function(t){return t.baseData.top=o-t.baseData.height/2}))}(r,e);break;case"topDistribution":!function(e){if(e.length<3)return console.warn("A minimum of three elements are required for a distribution arrangement"),!1;var n=t.sortBy(e,(function(t){return t.baseData.top})),r=(n[n.length-1].baseData.top-n[0].baseData.top)/(n.length-1);n.map((function(t,e){e>0&&e<n.length-1&&(t.baseData.top=1*n[0].baseData.top+r*e)}))}(r);break;case"bottomDistribution":!function(e){if(e.length<3)return console.warn("A minimum of three elements are required for a distribution arrangement"),!1;var n=t.sortBy(e,(function(t){return t.baseData.top+t.baseData.height})),r=(n[n.length-1].baseData.top+n[n.length-1].baseData.height-(n[0].baseData.top+n[0].baseData.height))/(n.length-1);n.map((function(t,e){e>0&&e<n.length-1&&(t.baseData.top=1*n[0].baseData.top+1*n[0].baseData.height-1*t.baseData.height+r*e)}))}(r);break;case"xCenterDistribution":!function(e){if(e.length<3)return console.warn("A minimum of three elements are required for a distribution arrangement"),!1;var n=t.sortBy(e,(function(t){return t.baseData.left+t.baseData.width/2})),r=1*n[n.length-1].baseData.left+n[n.length-1].baseData.width/2,i=1*n[0].baseData.left+n[0].baseData.width/2,a=(r-i)/(n.length-1);n.map((function(t,e){e>0&&e<n.length-1&&(t.baseData.left=i-t.baseData.width/2+a*e)}))}(r);break;case"leftDistribution":!function(e){if(e.length<3)return console.warn("A minimum of three elements are required for a distribution arrangement"),!1;var n=t.sortBy(e,(function(t){return t.baseData.left})),r=(n[n.length-1].baseData.left-n[0].baseData.left)/(n.length-1);n.map((function(t,e){e>0&&e<n.length-1&&(t.baseData.left=n[0].baseData.left+r*e)}))}(r);break;case"rightDistribution":!function(e){if(e.length<3)return console.warn("A minimum of three elements are required for a distribution arrangement"),!1;var n=t.sortBy(e,(function(t){return t.baseData.left+t.baseData.width})),r=(n[n.length-1].baseData.left+n[n.length-1].baseData.width-(n[0].baseData.left+n[0].baseData.width))/(n.length-1);n.map((function(t,e){e>0&&e<n.length-1&&(t.baseData.left=n[0].baseData.left+n[0].baseData.width-t.baseData.width+r*e)}))}(r);break;case"yCenterDistribution":!function(e){if(e.length<3)return console.warn("A minimum of three elements are required for a distribution arrangement"),!1;var n=t.sortBy(e,(function(t){return t.baseData.top+t.baseData.height/2})),r=1*n[n.length-1].baseData.top+n[n.length-1].baseData.height/2,i=1*n[0].baseData.top+n[0].baseData.height/2,a=(r-i)/(n.length-1);n.map((function(t,e){e>0&&e<n.length-1&&(t.baseData.top=i-t.baseData.height/2+a*e)}))}(r)}}},er={setPageData:function(t,e){t.pages[0]=e},parasePages:function(t,e){e instanceof Array&&(t.pages=e.map((function(t,e){return t.name||(t.name="页面"+(e+1)),t.path||(t.path="page"+(e+1)),t})))},addPage:function(t,e){var n=t.pages.length+1;e.name="页面"+n,e.path="page"+n,t.pages.push(e),t.pageIndex=t.pages.length-1,t.resource={jspaths:[],csspaths:[],otherpaths:[]}},setCurrentPageIndex:function(t,e){var n=t.globalEvents,r=t.globalVars,i=t.list,a=t.name,o=t.theme,s=t.plant,u=t.shareVariableTree,l=t.resource;t.pages[t.pageIndex]={globalEvents:n,globalVars:r,list:i,name:a,theme:o,plant:s,shareVariableTree:u,resource:l},t.pageIndex=e},setPageDataForIndex:function(t,e){var n=e.index,r=e.data;t.pages[n]=r},setPageName:function(t,e){t.name=e,t.pages[t.pageIndex].name=e},saveCurrentPageData:function(t){var e=t.globalEvents,n=t.globalVars,r=t.list,i=t.name,a=t.theme,o=t.plant,s=t.shareVariableTree,u=t.resource;t.pages[t.pageIndex]={globalEvents:e,globalVars:n,list:r,name:i,theme:a,plant:o,shareVariableTree:s,resource:u}},getCurrentPageData:function(t){var e=t.globalEvents,n=t.globalVars,r=t.list,i=t.name,a=t.theme,o=t.plant,s=t.shareVariableTree,u=t.resource;t.pages[t.pageIndex]={globalEvents:e,globalVars:n,list:r,name:i,theme:a,plant:o,shareVariableTree:s,resource:u}}},nr={segmentationContainer:function(e,n){var r=t.cloneDeep(e.list),i=n.containerData,a=n.direction,o=[];if("del"==a)if(i.pid){var s=function(t){if(t.length)for(var e=0;e<t.length;e++)t[e].hasOwnProperty("children")&&t[e].children.length&&t[e].children.map((function(n){t[e].cid=n.pid})),i.pid===t[e].cid?t[e].children.length&&(t[e].children.map((function(t){t.cid!==i.cid&&t.hasOwnProperty("children")&&t.children.length&&(o=t.children)})),t[e].children=[],o.length&&(t[e].children=o)):t[e].hasOwnProperty("children")&&s(t[e].children)};r.length&&s(r)}else r.length&&(r=r.filter((function(t){return t.cid!==i.cid})));else if(i.pid){var u=function(t){for(var e=0;e<t.length;e++)if(i.cid===t[e].cid){t[e].direction=a,1===t[e].children.length&&((o=t[e].children)[0].pid=null,t[e].children=[]);for(var n=0;n<2;n++)t[e].children.push({isLock:!1,isShow:!0,baseData:{width:"col"==a?"100%":"50%",height:"col"==a?"50%":"100%",angle:0,penetrate:0,opacity:100},componentType:"selectContainer",iconClass:"__vue_devtool_undefined__",isAssembly:"__vue_devtool_undefined__",source:[],comData:{actions:[],option:{grid:[{val:0,unit:"px"},{val:0,unit:"px"},{val:0,unit:"px"},{val:0,unit:"px"}],bgColor:{alpha:1,blue:0,green:0,red:0,flag:1,style:"transparent"}}},tmpData:{},dynamic:0,filePath:"/anov-prod/mgt/go/assembly/162-bgImage.png",origin:"anov-go",name:"容器组件",path:"/index.js",viewComName:"selectContainer",optionComName:"",dataComName:"",eventComName:"",direction:"col",assemblyDeveloper:"",devEmail:"",version:null,devDept:"",toggle:!0,cid:ke(),pid:t[e].cid,nestIndex:0,children:[],isTop:!1,isCol:"col"==a,isRow:"col"!=a,isDragged:!1,grandParentId:i.pid});o.length&&(o[0].cid=ke(),o[0].pid=t[e].children[0].cid,t[e].children[0].children=o)}else t[e].hasOwnProperty("children")&&u(t[e].children)};r.length&&u(r)}else{var l=ae(r,i.cid);if(l){l.direction=a,1===l.children.length&&(o=l.children,l.children=[]);for(var c=0;c<2;c++)l.children.push({isLock:!1,isShow:!0,baseData:{width:"col"==a?"100%":"50%",height:"col"==a?"50%":"100%",angle:0,penetrate:0,opacity:100},componentType:"selectContainer",iconClass:"__vue_devtool_undefined__",isAssembly:"__vue_devtool_undefined__",source:[],comData:{actions:[],option:{grid:[{val:0,unit:"px"},{val:0,unit:"px"},{val:0,unit:"px"},{val:0,unit:"px"}],bgColor:{alpha:1,blue:0,green:0,red:0,flag:1,style:"transparent"}}},tmpData:{},dynamic:0,filePath:"/anov-prod/mgt/go/assembly/162-bgImage.png",origin:"anov-go",name:"容器组件",path:"/index.js",viewComName:"selectContainer",optionComName:"",dataComName:"",eventComName:"",assemblyDeveloper:"",devEmail:"",version:null,devDept:"",toggle:!0,cid:ke(),pid:l.cid,nestIndex:0,children:[],isTop:!1,isCol:"col"==a,isRow:"col"!=a,isDragged:!1,grandParentId:i.pid});o.length&&(o[0].cid=ke(),o[0].pid=l.children[0].cid,l.children[0].children=o)}}e.list=r}},rr={updataList:function(t,e){var n=t.commit;e&&n("updataList",e),n("updateTree")},updataBaseData:function(t,e){var n=t.commit;e&&n("updataBaseData",e)},setActive:function(t,e){var n=t.commit;e&&n("setActive",e)},setSyncFlag:function(t,e){var n=t.commit;e&&n("setSyncFlag",e)},execute:function(t,e){var n=t.commit;e&&n("execute",e)},updataAnimationForComponent:function(t,e){var n=t.commit;e&&n("updataAnimationForComponent",e)},updataAnimation:function(t,e){(0,t.commit)("updataAnimation",e)},setOptionForCom:function(t,e){(0,t.commit)("setOptionForCom",e)},updatComs:function(t,e){var n=t.commit;setTimeout((function(){n("updatComs",e)}))},updatComsForVar:function(e,n){var r=e.dispatch,i=e.state,a=i.globalVars.map((function(t){var e,r;if((null===(e=null==t?void 0:t.forkValue)||void 0===e?void 0:e.length)&&(null===(r=null==t?void 0:t.forkValue)||void 0===r?void 0:r.includes(n))||t.forkValue==n)return t.mapField})).filter((function(t){return t})),o=[n];(null==a?void 0:a.length)&&(o=t.uniq(d([n],a,!0)));for(var s=[],u=0,l=o;u<l.length;u++){var c=l[u];i.shareVariableTree[c]&&s.push.apply(s,i.shareVariableTree[c])}if(null==s?void 0:s.length)for(var h=0,f=s;h<f.length;h++){r("updatComs",f[h])}},goEditVar:function(t,e){var n=t.commit,r=t.state,i=e.key,a=e.value,o=r.globalVars.find((function(t){return t.mapField==i}));o.fork?console.warn("禁止修改,有引用值的变量!"):o&&(o.originalValue=a,o.update=!0,n("editGoVar",o))}},ir={getCurrentPage:function(t){return t.pages.length?t.pages[t.pageIndex]:[]},globalSourceTree:function(e){if(e.list.length&&e.globalSource.length){var n=[];return le(t.cloneDeep(e.list),(function(t){var e,r,i;if("globalData"==(null===(r=null===(e=null==t?void 0:t.tmpData)||void 0===e?void 0:e.source)||void 0===r?void 0:r.type)){var a=null===(i=null==t?void 0:t.tmpData)||void 0===i?void 0:i.source.globalData;n.push({name:t.name,cid:t.cid,sourceId:a.id,viewComName:t.viewComName})}})),n}return[]}},ar={namespaced:!0,state:u,mutations:c(c(c(c(c(c(c(c(c({},p),Re),je),$n),Jn),Qn),tr),er),nr),actions:rr,getters:ir},or=function(){function t(){}return t.setAppStore=function(e){t.store=e},t.prototype.getState=function(){return t.store.state[t.storeModule]},t.prototype.mapState=function(e){return sr(t.storeModule,e)},t.prototype.mapGetters=function(e){return lr(t.storeModule,e)},t.prototype.mapMutations=function(e){return ur(t.storeModule,e)},t.prototype.callState=function(e){return t.store.state[t.storeModule][e]},t.prototype.callGetter=function(e,n){return t.store.getters[t.storeModule+"/"+e]},t.prototype.callMutation=function(e,n,r){r?t.store.commit(t.storeModule+"/"+e,n,!0):t.store.commit(t.storeModule+"/"+e,n)},t.prototype.callAction=function(e,n){t.store.dispatch(t.storeModule+"/"+e,n)},t.storeModule="GoCom",t}(),sr=hr((function(t,e){var n;return cr(e).forEach((function(e){var r=e.key,i=e.val;n[r]=function(){var e=this.$store.state,n=this.$store.getters;if(t){var r=fr(this.$store,"mapState",t);if(!r)return;e=r.context.state,n=r.context.getters}return"function"==typeof i?i.call(this,e,n):e[i]},n[r].VuexServer=!0})),n})),ur=hr((function(t,e){var n;return cr(e).forEach((function(e){var r=e.key,i=e.val;n[r]=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var r=this.$store.commit;if(t){var a=fr(this.$store,"mapMutations",t);if(!a)return;r=a.context.commit}return"function"==typeof i?i.apply(this,[r].concat(e)):r.apply(this.$store,[i].concat(e))}})),n})),lr=hr((function(t,e){var n={};return cr(e).forEach((function(e){var r=e.key,i=e.val;i=t+i,n[r]=function(){if(!t||fr(this.$store,"mapGetters",t)){if("production"===process.env.NODE_ENV||i in this.$store.getters)return this.$store.getters[i];console.error("[VuexServer] unknown getter: ".concat(i))}},n[r].VuexServer=!0})),n}));function cr(t){return Array.isArray(t)?t.map((function(t){return{key:t,val:t}})):Object.keys(t).map((function(e){return{key:e,val:t[e]}}))}function hr(t){return function(e,n){return"string"!=typeof e?(n=e,e=""):"/"!==e.charAt(e.length-1)&&(e+="/"),t(e,n)}}function fr(t,e,n){var r=t._modulesNamespaceMap[n];return"production"===process.env.NODE_ENV||r||console.error("[VuexServer] module namespace not found in ".concat(e,"(): ").concat(n)),r}var dr=function(){function t(t){var e=this;if(this.isLock=!1,this.isShow=!0,this.baseData={left:0,top:0,width:300,height:200,angle:0,opacity:100,rotate:0,rotateY:0},this.componentType="BaseComponent",this.cid=ke(),t){Object.keys(t).forEach((function(n){e[n]=t[n]}));["AnEchartsMap","AnMaptalks","AnEchartsMap1","AnArcgisMapBase","AnAMap1","AnCesium","AnThreeMap3DChina","AnThreeMapForCesium","AnGisMap","AnMineMap","MineMapMarkerLayer","MineMapClusterLayer"].includes(t.viewComName)&&(this.componentType="MultiStateComponent"),"AnDynamic"!==t.viewComName&&"AmDynamic"!==t.viewComName||(this.componentType="dynamicComponent")}}return t.prototype.setIndex=function(t){this.z=t},t}(),pr=function(){function e(t){this.vueServer=t,this.loadScript=fn}return e.setStore=function(t){this.store=t},e.prototype.loadComponents=function(e){var n=e&&e.list?e.list:[];le(n,(function(t){t.viewComName&&(t&&t.path&&t.path,t.origin,t.viewComName?t.viewComName:t.rawData.viewComName)})),e&&this.vueServer.callMutation("reversal",t.cloneDeep(e))},e.prototype.addStore=function(t){this.vueServer.callMutation("setActive",{id:t}),this.vueServer.callMutation("addComs",this)},e.prototype._addPlantStore=function(){this.vueServer.callMutation("setPlant",this)},e.prototype._loadComTmp=function(t,e){return h(this,void 0,void 0,(function(){var n,r,i=this;return f(this,(function(a){switch(a.label){case 0:if(window[e])return[3,5];n=function(e){var n;return f(this,(function(r){switch(r.label){case 0:return n=t[e],[4,new Promise((function(t){t(i._load(n))}))];case 1:return r.sent(),[2]}}))},r=0,a.label=1;case 1:return r<t.length?[5,n(r)]:[3,4];case 2:a.sent(),a.label=3;case 3:return r++,[3,1];case 4:window[e]=e,a.label=5;case 5:return[2]}}))}))},e.prototype._load=function(t){return h(this,void 0,void 0,(function(){var e=this;return f(this,(function(n){return[2,new Promise((function(n){n(e.loadScript(t))}))]}))}))},e}(),gr=function(){function t(t){var e=t.dbName,n=t.tables,r=t.version,i=void 0===r?1:r,a=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n}(t,["dbName","tables","version"]);this.dbName=e,this.tables=n,this.version=i,this.openDB(c({dbName:e,tables:n,version:i},a))}return t.deleteDB=function(t){var e;null===(e=window.indexedDB)||void 0===e||e.deleteDatabase(t)},t.prototype.deleteItem=function(t,e,n){var r=this.storage.transaction(t,"readwrite").objectStore(t).delete(e);return r.onsuccess=function(t){"function"==typeof n&&n(t)},r},t.prototype.getItem=function(t,e,n){var r=this.storage.transaction(t,"readwrite").objectStore(t),i=null;return(i=e?r.get(e):r.getAll()).onsuccess=function(t){var e;"function"==typeof n&&n(null===(e=null==t?void 0:t.target)||void 0===e?void 0:e.result)},i.onerror=function(t){console.error(t),n(t)},i},t.prototype.setItem=function(t,e,n,r){var i=this.storage.transaction(t,"readwrite").objectStore(t).put(n,e);return i.onsuccess=function(t){"function"==typeof r&&r(t)},i.onerror=function(t){"function"==typeof r&&r(t)},i},t.prototype.get=function(t,e){return this.getItem(this.tables[0],t,e)},t.prototype.set=function(t,e,n){return this.setItem(this.tables[0],t,e,n)},t.prototype.delete=function(t,e){return this.deleteItem(this.tables[0],t,e)},t.prototype.clear=function(t,e){var n=this.storage.transaction(this.dbName,"readwrite").objectStore(t).clear();return n.onsuccess=function(t){"function"==typeof e&&e(t)},n},t.prototype.getDB=function(){return this.storage},t.prototype.closeDB=function(){this.storage.close()},t.prototype.openDB=function(t){var e=this,n=t.dbName,r=t.tables,i=t.version,a=t.callback,o=window.indexedDB;if(o)if((null==r?void 0:r.length)<1)console.error("表名不能为空");else{var s=o.open(n,i);s.onerror=function(t){var e,n;console.error("打开数据库失败: ".concat(null===(n=null===(e=t.currentTarget)||void 0===e?void 0:e.error)||void 0===n?void 0:n.message)),"function"==typeof a&&a(t)},s.onsuccess=function(t){var n;e.storage=null===(n=t.target)||void 0===n?void 0:n.result,"function"==typeof a&&a(t)},s.onupgradeneeded=function(t){var n;e.storage=null===(n=t.target)||void 0===n?void 0:n.result,r.forEach((function(n){e.storage.objectStoreNames.contains(n)||(e.storage.createObjectStore(n),"function"==typeof a&&a(t))}))}}else console.error("你的浏览器不支持indexedDB")},t}(),mr=function(){function t(){this.VueServer=new or}return t.getInstance=function(){return this.instance||(this.db=new gr({dbName:"AnovGo",tables:["logs"]}),this.instance=new t),this.instance},t.prototype.getAppStore=function(){return t.store},t.setAppStore=function(e){t.store=e,or.setAppStore(e),pr.setStore(e)},t.prototype.add=function(t,e,n){e.MultiState?this.VueServer.callMutation("addStateChildren",e):(this.VueServer.callMutation("addComs",{com:e,isMobile:n}),this.VueServer.callMutation("setActive",{id:t}))},t.prototype.addForParent=function(t,e,n,r){this.VueServer.callMutation("addComsForParent",{com:e,PID:n,isMobile:r}),this.VueServer.callMutation("setActive",{id:t})},t.prototype.render=function(t,e){var n=new dr(t);e?this.add(n.cid,n,!0):this.add(n.cid,n)},t.prototype.renderForParent=function(t,e,n){var r=new dr(t);void 0!==n?this.addForParent(r.cid,r,e,n):this.addForParent(r.cid,r,e)},t.prototype.reversal=function(t){new pr(new or).loadComponents(t)},t.prototype.log=function(e,n,r,i,a){var o=(new Date).toLocaleString();t.db.set(o,{type:n,info:r,user:e,trace:i}),t.db.get(null,(function(t){a&&a()}))},t.prototype.emitEvent=function(t,e){var n=this;!function(t,e,n,r,i,a,o,s){for(var u=i.cid,l=i.actions.eventName,c=2===i.actions.mode,h=t.filter((function(t){return t.id===u&&t.eventType===l&&(!c||parseInt(t.index)+1===parseInt(i.index))})),f=function(t,e){return(null==t?void 0:t.field)&&i[null==t?void 0:t.field],(null==t?void 0:t.forkValue)&&i[null==t?void 0:t.forkValue],(null==t?void 0:t.field)&&(null==i?void 0:i.data)&&(null==i||i.data[null==t?void 0:t.field]),(null==t?void 0:t.forkValue)&&(null==i?void 0:i.data)&&(null==i||i.data[null==t?void 0:t.forkValue]),t.id===e&&!(null==t?void 0:t.forkValue)},d=function(t,e){return Array.isArray(e)?e.some((function(e){return t&&(void 0!==t[e]||t.hasOwnProperty(e))})):"string"==typeof e?t&&(void 0!==t[e]||t.hasOwnProperty(e)):void 0},p=function(t,e){var n,i;if(d(t,null==e?void 0:e.field)||d(t,null==e?void 0:e.forkValue))i=t[null==e?void 0:e.field]?t[e.field]:"";else if(d(t.data,null==e?void 0:e.field)||d(t.data,null==e?void 0:e.forkValue))i=t.data[null==e?void 0:e.field]?t.data[e.field]:"";else for(var a=ae(r,u),o=0,s=(null===(n=null==a?void 0:a.tmpData)||void 0===n?void 0:n.actions)||[];o<s.length;o++){var l=s[o].vars.find((function(t){return(null==t?void 0:t.mapField)===(null==e?void 0:e.mapField)}));if(l){i=l.value;break}}return i},g=[],m=0,v=e;m<v.length;m++)if(f(E=v[m],u)&&E.type==l){var y=p(i,E);E.value=y||E.value,E.converter&&E.converterCode?(E.originalValue=y||E.value,E.value=Pe(E.converterCode,y||E.value)):(E.originalValue=y||E.value,E.value=y||E.value);for(var _=0,b=e;_<b.length;_++){var w=b[_];w.id==u||(null==E?void 0:E.forkValue)||w.mapField!=E.mapField||(w.value=y||w.value,w.converter&&w.converterCode?(w.originalValue=y||w.value,w.value=Pe(w.converterCode,y||w.value)):(w.originalValue=y||w.value,w.value=y||w.value))}g.push(E)}for(var D=e.filter((function(t){return g&&(g.find((function(e){return e.mapField==t.mapField}))||g.find((function(e){return e.mapField==t.forkValue}))||g.find((function(e){return Array.isArray(t.forkValue)&&t.forkValue.includes(e.mapField)})))})),S=function(t){if(!n)return"break";var i=n[t.mapField]||[];if(t.fork)if(Array.isArray(t.forkValue))t.originalValue=t.forkValue.map((function(t){return e.find((function(e){return e.mapField==t})).value}));else{var a=e.find((function(e){return e.mapField==t.forkValue}));console.log(a,"sitem"),t.originalValue=a.value}t.converter&&t.converterCode?t.value=Pe(t.converterCode,t.originalValue):t.value=t.originalValue;for(var s=function(n){t.eventSourceId=n;var i=ae(r,n);console.log(1231231),(null==t?void 0:t.delayUpdate)||setTimeout((function(){zn(i,e,!0,o,null,r)}))},u=0,l=i;u<l.length;u++)s(l[u])},x=0,T=D;x<T.length&&"break"!==S(E=T[x]);x++);for(var k=0,C=h;k<C.length;k++){var E;switch((E=C[k]).type){case"link":window.open(E.link,E.target);break;case"page":s&&s(E);break;case"dynamic":for(var M=0,O=E.dynamic||[];M<O.length;M++){var A=O[M];if(E.id===i.cid){var P=ae(r,A.pid);P&&(P.activeDynamic=A.name,P.isShow=A.visible||!c||E.index===i.index-1,a({cid:P.cid,flag:A.visible}))}}break;case"toggle":for(var B=0,R=E.children||[];B<R.length;B++){var V=(Y=R[B]).visible&&(!c||E.index===i.index-1);a({cid:Y.cid,flag:V})}break;case"update":for(var N=function(t){var n=ae(r,t.cid);setTimeout((function(){zn(n,e,!0,o)}))},I=0,F=E.children||[];I<F.length;I++){var Y;N(Y=F[I])}}}}(this.VueServer.callState("globalEvents"),this.VueServer.callState("globalVars"),this.VueServer.callState("shareVariableTree"),this.VueServer.callState("list"),t,(function(t){n.VueServer.callMutation("changeShow",t)}),(function(t){n.VueServer.callMutation("updataSourceForComponent",t)}),e)},t}();function vr(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function yr(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}
|
|
33
33
|
/*!
|
|
34
34
|
* GSAP 3.11.5
|
|
35
35
|
* https://greensock.com
|
|
@@ -38,7 +38,7 @@ function(t){var e=n,r=e.lib,i=r.WordArray,a=r.Hasher,o=e.algo,s=i.create([0,1,2,
|
|
|
38
38
|
* Subject to the terms at https://greensock.com/standard-license or for
|
|
39
39
|
* Club GreenSock members, the agreement issued with that membership.
|
|
40
40
|
* @author: Jack Doyle, jack@greensock.com
|
|
41
|
-
*/var yr,_r,br,wr,Dr,Sr,xr,Tr,kr,Cr,Er,Or,Mr,Ar,Pr,Br={autoSleep:120,force3D:"auto",nullTargetWarn:1,units:{lineHeight:""}},Rr={duration:.5,overwrite:!1,delay:0},Nr=1e8,Vr=1e-8,Ir=2*Math.PI,Fr=Ir/4,Yr=0,Lr=Math.sqrt,jr=Math.cos,Hr=Math.sin,zr=function(t){return"string"==typeof t},Ur=function(t){return"function"==typeof t},Wr=function(t){return"number"==typeof t},qr=function(t){return void 0===t},Gr=function(t){return"object"==typeof t},Kr=function(t){return!1!==t},Zr=function(){return"undefined"!=typeof window},Xr=function(t){return Ur(t)||zr(t)},$r="function"==typeof ArrayBuffer&&ArrayBuffer.isView||function(){},Jr=Array.isArray,Qr=/(?:-?\.?\d|\.)+/gi,ti=/[-+=.]*\d+[.e\-+]*\d*[e\-+]*\d*/g,ei=/[-+=.]*\d+[.e-]*\d*[a-z%]*/g,ni=/[-+=.]*\d+\.?\d*(?:e-|e\+)?\d*/gi,ri=/[+-]=-?[.\d]+/,ii=/[^,'"\[\]\s]+/gi,ai=/^[+\-=e\s\d]*\d+[.\d]*([a-z]*|%)\s*$/i,oi={},si={},ui=function(t){return(si=Ii(t,oi))&&Fo},li=function(t,e){return console.warn("Invalid property",t,"set to",e,"Missing plugin? gsap.registerPlugin()")},ci=function(t,e){return!e&&console.warn(t)},hi=function(t,e){return t&&(oi[t]=e)&&si&&(si[t]=e)||oi},fi=function(){return 0},di={suppressEvents:!0,isStart:!0,kill:!1},pi={suppressEvents:!0,kill:!1},gi={suppressEvents:!0},vi={},mi=[],yi={},_i={},bi={},wi=30,Di=[],Si="",xi=function(t){var e,n,r=t[0];if(Gr(r)||Ur(r)||(t=[t]),!(e=(r._gsap||{}).harness)){for(n=Di.length;n--&&!Di[n].targetTest(r););e=Di[n]}for(n=t.length;n--;)t[n]&&(t[n]._gsap||(t[n]._gsap=new Ja(t[n],e)))||t.splice(n,1);return t},Ti=function(t){return t._gsap||xi(ga(t))[0]._gsap},ki=function(t,e,n){return(n=t[e])&&Ur(n)?t[e]():qr(n)&&t.getAttribute&&t.getAttribute(e)||n},Ci=function(t,e){return(t=t.split(",")).forEach(e)||t},Ei=function(t){return Math.round(1e5*t)/1e5||0},Oi=function(t){return Math.round(1e7*t)/1e7||0},Mi=function(t,e){var n=e.charAt(0),r=parseFloat(e.substr(2));return t=parseFloat(t),"+"===n?t+r:"-"===n?t-r:"*"===n?t*r:t/r},Ai=function(t,e){for(var n=e.length,r=0;t.indexOf(e[r])<0&&++r<n;);return r<n},Pi=function(){var t,e,n=mi.length,r=mi.slice(0);for(yi={},mi.length=0,t=0;t<n;t++)(e=r[t])&&e._lazy&&(e.render(e._lazy[0],e._lazy[1],!0)._lazy=0)},Bi=function(t,e,n,r){mi.length&&!_r&&Pi(),t.render(e,n,r||_r&&e<0&&(t._initted||t._startAt)),mi.length&&!_r&&Pi()},Ri=function(t){var e=parseFloat(t);return(e||0===e)&&(t+"").match(ii).length<2?e:zr(t)?t.trim():t},Ni=function(t){return t},Vi=function(t,e){for(var n in e)n in t||(t[n]=e[n]);return t},Ii=function(t,e){for(var n in e)t[n]=e[n];return t},Fi=function t(e,n){for(var r in n)"__proto__"!==r&&"constructor"!==r&&"prototype"!==r&&(e[r]=Gr(n[r])?t(e[r]||(e[r]={}),n[r]):n[r]);return e},Yi=function(t,e){var n,r={};for(n in t)n in e||(r[n]=t[n]);return r},Li=function(t){var e,n=t.parent||wr,r=t.keyframes?(e=Jr(t.keyframes),function(t,n){for(var r in n)r in t||"duration"===r&&e||"ease"===r||(t[r]=n[r])}):Vi;if(Kr(t.inherit))for(;n;)r(t,n.vars.defaults),n=n.parent||n._dp;return t},ji=function(t,e,n,r,i){void 0===n&&(n="_first"),void 0===r&&(r="_last");var a,o=t[r];if(i)for(a=e[i];o&&o[i]>a;)o=o._prev;return o?(e._next=o._next,o._next=e):(e._next=t[n],t[n]=e),e._next?e._next._prev=e:t[r]=e,e._prev=o,e.parent=e._dp=t,e},Hi=function(t,e,n,r){void 0===n&&(n="_first"),void 0===r&&(r="_last");var i=e._prev,a=e._next;i?i._next=a:t[n]===e&&(t[n]=a),a?a._prev=i:t[r]===e&&(t[r]=i),e._next=e._prev=e.parent=null},zi=function(t,e){t.parent&&(!e||t.parent.autoRemoveChildren)&&t.parent.remove(t),t._act=0},Ui=function(t,e){if(t&&(!e||e._end>t._dur||e._start<0))for(var n=t;n;)n._dirty=1,n=n.parent;return t},Wi=function(t,e,n,r){return t._startAt&&(_r?t._startAt.revert(pi):t.vars.immediateRender&&!t.vars.autoRevert||t._startAt.render(e,!0,r))},qi=function t(e){return!e||e._ts&&t(e.parent)},Gi=function(t){return t._repeat?Ki(t._tTime,t=t.duration()+t._rDelay)*t:0},Ki=function(t,e){var n=Math.floor(t/=e);return t&&n===t?n-1:n},Zi=function(t,e){return(t-e._start)*e._ts+(e._ts>=0?0:e._dirty?e.totalDuration():e._tDur)},Xi=function(t){return t._end=Oi(t._start+(t._tDur/Math.abs(t._ts||t._rts||Vr)||0))},$i=function(t,e){var n=t._dp;return n&&n.smoothChildTiming&&t._ts&&(t._start=Oi(n._time-(t._ts>0?e/t._ts:((t._dirty?t.totalDuration():t._tDur)-e)/-t._ts)),Xi(t),n._dirty||Ui(n,t)),t},Ji=function(t,e){var n;if((e._time||e._initted&&!e._dur)&&(n=Zi(t.rawTime(),e),(!e._dur||ca(0,e.totalDuration(),n)-e._tTime>Vr)&&e.render(n,!0)),Ui(t,e)._dp&&t._initted&&t._time>=t._dur&&t._ts){if(t._dur<t.duration())for(n=t;n._dp;)n.rawTime()>=0&&n.totalTime(n._tTime),n=n._dp;t._zTime=-1e-8}},Qi=function(t,e,n,r){return e.parent&&zi(e),e._start=Oi((Wr(n)?n:n||t!==wr?sa(t,n,e):t._time)+e._delay),e._end=Oi(e._start+(e.totalDuration()/Math.abs(e.timeScale())||0)),ji(t,e,"_first","_last",t._sort?"_start":0),ra(e)||(t._recent=e),r||Ji(t,e),t._ts<0&&$i(t,t._tTime),t},ta=function(t,e){return(oi.ScrollTrigger||li("scrollTrigger",e))&&oi.ScrollTrigger.create(e,t)},ea=function(t,e,n,r,i){return oo(t,e,i),t._initted?!n&&t._pt&&!_r&&(t._dur&&!1!==t.vars.lazy||!t._dur&&t.vars.lazy)&&kr!==Ya.frame?(mi.push(t),t._lazy=[i,r],1):void 0:1},na=function t(e){var n=e.parent;return n&&n._ts&&n._initted&&!n._lock&&(n.rawTime()<0||t(n))},ra=function(t){var e=t.data;return"isFromStart"===e||"isStart"===e},ia=function(t,e,n,r){var i=t._repeat,a=Oi(e)||0,o=t._tTime/t._tDur;return o&&!r&&(t._time*=a/t._dur),t._dur=a,t._tDur=i?i<0?1e10:Oi(a*(i+1)+t._rDelay*i):a,o>0&&!r&&$i(t,t._tTime=t._tDur*o),t.parent&&Xi(t),n||Ui(t.parent,t),t},aa=function(t){return t instanceof to?Ui(t):ia(t,t._dur)},oa={_start:0,endTime:fi,totalDuration:fi},sa=function t(e,n,r){var i,a,o,s=e.labels,u=e._recent||oa,l=e.duration()>=Nr?u.endTime(!1):e._dur;return zr(n)&&(isNaN(n)||n in s)?(a=n.charAt(0),o="%"===n.substr(-1),i=n.indexOf("="),"<"===a||">"===a?(i>=0&&(n=n.replace(/=/,"")),("<"===a?u._start:u.endTime(u._repeat>=0))+(parseFloat(n.substr(1))||0)*(o?(i<0?u:r).totalDuration()/100:1)):i<0?(n in s||(s[n]=l),s[n]):(a=parseFloat(n.charAt(i-1)+n.substr(i+1)),o&&r&&(a=a/100*(Jr(r)?r[0]:r).totalDuration()),i>1?t(e,n.substr(0,i-1),r)+a:l+a)):null==n?l:+n},ua=function(t,e,n){var r,i,a=Wr(e[1]),o=(a?2:1)+(t<2?0:1),s=e[o];if(a&&(s.duration=e[1]),s.parent=n,t){for(r=s,i=n;i&&!("immediateRender"in r);)r=i.vars.defaults||{},i=Kr(i.vars.inherit)&&i.parent;s.immediateRender=Kr(r.immediateRender),t<2?s.runBackwards=1:s.startAt=e[o-1]}return new ho(e[0],s,e[o+1])},la=function(t,e){return t||0===t?e(t):e},ca=function(t,e,n){return n<t?t:n>e?e:n},ha=function(t,e){return zr(t)&&(e=ai.exec(t))?e[1]:""},fa=[].slice,da=function(t,e){return t&&Gr(t)&&"length"in t&&(!e&&!t.length||t.length-1 in t&&Gr(t[0]))&&!t.nodeType&&t!==Dr},pa=function(t,e,n){return void 0===n&&(n=[]),t.forEach((function(t){var r;return zr(t)&&!e||da(t,1)?(r=n).push.apply(r,ga(t)):n.push(t)}))||n},ga=function(t,e,n){return br&&!e&&br.selector?br.selector(t):!zr(t)||n||!Sr&&La()?Jr(t)?pa(t,n):da(t)?fa.call(t,0):t?[t]:[]:fa.call((e||xr).querySelectorAll(t),0)},va=function(t){return t=ga(t)[0]||ci("Invalid scope")||{},function(e){var n=t.current||t.nativeElement||t;return ga(e,n.querySelectorAll?n:n===t?ci("Invalid scope")||xr.createElement("div"):t)}},ma=function(t){return t.sort((function(){return.5-Math.random()}))},ya=function(t){if(Ur(t))return t;var e=Gr(t)?t:{each:t},n=Ga(e.ease),r=e.from||0,i=parseFloat(e.base)||0,a={},o=r>0&&r<1,s=isNaN(r)||o,u=e.axis,l=r,c=r;return zr(r)?l=c={center:.5,edges:.5,end:1}[r]||0:!o&&s&&(l=r[0],c=r[1]),function(t,o,h){var f,d,p,g,v,m,y,_,b,w=(h||e).length,D=a[w];if(!D){if(!(b="auto"===e.grid?0:(e.grid||[1,Nr])[1])){for(y=-1e8;y<(y=h[b++].getBoundingClientRect().left)&&b<w;);b--}for(D=a[w]=[],f=s?Math.min(b,w)*l-.5:r%b,d=b===Nr?0:s?w*c/b-.5:r/b|0,y=0,_=Nr,m=0;m<w;m++)p=m%b-f,g=d-(m/b|0),D[m]=v=u?Math.abs("y"===u?g:p):Lr(p*p+g*g),v>y&&(y=v),v<_&&(_=v);"random"===r&&ma(D),D.max=y-_,D.min=_,D.v=w=(parseFloat(e.amount)||parseFloat(e.each)*(b>w?w-1:u?"y"===u?w/b:b:Math.max(b,w/b))||0)*("edges"===r?-1:1),D.b=w<0?i-w:i,D.u=ha(e.amount||e.each)||0,n=n&&w<0?Wa(n):n}return w=(D[t]-D.min)/D.max||0,Oi(D.b+(n?n(w):w)*D.v)+D.u}},_a=function(t){var e=Math.pow(10,((t+"").split(".")[1]||"").length);return function(n){var r=Oi(Math.round(parseFloat(n)/t)*t*e);return(r-r%1)/e+(Wr(n)?0:ha(n))}},ba=function(t,e){var n,r,i=Jr(t);return!i&&Gr(t)&&(n=i=t.radius||Nr,t.values?(t=ga(t.values),(r=!Wr(t[0]))&&(n*=n)):t=_a(t.increment)),la(e,i?Ur(t)?function(e){return r=t(e),Math.abs(r-e)<=n?r:e}:function(e){for(var i,a,o=parseFloat(r?e.x:e),s=parseFloat(r?e.y:0),u=Nr,l=0,c=t.length;c--;)(i=r?(i=t[c].x-o)*i+(a=t[c].y-s)*a:Math.abs(t[c]-o))<u&&(u=i,l=c);return l=!n||u<=n?t[l]:e,r||l===e||Wr(e)?l:l+ha(e)}:_a(t))},wa=function(t,e,n,r){return la(Jr(t)?!e:!0===n?!!(n=0):!r,(function(){return Jr(t)?t[~~(Math.random()*t.length)]:(n=n||1e-5)&&(r=n<1?Math.pow(10,(n+"").length-2):1)&&Math.floor(Math.round((t-n/2+Math.random()*(e-t+.99*n))/n)*n*r)/r}))},Da=function(t,e,n){return la(n,(function(n){return t[~~e(n)]}))},Sa=function(t){for(var e,n,r,i,a=0,o="";~(e=t.indexOf("random(",a));)r=t.indexOf(")",e),i="["===t.charAt(e+7),n=t.substr(e+7,r-e-7).match(i?ii:Qr),o+=t.substr(a,e-a)+wa(i?n:+n[0],i?0:+n[1],+n[2]||1e-5),a=r+1;return o+t.substr(a,t.length-a)},xa=function(t,e,n,r,i){var a=e-t,o=r-n;return la(i,(function(e){return n+((e-t)/a*o||0)}))},Ta=function(t,e,n){var r,i,a,o=t.labels,s=Nr;for(r in o)(i=o[r]-e)<0==!!n&&i&&s>(i=Math.abs(i))&&(a=r,s=i);return a},ka=function(t,e,n){var r,i,a,o=t.vars,s=o[e],u=br,l=t._ctx;if(s)return r=o[e+"Params"],i=o.callbackScope||t,n&&mi.length&&Pi(),l&&(br=l),a=r?s.apply(i,r):s.call(i),br=u,a},Ca=function(t){return zi(t),t.scrollTrigger&&t.scrollTrigger.kill(!!_r),t.progress()<1&&ka(t,"onInterrupt"),t},Ea=[],Oa=function(t){if(Zr()){var e=(t=!t.name&&t.default||t).name,n=Ur(t),r=e&&!n&&t.init?function(){this._props=[]}:t,i={init:fi,render:wo,add:io,kill:So,modifier:Do,rawVars:0},a={targetTest:0,get:0,getSetter:mo,aliases:{},register:0};if(La(),t!==r){if(_i[e])return;Vi(r,Vi(Yi(t,i),a)),Ii(r.prototype,Ii(i,Yi(t,a))),_i[r.prop=e]=r,t.targetTest&&(Di.push(r),vi[e]=1),e=("css"===e?"CSS":e.charAt(0).toUpperCase()+e.substr(1))+"Plugin"}hi(e,r),t.register&&t.register(Fo,r,ko)}else Ea.push(t)},Ma=255,Aa={aqua:[0,Ma,Ma],lime:[0,Ma,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,Ma],navy:[0,0,128],white:[Ma,Ma,Ma],olive:[128,128,0],yellow:[Ma,Ma,0],orange:[Ma,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[Ma,0,0],pink:[Ma,192,203],cyan:[0,Ma,Ma],transparent:[Ma,Ma,Ma,0]},Pa=function(t,e,n){return(6*(t+=t<0?1:t>1?-1:0)<1?e+(n-e)*t*6:t<.5?n:3*t<2?e+(n-e)*(2/3-t)*6:e)*Ma+.5|0},Ba=function(t,e,n){var r,i,a,o,s,u,l,c,h,f,d=t?Wr(t)?[t>>16,t>>8&Ma,t&Ma]:0:Aa.black;if(!d){if(","===t.substr(-1)&&(t=t.substr(0,t.length-1)),Aa[t])d=Aa[t];else if("#"===t.charAt(0)){if(t.length<6&&(r=t.charAt(1),i=t.charAt(2),a=t.charAt(3),t="#"+r+r+i+i+a+a+(5===t.length?t.charAt(4)+t.charAt(4):"")),9===t.length)return[(d=parseInt(t.substr(1,6),16))>>16,d>>8&Ma,d&Ma,parseInt(t.substr(7),16)/255];d=[(t=parseInt(t.substr(1),16))>>16,t>>8&Ma,t&Ma]}else if("hsl"===t.substr(0,3))if(d=f=t.match(Qr),e){if(~t.indexOf("="))return d=t.match(ti),n&&d.length<4&&(d[3]=1),d}else o=+d[0]%360/360,s=+d[1]/100,r=2*(u=+d[2]/100)-(i=u<=.5?u*(s+1):u+s-u*s),d.length>3&&(d[3]*=1),d[0]=Pa(o+1/3,r,i),d[1]=Pa(o,r,i),d[2]=Pa(o-1/3,r,i);else d=t.match(Qr)||Aa.transparent;d=d.map(Number)}return e&&!f&&(r=d[0]/Ma,i=d[1]/Ma,a=d[2]/Ma,u=((l=Math.max(r,i,a))+(c=Math.min(r,i,a)))/2,l===c?o=s=0:(h=l-c,s=u>.5?h/(2-l-c):h/(l+c),o=l===r?(i-a)/h+(i<a?6:0):l===i?(a-r)/h+2:(r-i)/h+4,o*=60),d[0]=~~(o+.5),d[1]=~~(100*s+.5),d[2]=~~(100*u+.5)),n&&d.length<4&&(d[3]=1),d},Ra=function(t){var e=[],n=[],r=-1;return t.split(Va).forEach((function(t){var i=t.match(ei)||[];e.push.apply(e,i),n.push(r+=i.length+1)})),e.c=n,e},Na=function(t,e,n){var r,i,a,o,s="",u=(t+s).match(Va),l=e?"hsla(":"rgba(",c=0;if(!u)return t;if(u=u.map((function(t){return(t=Ba(t,e,1))&&l+(e?t[0]+","+t[1]+"%,"+t[2]+"%,"+t[3]:t.join(","))+")"})),n&&(a=Ra(t),(r=n.c).join(s)!==a.c.join(s)))for(o=(i=t.replace(Va,"1").split(ei)).length-1;c<o;c++)s+=i[c]+(~r.indexOf(c)?u.shift()||l+"0,0,0,0)":(a.length?a:u.length?u:n).shift());if(!i)for(o=(i=t.split(Va)).length-1;c<o;c++)s+=i[c]+u[c];return s+i[o]},Va=function(){var t,e="(?:\\b(?:(?:rgb|rgba|hsl|hsla)\\(.+?\\))|\\B#(?:[0-9a-f]{3,4}){1,2}\\b";for(t in Aa)e+="|"+t+"\\b";return new RegExp(e+")","gi")}(),Ia=/hsl[a]?\(/,Fa=function(t){var e,n=t.join(" ");if(Va.lastIndex=0,Va.test(n))return e=Ia.test(n),t[1]=Na(t[1],e),t[0]=Na(t[0],e,Ra(t[1])),!0},Ya=function(){var t,e,n,r,i,a,o=Date.now,s=500,u=33,l=o(),c=l,h=1e3/240,f=h,d=[],p=function n(p){var g,v,m,y,_=o()-c,b=!0===p;if(_>s&&(l+=_-u),((g=(m=(c+=_)-l)-f)>0||b)&&(y=++r.frame,i=m-1e3*r.time,r.time=m/=1e3,f+=g+(g>=h?4:h-g),v=1),b||(t=e(n)),v)for(a=0;a<d.length;a++)d[a](m,i,y,p)};return r={time:0,frame:0,tick:function(){p(!0)},deltaRatio:function(t){return i/(1e3/(t||60))},wake:function(){Tr&&(!Sr&&Zr()&&(Dr=Sr=window,xr=Dr.document||{},oi.gsap=Fo,(Dr.gsapVersions||(Dr.gsapVersions=[])).push(Fo.version),ui(si||Dr.GreenSockGlobals||!Dr.gsap&&Dr||{}),n=Dr.requestAnimationFrame,Ea.forEach(Oa)),t&&r.sleep(),e=n||function(t){return setTimeout(t,f-1e3*r.time+1|0)},Er=1,p(2))},sleep:function(){(n?Dr.cancelAnimationFrame:clearTimeout)(t),Er=0,e=fi},lagSmoothing:function(t,e){s=t||1/0,u=Math.min(e||33,s)},fps:function(t){h=1e3/(t||240),f=1e3*r.time+h},add:function(t,e,n){var i=e?function(e,n,a,o){t(e,n,a,o),r.remove(i)}:t;return r.remove(t),d[n?"unshift":"push"](i),La(),i},remove:function(t,e){~(e=d.indexOf(t))&&d.splice(e,1)&&a>=e&&a--},_listeners:d},r}(),La=function(){return!Er&&Ya.wake()},ja={},Ha=/^[\d.\-M][\d.\-,\s]/,za=/["']/g,Ua=function(t){for(var e,n,r,i={},a=t.substr(1,t.length-3).split(":"),o=a[0],s=1,u=a.length;s<u;s++)n=a[s],e=s!==u-1?n.lastIndexOf(","):n.length,r=n.substr(0,e),i[o]=isNaN(r)?r.replace(za,"").trim():+r,o=n.substr(e+1).trim();return i},Wa=function(t){return function(e){return 1-t(1-e)}},qa=function t(e,n){for(var r,i=e._first;i;)i instanceof to?t(i,n):!i.vars.yoyoEase||i._yoyo&&i._repeat||i._yoyo===n||(i.timeline?t(i.timeline,n):(r=i._ease,i._ease=i._yEase,i._yEase=r,i._yoyo=n)),i=i._next},Ga=function(t,e){return t&&(Ur(t)?t:ja[t]||function(t){var e=(t+"").split("("),n=ja[e[0]];return n&&e.length>1&&n.config?n.config.apply(null,~t.indexOf("{")?[Ua(e[1])]:function(t){var e=t.indexOf("(")+1,n=t.indexOf(")"),r=t.indexOf("(",e);return t.substring(e,~r&&r<n?t.indexOf(")",n+1):n)}(t).split(",").map(Ri)):ja._CE&&Ha.test(t)?ja._CE("",t):n}(t))||e},Ka=function(t,e,n,r){void 0===n&&(n=function(t){return 1-e(1-t)}),void 0===r&&(r=function(t){return t<.5?e(2*t)/2:1-e(2*(1-t))/2});var i,a={easeIn:e,easeOut:n,easeInOut:r};return Ci(t,(function(t){for(var e in ja[t]=oi[t]=a,ja[i=t.toLowerCase()]=n,a)ja[i+("easeIn"===e?".in":"easeOut"===e?".out":".inOut")]=ja[t+"."+e]=a[e]})),a},Za=function(t){return function(e){return e<.5?(1-t(1-2*e))/2:.5+t(2*(e-.5))/2}},Xa=function t(e,n,r){var i=n>=1?n:1,a=(r||(e?.3:.45))/(n<1?n:1),o=a/Ir*(Math.asin(1/i)||0),s=function(t){return 1===t?1:i*Math.pow(2,-10*t)*Hr((t-o)*a)+1},u="out"===e?s:"in"===e?function(t){return 1-s(1-t)}:Za(s);return a=Ir/a,u.config=function(n,r){return t(e,n,r)},u},$a=function t(e,n){void 0===n&&(n=1.70158);var r=function(t){return t?--t*t*((n+1)*t+n)+1:0},i="out"===e?r:"in"===e?function(t){return 1-r(1-t)}:Za(r);return i.config=function(n){return t(e,n)},i};Ci("Linear,Quad,Cubic,Quart,Quint,Strong",(function(t,e){var n=e<5?e+1:e;Ka(t+",Power"+(n-1),e?function(t){return Math.pow(t,n)}:function(t){return t},(function(t){return 1-Math.pow(1-t,n)}),(function(t){return t<.5?Math.pow(2*t,n)/2:1-Math.pow(2*(1-t),n)/2}))})),ja.Linear.easeNone=ja.none=ja.Linear.easeIn,Ka("Elastic",Xa("in"),Xa("out"),Xa()),Or=7.5625,Ar=1/(Mr=2.75),Ka("Bounce",(function(t){return 1-Pr(1-t)}),Pr=function(t){return t<Ar?Or*t*t:t<.7272727272727273?Or*Math.pow(t-1.5/Mr,2)+.75:t<.9090909090909092?Or*(t-=2.25/Mr)*t+.9375:Or*Math.pow(t-2.625/Mr,2)+.984375}),Ka("Expo",(function(t){return t?Math.pow(2,10*(t-1)):0})),Ka("Circ",(function(t){return-(Lr(1-t*t)-1)})),Ka("Sine",(function(t){return 1===t?1:1-jr(t*Fr)})),Ka("Back",$a("in"),$a("out"),$a()),ja.SteppedEase=ja.steps=oi.SteppedEase={config:function(t,e){void 0===t&&(t=1);var n=1/t,r=t+(e?0:1),i=e?1:0;return function(t){return((r*ca(0,.99999999,t)|0)+i)*n}}},Rr.ease=ja["quad.out"],Ci("onComplete,onUpdate,onStart,onRepeat,onReverseComplete,onInterrupt",(function(t){return Si+=t+","+t+"Params,"}));var Ja=function(t,e){this.id=Yr++,t._gsap=this,this.target=t,this.harness=e,this.get=e?e.get:ki,this.set=e?e.getSetter:mo},Qa=function(){function t(t){this.vars=t,this._delay=+t.delay||0,(this._repeat=t.repeat===1/0?-2:t.repeat||0)&&(this._rDelay=t.repeatDelay||0,this._yoyo=!!t.yoyo||!!t.yoyoEase),this._ts=1,ia(this,+t.duration,1,1),this.data=t.data,br&&(this._ctx=br,br.data.push(this)),Er||Ya.wake()}var e=t.prototype;return e.delay=function(t){return t||0===t?(this.parent&&this.parent.smoothChildTiming&&this.startTime(this._start+t-this._delay),this._delay=t,this):this._delay},e.duration=function(t){return arguments.length?this.totalDuration(this._repeat>0?t+(t+this._rDelay)*this._repeat:t):this.totalDuration()&&this._dur},e.totalDuration=function(t){return arguments.length?(this._dirty=0,ia(this,this._repeat<0?t:(t-this._repeat*this._rDelay)/(this._repeat+1))):this._tDur},e.totalTime=function(t,e){if(La(),!arguments.length)return this._tTime;var n=this._dp;if(n&&n.smoothChildTiming&&this._ts){for($i(this,t),!n._dp||n.parent||Ji(n,this);n&&n.parent;)n.parent._time!==n._start+(n._ts>=0?n._tTime/n._ts:(n.totalDuration()-n._tTime)/-n._ts)&&n.totalTime(n._tTime,!0),n=n.parent;!this.parent&&this._dp.autoRemoveChildren&&(this._ts>0&&t<this._tDur||this._ts<0&&t>0||!this._tDur&&!t)&&Qi(this._dp,this,this._start-this._delay)}return(this._tTime!==t||!this._dur&&!e||this._initted&&Math.abs(this._zTime)===Vr||!t&&!this._initted&&(this.add||this._ptLookup))&&(this._ts||(this._pTime=t),Bi(this,t,e)),this},e.time=function(t,e){return arguments.length?this.totalTime(Math.min(this.totalDuration(),t+Gi(this))%(this._dur+this._rDelay)||(t?this._dur:0),e):this._time},e.totalProgress=function(t,e){return arguments.length?this.totalTime(this.totalDuration()*t,e):this.totalDuration()?Math.min(1,this._tTime/this._tDur):this.ratio},e.progress=function(t,e){return arguments.length?this.totalTime(this.duration()*(!this._yoyo||1&this.iteration()?t:1-t)+Gi(this),e):this.duration()?Math.min(1,this._time/this._dur):this.ratio},e.iteration=function(t,e){var n=this.duration()+this._rDelay;return arguments.length?this.totalTime(this._time+(t-1)*n,e):this._repeat?Ki(this._tTime,n)+1:1},e.timeScale=function(t){if(!arguments.length)return-1e-8===this._rts?0:this._rts;if(this._rts===t)return this;var e=this.parent&&this._ts?Zi(this.parent._time,this):this._tTime;return this._rts=+t||0,this._ts=this._ps||-1e-8===t?0:this._rts,this.totalTime(ca(-Math.abs(this._delay),this._tDur,e),!0),Xi(this),function(t){for(var e=t.parent;e&&e.parent;)e._dirty=1,e.totalDuration(),e=e.parent;return t}(this)},e.paused=function(t){return arguments.length?(this._ps!==t&&(this._ps=t,t?(this._pTime=this._tTime||Math.max(-this._delay,this.rawTime()),this._ts=this._act=0):(La(),this._ts=this._rts,this.totalTime(this.parent&&!this.parent.smoothChildTiming?this.rawTime():this._tTime||this._pTime,1===this.progress()&&Math.abs(this._zTime)!==Vr&&(this._tTime-=Vr)))),this):this._ps},e.startTime=function(t){if(arguments.length){this._start=t;var e=this.parent||this._dp;return e&&(e._sort||!this.parent)&&Qi(e,this,t-this._delay),this}return this._start},e.endTime=function(t){return this._start+(Kr(t)?this.totalDuration():this.duration())/Math.abs(this._ts||1)},e.rawTime=function(t){var e=this.parent||this._dp;return e?t&&(!this._ts||this._repeat&&this._time&&this.totalProgress()<1)?this._tTime%(this._dur+this._rDelay):this._ts?Zi(e.rawTime(t),this):this._tTime:this._tTime},e.revert=function(t){void 0===t&&(t=gi);var e=_r;return _r=t,(this._initted||this._startAt)&&(this.timeline&&this.timeline.revert(t),this.totalTime(-.01,t.suppressEvents)),"nested"!==this.data&&!1!==t.kill&&this.kill(),_r=e,this},e.globalTime=function(t){for(var e=this,n=arguments.length?t:e.rawTime();e;)n=e._start+n/(e._ts||1),e=e._dp;return!this.parent&&this._sat?this._sat.vars.immediateRender?-1:this._sat.globalTime(t):n},e.repeat=function(t){return arguments.length?(this._repeat=t===1/0?-2:t,aa(this)):-2===this._repeat?1/0:this._repeat},e.repeatDelay=function(t){if(arguments.length){var e=this._time;return this._rDelay=t,aa(this),e?this.time(e):this}return this._rDelay},e.yoyo=function(t){return arguments.length?(this._yoyo=t,this):this._yoyo},e.seek=function(t,e){return this.totalTime(sa(this,t),Kr(e))},e.restart=function(t,e){return this.play().totalTime(t?-this._delay:0,Kr(e))},e.play=function(t,e){return null!=t&&this.seek(t,e),this.reversed(!1).paused(!1)},e.reverse=function(t,e){return null!=t&&this.seek(t||this.totalDuration(),e),this.reversed(!0).paused(!1)},e.pause=function(t,e){return null!=t&&this.seek(t,e),this.paused(!0)},e.resume=function(){return this.paused(!1)},e.reversed=function(t){return arguments.length?(!!t!==this.reversed()&&this.timeScale(-this._rts||(t?-1e-8:0)),this):this._rts<0},e.invalidate=function(){return this._initted=this._act=0,this._zTime=-1e-8,this},e.isActive=function(){var t,e=this.parent||this._dp,n=this._start;return!(e&&!(this._ts&&this._initted&&e.isActive()&&(t=e.rawTime(!0))>=n&&t<this.endTime(!0)-Vr))},e.eventCallback=function(t,e,n){var r=this.vars;return arguments.length>1?(e?(r[t]=e,n&&(r[t+"Params"]=n),"onUpdate"===t&&(this._onUpdate=e)):delete r[t],this):r[t]},e.then=function(t){var e=this;return new Promise((function(n){var r=Ur(t)?t:Ni,i=function(){var t=e.then;e.then=null,Ur(r)&&(r=r(e))&&(r.then||r===e)&&(e.then=t),n(r),e.then=t};e._initted&&1===e.totalProgress()&&e._ts>=0||!e._tTime&&e._ts<0?i():e._prom=i}))},e.kill=function(){Ca(this)},t}();Vi(Qa.prototype,{_time:0,_start:0,_end:0,_tTime:0,_tDur:0,_dirty:0,_repeat:0,_yoyo:!1,parent:null,_initted:!1,_rDelay:0,_ts:1,_dp:0,ratio:0,_zTime:-1e-8,_prom:0,_ps:!1,_rts:1});var to=function(t){function e(e,n){var r;return void 0===e&&(e={}),(r=t.call(this,e)||this).labels={},r.smoothChildTiming=!!e.smoothChildTiming,r.autoRemoveChildren=!!e.autoRemoveChildren,r._sort=Kr(e.sortChildren),wr&&Qi(e.parent||wr,vr(r),n),e.reversed&&r.reverse(),e.paused&&r.paused(!0),e.scrollTrigger&&ta(vr(r),e.scrollTrigger),r}mr(e,t);var n=e.prototype;return n.to=function(t,e,n){return ua(0,arguments,this),this},n.from=function(t,e,n){return ua(1,arguments,this),this},n.fromTo=function(t,e,n,r){return ua(2,arguments,this),this},n.set=function(t,e,n){return e.duration=0,e.parent=this,Li(e).repeatDelay||(e.repeat=0),e.immediateRender=!!e.immediateRender,new ho(t,e,sa(this,n),1),this},n.call=function(t,e,n){return Qi(this,ho.delayedCall(0,t,e),n)},n.staggerTo=function(t,e,n,r,i,a,o){return n.duration=e,n.stagger=n.stagger||r,n.onComplete=a,n.onCompleteParams=o,n.parent=this,new ho(t,n,sa(this,i)),this},n.staggerFrom=function(t,e,n,r,i,a,o){return n.runBackwards=1,Li(n).immediateRender=Kr(n.immediateRender),this.staggerTo(t,e,n,r,i,a,o)},n.staggerFromTo=function(t,e,n,r,i,a,o,s){return r.startAt=n,Li(r).immediateRender=Kr(r.immediateRender),this.staggerTo(t,e,r,i,a,o,s)},n.render=function(t,e,n){var r,i,a,o,s,u,l,c,h,f,d,p,g=this._time,v=this._dirty?this.totalDuration():this._tDur,m=this._dur,y=t<=0?0:Oi(t),_=this._zTime<0!=t<0&&(this._initted||!m);if(this!==wr&&y>v&&t>=0&&(y=v),y!==this._tTime||n||_){if(g!==this._time&&m&&(y+=this._time-g,t+=this._time-g),r=y,h=this._start,u=!(c=this._ts),_&&(m||(g=this._zTime),(t||!e)&&(this._zTime=t)),this._repeat){if(d=this._yoyo,s=m+this._rDelay,this._repeat<-1&&t<0)return this.totalTime(100*s+t,e,n);if(r=Oi(y%s),y===v?(o=this._repeat,r=m):((o=~~(y/s))&&o===y/s&&(r=m,o--),r>m&&(r=m)),f=Ki(this._tTime,s),!g&&this._tTime&&f!==o&&this._tTime-f*s-this._dur<=0&&(f=o),d&&1&o&&(r=m-r,p=1),o!==f&&!this._lock){var b=d&&1&f,w=b===(d&&1&o);if(o<f&&(b=!b),g=b?0:m,this._lock=1,this.render(g||(p?0:Oi(o*s)),e,!m)._lock=0,this._tTime=y,!e&&this.parent&&ka(this,"onRepeat"),this.vars.repeatRefresh&&!p&&(this.invalidate()._lock=1),g&&g!==this._time||u!==!this._ts||this.vars.onRepeat&&!this.parent&&!this._act)return this;if(m=this._dur,v=this._tDur,w&&(this._lock=2,g=b?m:-1e-4,this.render(g,!0),this.vars.repeatRefresh&&!p&&this.invalidate()),this._lock=0,!this._ts&&!u)return this;qa(this,p)}}if(this._hasPause&&!this._forcing&&this._lock<2&&(l=function(t,e,n){var r;if(n>e)for(r=t._first;r&&r._start<=n;){if("isPause"===r.data&&r._start>e)return r;r=r._next}else for(r=t._last;r&&r._start>=n;){if("isPause"===r.data&&r._start<e)return r;r=r._prev}}(this,Oi(g),Oi(r)),l&&(y-=r-(r=l._start))),this._tTime=y,this._time=r,this._act=!c,this._initted||(this._onUpdate=this.vars.onUpdate,this._initted=1,this._zTime=t,g=0),!g&&r&&!e&&!o&&(ka(this,"onStart"),this._tTime!==y))return this;if(r>=g&&t>=0)for(i=this._first;i;){if(a=i._next,(i._act||r>=i._start)&&i._ts&&l!==i){if(i.parent!==this)return this.render(t,e,n);if(i.render(i._ts>0?(r-i._start)*i._ts:(i._dirty?i.totalDuration():i._tDur)+(r-i._start)*i._ts,e,n),r!==this._time||!this._ts&&!u){l=0,a&&(y+=this._zTime=-1e-8);break}}i=a}else{i=this._last;for(var D=t<0?t:r;i;){if(a=i._prev,(i._act||D<=i._end)&&i._ts&&l!==i){if(i.parent!==this)return this.render(t,e,n);if(i.render(i._ts>0?(D-i._start)*i._ts:(i._dirty?i.totalDuration():i._tDur)+(D-i._start)*i._ts,e,n||_r&&(i._initted||i._startAt)),r!==this._time||!this._ts&&!u){l=0,a&&(y+=this._zTime=D?-1e-8:Vr);break}}i=a}}if(l&&!e&&(this.pause(),l.render(r>=g?0:-1e-8)._zTime=r>=g?1:-1,this._ts))return this._start=h,Xi(this),this.render(t,e,n);this._onUpdate&&!e&&ka(this,"onUpdate",!0),(y===v&&this._tTime>=this.totalDuration()||!y&&g)&&(h!==this._start&&Math.abs(c)===Math.abs(this._ts)||this._lock||((t||!m)&&(y===v&&this._ts>0||!y&&this._ts<0)&&zi(this,1),e||t<0&&!g||!y&&!g&&v||(ka(this,y===v&&t>=0?"onComplete":"onReverseComplete",!0),this._prom&&!(y<v&&this.timeScale()>0)&&this._prom())))}return this},n.add=function(t,e){var n=this;if(Wr(e)||(e=sa(this,e,t)),!(t instanceof Qa)){if(Jr(t))return t.forEach((function(t){return n.add(t,e)})),this;if(zr(t))return this.addLabel(t,e);if(!Ur(t))return this;t=ho.delayedCall(0,t)}return this!==t?Qi(this,t,e):this},n.getChildren=function(t,e,n,r){void 0===t&&(t=!0),void 0===e&&(e=!0),void 0===n&&(n=!0),void 0===r&&(r=-1e8);for(var i=[],a=this._first;a;)a._start>=r&&(a instanceof ho?e&&i.push(a):(n&&i.push(a),t&&i.push.apply(i,a.getChildren(!0,e,n)))),a=a._next;return i},n.getById=function(t){for(var e=this.getChildren(1,1,1),n=e.length;n--;)if(e[n].vars.id===t)return e[n]},n.remove=function(t){return zr(t)?this.removeLabel(t):Ur(t)?this.killTweensOf(t):(Hi(this,t),t===this._recent&&(this._recent=this._last),Ui(this))},n.totalTime=function(e,n){return arguments.length?(this._forcing=1,!this._dp&&this._ts&&(this._start=Oi(Ya.time-(this._ts>0?e/this._ts:(this.totalDuration()-e)/-this._ts))),t.prototype.totalTime.call(this,e,n),this._forcing=0,this):this._tTime},n.addLabel=function(t,e){return this.labels[t]=sa(this,e),this},n.removeLabel=function(t){return delete this.labels[t],this},n.addPause=function(t,e,n){var r=ho.delayedCall(0,e||fi,n);return r.data="isPause",this._hasPause=1,Qi(this,r,sa(this,t))},n.removePause=function(t){var e=this._first;for(t=sa(this,t);e;)e._start===t&&"isPause"===e.data&&zi(e),e=e._next},n.killTweensOf=function(t,e,n){for(var r=this.getTweensOf(t,n),i=r.length;i--;)eo!==r[i]&&r[i].kill(t,e);return this},n.getTweensOf=function(t,e){for(var n,r=[],i=ga(t),a=this._first,o=Wr(e);a;)a instanceof ho?Ai(a._targets,i)&&(o?(!eo||a._initted&&a._ts)&&a.globalTime(0)<=e&&a.globalTime(a.totalDuration())>e:!e||a.isActive())&&r.push(a):(n=a.getTweensOf(i,e)).length&&r.push.apply(r,n),a=a._next;return r},n.tweenTo=function(t,e){e=e||{};var n,r=this,i=sa(r,t),a=e,o=a.startAt,s=a.onStart,u=a.onStartParams,l=a.immediateRender,c=ho.to(r,Vi({ease:e.ease||"none",lazy:!1,immediateRender:!1,time:i,overwrite:"auto",duration:e.duration||Math.abs((i-(o&&"time"in o?o.time:r._time))/r.timeScale())||Vr,onStart:function(){if(r.pause(),!n){var t=e.duration||Math.abs((i-(o&&"time"in o?o.time:r._time))/r.timeScale());c._dur!==t&&ia(c,t,0,1).render(c._time,!0,!0),n=1}s&&s.apply(c,u||[])}},e));return l?c.render(0):c},n.tweenFromTo=function(t,e,n){return this.tweenTo(e,Vi({startAt:{time:sa(this,t)}},n))},n.recent=function(){return this._recent},n.nextLabel=function(t){return void 0===t&&(t=this._time),Ta(this,sa(this,t))},n.previousLabel=function(t){return void 0===t&&(t=this._time),Ta(this,sa(this,t),1)},n.currentLabel=function(t){return arguments.length?this.seek(t,!0):this.previousLabel(this._time+Vr)},n.shiftChildren=function(t,e,n){void 0===n&&(n=0);for(var r,i=this._first,a=this.labels;i;)i._start>=n&&(i._start+=t,i._end+=t),i=i._next;if(e)for(r in a)a[r]>=n&&(a[r]+=t);return Ui(this)},n.invalidate=function(e){var n=this._first;for(this._lock=0;n;)n.invalidate(e),n=n._next;return t.prototype.invalidate.call(this,e)},n.clear=function(t){void 0===t&&(t=!0);for(var e,n=this._first;n;)e=n._next,this.remove(n),n=e;return this._dp&&(this._time=this._tTime=this._pTime=0),t&&(this.labels={}),Ui(this)},n.totalDuration=function(t){var e,n,r,i=0,a=this,o=a._last,s=Nr;if(arguments.length)return a.timeScale((a._repeat<0?a.duration():a.totalDuration())/(a.reversed()?-t:t));if(a._dirty){for(r=a.parent;o;)e=o._prev,o._dirty&&o.totalDuration(),(n=o._start)>s&&a._sort&&o._ts&&!a._lock?(a._lock=1,Qi(a,o,n-o._delay,1)._lock=0):s=n,n<0&&o._ts&&(i-=n,(!r&&!a._dp||r&&r.smoothChildTiming)&&(a._start+=n/a._ts,a._time-=n,a._tTime-=n),a.shiftChildren(-n,!1,-Infinity),s=0),o._end>i&&o._ts&&(i=o._end),o=e;ia(a,a===wr&&a._time>i?a._time:i,1,1),a._dirty=0}return a._tDur},e.updateRoot=function(t){if(wr._ts&&(Bi(wr,Zi(t,wr)),kr=Ya.frame),Ya.frame>=wi){wi+=Br.autoSleep||120;var e=wr._first;if((!e||!e._ts)&&Br.autoSleep&&Ya._listeners.length<2){for(;e&&!e._ts;)e=e._next;e||Ya.sleep()}}},e}(Qa);Vi(to.prototype,{_lock:0,_hasPause:0,_forcing:0});var eo,no,ro=function(t,e,n,r,i,a,o){var s,u,l,c,h,f,d,p,g=new ko(this._pt,t,e,0,1,bo,null,i),v=0,m=0;for(g.b=n,g.e=r,n+="",(d=~(r+="").indexOf("random("))&&(r=Sa(r)),a&&(a(p=[n,r],t,e),n=p[0],r=p[1]),u=n.match(ni)||[];s=ni.exec(r);)c=s[0],h=r.substring(v,s.index),l?l=(l+1)%5:"rgba("===h.substr(-5)&&(l=1),c!==u[m++]&&(f=parseFloat(u[m-1])||0,g._pt={_next:g._pt,p:h||1===m?h:",",s:f,c:"="===c.charAt(1)?Mi(f,c)-f:parseFloat(c)-f,m:l&&l<4?Math.round:0},v=ni.lastIndex);return g.c=v<r.length?r.substring(v,r.length):"",g.fp=o,(ri.test(r)||d)&&(g.e=0),this._pt=g,g},io=function(t,e,n,r,i,a,o,s,u,l){Ur(r)&&(r=r(i||0,t,a));var c,h=t[e],f="get"!==n?n:Ur(h)?u?t[e.indexOf("set")||!Ur(t["get"+e.substr(3)])?e:"get"+e.substr(3)](u):t[e]():h,d=Ur(h)?u?go:po:fo;if(zr(r)&&(~r.indexOf("random(")&&(r=Sa(r)),"="===r.charAt(1)&&((c=Mi(f,r)+(ha(f)||0))||0===c)&&(r=c)),!l||f!==r||no)return isNaN(f*r)||""===r?(!h&&!(e in t)&&li(e,r),ro.call(this,t,e,f,r,d,s||Br.stringFilter,u)):(c=new ko(this._pt,t,e,+f||0,r-(f||0),"boolean"==typeof h?_o:yo,0,d),u&&(c.fp=u),o&&c.modifier(o,this,t),this._pt=c)},ao=function(t,e,n,r,i,a){var o,s,u,l;if(_i[t]&&!1!==(o=new _i[t]).init(i,o.rawVars?e[t]:function(t,e,n,r,i){if(Ur(t)&&(t=uo(t,i,e,n,r)),!Gr(t)||t.style&&t.nodeType||Jr(t)||$r(t))return zr(t)?uo(t,i,e,n,r):t;var a,o={};for(a in t)o[a]=uo(t[a],i,e,n,r);return o}(e[t],r,i,a,n),n,r,a)&&(n._pt=s=new ko(n._pt,i,t,0,1,o.render,o,0,o.priority),n!==Cr))for(u=n._ptLookup[n._targets.indexOf(i)],l=o._props.length;l--;)u[o._props[l]]=s;return o},oo=function t(e,n,r){var i,a,o,s,u,l,c,h,f,d,p,g,v,m=e.vars,y=m.ease,_=m.startAt,b=m.immediateRender,w=m.lazy,D=m.onUpdate,S=m.onUpdateParams,x=m.callbackScope,T=m.runBackwards,k=m.yoyoEase,C=m.keyframes,E=m.autoRevert,O=e._dur,M=e._startAt,A=e._targets,P=e.parent,B=P&&"nested"===P.data?P.vars.targets:A,R="auto"===e._overwrite&&!yr,N=e.timeline;if(N&&(!C||!y)&&(y="none"),e._ease=Ga(y,Rr.ease),e._yEase=k?Wa(Ga(!0===k?y:k,Rr.ease)):0,k&&e._yoyo&&!e._repeat&&(k=e._yEase,e._yEase=e._ease,e._ease=k),e._from=!N&&!!m.runBackwards,!N||C&&!m.stagger){if(g=(h=A[0]?Ti(A[0]).harness:0)&&m[h.prop],i=Yi(m,vi),M&&(M._zTime<0&&M.progress(1),n<0&&T&&b&&!E?M.render(-1,!0):M.revert(T&&O?pi:di),M._lazy=0),_){if(zi(e._startAt=ho.set(A,Vi({data:"isStart",overwrite:!1,parent:P,immediateRender:!0,lazy:!M&&Kr(w),startAt:null,delay:0,onUpdate:D,onUpdateParams:S,callbackScope:x,stagger:0},_))),e._startAt._dp=0,e._startAt._sat=e,n<0&&(_r||!b&&!E)&&e._startAt.revert(pi),b&&O&&n<=0&&r<=0)return void(n&&(e._zTime=n))}else if(T&&O&&!M)if(n&&(b=!1),o=Vi({overwrite:!1,data:"isFromStart",lazy:b&&!M&&Kr(w),immediateRender:b,stagger:0,parent:P},i),g&&(o[h.prop]=g),zi(e._startAt=ho.set(A,o)),e._startAt._dp=0,e._startAt._sat=e,n<0&&(_r?e._startAt.revert(pi):e._startAt.render(-1,!0)),e._zTime=n,b){if(!n)return}else t(e._startAt,Vr,Vr);for(e._pt=e._ptCache=0,w=O&&Kr(w)||w&&!O,a=0;a<A.length;a++){if(c=(u=A[a])._gsap||xi(A)[a]._gsap,e._ptLookup[a]=d={},yi[c.id]&&mi.length&&Pi(),p=B===A?a:B.indexOf(u),h&&!1!==(f=new h).init(u,g||i,e,p,B)&&(e._pt=s=new ko(e._pt,u,f.name,0,1,f.render,f,0,f.priority),f._props.forEach((function(t){d[t]=s})),f.priority&&(l=1)),!h||g)for(o in i)_i[o]&&(f=ao(o,i,e,p,u,B))?f.priority&&(l=1):d[o]=s=io.call(e,u,o,"get",i[o],p,B,0,m.stringFilter);e._op&&e._op[a]&&e.kill(u,e._op[a]),R&&e._pt&&(eo=e,wr.killTweensOf(u,d,e.globalTime(n)),v=!e.parent,eo=0),e._pt&&w&&(yi[c.id]=1)}l&&To(e),e._onInit&&e._onInit(e)}e._onUpdate=D,e._initted=(!e._op||e._pt)&&!v,C&&n<=0&&N.render(Nr,!0,!0)},so=function(t,e,n,r){var i,a,o=e.ease||r||"power1.inOut";if(Jr(e))a=n[t]||(n[t]=[]),e.forEach((function(t,n){return a.push({t:n/(e.length-1)*100,v:t,e:o})}));else for(i in e)a=n[i]||(n[i]=[]),"ease"===i||a.push({t:parseFloat(t),v:e[i],e:o})},uo=function(t,e,n,r,i){return Ur(t)?t.call(e,n,r,i):zr(t)&&~t.indexOf("random(")?Sa(t):t},lo=Si+"repeat,repeatDelay,yoyo,repeatRefresh,yoyoEase,autoRevert",co={};Ci(lo+",id,stagger,delay,duration,paused,scrollTrigger",(function(t){return co[t]=1}));var ho=function(t){function e(e,n,r,i){var a;"number"==typeof n&&(r.duration=n,n=r,r=null);var o,s,u,l,c,h,f,d,p=(a=t.call(this,i?n:Li(n))||this).vars,g=p.duration,v=p.delay,m=p.immediateRender,y=p.stagger,_=p.overwrite,b=p.keyframes,w=p.defaults,D=p.scrollTrigger,S=p.yoyoEase,x=n.parent||wr,T=(Jr(e)||$r(e)?Wr(e[0]):"length"in n)?[e]:ga(e);if(a._targets=T.length?xi(T):ci("GSAP target "+e+" not found. https://greensock.com",!Br.nullTargetWarn)||[],a._ptLookup=[],a._overwrite=_,b||y||Xr(g)||Xr(v)){if(n=a.vars,(o=a.timeline=new to({data:"nested",defaults:w||{},targets:x&&"nested"===x.data?x.vars.targets:T})).kill(),o.parent=o._dp=vr(a),o._start=0,y||Xr(g)||Xr(v)){if(l=T.length,f=y&&ya(y),Gr(y))for(c in y)~lo.indexOf(c)&&(d||(d={}),d[c]=y[c]);for(s=0;s<l;s++)(u=Yi(n,co)).stagger=0,S&&(u.yoyoEase=S),d&&Ii(u,d),h=T[s],u.duration=+uo(g,vr(a),s,h,T),u.delay=(+uo(v,vr(a),s,h,T)||0)-a._delay,!y&&1===l&&u.delay&&(a._delay=v=u.delay,a._start+=v,u.delay=0),o.to(h,u,f?f(s,h,T):0),o._ease=ja.none;o.duration()?g=v=0:a.timeline=0}else if(b){Li(Vi(o.vars.defaults,{ease:"none"})),o._ease=Ga(b.ease||n.ease||"none");var k,C,E,O=0;if(Jr(b))b.forEach((function(t){return o.to(T,t,">")})),o.duration();else{for(c in u={},b)"ease"===c||"easeEach"===c||so(c,b[c],u,b.easeEach);for(c in u)for(k=u[c].sort((function(t,e){return t.t-e.t})),O=0,s=0;s<k.length;s++)(E={ease:(C=k[s]).e,duration:(C.t-(s?k[s-1].t:0))/100*g})[c]=C.v,o.to(T,E,O),O+=E.duration;o.duration()<g&&o.to({},{duration:g-o.duration()})}}g||a.duration(g=o.duration())}else a.timeline=0;return!0!==_||yr||(eo=vr(a),wr.killTweensOf(T),eo=0),Qi(x,vr(a),r),n.reversed&&a.reverse(),n.paused&&a.paused(!0),(m||!g&&!b&&a._start===Oi(x._time)&&Kr(m)&&qi(vr(a))&&"nested"!==x.data)&&(a._tTime=-1e-8,a.render(Math.max(0,-v)||0)),D&&ta(vr(a),D),a}mr(e,t);var n=e.prototype;return n.render=function(t,e,n){var r,i,a,o,s,u,l,c,h,f=this._time,d=this._tDur,p=this._dur,g=t<0,v=t>d-Vr&&!g?d:t<Vr?0:t;if(p){if(v!==this._tTime||!t||n||!this._initted&&this._tTime||this._startAt&&this._zTime<0!==g){if(r=v,c=this.timeline,this._repeat){if(o=p+this._rDelay,this._repeat<-1&&g)return this.totalTime(100*o+t,e,n);if(r=Oi(v%o),v===d?(a=this._repeat,r=p):((a=~~(v/o))&&a===v/o&&(r=p,a--),r>p&&(r=p)),(u=this._yoyo&&1&a)&&(h=this._yEase,r=p-r),s=Ki(this._tTime,o),r===f&&!n&&this._initted)return this._tTime=v,this;a!==s&&(c&&this._yEase&&qa(c,u),!this.vars.repeatRefresh||u||this._lock||(this._lock=n=1,this.render(Oi(o*a),!0).invalidate()._lock=0))}if(!this._initted){if(ea(this,g?t:r,n,e,v))return this._tTime=0,this;if(f!==this._time)return this;if(p!==this._dur)return this.render(t,e,n)}if(this._tTime=v,this._time=r,!this._act&&this._ts&&(this._act=1,this._lazy=0),this.ratio=l=(h||this._ease)(r/p),this._from&&(this.ratio=l=1-l),r&&!f&&!e&&!a&&(ka(this,"onStart"),this._tTime!==v))return this;for(i=this._pt;i;)i.r(l,i.d),i=i._next;c&&c.render(t<0?t:!r&&u?-1e-8:c._dur*c._ease(r/this._dur),e,n)||this._startAt&&(this._zTime=t),this._onUpdate&&!e&&(g&&Wi(this,t,0,n),ka(this,"onUpdate")),this._repeat&&a!==s&&this.vars.onRepeat&&!e&&this.parent&&ka(this,"onRepeat"),v!==this._tDur&&v||this._tTime!==v||(g&&!this._onUpdate&&Wi(this,t,0,!0),(t||!p)&&(v===this._tDur&&this._ts>0||!v&&this._ts<0)&&zi(this,1),e||g&&!f||!(v||f||u)||(ka(this,v===d?"onComplete":"onReverseComplete",!0),this._prom&&!(v<d&&this.timeScale()>0)&&this._prom()))}}else!function(t,e,n,r){var i,a,o,s=t.ratio,u=e<0||!e&&(!t._start&&na(t)&&(t._initted||!ra(t))||(t._ts<0||t._dp._ts<0)&&!ra(t))?0:1,l=t._rDelay,c=0;if(l&&t._repeat&&(c=ca(0,t._tDur,e),a=Ki(c,l),t._yoyo&&1&a&&(u=1-u),a!==Ki(t._tTime,l)&&(s=1-u,t.vars.repeatRefresh&&t._initted&&t.invalidate())),u!==s||_r||r||t._zTime===Vr||!e&&t._zTime){if(!t._initted&&ea(t,e,r,n,c))return;for(o=t._zTime,t._zTime=e||(n?Vr:0),n||(n=e&&!o),t.ratio=u,t._from&&(u=1-u),t._time=0,t._tTime=c,i=t._pt;i;)i.r(u,i.d),i=i._next;e<0&&Wi(t,e,0,!0),t._onUpdate&&!n&&ka(t,"onUpdate"),c&&t._repeat&&!n&&t.parent&&ka(t,"onRepeat"),(e>=t._tDur||e<0)&&t.ratio===u&&(u&&zi(t,1),n||_r||(ka(t,u?"onComplete":"onReverseComplete",!0),t._prom&&t._prom()))}else t._zTime||(t._zTime=e)}(this,t,e,n);return this},n.targets=function(){return this._targets},n.invalidate=function(e){return(!e||!this.vars.runBackwards)&&(this._startAt=0),this._pt=this._op=this._onUpdate=this._lazy=this.ratio=0,this._ptLookup=[],this.timeline&&this.timeline.invalidate(e),t.prototype.invalidate.call(this,e)},n.resetTo=function(t,e,n,r){Er||Ya.wake(),this._ts||this.play();var i=Math.min(this._dur,(this._dp._time-this._start)*this._ts);return this._initted||oo(this,i),function(t,e,n,r,i,a,o){var s,u,l,c,h=(t._pt&&t._ptCache||(t._ptCache={}))[e];if(!h)for(h=t._ptCache[e]=[],l=t._ptLookup,c=t._targets.length;c--;){if((s=l[c][e])&&s.d&&s.d._pt)for(s=s.d._pt;s&&s.p!==e&&s.fp!==e;)s=s._next;if(!s)return no=1,t.vars[e]="+=0",oo(t,o),no=0,1;h.push(s)}for(c=h.length;c--;)(s=(u=h[c])._pt||u).s=!r&&0!==r||i?s.s+(r||0)+a*s.c:r,s.c=n-s.s,u.e&&(u.e=Ei(n)+ha(u.e)),u.b&&(u.b=s.s+ha(u.b))}(this,t,e,n,r,this._ease(i/this._dur),i)?this.resetTo(t,e,n,r):($i(this,0),this.parent||ji(this._dp,this,"_first","_last",this._dp._sort?"_start":0),this.render(0))},n.kill=function(t,e){if(void 0===e&&(e="all"),!(t||e&&"all"!==e))return this._lazy=this._pt=0,this.parent?Ca(this):this;if(this.timeline){var n=this.timeline.totalDuration();return this.timeline.killTweensOf(t,e,eo&&!0!==eo.vars.overwrite)._first||Ca(this),this.parent&&n!==this.timeline.totalDuration()&&ia(this,this._dur*this.timeline._tDur/n,0,1),this}var r,i,a,o,s,u,l,c=this._targets,h=t?ga(t):c,f=this._ptLookup,d=this._pt;if((!e||"all"===e)&&function(t,e){for(var n=t.length,r=n===e.length;r&&n--&&t[n]===e[n];);return n<0}(c,h))return"all"===e&&(this._pt=0),Ca(this);for(r=this._op=this._op||[],"all"!==e&&(zr(e)&&(s={},Ci(e,(function(t){return s[t]=1})),e=s),e=function(t,e){var n,r,i,a,o=t[0]?Ti(t[0]).harness:0,s=o&&o.aliases;if(!s)return e;for(r in n=Ii({},e),s)if(r in n)for(i=(a=s[r].split(",")).length;i--;)n[a[i]]=n[r];return n}(c,e)),l=c.length;l--;)if(~h.indexOf(c[l]))for(s in i=f[l],"all"===e?(r[l]=e,o=i,a={}):(a=r[l]=r[l]||{},o=e),o)(u=i&&i[s])&&("kill"in u.d&&!0!==u.d.kill(s)||Hi(this,u,"_pt"),delete i[s]),"all"!==a&&(a[s]=1);return this._initted&&!this._pt&&d&&Ca(this),this},e.to=function(t,n){return new e(t,n,arguments[2])},e.from=function(t,e){return ua(1,arguments)},e.delayedCall=function(t,n,r,i){return new e(n,0,{immediateRender:!1,lazy:!1,overwrite:!1,delay:t,onComplete:n,onReverseComplete:n,onCompleteParams:r,onReverseCompleteParams:r,callbackScope:i})},e.fromTo=function(t,e,n){return ua(2,arguments)},e.set=function(t,n){return n.duration=0,n.repeatDelay||(n.repeat=0),new e(t,n)},e.killTweensOf=function(t,e,n){return wr.killTweensOf(t,e,n)},e}(Qa);Vi(ho.prototype,{_targets:[],_lazy:0,_startAt:0,_op:0,_onInit:0}),Ci("staggerTo,staggerFrom,staggerFromTo",(function(t){ho[t]=function(){var e=new to,n=fa.call(arguments,0);return n.splice("staggerFromTo"===t?5:4,0,0),e[t].apply(e,n)}}));var fo=function(t,e,n){return t[e]=n},po=function(t,e,n){return t[e](n)},go=function(t,e,n,r){return t[e](r.fp,n)},vo=function(t,e,n){return t.setAttribute(e,n)},mo=function(t,e){return Ur(t[e])?po:qr(t[e])&&t.setAttribute?vo:fo},yo=function(t,e){return e.set(e.t,e.p,Math.round(1e6*(e.s+e.c*t))/1e6,e)},_o=function(t,e){return e.set(e.t,e.p,!!(e.s+e.c*t),e)},bo=function(t,e){var n=e._pt,r="";if(!t&&e.b)r=e.b;else if(1===t&&e.e)r=e.e;else{for(;n;)r=n.p+(n.m?n.m(n.s+n.c*t):Math.round(1e4*(n.s+n.c*t))/1e4)+r,n=n._next;r+=e.c}e.set(e.t,e.p,r,e)},wo=function(t,e){for(var n=e._pt;n;)n.r(t,n.d),n=n._next},Do=function(t,e,n,r){for(var i,a=this._pt;a;)i=a._next,a.p===r&&a.modifier(t,e,n),a=i},So=function(t){for(var e,n,r=this._pt;r;)n=r._next,r.p===t&&!r.op||r.op===t?Hi(this,r,"_pt"):r.dep||(e=1),r=n;return!e},xo=function(t,e,n,r){r.mSet(t,e,r.m.call(r.tween,n,r.mt),r)},To=function(t){for(var e,n,r,i,a=t._pt;a;){for(e=a._next,n=r;n&&n.pr>a.pr;)n=n._next;(a._prev=n?n._prev:i)?a._prev._next=a:r=a,(a._next=n)?n._prev=a:i=a,a=e}t._pt=r},ko=function(){function t(t,e,n,r,i,a,o,s,u){this.t=e,this.s=r,this.c=i,this.p=n,this.r=a||yo,this.d=o||this,this.set=s||fo,this.pr=u||0,this._next=t,t&&(t._prev=this)}return t.prototype.modifier=function(t,e,n){this.mSet=this.mSet||this.set,this.set=xo,this.m=t,this.mt=n,this.tween=e},t}();Ci(Si+"parent,duration,ease,delay,overwrite,runBackwards,startAt,yoyo,immediateRender,repeat,repeatDelay,data,paused,reversed,lazy,callbackScope,stringFilter,id,yoyoEase,stagger,inherit,repeatRefresh,keyframes,autoRevert,scrollTrigger",(function(t){return vi[t]=1})),oi.TweenMax=oi.TweenLite=ho,oi.TimelineLite=oi.TimelineMax=to,wr=new to({sortChildren:!1,defaults:Rr,autoRemoveChildren:!0,id:"root",smoothChildTiming:!0}),Br.stringFilter=Fa;var Co=[],Eo={},Oo=[],Mo=0,Ao=function(t){return(Eo[t]||Oo).map((function(t){return t()}))},Po=function(){var t=Date.now(),e=[];t-Mo>2&&(Ao("matchMediaInit"),Co.forEach((function(t){var n,r,i,a,o=t.queries,s=t.conditions;for(r in o)(n=Dr.matchMedia(o[r]).matches)&&(i=1),n!==s[r]&&(s[r]=n,a=1);a&&(t.revert(),i&&e.push(t))})),Ao("matchMediaRevert"),e.forEach((function(t){return t.onMatch(t)})),Mo=t,Ao("matchMedia"))},Bo=function(){function t(t,e){this.selector=e&&va(e),this.data=[],this._r=[],this.isReverted=!1,t&&this.add(t)}var e=t.prototype;return e.add=function(t,e,n){Ur(t)&&(n=e,e=t,t=Ur);var r=this,i=function(){var t,i=br,a=r.selector;return i&&i!==r&&i.data.push(r),n&&(r.selector=va(n)),br=r,t=e.apply(r,arguments),Ur(t)&&r._r.push(t),br=i,r.selector=a,r.isReverted=!1,t};return r.last=i,t===Ur?i(r):t?r[t]=i:i},e.ignore=function(t){var e=br;br=null,t(this),br=e},e.getTweens=function(){var e=[];return this.data.forEach((function(n){return n instanceof t?e.push.apply(e,n.getTweens()):n instanceof ho&&!(n.parent&&"nested"===n.parent.data)&&e.push(n)})),e},e.clear=function(){this._r.length=this.data.length=0},e.kill=function(t,e){var n=this;if(t){var r=this.getTweens();this.data.forEach((function(t){"isFlip"===t.data&&(t.revert(),t.getChildren(!0,!0,!1).forEach((function(t){return r.splice(r.indexOf(t),1)})))})),r.map((function(t){return{g:t.globalTime(0),t:t}})).sort((function(t,e){return e.g-t.g||-1})).forEach((function(e){return e.t.revert(t)})),this.data.forEach((function(e){return!(e instanceof Qa)&&e.revert&&e.revert(t)})),this._r.forEach((function(e){return e(t,n)})),this.isReverted=!0}else this.data.forEach((function(t){return t.kill&&t.kill()}));if(this.clear(),e){var i=Co.indexOf(this);~i&&Co.splice(i,1)}},e.revert=function(t){this.kill(t||{})},t}(),Ro=function(){function t(t){this.contexts=[],this.scope=t}var e=t.prototype;return e.add=function(t,e,n){Gr(t)||(t={matches:t});var r,i,a,o=new Bo(0,n||this.scope),s=o.conditions={};for(i in this.contexts.push(o),e=o.add("onMatch",e),o.queries=t,t)"all"===i?a=1:(r=Dr.matchMedia(t[i]))&&(Co.indexOf(o)<0&&Co.push(o),(s[i]=r.matches)&&(a=1),r.addListener?r.addListener(Po):r.addEventListener("change",Po));return a&&e(o),this},e.revert=function(t){this.kill(t||{})},e.kill=function(t){this.contexts.forEach((function(e){return e.kill(t,!0)}))},t}(),No={registerPlugin:function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];e.forEach((function(t){return Oa(t)}))},timeline:function(t){return new to(t)},getTweensOf:function(t,e){return wr.getTweensOf(t,e)},getProperty:function(t,e,n,r){zr(t)&&(t=ga(t)[0]);var i=Ti(t||{}).get,a=n?Ni:Ri;return"native"===n&&(n=""),t?e?a((_i[e]&&_i[e].get||i)(t,e,n,r)):function(e,n,r){return a((_i[e]&&_i[e].get||i)(t,e,n,r))}:t},quickSetter:function(t,e,n){if((t=ga(t)).length>1){var r=t.map((function(t){return Fo.quickSetter(t,e,n)})),i=r.length;return function(t){for(var e=i;e--;)r[e](t)}}t=t[0]||{};var a=_i[e],o=Ti(t),s=o.harness&&(o.harness.aliases||{})[e]||e,u=a?function(e){var r=new a;Cr._pt=0,r.init(t,n?e+n:e,Cr,0,[t]),r.render(1,r),Cr._pt&&wo(1,Cr)}:o.set(t,s);return a?u:function(e){return u(t,s,n?e+n:e,o,1)}},quickTo:function(t,e,n){var r,i=Fo.to(t,Ii(((r={})[e]="+=0.1",r.paused=!0,r),n||{})),a=function(t,n,r){return i.resetTo(e,t,n,r)};return a.tween=i,a},isTweening:function(t){return wr.getTweensOf(t,!0).length>0},defaults:function(t){return t&&t.ease&&(t.ease=Ga(t.ease,Rr.ease)),Fi(Rr,t||{})},config:function(t){return Fi(Br,t||{})},registerEffect:function(t){var e=t.name,n=t.effect,r=t.plugins,i=t.defaults,a=t.extendTimeline;(r||"").split(",").forEach((function(t){return t&&!_i[t]&&!oi[t]&&ci(e+" effect requires "+t+" plugin.")})),bi[e]=function(t,e,r){return n(ga(t),Vi(e||{},i),r)},a&&(to.prototype[e]=function(t,n,r){return this.add(bi[e](t,Gr(n)?n:(r=n)&&{},this),r)})},registerEase:function(t,e){ja[t]=Ga(e)},parseEase:function(t,e){return arguments.length?Ga(t,e):ja},getById:function(t){return wr.getById(t)},exportRoot:function(t,e){void 0===t&&(t={});var n,r,i=new to(t);for(i.smoothChildTiming=Kr(t.smoothChildTiming),wr.remove(i),i._dp=0,i._time=i._tTime=wr._time,n=wr._first;n;)r=n._next,!e&&!n._dur&&n instanceof ho&&n.vars.onComplete===n._targets[0]||Qi(i,n,n._start-n._delay),n=r;return Qi(wr,i,0),i},context:function(t,e){return t?new Bo(t,e):br},matchMedia:function(t){return new Ro(t)},matchMediaRefresh:function(){return Co.forEach((function(t){var e,n,r=t.conditions;for(n in r)r[n]&&(r[n]=!1,e=1);e&&t.revert()}))||Po()},addEventListener:function(t,e){var n=Eo[t]||(Eo[t]=[]);~n.indexOf(e)||n.push(e)},removeEventListener:function(t,e){var n=Eo[t],r=n&&n.indexOf(e);r>=0&&n.splice(r,1)},utils:{wrap:function t(e,n,r){var i=n-e;return Jr(e)?Da(e,t(0,e.length),n):la(r,(function(t){return(i+(t-e)%i)%i+e}))},wrapYoyo:function t(e,n,r){var i=n-e,a=2*i;return Jr(e)?Da(e,t(0,e.length-1),n):la(r,(function(t){return e+((t=(a+(t-e)%a)%a||0)>i?a-t:t)}))},distribute:ya,random:wa,snap:ba,normalize:function(t,e,n){return xa(t,e,0,1,n)},getUnit:ha,clamp:function(t,e,n){return la(n,(function(n){return ca(t,e,n)}))},splitColor:Ba,toArray:ga,selector:va,mapRange:xa,pipe:function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return function(t){return e.reduce((function(t,e){return e(t)}),t)}},unitize:function(t,e){return function(n){return t(parseFloat(n))+(e||ha(n))}},interpolate:function t(e,n,r,i){var a=isNaN(e+n)?0:function(t){return(1-t)*e+t*n};if(!a){var o,s,u,l,c,h=zr(e),f={};if(!0===r&&(i=1)&&(r=null),h)e={p:e},n={p:n};else if(Jr(e)&&!Jr(n)){for(u=[],l=e.length,c=l-2,s=1;s<l;s++)u.push(t(e[s-1],e[s]));l--,a=function(t){t*=l;var e=Math.min(c,~~t);return u[e](t-e)},r=n}else i||(e=Ii(Jr(e)?[]:{},e));if(!u){for(o in n)io.call(f,e,o,"get",n[o]);a=function(t){return wo(t,f)||(h?e.p:e)}}}return la(r,a)},shuffle:ma},install:ui,effects:bi,ticker:Ya,updateRoot:to.updateRoot,plugins:_i,globalTimeline:wr,core:{PropTween:ko,globals:hi,Tween:ho,Timeline:to,Animation:Qa,getCache:Ti,_removeLinkedListItem:Hi,reverting:function(){return _r},context:function(t){return t&&br&&(br.data.push(t),t._ctx=br),br},suppressOverwrites:function(t){return yr=t}}};Ci("to,from,fromTo,delayedCall,set,killTweensOf",(function(t){return No[t]=ho[t]})),Ya.add(to.updateRoot),Cr=No.to({},{duration:0});var Vo=function(t,e){for(var n=t._pt;n&&n.p!==e&&n.op!==e&&n.fp!==e;)n=n._next;return n},Io=function(t,e){return{name:t,rawVars:1,init:function(t,n,r){r._onInit=function(t){var r,i;if(zr(n)&&(r={},Ci(n,(function(t){return r[t]=1})),n=r),e){for(i in r={},n)r[i]=e(n[i]);n=r}!function(t,e){var n,r,i,a=t._targets;for(n in e)for(r=a.length;r--;)(i=t._ptLookup[r][n])&&(i=i.d)&&(i._pt&&(i=Vo(i,n)),i&&i.modifier&&i.modifier(e[n],t,a[r],n))}(t,n)}}}},Fo=No.registerPlugin({name:"attr",init:function(t,e,n,r,i){var a,o,s;for(a in this.tween=n,e)s=t.getAttribute(a)||"",(o=this.add(t,"setAttribute",(s||0)+"",e[a],r,i,0,0,a)).op=a,o.b=s,this._props.push(a)},render:function(t,e){for(var n=e._pt;n;)_r?n.set(n.t,n.p,n.b,n):n.r(t,n.d),n=n._next}},{name:"endArray",init:function(t,e){for(var n=e.length;n--;)this.add(t,n,t[n]||0,e[n],0,0,0,0,0,1)}},Io("roundProps",_a),Io("modifiers"),Io("snap",ba))||No;ho.version=to.version=Fo.version="3.11.5",Tr=1,Zr()&&La(),ja.Power0,ja.Power1,ja.Power2,ja.Power3,ja.Power4,ja.Linear,ja.Quad,ja.Cubic,ja.Quart,ja.Quint,ja.Strong,ja.Elastic,ja.Back,ja.SteppedEase,ja.Bounce,ja.Sine,ja.Expo,ja.Circ;
|
|
41
|
+
*/var _r,br,wr,Dr,Sr,xr,Tr,kr,Cr,Er,Mr,Or,Ar,Pr,Br,Rr={autoSleep:120,force3D:"auto",nullTargetWarn:1,units:{lineHeight:""}},Vr={duration:.5,overwrite:!1,delay:0},Nr=1e8,Ir=1e-8,Fr=2*Math.PI,Yr=Fr/4,Lr=0,jr=Math.sqrt,Hr=Math.cos,zr=Math.sin,Ur=function(t){return"string"==typeof t},Wr=function(t){return"function"==typeof t},qr=function(t){return"number"==typeof t},Gr=function(t){return void 0===t},Kr=function(t){return"object"==typeof t},Zr=function(t){return!1!==t},Xr=function(){return"undefined"!=typeof window},$r=function(t){return Wr(t)||Ur(t)},Jr="function"==typeof ArrayBuffer&&ArrayBuffer.isView||function(){},Qr=Array.isArray,ti=/(?:-?\.?\d|\.)+/gi,ei=/[-+=.]*\d+[.e\-+]*\d*[e\-+]*\d*/g,ni=/[-+=.]*\d+[.e-]*\d*[a-z%]*/g,ri=/[-+=.]*\d+\.?\d*(?:e-|e\+)?\d*/gi,ii=/[+-]=-?[.\d]+/,ai=/[^,'"\[\]\s]+/gi,oi=/^[+\-=e\s\d]*\d+[.\d]*([a-z]*|%)\s*$/i,si={},ui={},li=function(t){return(ui=Fi(t,si))&&Yo},ci=function(t,e){return console.warn("Invalid property",t,"set to",e,"Missing plugin? gsap.registerPlugin()")},hi=function(t,e){return!e&&console.warn(t)},fi=function(t,e){return t&&(si[t]=e)&&ui&&(ui[t]=e)||si},di=function(){return 0},pi={suppressEvents:!0,isStart:!0,kill:!1},gi={suppressEvents:!0,kill:!1},mi={suppressEvents:!0},vi={},yi=[],_i={},bi={},wi={},Di=30,Si=[],xi="",Ti=function(t){var e,n,r=t[0];if(Kr(r)||Wr(r)||(t=[t]),!(e=(r._gsap||{}).harness)){for(n=Si.length;n--&&!Si[n].targetTest(r););e=Si[n]}for(n=t.length;n--;)t[n]&&(t[n]._gsap||(t[n]._gsap=new Qa(t[n],e)))||t.splice(n,1);return t},ki=function(t){return t._gsap||Ti(ma(t))[0]._gsap},Ci=function(t,e,n){return(n=t[e])&&Wr(n)?t[e]():Gr(n)&&t.getAttribute&&t.getAttribute(e)||n},Ei=function(t,e){return(t=t.split(",")).forEach(e)||t},Mi=function(t){return Math.round(1e5*t)/1e5||0},Oi=function(t){return Math.round(1e7*t)/1e7||0},Ai=function(t,e){var n=e.charAt(0),r=parseFloat(e.substr(2));return t=parseFloat(t),"+"===n?t+r:"-"===n?t-r:"*"===n?t*r:t/r},Pi=function(t,e){for(var n=e.length,r=0;t.indexOf(e[r])<0&&++r<n;);return r<n},Bi=function(){var t,e,n=yi.length,r=yi.slice(0);for(_i={},yi.length=0,t=0;t<n;t++)(e=r[t])&&e._lazy&&(e.render(e._lazy[0],e._lazy[1],!0)._lazy=0)},Ri=function(t,e,n,r){yi.length&&!br&&Bi(),t.render(e,n,r||br&&e<0&&(t._initted||t._startAt)),yi.length&&!br&&Bi()},Vi=function(t){var e=parseFloat(t);return(e||0===e)&&(t+"").match(ai).length<2?e:Ur(t)?t.trim():t},Ni=function(t){return t},Ii=function(t,e){for(var n in e)n in t||(t[n]=e[n]);return t},Fi=function(t,e){for(var n in e)t[n]=e[n];return t},Yi=function t(e,n){for(var r in n)"__proto__"!==r&&"constructor"!==r&&"prototype"!==r&&(e[r]=Kr(n[r])?t(e[r]||(e[r]={}),n[r]):n[r]);return e},Li=function(t,e){var n,r={};for(n in t)n in e||(r[n]=t[n]);return r},ji=function(t){var e,n=t.parent||Dr,r=t.keyframes?(e=Qr(t.keyframes),function(t,n){for(var r in n)r in t||"duration"===r&&e||"ease"===r||(t[r]=n[r])}):Ii;if(Zr(t.inherit))for(;n;)r(t,n.vars.defaults),n=n.parent||n._dp;return t},Hi=function(t,e,n,r,i){void 0===n&&(n="_first"),void 0===r&&(r="_last");var a,o=t[r];if(i)for(a=e[i];o&&o[i]>a;)o=o._prev;return o?(e._next=o._next,o._next=e):(e._next=t[n],t[n]=e),e._next?e._next._prev=e:t[r]=e,e._prev=o,e.parent=e._dp=t,e},zi=function(t,e,n,r){void 0===n&&(n="_first"),void 0===r&&(r="_last");var i=e._prev,a=e._next;i?i._next=a:t[n]===e&&(t[n]=a),a?a._prev=i:t[r]===e&&(t[r]=i),e._next=e._prev=e.parent=null},Ui=function(t,e){t.parent&&(!e||t.parent.autoRemoveChildren)&&t.parent.remove(t),t._act=0},Wi=function(t,e){if(t&&(!e||e._end>t._dur||e._start<0))for(var n=t;n;)n._dirty=1,n=n.parent;return t},qi=function(t,e,n,r){return t._startAt&&(br?t._startAt.revert(gi):t.vars.immediateRender&&!t.vars.autoRevert||t._startAt.render(e,!0,r))},Gi=function t(e){return!e||e._ts&&t(e.parent)},Ki=function(t){return t._repeat?Zi(t._tTime,t=t.duration()+t._rDelay)*t:0},Zi=function(t,e){var n=Math.floor(t/=e);return t&&n===t?n-1:n},Xi=function(t,e){return(t-e._start)*e._ts+(e._ts>=0?0:e._dirty?e.totalDuration():e._tDur)},$i=function(t){return t._end=Oi(t._start+(t._tDur/Math.abs(t._ts||t._rts||Ir)||0))},Ji=function(t,e){var n=t._dp;return n&&n.smoothChildTiming&&t._ts&&(t._start=Oi(n._time-(t._ts>0?e/t._ts:((t._dirty?t.totalDuration():t._tDur)-e)/-t._ts)),$i(t),n._dirty||Wi(n,t)),t},Qi=function(t,e){var n;if((e._time||e._initted&&!e._dur)&&(n=Xi(t.rawTime(),e),(!e._dur||ha(0,e.totalDuration(),n)-e._tTime>Ir)&&e.render(n,!0)),Wi(t,e)._dp&&t._initted&&t._time>=t._dur&&t._ts){if(t._dur<t.duration())for(n=t;n._dp;)n.rawTime()>=0&&n.totalTime(n._tTime),n=n._dp;t._zTime=-1e-8}},ta=function(t,e,n,r){return e.parent&&Ui(e),e._start=Oi((qr(n)?n:n||t!==Dr?ua(t,n,e):t._time)+e._delay),e._end=Oi(e._start+(e.totalDuration()/Math.abs(e.timeScale())||0)),Hi(t,e,"_first","_last",t._sort?"_start":0),ia(e)||(t._recent=e),r||Qi(t,e),t._ts<0&&Ji(t,t._tTime),t},ea=function(t,e){return(si.ScrollTrigger||ci("scrollTrigger",e))&&si.ScrollTrigger.create(e,t)},na=function(t,e,n,r,i){return so(t,e,i),t._initted?!n&&t._pt&&!br&&(t._dur&&!1!==t.vars.lazy||!t._dur&&t.vars.lazy)&&Cr!==La.frame?(yi.push(t),t._lazy=[i,r],1):void 0:1},ra=function t(e){var n=e.parent;return n&&n._ts&&n._initted&&!n._lock&&(n.rawTime()<0||t(n))},ia=function(t){var e=t.data;return"isFromStart"===e||"isStart"===e},aa=function(t,e,n,r){var i=t._repeat,a=Oi(e)||0,o=t._tTime/t._tDur;return o&&!r&&(t._time*=a/t._dur),t._dur=a,t._tDur=i?i<0?1e10:Oi(a*(i+1)+t._rDelay*i):a,o>0&&!r&&Ji(t,t._tTime=t._tDur*o),t.parent&&$i(t),n||Wi(t.parent,t),t},oa=function(t){return t instanceof eo?Wi(t):aa(t,t._dur)},sa={_start:0,endTime:di,totalDuration:di},ua=function t(e,n,r){var i,a,o,s=e.labels,u=e._recent||sa,l=e.duration()>=Nr?u.endTime(!1):e._dur;return Ur(n)&&(isNaN(n)||n in s)?(a=n.charAt(0),o="%"===n.substr(-1),i=n.indexOf("="),"<"===a||">"===a?(i>=0&&(n=n.replace(/=/,"")),("<"===a?u._start:u.endTime(u._repeat>=0))+(parseFloat(n.substr(1))||0)*(o?(i<0?u:r).totalDuration()/100:1)):i<0?(n in s||(s[n]=l),s[n]):(a=parseFloat(n.charAt(i-1)+n.substr(i+1)),o&&r&&(a=a/100*(Qr(r)?r[0]:r).totalDuration()),i>1?t(e,n.substr(0,i-1),r)+a:l+a)):null==n?l:+n},la=function(t,e,n){var r,i,a=qr(e[1]),o=(a?2:1)+(t<2?0:1),s=e[o];if(a&&(s.duration=e[1]),s.parent=n,t){for(r=s,i=n;i&&!("immediateRender"in r);)r=i.vars.defaults||{},i=Zr(i.vars.inherit)&&i.parent;s.immediateRender=Zr(r.immediateRender),t<2?s.runBackwards=1:s.startAt=e[o-1]}return new fo(e[0],s,e[o+1])},ca=function(t,e){return t||0===t?e(t):e},ha=function(t,e,n){return n<t?t:n>e?e:n},fa=function(t,e){return Ur(t)&&(e=oi.exec(t))?e[1]:""},da=[].slice,pa=function(t,e){return t&&Kr(t)&&"length"in t&&(!e&&!t.length||t.length-1 in t&&Kr(t[0]))&&!t.nodeType&&t!==Sr},ga=function(t,e,n){return void 0===n&&(n=[]),t.forEach((function(t){var r;return Ur(t)&&!e||pa(t,1)?(r=n).push.apply(r,ma(t)):n.push(t)}))||n},ma=function(t,e,n){return wr&&!e&&wr.selector?wr.selector(t):!Ur(t)||n||!xr&&ja()?Qr(t)?ga(t,n):pa(t)?da.call(t,0):t?[t]:[]:da.call((e||Tr).querySelectorAll(t),0)},va=function(t){return t=ma(t)[0]||hi("Invalid scope")||{},function(e){var n=t.current||t.nativeElement||t;return ma(e,n.querySelectorAll?n:n===t?hi("Invalid scope")||Tr.createElement("div"):t)}},ya=function(t){return t.sort((function(){return.5-Math.random()}))},_a=function(t){if(Wr(t))return t;var e=Kr(t)?t:{each:t},n=Ka(e.ease),r=e.from||0,i=parseFloat(e.base)||0,a={},o=r>0&&r<1,s=isNaN(r)||o,u=e.axis,l=r,c=r;return Ur(r)?l=c={center:.5,edges:.5,end:1}[r]||0:!o&&s&&(l=r[0],c=r[1]),function(t,o,h){var f,d,p,g,m,v,y,_,b,w=(h||e).length,D=a[w];if(!D){if(!(b="auto"===e.grid?0:(e.grid||[1,Nr])[1])){for(y=-1e8;y<(y=h[b++].getBoundingClientRect().left)&&b<w;);b--}for(D=a[w]=[],f=s?Math.min(b,w)*l-.5:r%b,d=b===Nr?0:s?w*c/b-.5:r/b|0,y=0,_=Nr,v=0;v<w;v++)p=v%b-f,g=d-(v/b|0),D[v]=m=u?Math.abs("y"===u?g:p):jr(p*p+g*g),m>y&&(y=m),m<_&&(_=m);"random"===r&&ya(D),D.max=y-_,D.min=_,D.v=w=(parseFloat(e.amount)||parseFloat(e.each)*(b>w?w-1:u?"y"===u?w/b:b:Math.max(b,w/b))||0)*("edges"===r?-1:1),D.b=w<0?i-w:i,D.u=fa(e.amount||e.each)||0,n=n&&w<0?qa(n):n}return w=(D[t]-D.min)/D.max||0,Oi(D.b+(n?n(w):w)*D.v)+D.u}},ba=function(t){var e=Math.pow(10,((t+"").split(".")[1]||"").length);return function(n){var r=Oi(Math.round(parseFloat(n)/t)*t*e);return(r-r%1)/e+(qr(n)?0:fa(n))}},wa=function(t,e){var n,r,i=Qr(t);return!i&&Kr(t)&&(n=i=t.radius||Nr,t.values?(t=ma(t.values),(r=!qr(t[0]))&&(n*=n)):t=ba(t.increment)),ca(e,i?Wr(t)?function(e){return r=t(e),Math.abs(r-e)<=n?r:e}:function(e){for(var i,a,o=parseFloat(r?e.x:e),s=parseFloat(r?e.y:0),u=Nr,l=0,c=t.length;c--;)(i=r?(i=t[c].x-o)*i+(a=t[c].y-s)*a:Math.abs(t[c]-o))<u&&(u=i,l=c);return l=!n||u<=n?t[l]:e,r||l===e||qr(e)?l:l+fa(e)}:ba(t))},Da=function(t,e,n,r){return ca(Qr(t)?!e:!0===n?!!(n=0):!r,(function(){return Qr(t)?t[~~(Math.random()*t.length)]:(n=n||1e-5)&&(r=n<1?Math.pow(10,(n+"").length-2):1)&&Math.floor(Math.round((t-n/2+Math.random()*(e-t+.99*n))/n)*n*r)/r}))},Sa=function(t,e,n){return ca(n,(function(n){return t[~~e(n)]}))},xa=function(t){for(var e,n,r,i,a=0,o="";~(e=t.indexOf("random(",a));)r=t.indexOf(")",e),i="["===t.charAt(e+7),n=t.substr(e+7,r-e-7).match(i?ai:ti),o+=t.substr(a,e-a)+Da(i?n:+n[0],i?0:+n[1],+n[2]||1e-5),a=r+1;return o+t.substr(a,t.length-a)},Ta=function(t,e,n,r,i){var a=e-t,o=r-n;return ca(i,(function(e){return n+((e-t)/a*o||0)}))},ka=function(t,e,n){var r,i,a,o=t.labels,s=Nr;for(r in o)(i=o[r]-e)<0==!!n&&i&&s>(i=Math.abs(i))&&(a=r,s=i);return a},Ca=function(t,e,n){var r,i,a,o=t.vars,s=o[e],u=wr,l=t._ctx;if(s)return r=o[e+"Params"],i=o.callbackScope||t,n&&yi.length&&Bi(),l&&(wr=l),a=r?s.apply(i,r):s.call(i),wr=u,a},Ea=function(t){return Ui(t),t.scrollTrigger&&t.scrollTrigger.kill(!!br),t.progress()<1&&Ca(t,"onInterrupt"),t},Ma=[],Oa=function(t){if(Xr()){var e=(t=!t.name&&t.default||t).name,n=Wr(t),r=e&&!n&&t.init?function(){this._props=[]}:t,i={init:di,render:Do,add:ao,kill:xo,modifier:So,rawVars:0},a={targetTest:0,get:0,getSetter:yo,aliases:{},register:0};if(ja(),t!==r){if(bi[e])return;Ii(r,Ii(Li(t,i),a)),Fi(r.prototype,Fi(i,Li(t,a))),bi[r.prop=e]=r,t.targetTest&&(Si.push(r),vi[e]=1),e=("css"===e?"CSS":e.charAt(0).toUpperCase()+e.substr(1))+"Plugin"}fi(e,r),t.register&&t.register(Yo,r,Co)}else Ma.push(t)},Aa=255,Pa={aqua:[0,Aa,Aa],lime:[0,Aa,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,Aa],navy:[0,0,128],white:[Aa,Aa,Aa],olive:[128,128,0],yellow:[Aa,Aa,0],orange:[Aa,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[Aa,0,0],pink:[Aa,192,203],cyan:[0,Aa,Aa],transparent:[Aa,Aa,Aa,0]},Ba=function(t,e,n){return(6*(t+=t<0?1:t>1?-1:0)<1?e+(n-e)*t*6:t<.5?n:3*t<2?e+(n-e)*(2/3-t)*6:e)*Aa+.5|0},Ra=function(t,e,n){var r,i,a,o,s,u,l,c,h,f,d=t?qr(t)?[t>>16,t>>8&Aa,t&Aa]:0:Pa.black;if(!d){if(","===t.substr(-1)&&(t=t.substr(0,t.length-1)),Pa[t])d=Pa[t];else if("#"===t.charAt(0)){if(t.length<6&&(r=t.charAt(1),i=t.charAt(2),a=t.charAt(3),t="#"+r+r+i+i+a+a+(5===t.length?t.charAt(4)+t.charAt(4):"")),9===t.length)return[(d=parseInt(t.substr(1,6),16))>>16,d>>8&Aa,d&Aa,parseInt(t.substr(7),16)/255];d=[(t=parseInt(t.substr(1),16))>>16,t>>8&Aa,t&Aa]}else if("hsl"===t.substr(0,3))if(d=f=t.match(ti),e){if(~t.indexOf("="))return d=t.match(ei),n&&d.length<4&&(d[3]=1),d}else o=+d[0]%360/360,s=+d[1]/100,r=2*(u=+d[2]/100)-(i=u<=.5?u*(s+1):u+s-u*s),d.length>3&&(d[3]*=1),d[0]=Ba(o+1/3,r,i),d[1]=Ba(o,r,i),d[2]=Ba(o-1/3,r,i);else d=t.match(ti)||Pa.transparent;d=d.map(Number)}return e&&!f&&(r=d[0]/Aa,i=d[1]/Aa,a=d[2]/Aa,u=((l=Math.max(r,i,a))+(c=Math.min(r,i,a)))/2,l===c?o=s=0:(h=l-c,s=u>.5?h/(2-l-c):h/(l+c),o=l===r?(i-a)/h+(i<a?6:0):l===i?(a-r)/h+2:(r-i)/h+4,o*=60),d[0]=~~(o+.5),d[1]=~~(100*s+.5),d[2]=~~(100*u+.5)),n&&d.length<4&&(d[3]=1),d},Va=function(t){var e=[],n=[],r=-1;return t.split(Ia).forEach((function(t){var i=t.match(ni)||[];e.push.apply(e,i),n.push(r+=i.length+1)})),e.c=n,e},Na=function(t,e,n){var r,i,a,o,s="",u=(t+s).match(Ia),l=e?"hsla(":"rgba(",c=0;if(!u)return t;if(u=u.map((function(t){return(t=Ra(t,e,1))&&l+(e?t[0]+","+t[1]+"%,"+t[2]+"%,"+t[3]:t.join(","))+")"})),n&&(a=Va(t),(r=n.c).join(s)!==a.c.join(s)))for(o=(i=t.replace(Ia,"1").split(ni)).length-1;c<o;c++)s+=i[c]+(~r.indexOf(c)?u.shift()||l+"0,0,0,0)":(a.length?a:u.length?u:n).shift());if(!i)for(o=(i=t.split(Ia)).length-1;c<o;c++)s+=i[c]+u[c];return s+i[o]},Ia=function(){var t,e="(?:\\b(?:(?:rgb|rgba|hsl|hsla)\\(.+?\\))|\\B#(?:[0-9a-f]{3,4}){1,2}\\b";for(t in Pa)e+="|"+t+"\\b";return new RegExp(e+")","gi")}(),Fa=/hsl[a]?\(/,Ya=function(t){var e,n=t.join(" ");if(Ia.lastIndex=0,Ia.test(n))return e=Fa.test(n),t[1]=Na(t[1],e),t[0]=Na(t[0],e,Va(t[1])),!0},La=function(){var t,e,n,r,i,a,o=Date.now,s=500,u=33,l=o(),c=l,h=1e3/240,f=h,d=[],p=function n(p){var g,m,v,y,_=o()-c,b=!0===p;if(_>s&&(l+=_-u),((g=(v=(c+=_)-l)-f)>0||b)&&(y=++r.frame,i=v-1e3*r.time,r.time=v/=1e3,f+=g+(g>=h?4:h-g),m=1),b||(t=e(n)),m)for(a=0;a<d.length;a++)d[a](v,i,y,p)};return r={time:0,frame:0,tick:function(){p(!0)},deltaRatio:function(t){return i/(1e3/(t||60))},wake:function(){kr&&(!xr&&Xr()&&(Sr=xr=window,Tr=Sr.document||{},si.gsap=Yo,(Sr.gsapVersions||(Sr.gsapVersions=[])).push(Yo.version),li(ui||Sr.GreenSockGlobals||!Sr.gsap&&Sr||{}),n=Sr.requestAnimationFrame,Ma.forEach(Oa)),t&&r.sleep(),e=n||function(t){return setTimeout(t,f-1e3*r.time+1|0)},Mr=1,p(2))},sleep:function(){(n?Sr.cancelAnimationFrame:clearTimeout)(t),Mr=0,e=di},lagSmoothing:function(t,e){s=t||1/0,u=Math.min(e||33,s)},fps:function(t){h=1e3/(t||240),f=1e3*r.time+h},add:function(t,e,n){var i=e?function(e,n,a,o){t(e,n,a,o),r.remove(i)}:t;return r.remove(t),d[n?"unshift":"push"](i),ja(),i},remove:function(t,e){~(e=d.indexOf(t))&&d.splice(e,1)&&a>=e&&a--},_listeners:d},r}(),ja=function(){return!Mr&&La.wake()},Ha={},za=/^[\d.\-M][\d.\-,\s]/,Ua=/["']/g,Wa=function(t){for(var e,n,r,i={},a=t.substr(1,t.length-3).split(":"),o=a[0],s=1,u=a.length;s<u;s++)n=a[s],e=s!==u-1?n.lastIndexOf(","):n.length,r=n.substr(0,e),i[o]=isNaN(r)?r.replace(Ua,"").trim():+r,o=n.substr(e+1).trim();return i},qa=function(t){return function(e){return 1-t(1-e)}},Ga=function t(e,n){for(var r,i=e._first;i;)i instanceof eo?t(i,n):!i.vars.yoyoEase||i._yoyo&&i._repeat||i._yoyo===n||(i.timeline?t(i.timeline,n):(r=i._ease,i._ease=i._yEase,i._yEase=r,i._yoyo=n)),i=i._next},Ka=function(t,e){return t&&(Wr(t)?t:Ha[t]||function(t){var e=(t+"").split("("),n=Ha[e[0]];return n&&e.length>1&&n.config?n.config.apply(null,~t.indexOf("{")?[Wa(e[1])]:function(t){var e=t.indexOf("(")+1,n=t.indexOf(")"),r=t.indexOf("(",e);return t.substring(e,~r&&r<n?t.indexOf(")",n+1):n)}(t).split(",").map(Vi)):Ha._CE&&za.test(t)?Ha._CE("",t):n}(t))||e},Za=function(t,e,n,r){void 0===n&&(n=function(t){return 1-e(1-t)}),void 0===r&&(r=function(t){return t<.5?e(2*t)/2:1-e(2*(1-t))/2});var i,a={easeIn:e,easeOut:n,easeInOut:r};return Ei(t,(function(t){for(var e in Ha[t]=si[t]=a,Ha[i=t.toLowerCase()]=n,a)Ha[i+("easeIn"===e?".in":"easeOut"===e?".out":".inOut")]=Ha[t+"."+e]=a[e]})),a},Xa=function(t){return function(e){return e<.5?(1-t(1-2*e))/2:.5+t(2*(e-.5))/2}},$a=function t(e,n,r){var i=n>=1?n:1,a=(r||(e?.3:.45))/(n<1?n:1),o=a/Fr*(Math.asin(1/i)||0),s=function(t){return 1===t?1:i*Math.pow(2,-10*t)*zr((t-o)*a)+1},u="out"===e?s:"in"===e?function(t){return 1-s(1-t)}:Xa(s);return a=Fr/a,u.config=function(n,r){return t(e,n,r)},u},Ja=function t(e,n){void 0===n&&(n=1.70158);var r=function(t){return t?--t*t*((n+1)*t+n)+1:0},i="out"===e?r:"in"===e?function(t){return 1-r(1-t)}:Xa(r);return i.config=function(n){return t(e,n)},i};Ei("Linear,Quad,Cubic,Quart,Quint,Strong",(function(t,e){var n=e<5?e+1:e;Za(t+",Power"+(n-1),e?function(t){return Math.pow(t,n)}:function(t){return t},(function(t){return 1-Math.pow(1-t,n)}),(function(t){return t<.5?Math.pow(2*t,n)/2:1-Math.pow(2*(1-t),n)/2}))})),Ha.Linear.easeNone=Ha.none=Ha.Linear.easeIn,Za("Elastic",$a("in"),$a("out"),$a()),Or=7.5625,Pr=1/(Ar=2.75),Za("Bounce",(function(t){return 1-Br(1-t)}),Br=function(t){return t<Pr?Or*t*t:t<.7272727272727273?Or*Math.pow(t-1.5/Ar,2)+.75:t<.9090909090909092?Or*(t-=2.25/Ar)*t+.9375:Or*Math.pow(t-2.625/Ar,2)+.984375}),Za("Expo",(function(t){return t?Math.pow(2,10*(t-1)):0})),Za("Circ",(function(t){return-(jr(1-t*t)-1)})),Za("Sine",(function(t){return 1===t?1:1-Hr(t*Yr)})),Za("Back",Ja("in"),Ja("out"),Ja()),Ha.SteppedEase=Ha.steps=si.SteppedEase={config:function(t,e){void 0===t&&(t=1);var n=1/t,r=t+(e?0:1),i=e?1:0;return function(t){return((r*ha(0,.99999999,t)|0)+i)*n}}},Vr.ease=Ha["quad.out"],Ei("onComplete,onUpdate,onStart,onRepeat,onReverseComplete,onInterrupt",(function(t){return xi+=t+","+t+"Params,"}));var Qa=function(t,e){this.id=Lr++,t._gsap=this,this.target=t,this.harness=e,this.get=e?e.get:Ci,this.set=e?e.getSetter:yo},to=function(){function t(t){this.vars=t,this._delay=+t.delay||0,(this._repeat=t.repeat===1/0?-2:t.repeat||0)&&(this._rDelay=t.repeatDelay||0,this._yoyo=!!t.yoyo||!!t.yoyoEase),this._ts=1,aa(this,+t.duration,1,1),this.data=t.data,wr&&(this._ctx=wr,wr.data.push(this)),Mr||La.wake()}var e=t.prototype;return e.delay=function(t){return t||0===t?(this.parent&&this.parent.smoothChildTiming&&this.startTime(this._start+t-this._delay),this._delay=t,this):this._delay},e.duration=function(t){return arguments.length?this.totalDuration(this._repeat>0?t+(t+this._rDelay)*this._repeat:t):this.totalDuration()&&this._dur},e.totalDuration=function(t){return arguments.length?(this._dirty=0,aa(this,this._repeat<0?t:(t-this._repeat*this._rDelay)/(this._repeat+1))):this._tDur},e.totalTime=function(t,e){if(ja(),!arguments.length)return this._tTime;var n=this._dp;if(n&&n.smoothChildTiming&&this._ts){for(Ji(this,t),!n._dp||n.parent||Qi(n,this);n&&n.parent;)n.parent._time!==n._start+(n._ts>=0?n._tTime/n._ts:(n.totalDuration()-n._tTime)/-n._ts)&&n.totalTime(n._tTime,!0),n=n.parent;!this.parent&&this._dp.autoRemoveChildren&&(this._ts>0&&t<this._tDur||this._ts<0&&t>0||!this._tDur&&!t)&&ta(this._dp,this,this._start-this._delay)}return(this._tTime!==t||!this._dur&&!e||this._initted&&Math.abs(this._zTime)===Ir||!t&&!this._initted&&(this.add||this._ptLookup))&&(this._ts||(this._pTime=t),Ri(this,t,e)),this},e.time=function(t,e){return arguments.length?this.totalTime(Math.min(this.totalDuration(),t+Ki(this))%(this._dur+this._rDelay)||(t?this._dur:0),e):this._time},e.totalProgress=function(t,e){return arguments.length?this.totalTime(this.totalDuration()*t,e):this.totalDuration()?Math.min(1,this._tTime/this._tDur):this.ratio},e.progress=function(t,e){return arguments.length?this.totalTime(this.duration()*(!this._yoyo||1&this.iteration()?t:1-t)+Ki(this),e):this.duration()?Math.min(1,this._time/this._dur):this.ratio},e.iteration=function(t,e){var n=this.duration()+this._rDelay;return arguments.length?this.totalTime(this._time+(t-1)*n,e):this._repeat?Zi(this._tTime,n)+1:1},e.timeScale=function(t){if(!arguments.length)return-1e-8===this._rts?0:this._rts;if(this._rts===t)return this;var e=this.parent&&this._ts?Xi(this.parent._time,this):this._tTime;return this._rts=+t||0,this._ts=this._ps||-1e-8===t?0:this._rts,this.totalTime(ha(-Math.abs(this._delay),this._tDur,e),!0),$i(this),function(t){for(var e=t.parent;e&&e.parent;)e._dirty=1,e.totalDuration(),e=e.parent;return t}(this)},e.paused=function(t){return arguments.length?(this._ps!==t&&(this._ps=t,t?(this._pTime=this._tTime||Math.max(-this._delay,this.rawTime()),this._ts=this._act=0):(ja(),this._ts=this._rts,this.totalTime(this.parent&&!this.parent.smoothChildTiming?this.rawTime():this._tTime||this._pTime,1===this.progress()&&Math.abs(this._zTime)!==Ir&&(this._tTime-=Ir)))),this):this._ps},e.startTime=function(t){if(arguments.length){this._start=t;var e=this.parent||this._dp;return e&&(e._sort||!this.parent)&&ta(e,this,t-this._delay),this}return this._start},e.endTime=function(t){return this._start+(Zr(t)?this.totalDuration():this.duration())/Math.abs(this._ts||1)},e.rawTime=function(t){var e=this.parent||this._dp;return e?t&&(!this._ts||this._repeat&&this._time&&this.totalProgress()<1)?this._tTime%(this._dur+this._rDelay):this._ts?Xi(e.rawTime(t),this):this._tTime:this._tTime},e.revert=function(t){void 0===t&&(t=mi);var e=br;return br=t,(this._initted||this._startAt)&&(this.timeline&&this.timeline.revert(t),this.totalTime(-.01,t.suppressEvents)),"nested"!==this.data&&!1!==t.kill&&this.kill(),br=e,this},e.globalTime=function(t){for(var e=this,n=arguments.length?t:e.rawTime();e;)n=e._start+n/(e._ts||1),e=e._dp;return!this.parent&&this._sat?this._sat.vars.immediateRender?-1:this._sat.globalTime(t):n},e.repeat=function(t){return arguments.length?(this._repeat=t===1/0?-2:t,oa(this)):-2===this._repeat?1/0:this._repeat},e.repeatDelay=function(t){if(arguments.length){var e=this._time;return this._rDelay=t,oa(this),e?this.time(e):this}return this._rDelay},e.yoyo=function(t){return arguments.length?(this._yoyo=t,this):this._yoyo},e.seek=function(t,e){return this.totalTime(ua(this,t),Zr(e))},e.restart=function(t,e){return this.play().totalTime(t?-this._delay:0,Zr(e))},e.play=function(t,e){return null!=t&&this.seek(t,e),this.reversed(!1).paused(!1)},e.reverse=function(t,e){return null!=t&&this.seek(t||this.totalDuration(),e),this.reversed(!0).paused(!1)},e.pause=function(t,e){return null!=t&&this.seek(t,e),this.paused(!0)},e.resume=function(){return this.paused(!1)},e.reversed=function(t){return arguments.length?(!!t!==this.reversed()&&this.timeScale(-this._rts||(t?-1e-8:0)),this):this._rts<0},e.invalidate=function(){return this._initted=this._act=0,this._zTime=-1e-8,this},e.isActive=function(){var t,e=this.parent||this._dp,n=this._start;return!(e&&!(this._ts&&this._initted&&e.isActive()&&(t=e.rawTime(!0))>=n&&t<this.endTime(!0)-Ir))},e.eventCallback=function(t,e,n){var r=this.vars;return arguments.length>1?(e?(r[t]=e,n&&(r[t+"Params"]=n),"onUpdate"===t&&(this._onUpdate=e)):delete r[t],this):r[t]},e.then=function(t){var e=this;return new Promise((function(n){var r=Wr(t)?t:Ni,i=function(){var t=e.then;e.then=null,Wr(r)&&(r=r(e))&&(r.then||r===e)&&(e.then=t),n(r),e.then=t};e._initted&&1===e.totalProgress()&&e._ts>=0||!e._tTime&&e._ts<0?i():e._prom=i}))},e.kill=function(){Ea(this)},t}();Ii(to.prototype,{_time:0,_start:0,_end:0,_tTime:0,_tDur:0,_dirty:0,_repeat:0,_yoyo:!1,parent:null,_initted:!1,_rDelay:0,_ts:1,_dp:0,ratio:0,_zTime:-1e-8,_prom:0,_ps:!1,_rts:1});var eo=function(t){function e(e,n){var r;return void 0===e&&(e={}),(r=t.call(this,e)||this).labels={},r.smoothChildTiming=!!e.smoothChildTiming,r.autoRemoveChildren=!!e.autoRemoveChildren,r._sort=Zr(e.sortChildren),Dr&&ta(e.parent||Dr,vr(r),n),e.reversed&&r.reverse(),e.paused&&r.paused(!0),e.scrollTrigger&&ea(vr(r),e.scrollTrigger),r}yr(e,t);var n=e.prototype;return n.to=function(t,e,n){return la(0,arguments,this),this},n.from=function(t,e,n){return la(1,arguments,this),this},n.fromTo=function(t,e,n,r){return la(2,arguments,this),this},n.set=function(t,e,n){return e.duration=0,e.parent=this,ji(e).repeatDelay||(e.repeat=0),e.immediateRender=!!e.immediateRender,new fo(t,e,ua(this,n),1),this},n.call=function(t,e,n){return ta(this,fo.delayedCall(0,t,e),n)},n.staggerTo=function(t,e,n,r,i,a,o){return n.duration=e,n.stagger=n.stagger||r,n.onComplete=a,n.onCompleteParams=o,n.parent=this,new fo(t,n,ua(this,i)),this},n.staggerFrom=function(t,e,n,r,i,a,o){return n.runBackwards=1,ji(n).immediateRender=Zr(n.immediateRender),this.staggerTo(t,e,n,r,i,a,o)},n.staggerFromTo=function(t,e,n,r,i,a,o,s){return r.startAt=n,ji(r).immediateRender=Zr(r.immediateRender),this.staggerTo(t,e,r,i,a,o,s)},n.render=function(t,e,n){var r,i,a,o,s,u,l,c,h,f,d,p,g=this._time,m=this._dirty?this.totalDuration():this._tDur,v=this._dur,y=t<=0?0:Oi(t),_=this._zTime<0!=t<0&&(this._initted||!v);if(this!==Dr&&y>m&&t>=0&&(y=m),y!==this._tTime||n||_){if(g!==this._time&&v&&(y+=this._time-g,t+=this._time-g),r=y,h=this._start,u=!(c=this._ts),_&&(v||(g=this._zTime),(t||!e)&&(this._zTime=t)),this._repeat){if(d=this._yoyo,s=v+this._rDelay,this._repeat<-1&&t<0)return this.totalTime(100*s+t,e,n);if(r=Oi(y%s),y===m?(o=this._repeat,r=v):((o=~~(y/s))&&o===y/s&&(r=v,o--),r>v&&(r=v)),f=Zi(this._tTime,s),!g&&this._tTime&&f!==o&&this._tTime-f*s-this._dur<=0&&(f=o),d&&1&o&&(r=v-r,p=1),o!==f&&!this._lock){var b=d&&1&f,w=b===(d&&1&o);if(o<f&&(b=!b),g=b?0:v,this._lock=1,this.render(g||(p?0:Oi(o*s)),e,!v)._lock=0,this._tTime=y,!e&&this.parent&&Ca(this,"onRepeat"),this.vars.repeatRefresh&&!p&&(this.invalidate()._lock=1),g&&g!==this._time||u!==!this._ts||this.vars.onRepeat&&!this.parent&&!this._act)return this;if(v=this._dur,m=this._tDur,w&&(this._lock=2,g=b?v:-1e-4,this.render(g,!0),this.vars.repeatRefresh&&!p&&this.invalidate()),this._lock=0,!this._ts&&!u)return this;Ga(this,p)}}if(this._hasPause&&!this._forcing&&this._lock<2&&(l=function(t,e,n){var r;if(n>e)for(r=t._first;r&&r._start<=n;){if("isPause"===r.data&&r._start>e)return r;r=r._next}else for(r=t._last;r&&r._start>=n;){if("isPause"===r.data&&r._start<e)return r;r=r._prev}}(this,Oi(g),Oi(r)),l&&(y-=r-(r=l._start))),this._tTime=y,this._time=r,this._act=!c,this._initted||(this._onUpdate=this.vars.onUpdate,this._initted=1,this._zTime=t,g=0),!g&&r&&!e&&!o&&(Ca(this,"onStart"),this._tTime!==y))return this;if(r>=g&&t>=0)for(i=this._first;i;){if(a=i._next,(i._act||r>=i._start)&&i._ts&&l!==i){if(i.parent!==this)return this.render(t,e,n);if(i.render(i._ts>0?(r-i._start)*i._ts:(i._dirty?i.totalDuration():i._tDur)+(r-i._start)*i._ts,e,n),r!==this._time||!this._ts&&!u){l=0,a&&(y+=this._zTime=-1e-8);break}}i=a}else{i=this._last;for(var D=t<0?t:r;i;){if(a=i._prev,(i._act||D<=i._end)&&i._ts&&l!==i){if(i.parent!==this)return this.render(t,e,n);if(i.render(i._ts>0?(D-i._start)*i._ts:(i._dirty?i.totalDuration():i._tDur)+(D-i._start)*i._ts,e,n||br&&(i._initted||i._startAt)),r!==this._time||!this._ts&&!u){l=0,a&&(y+=this._zTime=D?-1e-8:Ir);break}}i=a}}if(l&&!e&&(this.pause(),l.render(r>=g?0:-1e-8)._zTime=r>=g?1:-1,this._ts))return this._start=h,$i(this),this.render(t,e,n);this._onUpdate&&!e&&Ca(this,"onUpdate",!0),(y===m&&this._tTime>=this.totalDuration()||!y&&g)&&(h!==this._start&&Math.abs(c)===Math.abs(this._ts)||this._lock||((t||!v)&&(y===m&&this._ts>0||!y&&this._ts<0)&&Ui(this,1),e||t<0&&!g||!y&&!g&&m||(Ca(this,y===m&&t>=0?"onComplete":"onReverseComplete",!0),this._prom&&!(y<m&&this.timeScale()>0)&&this._prom())))}return this},n.add=function(t,e){var n=this;if(qr(e)||(e=ua(this,e,t)),!(t instanceof to)){if(Qr(t))return t.forEach((function(t){return n.add(t,e)})),this;if(Ur(t))return this.addLabel(t,e);if(!Wr(t))return this;t=fo.delayedCall(0,t)}return this!==t?ta(this,t,e):this},n.getChildren=function(t,e,n,r){void 0===t&&(t=!0),void 0===e&&(e=!0),void 0===n&&(n=!0),void 0===r&&(r=-1e8);for(var i=[],a=this._first;a;)a._start>=r&&(a instanceof fo?e&&i.push(a):(n&&i.push(a),t&&i.push.apply(i,a.getChildren(!0,e,n)))),a=a._next;return i},n.getById=function(t){for(var e=this.getChildren(1,1,1),n=e.length;n--;)if(e[n].vars.id===t)return e[n]},n.remove=function(t){return Ur(t)?this.removeLabel(t):Wr(t)?this.killTweensOf(t):(zi(this,t),t===this._recent&&(this._recent=this._last),Wi(this))},n.totalTime=function(e,n){return arguments.length?(this._forcing=1,!this._dp&&this._ts&&(this._start=Oi(La.time-(this._ts>0?e/this._ts:(this.totalDuration()-e)/-this._ts))),t.prototype.totalTime.call(this,e,n),this._forcing=0,this):this._tTime},n.addLabel=function(t,e){return this.labels[t]=ua(this,e),this},n.removeLabel=function(t){return delete this.labels[t],this},n.addPause=function(t,e,n){var r=fo.delayedCall(0,e||di,n);return r.data="isPause",this._hasPause=1,ta(this,r,ua(this,t))},n.removePause=function(t){var e=this._first;for(t=ua(this,t);e;)e._start===t&&"isPause"===e.data&&Ui(e),e=e._next},n.killTweensOf=function(t,e,n){for(var r=this.getTweensOf(t,n),i=r.length;i--;)no!==r[i]&&r[i].kill(t,e);return this},n.getTweensOf=function(t,e){for(var n,r=[],i=ma(t),a=this._first,o=qr(e);a;)a instanceof fo?Pi(a._targets,i)&&(o?(!no||a._initted&&a._ts)&&a.globalTime(0)<=e&&a.globalTime(a.totalDuration())>e:!e||a.isActive())&&r.push(a):(n=a.getTweensOf(i,e)).length&&r.push.apply(r,n),a=a._next;return r},n.tweenTo=function(t,e){e=e||{};var n,r=this,i=ua(r,t),a=e,o=a.startAt,s=a.onStart,u=a.onStartParams,l=a.immediateRender,c=fo.to(r,Ii({ease:e.ease||"none",lazy:!1,immediateRender:!1,time:i,overwrite:"auto",duration:e.duration||Math.abs((i-(o&&"time"in o?o.time:r._time))/r.timeScale())||Ir,onStart:function(){if(r.pause(),!n){var t=e.duration||Math.abs((i-(o&&"time"in o?o.time:r._time))/r.timeScale());c._dur!==t&&aa(c,t,0,1).render(c._time,!0,!0),n=1}s&&s.apply(c,u||[])}},e));return l?c.render(0):c},n.tweenFromTo=function(t,e,n){return this.tweenTo(e,Ii({startAt:{time:ua(this,t)}},n))},n.recent=function(){return this._recent},n.nextLabel=function(t){return void 0===t&&(t=this._time),ka(this,ua(this,t))},n.previousLabel=function(t){return void 0===t&&(t=this._time),ka(this,ua(this,t),1)},n.currentLabel=function(t){return arguments.length?this.seek(t,!0):this.previousLabel(this._time+Ir)},n.shiftChildren=function(t,e,n){void 0===n&&(n=0);for(var r,i=this._first,a=this.labels;i;)i._start>=n&&(i._start+=t,i._end+=t),i=i._next;if(e)for(r in a)a[r]>=n&&(a[r]+=t);return Wi(this)},n.invalidate=function(e){var n=this._first;for(this._lock=0;n;)n.invalidate(e),n=n._next;return t.prototype.invalidate.call(this,e)},n.clear=function(t){void 0===t&&(t=!0);for(var e,n=this._first;n;)e=n._next,this.remove(n),n=e;return this._dp&&(this._time=this._tTime=this._pTime=0),t&&(this.labels={}),Wi(this)},n.totalDuration=function(t){var e,n,r,i=0,a=this,o=a._last,s=Nr;if(arguments.length)return a.timeScale((a._repeat<0?a.duration():a.totalDuration())/(a.reversed()?-t:t));if(a._dirty){for(r=a.parent;o;)e=o._prev,o._dirty&&o.totalDuration(),(n=o._start)>s&&a._sort&&o._ts&&!a._lock?(a._lock=1,ta(a,o,n-o._delay,1)._lock=0):s=n,n<0&&o._ts&&(i-=n,(!r&&!a._dp||r&&r.smoothChildTiming)&&(a._start+=n/a._ts,a._time-=n,a._tTime-=n),a.shiftChildren(-n,!1,-Infinity),s=0),o._end>i&&o._ts&&(i=o._end),o=e;aa(a,a===Dr&&a._time>i?a._time:i,1,1),a._dirty=0}return a._tDur},e.updateRoot=function(t){if(Dr._ts&&(Ri(Dr,Xi(t,Dr)),Cr=La.frame),La.frame>=Di){Di+=Rr.autoSleep||120;var e=Dr._first;if((!e||!e._ts)&&Rr.autoSleep&&La._listeners.length<2){for(;e&&!e._ts;)e=e._next;e||La.sleep()}}},e}(to);Ii(eo.prototype,{_lock:0,_hasPause:0,_forcing:0});var no,ro,io=function(t,e,n,r,i,a,o){var s,u,l,c,h,f,d,p,g=new Co(this._pt,t,e,0,1,wo,null,i),m=0,v=0;for(g.b=n,g.e=r,n+="",(d=~(r+="").indexOf("random("))&&(r=xa(r)),a&&(a(p=[n,r],t,e),n=p[0],r=p[1]),u=n.match(ri)||[];s=ri.exec(r);)c=s[0],h=r.substring(m,s.index),l?l=(l+1)%5:"rgba("===h.substr(-5)&&(l=1),c!==u[v++]&&(f=parseFloat(u[v-1])||0,g._pt={_next:g._pt,p:h||1===v?h:",",s:f,c:"="===c.charAt(1)?Ai(f,c)-f:parseFloat(c)-f,m:l&&l<4?Math.round:0},m=ri.lastIndex);return g.c=m<r.length?r.substring(m,r.length):"",g.fp=o,(ii.test(r)||d)&&(g.e=0),this._pt=g,g},ao=function(t,e,n,r,i,a,o,s,u,l){Wr(r)&&(r=r(i||0,t,a));var c,h=t[e],f="get"!==n?n:Wr(h)?u?t[e.indexOf("set")||!Wr(t["get"+e.substr(3)])?e:"get"+e.substr(3)](u):t[e]():h,d=Wr(h)?u?mo:go:po;if(Ur(r)&&(~r.indexOf("random(")&&(r=xa(r)),"="===r.charAt(1)&&((c=Ai(f,r)+(fa(f)||0))||0===c)&&(r=c)),!l||f!==r||ro)return isNaN(f*r)||""===r?(!h&&!(e in t)&&ci(e,r),io.call(this,t,e,f,r,d,s||Rr.stringFilter,u)):(c=new Co(this._pt,t,e,+f||0,r-(f||0),"boolean"==typeof h?bo:_o,0,d),u&&(c.fp=u),o&&c.modifier(o,this,t),this._pt=c)},oo=function(t,e,n,r,i,a){var o,s,u,l;if(bi[t]&&!1!==(o=new bi[t]).init(i,o.rawVars?e[t]:function(t,e,n,r,i){if(Wr(t)&&(t=lo(t,i,e,n,r)),!Kr(t)||t.style&&t.nodeType||Qr(t)||Jr(t))return Ur(t)?lo(t,i,e,n,r):t;var a,o={};for(a in t)o[a]=lo(t[a],i,e,n,r);return o}(e[t],r,i,a,n),n,r,a)&&(n._pt=s=new Co(n._pt,i,t,0,1,o.render,o,0,o.priority),n!==Er))for(u=n._ptLookup[n._targets.indexOf(i)],l=o._props.length;l--;)u[o._props[l]]=s;return o},so=function t(e,n,r){var i,a,o,s,u,l,c,h,f,d,p,g,m,v=e.vars,y=v.ease,_=v.startAt,b=v.immediateRender,w=v.lazy,D=v.onUpdate,S=v.onUpdateParams,x=v.callbackScope,T=v.runBackwards,k=v.yoyoEase,C=v.keyframes,E=v.autoRevert,M=e._dur,O=e._startAt,A=e._targets,P=e.parent,B=P&&"nested"===P.data?P.vars.targets:A,R="auto"===e._overwrite&&!_r,V=e.timeline;if(V&&(!C||!y)&&(y="none"),e._ease=Ka(y,Vr.ease),e._yEase=k?qa(Ka(!0===k?y:k,Vr.ease)):0,k&&e._yoyo&&!e._repeat&&(k=e._yEase,e._yEase=e._ease,e._ease=k),e._from=!V&&!!v.runBackwards,!V||C&&!v.stagger){if(g=(h=A[0]?ki(A[0]).harness:0)&&v[h.prop],i=Li(v,vi),O&&(O._zTime<0&&O.progress(1),n<0&&T&&b&&!E?O.render(-1,!0):O.revert(T&&M?gi:pi),O._lazy=0),_){if(Ui(e._startAt=fo.set(A,Ii({data:"isStart",overwrite:!1,parent:P,immediateRender:!0,lazy:!O&&Zr(w),startAt:null,delay:0,onUpdate:D,onUpdateParams:S,callbackScope:x,stagger:0},_))),e._startAt._dp=0,e._startAt._sat=e,n<0&&(br||!b&&!E)&&e._startAt.revert(gi),b&&M&&n<=0&&r<=0)return void(n&&(e._zTime=n))}else if(T&&M&&!O)if(n&&(b=!1),o=Ii({overwrite:!1,data:"isFromStart",lazy:b&&!O&&Zr(w),immediateRender:b,stagger:0,parent:P},i),g&&(o[h.prop]=g),Ui(e._startAt=fo.set(A,o)),e._startAt._dp=0,e._startAt._sat=e,n<0&&(br?e._startAt.revert(gi):e._startAt.render(-1,!0)),e._zTime=n,b){if(!n)return}else t(e._startAt,Ir,Ir);for(e._pt=e._ptCache=0,w=M&&Zr(w)||w&&!M,a=0;a<A.length;a++){if(c=(u=A[a])._gsap||Ti(A)[a]._gsap,e._ptLookup[a]=d={},_i[c.id]&&yi.length&&Bi(),p=B===A?a:B.indexOf(u),h&&!1!==(f=new h).init(u,g||i,e,p,B)&&(e._pt=s=new Co(e._pt,u,f.name,0,1,f.render,f,0,f.priority),f._props.forEach((function(t){d[t]=s})),f.priority&&(l=1)),!h||g)for(o in i)bi[o]&&(f=oo(o,i,e,p,u,B))?f.priority&&(l=1):d[o]=s=ao.call(e,u,o,"get",i[o],p,B,0,v.stringFilter);e._op&&e._op[a]&&e.kill(u,e._op[a]),R&&e._pt&&(no=e,Dr.killTweensOf(u,d,e.globalTime(n)),m=!e.parent,no=0),e._pt&&w&&(_i[c.id]=1)}l&&ko(e),e._onInit&&e._onInit(e)}e._onUpdate=D,e._initted=(!e._op||e._pt)&&!m,C&&n<=0&&V.render(Nr,!0,!0)},uo=function(t,e,n,r){var i,a,o=e.ease||r||"power1.inOut";if(Qr(e))a=n[t]||(n[t]=[]),e.forEach((function(t,n){return a.push({t:n/(e.length-1)*100,v:t,e:o})}));else for(i in e)a=n[i]||(n[i]=[]),"ease"===i||a.push({t:parseFloat(t),v:e[i],e:o})},lo=function(t,e,n,r,i){return Wr(t)?t.call(e,n,r,i):Ur(t)&&~t.indexOf("random(")?xa(t):t},co=xi+"repeat,repeatDelay,yoyo,repeatRefresh,yoyoEase,autoRevert",ho={};Ei(co+",id,stagger,delay,duration,paused,scrollTrigger",(function(t){return ho[t]=1}));var fo=function(t){function e(e,n,r,i){var a;"number"==typeof n&&(r.duration=n,n=r,r=null);var o,s,u,l,c,h,f,d,p=(a=t.call(this,i?n:ji(n))||this).vars,g=p.duration,m=p.delay,v=p.immediateRender,y=p.stagger,_=p.overwrite,b=p.keyframes,w=p.defaults,D=p.scrollTrigger,S=p.yoyoEase,x=n.parent||Dr,T=(Qr(e)||Jr(e)?qr(e[0]):"length"in n)?[e]:ma(e);if(a._targets=T.length?Ti(T):hi("GSAP target "+e+" not found. https://greensock.com",!Rr.nullTargetWarn)||[],a._ptLookup=[],a._overwrite=_,b||y||$r(g)||$r(m)){if(n=a.vars,(o=a.timeline=new eo({data:"nested",defaults:w||{},targets:x&&"nested"===x.data?x.vars.targets:T})).kill(),o.parent=o._dp=vr(a),o._start=0,y||$r(g)||$r(m)){if(l=T.length,f=y&&_a(y),Kr(y))for(c in y)~co.indexOf(c)&&(d||(d={}),d[c]=y[c]);for(s=0;s<l;s++)(u=Li(n,ho)).stagger=0,S&&(u.yoyoEase=S),d&&Fi(u,d),h=T[s],u.duration=+lo(g,vr(a),s,h,T),u.delay=(+lo(m,vr(a),s,h,T)||0)-a._delay,!y&&1===l&&u.delay&&(a._delay=m=u.delay,a._start+=m,u.delay=0),o.to(h,u,f?f(s,h,T):0),o._ease=Ha.none;o.duration()?g=m=0:a.timeline=0}else if(b){ji(Ii(o.vars.defaults,{ease:"none"})),o._ease=Ka(b.ease||n.ease||"none");var k,C,E,M=0;if(Qr(b))b.forEach((function(t){return o.to(T,t,">")})),o.duration();else{for(c in u={},b)"ease"===c||"easeEach"===c||uo(c,b[c],u,b.easeEach);for(c in u)for(k=u[c].sort((function(t,e){return t.t-e.t})),M=0,s=0;s<k.length;s++)(E={ease:(C=k[s]).e,duration:(C.t-(s?k[s-1].t:0))/100*g})[c]=C.v,o.to(T,E,M),M+=E.duration;o.duration()<g&&o.to({},{duration:g-o.duration()})}}g||a.duration(g=o.duration())}else a.timeline=0;return!0!==_||_r||(no=vr(a),Dr.killTweensOf(T),no=0),ta(x,vr(a),r),n.reversed&&a.reverse(),n.paused&&a.paused(!0),(v||!g&&!b&&a._start===Oi(x._time)&&Zr(v)&&Gi(vr(a))&&"nested"!==x.data)&&(a._tTime=-1e-8,a.render(Math.max(0,-m)||0)),D&&ea(vr(a),D),a}yr(e,t);var n=e.prototype;return n.render=function(t,e,n){var r,i,a,o,s,u,l,c,h,f=this._time,d=this._tDur,p=this._dur,g=t<0,m=t>d-Ir&&!g?d:t<Ir?0:t;if(p){if(m!==this._tTime||!t||n||!this._initted&&this._tTime||this._startAt&&this._zTime<0!==g){if(r=m,c=this.timeline,this._repeat){if(o=p+this._rDelay,this._repeat<-1&&g)return this.totalTime(100*o+t,e,n);if(r=Oi(m%o),m===d?(a=this._repeat,r=p):((a=~~(m/o))&&a===m/o&&(r=p,a--),r>p&&(r=p)),(u=this._yoyo&&1&a)&&(h=this._yEase,r=p-r),s=Zi(this._tTime,o),r===f&&!n&&this._initted)return this._tTime=m,this;a!==s&&(c&&this._yEase&&Ga(c,u),!this.vars.repeatRefresh||u||this._lock||(this._lock=n=1,this.render(Oi(o*a),!0).invalidate()._lock=0))}if(!this._initted){if(na(this,g?t:r,n,e,m))return this._tTime=0,this;if(f!==this._time)return this;if(p!==this._dur)return this.render(t,e,n)}if(this._tTime=m,this._time=r,!this._act&&this._ts&&(this._act=1,this._lazy=0),this.ratio=l=(h||this._ease)(r/p),this._from&&(this.ratio=l=1-l),r&&!f&&!e&&!a&&(Ca(this,"onStart"),this._tTime!==m))return this;for(i=this._pt;i;)i.r(l,i.d),i=i._next;c&&c.render(t<0?t:!r&&u?-1e-8:c._dur*c._ease(r/this._dur),e,n)||this._startAt&&(this._zTime=t),this._onUpdate&&!e&&(g&&qi(this,t,0,n),Ca(this,"onUpdate")),this._repeat&&a!==s&&this.vars.onRepeat&&!e&&this.parent&&Ca(this,"onRepeat"),m!==this._tDur&&m||this._tTime!==m||(g&&!this._onUpdate&&qi(this,t,0,!0),(t||!p)&&(m===this._tDur&&this._ts>0||!m&&this._ts<0)&&Ui(this,1),e||g&&!f||!(m||f||u)||(Ca(this,m===d?"onComplete":"onReverseComplete",!0),this._prom&&!(m<d&&this.timeScale()>0)&&this._prom()))}}else!function(t,e,n,r){var i,a,o,s=t.ratio,u=e<0||!e&&(!t._start&&ra(t)&&(t._initted||!ia(t))||(t._ts<0||t._dp._ts<0)&&!ia(t))?0:1,l=t._rDelay,c=0;if(l&&t._repeat&&(c=ha(0,t._tDur,e),a=Zi(c,l),t._yoyo&&1&a&&(u=1-u),a!==Zi(t._tTime,l)&&(s=1-u,t.vars.repeatRefresh&&t._initted&&t.invalidate())),u!==s||br||r||t._zTime===Ir||!e&&t._zTime){if(!t._initted&&na(t,e,r,n,c))return;for(o=t._zTime,t._zTime=e||(n?Ir:0),n||(n=e&&!o),t.ratio=u,t._from&&(u=1-u),t._time=0,t._tTime=c,i=t._pt;i;)i.r(u,i.d),i=i._next;e<0&&qi(t,e,0,!0),t._onUpdate&&!n&&Ca(t,"onUpdate"),c&&t._repeat&&!n&&t.parent&&Ca(t,"onRepeat"),(e>=t._tDur||e<0)&&t.ratio===u&&(u&&Ui(t,1),n||br||(Ca(t,u?"onComplete":"onReverseComplete",!0),t._prom&&t._prom()))}else t._zTime||(t._zTime=e)}(this,t,e,n);return this},n.targets=function(){return this._targets},n.invalidate=function(e){return(!e||!this.vars.runBackwards)&&(this._startAt=0),this._pt=this._op=this._onUpdate=this._lazy=this.ratio=0,this._ptLookup=[],this.timeline&&this.timeline.invalidate(e),t.prototype.invalidate.call(this,e)},n.resetTo=function(t,e,n,r){Mr||La.wake(),this._ts||this.play();var i=Math.min(this._dur,(this._dp._time-this._start)*this._ts);return this._initted||so(this,i),function(t,e,n,r,i,a,o){var s,u,l,c,h=(t._pt&&t._ptCache||(t._ptCache={}))[e];if(!h)for(h=t._ptCache[e]=[],l=t._ptLookup,c=t._targets.length;c--;){if((s=l[c][e])&&s.d&&s.d._pt)for(s=s.d._pt;s&&s.p!==e&&s.fp!==e;)s=s._next;if(!s)return ro=1,t.vars[e]="+=0",so(t,o),ro=0,1;h.push(s)}for(c=h.length;c--;)(s=(u=h[c])._pt||u).s=!r&&0!==r||i?s.s+(r||0)+a*s.c:r,s.c=n-s.s,u.e&&(u.e=Mi(n)+fa(u.e)),u.b&&(u.b=s.s+fa(u.b))}(this,t,e,n,r,this._ease(i/this._dur),i)?this.resetTo(t,e,n,r):(Ji(this,0),this.parent||Hi(this._dp,this,"_first","_last",this._dp._sort?"_start":0),this.render(0))},n.kill=function(t,e){if(void 0===e&&(e="all"),!(t||e&&"all"!==e))return this._lazy=this._pt=0,this.parent?Ea(this):this;if(this.timeline){var n=this.timeline.totalDuration();return this.timeline.killTweensOf(t,e,no&&!0!==no.vars.overwrite)._first||Ea(this),this.parent&&n!==this.timeline.totalDuration()&&aa(this,this._dur*this.timeline._tDur/n,0,1),this}var r,i,a,o,s,u,l,c=this._targets,h=t?ma(t):c,f=this._ptLookup,d=this._pt;if((!e||"all"===e)&&function(t,e){for(var n=t.length,r=n===e.length;r&&n--&&t[n]===e[n];);return n<0}(c,h))return"all"===e&&(this._pt=0),Ea(this);for(r=this._op=this._op||[],"all"!==e&&(Ur(e)&&(s={},Ei(e,(function(t){return s[t]=1})),e=s),e=function(t,e){var n,r,i,a,o=t[0]?ki(t[0]).harness:0,s=o&&o.aliases;if(!s)return e;for(r in n=Fi({},e),s)if(r in n)for(i=(a=s[r].split(",")).length;i--;)n[a[i]]=n[r];return n}(c,e)),l=c.length;l--;)if(~h.indexOf(c[l]))for(s in i=f[l],"all"===e?(r[l]=e,o=i,a={}):(a=r[l]=r[l]||{},o=e),o)(u=i&&i[s])&&("kill"in u.d&&!0!==u.d.kill(s)||zi(this,u,"_pt"),delete i[s]),"all"!==a&&(a[s]=1);return this._initted&&!this._pt&&d&&Ea(this),this},e.to=function(t,n){return new e(t,n,arguments[2])},e.from=function(t,e){return la(1,arguments)},e.delayedCall=function(t,n,r,i){return new e(n,0,{immediateRender:!1,lazy:!1,overwrite:!1,delay:t,onComplete:n,onReverseComplete:n,onCompleteParams:r,onReverseCompleteParams:r,callbackScope:i})},e.fromTo=function(t,e,n){return la(2,arguments)},e.set=function(t,n){return n.duration=0,n.repeatDelay||(n.repeat=0),new e(t,n)},e.killTweensOf=function(t,e,n){return Dr.killTweensOf(t,e,n)},e}(to);Ii(fo.prototype,{_targets:[],_lazy:0,_startAt:0,_op:0,_onInit:0}),Ei("staggerTo,staggerFrom,staggerFromTo",(function(t){fo[t]=function(){var e=new eo,n=da.call(arguments,0);return n.splice("staggerFromTo"===t?5:4,0,0),e[t].apply(e,n)}}));var po=function(t,e,n){return t[e]=n},go=function(t,e,n){return t[e](n)},mo=function(t,e,n,r){return t[e](r.fp,n)},vo=function(t,e,n){return t.setAttribute(e,n)},yo=function(t,e){return Wr(t[e])?go:Gr(t[e])&&t.setAttribute?vo:po},_o=function(t,e){return e.set(e.t,e.p,Math.round(1e6*(e.s+e.c*t))/1e6,e)},bo=function(t,e){return e.set(e.t,e.p,!!(e.s+e.c*t),e)},wo=function(t,e){var n=e._pt,r="";if(!t&&e.b)r=e.b;else if(1===t&&e.e)r=e.e;else{for(;n;)r=n.p+(n.m?n.m(n.s+n.c*t):Math.round(1e4*(n.s+n.c*t))/1e4)+r,n=n._next;r+=e.c}e.set(e.t,e.p,r,e)},Do=function(t,e){for(var n=e._pt;n;)n.r(t,n.d),n=n._next},So=function(t,e,n,r){for(var i,a=this._pt;a;)i=a._next,a.p===r&&a.modifier(t,e,n),a=i},xo=function(t){for(var e,n,r=this._pt;r;)n=r._next,r.p===t&&!r.op||r.op===t?zi(this,r,"_pt"):r.dep||(e=1),r=n;return!e},To=function(t,e,n,r){r.mSet(t,e,r.m.call(r.tween,n,r.mt),r)},ko=function(t){for(var e,n,r,i,a=t._pt;a;){for(e=a._next,n=r;n&&n.pr>a.pr;)n=n._next;(a._prev=n?n._prev:i)?a._prev._next=a:r=a,(a._next=n)?n._prev=a:i=a,a=e}t._pt=r},Co=function(){function t(t,e,n,r,i,a,o,s,u){this.t=e,this.s=r,this.c=i,this.p=n,this.r=a||_o,this.d=o||this,this.set=s||po,this.pr=u||0,this._next=t,t&&(t._prev=this)}return t.prototype.modifier=function(t,e,n){this.mSet=this.mSet||this.set,this.set=To,this.m=t,this.mt=n,this.tween=e},t}();Ei(xi+"parent,duration,ease,delay,overwrite,runBackwards,startAt,yoyo,immediateRender,repeat,repeatDelay,data,paused,reversed,lazy,callbackScope,stringFilter,id,yoyoEase,stagger,inherit,repeatRefresh,keyframes,autoRevert,scrollTrigger",(function(t){return vi[t]=1})),si.TweenMax=si.TweenLite=fo,si.TimelineLite=si.TimelineMax=eo,Dr=new eo({sortChildren:!1,defaults:Vr,autoRemoveChildren:!0,id:"root",smoothChildTiming:!0}),Rr.stringFilter=Ya;var Eo=[],Mo={},Oo=[],Ao=0,Po=function(t){return(Mo[t]||Oo).map((function(t){return t()}))},Bo=function(){var t=Date.now(),e=[];t-Ao>2&&(Po("matchMediaInit"),Eo.forEach((function(t){var n,r,i,a,o=t.queries,s=t.conditions;for(r in o)(n=Sr.matchMedia(o[r]).matches)&&(i=1),n!==s[r]&&(s[r]=n,a=1);a&&(t.revert(),i&&e.push(t))})),Po("matchMediaRevert"),e.forEach((function(t){return t.onMatch(t)})),Ao=t,Po("matchMedia"))},Ro=function(){function t(t,e){this.selector=e&&va(e),this.data=[],this._r=[],this.isReverted=!1,t&&this.add(t)}var e=t.prototype;return e.add=function(t,e,n){Wr(t)&&(n=e,e=t,t=Wr);var r=this,i=function(){var t,i=wr,a=r.selector;return i&&i!==r&&i.data.push(r),n&&(r.selector=va(n)),wr=r,t=e.apply(r,arguments),Wr(t)&&r._r.push(t),wr=i,r.selector=a,r.isReverted=!1,t};return r.last=i,t===Wr?i(r):t?r[t]=i:i},e.ignore=function(t){var e=wr;wr=null,t(this),wr=e},e.getTweens=function(){var e=[];return this.data.forEach((function(n){return n instanceof t?e.push.apply(e,n.getTweens()):n instanceof fo&&!(n.parent&&"nested"===n.parent.data)&&e.push(n)})),e},e.clear=function(){this._r.length=this.data.length=0},e.kill=function(t,e){var n=this;if(t){var r=this.getTweens();this.data.forEach((function(t){"isFlip"===t.data&&(t.revert(),t.getChildren(!0,!0,!1).forEach((function(t){return r.splice(r.indexOf(t),1)})))})),r.map((function(t){return{g:t.globalTime(0),t:t}})).sort((function(t,e){return e.g-t.g||-1})).forEach((function(e){return e.t.revert(t)})),this.data.forEach((function(e){return!(e instanceof to)&&e.revert&&e.revert(t)})),this._r.forEach((function(e){return e(t,n)})),this.isReverted=!0}else this.data.forEach((function(t){return t.kill&&t.kill()}));if(this.clear(),e){var i=Eo.indexOf(this);~i&&Eo.splice(i,1)}},e.revert=function(t){this.kill(t||{})},t}(),Vo=function(){function t(t){this.contexts=[],this.scope=t}var e=t.prototype;return e.add=function(t,e,n){Kr(t)||(t={matches:t});var r,i,a,o=new Ro(0,n||this.scope),s=o.conditions={};for(i in this.contexts.push(o),e=o.add("onMatch",e),o.queries=t,t)"all"===i?a=1:(r=Sr.matchMedia(t[i]))&&(Eo.indexOf(o)<0&&Eo.push(o),(s[i]=r.matches)&&(a=1),r.addListener?r.addListener(Bo):r.addEventListener("change",Bo));return a&&e(o),this},e.revert=function(t){this.kill(t||{})},e.kill=function(t){this.contexts.forEach((function(e){return e.kill(t,!0)}))},t}(),No={registerPlugin:function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];e.forEach((function(t){return Oa(t)}))},timeline:function(t){return new eo(t)},getTweensOf:function(t,e){return Dr.getTweensOf(t,e)},getProperty:function(t,e,n,r){Ur(t)&&(t=ma(t)[0]);var i=ki(t||{}).get,a=n?Ni:Vi;return"native"===n&&(n=""),t?e?a((bi[e]&&bi[e].get||i)(t,e,n,r)):function(e,n,r){return a((bi[e]&&bi[e].get||i)(t,e,n,r))}:t},quickSetter:function(t,e,n){if((t=ma(t)).length>1){var r=t.map((function(t){return Yo.quickSetter(t,e,n)})),i=r.length;return function(t){for(var e=i;e--;)r[e](t)}}t=t[0]||{};var a=bi[e],o=ki(t),s=o.harness&&(o.harness.aliases||{})[e]||e,u=a?function(e){var r=new a;Er._pt=0,r.init(t,n?e+n:e,Er,0,[t]),r.render(1,r),Er._pt&&Do(1,Er)}:o.set(t,s);return a?u:function(e){return u(t,s,n?e+n:e,o,1)}},quickTo:function(t,e,n){var r,i=Yo.to(t,Fi(((r={})[e]="+=0.1",r.paused=!0,r),n||{})),a=function(t,n,r){return i.resetTo(e,t,n,r)};return a.tween=i,a},isTweening:function(t){return Dr.getTweensOf(t,!0).length>0},defaults:function(t){return t&&t.ease&&(t.ease=Ka(t.ease,Vr.ease)),Yi(Vr,t||{})},config:function(t){return Yi(Rr,t||{})},registerEffect:function(t){var e=t.name,n=t.effect,r=t.plugins,i=t.defaults,a=t.extendTimeline;(r||"").split(",").forEach((function(t){return t&&!bi[t]&&!si[t]&&hi(e+" effect requires "+t+" plugin.")})),wi[e]=function(t,e,r){return n(ma(t),Ii(e||{},i),r)},a&&(eo.prototype[e]=function(t,n,r){return this.add(wi[e](t,Kr(n)?n:(r=n)&&{},this),r)})},registerEase:function(t,e){Ha[t]=Ka(e)},parseEase:function(t,e){return arguments.length?Ka(t,e):Ha},getById:function(t){return Dr.getById(t)},exportRoot:function(t,e){void 0===t&&(t={});var n,r,i=new eo(t);for(i.smoothChildTiming=Zr(t.smoothChildTiming),Dr.remove(i),i._dp=0,i._time=i._tTime=Dr._time,n=Dr._first;n;)r=n._next,!e&&!n._dur&&n instanceof fo&&n.vars.onComplete===n._targets[0]||ta(i,n,n._start-n._delay),n=r;return ta(Dr,i,0),i},context:function(t,e){return t?new Ro(t,e):wr},matchMedia:function(t){return new Vo(t)},matchMediaRefresh:function(){return Eo.forEach((function(t){var e,n,r=t.conditions;for(n in r)r[n]&&(r[n]=!1,e=1);e&&t.revert()}))||Bo()},addEventListener:function(t,e){var n=Mo[t]||(Mo[t]=[]);~n.indexOf(e)||n.push(e)},removeEventListener:function(t,e){var n=Mo[t],r=n&&n.indexOf(e);r>=0&&n.splice(r,1)},utils:{wrap:function t(e,n,r){var i=n-e;return Qr(e)?Sa(e,t(0,e.length),n):ca(r,(function(t){return(i+(t-e)%i)%i+e}))},wrapYoyo:function t(e,n,r){var i=n-e,a=2*i;return Qr(e)?Sa(e,t(0,e.length-1),n):ca(r,(function(t){return e+((t=(a+(t-e)%a)%a||0)>i?a-t:t)}))},distribute:_a,random:Da,snap:wa,normalize:function(t,e,n){return Ta(t,e,0,1,n)},getUnit:fa,clamp:function(t,e,n){return ca(n,(function(n){return ha(t,e,n)}))},splitColor:Ra,toArray:ma,selector:va,mapRange:Ta,pipe:function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return function(t){return e.reduce((function(t,e){return e(t)}),t)}},unitize:function(t,e){return function(n){return t(parseFloat(n))+(e||fa(n))}},interpolate:function t(e,n,r,i){var a=isNaN(e+n)?0:function(t){return(1-t)*e+t*n};if(!a){var o,s,u,l,c,h=Ur(e),f={};if(!0===r&&(i=1)&&(r=null),h)e={p:e},n={p:n};else if(Qr(e)&&!Qr(n)){for(u=[],l=e.length,c=l-2,s=1;s<l;s++)u.push(t(e[s-1],e[s]));l--,a=function(t){t*=l;var e=Math.min(c,~~t);return u[e](t-e)},r=n}else i||(e=Fi(Qr(e)?[]:{},e));if(!u){for(o in n)ao.call(f,e,o,"get",n[o]);a=function(t){return Do(t,f)||(h?e.p:e)}}}return ca(r,a)},shuffle:ya},install:li,effects:wi,ticker:La,updateRoot:eo.updateRoot,plugins:bi,globalTimeline:Dr,core:{PropTween:Co,globals:fi,Tween:fo,Timeline:eo,Animation:to,getCache:ki,_removeLinkedListItem:zi,reverting:function(){return br},context:function(t){return t&&wr&&(wr.data.push(t),t._ctx=wr),wr},suppressOverwrites:function(t){return _r=t}}};Ei("to,from,fromTo,delayedCall,set,killTweensOf",(function(t){return No[t]=fo[t]})),La.add(eo.updateRoot),Er=No.to({},{duration:0});var Io=function(t,e){for(var n=t._pt;n&&n.p!==e&&n.op!==e&&n.fp!==e;)n=n._next;return n},Fo=function(t,e){return{name:t,rawVars:1,init:function(t,n,r){r._onInit=function(t){var r,i;if(Ur(n)&&(r={},Ei(n,(function(t){return r[t]=1})),n=r),e){for(i in r={},n)r[i]=e(n[i]);n=r}!function(t,e){var n,r,i,a=t._targets;for(n in e)for(r=a.length;r--;)(i=t._ptLookup[r][n])&&(i=i.d)&&(i._pt&&(i=Io(i,n)),i&&i.modifier&&i.modifier(e[n],t,a[r],n))}(t,n)}}}},Yo=No.registerPlugin({name:"attr",init:function(t,e,n,r,i){var a,o,s;for(a in this.tween=n,e)s=t.getAttribute(a)||"",(o=this.add(t,"setAttribute",(s||0)+"",e[a],r,i,0,0,a)).op=a,o.b=s,this._props.push(a)},render:function(t,e){for(var n=e._pt;n;)br?n.set(n.t,n.p,n.b,n):n.r(t,n.d),n=n._next}},{name:"endArray",init:function(t,e){for(var n=e.length;n--;)this.add(t,n,t[n]||0,e[n],0,0,0,0,0,1)}},Fo("roundProps",ba),Fo("modifiers"),Fo("snap",wa))||No;fo.version=eo.version=Yo.version="3.11.5",kr=1,Xr()&&ja(),Ha.Power0,Ha.Power1,Ha.Power2,Ha.Power3,Ha.Power4,Ha.Linear,Ha.Quad,Ha.Cubic,Ha.Quart,Ha.Quint,Ha.Strong,Ha.Elastic,Ha.Back,Ha.SteppedEase,Ha.Bounce,Ha.Sine,Ha.Expo,Ha.Circ;
|
|
42
42
|
/*!
|
|
43
43
|
* CSSPlugin 3.11.5
|
|
44
44
|
* https://greensock.com
|
|
@@ -48,5 +48,5 @@ function(t){var e=n,r=e.lib,i=r.WordArray,a=r.Hasher,o=e.algo,s=i.create([0,1,2,
|
|
|
48
48
|
* Club GreenSock members, the agreement issued with that membership.
|
|
49
49
|
* @author: Jack Doyle, jack@greensock.com
|
|
50
50
|
*/
|
|
51
|
-
var Yo,Lo,jo,Ho,zo,Uo,Wo,qo,Go={},Ko=180/Math.PI,Zo=Math.PI/180,Xo=Math.atan2,$o=/([A-Z])/g,Jo=/(left|right|width|margin|padding|x)/i,Qo=/[\s,\(]\S/,ts={autoAlpha:"opacity,visibility",scale:"scaleX,scaleY",alpha:"opacity"},es=function(t,e){return e.set(e.t,e.p,Math.round(1e4*(e.s+e.c*t))/1e4+e.u,e)},ns=function(t,e){return e.set(e.t,e.p,1===t?e.e:Math.round(1e4*(e.s+e.c*t))/1e4+e.u,e)},rs=function(t,e){return e.set(e.t,e.p,t?Math.round(1e4*(e.s+e.c*t))/1e4+e.u:e.b,e)},is=function(t,e){var n=e.s+e.c*t;e.set(e.t,e.p,~~(n+(n<0?-.5:.5))+e.u,e)},as=function(t,e){return e.set(e.t,e.p,t?e.e:e.b,e)},os=function(t,e){return e.set(e.t,e.p,1!==t?e.b:e.e,e)},ss=function(t,e,n){return t.style[e]=n},us=function(t,e,n){return t.style.setProperty(e,n)},ls=function(t,e,n){return t._gsap[e]=n},cs=function(t,e,n){return t._gsap.scaleX=t._gsap.scaleY=n},hs=function(t,e,n,r,i){var a=t._gsap;a.scaleX=a.scaleY=n,a.renderTransform(i,a)},fs=function(t,e,n,r,i){var a=t._gsap;a[e]=n,a.renderTransform(i,a)},ds="transform",ps=ds+"Origin",gs=function t(e,n){var r=this,i=this.target,a=i.style;if(e in Go){if(this.tfm=this.tfm||{},"transform"===e)return ts.transform.split(",").forEach((function(e){return t.call(r,e,n)}));if(~(e=ts[e]||e).indexOf(",")?e.split(",").forEach((function(t){return r.tfm[t]=Bs(i,t)})):this.tfm[e]=i._gsap.x?i._gsap[e]:Bs(i,e),this.props.indexOf(ds)>=0)return;i._gsap.svg&&(this.svgo=i.getAttribute("data-svg-origin"),this.props.push(ps,n,"")),e=ds}(a||n)&&this.props.push(e,n,a[e])},vs=function(t){t.translate&&(t.removeProperty("translate"),t.removeProperty("scale"),t.removeProperty("rotate"))},ms=function(){var t,e,n=this.props,r=this.target,i=r.style,a=r._gsap;for(t=0;t<n.length;t+=3)n[t+1]?r[n[t]]=n[t+2]:n[t+2]?i[n[t]]=n[t+2]:i.removeProperty("--"===n[t].substr(0,2)?n[t]:n[t].replace($o,"-$1").toLowerCase());if(this.tfm){for(e in this.tfm)a[e]=this.tfm[e];a.svg&&(a.renderTransform(),r.setAttribute("data-svg-origin",this.svgo||"")),(t=Wo())&&t.isStart||i[ds]||(vs(i),a.uncache=1)}},ys=function(t,e){var n={target:t,props:[],revert:ms,save:gs};return t._gsap||Fo.core.getCache(t),e&&e.split(",").forEach((function(t){return n.save(t)})),n},_s=function(t,e){var n=Lo.createElementNS?Lo.createElementNS((e||"http://www.w3.org/1999/xhtml").replace(/^https/,"http"),t):Lo.createElement(t);return n.style?n:Lo.createElement(t)},bs=function t(e,n,r){var i=getComputedStyle(e);return i[n]||i.getPropertyValue(n.replace($o,"-$1").toLowerCase())||i.getPropertyValue(n)||!r&&t(e,Ds(n)||n,1)||""},ws="O,Moz,ms,Ms,Webkit".split(","),Ds=function(t,e,n){var r=(e||zo).style,i=5;if(t in r&&!n)return t;for(t=t.charAt(0).toUpperCase()+t.substr(1);i--&&!(ws[i]+t in r););return i<0?null:(3===i?"ms":i>=0?ws[i]:"")+t},Ss=function(){"undefined"!=typeof window&&window.document&&(Yo=window,Lo=Yo.document,jo=Lo.documentElement,zo=_s("div")||{style:{}},_s("div"),ds=Ds(ds),ps=ds+"Origin",zo.style.cssText="border-width:0;line-height:0;position:absolute;padding:0",qo=!!Ds("perspective"),Wo=Fo.core.reverting,Ho=1)},xs=function t(e){var n,r=_s("svg",this.ownerSVGElement&&this.ownerSVGElement.getAttribute("xmlns")||"http://www.w3.org/2000/svg"),i=this.parentNode,a=this.nextSibling,o=this.style.cssText;if(jo.appendChild(r),r.appendChild(this),this.style.display="block",e)try{n=this.getBBox(),this._gsapBBox=this.getBBox,this.getBBox=t}catch(t){}else this._gsapBBox&&(n=this._gsapBBox());return i&&(a?i.insertBefore(this,a):i.appendChild(this)),jo.removeChild(r),this.style.cssText=o,n},Ts=function(t,e){for(var n=e.length;n--;)if(t.hasAttribute(e[n]))return t.getAttribute(e[n])},ks=function(t){var e;try{e=t.getBBox()}catch(n){e=xs.call(t,!0)}return e&&(e.width||e.height)||t.getBBox===xs||(e=xs.call(t,!0)),!e||e.width||e.x||e.y?e:{x:+Ts(t,["x","cx","x1"])||0,y:+Ts(t,["y","cy","y1"])||0,width:0,height:0}},Cs=function(t){return!(!t.getCTM||t.parentNode&&!t.ownerSVGElement||!ks(t))},Es=function(t,e){if(e){var n=t.style;e in Go&&e!==ps&&(e=ds),n.removeProperty?("ms"!==e.substr(0,2)&&"webkit"!==e.substr(0,6)||(e="-"+e),n.removeProperty(e.replace($o,"-$1").toLowerCase())):n.removeAttribute(e)}},Os=function(t,e,n,r,i,a){var o=new ko(t._pt,e,n,0,1,a?os:as);return t._pt=o,o.b=r,o.e=i,t._props.push(n),o},Ms={deg:1,rad:1,turn:1},As={grid:1,flex:1},Ps=function t(e,n,r,i){var a,o,s,u,l=parseFloat(r)||0,c=(r+"").trim().substr((l+"").length)||"px",h=zo.style,f=Jo.test(n),d="svg"===e.tagName.toLowerCase(),p=(d?"client":"offset")+(f?"Width":"Height"),g=100,v="px"===i,m="%"===i;return i===c||!l||Ms[i]||Ms[c]?l:("px"!==c&&!v&&(l=t(e,n,r,"px")),u=e.getCTM&&Cs(e),!m&&"%"!==c||!Go[n]&&!~n.indexOf("adius")?(h[f?"width":"height"]=g+(v?c:i),o=~n.indexOf("adius")||"em"===i&&e.appendChild&&!d?e:e.parentNode,u&&(o=(e.ownerSVGElement||{}).parentNode),o&&o!==Lo&&o.appendChild||(o=Lo.body),(s=o._gsap)&&m&&s.width&&f&&s.time===Ya.time&&!s.uncache?Ei(l/s.width*g):((m||"%"===c)&&!As[bs(o,"display")]&&(h.position=bs(e,"position")),o===e&&(h.position="static"),o.appendChild(zo),a=zo[p],o.removeChild(zo),h.position="absolute",f&&m&&((s=Ti(o)).time=Ya.time,s.width=o[p]),Ei(v?a*l/g:a&&l?g/a*l:0))):(a=u?e.getBBox()[f?"width":"height"]:e[p],Ei(m?l/a*g:l/100*a)))},Bs=function(t,e,n,r){var i;return Ho||Ss(),e in ts&&"transform"!==e&&~(e=ts[e]).indexOf(",")&&(e=e.split(",")[0]),Go[e]&&"transform"!==e?(i=Us(t,r),i="transformOrigin"!==e?i[e]:i.svg?i.origin:Ws(bs(t,ps))+" "+i.zOrigin+"px"):(!(i=t.style[e])||"auto"===i||r||~(i+"").indexOf("calc("))&&(i=Is[e]&&Is[e](t,e,n)||bs(t,e)||ki(t,e)||("opacity"===e?1:0)),n&&!~(i+"").trim().indexOf(" ")?Ps(t,e,i,n)+n:i},Rs=function(t,e,n,r){if(!n||"none"===n){var i=Ds(e,t,1),a=i&&bs(t,i,1);a&&a!==n?(e=i,n=a):"borderColor"===e&&(n=bs(t,"borderTopColor"))}var o,s,u,l,c,h,f,d,p,g,v,m=new ko(this._pt,t.style,e,0,1,bo),y=0,_=0;if(m.b=n,m.e=r,n+="","auto"===(r+="")&&(t.style[e]=r,r=bs(t,e)||r,t.style[e]=n),Fa(o=[n,r]),r=o[1],u=(n=o[0]).match(ei)||[],(r.match(ei)||[]).length){for(;s=ei.exec(r);)f=s[0],p=r.substring(y,s.index),c?c=(c+1)%5:"rgba("!==p.substr(-5)&&"hsla("!==p.substr(-5)||(c=1),f!==(h=u[_++]||"")&&(l=parseFloat(h)||0,v=h.substr((l+"").length),"="===f.charAt(1)&&(f=Mi(l,f)+v),d=parseFloat(f),g=f.substr((d+"").length),y=ei.lastIndex-g.length,g||(g=g||Br.units[e]||v,y===r.length&&(r+=g,m.e+=g)),v!==g&&(l=Ps(t,e,h,g)||0),m._pt={_next:m._pt,p:p||1===_?p:",",s:l,c:d-l,m:c&&c<4||"zIndex"===e?Math.round:0});m.c=y<r.length?r.substring(y,r.length):""}else m.r="display"===e&&"none"===r?os:as;return ri.test(r)&&(m.e=0),this._pt=m,m},Ns={top:"0%",bottom:"100%",left:"0%",right:"100%",center:"50%"},Vs=function(t,e){if(e.tween&&e.tween._time===e.tween._dur){var n,r,i,a=e.t,o=a.style,s=e.u,u=a._gsap;if("all"===s||!0===s)o.cssText="",r=1;else for(i=(s=s.split(",")).length;--i>-1;)n=s[i],Go[n]&&(r=1,n="transformOrigin"===n?ps:ds),Es(a,n);r&&(Es(a,ds),u&&(u.svg&&a.removeAttribute("transform"),Us(a,1),u.uncache=1,vs(o)))}},Is={clearProps:function(t,e,n,r,i){if("isFromStart"!==i.data){var a=t._pt=new ko(t._pt,e,n,0,0,Vs);return a.u=r,a.pr=-10,a.tween=i,t._props.push(n),1}}},Fs=[1,0,0,1,0,0],Ys={},Ls=function(t){return"matrix(1, 0, 0, 1, 0, 0)"===t||"none"===t||!t},js=function(t){var e=bs(t,ds);return Ls(e)?Fs:e.substr(7).match(ti).map(Ei)},Hs=function(t,e){var n,r,i,a,o=t._gsap||Ti(t),s=t.style,u=js(t);return o.svg&&t.getAttribute("transform")?"1,0,0,1,0,0"===(u=[(i=t.transform.baseVal.consolidate().matrix).a,i.b,i.c,i.d,i.e,i.f]).join(",")?Fs:u:(u!==Fs||t.offsetParent||t===jo||o.svg||(i=s.display,s.display="block",(n=t.parentNode)&&t.offsetParent||(a=1,r=t.nextElementSibling,jo.appendChild(t)),u=js(t),i?s.display=i:Es(t,"display"),a&&(r?n.insertBefore(t,r):n?n.appendChild(t):jo.removeChild(t))),e&&u.length>6?[u[0],u[1],u[4],u[5],u[12],u[13]]:u)},zs=function(t,e,n,r,i,a){var o,s,u,l=t._gsap,c=i||Hs(t,!0),h=l.xOrigin||0,f=l.yOrigin||0,d=l.xOffset||0,p=l.yOffset||0,g=c[0],v=c[1],m=c[2],y=c[3],_=c[4],b=c[5],w=e.split(" "),D=parseFloat(w[0])||0,S=parseFloat(w[1])||0;n?c!==Fs&&(s=g*y-v*m)&&(u=D*(-v/s)+S*(g/s)-(g*b-v*_)/s,D=D*(y/s)+S*(-m/s)+(m*b-y*_)/s,S=u):(D=(o=ks(t)).x+(~w[0].indexOf("%")?D/100*o.width:D),S=o.y+(~(w[1]||w[0]).indexOf("%")?S/100*o.height:S)),r||!1!==r&&l.smooth?(_=D-h,b=S-f,l.xOffset=d+(_*g+b*m)-_,l.yOffset=p+(_*v+b*y)-b):l.xOffset=l.yOffset=0,l.xOrigin=D,l.yOrigin=S,l.smooth=!!r,l.origin=e,l.originIsAbsolute=!!n,t.style[ps]="0px 0px",a&&(Os(a,l,"xOrigin",h,D),Os(a,l,"yOrigin",f,S),Os(a,l,"xOffset",d,l.xOffset),Os(a,l,"yOffset",p,l.yOffset)),t.setAttribute("data-svg-origin",D+" "+S)},Us=function(t,e){var n=t._gsap||new Ja(t);if("x"in n&&!e&&!n.uncache)return n;var r,i,a,o,s,u,l,c,h,f,d,p,g,v,m,y,_,b,w,D,S,x,T,k,C,E,O,M,A,P,B,R,N=t.style,V=n.scaleX<0,I="px",F="deg",Y=getComputedStyle(t),L=bs(t,ps)||"0";return r=i=a=u=l=c=h=f=d=0,o=s=1,n.svg=!(!t.getCTM||!Cs(t)),Y.translate&&("none"===Y.translate&&"none"===Y.scale&&"none"===Y.rotate||(N[ds]=("none"!==Y.translate?"translate3d("+(Y.translate+" 0 0").split(" ").slice(0,3).join(", ")+") ":"")+("none"!==Y.rotate?"rotate("+Y.rotate+") ":"")+("none"!==Y.scale?"scale("+Y.scale.split(" ").join(",")+") ":"")+("none"!==Y[ds]?Y[ds]:"")),N.scale=N.rotate=N.translate="none"),v=Hs(t,n.svg),n.svg&&(n.uncache?(C=t.getBBox(),L=n.xOrigin-C.x+"px "+(n.yOrigin-C.y)+"px",k=""):k=!e&&t.getAttribute("data-svg-origin"),zs(t,k||L,!!k||n.originIsAbsolute,!1!==n.smooth,v)),p=n.xOrigin||0,g=n.yOrigin||0,v!==Fs&&(b=v[0],w=v[1],D=v[2],S=v[3],r=x=v[4],i=T=v[5],6===v.length?(o=Math.sqrt(b*b+w*w),s=Math.sqrt(S*S+D*D),u=b||w?Xo(w,b)*Ko:0,(h=D||S?Xo(D,S)*Ko+u:0)&&(s*=Math.abs(Math.cos(h*Zo))),n.svg&&(r-=p-(p*b+g*D),i-=g-(p*w+g*S))):(R=v[6],P=v[7],O=v[8],M=v[9],A=v[10],B=v[11],r=v[12],i=v[13],a=v[14],l=(m=Xo(R,A))*Ko,m&&(k=x*(y=Math.cos(-m))+O*(_=Math.sin(-m)),C=T*y+M*_,E=R*y+A*_,O=x*-_+O*y,M=T*-_+M*y,A=R*-_+A*y,B=P*-_+B*y,x=k,T=C,R=E),c=(m=Xo(-D,A))*Ko,m&&(y=Math.cos(-m),B=S*(_=Math.sin(-m))+B*y,b=k=b*y-O*_,w=C=w*y-M*_,D=E=D*y-A*_),u=(m=Xo(w,b))*Ko,m&&(k=b*(y=Math.cos(m))+w*(_=Math.sin(m)),C=x*y+T*_,w=w*y-b*_,T=T*y-x*_,b=k,x=C),l&&Math.abs(l)+Math.abs(u)>359.9&&(l=u=0,c=180-c),o=Ei(Math.sqrt(b*b+w*w+D*D)),s=Ei(Math.sqrt(T*T+R*R)),m=Xo(x,T),h=Math.abs(m)>2e-4?m*Ko:0,d=B?1/(B<0?-B:B):0),n.svg&&(k=t.getAttribute("transform"),n.forceCSS=t.setAttribute("transform","")||!Ls(bs(t,ds)),k&&t.setAttribute("transform",k))),Math.abs(h)>90&&Math.abs(h)<270&&(V?(o*=-1,h+=u<=0?180:-180,u+=u<=0?180:-180):(s*=-1,h+=h<=0?180:-180)),e=e||n.uncache,n.x=r-((n.xPercent=r&&(!e&&n.xPercent||(Math.round(t.offsetWidth/2)===Math.round(-r)?-50:0)))?t.offsetWidth*n.xPercent/100:0)+I,n.y=i-((n.yPercent=i&&(!e&&n.yPercent||(Math.round(t.offsetHeight/2)===Math.round(-i)?-50:0)))?t.offsetHeight*n.yPercent/100:0)+I,n.z=a+I,n.scaleX=Ei(o),n.scaleY=Ei(s),n.rotation=Ei(u)+F,n.rotationX=Ei(l)+F,n.rotationY=Ei(c)+F,n.skewX=h+F,n.skewY=f+F,n.transformPerspective=d+I,(n.zOrigin=parseFloat(L.split(" ")[2])||0)&&(N[ps]=Ws(L)),n.xOffset=n.yOffset=0,n.force3D=Br.force3D,n.renderTransform=n.svg?Js:qo?$s:Gs,n.uncache=0,n},Ws=function(t){return(t=t.split(" "))[0]+" "+t[1]},qs=function(t,e,n){var r=ha(e);return Ei(parseFloat(e)+parseFloat(Ps(t,"x",n+"px",r)))+r},Gs=function(t,e){e.z="0px",e.rotationY=e.rotationX="0deg",e.force3D=0,$s(t,e)},Ks="0deg",Zs="0px",Xs=") ",$s=function(t,e){var n=e||this,r=n.xPercent,i=n.yPercent,a=n.x,o=n.y,s=n.z,u=n.rotation,l=n.rotationY,c=n.rotationX,h=n.skewX,f=n.skewY,d=n.scaleX,p=n.scaleY,g=n.transformPerspective,v=n.force3D,m=n.target,y=n.zOrigin,_="",b="auto"===v&&t&&1!==t||!0===v;if(y&&(c!==Ks||l!==Ks)){var w,D=parseFloat(l)*Zo,S=Math.sin(D),x=Math.cos(D);D=parseFloat(c)*Zo,w=Math.cos(D),a=qs(m,a,S*w*-y),o=qs(m,o,-Math.sin(D)*-y),s=qs(m,s,x*w*-y+y)}g!==Zs&&(_+="perspective("+g+Xs),(r||i)&&(_+="translate("+r+"%, "+i+"%) "),(b||a!==Zs||o!==Zs||s!==Zs)&&(_+=s!==Zs||b?"translate3d("+a+", "+o+", "+s+") ":"translate("+a+", "+o+Xs),u!==Ks&&(_+="rotate("+u+Xs),l!==Ks&&(_+="rotateY("+l+Xs),c!==Ks&&(_+="rotateX("+c+Xs),h===Ks&&f===Ks||(_+="skew("+h+", "+f+Xs),1===d&&1===p||(_+="scale("+d+", "+p+Xs),m.style[ds]=_||"translate(0, 0)"},Js=function(t,e){var n,r,i,a,o,s=e||this,u=s.xPercent,l=s.yPercent,c=s.x,h=s.y,f=s.rotation,d=s.skewX,p=s.skewY,g=s.scaleX,v=s.scaleY,m=s.target,y=s.xOrigin,_=s.yOrigin,b=s.xOffset,w=s.yOffset,D=s.forceCSS,S=parseFloat(c),x=parseFloat(h);f=parseFloat(f),d=parseFloat(d),(p=parseFloat(p))&&(d+=p=parseFloat(p),f+=p),f||d?(f*=Zo,d*=Zo,n=Math.cos(f)*g,r=Math.sin(f)*g,i=Math.sin(f-d)*-v,a=Math.cos(f-d)*v,d&&(p*=Zo,o=Math.tan(d-p),i*=o=Math.sqrt(1+o*o),a*=o,p&&(o=Math.tan(p),n*=o=Math.sqrt(1+o*o),r*=o)),n=Ei(n),r=Ei(r),i=Ei(i),a=Ei(a)):(n=g,a=v,r=i=0),(S&&!~(c+"").indexOf("px")||x&&!~(h+"").indexOf("px"))&&(S=Ps(m,"x",c,"px"),x=Ps(m,"y",h,"px")),(y||_||b||w)&&(S=Ei(S+y-(y*n+_*i)+b),x=Ei(x+_-(y*r+_*a)+w)),(u||l)&&(o=m.getBBox(),S=Ei(S+u/100*o.width),x=Ei(x+l/100*o.height)),o="matrix("+n+","+r+","+i+","+a+","+S+","+x+")",m.setAttribute("transform",o),D&&(m.style[ds]=o)},Qs=function(t,e,n,r,i){var a,o,s=360,u=zr(i),l=parseFloat(i)*(u&&~i.indexOf("rad")?Ko:1)-r,c=r+l+"deg";return u&&("short"===(a=i.split("_")[1])&&(l%=s)!==l%180&&(l+=l<0?s:-360),"cw"===a&&l<0?l=(l+36e9)%s-~~(l/s)*s:"ccw"===a&&l>0&&(l=(l-36e9)%s-~~(l/s)*s)),t._pt=o=new ko(t._pt,e,n,r,l,ns),o.e=c,o.u="deg",t._props.push(n),o},tu=function(t,e){for(var n in e)t[n]=e[n];return t},eu=function(t,e,n){var r,i,a,o,s,u,l,c=tu({},n._gsap),h=n.style;for(i in c.svg?(a=n.getAttribute("transform"),n.setAttribute("transform",""),h[ds]=e,r=Us(n,1),Es(n,ds),n.setAttribute("transform",a)):(a=getComputedStyle(n)[ds],h[ds]=e,r=Us(n,1),h[ds]=a),Go)(a=c[i])!==(o=r[i])&&"perspective,force3D,transformOrigin,svgOrigin".indexOf(i)<0&&(s=ha(a)!==(l=ha(o))?Ps(n,i,a,l):parseFloat(a),u=parseFloat(o),t._pt=new ko(t._pt,r,i,s,u-s,es),t._pt.u=l||0,t._props.push(i));tu(r,c)};Ci("padding,margin,Width,Radius",(function(t,e){var n="Top",r="Right",i="Bottom",a="Left",o=(e<3?[n,r,i,a]:[n+a,n+r,i+r,i+a]).map((function(n){return e<2?t+n:"border"+n+t}));Is[e>1?"border"+t:t]=function(t,e,n,r,i){var a,s;if(arguments.length<4)return a=o.map((function(e){return Bs(t,e,n)})),5===(s=a.join(" ")).split(a[0]).length?a[0]:s;a=(r+"").split(" "),s={},o.forEach((function(t,e){return s[t]=a[e]=a[e]||a[(e-1)/2|0]})),t.init(e,s,i)}}));var nu,ru,iu,au={name:"css",register:Ss,targetTest:function(t){return t.style&&t.nodeType},init:function(t,e,n,r,i){var a,o,s,u,l,c,h,f,d,p,g,v,m,y,_,b,w,D,S,x,T=this._props,k=t.style,C=n.vars.startAt;for(h in Ho||Ss(),this.styles=this.styles||ys(t),b=this.styles.props,this.tween=n,e)if("autoRound"!==h&&(o=e[h],!_i[h]||!ao(h,e,n,r,t,i)))if(l=typeof o,c=Is[h],"function"===l&&(l=typeof(o=o.call(n,r,t,i))),"string"===l&&~o.indexOf("random(")&&(o=Sa(o)),c)c(this,t,h,o,n)&&(_=1);else if("--"===h.substr(0,2))a=(getComputedStyle(t).getPropertyValue(h)+"").trim(),o+="",Va.lastIndex=0,Va.test(a)||(f=ha(a),d=ha(o)),d?f!==d&&(a=Ps(t,h,a,d)+d):f&&(o+=f),this.add(k,"setProperty",a,o,r,i,0,0,h),T.push(h),b.push(h,0,k[h]);else if("undefined"!==l){if(C&&h in C?(a="function"==typeof C[h]?C[h].call(n,r,t,i):C[h],zr(a)&&~a.indexOf("random(")&&(a=Sa(a)),ha(a+"")||(a+=Br.units[h]||ha(Bs(t,h))||""),"="===(a+"").charAt(1)&&(a=Bs(t,h))):a=Bs(t,h),u=parseFloat(a),(p="string"===l&&"="===o.charAt(1)&&o.substr(0,2))&&(o=o.substr(2)),s=parseFloat(o),h in ts&&("autoAlpha"===h&&(1===u&&"hidden"===Bs(t,"visibility")&&s&&(u=0),b.push("visibility",0,k.visibility),Os(this,k,"visibility",u?"inherit":"hidden",s?"inherit":"hidden",!s)),"scale"!==h&&"transform"!==h&&~(h=ts[h]).indexOf(",")&&(h=h.split(",")[0])),g=h in Go)if(this.styles.save(h),v||((m=t._gsap).renderTransform&&!e.parseTransform||Us(t,e.parseTransform),y=!1!==e.smoothOrigin&&m.smooth,(v=this._pt=new ko(this._pt,k,ds,0,1,m.renderTransform,m,0,-1)).dep=1),"scale"===h)this._pt=new ko(this._pt,m,"scaleY",m.scaleY,(p?Mi(m.scaleY,p+s):s)-m.scaleY||0,es),this._pt.u=0,T.push("scaleY",h),h+="X";else{if("transformOrigin"===h){b.push(ps,0,k[ps]),D=void 0,S=void 0,x=void 0,D=(w=o).split(" "),S=D[0],x=D[1]||"50%","top"!==S&&"bottom"!==S&&"left"!==x&&"right"!==x||(w=S,S=x,x=w),D[0]=Ns[S]||S,D[1]=Ns[x]||x,o=D.join(" "),m.svg?zs(t,o,0,y,0,this):((d=parseFloat(o.split(" ")[2])||0)!==m.zOrigin&&Os(this,m,"zOrigin",m.zOrigin,d),Os(this,k,h,Ws(a),Ws(o)));continue}if("svgOrigin"===h){zs(t,o,1,y,0,this);continue}if(h in Ys){Qs(this,m,h,u,p?Mi(u,p+o):o);continue}if("smoothOrigin"===h){Os(this,m,"smooth",m.smooth,o);continue}if("force3D"===h){m[h]=o;continue}if("transform"===h){eu(this,o,t);continue}}else h in k||(h=Ds(h)||h);if(g||(s||0===s)&&(u||0===u)&&!Qo.test(o)&&h in k)s||(s=0),(f=(a+"").substr((u+"").length))!==(d=ha(o)||(h in Br.units?Br.units[h]:f))&&(u=Ps(t,h,a,d)),this._pt=new ko(this._pt,g?m:k,h,u,(p?Mi(u,p+s):s)-u,g||"px"!==d&&"zIndex"!==h||!1===e.autoRound?es:is),this._pt.u=d||0,f!==d&&"%"!==d&&(this._pt.b=a,this._pt.r=rs);else if(h in k)Rs.call(this,t,h,a,p?p+o:o);else if(h in t)this.add(t,h,a||t[h],p?p+o:o,r,i);else if("parseTransform"!==h){li(h,o);continue}g||(h in k?b.push(h,0,k[h]):b.push(h,1,a||t[h])),T.push(h)}_&&To(this)},render:function(t,e){if(e.tween._time||!Wo())for(var n=e._pt;n;)n.r(t,n.d),n=n._next;else e.styles.revert()},get:Bs,aliases:ts,getSetter:function(t,e,n){var r=ts[e];return r&&r.indexOf(",")<0&&(e=r),e in Go&&e!==ps&&(t._gsap.x||Bs(t,"x"))?n&&Uo===n?"scale"===e?cs:ls:(Uo=n||{})&&("scale"===e?hs:fs):t.style&&!qr(t.style[e])?ss:~e.indexOf("-")?us:mo(t,e)},core:{_removeProperty:Es,_getMatrix:Hs}};Fo.utils.checkPrefix=Ds,Fo.core.getStyleSaver=ys,iu=Ci((nu="x,y,z,scale,scaleX,scaleY,xPercent,yPercent")+","+(ru="rotation,rotationX,rotationY,skewX,skewY")+",transform,transformOrigin,svgOrigin,force3D,smoothOrigin,transformPerspective",(function(t){Go[t]=1})),Ci(ru,(function(t){Br.units[t]="deg",Ys[t]=1})),ts[iu[13]]=nu+","+ru,Ci("0:translateX,1:translateY,2:translateZ,8:rotate,8:rotationZ,8:rotateZ,9:rotateX,10:rotateY",(function(t){var e=t.split(":");ts[e[1]]=iu[e[0]]})),Ci("x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective",(function(t){Br.units[t]="px"})),Fo.registerPlugin(au);var ou=Fo.registerPlugin(au)||Fo;ou.core.Tween;var su=function(){function e(){this.startPoisiton={x:0,y:0},this.endPoisiton={x:1920,y:0},this.curtain={width:1920,height:1080},this.totalTime=5,this.timeLine=ou.timeline()}return e.getInstance=function(){return this.instance||(this.instance=new e),this.instance},e.prototype.init=function(t,e){var n;null===(n=this.timeLine)||void 0===n||n.clear();var r=e.curtain,i=e.totalTime,a=e.admissionMode;i&&(this.totalTime=i),this.setEndPoisiton(r);var o=this.filterData(t,a);this.goAnimationParams=e;for(var s=0;s<o.length;s++){var u=o[s];if(u instanceof Array)for(var l=0;l<u.length;l++){var c=this.totalTime/u.length,h=u[l],f=this._creatTl("#wrap"+h.cid);this._add(f,l*c)}else{c=this.totalTime/o.length,f=this._creatTl("#wrap"+u.cid);this._add(f,s*c)}}return this.timeLine},e.prototype.filterData=function(e,n){var r;if("left"==n)r=t.orderBy(e,["baseData.left"],["asc"]);else if("top"==n)r=t.orderBy(e,["baseData.top"],["asc"]);else if("topLeft"==n){var i=this.setSpacing(e,"left");r=t.orderBy(i,["spacing"],["asc"])}else if("topRight"==n){var a=this.setSpacing(e,"right");r=t.orderBy(a,["spacing"],["asc"])}else if("center"==n){var o=this.splitArrayForCenter(e,"left");r=[t.orderBy(o.true,["center.x"],["asc"]),t.orderBy(o.false,["center.x"],["desc"])]}else if("spaceBetween"==n){o=this.splitArrayForCenter(e,"left");r=[t.orderBy(o.true,["center.x"],["desc"]),t.orderBy(o.false,["center.x"],["asc"])]}else r=t.orderBy(e,["baseData.left"],["asc"]);return r},e.prototype.getSpacing=function(t,e){var n=t.x,r=t.y,i=e.x,a=e.y,o=Math.abs(n-i),s=Math.abs(r-a);return Math.sqrt(o*o+s*s)},e.prototype.creatPosition=function(t,e){var n=0,r=0;return t?("left"===e?(n=t.left,r=t.top):"right"===e&&(n=t.left+t.width,r=t.top),{x:n,y:r}):{x:n,y:r}},e.prototype.setEndPoisiton=function(t){if(t){var e=t.width,n=t.height;this.curtain=t,this.endPoisiton.x=e,this.endPoisiton.y=n}},e.prototype.setSpacing=function(t,e){var n,r=this;return"left"===e?n=this.startPoisiton:"right"===e&&(n=this.endPoisiton),t.forEach((function(t){var i=t.baseData;if(i){var a=r.creatPosition(i,e),o=r.getSpacing(a,n);t.spacing=o}})),t},e.prototype.setCenter=function(t){return t.forEach((function(t){if(t.baseData){var e=t.baseData.left+t.baseData.width/2,n=t.baseData.top+t.baseData.height/2;t.center={x:e,y:n}}})),t},e.prototype.splitArrayForCenter=function(e,n){var r,i=this,a=this.setCenter(e);return"left"!=n&&"right"!=n||(r=t.groupBy(a,(function(t){return t.center.x>=i.curtain.width/2}))),"top"!=n&&"bottom"!=n||(r=t.groupBy(a,(function(t){return t.center.y>=i.curtain.height/2}))),r},e.prototype._add=function(t,e){this.timeLine.add(t,e)},e.prototype._creatTl=function(t){var e=ou.timeline();return e.add(this._creatTw(t)),e},e.prototype._creatTw=function(t){var e=this.goAnimationParams.params,n=e.delay,r=e.duration,i=e.repeat,a=e.type,o=e.value;return o&&o.length&&o.forEach((function(t){t.delay=n||0,t.repeat=i||0})),ou[a](t,r,o[0],o[1])},e.prototype.in=function(){},e.prototype.out=function(){},e}(),uu=su.getInstance();var lu=function(){function e(t){this.root=null,this.vuex=gr.getInstance().VueServer,this.eventType=new Map,(null==t?void 0:t.root)&&(this.root=t.root);var e={setGlobalVar:this.setGlobalVar.bind(this),showComponent:this._showComponent.bind(this),hideComponent:this._hideComponent.bind(this),pageChange:this.pageChange.bind(this),changeDynamicState:this.changeDynamicState.bind(this)};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&this.eventType.set(n,[e[n]])}return e.prototype.findComponentDownward=function(t,e){var n=t.$children;if(n.length)for(var r=0,i=n;r<i.length;r++){var a=i[r];a.$options&&a.$options.propsData&&a.$options.propsData.cid&&(e[a.$options.propsData.cid]=a),a.$children&&a.$children.length&&this.findComponentDownward(a,e)}return e},e.prototype.getAllComponents=function(){var t={};return this.findComponentDownward(this.root,t),t},e.prototype.getComponentByCid=function(t){try{var e=this.getAllComponents()[t];if(!e)throw new Error("The instance was not found");return e}catch(t){console.warn(t)}},e.prototype.getElementByCid=function(t){try{if(!t)throw new Error("Please input the parameters correctly");var e=this.getComponentByCid(t);if(!e)throw new Error("The element was not found");return e.$el}catch(t){console.warn(t)}},e.prototype.setGlobalVar=function(t){try{var e=t.key,n=t.value;if(!(t&&e&&n))throw new Error("An error occurred. Please check whether the incoming parameters are correct! The correct format of data is an object containing key and value");this.setVars(t)}catch(t){console.warn(t)}},e.prototype._showComponent=function(t){try{if(!t)throw new Error("Please input the parameters correctly");this.changeVis({cid:t,flag:!0})}catch(t){console.warn(t)}},e.prototype._hideComponent=function(t){try{if(!t)throw new Error("Please input the parameters correctly");this.changeVis({cid:t,flag:!1})}catch(t){console.warn(t)}},e.prototype.getList=function(t){return t&&"id"===t?this.vuex.callState("list").map((function(t){return t.cid})):this.vuex.callState("list")},e.prototype.getTheme=function(t){var e=this.vuex.callState("theme");return t&&t(e),e},e.prototype.getElement=function(e){var n=function(e,n,r){var i=!1,a=function(e){for(var o=0;o<e.length;o++){if(e[o].cid==n){i=e[o],r&&t.remove(e,(function(t){return t.cid==n}));break}if(e[o].children)a(e[o].children);else if(e[o].dynamicChildren){if(e[o].dynamicChildren instanceof Map){for(var s=Array.from(e[o].dynamicChildren),u=0;u<s.length;u++)if(s[u]instanceof Array){var l=s[u][1];a(l)}}else if(e[o].dynamicChildren instanceof Array)for(s=e[o].dynamicChildren,u=0;u<s.length;u++)s[u]instanceof Array&&(l=s[u][1],a(l))}else e[o].stateChildren&&a(e[o].stateChildren)}};return a(e),i||!1}(this.vuex.callState("list"),e);return n},e.prototype.changeVis=function(t){return this.vuex.callMutation("changeShow",t)},e.prototype.comToggle=function(t){return this.vuex.callMutation("comToggle",t)},e.prototype.getPageInfo=function(t){var e=this.vuex.callState("caseInfo");return t&&t(e),(null==e?void 0:e.details)?e.details.map((function(t){return{name:t.caseDetailName,path:t.caseDetailPath,id:t.id}})):e},e.prototype.updateComp=function(t){return this.vuex.callMutation("updatComs",t)},e.prototype.changeDynamicState=function(t){return this.vuex.callMutation("changeDynamicState",t)},e.prototype.pageChange=function(t){return this.vuex.callMutation("setPageId",t)},e.prototype.pagePush=function(t,e,n){return void 0===n&&(n={}),this.vuex.callMutation("pagePush",{type:t,value:e,option:n})},e.prototype.activeState=function(t,e){return this.vuex.callMutation("setDynamicActive",{cid:t,name:e})},e.prototype.getVars=function(t){var e=this.vuex.callState("globalVars");return t&&t(e),e},e.prototype.setVars=function(t){return this.vuex.callAction("goEditVar",t)},e}(),cu=function(t){function e(e){var n,r,i=t.call(this,e)||this,a=(n=(n=i.eventType)||new Map,u(u({},r),{EventType:n,on:function(t,e){var r=n.get(t);r?r.push(e):n.set(t,[e])},off:function(t,e){var r=n.get(t);r&&(e?r.splice(r.indexOf(e)>>>0,1):n.set(t,[]))},emit:function(t,e){var r=n.get(t);if(r){var i=r.slice().map((function(t){return t(e)}));if(i&&1==i.length)return i[0]}(r=n.get("*"))&&r.slice().map((function(n){n(t,e)}))}}));return i.$emit=a.emit,i.$on=a.on,i.$off=a.off,i}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}s(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}(e,t),Object.defineProperty(e.prototype,"Theme",{get:function(){return this.getTheme()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"Components",{get:function(){return this.getAllComponents()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"GlobalVars",{get:function(){return this.getVars()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"Pages",{get:function(){return this.getPageInfo()},enumerable:!1,configurable:!0}),e.prototype.getElementById=function(t){this.getElementByCid(t)},e.prototype.getComponentById=function(t){this.getComponentByCid(t)},e.prototype.getPage=function(){},e}(lu),hu=function(t){var e=new cu(t);return{setGlobalVars:function(t,n){if(!t||"string"!=typeof t)throw new Error("Invalid key");e.setGlobalVar({key:t,value:n})},skipTo:function(t){if(!t||0===Object.keys(t).length)throw new Error("事件跳转发生错误:参数:".concat(t," 不正确,请正确填写!doc: https://anov.cucloud.cn/anov-go-doc/"));if(t.name)e.pagePush("name",t.name);else if(t.path)e.pagePush("path",t.path);else{if(!t.url)throw new Error("事件跳转发生错误:参数:".concat(t," 不正确,请正确填写!doc: https://anov.cucloud.cn/anov-go-doc/"));window.open(t.url)}},toggle:function(t){if(t)if("string"!=typeof t&&"number"!=typeof t)if(Array.isArray(t))for(var n=0,r=t;n<r.length;n++){var i=r[n];"string"==typeof i||"number"==typeof i?e.comToggle(i):console.warn("请传入正确的参数!")}else console.warn("请传入正确的参数!");else e.comToggle(t);else console.warn("请传入正确的参数!")},show:function(t){if(t)if("string"!=typeof t&&"number"!=typeof t)if(Array.isArray(t))for(var n=0,r=t;n<r.length;n++){var i=r[n];"string"==typeof i||"number"==typeof i?e._showComponent(i.toString()):console.warn("请传入正确的参数!")}else;else e._showComponent(t.toString());else console.warn("请传入正确的参数!")},hide:function(t){if(t)if("string"!=typeof t&&"number"!=typeof t)if(Array.isArray(t))for(var n=0,r=t;n<r.length;n++){var i=r[n];"string"==typeof i||"number"==typeof i?e._hideComponent(i):console.warn("请传入正确的参数!")}else;else e._hideComponent(t);else console.warn("请传入正确的参数!")},updateComp:function(t){if(t)if("string"!=typeof t&&"number"!=typeof t)if(Array.isArray(t))for(var n=0,r=t;n<r.length;n++){var i=r[n];"string"==typeof i||"number"==typeof i?e.updateComp(i):console.warn("请传入正确的参数!")}else;else e.updateComp(t);else console.warn("请传入正确的参数!")},activeState:function(t,n){e.activeState(t,n)},run:e}},fu=function(t,e){return An(t,"GET",null,e).then((function(t){var e=JSON.parse(t.data.caseData);return gr.getInstance().reversal(e),t}))},du=function(t,e){return e&&t?gr.getInstance().render(t,e):t?gr.getInstance().render(t):void 0},pu=function(t,e,n){return void 0!==n&&t?gr.getInstance().renderForParent(t,e,n):t?gr.getInstance().renderForParent(t,e):void 0},gu=function(t,e){return gr.getInstance().emitEvent(t,e||function(){})},vu=function(t,e,n,r,i){return gr.getInstance().log(t,e,n,r,i)};export{gr as Go,uu as GoAnimation,On as Tool,du as createComponent,pu as createComponentForParent,gu as emitEvent,Kn as fxhr,An as getData,fu as getDataForRelease,vu as log,Gn as refreshData,hu as run,ir as store};
|
|
51
|
+
var Lo,jo,Ho,zo,Uo,Wo,qo,Go,Ko={},Zo=180/Math.PI,Xo=Math.PI/180,$o=Math.atan2,Jo=/([A-Z])/g,Qo=/(left|right|width|margin|padding|x)/i,ts=/[\s,\(]\S/,es={autoAlpha:"opacity,visibility",scale:"scaleX,scaleY",alpha:"opacity"},ns=function(t,e){return e.set(e.t,e.p,Math.round(1e4*(e.s+e.c*t))/1e4+e.u,e)},rs=function(t,e){return e.set(e.t,e.p,1===t?e.e:Math.round(1e4*(e.s+e.c*t))/1e4+e.u,e)},is=function(t,e){return e.set(e.t,e.p,t?Math.round(1e4*(e.s+e.c*t))/1e4+e.u:e.b,e)},as=function(t,e){var n=e.s+e.c*t;e.set(e.t,e.p,~~(n+(n<0?-.5:.5))+e.u,e)},os=function(t,e){return e.set(e.t,e.p,t?e.e:e.b,e)},ss=function(t,e){return e.set(e.t,e.p,1!==t?e.b:e.e,e)},us=function(t,e,n){return t.style[e]=n},ls=function(t,e,n){return t.style.setProperty(e,n)},cs=function(t,e,n){return t._gsap[e]=n},hs=function(t,e,n){return t._gsap.scaleX=t._gsap.scaleY=n},fs=function(t,e,n,r,i){var a=t._gsap;a.scaleX=a.scaleY=n,a.renderTransform(i,a)},ds=function(t,e,n,r,i){var a=t._gsap;a[e]=n,a.renderTransform(i,a)},ps="transform",gs=ps+"Origin",ms=function t(e,n){var r=this,i=this.target,a=i.style;if(e in Ko){if(this.tfm=this.tfm||{},"transform"===e)return es.transform.split(",").forEach((function(e){return t.call(r,e,n)}));if(~(e=es[e]||e).indexOf(",")?e.split(",").forEach((function(t){return r.tfm[t]=Rs(i,t)})):this.tfm[e]=i._gsap.x?i._gsap[e]:Rs(i,e),this.props.indexOf(ps)>=0)return;i._gsap.svg&&(this.svgo=i.getAttribute("data-svg-origin"),this.props.push(gs,n,"")),e=ps}(a||n)&&this.props.push(e,n,a[e])},vs=function(t){t.translate&&(t.removeProperty("translate"),t.removeProperty("scale"),t.removeProperty("rotate"))},ys=function(){var t,e,n=this.props,r=this.target,i=r.style,a=r._gsap;for(t=0;t<n.length;t+=3)n[t+1]?r[n[t]]=n[t+2]:n[t+2]?i[n[t]]=n[t+2]:i.removeProperty("--"===n[t].substr(0,2)?n[t]:n[t].replace(Jo,"-$1").toLowerCase());if(this.tfm){for(e in this.tfm)a[e]=this.tfm[e];a.svg&&(a.renderTransform(),r.setAttribute("data-svg-origin",this.svgo||"")),(t=qo())&&t.isStart||i[ps]||(vs(i),a.uncache=1)}},_s=function(t,e){var n={target:t,props:[],revert:ys,save:ms};return t._gsap||Yo.core.getCache(t),e&&e.split(",").forEach((function(t){return n.save(t)})),n},bs=function(t,e){var n=jo.createElementNS?jo.createElementNS((e||"http://www.w3.org/1999/xhtml").replace(/^https/,"http"),t):jo.createElement(t);return n.style?n:jo.createElement(t)},ws=function t(e,n,r){var i=getComputedStyle(e);return i[n]||i.getPropertyValue(n.replace(Jo,"-$1").toLowerCase())||i.getPropertyValue(n)||!r&&t(e,Ss(n)||n,1)||""},Ds="O,Moz,ms,Ms,Webkit".split(","),Ss=function(t,e,n){var r=(e||Uo).style,i=5;if(t in r&&!n)return t;for(t=t.charAt(0).toUpperCase()+t.substr(1);i--&&!(Ds[i]+t in r););return i<0?null:(3===i?"ms":i>=0?Ds[i]:"")+t},xs=function(){"undefined"!=typeof window&&window.document&&(Lo=window,jo=Lo.document,Ho=jo.documentElement,Uo=bs("div")||{style:{}},bs("div"),ps=Ss(ps),gs=ps+"Origin",Uo.style.cssText="border-width:0;line-height:0;position:absolute;padding:0",Go=!!Ss("perspective"),qo=Yo.core.reverting,zo=1)},Ts=function t(e){var n,r=bs("svg",this.ownerSVGElement&&this.ownerSVGElement.getAttribute("xmlns")||"http://www.w3.org/2000/svg"),i=this.parentNode,a=this.nextSibling,o=this.style.cssText;if(Ho.appendChild(r),r.appendChild(this),this.style.display="block",e)try{n=this.getBBox(),this._gsapBBox=this.getBBox,this.getBBox=t}catch(t){}else this._gsapBBox&&(n=this._gsapBBox());return i&&(a?i.insertBefore(this,a):i.appendChild(this)),Ho.removeChild(r),this.style.cssText=o,n},ks=function(t,e){for(var n=e.length;n--;)if(t.hasAttribute(e[n]))return t.getAttribute(e[n])},Cs=function(t){var e;try{e=t.getBBox()}catch(n){e=Ts.call(t,!0)}return e&&(e.width||e.height)||t.getBBox===Ts||(e=Ts.call(t,!0)),!e||e.width||e.x||e.y?e:{x:+ks(t,["x","cx","x1"])||0,y:+ks(t,["y","cy","y1"])||0,width:0,height:0}},Es=function(t){return!(!t.getCTM||t.parentNode&&!t.ownerSVGElement||!Cs(t))},Ms=function(t,e){if(e){var n=t.style;e in Ko&&e!==gs&&(e=ps),n.removeProperty?("ms"!==e.substr(0,2)&&"webkit"!==e.substr(0,6)||(e="-"+e),n.removeProperty(e.replace(Jo,"-$1").toLowerCase())):n.removeAttribute(e)}},Os=function(t,e,n,r,i,a){var o=new Co(t._pt,e,n,0,1,a?ss:os);return t._pt=o,o.b=r,o.e=i,t._props.push(n),o},As={deg:1,rad:1,turn:1},Ps={grid:1,flex:1},Bs=function t(e,n,r,i){var a,o,s,u,l=parseFloat(r)||0,c=(r+"").trim().substr((l+"").length)||"px",h=Uo.style,f=Qo.test(n),d="svg"===e.tagName.toLowerCase(),p=(d?"client":"offset")+(f?"Width":"Height"),g=100,m="px"===i,v="%"===i;return i===c||!l||As[i]||As[c]?l:("px"!==c&&!m&&(l=t(e,n,r,"px")),u=e.getCTM&&Es(e),!v&&"%"!==c||!Ko[n]&&!~n.indexOf("adius")?(h[f?"width":"height"]=g+(m?c:i),o=~n.indexOf("adius")||"em"===i&&e.appendChild&&!d?e:e.parentNode,u&&(o=(e.ownerSVGElement||{}).parentNode),o&&o!==jo&&o.appendChild||(o=jo.body),(s=o._gsap)&&v&&s.width&&f&&s.time===La.time&&!s.uncache?Mi(l/s.width*g):((v||"%"===c)&&!Ps[ws(o,"display")]&&(h.position=ws(e,"position")),o===e&&(h.position="static"),o.appendChild(Uo),a=Uo[p],o.removeChild(Uo),h.position="absolute",f&&v&&((s=ki(o)).time=La.time,s.width=o[p]),Mi(m?a*l/g:a&&l?g/a*l:0))):(a=u?e.getBBox()[f?"width":"height"]:e[p],Mi(v?l/a*g:l/100*a)))},Rs=function(t,e,n,r){var i;return zo||xs(),e in es&&"transform"!==e&&~(e=es[e]).indexOf(",")&&(e=e.split(",")[0]),Ko[e]&&"transform"!==e?(i=Ws(t,r),i="transformOrigin"!==e?i[e]:i.svg?i.origin:qs(ws(t,gs))+" "+i.zOrigin+"px"):(!(i=t.style[e])||"auto"===i||r||~(i+"").indexOf("calc("))&&(i=Fs[e]&&Fs[e](t,e,n)||ws(t,e)||Ci(t,e)||("opacity"===e?1:0)),n&&!~(i+"").trim().indexOf(" ")?Bs(t,e,i,n)+n:i},Vs=function(t,e,n,r){if(!n||"none"===n){var i=Ss(e,t,1),a=i&&ws(t,i,1);a&&a!==n?(e=i,n=a):"borderColor"===e&&(n=ws(t,"borderTopColor"))}var o,s,u,l,c,h,f,d,p,g,m,v=new Co(this._pt,t.style,e,0,1,wo),y=0,_=0;if(v.b=n,v.e=r,n+="","auto"===(r+="")&&(t.style[e]=r,r=ws(t,e)||r,t.style[e]=n),Ya(o=[n,r]),r=o[1],u=(n=o[0]).match(ni)||[],(r.match(ni)||[]).length){for(;s=ni.exec(r);)f=s[0],p=r.substring(y,s.index),c?c=(c+1)%5:"rgba("!==p.substr(-5)&&"hsla("!==p.substr(-5)||(c=1),f!==(h=u[_++]||"")&&(l=parseFloat(h)||0,m=h.substr((l+"").length),"="===f.charAt(1)&&(f=Ai(l,f)+m),d=parseFloat(f),g=f.substr((d+"").length),y=ni.lastIndex-g.length,g||(g=g||Rr.units[e]||m,y===r.length&&(r+=g,v.e+=g)),m!==g&&(l=Bs(t,e,h,g)||0),v._pt={_next:v._pt,p:p||1===_?p:",",s:l,c:d-l,m:c&&c<4||"zIndex"===e?Math.round:0});v.c=y<r.length?r.substring(y,r.length):""}else v.r="display"===e&&"none"===r?ss:os;return ii.test(r)&&(v.e=0),this._pt=v,v},Ns={top:"0%",bottom:"100%",left:"0%",right:"100%",center:"50%"},Is=function(t,e){if(e.tween&&e.tween._time===e.tween._dur){var n,r,i,a=e.t,o=a.style,s=e.u,u=a._gsap;if("all"===s||!0===s)o.cssText="",r=1;else for(i=(s=s.split(",")).length;--i>-1;)n=s[i],Ko[n]&&(r=1,n="transformOrigin"===n?gs:ps),Ms(a,n);r&&(Ms(a,ps),u&&(u.svg&&a.removeAttribute("transform"),Ws(a,1),u.uncache=1,vs(o)))}},Fs={clearProps:function(t,e,n,r,i){if("isFromStart"!==i.data){var a=t._pt=new Co(t._pt,e,n,0,0,Is);return a.u=r,a.pr=-10,a.tween=i,t._props.push(n),1}}},Ys=[1,0,0,1,0,0],Ls={},js=function(t){return"matrix(1, 0, 0, 1, 0, 0)"===t||"none"===t||!t},Hs=function(t){var e=ws(t,ps);return js(e)?Ys:e.substr(7).match(ei).map(Mi)},zs=function(t,e){var n,r,i,a,o=t._gsap||ki(t),s=t.style,u=Hs(t);return o.svg&&t.getAttribute("transform")?"1,0,0,1,0,0"===(u=[(i=t.transform.baseVal.consolidate().matrix).a,i.b,i.c,i.d,i.e,i.f]).join(",")?Ys:u:(u!==Ys||t.offsetParent||t===Ho||o.svg||(i=s.display,s.display="block",(n=t.parentNode)&&t.offsetParent||(a=1,r=t.nextElementSibling,Ho.appendChild(t)),u=Hs(t),i?s.display=i:Ms(t,"display"),a&&(r?n.insertBefore(t,r):n?n.appendChild(t):Ho.removeChild(t))),e&&u.length>6?[u[0],u[1],u[4],u[5],u[12],u[13]]:u)},Us=function(t,e,n,r,i,a){var o,s,u,l=t._gsap,c=i||zs(t,!0),h=l.xOrigin||0,f=l.yOrigin||0,d=l.xOffset||0,p=l.yOffset||0,g=c[0],m=c[1],v=c[2],y=c[3],_=c[4],b=c[5],w=e.split(" "),D=parseFloat(w[0])||0,S=parseFloat(w[1])||0;n?c!==Ys&&(s=g*y-m*v)&&(u=D*(-m/s)+S*(g/s)-(g*b-m*_)/s,D=D*(y/s)+S*(-v/s)+(v*b-y*_)/s,S=u):(D=(o=Cs(t)).x+(~w[0].indexOf("%")?D/100*o.width:D),S=o.y+(~(w[1]||w[0]).indexOf("%")?S/100*o.height:S)),r||!1!==r&&l.smooth?(_=D-h,b=S-f,l.xOffset=d+(_*g+b*v)-_,l.yOffset=p+(_*m+b*y)-b):l.xOffset=l.yOffset=0,l.xOrigin=D,l.yOrigin=S,l.smooth=!!r,l.origin=e,l.originIsAbsolute=!!n,t.style[gs]="0px 0px",a&&(Os(a,l,"xOrigin",h,D),Os(a,l,"yOrigin",f,S),Os(a,l,"xOffset",d,l.xOffset),Os(a,l,"yOffset",p,l.yOffset)),t.setAttribute("data-svg-origin",D+" "+S)},Ws=function(t,e){var n=t._gsap||new Qa(t);if("x"in n&&!e&&!n.uncache)return n;var r,i,a,o,s,u,l,c,h,f,d,p,g,m,v,y,_,b,w,D,S,x,T,k,C,E,M,O,A,P,B,R,V=t.style,N=n.scaleX<0,I="px",F="deg",Y=getComputedStyle(t),L=ws(t,gs)||"0";return r=i=a=u=l=c=h=f=d=0,o=s=1,n.svg=!(!t.getCTM||!Es(t)),Y.translate&&("none"===Y.translate&&"none"===Y.scale&&"none"===Y.rotate||(V[ps]=("none"!==Y.translate?"translate3d("+(Y.translate+" 0 0").split(" ").slice(0,3).join(", ")+") ":"")+("none"!==Y.rotate?"rotate("+Y.rotate+") ":"")+("none"!==Y.scale?"scale("+Y.scale.split(" ").join(",")+") ":"")+("none"!==Y[ps]?Y[ps]:"")),V.scale=V.rotate=V.translate="none"),m=zs(t,n.svg),n.svg&&(n.uncache?(C=t.getBBox(),L=n.xOrigin-C.x+"px "+(n.yOrigin-C.y)+"px",k=""):k=!e&&t.getAttribute("data-svg-origin"),Us(t,k||L,!!k||n.originIsAbsolute,!1!==n.smooth,m)),p=n.xOrigin||0,g=n.yOrigin||0,m!==Ys&&(b=m[0],w=m[1],D=m[2],S=m[3],r=x=m[4],i=T=m[5],6===m.length?(o=Math.sqrt(b*b+w*w),s=Math.sqrt(S*S+D*D),u=b||w?$o(w,b)*Zo:0,(h=D||S?$o(D,S)*Zo+u:0)&&(s*=Math.abs(Math.cos(h*Xo))),n.svg&&(r-=p-(p*b+g*D),i-=g-(p*w+g*S))):(R=m[6],P=m[7],M=m[8],O=m[9],A=m[10],B=m[11],r=m[12],i=m[13],a=m[14],l=(v=$o(R,A))*Zo,v&&(k=x*(y=Math.cos(-v))+M*(_=Math.sin(-v)),C=T*y+O*_,E=R*y+A*_,M=x*-_+M*y,O=T*-_+O*y,A=R*-_+A*y,B=P*-_+B*y,x=k,T=C,R=E),c=(v=$o(-D,A))*Zo,v&&(y=Math.cos(-v),B=S*(_=Math.sin(-v))+B*y,b=k=b*y-M*_,w=C=w*y-O*_,D=E=D*y-A*_),u=(v=$o(w,b))*Zo,v&&(k=b*(y=Math.cos(v))+w*(_=Math.sin(v)),C=x*y+T*_,w=w*y-b*_,T=T*y-x*_,b=k,x=C),l&&Math.abs(l)+Math.abs(u)>359.9&&(l=u=0,c=180-c),o=Mi(Math.sqrt(b*b+w*w+D*D)),s=Mi(Math.sqrt(T*T+R*R)),v=$o(x,T),h=Math.abs(v)>2e-4?v*Zo:0,d=B?1/(B<0?-B:B):0),n.svg&&(k=t.getAttribute("transform"),n.forceCSS=t.setAttribute("transform","")||!js(ws(t,ps)),k&&t.setAttribute("transform",k))),Math.abs(h)>90&&Math.abs(h)<270&&(N?(o*=-1,h+=u<=0?180:-180,u+=u<=0?180:-180):(s*=-1,h+=h<=0?180:-180)),e=e||n.uncache,n.x=r-((n.xPercent=r&&(!e&&n.xPercent||(Math.round(t.offsetWidth/2)===Math.round(-r)?-50:0)))?t.offsetWidth*n.xPercent/100:0)+I,n.y=i-((n.yPercent=i&&(!e&&n.yPercent||(Math.round(t.offsetHeight/2)===Math.round(-i)?-50:0)))?t.offsetHeight*n.yPercent/100:0)+I,n.z=a+I,n.scaleX=Mi(o),n.scaleY=Mi(s),n.rotation=Mi(u)+F,n.rotationX=Mi(l)+F,n.rotationY=Mi(c)+F,n.skewX=h+F,n.skewY=f+F,n.transformPerspective=d+I,(n.zOrigin=parseFloat(L.split(" ")[2])||0)&&(V[gs]=qs(L)),n.xOffset=n.yOffset=0,n.force3D=Rr.force3D,n.renderTransform=n.svg?Qs:Go?Js:Ks,n.uncache=0,n},qs=function(t){return(t=t.split(" "))[0]+" "+t[1]},Gs=function(t,e,n){var r=fa(e);return Mi(parseFloat(e)+parseFloat(Bs(t,"x",n+"px",r)))+r},Ks=function(t,e){e.z="0px",e.rotationY=e.rotationX="0deg",e.force3D=0,Js(t,e)},Zs="0deg",Xs="0px",$s=") ",Js=function(t,e){var n=e||this,r=n.xPercent,i=n.yPercent,a=n.x,o=n.y,s=n.z,u=n.rotation,l=n.rotationY,c=n.rotationX,h=n.skewX,f=n.skewY,d=n.scaleX,p=n.scaleY,g=n.transformPerspective,m=n.force3D,v=n.target,y=n.zOrigin,_="",b="auto"===m&&t&&1!==t||!0===m;if(y&&(c!==Zs||l!==Zs)){var w,D=parseFloat(l)*Xo,S=Math.sin(D),x=Math.cos(D);D=parseFloat(c)*Xo,w=Math.cos(D),a=Gs(v,a,S*w*-y),o=Gs(v,o,-Math.sin(D)*-y),s=Gs(v,s,x*w*-y+y)}g!==Xs&&(_+="perspective("+g+$s),(r||i)&&(_+="translate("+r+"%, "+i+"%) "),(b||a!==Xs||o!==Xs||s!==Xs)&&(_+=s!==Xs||b?"translate3d("+a+", "+o+", "+s+") ":"translate("+a+", "+o+$s),u!==Zs&&(_+="rotate("+u+$s),l!==Zs&&(_+="rotateY("+l+$s),c!==Zs&&(_+="rotateX("+c+$s),h===Zs&&f===Zs||(_+="skew("+h+", "+f+$s),1===d&&1===p||(_+="scale("+d+", "+p+$s),v.style[ps]=_||"translate(0, 0)"},Qs=function(t,e){var n,r,i,a,o,s=e||this,u=s.xPercent,l=s.yPercent,c=s.x,h=s.y,f=s.rotation,d=s.skewX,p=s.skewY,g=s.scaleX,m=s.scaleY,v=s.target,y=s.xOrigin,_=s.yOrigin,b=s.xOffset,w=s.yOffset,D=s.forceCSS,S=parseFloat(c),x=parseFloat(h);f=parseFloat(f),d=parseFloat(d),(p=parseFloat(p))&&(d+=p=parseFloat(p),f+=p),f||d?(f*=Xo,d*=Xo,n=Math.cos(f)*g,r=Math.sin(f)*g,i=Math.sin(f-d)*-m,a=Math.cos(f-d)*m,d&&(p*=Xo,o=Math.tan(d-p),i*=o=Math.sqrt(1+o*o),a*=o,p&&(o=Math.tan(p),n*=o=Math.sqrt(1+o*o),r*=o)),n=Mi(n),r=Mi(r),i=Mi(i),a=Mi(a)):(n=g,a=m,r=i=0),(S&&!~(c+"").indexOf("px")||x&&!~(h+"").indexOf("px"))&&(S=Bs(v,"x",c,"px"),x=Bs(v,"y",h,"px")),(y||_||b||w)&&(S=Mi(S+y-(y*n+_*i)+b),x=Mi(x+_-(y*r+_*a)+w)),(u||l)&&(o=v.getBBox(),S=Mi(S+u/100*o.width),x=Mi(x+l/100*o.height)),o="matrix("+n+","+r+","+i+","+a+","+S+","+x+")",v.setAttribute("transform",o),D&&(v.style[ps]=o)},tu=function(t,e,n,r,i){var a,o,s=360,u=Ur(i),l=parseFloat(i)*(u&&~i.indexOf("rad")?Zo:1)-r,c=r+l+"deg";return u&&("short"===(a=i.split("_")[1])&&(l%=s)!==l%180&&(l+=l<0?s:-360),"cw"===a&&l<0?l=(l+36e9)%s-~~(l/s)*s:"ccw"===a&&l>0&&(l=(l-36e9)%s-~~(l/s)*s)),t._pt=o=new Co(t._pt,e,n,r,l,rs),o.e=c,o.u="deg",t._props.push(n),o},eu=function(t,e){for(var n in e)t[n]=e[n];return t},nu=function(t,e,n){var r,i,a,o,s,u,l,c=eu({},n._gsap),h=n.style;for(i in c.svg?(a=n.getAttribute("transform"),n.setAttribute("transform",""),h[ps]=e,r=Ws(n,1),Ms(n,ps),n.setAttribute("transform",a)):(a=getComputedStyle(n)[ps],h[ps]=e,r=Ws(n,1),h[ps]=a),Ko)(a=c[i])!==(o=r[i])&&"perspective,force3D,transformOrigin,svgOrigin".indexOf(i)<0&&(s=fa(a)!==(l=fa(o))?Bs(n,i,a,l):parseFloat(a),u=parseFloat(o),t._pt=new Co(t._pt,r,i,s,u-s,ns),t._pt.u=l||0,t._props.push(i));eu(r,c)};Ei("padding,margin,Width,Radius",(function(t,e){var n="Top",r="Right",i="Bottom",a="Left",o=(e<3?[n,r,i,a]:[n+a,n+r,i+r,i+a]).map((function(n){return e<2?t+n:"border"+n+t}));Fs[e>1?"border"+t:t]=function(t,e,n,r,i){var a,s;if(arguments.length<4)return a=o.map((function(e){return Rs(t,e,n)})),5===(s=a.join(" ")).split(a[0]).length?a[0]:s;a=(r+"").split(" "),s={},o.forEach((function(t,e){return s[t]=a[e]=a[e]||a[(e-1)/2|0]})),t.init(e,s,i)}}));var ru,iu,au,ou={name:"css",register:xs,targetTest:function(t){return t.style&&t.nodeType},init:function(t,e,n,r,i){var a,o,s,u,l,c,h,f,d,p,g,m,v,y,_,b,w,D,S,x,T=this._props,k=t.style,C=n.vars.startAt;for(h in zo||xs(),this.styles=this.styles||_s(t),b=this.styles.props,this.tween=n,e)if("autoRound"!==h&&(o=e[h],!bi[h]||!oo(h,e,n,r,t,i)))if(l=typeof o,c=Fs[h],"function"===l&&(l=typeof(o=o.call(n,r,t,i))),"string"===l&&~o.indexOf("random(")&&(o=xa(o)),c)c(this,t,h,o,n)&&(_=1);else if("--"===h.substr(0,2))a=(getComputedStyle(t).getPropertyValue(h)+"").trim(),o+="",Ia.lastIndex=0,Ia.test(a)||(f=fa(a),d=fa(o)),d?f!==d&&(a=Bs(t,h,a,d)+d):f&&(o+=f),this.add(k,"setProperty",a,o,r,i,0,0,h),T.push(h),b.push(h,0,k[h]);else if("undefined"!==l){if(C&&h in C?(a="function"==typeof C[h]?C[h].call(n,r,t,i):C[h],Ur(a)&&~a.indexOf("random(")&&(a=xa(a)),fa(a+"")||(a+=Rr.units[h]||fa(Rs(t,h))||""),"="===(a+"").charAt(1)&&(a=Rs(t,h))):a=Rs(t,h),u=parseFloat(a),(p="string"===l&&"="===o.charAt(1)&&o.substr(0,2))&&(o=o.substr(2)),s=parseFloat(o),h in es&&("autoAlpha"===h&&(1===u&&"hidden"===Rs(t,"visibility")&&s&&(u=0),b.push("visibility",0,k.visibility),Os(this,k,"visibility",u?"inherit":"hidden",s?"inherit":"hidden",!s)),"scale"!==h&&"transform"!==h&&~(h=es[h]).indexOf(",")&&(h=h.split(",")[0])),g=h in Ko)if(this.styles.save(h),m||((v=t._gsap).renderTransform&&!e.parseTransform||Ws(t,e.parseTransform),y=!1!==e.smoothOrigin&&v.smooth,(m=this._pt=new Co(this._pt,k,ps,0,1,v.renderTransform,v,0,-1)).dep=1),"scale"===h)this._pt=new Co(this._pt,v,"scaleY",v.scaleY,(p?Ai(v.scaleY,p+s):s)-v.scaleY||0,ns),this._pt.u=0,T.push("scaleY",h),h+="X";else{if("transformOrigin"===h){b.push(gs,0,k[gs]),D=void 0,S=void 0,x=void 0,D=(w=o).split(" "),S=D[0],x=D[1]||"50%","top"!==S&&"bottom"!==S&&"left"!==x&&"right"!==x||(w=S,S=x,x=w),D[0]=Ns[S]||S,D[1]=Ns[x]||x,o=D.join(" "),v.svg?Us(t,o,0,y,0,this):((d=parseFloat(o.split(" ")[2])||0)!==v.zOrigin&&Os(this,v,"zOrigin",v.zOrigin,d),Os(this,k,h,qs(a),qs(o)));continue}if("svgOrigin"===h){Us(t,o,1,y,0,this);continue}if(h in Ls){tu(this,v,h,u,p?Ai(u,p+o):o);continue}if("smoothOrigin"===h){Os(this,v,"smooth",v.smooth,o);continue}if("force3D"===h){v[h]=o;continue}if("transform"===h){nu(this,o,t);continue}}else h in k||(h=Ss(h)||h);if(g||(s||0===s)&&(u||0===u)&&!ts.test(o)&&h in k)s||(s=0),(f=(a+"").substr((u+"").length))!==(d=fa(o)||(h in Rr.units?Rr.units[h]:f))&&(u=Bs(t,h,a,d)),this._pt=new Co(this._pt,g?v:k,h,u,(p?Ai(u,p+s):s)-u,g||"px"!==d&&"zIndex"!==h||!1===e.autoRound?ns:as),this._pt.u=d||0,f!==d&&"%"!==d&&(this._pt.b=a,this._pt.r=is);else if(h in k)Vs.call(this,t,h,a,p?p+o:o);else if(h in t)this.add(t,h,a||t[h],p?p+o:o,r,i);else if("parseTransform"!==h){ci(h,o);continue}g||(h in k?b.push(h,0,k[h]):b.push(h,1,a||t[h])),T.push(h)}_&&ko(this)},render:function(t,e){if(e.tween._time||!qo())for(var n=e._pt;n;)n.r(t,n.d),n=n._next;else e.styles.revert()},get:Rs,aliases:es,getSetter:function(t,e,n){var r=es[e];return r&&r.indexOf(",")<0&&(e=r),e in Ko&&e!==gs&&(t._gsap.x||Rs(t,"x"))?n&&Wo===n?"scale"===e?hs:cs:(Wo=n||{})&&("scale"===e?fs:ds):t.style&&!Gr(t.style[e])?us:~e.indexOf("-")?ls:yo(t,e)},core:{_removeProperty:Ms,_getMatrix:zs}};Yo.utils.checkPrefix=Ss,Yo.core.getStyleSaver=_s,au=Ei((ru="x,y,z,scale,scaleX,scaleY,xPercent,yPercent")+","+(iu="rotation,rotationX,rotationY,skewX,skewY")+",transform,transformOrigin,svgOrigin,force3D,smoothOrigin,transformPerspective",(function(t){Ko[t]=1})),Ei(iu,(function(t){Rr.units[t]="deg",Ls[t]=1})),es[au[13]]=ru+","+iu,Ei("0:translateX,1:translateY,2:translateZ,8:rotate,8:rotationZ,8:rotateZ,9:rotateX,10:rotateY",(function(t){var e=t.split(":");es[e[1]]=au[e[0]]})),Ei("x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective",(function(t){Rr.units[t]="px"})),Yo.registerPlugin(ou);var su=Yo.registerPlugin(ou)||Yo;su.core.Tween;var uu=function(){function e(){this.startPoisiton={x:0,y:0},this.endPoisiton={x:1920,y:0},this.curtain={width:1920,height:1080},this.totalTime=5,this.timeLine=su.timeline()}return e.getInstance=function(){return this.instance||(this.instance=new e),this.instance},e.prototype.init=function(t,e){var n;null===(n=this.timeLine)||void 0===n||n.clear();var r=e.curtain,i=e.totalTime,a=e.admissionMode;i&&(this.totalTime=i),this.setEndPoisiton(r);var o=this.filterData(t,a);this.goAnimationParams=e;for(var s=0;s<o.length;s++){var u=o[s];if(u instanceof Array)for(var l=0;l<u.length;l++){var c=this.totalTime/u.length,h=u[l],f=this._creatTl("#wrap"+h.cid);this._add(f,l*c)}else{c=this.totalTime/o.length,f=this._creatTl("#wrap"+u.cid);this._add(f,s*c)}}return this.timeLine},e.prototype.filterData=function(e,n){var r;if("left"==n)r=t.orderBy(e,["baseData.left"],["asc"]);else if("top"==n)r=t.orderBy(e,["baseData.top"],["asc"]);else if("topLeft"==n){var i=this.setSpacing(e,"left");r=t.orderBy(i,["spacing"],["asc"])}else if("topRight"==n){var a=this.setSpacing(e,"right");r=t.orderBy(a,["spacing"],["asc"])}else if("center"==n){var o=this.splitArrayForCenter(e,"left");r=[t.orderBy(o.true,["center.x"],["asc"]),t.orderBy(o.false,["center.x"],["desc"])]}else if("spaceBetween"==n){o=this.splitArrayForCenter(e,"left");r=[t.orderBy(o.true,["center.x"],["desc"]),t.orderBy(o.false,["center.x"],["asc"])]}else r=t.orderBy(e,["baseData.left"],["asc"]);return r},e.prototype.getSpacing=function(t,e){var n=t.x,r=t.y,i=e.x,a=e.y,o=Math.abs(n-i),s=Math.abs(r-a);return Math.sqrt(o*o+s*s)},e.prototype.creatPosition=function(t,e){var n=0,r=0;return t?("left"===e?(n=t.left,r=t.top):"right"===e&&(n=t.left+t.width,r=t.top),{x:n,y:r}):{x:n,y:r}},e.prototype.setEndPoisiton=function(t){if(t){var e=t.width,n=t.height;this.curtain=t,this.endPoisiton.x=e,this.endPoisiton.y=n}},e.prototype.setSpacing=function(t,e){var n,r=this;return"left"===e?n=this.startPoisiton:"right"===e&&(n=this.endPoisiton),t.forEach((function(t){var i=t.baseData;if(i){var a=r.creatPosition(i,e),o=r.getSpacing(a,n);t.spacing=o}})),t},e.prototype.setCenter=function(t){return t.forEach((function(t){if(t.baseData){var e=t.baseData.left+t.baseData.width/2,n=t.baseData.top+t.baseData.height/2;t.center={x:e,y:n}}})),t},e.prototype.splitArrayForCenter=function(e,n){var r,i=this,a=this.setCenter(e);return"left"!=n&&"right"!=n||(r=t.groupBy(a,(function(t){return t.center.x>=i.curtain.width/2}))),"top"!=n&&"bottom"!=n||(r=t.groupBy(a,(function(t){return t.center.y>=i.curtain.height/2}))),r},e.prototype._add=function(t,e){this.timeLine.add(t,e)},e.prototype._creatTl=function(t){var e=su.timeline();return e.add(this._creatTw(t)),e},e.prototype._creatTw=function(t){var e=this.goAnimationParams.params,n=e.delay,r=e.duration,i=e.repeat,a=e.type,o=e.value;return o&&o.length&&o.forEach((function(t){t.delay=n||0,t.repeat=i||0})),su[a](t,r,o[0],o[1])},e.prototype.in=function(){},e.prototype.out=function(){},e}(),lu=uu.getInstance();var cu=function(){function e(t){this.root=null,this.vuex=mr.getInstance().VueServer,this.eventType=new Map,(null==t?void 0:t.root)&&(this.root=t.root);var e={setGlobalVar:this.setGlobalVar.bind(this),showComponent:this._showComponent.bind(this),hideComponent:this._hideComponent.bind(this),pageChange:this.pageChange.bind(this),changeDynamicState:this.changeDynamicState.bind(this)};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&this.eventType.set(n,[e[n]])}return e.prototype.findComponentDownward=function(t,e){var n=t.$children;if(n.length)for(var r=0,i=n;r<i.length;r++){var a=i[r];a.$options&&a.$options.propsData&&a.$options.propsData.cid&&(e[a.$options.propsData.cid]=a),a.$children&&a.$children.length&&this.findComponentDownward(a,e)}return e},e.prototype.getAllComponents=function(){var t={};return this.findComponentDownward(this.root,t),t},e.prototype.getComponentByCid=function(t){try{var e=this.getAllComponents()[t];if(!e)throw new Error("The instance was not found");return e}catch(t){console.warn(t)}},e.prototype.getElementByCid=function(t){try{if(!t)throw new Error("Please input the parameters correctly");var e=this.getComponentByCid(t);if(!e)throw new Error("The element was not found");return e.$el}catch(t){console.warn(t)}},e.prototype.setGlobalVar=function(t){try{var e=t.key,n=t.value;if(!(t&&e&&n))throw new Error("An error occurred. Please check whether the incoming parameters are correct! The correct format of data is an object containing key and value");this.setVars(t)}catch(t){console.warn(t)}},e.prototype._showComponent=function(t){try{if(!t)throw new Error("Please input the parameters correctly");this.changeVis({cid:t,flag:!0})}catch(t){console.warn(t)}},e.prototype._hideComponent=function(t){try{if(!t)throw new Error("Please input the parameters correctly");this.changeVis({cid:t,flag:!1})}catch(t){console.warn(t)}},e.prototype.getList=function(t){return t&&"id"===t?this.vuex.callState("list").map((function(t){return t.cid})):this.vuex.callState("list")},e.prototype.getTheme=function(t){var e=this.vuex.callState("theme");return t&&t(e),e},e.prototype.getElement=function(e){var n=function(e,n,r){var i=!1,a=function(e){for(var o=0;o<e.length;o++){if(e[o].cid==n){i=e[o],r&&t.remove(e,(function(t){return t.cid==n}));break}if(e[o].children)a(e[o].children);else if(e[o].dynamicChildren){if(e[o].dynamicChildren instanceof Map){for(var s=Array.from(e[o].dynamicChildren),u=0;u<s.length;u++)if(s[u]instanceof Array){var l=s[u][1];a(l)}}else if(e[o].dynamicChildren instanceof Array)for(s=e[o].dynamicChildren,u=0;u<s.length;u++)s[u]instanceof Array&&(l=s[u][1],a(l))}else e[o].stateChildren&&a(e[o].stateChildren)}};return a(e),i||!1}(this.vuex.callState("list"),e);return n},e.prototype.changeVis=function(t){return this.vuex.callMutation("changeShow",t)},e.prototype.comToggle=function(t){return this.vuex.callMutation("comToggle",t)},e.prototype.getPageInfo=function(t){var e=this.vuex.callState("caseInfo");return t&&t(e),(null==e?void 0:e.details)?e.details.map((function(t){return{name:t.caseDetailName,path:t.caseDetailPath,id:t.id}})):e},e.prototype.updateComp=function(t){return this.vuex.callMutation("updatComs",t)},e.prototype.changeDynamicState=function(t){return this.vuex.callMutation("changeDynamicState",t)},e.prototype.pageChange=function(t){return this.vuex.callMutation("setPageId",t)},e.prototype.pagePush=function(t,e,n){return void 0===n&&(n={}),this.vuex.callMutation("pagePush",{type:t,value:e,option:n})},e.prototype.activeState=function(t,e){return this.vuex.callMutation("setDynamicActive",{cid:t,name:e})},e.prototype.getVars=function(t){var e=this.vuex.callState("globalVars");return t&&t(e),e},e.prototype.setVars=function(t){return this.vuex.callAction("goEditVar",t)},e}(),hu=function(t){function e(e){var n,r,i=t.call(this,e)||this,a=(n=(n=i.eventType)||new Map,c(c({},r),{EventType:n,on:function(t,e){var r=n.get(t);r?r.push(e):n.set(t,[e])},off:function(t,e){var r=n.get(t);r&&(e?r.splice(r.indexOf(e)>>>0,1):n.set(t,[]))},emit:function(t,e){var r=n.get(t);if(r){var i=r.slice().map((function(t){return t(e)}));if(i&&1==i.length)return i[0]}(r=n.get("*"))&&r.slice().map((function(n){n(t,e)}))}}));return i.$emit=a.emit,i.$on=a.on,i.$off=a.off,i}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}l(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}(e,t),Object.defineProperty(e.prototype,"Theme",{get:function(){return this.getTheme()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"Components",{get:function(){return this.getAllComponents()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"GlobalVars",{get:function(){return this.getVars()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"Pages",{get:function(){return this.getPageInfo()},enumerable:!1,configurable:!0}),e.prototype.getElementById=function(t){this.getElementByCid(t)},e.prototype.getComponentById=function(t){this.getComponentByCid(t)},e.prototype.getPage=function(){},e}(cu),fu=function(t){var e=new hu(t);return{setGlobalVars:function(t,n){if(!t||"string"!=typeof t)throw new Error("Invalid key");e.setGlobalVar({key:t,value:n})},skipTo:function(t){if(!t||0===Object.keys(t).length)throw new Error("事件跳转发生错误:参数:".concat(t," 不正确,请正确填写!doc: https://anov.cucloud.cn/anov-go-doc/"));if(t.name)e.pagePush("name",t.name);else if(t.path)e.pagePush("path",t.path);else{if(!t.url)throw new Error("事件跳转发生错误:参数:".concat(t," 不正确,请正确填写!doc: https://anov.cucloud.cn/anov-go-doc/"));window.open(t.url)}},toggle:function(t){if(t)if("string"!=typeof t&&"number"!=typeof t)if(Array.isArray(t))for(var n=0,r=t;n<r.length;n++){var i=r[n];"string"==typeof i||"number"==typeof i?e.comToggle(i):console.warn("请传入正确的参数!")}else console.warn("请传入正确的参数!");else e.comToggle(t);else console.warn("请传入正确的参数!")},show:function(t){if(t)if("string"!=typeof t&&"number"!=typeof t)if(Array.isArray(t))for(var n=0,r=t;n<r.length;n++){var i=r[n];"string"==typeof i||"number"==typeof i?e._showComponent(i.toString()):console.warn("请传入正确的参数!")}else;else e._showComponent(t.toString());else console.warn("请传入正确的参数!")},hide:function(t){if(t)if("string"!=typeof t&&"number"!=typeof t)if(Array.isArray(t))for(var n=0,r=t;n<r.length;n++){var i=r[n];"string"==typeof i||"number"==typeof i?e._hideComponent(i):console.warn("请传入正确的参数!")}else;else e._hideComponent(t);else console.warn("请传入正确的参数!")},updateComp:function(t){if(t)if("string"!=typeof t&&"number"!=typeof t)if(Array.isArray(t))for(var n=0,r=t;n<r.length;n++){var i=r[n];"string"==typeof i||"number"==typeof i?e.updateComp(i):console.warn("请传入正确的参数!")}else;else e.updateComp(t);else console.warn("请传入正确的参数!")},activeState:function(t,n){e.activeState(t,n)},run:e}},du=function(t,e){return Bn(t,"GET",null,e).then((function(t){var e=JSON.parse(t.data.caseData);return mr.getInstance().reversal(e),t}))},pu=function(t,e){return e&&t?mr.getInstance().render(t,e):t?mr.getInstance().render(t):void 0},gu=function(t,e,n){return void 0!==n&&t?mr.getInstance().renderForParent(t,e,n):t?mr.getInstance().renderForParent(t,e):void 0},mu=function(t,e){return mr.getInstance().emitEvent(t,e||function(){})},vu=function(t,e,n,r,i){return mr.getInstance().log(t,e,n,r,i)};export{mr as Go,lu as GoAnimation,An as Tool,pu as createComponent,gu as createComponentForParent,mu as emitEvent,Zn as fxhr,Bn as getData,du as getDataForRelease,vu as log,Kn as refreshData,fu as run,ar as store};
|
|
52
52
|
//# sourceMappingURL=code.es5.js.map
|