go-core 0.0.14 → 0.0.16

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 CHANGED
@@ -1,10 +1,10 @@
1
- import t from"lodash";import e from"axios";var n=function(t,e){return n=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])},n(t,e)};var r=function(){return r=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},r.apply(this,arguments)};function i(t,e,n,r){return new(n||(n=Promise))((function(i,a){function s(t){try{u(r.next(t))}catch(t){a(t)}}function o(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(s,o)}u((r=r.apply(t,e||[])).next())}))}function a(t,e){var n,r,i,a,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return a={next:o(0),throw:o(1),return:o(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function o(a){return function(o){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,r&&(i=2&a[0]?r.return:a[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,a[1])).done)return i;switch(r=0,i&&(a=[2&a[0],i.value]),a[0]){case 0:case 1:i=a;break;case 4:return s.label++,{value:a[1],done:!1};case 5:s.label++,r=a[1],a=[0];continue;case 7:a=s.ops.pop(),s.trys.pop();continue;default:if(!(i=s.trys,(i=i.length>0&&i[i.length-1])||6!==a[0]&&2!==a[0])){s=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]<i[3])){s.label=a[1];break}if(6===a[0]&&s.label<i[1]){s.label=i[1],i=a;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(a);break}i[2]&&s.ops.pop(),s.trys.pop();continue}a=e.call(t,s)}catch(t){a=[6,t],r=0}finally{n=i=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,o])}}}var s={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)}}},o=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"]),u=URL.createObjectURL(o);function h(t,e){return void 0===e&&(e=5e3),i(this,void 0,void 0,(function(){var n;return a(this,(function(r){return n=new Worker(u),[2,new Promise((function(r,i){var a=function(){clearTimeout(o),n.removeEventListener("message",s),n.terminate(),n=null},s=function(t){var e=t.data,n=e.code,s=e.result,o=e.err;a(),1===n?r(s):i(o)};n.postMessage({code:t}),n.addEventListener("message",s);var o=setTimeout((function(){a(),i("timeout")}),e)}))]}))}))}function l(t,e,n,r){return i(this,void 0,void 0,(function(){var i,s,o,u,h,l,f,d;return a(this,(function(p){switch(p.label){case 0:if(i=t,s=e.use,o=e.data,!s)return[3,4];u=function(t){var e,n,s;return a(this,(function(a){switch(a.label){case 0:return o[t].use?(e=o[t].dependVars,n={},r&&n&&e&&e.length&&e.map((function(t){var e=r.filter((function(e){return e.mapField==t}));e&&e.length&&e.forEach((function(e){""!=e.value&&(n[t]=e.value)}))})),[4,c(o[t].code,i,n)]):[3,2];case 1:s=a.sent(),i=s.data,a.label=2;case 2:return[2]}}))},h=0,p.label=1;case 1:return h<o.length?[5,u(h)]:[3,4];case 2:p.sent(),p.label=3;case 3:return h++,[3,1];case 4:return f=i,(l=n)&&"object"==typeof i&&(Array.isArray(f)?(f=[],i.forEach((function(t){d={},l.forEach((function(e){d[e.field]=t[e.mapField]})),f.push(d)}))):(f={},l.forEach((function(t){f[t.field]=i[t.mapField]})))),[2,f]}}))}))}function c(t,e,n){return void 0===n&&(n={}),i(this,void 0,void 0,(function(){var r,i,s,o,u;return a(this,(function(a){switch(a.label){case 0:return a.trys.push([0,2,,3]),s=(r=[e,n,""])[1],o=r[2],"object"==typeof(i=r[0])&&(i=JSON.stringify(e)),"object"==typeof n&&(s=JSON.stringify(n)),Object.keys(n).forEach((function(t){return o+=t+","})),u="let data=eval("+i+"); ",u+=o?"let {"+o+"} = eval("+s+"); ":"",[4,h(u+=""+t)];case 1:return[2,{success:!0,data:a.sent()}];case 2:return[2,{success:!1,error:a.sent(),data:e}];case 3:return[2]}}))}))}function f(t){return"0123456789abcdefghijklmnopqrstuvwxyz".charAt(t)}function d(t,e){return t&e}function p(t,e){return t|e}function m(t,e){return t^e}function g(t,e){return t&~e}function v(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 y(t){for(var e=0;0!=t;)t&=t-1,++e;return e}var b,_="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";function w(t){var e,n,r="";for(e=0;e+3<=t.length;e+=3)n=parseInt(t.substring(e,e+3),16),r+=_.charAt(n>>6)+_.charAt(63&n);for(e+1==t.length?(n=parseInt(t.substring(e,e+1),16),r+=_.charAt(n<<2)):e+2==t.length&&(n=parseInt(t.substring(e,e+2),16),r+=_.charAt(n>>2)+_.charAt((3&n)<<4));(3&r.length)>0;)r+="=";return r}function D(t){var e,n="",r=0,i=0;for(e=0;e<t.length&&"="!=t.charAt(e);++e){var a=_.indexOf(t.charAt(e));a<0||(0==r?(n+=f(a>>2),i=3&a,r=1):1==r?(n+=f(i<<2|a>>4),i=15&a,r=2):2==r?(n+=f(i),n+=f(a>>2),i=3&a,r=3):(n+=f(i<<2|a>>4),n+=f(15&a),r=0))}return 1==r&&(n+=f(i<<2)),n}var S,T=function(t){var e;if(void 0===b){var n="0123456789ABCDEF",r=" \f\n\r\t \u2028\u2029";for(b={},e=0;e<16;++e)b[n.charAt(e)]=e;for(n=n.toLowerCase(),e=10;e<16;++e)b[n.charAt(e)]=e;for(e=0;e<r.length;++e)b[r.charAt(e)]=-1}var i=[],a=0,s=0;for(e=0;e<t.length;++e){var o=t.charAt(e);if("="==o)break;if(-1!=(o=b[o])){if(void 0===o)throw new Error("Illegal character at offset "+e);a|=o,++s>=2?(i[i.length]=a,a=0,s=0):a<<=4}}if(s)throw new Error("Hex encoding incomplete: 4 bits missing");return i},x={decode:function(t){var e;if(void 0===S){var n="= \f\n\r\t \u2028\u2029";for(S=Object.create(null),e=0;e<64;++e)S["ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(e)]=e;for(S["-"]=62,S._=63,e=0;e<n.length;++e)S[n.charAt(e)]=-1}var r=[],i=0,a=0;for(e=0;e<t.length;++e){var s=t.charAt(e);if("="==s)break;if(-1!=(s=S[s])){if(void 0===s)throw new Error("Illegal character at offset "+e);i|=s,++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=x.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 x.decode(t)}},E=1e13,O=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)<E?e=0:r-=(e=0|r/E)*E,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+=E,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+=(E+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*E+t[n];return e},t.prototype.simplify=function(){var t=this.buf;return 1==t.length?t[0]:this},t}(),M=/^(\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)?)?$/,k=/^(\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 C(t,e){return t.length>e&&(t=t.substring(0,e)+"…"),t}var A,P=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 "+t+" on a stream of length "+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?M:k).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,s="";r==a&&++t<e;)r=this.get(t);if(0===(n=e-t))return i?-1:0;if(n>4){for(s=r,n<<=3;0==(128&(+s^a));)s=+s<<1,--n;s="("+n+" bit)\n"}i&&(r-=256);for(var o=new O(r),u=t+1;u<e;++u)o.mulAdd(256,this.get(u));return s+o.toString()},t.prototype.parseBitString=function(t,e,n){for(var r=this.get(t),i="("+((e-t-1<<3)-r)+" bit)\n",a="",s=t+1;s<e;++s){for(var o=this.get(s),u=s==e-1?r:0,h=7;h>=u;--h)a+=o>>h&1?"1":"0";if(a.length>n)return i+C(a,n)}return i+a},t.prototype.parseOctetString=function(t,e,n){if(this.isASCII(t,e))return C(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+="…"),i},t.prototype.parseOID=function(t,e,n){for(var r="",i=new O,a=0,s=t;s<e;++s){var o=this.get(s);if(i.mulAdd(128,127&o),a+=7,!(128&o)){if(""===r)if((i=i.simplify())instanceof O)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 C(r,n);i=new O,a=0}}return a>0&&(r+=".incomplete"),r},t}(),R=function(){function t(t,e,n,r,i){if(!(r instanceof N))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 C(this.stream.parseStringUTF(e,e+n),t);case 18:case 19:case 20:case 21:case 22:case 26:return C(this.stream.parseStringISO(e,e+n),t);case 30:return C(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 P?e:new P(e,0);var r=new P(n),i=new N(n),a=t.decodeLength(n),s=n.pos,o=s-r.pos,u=null,h=function(){var e=[];if(null!==a){for(var r=s+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 "+s)}else try{for(;;){var i=t.decode(n);if(i.tag.isEOC())break;e[e.length]=i}a=s-n.pos}catch(t){throw new Error("Exception while decoding undefined length content: "+t)}return e};if(i.tagConstructed)u=h();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=h();for(var l=0;l<u.length;++l)if(u[l].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 "+s);n.pos=s+Math.abs(a)}return new t(r,o,a,i,u)},t}(),N=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 O;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}(),V=[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],I=(1<<26)/V[V.length-1],B=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="",s=this.t,o=this.DB-s*this.DB%e;if(s-- >0)for(o<this.DB&&(n=this[s]>>o)>0&&(i=!0,a=f(n));s>=0;)o<e?(n=(this[s]&(1<<o)-1)<<e-o,n|=this[--s]>>(o+=this.DB-e)):(n=this[s]>>(o-=e)&r,o<=0&&(o+=this.DB,--s)),n>0&&(i=!0),i&&(a+=f(n));return i?a:"0"},t.prototype.negate=function(){var e=U();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)+$(this[this.t-1]^this.s&this.DM)},t.prototype.mod=function(e){var n=U();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 L(e):new j(e),this.exp(t,n)},t.prototype.clone=function(){var t=U();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=U();return this.bitwiseTo(t,d,e),e},t.prototype.or=function(t){var e=U();return this.bitwiseTo(t,p,e),e},t.prototype.xor=function(t){var e=U();return this.bitwiseTo(t,m,e),e},t.prototype.andNot=function(t){var e=U();return this.bitwiseTo(t,g,e),e},t.prototype.not=function(){for(var t=U(),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=U();return t<0?this.rShiftTo(-t,e):this.lShiftTo(t,e),e},t.prototype.shiftRight=function(t){var e=U();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+v(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+=y(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,p)},t.prototype.clearBit=function(t){return this.changeBit(t,g)},t.prototype.flipBit=function(t){return this.changeBit(t,m)},t.prototype.add=function(t){var e=U();return this.addTo(t,e),e},t.prototype.subtract=function(t){var e=U();return this.subTo(t,e),e},t.prototype.multiply=function(t){var e=U();return this.multiplyTo(t,e),e},t.prototype.divide=function(t){var e=U();return this.divRemTo(t,e,null),e},t.prototype.remainder=function(t){var e=U();return this.divRemTo(t,null,e),e},t.prototype.divideAndRemainder=function(t){var e=U(),n=U();return this.divRemTo(t,e,n),[e,n]},t.prototype.modPow=function(t,e){var n,r,i=t.bitLength(),a=K(1);if(i<=0)return a;n=i<18?1:i<48?3:i<144?4:i<768?5:6,r=i<8?new L(e):e.isEven()?new F(e):new j(e);var s=[],o=3,u=n-1,h=(1<<n)-1;if(s[1]=r.convert(this),n>1){var l=U();for(r.sqrTo(s[1],l);o<=h;)s[o]=U(),r.mulTo(l,s[o-2],s[o]),o+=2}var c,f,d=t.t-1,p=!0,m=U();for(i=$(t[d])-1;d>=0;){for(i>=u?c=t[d]>>i-u&h:(c=(t[d]&(1<<i+1)-1)<<u-i,d>0&&(c|=t[d-1]>>this.DB+i-u)),o=n;0==(1&c);)c>>=1,--o;if((i-=o)<0&&(i+=this.DB,--d),p)s[c].copyTo(a),p=!1;else{for(;o>1;)r.sqrTo(a,m),r.sqrTo(m,a),o-=2;o>0?r.sqrTo(a,m):(f=a,a=m,m=f),r.mulTo(m,s[c],a)}for(;d>=0&&0==(t[d]&1<<i);)r.sqrTo(a,m),f=a,a=m,m=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=K(1),s=K(0),o=K(0),u=K(1);0!=r.signum();){for(;r.isEven();)r.rShiftTo(1,r),n?(a.isEven()&&s.isEven()||(a.addTo(this,a),s.subTo(e,s)),a.rShiftTo(1,a)):s.isEven()||s.subTo(e,s),s.rShiftTo(1,s);for(;i.isEven();)i.rShiftTo(1,i),n?(o.isEven()&&u.isEven()||(o.addTo(this,o),u.subTo(e,u)),o.rShiftTo(1,o)):u.isEven()||u.subTo(e,u),u.rShiftTo(1,u);r.compareTo(i)>=0?(r.subTo(i,r),n&&a.subTo(o,a),s.subTo(u,s)):(i.subTo(r,i),n&&o.subTo(a,o),u.subTo(s,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 Y)},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]<=V[V.length-1]){for(e=0;e<V.length;++e)if(n[0]==V[e])return!0;return!1}if(n.isEven())return!1;for(e=1;e<V.length;){for(var r=V[e],i=e+1;i<V.length&&r<I;)r*=V[i++];for(r=n.modInt(r);e<i;)if(r%V[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,s=0;--i>=0;){var o=8==r?255&+e[i]:Z(e,i);o<0?"-"==e.charAt(i)&&(a=!0):(a=!1,0==s?this[this.t++]=o:s+r>this.DB?(this[this.t-1]|=(o&(1<<this.DB-s)-1)<<s,this[this.t++]=o>>this.DB-s):this[this.t-1]|=o<<s,(s+=r)>=this.DB&&(s-=this.DB))}8==r&&0!=(128&+e[0])&&(this.s=-1,s>0&&(this[this.t-1]|=(1<<this.DB-s)-1<<s)),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),s=this.s<<n&this.DM,o=this.t-1;o>=0;--o)e[o+a+1]=this[o]>>r|s,s=(this[o]&i)<<n;for(o=a-1;o>=0;--o)e[o]=0;e[a]=s,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 s=n+1;s<this.t;++s)e[s-n-1]|=(this[s]&a)<<i,e[s-n]=this[s]>>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=U());var s=U(),o=this.s,u=e.s,h=this.DB-$(i[i.t-1]);h>0?(i.lShiftTo(h,s),a.lShiftTo(h,r)):(i.copyTo(s),a.copyTo(r));var l=s.t,c=s[l-1];if(0!=c){var f=c*(1<<this.F1)+(l>1?s[l-2]>>this.F2:0),d=this.FV/f,p=(1<<this.F1)/f,m=1<<this.F2,g=r.t,v=g-l,y=null==n?U():n;for(s.dlShiftTo(v,y),r.compareTo(y)>=0&&(r[r.t++]=1,r.subTo(y,r)),t.ONE.dlShiftTo(l,y),y.subTo(s,s);s.t<l;)s[s.t++]=0;for(;--v>=0;){var b=r[--g]==c?this.DM:Math.floor(r[g]*d+(r[g-1]+m)*p);if((r[g]+=s.am(0,b,r,v,0,l))<b)for(s.dlShiftTo(v,y),r.subTo(y,r);r[g]<--b;)r.subTo(y,r)}null!=n&&(r.drShiftTo(l,n),o!=u&&t.ZERO.subTo(n,n)),r.t=l,r.clamp(),h>0&&r.rShiftTo(h,r),o<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=U(),i=U(),a=n.convert(this),s=$(e)-1;for(a.copyTo(r);--s>=0;)if(n.sqrTo(r,i),(e&1<<s)>0)n.mulTo(i,a,r);else{var o=r;r=i,i=o}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=K(n),i=U(),a=U(),s="";for(this.divRemTo(r,i,a);i.signum()>0;)s=(n+a.intValue()).toString(t).substr(1)+s,i.divRemTo(r,i,a);return a.intValue().toString(t)+s},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,s=0,o=0,u=0;u<e.length;++u){var h=Z(e,u);h<0?"-"==e.charAt(u)&&0==this.signum()&&(a=!0):(o=n*o+h,++s>=r&&(this.dMultiply(i),this.dAddOffset(o,0),s=0,o=0))}s>0&&(this.dMultiply(Math.pow(n,s)),this.dAddOffset(o,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),p,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)>V.length&&(e=V.length);for(var a=U(),s=0;s<e;++s){a.fromInt(V[Math.floor(Math.random()*V.length)]);var o=a.modPow(i,this);if(0!=o.compareTo(t.ONE)&&0!=o.compareTo(n)){for(var u=1;u++<r&&0!=o.compareTo(n);)if(0==(o=o.modPowInt(2,this)).compareTo(t.ONE))return!1;if(0!=o.compareTo(n))return!1}}return!0},t.prototype.square=function(){var t=U();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(),s=r.getLowestSetBit();if(s<0)e(n);else{a<s&&(s=a),s>0&&(n.rShiftTo(s,n),r.rShiftTo(s,r));var o=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(o,0):(s>0&&r.lShiftTo(s,r),setTimeout((function(){e(r)}),0))};setTimeout(o,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),p,this),this.isEven()&&this.dAddOffset(1,0);var a=this,s=function(){a.dAddOffset(2,0),a.bitLength()>e&&a.subTo(t.ONE.shiftLeft(e-1),a),a.isProbablePrime(n)?setTimeout((function(){i()}),0):setTimeout(s,0)};setTimeout(s,0)}else{var o=[],u=7&e;o.length=1+(e>>3),n.nextBytes(o),u>0?o[0]&=(1<<u)-1:o[0]=0,this.fromString(o,256)}},t}(),Y=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}(),L=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}(),j=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=U();return t.abs().dlShiftTo(this.m.t,e),e.divRemTo(this.m,null,e),t.s<0&&e.compareTo(B.ZERO)>0&&this.m.subTo(e,e),e},t.prototype.revert=function(t){var e=U();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}(),F=function(){function t(t){this.m=t,this.r2=U(),this.q3=U(),B.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=U();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 U(){return new B(null)}function H(t,e){return new B(t,e)}var z="undefined"!=typeof navigator;z&&"Microsoft Internet Explorer"==navigator.appName?(B.prototype.am=function(t,e,n,r,i,a){for(var s=32767&e,o=e>>15;--a>=0;){var u=32767&this[t],h=this[t++]>>15,l=o*u+h*s;i=((u=s*u+((32767&l)<<15)+n[r]+(1073741823&i))>>>30)+(l>>>15)+o*h+(i>>>30),n[r++]=1073741823&u}return i},A=30):z&&"Netscape"!=navigator.appName?(B.prototype.am=function(t,e,n,r,i,a){for(;--a>=0;){var s=e*this[t++]+n[r]+i;i=Math.floor(s/67108864),n[r++]=67108863&s}return i},A=26):(B.prototype.am=function(t,e,n,r,i,a){for(var s=16383&e,o=e>>14;--a>=0;){var u=16383&this[t],h=this[t++]>>14,l=o*u+h*s;i=((u=s*u+((16383&l)<<14)+n[r]+i)>>28)+(l>>14)+o*h,n[r++]=268435455&u}return i},A=28),B.prototype.DB=A,B.prototype.DM=(1<<A)-1,B.prototype.DV=1<<A;B.prototype.FV=Math.pow(2,52),B.prototype.F1=52-A,B.prototype.F2=2*A-52;var q,W,G=[];for(q="0".charCodeAt(0),W=0;W<=9;++W)G[q++]=W;for(q="a".charCodeAt(0),W=10;W<36;++W)G[q++]=W;for(q="A".charCodeAt(0),W=10;W<36;++W)G[q++]=W;function Z(t,e){var n=G[t.charCodeAt(e)];return null==n?-1:n}function K(t){var e=U();return e.fromInt(t),e}function $(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}B.ZERO=K(0),B.ONE=K(1);var X=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 J,Q,tt=null;if(null==tt){tt=[],Q=0;var et=void 0;if(window.crypto&&window.crypto.getRandomValues){var nt=new Uint32Array(256);for(window.crypto.getRandomValues(nt),et=0;et<nt.length;++et)tt[Q++]=255&nt[et]}var rt=0,it=function(t){if((rt=rt||0)>=256||Q>=256)window.removeEventListener?window.removeEventListener("mousemove",it,!1):window.detachEvent&&window.detachEvent("onmousemove",it);else try{var e=t.x+t.y;tt[Q++]=255&e,rt+=1}catch(t){}};window.addEventListener?window.addEventListener("mousemove",it,!1):window.attachEvent&&window.attachEvent("onmousemove",it)}function at(){if(null==J){for(J=new X;Q<256;){var t=Math.floor(65536*Math.random());tt[Q++]=255&t}for(J.init(tt),Q=0;Q<tt.length;++Q)tt[Q]=0;Q=0}return J.next()}var st=function(){function t(){}return t.prototype.nextBytes=function(t){for(var e=0;e<t.length;++e)t[e]=at()},t}();var ot=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=H(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 st,s=[];e>2;){for(s[0]=0;0==s[0];)a.nextBytes(s);n[--e]=s[0]}return n[--e]=2,n[--e]=0,new B(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,s=0;s<2*e-a;s++)i="0"+i;return i},t.prototype.setPrivate=function(t,e,n){null!=t&&null!=e&&t.length>0&&e.length>0?(this.n=H(t,16),this.e=parseInt(e,16),this.d=H(n,16)):console.error("Invalid RSA private key")},t.prototype.setPrivateEx=function(t,e,n,r,i,a,s,o){null!=t&&null!=e&&t.length>0&&e.length>0?(this.n=H(t,16),this.e=parseInt(e,16),this.d=H(n,16),this.p=H(r,16),this.q=H(i,16),this.dmp1=H(a,16),this.dmq1=H(s,16),this.coeff=H(o,16)):console.error("Invalid RSA private key")},t.prototype.generate=function(t,e){var n=new st,r=t>>1;this.e=parseInt(e,16);for(var i=new B(e,16);;){for(;this.p=new B(t-r,1,n),0!=this.p.subtract(B.ONE).gcd(i).compareTo(B.ONE)||!this.p.isProbablePrime(10););for(;this.q=new B(r,1,n),0!=this.q.subtract(B.ONE).gcd(i).compareTo(B.ONE)||!this.q.isProbablePrime(10););if(this.p.compareTo(this.q)<=0){var a=this.p;this.p=this.q,this.q=a}var s=this.p.subtract(B.ONE),o=this.q.subtract(B.ONE),u=s.multiply(o);if(0==u.gcd(i).compareTo(B.ONE)){this.n=this.p.multiply(this.q),this.d=i.modInverse(u),this.dmp1=this.d.mod(s),this.dmq1=this.d.mod(o),this.coeff=this.q.modInverse(this.p);break}}},t.prototype.decrypt=function(t){var e=H(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 st,i=t>>1;this.e=parseInt(e,16);var a=new B(e,16),s=this,o=function(){var e=function(){if(s.p.compareTo(s.q)<=0){var t=s.p;s.p=s.q,s.q=t}var e=s.p.subtract(B.ONE),r=s.q.subtract(B.ONE),i=e.multiply(r);0==i.gcd(a).compareTo(B.ONE)?(s.n=s.p.multiply(s.q),s.d=a.modInverse(i),s.dmp1=s.d.mod(e),s.dmq1=s.d.mod(r),s.coeff=s.q.modInverse(s.p),setTimeout((function(){n()}),0)):setTimeout(o,0)},u=function(){s.q=U(),s.q.fromNumberAsync(i,1,r,(function(){s.q.subtract(B.ONE).gcda(a,(function(t){0==t.compareTo(B.ONE)&&s.q.isProbablePrime(10)?setTimeout(e,0):setTimeout(u,0)}))}))},h=function(){s.p=U(),s.p.fromNumberAsync(t-i,1,r,(function(){s.p.subtract(B.ONE).gcda(a,(function(t){0==t.compareTo(B.ONE)&&s.p.isProbablePrime(10)?setTimeout(u,0):setTimeout(h,0)}))}))};setTimeout(h,0)};setTimeout(o,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 H("0001"+r+"00"+t,16)}((ut[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=H(e,16),i=this.doPublic(r);return null==i?null:function(t){for(var e in ut)if(ut.hasOwnProperty(e)){var n=ut[e],r=n.length;if(t.substr(0,r)==n)return t.substr(r)}return t}
1
+ import t from"lodash";import e from"axios";var n=function(t,e){return n=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])},n(t,e)};var r=function(){return r=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},r.apply(this,arguments)};function i(t,e,n,r){return new(n||(n=Promise))((function(i,a){function s(t){try{u(r.next(t))}catch(t){a(t)}}function o(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(s,o)}u((r=r.apply(t,e||[])).next())}))}function a(t,e){var n,r,i,a,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return a={next:o(0),throw:o(1),return:o(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function o(a){return function(o){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,r&&(i=2&a[0]?r.return:a[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,a[1])).done)return i;switch(r=0,i&&(a=[2&a[0],i.value]),a[0]){case 0:case 1:i=a;break;case 4:return s.label++,{value:a[1],done:!1};case 5:s.label++,r=a[1],a=[0];continue;case 7:a=s.ops.pop(),s.trys.pop();continue;default:if(!(i=s.trys,(i=i.length>0&&i[i.length-1])||6!==a[0]&&2!==a[0])){s=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]<i[3])){s.label=a[1];break}if(6===a[0]&&s.label<i[1]){s.label=i[1],i=a;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(a);break}i[2]&&s.ops.pop(),s.trys.pop();continue}a=e.call(t,s)}catch(t){a=[6,t],r=0}finally{n=i=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,o])}}}var s={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)}}},o=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"]),u=URL.createObjectURL(o);function l(t,e){return void 0===e&&(e=5e3),i(this,void 0,void 0,(function(){var n;return a(this,(function(r){return n=new Worker(u),[2,new Promise((function(r,i){var a=function(){clearTimeout(o),n.removeEventListener("message",s),n.terminate(),n=null},s=function(t){var e=t.data,n=e.code,s=e.result,o=e.err;a(),1===n?r(s):i(o)};n.postMessage({code:t}),n.addEventListener("message",s);var o=setTimeout((function(){a(),i("timeout")}),e)}))]}))}))}function h(t,e,n,r){return i(this,void 0,void 0,(function(){var i,s,o,u,l,h,f,d;return a(this,(function(p){switch(p.label){case 0:if(i=t,s=e.use,o=e.data,!s)return[3,4];u=function(t){var e,n,s;return a(this,(function(a){switch(a.label){case 0:return o[t].use?(e=o[t].dependVars,n={},r&&n&&e&&e.length&&e.map((function(t){var e=r.filter((function(e){return e.mapField==t}));e&&e.length&&e.forEach((function(e){""!=e.value&&(n[t]=e.value)}))})),[4,c(o[t].code,i,n)]):[3,2];case 1:s=a.sent(),i=s.data,a.label=2;case 2:return[2]}}))},l=0,p.label=1;case 1:return l<o.length?[5,u(l)]:[3,4];case 2:p.sent(),p.label=3;case 3:return l++,[3,1];case 4:return f=i,(h=n)&&"object"==typeof i&&(Array.isArray(f)?(f=[],i.forEach((function(t){d={},h.forEach((function(e){d[e.field]=t[e.mapField]})),f.push(d)}))):(f={},h.forEach((function(t){f[t.field]=i[t.mapField]})))),[2,f]}}))}))}function c(t,e,n){return void 0===n&&(n={}),i(this,void 0,void 0,(function(){var r,i,s,o,u;return a(this,(function(a){switch(a.label){case 0:return a.trys.push([0,2,,3]),s=(r=[e,n,""])[1],o=r[2],"object"==typeof(i=r[0])&&(i=JSON.stringify(e)),"object"==typeof n&&(s=JSON.stringify(n)),Object.keys(n).forEach((function(t){return o+=t+","})),u="let data=eval("+i+"); ",u+=o?"let {"+o+"} = eval("+s+"); ":"",[4,l(u+=""+t)];case 1:return[2,{success:!0,data:a.sent()}];case 2:return[2,{success:!1,error:a.sent(),data:e}];case 3:return[2]}}))}))}function f(t){return"0123456789abcdefghijklmnopqrstuvwxyz".charAt(t)}function d(t,e){return t&e}function p(t,e){return t|e}function m(t,e){return t^e}function g(t,e){return t&~e}function v(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 y(t){for(var e=0;0!=t;)t&=t-1,++e;return e}var b,_="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";function w(t){var e,n,r="";for(e=0;e+3<=t.length;e+=3)n=parseInt(t.substring(e,e+3),16),r+=_.charAt(n>>6)+_.charAt(63&n);for(e+1==t.length?(n=parseInt(t.substring(e,e+1),16),r+=_.charAt(n<<2)):e+2==t.length&&(n=parseInt(t.substring(e,e+2),16),r+=_.charAt(n>>2)+_.charAt((3&n)<<4));(3&r.length)>0;)r+="=";return r}function D(t){var e,n="",r=0,i=0;for(e=0;e<t.length&&"="!=t.charAt(e);++e){var a=_.indexOf(t.charAt(e));a<0||(0==r?(n+=f(a>>2),i=3&a,r=1):1==r?(n+=f(i<<2|a>>4),i=15&a,r=2):2==r?(n+=f(i),n+=f(a>>2),i=3&a,r=3):(n+=f(i<<2|a>>4),n+=f(15&a),r=0))}return 1==r&&(n+=f(i<<2)),n}var S,T=function(t){var e;if(void 0===b){var n="0123456789ABCDEF",r=" \f\n\r\t \u2028\u2029";for(b={},e=0;e<16;++e)b[n.charAt(e)]=e;for(n=n.toLowerCase(),e=10;e<16;++e)b[n.charAt(e)]=e;for(e=0;e<r.length;++e)b[r.charAt(e)]=-1}var i=[],a=0,s=0;for(e=0;e<t.length;++e){var o=t.charAt(e);if("="==o)break;if(-1!=(o=b[o])){if(void 0===o)throw new Error("Illegal character at offset "+e);a|=o,++s>=2?(i[i.length]=a,a=0,s=0):a<<=4}}if(s)throw new Error("Hex encoding incomplete: 4 bits missing");return i},x={decode:function(t){var e;if(void 0===S){var n="= \f\n\r\t \u2028\u2029";for(S=Object.create(null),e=0;e<64;++e)S["ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(e)]=e;for(S["-"]=62,S._=63,e=0;e<n.length;++e)S[n.charAt(e)]=-1}var r=[],i=0,a=0;for(e=0;e<t.length;++e){var s=t.charAt(e);if("="==s)break;if(-1!=(s=S[s])){if(void 0===s)throw new Error("Illegal character at offset "+e);i|=s,++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=x.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 x.decode(t)}},E=1e13,O=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)<E?e=0:r-=(e=0|r/E)*E,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+=E,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+=(E+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*E+t[n];return e},t.prototype.simplify=function(){var t=this.buf;return 1==t.length?t[0]:this},t}(),M=/^(\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)?)?$/,k=/^(\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 C(t,e){return t.length>e&&(t=t.substring(0,e)+"…"),t}var A,P=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 "+t+" on a stream of length "+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?M:k).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,s="";r==a&&++t<e;)r=this.get(t);if(0===(n=e-t))return i?-1:0;if(n>4){for(s=r,n<<=3;0==(128&(+s^a));)s=+s<<1,--n;s="("+n+" bit)\n"}i&&(r-=256);for(var o=new O(r),u=t+1;u<e;++u)o.mulAdd(256,this.get(u));return s+o.toString()},t.prototype.parseBitString=function(t,e,n){for(var r=this.get(t),i="("+((e-t-1<<3)-r)+" bit)\n",a="",s=t+1;s<e;++s){for(var o=this.get(s),u=s==e-1?r:0,l=7;l>=u;--l)a+=o>>l&1?"1":"0";if(a.length>n)return i+C(a,n)}return i+a},t.prototype.parseOctetString=function(t,e,n){if(this.isASCII(t,e))return C(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+="…"),i},t.prototype.parseOID=function(t,e,n){for(var r="",i=new O,a=0,s=t;s<e;++s){var o=this.get(s);if(i.mulAdd(128,127&o),a+=7,!(128&o)){if(""===r)if((i=i.simplify())instanceof O)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 C(r,n);i=new O,a=0}}return a>0&&(r+=".incomplete"),r},t}(),R=function(){function t(t,e,n,r,i){if(!(r instanceof N))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 C(this.stream.parseStringUTF(e,e+n),t);case 18:case 19:case 20:case 21:case 22:case 26:return C(this.stream.parseStringISO(e,e+n),t);case 30:return C(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 P?e:new P(e,0);var r=new P(n),i=new N(n),a=t.decodeLength(n),s=n.pos,o=s-r.pos,u=null,l=function(){var e=[];if(null!==a){for(var r=s+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 "+s)}else try{for(;;){var i=t.decode(n);if(i.tag.isEOC())break;e[e.length]=i}a=s-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 h=0;h<u.length;++h)if(u[h].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 "+s);n.pos=s+Math.abs(a)}return new t(r,o,a,i,u)},t}(),N=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 O;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}(),V=[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],I=(1<<26)/V[V.length-1],B=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="",s=this.t,o=this.DB-s*this.DB%e;if(s-- >0)for(o<this.DB&&(n=this[s]>>o)>0&&(i=!0,a=f(n));s>=0;)o<e?(n=(this[s]&(1<<o)-1)<<e-o,n|=this[--s]>>(o+=this.DB-e)):(n=this[s]>>(o-=e)&r,o<=0&&(o+=this.DB,--s)),n>0&&(i=!0),i&&(a+=f(n));return i?a:"0"},t.prototype.negate=function(){var e=U();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)+$(this[this.t-1]^this.s&this.DM)},t.prototype.mod=function(e){var n=U();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 L(e):new j(e),this.exp(t,n)},t.prototype.clone=function(){var t=U();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=U();return this.bitwiseTo(t,d,e),e},t.prototype.or=function(t){var e=U();return this.bitwiseTo(t,p,e),e},t.prototype.xor=function(t){var e=U();return this.bitwiseTo(t,m,e),e},t.prototype.andNot=function(t){var e=U();return this.bitwiseTo(t,g,e),e},t.prototype.not=function(){for(var t=U(),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=U();return t<0?this.rShiftTo(-t,e):this.lShiftTo(t,e),e},t.prototype.shiftRight=function(t){var e=U();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+v(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+=y(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,p)},t.prototype.clearBit=function(t){return this.changeBit(t,g)},t.prototype.flipBit=function(t){return this.changeBit(t,m)},t.prototype.add=function(t){var e=U();return this.addTo(t,e),e},t.prototype.subtract=function(t){var e=U();return this.subTo(t,e),e},t.prototype.multiply=function(t){var e=U();return this.multiplyTo(t,e),e},t.prototype.divide=function(t){var e=U();return this.divRemTo(t,e,null),e},t.prototype.remainder=function(t){var e=U();return this.divRemTo(t,null,e),e},t.prototype.divideAndRemainder=function(t){var e=U(),n=U();return this.divRemTo(t,e,n),[e,n]},t.prototype.modPow=function(t,e){var n,r,i=t.bitLength(),a=K(1);if(i<=0)return a;n=i<18?1:i<48?3:i<144?4:i<768?5:6,r=i<8?new L(e):e.isEven()?new F(e):new j(e);var s=[],o=3,u=n-1,l=(1<<n)-1;if(s[1]=r.convert(this),n>1){var h=U();for(r.sqrTo(s[1],h);o<=l;)s[o]=U(),r.mulTo(h,s[o-2],s[o]),o+=2}var c,f,d=t.t-1,p=!0,m=U();for(i=$(t[d])-1;d>=0;){for(i>=u?c=t[d]>>i-u&l:(c=(t[d]&(1<<i+1)-1)<<u-i,d>0&&(c|=t[d-1]>>this.DB+i-u)),o=n;0==(1&c);)c>>=1,--o;if((i-=o)<0&&(i+=this.DB,--d),p)s[c].copyTo(a),p=!1;else{for(;o>1;)r.sqrTo(a,m),r.sqrTo(m,a),o-=2;o>0?r.sqrTo(a,m):(f=a,a=m,m=f),r.mulTo(m,s[c],a)}for(;d>=0&&0==(t[d]&1<<i);)r.sqrTo(a,m),f=a,a=m,m=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=K(1),s=K(0),o=K(0),u=K(1);0!=r.signum();){for(;r.isEven();)r.rShiftTo(1,r),n?(a.isEven()&&s.isEven()||(a.addTo(this,a),s.subTo(e,s)),a.rShiftTo(1,a)):s.isEven()||s.subTo(e,s),s.rShiftTo(1,s);for(;i.isEven();)i.rShiftTo(1,i),n?(o.isEven()&&u.isEven()||(o.addTo(this,o),u.subTo(e,u)),o.rShiftTo(1,o)):u.isEven()||u.subTo(e,u),u.rShiftTo(1,u);r.compareTo(i)>=0?(r.subTo(i,r),n&&a.subTo(o,a),s.subTo(u,s)):(i.subTo(r,i),n&&o.subTo(a,o),u.subTo(s,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 Y)},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]<=V[V.length-1]){for(e=0;e<V.length;++e)if(n[0]==V[e])return!0;return!1}if(n.isEven())return!1;for(e=1;e<V.length;){for(var r=V[e],i=e+1;i<V.length&&r<I;)r*=V[i++];for(r=n.modInt(r);e<i;)if(r%V[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,s=0;--i>=0;){var o=8==r?255&+e[i]:Z(e,i);o<0?"-"==e.charAt(i)&&(a=!0):(a=!1,0==s?this[this.t++]=o:s+r>this.DB?(this[this.t-1]|=(o&(1<<this.DB-s)-1)<<s,this[this.t++]=o>>this.DB-s):this[this.t-1]|=o<<s,(s+=r)>=this.DB&&(s-=this.DB))}8==r&&0!=(128&+e[0])&&(this.s=-1,s>0&&(this[this.t-1]|=(1<<this.DB-s)-1<<s)),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),s=this.s<<n&this.DM,o=this.t-1;o>=0;--o)e[o+a+1]=this[o]>>r|s,s=(this[o]&i)<<n;for(o=a-1;o>=0;--o)e[o]=0;e[a]=s,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 s=n+1;s<this.t;++s)e[s-n-1]|=(this[s]&a)<<i,e[s-n]=this[s]>>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=U());var s=U(),o=this.s,u=e.s,l=this.DB-$(i[i.t-1]);l>0?(i.lShiftTo(l,s),a.lShiftTo(l,r)):(i.copyTo(s),a.copyTo(r));var h=s.t,c=s[h-1];if(0!=c){var f=c*(1<<this.F1)+(h>1?s[h-2]>>this.F2:0),d=this.FV/f,p=(1<<this.F1)/f,m=1<<this.F2,g=r.t,v=g-h,y=null==n?U():n;for(s.dlShiftTo(v,y),r.compareTo(y)>=0&&(r[r.t++]=1,r.subTo(y,r)),t.ONE.dlShiftTo(h,y),y.subTo(s,s);s.t<h;)s[s.t++]=0;for(;--v>=0;){var b=r[--g]==c?this.DM:Math.floor(r[g]*d+(r[g-1]+m)*p);if((r[g]+=s.am(0,b,r,v,0,h))<b)for(s.dlShiftTo(v,y),r.subTo(y,r);r[g]<--b;)r.subTo(y,r)}null!=n&&(r.drShiftTo(h,n),o!=u&&t.ZERO.subTo(n,n)),r.t=h,r.clamp(),l>0&&r.rShiftTo(l,r),o<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=U(),i=U(),a=n.convert(this),s=$(e)-1;for(a.copyTo(r);--s>=0;)if(n.sqrTo(r,i),(e&1<<s)>0)n.mulTo(i,a,r);else{var o=r;r=i,i=o}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=K(n),i=U(),a=U(),s="";for(this.divRemTo(r,i,a);i.signum()>0;)s=(n+a.intValue()).toString(t).substr(1)+s,i.divRemTo(r,i,a);return a.intValue().toString(t)+s},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,s=0,o=0,u=0;u<e.length;++u){var l=Z(e,u);l<0?"-"==e.charAt(u)&&0==this.signum()&&(a=!0):(o=n*o+l,++s>=r&&(this.dMultiply(i),this.dAddOffset(o,0),s=0,o=0))}s>0&&(this.dMultiply(Math.pow(n,s)),this.dAddOffset(o,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),p,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)>V.length&&(e=V.length);for(var a=U(),s=0;s<e;++s){a.fromInt(V[Math.floor(Math.random()*V.length)]);var o=a.modPow(i,this);if(0!=o.compareTo(t.ONE)&&0!=o.compareTo(n)){for(var u=1;u++<r&&0!=o.compareTo(n);)if(0==(o=o.modPowInt(2,this)).compareTo(t.ONE))return!1;if(0!=o.compareTo(n))return!1}}return!0},t.prototype.square=function(){var t=U();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(),s=r.getLowestSetBit();if(s<0)e(n);else{a<s&&(s=a),s>0&&(n.rShiftTo(s,n),r.rShiftTo(s,r));var o=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(o,0):(s>0&&r.lShiftTo(s,r),setTimeout((function(){e(r)}),0))};setTimeout(o,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),p,this),this.isEven()&&this.dAddOffset(1,0);var a=this,s=function(){a.dAddOffset(2,0),a.bitLength()>e&&a.subTo(t.ONE.shiftLeft(e-1),a),a.isProbablePrime(n)?setTimeout((function(){i()}),0):setTimeout(s,0)};setTimeout(s,0)}else{var o=[],u=7&e;o.length=1+(e>>3),n.nextBytes(o),u>0?o[0]&=(1<<u)-1:o[0]=0,this.fromString(o,256)}},t}(),Y=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}(),L=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}(),j=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=U();return t.abs().dlShiftTo(this.m.t,e),e.divRemTo(this.m,null,e),t.s<0&&e.compareTo(B.ZERO)>0&&this.m.subTo(e,e),e},t.prototype.revert=function(t){var e=U();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}(),F=function(){function t(t){this.m=t,this.r2=U(),this.q3=U(),B.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=U();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 U(){return new B(null)}function H(t,e){return new B(t,e)}var z="undefined"!=typeof navigator;z&&"Microsoft Internet Explorer"==navigator.appName?(B.prototype.am=function(t,e,n,r,i,a){for(var s=32767&e,o=e>>15;--a>=0;){var u=32767&this[t],l=this[t++]>>15,h=o*u+l*s;i=((u=s*u+((32767&h)<<15)+n[r]+(1073741823&i))>>>30)+(h>>>15)+o*l+(i>>>30),n[r++]=1073741823&u}return i},A=30):z&&"Netscape"!=navigator.appName?(B.prototype.am=function(t,e,n,r,i,a){for(;--a>=0;){var s=e*this[t++]+n[r]+i;i=Math.floor(s/67108864),n[r++]=67108863&s}return i},A=26):(B.prototype.am=function(t,e,n,r,i,a){for(var s=16383&e,o=e>>14;--a>=0;){var u=16383&this[t],l=this[t++]>>14,h=o*u+l*s;i=((u=s*u+((16383&h)<<14)+n[r]+i)>>28)+(h>>14)+o*l,n[r++]=268435455&u}return i},A=28),B.prototype.DB=A,B.prototype.DM=(1<<A)-1,B.prototype.DV=1<<A;B.prototype.FV=Math.pow(2,52),B.prototype.F1=52-A,B.prototype.F2=2*A-52;var q,W,G=[];for(q="0".charCodeAt(0),W=0;W<=9;++W)G[q++]=W;for(q="a".charCodeAt(0),W=10;W<36;++W)G[q++]=W;for(q="A".charCodeAt(0),W=10;W<36;++W)G[q++]=W;function Z(t,e){var n=G[t.charCodeAt(e)];return null==n?-1:n}function K(t){var e=U();return e.fromInt(t),e}function $(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}B.ZERO=K(0),B.ONE=K(1);var X=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 J,Q,tt=null;if(null==tt){tt=[],Q=0;var et=void 0;if(window.crypto&&window.crypto.getRandomValues){var nt=new Uint32Array(256);for(window.crypto.getRandomValues(nt),et=0;et<nt.length;++et)tt[Q++]=255&nt[et]}var rt=0,it=function(t){if((rt=rt||0)>=256||Q>=256)window.removeEventListener?window.removeEventListener("mousemove",it,!1):window.detachEvent&&window.detachEvent("onmousemove",it);else try{var e=t.x+t.y;tt[Q++]=255&e,rt+=1}catch(t){}};window.addEventListener?window.addEventListener("mousemove",it,!1):window.attachEvent&&window.attachEvent("onmousemove",it)}function at(){if(null==J){for(J=new X;Q<256;){var t=Math.floor(65536*Math.random());tt[Q++]=255&t}for(J.init(tt),Q=0;Q<tt.length;++Q)tt[Q]=0;Q=0}return J.next()}var st=function(){function t(){}return t.prototype.nextBytes=function(t){for(var e=0;e<t.length;++e)t[e]=at()},t}();var ot=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=H(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 st,s=[];e>2;){for(s[0]=0;0==s[0];)a.nextBytes(s);n[--e]=s[0]}return n[--e]=2,n[--e]=0,new B(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,s=0;s<2*e-a;s++)i="0"+i;return i},t.prototype.setPrivate=function(t,e,n){null!=t&&null!=e&&t.length>0&&e.length>0?(this.n=H(t,16),this.e=parseInt(e,16),this.d=H(n,16)):console.error("Invalid RSA private key")},t.prototype.setPrivateEx=function(t,e,n,r,i,a,s,o){null!=t&&null!=e&&t.length>0&&e.length>0?(this.n=H(t,16),this.e=parseInt(e,16),this.d=H(n,16),this.p=H(r,16),this.q=H(i,16),this.dmp1=H(a,16),this.dmq1=H(s,16),this.coeff=H(o,16)):console.error("Invalid RSA private key")},t.prototype.generate=function(t,e){var n=new st,r=t>>1;this.e=parseInt(e,16);for(var i=new B(e,16);;){for(;this.p=new B(t-r,1,n),0!=this.p.subtract(B.ONE).gcd(i).compareTo(B.ONE)||!this.p.isProbablePrime(10););for(;this.q=new B(r,1,n),0!=this.q.subtract(B.ONE).gcd(i).compareTo(B.ONE)||!this.q.isProbablePrime(10););if(this.p.compareTo(this.q)<=0){var a=this.p;this.p=this.q,this.q=a}var s=this.p.subtract(B.ONE),o=this.q.subtract(B.ONE),u=s.multiply(o);if(0==u.gcd(i).compareTo(B.ONE)){this.n=this.p.multiply(this.q),this.d=i.modInverse(u),this.dmp1=this.d.mod(s),this.dmq1=this.d.mod(o),this.coeff=this.q.modInverse(this.p);break}}},t.prototype.decrypt=function(t){var e=H(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 st,i=t>>1;this.e=parseInt(e,16);var a=new B(e,16),s=this,o=function(){var e=function(){if(s.p.compareTo(s.q)<=0){var t=s.p;s.p=s.q,s.q=t}var e=s.p.subtract(B.ONE),r=s.q.subtract(B.ONE),i=e.multiply(r);0==i.gcd(a).compareTo(B.ONE)?(s.n=s.p.multiply(s.q),s.d=a.modInverse(i),s.dmp1=s.d.mod(e),s.dmq1=s.d.mod(r),s.coeff=s.q.modInverse(s.p),setTimeout((function(){n()}),0)):setTimeout(o,0)},u=function(){s.q=U(),s.q.fromNumberAsync(i,1,r,(function(){s.q.subtract(B.ONE).gcda(a,(function(t){0==t.compareTo(B.ONE)&&s.q.isProbablePrime(10)?setTimeout(e,0):setTimeout(u,0)}))}))},l=function(){s.p=U(),s.p.fromNumberAsync(t-i,1,r,(function(){s.p.subtract(B.ONE).gcda(a,(function(t){0==t.compareTo(B.ONE)&&s.p.isProbablePrime(10)?setTimeout(u,0):setTimeout(l,0)}))}))};setTimeout(l,0)};setTimeout(o,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 H("0001"+r+"00"+t,16)}((ut[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=H(e,16),i=this.doPublic(r);return null==i?null:function(t){for(var e in ut)if(ut.hasOwnProperty(e)){var n=ut[e],r=n.length;if(t.substr(0,r)==n)return t.substr(r)}return t}
2
2
  /*!
3
3
  Copyright (c) 2011, Yahoo! Inc. All rights reserved.
4
4
  Code licensed under the BSD License:
5
5
  http://developer.yahoo.com/yui/license.html
6
6
  version: 2.9.0
7
- */(i.toString(16).replace(/^1f+00/,""))==n(t).toString()},t}();var ut={md2:"3020300c06082a864886f70d020205000410",md5:"3020300c06082a864886f70d020505000410",sha1:"3021300906052b0e03021a05000414",sha224:"302d300d06096086480165030402040500041c",sha256:"3031300d060960864801650304020105000420",sha384:"3041300d060960864801650304020205000430",sha512:"3051300d060960864801650304020305000440",ripemd160:"3021300906052b2403020105000414"};var ht={};ht.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(){},s=["toString","valueOf"];try{/MSIE/.test(navigator.userAgent)&&(a=function(t,e){for(i=0;i<s.length;i+=1){var n=s[i],r=e[n];"function"==typeof r&&r!=Object.prototype[n]&&(t[n]=r)}})}catch(t){}a(t.prototype,n)}}};
7
+ */(i.toString(16).replace(/^1f+00/,""))==n(t).toString()},t}();var ut={md2:"3020300c06082a864886f70d020205000410",md5:"3020300c06082a864886f70d020505000410",sha1:"3021300906052b0e03021a05000414",sha224:"302d300d06096086480165030402040500041c",sha256:"3031300d060960864801650304020105000420",sha384:"3041300d060960864801650304020205000430",sha512:"3051300d060960864801650304020305000440",ripemd160:"3021300906052b2403020105000414"};var lt={};lt.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(){},s=["toString","valueOf"];try{/MSIE/.test(navigator.userAgent)&&(a=function(t,e){for(i=0;i<s.length;i+=1){var n=s[i],r=e[n];"function"==typeof r&&r!=Object.prototype[n]&&(t[n]=r)}})}catch(t){}a(t.prototype,n)}}};
8
8
  /**
9
9
  * @fileOverview
10
10
  * @name asn1-1.0.js
@@ -13,9 +13,9 @@ version: 2.9.0
13
13
  * @since jsrsasign 2.1
14
14
  * @license <a href="https://kjur.github.io/jsrsasign/license/">MIT License</a>
15
15
  */
16
- var lt={};void 0!==lt.asn1&&lt.asn1||(lt.asn1={}),lt.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 B(r,16).xor(t).add(B.ONE).toString(16).replace(/^-/,"")}return e},this.getPEMStringFromHex=function(t,e){return hextopem(t,e)},this.newObject=function(t){var e=lt.asn1,n=e.DERBoolean,r=e.DERInteger,i=e.DERBitString,a=e.DEROctetString,s=e.DERNull,o=e.DERObjectIdentifier,u=e.DEREnumerated,h=e.DERUTF8String,l=e.DERNumericString,c=e.DERPrintableString,f=e.DERTeletexString,d=e.DERIA5String,p=e.DERUTCTime,m=e.DERGeneralizedTime,g=e.DERSequence,v=e.DERSet,y=e.DERTaggedObject,b=e.ASN1Util.newObject,_=Object.keys(t);if(1!=_.length)throw"key of param shall be only one.";var w=_[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 s(t[w]);if("oid"==w)return new o(t[w]);if("enum"==w)return new u(t[w]);if("utf8str"==w)return new h(t[w]);if("numstr"==w)return new l(t[w]);if("prnstr"==w)return new c(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 m(t[w]);if("seq"==w){for(var D=t[w],S=[],T=0;T<D.length;T++){var x=b(D[T]);S.push(x)}return new g({array:S})}if("set"==w){for(D=t[w],S=[],T=0;T<D.length;T++){x=b(D[T]);S.push(x)}return new v({array:S})}if("tag"==w){var E=t[w];if("[object Array]"===Object.prototype.toString.call(E)&&3==E.length){var O=b(E[2]);return new y({tag:E[0],explicit:E[1],obj:O})}var M={};if(void 0!==E.explicit&&(M.explicit=E.explicit),void 0!==E.tag&&(M.tag=E.tag),void 0===E.obj)throw"obj shall be specified for 'tag'.";return M.obj=b(E.obj),new y(M)}},this.jsonToASN1HEX=function(t){return this.newObject(t).getEncodedHex()}},lt.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 B(r,2).toString(10),r=""}return e},lt.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 B(t,10).toString(2),i=7-r.length%7;7==i&&(i=0);for(var a="",s=0;s<i;s++)a+="0";r=a+r;for(s=0;s<r.length-1;s+=7){var o=r.substr(s,7);s!=r.length-7&&(o="1"+o),n+=e(parseInt(o,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 s=0;s<i.length;s++)r+=n(i[s]);return r},lt.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="+"".length+",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""}},lt.asn1.DERAbstractString=function(t){lt.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(lt.asn1.DERAbstractString,lt.asn1.ASN1Object),lt.asn1.DERAbstractTime=function(t){lt.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 s=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 o=i.getMilliseconds();if(0!=o){var u=r(String(o),3);s=s+"."+(u=u.replace(/[0]+$/,""))}}return s+"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 s=new Date(Date.UTC(t,e-1,n,r,i,a,0));this.setByDate(s)},this.getFreshValueHex=function(){return this.hV}},ht.lang.extend(lt.asn1.DERAbstractTime,lt.asn1.ASN1Object),lt.asn1.DERAbstractStructured=function(t){lt.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(lt.asn1.DERAbstractStructured,lt.asn1.ASN1Object),lt.asn1.DERBoolean=function(){lt.asn1.DERBoolean.superclass.constructor.call(this),this.hT="01",this.hTLV="0101ff"},ht.lang.extend(lt.asn1.DERBoolean,lt.asn1.ASN1Object),lt.asn1.DERInteger=function(t){lt.asn1.DERInteger.superclass.constructor.call(this),this.hT="02",this.setByBigInteger=function(t){this.hTLV=null,this.isModified=!0,this.hV=lt.asn1.ASN1Util.bigIntToMinTwosComplementsHex(t)},this.setByInteger=function(t){var e=new B(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(lt.asn1.DERInteger,lt.asn1.ASN1Object),lt.asn1.DERBitString=function(t){if(void 0!==t&&void 0!==t.obj){var e=lt.asn1.ASN1Util.newObject(t.obj);t.hex="00"+e.getEncodedHex()}lt.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(lt.asn1.DERBitString,lt.asn1.ASN1Object),lt.asn1.DEROctetString=function(t){if(void 0!==t&&void 0!==t.obj){var e=lt.asn1.ASN1Util.newObject(t.obj);t.hex=e.getEncodedHex()}lt.asn1.DEROctetString.superclass.constructor.call(this,t),this.hT="04"},ht.lang.extend(lt.asn1.DEROctetString,lt.asn1.DERAbstractString),lt.asn1.DERNull=function(){lt.asn1.DERNull.superclass.constructor.call(this),this.hT="05",this.hTLV="0500"},ht.lang.extend(lt.asn1.DERNull,lt.asn1.ASN1Object),lt.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 B(t,10).toString(2),i=7-r.length%7;7==i&&(i=0);for(var a="",s=0;s<i;s++)a+="0";r=a+r;for(s=0;s<r.length-1;s+=7){var o=r.substr(s,7);s!=r.length-7&&(o="1"+o),n+=e(parseInt(o,2))}return n};lt.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 s=0;s<i.length;s++)r+=n(i[s]);this.hTLV=null,this.isModified=!0,this.s=null,this.hV=r},this.setValueName=function(t){var e=lt.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(lt.asn1.DERObjectIdentifier,lt.asn1.ASN1Object),lt.asn1.DEREnumerated=function(t){lt.asn1.DEREnumerated.superclass.constructor.call(this),this.hT="0a",this.setByBigInteger=function(t){this.hTLV=null,this.isModified=!0,this.hV=lt.asn1.ASN1Util.bigIntToMinTwosComplementsHex(t)},this.setByInteger=function(t){var e=new B(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(lt.asn1.DEREnumerated,lt.asn1.ASN1Object),lt.asn1.DERUTF8String=function(t){lt.asn1.DERUTF8String.superclass.constructor.call(this,t),this.hT="0c"},ht.lang.extend(lt.asn1.DERUTF8String,lt.asn1.DERAbstractString),lt.asn1.DERNumericString=function(t){lt.asn1.DERNumericString.superclass.constructor.call(this,t),this.hT="12"},ht.lang.extend(lt.asn1.DERNumericString,lt.asn1.DERAbstractString),lt.asn1.DERPrintableString=function(t){lt.asn1.DERPrintableString.superclass.constructor.call(this,t),this.hT="13"},ht.lang.extend(lt.asn1.DERPrintableString,lt.asn1.DERAbstractString),lt.asn1.DERTeletexString=function(t){lt.asn1.DERTeletexString.superclass.constructor.call(this,t),this.hT="14"},ht.lang.extend(lt.asn1.DERTeletexString,lt.asn1.DERAbstractString),lt.asn1.DERIA5String=function(t){lt.asn1.DERIA5String.superclass.constructor.call(this,t),this.hT="16"},ht.lang.extend(lt.asn1.DERIA5String,lt.asn1.DERAbstractString),lt.asn1.DERUTCTime=function(t){lt.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(lt.asn1.DERUTCTime,lt.asn1.DERAbstractTime),lt.asn1.DERGeneralizedTime=function(t){lt.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(lt.asn1.DERGeneralizedTime,lt.asn1.DERAbstractTime),lt.asn1.DERSequence=function(t){lt.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(lt.asn1.DERSequence,lt.asn1.DERAbstractStructured),lt.asn1.DERSet=function(t){lt.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(lt.asn1.DERSet,lt.asn1.DERAbstractStructured),lt.asn1.DERTaggedObject=function(t){lt.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(lt.asn1.DERTaggedObject,lt.asn1.ASN1Object);var ct=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)}}(),ft=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 ct(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)?T(t):x.unarmor(t),i=R.decode(r);if(3===i.sub.length&&(i=i.sub[2].sub[0]),9===i.sub.length){e=i.sub[1].getHexStringValue(),this.n=H(e,16),n=i.sub[2].getHexStringValue(),this.e=parseInt(n,16);var a=i.sub[3].getHexStringValue();this.d=H(a,16);var s=i.sub[4].getHexStringValue();this.p=H(s,16);var o=i.sub[5].getHexStringValue();this.q=H(o,16);var u=i.sub[6].getHexStringValue();this.dmp1=H(u,16);var h=i.sub[7].getHexStringValue();this.dmq1=H(h,16);var l=i.sub[8].getHexStringValue();this.coeff=H(l,16)}else{if(2!==i.sub.length)return!1;var c=i.sub[1].sub[0];e=c.sub[0].getHexStringValue(),this.n=H(e,16),n=c.sub[1].getHexStringValue(),this.e=parseInt(n,16)}return!0}catch(t){return!1}},e.prototype.getPrivateBaseKey=function(){var t={array:[new lt.asn1.DERInteger({int:0}),new lt.asn1.DERInteger({bigint:this.n}),new lt.asn1.DERInteger({int:this.e}),new lt.asn1.DERInteger({bigint:this.d}),new lt.asn1.DERInteger({bigint:this.p}),new lt.asn1.DERInteger({bigint:this.q}),new lt.asn1.DERInteger({bigint:this.dmp1}),new lt.asn1.DERInteger({bigint:this.dmq1}),new lt.asn1.DERInteger({bigint:this.coeff})]};return new lt.asn1.DERSequence(t).getEncodedHex()},e.prototype.getPrivateBaseKeyB64=function(){return w(this.getPrivateBaseKey())},e.prototype.getPublicBaseKey=function(){var t=new lt.asn1.DERSequence({array:[new lt.asn1.DERObjectIdentifier({oid:"1.2.840.113549.1.1.1"}),new lt.asn1.DERNull]}),e=new lt.asn1.DERSequence({array:[new lt.asn1.DERInteger({bigint:this.n}),new lt.asn1.DERInteger({int:this.e})]}),n=new lt.asn1.DERBitString({hex:"00"+e.getEncodedHex()});return new lt.asn1.DERSequence({array:[t,n]}).getEncodedHex()},e.prototype.getPublicBaseKeyB64=function(){return w(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}(ot),dt="3.2.1",pt=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 ft(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(D(t))}catch(t){return!1}},t.prototype.encrypt=function(t){try{return w(this.getKey().encrypt(t))}catch(t){return!1}},t.prototype.sign=function(t,e,n){try{return w(this.getKey().sign(t,e,n))}catch(t){return!1}},t.prototype.verify=function(t,e,n){try{return this.getKey().verify(t,D(e),n)}catch(t){return!1}},t.prototype.getKey=function(t){if(!this.key){if(this.key=new ft,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=dt,t}(),mt=function(t,e){var n=e.xRatio,r=e.yRatio;return 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)&&mt(null==t?void 0:t.children,e)})),t},gt=function(t,e,n){var r=t[n];return t.splice(n,1),t.splice(e,0,r),t},vt=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 s=0;s<a.children.length;s++){if(r=s,a.children[s].cid===n){switch(e){case"up":r>=1&&gt(a.children,r-1,r);break;case"down":r<a.children.length-2&&gt(a.children,r+1,r);break;case"top":0!==r&&gt(a.children,0,r);break;case"bottom":var o=a.children.length-1;r!==o&&gt(a.children,o,r)}break}}}return t},yt=function(e,n,r){var i=!1,a=function(e){for(var s=0;s<e.length;s++){if(e[s].cid==n){i=e[s],r&&t.remove(e,(function(t){return t.cid==n}));break}if(e[s].children)a(e[s].children);else if(e[s].dynamicChildren){if(e[s].dynamicChildren instanceof Map){for(var o=Array.from(e[s].dynamicChildren),u=0;u<o.length;u++)if(o[u]instanceof Array){var h=o[u][1];a(h)}}else if(e[s].dynamicChildren instanceof Array)for(o=e[s].dynamicChildren,u=0;u<o.length;u++)if(o[u]instanceof Array){h=o[u][1];a(h)}}else e[s].stateChildren&&a(e[s].stateChildren)}};return a(e),i||!1},bt=function(t,e){var n=null,r=function(t,i){for(var a=0;a<t.length;a++)if(t[a].cid==e)n=i;else if(t[a].children)r(t[a].children,t[a]);else if(t[a].dynamicChildren)if(t[a].dynamicChildren instanceof Map){for(var s=Array.from(t[a].dynamicChildren),o=0;o<s.length;o++)if(s[o]instanceof Array){var u=s[o][1];r(u,t[a])}}else t[a].dynamicChildren;else t[a].stateChildren&&r(t[a].stateChildren,t[a])};return r(t,null),n||!1},_t=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 s=0;s<a.children.length;s++)if(a.children[s].cid===e)return r=a.children[s],n&&a.children.splice(s,1),{value:r}}else if(a.stateChildren&&a.stateChildren.length){for(s=0;s<a.stateChildren.length;s++)if(a.stateChildren[s].cid===e)return r=a.stateChildren[s],n&&a.stateChildren.splice(s,1),{value:r}}else if(a.dynamicChildren){var o=void 0;if(a.dynamicChildren instanceof Map?o=a.dynamicChildren.get(a.activeDynamic):a.dynamicChildren instanceof Array&&(o=a.dynamicChildren.find((function(t){return t[0]==a.activeDynamic}))[1]),o)for(s=0;s<o.length;s++)if(o[s].cid===e)return r=o[s],n&&o.splice(s,1),{value:r}}},a=0;a<t.length;a++){var s=i(a);if("object"==typeof s)return s.value}return!!r},wt=function(t,e,n){var r=_t(t,e),i=_t(t,n);return r.pid&&i.pid||!r.pid&&!i.pid},Dt=function(t,e){var n=function(t){for(var r,i,a,s=0;s<t.length;s++){var o=t[s];(null===(a=null===(i=null===(r=o.tmpData)||void 0===r?void 0:r.source)||void 0===i?void 0:i.converse)||void 0===a?void 0:a.data.length)&&o.tmpData.source.converse.data.forEach((function(t){t.code=t.code.replace(/&gt;/g,">").replace(/&lt;/g,"<")})),e(o),o&&o.children&&o.children.length?n(o.children):o&&o.dynamicChildren?Array.from(o.dynamicChildren).forEach((function(t,e){n(t[1])})):o.stateChildren&&n(o.stateChildren)}};n(t)},St=function(t){var e=function(t,n){for(var r=function(r){var i=t[r],a=Vt();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)},Tt=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 "+n+" is entered correctly!";if(i){t.cloneDeep(e[i][n]);e[i][n]=r}else e[n]=r}catch(t){console.error(t)}},xt=function(t,e){e.forEach((function(e){e.baseData.left=e.baseData.left-t.left,e.baseData.top=e.baseData.top-t.top}))},Et=function(e){var n=t.cloneDeep(e),r=[];return n.children&&n.children.length&&n.children.forEach((function(t){Ot(t,n.baseData),r.push(t)})),r},Ot=function(t,e){t.baseData.left=t.baseData.left+e.left,t.baseData.top=t.baseData.top+e.top},Mt=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},kt=function(e,n){var r=t.cloneDeep(e),i=[],a=function(t,e){var n=yt(t,e);i.push(n.baseData),n.pid&&a(t,n.pid)};a(r,n);var s={left:0,top:0};return i.map((function(t){t&&(s.left+=t.left,s.top+=t.top)})),s},Ct=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},At=function(t,e){var n=[];return t.map((function(t){var r=e.find((function(e){return e.cid===t}));r&&n.push(r)})),Pt(n)},Pt=function(t){if(t.length>0){var e={left:0,top:0,width:0,height:0},n=Ct(t,"left"),r=Ct(t,"top"),i=n[0].baseData,a=n[n.length-1].baseData,s=r[0].baseData,o=r[r.length-1].baseData,u=Math.max.apply(Math,r.map((function(t){return 1*t.baseData.top+1*t.baseData.height}))),h=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,h)-1*i.left,e.top=s.top,e.height=Math.max(1*o.top+1*o.height,u)-1*s.top,e}return{left:0,top:0,width:0,height:0}},Rt=function(e,n,r){var i=e.children,a=t.cloneDeep(n),s=t.cloneDeep(Pt(i)),o=a.left,u=a.top;a.width,a.height;var h=s.left,l=s.top,c=s.width,f=s.height,d={left:o+h,top:u+l,width:c,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-h,e.baseData.top<0?n.top=0:n.top=n.top-l,e.baseData=n})),e.baseData=d,e.children=i,d},Nt=function(t,e){for(var n=0;n<t.length;n++){var r=t[n];t[n].index=n,r.children&&r.children.length?Nt(r.children):e&&e(r)}},Vt=function(){return(Math.random().toString().substr(3,10)+Date.now()).toString()},It=function(t,e,n){var r,i;void 0===n&&(n=" copy");var a=new RegExp(n+"( \\d+)?$").exec(t);a?(r=a[1]?parseInt(a[1]):0,i=t.slice(0,a.index)):(r=0,i=t);var s=new RegExp("^"+i+n+"( [1-9][0-9]*)?$"),o=[];e.forEach((function(t){if(a=s.exec(t)){var e=a[1]?parseInt(a[1]):1;o.push(e)}})),o.sort((function(t,e){return t-e})),r++;for(var u=0,h=o.length;u<h;u++)if(o[u]===r)r++;else if(o[u]>r)break;return i+n+" "+r},Bt=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 Yt(t){for(var e=t.types,n=t.element,r=t.actions,i=t.events,a=function(t){var a=e[t],s=n.tmpData.actions[t];if(s&&s.use){var o=s[s.behave];if(!o)return"continue";"vars"===s.behave?o.map((function(t){t.type=a,t.id=n.cid,t.mapField&&r.push(t)})):o.length>0&&o.forEach((function(t,e){"toggle"===s.behave&&""!==t.value&&t.value.length?i.push({id:n.cid,type:s.behave,children:t.value.map((function(t){return{cid:t.cid,visible:t.visible}})),eventType:a,index:e}):"link"===s.behave&&""!==t.value?i.push({id:n.cid,type:s.behave,link:t.value,eventType:a,index:e}):"page"===s.behave&&""!==t.value?i.push({id:n.cid,type:s.behave,page:t.value,eventType:a,index:e}):"dynamic"===s.behave&&""!==t.value&&t.value.length>0?i.push({id:n.cid,type:s.behave,dynamic:t.value,eventType:a,index:e}):i.push(void 0)}))}},s=0;s<e.length;s++)a(s)}function Lt(t){var e=new pt;return e.setPublicKey("MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEApWni7uLYVV8iyDPTR6Zs\naj+2BHCn4xTzFeVHADzTdtBiFH9i4fKeDK0IfbPV/9TGeRYNfl0qSfdLtU+1ZIzm\npqHppadukmk5+NbBG4Xm/lAZgVt3dUIrSyamxVjwnymN7PLdxaSOS/mgU6SDGMhN\nTM76AXKZZXWMK12UCXvKkh+TkGufcXzLe7LtrvHPLOgcnEED2CkWATuE9g8K9j4T\neOMxhJcHBUmXLgU6Chufa4nBed2899E7jxJa14+J1IDa2ahrDFLZN7H//ZsvwnXq\nxVbxm0k5jyWqfCpg13V7zD3DxNWlo3MIh2fPtIEUDVhugqPd0jPmqquqdBNTnu2I\nGQIDAQAB"),e.encrypt(t)}var jt={updataArea:function(t,e){t.currentArea=e},selectdArea:function(t,e){var n=At(e,t.list);t.currentArea=n},updataAngle:function(t,e){var n=e.id,r=e.angle,i=_t(t.list,n);"boolean"!=typeof i&&(i.baseData.angle=r)},updataBaseData:function(t,e){var n=e.data,r=e.ratio,i=yt(t.list,n.cid),a=e.oldData;if("object"!=typeof i||i.pid){if("object"==typeof i&&i.pid){var s=_t(t.list,i.pid);"object"==typeof s&&(i.baseData.left<0&&(i.baseData.left=0),i.baseData.top<0&&(i.baseData.top=0),Object.assign(i.baseData,n.baseData),Rt(s,s.baseData),t.groupFlag=!t.groupFlag)}}else if(Object.assign(i.baseData,n.baseData),r&&i.children&&i.children.length>0){var o=i.baseData.width/a.width,u=i.baseData.height/a.height;mt(i.children,{xRatio:o,yRatio:u})}},multipleUpdataBaseData:function(e,n){if(n.ratio)for(var r=n.newData,i=n.oldData,a=r.width/i.width,s=r.height/i.height,o=e.cache.length;o--;)e.cache[o].baseData.left=e.cache[o].baseData.left*a,e.cache[o].baseData.width=e.cache[o].baseData.width*a,e.cache[o].baseData.top=e.cache[o].baseData.top*s,e.cache[o].baseData.height=e.cache[o].baseData.height*s;else for(o=e.cache.length;o--;){var u=t.cloneDeep(e.cache[o].baseData);u.left=u.left+n.deltaX,u.top=u.top+n.deltaY,e.cache[o].comPanel?e.cache[o].comPanel.setAttrData(Object.assign(u,n.baseData)):e.cache[o].baseData=u}},multipleUpdata:function(t,e){var n=e.ids,r=e.data,i=_t(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=[_t(t.list,n[0])]);for(var s=0;s<a.length;s++){var o=a[s];if(o.pid&&t.selectd.length>1)return void console.warn("Only one component can be moved within a group");if("up"===r?o.baseData.top=o.baseData.top-i:"down"===r?o.baseData.top+=i:"left"===r?o.baseData.left-=i:"right"===r&&(o.baseData.left+=i),"object"==typeof o&&o.pid){var u=_t(t.list,o.pid);"object"==typeof u&&(Rt(u,u.baseData),t.groupFlag=!t.groupFlag)}}}else console.warn("Warning! please select the component to move.")},updataGroupBaseData:function(e,n){var r=_t(e.list,n.pid),i=t.cloneDeep(r);_t(r.children,n.cid),Rt(r,i.baseData)},editGroupBaseData:function(t,e){var n=_t(t.list,e);n.children.forEach((function(t){Ot(t,n.baseData)}))},syncBaseData:function(t,e){var n=e.cid,r=e.data,i=_t(t.list,n);i.baseData=Object.assign({},i.baseData,r)},updataItemData:function(t,e){var n=e.cid,r=e.propsName,i=e.propsValue,a=_t(t.list,n);a&&(a[r]=i)},updataOpacity:function(t,e){var n=e.cid,r=e.propsValue,i=_t(t.list,n);"boolean"!=typeof i&&i&&(i.baseData.opacity=r)}},Ft={delListItem:function(e,n){var r=t.cloneDeep(e.list);"string"==typeof n?yt(r,n,!0):n.forEach((function(t){yt(r,t,!0)})),e.list=r},cloneItem:function(e){if(e.selectd.length>0){e.cloneCache=[];for(var n=0;n<e.selectd.length;n++){var r=_t(e.list,e.selectd[n]);if("boolean"!=typeof r){var i=t.cloneDeep(r);i.cid=Vt(),i.pid="",e.cloneCache.push(i)}}}},shearItem:function(e,n){if(e.selectd.length>0){e.cloneCache=[];for(var r=0;r<e.selectd.length;r++){var i=_t(e.list,e.selectd[r],!0);if("boolean"!=typeof i){var a=t.cloneDeep(i);a.cid=Vt(),e.cloneCache.push(a)}}e.selectd=[]}},pasteItem:function(e){var n,r=t.cloneDeep(e.cloneCache);if(r.length>0){var i=[];r.forEach((function(t){t.cid=Vt();var n=It(t.name,e.list.map((function(t){return t.name})));if(t.name=n,t.children&&t.children.length>0&&t.children.forEach((function(e){e.pid=t.cid,e.cid=Vt()})),"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,e.cid=Vt()}))}i.push(t.cid)})),e.selectd.length>0?At(e.selectd,e.list):Pt(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=yt(t.list,e);if("boolean"!=typeof n){var r=!n.isShow;Tt(n,"isShow",r,"")}},changeShow:function(t,e){var n=e.cid,r=e.flag,i=yt(t.list,n);i&&Tt(i,"isShow",r,"")},updataLock:function(t,e){var n=yt(t.list,e);if("boolean"!=typeof n){var r=!n.isLock;Tt(n,"isLock",r,"")}},breakUp:function(t,e){var n;try{if(!e)throw"Please pass in the component CID correctly!";var r=t.list.findIndex((function(t){return t.cid===e})),i=t.list[r],a=Et(i);a.map((function(t){return t.pid=""})),t.list.splice(r,1),(n=t.list).push.apply(n,a)}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],s=Et(a);s.map((function(t){return t.pid=""})),t.list.splice(i,1),(n=t.list).push.apply(n,s)}catch(t){console.error(t)}},combination:function(e){t.cloneDeep(e.list);var n,r,i=[],a=[],s=Vt(),o=_t(e.list,e.selectd[0]);o.pid?console.info("Sorry, only level 2 is supported group"):o.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=s,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}),xt(r,a),e.list.splice(n,0,{cid:s,pid:"",isShow:!0,isLock:!1,editer:!1,baseData:r,z:0,toggle:!0,name:"群组",type:"folder",children:a}),e.selectd=[s])},moveUp:function(t,e){try{var n=t.list.findIndex((function(t){return t.cid===e}));n>=1?gt(t.list,n-1,n):vt(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?gt(t.list,n+1,n):vt(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?gt(t.list,0,n):vt(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?gt(t.list,r,n):vt(t.list,"bottom",e)}catch(t){console.error(t)}}};function Ut(e){var n=[],r=[];Dt(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)&&(Yt({types:t.tmpData.actions.map((function(t){return t.eventType})),element:t,actions:n,events:r}),console.log(n,r," actions, events"))}));var i=r.filter((function(t){return t}));return{actions:n,events:i}}var Ht={setSyncFlag:function(t,e){t.syncFlag=e},goUpShareVar:function(t,e){t.shareVariable[e.key]=r({},e)},goEditVar:function(t,e){var n=e.key,r=e.value;t.globalVars.forEach((function(t){t.edit=!1})),t.globalVars.forEach((function(t){t.mapField==n&&(t.edit=!0,t.value=r)}))},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,s=n.attrModel,o=_t(e.list,r);if("boolean"!=typeof o){if(o&&Tt(o,i,a,s),"actions"===i.toLowerCase()){var u=e.list,h=t.uniqWith(t.concat(Ut(u).actions,Ut(e.caseList).actions),t.isEqual),l=t.uniqWith(t.concat(Ut(u).events,Ut(e.caseList).events),t.isEqual);e.globalVars=h,e.globalEvents=l,e.pages[e.pageIndex]&&(e.pages[e.pageIndex].globalVars=h),e.pages[e.pageIndex]&&(e.pages[e.pageIndex].globalEvents=l)}if("source"===i){if(!o.tmpData.source)return!1;var c=o.tmpData.source,f=c.type;if("api"===f){var d=c[f].url.match(/(@)[\w]*/gm);if(d)for(var p=d.map((function(t){return t.replace("@","")})),m=function(n){var r=p[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(o.cid);var i=e.shareVariableTree[r];e.shareVariableTree[r]=t.uniq(i)}else e.shareVariableTree[r]=[],e.shareVariableTree[r].push(o.cid)},g=0;g<p.length;g++)m(g)}}}}}},zt={updataList:function(e,n){var r=n.cid,i=t.cloneDeep(n.list),a=t.cloneDeep(e.list);if(console.log(i,a),-1===i.findIndex((function(t){return t.cid===r})))for(var s=0;s<i.length;s++){var o=i[s];if(o.children&&o.children.length)for(var u=o.cid,h=0;h<o.children.length;h++){var l=o.children[h];if(l.cid===r){l.pid=u;var c=t.cloneDeep(o.baseData),f=Mt(l.baseData,o.baseData,1);Object.assign(l.baseData,f),Rt(o,c);break}}}else{var d=i.find((function(t){return t.cid===r})),p=d.pid;if(p){d.pid="";var m=yt(i,p);console.log(m,"movGroup"),Object.assign(d.baseData,Mt(d.baseData,m.baseData));s=m.children.findIndex((function(t){return t.cid===d.cid}));m.children.splice(s,1),0===m.children.length?yt(i,m.cid,!0):Rt(m,m.baseData)}}e.list=i},updataListForContrast:function(e,n){var r=n.cid,i=n.list,a=yt(i,r);bt(i,r);var s=bt(e.list,r);if(!a.pid){a.pid=s.cid;var o=t.cloneDeep(a.baseData),u=Mt(a.baseData,s.baseData,1);Object.assign(a.baseData,u),Rt(s,o)}},updateTree:function(e){for(var n=e.list,r=0;r<n.length;r++){var i=n[r];if(i.pid)(o=_t(n,i.pid))&&Object.assign(i.baseData,Mt(i.baseData,o.baseData));if(i.children)for(var a=0;a<i.children.length;a++){var s=i.children[a];if(s.pid!=i.cid){var o=_t(n,s.pid);if(t.cloneDeep(s.baseData),o){Object.assign(s.baseData,Mt(s.baseData,o.baseData));var u=Mt(s.baseData,i.baseData,1);Object.assign(s.baseData,u),Rt(i,i.baseData)}s.pid=i.cid}}}}},qt=function(t,e,n){return void 0===e&&(e="jspaths"),i(void 0,void 0,void 0,(function(){return a(this,(function(r){return[2,new Promise((function(r,i){var a="script";"jspaths"==e?a="script":"csspaths"==e&&(a="link");var s=document.createElement(a);"jspaths"==e?(s.async=!1,s.src=t):"csspaths"==e&&(s.async=!0,s.href=t),s.className=e,s.onload=function(){s.onerror=s.onload=null,r(s),i(s)},s.onerror=function(){s.onerror=s.onload=null,i(new Error("Failed to load "+t))},(n||document.head||document.getElementsByTagName("head")[0]).appendChild(s)}))]}))}))},Wt=function(t){return i(void 0,void 0,void 0,(function(){var e,n;return a(this,(function(r){switch(r.label){case 0:e=0,r.label=1;case 1:return e<t.length?(n=t[e],[4,qt(n,"jspaths")]):[3,4];case 2:r.sent(),r.label=3;case 3:return e++,[3,1];case 4:return[2]}}))}))},Gt=function(t){return i(void 0,void 0,void 0,(function(){return a(this,(function(e){switch(e.label){case 0:return t.jspaths&&t.jspaths.length?[4,Wt(t.jspaths)]:[3,2];case 1:e.sent(),e.label=2;case 2:return t.csspaths&&t.csspaths.length?[4,Wt(t.csspaths)]:[3,4];case 3:e.sent(),e.label=4;case 4:return[2]}}))}))},Zt=function(){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.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.removeChild(e[n])}(t.href)}))};var Kt={reset:function(t){t.selectd=[],t.list=[],t.plant=null,t.tw=null,t.watermark=null,t.endnotes=null},setCaseInfo:function(t,e){t.caseInfo=e},setPageId:function(t,e){t.pageId=e},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,Zt(),Gt(t.resource)},updataResource:function(t){console.log(t,"statestatestate"),Zt(),Gt(t.resource)},setData:function(t,e){t.selectd=e.selectd},setList:function(t,e){t.list=e},saveDynamicChildren:function(t,e){var n=e.cid,r=e.data,i=e.name,a=t.pages[t.pageIndex].list,s=_t(a,n);s&&(s.activeDynamic=i,s.dynamicChildren instanceof Array&&(s.dynamicChildren=new Map(s.dynamicChildren)),s.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},reversal:function(t,e){t.undos=[],t.undoRedoPointer=-1,t=Object.assign(t,e)},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=yt(i,n);"boolean"!=typeof a&&Object.assign(a,r)},updataComponentForCaseList:function(t,e){var n=e.cid,r=e.data,i=t.caseList,a=yt(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=yt(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=_t(t.list,n);"boolean"!=typeof i&&(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=yt(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=_t(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=_t(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){Ot(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,s=r.origin,o=t.cloneDeep(e.selectd);if(a){var u=o.includes(i);if(o.length>=1)if(!o.every((function(t){return wt(e.list,t,n.id)})))return void console.info("sorry Only sibling elements can be selected!");u?o.splice(o.findIndex((function(t){return t===i})),1):o.push(i),e.selectd=o}else e.selectd=[i];e.selectd.forEach((function(t){var n=yt(e.list,t);n.pid&&(yt(e.list,n.pid).toggle=!0);n.toggle=!0})),e.selectdChangeOrigin=s||""},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){Nt(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){"MultiStateComponent"!=n.componentType||n.stateChildren||(n.stateChildren=[]),"dynamicComponent"!=n.componentType||n.dynamicChildren||(n.dynamicChildren=new Map,n.activeDynamic="状态1",n.dynamicChildren.set("状态1",[])),e.list.unshift(n),e.menuList=t.cloneDeep(e.list),this.commit("GoCom/execute")},addMyComs:function(e,n){var r;try{var i=n.data,a=n.shareVariableTree,s=n.globalVars,o=n.globalEvents;e.globalVars=t.uniq(t.concat(t.cloneDeep(e.globalVars),s)),e.globalEvents=t.uniq(t.concat(t.cloneDeep(e.globalEvents),o));var u=Object.keys(a),h=Object.keys(e.shareVariableTree),l=t.difference(u,h);l.length?l.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?(St(i),(r=e.list).unshift.apply(r,i)):(St([i]),e.list.unshift(i)),e.menuList=t.cloneDeep(e.list),this.commit("GoCom/execute")}catch(t){}},addStateChildren:function(t,e){var n=_t(t.list,e.pid);n&&n.stateChildren.push(e)},addDynamicChildren:function(t,e){var n=_t(t.list,e.pid);n&&n.dynamicChildren.push(e)},changeDynamicState:function(t,e){var n=_t(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,s=e.value,o=yt(t.list,i);o&&(null===(r=null===(n=null==o?void 0:o.tmpData)||void 0===n?void 0:n.option)||void 0===r?void 0:r.hasOwnProperty(a))&&(o.tmpData.option[a]=s)}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),this.commit("GoCom/execute")},updataName:function(t,e){var n=_t(t.list,e.cid);n&&(n.name=e.name)},setCurrentEdited:function(t,e){if(e){var n=_t(t.list,e);if("boolean"!=typeof n){var r=Et(n);n.children=r}t.currentEditerCid=e}else t.currentEditerCid=""}},$t={layout:function(e,n){var r=function(e,n){try{var r=e.map((function(t){var e=_t(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})),s=(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=s-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.left})),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})),s=(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=s-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)}}},Xt={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,s=t.theme,o=t.plant,u=t.shareVariableTree,h=t.resource;t.pages[t.pageIndex]={globalEvents:n,globalVars:r,list:i,name:a,theme:s,plant:o,shareVariableTree:u,resource:h},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,s=t.plant,o=t.shareVariableTree,u=t.resource;t.pages[t.pageIndex]={globalEvents:e,globalVars:n,list:r,name:i,theme:a,plant:s,shareVariableTree:o,resource:u}},getCurrentPageData:function(t){var e=t.globalEvents,n=t.globalVars,r=t.list,i=t.name,a=t.theme,s=t.plant,o=t.shareVariableTree,u=t.resource;t.pages[t.pageIndex]={globalEvents:e,globalVars:n,list:r,name:i,theme:a,plant:s,shareVariableTree:o,resource:u}}},Jt={namespaced:!0,state:{size:{width:1920,height:1080},resource:{jspaths:[],csspaths:[],otherpaths:[]},alternateData:{},contextList:{},selectd:[],baseComs:[],globalVars:[],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,tw:null,watermark:null,endnotes:null,selectdChangeOrigin:""},mutations:r(r(r(r(r(r(r(r({},s),jt),Ft),Ht),zt),Kt),$t),Xt),actions:{updataList:function(t,e){var n=t.commit;e&&n("updataList",e),n("updateTree")},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)}},getters:{getCurrentPage:function(t){return t.pages.length?t.pages[t.pageIndex]:[]}}},Qt=function(t,n){void 0===t&&(t="");var r=e.create({baseURL:t,timeout:3e4,headers:{"Content-Type":"application/x-www-form-urlencoded;charset=UTF-8"}});return r.interceptors.request.use((function(t){return sessionStorage.getItem("anov-go-token")&&(t.headers["X-ANOV-ACCESS-TOKEN"]=sessionStorage.getItem("anov-go-token")),"post"===t.method?(t.headers["Content-Type"]="application/json; charset=UTF-8",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},te=Qt();function ee(e,n,r,s){return i(this,void 0,void 0,(function(){var i,o,u,h;return a(this,(function(a){switch(a.label){case 0:i=e,o=t.cloneDeep(r),u=n?n.toLowerCase():"get",a.label=1;case 1:return a.trys.push([1,3,,4]),[4,te({method:ie[u],headers:s,url:i,params:o,timeout:3e4}).then((function(t){return{code:2e4,data:t.data}}))];case 2:return[2,a.sent()];case 3:return h=a.sent(),console.error("error:"+h.message),[3,4];case 4:return[2]}}))}))}function ne(t){return i(this,void 0,void 0,(function(){var e,n,i;return a(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",console.log(t,"123321"),r({},t),a.label=1;case 1:return a.trys.push([1,3,,4]),"{}"==JSON.stringify(null==t?void 0:t.params)&&(null==t||delete t.params),"{}"==JSON.stringify(null==t?void 0:t.headers)&&(null==t||delete t.headers),[4,te({url:n,headers:{"Content-Type":"application/json;charset=UTF-8"},method:"post",data:{body:null==t?void 0:t.params,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 re,ie,ae=function(e,n){var r=e.tmpData.source,i=r.api.agency,a=r.type;if("static"!==a){var s=r[a],o=s.url,u=s.headers,h=s.params,l=s.requestType,c={};o.split("?")[0];var f=function(t){var e=new Object;if(-1!==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}(o);u.use&&(c=JSON.parse(u.value));var d={};return h&&t.isString(h)?t.assign(d,f,JSON.parse(h)):t.assign(d,f,h),Object.keys(d).forEach((function(t){var e=d[t],r=n.filter((function(t){return t.mapField==e.toString().replace("@","")}))[0];r&&(d[t]=r.value)})),{url:o,requestType:l,params:h,headers:c,agency:i}}return null},se=function(t,e,n){void 0===e&&(e=[]),e||(e=[]);var r=ae(t,e);r&&n(r)},oe=function(t,e,n,r,i){t.then((function(t){!t||2e4!=t.code&&200!=t.code?he(e,ue({error:!0,message:t.msg?t.msg:"data error"},e,n,r),i):n?he(e,ue(t.data,e,n,r),i):he(e,ue(t.data,e,n,r),i,t.data)})).catch((function(t){he(e,ue({error:!0,message:t.msg?t.msg:"data error"},e,n,r),i)}))},ue=function(t,e,n,r){void 0===n&&(n=!0);try{var i=e.tmpData.source,a=i.converse,s=i.mapFields;return a&&a.use&&n?l(t,a,s,r):new Promise((function(e,n){e(t)}))}catch(t){console.error(t)}},he=function(t,e,n,r){e.then((function(e){r?le(t,e,n,r):le(t,e,n)}))},le=function(t,e,n,r){r?("static"==t.tmpData.source.type&&(t.tmpData.source[t.tmpData.source.type].originData=r),t.tmpData.source[t.tmpData.source.type].data=e):t.tmpData.source[t.tmpData.source.type].data=e,t.source=e,n({cid:t.cid,data:e})},ce=function(t,e,n,r){void 0===n&&(n=!0);try{var i=t.tmpData.source.type,a=void 0;if(a=r||function(){},"api"==i)pe(t,e,n,a);else if("static"==i){var s=void 0,o=void 0;t.tmpData.source.static.originData?o=s=t.tmpData.source.static.originData:s=t.tmpData.source.static.data,he(t,ue(s,t,n,e),a,o)}else if("datasource"==i){s=t.tmpData.source[i];de(s.dsName,{dsType:"1",sql:Lt(s.inputSql)},t,e,a,n)}else if("staticFile"==i){s=t.tmpData.source[i];console.log(t.tmpData.source,"000000"),de(s.dsName,{dsType:s.dsType,sql:""},t,e,a,n)}else if("indicator"==i){s=t.tmpData.source[i];fe(s.zbId,{},t,e,a,n)}else a({cid:t.cid,data:"",message:"发生错误"})}catch(t){r&&r(t),console.log("error:"+t)}},fe=function(t,e,n,r,s,o){return i(void 0,void 0,void 0,(function(){var i,u,h,l,c;return a(this,(function(a){switch(a.label){case 0:return i=window.BaseUrl?window.BaseUrl.replace("/management",""):"",u=Bt("YZH_EXCHANGE_TOKEN")?Bt("YZH_EXCHANGE_TOKEN"):null===(c=window.yzhAuth)||void 0===c?void 0:c.getToken(),l=window.gdPassid,window.BASE_RELEASE?(console.log("发布:",u),h=i+"/dataserver/dataserver/data-engine/v1/"+t+"/zb-query?token="+u+"&passid="+l+"&preview=1"):(console.log("编辑",u),h=i+"/dataserver/dataserver/data-engine/v1/"+t+"/zb-query?token="+u+"&passid="+l),[4,te({method:"POST",url:h,data:e,timeout:3e4}).then((function(t){if(2e4==t.code){var e=JSON.parse(t.data);e?he(n,ue(e,n,o,r),s):(he(n,ue({error:!0,message:t.msg?t.msg:"data error"},n,o,r),s),s({data:e,message:"发生错误"}))}else s({data:"",message:"发生错误"}),console.error("发生错误"),he(n,ue({error:!0,message:t.msg?t.msg:"data error"},n,o,r),s)})).catch((function(t){s(t)}))];case 1:return a.sent(),[2]}}))}))},de=function(t,e,n,r,s,o){return i(void 0,void 0,void 0,(function(){var i;return a(this,(function(a){switch(a.label){case 0:return i=window.BaseUrl?window.BaseUrl.replace("/management",""):"",[4,te({method:"get",url:i+"/ds/v1/data-proxy/v1/"+t+"/query",params:e,timeout:3e4}).then((function(t){if(2e4==t.code){var e=JSON.parse(t.data);e?he(n,ue(e,n,o,r),s):(he(n,ue({error:!0,message:t.msg?t.msg:"data error"},n,o,r),s),s({data:e,message:"发生错误"}))}else s({data:"",message:"发生错误"}),console.error("发生错误"),he(n,ue({error:!0,message:t.msg?t.msg:"data error"},n,o,r),s)})).catch((function(t){s(t)}))];case 1:return a.sent(),[2]}}))}))},pe=function(t,e,n,r){void 0===n&&(n=!0);try{var i=ae(t,e),a=i.url,s=i.requestType,o=i.params,u=i.headers,h=i.agency;console.log(a,t,"0000000");var l=a.match(/(@)[\w]*/gm),c=a;l&&l.length&&l.forEach((function(t){var n=e.filter((function(e){return"@"+e.mapField==t})),r="";n&&n.length&&n.forEach((function(t){""!=t.value&&(r=t.value)})),a=c.replaceAll(t,r)})),oe(h?ne({method:s,url:a,params:o,headers:u}):ee(a,s,o,u),t,n,e,r)}catch(t){console.log("error:"+t)}},me=function(t,e,n,r,i,a){var s,o;void 0===a&&(a=!0),t&&"api"==(null===(o=null===(s=null==t?void 0:t.tmpData)||void 0===s?void 0:s.source)||void 0===o?void 0:o.type)&&se(t,e,(function(s){if(o=s.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(o))return n({cid:t.cid,data:{error:!0,message:s.url+"不是一个正确的地址,请正确填写!"}}),!1;var o,u=s.url,h=s.requestType,c=s.params,f=s.headers;s.agency?ne({method:h,url:u,params:c,headers:f}).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,ue(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}})})):ee(u,h,c,f).then((function(e){var i=[];if(r){var s=t.tmpData.source,o=s.converse,u=s.mapFields;o&&o.use&&a?l(e.data,o,u).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"}(re||(re={})),function(t){t.get="GET",t.post="POST",t.put="PUT",t.patch="PATCH",t.delete="DELETE"}(ie||(ie={}));var ge=Object.freeze({__proto__:null,Http:function(t,e){return Qt(t,e)},axios:e,getDataForEvaluator:l,getData:ee,agentData:ne,getComponentData:se,autoUpdateComData:function(e,n,r){var i,a,s,o,u,h=null===(i=null==e?void 0:e.tmpData)||void 0===i?void 0:i.source,l=null===(s=null===(a=h[null==h?void 0:h.type])||void 0===a?void 0:a.autoUpdate)||void 0===s?void 0:s.open,c=null===(u=null===(o=h[null==h?void 0:h.type])||void 0===o?void 0:o.autoUpdate)||void 0===u?void 0:u.time;l&&t.isNumber(c)&&c>0&&setInterval((function(){ce(e,n,!0,r)}),1e3*c)},updateComData:ce,refreshData:me,get ContentType(){return re},get HttpMethod(){return ie}}),ve=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 ye(t.storeModule,e)},t.prototype.mapGetters=function(e){return _e(t.storeModule,e)},t.prototype.mapMutations=function(e){return be(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){t.store.commit(t.storeModule+"/"+e,n)},t.prototype.callAction=function(e,n){t.store.dispatch(t.storeModule+"/"+e,n)},t.storeModule="GoCom",t}(),ye=De((function(t,e){var n;return we(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=Se(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})),be=De((function(t,e){var n;return we(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=Se(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})),_e=De((function(t,e){var n={};return we(e).forEach((function(e){var r=e.key,i=e.val;i=t+i,n[r]=function(){if(!t||Se(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: "+i)}},n[r].VuexServer=!0})),n}));function we(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 De(t){return function(e,n){return"string"!=typeof e?(n=e,e=""):"/"!==e.charAt(e.length-1)&&(e+="/"),t(e,n)}}function Se(t,e,n){var r=t._modulesNamespaceMap[n];return"production"===process.env.NODE_ENV||r||console.error("[VuexServer] module namespace not found in "+e+"(): "+n),r}var Te=function(t){var e=this;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=Vt(),t&&(Object.keys(t).forEach((function(n){e[n]=t[n]})),["AnEchartsMap","AnMaptalks","AnEchartsMap1","AnArcgisMapBase","AnAMap1","AnCesium","AnThreeMap3DChina","AnThreeMapForCesium"].includes(t.viewComName)&&(this.componentType="MultiStateComponent"),"AnDynamic"===t.viewComName&&(this.componentType="dynamicComponent"))},xe=function(){function e(t){this.vueServer=t,this.loadScript=qt}return e.setStore=function(t){this.store=t},e.prototype.loadComponents=function(e){var n=e&&e.list?e.list:[];Dt(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 i(this,void 0,void 0,(function(){var n,r,i=this;return a(this,(function(s){switch(s.label){case 0:if(window[e])return[3,5];n=function(e){var n;return a(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,s.label=1;case 1:return r<t.length?[5,n(r)]:[3,4];case 2:s.sent(),s.label=3;case 3:return r++,[3,1];case 4:window[e]=e,s.label=5;case 5:return[2]}}))}))},e.prototype._load=function(t){return i(this,void 0,void 0,(function(){var e=this;return a(this,(function(n){return[2,new Promise((function(n){n(e.loadScript(t))}))]}))}))},e}(),Ee=function(){function t(t){var e=t.dbName,n=t.tables,i=t.version,a=void 0===i?1:i,s=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=a,this.openDB(r({dbName:e,tables:n,version:a},s))}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,s=window.indexedDB;if(s)if((null==r?void 0:r.length)<1)console.error("表名不能为空");else{var o=s.open(n,i);o.onerror=function(t){var e,n;console.error("打开数据库失败: "+(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)},o.onsuccess=function(t){var n;e.storage=null===(n=t.target)||void 0===n?void 0:n.result,"function"==typeof a&&a(t)},o.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}(),Oe=function(){function t(){this.VueServer=new ve}return t.getInstance=function(){return this.instance||(this.db=new Ee({dbName:"AnovGo",tables:["logs"]}),this.instance=new t),this.instance},t.prototype.getAppStore=function(){return t.store},t.setAppStore=function(e){t.store=e,ve.setAppStore(e),xe.setStore(e)},t.prototype.add=function(t,e){e.MultiState?this.VueServer.callMutation("addStateChildren",e):(this.VueServer.callMutation("addComs",e),this.VueServer.callMutation("setActive",{id:t}))},t.prototype.render=function(t){var e=new Te(t);this.add(e.cid,e)},t.prototype.reversal=function(t){new xe(new ve).loadComponents(t)},t.prototype.log=function(e,n,r,i,a){var s=(new Date).toLocaleString();t.db.set(s,{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,s,o){var u=i.cid,h=i.actions.eventName,l=[];l=i.hasOwnProperty("index")?t.filter((function(t){return t.id==u&&t.eventType==h&&parseInt(t.index)+1==parseInt(i.index)})):t.filter((function(t){return t.id===u&&t.eventType===h}));var c=i.actions.mode;!e||e.filter((function(t){return t.id===u&&t.type===h}));for(var f=function(t){var e=l[t];if("link"==e.type&&window.open(e.link),"page"===e.type&&o&&o(e),"dynamic"===e.type){var n=e.dynamic;n&&n.length&&n.forEach((function(t){var n;e.id===i.cid&&(1!=i.actions.mode?e.index==i.index-1&&(n=yt(r,t.pid))&&(n.activeDynamic=t.name,n.isShow=!0,t.visible||(n.isShow=!1)):(n=yt(r,t.pid))&&(n.activeDynamic=t.name,n.isShow=!0,t.visible||(n.isShow=!1)))}))}"toggle"==e.type&&(2==c?e.children.forEach((function(t){e.index===i.index-1&&a({cid:t.cid,flag:t.visible})})):e.children.forEach((function(t){a({cid:t.cid,flag:t.visible})})))},d=0;d<l.length;d++)f(d);for(d=0;d<e.length;d++){var p=e[d];if(p.id==u){i.hasOwnProperty(p.field)?p.value=i[p.field]?i[p.field]:"":(null==i?void 0:i.data)&&i.data[p.field]?p.value=null==i?void 0:i.data[p.field]:p.value=null;var m=n[p.mapField];if(!n)return;m&&m.length&&m.forEach((function(t){var n=_t(r,t);ce(n,e,!0,s)}))}}}(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}(),Me=Object.defineProperty,ke=Object.getOwnPropertySymbols,Ce=Object.prototype.hasOwnProperty,Ae=Object.prototype.propertyIsEnumerable,Pe=(t,e,n)=>e in t?Me(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Re=(t,e)=>{for(var n in e||(e={}))Ce.call(e,n)&&Pe(t,n,e[n]);if(ke)for(var n of ke(e))Ae.call(e,n)&&Pe(t,n,e[n]);return t},Ne=(t,e,n)=>(Pe(t,"symbol"!=typeof e?e+"":e,n),n),Ve=(t,e,n)=>new Promise(((r,i)=>{var a=t=>{try{o(n.next(t))}catch(t){i(t)}},s=t=>{try{o(n.throw(t))}catch(t){i(t)}},o=t=>t.done?r(t.value):Promise.resolve(t.value).then(a,s);o((n=n.apply(t,e)).next())})),Ie={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,blindOpacity:.005},Be={childList:!0,subtree:!0,attributeFilter:["style","data-watermark-tag"]};var Ye=t=>{let e="";return Object.keys(t).forEach((n=>{const r=n.replace(/([A-Z])/g,"-$1").toLowerCase();e+=`${r}:${t[n]};`})),e},Le=(t="")=>{return`${e=t,window.btoa(decodeURI(encodeURIComponent(e)))}-${(new Date).getTime()}-${Math.floor(Math.random()*Math.pow(10,8))}`;var e};var je=window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver,Fe="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function Ue(){throw new Error("Dynamic requires are not currently supported by rollup-plugin-commonjs")}function He(t,e){return t(e={exports:{}},e.exports),e.exports}var ze=He((function(t,e){t.exports=function(){var e,n;function r(){return e.apply(null,arguments)}function i(t){e=t}function a(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 o(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function u(t){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(t).length;var e;for(e in t)if(o(t,e))return!1;return!0}function h(t){return void 0===t}function l(t){return"number"==typeof t||"[object Number]"===Object.prototype.toString.call(t)}function c(t){return t instanceof Date||"[object Date]"===Object.prototype.toString.call(t)}function f(t,e){var n,r=[];for(n=0;n<t.length;++n)r.push(e(t[n],n));return r}function d(t,e){for(var n in e)o(e,n)&&(t[n]=e[n]);return o(e,"toString")&&(t.toString=e.toString),o(e,"valueOf")&&(t.valueOf=e.valueOf),t}function p(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 g(t){return null==t._pf&&(t._pf=m()),t._pf}function v(t){if(null==t._isValid){var e=g(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 y(t){var e=p(NaN);return null!=t?d(g(e),t):g(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=[],_=!1;function w(t,e){var n,r,i;if(h(e._isAMomentObject)||(t._isAMomentObject=e._isAMomentObject),h(e._i)||(t._i=e._i),h(e._f)||(t._f=e._f),h(e._l)||(t._l=e._l),h(e._strict)||(t._strict=e._strict),h(e._tzm)||(t._tzm=e._tzm),h(e._isUTC)||(t._isUTC=e._isUTC),h(e._offset)||(t._offset=e._offset),h(e._pf)||(t._pf=g(e)),h(e._locale)||(t._locale=e._locale),b.length>0)for(n=0;n<b.length;n++)h(i=e[r=b[n]])||(t[r]=i);return t}function D(t){w(this,t),this._d=new Date(null!=t._d?t._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===_&&(_=!0,r.updateOffset(this),_=!1)}function S(t){return t instanceof D||null!=t&&null!=t._isAMomentObject}function T(t){!1===r.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+t)}function x(t,e){var n=!0;return d((function(){if(null!=r.deprecationHandler&&r.deprecationHandler(null,t),n){var i,a,s,u=[];for(a=0;a<arguments.length;a++){if(i="","object"==typeof arguments[a]){for(s in i+="\n["+a+"] ",arguments[0])o(arguments[0],s)&&(i+=s+": "+arguments[0][s]+", ");i=i.slice(0,-2)}else i=arguments[a];u.push(i)}T(t+"\nArguments: "+Array.prototype.slice.call(u).join("")+"\n"+(new Error).stack),n=!1}return e.apply(this,arguments)}),e)}var E,O={};function M(t,e){null!=r.deprecationHandler&&r.deprecationHandler(t,e),O[t]||(T(e),O[t]=!0)}function k(t){return"undefined"!=typeof Function&&t instanceof Function||"[object Function]"===Object.prototype.toString.call(t)}function C(t){var e,n;for(n in t)o(t,n)&&(k(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 A(t,e){var n,r=d({},t);for(n in e)o(e,n)&&(s(t[n])&&s(e[n])?(r[n]={},d(r[n],t[n]),d(r[n],e[n])):null!=e[n]?r[n]=e[n]:delete r[n]);for(n in t)o(t,n)&&!o(e,n)&&s(t[n])&&(r[n]=d({},r[n]));return r}function P(t){null!=t&&this.set(t)}r.suppressDeprecationWarnings=!1,r.deprecationHandler=null,E=Object.keys?Object.keys:function(t){var e,n=[];for(e in t)o(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 k(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,B=/(\[[^\[]*\])|(\\)?(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 F(t){return t.match(/\[[\s\S]/)?t.replace(/^\[|\]$/g,""):t.replace(/\\/g,"")}function U(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]=F(r[e]);return function(e){var i,a="";for(i=0;i<n;i++)a+=k(r[i])?r[i].call(e,t):r[i];return a}}function H(t,e){return t.isValid()?(e=z(e,t.localeData()),Y[e]=Y[e]||U(e),Y[e](t)):t.localeData().invalidDate()}function z(t,e){var n=5;function r(t){return e.longDateFormat(t)||t}for(B.lastIndex=0;n>=0&&B.test(t);)t=t.replace(B,r),B.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 W(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 G="Invalid date";function Z(){return this._invalidDate}var K="%d",$=/\d{1,2}/;function X(t){return this._ordinal.replace("%d",t)}var J={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 Q(t,e,n,r){var i=this._relativeTime[n];return k(i)?i(t,e,n,r):i.replace(/%d/i,t)}function tt(t,e){var n=this._relativeTime[t>0?"future":"past"];return k(n)?n(e):n.replace(/%s/i,e)}var et={};function nt(t,e){var n=t.toLowerCase();et[n]=et[n+"s"]=et[e]=t}function rt(t){return"string"==typeof t?et[t]||et[t.toLowerCase()]:void 0}function it(t){var e,n,r={};for(n in t)o(t,n)&&(e=rt(n))&&(r[e]=t[n]);return r}var at={};function st(t,e){at[t]=e}function ot(t){var e,n=[];for(e in t)o(t,e)&&n.push({unit:e,priority:at[e]});return n.sort((function(t,e){return t.priority-e.priority})),n}function ut(t){return t%4==0&&t%100!=0||t%400==0}function ht(t){return t<0?Math.ceil(t)||0:Math.floor(t)}function lt(t){var e=+t,n=0;return 0!==e&&isFinite(e)&&(n=ht(e)),n}function ct(t,e){return function(n){return null!=n?(dt(this,t,n),r.updateOffset(this,e),this):ft(this,t)}}function ft(t,e){return t.isValid()?t._d["get"+(t._isUTC?"UTC":"")+e]():NaN}function dt(t,e,n){t.isValid()&&!isNaN(n)&&("FullYear"===e&&ut(t.year())&&1===t.month()&&29===t.date()?(n=lt(n),t._d["set"+(t._isUTC?"UTC":"")+e](n,t.month(),Qt(n,t.month()))):t._d["set"+(t._isUTC?"UTC":"")+e](n))}function pt(t){return k(this[t=rt(t)])?this[t]():this}function mt(t,e){if("object"==typeof t){var n,r=ot(t=it(t));for(n=0;n<r.length;n++)this[r[n].unit](t[r[n].unit])}else if(k(this[t=rt(t)]))return this[t](e);return this}var gt,vt=/\d/,yt=/\d\d/,bt=/\d{3}/,_t=/\d{4}/,wt=/[+-]?\d{6}/,Dt=/\d\d?/,St=/\d\d\d\d?/,Tt=/\d\d\d\d\d\d?/,xt=/\d{1,3}/,Et=/\d{1,4}/,Ot=/[+-]?\d{1,6}/,Mt=/\d+/,kt=/[+-]?\d+/,Ct=/Z|[+-]\d\d:?\d\d/gi,At=/Z|[+-]\d\d(?::?\d\d)?/gi,Pt=/[+-]?\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){gt[t]=k(e)?e:function(t,r){return t&&n?n:e}}function Vt(t,e){return o(gt,t)?gt[t](e._strict,e._locale):new RegExp(It(t))}function It(t){return Bt(t.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,(function(t,e,n,r,i){return e||n||r||i})))}function Bt(t){return t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}gt={};var Yt={};function Lt(t,e){var n,r=e;for("string"==typeof t&&(t=[t]),l(e)&&(r=function(t,n){n[e]=lt(t)}),n=0;n<t.length;n++)Yt[t[n]]=r}function jt(t,e){Lt(t,(function(t,n,r,i){r._w=r._w||{},e(t,r._w,r,i)}))}function Ft(t,e,n){null!=e&&o(Yt,t)&&Yt[t](e,n._a,n,t)}var Ut,Ht=0,zt=1,qt=2,Wt=3,Gt=4,Zt=5,Kt=6,$t=7,Xt=8;function Jt(t,e){return(t%e+e)%e}function Qt(t,e){if(isNaN(t)||isNaN(e))return NaN;var n=Jt(e,12);return t+=(e-n)/12,1===n?ut(t)?29:28:31-n%7%2}Ut=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)})),nt("month","M"),st("month",8),Nt("M",Dt),Nt("MM",Dt,yt),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[zt]=lt(t)-1})),Lt(["MMM","MMMM"],(function(t,e,n,r){var i=n._locale.monthsParse(t,r,n._strict);null!=i?e[zt]=i:g(n).invalidMonth=t}));var te="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ee="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),ne=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,re=Rt,ie=Rt;function ae(t,e){return t?a(this._months)?this._months[t.month()]:this._months[(this._months.isFormat||ne).test(e)?"format":"standalone"][t.month()]:a(this._months)?this._months:this._months.standalone}function se(t,e){return t?a(this._monthsShort)?this._monthsShort[t.month()]:this._monthsShort[ne.test(e)?"format":"standalone"][t.month()]:a(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function oe(t,e,n){var r,i,a,s=t.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],r=0;r<12;++r)a=p([2e3,r]),this._shortMonthsParse[r]=this.monthsShort(a,"").toLocaleLowerCase(),this._longMonthsParse[r]=this.months(a,"").toLocaleLowerCase();return n?"MMM"===e?-1!==(i=Ut.call(this._shortMonthsParse,s))?i:null:-1!==(i=Ut.call(this._longMonthsParse,s))?i:null:"MMM"===e?-1!==(i=Ut.call(this._shortMonthsParse,s))||-1!==(i=Ut.call(this._longMonthsParse,s))?i:null:-1!==(i=Ut.call(this._longMonthsParse,s))||-1!==(i=Ut.call(this._shortMonthsParse,s))?i:null}function ue(t,e,n){var r,i,a;if(this._monthsParseExact)return oe.call(this,t,e,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),r=0;r<12;r++){if(i=p([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 he(t,e){var n;if(!t.isValid())return t;if("string"==typeof e)if(/^\d+$/.test(e))e=lt(e);else if(!l(e=t.localeData().monthsParse(e)))return t;return n=Math.min(t.date(),Qt(t.year(),e)),t._d["set"+(t._isUTC?"UTC":"")+"Month"](e,n),t}function le(t){return null!=t?(he(this,t),r.updateOffset(this,!0),this):ft(this,"Month")}function ce(){return Qt(this.year(),this.month())}function fe(t){return this._monthsParseExact?(o(this,"_monthsRegex")||pe.call(this),t?this._monthsShortStrictRegex:this._monthsShortRegex):(o(this,"_monthsShortRegex")||(this._monthsShortRegex=re),this._monthsShortStrictRegex&&t?this._monthsShortStrictRegex:this._monthsShortRegex)}function de(t){return this._monthsParseExact?(o(this,"_monthsRegex")||pe.call(this),t?this._monthsStrictRegex:this._monthsRegex):(o(this,"_monthsRegex")||(this._monthsRegex=ie),this._monthsStrictRegex&&t?this._monthsStrictRegex:this._monthsRegex)}function pe(){function t(t,e){return e.length-t.length}var e,n,r=[],i=[],a=[];for(e=0;e<12;e++)n=p([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]=Bt(r[e]),i[e]=Bt(i[e]);for(e=0;e<24;e++)a[e]=Bt(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 ut(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"),nt("year","y"),st("year",1),Nt("Y",kt),Nt("YY",Dt,yt),Nt("YYYY",Et,_t),Nt("YYYYY",Ot,wt),Nt("YYYYYY",Ot,wt),Lt(["YYYYY","YYYYYY"],Ht),Lt("YYYY",(function(t,e){e[Ht]=2===t.length?r.parseTwoDigitYear(t):lt(t)})),Lt("YY",(function(t,e){e[Ht]=r.parseTwoDigitYear(t)})),Lt("Y",(function(t,e){e[Ht]=parseInt(t,10)})),r.parseTwoDigitYear=function(t){return lt(t)+(lt(t)>68?1900:2e3)};var ge=ct("FullYear",!0);function ve(){return ut(this.year())}function ye(t,e,n,r,i,a,s){var o;return t<100&&t>=0?(o=new Date(t+400,e,n,r,i,a,s),isFinite(o.getFullYear())&&o.setFullYear(t)):o=new Date(t,e,n,r,i,a,s),o}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 _e(t,e,n){var r=7+e-n;return-(7+be(t,0,r).getUTCDay()-e)%7+r-1}function we(t,e,n,r,i){var a,s,o=1+7*(e-1)+(7+n-r)%7+_e(t,r,i);return o<=0?s=me(a=t-1)+o:o>me(t)?(a=t+1,s=o-me(t)):(a=t,s=o),{year:a,dayOfYear:s}}function De(t,e,n){var r,i,a=_e(t.year(),e,n),s=Math.floor((t.dayOfYear()-a-1)/7)+1;return s<1?r=s+Se(i=t.year()-1,e,n):s>Se(t.year(),e,n)?(r=s-Se(t.year(),e,n),i=t.year()+1):(i=t.year(),r=s),{week:r,year:i}}function Se(t,e,n){var r=_e(t,e,n),i=_e(t+1,e,n);return(me(t)-r+i)/7}function Te(t){return De(t,this._week.dow,this._week.doy).week}j("w",["ww",2],"wo","week"),j("W",["WW",2],"Wo","isoWeek"),nt("week","w"),nt("isoWeek","W"),st("week",5),st("isoWeek",5),Nt("w",Dt),Nt("ww",Dt,yt),Nt("W",Dt),Nt("WW",Dt,yt),jt(["w","ww","W","WW"],(function(t,e,n,r){e[r.substr(0,1)]=lt(t)}));var xe={dow:0,doy:6};function Ee(){return this._week.dow}function Oe(){return this._week.doy}function Me(t){var e=this.localeData().week(this);return null==t?e:this.add(7*(t-e),"d")}function ke(t){var e=De(this,1,4).week;return null==t?e:this.add(7*(t-e),"d")}function Ce(t,e){return"string"!=typeof t?t:isNaN(t)?"number"==typeof(t=e.weekdaysParse(t))?t:null:parseInt(t,10)}function Ae(t,e){return"string"==typeof t?e.weekdaysParse(t)%7||7:isNaN(t)?null:t}function Pe(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"),nt("day","d"),nt("weekday","e"),nt("isoWeekday","E"),st("day",11),st("weekday",11),st("isoWeekday",11),Nt("d",Dt),Nt("e",Dt),Nt("E",Dt),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:g(n).invalidWeekday=t})),jt(["d","e","E"],(function(t,e,n,r){e[r]=lt(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,Be=Rt,Ye=Rt;function Le(t,e){var n=a(this._weekdays)?this._weekdays:this._weekdays[t&&!0!==t&&this._weekdays.isFormat.test(e)?"format":"standalone"];return!0===t?Pe(n,this._week.dow):t?n[t.day()]:n}function je(t){return!0===t?Pe(this._weekdaysShort,this._week.dow):t?this._weekdaysShort[t.day()]:this._weekdaysShort}function Fe(t){return!0===t?Pe(this._weekdaysMin,this._week.dow):t?this._weekdaysMin[t.day()]:this._weekdaysMin}function He(t,e,n){var r,i,a,s=t.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)a=p([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=Ut.call(this._weekdaysParse,s))?i:null:"ddd"===e?-1!==(i=Ut.call(this._shortWeekdaysParse,s))?i:null:-1!==(i=Ut.call(this._minWeekdaysParse,s))?i:null:"dddd"===e?-1!==(i=Ut.call(this._weekdaysParse,s))||-1!==(i=Ut.call(this._shortWeekdaysParse,s))||-1!==(i=Ut.call(this._minWeekdaysParse,s))?i:null:"ddd"===e?-1!==(i=Ut.call(this._shortWeekdaysParse,s))||-1!==(i=Ut.call(this._weekdaysParse,s))||-1!==(i=Ut.call(this._minWeekdaysParse,s))?i:null:-1!==(i=Ut.call(this._minWeekdaysParse,s))||-1!==(i=Ut.call(this._weekdaysParse,s))||-1!==(i=Ut.call(this._shortWeekdaysParse,s))?i:null}function ze(t,e,n){var r,i,a;if(this._weekdaysParseExact)return He.call(this,t,e,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(i=p([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 qe(t){if(!this.isValid())return null!=t?this:NaN;var e=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=t?(t=Ce(t,this.localeData()),this.add(t-e,"d")):e}function We(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=Ae(t,this.localeData());return this.day(this.day()%7?e:e-7)}return this.day()||7}function Ze(t){return this._weekdaysParseExact?(o(this,"_weekdaysRegex")||Xe.call(this),t?this._weekdaysStrictRegex:this._weekdaysRegex):(o(this,"_weekdaysRegex")||(this._weekdaysRegex=Ie),this._weekdaysStrictRegex&&t?this._weekdaysStrictRegex:this._weekdaysRegex)}function Ke(t){return this._weekdaysParseExact?(o(this,"_weekdaysRegex")||Xe.call(this),t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(o(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Be),this._weekdaysShortStrictRegex&&t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function $e(t){return this._weekdaysParseExact?(o(this,"_weekdaysRegex")||Xe.call(this),t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(o(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Ye),this._weekdaysMinStrictRegex&&t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function Xe(){function t(t,e){return e.length-t.length}var e,n,r,i,a,s=[],o=[],u=[],h=[];for(e=0;e<7;e++)n=p([2e3,1]).day(e),r=Bt(this.weekdaysMin(n,"")),i=Bt(this.weekdaysShort(n,"")),a=Bt(this.weekdays(n,"")),s.push(r),o.push(i),u.push(a),h.push(r),h.push(i),h.push(a);s.sort(t),o.sort(t),u.sort(t),h.sort(t),this._weekdaysRegex=new RegExp("^("+h.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+u.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+o.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+s.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),nt("hour","h"),st("hour",13),Nt("a",en),Nt("A",en),Nt("H",Dt),Nt("h",Dt),Nt("k",Dt),Nt("HH",Dt,yt),Nt("hh",Dt,yt),Nt("kk",Dt,yt),Nt("hmm",St),Nt("hmmss",Tt),Nt("Hmm",St),Nt("Hmmss",Tt),Lt(["H","HH"],Wt),Lt(["k","kk"],(function(t,e,n){var r=lt(t);e[Wt]=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[Wt]=lt(t),g(n).bigHour=!0})),Lt("hmm",(function(t,e,n){var r=t.length-2;e[Wt]=lt(t.substr(0,r)),e[Gt]=lt(t.substr(r)),g(n).bigHour=!0})),Lt("hmmss",(function(t,e,n){var r=t.length-4,i=t.length-2;e[Wt]=lt(t.substr(0,r)),e[Gt]=lt(t.substr(r,2)),e[Zt]=lt(t.substr(i)),g(n).bigHour=!0})),Lt("Hmm",(function(t,e,n){var r=t.length-2;e[Wt]=lt(t.substr(0,r)),e[Gt]=lt(t.substr(r))})),Lt("Hmmss",(function(t,e,n){var r=t.length-4,i=t.length-2;e[Wt]=lt(t.substr(0,r)),e[Gt]=lt(t.substr(r,2)),e[Zt]=lt(t.substr(i))}));var rn=/[ap]\.?m?\.?/i,an=ct("Hours",!0);function sn(t,e,n){return t>11?n?"pm":"PM":n?"am":"AM"}var on,un={calendar:R,longDateFormat:q,invalidDate:G,ordinal:K,dayOfMonthOrdinalParse:$,relativeTime:J,months:te,monthsShort:ee,week:xe,weekdays:Re,weekdaysMin:Ve,weekdaysShort:Ne,meridiemParse:rn},hn={},ln={};function cn(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=pn(i.slice(0,e).join("-")))return r;if(n&&n.length>=e&&cn(i,n)>=e-1)break;e--}a++}return on}function pn(e){var n=null;if(void 0===hn[e]&&t&&t.exports)try{n=on._abbr,Ue(),mn(n)}catch(t){hn[e]=null}return hn[e]}function mn(t,e){var n;return t&&((n=h(e)?yn(t):gn(t,e))?on=n:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+t+" not found. Did you forget to load it?")),on._abbr}function gn(t,e){if(null!==e){var n,r=un;if(e.abbr=t,null!=hn[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=hn[t]._config;else if(null!=e.parentLocale)if(null!=hn[e.parentLocale])r=hn[e.parentLocale]._config;else{if(null==(n=pn(e.parentLocale)))return ln[e.parentLocale]||(ln[e.parentLocale]=[]),ln[e.parentLocale].push({name:t,config:e}),null;r=n._config}return hn[t]=new P(A(r,e)),ln[t]&&ln[t].forEach((function(t){gn(t.name,t.config)})),mn(t),hn[t]}return delete hn[t],null}function vn(t,e){if(null!=e){var n,r,i=un;null!=hn[t]&&null!=hn[t].parentLocale?hn[t].set(A(hn[t]._config,e)):(null!=(r=pn(t))&&(i=r._config),e=A(i,e),null==r&&(e.abbr=t),(n=new P(e)).parentLocale=hn[t],hn[t]=n),mn(t)}else null!=hn[t]&&(null!=hn[t].parentLocale?(hn[t]=hn[t].parentLocale,t===mn()&&mn(t)):null!=hn[t]&&delete hn[t]);return hn[t]}function yn(t){var e;if(t&&t._locale&&t._locale._abbr&&(t=t._locale._abbr),!t)return on;if(!a(t)){if(e=pn(t))return e;t=[t]}return dn(t)}function bn(){return E(hn)}function _n(t){var e,n=t._a;return n&&-2===g(t).overflow&&(e=n[zt]<0||n[zt]>11?zt:n[qt]<1||n[qt]>Qt(n[Ht],n[zt])?qt:n[Wt]<0||n[Wt]>24||24===n[Wt]&&(0!==n[Gt]||0!==n[Zt]||0!==n[Kt])?Wt:n[Gt]<0||n[Gt]>59?Gt:n[Zt]<0||n[Zt]>59?Zt:n[Kt]<0||n[Kt]>999?Kt:-1,g(t)._overflowDayOfYear&&(e<Ht||e>qt)&&(e=qt),g(t)._overflowWeeks&&-1===e&&(e=$t),g(t)._overflowWeekday&&-1===e&&(e=Xt),g(t).overflow=e),t}var wn=/^\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)?)?$/,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=/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]],xn=[["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/]],En=/^\/?Date\((-?\d+)/i,On=/^(?:(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 kn(t){var e,n,r,i,a,s,o=t._i,u=wn.exec(o)||Dn.exec(o);if(u){for(g(t).iso=!0,e=0,n=Tn.length;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=xn.length;e<n;e++)if(xn[e][1].exec(u[3])){a=(u[2]||" ")+xn[e][0];break}if(null==a)return void(t._isValid=!1)}if(!r&&null!=a)return void(t._isValid=!1);if(u[4]){if(!Sn.exec(u[4]))return void(t._isValid=!1);s="Z"}t._f=i+(a||"")+(s||""),Fn(t)}else t._isValid=!1}function Cn(t,e,n,r,i,a){var s=[An(t),ee.indexOf(e),parseInt(n,10),parseInt(r,10),parseInt(i,10)];return a&&s.push(parseInt(a,10)),s}function An(t){var e=parseInt(t,10);return e<=49?2e3+e:e<=999?1900+e:e}function Pn(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()||(g(n).weekdayMismatch=!0,n._isValid=!1,!1)}function Nn(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 Vn(t){var e,n=On.exec(Pn(t._i));if(n){if(e=Cn(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),g(t).rfc2822=!0}else t._isValid=!1}function In(t){var e=En.exec(t._i);null===e?(kn(t),!1===t._isValid&&(delete t._isValid,Vn(t),!1===t._isValid&&(delete t._isValid,t._strict?t._isValid=!1:r.createFromInputFallback(t)))):t._d=new Date(+e[1])}function Bn(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,s=[];if(!t._d){for(r=Yn(t),t._w&&null==t._a[qt]&&null==t._a[zt]&&jn(t),null!=t._dayOfYear&&(a=Bn(t._a[Ht],r[Ht]),(t._dayOfYear>me(a)||0===t._dayOfYear)&&(g(t)._overflowDayOfYear=!0),n=be(a,0,t._dayOfYear),t._a[zt]=n.getUTCMonth(),t._a[qt]=n.getUTCDate()),e=0;e<3&&null==t._a[e];++e)t._a[e]=s[e]=r[e];for(;e<7;e++)t._a[e]=s[e]=null==t._a[e]?2===e?1:0:t._a[e];24===t._a[Wt]&&0===t._a[Gt]&&0===t._a[Zt]&&0===t._a[Kt]&&(t._nextDay=!0,t._a[Wt]=0),t._d=(t._useUTC?be:ye).apply(null,s),i=t._useUTC?t._d.getUTCDay():t._d.getDay(),null!=t._tzm&&t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),t._nextDay&&(t._a[Wt]=24),t._w&&void 0!==t._w.d&&t._w.d!==i&&(g(t).weekdayMismatch=!0)}}function jn(t){var e,n,r,i,a,s,o,u,h;null!=(e=t._w).GG||null!=e.W||null!=e.E?(a=1,s=4,n=Bn(e.GG,t._a[Ht],De(Kn(),1,4).year),r=Bn(e.W,1),((i=Bn(e.E,1))<1||i>7)&&(u=!0)):(a=t._locale._week.dow,s=t._locale._week.doy,h=De(Kn(),a,s),n=Bn(e.gg,t._a[Ht],h.year),r=Bn(e.w,h.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>Se(n,a,s)?g(t)._overflowWeeks=!0:null!=u?g(t)._overflowWeekday=!0:(o=we(n,r,i,a,s),t._a[Ht]=o.year,t._dayOfYear=o.dayOfYear)}function Fn(t){if(t._f!==r.ISO_8601)if(t._f!==r.RFC_2822){t._a=[],g(t).empty=!0;var e,n,i,a,s,o,u=""+t._i,h=u.length,l=0;for(i=z(t._f,t._locale).match(I)||[],e=0;e<i.length;e++)a=i[e],(n=(u.match(Vt(a,t))||[])[0])&&((s=u.substr(0,u.indexOf(n))).length>0&&g(t).unusedInput.push(s),u=u.slice(u.indexOf(n)+n.length),l+=n.length),L[a]?(n?g(t).empty=!1:g(t).unusedTokens.push(a),Ft(a,n,t)):t._strict&&!n&&g(t).unusedTokens.push(a);g(t).charsLeftOver=h-l,u.length>0&&g(t).unusedInput.push(u),t._a[Wt]<=12&&!0===g(t).bigHour&&t._a[Wt]>0&&(g(t).bigHour=void 0),g(t).parsedDateParts=t._a.slice(0),g(t).meridiem=t._meridiem,t._a[Wt]=Un(t._locale,t._a[Wt],t._meridiem),null!==(o=g(t).era)&&(t._a[Ht]=t._locale.erasConvertYear(o,t._a[Ht])),Ln(t),_n(t)}else Vn(t);else kn(t)}function Un(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 Hn(t){var e,n,r,i,a,s,o=!1;if(0===t._f.length)return g(t).invalidFormat=!0,void(t._d=new Date(NaN));for(i=0;i<t._f.length;i++)a=0,s=!1,e=w({},t),null!=t._useUTC&&(e._useUTC=t._useUTC),e._f=t._f[i],Fn(e),v(e)&&(s=!0),a+=g(e).charsLeftOver,a+=10*g(e).unusedTokens.length,g(e).score=a,o?a<r&&(r=a,n=e):(null==r||a<r||s)&&(r=a,n=e,s&&(o=!0));d(t,n||e)}function zn(t){if(!t._d){var e=it(t._i),n=void 0===e.day?e.date:e.day;t._a=f([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 D(_n(Wn(t)));return e._nextDay&&(e.add(1,"d"),e._nextDay=void 0),e}function Wn(t){var e=t._i,n=t._f;return t._locale=t._locale||yn(t._l),null===e||void 0===n&&""===e?y({nullInput:!0}):("string"==typeof e&&(t._i=e=t._locale.preparse(e)),S(e)?new D(_n(e)):(c(e)?t._d=e:a(n)?Hn(t):n?Fn(t):Gn(t),v(t)||(t._d=null),t))}function Gn(t){var e=t._i;h(e)?t._d=new Date(r.now()):c(e)?t._d=new Date(e.valueOf()):"string"==typeof e?In(t):a(e)?(t._a=f(e.slice(0),(function(t){return parseInt(t,10)})),Ln(t)):s(e)?zn(t):l(e)?t._d=new Date(e):r.createFromInputFallback(t)}function Zn(t,e,n,r,i){var o={};return!0!==e&&!1!==e||(r=e,e=void 0),!0!==n&&!1!==n||(r=n,n=void 0),(s(t)&&u(t)||a(t)&&0===t.length)&&(t=void 0),o._isAMomentObject=!0,o._useUTC=o._isUTC=i,o._l=n,o._i=t,o._f=e,o._strict=r,qn(o)}function Kn(t,e,n,r){return Zn(t,e,n,r,!1)}r.createFromInputFallback=x("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=x("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var t=Kn.apply(null,arguments);return this.isValid()&&t.isValid()?t<this?this:t:y()})),Xn=x("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var t=Kn.apply(null,arguments);return this.isValid()&&t.isValid()?t>this?this:t:y()}));function Jn(t,e){var n,r;if(1===e.length&&a(e[0])&&(e=e[0]),!e.length)return Kn();for(n=e[0],r=1;r<e.length;++r)e[r].isValid()&&!e[r][t](n)||(n=e[r]);return n}function Qn(){return Jn("isBefore",[].slice.call(arguments,0))}function tr(){return Jn("isAfter",[].slice.call(arguments,0))}var er=function(){return Date.now?Date.now():+new Date},nr=["year","quarter","month","week","day","hour","minute","second","millisecond"];function rr(t){var e,n,r=!1;for(e in t)if(o(t,e)&&(-1===Ut.call(nr,e)||null!=t[e]&&isNaN(t[e])))return!1;for(n=0;n<nr.length;++n)if(t[nr[n]]){if(r)return!1;parseFloat(t[nr[n]])!==lt(t[nr[n]])&&(r=!0)}return!0}function ir(){return this._isValid}function ar(){return Mr(NaN)}function sr(t){var e=it(t),n=e.year||0,r=e.quarter||0,i=e.month||0,a=e.week||e.isoWeek||0,s=e.day||0,o=e.hour||0,u=e.minute||0,h=e.second||0,l=e.millisecond||0;this._isValid=rr(e),this._milliseconds=+l+1e3*h+6e4*u+1e3*o*60*60,this._days=+s+7*a,this._months=+i+3*r+12*n,this._data={},this._locale=yn(),this._bubble()}function or(t){return t instanceof sr}function ur(t){return t<0?-1*Math.round(-1*t):Math.round(t)}function hr(t,e,n){var r,i=Math.min(t.length,e.length),a=Math.abs(t.length-e.length),s=0;for(r=0;r<i;r++)(n&&t[r]!==e[r]||!n&&lt(t[r])!==lt(e[r]))&&s++;return s+a}function lr(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)}))}lr("Z",":"),lr("ZZ",""),Nt("Z",At),Nt("ZZ",At),Lt(["Z","ZZ"],(function(t,e,n){n._useUTC=!0,n._tzm=fr(At,t)}));var cr=/([\+\-]|\d\d)/gi;function fr(t,e){var n,r,i=(e||"").match(t);return null===i?null:0===(r=60*(n=((i[i.length-1]||[])+"").match(cr)||["-",0,0])[1]+lt(n[2]))?0:"+"===n[0]?r:-r}function dr(t,e){var n,i;return e._isUTC?(n=e.clone(),i=(S(t)||c(t)?t.valueOf():Kn(t).valueOf())-n.valueOf(),n._d.setTime(n._d.valueOf()+i),r.updateOffset(n,!1),n):Kn(t).local()}function pr(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=fr(At,t)))return this}else Math.abs(t)<16&&!n&&(t*=60);return!this._isUTC&&e&&(i=pr(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:pr(this)}function gr(t,e){return null!=t?("string"!=typeof t&&(t=-t),this.utcOffset(t,e),this):-this.utcOffset()}function vr(t){return this.utcOffset(0,t)}function yr(t){return this._isUTC&&(this.utcOffset(0,t),this._isUTC=!1,t&&this.subtract(pr(this),"m")),this}function br(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var t=fr(Ct,this._i);null!=t?this.utcOffset(t):this.utcOffset(0,!0)}return this}function _r(t){return!!this.isValid()&&(t=t?Kn(t).utcOffset():0,(this.utcOffset()-t)%60==0)}function wr(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function Dr(){if(!h(this._isDSTShifted))return this._isDSTShifted;var t,e={};return w(e,this),(e=Wn(e))._a?(t=e._isUTC?p(e._a):Kn(e._a),this._isDSTShifted=this.isValid()&&hr(e._a,t.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function Sr(){return!!this.isValid()&&!this._isUTC}function Tr(){return!!this.isValid()&&this._isUTC}function xr(){return!!this.isValid()&&this._isUTC&&0===this._offset}r.updateOffset=function(){};var Er=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Or=/^(-|\+)?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,s=null;return or(t)?a={ms:t._milliseconds,d:t._days,M:t._months}:l(t)||!isNaN(+t)?(a={},e?a[e]=+t:a.milliseconds=+t):(s=Er.exec(t))?(n="-"===s[1]?-1:1,a={y:0,d:lt(s[qt])*n,h:lt(s[Wt])*n,m:lt(s[Gt])*n,s:lt(s[Zt])*n,ms:lt(ur(1e3*s[Kt]))*n}):(s=Or.exec(t))?(n="-"===s[1]?-1:1,a={y:kr(s[2],n),M:kr(s[3],n),w:kr(s[4],n),d:kr(s[5],n),h:kr(s[6],n),m:kr(s[7],n),s:kr(s[8],n)}):null==a?a={}:"object"==typeof a&&("from"in a||"to"in a)&&(i=Ar(Kn(a.from),Kn(a.to)),(a={}).ms=i.milliseconds,a.M=i.months),r=new sr(a),or(t)&&o(t,"_locale")&&(r._locale=t._locale),or(t)&&o(t,"_isValid")&&(r._isValid=t._isValid),r}function kr(t,e){var n=t&&parseFloat(t.replace(",","."));return(isNaN(n)?0:n)*e}function Cr(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 Ar(t,e){var n;return t.isValid()&&e.isValid()?(e=dr(e,t),t.isBefore(e)?n=Cr(t,e):((n=Cr(e,t)).milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}function Pr(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,s=ur(e._days),o=ur(e._months);t.isValid()&&(i=null==i||i,o&&he(t,ft(t,"Month")+o*n),s&&dt(t,"Date",ft(t,"Date")+s*n),a&&t._d.setTime(t._d.valueOf()+a*n),i&&r.updateOffset(t,s||o))}Mr.fn=sr.prototype,Mr.invalid=ar;var Nr=Pr(1,"add"),Vr=Pr(-1,"subtract");function Ir(t){return"string"==typeof t||t instanceof String}function Br(t){return S(t)||c(t)||Ir(t)||l(t)||Lr(t)||Yr(t)||null==t}function Yr(t){var e,n,r=s(t)&&!u(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"];for(e=0;e<a.length;e+=1)n=a[e],i=i||o(t,n);return r&&i}function Lr(t){var e=a(t),n=!1;return e&&(n=0===t.filter((function(e){return!l(e)&&Ir(t)})).length),e&&n}function jr(t){var e,n,r=s(t)&&!u(t),i=!1,a=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"];for(e=0;e<a.length;e+=1)n=a[e],i=i||o(t,n);return r&&i}function Fr(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 Ur(t,e){1===arguments.length&&(arguments[0]?Br(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||Kn(),i=dr(n,this).startOf("day"),a=r.calendarFormat(this,i)||"sameElse",s=e&&(k(e[a])?e[a].call(this,n):e[a]);return this.format(s||this.localeData().calendar(a,this,Kn(n)))}function Hr(){return new D(this)}function zr(t,e){var n=S(t)?t:Kn(t);return!(!this.isValid()||!n.isValid())&&("millisecond"===(e=rt(e)||"millisecond")?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(e).valueOf())}function qr(t,e){var n=S(t)?t:Kn(t);return!(!this.isValid()||!n.isValid())&&("millisecond"===(e=rt(e)||"millisecond")?this.valueOf()<n.valueOf():this.clone().endOf(e).valueOf()<n.valueOf())}function Wr(t,e,n,r){var i=S(t)?t:Kn(t),a=S(e)?e:Kn(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 Gr(t,e){var n,r=S(t)?t:Kn(t);return!(!this.isValid()||!r.isValid())&&("millisecond"===(e=rt(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 Kr(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=dr(t,this)).isValid())return NaN;switch(i=6e4*(r.utcOffset()-this.utcOffset()),e=rt(e)){case"year":a=Xr(this,r)/12;break;case"month":a=Xr(this,r);break;case"quarter":a=Xr(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:ht(a)}function Xr(t,e){if(t.date()<e.date())return-Xr(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 Jr(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function Qr(t){if(!this.isValid())return null;var e=!0!==t,n=e?this.clone().utc():this;return n.year()<0||n.year()>9999?H(n,e?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):k(Date.prototype.toISOString)?e?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",H(n,"Z")):H(n,e?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function ti(){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 ei(t){t||(t=this.isUtc()?r.defaultFormatUtc:r.defaultFormat);var e=H(this,t);return this.localeData().postformat(e)}function ni(t,e){return this.isValid()&&(S(t)&&t.isValid()||Kn(t).isValid())?Mr({to:this,from:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()}function ri(t){return this.from(Kn(),t)}function ii(t,e){return this.isValid()&&(S(t)&&t.isValid()||Kn(t).isValid())?Mr({from:this,to:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()}function ai(t){return this.to(Kn(),t)}function si(t){var e;return void 0===t?this._locale._abbr:(null!=(e=yn(t))&&(this._locale=e),this)}r.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",r.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var oi=x("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 ui(){return this._locale}var hi=1e3,li=60*hi,ci=60*li,fi=3506328*ci;function di(t,e){return(t%e+e)%e}function pi(t,e,n){return t<100&&t>=0?new Date(t+400,e,n)-fi:new Date(t,e,n).valueOf()}function mi(t,e,n){return t<100&&t>=0?Date.UTC(t+400,e,n)-fi:Date.UTC(t,e,n)}function gi(t){var e,n;if(void 0===(t=rt(t))||"millisecond"===t||!this.isValid())return this;switch(n=this._isUTC?mi:pi,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-=di(e+(this._isUTC?0:this.utcOffset()*li),ci);break;case"minute":e=this._d.valueOf(),e-=di(e,li);break;case"second":e=this._d.valueOf(),e-=di(e,hi)}return this._d.setTime(e),r.updateOffset(this,!0),this}function vi(t){var e,n;if(void 0===(t=rt(t))||"millisecond"===t||!this.isValid())return this;switch(n=this._isUTC?mi:pi,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+=ci-di(e+(this._isUTC?0:this.utcOffset()*li),ci)-1;break;case"minute":e=this._d.valueOf(),e+=li-di(e,li)-1;break;case"second":e=this._d.valueOf(),e+=hi-di(e,hi)-1}return this._d.setTime(e),r.updateOffset(this,!0),this}function yi(){return this._d.valueOf()-6e4*(this._offset||0)}function bi(){return Math.floor(this.valueOf()/1e3)}function _i(){return new Date(this.valueOf())}function wi(){var t=this;return[t.year(),t.month(),t.date(),t.hour(),t.minute(),t.second(),t.millisecond()]}function Di(){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 Si(){return this.isValid()?this.toISOString():null}function Ti(){return v(this)}function xi(){return d({},g(this))}function Ei(){return g(this).overflow}function Oi(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}function Mi(t,e){var n,i,a,s=this._eras||yn("en")._eras;for(n=0,i=s.length;n<i;++n)switch("string"==typeof s[n].since&&(a=r(s[n].since).startOf("day"),s[n].since=a.valueOf()),typeof s[n].until){case"undefined":s[n].until=1/0;break;case"string":a=r(s[n].until).startOf("day").valueOf(),s[n].until=a.valueOf()}return s}function ki(t,e,n){var r,i,a,s,o,u=this.eras();for(t=t.toUpperCase(),r=0,i=u.length;r<i;++r)if(a=u[r].name.toUpperCase(),s=u[r].abbr.toUpperCase(),o=u[r].narrow.toUpperCase(),n)switch(e){case"N":case"NN":case"NNN":if(s===t)return u[r];break;case"NNNN":if(a===t)return u[r];break;case"NNNNN":if(o===t)return u[r]}else if([a,s,o].indexOf(t)>=0)return u[r]}function Ci(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 Ai(){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 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].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,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 Vi(t){return o(this,"_erasNameRegex")||Ui.call(this),t?this._erasNameRegex:this._erasRegex}function Ii(t){return o(this,"_erasAbbrRegex")||Ui.call(this),t?this._erasAbbrRegex:this._erasRegex}function Bi(t){return o(this,"_erasNarrowRegex")||Ui.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 Fi(t,e){return e._eraYearOrdinalRegex||Mt}function Ui(){var t,e,n=[],r=[],i=[],a=[],s=this.eras();for(t=0,e=s.length;t<e;++t)r.push(Bt(s[t].name)),n.push(Bt(s[t].abbr)),i.push(Bt(s[t].narrow)),a.push(Bt(s[t].name)),a.push(Bt(s[t].abbr)),a.push(Bt(s[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 Hi(t,e){j(0,[t,t.length],0,e)}function zi(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 Wi(){return Se(this.year(),1,4)}function Gi(){return Se(this.isoWeekYear(),1,4)}function Zi(){var t=this.localeData()._week;return Se(this.year(),t.dow,t.doy)}function Ki(){var t=this.localeData()._week;return Se(this.weekYear(),t.dow,t.doy)}function $i(t,e,n,r,i){var a;return null==t?De(this,r,i).year:(e>(a=Se(t,r,i))&&(e=a),Xi.call(this,t,e,n,r,i))}function Xi(t,e,n,r,i){var a=we(t,e,n,r,i),s=be(a.year,0,a.dayOfYear);return this.year(s.getUTCFullYear()),this.month(s.getUTCMonth()),this.date(s.getUTCDate()),this}function Ji(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?g(n).era=i:g(n).invalidEra=t})),Nt("y",Mt),Nt("yy",Mt),Nt("yyy",Mt),Nt("yyyy",Mt),Nt("yo",Fi),Lt(["y","yy","yyy","yyyy"],Ht),Lt(["yo"],(function(t,e,n,r){var i;n._locale._eraYearOrdinalRegex&&(i=t.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?e[Ht]=n._locale.eraYearOrdinalParse(t,i):e[Ht]=parseInt(t,10)})),j(0,["gg",2],0,(function(){return this.weekYear()%100})),j(0,["GG",2],0,(function(){return this.isoWeekYear()%100})),Hi("gggg","weekYear"),Hi("ggggg","weekYear"),Hi("GGGG","isoWeekYear"),Hi("GGGGG","isoWeekYear"),nt("weekYear","gg"),nt("isoWeekYear","GG"),st("weekYear",1),st("isoWeekYear",1),Nt("G",kt),Nt("g",kt),Nt("GG",Dt,yt),Nt("gg",Dt,yt),Nt("GGGG",Et,_t),Nt("gggg",Et,_t),Nt("GGGGG",Ot,wt),Nt("ggggg",Ot,wt),jt(["gggg","ggggg","GGGG","GGGGG"],(function(t,e,n,r){e[r.substr(0,2)]=lt(t)})),jt(["gg","GG"],(function(t,e,n,i){e[i]=r.parseTwoDigitYear(t)})),j("Q",0,"Qo","quarter"),nt("quarter","Q"),st("quarter",7),Nt("Q",vt),Lt("Q",(function(t,e){e[zt]=3*(lt(t)-1)})),j("D",["DD",2],"Do","date"),nt("date","D"),st("date",9),Nt("D",Dt),Nt("DD",Dt,yt),Nt("Do",(function(t,e){return t?e._dayOfMonthOrdinalParse||e._ordinalParse:e._dayOfMonthOrdinalParseLenient})),Lt(["D","DD"],qt),Lt("Do",(function(t,e){e[qt]=lt(t.match(Dt)[0])}));var Qi=ct("Date",!0);function ta(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"),nt("dayOfYear","DDD"),st("dayOfYear",4),Nt("DDD",xt),Nt("DDDD",bt),Lt(["DDD","DDDD"],(function(t,e,n){n._dayOfYear=lt(t)})),j("m",["mm",2],0,"minute"),nt("minute","m"),st("minute",14),Nt("m",Dt),Nt("mm",Dt,yt),Lt(["m","mm"],Gt);var ea=ct("Minutes",!1);j("s",["ss",2],0,"second"),nt("second","s"),st("second",15),Nt("s",Dt),Nt("ss",Dt,yt),Lt(["s","ss"],Zt);var na,ra,ia=ct("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()})),nt("millisecond","ms"),st("millisecond",16),Nt("S",xt,vt),Nt("SS",xt,yt),Nt("SSS",xt,bt),na="SSSS";na.length<=9;na+="S")Nt(na,Mt);function aa(t,e){e[Kt]=lt(1e3*("0."+t))}for(na="S";na.length<=9;na+="S")Lt(na,aa);function sa(){return this._isUTC?"UTC":""}function oa(){return this._isUTC?"Coordinated Universal Time":""}ra=ct("Milliseconds",!1),j("z",0,0,"zoneAbbr"),j("zz",0,0,"zoneName");var ua=D.prototype;function ha(t){return Kn(1e3*t)}function la(){return Kn.apply(null,arguments).parseZone()}function ca(t){return t}ua.add=Nr,ua.calendar=Ur,ua.clone=Hr,ua.diff=$r,ua.endOf=vi,ua.format=ei,ua.from=ni,ua.fromNow=ri,ua.to=ii,ua.toNow=ai,ua.get=pt,ua.invalidAt=Ei,ua.isAfter=zr,ua.isBefore=qr,ua.isBetween=Wr,ua.isSame=Gr,ua.isSameOrAfter=Zr,ua.isSameOrBefore=Kr,ua.isValid=Ti,ua.lang=oi,ua.locale=si,ua.localeData=ui,ua.max=Xn,ua.min=$n,ua.parsingFlags=xi,ua.set=mt,ua.startOf=gi,ua.subtract=Vr,ua.toArray=wi,ua.toObject=Di,ua.toDate=_i,ua.toISOString=Qr,ua.inspect=ti,"undefined"!=typeof Symbol&&null!=Symbol.for&&(ua[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),ua.toJSON=Si,ua.toString=Jr,ua.unix=bi,ua.valueOf=yi,ua.creationData=Oi,ua.eraName=Ai,ua.eraNarrow=Pi,ua.eraAbbr=Ri,ua.eraYear=Ni,ua.year=ge,ua.isLeapYear=ve,ua.weekYear=zi,ua.isoWeekYear=qi,ua.quarter=ua.quarters=Ji,ua.month=le,ua.daysInMonth=ce,ua.week=ua.weeks=Me,ua.isoWeek=ua.isoWeeks=ke,ua.weeksInYear=Zi,ua.weeksInWeekYear=Ki,ua.isoWeeksInYear=Wi,ua.isoWeeksInISOWeekYear=Gi,ua.date=Qi,ua.day=ua.days=qe,ua.weekday=We,ua.isoWeekday=Ge,ua.dayOfYear=ta,ua.hour=ua.hours=an,ua.minute=ua.minutes=ea,ua.second=ua.seconds=ia,ua.millisecond=ua.milliseconds=ra,ua.utcOffset=mr,ua.utc=vr,ua.local=yr,ua.parseZone=br,ua.hasAlignedHourOffset=_r,ua.isDST=wr,ua.isLocal=Sr,ua.isUtcOffset=Tr,ua.isUtc=xr,ua.isUTC=xr,ua.zoneAbbr=sa,ua.zoneName=oa,ua.dates=x("dates accessor is deprecated. Use date instead.",Qi),ua.months=x("months accessor is deprecated. Use month instead",le),ua.years=x("years accessor is deprecated. Use year instead",ge),ua.zone=x("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",gr),ua.isDSTShifted=x("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",Dr);var fa=P.prototype;function da(t,e,n,r){var i=yn(),a=p().set(r,e);return i[n](a,t)}function pa(t,e,n){if(l(t)&&(e=t,t=void 0),t=t||"",null!=e)return da(t,e,n,"month");var r,i=[];for(r=0;r<12;r++)i[r]=da(t,r,n,"month");return i}function ma(t,e,n,r){"boolean"==typeof t?(l(e)&&(n=e,e=void 0),e=e||""):(n=e=t,t=!1,l(e)&&(n=e,e=void 0),e=e||"");var i,a=yn(),s=t?a._week.dow:0,o=[];if(null!=n)return da(e,(n+s)%7,r,"day");for(i=0;i<7;i++)o[i]=da(e,(i+s)%7,r,"day");return o}function ga(t,e){return pa(t,e,"months")}function va(t,e){return pa(t,e,"monthsShort")}function ya(t,e,n){return ma(t,e,n,"weekdays")}function ba(t,e,n){return ma(t,e,n,"weekdaysShort")}function _a(t,e,n){return ma(t,e,n,"weekdaysMin")}fa.calendar=N,fa.longDateFormat=W,fa.invalidDate=Z,fa.ordinal=X,fa.preparse=ca,fa.postformat=ca,fa.relativeTime=Q,fa.pastFuture=tt,fa.set=C,fa.eras=Mi,fa.erasParse=ki,fa.erasConvertYear=Ci,fa.erasAbbrRegex=Ii,fa.erasNameRegex=Vi,fa.erasNarrowRegex=Bi,fa.months=ae,fa.monthsShort=se,fa.monthsParse=ue,fa.monthsRegex=de,fa.monthsShortRegex=fe,fa.week=Te,fa.firstDayOfYear=Oe,fa.firstDayOfWeek=Ee,fa.weekdays=Le,fa.weekdaysMin=Fe,fa.weekdaysShort=je,fa.weekdaysParse=ze,fa.weekdaysRegex=Ze,fa.weekdaysShortRegex=Ke,fa.weekdaysMinRegex=$e,fa.isPM=nn,fa.meridiem=sn,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===lt(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th")}}),r.lang=x("moment.lang is deprecated. Use moment.locale instead.",mn),r.langData=x("moment.langData is deprecated. Use moment.localeData instead.",yn);var wa=Math.abs;function Da(){var t=this._data;return this._milliseconds=wa(this._milliseconds),this._days=wa(this._days),this._months=wa(this._months),t.milliseconds=wa(t.milliseconds),t.seconds=wa(t.seconds),t.minutes=wa(t.minutes),t.hours=wa(t.hours),t.months=wa(t.months),t.years=wa(t.years),this}function Sa(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 Sa(this,t,e,1)}function xa(t,e){return Sa(this,t,e,-1)}function Ea(t){return t<0?Math.floor(t):Math.ceil(t)}function Oa(){var t,e,n,r,i,a=this._milliseconds,s=this._days,o=this._months,u=this._data;return a>=0&&s>=0&&o>=0||a<=0&&s<=0&&o<=0||(a+=864e5*Ea(ka(o)+s),s=0,o=0),u.milliseconds=a%1e3,t=ht(a/1e3),u.seconds=t%60,e=ht(t/60),u.minutes=e%60,n=ht(e/60),u.hours=n%24,s+=ht(n/24),o+=i=ht(Ma(s)),s-=Ea(ka(i)),r=ht(o/12),o%=12,u.days=s,u.months=o,u.years=r,this}function Ma(t){return 4800*t/146097}function ka(t){return 146097*t/4800}function Ca(t){if(!this.isValid())return NaN;var e,n,r=this._milliseconds;if("month"===(t=rt(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(ka(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 Aa(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*lt(this._months/12):NaN}function Pa(t){return function(){return this.as(t)}}var Ra=Pa("ms"),Na=Pa("s"),Va=Pa("m"),Ia=Pa("h"),Ba=Pa("d"),Ya=Pa("w"),La=Pa("M"),ja=Pa("Q"),Fa=Pa("y");function Ua(){return Mr(this)}function Ha(t){return t=rt(t),this.isValid()?this[t+"s"]():NaN}function za(t){return function(){return this.isValid()?this._data[t]:NaN}}var qa=za("milliseconds"),Wa=za("seconds"),Ga=za("minutes"),Za=za("hours"),Ka=za("days"),$a=za("months"),Xa=za("years");function Ja(){return ht(this.days()/7)}var Qa=Math.round,ts={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function es(t,e,n,r,i){return i.relativeTime(e||1,!!n,t,r)}function ns(t,e,n,r){var i=Mr(t).abs(),a=Qa(i.as("s")),s=Qa(i.as("m")),o=Qa(i.as("h")),u=Qa(i.as("d")),h=Qa(i.as("M")),l=Qa(i.as("w")),c=Qa(i.as("y")),f=a<=n.ss&&["s",a]||a<n.s&&["ss",a]||s<=1&&["m"]||s<n.m&&["mm",s]||o<=1&&["h"]||o<n.h&&["hh",o]||u<=1&&["d"]||u<n.d&&["dd",u];return null!=n.w&&(f=f||l<=1&&["w"]||l<n.w&&["ww",l]),(f=f||h<=1&&["M"]||h<n.M&&["MM",h]||c<=1&&["y"]||["yy",c])[2]=e,f[3]=+t>0,f[4]=r,es.apply(null,f)}function rs(t){return void 0===t?Qa:"function"==typeof t&&(Qa=t,!0)}function is(t,e){return void 0!==ts[t]&&(void 0===e?ts[t]:(ts[t]=e,"s"===t&&(ts.ss=e-1),!0))}function as(t,e){if(!this.isValid())return this.localeData().invalidDate();var n,r,i=!1,a=ts;return"object"==typeof t&&(e=t,t=!1),"boolean"==typeof t&&(i=t),"object"==typeof e&&(a=Object.assign({},ts,e),null!=e.s&&null==e.ss&&(a.ss=e.s-1)),r=ns(this,!i,a,n=this.localeData()),i&&(r=n.pastFuture(+this,r)),n.postformat(r)}var ss=Math.abs;function os(t){return(t>0)-(t<0)||+t}function us(){if(!this.isValid())return this.localeData().invalidDate();var t,e,n,r,i,a,s,o,u=ss(this._milliseconds)/1e3,h=ss(this._days),l=ss(this._months),c=this.asSeconds();return c?(t=ht(u/60),e=ht(t/60),u%=60,t%=60,n=ht(l/12),l%=12,r=u?u.toFixed(3).replace(/\.?0+$/,""):"",i=c<0?"-":"",a=os(this._months)!==os(c)?"-":"",s=os(this._days)!==os(c)?"-":"",o=os(this._milliseconds)!==os(c)?"-":"",i+"P"+(n?a+n+"Y":"")+(l?a+l+"M":"")+(h?s+h+"D":"")+(e||t||u?"T":"")+(e?o+e+"H":"")+(t?o+t+"M":"")+(u?o+r+"S":"")):"P0D"}var hs=sr.prototype;return hs.isValid=ir,hs.abs=Da,hs.add=Ta,hs.subtract=xa,hs.as=Ca,hs.asMilliseconds=Ra,hs.asSeconds=Na,hs.asMinutes=Va,hs.asHours=Ia,hs.asDays=Ba,hs.asWeeks=Ya,hs.asMonths=La,hs.asQuarters=ja,hs.asYears=Fa,hs.valueOf=Aa,hs._bubble=Oa,hs.clone=Ua,hs.get=Ha,hs.milliseconds=qa,hs.seconds=Wa,hs.minutes=Ga,hs.hours=Za,hs.days=Ka,hs.weeks=Ja,hs.months=$a,hs.years=Xa,hs.humanize=as,hs.toISOString=us,hs.toString=us,hs.toJSON=us,hs.locale=si,hs.localeData=ui,hs.toIsoString=x("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",us),hs.lang=oi,j("X",0,0,"unix"),j("x",0,0,"valueOf"),Nt("x",kt),Nt("X",Pt),Lt("X",(function(t,e,n){n._d=new Date(1e3*parseFloat(t))})),Lt("x",(function(t,e,n){n._d=new Date(lt(t))})),
16
+ var ht={};void 0!==ht.asn1&&ht.asn1||(ht.asn1={}),ht.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 B(r,16).xor(t).add(B.ONE).toString(16).replace(/^-/,"")}return e},this.getPEMStringFromHex=function(t,e){return hextopem(t,e)},this.newObject=function(t){var e=ht.asn1,n=e.DERBoolean,r=e.DERInteger,i=e.DERBitString,a=e.DEROctetString,s=e.DERNull,o=e.DERObjectIdentifier,u=e.DEREnumerated,l=e.DERUTF8String,h=e.DERNumericString,c=e.DERPrintableString,f=e.DERTeletexString,d=e.DERIA5String,p=e.DERUTCTime,m=e.DERGeneralizedTime,g=e.DERSequence,v=e.DERSet,y=e.DERTaggedObject,b=e.ASN1Util.newObject,_=Object.keys(t);if(1!=_.length)throw"key of param shall be only one.";var w=_[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 s(t[w]);if("oid"==w)return new o(t[w]);if("enum"==w)return new u(t[w]);if("utf8str"==w)return new l(t[w]);if("numstr"==w)return new h(t[w]);if("prnstr"==w)return new c(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 m(t[w]);if("seq"==w){for(var D=t[w],S=[],T=0;T<D.length;T++){var x=b(D[T]);S.push(x)}return new g({array:S})}if("set"==w){for(D=t[w],S=[],T=0;T<D.length;T++){x=b(D[T]);S.push(x)}return new v({array:S})}if("tag"==w){var E=t[w];if("[object Array]"===Object.prototype.toString.call(E)&&3==E.length){var O=b(E[2]);return new y({tag:E[0],explicit:E[1],obj:O})}var M={};if(void 0!==E.explicit&&(M.explicit=E.explicit),void 0!==E.tag&&(M.tag=E.tag),void 0===E.obj)throw"obj shall be specified for 'tag'.";return M.obj=b(E.obj),new y(M)}},this.jsonToASN1HEX=function(t){return this.newObject(t).getEncodedHex()}},ht.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 B(r,2).toString(10),r=""}return e},ht.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 B(t,10).toString(2),i=7-r.length%7;7==i&&(i=0);for(var a="",s=0;s<i;s++)a+="0";r=a+r;for(s=0;s<r.length-1;s+=7){var o=r.substr(s,7);s!=r.length-7&&(o="1"+o),n+=e(parseInt(o,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 s=0;s<i.length;s++)r+=n(i[s]);return r},ht.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="+"".length+",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""}},ht.asn1.DERAbstractString=function(t){ht.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))},lt.lang.extend(ht.asn1.DERAbstractString,ht.asn1.ASN1Object),ht.asn1.DERAbstractTime=function(t){ht.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 s=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 o=i.getMilliseconds();if(0!=o){var u=r(String(o),3);s=s+"."+(u=u.replace(/[0]+$/,""))}}return s+"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 s=new Date(Date.UTC(t,e-1,n,r,i,a,0));this.setByDate(s)},this.getFreshValueHex=function(){return this.hV}},lt.lang.extend(ht.asn1.DERAbstractTime,ht.asn1.ASN1Object),ht.asn1.DERAbstractStructured=function(t){ht.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)},lt.lang.extend(ht.asn1.DERAbstractStructured,ht.asn1.ASN1Object),ht.asn1.DERBoolean=function(){ht.asn1.DERBoolean.superclass.constructor.call(this),this.hT="01",this.hTLV="0101ff"},lt.lang.extend(ht.asn1.DERBoolean,ht.asn1.ASN1Object),ht.asn1.DERInteger=function(t){ht.asn1.DERInteger.superclass.constructor.call(this),this.hT="02",this.setByBigInteger=function(t){this.hTLV=null,this.isModified=!0,this.hV=ht.asn1.ASN1Util.bigIntToMinTwosComplementsHex(t)},this.setByInteger=function(t){var e=new B(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))},lt.lang.extend(ht.asn1.DERInteger,ht.asn1.ASN1Object),ht.asn1.DERBitString=function(t){if(void 0!==t&&void 0!==t.obj){var e=ht.asn1.ASN1Util.newObject(t.obj);t.hex="00"+e.getEncodedHex()}ht.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))},lt.lang.extend(ht.asn1.DERBitString,ht.asn1.ASN1Object),ht.asn1.DEROctetString=function(t){if(void 0!==t&&void 0!==t.obj){var e=ht.asn1.ASN1Util.newObject(t.obj);t.hex=e.getEncodedHex()}ht.asn1.DEROctetString.superclass.constructor.call(this,t),this.hT="04"},lt.lang.extend(ht.asn1.DEROctetString,ht.asn1.DERAbstractString),ht.asn1.DERNull=function(){ht.asn1.DERNull.superclass.constructor.call(this),this.hT="05",this.hTLV="0500"},lt.lang.extend(ht.asn1.DERNull,ht.asn1.ASN1Object),ht.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 B(t,10).toString(2),i=7-r.length%7;7==i&&(i=0);for(var a="",s=0;s<i;s++)a+="0";r=a+r;for(s=0;s<r.length-1;s+=7){var o=r.substr(s,7);s!=r.length-7&&(o="1"+o),n+=e(parseInt(o,2))}return n};ht.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 s=0;s<i.length;s++)r+=n(i[s]);this.hTLV=null,this.isModified=!0,this.s=null,this.hV=r},this.setValueName=function(t){var e=ht.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))},lt.lang.extend(ht.asn1.DERObjectIdentifier,ht.asn1.ASN1Object),ht.asn1.DEREnumerated=function(t){ht.asn1.DEREnumerated.superclass.constructor.call(this),this.hT="0a",this.setByBigInteger=function(t){this.hTLV=null,this.isModified=!0,this.hV=ht.asn1.ASN1Util.bigIntToMinTwosComplementsHex(t)},this.setByInteger=function(t){var e=new B(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))},lt.lang.extend(ht.asn1.DEREnumerated,ht.asn1.ASN1Object),ht.asn1.DERUTF8String=function(t){ht.asn1.DERUTF8String.superclass.constructor.call(this,t),this.hT="0c"},lt.lang.extend(ht.asn1.DERUTF8String,ht.asn1.DERAbstractString),ht.asn1.DERNumericString=function(t){ht.asn1.DERNumericString.superclass.constructor.call(this,t),this.hT="12"},lt.lang.extend(ht.asn1.DERNumericString,ht.asn1.DERAbstractString),ht.asn1.DERPrintableString=function(t){ht.asn1.DERPrintableString.superclass.constructor.call(this,t),this.hT="13"},lt.lang.extend(ht.asn1.DERPrintableString,ht.asn1.DERAbstractString),ht.asn1.DERTeletexString=function(t){ht.asn1.DERTeletexString.superclass.constructor.call(this,t),this.hT="14"},lt.lang.extend(ht.asn1.DERTeletexString,ht.asn1.DERAbstractString),ht.asn1.DERIA5String=function(t){ht.asn1.DERIA5String.superclass.constructor.call(this,t),this.hT="16"},lt.lang.extend(ht.asn1.DERIA5String,ht.asn1.DERAbstractString),ht.asn1.DERUTCTime=function(t){ht.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))},lt.lang.extend(ht.asn1.DERUTCTime,ht.asn1.DERAbstractTime),ht.asn1.DERGeneralizedTime=function(t){ht.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))},lt.lang.extend(ht.asn1.DERGeneralizedTime,ht.asn1.DERAbstractTime),ht.asn1.DERSequence=function(t){ht.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}},lt.lang.extend(ht.asn1.DERSequence,ht.asn1.DERAbstractStructured),ht.asn1.DERSet=function(t){ht.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)},lt.lang.extend(ht.asn1.DERSet,ht.asn1.DERAbstractStructured),ht.asn1.DERTaggedObject=function(t){ht.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)))},lt.lang.extend(ht.asn1.DERTaggedObject,ht.asn1.ASN1Object);var ct=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)}}(),ft=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 ct(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)?T(t):x.unarmor(t),i=R.decode(r);if(3===i.sub.length&&(i=i.sub[2].sub[0]),9===i.sub.length){e=i.sub[1].getHexStringValue(),this.n=H(e,16),n=i.sub[2].getHexStringValue(),this.e=parseInt(n,16);var a=i.sub[3].getHexStringValue();this.d=H(a,16);var s=i.sub[4].getHexStringValue();this.p=H(s,16);var o=i.sub[5].getHexStringValue();this.q=H(o,16);var u=i.sub[6].getHexStringValue();this.dmp1=H(u,16);var l=i.sub[7].getHexStringValue();this.dmq1=H(l,16);var h=i.sub[8].getHexStringValue();this.coeff=H(h,16)}else{if(2!==i.sub.length)return!1;var c=i.sub[1].sub[0];e=c.sub[0].getHexStringValue(),this.n=H(e,16),n=c.sub[1].getHexStringValue(),this.e=parseInt(n,16)}return!0}catch(t){return!1}},e.prototype.getPrivateBaseKey=function(){var t={array:[new ht.asn1.DERInteger({int:0}),new ht.asn1.DERInteger({bigint:this.n}),new ht.asn1.DERInteger({int:this.e}),new ht.asn1.DERInteger({bigint:this.d}),new ht.asn1.DERInteger({bigint:this.p}),new ht.asn1.DERInteger({bigint:this.q}),new ht.asn1.DERInteger({bigint:this.dmp1}),new ht.asn1.DERInteger({bigint:this.dmq1}),new ht.asn1.DERInteger({bigint:this.coeff})]};return new ht.asn1.DERSequence(t).getEncodedHex()},e.prototype.getPrivateBaseKeyB64=function(){return w(this.getPrivateBaseKey())},e.prototype.getPublicBaseKey=function(){var t=new ht.asn1.DERSequence({array:[new ht.asn1.DERObjectIdentifier({oid:"1.2.840.113549.1.1.1"}),new ht.asn1.DERNull]}),e=new ht.asn1.DERSequence({array:[new ht.asn1.DERInteger({bigint:this.n}),new ht.asn1.DERInteger({int:this.e})]}),n=new ht.asn1.DERBitString({hex:"00"+e.getEncodedHex()});return new ht.asn1.DERSequence({array:[t,n]}).getEncodedHex()},e.prototype.getPublicBaseKeyB64=function(){return w(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}(ot),dt="3.2.1",pt=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 ft(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(D(t))}catch(t){return!1}},t.prototype.encrypt=function(t){try{return w(this.getKey().encrypt(t))}catch(t){return!1}},t.prototype.sign=function(t,e,n){try{return w(this.getKey().sign(t,e,n))}catch(t){return!1}},t.prototype.verify=function(t,e,n){try{return this.getKey().verify(t,D(e),n)}catch(t){return!1}},t.prototype.getKey=function(t){if(!this.key){if(this.key=new ft,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=dt,t}(),mt=function(t,e){var n=e.xRatio,r=e.yRatio;return 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)&&mt(null==t?void 0:t.children,e)})),t},gt=function(t,e,n){var r=t[n];return t.splice(n,1),t.splice(e,0,r),t},vt=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 s=0;s<a.children.length;s++){if(r=s,a.children[s].cid===n){switch(e){case"up":r>=1&&gt(a.children,r-1,r);break;case"down":r<a.children.length-2&&gt(a.children,r+1,r);break;case"top":0!==r&&gt(a.children,0,r);break;case"bottom":var o=a.children.length-1;r!==o&&gt(a.children,o,r)}break}}}return t},yt=function(e,n,r){var i=!1,a=function(e){for(var s=0;s<e.length;s++){if(e[s].cid==n){i=e[s],r&&t.remove(e,(function(t){return t.cid==n}));break}if(e[s].children)a(e[s].children);else if(e[s].dynamicChildren){if(e[s].dynamicChildren instanceof Map){for(var o=Array.from(e[s].dynamicChildren),u=0;u<o.length;u++)if(o[u]instanceof Array){var l=o[u][1];a(l)}}else if(e[s].dynamicChildren instanceof Array)for(o=e[s].dynamicChildren,u=0;u<o.length;u++)if(o[u]instanceof Array){l=o[u][1];a(l)}}else e[s].stateChildren&&a(e[s].stateChildren)}};return a(e),i||!1},bt=function(t,e){var n=null,r=function(t,i){for(var a=0;a<t.length;a++)if(t[a].cid==e)n=i;else if(t[a].children)r(t[a].children,t[a]);else if(t[a].dynamicChildren)if(t[a].dynamicChildren instanceof Map){for(var s=Array.from(t[a].dynamicChildren),o=0;o<s.length;o++)if(s[o]instanceof Array){var u=s[o][1];r(u,t[a])}}else t[a].dynamicChildren;else t[a].stateChildren&&r(t[a].stateChildren,t[a])};return r(t,null),n||!1},_t=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 s=0;s<a.children.length;s++)if(a.children[s].cid===e)return r=a.children[s],n&&a.children.splice(s,1),{value:r}}else if(a.stateChildren&&a.stateChildren.length){for(s=0;s<a.stateChildren.length;s++)if(a.stateChildren[s].cid===e)return r=a.stateChildren[s],n&&a.stateChildren.splice(s,1),{value:r}}else if(a.dynamicChildren){var o=void 0;if(a.dynamicChildren instanceof Map?o=a.dynamicChildren.get(a.activeDynamic):a.dynamicChildren instanceof Array&&(o=a.dynamicChildren.find((function(t){return t[0]==a.activeDynamic}))[1]),o)for(s=0;s<o.length;s++)if(o[s].cid===e)return r=o[s],n&&o.splice(s,1),{value:r}}},a=0;a<t.length;a++){var s=i(a);if("object"==typeof s)return s.value}return!!r},wt=function(t,e,n){var r=_t(t,e),i=_t(t,n);return r.pid&&i.pid||!r.pid&&!i.pid},Dt=function(t,e){var n=function(t){for(var r,i,a,s=0;s<t.length;s++){var o=t[s];(null===(a=null===(i=null===(r=o.tmpData)||void 0===r?void 0:r.source)||void 0===i?void 0:i.converse)||void 0===a?void 0:a.data.length)&&o.tmpData.source.converse.data.forEach((function(t){t.code=t.code.replace(/&gt;/g,">").replace(/&lt;/g,"<")})),e(o),o&&o.children&&o.children.length?n(o.children):o&&o.dynamicChildren?Array.from(o.dynamicChildren).forEach((function(t,e){n(t[1])})):o.stateChildren&&n(o.stateChildren)}};n(t)},St=function(t){var e=function(t,n){for(var r=function(r){var i=t[r],a=Vt();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)},Tt=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 "+n+" is entered correctly!";if(i){t.cloneDeep(e[i][n]);e[i][n]=r}else e[n]=r}catch(t){console.error(t)}},xt=function(t,e){e.forEach((function(e){e.baseData.left=e.baseData.left-t.left,e.baseData.top=e.baseData.top-t.top}))},Et=function(e){var n=t.cloneDeep(e),r=[];return n.children&&n.children.length&&n.children.forEach((function(t){Ot(t,n.baseData),r.push(t)})),r},Ot=function(t,e){t.baseData.left=t.baseData.left+e.left,t.baseData.top=t.baseData.top+e.top},Mt=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},kt=function(e,n){var r=t.cloneDeep(e),i=[],a=function(t,e){var n=yt(t,e);i.push(n.baseData),n.pid&&a(t,n.pid)};a(r,n);var s={left:0,top:0};return i.map((function(t){t&&(s.left+=t.left,s.top+=t.top)})),s},Ct=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},At=function(t,e){var n=[];return t.map((function(t){var r=e.find((function(e){return e.cid===t}));r&&n.push(r)})),Pt(n)},Pt=function(t){if(t.length>0){var e={left:0,top:0,width:0,height:0},n=Ct(t,"left"),r=Ct(t,"top"),i=n[0].baseData,a=n[n.length-1].baseData,s=r[0].baseData,o=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=s.top,e.height=Math.max(1*o.top+1*o.height,u)-1*s.top,e}return{left:0,top:0,width:0,height:0}},Rt=function(e,n,r){var i=e.children,a=t.cloneDeep(n),s=t.cloneDeep(Pt(i)),o=a.left,u=a.top;a.width,a.height;var l=s.left,h=s.top,c=s.width,f=s.height,d={left:o+l,top:u+h,width:c,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-h,e.baseData=n})),e.baseData=d,e.children=i,d},Nt=function(t,e){for(var n=0;n<t.length;n++){var r=t[n];t[n].index=n,r.children&&r.children.length?Nt(r.children):e&&e(r)}},Vt=function(){return(Math.random().toString().substr(3,10)+Date.now()).toString()},It=function(t,e,n){var r,i;void 0===n&&(n=" copy");var a=new RegExp(n+"( \\d+)?$").exec(t);a?(r=a[1]?parseInt(a[1]):0,i=t.slice(0,a.index)):(r=0,i=t);var s=new RegExp("^"+i+n+"( [1-9][0-9]*)?$"),o=[];e.forEach((function(t){if(a=s.exec(t)){var e=a[1]?parseInt(a[1]):1;o.push(e)}})),o.sort((function(t,e){return t-e})),r++;for(var u=0,l=o.length;u<l;u++)if(o[u]===r)r++;else if(o[u]>r)break;return i+n+" "+r},Bt=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 Yt(t){for(var e=t.types,n=t.element,r=t.actions,i=t.events,a=function(t){var a=e[t],s=n.tmpData.actions[t];if(s&&s.use){var o=s[s.behave];if(!o)return"continue";"vars"===s.behave?o.map((function(t){t.type=a,t.id=n.cid,t.mapField&&r.push(t)})):o.length>0&&o.forEach((function(t,e){"toggle"===s.behave&&""!==t.value&&t.value.length?i.push({id:n.cid,type:s.behave,children:t.value.map((function(t){return{cid:t.cid,visible:t.visible}})),eventType:a,index:e}):"link"===s.behave&&""!==t.value?i.push({id:n.cid,type:s.behave,link:t.value,eventType:a,index:e}):"page"===s.behave&&""!==t.value?i.push({id:n.cid,type:s.behave,page:t.value,eventType:a,index:e}):"dynamic"===s.behave&&""!==t.value&&t.value.length>0?i.push({id:n.cid,type:s.behave,dynamic:t.value,eventType:a,index:e}):i.push(void 0)}))}},s=0;s<e.length;s++)a(s)}function Lt(t){var e=new pt;return e.setPublicKey("MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEApWni7uLYVV8iyDPTR6Zs\naj+2BHCn4xTzFeVHADzTdtBiFH9i4fKeDK0IfbPV/9TGeRYNfl0qSfdLtU+1ZIzm\npqHppadukmk5+NbBG4Xm/lAZgVt3dUIrSyamxVjwnymN7PLdxaSOS/mgU6SDGMhN\nTM76AXKZZXWMK12UCXvKkh+TkGufcXzLe7LtrvHPLOgcnEED2CkWATuE9g8K9j4T\neOMxhJcHBUmXLgU6Chufa4nBed2899E7jxJa14+J1IDa2ahrDFLZN7H//ZsvwnXq\nxVbxm0k5jyWqfCpg13V7zD3DxNWlo3MIh2fPtIEUDVhugqPd0jPmqquqdBNTnu2I\nGQIDAQAB"),e.encrypt(t)}var jt={updataArea:function(t,e){t.currentArea=e},selectdArea:function(t,e){var n=At(e,t.list);t.currentArea=n},updataAngle:function(t,e){var n=e.id,r=e.angle,i=_t(t.list,n);"boolean"!=typeof i&&(i.baseData.angle=r)},updataBaseData:function(t,e){var n=e.data,r=e.ratio,i=yt(t.list,n.cid),a=e.oldData;if("object"!=typeof i||i.pid){if("object"==typeof i&&i.pid){var s=_t(t.list,i.pid);"object"==typeof s&&(i.baseData.left<0&&(i.baseData.left=0),i.baseData.top<0&&(i.baseData.top=0),Object.assign(i.baseData,n.baseData),Rt(s,s.baseData),t.groupFlag=!t.groupFlag)}}else if(Object.assign(i.baseData,n.baseData),r&&i.children&&i.children.length>0){var o=i.baseData.width/a.width,u=i.baseData.height/a.height;mt(i.children,{xRatio:o,yRatio:u})}},multipleUpdataBaseData:function(e,n){if(n.ratio)for(var r=n.newData,i=n.oldData,a=r.width/i.width,s=r.height/i.height,o=e.cache.length;o--;)e.cache[o].baseData.left=e.cache[o].baseData.left*a,e.cache[o].baseData.width=e.cache[o].baseData.width*a,e.cache[o].baseData.top=e.cache[o].baseData.top*s,e.cache[o].baseData.height=e.cache[o].baseData.height*s;else for(o=e.cache.length;o--;){var u=t.cloneDeep(e.cache[o].baseData);u.left=u.left+n.deltaX,u.top=u.top+n.deltaY,e.cache[o].comPanel?e.cache[o].comPanel.setAttrData(Object.assign(u,n.baseData)):e.cache[o].baseData=u}},multipleUpdata:function(t,e){var n=e.ids,r=e.data,i=_t(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=[_t(t.list,n[0])]);for(var s=0;s<a.length;s++){var o=a[s];if(o.pid&&t.selectd.length>1)return void console.warn("Only one component can be moved within a group");if("up"===r?o.baseData.top=o.baseData.top-i:"down"===r?o.baseData.top+=i:"left"===r?o.baseData.left-=i:"right"===r&&(o.baseData.left+=i),"object"==typeof o&&o.pid){var u=_t(t.list,o.pid);"object"==typeof u&&(Rt(u,u.baseData),t.groupFlag=!t.groupFlag)}}}else console.warn("Warning! please select the component to move.")},updataGroupBaseData:function(e,n){var r=_t(e.list,n.pid),i=t.cloneDeep(r);_t(r.children,n.cid),Rt(r,i.baseData)},editGroupBaseData:function(t,e){var n=_t(t.list,e);n.children.forEach((function(t){Ot(t,n.baseData)}))},syncBaseData:function(t,e){var n=e.cid,r=e.data,i=_t(t.list,n);i.baseData=Object.assign({},i.baseData,r)},updataItemData:function(t,e){var n=e.cid,r=e.propsName,i=e.propsValue,a=_t(t.list,n);a&&(a[r]=i)},updataOpacity:function(t,e){var n=e.cid,r=e.propsValue,i=_t(t.list,n);"boolean"!=typeof i&&i&&(i.baseData.opacity=r)}},Ft={delListItem:function(e,n){var r=t.cloneDeep(e.list);"string"==typeof n?yt(r,n,!0):n.forEach((function(t){yt(r,t,!0)})),e.list=r},cloneItem:function(e){if(e.selectd.length>0){e.cloneCache=[];for(var n=0;n<e.selectd.length;n++){var r=_t(e.list,e.selectd[n]);if("boolean"!=typeof r){var i=t.cloneDeep(r);i.cid=Vt(),i.pid="",e.cloneCache.push(i)}}}},shearItem:function(e,n){if(e.selectd.length>0){e.cloneCache=[];for(var r=0;r<e.selectd.length;r++){var i=_t(e.list,e.selectd[r],!0);if("boolean"!=typeof i){var a=t.cloneDeep(i);a.cid=Vt(),e.cloneCache.push(a)}}e.selectd=[]}},pasteItem:function(e){var n,r=t.cloneDeep(e.cloneCache);if(r.length>0){var i=[];r.forEach((function(t){t.cid=Vt();var n=It(t.name,e.list.map((function(t){return t.name})));if(t.name=n,t.children&&t.children.length>0&&t.children.forEach((function(e){e.pid=t.cid,e.cid=Vt()})),"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,e.cid=Vt()}))}i.push(t.cid)})),e.selectd.length>0?At(e.selectd,e.list):Pt(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=yt(t.list,e);if("boolean"!=typeof n){var r=!n.isShow;Tt(n,"isShow",r,"")}},changeShow:function(t,e){var n=e.cid,r=e.flag,i=yt(t.list,n);i&&Tt(i,"isShow",r,"")},updataLock:function(t,e){var n=yt(t.list,e);if("boolean"!=typeof n){var r=!n.isLock;Tt(n,"isLock",r,"")}},breakUp:function(t,e){var n;try{if(!e)throw"Please pass in the component CID correctly!";var r=t.list.findIndex((function(t){return t.cid===e})),i=t.list[r],a=Et(i);a.map((function(t){return t.pid=""})),t.list.splice(r,1),(n=t.list).push.apply(n,a)}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],s=Et(a);s.map((function(t){return t.pid=""})),t.list.splice(i,1),(n=t.list).push.apply(n,s)}catch(t){console.error(t)}},combination:function(e){t.cloneDeep(e.list);var n,r,i=[],a=[],s=Vt(),o=_t(e.list,e.selectd[0]);o.pid?console.info("Sorry, only level 2 is supported group"):o.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=s,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}),xt(r,a),e.list.splice(n,0,{cid:s,pid:"",isShow:!0,isLock:!1,editer:!1,baseData:r,z:0,toggle:!0,name:"群组",type:"folder",children:a}),e.selectd=[s])},moveUp:function(t,e){try{var n=t.list.findIndex((function(t){return t.cid===e}));n>=1?gt(t.list,n-1,n):vt(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?gt(t.list,n+1,n):vt(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?gt(t.list,0,n):vt(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?gt(t.list,r,n):vt(t.list,"bottom",e)}catch(t){console.error(t)}}};function Ut(e){var n=[],r=[];Dt(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)&&(Yt({types:t.tmpData.actions.map((function(t){return t.eventType})),element:t,actions:n,events:r}),console.log(n,r," actions, events"))}));var i=r.filter((function(t){return t}));return{actions:n,events:i}}var Ht={setSyncFlag:function(t,e){t.syncFlag=e},goUpShareVar:function(t,e){t.shareVariable[e.key]=r({},e)},goEditVar:function(t,e){var n=e.key,r=e.value;t.globalVars.forEach((function(t){t.edit=!1})),t.globalVars.forEach((function(t){t.mapField==n&&(t.edit=!0,t.value=r)}))},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,s=n.attrModel,o=_t(e.list,r);if("boolean"!=typeof o){if(o&&Tt(o,i,a,s),"actions"===i.toLowerCase()){var u=e.list,l=t.uniqWith(t.concat(Ut(u).actions,Ut(e.caseList).actions),t.isEqual),h=t.uniqWith(t.concat(Ut(u).events,Ut(e.caseList).events),t.isEqual);e.globalVars=l,e.globalEvents=h,e.pages[e.pageIndex]&&(e.pages[e.pageIndex].globalVars=l),e.pages[e.pageIndex]&&(e.pages[e.pageIndex].globalEvents=h)}if("source"===i){if(!o.tmpData.source)return!1;var c=o.tmpData.source,f=c.type;if("api"===f){var d=c[f].url.match(/(@)[\w]*/gm);if(d)for(var p=d.map((function(t){return t.replace("@","")})),m=function(n){var r=p[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(o.cid);var i=e.shareVariableTree[r];e.shareVariableTree[r]=t.uniq(i)}else e.shareVariableTree[r]=[],e.shareVariableTree[r].push(o.cid)},g=0;g<p.length;g++)m(g)}}}}}},zt={updataList:function(e,n){var r=n.cid,i=t.cloneDeep(n.list),a=t.cloneDeep(e.list);if(console.log(i,a),-1===i.findIndex((function(t){return t.cid===r})))for(var s=0;s<i.length;s++){var o=i[s];if(o.children&&o.children.length)for(var u=o.cid,l=0;l<o.children.length;l++){var h=o.children[l];if(h.cid===r){h.pid=u;var c=t.cloneDeep(o.baseData),f=Mt(h.baseData,o.baseData,1);Object.assign(h.baseData,f),Rt(o,c);break}}}else{var d=i.find((function(t){return t.cid===r})),p=d.pid;if(p){d.pid="";var m=yt(i,p);console.log(m,"movGroup"),Object.assign(d.baseData,Mt(d.baseData,m.baseData));s=m.children.findIndex((function(t){return t.cid===d.cid}));m.children.splice(s,1),0===m.children.length?yt(i,m.cid,!0):Rt(m,m.baseData)}}e.list=i},updataListForContrast:function(e,n){var r=n.cid,i=n.list,a=yt(i,r);bt(i,r);var s=bt(e.list,r);if(!a.pid){a.pid=s.cid;var o=t.cloneDeep(a.baseData),u=Mt(a.baseData,s.baseData,1);Object.assign(a.baseData,u),Rt(s,o)}},updateTree:function(e){for(var n=e.list,r=0;r<n.length;r++){var i=n[r];if(i.pid)(o=_t(n,i.pid))&&Object.assign(i.baseData,Mt(i.baseData,o.baseData));if(i.children)for(var a=0;a<i.children.length;a++){var s=i.children[a];if(s.pid!=i.cid){var o=_t(n,s.pid);if(t.cloneDeep(s.baseData),o){Object.assign(s.baseData,Mt(s.baseData,o.baseData));var u=Mt(s.baseData,i.baseData,1);Object.assign(s.baseData,u),Rt(i,i.baseData)}s.pid=i.cid}}}}},qt=function(t){return i(this,void 0,void 0,(function(){var e,n,r,i;return a(this,(function(a){switch(a.label){case 0:return 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:a.sent(),a.label=2;case 2:return i.innerText+="@font-face{font-family:'"+n+"';src:url("+e+");}",[2]}}))}))},Wt=function(t,e,n){return void 0===e&&(e="jspaths"),i(void 0,void 0,void 0,(function(){var r,i;return a(this,(function(a){return r="script","jspaths"==e?r="script":"csspaths"==e&&(r="link"),i=document.createElement(r),"jspaths"==e?(i.defer=!0,i.src=t):"csspaths"==e&&(i.defer=!0,i.href=t),i.className=e,(n||document.head||document.getElementsByTagName("head")[0]).appendChild(i),i.onload=function(){},i.onerror=function(){throw new Error("Failed to load "+t)},[2]}))}))},Gt=function(t,e){return void 0===e&&(e="jspaths"),i(void 0,void 0,void 0,(function(){var n,r;return a(this,(function(i){switch(i.label){case 0:n=0,i.label=1;case 1:return n<t.length?(r=t[n],"fonts"!=e?[3,2]:(qt(r),[3,4])):[3,5];case 2:return[4,Wt(r,e)];case 3:i.sent(),console.log(55555),i.label=4;case 4:return n++,[3,1];case 5:return[2]}}))}))},Zt=function(t){return i(void 0,void 0,void 0,(function(){return a(this,(function(e){switch(e.label){case 0:return t.fonts&&t.fonts.length?[4,Gt(t.fonts,"fonts")]:[3,2];case 1:e.sent(),e.label=2;case 2:return[2]}}))}))},Kt=function(e){return i(void 0,void 0,void 0,(function(){return a(this,(function(n){switch(n.label){case 0:return e.jspaths&&e.jspaths.length?[4,Gt(e.jspaths,"jspaths")]:[3,2];case 1:n.sent(),n.label=2;case 2:return e.csspaths&&e.csspaths.length?[4,Gt(e.csspaths,"csspaths")]:[3,4];case 3:n.sent(),n.label=4;case 4:return e.fonts&&e.fonts.length?(t.uniqBy(e.fonts,"name"),[4,Gt(e.fonts,"fonts")]):[3,6];case 5:n.sent(),n.label=6;case 6:return[2]}}))}))},$t=function(){var t;(t=document.getElementById("__custom_font__")).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.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.removeChild(e[n])}(t.href)}))};var Xt={reset:function(t){t.selectd=[],t.list=[],t.plant=null,t.tw=null,t.watermark=null,t.endnotes=null},setFonts:function(t,e){t.resource.fonts.push({fontName:e.name,fontUrl:e.src}),Zt(t.resource)},setCaseInfo:function(t,e){t.caseInfo=e},setPageId:function(t,e){t.pageId=e},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,$t(),Kt(t.resource)},updataResource:function(t){$t(),Kt(t.resource)},setData:function(t,e){t.selectd=e.selectd},setList:function(t,e){t.list=e},saveDynamicChildren:function(t,e){var n=e.cid,r=e.data,i=e.name,a=t.pages[t.pageIndex].list,s=_t(a,n);s&&(s.activeDynamic=i,s.dynamicChildren instanceof Array&&(s.dynamicChildren=new Map(s.dynamicChildren)),s.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},reversal:function(t,e){t.undos=[],t.undoRedoPointer=-1,t=Object.assign(t,e)},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=yt(i,n);"boolean"!=typeof a&&Object.assign(a,r)},updataComponentForCaseList:function(t,e){var n=e.cid,r=e.data,i=t.caseList,a=yt(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=yt(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=_t(t.list,n);"boolean"!=typeof i&&(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=yt(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=_t(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=_t(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){Ot(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,s=r.origin,o=t.cloneDeep(e.selectd);if(a){var u=o.includes(i);if(o.length>=1)if(!o.every((function(t){return wt(e.list,t,n.id)})))return void console.info("sorry Only sibling elements can be selected!");u?o.splice(o.findIndex((function(t){return t===i})),1):o.push(i),e.selectd=o}else e.selectd=[i];e.selectd.forEach((function(t){var n=yt(e.list,t);n.pid&&(yt(e.list,n.pid).toggle=!0);n.toggle=!0})),e.selectdChangeOrigin=s||""},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){Nt(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){"MultiStateComponent"!=n.componentType||n.stateChildren||(n.stateChildren=[]),"dynamicComponent"!=n.componentType||n.dynamicChildren||(n.dynamicChildren=new Map,n.activeDynamic="状态1",n.dynamicChildren.set("状态1",[])),e.list.unshift(n),e.menuList=t.cloneDeep(e.list),this.commit("GoCom/execute")},addMyComs:function(e,n){var r;try{var i=n.data,a=n.shareVariableTree,s=n.globalVars,o=n.globalEvents;e.globalVars=t.uniq(t.concat(t.cloneDeep(e.globalVars),s)),e.globalEvents=t.uniq(t.concat(t.cloneDeep(e.globalEvents),o));var u=Object.keys(a),l=Object.keys(e.shareVariableTree),h=t.difference(u,l);h.length?h.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?(St(i),(r=e.list).unshift.apply(r,i)):(St([i]),e.list.unshift(i)),e.menuList=t.cloneDeep(e.list),this.commit("GoCom/execute")}catch(t){}},addStateChildren:function(t,e){var n=_t(t.list,e.pid);n&&n.stateChildren.push(e)},addDynamicChildren:function(t,e){var n=_t(t.list,e.pid);n&&n.dynamicChildren.push(e)},changeDynamicState:function(t,e){var n=_t(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,s=e.value,o=yt(t.list,i);o&&(null===(r=null===(n=null==o?void 0:o.tmpData)||void 0===n?void 0:n.option)||void 0===r?void 0:r.hasOwnProperty(a))&&(o.tmpData.option[a]=s)}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),this.commit("GoCom/execute")},updataName:function(t,e){var n=_t(t.list,e.cid);n&&(n.name=e.name)},setCurrentEdited:function(t,e){if(e){var n=_t(t.list,e);if("boolean"!=typeof n){var r=Et(n);n.children=r}t.currentEditerCid=e}else t.currentEditerCid=""}},Jt={layout:function(e,n){var r=function(e,n){try{var r=e.map((function(t){var e=_t(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})),s=(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=s-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.left})),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})),s=(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=s-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)}}},Qt={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,s=t.theme,o=t.plant,u=t.shareVariableTree,l=t.resource;t.pages[t.pageIndex]={globalEvents:n,globalVars:r,list:i,name:a,theme:s,plant:o,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,s=t.plant,o=t.shareVariableTree,u=t.resource;t.pages[t.pageIndex]={globalEvents:e,globalVars:n,list:r,name:i,theme:a,plant:s,shareVariableTree:o,resource:u}},getCurrentPageData:function(t){var e=t.globalEvents,n=t.globalVars,r=t.list,i=t.name,a=t.theme,s=t.plant,o=t.shareVariableTree,u=t.resource;t.pages[t.pageIndex]={globalEvents:e,globalVars:n,list:r,name:i,theme:a,plant:s,shareVariableTree:o,resource:u}}},te={namespaced:!0,state:{size:{width:1920,height:1080},resource:{jspaths:[],csspaths:[],otherpaths:[],fonts:[]},alternateData:{},contextList:{},selectd:[],baseComs:[],globalVars:[],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,tw:null,watermark:null,endnotes:null,selectdChangeOrigin:""},mutations:r(r(r(r(r(r(r(r({},s),jt),Ft),Ht),zt),Xt),Jt),Qt),actions:{updataList:function(t,e){var n=t.commit;e&&n("updataList",e),n("updateTree")},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)}},getters:{getCurrentPage:function(t){return t.pages.length?t.pages[t.pageIndex]:[]}}},ee=function(t,n){void 0===t&&(t="");var r=e.create({baseURL:t,timeout:3e4,headers:{"Content-Type":"application/x-www-form-urlencoded;charset=UTF-8"}});return r.interceptors.request.use((function(t){return sessionStorage.getItem("anov-go-token")&&(t.headers["X-ANOV-ACCESS-TOKEN"]=sessionStorage.getItem("anov-go-token")),"post"===t.method?(t.headers["Content-Type"]="application/json; charset=UTF-8",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},ne=ee();function re(e,n,r,s){return i(this,void 0,void 0,(function(){var i,o,u,l;return a(this,(function(a){switch(a.label){case 0:i=e,o=t.cloneDeep(r),u=n?n.toLowerCase():"get",a.label=1;case 1:return a.trys.push([1,3,,4]),[4,ne({method:se[u],headers:s,url:i,params:o,timeout:3e4}).then((function(t){return{code:2e4,data:t.data}}))];case 2:return[2,a.sent()];case 3:return l=a.sent(),console.error("error:"+l.message),[3,4];case 4:return[2]}}))}))}function ie(t){return i(this,void 0,void 0,(function(){var e,n,i;return a(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"),console.log(n,"12233212"),r({},t),a.label=1;case 1:return a.trys.push([1,3,,4]),"{}"==JSON.stringify(null==t?void 0:t.params)&&(null==t||delete t.params),"{}"==JSON.stringify(null==t?void 0:t.headers)&&(null==t||delete t.headers),[4,ne({url:n,headers:{"Content-Type":"application/json;charset=UTF-8"},method:"post",data:{body:null==t?void 0:t.params,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 ae,se,oe=function(e,n){var r=e.tmpData.source,i=r.api.agency,a=r.type;if("static"!==a){var s=r[a],o=s.url,u=s.headers,l=s.params,h=s.requestType,c={};o.split("?")[0];var f=function(t){var e=new Object;if(-1!==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}(o);u.use&&(c=JSON.parse(u.value));var d={};return l&&t.isString(l)?t.assign(d,f,JSON.parse(l)):t.assign(d,f,l),Object.keys(d).forEach((function(t){var e=d[t],r=n.filter((function(t){return t.mapField==e.toString().replace("@","")}))[0];r&&(d[t]=r.value)})),{url:o,requestType:h,params:l,headers:c,agency:i}}return null},ue=function(t,e,n){void 0===e&&(e=[]),e||(e=[]);var r=oe(t,e);r&&n(r)},le=function(t,e,n,r,i){t.then((function(t){!t||2e4!=t.code&&200!=t.code?ce(e,he({error:!0,message:t.msg?t.msg:"data error"},e,n,r),i):n?ce(e,he(t.data,e,n,r),i):ce(e,he(t.data,e,n,r),i,t.data)})).catch((function(t){ce(e,he({error:!0,message:t.msg?t.msg:"data error"},e,n,r),i)}))},he=function(t,e,n,r){void 0===n&&(n=!0);try{var i=e.tmpData.source,a=i.converse,s=i.mapFields;return a&&a.use&&n?h(t,a,s,r):new Promise((function(e,n){e(t)}))}catch(t){console.error(t)}},ce=function(t,e,n,r){e.then((function(e){r?fe(t,e,n,r):fe(t,e,n)}))},fe=function(t,e,n,r){r?("static"==t.tmpData.source.type&&(t.tmpData.source[t.tmpData.source.type].originData=r),t.tmpData.source[t.tmpData.source.type].data=e):t.tmpData.source[t.tmpData.source.type].data=e,t.source=e,n({cid:t.cid,data:e})},de=function(t,e,n,r){void 0===n&&(n=!0);try{var i=t.tmpData.source.type,a=void 0;if(a=r||function(){},"api"==i)ge(t,e,n,a);else if("static"==i){var s=void 0,o=void 0;t.tmpData.source.static.originData?o=s=t.tmpData.source.static.originData:s=t.tmpData.source.static.data,ce(t,he(s,t,n,e),a,o)}else if("datasource"==i){s=t.tmpData.source[i];me(s.dsName,{dsType:"1",sql:Lt(s.inputSql)},t,e,a,n)}else if("staticFile"==i){s=t.tmpData.source[i];console.log(t.tmpData.source,"000000"),me(s.dsName,{dsType:s.dsType,sql:""},t,e,a,n)}else if("indicator"==i){s=t.tmpData.source[i];pe(s.zbId,{},t,e,a,n)}else a({cid:t.cid,data:"",message:"发生错误"})}catch(t){r&&r(t),console.log("error:"+t)}},pe=function(t,e,n,r,s,o){return i(void 0,void 0,void 0,(function(){var i,u,l,h,c;return a(this,(function(a){switch(a.label){case 0:return i=window.BaseUrl?window.BaseUrl.replace("/management",""):"",u=Bt("YZH_EXCHANGE_TOKEN")?Bt("YZH_EXCHANGE_TOKEN"):null===(c=window.yzhAuth)||void 0===c?void 0:c.getToken(),h=window.gdPassid,window.BASE_RELEASE?(console.log("发布:",u),l=i+"/dataserver/dataserver/data-engine/v1/"+t+"/zb-query?token="+u+"&passid="+h+"&preview=1"):(console.log("编辑",u),l=i+"/dataserver/dataserver/data-engine/v1/"+t+"/zb-query?token="+u+"&passid="+h),[4,ne({method:"POST",url:l,data:e,timeout:3e4}).then((function(t){if(2e4==t.code){var e=JSON.parse(t.data);e?ce(n,he(e,n,o,r),s):(ce(n,he({error:!0,message:t.msg?t.msg:"data error"},n,o,r),s),s({data:e,message:"发生错误"}))}else s({data:"",message:"发生错误"}),console.error("发生错误"),ce(n,he({error:!0,message:t.msg?t.msg:"data error"},n,o,r),s)})).catch((function(t){s(t)}))];case 1:return a.sent(),[2]}}))}))},me=function(t,e,n,r,s,o){return i(void 0,void 0,void 0,(function(){var i;return a(this,(function(a){switch(a.label){case 0:return i=window.BaseUrl?window.BaseUrl.replace("/management",""):"",[4,ne({method:"get",url:i+"/ds/v1/data-proxy/v1/"+t+"/query",params:e,timeout:3e4}).then((function(t){if(2e4==t.code){var e=JSON.parse(t.data);e?ce(n,he(e,n,o,r),s):(ce(n,he({error:!0,message:t.msg?t.msg:"data error"},n,o,r),s),s({data:e,message:"发生错误"}))}else s({data:"",message:"发生错误"}),console.error("发生错误"),ce(n,he({error:!0,message:t.msg?t.msg:"data error"},n,o,r),s)})).catch((function(t){s(t)}))];case 1:return a.sent(),[2]}}))}))},ge=function(t,e,n,r){void 0===n&&(n=!0);try{var i=oe(t,e),a=i.url,s=i.requestType,o=i.params,u=i.headers,l=i.agency;console.log(a,t,"0000000");var h=a.match(/(@)[\w]*/gm),c=a;h&&h.length&&h.forEach((function(t){var n=e.filter((function(e){return"@"+e.mapField==t})),r="";n&&n.length&&n.forEach((function(t){""!=t.value&&(r=t.value)})),a=c.replaceAll(t,r)})),le(l?ie({method:s,url:a,params:o,headers:u}):re(a,s,o,u),t,n,e,r)}catch(t){console.log("error:"+t)}},ve=function(t,e,n,r,i,a){var s,o;void 0===a&&(a=!0),t&&"api"==(null===(o=null===(s=null==t?void 0:t.tmpData)||void 0===s?void 0:s.source)||void 0===o?void 0:o.type)&&ue(t,e,(function(s){if(o=s.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(o))return n({cid:t.cid,data:{error:!0,message:s.url+"不是一个正确的地址,请正确填写!"}}),!1;var o,u=s.url,l=s.requestType,c=s.params,f=s.headers;s.agency?ie({method:l,url:u,params:c,headers:f}).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,he(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}})})):re(u,l,c,f).then((function(e){var i=[];if(r){var s=t.tmpData.source,o=s.converse,u=s.mapFields;o&&o.use&&a?h(e.data,o,u).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"}(ae||(ae={})),function(t){t.get="GET",t.post="POST",t.put="PUT",t.patch="PATCH",t.delete="DELETE"}(se||(se={}));var ye=Object.freeze({__proto__:null,Http:function(t,e){return ee(t,e)},axios:e,getDataForEvaluator:h,getData:re,agentData:ie,getComponentData:ue,autoUpdateComData:function(e,n,r){var i,a,s,o,u,l=null===(i=null==e?void 0:e.tmpData)||void 0===i?void 0:i.source,h=null===(s=null===(a=l[null==l?void 0:l.type])||void 0===a?void 0:a.autoUpdate)||void 0===s?void 0:s.open,c=null===(u=null===(o=l[null==l?void 0:l.type])||void 0===o?void 0:o.autoUpdate)||void 0===u?void 0:u.time;h&&t.isNumber(c)&&c>0&&setInterval((function(){de(e,n,!0,r)}),1e3*c)},updateComData:de,refreshData:ve,get ContentType(){return ae},get HttpMethod(){return se}}),be=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 _e(t.storeModule,e)},t.prototype.mapGetters=function(e){return De(t.storeModule,e)},t.prototype.mapMutations=function(e){return we(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){t.store.commit(t.storeModule+"/"+e,n)},t.prototype.callAction=function(e,n){t.store.dispatch(t.storeModule+"/"+e,n)},t.storeModule="GoCom",t}(),_e=Te((function(t,e){var n;return Se(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=xe(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})),we=Te((function(t,e){var n;return Se(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=xe(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})),De=Te((function(t,e){var n={};return Se(e).forEach((function(e){var r=e.key,i=e.val;i=t+i,n[r]=function(){if(!t||xe(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: "+i)}},n[r].VuexServer=!0})),n}));function Se(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 Te(t){return function(e,n){return"string"!=typeof e?(n=e,e=""):"/"!==e.charAt(e.length-1)&&(e+="/"),t(e,n)}}function xe(t,e,n){var r=t._modulesNamespaceMap[n];return"production"===process.env.NODE_ENV||r||console.error("[VuexServer] module namespace not found in "+e+"(): "+n),r}var Ee=function(t){var e=this;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=Vt(),t&&(Object.keys(t).forEach((function(n){e[n]=t[n]})),["AnEchartsMap","AnMaptalks","AnEchartsMap1","AnArcgisMapBase","AnAMap1","AnCesium","AnThreeMap3DChina","AnThreeMapForCesium"].includes(t.viewComName)&&(this.componentType="MultiStateComponent"),"AnDynamic"===t.viewComName&&(this.componentType="dynamicComponent"))},Oe=function(){function e(t){this.vueServer=t,this.loadScript=Wt}return e.setStore=function(t){this.store=t},e.prototype.loadComponents=function(e){var n=e&&e.list?e.list:[];Dt(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 i(this,void 0,void 0,(function(){var n,r,i=this;return a(this,(function(s){switch(s.label){case 0:if(window[e])return[3,5];n=function(e){var n;return a(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,s.label=1;case 1:return r<t.length?[5,n(r)]:[3,4];case 2:s.sent(),s.label=3;case 3:return r++,[3,1];case 4:window[e]=e,s.label=5;case 5:return[2]}}))}))},e.prototype._load=function(t){return i(this,void 0,void 0,(function(){var e=this;return a(this,(function(n){return[2,new Promise((function(n){n(e.loadScript(t))}))]}))}))},e}(),Me=function(){function t(t){var e=t.dbName,n=t.tables,i=t.version,a=void 0===i?1:i,s=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=a,this.openDB(r({dbName:e,tables:n,version:a},s))}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,s=window.indexedDB;if(s)if((null==r?void 0:r.length)<1)console.error("表名不能为空");else{var o=s.open(n,i);o.onerror=function(t){var e,n;console.error("打开数据库失败: "+(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)},o.onsuccess=function(t){var n;e.storage=null===(n=t.target)||void 0===n?void 0:n.result,"function"==typeof a&&a(t)},o.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}(),ke=function(){function t(){this.VueServer=new be}return t.getInstance=function(){return this.instance||(this.db=new Me({dbName:"AnovGo",tables:["logs"]}),this.instance=new t),this.instance},t.prototype.getAppStore=function(){return t.store},t.setAppStore=function(e){t.store=e,be.setAppStore(e),Oe.setStore(e)},t.prototype.add=function(t,e){e.MultiState?this.VueServer.callMutation("addStateChildren",e):(this.VueServer.callMutation("addComs",e),this.VueServer.callMutation("setActive",{id:t}))},t.prototype.render=function(t){var e=new Ee(t);this.add(e.cid,e)},t.prototype.reversal=function(t){new Oe(new be).loadComponents(t)},t.prototype.log=function(e,n,r,i,a){var s=(new Date).toLocaleString();t.db.set(s,{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,s,o){var u=i.cid,l=i.actions.eventName,h=[];h=i.hasOwnProperty("index")?t.filter((function(t){return t.id==u&&t.eventType==l&&parseInt(t.index)+1==parseInt(i.index)})):t.filter((function(t){return t.id===u&&t.eventType===l}));var c=i.actions.mode;!e||e.filter((function(t){return t.id===u&&t.type===l}));for(var f=function(t){var e=h[t];if("link"==e.type&&window.open(e.link),"page"===e.type&&o&&o(e),"dynamic"===e.type){var n=e.dynamic;n&&n.length&&n.forEach((function(t){var n;e.id===i.cid&&(1!=i.actions.mode?e.index==i.index-1&&(n=yt(r,t.pid))&&(n.activeDynamic=t.name,n.isShow=!0,t.visible||(n.isShow=!1)):(n=yt(r,t.pid))&&(n.activeDynamic=t.name,n.isShow=!0,t.visible||(n.isShow=!1)))}))}"toggle"==e.type&&(2==c?e.children.forEach((function(t){e.index===i.index-1&&a({cid:t.cid,flag:t.visible})})):e.children.forEach((function(t){a({cid:t.cid,flag:t.visible})})))},d=0;d<h.length;d++)f(d);for(d=0;d<e.length;d++){var p=e[d];if(p.id==u){i.hasOwnProperty(p.field)?p.value=i[p.field]?i[p.field]:"":(null==i?void 0:i.data)&&i.data[p.field]?p.value=null==i?void 0:i.data[p.field]:p.value=null;var m=n[p.mapField];if(!n)return;m&&m.length&&m.forEach((function(t){var n=_t(r,t);de(n,e,!0,s)}))}}}(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}(),Ce=Object.defineProperty,Ae=Object.getOwnPropertySymbols,Pe=Object.prototype.hasOwnProperty,Re=Object.prototype.propertyIsEnumerable,Ne=(t,e,n)=>e in t?Ce(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Ve=(t,e)=>{for(var n in e||(e={}))Pe.call(e,n)&&Ne(t,n,e[n]);if(Ae)for(var n of Ae(e))Re.call(e,n)&&Ne(t,n,e[n]);return t},Ie=(t,e,n)=>(Ne(t,"symbol"!=typeof e?e+"":e,n),n),Be=(t,e,n)=>new Promise(((r,i)=>{var a=t=>{try{o(n.next(t))}catch(t){i(t)}},s=t=>{try{o(n.throw(t))}catch(t){i(t)}},o=t=>t.done?r(t.value):Promise.resolve(t.value).then(a,s);o((n=n.apply(t,e)).next())})),Ye={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,blindOpacity:.005},Le={childList:!0,subtree:!0,attributeFilter:["style","data-watermark-tag"]};var je=t=>{let e="";return Object.keys(t).forEach((n=>{const r=n.replace(/([A-Z])/g,"-$1").toLowerCase();e+=`${r}:${t[n]};`})),e},Fe=(t="")=>{return`${e=t,window.btoa(decodeURI(encodeURIComponent(e)))}-${(new Date).getTime()}-${Math.floor(Math.random()*Math.pow(10,8))}`;var e};var Ue=window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver,He="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function ze(){throw new Error("Dynamic requires are not currently supported by rollup-plugin-commonjs")}function qe(t,e){return t(e={exports:{}},e.exports),e.exports}var We=qe((function(t,e){t.exports=function(){var e,n;function r(){return e.apply(null,arguments)}function i(t){e=t}function a(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 o(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function u(t){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(t).length;var e;for(e in t)if(o(t,e))return!1;return!0}function l(t){return void 0===t}function h(t){return"number"==typeof t||"[object Number]"===Object.prototype.toString.call(t)}function c(t){return t instanceof Date||"[object Date]"===Object.prototype.toString.call(t)}function f(t,e){var n,r=[];for(n=0;n<t.length;++n)r.push(e(t[n],n));return r}function d(t,e){for(var n in e)o(e,n)&&(t[n]=e[n]);return o(e,"toString")&&(t.toString=e.toString),o(e,"valueOf")&&(t.valueOf=e.valueOf),t}function p(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 g(t){return null==t._pf&&(t._pf=m()),t._pf}function v(t){if(null==t._isValid){var e=g(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 y(t){var e=p(NaN);return null!=t?d(g(e),t):g(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=[],_=!1;function w(t,e){var n,r,i;if(l(e._isAMomentObject)||(t._isAMomentObject=e._isAMomentObject),l(e._i)||(t._i=e._i),l(e._f)||(t._f=e._f),l(e._l)||(t._l=e._l),l(e._strict)||(t._strict=e._strict),l(e._tzm)||(t._tzm=e._tzm),l(e._isUTC)||(t._isUTC=e._isUTC),l(e._offset)||(t._offset=e._offset),l(e._pf)||(t._pf=g(e)),l(e._locale)||(t._locale=e._locale),b.length>0)for(n=0;n<b.length;n++)l(i=e[r=b[n]])||(t[r]=i);return t}function D(t){w(this,t),this._d=new Date(null!=t._d?t._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===_&&(_=!0,r.updateOffset(this),_=!1)}function S(t){return t instanceof D||null!=t&&null!=t._isAMomentObject}function T(t){!1===r.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+t)}function x(t,e){var n=!0;return d((function(){if(null!=r.deprecationHandler&&r.deprecationHandler(null,t),n){var i,a,s,u=[];for(a=0;a<arguments.length;a++){if(i="","object"==typeof arguments[a]){for(s in i+="\n["+a+"] ",arguments[0])o(arguments[0],s)&&(i+=s+": "+arguments[0][s]+", ");i=i.slice(0,-2)}else i=arguments[a];u.push(i)}T(t+"\nArguments: "+Array.prototype.slice.call(u).join("")+"\n"+(new Error).stack),n=!1}return e.apply(this,arguments)}),e)}var E,O={};function M(t,e){null!=r.deprecationHandler&&r.deprecationHandler(t,e),O[t]||(T(e),O[t]=!0)}function k(t){return"undefined"!=typeof Function&&t instanceof Function||"[object Function]"===Object.prototype.toString.call(t)}function C(t){var e,n;for(n in t)o(t,n)&&(k(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 A(t,e){var n,r=d({},t);for(n in e)o(e,n)&&(s(t[n])&&s(e[n])?(r[n]={},d(r[n],t[n]),d(r[n],e[n])):null!=e[n]?r[n]=e[n]:delete r[n]);for(n in t)o(t,n)&&!o(e,n)&&s(t[n])&&(r[n]=d({},r[n]));return r}function P(t){null!=t&&this.set(t)}r.suppressDeprecationWarnings=!1,r.deprecationHandler=null,E=Object.keys?Object.keys:function(t){var e,n=[];for(e in t)o(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 k(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,B=/(\[[^\[]*\])|(\\)?(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 F(t){return t.match(/\[[\s\S]/)?t.replace(/^\[|\]$/g,""):t.replace(/\\/g,"")}function U(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]=F(r[e]);return function(e){var i,a="";for(i=0;i<n;i++)a+=k(r[i])?r[i].call(e,t):r[i];return a}}function H(t,e){return t.isValid()?(e=z(e,t.localeData()),Y[e]=Y[e]||U(e),Y[e](t)):t.localeData().invalidDate()}function z(t,e){var n=5;function r(t){return e.longDateFormat(t)||t}for(B.lastIndex=0;n>=0&&B.test(t);)t=t.replace(B,r),B.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 W(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 G="Invalid date";function Z(){return this._invalidDate}var K="%d",$=/\d{1,2}/;function X(t){return this._ordinal.replace("%d",t)}var J={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 Q(t,e,n,r){var i=this._relativeTime[n];return k(i)?i(t,e,n,r):i.replace(/%d/i,t)}function tt(t,e){var n=this._relativeTime[t>0?"future":"past"];return k(n)?n(e):n.replace(/%s/i,e)}var et={};function nt(t,e){var n=t.toLowerCase();et[n]=et[n+"s"]=et[e]=t}function rt(t){return"string"==typeof t?et[t]||et[t.toLowerCase()]:void 0}function it(t){var e,n,r={};for(n in t)o(t,n)&&(e=rt(n))&&(r[e]=t[n]);return r}var at={};function st(t,e){at[t]=e}function ot(t){var e,n=[];for(e in t)o(t,e)&&n.push({unit:e,priority:at[e]});return n.sort((function(t,e){return t.priority-e.priority})),n}function ut(t){return t%4==0&&t%100!=0||t%400==0}function lt(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=lt(e)),n}function ct(t,e){return function(n){return null!=n?(dt(this,t,n),r.updateOffset(this,e),this):ft(this,t)}}function ft(t,e){return t.isValid()?t._d["get"+(t._isUTC?"UTC":"")+e]():NaN}function dt(t,e,n){t.isValid()&&!isNaN(n)&&("FullYear"===e&&ut(t.year())&&1===t.month()&&29===t.date()?(n=ht(n),t._d["set"+(t._isUTC?"UTC":"")+e](n,t.month(),Qt(n,t.month()))):t._d["set"+(t._isUTC?"UTC":"")+e](n))}function pt(t){return k(this[t=rt(t)])?this[t]():this}function mt(t,e){if("object"==typeof t){var n,r=ot(t=it(t));for(n=0;n<r.length;n++)this[r[n].unit](t[r[n].unit])}else if(k(this[t=rt(t)]))return this[t](e);return this}var gt,vt=/\d/,yt=/\d\d/,bt=/\d{3}/,_t=/\d{4}/,wt=/[+-]?\d{6}/,Dt=/\d\d?/,St=/\d\d\d\d?/,Tt=/\d\d\d\d\d\d?/,xt=/\d{1,3}/,Et=/\d{1,4}/,Ot=/[+-]?\d{1,6}/,Mt=/\d+/,kt=/[+-]?\d+/,Ct=/Z|[+-]\d\d:?\d\d/gi,At=/Z|[+-]\d\d(?::?\d\d)?/gi,Pt=/[+-]?\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){gt[t]=k(e)?e:function(t,r){return t&&n?n:e}}function Vt(t,e){return o(gt,t)?gt[t](e._strict,e._locale):new RegExp(It(t))}function It(t){return Bt(t.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,(function(t,e,n,r,i){return e||n||r||i})))}function Bt(t){return t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}gt={};var Yt={};function Lt(t,e){var n,r=e;for("string"==typeof t&&(t=[t]),h(e)&&(r=function(t,n){n[e]=ht(t)}),n=0;n<t.length;n++)Yt[t[n]]=r}function jt(t,e){Lt(t,(function(t,n,r,i){r._w=r._w||{},e(t,r._w,r,i)}))}function Ft(t,e,n){null!=e&&o(Yt,t)&&Yt[t](e,n._a,n,t)}var Ut,Ht=0,zt=1,qt=2,Wt=3,Gt=4,Zt=5,Kt=6,$t=7,Xt=8;function Jt(t,e){return(t%e+e)%e}function Qt(t,e){if(isNaN(t)||isNaN(e))return NaN;var n=Jt(e,12);return t+=(e-n)/12,1===n?ut(t)?29:28:31-n%7%2}Ut=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)})),nt("month","M"),st("month",8),Nt("M",Dt),Nt("MM",Dt,yt),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[zt]=ht(t)-1})),Lt(["MMM","MMMM"],(function(t,e,n,r){var i=n._locale.monthsParse(t,r,n._strict);null!=i?e[zt]=i:g(n).invalidMonth=t}));var te="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ee="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),ne=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,re=Rt,ie=Rt;function ae(t,e){return t?a(this._months)?this._months[t.month()]:this._months[(this._months.isFormat||ne).test(e)?"format":"standalone"][t.month()]:a(this._months)?this._months:this._months.standalone}function se(t,e){return t?a(this._monthsShort)?this._monthsShort[t.month()]:this._monthsShort[ne.test(e)?"format":"standalone"][t.month()]:a(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function oe(t,e,n){var r,i,a,s=t.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],r=0;r<12;++r)a=p([2e3,r]),this._shortMonthsParse[r]=this.monthsShort(a,"").toLocaleLowerCase(),this._longMonthsParse[r]=this.months(a,"").toLocaleLowerCase();return n?"MMM"===e?-1!==(i=Ut.call(this._shortMonthsParse,s))?i:null:-1!==(i=Ut.call(this._longMonthsParse,s))?i:null:"MMM"===e?-1!==(i=Ut.call(this._shortMonthsParse,s))||-1!==(i=Ut.call(this._longMonthsParse,s))?i:null:-1!==(i=Ut.call(this._longMonthsParse,s))||-1!==(i=Ut.call(this._shortMonthsParse,s))?i:null}function ue(t,e,n){var r,i,a;if(this._monthsParseExact)return oe.call(this,t,e,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),r=0;r<12;r++){if(i=p([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 le(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(),Qt(t.year(),e)),t._d["set"+(t._isUTC?"UTC":"")+"Month"](e,n),t}function he(t){return null!=t?(le(this,t),r.updateOffset(this,!0),this):ft(this,"Month")}function ce(){return Qt(this.year(),this.month())}function fe(t){return this._monthsParseExact?(o(this,"_monthsRegex")||pe.call(this),t?this._monthsShortStrictRegex:this._monthsShortRegex):(o(this,"_monthsShortRegex")||(this._monthsShortRegex=re),this._monthsShortStrictRegex&&t?this._monthsShortStrictRegex:this._monthsShortRegex)}function de(t){return this._monthsParseExact?(o(this,"_monthsRegex")||pe.call(this),t?this._monthsStrictRegex:this._monthsRegex):(o(this,"_monthsRegex")||(this._monthsRegex=ie),this._monthsStrictRegex&&t?this._monthsStrictRegex:this._monthsRegex)}function pe(){function t(t,e){return e.length-t.length}var e,n,r=[],i=[],a=[];for(e=0;e<12;e++)n=p([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]=Bt(r[e]),i[e]=Bt(i[e]);for(e=0;e<24;e++)a[e]=Bt(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 ut(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"),nt("year","y"),st("year",1),Nt("Y",kt),Nt("YY",Dt,yt),Nt("YYYY",Et,_t),Nt("YYYYY",Ot,wt),Nt("YYYYYY",Ot,wt),Lt(["YYYYY","YYYYYY"],Ht),Lt("YYYY",(function(t,e){e[Ht]=2===t.length?r.parseTwoDigitYear(t):ht(t)})),Lt("YY",(function(t,e){e[Ht]=r.parseTwoDigitYear(t)})),Lt("Y",(function(t,e){e[Ht]=parseInt(t,10)})),r.parseTwoDigitYear=function(t){return ht(t)+(ht(t)>68?1900:2e3)};var ge=ct("FullYear",!0);function ve(){return ut(this.year())}function ye(t,e,n,r,i,a,s){var o;return t<100&&t>=0?(o=new Date(t+400,e,n,r,i,a,s),isFinite(o.getFullYear())&&o.setFullYear(t)):o=new Date(t,e,n,r,i,a,s),o}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 _e(t,e,n){var r=7+e-n;return-(7+be(t,0,r).getUTCDay()-e)%7+r-1}function we(t,e,n,r,i){var a,s,o=1+7*(e-1)+(7+n-r)%7+_e(t,r,i);return o<=0?s=me(a=t-1)+o:o>me(t)?(a=t+1,s=o-me(t)):(a=t,s=o),{year:a,dayOfYear:s}}function De(t,e,n){var r,i,a=_e(t.year(),e,n),s=Math.floor((t.dayOfYear()-a-1)/7)+1;return s<1?r=s+Se(i=t.year()-1,e,n):s>Se(t.year(),e,n)?(r=s-Se(t.year(),e,n),i=t.year()+1):(i=t.year(),r=s),{week:r,year:i}}function Se(t,e,n){var r=_e(t,e,n),i=_e(t+1,e,n);return(me(t)-r+i)/7}function Te(t){return De(t,this._week.dow,this._week.doy).week}j("w",["ww",2],"wo","week"),j("W",["WW",2],"Wo","isoWeek"),nt("week","w"),nt("isoWeek","W"),st("week",5),st("isoWeek",5),Nt("w",Dt),Nt("ww",Dt,yt),Nt("W",Dt),Nt("WW",Dt,yt),jt(["w","ww","W","WW"],(function(t,e,n,r){e[r.substr(0,1)]=ht(t)}));var xe={dow:0,doy:6};function Ee(){return this._week.dow}function Oe(){return this._week.doy}function Me(t){var e=this.localeData().week(this);return null==t?e:this.add(7*(t-e),"d")}function ke(t){var e=De(this,1,4).week;return null==t?e:this.add(7*(t-e),"d")}function Ce(t,e){return"string"!=typeof t?t:isNaN(t)?"number"==typeof(t=e.weekdaysParse(t))?t:null:parseInt(t,10)}function Ae(t,e){return"string"==typeof t?e.weekdaysParse(t)%7||7:isNaN(t)?null:t}function Pe(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"),nt("day","d"),nt("weekday","e"),nt("isoWeekday","E"),st("day",11),st("weekday",11),st("isoWeekday",11),Nt("d",Dt),Nt("e",Dt),Nt("E",Dt),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:g(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,Be=Rt,Ye=Rt;function Le(t,e){var n=a(this._weekdays)?this._weekdays:this._weekdays[t&&!0!==t&&this._weekdays.isFormat.test(e)?"format":"standalone"];return!0===t?Pe(n,this._week.dow):t?n[t.day()]:n}function je(t){return!0===t?Pe(this._weekdaysShort,this._week.dow):t?this._weekdaysShort[t.day()]:this._weekdaysShort}function Fe(t){return!0===t?Pe(this._weekdaysMin,this._week.dow):t?this._weekdaysMin[t.day()]:this._weekdaysMin}function Ue(t,e,n){var r,i,a,s=t.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)a=p([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=Ut.call(this._weekdaysParse,s))?i:null:"ddd"===e?-1!==(i=Ut.call(this._shortWeekdaysParse,s))?i:null:-1!==(i=Ut.call(this._minWeekdaysParse,s))?i:null:"dddd"===e?-1!==(i=Ut.call(this._weekdaysParse,s))||-1!==(i=Ut.call(this._shortWeekdaysParse,s))||-1!==(i=Ut.call(this._minWeekdaysParse,s))?i:null:"ddd"===e?-1!==(i=Ut.call(this._shortWeekdaysParse,s))||-1!==(i=Ut.call(this._weekdaysParse,s))||-1!==(i=Ut.call(this._minWeekdaysParse,s))?i:null:-1!==(i=Ut.call(this._minWeekdaysParse,s))||-1!==(i=Ut.call(this._weekdaysParse,s))||-1!==(i=Ut.call(this._shortWeekdaysParse,s))?i:null}function He(t,e,n){var r,i,a;if(this._weekdaysParseExact)return Ue.call(this,t,e,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(i=p([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 qe(t){if(!this.isValid())return null!=t?this:NaN;var e=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=t?(t=Ce(t,this.localeData()),this.add(t-e,"d")):e}function We(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=Ae(t,this.localeData());return this.day(this.day()%7?e:e-7)}return this.day()||7}function Ze(t){return this._weekdaysParseExact?(o(this,"_weekdaysRegex")||Xe.call(this),t?this._weekdaysStrictRegex:this._weekdaysRegex):(o(this,"_weekdaysRegex")||(this._weekdaysRegex=Ie),this._weekdaysStrictRegex&&t?this._weekdaysStrictRegex:this._weekdaysRegex)}function Ke(t){return this._weekdaysParseExact?(o(this,"_weekdaysRegex")||Xe.call(this),t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(o(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Be),this._weekdaysShortStrictRegex&&t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function $e(t){return this._weekdaysParseExact?(o(this,"_weekdaysRegex")||Xe.call(this),t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(o(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Ye),this._weekdaysMinStrictRegex&&t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function Xe(){function t(t,e){return e.length-t.length}var e,n,r,i,a,s=[],o=[],u=[],l=[];for(e=0;e<7;e++)n=p([2e3,1]).day(e),r=Bt(this.weekdaysMin(n,"")),i=Bt(this.weekdaysShort(n,"")),a=Bt(this.weekdays(n,"")),s.push(r),o.push(i),u.push(a),l.push(r),l.push(i),l.push(a);s.sort(t),o.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("^("+o.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+s.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),nt("hour","h"),st("hour",13),Nt("a",en),Nt("A",en),Nt("H",Dt),Nt("h",Dt),Nt("k",Dt),Nt("HH",Dt,yt),Nt("hh",Dt,yt),Nt("kk",Dt,yt),Nt("hmm",St),Nt("hmmss",Tt),Nt("Hmm",St),Nt("Hmmss",Tt),Lt(["H","HH"],Wt),Lt(["k","kk"],(function(t,e,n){var r=ht(t);e[Wt]=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[Wt]=ht(t),g(n).bigHour=!0})),Lt("hmm",(function(t,e,n){var r=t.length-2;e[Wt]=ht(t.substr(0,r)),e[Gt]=ht(t.substr(r)),g(n).bigHour=!0})),Lt("hmmss",(function(t,e,n){var r=t.length-4,i=t.length-2;e[Wt]=ht(t.substr(0,r)),e[Gt]=ht(t.substr(r,2)),e[Zt]=ht(t.substr(i)),g(n).bigHour=!0})),Lt("Hmm",(function(t,e,n){var r=t.length-2;e[Wt]=ht(t.substr(0,r)),e[Gt]=ht(t.substr(r))})),Lt("Hmmss",(function(t,e,n){var r=t.length-4,i=t.length-2;e[Wt]=ht(t.substr(0,r)),e[Gt]=ht(t.substr(r,2)),e[Zt]=ht(t.substr(i))}));var rn=/[ap]\.?m?\.?/i,an=ct("Hours",!0);function sn(t,e,n){return t>11?n?"pm":"PM":n?"am":"AM"}var on,un={calendar:R,longDateFormat:q,invalidDate:G,ordinal:K,dayOfMonthOrdinalParse:$,relativeTime:J,months:te,monthsShort:ee,week:xe,weekdays:Re,weekdaysMin:Ve,weekdaysShort:Ne,meridiemParse:rn},ln={},hn={};function cn(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=pn(i.slice(0,e).join("-")))return r;if(n&&n.length>=e&&cn(i,n)>=e-1)break;e--}a++}return on}function pn(e){var n=null;if(void 0===ln[e]&&t&&t.exports)try{n=on._abbr,ze(),mn(n)}catch(t){ln[e]=null}return ln[e]}function mn(t,e){var n;return t&&((n=l(e)?yn(t):gn(t,e))?on=n:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+t+" not found. Did you forget to load it?")),on._abbr}function gn(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=pn(e.parentLocale)))return hn[e.parentLocale]||(hn[e.parentLocale]=[]),hn[e.parentLocale].push({name:t,config:e}),null;r=n._config}return ln[t]=new P(A(r,e)),hn[t]&&hn[t].forEach((function(t){gn(t.name,t.config)})),mn(t),ln[t]}return delete ln[t],null}function vn(t,e){if(null!=e){var n,r,i=un;null!=ln[t]&&null!=ln[t].parentLocale?ln[t].set(A(ln[t]._config,e)):(null!=(r=pn(t))&&(i=r._config),e=A(i,e),null==r&&(e.abbr=t),(n=new P(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 yn(t){var e;if(t&&t._locale&&t._locale._abbr&&(t=t._locale._abbr),!t)return on;if(!a(t)){if(e=pn(t))return e;t=[t]}return dn(t)}function bn(){return E(ln)}function _n(t){var e,n=t._a;return n&&-2===g(t).overflow&&(e=n[zt]<0||n[zt]>11?zt:n[qt]<1||n[qt]>Qt(n[Ht],n[zt])?qt:n[Wt]<0||n[Wt]>24||24===n[Wt]&&(0!==n[Gt]||0!==n[Zt]||0!==n[Kt])?Wt:n[Gt]<0||n[Gt]>59?Gt:n[Zt]<0||n[Zt]>59?Zt:n[Kt]<0||n[Kt]>999?Kt:-1,g(t)._overflowDayOfYear&&(e<Ht||e>qt)&&(e=qt),g(t)._overflowWeeks&&-1===e&&(e=$t),g(t)._overflowWeekday&&-1===e&&(e=Xt),g(t).overflow=e),t}var wn=/^\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)?)?$/,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=/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]],xn=[["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/]],En=/^\/?Date\((-?\d+)/i,On=/^(?:(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 kn(t){var e,n,r,i,a,s,o=t._i,u=wn.exec(o)||Dn.exec(o);if(u){for(g(t).iso=!0,e=0,n=Tn.length;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=xn.length;e<n;e++)if(xn[e][1].exec(u[3])){a=(u[2]||" ")+xn[e][0];break}if(null==a)return void(t._isValid=!1)}if(!r&&null!=a)return void(t._isValid=!1);if(u[4]){if(!Sn.exec(u[4]))return void(t._isValid=!1);s="Z"}t._f=i+(a||"")+(s||""),Fn(t)}else t._isValid=!1}function Cn(t,e,n,r,i,a){var s=[An(t),ee.indexOf(e),parseInt(n,10),parseInt(r,10),parseInt(i,10)];return a&&s.push(parseInt(a,10)),s}function An(t){var e=parseInt(t,10);return e<=49?2e3+e:e<=999?1900+e:e}function Pn(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()||(g(n).weekdayMismatch=!0,n._isValid=!1,!1)}function Nn(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 Vn(t){var e,n=On.exec(Pn(t._i));if(n){if(e=Cn(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),g(t).rfc2822=!0}else t._isValid=!1}function In(t){var e=En.exec(t._i);null===e?(kn(t),!1===t._isValid&&(delete t._isValid,Vn(t),!1===t._isValid&&(delete t._isValid,t._strict?t._isValid=!1:r.createFromInputFallback(t)))):t._d=new Date(+e[1])}function Bn(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,s=[];if(!t._d){for(r=Yn(t),t._w&&null==t._a[qt]&&null==t._a[zt]&&jn(t),null!=t._dayOfYear&&(a=Bn(t._a[Ht],r[Ht]),(t._dayOfYear>me(a)||0===t._dayOfYear)&&(g(t)._overflowDayOfYear=!0),n=be(a,0,t._dayOfYear),t._a[zt]=n.getUTCMonth(),t._a[qt]=n.getUTCDate()),e=0;e<3&&null==t._a[e];++e)t._a[e]=s[e]=r[e];for(;e<7;e++)t._a[e]=s[e]=null==t._a[e]?2===e?1:0:t._a[e];24===t._a[Wt]&&0===t._a[Gt]&&0===t._a[Zt]&&0===t._a[Kt]&&(t._nextDay=!0,t._a[Wt]=0),t._d=(t._useUTC?be:ye).apply(null,s),i=t._useUTC?t._d.getUTCDay():t._d.getDay(),null!=t._tzm&&t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),t._nextDay&&(t._a[Wt]=24),t._w&&void 0!==t._w.d&&t._w.d!==i&&(g(t).weekdayMismatch=!0)}}function jn(t){var e,n,r,i,a,s,o,u,l;null!=(e=t._w).GG||null!=e.W||null!=e.E?(a=1,s=4,n=Bn(e.GG,t._a[Ht],De(Kn(),1,4).year),r=Bn(e.W,1),((i=Bn(e.E,1))<1||i>7)&&(u=!0)):(a=t._locale._week.dow,s=t._locale._week.doy,l=De(Kn(),a,s),n=Bn(e.gg,t._a[Ht],l.year),r=Bn(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>Se(n,a,s)?g(t)._overflowWeeks=!0:null!=u?g(t)._overflowWeekday=!0:(o=we(n,r,i,a,s),t._a[Ht]=o.year,t._dayOfYear=o.dayOfYear)}function Fn(t){if(t._f!==r.ISO_8601)if(t._f!==r.RFC_2822){t._a=[],g(t).empty=!0;var e,n,i,a,s,o,u=""+t._i,l=u.length,h=0;for(i=z(t._f,t._locale).match(I)||[],e=0;e<i.length;e++)a=i[e],(n=(u.match(Vt(a,t))||[])[0])&&((s=u.substr(0,u.indexOf(n))).length>0&&g(t).unusedInput.push(s),u=u.slice(u.indexOf(n)+n.length),h+=n.length),L[a]?(n?g(t).empty=!1:g(t).unusedTokens.push(a),Ft(a,n,t)):t._strict&&!n&&g(t).unusedTokens.push(a);g(t).charsLeftOver=l-h,u.length>0&&g(t).unusedInput.push(u),t._a[Wt]<=12&&!0===g(t).bigHour&&t._a[Wt]>0&&(g(t).bigHour=void 0),g(t).parsedDateParts=t._a.slice(0),g(t).meridiem=t._meridiem,t._a[Wt]=Un(t._locale,t._a[Wt],t._meridiem),null!==(o=g(t).era)&&(t._a[Ht]=t._locale.erasConvertYear(o,t._a[Ht])),Ln(t),_n(t)}else Vn(t);else kn(t)}function Un(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 Hn(t){var e,n,r,i,a,s,o=!1;if(0===t._f.length)return g(t).invalidFormat=!0,void(t._d=new Date(NaN));for(i=0;i<t._f.length;i++)a=0,s=!1,e=w({},t),null!=t._useUTC&&(e._useUTC=t._useUTC),e._f=t._f[i],Fn(e),v(e)&&(s=!0),a+=g(e).charsLeftOver,a+=10*g(e).unusedTokens.length,g(e).score=a,o?a<r&&(r=a,n=e):(null==r||a<r||s)&&(r=a,n=e,s&&(o=!0));d(t,n||e)}function zn(t){if(!t._d){var e=it(t._i),n=void 0===e.day?e.date:e.day;t._a=f([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 D(_n(Wn(t)));return e._nextDay&&(e.add(1,"d"),e._nextDay=void 0),e}function Wn(t){var e=t._i,n=t._f;return t._locale=t._locale||yn(t._l),null===e||void 0===n&&""===e?y({nullInput:!0}):("string"==typeof e&&(t._i=e=t._locale.preparse(e)),S(e)?new D(_n(e)):(c(e)?t._d=e:a(n)?Hn(t):n?Fn(t):Gn(t),v(t)||(t._d=null),t))}function Gn(t){var e=t._i;l(e)?t._d=new Date(r.now()):c(e)?t._d=new Date(e.valueOf()):"string"==typeof e?In(t):a(e)?(t._a=f(e.slice(0),(function(t){return parseInt(t,10)})),Ln(t)):s(e)?zn(t):h(e)?t._d=new Date(e):r.createFromInputFallback(t)}function Zn(t,e,n,r,i){var o={};return!0!==e&&!1!==e||(r=e,e=void 0),!0!==n&&!1!==n||(r=n,n=void 0),(s(t)&&u(t)||a(t)&&0===t.length)&&(t=void 0),o._isAMomentObject=!0,o._useUTC=o._isUTC=i,o._l=n,o._i=t,o._f=e,o._strict=r,qn(o)}function Kn(t,e,n,r){return Zn(t,e,n,r,!1)}r.createFromInputFallback=x("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=x("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var t=Kn.apply(null,arguments);return this.isValid()&&t.isValid()?t<this?this:t:y()})),Xn=x("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var t=Kn.apply(null,arguments);return this.isValid()&&t.isValid()?t>this?this:t:y()}));function Jn(t,e){var n,r;if(1===e.length&&a(e[0])&&(e=e[0]),!e.length)return Kn();for(n=e[0],r=1;r<e.length;++r)e[r].isValid()&&!e[r][t](n)||(n=e[r]);return n}function Qn(){return Jn("isBefore",[].slice.call(arguments,0))}function tr(){return Jn("isAfter",[].slice.call(arguments,0))}var er=function(){return Date.now?Date.now():+new Date},nr=["year","quarter","month","week","day","hour","minute","second","millisecond"];function rr(t){var e,n,r=!1;for(e in t)if(o(t,e)&&(-1===Ut.call(nr,e)||null!=t[e]&&isNaN(t[e])))return!1;for(n=0;n<nr.length;++n)if(t[nr[n]]){if(r)return!1;parseFloat(t[nr[n]])!==ht(t[nr[n]])&&(r=!0)}return!0}function ir(){return this._isValid}function ar(){return Mr(NaN)}function sr(t){var e=it(t),n=e.year||0,r=e.quarter||0,i=e.month||0,a=e.week||e.isoWeek||0,s=e.day||0,o=e.hour||0,u=e.minute||0,l=e.second||0,h=e.millisecond||0;this._isValid=rr(e),this._milliseconds=+h+1e3*l+6e4*u+1e3*o*60*60,this._days=+s+7*a,this._months=+i+3*r+12*n,this._data={},this._locale=yn(),this._bubble()}function or(t){return t instanceof sr}function ur(t){return t<0?-1*Math.round(-1*t):Math.round(t)}function lr(t,e,n){var r,i=Math.min(t.length,e.length),a=Math.abs(t.length-e.length),s=0;for(r=0;r<i;r++)(n&&t[r]!==e[r]||!n&&ht(t[r])!==ht(e[r]))&&s++;return s+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",At),Nt("ZZ",At),Lt(["Z","ZZ"],(function(t,e,n){n._useUTC=!0,n._tzm=fr(At,t)}));var cr=/([\+\-]|\d\d)/gi;function fr(t,e){var n,r,i=(e||"").match(t);return null===i?null:0===(r=60*(n=((i[i.length-1]||[])+"").match(cr)||["-",0,0])[1]+ht(n[2]))?0:"+"===n[0]?r:-r}function dr(t,e){var n,i;return e._isUTC?(n=e.clone(),i=(S(t)||c(t)?t.valueOf():Kn(t).valueOf())-n.valueOf(),n._d.setTime(n._d.valueOf()+i),r.updateOffset(n,!1),n):Kn(t).local()}function pr(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=fr(At,t)))return this}else Math.abs(t)<16&&!n&&(t*=60);return!this._isUTC&&e&&(i=pr(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:pr(this)}function gr(t,e){return null!=t?("string"!=typeof t&&(t=-t),this.utcOffset(t,e),this):-this.utcOffset()}function vr(t){return this.utcOffset(0,t)}function yr(t){return this._isUTC&&(this.utcOffset(0,t),this._isUTC=!1,t&&this.subtract(pr(this),"m")),this}function br(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var t=fr(Ct,this._i);null!=t?this.utcOffset(t):this.utcOffset(0,!0)}return this}function _r(t){return!!this.isValid()&&(t=t?Kn(t).utcOffset():0,(this.utcOffset()-t)%60==0)}function wr(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function Dr(){if(!l(this._isDSTShifted))return this._isDSTShifted;var t,e={};return w(e,this),(e=Wn(e))._a?(t=e._isUTC?p(e._a):Kn(e._a),this._isDSTShifted=this.isValid()&&lr(e._a,t.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function Sr(){return!!this.isValid()&&!this._isUTC}function Tr(){return!!this.isValid()&&this._isUTC}function xr(){return!!this.isValid()&&this._isUTC&&0===this._offset}r.updateOffset=function(){};var Er=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Or=/^(-|\+)?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,s=null;return or(t)?a={ms:t._milliseconds,d:t._days,M:t._months}:h(t)||!isNaN(+t)?(a={},e?a[e]=+t:a.milliseconds=+t):(s=Er.exec(t))?(n="-"===s[1]?-1:1,a={y:0,d:ht(s[qt])*n,h:ht(s[Wt])*n,m:ht(s[Gt])*n,s:ht(s[Zt])*n,ms:ht(ur(1e3*s[Kt]))*n}):(s=Or.exec(t))?(n="-"===s[1]?-1:1,a={y:kr(s[2],n),M:kr(s[3],n),w:kr(s[4],n),d:kr(s[5],n),h:kr(s[6],n),m:kr(s[7],n),s:kr(s[8],n)}):null==a?a={}:"object"==typeof a&&("from"in a||"to"in a)&&(i=Ar(Kn(a.from),Kn(a.to)),(a={}).ms=i.milliseconds,a.M=i.months),r=new sr(a),or(t)&&o(t,"_locale")&&(r._locale=t._locale),or(t)&&o(t,"_isValid")&&(r._isValid=t._isValid),r}function kr(t,e){var n=t&&parseFloat(t.replace(",","."));return(isNaN(n)?0:n)*e}function Cr(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 Ar(t,e){var n;return t.isValid()&&e.isValid()?(e=dr(e,t),t.isBefore(e)?n=Cr(t,e):((n=Cr(e,t)).milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}function Pr(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,s=ur(e._days),o=ur(e._months);t.isValid()&&(i=null==i||i,o&&le(t,ft(t,"Month")+o*n),s&&dt(t,"Date",ft(t,"Date")+s*n),a&&t._d.setTime(t._d.valueOf()+a*n),i&&r.updateOffset(t,s||o))}Mr.fn=sr.prototype,Mr.invalid=ar;var Nr=Pr(1,"add"),Vr=Pr(-1,"subtract");function Ir(t){return"string"==typeof t||t instanceof String}function Br(t){return S(t)||c(t)||Ir(t)||h(t)||Lr(t)||Yr(t)||null==t}function Yr(t){var e,n,r=s(t)&&!u(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"];for(e=0;e<a.length;e+=1)n=a[e],i=i||o(t,n);return r&&i}function Lr(t){var e=a(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)&&!u(t),i=!1,a=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"];for(e=0;e<a.length;e+=1)n=a[e],i=i||o(t,n);return r&&i}function Fr(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 Ur(t,e){1===arguments.length&&(arguments[0]?Br(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||Kn(),i=dr(n,this).startOf("day"),a=r.calendarFormat(this,i)||"sameElse",s=e&&(k(e[a])?e[a].call(this,n):e[a]);return this.format(s||this.localeData().calendar(a,this,Kn(n)))}function Hr(){return new D(this)}function zr(t,e){var n=S(t)?t:Kn(t);return!(!this.isValid()||!n.isValid())&&("millisecond"===(e=rt(e)||"millisecond")?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(e).valueOf())}function qr(t,e){var n=S(t)?t:Kn(t);return!(!this.isValid()||!n.isValid())&&("millisecond"===(e=rt(e)||"millisecond")?this.valueOf()<n.valueOf():this.clone().endOf(e).valueOf()<n.valueOf())}function Wr(t,e,n,r){var i=S(t)?t:Kn(t),a=S(e)?e:Kn(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 Gr(t,e){var n,r=S(t)?t:Kn(t);return!(!this.isValid()||!r.isValid())&&("millisecond"===(e=rt(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 Kr(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=dr(t,this)).isValid())return NaN;switch(i=6e4*(r.utcOffset()-this.utcOffset()),e=rt(e)){case"year":a=Xr(this,r)/12;break;case"month":a=Xr(this,r);break;case"quarter":a=Xr(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:lt(a)}function Xr(t,e){if(t.date()<e.date())return-Xr(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 Jr(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function Qr(t){if(!this.isValid())return null;var e=!0!==t,n=e?this.clone().utc():this;return n.year()<0||n.year()>9999?H(n,e?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):k(Date.prototype.toISOString)?e?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",H(n,"Z")):H(n,e?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function ti(){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 ei(t){t||(t=this.isUtc()?r.defaultFormatUtc:r.defaultFormat);var e=H(this,t);return this.localeData().postformat(e)}function ni(t,e){return this.isValid()&&(S(t)&&t.isValid()||Kn(t).isValid())?Mr({to:this,from:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()}function ri(t){return this.from(Kn(),t)}function ii(t,e){return this.isValid()&&(S(t)&&t.isValid()||Kn(t).isValid())?Mr({from:this,to:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()}function ai(t){return this.to(Kn(),t)}function si(t){var e;return void 0===t?this._locale._abbr:(null!=(e=yn(t))&&(this._locale=e),this)}r.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",r.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var oi=x("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 ui(){return this._locale}var li=1e3,hi=60*li,ci=60*hi,fi=3506328*ci;function di(t,e){return(t%e+e)%e}function pi(t,e,n){return t<100&&t>=0?new Date(t+400,e,n)-fi:new Date(t,e,n).valueOf()}function mi(t,e,n){return t<100&&t>=0?Date.UTC(t+400,e,n)-fi:Date.UTC(t,e,n)}function gi(t){var e,n;if(void 0===(t=rt(t))||"millisecond"===t||!this.isValid())return this;switch(n=this._isUTC?mi:pi,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-=di(e+(this._isUTC?0:this.utcOffset()*hi),ci);break;case"minute":e=this._d.valueOf(),e-=di(e,hi);break;case"second":e=this._d.valueOf(),e-=di(e,li)}return this._d.setTime(e),r.updateOffset(this,!0),this}function vi(t){var e,n;if(void 0===(t=rt(t))||"millisecond"===t||!this.isValid())return this;switch(n=this._isUTC?mi:pi,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+=ci-di(e+(this._isUTC?0:this.utcOffset()*hi),ci)-1;break;case"minute":e=this._d.valueOf(),e+=hi-di(e,hi)-1;break;case"second":e=this._d.valueOf(),e+=li-di(e,li)-1}return this._d.setTime(e),r.updateOffset(this,!0),this}function yi(){return this._d.valueOf()-6e4*(this._offset||0)}function bi(){return Math.floor(this.valueOf()/1e3)}function _i(){return new Date(this.valueOf())}function wi(){var t=this;return[t.year(),t.month(),t.date(),t.hour(),t.minute(),t.second(),t.millisecond()]}function Di(){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 Si(){return this.isValid()?this.toISOString():null}function Ti(){return v(this)}function xi(){return d({},g(this))}function Ei(){return g(this).overflow}function Oi(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}function Mi(t,e){var n,i,a,s=this._eras||yn("en")._eras;for(n=0,i=s.length;n<i;++n)switch("string"==typeof s[n].since&&(a=r(s[n].since).startOf("day"),s[n].since=a.valueOf()),typeof s[n].until){case"undefined":s[n].until=1/0;break;case"string":a=r(s[n].until).startOf("day").valueOf(),s[n].until=a.valueOf()}return s}function ki(t,e,n){var r,i,a,s,o,u=this.eras();for(t=t.toUpperCase(),r=0,i=u.length;r<i;++r)if(a=u[r].name.toUpperCase(),s=u[r].abbr.toUpperCase(),o=u[r].narrow.toUpperCase(),n)switch(e){case"N":case"NN":case"NNN":if(s===t)return u[r];break;case"NNNN":if(a===t)return u[r];break;case"NNNNN":if(o===t)return u[r]}else if([a,s,o].indexOf(t)>=0)return u[r]}function Ci(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 Ai(){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 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].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,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 Vi(t){return o(this,"_erasNameRegex")||Ui.call(this),t?this._erasNameRegex:this._erasRegex}function Ii(t){return o(this,"_erasAbbrRegex")||Ui.call(this),t?this._erasAbbrRegex:this._erasRegex}function Bi(t){return o(this,"_erasNarrowRegex")||Ui.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 Fi(t,e){return e._eraYearOrdinalRegex||Mt}function Ui(){var t,e,n=[],r=[],i=[],a=[],s=this.eras();for(t=0,e=s.length;t<e;++t)r.push(Bt(s[t].name)),n.push(Bt(s[t].abbr)),i.push(Bt(s[t].narrow)),a.push(Bt(s[t].name)),a.push(Bt(s[t].abbr)),a.push(Bt(s[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 Hi(t,e){j(0,[t,t.length],0,e)}function zi(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 Wi(){return Se(this.year(),1,4)}function Gi(){return Se(this.isoWeekYear(),1,4)}function Zi(){var t=this.localeData()._week;return Se(this.year(),t.dow,t.doy)}function Ki(){var t=this.localeData()._week;return Se(this.weekYear(),t.dow,t.doy)}function $i(t,e,n,r,i){var a;return null==t?De(this,r,i).year:(e>(a=Se(t,r,i))&&(e=a),Xi.call(this,t,e,n,r,i))}function Xi(t,e,n,r,i){var a=we(t,e,n,r,i),s=be(a.year,0,a.dayOfYear);return this.year(s.getUTCFullYear()),this.month(s.getUTCMonth()),this.date(s.getUTCDate()),this}function Ji(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?g(n).era=i:g(n).invalidEra=t})),Nt("y",Mt),Nt("yy",Mt),Nt("yyy",Mt),Nt("yyyy",Mt),Nt("yo",Fi),Lt(["y","yy","yyy","yyyy"],Ht),Lt(["yo"],(function(t,e,n,r){var i;n._locale._eraYearOrdinalRegex&&(i=t.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?e[Ht]=n._locale.eraYearOrdinalParse(t,i):e[Ht]=parseInt(t,10)})),j(0,["gg",2],0,(function(){return this.weekYear()%100})),j(0,["GG",2],0,(function(){return this.isoWeekYear()%100})),Hi("gggg","weekYear"),Hi("ggggg","weekYear"),Hi("GGGG","isoWeekYear"),Hi("GGGGG","isoWeekYear"),nt("weekYear","gg"),nt("isoWeekYear","GG"),st("weekYear",1),st("isoWeekYear",1),Nt("G",kt),Nt("g",kt),Nt("GG",Dt,yt),Nt("gg",Dt,yt),Nt("GGGG",Et,_t),Nt("gggg",Et,_t),Nt("GGGGG",Ot,wt),Nt("ggggg",Ot,wt),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"),nt("quarter","Q"),st("quarter",7),Nt("Q",vt),Lt("Q",(function(t,e){e[zt]=3*(ht(t)-1)})),j("D",["DD",2],"Do","date"),nt("date","D"),st("date",9),Nt("D",Dt),Nt("DD",Dt,yt),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(Dt)[0])}));var Qi=ct("Date",!0);function ta(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"),nt("dayOfYear","DDD"),st("dayOfYear",4),Nt("DDD",xt),Nt("DDDD",bt),Lt(["DDD","DDDD"],(function(t,e,n){n._dayOfYear=ht(t)})),j("m",["mm",2],0,"minute"),nt("minute","m"),st("minute",14),Nt("m",Dt),Nt("mm",Dt,yt),Lt(["m","mm"],Gt);var ea=ct("Minutes",!1);j("s",["ss",2],0,"second"),nt("second","s"),st("second",15),Nt("s",Dt),Nt("ss",Dt,yt),Lt(["s","ss"],Zt);var na,ra,ia=ct("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()})),nt("millisecond","ms"),st("millisecond",16),Nt("S",xt,vt),Nt("SS",xt,yt),Nt("SSS",xt,bt),na="SSSS";na.length<=9;na+="S")Nt(na,Mt);function aa(t,e){e[Kt]=ht(1e3*("0."+t))}for(na="S";na.length<=9;na+="S")Lt(na,aa);function sa(){return this._isUTC?"UTC":""}function oa(){return this._isUTC?"Coordinated Universal Time":""}ra=ct("Milliseconds",!1),j("z",0,0,"zoneAbbr"),j("zz",0,0,"zoneName");var ua=D.prototype;function la(t){return Kn(1e3*t)}function ha(){return Kn.apply(null,arguments).parseZone()}function ca(t){return t}ua.add=Nr,ua.calendar=Ur,ua.clone=Hr,ua.diff=$r,ua.endOf=vi,ua.format=ei,ua.from=ni,ua.fromNow=ri,ua.to=ii,ua.toNow=ai,ua.get=pt,ua.invalidAt=Ei,ua.isAfter=zr,ua.isBefore=qr,ua.isBetween=Wr,ua.isSame=Gr,ua.isSameOrAfter=Zr,ua.isSameOrBefore=Kr,ua.isValid=Ti,ua.lang=oi,ua.locale=si,ua.localeData=ui,ua.max=Xn,ua.min=$n,ua.parsingFlags=xi,ua.set=mt,ua.startOf=gi,ua.subtract=Vr,ua.toArray=wi,ua.toObject=Di,ua.toDate=_i,ua.toISOString=Qr,ua.inspect=ti,"undefined"!=typeof Symbol&&null!=Symbol.for&&(ua[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),ua.toJSON=Si,ua.toString=Jr,ua.unix=bi,ua.valueOf=yi,ua.creationData=Oi,ua.eraName=Ai,ua.eraNarrow=Pi,ua.eraAbbr=Ri,ua.eraYear=Ni,ua.year=ge,ua.isLeapYear=ve,ua.weekYear=zi,ua.isoWeekYear=qi,ua.quarter=ua.quarters=Ji,ua.month=he,ua.daysInMonth=ce,ua.week=ua.weeks=Me,ua.isoWeek=ua.isoWeeks=ke,ua.weeksInYear=Zi,ua.weeksInWeekYear=Ki,ua.isoWeeksInYear=Wi,ua.isoWeeksInISOWeekYear=Gi,ua.date=Qi,ua.day=ua.days=qe,ua.weekday=We,ua.isoWeekday=Ge,ua.dayOfYear=ta,ua.hour=ua.hours=an,ua.minute=ua.minutes=ea,ua.second=ua.seconds=ia,ua.millisecond=ua.milliseconds=ra,ua.utcOffset=mr,ua.utc=vr,ua.local=yr,ua.parseZone=br,ua.hasAlignedHourOffset=_r,ua.isDST=wr,ua.isLocal=Sr,ua.isUtcOffset=Tr,ua.isUtc=xr,ua.isUTC=xr,ua.zoneAbbr=sa,ua.zoneName=oa,ua.dates=x("dates accessor is deprecated. Use date instead.",Qi),ua.months=x("months accessor is deprecated. Use month instead",he),ua.years=x("years accessor is deprecated. Use year instead",ge),ua.zone=x("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",gr),ua.isDSTShifted=x("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",Dr);var fa=P.prototype;function da(t,e,n,r){var i=yn(),a=p().set(r,e);return i[n](a,t)}function pa(t,e,n){if(h(t)&&(e=t,t=void 0),t=t||"",null!=e)return da(t,e,n,"month");var r,i=[];for(r=0;r<12;r++)i[r]=da(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=yn(),s=t?a._week.dow:0,o=[];if(null!=n)return da(e,(n+s)%7,r,"day");for(i=0;i<7;i++)o[i]=da(e,(i+s)%7,r,"day");return o}function ga(t,e){return pa(t,e,"months")}function va(t,e){return pa(t,e,"monthsShort")}function ya(t,e,n){return ma(t,e,n,"weekdays")}function ba(t,e,n){return ma(t,e,n,"weekdaysShort")}function _a(t,e,n){return ma(t,e,n,"weekdaysMin")}fa.calendar=N,fa.longDateFormat=W,fa.invalidDate=Z,fa.ordinal=X,fa.preparse=ca,fa.postformat=ca,fa.relativeTime=Q,fa.pastFuture=tt,fa.set=C,fa.eras=Mi,fa.erasParse=ki,fa.erasConvertYear=Ci,fa.erasAbbrRegex=Ii,fa.erasNameRegex=Vi,fa.erasNarrowRegex=Bi,fa.months=ae,fa.monthsShort=se,fa.monthsParse=ue,fa.monthsRegex=de,fa.monthsShortRegex=fe,fa.week=Te,fa.firstDayOfYear=Oe,fa.firstDayOfWeek=Ee,fa.weekdays=Le,fa.weekdaysMin=Fe,fa.weekdaysShort=je,fa.weekdaysParse=He,fa.weekdaysRegex=Ze,fa.weekdaysShortRegex=Ke,fa.weekdaysMinRegex=$e,fa.isPM=nn,fa.meridiem=sn,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=x("moment.lang is deprecated. Use moment.locale instead.",mn),r.langData=x("moment.langData is deprecated. Use moment.localeData instead.",yn);var wa=Math.abs;function Da(){var t=this._data;return this._milliseconds=wa(this._milliseconds),this._days=wa(this._days),this._months=wa(this._months),t.milliseconds=wa(t.milliseconds),t.seconds=wa(t.seconds),t.minutes=wa(t.minutes),t.hours=wa(t.hours),t.months=wa(t.months),t.years=wa(t.years),this}function Sa(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 Sa(this,t,e,1)}function xa(t,e){return Sa(this,t,e,-1)}function Ea(t){return t<0?Math.floor(t):Math.ceil(t)}function Oa(){var t,e,n,r,i,a=this._milliseconds,s=this._days,o=this._months,u=this._data;return a>=0&&s>=0&&o>=0||a<=0&&s<=0&&o<=0||(a+=864e5*Ea(ka(o)+s),s=0,o=0),u.milliseconds=a%1e3,t=lt(a/1e3),u.seconds=t%60,e=lt(t/60),u.minutes=e%60,n=lt(e/60),u.hours=n%24,s+=lt(n/24),o+=i=lt(Ma(s)),s-=Ea(ka(i)),r=lt(o/12),o%=12,u.days=s,u.months=o,u.years=r,this}function Ma(t){return 4800*t/146097}function ka(t){return 146097*t/4800}function Ca(t){if(!this.isValid())return NaN;var e,n,r=this._milliseconds;if("month"===(t=rt(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(ka(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 Aa(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*ht(this._months/12):NaN}function Pa(t){return function(){return this.as(t)}}var Ra=Pa("ms"),Na=Pa("s"),Va=Pa("m"),Ia=Pa("h"),Ba=Pa("d"),Ya=Pa("w"),La=Pa("M"),ja=Pa("Q"),Fa=Pa("y");function Ua(){return Mr(this)}function Ha(t){return t=rt(t),this.isValid()?this[t+"s"]():NaN}function za(t){return function(){return this.isValid()?this._data[t]:NaN}}var qa=za("milliseconds"),Wa=za("seconds"),Ga=za("minutes"),Za=za("hours"),Ka=za("days"),$a=za("months"),Xa=za("years");function Ja(){return lt(this.days()/7)}var Qa=Math.round,ts={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function es(t,e,n,r,i){return i.relativeTime(e||1,!!n,t,r)}function ns(t,e,n,r){var i=Mr(t).abs(),a=Qa(i.as("s")),s=Qa(i.as("m")),o=Qa(i.as("h")),u=Qa(i.as("d")),l=Qa(i.as("M")),h=Qa(i.as("w")),c=Qa(i.as("y")),f=a<=n.ss&&["s",a]||a<n.s&&["ss",a]||s<=1&&["m"]||s<n.m&&["mm",s]||o<=1&&["h"]||o<n.h&&["hh",o]||u<=1&&["d"]||u<n.d&&["dd",u];return null!=n.w&&(f=f||h<=1&&["w"]||h<n.w&&["ww",h]),(f=f||l<=1&&["M"]||l<n.M&&["MM",l]||c<=1&&["y"]||["yy",c])[2]=e,f[3]=+t>0,f[4]=r,es.apply(null,f)}function rs(t){return void 0===t?Qa:"function"==typeof t&&(Qa=t,!0)}function is(t,e){return void 0!==ts[t]&&(void 0===e?ts[t]:(ts[t]=e,"s"===t&&(ts.ss=e-1),!0))}function as(t,e){if(!this.isValid())return this.localeData().invalidDate();var n,r,i=!1,a=ts;return"object"==typeof t&&(e=t,t=!1),"boolean"==typeof t&&(i=t),"object"==typeof e&&(a=Object.assign({},ts,e),null!=e.s&&null==e.ss&&(a.ss=e.s-1)),r=ns(this,!i,a,n=this.localeData()),i&&(r=n.pastFuture(+this,r)),n.postformat(r)}var ss=Math.abs;function os(t){return(t>0)-(t<0)||+t}function us(){if(!this.isValid())return this.localeData().invalidDate();var t,e,n,r,i,a,s,o,u=ss(this._milliseconds)/1e3,l=ss(this._days),h=ss(this._months),c=this.asSeconds();return c?(t=lt(u/60),e=lt(t/60),u%=60,t%=60,n=lt(h/12),h%=12,r=u?u.toFixed(3).replace(/\.?0+$/,""):"",i=c<0?"-":"",a=os(this._months)!==os(c)?"-":"",s=os(this._days)!==os(c)?"-":"",o=os(this._milliseconds)!==os(c)?"-":"",i+"P"+(n?a+n+"Y":"")+(h?a+h+"M":"")+(l?s+l+"D":"")+(e||t||u?"T":"")+(e?o+e+"H":"")+(t?o+t+"M":"")+(u?o+r+"S":"")):"P0D"}var ls=sr.prototype;return ls.isValid=ir,ls.abs=Da,ls.add=Ta,ls.subtract=xa,ls.as=Ca,ls.asMilliseconds=Ra,ls.asSeconds=Na,ls.asMinutes=Va,ls.asHours=Ia,ls.asDays=Ba,ls.asWeeks=Ya,ls.asMonths=La,ls.asQuarters=ja,ls.asYears=Fa,ls.valueOf=Aa,ls._bubble=Oa,ls.clone=Ua,ls.get=Ha,ls.milliseconds=qa,ls.seconds=Wa,ls.minutes=Ga,ls.hours=Za,ls.days=Ka,ls.weeks=Ja,ls.months=$a,ls.years=Xa,ls.humanize=as,ls.toISOString=us,ls.toString=us,ls.toJSON=us,ls.locale=si,ls.localeData=ui,ls.toIsoString=x("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",us),ls.lang=oi,j("X",0,0,"unix"),j("x",0,0,"valueOf"),Nt("x",kt),Nt("X",Pt),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))})),
17
17
  //! moment.js
18
- r.version="2.29.1",i(Kn),r.fn=ua,r.min=Qn,r.max=tr,r.now=er,r.utc=p,r.unix=ha,r.months=ga,r.isDate=c,r.locale=mn,r.invalid=y,r.duration=Mr,r.isMoment=S,r.weekdays=ya,r.parseZone=la,r.localeData=yn,r.isDuration=or,r.monthsShort=va,r.weekdaysMin=_a,r.defineLocale=gn,r.updateLocale=vn,r.locales=bn,r.weekdaysShort=ba,r.normalizeUnits=rt,r.relativeTimeRounding=rs,r.relativeTimeThreshold=is,r.calendarFormat=Fr,r.prototype=ua,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}()})),qe=He((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(){o(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 i(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 a="object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof Fe&&Fe.global===Fe?Fe:void 0,s=a.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),o=a.saveAs||("object"!=typeof window||window!==a?function(){}:"download"in HTMLAnchorElement.prototype&&!s?function(t,e,s){var o=a.URL||a.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?i(u):r(u.href)?n(t,e,s):i(u,u.target="_blank")):(u.href=o.createObjectURL(t),setTimeout((function(){o.revokeObjectURL(u.href)}),4e4),setTimeout((function(){i(u)}),0))}:"msSaveOrOpenBlob"in navigator?function(t,a,s){if(a=a||t.name||"download","string"!=typeof t)navigator.msSaveOrOpenBlob(e(t,s),a);else if(r(t))n(t,a,s);else{var o=document.createElement("a");o.href=t,o.target="_blank",setTimeout((function(){i(o)}))}}: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 o="application/octet-stream"===t.type,u=/constructor/i.test(a.HTMLElement)||a.safari,h=/CriOS\/[\d]+/.test(navigator.userAgent);if((h||o&&u||s)&&"undefined"!=typeof FileReader){var l=new FileReader;l.onloadend=function(){var t=l.result;t=h?t:t.replace(/^data:[^;]*;/,"data:attachment/file;"),i?i.location.href=t:location=t,i=null},l.readAsDataURL(t)}else{var c=a.URL||a.webkitURL,f=c.createObjectURL(t);i?i.location=f:location.href=f,i=null,setTimeout((function(){c.revokeObjectURL(f)}),4e4)}});a.saveAs=o.saveAs=o,t.exports=o}()})),We=function(e){if(0===e.length)return[];var n=function(e){for(var i,a,s,o=0;o<e.length;o++)e[o].tmpData&&(e[o]=Object.assign({},(a=e[o],s=void 0,delete(s=t.cloneDeep(a)).comData,r({},s)))),e[o]&&e[o].children&&(null===(i=e[o])||void 0===i?void 0:i.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},Ge=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,s=n.theme,o=void 0===s?null:s,u=n.globalVars,h=void 0===u?null:u,l=n.shareVariableTree,c=void 0===l?null:l,f=n.plant,d=void 0===f?null:f,p=n.list,m=void 0===p?[]:p,g=n.path,v=void 0===g?"":g;n.name;var y=n.resource,b=void 0===y?{jspaths:[],csspaths:[],otherpaths:[]}:y,_=n.globalEvents,w=void 0===_?[]:_;r.push({path:v||i,theme:o,name:a,resource:b,globalVars:h,globalEvents:w,shareVariableTree:c,plant:d,list:We(m)})}));else{var i=n.theme,a=void 0===i?null:i,s=n.globalVars,o=void 0===s?null:s,u=n.shareVariableTree,h=void 0===u?null:u,l=n.plant,c=void 0===l?null:l,f=n.list,d=void 0===f?[]:f,p=n.resource,m=void 0===p?{jspaths:[],csspaths:[],otherpaths:[]}:p,g=n.globalEvents,v=void 0===g?[]:g;r.push({resource:m,theme:a,globalVars:o,globalEvents:v,shareVariableTree:h,plant:c,list:We(d)})}return r};function Ze(t,e){throw new Error(t+":Expected HTMLElement, got "+e)}var Ke=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,s=t.horizontal,o=t.vertical,u=document.querySelector(n);u||Ze("wrap",u);var h=u.clientWidth,l=u.clientHeight,c=document.querySelector(r);c||Ze("view",c),c.style.position="absolute",c.style.width=i+"px",c.style.height=a+"px";var f,d,p,m,g=Math.min(h/i,l/a);if(e){switch(c.style.transform="scale("+g+")",s){case"center":f=(h-i)/2+"px";break;case"left":f=(g-1)/2*i+"px";break;case"right":p=(g-1)/2*i+"px"}switch(o){case"center":d=(l-a)/2+"px";break;case"top":d=(g-1)/2*a+"px";break;case"bottom":m=(g-1)/2*a+"px"}}else c.style.transform="scale('"+h/i+", "+l/a+"')",f=(h-i)/2+"px",d=(l-a)/2+"px";d?c.style.top=d:m&&(c.style.bottom=m),f?c.style.left=f:p&&(c.style.right=p)},t._defaultOption={isEqualScale:!0,designWidth:1920,designHeight:1080,wrapSelector:"body",viewSelector:"#app",horizontal:"center",vertical:"center",isResize:!0},t}(),$e=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;this.size=i,this.type=r,this.initOptions(e,n,i),this.initSize(i),this.layout(),this.scale(),window.addEventListener("resize",this.reset.bind(this))}return e.prototype.reset=function(){this.initSize(this.size),this.layout(),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))},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(){var t=1,e=1;switch(this.type){case 0:t=Math.min(this.outSize.w/this.inSize.w,this.outSize.h/this.inSize.h),e=Math.min(this.outSize.w/this.inSize.w,this.outSize.h/this.inSize.h);break;case 1:e=t=this.outSize.w/this.inSize.w;break;case 2:t=e=this.outSize.h/this.inSize.h;break;case 3:t=this.outSize.w/this.inSize.w,e=this.outSize.h/this.inSize.h}this.target.style.transform="scale("+t+","+e+")"},e.prototype.resize=function(){},e}(),Xe=function(t,e,n,r){if(t){var i=null==t?void 0:t.type,a=t[i],s=null==t?void 0:t.converse;if(s&&s.use&&s.data.length&&s.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){Je(r,t,n.cid)}))})),"api"===i){var o=a.url.match(/(@)[\w]*/gm);if(o)for(var u=o.map((function(t){return t.replace("@","")})),h=function(t){var i=u[t];if(!i||!e||e.findIndex((function(t){return t.mapField===i}))<0)return"continue";Je(r,i,n.cid)},l=0;l<u.length;l++)h(l)}}},Je=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)},Qe=He((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;o.impl.options.cacheBust&&(t+=(/\?/.test(t)?"&":"?")+(new Date).getTime());return new Promise((function(n){var r,i=new XMLHttpRequest;if(i.onreadystatechange=s,i.ontimeout=u,i.responseType="blob",i.timeout=e,i.open("GET",t,!0),i.send(),o.impl.options.imagePlaceholder){var a=o.impl.options.imagePlaceholder.split(/,/);a&&a[1]&&(r=a[1])}function s(){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):h("cannot fetch resource: "+t+", status: "+i.status)}function u(){r?n(r):h("timeout of "+e+"ms occured while fetching resource: "+t)}function h(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 s()?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 s(){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}))}))}}}}(),s={imagePlaceholder:void 0,cacheBust:!1},o={toSvg:u,toPng:function(t,e){return h(t,e||{}).then((function(t){return t.toDataURL()}))},toJpeg:function(t,e){return h(t,e=e||{}).then((function(t){return t.toDataURL("image/jpeg",e.quality||1)}))},toBlob:function(t,e){return h(t,e||{}).then(n.canvasToBlob)},toPixelData:function(t,e){return h(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?o.impl.options.imagePlaceholder=s.imagePlaceholder:o.impl.options.imagePlaceholder=t.imagePlaceholder;void 0===t.cacheBust?o.impl.options.cacheBust=s.cacheBust:o.impl.options.cacheBust=t.cacheBust}(e=e||{}),Promise.resolve(t).then((function(t){return l(t,e.filter,!0)})).then(c).then(f).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 h(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 l(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 l(e,n)})).then((function(e){e&&t.appendChild(e)}))})),r}}(t,r,e)})).then((function(e){return function(t,e){return e instanceof Element?Promise.resolve().then(r).then(i).then(a).then(s).then((function(){return e})):e;function r(){function r(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)}r(window.getComputedStyle(t),e.style)}function i(){function r(r){var i=window.getComputedStyle(t,r),a=i.getPropertyValue("content");if(""!==a&&"none"!==a){var s=n.uid();e.className=e.className+" "+s;var o=document.createElement("style");o.appendChild(u(s,r,i)),e.appendChild(o)}function u(t,e,r){var i="."+t+":"+e,a=r.cssText?s(r):o(r);return document.createTextNode(i+"{"+a+"}");function s(t){var e=t.getPropertyValue("content");return t.cssText+" content: "+e+";"}function o(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){r(t)}))}function a(){t instanceof HTMLTextAreaElement&&(e.innerHTML=t.value),t instanceof HTMLInputElement&&e.setAttribute("value",t.value)}function s(){e instanceof SVGElement&&(e.setAttribute("xmlns","http://www.w3.org/2000/svg"),e instanceof SVGRectElement&&["width","height"].forEach((function(t){var n=e.getAttribute(t);n&&e.style.setProperty(t,n)})))}}(t,e)})):Promise.resolve()}function c(t){return i.resolveAll().then((function(e){var n=document.createElement("style");return t.appendChild(n),n.appendChild(document.createTextNode(e)),t}))}function f(t){return a.inlineAll(t).then((function(){return t}))}t.exports=o}()})),tn=function(t){if(!t)return!1;return 1==new RegExp(/http(s)?:\/\/([\w-]+\.)+[\w-]+(\/[\w- .\/?%&=]*)?/).test(t)},en=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,"+window.btoa(e)},nn=function(t,e){void 0===e&&(e="screenshot.png");try{for(var n=t.split(","),r=n[0].match(/:(.*?);/)[1],i=atob(n[1]),a=i.length,s=new Uint8Array(a);a--;)s[a]=i.charCodeAt(a);return new File([s],e,{type:r})}catch(t){console.error("dataURLtoFile:数据转换错误 : "+t)}},rn=function(t,e){return i(void 0,void 0,void 0,(function(){var n;return a(this,(function(r){switch(r.label){case 0:return r.trys.push([0,11,,12]),console.log(t,"----"),"File"!=e||"string"!=typeof t?[3,2]:[4,nn(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.png")];case 4:return"Base64"!=e||"string"!=typeof t?[3,6]:[4,t];case 6:return"Base64"!=e||"[object ArrayBuffer]"!=t.toString()?[3,8]:[4,en(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]}}))}))},an=function(t,n,r,s){return i(void 0,void 0,void 0,(function(){return a(this,(function(i){switch(i.label){case 0:return i.trys.push([0,2,,3]),[4,e({url:t,method:"GET",responseType:"arraybuffer",params:{url:n,dom:r,quality:s}})];case 1:return[2,i.sent()];case 2:return i.sent(),console.warn("请求截图服务器发生错误,请检查地址及参数是否正确!",{url:t,path:n,dom:r,quality:s}),[2,null];case 3:return[2]}}))}))},sn=function(t,e){return i(void 0,void 0,void 0,(function(){var n,r;return a(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,Qe.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]}}))}))},on=function(t){return""+(t>15?"":0)+t.toString(16)},un=function(t){var e=t.r,n=t.g,r=t.b,i=t.a,a=void 0===i?1:i;return"#"+on(e)+on(n)+on(r)+(1===a?"":on(Math.floor(255*a)))},hn=function(t){return"rgb("+t.r+","+t.g+","+t.b+")"},ln=function(t,e){void 0===e&&(e=1e4);var n=t.r,r=t.g,i=t.b,a=t.a,s=void 0===a?1:a;return"rgba("+n+","+r+","+i+","+Math.floor(s*e)/e+")"},cn=function(t){var e=t.slice(1),n=1;3===e.length&&(e=""+e[0]+e[0]+e[1]+e[1]+e[2]+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}},fn=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])}},dn=function(t){if(t.startsWith("#"))return cn(t);if(t.startsWith("rgb"))return fn(t);if("transparent"===t)return cn("#00000000");throw new Error("color string error: "+t)},pn=Object.freeze({__proto__:null,Watermark:class{constructor(t={}){Ne(this,"options"),Ne(this,"container"),Ne(this,"watermarkContent"),Ne(this,"watermarkDom"),Ne(this,"style"),Ne(this,"watermarkTag"),Ne(this,"shadowRoot"),Ne(this,"mutationObserver"),Ne(this,"_isAgainRender",(t=>{if("attributes"===t.type){if("data-watermark-tag"===t.attributeName)return!0;if(this.watermarkTag===this._getNodeRandomId(t.target))return!0}return!(!t.removedNodes.length||this.watermarkTag!==this._getNodeRandomId(t.removedNodes[0]))})),Ne(this,"_getNodeRandomId",(t=>{var e,n;return null==(e=null==t?void 0:t.dataset)?void 0:e[(n="data-watermark-tag",n.split("-").slice(1).reduce(((t,e,n)=>0===n?e:`${t}${e[0].toUpperCase()+e.slice(1)}`)))]})),Ne(this,"_destroyMutationObserver",(()=>{this.mutationObserver&&(this.mutationObserver.takeRecords(),this.mutationObserver.disconnect(),this.mutationObserver=null)})),Ne(this,"_getWatermarkDom",(t=>Ve(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:s,height:o,rotate:u,opacity:h,fontSize:l,fontStyle:c,fontVariant:f,fontWeight:d,fontFamily:p,fontColor:m,textAlign:g,textBaseline:v,image:y,blindText:b,blindOpacity:_}=t;return new Promise(((t,w)=>{const D=document.createElement("canvas"),S=D.getContext("2d"),T=1*(Number(n)+Number(s)),x=1*(Number(r)+Number(o)),E=Number(a)||Number(n)/2,O=Number(i)||Number(r)/2;if(D.setAttribute("width",`${T}px`),D.setAttribute("height",`${x}px`),S){const n=1*s,r=1*o;if(S.translate(1*E,1*O),S.rotate(Math.PI/180*Number(u)),b&&(S.globalAlpha=_,S.font="14px normal",S.fillText(b,0,0)),S.globalAlpha=h,y){const e=new Image;return e.crossOrigin="anonymous",e.referrerPolicy="no-referrer",e.src=y,void(e.onload=()=>{S.drawImage(e,0,0,n,r),t({url:S.canvas.toDataURL(),width:T,height:x})})}const i=Array.isArray(e)?e:[e],a=i.map((t=>S.measureText(t).width)),c=Math.max(...a),f=1*Number(l);S.textAlign=g,S.textBaseline=v,S.fillStyle=m,S.font=M(`${f}px`),c>s&&(S.font=M(f/2+"px"));const d=f+5;let p=(r-(l*i.length+5*(i.length-1)))/2;p=p<0?0:p;for(let t=0;t<i.length;t++)S.fillText(i[t]||"",n/2,p+d*t);t({url:S.canvas.toDataURL(),width:T,height:x})}function M(t){return`${c} ${f} ${d} ${t} ${p}`}return w()}))}(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",Ye(this.style))}return this.watermarkDom.setAttribute("data-watermark-tag",this.watermarkTag),this.watermarkDom})))),Ne(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({},Ie,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=Le("watermark"),this.mutationObserver=null,this._render()}update(t={}){this.options=Re(Re({},this.options),t),this.style.zIndex=this.options.zIndex,this._render()}show(){this.watermarkDom&&(this.style.display="block",this.watermarkDom.setAttribute("style",Ye(this.style)))}hide(){this.watermarkDom&&(this.style.display="none",this.watermarkDom.setAttribute("style",Ye(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 Ve(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("data-watermark-tag",e);const a=Re({position:"relative"},n);return r||delete a.position,i.setAttribute("style",Ye(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",Ye({pointerEvents:"none"})),e.setAttribute("data-watermark-tag",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),je&&this.options.monitor&&(this.mutationObserver=new je((t=>{t.forEach((t=>{if(this._isAgainRender(t))return this.destroy(),void this._render()}))})),this.mutationObserver.observe(this.container,Be),this.shadowRoot&&this.mutationObserver.observe(this.shadowRoot,Be))}))}},generateComponentList:We,generateCaseDataJson:Ge,generatePageData:function(t){var e={},n=e.theme,r=void 0===n?null:n,i=e.globalVars,a=void 0===i?null:i,s=e.shareVariableTree,o=void 0===s?null:s,u=e.plant,h=void 0===u?null:u,l=e.list,c=void 0===l?[]:l,f=e.undos,d=void 0===f?[]:f,p=e.undoRedoPointer,m=void 0===p?-1:p,g=e.globalEvents,v=void 0===g?[]:g;return t&&(r=t.theme,h=t.plant),{theme:r,globalVars:a,globalEvents:v,shareVariableTree:o,plant:h,undos:d,undoRedoPointer:m,list:We(c)}},exportJson:function(t){var e=t.caseName,n=t.caseImg,r=t.caseRemark,i=t.details,a={caseClientType:t.caseClientType,caseName:e,caseImg:n||"",caseRemark:r||"",createTime:ze().format("YYYY-MM-DD , h:mm:ss"),caseData:Ge(i)},s=new Blob([JSON.stringify(a)],{type:""});qe.saveAs(s,e+".json")},generateJson:function(t){var e=t.caseName,n=t.caseData;return t.plangInfoForPsd,{caseName:e,createTime:ze().format("YYYY-MM-DD , h:mm:ss"),caseData:Ge(n)}},SizeAdaption:Ke,Scale:$e,loadScript:qt,removeTag:Zt,loadTag:Gt,getDataForEvaluator:l,recursion:Dt,encrypt:Lt,decrypt:function(t){var e=new pt;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)},setActions:Yt,genID:Vt,arraySwap:gt,arraySwapDeep:vt,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:Nt,selectdArea:At,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:xt,resetPositionForGroup:function(t,e){var n=e.map((function(t){return t.cid}));e.forEach((function(e){e.pid&&Ot(e,t)}));var r=At(n,e);return xt(r,e),{left:r.left,top:r.top,width:r.width,height:r.height}},setPositionForWorld:Ot,breakUp:Et,findItem:_t,findItemDeep:yt,findParentDeep:bt,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 s=0;s<(null==a?void 0:a.children.length);s++){if(r+=1,(null==a?void 0:a.children[s]).cid==e)return r}}return r},getLength:function(t){var e=0,n=function(t){for(var r=0;r<t.length;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 s=i[a][1];n(s)}}else if(t[r].isShow&&t[r].dynamicChildren instanceof Array)for(a=0;a<t[r].dynamicChildren.length;a++){var o=t[r].dynamicChildren[a];n(o[1])}}else t[r].isShow&&t[r].stateChildren?n(t[r].stateChildren):t[r].isShow&&e++};return n(t),e||!1},getPosition:Pt,updataAttribute:Tt,isPeer:wt,transformPosition:Mt,upDataGroup:Rt,upDataGroupChildren:function(e,n,r){var i=e.children,a=t.cloneDeep(n),s=t.cloneDeep(Pt(i)),o=a.left,u=a.top;a.width,a.height;var h=s.left,l=s.top,c=s.width,f=s.height,d={left:o+h,top:u+l,width:c,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-h,e.baseData.top<0?n.top=0:n.top=n.top-l,e.baseData=n})),e.children=i,d},resziePositionForGroup:function(e,n,r,i){var a=e.baseData.left,s=e.baseData.top,o=n.left,u=n.top,h=t.cloneDeep(e.children),l=r||"";if(o-a<0)for(var c=0;c<h.length;c++){(f=h[c]).cid!==l&&(f.baseData.left=f.baseData.left+(a-o))}if(u-s<0)for(c=0;c<h.length;c++){var f;(f=h[c]).cid!==l&&(f.baseData.top=f.baseData.top+(s-u))}e.children=h},genCopyName:It,resetID:St,getUrlParams:Bt,updataSizeDeep:mt,resizePosition:kt,resizeListPosition:function(t,e){var n=function(t,r){for(var i,a=0;a<t.length;a++){var s=t[a];if(s.pid!=r){var o=kt(e,s.cid),u=kt(e,s.pid);console.log(o,u),s.baseData.left=o.left-u.left,s.baseData.top=o.top-u.top}(null===(i=null==s?void 0:s.children)||void 0===i?void 0:i.length)&&n(s.children,s.cid)}};n(t,e)},getInteractive:function(e){try{var n={},r=[],i=[],a=t.cloneDeep(e);return Dt(a,(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)&&Yt({types:t.tmpData.actions.map((function(t){return t.eventType})),element:t,actions:r,events:i})})),Dt(a,(function(t){var e,i=null===(e=null==t?void 0:t.tmpData)||void 0===e?void 0:e.source;Xe(i,r,t,n)})),console.log({shareVariableTree:n,globalVars:r.filter((function(t){return t})),globalEvents:i.filter((function(t){return t}))}),{shareVariableTree:n,globalVars:r.filter((function(t){return t})),globalEvents:i.filter((function(t){return t}))}}catch(t){return console.error("error",t),{}}},getShareTree:function(t,e){try{var n={},r=[],i=[];return Dt(t,(function(t){var a,s,o,u=null===(a=null==t?void 0:t.tmpData)||void 0===a?void 0:a.source;(Xe(u,e,t,n),null===(o=null===(s=null==t?void 0:t.tmpData)||void 0===s?void 0:s.actions)||void 0===o?void 0:o.length)&&Yt({types:t.tmpData.actions.map((function(t){return t.eventType})),element:t,actions:r,events:i})})),n}catch(t){return console.error(t),{}}},screenshot:function(t){return i(void 0,void 0,void 0,(function(){var e,n,r,i,s,o,u,h;return a(this,(function(a){switch(a.label){case 0:return a.trys.push([0,11,,12]),e=t.dom,n=t.servePath,r=t.targetPath,i=t.quality,s=t.type,o=void 0,tn(n)&&tn(r)?[4,an(n,r,e,i||.5)]:[3,5];case 1:return(u=a.sent())&&200==u.status&&u.data?(o=u.data,[3,4]):[3,2];case 2:return console.warn("截取错误,请检查网络或服务地址配置是否正确,已转换为dom-to-img."),[4,sn(e,i||.5)];case 3:o=a.sent(),a.label=4;case 4:return[3,7];case 5:return console.warn("地址错误,请检查传入的地址是否争取,已转换为dom-to-img."),[4,sn(e,i||.5)];case 6:o=a.sent(),a.label=7;case 7:return o?[4,rn(o,s)]:[3,9];case 8:return[2,a.sent()];case 9:return[2,null];case 10:return[3,12];case 11:return h=a.sent(),console.error("截图发生错误:"+h),[2,null];case 12:return[2]}}))}))},toHex:on,toHexString:un,toRgbString:hn,toRgbaString:ln,parseHexColor:cn,parseRgbaColor:fn,parseColorString:dn,getColorInfo:function(t){var e=dn(t);return{hex:un(e),rgba:ln(e),rgb:hn(e),rgbaObj:e}},hexToRgba:function(t){var e=dn(t);return ln(e)},rgbaToHex:function(t){var e=dn(t);return un(e)}});function mn(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function gn(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}
18
+ r.version="2.29.1",i(Kn),r.fn=ua,r.min=Qn,r.max=tr,r.now=er,r.utc=p,r.unix=la,r.months=ga,r.isDate=c,r.locale=mn,r.invalid=y,r.duration=Mr,r.isMoment=S,r.weekdays=ya,r.parseZone=ha,r.localeData=yn,r.isDuration=or,r.monthsShort=va,r.weekdaysMin=_a,r.defineLocale=gn,r.updateLocale=vn,r.locales=bn,r.weekdaysShort=ba,r.normalizeUnits=rt,r.relativeTimeRounding=rs,r.relativeTimeThreshold=is,r.calendarFormat=Fr,r.prototype=ua,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}()})),Ge=qe((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(){o(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 i(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 a="object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof He&&He.global===He?He:void 0,s=a.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),o=a.saveAs||("object"!=typeof window||window!==a?function(){}:"download"in HTMLAnchorElement.prototype&&!s?function(t,e,s){var o=a.URL||a.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?i(u):r(u.href)?n(t,e,s):i(u,u.target="_blank")):(u.href=o.createObjectURL(t),setTimeout((function(){o.revokeObjectURL(u.href)}),4e4),setTimeout((function(){i(u)}),0))}:"msSaveOrOpenBlob"in navigator?function(t,a,s){if(a=a||t.name||"download","string"!=typeof t)navigator.msSaveOrOpenBlob(e(t,s),a);else if(r(t))n(t,a,s);else{var o=document.createElement("a");o.href=t,o.target="_blank",setTimeout((function(){i(o)}))}}: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 o="application/octet-stream"===t.type,u=/constructor/i.test(a.HTMLElement)||a.safari,l=/CriOS\/[\d]+/.test(navigator.userAgent);if((l||o&&u||s)&&"undefined"!=typeof FileReader){var h=new FileReader;h.onloadend=function(){var t=h.result;t=l?t:t.replace(/^data:[^;]*;/,"data:attachment/file;"),i?i.location.href=t:location=t,i=null},h.readAsDataURL(t)}else{var c=a.URL||a.webkitURL,f=c.createObjectURL(t);i?i.location=f:location.href=f,i=null,setTimeout((function(){c.revokeObjectURL(f)}),4e4)}});a.saveAs=o.saveAs=o,t.exports=o}()})),Ze=function(e){if(0===e.length)return[];var n=function(e){for(var i,a,s,o=0;o<e.length;o++)e[o].tmpData&&(e[o]=Object.assign({},(a=e[o],s=void 0,delete(s=t.cloneDeep(a)).comData,r({},s)))),e[o]&&e[o].children&&(null===(i=e[o])||void 0===i?void 0:i.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},Ke=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,s=n.theme,o=void 0===s?null:s,u=n.globalVars,l=void 0===u?null:u,h=n.shareVariableTree,c=void 0===h?null:h,f=n.plant,d=void 0===f?null:f,p=n.list,m=void 0===p?[]:p,g=n.path,v=void 0===g?"":g;n.name;var y=n.resource,b=void 0===y?{jspaths:[],csspaths:[],otherpaths:[]}:y,_=n.globalEvents,w=void 0===_?[]:_;r.push({path:v||i,theme:o,name:a,resource:b,globalVars:l,globalEvents:w,shareVariableTree:c,plant:d,list:Ze(m)})}));else{var i=n.theme,a=void 0===i?null:i,s=n.globalVars,o=void 0===s?null:s,u=n.shareVariableTree,l=void 0===u?null:u,h=n.plant,c=void 0===h?null:h,f=n.list,d=void 0===f?[]:f,p=n.resource,m=void 0===p?{jspaths:[],csspaths:[],otherpaths:[]}:p,g=n.globalEvents,v=void 0===g?[]:g;r.push({resource:m,theme:a,globalVars:o,globalEvents:v,shareVariableTree:l,plant:c,list:Ze(d)})}return r};function $e(t,e){throw new Error(t+":Expected HTMLElement, got "+e)}var Xe=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,s=t.horizontal,o=t.vertical,u=document.querySelector(n);u||$e("wrap",u);var l=u.clientWidth,h=u.clientHeight,c=document.querySelector(r);c||$e("view",c),c.style.position="absolute",c.style.width=i+"px",c.style.height=a+"px";var f,d,p,m,g=Math.min(l/i,h/a);if(e){switch(c.style.transform="scale("+g+")",s){case"center":f=(l-i)/2+"px";break;case"left":f=(g-1)/2*i+"px";break;case"right":p=(g-1)/2*i+"px"}switch(o){case"center":d=(h-a)/2+"px";break;case"top":d=(g-1)/2*a+"px";break;case"bottom":m=(g-1)/2*a+"px"}}else c.style.transform="scale('"+l/i+", "+h/a+"')",f=(l-i)/2+"px",d=(h-a)/2+"px";d?c.style.top=d:m&&(c.style.bottom=m),f?c.style.left=f:p&&(c.style.right=p)},t._defaultOption={isEqualScale:!0,designWidth:1920,designHeight:1080,wrapSelector:"body",viewSelector:"#app",horizontal:"center",vertical:"center",isResize:!0},t}(),Je=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;this.size=i,this.type=r,this.initOptions(e,n,i),this.initSize(i),this.layout(),this.scale(),window.addEventListener("resize",this.reset.bind(this))}return e.prototype.reset=function(){this.initSize(this.size),this.layout(),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))},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(){var t=1,e=1;switch(this.type){case 0:t=Math.min(this.outSize.w/this.inSize.w,this.outSize.h/this.inSize.h),e=Math.min(this.outSize.w/this.inSize.w,this.outSize.h/this.inSize.h);break;case 1:e=t=this.outSize.w/this.inSize.w;break;case 2:t=e=this.outSize.h/this.inSize.h;break;case 3:t=this.outSize.w/this.inSize.w,e=this.outSize.h/this.inSize.h}this.target.style.transform="scale("+t+","+e+")"},e.prototype.resize=function(){},e}(),Qe=function(t,e,n,r){if(t){var i=null==t?void 0:t.type,a=t[i],s=null==t?void 0:t.converse;if(s&&s.use&&s.data.length&&s.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){tn(r,t,n.cid)}))})),"api"===i){var o=a.url.match(/(@)[\w]*/gm);if(o)for(var u=o.map((function(t){return t.replace("@","")})),l=function(t){var i=u[t];if(!i||!e||e.findIndex((function(t){return t.mapField===i}))<0)return"continue";tn(r,i,n.cid)},h=0;h<u.length;h++)l(h)}}},tn=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)},en=qe((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;o.impl.options.cacheBust&&(t+=(/\?/.test(t)?"&":"?")+(new Date).getTime());return new Promise((function(n){var r,i=new XMLHttpRequest;if(i.onreadystatechange=s,i.ontimeout=u,i.responseType="blob",i.timeout=e,i.open("GET",t,!0),i.send(),o.impl.options.imagePlaceholder){var a=o.impl.options.imagePlaceholder.split(/,/);a&&a[1]&&(r=a[1])}function s(){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 s()?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 s(){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}))}))}}}}(),s={imagePlaceholder:void 0,cacheBust:!1},o={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?o.impl.options.imagePlaceholder=s.imagePlaceholder:o.impl.options.imagePlaceholder=t.imagePlaceholder;void 0===t.cacheBust?o.impl.options.cacheBust=s.cacheBust:o.impl.options.cacheBust=t.cacheBust}(e=e||{}),Promise.resolve(t).then((function(t){return h(t,e.filter,!0)})).then(c).then(f).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 h(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 h(e,n)})).then((function(e){e&&t.appendChild(e)}))})),r}}(t,r,e)})).then((function(e){return function(t,e){return e instanceof Element?Promise.resolve().then(r).then(i).then(a).then(s).then((function(){return e})):e;function r(){function r(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)}r(window.getComputedStyle(t),e.style)}function i(){function r(r){var i=window.getComputedStyle(t,r),a=i.getPropertyValue("content");if(""!==a&&"none"!==a){var s=n.uid();e.className=e.className+" "+s;var o=document.createElement("style");o.appendChild(u(s,r,i)),e.appendChild(o)}function u(t,e,r){var i="."+t+":"+e,a=r.cssText?s(r):o(r);return document.createTextNode(i+"{"+a+"}");function s(t){var e=t.getPropertyValue("content");return t.cssText+" content: "+e+";"}function o(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){r(t)}))}function a(){t instanceof HTMLTextAreaElement&&(e.innerHTML=t.value),t instanceof HTMLInputElement&&e.setAttribute("value",t.value)}function s(){e instanceof SVGElement&&(e.setAttribute("xmlns","http://www.w3.org/2000/svg"),e instanceof SVGRectElement&&["width","height"].forEach((function(t){var n=e.getAttribute(t);n&&e.style.setProperty(t,n)})))}}(t,e)})):Promise.resolve()}function c(t){return i.resolveAll().then((function(e){var n=document.createElement("style");return t.appendChild(n),n.appendChild(document.createTextNode(e)),t}))}function f(t){return a.inlineAll(t).then((function(){return t}))}t.exports=o}()})),nn=function(t){if(!t)return!1;return 1==new RegExp(/http(s)?:\/\/([\w-]+\.)+[\w-]+(\/[\w- .\/?%&=]*)?/).test(t)},rn=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,"+window.btoa(e)},an=function(t,e){void 0===e&&(e="screenshot.png");try{for(var n=t.split(","),r=n[0].match(/:(.*?);/)[1],i=atob(n[1]),a=i.length,s=new Uint8Array(a);a--;)s[a]=i.charCodeAt(a);return new File([s],e,{type:r})}catch(t){console.error("dataURLtoFile:数据转换错误 : "+t)}},sn=function(t,e){return i(void 0,void 0,void 0,(function(){var n;return a(this,(function(r){switch(r.label){case 0:return r.trys.push([0,11,,12]),console.log(t,"----"),"File"!=e||"string"!=typeof t?[3,2]:[4,an(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.png")];case 4:return"Base64"!=e||"string"!=typeof t?[3,6]:[4,t];case 6:return"Base64"!=e||"[object ArrayBuffer]"!=t.toString()?[3,8]:[4,rn(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]}}))}))},on=function(t,n,r,s){return i(void 0,void 0,void 0,(function(){return a(this,(function(i){switch(i.label){case 0:return i.trys.push([0,2,,3]),[4,e({url:t,method:"GET",responseType:"arraybuffer",params:{url:n,dom:r,quality:s}})];case 1:return[2,i.sent()];case 2:return i.sent(),console.warn("请求截图服务器发生错误,请检查地址及参数是否正确!",{url:t,path:n,dom:r,quality:s}),[2,null];case 3:return[2]}}))}))},un=function(t,e){return i(void 0,void 0,void 0,(function(){var n,r;return a(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,en.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]}}))}))},ln=function(t){return""+(t>15?"":0)+t.toString(16)},hn=function(t){var e=t.r,n=t.g,r=t.b,i=t.a,a=void 0===i?1:i;return"#"+ln(e)+ln(n)+ln(r)+(1===a?"":ln(Math.floor(255*a)))},cn=function(t){return"rgb("+t.r+","+t.g+","+t.b+")"},fn=function(t,e){void 0===e&&(e=1e4);var n=t.r,r=t.g,i=t.b,a=t.a,s=void 0===a?1:a;return"rgba("+n+","+r+","+i+","+Math.floor(s*e)/e+")"},dn=function(t){var e=t.slice(1),n=1;3===e.length&&(e=""+e[0]+e[0]+e[1]+e[1]+e[2]+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}},pn=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])}},mn=function(t){if(t.startsWith("#"))return dn(t);if(t.startsWith("rgb"))return pn(t);if("transparent"===t)return dn("#00000000");throw new Error("color string error: "+t)},gn=Object.freeze({__proto__:null,Watermark:class{constructor(t={}){Ie(this,"options"),Ie(this,"container"),Ie(this,"watermarkContent"),Ie(this,"watermarkDom"),Ie(this,"style"),Ie(this,"watermarkTag"),Ie(this,"shadowRoot"),Ie(this,"mutationObserver"),Ie(this,"_isAgainRender",(t=>{if("attributes"===t.type){if("data-watermark-tag"===t.attributeName)return!0;if(this.watermarkTag===this._getNodeRandomId(t.target))return!0}return!(!t.removedNodes.length||this.watermarkTag!==this._getNodeRandomId(t.removedNodes[0]))})),Ie(this,"_getNodeRandomId",(t=>{var e,n;return null==(e=null==t?void 0:t.dataset)?void 0:e[(n="data-watermark-tag",n.split("-").slice(1).reduce(((t,e,n)=>0===n?e:`${t}${e[0].toUpperCase()+e.slice(1)}`)))]})),Ie(this,"_destroyMutationObserver",(()=>{this.mutationObserver&&(this.mutationObserver.takeRecords(),this.mutationObserver.disconnect(),this.mutationObserver=null)})),Ie(this,"_getWatermarkDom",(t=>Be(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:s,height:o,rotate:u,opacity:l,fontSize:h,fontStyle:c,fontVariant:f,fontWeight:d,fontFamily:p,fontColor:m,textAlign:g,textBaseline:v,image:y,blindText:b,blindOpacity:_}=t;return new Promise(((t,w)=>{const D=document.createElement("canvas"),S=D.getContext("2d"),T=1*(Number(n)+Number(s)),x=1*(Number(r)+Number(o)),E=Number(a)||Number(n)/2,O=Number(i)||Number(r)/2;if(D.setAttribute("width",`${T}px`),D.setAttribute("height",`${x}px`),S){const n=1*s,r=1*o;if(S.translate(1*E,1*O),S.rotate(Math.PI/180*Number(u)),b&&(S.globalAlpha=_,S.font="14px normal",S.fillText(b,0,0)),S.globalAlpha=l,y){const e=new Image;return e.crossOrigin="anonymous",e.referrerPolicy="no-referrer",e.src=y,void(e.onload=()=>{S.drawImage(e,0,0,n,r),t({url:S.canvas.toDataURL(),width:T,height:x})})}const i=Array.isArray(e)?e:[e],a=i.map((t=>S.measureText(t).width)),c=Math.max(...a),f=1*Number(h);S.textAlign=g,S.textBaseline=v,S.fillStyle=m,S.font=M(`${f}px`),c>s&&(S.font=M(f/2+"px"));const d=f+5;let p=(r-(h*i.length+5*(i.length-1)))/2;p=p<0?0:p;for(let t=0;t<i.length;t++)S.fillText(i[t]||"",n/2,p+d*t);t({url:S.canvas.toDataURL(),width:T,height:x})}function M(t){return`${c} ${f} ${d} ${t} ${p}`}return w()}))}(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",je(this.style))}return this.watermarkDom.setAttribute("data-watermark-tag",this.watermarkTag),this.watermarkDom})))),Ie(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({},Ye,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=Fe("watermark"),this.mutationObserver=null,this._render()}update(t={}){this.options=Ve(Ve({},this.options),t),this.style.zIndex=this.options.zIndex,this._render()}show(){this.watermarkDom&&(this.style.display="block",this.watermarkDom.setAttribute("style",je(this.style)))}hide(){this.watermarkDom&&(this.style.display="none",this.watermarkDom.setAttribute("style",je(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 Be(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("data-watermark-tag",e);const a=Ve({position:"relative"},n);return r||delete a.position,i.setAttribute("style",je(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",je({pointerEvents:"none"})),e.setAttribute("data-watermark-tag",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),Ue&&this.options.monitor&&(this.mutationObserver=new Ue((t=>{t.forEach((t=>{if(this._isAgainRender(t))return this.destroy(),void this._render()}))})),this.mutationObserver.observe(this.container,Le),this.shadowRoot&&this.mutationObserver.observe(this.shadowRoot,Le))}))}},generateComponentList:Ze,generateCaseDataJson:Ke,generatePageData:function(t){var e={},n=e.theme,r=void 0===n?null:n,i=e.globalVars,a=void 0===i?null:i,s=e.shareVariableTree,o=void 0===s?null:s,u=e.plant,l=void 0===u?null:u,h=e.list,c=void 0===h?[]:h,f=e.undos,d=void 0===f?[]:f,p=e.undoRedoPointer,m=void 0===p?-1:p,g=e.globalEvents,v=void 0===g?[]:g;return t&&(r=t.theme,l=t.plant),{theme:r,globalVars:a,globalEvents:v,shareVariableTree:o,plant:l,undos:d,undoRedoPointer:m,list:Ze(c)}},exportJson:function(t){var e=t.caseName,n=t.caseImg,r=t.caseRemark,i=t.details,a={caseClientType:t.caseClientType,caseName:e,caseImg:n||"",caseRemark:r||"",createTime:We().format("YYYY-MM-DD , h:mm:ss"),caseData:Ke(i)},s=new Blob([JSON.stringify(a)],{type:""});Ge.saveAs(s,e+".json")},generateJson:function(t){var e=t.caseName,n=t.caseData;return t.plangInfoForPsd,{caseName:e,createTime:We().format("YYYY-MM-DD , h:mm:ss"),caseData:Ke(n)}},SizeAdaption:Xe,Scale:Je,loadFontResource:qt,loadScript:Wt,removeTag:$t,loadTag:Kt,loadFont:Zt,getDataForEvaluator:h,recursion:Dt,encrypt:Lt,decrypt:function(t){var e=new pt;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)},setActions:Yt,genID:Vt,arraySwap:gt,arraySwapDeep:vt,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:Nt,selectdArea:At,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:xt,resetPositionForGroup:function(t,e){var n=e.map((function(t){return t.cid}));e.forEach((function(e){e.pid&&Ot(e,t)}));var r=At(n,e);return xt(r,e),{left:r.left,top:r.top,width:r.width,height:r.height}},setPositionForWorld:Ot,breakUp:Et,findItem:_t,findItemDeep:yt,findParentDeep:bt,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 s=0;s<(null==a?void 0:a.children.length);s++){if(r+=1,(null==a?void 0:a.children[s]).cid==e)return r}}return r},getLength:function(t){var e=0,n=function(t){for(var r=0;r<t.length;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 s=i[a][1];n(s)}}else if(t[r].isShow&&t[r].dynamicChildren instanceof Array)for(a=0;a<t[r].dynamicChildren.length;a++){var o=t[r].dynamicChildren[a];n(o[1])}}else t[r].isShow&&t[r].stateChildren?n(t[r].stateChildren):t[r].isShow&&e++};return n(t),e||!1},getPosition:Pt,updataAttribute:Tt,isPeer:wt,transformPosition:Mt,upDataGroup:Rt,upDataGroupChildren:function(e,n,r){var i=e.children,a=t.cloneDeep(n),s=t.cloneDeep(Pt(i)),o=a.left,u=a.top;a.width,a.height;var l=s.left,h=s.top,c=s.width,f=s.height,d={left:o+l,top:u+h,width:c,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-h,e.baseData=n})),e.children=i,d},resziePositionForGroup:function(e,n,r,i){var a=e.baseData.left,s=e.baseData.top,o=n.left,u=n.top,l=t.cloneDeep(e.children),h=r||"";if(o-a<0)for(var c=0;c<l.length;c++){(f=l[c]).cid!==h&&(f.baseData.left=f.baseData.left+(a-o))}if(u-s<0)for(c=0;c<l.length;c++){var f;(f=l[c]).cid!==h&&(f.baseData.top=f.baseData.top+(s-u))}e.children=l},genCopyName:It,resetID:St,getUrlParams:Bt,updataSizeDeep:mt,resizePosition:kt,resizeListPosition:function(t,e){var n=function(t,r){for(var i,a=0;a<t.length;a++){var s=t[a];if(s.pid!=r){var o=kt(e,s.cid),u=kt(e,s.pid);console.log(o,u),s.baseData.left=o.left-u.left,s.baseData.top=o.top-u.top}(null===(i=null==s?void 0:s.children)||void 0===i?void 0:i.length)&&n(s.children,s.cid)}};n(t,e)},getInteractive:function(e){try{var n={},r=[],i=[],a=t.cloneDeep(e);return Dt(a,(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)&&Yt({types:t.tmpData.actions.map((function(t){return t.eventType})),element:t,actions:r,events:i})})),Dt(a,(function(t){var e,i=null===(e=null==t?void 0:t.tmpData)||void 0===e?void 0:e.source;Qe(i,r,t,n)})),console.log({shareVariableTree:n,globalVars:r.filter((function(t){return t})),globalEvents:i.filter((function(t){return t}))}),{shareVariableTree:n,globalVars:r.filter((function(t){return t})),globalEvents:i.filter((function(t){return t}))}}catch(t){return console.error("error",t),{}}},getShareTree:function(t,e){try{var n={},r=[],i=[];return Dt(t,(function(t){var a,s,o,u=null===(a=null==t?void 0:t.tmpData)||void 0===a?void 0:a.source;(Qe(u,e,t,n),null===(o=null===(s=null==t?void 0:t.tmpData)||void 0===s?void 0:s.actions)||void 0===o?void 0:o.length)&&Yt({types:t.tmpData.actions.map((function(t){return t.eventType})),element:t,actions:r,events:i})})),n}catch(t){return console.error(t),{}}},screenshot:function(t){return i(void 0,void 0,void 0,(function(){var e,n,r,i,s,o,u,l;return a(this,(function(a){switch(a.label){case 0:return a.trys.push([0,11,,12]),e=t.dom,n=t.servePath,r=t.targetPath,i=t.quality,s=t.type,o=void 0,nn(n)&&nn(r)?[4,on(n,r,e,i||.5)]:[3,5];case 1:return(u=a.sent())&&200==u.status&&u.data?(o=u.data,[3,4]):[3,2];case 2:return console.warn("截取错误,请检查网络或服务地址配置是否正确,已转换为dom-to-img."),[4,un(e,i||.5)];case 3:o=a.sent(),a.label=4;case 4:return[3,7];case 5:return console.warn("地址错误,请检查传入的地址是否争取,已转换为dom-to-img."),[4,un(e,i||.5)];case 6:o=a.sent(),a.label=7;case 7:return o?[4,sn(o,s)]:[3,9];case 8:return[2,a.sent()];case 9:return[2,null];case 10:return[3,12];case 11:return l=a.sent(),console.error("截图发生错误:"+l),[2,null];case 12:return[2]}}))}))},toHex:ln,toHexString:hn,toRgbString:cn,toRgbaString:fn,parseHexColor:dn,parseRgbaColor:pn,parseColorString:mn,getColorInfo:function(t){var e=mn(t);return{hex:hn(e),rgba:fn(e),rgb:cn(e),rgbaObj:e}},hexToRgba:function(t){var e=mn(t);return fn(e)},rgbaToHex:function(t){var e=mn(t);return hn(e)}});function vn(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function yn(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}
19
19
  /*!
20
20
  * GSAP 3.9.0
21
21
  * https://greensock.com
@@ -24,7 +24,7 @@ r.version="2.29.1",i(Kn),r.fn=ua,r.min=Qn,r.max=tr,r.now=er,r.utc=p,r.unix=ha,r.
24
24
  * Subject to the terms at https://greensock.com/standard-license or for
25
25
  * Club GreenSock members, the agreement issued with that membership.
26
26
  * @author: Jack Doyle, jack@greensock.com
27
- */var vn,yn,bn,_n,wn,Dn,Sn,Tn,xn,En,On,Mn,kn,Cn,An,Pn,Rn,Nn,Vn,In,Bn,Yn,Ln,jn,Fn,Un,Hn,zn,qn={autoSleep:120,force3D:"auto",nullTargetWarn:1,units:{lineHeight:""}},Wn={duration:.5,overwrite:!1,delay:0},Gn=2*Math.PI,Zn=Gn/4,Kn=0,$n=Math.sqrt,Xn=Math.cos,Jn=Math.sin,Qn=function(t){return"string"==typeof t},tr=function(t){return"function"==typeof t},er=function(t){return"number"==typeof t},nr=function(t){return void 0===t},rr=function(t){return"object"==typeof t},ir=function(t){return!1!==t},ar=function(){return"undefined"!=typeof window},sr=function(t){return tr(t)||Qn(t)},or="function"==typeof ArrayBuffer&&ArrayBuffer.isView||function(){},ur=Array.isArray,hr=/(?:-?\.?\d|\.)+/gi,lr=/[-+=.]*\d+[.e\-+]*\d*[e\-+]*\d*/g,cr=/[-+=.]*\d+[.e-]*\d*[a-z%]*/g,fr=/[-+=.]*\d+\.?\d*(?:e-|e\+)?\d*/gi,dr=/[+-]=-?[.\d]+/,pr=/[^,'"\[\]\s]+/gi,mr=/[\d.+\-=]+(?:e[-+]\d*)*/i,gr={},vr={},yr=function(t){return(vr=Hr(t,gr))&&Ca},br=function(t,e){return console.warn("Invalid property",t,"set to",e,"Missing plugin? gsap.registerPlugin()")},_r=function(t,e){return!e&&console.warn(t)},wr=function(t,e){return t&&(gr[t]=e)&&vr&&(vr[t]=e)||gr},Dr=function(){return 0},Sr={},Tr=[],xr={},Er={},Or={},Mr=30,kr=[],Cr="",Ar=function(t){var e,n,r=t[0];if(rr(r)||tr(r)||(t=[t]),!(e=(r._gsap||{}).harness)){for(n=kr.length;n--&&!kr[n].targetTest(r););e=kr[n]}for(n=t.length;n--;)t[n]&&(t[n]._gsap||(t[n]._gsap=new ta(t[n],e)))||t.splice(n,1);return t},Pr=function(t){return t._gsap||Ar(_i(t))[0]._gsap},Rr=function(t,e,n){return(n=t[e])&&tr(n)?t[e]():nr(n)&&t.getAttribute&&t.getAttribute(e)||n},Nr=function(t,e){return(t=t.split(",")).forEach(e)||t},Vr=function(t){return Math.round(1e5*t)/1e5||0},Ir=function(t){return Math.round(1e7*t)/1e7||0},Br=function(t,e){for(var n=e.length,r=0;t.indexOf(e[r])<0&&++r<n;);return r<n},Yr=function(){var t,e,n=Tr.length,r=Tr.slice(0);for(xr={},Tr.length=0,t=0;t<n;t++)(e=r[t])&&e._lazy&&(e.render(e._lazy[0],e._lazy[1],!0)._lazy=0)},Lr=function(t,e,n,r){Tr.length&&Yr(),t.render(e,n,r),Tr.length&&Yr()},jr=function(t){var e=parseFloat(t);return(e||0===e)&&(t+"").match(pr).length<2?e:Qn(t)?t.trim():t},Fr=function(t){return t},Ur=function(t,e){for(var n in e)n in t||(t[n]=e[n]);return t},Hr=function(t,e){for(var n in e)t[n]=e[n];return t},zr=function t(e,n){for(var r in n)"__proto__"!==r&&"constructor"!==r&&"prototype"!==r&&(e[r]=rr(n[r])?t(e[r]||(e[r]={}),n[r]):n[r]);return e},qr=function(t,e){var n,r={};for(n in t)n in e||(r[n]=t[n]);return r},Wr=function(t){var e,n=t.parent||yn,r=t.keyframes?(e=ur(t.keyframes),function(t,n){for(var r in n)r in t||"duration"===r&&e||"ease"===r||(t[r]=n[r])}):Ur;if(ir(t.inherit))for(;n;)r(t,n.vars.defaults),n=n.parent||n._dp;return t},Gr=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},Zr=function(t,e){t.parent&&(!e||t.parent.autoRemoveChildren)&&t.parent.remove(t),t._act=0},Kr=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},$r=function(t){for(var e=t.parent;e&&e.parent;)e._dirty=1,e.totalDuration(),e=e.parent;return t},Xr=function t(e){return!e||e._ts&&t(e.parent)},Jr=function(t){return t._repeat?Qr(t._tTime,t=t.duration()+t._rDelay)*t:0},Qr=function(t,e){var n=Math.floor(t/=e);return t&&n===t?n-1:n},ti=function(t,e){return(t-e._start)*e._ts+(e._ts>=0?0:e._dirty?e.totalDuration():e._tDur)},ei=function(t){return t._end=Ir(t._start+(t._tDur/Math.abs(t._ts||t._rts||1e-8)||0))},ni=function(t,e){var n=t._dp;return n&&n.smoothChildTiming&&t._ts&&(t._start=Ir(n._time-(t._ts>0?e/t._ts:((t._dirty?t.totalDuration():t._tDur)-e)/-t._ts)),ei(t),n._dirty||Kr(n,t)),t},ri=function(t,e){var n;if((e._time||e._initted&&!e._dur)&&(n=ti(t.rawTime(),e),(!e._dur||mi(0,e.totalDuration(),n)-e._tTime>1e-8)&&e.render(n,!0)),Kr(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}},ii=function(t,e,n,r){return e.parent&&Zr(e),e._start=Ir((er(n)?n:n||t!==yn?fi(t,n,e):t._time)+e._delay),e._end=Ir(e._start+(e.totalDuration()/Math.abs(e.timeScale())||0)),function(t,e,n,r,i){void 0===n&&(n="_first"),void 0===r&&(r="_last");var a,s=t[r];if(i)for(a=e[i];s&&s[i]>a;)s=s._prev;s?(e._next=s._next,s._next=e):(e._next=t[n],t[n]=e),e._next?e._next._prev=e:t[r]=e,e._prev=s,e.parent=e._dp=t}(t,e,"_first","_last",t._sort?"_start":0),ui(e)||(t._recent=e),r||ri(t,e),t},ai=function(t,e){return(gr.ScrollTrigger||br("scrollTrigger",e))&&gr.ScrollTrigger.create(e,t)},si=function(t,e,n,r){return oa(t,e),t._initted?!n&&t._pt&&(t._dur&&!1!==t.vars.lazy||!t._dur&&t.vars.lazy)&&Sn!==Fi.frame?(Tr.push(t),t._lazy=[e,r],1):void 0:1},oi=function t(e){var n=e.parent;return n&&n._ts&&n._initted&&!n._lock&&(n.rawTime()<0||t(n))},ui=function(t){var e=t.data;return"isFromStart"===e||"isStart"===e},hi=function(t,e,n,r){var i=t._repeat,a=Ir(e)||0,s=t._tTime/t._tDur;return s&&!r&&(t._time*=a/t._dur),t._dur=a,t._tDur=i?i<0?1e10:Ir(a*(i+1)+t._rDelay*i):a,s>0&&!r?ni(t,t._tTime=t._tDur*s):t.parent&&ei(t),n||Kr(t.parent,t),t},li=function(t){return t instanceof na?Kr(t):hi(t,t._dur)},ci={_start:0,endTime:Dr,totalDuration:Dr},fi=function t(e,n,r){var i,a,s,o=e.labels,u=e._recent||ci,h=e.duration()>=1e8?u.endTime(!1):e._dur;return Qn(n)&&(isNaN(n)||n in o)?(a=n.charAt(0),s="%"===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)*(s?(i<0?u:r).totalDuration()/100:1)):i<0?(n in o||(o[n]=h),o[n]):(a=parseFloat(n.charAt(i-1)+n.substr(i+1)),s&&r&&(a=a/100*(ur(r)?r[0]:r).totalDuration()),i>1?t(e,n.substr(0,i-1),r)+a:h+a)):null==n?h:+n},di=function(t,e,n){var r,i,a=er(e[1]),s=(a?2:1)+(t<2?0:1),o=e[s];if(a&&(o.duration=e[1]),o.parent=n,t){for(r=o,i=n;i&&!("immediateRender"in r);)r=i.vars.defaults||{},i=ir(i.vars.inherit)&&i.parent;o.immediateRender=ir(r.immediateRender),t<2?o.runBackwards=1:o.startAt=e[s-1]}return new fa(e[0],o,e[s+1])},pi=function(t,e){return t||0===t?e(t):e},mi=function(t,e,n){return n<t?t:n>e?e:n},gi=function(t,e){return Qn(t)&&(e=mr.exec(t))?t.substr(e.index+e[0].length):""},vi=[].slice,yi=function(t,e){return t&&rr(t)&&"length"in t&&(!e&&!t.length||t.length-1 in t&&rr(t[0]))&&!t.nodeType&&t!==bn},bi=function(t,e,n){return void 0===n&&(n=[]),t.forEach((function(t){var r;return Qn(t)&&!e||yi(t,1)?(r=n).push.apply(r,_i(t)):n.push(t)}))||n},_i=function(t,e,n){return!Qn(t)||n||!_n&&Ui()?ur(t)?bi(t,n):yi(t)?vi.call(t,0):t?[t]:[]:vi.call((e||wn).querySelectorAll(t),0)},wi=function(t){return t.sort((function(){return.5-Math.random()}))},Di=function(t){if(tr(t))return t;var e=rr(t)?t:{each:t},n=Ki(e.ease),r=e.from||0,i=parseFloat(e.base)||0,a={},s=r>0&&r<1,o=isNaN(r)||s,u=e.axis,h=r,l=r;return Qn(r)?h=l={center:.5,edges:.5,end:1}[r]||0:!s&&o&&(h=r[0],l=r[1]),function(t,s,c){var f,d,p,m,g,v,y,b,_,w=(c||e).length,D=a[w];if(!D){if(!(_="auto"===e.grid?0:(e.grid||[1,1e8])[1])){for(y=-1e8;y<(y=c[_++].getBoundingClientRect().left)&&_<w;);_--}for(D=a[w]=[],f=o?Math.min(_,w)*h-.5:r%_,d=1e8===_?0:o?w*l/_-.5:r/_|0,y=0,b=1e8,v=0;v<w;v++)p=v%_-f,m=d-(v/_|0),D[v]=g=u?Math.abs("y"===u?m:p):$n(p*p+m*m),g>y&&(y=g),g<b&&(b=g);"random"===r&&wi(D),D.max=y-b,D.min=b,D.v=w=(parseFloat(e.amount)||parseFloat(e.each)*(_>w?w-1:u?"y"===u?w/_:_:Math.max(_,w/_))||0)*("edges"===r?-1:1),D.b=w<0?i-w:i,D.u=gi(e.amount||e.each)||0,n=n&&w<0?Gi(n):n}return w=(D[t]-D.min)/D.max||0,Ir(D.b+(n?n(w):w)*D.v)+D.u}},Si=function(t){var e=Math.pow(10,((t+"").split(".")[1]||"").length);return function(n){var r=Math.round(parseFloat(n)/t)*t*e;return(r-r%1)/e+(er(n)?0:gi(n))}},Ti=function(t,e){var n,r,i=ur(t);return!i&&rr(t)&&(n=i=t.radius||1e8,t.values?(t=_i(t.values),(r=!er(t[0]))&&(n*=n)):t=Si(t.increment)),pi(e,i?tr(t)?function(e){return r=t(e),Math.abs(r-e)<=n?r:e}:function(e){for(var i,a,s=parseFloat(r?e.x:e),o=parseFloat(r?e.y:0),u=1e8,h=0,l=t.length;l--;)(i=r?(i=t[l].x-s)*i+(a=t[l].y-o)*a:Math.abs(t[l]-s))<u&&(u=i,h=l);return h=!n||u<=n?t[h]:e,r||h===e||er(e)?h:h+gi(e)}:Si(t))},xi=function(t,e,n,r){return pi(ur(t)?!e:!0===n?!!(n=0):!r,(function(){return ur(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}))},Ei=function(t,e,n){return pi(n,(function(n){return t[~~e(n)]}))},Oi=function(t){for(var e,n,r,i,a=0,s="";~(e=t.indexOf("random(",a));)r=t.indexOf(")",e),i="["===t.charAt(e+7),n=t.substr(e+7,r-e-7).match(i?pr:hr),s+=t.substr(a,e-a)+xi(i?n:+n[0],i?0:+n[1],+n[2]||1e-5),a=r+1;return s+t.substr(a,t.length-a)},Mi=function(t,e,n,r,i){var a=e-t,s=r-n;return pi(i,(function(e){return n+((e-t)/a*s||0)}))},ki=function(t,e,n){var r,i,a,s=t.labels,o=1e8;for(r in s)(i=s[r]-e)<0==!!n&&i&&o>(i=Math.abs(i))&&(a=r,o=i);return a},Ci=function(t,e,n){var r,i,a=t.vars,s=a[e];if(s)return r=a[e+"Params"],i=a.callbackScope||t,n&&Tr.length&&Yr(),r?s.apply(i,r):s.call(i)},Ai=function(t){return Zr(t),t.scrollTrigger&&t.scrollTrigger.kill(!1),t.progress()<1&&Ci(t,"onInterrupt"),t},Pi=function(t){var e=(t=!t.name&&t.default||t).name,n=tr(t),r=e&&!n&&t.init?function(){this._props=[]}:t,i={init:Dr,render:wa,add:aa,kill:Sa,modifier:Da,rawVars:0},a={targetTest:0,get:0,getSetter:va,aliases:{},register:0};if(Ui(),t!==r){if(Er[e])return;Ur(r,Ur(qr(t,i),a)),Hr(r.prototype,Hr(i,qr(t,a))),Er[r.prop=e]=r,t.targetTest&&(kr.push(r),Sr[e]=1),e=("css"===e?"CSS":e.charAt(0).toUpperCase()+e.substr(1))+"Plugin"}wr(e,r),t.register&&t.register(Ca,r,Ea)},Ri={aqua:[0,255,255],lime:[0,255,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,255],navy:[0,0,128],white:[255,255,255],olive:[128,128,0],yellow:[255,255,0],orange:[255,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[255,0,0],pink:[255,192,203],cyan:[0,255,255],transparent:[255,255,255,0]},Ni=function(t,e,n){return 255*(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)+.5|0},Vi=function(t,e,n){var r,i,a,s,o,u,h,l,c,f,d=t?er(t)?[t>>16,t>>8&255,255&t]:0:Ri.black;if(!d){if(","===t.substr(-1)&&(t=t.substr(0,t.length-1)),Ri[t])d=Ri[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&255,255&d,parseInt(t.substr(7),16)/255];d=[(t=parseInt(t.substr(1),16))>>16,t>>8&255,255&t]}else if("hsl"===t.substr(0,3))if(d=f=t.match(hr),e){if(~t.indexOf("="))return d=t.match(lr),n&&d.length<4&&(d[3]=1),d}else s=+d[0]%360/360,o=+d[1]/100,r=2*(u=+d[2]/100)-(i=u<=.5?u*(o+1):u+o-u*o),d.length>3&&(d[3]*=1),d[0]=Ni(s+1/3,r,i),d[1]=Ni(s,r,i),d[2]=Ni(s-1/3,r,i);else d=t.match(hr)||Ri.transparent;d=d.map(Number)}return e&&!f&&(r=d[0]/255,i=d[1]/255,a=d[2]/255,u=((h=Math.max(r,i,a))+(l=Math.min(r,i,a)))/2,h===l?s=o=0:(c=h-l,o=u>.5?c/(2-h-l):c/(h+l),s=h===r?(i-a)/c+(i<a?6:0):h===i?(a-r)/c+2:(r-i)/c+4,s*=60),d[0]=~~(s+.5),d[1]=~~(100*o+.5),d[2]=~~(100*u+.5)),n&&d.length<4&&(d[3]=1),d},Ii=function(t){var e=[],n=[],r=-1;return t.split(Yi).forEach((function(t){var i=t.match(cr)||[];e.push.apply(e,i),n.push(r+=i.length+1)})),e.c=n,e},Bi=function(t,e,n){var r,i,a,s,o="",u=(t+o).match(Yi),h=e?"hsla(":"rgba(",l=0;if(!u)return t;if(u=u.map((function(t){return(t=Vi(t,e,1))&&h+(e?t[0]+","+t[1]+"%,"+t[2]+"%,"+t[3]:t.join(","))+")"})),n&&(a=Ii(t),(r=n.c).join(o)!==a.c.join(o)))for(s=(i=t.replace(Yi,"1").split(cr)).length-1;l<s;l++)o+=i[l]+(~r.indexOf(l)?u.shift()||h+"0,0,0,0)":(a.length?a:u.length?u:n).shift());if(!i)for(s=(i=t.split(Yi)).length-1;l<s;l++)o+=i[l]+u[l];return o+i[s]},Yi=function(){var t,e="(?:\\b(?:(?:rgb|rgba|hsl|hsla)\\(.+?\\))|\\B#(?:[0-9a-f]{3,4}){1,2}\\b";for(t in Ri)e+="|"+t+"\\b";return new RegExp(e+")","gi")}(),Li=/hsl[a]?\(/,ji=function(t){var e,n=t.join(" ");if(Yi.lastIndex=0,Yi.test(n))return e=Li.test(n),t[1]=Bi(t[1],e),t[0]=Bi(t[0],e,Ii(t[1])),!0},Fi=(Pn=Date.now,Rn=500,Nn=33,Vn=Pn(),In=Vn,Yn=Bn=1e3/240,jn=function t(e){var n,r,i,a,s=Pn()-In,o=!0===e;if(s>Rn&&(Vn+=s-Nn),((n=(i=(In+=s)-Vn)-Yn)>0||o)&&(a=++kn.frame,Cn=i-1e3*kn.time,kn.time=i/=1e3,Yn+=n+(n>=Bn?4:Bn-n),r=1),o||(En=On(t)),r)for(An=0;An<Ln.length;An++)Ln[An](i,Cn,a,e)},kn={time:0,frame:0,tick:function(){jn(!0)},deltaRatio:function(t){return Cn/(1e3/(t||60))},wake:function(){Dn&&(!_n&&ar()&&(bn=_n=window,wn=bn.document||{},gr.gsap=Ca,(bn.gsapVersions||(bn.gsapVersions=[])).push(Ca.version),yr(vr||bn.GreenSockGlobals||!bn.gsap&&bn||{}),Mn=bn.requestAnimationFrame),En&&kn.sleep(),On=Mn||function(t){return setTimeout(t,Yn-1e3*kn.time+1|0)},xn=1,jn(2))},sleep:function(){(Mn?bn.cancelAnimationFrame:clearTimeout)(En),xn=0,On=Dr},lagSmoothing:function(t,e){Rn=t||1/1e-8,Nn=Math.min(e,Rn,0)},fps:function(t){Bn=1e3/(t||240),Yn=1e3*kn.time+Bn},add:function(t){Ln.indexOf(t)<0&&Ln.push(t),Ui()},remove:function(t,e){~(e=Ln.indexOf(t))&&Ln.splice(e,1)&&An>=e&&An--},_listeners:Ln=[]}),Ui=function(){return!xn&&Fi.wake()},Hi={},zi=/^[\d.\-M][\d.\-,\s]/,qi=/["']/g,Wi=function(t){for(var e,n,r,i={},a=t.substr(1,t.length-3).split(":"),s=a[0],o=1,u=a.length;o<u;o++)n=a[o],e=o!==u-1?n.lastIndexOf(","):n.length,r=n.substr(0,e),i[s]=isNaN(r)?r.replace(qi,"").trim():+r,s=n.substr(e+1).trim();return i},Gi=function(t){return function(e){return 1-t(1-e)}},Zi=function t(e,n){for(var r,i=e._first;i;)i instanceof na?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},Ki=function(t,e){return t&&(tr(t)?t:Hi[t]||function(t){var e=(t+"").split("("),n=Hi[e[0]];return n&&e.length>1&&n.config?n.config.apply(null,~t.indexOf("{")?[Wi(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(jr)):Hi._CE&&zi.test(t)?Hi._CE("",t):n}(t))||e},$i=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 Nr(t,(function(t){for(var e in Hi[t]=gr[t]=a,Hi[i=t.toLowerCase()]=n,a)Hi[i+("easeIn"===e?".in":"easeOut"===e?".out":".inOut")]=Hi[t+"."+e]=a[e]})),a},Xi=function(t){return function(e){return e<.5?(1-t(1-2*e))/2:.5+t(2*(e-.5))/2}},Ji=function t(e,n,r){var i=n>=1?n:1,a=(r||(e?.3:.45))/(n<1?n:1),s=a/Gn*(Math.asin(1/i)||0),o=function(t){return 1===t?1:i*Math.pow(2,-10*t)*Jn((t-s)*a)+1},u="out"===e?o:"in"===e?function(t){return 1-o(1-t)}:Xi(o);return a=Gn/a,u.config=function(n,r){return t(e,n,r)},u},Qi=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)}:Xi(r);return i.config=function(n){return t(e,n)},i};Nr("Linear,Quad,Cubic,Quart,Quint,Strong",(function(t,e){var n=e<5?e+1:e;$i(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}))})),Hi.Linear.easeNone=Hi.none=Hi.Linear.easeIn,$i("Elastic",Ji("in"),Ji("out"),Ji()),Fn=7.5625,Hn=1/(Un=2.75),$i("Bounce",(function(t){return 1-zn(1-t)}),zn=function(t){return t<Hn?Fn*t*t:t<.7272727272727273?Fn*Math.pow(t-1.5/Un,2)+.75:t<.9090909090909092?Fn*(t-=2.25/Un)*t+.9375:Fn*Math.pow(t-2.625/Un,2)+.984375}),$i("Expo",(function(t){return t?Math.pow(2,10*(t-1)):0})),$i("Circ",(function(t){return-($n(1-t*t)-1)})),$i("Sine",(function(t){return 1===t?1:1-Xn(t*Zn)})),$i("Back",Qi("in"),Qi("out"),Qi()),Hi.SteppedEase=Hi.steps=gr.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*mi(0,.99999999,t)|0)+i)*n}}},Wn.ease=Hi["quad.out"],Nr("onComplete,onUpdate,onStart,onRepeat,onReverseComplete,onInterrupt",(function(t){return Cr+=t+","+t+"Params,"}));var ta=function(t,e){this.id=Kn++,t._gsap=this,this.target=t,this.harness=e,this.get=e?e.get:Rr,this.set=e?e.getSetter:va},ea=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,hi(this,+t.duration,1,1),this.data=t.data,xn||Fi.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,hi(this,this._repeat<0?t:(t-this._repeat*this._rDelay)/(this._repeat+1))):this._tDur},e.totalTime=function(t,e){if(Ui(),!arguments.length)return this._tTime;var n=this._dp;if(n&&n.smoothChildTiming&&this._ts){for(ni(this,t),!n._dp||n.parent||ri(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)&&ii(this._dp,this,this._start-this._delay)}return(this._tTime!==t||!this._dur&&!e||this._initted&&1e-8===Math.abs(this._zTime)||!t&&!this._initted&&(this.add||this._ptLookup))&&(this._ts||(this._pTime=t),Lr(this,t,e)),this},e.time=function(t,e){return arguments.length?this.totalTime(Math.min(this.totalDuration(),t+Jr(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)+Jr(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?Qr(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?ti(this.parent._time,this):this._tTime;return this._rts=+t||0,this._ts=this._ps||-1e-8===t?0:this._rts,$r(this.totalTime(mi(-this._delay,this._tDur,e),!0)),ei(this),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):(Ui(),this._ts=this._rts,this.totalTime(this.parent&&!this.parent.smoothChildTiming?this.rawTime():this._tTime||this._pTime,1===this.progress()&&1e-8!==Math.abs(this._zTime)&&(this._tTime-=1e-8)))),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)&&ii(e,this,t-this._delay),this}return this._start},e.endTime=function(t){return this._start+(ir(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?ti(e.rawTime(t),this):this._tTime:this._tTime},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 n},e.repeat=function(t){return arguments.length?(this._repeat=t===1/0?-2:t,li(this)):-2===this._repeat?1/0:this._repeat},e.repeatDelay=function(t){if(arguments.length){var e=this._time;return this._rDelay=t,li(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(fi(this,t),ir(e))},e.restart=function(t,e){return this.play().totalTime(t?-this._delay:0,ir(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)-1e-8))},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=tr(t)?t:Fr,i=function(){var t=e.then;e.then=null,tr(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(){Ai(this)},t}();Ur(ea.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 na=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=ir(e.sortChildren),yn&&ii(e.parent||yn,mn(r),n),e.reversed&&r.reverse(),e.paused&&r.paused(!0),e.scrollTrigger&&ai(mn(r),e.scrollTrigger),r}gn(e,t);var n=e.prototype;return n.to=function(t,e,n){return di(0,arguments,this),this},n.from=function(t,e,n){return di(1,arguments,this),this},n.fromTo=function(t,e,n,r){return di(2,arguments,this),this},n.set=function(t,e,n){return e.duration=0,e.parent=this,Wr(e).repeatDelay||(e.repeat=0),e.immediateRender=!!e.immediateRender,new fa(t,e,fi(this,n),1),this},n.call=function(t,e,n){return ii(this,fa.delayedCall(0,t,e),n)},n.staggerTo=function(t,e,n,r,i,a,s){return n.duration=e,n.stagger=n.stagger||r,n.onComplete=a,n.onCompleteParams=s,n.parent=this,new fa(t,n,fi(this,i)),this},n.staggerFrom=function(t,e,n,r,i,a,s){return n.runBackwards=1,Wr(n).immediateRender=ir(n.immediateRender),this.staggerTo(t,e,n,r,i,a,s)},n.staggerFromTo=function(t,e,n,r,i,a,s,o){return r.startAt=n,Wr(r).immediateRender=ir(r.immediateRender),this.staggerTo(t,e,r,i,a,s,o)},n.render=function(t,e,n){var r,i,a,s,o,u,h,l,c,f,d,p,m=this._time,g=this._dirty?this.totalDuration():this._tDur,v=this._dur,y=t<=0?0:Ir(t),b=this._zTime<0!=t<0&&(this._initted||!v);if(this!==yn&&y>g&&t>=0&&(y=g),y!==this._tTime||n||b){if(m!==this._time&&v&&(y+=this._time-m,t+=this._time-m),r=y,c=this._start,u=!(l=this._ts),b&&(v||(m=this._zTime),(t||!e)&&(this._zTime=t)),this._repeat){if(d=this._yoyo,o=v+this._rDelay,this._repeat<-1&&t<0)return this.totalTime(100*o+t,e,n);if(r=Ir(y%o),y===g?(s=this._repeat,r=v):((s=~~(y/o))&&s===y/o&&(r=v,s--),r>v&&(r=v)),f=Qr(this._tTime,o),!m&&this._tTime&&f!==s&&(f=s),d&&1&s&&(r=v-r,p=1),s!==f&&!this._lock){var _=d&&1&f,w=_===(d&&1&s);if(s<f&&(_=!_),m=_?0:v,this._lock=1,this.render(m||(p?0:Ir(s*o)),e,!v)._lock=0,this._tTime=y,!e&&this.parent&&Ci(this,"onRepeat"),this.vars.repeatRefresh&&!p&&(this.invalidate()._lock=1),m&&m!==this._time||u!==!this._ts||this.vars.onRepeat&&!this.parent&&!this._act)return this;if(v=this._dur,g=this._tDur,w&&(this._lock=2,m=_?v:-1e-4,this.render(m,!0),this.vars.repeatRefresh&&!p&&this.invalidate()),this._lock=0,!this._ts&&!u)return this;Zi(this,p)}}if(this._hasPause&&!this._forcing&&this._lock<2&&(h=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,Ir(m),Ir(r)),h&&(y-=r-(r=h._start))),this._tTime=y,this._time=r,this._act=!l,this._initted||(this._onUpdate=this.vars.onUpdate,this._initted=1,this._zTime=t,m=0),!m&&r&&!e&&(Ci(this,"onStart"),this._tTime!==y))return this;if(r>=m&&t>=0)for(i=this._first;i;){if(a=i._next,(i._act||r>=i._start)&&i._ts&&h!==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){h=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&&h!==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!==this._time||!this._ts&&!u){h=0,a&&(y+=this._zTime=D?-1e-8:1e-8);break}}i=a}}if(h&&!e&&(this.pause(),h.render(r>=m?0:-1e-8)._zTime=r>=m?1:-1,this._ts))return this._start=c,ei(this),this.render(t,e,n);this._onUpdate&&!e&&Ci(this,"onUpdate",!0),(y===g&&g>=this.totalDuration()||!y&&m)&&(c!==this._start&&Math.abs(l)===Math.abs(this._ts)||this._lock||((t||!v)&&(y===g&&this._ts>0||!y&&this._ts<0)&&Zr(this,1),e||t<0&&!m||!y&&!m&&g||(Ci(this,y===g&&t>=0?"onComplete":"onReverseComplete",!0),this._prom&&!(y<g&&this.timeScale()>0)&&this._prom())))}return this},n.add=function(t,e){var n=this;if(er(e)||(e=fi(this,e,t)),!(t instanceof ea)){if(ur(t))return t.forEach((function(t){return n.add(t,e)})),this;if(Qn(t))return this.addLabel(t,e);if(!tr(t))return this;t=fa.delayedCall(0,t)}return this!==t?ii(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 fa?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 Qn(t)?this.removeLabel(t):tr(t)?this.killTweensOf(t):(Gr(this,t),t===this._recent&&(this._recent=this._last),Kr(this))},n.totalTime=function(e,n){return arguments.length?(this._forcing=1,!this._dp&&this._ts&&(this._start=Ir(Fi.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]=fi(this,e),this},n.removeLabel=function(t){return delete this.labels[t],this},n.addPause=function(t,e,n){var r=fa.delayedCall(0,e||Dr,n);return r.data="isPause",this._hasPause=1,ii(this,r,fi(this,t))},n.removePause=function(t){var e=this._first;for(t=fi(this,t);e;)e._start===t&&"isPause"===e.data&&Zr(e),e=e._next},n.killTweensOf=function(t,e,n){for(var r=this.getTweensOf(t,n),i=r.length;i--;)ra!==r[i]&&r[i].kill(t,e);return this},n.getTweensOf=function(t,e){for(var n,r=[],i=_i(t),a=this._first,s=er(e);a;)a instanceof fa?Br(a._targets,i)&&(s?(!ra||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=fi(r,t),a=e,s=a.startAt,o=a.onStart,u=a.onStartParams,h=a.immediateRender,l=fa.to(r,Ur({ease:e.ease||"none",lazy:!1,immediateRender:!1,time:i,overwrite:"auto",duration:e.duration||Math.abs((i-(s&&"time"in s?s.time:r._time))/r.timeScale())||1e-8,onStart:function(){if(r.pause(),!n){var t=e.duration||Math.abs((i-(s&&"time"in s?s.time:r._time))/r.timeScale());l._dur!==t&&hi(l,t,0,1).render(l._time,!0,!0),n=1}o&&o.apply(l,u||[])}},e));return h?l.render(0):l},n.tweenFromTo=function(t,e,n){return this.tweenTo(e,Ur({startAt:{time:fi(this,t)}},n))},n.recent=function(){return this._recent},n.nextLabel=function(t){return void 0===t&&(t=this._time),ki(this,fi(this,t))},n.previousLabel=function(t){return void 0===t&&(t=this._time),ki(this,fi(this,t),1)},n.currentLabel=function(t){return arguments.length?this.seek(t,!0):this.previousLabel(this._time+1e-8)},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 Kr(this)},n.invalidate=function(){var e=this._first;for(this._lock=0;e;)e.invalidate(),e=e._next;return t.prototype.invalidate.call(this)},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={}),Kr(this)},n.totalDuration=function(t){var e,n,r,i=0,a=this,s=a._last,o=1e8;if(arguments.length)return a.timeScale((a._repeat<0?a.duration():a.totalDuration())/(a.reversed()?-t:t));if(a._dirty){for(r=a.parent;s;)e=s._prev,s._dirty&&s.totalDuration(),(n=s._start)>o&&a._sort&&s._ts&&!a._lock?(a._lock=1,ii(a,s,n-s._delay,1)._lock=0):o=n,n<0&&s._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),o=0),s._end>i&&s._ts&&(i=s._end),s=e;hi(a,a===yn&&a._time>i?a._time:i,1,1),a._dirty=0}return a._tDur},e.updateRoot=function(t){if(yn._ts&&(Lr(yn,ti(t,yn)),Sn=Fi.frame),Fi.frame>=Mr){Mr+=qn.autoSleep||120;var e=yn._first;if((!e||!e._ts)&&qn.autoSleep&&Fi._listeners.length<2){for(;e&&!e._ts;)e=e._next;e||Fi.sleep()}}},e}(ea);Ur(na.prototype,{_lock:0,_hasPause:0,_forcing:0});var ra,ia=function(t,e,n,r,i,a,s){var o,u,h,l,c,f,d,p,m=new Ea(this._pt,t,e,0,1,_a,null,i),g=0,v=0;for(m.b=n,m.e=r,n+="",(d=~(r+="").indexOf("random("))&&(r=Oi(r)),a&&(a(p=[n,r],t,e),n=p[0],r=p[1]),u=n.match(fr)||[];o=fr.exec(r);)l=o[0],c=r.substring(g,o.index),h?h=(h+1)%5:"rgba("===c.substr(-5)&&(h=1),l!==u[v++]&&(f=parseFloat(u[v-1])||0,m._pt={_next:m._pt,p:c||1===v?c:",",s:f,c:"="===l.charAt(1)?parseFloat(l.substr(2))*("-"===l.charAt(0)?-1:1):parseFloat(l)-f,m:h&&h<4?Math.round:0},g=fr.lastIndex);return m.c=g<r.length?r.substring(g,r.length):"",m.fp=s,(dr.test(r)||d)&&(m.e=0),this._pt=m,m},aa=function(t,e,n,r,i,a,s,o,u){tr(r)&&(r=r(i||0,t,a));var h,l=t[e],c="get"!==n?n:tr(l)?u?t[e.indexOf("set")||!tr(t["get"+e.substr(3)])?e:"get"+e.substr(3)](u):t[e]():l,f=tr(l)?u?ma:pa:da;if(Qn(r)&&(~r.indexOf("random(")&&(r=Oi(r)),"="===r.charAt(1)&&((h=parseFloat(c)+parseFloat(r.substr(2))*("-"===r.charAt(0)?-1:1)+(gi(c)||0))||0===h)&&(r=h)),c!==r)return isNaN(c*r)||""===r?(!l&&!(e in t)&&br(e,r),ia.call(this,t,e,c,r,f,o||qn.stringFilter,u)):(h=new Ea(this._pt,t,e,+c||0,r-(c||0),"boolean"==typeof l?ba:ya,0,f),u&&(h.fp=u),s&&h.modifier(s,this,t),this._pt=h)},sa=function(t,e,n,r,i,a){var s,o,u,h;if(Er[t]&&!1!==(s=new Er[t]).init(i,s.rawVars?e[t]:function(t,e,n,r,i){if(tr(t)&&(t=ha(t,i,e,n,r)),!rr(t)||t.style&&t.nodeType||ur(t)||or(t))return Qn(t)?ha(t,i,e,n,r):t;var a,s={};for(a in t)s[a]=ha(t[a],i,e,n,r);return s}(e[t],r,i,a,n),n,r,a)&&(n._pt=o=new Ea(n._pt,i,t,0,1,s.render,s,0,s.priority),n!==Tn))for(u=n._ptLookup[n._targets.indexOf(i)],h=s._props.length;h--;)u[s._props[h]]=o;return s},oa=function t(e,n){var r,i,a,s,o,u,h,l,c,f,d,p,m,g=e.vars,v=g.ease,y=g.startAt,b=g.immediateRender,_=g.lazy,w=g.onUpdate,D=g.onUpdateParams,S=g.callbackScope,T=g.runBackwards,x=g.yoyoEase,E=g.keyframes,O=g.autoRevert,M=e._dur,k=e._startAt,C=e._targets,A=e.parent,P=A&&"nested"===A.data?A.parent._targets:C,R="auto"===e._overwrite&&!vn,N=e.timeline;if(N&&(!E||!v)&&(v="none"),e._ease=Ki(v,Wn.ease),e._yEase=x?Gi(Ki(!0===x?v:x,Wn.ease)):0,x&&e._yoyo&&!e._repeat&&(x=e._yEase,e._yEase=e._ease,e._ease=x),e._from=!N&&!!g.runBackwards,!N||E&&!g.stagger){if(p=(l=C[0]?Pr(C[0]).harness:0)&&g[l.prop],r=qr(g,Sr),k&&Zr(k.render(-1,!0)),y)if(Zr(e._startAt=fa.set(C,Ur({data:"isStart",overwrite:!1,parent:A,immediateRender:!0,lazy:ir(_),startAt:null,delay:0,onUpdate:w,onUpdateParams:D,callbackScope:S,stagger:0},y))),n<0&&!b&&!O&&e._startAt.render(-1,!0),b){if(n>0&&!O&&(e._startAt=0),M&&n<=0)return void(n&&(e._zTime=n))}else!1===O&&(e._startAt=0);else if(T&&M)if(k)!O&&(e._startAt=0);else if(n&&(b=!1),a=Ur({overwrite:!1,data:"isFromStart",lazy:b&&ir(_),immediateRender:b,stagger:0,parent:A},r),p&&(a[l.prop]=p),Zr(e._startAt=fa.set(C,a)),n<0&&e._startAt.render(-1,!0),e._zTime=n,b){if(!n)return}else t(e._startAt,1e-8);for(e._pt=0,_=M&&ir(_)||_&&!M,i=0;i<C.length;i++){if(h=(o=C[i])._gsap||Ar(C)[i]._gsap,e._ptLookup[i]=f={},xr[h.id]&&Tr.length&&Yr(),d=P===C?i:P.indexOf(o),l&&!1!==(c=new l).init(o,p||r,e,d,P)&&(e._pt=s=new Ea(e._pt,o,c.name,0,1,c.render,c,0,c.priority),c._props.forEach((function(t){f[t]=s})),c.priority&&(u=1)),!l||p)for(a in r)Er[a]&&(c=sa(a,r,e,d,o,P))?c.priority&&(u=1):f[a]=s=aa.call(e,o,a,"get",r[a],d,P,0,g.stringFilter);e._op&&e._op[i]&&e.kill(o,e._op[i]),R&&e._pt&&(ra=e,yn.killTweensOf(o,f,e.globalTime(n)),m=!e.parent,ra=0),e._pt&&_&&(xr[h.id]=1)}u&&xa(e),e._onInit&&e._onInit(e)}e._onUpdate=w,e._initted=(!e._op||e._pt)&&!m,E&&n<=0&&N.render(1e8,!0,!0)},ua=function(t,e,n,r){var i,a,s=e.ease||r||"power1.inOut";if(ur(e))a=n[t]||(n[t]=[]),e.forEach((function(t,n){return a.push({t:n/(e.length-1)*100,v:t,e:s})}));else for(i in e)a=n[i]||(n[i]=[]),"ease"===i||a.push({t:parseFloat(t),v:e[i],e:s})},ha=function(t,e,n,r,i){return tr(t)?t.call(e,n,r,i):Qn(t)&&~t.indexOf("random(")?Oi(t):t},la=Cr+"repeat,repeatDelay,yoyo,repeatRefresh,yoyoEase",ca={};Nr(la+",id,stagger,delay,duration,paused,scrollTrigger",(function(t){return ca[t]=1}));var fa=function(t){function e(e,n,r,i){var a;"number"==typeof n&&(r.duration=n,n=r,r=null);var s,o,u,h,l,c,f,d,p=(a=t.call(this,i?n:Wr(n))||this).vars,m=p.duration,g=p.delay,v=p.immediateRender,y=p.stagger,b=p.overwrite,_=p.keyframes,w=p.defaults,D=p.scrollTrigger,S=p.yoyoEase,T=n.parent||yn,x=(ur(e)||or(e)?er(e[0]):"length"in n)?[e]:_i(e);if(a._targets=x.length?Ar(x):_r("GSAP target "+e+" not found. https://greensock.com",!qn.nullTargetWarn)||[],a._ptLookup=[],a._overwrite=b,_||y||sr(m)||sr(g)){if(n=a.vars,(s=a.timeline=new na({data:"nested",defaults:w||{}})).kill(),s.parent=s._dp=mn(a),s._start=0,y||sr(m)||sr(g)){if(h=x.length,f=y&&Di(y),rr(y))for(l in y)~la.indexOf(l)&&(d||(d={}),d[l]=y[l]);for(o=0;o<h;o++)(u=qr(n,ca)).stagger=0,S&&(u.yoyoEase=S),d&&Hr(u,d),c=x[o],u.duration=+ha(m,mn(a),o,c,x),u.delay=(+ha(g,mn(a),o,c,x)||0)-a._delay,!y&&1===h&&u.delay&&(a._delay=g=u.delay,a._start+=g,u.delay=0),s.to(c,u,f?f(o,c,x):0),s._ease=Hi.none;s.duration()?m=g=0:a.timeline=0}else if(_){Wr(Ur(s.vars.defaults,{ease:"none"})),s._ease=Ki(_.ease||n.ease||"none");var E,O,M,k=0;if(ur(_))_.forEach((function(t){return s.to(x,t,">")}));else{for(l in u={},_)"ease"===l||"easeEach"===l||ua(l,_[l],u,_.easeEach);for(l in u)for(E=u[l].sort((function(t,e){return t.t-e.t})),k=0,o=0;o<E.length;o++)(M={ease:(O=E[o]).e,duration:(O.t-(o?E[o-1].t:0))/100*m})[l]=O.v,s.to(x,M,k),k+=M.duration;s.duration()<m&&s.to({},{duration:m-s.duration()})}}m||a.duration(m=s.duration())}else a.timeline=0;return!0!==b||vn||(ra=mn(a),yn.killTweensOf(x),ra=0),ii(T,mn(a),r),n.reversed&&a.reverse(),n.paused&&a.paused(!0),(v||!m&&!_&&a._start===Ir(T._time)&&ir(v)&&Xr(mn(a))&&"nested"!==T.data)&&(a._tTime=-1e-8,a.render(Math.max(0,-g))),D&&ai(mn(a),D),a}gn(e,t);var n=e.prototype;return n.render=function(t,e,n){var r,i,a,s,o,u,h,l,c,f=this._time,d=this._tDur,p=this._dur,m=t>d-1e-8&&t>=0?d:t<1e-8?0:t;if(p){if(m!==this._tTime||!t||n||!this._initted&&this._tTime||this._startAt&&this._zTime<0!=t<0){if(r=m,l=this.timeline,this._repeat){if(s=p+this._rDelay,this._repeat<-1&&t<0)return this.totalTime(100*s+t,e,n);if(r=Ir(m%s),m===d?(a=this._repeat,r=p):((a=~~(m/s))&&a===m/s&&(r=p,a--),r>p&&(r=p)),(u=this._yoyo&&1&a)&&(c=this._yEase,r=p-r),o=Qr(this._tTime,s),r===f&&!n&&this._initted)return this;a!==o&&(l&&this._yEase&&Zi(l,u),!this.vars.repeatRefresh||u||this._lock||(this._lock=n=1,this.render(Ir(s*a),!0).invalidate()._lock=0))}if(!this._initted){if(si(this,t<0?t:r,n,e))return this._tTime=0,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=h=(c||this._ease)(r/p),this._from&&(this.ratio=h=1-h),r&&!f&&!e&&(Ci(this,"onStart"),this._tTime!==m))return this;for(i=this._pt;i;)i.r(h,i.d),i=i._next;l&&l.render(t<0?t:!r&&u?-1e-8:l._dur*l._ease(r/this._dur),e,n)||this._startAt&&(this._zTime=t),this._onUpdate&&!e&&(t<0&&this._startAt&&this._startAt.render(t,!0,n),Ci(this,"onUpdate")),this._repeat&&a!==o&&this.vars.onRepeat&&!e&&this.parent&&Ci(this,"onRepeat"),m!==this._tDur&&m||this._tTime!==m||(t<0&&this._startAt&&!this._onUpdate&&this._startAt.render(t,!0,!0),(t||!p)&&(m===this._tDur&&this._ts>0||!m&&this._ts<0)&&Zr(this,1),e||t<0&&!f||!m&&!f||(Ci(this,m===d?"onComplete":"onReverseComplete",!0),this._prom&&!(m<d&&this.timeScale()>0)&&this._prom()))}}else!function(t,e,n,r){var i,a,s,o=t.ratio,u=e<0||!e&&(!t._start&&oi(t)&&(t._initted||!ui(t))||(t._ts<0||t._dp._ts<0)&&!ui(t))?0:1,h=t._rDelay,l=0;if(h&&t._repeat&&(l=mi(0,t._tDur,e),a=Qr(l,h),t._yoyo&&1&a&&(u=1-u),a!==Qr(t._tTime,h)&&(o=1-u,t.vars.repeatRefresh&&t._initted&&t.invalidate())),u!==o||r||1e-8===t._zTime||!e&&t._zTime){if(!t._initted&&si(t,e,r,n))return;for(s=t._zTime,t._zTime=e||(n?1e-8:0),n||(n=e&&!s),t.ratio=u,t._from&&(u=1-u),t._time=0,t._tTime=l,i=t._pt;i;)i.r(u,i.d),i=i._next;t._startAt&&e<0&&t._startAt.render(e,!0,!0),t._onUpdate&&!n&&Ci(t,"onUpdate"),l&&t._repeat&&!n&&t.parent&&Ci(t,"onRepeat"),(e>=t._tDur||e<0)&&t.ratio===u&&(u&&Zr(t,1),n||(Ci(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(){return this._pt=this._op=this._startAt=this._onUpdate=this._lazy=this.ratio=0,this._ptLookup=[],this.timeline&&this.timeline.invalidate(),t.prototype.invalidate.call(this)},n.kill=function(t,e){if(void 0===e&&(e="all"),!(t||e&&"all"!==e))return this._lazy=this._pt=0,this.parent?Ai(this):this;if(this.timeline){var n=this.timeline.totalDuration();return this.timeline.killTweensOf(t,e,ra&&!0!==ra.vars.overwrite)._first||Ai(this),this.parent&&n!==this.timeline.totalDuration()&&hi(this,this._dur*this.timeline._tDur/n,0,1),this}var r,i,a,s,o,u,h,l=this._targets,c=t?_i(t):l,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}(l,c))return"all"===e&&(this._pt=0),Ai(this);for(r=this._op=this._op||[],"all"!==e&&(Qn(e)&&(o={},Nr(e,(function(t){return o[t]=1})),e=o),e=function(t,e){var n,r,i,a,s=t[0]?Pr(t[0]).harness:0,o=s&&s.aliases;if(!o)return e;for(r in n=Hr({},e),o)if(r in n)for(i=(a=o[r].split(",")).length;i--;)n[a[i]]=n[r];return n}(l,e)),h=l.length;h--;)if(~c.indexOf(l[h]))for(o in i=f[h],"all"===e?(r[h]=e,s=i,a={}):(a=r[h]=r[h]||{},s=e),s)(u=i&&i[o])&&("kill"in u.d&&!0!==u.d.kill(o)||Gr(this,u,"_pt"),delete i[o]),"all"!==a&&(a[o]=1);return this._initted&&!this._pt&&d&&Ai(this),this},e.to=function(t,n){return new e(t,n,arguments[2])},e.from=function(t,e){return di(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 di(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 yn.killTweensOf(t,e,n)},e}(ea);Ur(fa.prototype,{_targets:[],_lazy:0,_startAt:0,_op:0,_onInit:0}),Nr("staggerTo,staggerFrom,staggerFromTo",(function(t){fa[t]=function(){var e=new na,n=vi.call(arguments,0);return n.splice("staggerFromTo"===t?5:4,0,0),e[t].apply(e,n)}}));var da=function(t,e,n){return t[e]=n},pa=function(t,e,n){return t[e](n)},ma=function(t,e,n,r){return t[e](r.fp,n)},ga=function(t,e,n){return t.setAttribute(e,n)},va=function(t,e){return tr(t[e])?pa:nr(t[e])&&t.setAttribute?ga:da},ya=function(t,e){return e.set(e.t,e.p,Math.round(1e6*(e.s+e.c*t))/1e6,e)},ba=function(t,e){return e.set(e.t,e.p,!!(e.s+e.c*t),e)},_a=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)},wa=function(t,e){for(var n=e._pt;n;)n.r(t,n.d),n=n._next},Da=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},Sa=function(t){for(var e,n,r=this._pt;r;)n=r._next,r.p===t&&!r.op||r.op===t?Gr(this,r,"_pt"):r.dep||(e=1),r=n;return!e},Ta=function(t,e,n,r){r.mSet(t,e,r.m.call(r.tween,n,r.mt),r)},xa=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},Ea=function(){function t(t,e,n,r,i,a,s,o,u){this.t=e,this.s=r,this.c=i,this.p=n,this.r=a||ya,this.d=s||this,this.set=o||da,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=Ta,this.m=t,this.mt=n,this.tween=e},t}();Nr(Cr+"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 Sr[t]=1})),gr.TweenMax=gr.TweenLite=fa,gr.TimelineLite=gr.TimelineMax=na,yn=new na({sortChildren:!1,defaults:Wn,autoRemoveChildren:!0,id:"root",smoothChildTiming:!0}),qn.stringFilter=ji;var Oa={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 Pi(t)}))},timeline:function(t){return new na(t)},getTweensOf:function(t,e){return yn.getTweensOf(t,e)},getProperty:function(t,e,n,r){Qn(t)&&(t=_i(t)[0]);var i=Pr(t||{}).get,a=n?Fr:jr;return"native"===n&&(n=""),t?e?a((Er[e]&&Er[e].get||i)(t,e,n,r)):function(e,n,r){return a((Er[e]&&Er[e].get||i)(t,e,n,r))}:t},quickSetter:function(t,e,n){if((t=_i(t)).length>1){var r=t.map((function(t){return Ca.quickSetter(t,e,n)})),i=r.length;return function(t){for(var e=i;e--;)r[e](t)}}t=t[0]||{};var a=Er[e],s=Pr(t),o=s.harness&&(s.harness.aliases||{})[e]||e,u=a?function(e){var r=new a;Tn._pt=0,r.init(t,n?e+n:e,Tn,0,[t]),r.render(1,r),Tn._pt&&wa(1,Tn)}:s.set(t,o);return a?u:function(e){return u(t,o,n?e+n:e,s,1)}},isTweening:function(t){return yn.getTweensOf(t,!0).length>0},defaults:function(t){return t&&t.ease&&(t.ease=Ki(t.ease,Wn.ease)),zr(Wn,t||{})},config:function(t){return zr(qn,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&&!Er[t]&&!gr[t]&&_r(e+" effect requires "+t+" plugin.")})),Or[e]=function(t,e,r){return n(_i(t),Ur(e||{},i),r)},a&&(na.prototype[e]=function(t,n,r){return this.add(Or[e](t,rr(n)?n:(r=n)&&{},this),r)})},registerEase:function(t,e){Hi[t]=Ki(e)},parseEase:function(t,e){return arguments.length?Ki(t,e):Hi},getById:function(t){return yn.getById(t)},exportRoot:function(t,e){void 0===t&&(t={});var n,r,i=new na(t);for(i.smoothChildTiming=ir(t.smoothChildTiming),yn.remove(i),i._dp=0,i._time=i._tTime=yn._time,n=yn._first;n;)r=n._next,!e&&!n._dur&&n instanceof fa&&n.vars.onComplete===n._targets[0]||ii(i,n,n._start-n._delay),n=r;return ii(yn,i,0),i},utils:{wrap:function t(e,n,r){var i=n-e;return ur(e)?Ei(e,t(0,e.length),n):pi(r,(function(t){return(i+(t-e)%i)%i+e}))},wrapYoyo:function t(e,n,r){var i=n-e,a=2*i;return ur(e)?Ei(e,t(0,e.length-1),n):pi(r,(function(t){return e+((t=(a+(t-e)%a)%a||0)>i?a-t:t)}))},distribute:Di,random:xi,snap:Ti,normalize:function(t,e,n){return Mi(t,e,0,1,n)},getUnit:gi,clamp:function(t,e,n){return pi(n,(function(n){return mi(t,e,n)}))},splitColor:Vi,toArray:_i,selector:function(t){return t=_i(t)[0]||_r("Invalid scope")||{},function(e){var n=t.current||t.nativeElement||t;return _i(e,n.querySelectorAll?n:n===t?_r("Invalid scope")||wn.createElement("div"):t)}},mapRange:Mi,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||gi(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 s,o,u,h,l,c=Qn(e),f={};if(!0===r&&(i=1)&&(r=null),c)e={p:e},n={p:n};else if(ur(e)&&!ur(n)){for(u=[],h=e.length,l=h-2,o=1;o<h;o++)u.push(t(e[o-1],e[o]));h--,a=function(t){t*=h;var e=Math.min(l,~~t);return u[e](t-e)},r=n}else i||(e=Hr(ur(e)?[]:{},e));if(!u){for(s in n)aa.call(f,e,s,"get",n[s]);a=function(t){return wa(t,f)||(c?e.p:e)}}}return pi(r,a)},shuffle:wi},install:yr,effects:Or,ticker:Fi,updateRoot:na.updateRoot,plugins:Er,globalTimeline:yn,core:{PropTween:Ea,globals:wr,Tween:fa,Timeline:na,Animation:ea,getCache:Pr,_removeLinkedListItem:Gr,suppressOverwrites:function(t){return vn=t}}};Nr("to,from,fromTo,delayedCall,set,killTweensOf",(function(t){return Oa[t]=fa[t]})),Fi.add(na.updateRoot),Tn=Oa.to({},{duration:0});var Ma=function(t,e){for(var n=t._pt;n&&n.p!==e&&n.op!==e&&n.fp!==e;)n=n._next;return n},ka=function(t,e){return{name:t,rawVars:1,init:function(t,n,r){r._onInit=function(t){var r,i;if(Qn(n)&&(r={},Nr(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=Ma(i,n)),i&&i.modifier&&i.modifier(e[n],t,a[r],n))}(t,n)}}}},Ca=Oa.registerPlugin({name:"attr",init:function(t,e,n,r,i){var a,s;for(a in e)(s=this.add(t,"setAttribute",(t.getAttribute(a)||0)+"",e[a],r,i,0,0,a))&&(s.op=a),this._props.push(a)}},{name:"endArray",init:function(t,e){for(var n=e.length;n--;)this.add(t,n,t[n]||0,e[n])}},ka("roundProps",Si),ka("modifiers"),ka("snap",Ti))||Oa;fa.version=na.version=Ca.version="3.9.0",Dn=1,ar()&&Ui(),Hi.Power0,Hi.Power1,Hi.Power2,Hi.Power3,Hi.Power4,Hi.Linear,Hi.Quad,Hi.Cubic,Hi.Quart,Hi.Quint,Hi.Strong,Hi.Elastic,Hi.Back,Hi.SteppedEase,Hi.Bounce,Hi.Sine,Hi.Expo,Hi.Circ;
27
+ */var bn,_n,wn,Dn,Sn,Tn,xn,En,On,Mn,kn,Cn,An,Pn,Rn,Nn,Vn,In,Bn,Yn,Ln,jn,Fn,Un,Hn,zn,qn,Wn,Gn={autoSleep:120,force3D:"auto",nullTargetWarn:1,units:{lineHeight:""}},Zn={duration:.5,overwrite:!1,delay:0},Kn=2*Math.PI,$n=Kn/4,Xn=0,Jn=Math.sqrt,Qn=Math.cos,tr=Math.sin,er=function(t){return"string"==typeof t},nr=function(t){return"function"==typeof t},rr=function(t){return"number"==typeof t},ir=function(t){return void 0===t},ar=function(t){return"object"==typeof t},sr=function(t){return!1!==t},or=function(){return"undefined"!=typeof window},ur=function(t){return nr(t)||er(t)},lr="function"==typeof ArrayBuffer&&ArrayBuffer.isView||function(){},hr=Array.isArray,cr=/(?:-?\.?\d|\.)+/gi,fr=/[-+=.]*\d+[.e\-+]*\d*[e\-+]*\d*/g,dr=/[-+=.]*\d+[.e-]*\d*[a-z%]*/g,pr=/[-+=.]*\d+\.?\d*(?:e-|e\+)?\d*/gi,mr=/[+-]=-?[.\d]+/,gr=/[^,'"\[\]\s]+/gi,vr=/[\d.+\-=]+(?:e[-+]\d*)*/i,yr={},br={},_r=function(t){return(br=qr(t,yr))&&Pa},wr=function(t,e){return console.warn("Invalid property",t,"set to",e,"Missing plugin? gsap.registerPlugin()")},Dr=function(t,e){return!e&&console.warn(t)},Sr=function(t,e){return t&&(yr[t]=e)&&br&&(br[t]=e)||yr},Tr=function(){return 0},xr={},Er=[],Or={},Mr={},kr={},Cr=30,Ar=[],Pr="",Rr=function(t){var e,n,r=t[0];if(ar(r)||nr(r)||(t=[t]),!(e=(r._gsap||{}).harness)){for(n=Ar.length;n--&&!Ar[n].targetTest(r););e=Ar[n]}for(n=t.length;n--;)t[n]&&(t[n]._gsap||(t[n]._gsap=new na(t[n],e)))||t.splice(n,1);return t},Nr=function(t){return t._gsap||Rr(Di(t))[0]._gsap},Vr=function(t,e,n){return(n=t[e])&&nr(n)?t[e]():ir(n)&&t.getAttribute&&t.getAttribute(e)||n},Ir=function(t,e){return(t=t.split(",")).forEach(e)||t},Br=function(t){return Math.round(1e5*t)/1e5||0},Yr=function(t){return Math.round(1e7*t)/1e7||0},Lr=function(t,e){for(var n=e.length,r=0;t.indexOf(e[r])<0&&++r<n;);return r<n},jr=function(){var t,e,n=Er.length,r=Er.slice(0);for(Or={},Er.length=0,t=0;t<n;t++)(e=r[t])&&e._lazy&&(e.render(e._lazy[0],e._lazy[1],!0)._lazy=0)},Fr=function(t,e,n,r){Er.length&&jr(),t.render(e,n,r),Er.length&&jr()},Ur=function(t){var e=parseFloat(t);return(e||0===e)&&(t+"").match(gr).length<2?e:er(t)?t.trim():t},Hr=function(t){return t},zr=function(t,e){for(var n in e)n in t||(t[n]=e[n]);return t},qr=function(t,e){for(var n in e)t[n]=e[n];return t},Wr=function t(e,n){for(var r in n)"__proto__"!==r&&"constructor"!==r&&"prototype"!==r&&(e[r]=ar(n[r])?t(e[r]||(e[r]={}),n[r]):n[r]);return e},Gr=function(t,e){var n,r={};for(n in t)n in e||(r[n]=t[n]);return r},Zr=function(t){var e,n=t.parent||_n,r=t.keyframes?(e=hr(t.keyframes),function(t,n){for(var r in n)r in t||"duration"===r&&e||"ease"===r||(t[r]=n[r])}):zr;if(sr(t.inherit))for(;n;)r(t,n.vars.defaults),n=n.parent||n._dp;return t},Kr=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},$r=function(t,e){t.parent&&(!e||t.parent.autoRemoveChildren)&&t.parent.remove(t),t._act=0},Xr=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},Jr=function(t){for(var e=t.parent;e&&e.parent;)e._dirty=1,e.totalDuration(),e=e.parent;return t},Qr=function t(e){return!e||e._ts&&t(e.parent)},ti=function(t){return t._repeat?ei(t._tTime,t=t.duration()+t._rDelay)*t:0},ei=function(t,e){var n=Math.floor(t/=e);return t&&n===t?n-1:n},ni=function(t,e){return(t-e._start)*e._ts+(e._ts>=0?0:e._dirty?e.totalDuration():e._tDur)},ri=function(t){return t._end=Yr(t._start+(t._tDur/Math.abs(t._ts||t._rts||1e-8)||0))},ii=function(t,e){var n=t._dp;return n&&n.smoothChildTiming&&t._ts&&(t._start=Yr(n._time-(t._ts>0?e/t._ts:((t._dirty?t.totalDuration():t._tDur)-e)/-t._ts)),ri(t),n._dirty||Xr(n,t)),t},ai=function(t,e){var n;if((e._time||e._initted&&!e._dur)&&(n=ni(t.rawTime(),e),(!e._dur||vi(0,e.totalDuration(),n)-e._tTime>1e-8)&&e.render(n,!0)),Xr(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}},si=function(t,e,n,r){return e.parent&&$r(e),e._start=Yr((rr(n)?n:n||t!==_n?pi(t,n,e):t._time)+e._delay),e._end=Yr(e._start+(e.totalDuration()/Math.abs(e.timeScale())||0)),function(t,e,n,r,i){void 0===n&&(n="_first"),void 0===r&&(r="_last");var a,s=t[r];if(i)for(a=e[i];s&&s[i]>a;)s=s._prev;s?(e._next=s._next,s._next=e):(e._next=t[n],t[n]=e),e._next?e._next._prev=e:t[r]=e,e._prev=s,e.parent=e._dp=t}(t,e,"_first","_last",t._sort?"_start":0),hi(e)||(t._recent=e),r||ai(t,e),t},oi=function(t,e){return(yr.ScrollTrigger||wr("scrollTrigger",e))&&yr.ScrollTrigger.create(e,t)},ui=function(t,e,n,r){return la(t,e),t._initted?!n&&t._pt&&(t._dur&&!1!==t.vars.lazy||!t._dur&&t.vars.lazy)&&xn!==Hi.frame?(Er.push(t),t._lazy=[e,r],1):void 0:1},li=function t(e){var n=e.parent;return n&&n._ts&&n._initted&&!n._lock&&(n.rawTime()<0||t(n))},hi=function(t){var e=t.data;return"isFromStart"===e||"isStart"===e},ci=function(t,e,n,r){var i=t._repeat,a=Yr(e)||0,s=t._tTime/t._tDur;return s&&!r&&(t._time*=a/t._dur),t._dur=a,t._tDur=i?i<0?1e10:Yr(a*(i+1)+t._rDelay*i):a,s>0&&!r?ii(t,t._tTime=t._tDur*s):t.parent&&ri(t),n||Xr(t.parent,t),t},fi=function(t){return t instanceof ia?Xr(t):ci(t,t._dur)},di={_start:0,endTime:Tr,totalDuration:Tr},pi=function t(e,n,r){var i,a,s,o=e.labels,u=e._recent||di,l=e.duration()>=1e8?u.endTime(!1):e._dur;return er(n)&&(isNaN(n)||n in o)?(a=n.charAt(0),s="%"===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)*(s?(i<0?u:r).totalDuration()/100:1)):i<0?(n in o||(o[n]=l),o[n]):(a=parseFloat(n.charAt(i-1)+n.substr(i+1)),s&&r&&(a=a/100*(hr(r)?r[0]:r).totalDuration()),i>1?t(e,n.substr(0,i-1),r)+a:l+a)):null==n?l:+n},mi=function(t,e,n){var r,i,a=rr(e[1]),s=(a?2:1)+(t<2?0:1),o=e[s];if(a&&(o.duration=e[1]),o.parent=n,t){for(r=o,i=n;i&&!("immediateRender"in r);)r=i.vars.defaults||{},i=sr(i.vars.inherit)&&i.parent;o.immediateRender=sr(r.immediateRender),t<2?o.runBackwards=1:o.startAt=e[s-1]}return new pa(e[0],o,e[s+1])},gi=function(t,e){return t||0===t?e(t):e},vi=function(t,e,n){return n<t?t:n>e?e:n},yi=function(t,e){return er(t)&&(e=vr.exec(t))?t.substr(e.index+e[0].length):""},bi=[].slice,_i=function(t,e){return t&&ar(t)&&"length"in t&&(!e&&!t.length||t.length-1 in t&&ar(t[0]))&&!t.nodeType&&t!==wn},wi=function(t,e,n){return void 0===n&&(n=[]),t.forEach((function(t){var r;return er(t)&&!e||_i(t,1)?(r=n).push.apply(r,Di(t)):n.push(t)}))||n},Di=function(t,e,n){return!er(t)||n||!Dn&&zi()?hr(t)?wi(t,n):_i(t)?bi.call(t,0):t?[t]:[]:bi.call((e||Sn).querySelectorAll(t),0)},Si=function(t){return t.sort((function(){return.5-Math.random()}))},Ti=function(t){if(nr(t))return t;var e=ar(t)?t:{each:t},n=Xi(e.ease),r=e.from||0,i=parseFloat(e.base)||0,a={},s=r>0&&r<1,o=isNaN(r)||s,u=e.axis,l=r,h=r;return er(r)?l=h={center:.5,edges:.5,end:1}[r]||0:!s&&o&&(l=r[0],h=r[1]),function(t,s,c){var f,d,p,m,g,v,y,b,_,w=(c||e).length,D=a[w];if(!D){if(!(_="auto"===e.grid?0:(e.grid||[1,1e8])[1])){for(y=-1e8;y<(y=c[_++].getBoundingClientRect().left)&&_<w;);_--}for(D=a[w]=[],f=o?Math.min(_,w)*l-.5:r%_,d=1e8===_?0:o?w*h/_-.5:r/_|0,y=0,b=1e8,v=0;v<w;v++)p=v%_-f,m=d-(v/_|0),D[v]=g=u?Math.abs("y"===u?m:p):Jn(p*p+m*m),g>y&&(y=g),g<b&&(b=g);"random"===r&&Si(D),D.max=y-b,D.min=b,D.v=w=(parseFloat(e.amount)||parseFloat(e.each)*(_>w?w-1:u?"y"===u?w/_:_:Math.max(_,w/_))||0)*("edges"===r?-1:1),D.b=w<0?i-w:i,D.u=yi(e.amount||e.each)||0,n=n&&w<0?Ki(n):n}return w=(D[t]-D.min)/D.max||0,Yr(D.b+(n?n(w):w)*D.v)+D.u}},xi=function(t){var e=Math.pow(10,((t+"").split(".")[1]||"").length);return function(n){var r=Math.round(parseFloat(n)/t)*t*e;return(r-r%1)/e+(rr(n)?0:yi(n))}},Ei=function(t,e){var n,r,i=hr(t);return!i&&ar(t)&&(n=i=t.radius||1e8,t.values?(t=Di(t.values),(r=!rr(t[0]))&&(n*=n)):t=xi(t.increment)),gi(e,i?nr(t)?function(e){return r=t(e),Math.abs(r-e)<=n?r:e}:function(e){for(var i,a,s=parseFloat(r?e.x:e),o=parseFloat(r?e.y:0),u=1e8,l=0,h=t.length;h--;)(i=r?(i=t[h].x-s)*i+(a=t[h].y-o)*a:Math.abs(t[h]-s))<u&&(u=i,l=h);return l=!n||u<=n?t[l]:e,r||l===e||rr(e)?l:l+yi(e)}:xi(t))},Oi=function(t,e,n,r){return gi(hr(t)?!e:!0===n?!!(n=0):!r,(function(){return hr(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}))},Mi=function(t,e,n){return gi(n,(function(n){return t[~~e(n)]}))},ki=function(t){for(var e,n,r,i,a=0,s="";~(e=t.indexOf("random(",a));)r=t.indexOf(")",e),i="["===t.charAt(e+7),n=t.substr(e+7,r-e-7).match(i?gr:cr),s+=t.substr(a,e-a)+Oi(i?n:+n[0],i?0:+n[1],+n[2]||1e-5),a=r+1;return s+t.substr(a,t.length-a)},Ci=function(t,e,n,r,i){var a=e-t,s=r-n;return gi(i,(function(e){return n+((e-t)/a*s||0)}))},Ai=function(t,e,n){var r,i,a,s=t.labels,o=1e8;for(r in s)(i=s[r]-e)<0==!!n&&i&&o>(i=Math.abs(i))&&(a=r,o=i);return a},Pi=function(t,e,n){var r,i,a=t.vars,s=a[e];if(s)return r=a[e+"Params"],i=a.callbackScope||t,n&&Er.length&&jr(),r?s.apply(i,r):s.call(i)},Ri=function(t){return $r(t),t.scrollTrigger&&t.scrollTrigger.kill(!1),t.progress()<1&&Pi(t,"onInterrupt"),t},Ni=function(t){var e=(t=!t.name&&t.default||t).name,n=nr(t),r=e&&!n&&t.init?function(){this._props=[]}:t,i={init:Tr,render:Sa,add:oa,kill:xa,modifier:Ta,rawVars:0},a={targetTest:0,get:0,getSetter:ba,aliases:{},register:0};if(zi(),t!==r){if(Mr[e])return;zr(r,zr(Gr(t,i),a)),qr(r.prototype,qr(i,Gr(t,a))),Mr[r.prop=e]=r,t.targetTest&&(Ar.push(r),xr[e]=1),e=("css"===e?"CSS":e.charAt(0).toUpperCase()+e.substr(1))+"Plugin"}Sr(e,r),t.register&&t.register(Pa,r,Ma)},Vi={aqua:[0,255,255],lime:[0,255,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,255],navy:[0,0,128],white:[255,255,255],olive:[128,128,0],yellow:[255,255,0],orange:[255,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[255,0,0],pink:[255,192,203],cyan:[0,255,255],transparent:[255,255,255,0]},Ii=function(t,e,n){return 255*(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)+.5|0},Bi=function(t,e,n){var r,i,a,s,o,u,l,h,c,f,d=t?rr(t)?[t>>16,t>>8&255,255&t]:0:Vi.black;if(!d){if(","===t.substr(-1)&&(t=t.substr(0,t.length-1)),Vi[t])d=Vi[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&255,255&d,parseInt(t.substr(7),16)/255];d=[(t=parseInt(t.substr(1),16))>>16,t>>8&255,255&t]}else if("hsl"===t.substr(0,3))if(d=f=t.match(cr),e){if(~t.indexOf("="))return d=t.match(fr),n&&d.length<4&&(d[3]=1),d}else s=+d[0]%360/360,o=+d[1]/100,r=2*(u=+d[2]/100)-(i=u<=.5?u*(o+1):u+o-u*o),d.length>3&&(d[3]*=1),d[0]=Ii(s+1/3,r,i),d[1]=Ii(s,r,i),d[2]=Ii(s-1/3,r,i);else d=t.match(cr)||Vi.transparent;d=d.map(Number)}return e&&!f&&(r=d[0]/255,i=d[1]/255,a=d[2]/255,u=((l=Math.max(r,i,a))+(h=Math.min(r,i,a)))/2,l===h?s=o=0:(c=l-h,o=u>.5?c/(2-l-h):c/(l+h),s=l===r?(i-a)/c+(i<a?6:0):l===i?(a-r)/c+2:(r-i)/c+4,s*=60),d[0]=~~(s+.5),d[1]=~~(100*o+.5),d[2]=~~(100*u+.5)),n&&d.length<4&&(d[3]=1),d},Yi=function(t){var e=[],n=[],r=-1;return t.split(ji).forEach((function(t){var i=t.match(dr)||[];e.push.apply(e,i),n.push(r+=i.length+1)})),e.c=n,e},Li=function(t,e,n){var r,i,a,s,o="",u=(t+o).match(ji),l=e?"hsla(":"rgba(",h=0;if(!u)return t;if(u=u.map((function(t){return(t=Bi(t,e,1))&&l+(e?t[0]+","+t[1]+"%,"+t[2]+"%,"+t[3]:t.join(","))+")"})),n&&(a=Yi(t),(r=n.c).join(o)!==a.c.join(o)))for(s=(i=t.replace(ji,"1").split(dr)).length-1;h<s;h++)o+=i[h]+(~r.indexOf(h)?u.shift()||l+"0,0,0,0)":(a.length?a:u.length?u:n).shift());if(!i)for(s=(i=t.split(ji)).length-1;h<s;h++)o+=i[h]+u[h];return o+i[s]},ji=function(){var t,e="(?:\\b(?:(?:rgb|rgba|hsl|hsla)\\(.+?\\))|\\B#(?:[0-9a-f]{3,4}){1,2}\\b";for(t in Vi)e+="|"+t+"\\b";return new RegExp(e+")","gi")}(),Fi=/hsl[a]?\(/,Ui=function(t){var e,n=t.join(" ");if(ji.lastIndex=0,ji.test(n))return e=Fi.test(n),t[1]=Li(t[1],e),t[0]=Li(t[0],e,Yi(t[1])),!0},Hi=(Nn=Date.now,Vn=500,In=33,Bn=Nn(),Yn=Bn,jn=Ln=1e3/240,Un=function t(e){var n,r,i,a,s=Nn()-Yn,o=!0===e;if(s>Vn&&(Bn+=s-In),((n=(i=(Yn+=s)-Bn)-jn)>0||o)&&(a=++An.frame,Pn=i-1e3*An.time,An.time=i/=1e3,jn+=n+(n>=Ln?4:Ln-n),r=1),o||(Mn=kn(t)),r)for(Rn=0;Rn<Fn.length;Rn++)Fn[Rn](i,Pn,a,e)},An={time:0,frame:0,tick:function(){Un(!0)},deltaRatio:function(t){return Pn/(1e3/(t||60))},wake:function(){Tn&&(!Dn&&or()&&(wn=Dn=window,Sn=wn.document||{},yr.gsap=Pa,(wn.gsapVersions||(wn.gsapVersions=[])).push(Pa.version),_r(br||wn.GreenSockGlobals||!wn.gsap&&wn||{}),Cn=wn.requestAnimationFrame),Mn&&An.sleep(),kn=Cn||function(t){return setTimeout(t,jn-1e3*An.time+1|0)},On=1,Un(2))},sleep:function(){(Cn?wn.cancelAnimationFrame:clearTimeout)(Mn),On=0,kn=Tr},lagSmoothing:function(t,e){Vn=t||1/1e-8,In=Math.min(e,Vn,0)},fps:function(t){Ln=1e3/(t||240),jn=1e3*An.time+Ln},add:function(t){Fn.indexOf(t)<0&&Fn.push(t),zi()},remove:function(t,e){~(e=Fn.indexOf(t))&&Fn.splice(e,1)&&Rn>=e&&Rn--},_listeners:Fn=[]}),zi=function(){return!On&&Hi.wake()},qi={},Wi=/^[\d.\-M][\d.\-,\s]/,Gi=/["']/g,Zi=function(t){for(var e,n,r,i={},a=t.substr(1,t.length-3).split(":"),s=a[0],o=1,u=a.length;o<u;o++)n=a[o],e=o!==u-1?n.lastIndexOf(","):n.length,r=n.substr(0,e),i[s]=isNaN(r)?r.replace(Gi,"").trim():+r,s=n.substr(e+1).trim();return i},Ki=function(t){return function(e){return 1-t(1-e)}},$i=function t(e,n){for(var r,i=e._first;i;)i instanceof ia?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},Xi=function(t,e){return t&&(nr(t)?t:qi[t]||function(t){var e=(t+"").split("("),n=qi[e[0]];return n&&e.length>1&&n.config?n.config.apply(null,~t.indexOf("{")?[Zi(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(Ur)):qi._CE&&Wi.test(t)?qi._CE("",t):n}(t))||e},Ji=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 Ir(t,(function(t){for(var e in qi[t]=yr[t]=a,qi[i=t.toLowerCase()]=n,a)qi[i+("easeIn"===e?".in":"easeOut"===e?".out":".inOut")]=qi[t+"."+e]=a[e]})),a},Qi=function(t){return function(e){return e<.5?(1-t(1-2*e))/2:.5+t(2*(e-.5))/2}},ta=function t(e,n,r){var i=n>=1?n:1,a=(r||(e?.3:.45))/(n<1?n:1),s=a/Kn*(Math.asin(1/i)||0),o=function(t){return 1===t?1:i*Math.pow(2,-10*t)*tr((t-s)*a)+1},u="out"===e?o:"in"===e?function(t){return 1-o(1-t)}:Qi(o);return a=Kn/a,u.config=function(n,r){return t(e,n,r)},u},ea=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)}:Qi(r);return i.config=function(n){return t(e,n)},i};Ir("Linear,Quad,Cubic,Quart,Quint,Strong",(function(t,e){var n=e<5?e+1:e;Ji(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}))})),qi.Linear.easeNone=qi.none=qi.Linear.easeIn,Ji("Elastic",ta("in"),ta("out"),ta()),Hn=7.5625,qn=1/(zn=2.75),Ji("Bounce",(function(t){return 1-Wn(1-t)}),Wn=function(t){return t<qn?Hn*t*t:t<.7272727272727273?Hn*Math.pow(t-1.5/zn,2)+.75:t<.9090909090909092?Hn*(t-=2.25/zn)*t+.9375:Hn*Math.pow(t-2.625/zn,2)+.984375}),Ji("Expo",(function(t){return t?Math.pow(2,10*(t-1)):0})),Ji("Circ",(function(t){return-(Jn(1-t*t)-1)})),Ji("Sine",(function(t){return 1===t?1:1-Qn(t*$n)})),Ji("Back",ea("in"),ea("out"),ea()),qi.SteppedEase=qi.steps=yr.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*vi(0,.99999999,t)|0)+i)*n}}},Zn.ease=qi["quad.out"],Ir("onComplete,onUpdate,onStart,onRepeat,onReverseComplete,onInterrupt",(function(t){return Pr+=t+","+t+"Params,"}));var na=function(t,e){this.id=Xn++,t._gsap=this,this.target=t,this.harness=e,this.get=e?e.get:Vr,this.set=e?e.getSetter:ba},ra=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,ci(this,+t.duration,1,1),this.data=t.data,On||Hi.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,ci(this,this._repeat<0?t:(t-this._repeat*this._rDelay)/(this._repeat+1))):this._tDur},e.totalTime=function(t,e){if(zi(),!arguments.length)return this._tTime;var n=this._dp;if(n&&n.smoothChildTiming&&this._ts){for(ii(this,t),!n._dp||n.parent||ai(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)&&si(this._dp,this,this._start-this._delay)}return(this._tTime!==t||!this._dur&&!e||this._initted&&1e-8===Math.abs(this._zTime)||!t&&!this._initted&&(this.add||this._ptLookup))&&(this._ts||(this._pTime=t),Fr(this,t,e)),this},e.time=function(t,e){return arguments.length?this.totalTime(Math.min(this.totalDuration(),t+ti(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)+ti(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?ei(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?ni(this.parent._time,this):this._tTime;return this._rts=+t||0,this._ts=this._ps||-1e-8===t?0:this._rts,Jr(this.totalTime(vi(-this._delay,this._tDur,e),!0)),ri(this),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):(zi(),this._ts=this._rts,this.totalTime(this.parent&&!this.parent.smoothChildTiming?this.rawTime():this._tTime||this._pTime,1===this.progress()&&1e-8!==Math.abs(this._zTime)&&(this._tTime-=1e-8)))),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)&&si(e,this,t-this._delay),this}return this._start},e.endTime=function(t){return this._start+(sr(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?ni(e.rawTime(t),this):this._tTime:this._tTime},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 n},e.repeat=function(t){return arguments.length?(this._repeat=t===1/0?-2:t,fi(this)):-2===this._repeat?1/0:this._repeat},e.repeatDelay=function(t){if(arguments.length){var e=this._time;return this._rDelay=t,fi(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(pi(this,t),sr(e))},e.restart=function(t,e){return this.play().totalTime(t?-this._delay:0,sr(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)-1e-8))},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=nr(t)?t:Hr,i=function(){var t=e.then;e.then=null,nr(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(){Ri(this)},t}();zr(ra.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 ia=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=sr(e.sortChildren),_n&&si(e.parent||_n,vn(r),n),e.reversed&&r.reverse(),e.paused&&r.paused(!0),e.scrollTrigger&&oi(vn(r),e.scrollTrigger),r}yn(e,t);var n=e.prototype;return n.to=function(t,e,n){return mi(0,arguments,this),this},n.from=function(t,e,n){return mi(1,arguments,this),this},n.fromTo=function(t,e,n,r){return mi(2,arguments,this),this},n.set=function(t,e,n){return e.duration=0,e.parent=this,Zr(e).repeatDelay||(e.repeat=0),e.immediateRender=!!e.immediateRender,new pa(t,e,pi(this,n),1),this},n.call=function(t,e,n){return si(this,pa.delayedCall(0,t,e),n)},n.staggerTo=function(t,e,n,r,i,a,s){return n.duration=e,n.stagger=n.stagger||r,n.onComplete=a,n.onCompleteParams=s,n.parent=this,new pa(t,n,pi(this,i)),this},n.staggerFrom=function(t,e,n,r,i,a,s){return n.runBackwards=1,Zr(n).immediateRender=sr(n.immediateRender),this.staggerTo(t,e,n,r,i,a,s)},n.staggerFromTo=function(t,e,n,r,i,a,s,o){return r.startAt=n,Zr(r).immediateRender=sr(r.immediateRender),this.staggerTo(t,e,r,i,a,s,o)},n.render=function(t,e,n){var r,i,a,s,o,u,l,h,c,f,d,p,m=this._time,g=this._dirty?this.totalDuration():this._tDur,v=this._dur,y=t<=0?0:Yr(t),b=this._zTime<0!=t<0&&(this._initted||!v);if(this!==_n&&y>g&&t>=0&&(y=g),y!==this._tTime||n||b){if(m!==this._time&&v&&(y+=this._time-m,t+=this._time-m),r=y,c=this._start,u=!(h=this._ts),b&&(v||(m=this._zTime),(t||!e)&&(this._zTime=t)),this._repeat){if(d=this._yoyo,o=v+this._rDelay,this._repeat<-1&&t<0)return this.totalTime(100*o+t,e,n);if(r=Yr(y%o),y===g?(s=this._repeat,r=v):((s=~~(y/o))&&s===y/o&&(r=v,s--),r>v&&(r=v)),f=ei(this._tTime,o),!m&&this._tTime&&f!==s&&(f=s),d&&1&s&&(r=v-r,p=1),s!==f&&!this._lock){var _=d&&1&f,w=_===(d&&1&s);if(s<f&&(_=!_),m=_?0:v,this._lock=1,this.render(m||(p?0:Yr(s*o)),e,!v)._lock=0,this._tTime=y,!e&&this.parent&&Pi(this,"onRepeat"),this.vars.repeatRefresh&&!p&&(this.invalidate()._lock=1),m&&m!==this._time||u!==!this._ts||this.vars.onRepeat&&!this.parent&&!this._act)return this;if(v=this._dur,g=this._tDur,w&&(this._lock=2,m=_?v:-1e-4,this.render(m,!0),this.vars.repeatRefresh&&!p&&this.invalidate()),this._lock=0,!this._ts&&!u)return this;$i(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,Yr(m),Yr(r)),l&&(y-=r-(r=l._start))),this._tTime=y,this._time=r,this._act=!h,this._initted||(this._onUpdate=this.vars.onUpdate,this._initted=1,this._zTime=t,m=0),!m&&r&&!e&&(Pi(this,"onStart"),this._tTime!==y))return this;if(r>=m&&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!==this._time||!this._ts&&!u){l=0,a&&(y+=this._zTime=D?-1e-8:1e-8);break}}i=a}}if(l&&!e&&(this.pause(),l.render(r>=m?0:-1e-8)._zTime=r>=m?1:-1,this._ts))return this._start=c,ri(this),this.render(t,e,n);this._onUpdate&&!e&&Pi(this,"onUpdate",!0),(y===g&&g>=this.totalDuration()||!y&&m)&&(c!==this._start&&Math.abs(h)===Math.abs(this._ts)||this._lock||((t||!v)&&(y===g&&this._ts>0||!y&&this._ts<0)&&$r(this,1),e||t<0&&!m||!y&&!m&&g||(Pi(this,y===g&&t>=0?"onComplete":"onReverseComplete",!0),this._prom&&!(y<g&&this.timeScale()>0)&&this._prom())))}return this},n.add=function(t,e){var n=this;if(rr(e)||(e=pi(this,e,t)),!(t instanceof ra)){if(hr(t))return t.forEach((function(t){return n.add(t,e)})),this;if(er(t))return this.addLabel(t,e);if(!nr(t))return this;t=pa.delayedCall(0,t)}return this!==t?si(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 pa?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 er(t)?this.removeLabel(t):nr(t)?this.killTweensOf(t):(Kr(this,t),t===this._recent&&(this._recent=this._last),Xr(this))},n.totalTime=function(e,n){return arguments.length?(this._forcing=1,!this._dp&&this._ts&&(this._start=Yr(Hi.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]=pi(this,e),this},n.removeLabel=function(t){return delete this.labels[t],this},n.addPause=function(t,e,n){var r=pa.delayedCall(0,e||Tr,n);return r.data="isPause",this._hasPause=1,si(this,r,pi(this,t))},n.removePause=function(t){var e=this._first;for(t=pi(this,t);e;)e._start===t&&"isPause"===e.data&&$r(e),e=e._next},n.killTweensOf=function(t,e,n){for(var r=this.getTweensOf(t,n),i=r.length;i--;)aa!==r[i]&&r[i].kill(t,e);return this},n.getTweensOf=function(t,e){for(var n,r=[],i=Di(t),a=this._first,s=rr(e);a;)a instanceof pa?Lr(a._targets,i)&&(s?(!aa||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=pi(r,t),a=e,s=a.startAt,o=a.onStart,u=a.onStartParams,l=a.immediateRender,h=pa.to(r,zr({ease:e.ease||"none",lazy:!1,immediateRender:!1,time:i,overwrite:"auto",duration:e.duration||Math.abs((i-(s&&"time"in s?s.time:r._time))/r.timeScale())||1e-8,onStart:function(){if(r.pause(),!n){var t=e.duration||Math.abs((i-(s&&"time"in s?s.time:r._time))/r.timeScale());h._dur!==t&&ci(h,t,0,1).render(h._time,!0,!0),n=1}o&&o.apply(h,u||[])}},e));return l?h.render(0):h},n.tweenFromTo=function(t,e,n){return this.tweenTo(e,zr({startAt:{time:pi(this,t)}},n))},n.recent=function(){return this._recent},n.nextLabel=function(t){return void 0===t&&(t=this._time),Ai(this,pi(this,t))},n.previousLabel=function(t){return void 0===t&&(t=this._time),Ai(this,pi(this,t),1)},n.currentLabel=function(t){return arguments.length?this.seek(t,!0):this.previousLabel(this._time+1e-8)},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 Xr(this)},n.invalidate=function(){var e=this._first;for(this._lock=0;e;)e.invalidate(),e=e._next;return t.prototype.invalidate.call(this)},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={}),Xr(this)},n.totalDuration=function(t){var e,n,r,i=0,a=this,s=a._last,o=1e8;if(arguments.length)return a.timeScale((a._repeat<0?a.duration():a.totalDuration())/(a.reversed()?-t:t));if(a._dirty){for(r=a.parent;s;)e=s._prev,s._dirty&&s.totalDuration(),(n=s._start)>o&&a._sort&&s._ts&&!a._lock?(a._lock=1,si(a,s,n-s._delay,1)._lock=0):o=n,n<0&&s._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),o=0),s._end>i&&s._ts&&(i=s._end),s=e;ci(a,a===_n&&a._time>i?a._time:i,1,1),a._dirty=0}return a._tDur},e.updateRoot=function(t){if(_n._ts&&(Fr(_n,ni(t,_n)),xn=Hi.frame),Hi.frame>=Cr){Cr+=Gn.autoSleep||120;var e=_n._first;if((!e||!e._ts)&&Gn.autoSleep&&Hi._listeners.length<2){for(;e&&!e._ts;)e=e._next;e||Hi.sleep()}}},e}(ra);zr(ia.prototype,{_lock:0,_hasPause:0,_forcing:0});var aa,sa=function(t,e,n,r,i,a,s){var o,u,l,h,c,f,d,p,m=new Ma(this._pt,t,e,0,1,Da,null,i),g=0,v=0;for(m.b=n,m.e=r,n+="",(d=~(r+="").indexOf("random("))&&(r=ki(r)),a&&(a(p=[n,r],t,e),n=p[0],r=p[1]),u=n.match(pr)||[];o=pr.exec(r);)h=o[0],c=r.substring(g,o.index),l?l=(l+1)%5:"rgba("===c.substr(-5)&&(l=1),h!==u[v++]&&(f=parseFloat(u[v-1])||0,m._pt={_next:m._pt,p:c||1===v?c:",",s:f,c:"="===h.charAt(1)?parseFloat(h.substr(2))*("-"===h.charAt(0)?-1:1):parseFloat(h)-f,m:l&&l<4?Math.round:0},g=pr.lastIndex);return m.c=g<r.length?r.substring(g,r.length):"",m.fp=s,(mr.test(r)||d)&&(m.e=0),this._pt=m,m},oa=function(t,e,n,r,i,a,s,o,u){nr(r)&&(r=r(i||0,t,a));var l,h=t[e],c="get"!==n?n:nr(h)?u?t[e.indexOf("set")||!nr(t["get"+e.substr(3)])?e:"get"+e.substr(3)](u):t[e]():h,f=nr(h)?u?va:ga:ma;if(er(r)&&(~r.indexOf("random(")&&(r=ki(r)),"="===r.charAt(1)&&((l=parseFloat(c)+parseFloat(r.substr(2))*("-"===r.charAt(0)?-1:1)+(yi(c)||0))||0===l)&&(r=l)),c!==r)return isNaN(c*r)||""===r?(!h&&!(e in t)&&wr(e,r),sa.call(this,t,e,c,r,f,o||Gn.stringFilter,u)):(l=new Ma(this._pt,t,e,+c||0,r-(c||0),"boolean"==typeof h?wa:_a,0,f),u&&(l.fp=u),s&&l.modifier(s,this,t),this._pt=l)},ua=function(t,e,n,r,i,a){var s,o,u,l;if(Mr[t]&&!1!==(s=new Mr[t]).init(i,s.rawVars?e[t]:function(t,e,n,r,i){if(nr(t)&&(t=ca(t,i,e,n,r)),!ar(t)||t.style&&t.nodeType||hr(t)||lr(t))return er(t)?ca(t,i,e,n,r):t;var a,s={};for(a in t)s[a]=ca(t[a],i,e,n,r);return s}(e[t],r,i,a,n),n,r,a)&&(n._pt=o=new Ma(n._pt,i,t,0,1,s.render,s,0,s.priority),n!==En))for(u=n._ptLookup[n._targets.indexOf(i)],l=s._props.length;l--;)u[s._props[l]]=o;return s},la=function t(e,n){var r,i,a,s,o,u,l,h,c,f,d,p,m,g=e.vars,v=g.ease,y=g.startAt,b=g.immediateRender,_=g.lazy,w=g.onUpdate,D=g.onUpdateParams,S=g.callbackScope,T=g.runBackwards,x=g.yoyoEase,E=g.keyframes,O=g.autoRevert,M=e._dur,k=e._startAt,C=e._targets,A=e.parent,P=A&&"nested"===A.data?A.parent._targets:C,R="auto"===e._overwrite&&!bn,N=e.timeline;if(N&&(!E||!v)&&(v="none"),e._ease=Xi(v,Zn.ease),e._yEase=x?Ki(Xi(!0===x?v:x,Zn.ease)):0,x&&e._yoyo&&!e._repeat&&(x=e._yEase,e._yEase=e._ease,e._ease=x),e._from=!N&&!!g.runBackwards,!N||E&&!g.stagger){if(p=(h=C[0]?Nr(C[0]).harness:0)&&g[h.prop],r=Gr(g,xr),k&&$r(k.render(-1,!0)),y)if($r(e._startAt=pa.set(C,zr({data:"isStart",overwrite:!1,parent:A,immediateRender:!0,lazy:sr(_),startAt:null,delay:0,onUpdate:w,onUpdateParams:D,callbackScope:S,stagger:0},y))),n<0&&!b&&!O&&e._startAt.render(-1,!0),b){if(n>0&&!O&&(e._startAt=0),M&&n<=0)return void(n&&(e._zTime=n))}else!1===O&&(e._startAt=0);else if(T&&M)if(k)!O&&(e._startAt=0);else if(n&&(b=!1),a=zr({overwrite:!1,data:"isFromStart",lazy:b&&sr(_),immediateRender:b,stagger:0,parent:A},r),p&&(a[h.prop]=p),$r(e._startAt=pa.set(C,a)),n<0&&e._startAt.render(-1,!0),e._zTime=n,b){if(!n)return}else t(e._startAt,1e-8);for(e._pt=0,_=M&&sr(_)||_&&!M,i=0;i<C.length;i++){if(l=(o=C[i])._gsap||Rr(C)[i]._gsap,e._ptLookup[i]=f={},Or[l.id]&&Er.length&&jr(),d=P===C?i:P.indexOf(o),h&&!1!==(c=new h).init(o,p||r,e,d,P)&&(e._pt=s=new Ma(e._pt,o,c.name,0,1,c.render,c,0,c.priority),c._props.forEach((function(t){f[t]=s})),c.priority&&(u=1)),!h||p)for(a in r)Mr[a]&&(c=ua(a,r,e,d,o,P))?c.priority&&(u=1):f[a]=s=oa.call(e,o,a,"get",r[a],d,P,0,g.stringFilter);e._op&&e._op[i]&&e.kill(o,e._op[i]),R&&e._pt&&(aa=e,_n.killTweensOf(o,f,e.globalTime(n)),m=!e.parent,aa=0),e._pt&&_&&(Or[l.id]=1)}u&&Oa(e),e._onInit&&e._onInit(e)}e._onUpdate=w,e._initted=(!e._op||e._pt)&&!m,E&&n<=0&&N.render(1e8,!0,!0)},ha=function(t,e,n,r){var i,a,s=e.ease||r||"power1.inOut";if(hr(e))a=n[t]||(n[t]=[]),e.forEach((function(t,n){return a.push({t:n/(e.length-1)*100,v:t,e:s})}));else for(i in e)a=n[i]||(n[i]=[]),"ease"===i||a.push({t:parseFloat(t),v:e[i],e:s})},ca=function(t,e,n,r,i){return nr(t)?t.call(e,n,r,i):er(t)&&~t.indexOf("random(")?ki(t):t},fa=Pr+"repeat,repeatDelay,yoyo,repeatRefresh,yoyoEase",da={};Ir(fa+",id,stagger,delay,duration,paused,scrollTrigger",(function(t){return da[t]=1}));var pa=function(t){function e(e,n,r,i){var a;"number"==typeof n&&(r.duration=n,n=r,r=null);var s,o,u,l,h,c,f,d,p=(a=t.call(this,i?n:Zr(n))||this).vars,m=p.duration,g=p.delay,v=p.immediateRender,y=p.stagger,b=p.overwrite,_=p.keyframes,w=p.defaults,D=p.scrollTrigger,S=p.yoyoEase,T=n.parent||_n,x=(hr(e)||lr(e)?rr(e[0]):"length"in n)?[e]:Di(e);if(a._targets=x.length?Rr(x):Dr("GSAP target "+e+" not found. https://greensock.com",!Gn.nullTargetWarn)||[],a._ptLookup=[],a._overwrite=b,_||y||ur(m)||ur(g)){if(n=a.vars,(s=a.timeline=new ia({data:"nested",defaults:w||{}})).kill(),s.parent=s._dp=vn(a),s._start=0,y||ur(m)||ur(g)){if(l=x.length,f=y&&Ti(y),ar(y))for(h in y)~fa.indexOf(h)&&(d||(d={}),d[h]=y[h]);for(o=0;o<l;o++)(u=Gr(n,da)).stagger=0,S&&(u.yoyoEase=S),d&&qr(u,d),c=x[o],u.duration=+ca(m,vn(a),o,c,x),u.delay=(+ca(g,vn(a),o,c,x)||0)-a._delay,!y&&1===l&&u.delay&&(a._delay=g=u.delay,a._start+=g,u.delay=0),s.to(c,u,f?f(o,c,x):0),s._ease=qi.none;s.duration()?m=g=0:a.timeline=0}else if(_){Zr(zr(s.vars.defaults,{ease:"none"})),s._ease=Xi(_.ease||n.ease||"none");var E,O,M,k=0;if(hr(_))_.forEach((function(t){return s.to(x,t,">")}));else{for(h in u={},_)"ease"===h||"easeEach"===h||ha(h,_[h],u,_.easeEach);for(h in u)for(E=u[h].sort((function(t,e){return t.t-e.t})),k=0,o=0;o<E.length;o++)(M={ease:(O=E[o]).e,duration:(O.t-(o?E[o-1].t:0))/100*m})[h]=O.v,s.to(x,M,k),k+=M.duration;s.duration()<m&&s.to({},{duration:m-s.duration()})}}m||a.duration(m=s.duration())}else a.timeline=0;return!0!==b||bn||(aa=vn(a),_n.killTweensOf(x),aa=0),si(T,vn(a),r),n.reversed&&a.reverse(),n.paused&&a.paused(!0),(v||!m&&!_&&a._start===Yr(T._time)&&sr(v)&&Qr(vn(a))&&"nested"!==T.data)&&(a._tTime=-1e-8,a.render(Math.max(0,-g))),D&&oi(vn(a),D),a}yn(e,t);var n=e.prototype;return n.render=function(t,e,n){var r,i,a,s,o,u,l,h,c,f=this._time,d=this._tDur,p=this._dur,m=t>d-1e-8&&t>=0?d:t<1e-8?0:t;if(p){if(m!==this._tTime||!t||n||!this._initted&&this._tTime||this._startAt&&this._zTime<0!=t<0){if(r=m,h=this.timeline,this._repeat){if(s=p+this._rDelay,this._repeat<-1&&t<0)return this.totalTime(100*s+t,e,n);if(r=Yr(m%s),m===d?(a=this._repeat,r=p):((a=~~(m/s))&&a===m/s&&(r=p,a--),r>p&&(r=p)),(u=this._yoyo&&1&a)&&(c=this._yEase,r=p-r),o=ei(this._tTime,s),r===f&&!n&&this._initted)return this;a!==o&&(h&&this._yEase&&$i(h,u),!this.vars.repeatRefresh||u||this._lock||(this._lock=n=1,this.render(Yr(s*a),!0).invalidate()._lock=0))}if(!this._initted){if(ui(this,t<0?t:r,n,e))return this._tTime=0,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=(c||this._ease)(r/p),this._from&&(this.ratio=l=1-l),r&&!f&&!e&&(Pi(this,"onStart"),this._tTime!==m))return this;for(i=this._pt;i;)i.r(l,i.d),i=i._next;h&&h.render(t<0?t:!r&&u?-1e-8:h._dur*h._ease(r/this._dur),e,n)||this._startAt&&(this._zTime=t),this._onUpdate&&!e&&(t<0&&this._startAt&&this._startAt.render(t,!0,n),Pi(this,"onUpdate")),this._repeat&&a!==o&&this.vars.onRepeat&&!e&&this.parent&&Pi(this,"onRepeat"),m!==this._tDur&&m||this._tTime!==m||(t<0&&this._startAt&&!this._onUpdate&&this._startAt.render(t,!0,!0),(t||!p)&&(m===this._tDur&&this._ts>0||!m&&this._ts<0)&&$r(this,1),e||t<0&&!f||!m&&!f||(Pi(this,m===d?"onComplete":"onReverseComplete",!0),this._prom&&!(m<d&&this.timeScale()>0)&&this._prom()))}}else!function(t,e,n,r){var i,a,s,o=t.ratio,u=e<0||!e&&(!t._start&&li(t)&&(t._initted||!hi(t))||(t._ts<0||t._dp._ts<0)&&!hi(t))?0:1,l=t._rDelay,h=0;if(l&&t._repeat&&(h=vi(0,t._tDur,e),a=ei(h,l),t._yoyo&&1&a&&(u=1-u),a!==ei(t._tTime,l)&&(o=1-u,t.vars.repeatRefresh&&t._initted&&t.invalidate())),u!==o||r||1e-8===t._zTime||!e&&t._zTime){if(!t._initted&&ui(t,e,r,n))return;for(s=t._zTime,t._zTime=e||(n?1e-8:0),n||(n=e&&!s),t.ratio=u,t._from&&(u=1-u),t._time=0,t._tTime=h,i=t._pt;i;)i.r(u,i.d),i=i._next;t._startAt&&e<0&&t._startAt.render(e,!0,!0),t._onUpdate&&!n&&Pi(t,"onUpdate"),h&&t._repeat&&!n&&t.parent&&Pi(t,"onRepeat"),(e>=t._tDur||e<0)&&t.ratio===u&&(u&&$r(t,1),n||(Pi(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(){return this._pt=this._op=this._startAt=this._onUpdate=this._lazy=this.ratio=0,this._ptLookup=[],this.timeline&&this.timeline.invalidate(),t.prototype.invalidate.call(this)},n.kill=function(t,e){if(void 0===e&&(e="all"),!(t||e&&"all"!==e))return this._lazy=this._pt=0,this.parent?Ri(this):this;if(this.timeline){var n=this.timeline.totalDuration();return this.timeline.killTweensOf(t,e,aa&&!0!==aa.vars.overwrite)._first||Ri(this),this.parent&&n!==this.timeline.totalDuration()&&ci(this,this._dur*this.timeline._tDur/n,0,1),this}var r,i,a,s,o,u,l,h=this._targets,c=t?Di(t):h,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}(h,c))return"all"===e&&(this._pt=0),Ri(this);for(r=this._op=this._op||[],"all"!==e&&(er(e)&&(o={},Ir(e,(function(t){return o[t]=1})),e=o),e=function(t,e){var n,r,i,a,s=t[0]?Nr(t[0]).harness:0,o=s&&s.aliases;if(!o)return e;for(r in n=qr({},e),o)if(r in n)for(i=(a=o[r].split(",")).length;i--;)n[a[i]]=n[r];return n}(h,e)),l=h.length;l--;)if(~c.indexOf(h[l]))for(o in i=f[l],"all"===e?(r[l]=e,s=i,a={}):(a=r[l]=r[l]||{},s=e),s)(u=i&&i[o])&&("kill"in u.d&&!0!==u.d.kill(o)||Kr(this,u,"_pt"),delete i[o]),"all"!==a&&(a[o]=1);return this._initted&&!this._pt&&d&&Ri(this),this},e.to=function(t,n){return new e(t,n,arguments[2])},e.from=function(t,e){return mi(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 mi(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 _n.killTweensOf(t,e,n)},e}(ra);zr(pa.prototype,{_targets:[],_lazy:0,_startAt:0,_op:0,_onInit:0}),Ir("staggerTo,staggerFrom,staggerFromTo",(function(t){pa[t]=function(){var e=new ia,n=bi.call(arguments,0);return n.splice("staggerFromTo"===t?5:4,0,0),e[t].apply(e,n)}}));var ma=function(t,e,n){return t[e]=n},ga=function(t,e,n){return t[e](n)},va=function(t,e,n,r){return t[e](r.fp,n)},ya=function(t,e,n){return t.setAttribute(e,n)},ba=function(t,e){return nr(t[e])?ga:ir(t[e])&&t.setAttribute?ya:ma},_a=function(t,e){return e.set(e.t,e.p,Math.round(1e6*(e.s+e.c*t))/1e6,e)},wa=function(t,e){return e.set(e.t,e.p,!!(e.s+e.c*t),e)},Da=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)},Sa=function(t,e){for(var n=e._pt;n;)n.r(t,n.d),n=n._next},Ta=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},xa=function(t){for(var e,n,r=this._pt;r;)n=r._next,r.p===t&&!r.op||r.op===t?Kr(this,r,"_pt"):r.dep||(e=1),r=n;return!e},Ea=function(t,e,n,r){r.mSet(t,e,r.m.call(r.tween,n,r.mt),r)},Oa=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},Ma=function(){function t(t,e,n,r,i,a,s,o,u){this.t=e,this.s=r,this.c=i,this.p=n,this.r=a||_a,this.d=s||this,this.set=o||ma,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=Ea,this.m=t,this.mt=n,this.tween=e},t}();Ir(Pr+"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 xr[t]=1})),yr.TweenMax=yr.TweenLite=pa,yr.TimelineLite=yr.TimelineMax=ia,_n=new ia({sortChildren:!1,defaults:Zn,autoRemoveChildren:!0,id:"root",smoothChildTiming:!0}),Gn.stringFilter=Ui;var ka={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 Ni(t)}))},timeline:function(t){return new ia(t)},getTweensOf:function(t,e){return _n.getTweensOf(t,e)},getProperty:function(t,e,n,r){er(t)&&(t=Di(t)[0]);var i=Nr(t||{}).get,a=n?Hr:Ur;return"native"===n&&(n=""),t?e?a((Mr[e]&&Mr[e].get||i)(t,e,n,r)):function(e,n,r){return a((Mr[e]&&Mr[e].get||i)(t,e,n,r))}:t},quickSetter:function(t,e,n){if((t=Di(t)).length>1){var r=t.map((function(t){return Pa.quickSetter(t,e,n)})),i=r.length;return function(t){for(var e=i;e--;)r[e](t)}}t=t[0]||{};var a=Mr[e],s=Nr(t),o=s.harness&&(s.harness.aliases||{})[e]||e,u=a?function(e){var r=new a;En._pt=0,r.init(t,n?e+n:e,En,0,[t]),r.render(1,r),En._pt&&Sa(1,En)}:s.set(t,o);return a?u:function(e){return u(t,o,n?e+n:e,s,1)}},isTweening:function(t){return _n.getTweensOf(t,!0).length>0},defaults:function(t){return t&&t.ease&&(t.ease=Xi(t.ease,Zn.ease)),Wr(Zn,t||{})},config:function(t){return Wr(Gn,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&&!Mr[t]&&!yr[t]&&Dr(e+" effect requires "+t+" plugin.")})),kr[e]=function(t,e,r){return n(Di(t),zr(e||{},i),r)},a&&(ia.prototype[e]=function(t,n,r){return this.add(kr[e](t,ar(n)?n:(r=n)&&{},this),r)})},registerEase:function(t,e){qi[t]=Xi(e)},parseEase:function(t,e){return arguments.length?Xi(t,e):qi},getById:function(t){return _n.getById(t)},exportRoot:function(t,e){void 0===t&&(t={});var n,r,i=new ia(t);for(i.smoothChildTiming=sr(t.smoothChildTiming),_n.remove(i),i._dp=0,i._time=i._tTime=_n._time,n=_n._first;n;)r=n._next,!e&&!n._dur&&n instanceof pa&&n.vars.onComplete===n._targets[0]||si(i,n,n._start-n._delay),n=r;return si(_n,i,0),i},utils:{wrap:function t(e,n,r){var i=n-e;return hr(e)?Mi(e,t(0,e.length),n):gi(r,(function(t){return(i+(t-e)%i)%i+e}))},wrapYoyo:function t(e,n,r){var i=n-e,a=2*i;return hr(e)?Mi(e,t(0,e.length-1),n):gi(r,(function(t){return e+((t=(a+(t-e)%a)%a||0)>i?a-t:t)}))},distribute:Ti,random:Oi,snap:Ei,normalize:function(t,e,n){return Ci(t,e,0,1,n)},getUnit:yi,clamp:function(t,e,n){return gi(n,(function(n){return vi(t,e,n)}))},splitColor:Bi,toArray:Di,selector:function(t){return t=Di(t)[0]||Dr("Invalid scope")||{},function(e){var n=t.current||t.nativeElement||t;return Di(e,n.querySelectorAll?n:n===t?Dr("Invalid scope")||Sn.createElement("div"):t)}},mapRange:Ci,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||yi(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 s,o,u,l,h,c=er(e),f={};if(!0===r&&(i=1)&&(r=null),c)e={p:e},n={p:n};else if(hr(e)&&!hr(n)){for(u=[],l=e.length,h=l-2,o=1;o<l;o++)u.push(t(e[o-1],e[o]));l--,a=function(t){t*=l;var e=Math.min(h,~~t);return u[e](t-e)},r=n}else i||(e=qr(hr(e)?[]:{},e));if(!u){for(s in n)oa.call(f,e,s,"get",n[s]);a=function(t){return Sa(t,f)||(c?e.p:e)}}}return gi(r,a)},shuffle:Si},install:_r,effects:kr,ticker:Hi,updateRoot:ia.updateRoot,plugins:Mr,globalTimeline:_n,core:{PropTween:Ma,globals:Sr,Tween:pa,Timeline:ia,Animation:ra,getCache:Nr,_removeLinkedListItem:Kr,suppressOverwrites:function(t){return bn=t}}};Ir("to,from,fromTo,delayedCall,set,killTweensOf",(function(t){return ka[t]=pa[t]})),Hi.add(ia.updateRoot),En=ka.to({},{duration:0});var Ca=function(t,e){for(var n=t._pt;n&&n.p!==e&&n.op!==e&&n.fp!==e;)n=n._next;return n},Aa=function(t,e){return{name:t,rawVars:1,init:function(t,n,r){r._onInit=function(t){var r,i;if(er(n)&&(r={},Ir(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=Ca(i,n)),i&&i.modifier&&i.modifier(e[n],t,a[r],n))}(t,n)}}}},Pa=ka.registerPlugin({name:"attr",init:function(t,e,n,r,i){var a,s;for(a in e)(s=this.add(t,"setAttribute",(t.getAttribute(a)||0)+"",e[a],r,i,0,0,a))&&(s.op=a),this._props.push(a)}},{name:"endArray",init:function(t,e){for(var n=e.length;n--;)this.add(t,n,t[n]||0,e[n])}},Aa("roundProps",xi),Aa("modifiers"),Aa("snap",Ei))||ka;pa.version=ia.version=Pa.version="3.9.0",Tn=1,or()&&zi(),qi.Power0,qi.Power1,qi.Power2,qi.Power3,qi.Power4,qi.Linear,qi.Quad,qi.Cubic,qi.Quart,qi.Quint,qi.Strong,qi.Elastic,qi.Back,qi.SteppedEase,qi.Bounce,qi.Sine,qi.Expo,qi.Circ;
28
28
  /*!
29
29
  * CSSPlugin 3.9.0
30
30
  * https://greensock.com
@@ -34,5 +34,5 @@ r.version="2.29.1",i(Kn),r.fn=ua,r.min=Qn,r.max=tr,r.now=er,r.utc=p,r.unix=ha,r.
34
34
  * Club GreenSock members, the agreement issued with that membership.
35
35
  * @author: Jack Doyle, jack@greensock.com
36
36
  */
37
- var Aa,Pa,Ra,Na,Va,Ia,Ba,Ya={},La=180/Math.PI,ja=Math.PI/180,Fa=Math.atan2,Ua=/([A-Z])/g,Ha=/(?:left|right|width|margin|padding|x)/i,za=/[\s,\(]\S/,qa={autoAlpha:"opacity,visibility",scale:"scaleX,scaleY",alpha:"opacity"},Wa=function(t,e){return e.set(e.t,e.p,Math.round(1e4*(e.s+e.c*t))/1e4+e.u,e)},Ga=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)},Za=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)},Ka=function(t,e){var n=e.s+e.c*t;e.set(e.t,e.p,~~(n+(n<0?-.5:.5))+e.u,e)},$a=function(t,e){return e.set(e.t,e.p,t?e.e:e.b,e)},Xa=function(t,e){return e.set(e.t,e.p,1!==t?e.b:e.e,e)},Ja=function(t,e,n){return t.style[e]=n},Qa=function(t,e,n){return t.style.setProperty(e,n)},ts=function(t,e,n){return t._gsap[e]=n},es=function(t,e,n){return t._gsap.scaleX=t._gsap.scaleY=n},ns=function(t,e,n,r,i){var a=t._gsap;a.scaleX=a.scaleY=n,a.renderTransform(i,a)},rs=function(t,e,n,r,i){var a=t._gsap;a[e]=n,a.renderTransform(i,a)},is="transform",as=is+"Origin",ss=function(t,e){var n=Pa.createElementNS?Pa.createElementNS((e||"http://www.w3.org/1999/xhtml").replace(/^https/,"http"),t):Pa.createElement(t);return n.style?n:Pa.createElement(t)},os=function t(e,n,r){var i=getComputedStyle(e);return i[n]||i.getPropertyValue(n.replace(Ua,"-$1").toLowerCase())||i.getPropertyValue(n)||!r&&t(e,hs(n)||n,1)||""},us="O,Moz,ms,Ms,Webkit".split(","),hs=function(t,e,n){var r=(e||Va).style,i=5;if(t in r&&!n)return t;for(t=t.charAt(0).toUpperCase()+t.substr(1);i--&&!(us[i]+t in r););return i<0?null:(3===i?"ms":i>=0?us[i]:"")+t},ls=function(){"undefined"!=typeof window&&window.document&&(Aa=window,Pa=Aa.document,Ra=Pa.documentElement,Va=ss("div")||{style:{}},ss("div"),is=hs(is),as=is+"Origin",Va.style.cssText="border-width:0;line-height:0;position:absolute;padding:0",Ba=!!hs("perspective"),Na=1)},cs=function t(e){var n,r=ss("svg",this.ownerSVGElement&&this.ownerSVGElement.getAttribute("xmlns")||"http://www.w3.org/2000/svg"),i=this.parentNode,a=this.nextSibling,s=this.style.cssText;if(Ra.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)),Ra.removeChild(r),this.style.cssText=s,n},fs=function(t,e){for(var n=e.length;n--;)if(t.hasAttribute(e[n]))return t.getAttribute(e[n])},ds=function(t){var e;try{e=t.getBBox()}catch(n){e=cs.call(t,!0)}return e&&(e.width||e.height)||t.getBBox===cs||(e=cs.call(t,!0)),!e||e.width||e.x||e.y?e:{x:+fs(t,["x","cx","x1"])||0,y:+fs(t,["y","cy","y1"])||0,width:0,height:0}},ps=function(t){return!(!t.getCTM||t.parentNode&&!t.ownerSVGElement||!ds(t))},ms=function(t,e){if(e){var n=t.style;e in Ya&&e!==as&&(e=is),n.removeProperty?("ms"!==e.substr(0,2)&&"webkit"!==e.substr(0,6)||(e="-"+e),n.removeProperty(e.replace(Ua,"-$1").toLowerCase())):n.removeAttribute(e)}},gs=function(t,e,n,r,i,a){var s=new Ea(t._pt,e,n,0,1,a?Xa:$a);return t._pt=s,s.b=r,s.e=i,t._props.push(n),s},vs={deg:1,rad:1,turn:1},ys=function t(e,n,r,i){var a,s,o,u,h=parseFloat(r)||0,l=(r+"").trim().substr((h+"").length)||"px",c=Va.style,f=Ha.test(n),d="svg"===e.tagName.toLowerCase(),p=(d?"client":"offset")+(f?"Width":"Height"),m=100,g="px"===i,v="%"===i;return i===l||!h||vs[i]||vs[l]?h:("px"!==l&&!g&&(h=t(e,n,r,"px")),u=e.getCTM&&ps(e),!v&&"%"!==l||!Ya[n]&&!~n.indexOf("adius")?(c[f?"width":"height"]=m+(g?l:i),s=~n.indexOf("adius")||"em"===i&&e.appendChild&&!d?e:e.parentNode,u&&(s=(e.ownerSVGElement||{}).parentNode),s&&s!==Pa&&s.appendChild||(s=Pa.body),(o=s._gsap)&&v&&o.width&&f&&o.time===Fi.time?Vr(h/o.width*m):((v||"%"===l)&&(c.position=os(e,"position")),s===e&&(c.position="static"),s.appendChild(Va),a=Va[p],s.removeChild(Va),c.position="absolute",f&&v&&((o=Pr(s)).time=Fi.time,o.width=s[p]),Vr(g?a*h/m:a&&h?m/a*h:0))):(a=u?e.getBBox()[f?"width":"height"]:e[p],Vr(v?h/a*m:h/100*a)))},bs=function(t,e,n,r){var i;return Na||ls(),e in qa&&"transform"!==e&&~(e=qa[e]).indexOf(",")&&(e=e.split(",")[0]),Ya[e]&&"transform"!==e?(i=Cs(t,r),i="transformOrigin"!==e?i[e]:i.svg?i.origin:As(os(t,as))+" "+i.zOrigin+"px"):(!(i=t.style[e])||"auto"===i||r||~(i+"").indexOf("calc("))&&(i=Ss[e]&&Ss[e](t,e,n)||os(t,e)||Rr(t,e)||("opacity"===e?1:0)),n&&!~(i+"").trim().indexOf(" ")?ys(t,e,i,n)+n:i},_s=function(t,e,n,r){if(!n||"none"===n){var i=hs(e,t,1),a=i&&os(t,i,1);a&&a!==n?(e=i,n=a):"borderColor"===e&&(n=os(t,"borderTopColor"))}var s,o,u,h,l,c,f,d,p,m,g,v,y=new Ea(this._pt,t.style,e,0,1,_a),b=0,_=0;if(y.b=n,y.e=r,n+="","auto"===(r+="")&&(t.style[e]=r,r=os(t,e)||r,t.style[e]=n),ji(s=[n,r]),r=s[1],u=(n=s[0]).match(cr)||[],(r.match(cr)||[]).length){for(;o=cr.exec(r);)f=o[0],p=r.substring(b,o.index),l?l=(l+1)%5:"rgba("!==p.substr(-5)&&"hsla("!==p.substr(-5)||(l=1),f!==(c=u[_++]||"")&&(h=parseFloat(c)||0,g=c.substr((h+"").length),(v="="===f.charAt(1)?+(f.charAt(0)+"1"):0)&&(f=f.substr(2)),d=parseFloat(f),m=f.substr((d+"").length),b=cr.lastIndex-m.length,m||(m=m||qn.units[e]||g,b===r.length&&(r+=m,y.e+=m)),g!==m&&(h=ys(t,e,c,m)||0),y._pt={_next:y._pt,p:p||1===_?p:",",s:h,c:v?v*d:d-h,m:l&&l<4||"zIndex"===e?Math.round:0});y.c=b<r.length?r.substring(b,r.length):""}else y.r="display"===e&&"none"===r?Xa:$a;return dr.test(r)&&(y.e=0),this._pt=y,y},ws={top:"0%",bottom:"100%",left:"0%",right:"100%",center:"50%"},Ds=function(t,e){if(e.tween&&e.tween._time===e.tween._dur){var n,r,i,a=e.t,s=a.style,o=e.u,u=a._gsap;if("all"===o||!0===o)s.cssText="",r=1;else for(i=(o=o.split(",")).length;--i>-1;)n=o[i],Ya[n]&&(r=1,n="transformOrigin"===n?as:is),ms(a,n);r&&(ms(a,is),u&&(u.svg&&a.removeAttribute("transform"),Cs(a,1),u.uncache=1))}},Ss={clearProps:function(t,e,n,r,i){if("isFromStart"!==i.data){var a=t._pt=new Ea(t._pt,e,n,0,0,Ds);return a.u=r,a.pr=-10,a.tween=i,t._props.push(n),1}}},Ts=[1,0,0,1,0,0],xs={},Es=function(t){return"matrix(1, 0, 0, 1, 0, 0)"===t||"none"===t||!t},Os=function(t){var e=os(t,is);return Es(e)?Ts:e.substr(7).match(lr).map(Vr)},Ms=function(t,e){var n,r,i,a,s=t._gsap||Pr(t),o=t.style,u=Os(t);return s.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(",")?Ts:u:(u!==Ts||t.offsetParent||t===Ra||s.svg||(i=o.display,o.display="block",(n=t.parentNode)&&t.offsetParent||(a=1,r=t.nextSibling,Ra.appendChild(t)),u=Os(t),i?o.display=i:ms(t,"display"),a&&(r?n.insertBefore(t,r):n?n.appendChild(t):Ra.removeChild(t))),e&&u.length>6?[u[0],u[1],u[4],u[5],u[12],u[13]]:u)},ks=function(t,e,n,r,i,a){var s,o,u,h=t._gsap,l=i||Ms(t,!0),c=h.xOrigin||0,f=h.yOrigin||0,d=h.xOffset||0,p=h.yOffset||0,m=l[0],g=l[1],v=l[2],y=l[3],b=l[4],_=l[5],w=e.split(" "),D=parseFloat(w[0])||0,S=parseFloat(w[1])||0;n?l!==Ts&&(o=m*y-g*v)&&(u=D*(-g/o)+S*(m/o)-(m*_-g*b)/o,D=D*(y/o)+S*(-v/o)+(v*_-y*b)/o,S=u):(D=(s=ds(t)).x+(~w[0].indexOf("%")?D/100*s.width:D),S=s.y+(~(w[1]||w[0]).indexOf("%")?S/100*s.height:S)),r||!1!==r&&h.smooth?(b=D-c,_=S-f,h.xOffset=d+(b*m+_*v)-b,h.yOffset=p+(b*g+_*y)-_):h.xOffset=h.yOffset=0,h.xOrigin=D,h.yOrigin=S,h.smooth=!!r,h.origin=e,h.originIsAbsolute=!!n,t.style[as]="0px 0px",a&&(gs(a,h,"xOrigin",c,D),gs(a,h,"yOrigin",f,S),gs(a,h,"xOffset",d,h.xOffset),gs(a,h,"yOffset",p,h.yOffset)),t.setAttribute("data-svg-origin",D+" "+S)},Cs=function(t,e){var n=t._gsap||new ta(t);if("x"in n&&!e&&!n.uncache)return n;var r,i,a,s,o,u,h,l,c,f,d,p,m,g,v,y,b,_,w,D,S,T,x,E,O,M,k,C,A,P,R,N,V=t.style,I=n.scaleX<0,B="px",Y="deg",L=os(t,as)||"0";return r=i=a=u=h=l=c=f=d=0,s=o=1,n.svg=!(!t.getCTM||!ps(t)),g=Ms(t,n.svg),n.svg&&(E=(!n.uncache||"0px 0px"===L)&&!e&&t.getAttribute("data-svg-origin"),ks(t,E||L,!!E||n.originIsAbsolute,!1!==n.smooth,g)),p=n.xOrigin||0,m=n.yOrigin||0,g!==Ts&&(_=g[0],w=g[1],D=g[2],S=g[3],r=T=g[4],i=x=g[5],6===g.length?(s=Math.sqrt(_*_+w*w),o=Math.sqrt(S*S+D*D),u=_||w?Fa(w,_)*La:0,(c=D||S?Fa(D,S)*La+u:0)&&(o*=Math.abs(Math.cos(c*ja))),n.svg&&(r-=p-(p*_+m*D),i-=m-(p*w+m*S))):(N=g[6],P=g[7],k=g[8],C=g[9],A=g[10],R=g[11],r=g[12],i=g[13],a=g[14],h=(v=Fa(N,A))*La,v&&(E=T*(y=Math.cos(-v))+k*(b=Math.sin(-v)),O=x*y+C*b,M=N*y+A*b,k=T*-b+k*y,C=x*-b+C*y,A=N*-b+A*y,R=P*-b+R*y,T=E,x=O,N=M),l=(v=Fa(-D,A))*La,v&&(y=Math.cos(-v),R=S*(b=Math.sin(-v))+R*y,_=E=_*y-k*b,w=O=w*y-C*b,D=M=D*y-A*b),u=(v=Fa(w,_))*La,v&&(E=_*(y=Math.cos(v))+w*(b=Math.sin(v)),O=T*y+x*b,w=w*y-_*b,x=x*y-T*b,_=E,T=O),h&&Math.abs(h)+Math.abs(u)>359.9&&(h=u=0,l=180-l),s=Vr(Math.sqrt(_*_+w*w+D*D)),o=Vr(Math.sqrt(x*x+N*N)),v=Fa(T,x),c=Math.abs(v)>2e-4?v*La:0,d=R?1/(R<0?-R:R):0),n.svg&&(E=t.getAttribute("transform"),n.forceCSS=t.setAttribute("transform","")||!Es(os(t,is)),E&&t.setAttribute("transform",E))),Math.abs(c)>90&&Math.abs(c)<270&&(I?(s*=-1,c+=u<=0?180:-180,u+=u<=0?180:-180):(o*=-1,c+=c<=0?180:-180)),n.x=r-((n.xPercent=r&&(n.xPercent||(Math.round(t.offsetWidth/2)===Math.round(-r)?-50:0)))?t.offsetWidth*n.xPercent/100:0)+B,n.y=i-((n.yPercent=i&&(n.yPercent||(Math.round(t.offsetHeight/2)===Math.round(-i)?-50:0)))?t.offsetHeight*n.yPercent/100:0)+B,n.z=a+B,n.scaleX=Vr(s),n.scaleY=Vr(o),n.rotation=Vr(u)+Y,n.rotationX=Vr(h)+Y,n.rotationY=Vr(l)+Y,n.skewX=c+Y,n.skewY=f+Y,n.transformPerspective=d+B,(n.zOrigin=parseFloat(L.split(" ")[2])||0)&&(V[as]=As(L)),n.xOffset=n.yOffset=0,n.force3D=qn.force3D,n.renderTransform=n.svg?Vs:Ba?Ns:Rs,n.uncache=0,n},As=function(t){return(t=t.split(" "))[0]+" "+t[1]},Ps=function(t,e,n){var r=gi(e);return Vr(parseFloat(e)+parseFloat(ys(t,"x",n+"px",r)))+r},Rs=function(t,e){e.z="0px",e.rotationY=e.rotationX="0deg",e.force3D=0,Ns(t,e)},Ns=function(t,e){var n=e||this,r=n.xPercent,i=n.yPercent,a=n.x,s=n.y,o=n.z,u=n.rotation,h=n.rotationY,l=n.rotationX,c=n.skewX,f=n.skewY,d=n.scaleX,p=n.scaleY,m=n.transformPerspective,g=n.force3D,v=n.target,y=n.zOrigin,b="",_="auto"===g&&t&&1!==t||!0===g;if(y&&("0deg"!==l||"0deg"!==h)){var w,D=parseFloat(h)*ja,S=Math.sin(D),T=Math.cos(D);D=parseFloat(l)*ja,w=Math.cos(D),a=Ps(v,a,S*w*-y),s=Ps(v,s,-Math.sin(D)*-y),o=Ps(v,o,T*w*-y+y)}"0px"!==m&&(b+="perspective("+m+") "),(r||i)&&(b+="translate("+r+"%, "+i+"%) "),(_||"0px"!==a||"0px"!==s||"0px"!==o)&&(b+="0px"!==o||_?"translate3d("+a+", "+s+", "+o+") ":"translate("+a+", "+s+") "),"0deg"!==u&&(b+="rotate("+u+") "),"0deg"!==h&&(b+="rotateY("+h+") "),"0deg"!==l&&(b+="rotateX("+l+") "),"0deg"===c&&"0deg"===f||(b+="skew("+c+", "+f+") "),1===d&&1===p||(b+="scale("+d+", "+p+") "),v.style[is]=b||"translate(0, 0)"},Vs=function(t,e){var n,r,i,a,s,o=e||this,u=o.xPercent,h=o.yPercent,l=o.x,c=o.y,f=o.rotation,d=o.skewX,p=o.skewY,m=o.scaleX,g=o.scaleY,v=o.target,y=o.xOrigin,b=o.yOrigin,_=o.xOffset,w=o.yOffset,D=o.forceCSS,S=parseFloat(l),T=parseFloat(c);f=parseFloat(f),d=parseFloat(d),(p=parseFloat(p))&&(d+=p=parseFloat(p),f+=p),f||d?(f*=ja,d*=ja,n=Math.cos(f)*m,r=Math.sin(f)*m,i=Math.sin(f-d)*-g,a=Math.cos(f-d)*g,d&&(p*=ja,s=Math.tan(d-p),i*=s=Math.sqrt(1+s*s),a*=s,p&&(s=Math.tan(p),n*=s=Math.sqrt(1+s*s),r*=s)),n=Vr(n),r=Vr(r),i=Vr(i),a=Vr(a)):(n=m,a=g,r=i=0),(S&&!~(l+"").indexOf("px")||T&&!~(c+"").indexOf("px"))&&(S=ys(v,"x",l,"px"),T=ys(v,"y",c,"px")),(y||b||_||w)&&(S=Vr(S+y-(y*n+b*i)+_),T=Vr(T+b-(y*r+b*a)+w)),(u||h)&&(s=v.getBBox(),S=Vr(S+u/100*s.width),T=Vr(T+h/100*s.height)),s="matrix("+n+","+r+","+i+","+a+","+S+","+T+")",v.setAttribute("transform",s),D&&(v.style[is]=s)},Is=function(t,e,n,r,i,a){var s,o,u=360,h=Qn(i),l=parseFloat(i)*(h&&~i.indexOf("rad")?La:1),c=a?l*a:l-r,f=r+c+"deg";return h&&("short"===(s=i.split("_")[1])&&(c%=u)!==c%180&&(c+=c<0?u:-360),"cw"===s&&c<0?c=(c+36e9)%u-~~(c/u)*u:"ccw"===s&&c>0&&(c=(c-36e9)%u-~~(c/u)*u)),t._pt=o=new Ea(t._pt,e,n,r,c,Ga),o.e=f,o.u="deg",t._props.push(n),o},Bs=function(t,e){for(var n in e)t[n]=e[n];return t},Ys=function(t,e,n){var r,i,a,s,o,u,h,l=Bs({},n._gsap),c=n.style;for(i in l.svg?(a=n.getAttribute("transform"),n.setAttribute("transform",""),c[is]=e,r=Cs(n,1),ms(n,is),n.setAttribute("transform",a)):(a=getComputedStyle(n)[is],c[is]=e,r=Cs(n,1),c[is]=a),Ya)(a=l[i])!==(s=r[i])&&"perspective,force3D,transformOrigin,svgOrigin".indexOf(i)<0&&(o=gi(a)!==(h=gi(s))?ys(n,i,a,h):parseFloat(a),u=parseFloat(s),t._pt=new Ea(t._pt,r,i,o,u-o,Wa),t._pt.u=h||0,t._props.push(i));Bs(r,l)};Nr("padding,margin,Width,Radius",(function(t,e){var n="Top",r="Right",i="Bottom",a="Left",s=(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}));Ss[e>1?"border"+t:t]=function(t,e,n,r,i){var a,o;if(arguments.length<4)return a=s.map((function(e){return bs(t,e,n)})),5===(o=a.join(" ")).split(a[0]).length?a[0]:o;a=(r+"").split(" "),o={},s.forEach((function(t,e){return o[t]=a[e]=a[e]||a[(e-1)/2|0]})),t.init(e,o,i)}}));var Ls,js,Fs,Us={name:"css",register:ls,targetTest:function(t){return t.style&&t.nodeType},init:function(t,e,n,r,i){var a,s,o,u,h,l,c,f,d,p,m,g,v,y,b,_,w,D,S,T=this._props,x=t.style,E=n.vars.startAt;for(c in Na||ls(),e)if("autoRound"!==c&&(s=e[c],!Er[c]||!sa(c,e,n,r,t,i)))if(h=typeof s,l=Ss[c],"function"===h&&(h=typeof(s=s.call(n,r,t,i))),"string"===h&&~s.indexOf("random(")&&(s=Oi(s)),l)l(this,t,c,s,n)&&(b=1);else if("--"===c.substr(0,2))a=(getComputedStyle(t).getPropertyValue(c)+"").trim(),s+="",Yi.lastIndex=0,Yi.test(a)||(f=gi(a),d=gi(s)),d?f!==d&&(a=ys(t,c,a,d)+d):f&&(s+=f),this.add(x,"setProperty",a,s,r,i,0,0,c),T.push(c);else if("undefined"!==h){if(E&&c in E?(a="function"==typeof E[c]?E[c].call(n,r,t,i):E[c],c in qn.units&&!gi(a)&&(a+=qn.units[c]),Qn(a)&&~a.indexOf("random(")&&(a=Oi(a)),"="===(a+"").charAt(1)&&(a=bs(t,c))):a=bs(t,c),u=parseFloat(a),(p="string"===h&&"="===s.charAt(1)?+(s.charAt(0)+"1"):0)&&(s=s.substr(2)),o=parseFloat(s),c in qa&&("autoAlpha"===c&&(1===u&&"hidden"===bs(t,"visibility")&&o&&(u=0),gs(this,x,"visibility",u?"inherit":"hidden",o?"inherit":"hidden",!o)),"scale"!==c&&"transform"!==c&&~(c=qa[c]).indexOf(",")&&(c=c.split(",")[0])),m=c in Ya)if(g||((v=t._gsap).renderTransform&&!e.parseTransform||Cs(t,e.parseTransform),y=!1!==e.smoothOrigin&&v.smooth,(g=this._pt=new Ea(this._pt,x,is,0,1,v.renderTransform,v,0,-1)).dep=1),"scale"===c)this._pt=new Ea(this._pt,v,"scaleY",v.scaleY,(p?p*o:o-v.scaleY)||0),T.push("scaleY",c),c+="X";else{if("transformOrigin"===c){w=void 0,D=void 0,S=void 0,w=(_=s).split(" "),D=w[0],S=w[1]||"50%","top"!==D&&"bottom"!==D&&"left"!==S&&"right"!==S||(_=D,D=S,S=_),w[0]=ws[D]||D,w[1]=ws[S]||S,s=w.join(" "),v.svg?ks(t,s,0,y,0,this):((d=parseFloat(s.split(" ")[2])||0)!==v.zOrigin&&gs(this,v,"zOrigin",v.zOrigin,d),gs(this,x,c,As(a),As(s)));continue}if("svgOrigin"===c){ks(t,s,1,y,0,this);continue}if(c in xs){Is(this,v,c,u,s,p);continue}if("smoothOrigin"===c){gs(this,v,"smooth",v.smooth,s);continue}if("force3D"===c){v[c]=s;continue}if("transform"===c){Ys(this,s,t);continue}}else c in x||(c=hs(c)||c);if(m||(o||0===o)&&(u||0===u)&&!za.test(s)&&c in x)o||(o=0),(f=(a+"").substr((u+"").length))!==(d=gi(s)||(c in qn.units?qn.units[c]:f))&&(u=ys(t,c,a,d)),this._pt=new Ea(this._pt,m?v:x,c,u,p?p*o:o-u,m||"px"!==d&&"zIndex"!==c||!1===e.autoRound?Wa:Ka),this._pt.u=d||0,f!==d&&"%"!==d&&(this._pt.b=a,this._pt.r=Za);else if(c in x)_s.call(this,t,c,a,s);else{if(!(c in t)){br(c,s);continue}this.add(t,c,a||t[c],s,r,i)}T.push(c)}b&&xa(this)},get:bs,aliases:qa,getSetter:function(t,e,n){var r=qa[e];return r&&r.indexOf(",")<0&&(e=r),e in Ya&&e!==as&&(t._gsap.x||bs(t,"x"))?n&&Ia===n?"scale"===e?es:ts:(Ia=n||{})&&("scale"===e?ns:rs):t.style&&!nr(t.style[e])?Ja:~e.indexOf("-")?Qa:va(t,e)},core:{_removeProperty:ms,_getMatrix:Ms}};Ca.utils.checkPrefix=hs,Fs=Nr((Ls="x,y,z,scale,scaleX,scaleY,xPercent,yPercent")+","+(js="rotation,rotationX,rotationY,skewX,skewY")+",transform,transformOrigin,svgOrigin,force3D,smoothOrigin,transformPerspective",(function(t){Ya[t]=1})),Nr(js,(function(t){qn.units[t]="deg",xs[t]=1})),qa[Fs[13]]=Ls+","+js,Nr("0:translateX,1:translateY,2:translateZ,8:rotate,8:rotationZ,8:rotateZ,9:rotateX,10:rotateY",(function(t){var e=t.split(":");qa[e[1]]=Fs[e[0]]})),Nr("x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective,transformPerspective",(function(t){qn.units[t]="px"})),Ca.registerPlugin(Us);var Hs=Ca.registerPlugin(Us)||Ca;Hs.core.Tween;var zs=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=Hs.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 s=this.filterData(t,a);this.goAnimationParams=e;for(var o=0;o<s.length;o++){var u=s[o];if(u instanceof Array)for(var h=0;h<u.length;h++){var l=this.totalTime/u.length,c=u[h],f=this._creatTl("#wrap"+c.cid);this._add(f,h*l)}else{l=this.totalTime/s.length,f=this._creatTl("#wrap"+u.cid);this._add(f,o*l)}}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 s=this.splitArrayForCenter(e,"left");r=[t.orderBy(s.true,["center.x"],["asc"]),t.orderBy(s.false,["center.x"],["desc"])]}else if("spaceBetween"==n){s=this.splitArrayForCenter(e,"left");r=[t.orderBy(s.true,["center.x"],["desc"]),t.orderBy(s.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,s=Math.abs(n-i),o=Math.abs(r-a);return Math.sqrt(s*s+o*o)},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),s=r.getSpacing(a,n);t.spacing=s}})),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}))),console.log(r,"newList"),r},e.prototype._add=function(t,e){this.timeLine.add(t,e)},e.prototype._creatTl=function(t){var e=Hs.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,s=e.value;return s&&s.length&&s.forEach((function(t){t.delay=n||0,t.repeat=i||0})),Hs[a](t,r,s[0],s[1])},e.prototype.in=function(){},e.prototype.out=function(){},e}(),qs=zs.getInstance();var Ws=function(){function t(t){this.root=null,this.vuex=Oe.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 t.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},t.prototype.getAllComponents=function(){var t={};return this.findComponentDownward(this.root,t),t},t.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)}},t.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)}},t.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)}},t.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)}},t.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)}},t.prototype.getList=function(t){return t&&"id"===t?this.vuex.callState("list").map((function(t){return t.cid})):this.vuex.callState("list")},t.prototype.getTheme=function(t){var e=this.vuex.callState("theme");return t&&t(e),e},t.prototype.getElement=function(t){var e=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 s=0;s<a.children.length;s++)if(a.children[s].cid===e)return r=a.children[s],n&&a.children.splice(s,1),{value:r}}else if(a.stateChildren&&a.stateChildren.length){for(s=0;s<a.stateChildren.length;s++)if(a.stateChildren[s].cid===e)return r=a.stateChildren[s],n&&a.stateChildren.splice(s,1),{value:r}}else if(a.dynamicChildren){var o=void 0;if(a.dynamicChildren instanceof Map?o=a.dynamicChildren.get(a.activeDynamic):a.dynamicChildren instanceof Array&&(o=a.dynamicChildren.find((function(t){return t[0]==a.activeDynamic}))[1]),o)for(s=0;s<o.length;s++)if(o[s].cid===e)return r=o[s],n&&o.splice(s,1),{value:r}}},a=0;a<t.length;a++){var s=i(a);if("object"==typeof s)return s.value}return!!r}(this.vuex.callState("list"),t);return e},t.prototype.changeVis=function(t){return this.vuex.callMutation("changeShow",t)},t.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},t.prototype.changeDynamicState=function(t){return this.vuex.callMutation("changeDynamicState",t)},t.prototype.pageChange=function(t){return this.vuex.callMutation("setPageId",t)},t.prototype.getVars=function(t){var e=this.vuex.callState("globalVars");return t&&t(e),e},t.prototype.setVars=function(t){return this.vuex.callMutation("goEditVar",t)},t}(),Gs=function(t){function e(e){var n,i,a=t.call(this,e)||this,s=(n=(n=a.eventType)||new Map,r(r({},i),{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 a.$emit=s.emit,a.$on=s.on,a.$off=s.off,a}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 r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}(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}(Ws),Zs=function(t){return new Gs(t)},Ks=function(t,e){return ee(t,"GET",null,e).then((function(t){var e=JSON.parse(t.data.caseData);return Oe.getInstance().reversal(e),t}))},$s=function(t){if(t)return Oe.getInstance().render(t)},Xs=function(t,e){return Oe.getInstance().emitEvent(t,e||function(){})},Js=function(t,e,n,r,i){return Oe.getInstance().log(t,e,n,r,i)};export{Oe as Go,qs as GoAnimation,pn as Tool,$s as createComponent,Xs as emitEvent,ge as fxhr,ee as getData,Ks as getDataForRelease,Js as log,me as refreshData,Zs as run,Jt as store};
37
+ var Ra,Na,Va,Ia,Ba,Ya,La,ja={},Fa=180/Math.PI,Ua=Math.PI/180,Ha=Math.atan2,za=/([A-Z])/g,qa=/(?:left|right|width|margin|padding|x)/i,Wa=/[\s,\(]\S/,Ga={autoAlpha:"opacity,visibility",scale:"scaleX,scaleY",alpha:"opacity"},Za=function(t,e){return e.set(e.t,e.p,Math.round(1e4*(e.s+e.c*t))/1e4+e.u,e)},Ka=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)},$a=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)},Xa=function(t,e){var n=e.s+e.c*t;e.set(e.t,e.p,~~(n+(n<0?-.5:.5))+e.u,e)},Ja=function(t,e){return e.set(e.t,e.p,t?e.e:e.b,e)},Qa=function(t,e){return e.set(e.t,e.p,1!==t?e.b:e.e,e)},ts=function(t,e,n){return t.style[e]=n},es=function(t,e,n){return t.style.setProperty(e,n)},ns=function(t,e,n){return t._gsap[e]=n},rs=function(t,e,n){return t._gsap.scaleX=t._gsap.scaleY=n},is=function(t,e,n,r,i){var a=t._gsap;a.scaleX=a.scaleY=n,a.renderTransform(i,a)},as=function(t,e,n,r,i){var a=t._gsap;a[e]=n,a.renderTransform(i,a)},ss="transform",os=ss+"Origin",us=function(t,e){var n=Na.createElementNS?Na.createElementNS((e||"http://www.w3.org/1999/xhtml").replace(/^https/,"http"),t):Na.createElement(t);return n.style?n:Na.createElement(t)},ls=function t(e,n,r){var i=getComputedStyle(e);return i[n]||i.getPropertyValue(n.replace(za,"-$1").toLowerCase())||i.getPropertyValue(n)||!r&&t(e,cs(n)||n,1)||""},hs="O,Moz,ms,Ms,Webkit".split(","),cs=function(t,e,n){var r=(e||Ba).style,i=5;if(t in r&&!n)return t;for(t=t.charAt(0).toUpperCase()+t.substr(1);i--&&!(hs[i]+t in r););return i<0?null:(3===i?"ms":i>=0?hs[i]:"")+t},fs=function(){"undefined"!=typeof window&&window.document&&(Ra=window,Na=Ra.document,Va=Na.documentElement,Ba=us("div")||{style:{}},us("div"),ss=cs(ss),os=ss+"Origin",Ba.style.cssText="border-width:0;line-height:0;position:absolute;padding:0",La=!!cs("perspective"),Ia=1)},ds=function t(e){var n,r=us("svg",this.ownerSVGElement&&this.ownerSVGElement.getAttribute("xmlns")||"http://www.w3.org/2000/svg"),i=this.parentNode,a=this.nextSibling,s=this.style.cssText;if(Va.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)),Va.removeChild(r),this.style.cssText=s,n},ps=function(t,e){for(var n=e.length;n--;)if(t.hasAttribute(e[n]))return t.getAttribute(e[n])},ms=function(t){var e;try{e=t.getBBox()}catch(n){e=ds.call(t,!0)}return e&&(e.width||e.height)||t.getBBox===ds||(e=ds.call(t,!0)),!e||e.width||e.x||e.y?e:{x:+ps(t,["x","cx","x1"])||0,y:+ps(t,["y","cy","y1"])||0,width:0,height:0}},gs=function(t){return!(!t.getCTM||t.parentNode&&!t.ownerSVGElement||!ms(t))},vs=function(t,e){if(e){var n=t.style;e in ja&&e!==os&&(e=ss),n.removeProperty?("ms"!==e.substr(0,2)&&"webkit"!==e.substr(0,6)||(e="-"+e),n.removeProperty(e.replace(za,"-$1").toLowerCase())):n.removeAttribute(e)}},ys=function(t,e,n,r,i,a){var s=new Ma(t._pt,e,n,0,1,a?Qa:Ja);return t._pt=s,s.b=r,s.e=i,t._props.push(n),s},bs={deg:1,rad:1,turn:1},_s=function t(e,n,r,i){var a,s,o,u,l=parseFloat(r)||0,h=(r+"").trim().substr((l+"").length)||"px",c=Ba.style,f=qa.test(n),d="svg"===e.tagName.toLowerCase(),p=(d?"client":"offset")+(f?"Width":"Height"),m=100,g="px"===i,v="%"===i;return i===h||!l||bs[i]||bs[h]?l:("px"!==h&&!g&&(l=t(e,n,r,"px")),u=e.getCTM&&gs(e),!v&&"%"!==h||!ja[n]&&!~n.indexOf("adius")?(c[f?"width":"height"]=m+(g?h:i),s=~n.indexOf("adius")||"em"===i&&e.appendChild&&!d?e:e.parentNode,u&&(s=(e.ownerSVGElement||{}).parentNode),s&&s!==Na&&s.appendChild||(s=Na.body),(o=s._gsap)&&v&&o.width&&f&&o.time===Hi.time?Br(l/o.width*m):((v||"%"===h)&&(c.position=ls(e,"position")),s===e&&(c.position="static"),s.appendChild(Ba),a=Ba[p],s.removeChild(Ba),c.position="absolute",f&&v&&((o=Nr(s)).time=Hi.time,o.width=s[p]),Br(g?a*l/m:a&&l?m/a*l:0))):(a=u?e.getBBox()[f?"width":"height"]:e[p],Br(v?l/a*m:l/100*a)))},ws=function(t,e,n,r){var i;return Ia||fs(),e in Ga&&"transform"!==e&&~(e=Ga[e]).indexOf(",")&&(e=e.split(",")[0]),ja[e]&&"transform"!==e?(i=Ps(t,r),i="transformOrigin"!==e?i[e]:i.svg?i.origin:Rs(ls(t,os))+" "+i.zOrigin+"px"):(!(i=t.style[e])||"auto"===i||r||~(i+"").indexOf("calc("))&&(i=xs[e]&&xs[e](t,e,n)||ls(t,e)||Vr(t,e)||("opacity"===e?1:0)),n&&!~(i+"").trim().indexOf(" ")?_s(t,e,i,n)+n:i},Ds=function(t,e,n,r){if(!n||"none"===n){var i=cs(e,t,1),a=i&&ls(t,i,1);a&&a!==n?(e=i,n=a):"borderColor"===e&&(n=ls(t,"borderTopColor"))}var s,o,u,l,h,c,f,d,p,m,g,v,y=new Ma(this._pt,t.style,e,0,1,Da),b=0,_=0;if(y.b=n,y.e=r,n+="","auto"===(r+="")&&(t.style[e]=r,r=ls(t,e)||r,t.style[e]=n),Ui(s=[n,r]),r=s[1],u=(n=s[0]).match(dr)||[],(r.match(dr)||[]).length){for(;o=dr.exec(r);)f=o[0],p=r.substring(b,o.index),h?h=(h+1)%5:"rgba("!==p.substr(-5)&&"hsla("!==p.substr(-5)||(h=1),f!==(c=u[_++]||"")&&(l=parseFloat(c)||0,g=c.substr((l+"").length),(v="="===f.charAt(1)?+(f.charAt(0)+"1"):0)&&(f=f.substr(2)),d=parseFloat(f),m=f.substr((d+"").length),b=dr.lastIndex-m.length,m||(m=m||Gn.units[e]||g,b===r.length&&(r+=m,y.e+=m)),g!==m&&(l=_s(t,e,c,m)||0),y._pt={_next:y._pt,p:p||1===_?p:",",s:l,c:v?v*d:d-l,m:h&&h<4||"zIndex"===e?Math.round:0});y.c=b<r.length?r.substring(b,r.length):""}else y.r="display"===e&&"none"===r?Qa:Ja;return mr.test(r)&&(y.e=0),this._pt=y,y},Ss={top:"0%",bottom:"100%",left:"0%",right:"100%",center:"50%"},Ts=function(t,e){if(e.tween&&e.tween._time===e.tween._dur){var n,r,i,a=e.t,s=a.style,o=e.u,u=a._gsap;if("all"===o||!0===o)s.cssText="",r=1;else for(i=(o=o.split(",")).length;--i>-1;)n=o[i],ja[n]&&(r=1,n="transformOrigin"===n?os:ss),vs(a,n);r&&(vs(a,ss),u&&(u.svg&&a.removeAttribute("transform"),Ps(a,1),u.uncache=1))}},xs={clearProps:function(t,e,n,r,i){if("isFromStart"!==i.data){var a=t._pt=new Ma(t._pt,e,n,0,0,Ts);return a.u=r,a.pr=-10,a.tween=i,t._props.push(n),1}}},Es=[1,0,0,1,0,0],Os={},Ms=function(t){return"matrix(1, 0, 0, 1, 0, 0)"===t||"none"===t||!t},ks=function(t){var e=ls(t,ss);return Ms(e)?Es:e.substr(7).match(fr).map(Br)},Cs=function(t,e){var n,r,i,a,s=t._gsap||Nr(t),o=t.style,u=ks(t);return s.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(",")?Es:u:(u!==Es||t.offsetParent||t===Va||s.svg||(i=o.display,o.display="block",(n=t.parentNode)&&t.offsetParent||(a=1,r=t.nextSibling,Va.appendChild(t)),u=ks(t),i?o.display=i:vs(t,"display"),a&&(r?n.insertBefore(t,r):n?n.appendChild(t):Va.removeChild(t))),e&&u.length>6?[u[0],u[1],u[4],u[5],u[12],u[13]]:u)},As=function(t,e,n,r,i,a){var s,o,u,l=t._gsap,h=i||Cs(t,!0),c=l.xOrigin||0,f=l.yOrigin||0,d=l.xOffset||0,p=l.yOffset||0,m=h[0],g=h[1],v=h[2],y=h[3],b=h[4],_=h[5],w=e.split(" "),D=parseFloat(w[0])||0,S=parseFloat(w[1])||0;n?h!==Es&&(o=m*y-g*v)&&(u=D*(-g/o)+S*(m/o)-(m*_-g*b)/o,D=D*(y/o)+S*(-v/o)+(v*_-y*b)/o,S=u):(D=(s=ms(t)).x+(~w[0].indexOf("%")?D/100*s.width:D),S=s.y+(~(w[1]||w[0]).indexOf("%")?S/100*s.height:S)),r||!1!==r&&l.smooth?(b=D-c,_=S-f,l.xOffset=d+(b*m+_*v)-b,l.yOffset=p+(b*g+_*y)-_):l.xOffset=l.yOffset=0,l.xOrigin=D,l.yOrigin=S,l.smooth=!!r,l.origin=e,l.originIsAbsolute=!!n,t.style[os]="0px 0px",a&&(ys(a,l,"xOrigin",c,D),ys(a,l,"yOrigin",f,S),ys(a,l,"xOffset",d,l.xOffset),ys(a,l,"yOffset",p,l.yOffset)),t.setAttribute("data-svg-origin",D+" "+S)},Ps=function(t,e){var n=t._gsap||new na(t);if("x"in n&&!e&&!n.uncache)return n;var r,i,a,s,o,u,l,h,c,f,d,p,m,g,v,y,b,_,w,D,S,T,x,E,O,M,k,C,A,P,R,N,V=t.style,I=n.scaleX<0,B="px",Y="deg",L=ls(t,os)||"0";return r=i=a=u=l=h=c=f=d=0,s=o=1,n.svg=!(!t.getCTM||!gs(t)),g=Cs(t,n.svg),n.svg&&(E=(!n.uncache||"0px 0px"===L)&&!e&&t.getAttribute("data-svg-origin"),As(t,E||L,!!E||n.originIsAbsolute,!1!==n.smooth,g)),p=n.xOrigin||0,m=n.yOrigin||0,g!==Es&&(_=g[0],w=g[1],D=g[2],S=g[3],r=T=g[4],i=x=g[5],6===g.length?(s=Math.sqrt(_*_+w*w),o=Math.sqrt(S*S+D*D),u=_||w?Ha(w,_)*Fa:0,(c=D||S?Ha(D,S)*Fa+u:0)&&(o*=Math.abs(Math.cos(c*Ua))),n.svg&&(r-=p-(p*_+m*D),i-=m-(p*w+m*S))):(N=g[6],P=g[7],k=g[8],C=g[9],A=g[10],R=g[11],r=g[12],i=g[13],a=g[14],l=(v=Ha(N,A))*Fa,v&&(E=T*(y=Math.cos(-v))+k*(b=Math.sin(-v)),O=x*y+C*b,M=N*y+A*b,k=T*-b+k*y,C=x*-b+C*y,A=N*-b+A*y,R=P*-b+R*y,T=E,x=O,N=M),h=(v=Ha(-D,A))*Fa,v&&(y=Math.cos(-v),R=S*(b=Math.sin(-v))+R*y,_=E=_*y-k*b,w=O=w*y-C*b,D=M=D*y-A*b),u=(v=Ha(w,_))*Fa,v&&(E=_*(y=Math.cos(v))+w*(b=Math.sin(v)),O=T*y+x*b,w=w*y-_*b,x=x*y-T*b,_=E,T=O),l&&Math.abs(l)+Math.abs(u)>359.9&&(l=u=0,h=180-h),s=Br(Math.sqrt(_*_+w*w+D*D)),o=Br(Math.sqrt(x*x+N*N)),v=Ha(T,x),c=Math.abs(v)>2e-4?v*Fa:0,d=R?1/(R<0?-R:R):0),n.svg&&(E=t.getAttribute("transform"),n.forceCSS=t.setAttribute("transform","")||!Ms(ls(t,ss)),E&&t.setAttribute("transform",E))),Math.abs(c)>90&&Math.abs(c)<270&&(I?(s*=-1,c+=u<=0?180:-180,u+=u<=0?180:-180):(o*=-1,c+=c<=0?180:-180)),n.x=r-((n.xPercent=r&&(n.xPercent||(Math.round(t.offsetWidth/2)===Math.round(-r)?-50:0)))?t.offsetWidth*n.xPercent/100:0)+B,n.y=i-((n.yPercent=i&&(n.yPercent||(Math.round(t.offsetHeight/2)===Math.round(-i)?-50:0)))?t.offsetHeight*n.yPercent/100:0)+B,n.z=a+B,n.scaleX=Br(s),n.scaleY=Br(o),n.rotation=Br(u)+Y,n.rotationX=Br(l)+Y,n.rotationY=Br(h)+Y,n.skewX=c+Y,n.skewY=f+Y,n.transformPerspective=d+B,(n.zOrigin=parseFloat(L.split(" ")[2])||0)&&(V[os]=Rs(L)),n.xOffset=n.yOffset=0,n.force3D=Gn.force3D,n.renderTransform=n.svg?Bs:La?Is:Vs,n.uncache=0,n},Rs=function(t){return(t=t.split(" "))[0]+" "+t[1]},Ns=function(t,e,n){var r=yi(e);return Br(parseFloat(e)+parseFloat(_s(t,"x",n+"px",r)))+r},Vs=function(t,e){e.z="0px",e.rotationY=e.rotationX="0deg",e.force3D=0,Is(t,e)},Is=function(t,e){var n=e||this,r=n.xPercent,i=n.yPercent,a=n.x,s=n.y,o=n.z,u=n.rotation,l=n.rotationY,h=n.rotationX,c=n.skewX,f=n.skewY,d=n.scaleX,p=n.scaleY,m=n.transformPerspective,g=n.force3D,v=n.target,y=n.zOrigin,b="",_="auto"===g&&t&&1!==t||!0===g;if(y&&("0deg"!==h||"0deg"!==l)){var w,D=parseFloat(l)*Ua,S=Math.sin(D),T=Math.cos(D);D=parseFloat(h)*Ua,w=Math.cos(D),a=Ns(v,a,S*w*-y),s=Ns(v,s,-Math.sin(D)*-y),o=Ns(v,o,T*w*-y+y)}"0px"!==m&&(b+="perspective("+m+") "),(r||i)&&(b+="translate("+r+"%, "+i+"%) "),(_||"0px"!==a||"0px"!==s||"0px"!==o)&&(b+="0px"!==o||_?"translate3d("+a+", "+s+", "+o+") ":"translate("+a+", "+s+") "),"0deg"!==u&&(b+="rotate("+u+") "),"0deg"!==l&&(b+="rotateY("+l+") "),"0deg"!==h&&(b+="rotateX("+h+") "),"0deg"===c&&"0deg"===f||(b+="skew("+c+", "+f+") "),1===d&&1===p||(b+="scale("+d+", "+p+") "),v.style[ss]=b||"translate(0, 0)"},Bs=function(t,e){var n,r,i,a,s,o=e||this,u=o.xPercent,l=o.yPercent,h=o.x,c=o.y,f=o.rotation,d=o.skewX,p=o.skewY,m=o.scaleX,g=o.scaleY,v=o.target,y=o.xOrigin,b=o.yOrigin,_=o.xOffset,w=o.yOffset,D=o.forceCSS,S=parseFloat(h),T=parseFloat(c);f=parseFloat(f),d=parseFloat(d),(p=parseFloat(p))&&(d+=p=parseFloat(p),f+=p),f||d?(f*=Ua,d*=Ua,n=Math.cos(f)*m,r=Math.sin(f)*m,i=Math.sin(f-d)*-g,a=Math.cos(f-d)*g,d&&(p*=Ua,s=Math.tan(d-p),i*=s=Math.sqrt(1+s*s),a*=s,p&&(s=Math.tan(p),n*=s=Math.sqrt(1+s*s),r*=s)),n=Br(n),r=Br(r),i=Br(i),a=Br(a)):(n=m,a=g,r=i=0),(S&&!~(h+"").indexOf("px")||T&&!~(c+"").indexOf("px"))&&(S=_s(v,"x",h,"px"),T=_s(v,"y",c,"px")),(y||b||_||w)&&(S=Br(S+y-(y*n+b*i)+_),T=Br(T+b-(y*r+b*a)+w)),(u||l)&&(s=v.getBBox(),S=Br(S+u/100*s.width),T=Br(T+l/100*s.height)),s="matrix("+n+","+r+","+i+","+a+","+S+","+T+")",v.setAttribute("transform",s),D&&(v.style[ss]=s)},Ys=function(t,e,n,r,i,a){var s,o,u=360,l=er(i),h=parseFloat(i)*(l&&~i.indexOf("rad")?Fa:1),c=a?h*a:h-r,f=r+c+"deg";return l&&("short"===(s=i.split("_")[1])&&(c%=u)!==c%180&&(c+=c<0?u:-360),"cw"===s&&c<0?c=(c+36e9)%u-~~(c/u)*u:"ccw"===s&&c>0&&(c=(c-36e9)%u-~~(c/u)*u)),t._pt=o=new Ma(t._pt,e,n,r,c,Ka),o.e=f,o.u="deg",t._props.push(n),o},Ls=function(t,e){for(var n in e)t[n]=e[n];return t},js=function(t,e,n){var r,i,a,s,o,u,l,h=Ls({},n._gsap),c=n.style;for(i in h.svg?(a=n.getAttribute("transform"),n.setAttribute("transform",""),c[ss]=e,r=Ps(n,1),vs(n,ss),n.setAttribute("transform",a)):(a=getComputedStyle(n)[ss],c[ss]=e,r=Ps(n,1),c[ss]=a),ja)(a=h[i])!==(s=r[i])&&"perspective,force3D,transformOrigin,svgOrigin".indexOf(i)<0&&(o=yi(a)!==(l=yi(s))?_s(n,i,a,l):parseFloat(a),u=parseFloat(s),t._pt=new Ma(t._pt,r,i,o,u-o,Za),t._pt.u=l||0,t._props.push(i));Ls(r,h)};Ir("padding,margin,Width,Radius",(function(t,e){var n="Top",r="Right",i="Bottom",a="Left",s=(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}));xs[e>1?"border"+t:t]=function(t,e,n,r,i){var a,o;if(arguments.length<4)return a=s.map((function(e){return ws(t,e,n)})),5===(o=a.join(" ")).split(a[0]).length?a[0]:o;a=(r+"").split(" "),o={},s.forEach((function(t,e){return o[t]=a[e]=a[e]||a[(e-1)/2|0]})),t.init(e,o,i)}}));var Fs,Us,Hs,zs={name:"css",register:fs,targetTest:function(t){return t.style&&t.nodeType},init:function(t,e,n,r,i){var a,s,o,u,l,h,c,f,d,p,m,g,v,y,b,_,w,D,S,T=this._props,x=t.style,E=n.vars.startAt;for(c in Ia||fs(),e)if("autoRound"!==c&&(s=e[c],!Mr[c]||!ua(c,e,n,r,t,i)))if(l=typeof s,h=xs[c],"function"===l&&(l=typeof(s=s.call(n,r,t,i))),"string"===l&&~s.indexOf("random(")&&(s=ki(s)),h)h(this,t,c,s,n)&&(b=1);else if("--"===c.substr(0,2))a=(getComputedStyle(t).getPropertyValue(c)+"").trim(),s+="",ji.lastIndex=0,ji.test(a)||(f=yi(a),d=yi(s)),d?f!==d&&(a=_s(t,c,a,d)+d):f&&(s+=f),this.add(x,"setProperty",a,s,r,i,0,0,c),T.push(c);else if("undefined"!==l){if(E&&c in E?(a="function"==typeof E[c]?E[c].call(n,r,t,i):E[c],c in Gn.units&&!yi(a)&&(a+=Gn.units[c]),er(a)&&~a.indexOf("random(")&&(a=ki(a)),"="===(a+"").charAt(1)&&(a=ws(t,c))):a=ws(t,c),u=parseFloat(a),(p="string"===l&&"="===s.charAt(1)?+(s.charAt(0)+"1"):0)&&(s=s.substr(2)),o=parseFloat(s),c in Ga&&("autoAlpha"===c&&(1===u&&"hidden"===ws(t,"visibility")&&o&&(u=0),ys(this,x,"visibility",u?"inherit":"hidden",o?"inherit":"hidden",!o)),"scale"!==c&&"transform"!==c&&~(c=Ga[c]).indexOf(",")&&(c=c.split(",")[0])),m=c in ja)if(g||((v=t._gsap).renderTransform&&!e.parseTransform||Ps(t,e.parseTransform),y=!1!==e.smoothOrigin&&v.smooth,(g=this._pt=new Ma(this._pt,x,ss,0,1,v.renderTransform,v,0,-1)).dep=1),"scale"===c)this._pt=new Ma(this._pt,v,"scaleY",v.scaleY,(p?p*o:o-v.scaleY)||0),T.push("scaleY",c),c+="X";else{if("transformOrigin"===c){w=void 0,D=void 0,S=void 0,w=(_=s).split(" "),D=w[0],S=w[1]||"50%","top"!==D&&"bottom"!==D&&"left"!==S&&"right"!==S||(_=D,D=S,S=_),w[0]=Ss[D]||D,w[1]=Ss[S]||S,s=w.join(" "),v.svg?As(t,s,0,y,0,this):((d=parseFloat(s.split(" ")[2])||0)!==v.zOrigin&&ys(this,v,"zOrigin",v.zOrigin,d),ys(this,x,c,Rs(a),Rs(s)));continue}if("svgOrigin"===c){As(t,s,1,y,0,this);continue}if(c in Os){Ys(this,v,c,u,s,p);continue}if("smoothOrigin"===c){ys(this,v,"smooth",v.smooth,s);continue}if("force3D"===c){v[c]=s;continue}if("transform"===c){js(this,s,t);continue}}else c in x||(c=cs(c)||c);if(m||(o||0===o)&&(u||0===u)&&!Wa.test(s)&&c in x)o||(o=0),(f=(a+"").substr((u+"").length))!==(d=yi(s)||(c in Gn.units?Gn.units[c]:f))&&(u=_s(t,c,a,d)),this._pt=new Ma(this._pt,m?v:x,c,u,p?p*o:o-u,m||"px"!==d&&"zIndex"!==c||!1===e.autoRound?Za:Xa),this._pt.u=d||0,f!==d&&"%"!==d&&(this._pt.b=a,this._pt.r=$a);else if(c in x)Ds.call(this,t,c,a,s);else{if(!(c in t)){wr(c,s);continue}this.add(t,c,a||t[c],s,r,i)}T.push(c)}b&&Oa(this)},get:ws,aliases:Ga,getSetter:function(t,e,n){var r=Ga[e];return r&&r.indexOf(",")<0&&(e=r),e in ja&&e!==os&&(t._gsap.x||ws(t,"x"))?n&&Ya===n?"scale"===e?rs:ns:(Ya=n||{})&&("scale"===e?is:as):t.style&&!ir(t.style[e])?ts:~e.indexOf("-")?es:ba(t,e)},core:{_removeProperty:vs,_getMatrix:Cs}};Pa.utils.checkPrefix=cs,Hs=Ir((Fs="x,y,z,scale,scaleX,scaleY,xPercent,yPercent")+","+(Us="rotation,rotationX,rotationY,skewX,skewY")+",transform,transformOrigin,svgOrigin,force3D,smoothOrigin,transformPerspective",(function(t){ja[t]=1})),Ir(Us,(function(t){Gn.units[t]="deg",Os[t]=1})),Ga[Hs[13]]=Fs+","+Us,Ir("0:translateX,1:translateY,2:translateZ,8:rotate,8:rotationZ,8:rotateZ,9:rotateX,10:rotateY",(function(t){var e=t.split(":");Ga[e[1]]=Hs[e[0]]})),Ir("x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective,transformPerspective",(function(t){Gn.units[t]="px"})),Pa.registerPlugin(zs);var qs=Pa.registerPlugin(zs)||Pa;qs.core.Tween;var Ws=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=qs.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 s=this.filterData(t,a);this.goAnimationParams=e;for(var o=0;o<s.length;o++){var u=s[o];if(u instanceof Array)for(var l=0;l<u.length;l++){var h=this.totalTime/u.length,c=u[l],f=this._creatTl("#wrap"+c.cid);this._add(f,l*h)}else{h=this.totalTime/s.length,f=this._creatTl("#wrap"+u.cid);this._add(f,o*h)}}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 s=this.splitArrayForCenter(e,"left");r=[t.orderBy(s.true,["center.x"],["asc"]),t.orderBy(s.false,["center.x"],["desc"])]}else if("spaceBetween"==n){s=this.splitArrayForCenter(e,"left");r=[t.orderBy(s.true,["center.x"],["desc"]),t.orderBy(s.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,s=Math.abs(n-i),o=Math.abs(r-a);return Math.sqrt(s*s+o*o)},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),s=r.getSpacing(a,n);t.spacing=s}})),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}))),console.log(r,"newList"),r},e.prototype._add=function(t,e){this.timeLine.add(t,e)},e.prototype._creatTl=function(t){var e=qs.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,s=e.value;return s&&s.length&&s.forEach((function(t){t.delay=n||0,t.repeat=i||0})),qs[a](t,r,s[0],s[1])},e.prototype.in=function(){},e.prototype.out=function(){},e}(),Gs=Ws.getInstance();var Zs=function(){function t(t){this.root=null,this.vuex=ke.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 t.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},t.prototype.getAllComponents=function(){var t={};return this.findComponentDownward(this.root,t),t},t.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)}},t.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)}},t.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)}},t.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)}},t.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)}},t.prototype.getList=function(t){return t&&"id"===t?this.vuex.callState("list").map((function(t){return t.cid})):this.vuex.callState("list")},t.prototype.getTheme=function(t){var e=this.vuex.callState("theme");return t&&t(e),e},t.prototype.getElement=function(t){var e=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 s=0;s<a.children.length;s++)if(a.children[s].cid===e)return r=a.children[s],n&&a.children.splice(s,1),{value:r}}else if(a.stateChildren&&a.stateChildren.length){for(s=0;s<a.stateChildren.length;s++)if(a.stateChildren[s].cid===e)return r=a.stateChildren[s],n&&a.stateChildren.splice(s,1),{value:r}}else if(a.dynamicChildren){var o=void 0;if(a.dynamicChildren instanceof Map?o=a.dynamicChildren.get(a.activeDynamic):a.dynamicChildren instanceof Array&&(o=a.dynamicChildren.find((function(t){return t[0]==a.activeDynamic}))[1]),o)for(s=0;s<o.length;s++)if(o[s].cid===e)return r=o[s],n&&o.splice(s,1),{value:r}}},a=0;a<t.length;a++){var s=i(a);if("object"==typeof s)return s.value}return!!r}(this.vuex.callState("list"),t);return e},t.prototype.changeVis=function(t){return this.vuex.callMutation("changeShow",t)},t.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},t.prototype.changeDynamicState=function(t){return this.vuex.callMutation("changeDynamicState",t)},t.prototype.pageChange=function(t){return this.vuex.callMutation("setPageId",t)},t.prototype.getVars=function(t){var e=this.vuex.callState("globalVars");return t&&t(e),e},t.prototype.setVars=function(t){return this.vuex.callMutation("goEditVar",t)},t}(),Ks=function(t){function e(e){var n,i,a=t.call(this,e)||this,s=(n=(n=a.eventType)||new Map,r(r({},i),{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 a.$emit=s.emit,a.$on=s.on,a.$off=s.off,a}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 r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}(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}(Zs),$s=function(t){return new Ks(t)},Xs=function(t,e){return re(t,"GET",null,e).then((function(t){var e=JSON.parse(t.data.caseData);return ke.getInstance().reversal(e),t}))},Js=function(t){if(t)return ke.getInstance().render(t)},Qs=function(t,e){return ke.getInstance().emitEvent(t,e||function(){})},to=function(t,e,n,r,i){return ke.getInstance().log(t,e,n,r,i)};export{ke as Go,Gs as GoAnimation,gn as Tool,Js as createComponent,Qs as emitEvent,ye as fxhr,re as getData,Xs as getDataForRelease,to as log,ve as refreshData,$s as run,te as store};
38
38
  //# sourceMappingURL=code.es5.js.map