36 lines
1.0 MiB
36 lines
1.0 MiB
function hex_sha1(t){return binb2hex(core_sha1(str2binb(t),t.length*chrsz))}function b64_sha1(t){return binb2b64(core_sha1(str2binb(t),t.length*chrsz))}function str_sha1(t){return binb2str(core_sha1(str2binb(t),t.length*chrsz))}function hex_hmac_sha1(t,e){return binb2hex(core_hmac_sha1(t,e))}function b64_hmac_sha1(t,e){return binb2b64(core_hmac_sha1(t,e))}function str_hmac_sha1(t,e){return binb2str(core_hmac_sha1(t,e))}function sha1_vm_test(){return"a9993e364706816aba3e25717850c26c9cd0d89d"==hex_sha1("abc")}function core_sha1(t,e){t[e>>5]|=128<<24-e%32,t[(e+64>>9<<4)+15]=e;for(var n=Array(80),r=1732584193,i=-271733879,o=-1732584194,a=271733878,s=-1009589776,u=0;u<t.length;u+=16){for(var l=r,c=i,f=o,h=a,d=s,p=0;p<80;p++){p<16?n[p]=t[u+p]:n[p]=rol(n[p-3]^n[p-8]^n[p-14]^n[p-16],1);var m=safe_add(safe_add(rol(r,5),sha1_ft(p,i,o,a)),safe_add(safe_add(s,n[p]),sha1_kt(p)));s=a,a=o,o=rol(i,30),i=r,r=m}r=safe_add(r,l),i=safe_add(i,c),o=safe_add(o,f),a=safe_add(a,h),s=safe_add(s,d)}return Array(r,i,o,a,s)}function sha1_ft(t,e,n,r){return t<20?e&n|~e&r:t<40?e^n^r:t<60?e&n|e&r|n&r:e^n^r}function sha1_kt(t){return t<20?1518500249:t<40?1859775393:t<60?-1894007588:-899497514}function core_hmac_sha1(t,e){var n=str2binb(t);n.length>16&&(n=core_sha1(n,t.length*chrsz));for(var r=Array(16),i=Array(16),o=0;o<16;o++)r[o]=909522486^n[o],i[o]=1549556828^n[o];var a=core_sha1(r.concat(str2binb(e)),512+e.length*chrsz);return core_sha1(i.concat(a),672)}function safe_add(t,e){var n=(65535&t)+(65535&e),r=(t>>16)+(e>>16)+(n>>16);return r<<16|65535&n}function rol(t,e){return t<<e|t>>>32-e}function str2binb(t){for(var e=Array(),n=(1<<chrsz)-1,r=0;r<t.length*chrsz;r+=chrsz)e[r>>5]|=(t.charCodeAt(r/chrsz)&n)<<32-chrsz-r%32;return e}function binb2str(t){for(var e="",n=(1<<chrsz)-1,r=0;r<32*t.length;r+=chrsz)e+=String.fromCharCode(t[r>>5]>>>32-chrsz-r%32&n);return e}function binb2hex(t){for(var e=hexcase?"0123456789ABCDEF":"0123456789abcdef",n="",r=0;r<4*t.length;r++)n+=e.charAt(t[r>>2]>>8*(3-r%4)+4&15)+e.charAt(t[r>>2]>>8*(3-r%4)&15);return n}function binb2b64(t){for(var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",n="",r=0;r<4*t.length;r+=3)for(var i=(t[r>>2]>>8*(3-r%4)&255)<<16|(t[r+1>>2]>>8*(3-(r+1)%4)&255)<<8|t[r+2>>2]>>8*(3-(r+2)%4)&255,o=0;o<4;o++)n+=8*r+6*o>32*t.length?b64pad:e.charAt(i>>6*(3-o)&63);return n}function murmurhash3_32_gc(t,e){var n,r,i,o,a,s,u,l;for(n=3&t.length,r=t.length-n,i=e,a=3432918353,s=461845907,l=0;l<r;)u=255&t.charCodeAt(l)|(255&t.charCodeAt(++l))<<8|(255&t.charCodeAt(++l))<<16|(255&t.charCodeAt(++l))<<24,++l,u=(65535&u)*a+(((u>>>16)*a&65535)<<16)&4294967295,u=u<<15|u>>>17,u=(65535&u)*s+(((u>>>16)*s&65535)<<16)&4294967295,i^=u,i=i<<13|i>>>19,o=5*(65535&i)+((5*(i>>>16)&65535)<<16)&4294967295,i=(65535&o)+27492+(((o>>>16)+58964&65535)<<16);switch(u=0,n){case 3:u^=(255&t.charCodeAt(l+2))<<16;case 2:u^=(255&t.charCodeAt(l+1))<<8;case 1:u^=255&t.charCodeAt(l),u=(65535&u)*a+(((u>>>16)*a&65535)<<16)&4294967295,u=u<<15|u>>>17,u=(65535&u)*s+(((u>>>16)*s&65535)<<16)&4294967295,i^=u}return i^=t.length,i^=i>>>16,i=2246822507*(65535&i)+((2246822507*(i>>>16)&65535)<<16)&4294967295,i^=i>>>13,i=3266489909*(65535&i)+((3266489909*(i>>>16)&65535)<<16)&4294967295,i^=i>>>16,i>>>0}!function(t){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var e;"undefined"!=typeof window?e=window:"undefined"!=typeof global?e=global:"undefined"!=typeof self&&(e=self),e.Promise=t()}}(function(){var t,e,n;return function r(t,e,n){function i(a,s){if(!e[a]){if(!t[a]){var u="function"==typeof _dereq_&&_dereq_;if(!s&&u)return u(a,!0);if(o)return o(a,!0);var l=new Error("Cannot find module '"+a+"'");throw l.code="MODULE_NOT_FOUND",l}var c=e[a]={exports:{}};t[a][0].call(c.exports,function(e){var n=t[a][1][e];return i(n?n:e)},c,c.exports,r,t,e,n)}return e[a].exports}for(var o="function"==typeof _dereq_&&_dereq_,a=0;a<n.length;a++)i(n[a]);return i}({1:[function(t,e,n){"use strict";e.exports=function(t){function e(t){var e=new n(t),r=e.promise();return e.setHowMany(1),e.setUnwrap(),e.init(),r}var n=t._SomePromiseArray;t.any=function(t){return e(t)},t.prototype.any=function(){return e(this)}}},{}],2:[function(t,e,n){"use strict";function r(){this._customScheduler=!1,this._isTickUsed=!1,this._lateQueue=new c(16),this._normalQueue=new c(16),this._haveDrainedQueues=!1,this._trampolineEnabled=!0;var t=this;this.drainQueues=function(){t._drainQueues()},this._schedule=l}function i(t,e,n){this._lateQueue.push(t,e,n),this._queueTick()}function o(t,e,n){this._normalQueue.push(t,e,n),this._queueTick()}function a(t){this._normalQueue._pushOne(t),this._queueTick()}var s;try{throw new Error}catch(u){s=u}var l=t("./schedule"),c=t("./queue"),f=t("./util");r.prototype.setScheduler=function(t){var e=this._schedule;return this._schedule=t,this._customScheduler=!0,e},r.prototype.hasCustomScheduler=function(){return this._customScheduler},r.prototype.enableTrampoline=function(){this._trampolineEnabled=!0},r.prototype.disableTrampolineIfNecessary=function(){f.hasDevTools&&(this._trampolineEnabled=!1)},r.prototype.haveItemsQueued=function(){return this._isTickUsed||this._haveDrainedQueues},r.prototype.fatalError=function(t,e){e?(process.stderr.write("Fatal "+(t instanceof Error?t.stack:t)+"\n"),process.exit(2)):this.throwLater(t)},r.prototype.throwLater=function(t,e){if(1===arguments.length&&(e=t,t=function(){throw e}),"undefined"!=typeof setTimeout)setTimeout(function(){t(e)},0);else try{this._schedule(function(){t(e)})}catch(n){throw new Error("No async scheduler available\n\n See http://goo.gl/MqrFmX\n")}},f.hasDevTools?(r.prototype.invokeLater=function(t,e,n){this._trampolineEnabled?i.call(this,t,e,n):this._schedule(function(){setTimeout(function(){t.call(e,n)},100)})},r.prototype.invoke=function(t,e,n){this._trampolineEnabled?o.call(this,t,e,n):this._schedule(function(){t.call(e,n)})},r.prototype.settlePromises=function(t){this._trampolineEnabled?a.call(this,t):this._schedule(function(){t._settlePromises()})}):(r.prototype.invokeLater=i,r.prototype.invoke=o,r.prototype.settlePromises=a),r.prototype._drainQueue=function(t){for(;t.length()>0;){var e=t.shift();if("function"==typeof e){var n=t.shift(),r=t.shift();e.call(n,r)}else e._settlePromises()}},r.prototype._drainQueues=function(){this._drainQueue(this._normalQueue),this._reset(),this._haveDrainedQueues=!0,this._drainQueue(this._lateQueue)},r.prototype._queueTick=function(){this._isTickUsed||(this._isTickUsed=!0,this._schedule(this.drainQueues))},r.prototype._reset=function(){this._isTickUsed=!1},e.exports=r,e.exports.firstLineError=s},{"./queue":26,"./schedule":29,"./util":36}],3:[function(t,e,n){"use strict";e.exports=function(t,e,n,r){var i=!1,o=function(t,e){this._reject(e)},a=function(t,e){e.promiseRejectionQueued=!0,e.bindingPromise._then(o,o,null,this,t)},s=function(t,e){0===(50397184&this._bitField)&&this._resolveCallback(e.target)},u=function(t,e){e.promiseRejectionQueued||this._reject(t)};t.prototype.bind=function(o){i||(i=!0,t.prototype._propagateFrom=r.propagateFromFunction(),t.prototype._boundValue=r.boundValueFunction());var l=n(o),c=new t(e);c._propagateFrom(this,1);var f=this._target();if(c._setBoundTo(l),l instanceof t){var h={promiseRejectionQueued:!1,promise:c,target:f,bindingPromise:l};f._then(e,a,void 0,c,h),l._then(s,u,void 0,c,h),c._setOnCancel(l)}else c._resolveCallback(f);return c},t.prototype._setBoundTo=function(t){void 0!==t?(this._bitField=2097152|this._bitField,this._boundTo=t):this._bitField=this._bitField&-2097153},t.prototype._isBound=function(){return 2097152===(2097152&this._bitField)},t.bind=function(e,n){return t.resolve(n).bind(e)}}},{}],4:[function(t,e,n){"use strict";function r(){try{Promise===o&&(Promise=i)}catch(t){}return o}var i;"undefined"!=typeof Promise&&(i=Promise);var o=t("./promise")();o.noConflict=r,e.exports=o},{"./promise":22}],5:[function(t,e,n){"use strict";var r=Object.create;if(r){var i=r(null),o=r(null);i[" size"]=o[" size"]=0}e.exports=function(e){function n(t,n){var r;if(null!=t&&(r=t[n]),"function"!=typeof r){var i="Object "+s.classString(t)+" has no method '"+s.toString(n)+"'";throw new e.TypeError(i)}return r}function r(t){var e=this.pop(),r=n(t,e);return r.apply(t,this)}function i(t){return t[this]}function o(t){var e=+this;return e<0&&(e=Math.max(0,e+t.length)),t[e]}var a,s=t("./util"),u=s.canEvaluate;s.isIdentifier;e.prototype.call=function(t){var e=[].slice.call(arguments,1);return e.push(t),this._then(r,void 0,void 0,e,void 0)},e.prototype.get=function(t){var e,n="number"==typeof t;if(n)e=o;else if(u){var r=a(t);e=null!==r?r:i}else e=i;return this._then(e,void 0,void 0,t,void 0)}}},{"./util":36}],6:[function(t,e,n){"use strict";e.exports=function(e,n,r,i){var o=t("./util"),a=o.tryCatch,s=o.errorObj,u=e._async;e.prototype["break"]=e.prototype.cancel=function(){if(!i.cancellation())return this._warn("cancellation is disabled");for(var t=this,e=t;t._isCancellable();){if(!t._cancelBy(e)){e._isFollowing()?e._followee().cancel():e._cancelBranched();break}var n=t._cancellationParent;if(null==n||!n._isCancellable()){t._isFollowing()?t._followee().cancel():t._cancelBranched();break}t._isFollowing()&&t._followee().cancel(),t._setWillBeCancelled(),e=t,t=n}},e.prototype._branchHasCancelled=function(){this._branchesRemainingToCancel--},e.prototype._enoughBranchesHaveCancelled=function(){return void 0===this._branchesRemainingToCancel||this._branchesRemainingToCancel<=0},e.prototype._cancelBy=function(t){return t===this?(this._branchesRemainingToCancel=0,this._invokeOnCancel(),!0):(this._branchHasCancelled(),!!this._enoughBranchesHaveCancelled()&&(this._invokeOnCancel(),!0))},e.prototype._cancelBranched=function(){this._enoughBranchesHaveCancelled()&&this._cancel()},e.prototype._cancel=function(){this._isCancellable()&&(this._setCancelled(),u.invoke(this._cancelPromises,this,void 0))},e.prototype._cancelPromises=function(){this._length()>0&&this._settlePromises()},e.prototype._unsetOnCancel=function(){this._onCancelField=void 0},e.prototype._isCancellable=function(){return this.isPending()&&!this._isCancelled()},e.prototype.isCancellable=function(){return this.isPending()&&!this.isCancelled()},e.prototype._doInvokeOnCancel=function(t,e){if(o.isArray(t))for(var n=0;n<t.length;++n)this._doInvokeOnCancel(t[n],e);else if(void 0!==t)if("function"==typeof t){if(!e){var r=a(t).call(this._boundValue());r===s&&(this._attachExtraTrace(r.e),u.throwLater(r.e))}}else t._resultCancelled(this)},e.prototype._invokeOnCancel=function(){var t=this._onCancel();this._unsetOnCancel(),u.invoke(this._doInvokeOnCancel,this,t)},e.prototype._invokeInternalOnCancel=function(){this._isCancellable()&&(this._doInvokeOnCancel(this._onCancel(),!0),this._unsetOnCancel())},e.prototype._resultCancelled=function(){this.cancel()}}},{"./util":36}],7:[function(t,e,n){"use strict";e.exports=function(e){function n(t,n,s){return function(u){var l=s._boundValue();t:for(var c=0;c<t.length;++c){var f=t[c];if(f===Error||null!=f&&f.prototype instanceof Error){if(u instanceof f)return o(n).call(l,u)}else if("function"==typeof f){var h=o(f).call(l,u);if(h===a)return h;if(h)return o(n).call(l,u)}else if(r.isObject(u)){for(var d=i(f),p=0;p<d.length;++p){var m=d[p];if(f[m]!=u[m])continue t}return o(n).call(l,u)}}return e}}var r=t("./util"),i=t("./es5").keys,o=r.tryCatch,a=r.errorObj;return n}},{"./es5":13,"./util":36}],8:[function(t,e,n){"use strict";e.exports=function(t){function e(){this._trace=new e.CapturedTrace(r())}function n(){if(i)return new e}function r(){var t=o.length-1;if(t>=0)return o[t]}var i=!1,o=[];return t.prototype._promiseCreated=function(){},t.prototype._pushContext=function(){},t.prototype._popContext=function(){return null},t._peekContext=t.prototype._peekContext=function(){},e.prototype._pushContext=function(){void 0!==this._trace&&(this._trace._promiseCreated=null,o.push(this._trace))},e.prototype._popContext=function(){if(void 0!==this._trace){var t=o.pop(),e=t._promiseCreated;return t._promiseCreated=null,e}return null},e.CapturedTrace=null,e.create=n,e.deactivateLongStackTraces=function(){},e.activateLongStackTraces=function(){var n=t.prototype._pushContext,o=t.prototype._popContext,a=t._peekContext,s=t.prototype._peekContext,u=t.prototype._promiseCreated;e.deactivateLongStackTraces=function(){t.prototype._pushContext=n,t.prototype._popContext=o,t._peekContext=a,t.prototype._peekContext=s,t.prototype._promiseCreated=u,i=!1},i=!0,t.prototype._pushContext=e.prototype._pushContext,t.prototype._popContext=e.prototype._popContext,t._peekContext=t.prototype._peekContext=r,t.prototype._promiseCreated=function(){var t=this._peekContext();t&&null==t._promiseCreated&&(t._promiseCreated=this)}},e}},{}],9:[function(t,e,n){"use strict";e.exports=function(e,n){function r(t,e){return{promise:e}}function i(){return!1}function o(t,e,n){var r=this;try{t(e,n,function(t){if("function"!=typeof t)throw new TypeError("onCancel must be a function, got: "+R.toString(t));r._attachCancellationCallback(t)})}catch(i){return i}}function a(t){if(!this._isCancellable())return this;var e=this._onCancel();void 0!==e?R.isArray(e)?e.push(t):this._setOnCancel([e,t]):this._setOnCancel(t)}function s(){return this._onCancelField}function u(t){this._onCancelField=t}function l(){this._cancellationParent=void 0,this._onCancelField=void 0}function c(t,e){if(0!==(1&e)){this._cancellationParent=t;var n=t._branchesRemainingToCancel;void 0===n&&(n=0),t._branchesRemainingToCancel=n+1}0!==(2&e)&&t._isBound()&&this._setBoundTo(t._boundTo)}function f(t,e){0!==(2&e)&&t._isBound()&&this._setBoundTo(t._boundTo)}function h(){var t=this._boundTo;return void 0!==t&&t instanceof e?t.isFulfilled()?t.value():void 0:t}function d(){this._trace=new F(this._peekContext())}function p(t,e){if(I(t)){var n=this._trace;if(void 0!==n&&e&&(n=n._parent),void 0!==n)n.attachExtraTrace(t);else if(!t.__stackCleaned__){var r=k(t);R.notEnumerableProp(t,"stack",r.message+"\n"+r.stack.join("\n")),R.notEnumerableProp(t,"__stackCleaned__",!0)}}}function m(t,e,n,r,i){if(void 0===t&&null!==e&&K){if(void 0!==i&&i._returnedNonUndefined())return;if(0===(65535&r._bitField))return;n&&(n+=" ");var o="",a="";if(e._trace){for(var s=e._trace.stack.split("\n"),u=w(s),l=u.length-1;l>=0;--l){var c=u[l];if(!z.test(c)){var f=c.match(H);f&&(o="at "+f[1]+":"+f[2]+":"+f[3]+" ");break}}if(u.length>0)for(var h=u[0],l=0;l<s.length;++l)if(s[l]===h){l>0&&(a="\n"+s[l-1]);break}}var d="a promise was created in a "+n+"handler "+o+"but was not returned from it, see http://goo.gl/rRqMUw"+a;r._warn(d,!0,e)}}function g(t,e){var n=t+" is deprecated and will be removed in a future version.";return e&&(n+=" Use "+e+" instead."),v(n)}function v(t,n,r){if(ot.warnings){var i,o=new L(t);if(n)r._attachExtraTrace(o);else if(ot.longStackTraces&&(i=e._peekContext()))i.attachExtraTrace(o);else{var a=k(o);o.stack=a.message+"\n"+a.stack.join("\n")}tt("warning",o)||C(o,"",!0)}}function y(t,e){for(var n=0;n<e.length-1;++n)e[n].push("From previous event:"),e[n]=e[n].join("\n");return n<e.length&&(e[n]=e[n].join("\n")),t+"\n"+e.join("\n")}function b(t){for(var e=0;e<t.length;++e)(0===t[e].length||e+1<t.length&&t[e][0]===t[e+1][0])&&(t.splice(e,1),e--)}function _(t){for(var e=t[0],n=1;n<t.length;++n){for(var r=t[n],i=e.length-1,o=e[i],a=-1,s=r.length-1;s>=0;--s)if(r[s]===o){a=s;break}for(var s=a;s>=0;--s){var u=r[s];if(e[i]!==u)break;e.pop(),i--}e=r}}function w(t){for(var e=[],n=0;n<t.length;++n){var r=t[n],i=" (No stack trace)"===r||B.test(r),o=i&&nt(r);i&&!o&&(V&&" "!==r.charAt(0)&&(r=" "+r),e.push(r))}return e}function x(t){for(var e=t.stack.replace(/\s+$/g,"").split("\n"),n=0;n<e.length;++n){var r=e[n];if(" (No stack trace)"===r||B.test(r))break}return n>0&&"SyntaxError"!=t.name&&(e=e.slice(n)),e}function k(t){var e=t.stack,n=t.toString();return e="string"==typeof e&&e.length>0?x(t):[" (No stack trace)"],{message:n,stack:"SyntaxError"==t.name?e:w(e)}}function C(t,e,n){if("undefined"!=typeof console){var r;if(R.isObject(t)){var i=t.stack;r=e+U(i,t)}else r=e+String(t);"function"==typeof O?O(r,n):"function"!=typeof console.log&&"object"!=typeof console.log||console.log(r)}}function E(t,e,n,r){var i=!1;try{"function"==typeof e&&(i=!0,"rejectionHandled"===t?e(r):e(n,r))}catch(o){P.throwLater(o)}"unhandledRejection"===t?tt(t,n,r)||i||C(n,"Unhandled rejection "):tt(t,r)}function $(t){var e;if("function"==typeof t)e="[function "+(t.name||"anonymous")+"]";else{e=t&&"function"==typeof t.toString?t.toString():R.toString(t);var n=/\[object [a-zA-Z0-9$_]+\]/;if(n.test(e))try{var r=JSON.stringify(t);e=r}catch(i){}0===e.length&&(e="(empty array)")}return"(<"+S(e)+">, no stack trace)"}function S(t){var e=41;return t.length<e?t:t.substr(0,e-3)+"..."}function A(){return"function"==typeof it}function T(t){var e=t.match(rt);if(e)return{fileName:e[1],line:parseInt(e[2],10)}}function D(t,e){if(A()){for(var n,r,i=t.stack.split("\n"),o=e.stack.split("\n"),a=-1,s=-1,u=0;u<i.length;++u){var l=T(i[u]);if(l){n=l.fileName,a=l.line;break}}for(var u=0;u<o.length;++u){var l=T(o[u]);if(l){r=l.fileName,s=l.line;break}}a<0||s<0||!n||!r||n!==r||a>=s||(nt=function(t){if(q.test(t))return!0;var e=T(t);return!!(e&&e.fileName===n&&a<=e.line&&e.line<=s)})}}function F(t){this._parent=t,this._promisesCreated=0;var e=this._length=1+(void 0===t?0:t._length);it(this,F),e>32&&this.uncycle()}var N,M,O,j=e._getDomain,P=e._async,L=t("./errors").Warning,R=t("./util"),I=R.canAttachTrace,q=/[\\\/]bluebird[\\\/]js[\\\/](release|debug|instrumented)/,z=/\((?:timers\.js):\d+:\d+\)/,H=/[\/<\(](.+?):(\d+):(\d+)\)?\s*$/,B=null,U=null,V=!1,W=!(0==R.env("BLUEBIRD_DEBUG")),Y=!(0==R.env("BLUEBIRD_WARNINGS")||!W&&!R.env("BLUEBIRD_WARNINGS")),G=!(0==R.env("BLUEBIRD_LONG_STACK_TRACES")||!W&&!R.env("BLUEBIRD_LONG_STACK_TRACES")),K=0!=R.env("BLUEBIRD_W_FORGOTTEN_RETURN")&&(Y||!!R.env("BLUEBIRD_W_FORGOTTEN_RETURN"));e.prototype.suppressUnhandledRejections=function(){var t=this._target();t._bitField=t._bitField&-1048577|524288},e.prototype._ensurePossibleRejectionHandled=function(){if(0===(524288&this._bitField)){this._setRejectionIsUnhandled();var t=this;setTimeout(function(){t._notifyUnhandledRejection()},1)}},e.prototype._notifyUnhandledRejectionIsHandled=function(){E("rejectionHandled",N,void 0,this)},e.prototype._setReturnedNonUndefined=function(){this._bitField=268435456|this._bitField},e.prototype._returnedNonUndefined=function(){return 0!==(268435456&this._bitField)},e.prototype._notifyUnhandledRejection=function(){if(this._isRejectionUnhandled()){var t=this._settledValue();this._setUnhandledRejectionIsNotified(),E("unhandledRejection",M,t,this)}},e.prototype._setUnhandledRejectionIsNotified=function(){this._bitField=262144|this._bitField},e.prototype._unsetUnhandledRejectionIsNotified=function(){this._bitField=this._bitField&-262145},e.prototype._isUnhandledRejectionNotified=function(){return(262144&this._bitField)>0},e.prototype._setRejectionIsUnhandled=function(){this._bitField=1048576|this._bitField},e.prototype._unsetRejectionIsUnhandled=function(){this._bitField=this._bitField&-1048577,this._isUnhandledRejectionNotified()&&(this._unsetUnhandledRejectionIsNotified(),this._notifyUnhandledRejectionIsHandled())},e.prototype._isRejectionUnhandled=function(){return(1048576&this._bitField)>0},e.prototype._warn=function(t,e,n){return v(t,e,n||this)},e.onPossiblyUnhandledRejection=function(t){var e=j();M="function"==typeof t?null===e?t:R.domainBind(e,t):void 0},e.onUnhandledRejectionHandled=function(t){var e=j();N="function"==typeof t?null===e?t:R.domainBind(e,t):void 0};var Z=function(){};e.longStackTraces=function(){if(P.haveItemsQueued()&&!ot.longStackTraces)throw new Error("cannot enable long stack traces after promises have been created\n\n See http://goo.gl/MqrFmX\n");if(!ot.longStackTraces&&A()){var t=e.prototype._captureStackTrace,r=e.prototype._attachExtraTrace;ot.longStackTraces=!0,Z=function(){if(P.haveItemsQueued()&&!ot.longStackTraces)throw new Error("cannot enable long stack traces after promises have been created\n\n See http://goo.gl/MqrFmX\n");e.prototype._captureStackTrace=t,e.prototype._attachExtraTrace=r,n.deactivateLongStackTraces(),P.enableTrampoline(),ot.longStackTraces=!1},e.prototype._captureStackTrace=d,e.prototype._attachExtraTrace=p,n.activateLongStackTraces(),P.disableTrampolineIfNecessary()}},e.hasLongStackTraces=function(){return ot.longStackTraces&&A()};var X=function(){try{if("function"==typeof CustomEvent){var t=new CustomEvent("CustomEvent");return R.global.dispatchEvent(t),function(t,e){var n=new CustomEvent(t.toLowerCase(),{detail:e,cancelable:!0});return!R.global.dispatchEvent(n)}}if("function"==typeof Event){var t=new Event("CustomEvent");return R.global.dispatchEvent(t),function(t,e){var n=new Event(t.toLowerCase(),{cancelable:!0});return n.detail=e,!R.global.dispatchEvent(n)}}var t=document.createEvent("CustomEvent");return t.initCustomEvent("testingtheevent",!1,!0,{}),R.global.dispatchEvent(t),function(t,e){var n=document.createEvent("CustomEvent");return n.initCustomEvent(t.toLowerCase(),!1,!0,e),!R.global.dispatchEvent(n)}}catch(e){}return function(){return!1}}(),J=function(){return R.isNode?function(){return process.emit.apply(process,arguments)}:R.global?function(t){var e="on"+t.toLowerCase(),n=R.global[e];return!!n&&(n.apply(R.global,[].slice.call(arguments,1)),!0)}:function(){return!1}}(),Q={promiseCreated:r,promiseFulfilled:r,promiseRejected:r,promiseResolved:r,promiseCancelled:r,promiseChained:function(t,e,n){return{promise:e,child:n}},warning:function(t,e){return{warning:e}},unhandledRejection:function(t,e,n){return{reason:e,promise:n}},rejectionHandled:r},tt=function(t){var e=!1;try{e=J.apply(null,arguments)}catch(n){P.throwLater(n),e=!0}var r=!1;try{r=X(t,Q[t].apply(null,arguments))}catch(n){P.throwLater(n),r=!0}return r||e};e.config=function(t){if(t=Object(t),"longStackTraces"in t&&(t.longStackTraces?e.longStackTraces():!t.longStackTraces&&e.hasLongStackTraces()&&Z()),"warnings"in t){var n=t.warnings;ot.warnings=!!n,K=ot.warnings,R.isObject(n)&&"wForgottenReturn"in n&&(K=!!n.wForgottenReturn)}if("cancellation"in t&&t.cancellation&&!ot.cancellation){if(P.haveItemsQueued())throw new Error("cannot enable cancellation after promises are in use");e.prototype._clearCancellationData=l,e.prototype._propagateFrom=c,e.prototype._onCancel=s,e.prototype._setOnCancel=u,e.prototype._attachCancellationCallback=a,e.prototype._execute=o,et=c,ot.cancellation=!0}return"monitoring"in t&&(t.monitoring&&!ot.monitoring?(ot.monitoring=!0,e.prototype._fireEvent=tt):!t.monitoring&&ot.monitoring&&(ot.monitoring=!1,e.prototype._fireEvent=i)),e},e.prototype._fireEvent=i,e.prototype._execute=function(t,e,n){try{t(e,n)}catch(r){return r}},e.prototype._onCancel=function(){},e.prototype._setOnCancel=function(t){},e.prototype._attachCancellationCallback=function(t){},e.prototype._captureStackTrace=function(){},e.prototype._attachExtraTrace=function(){},e.prototype._clearCancellationData=function(){},e.prototype._propagateFrom=function(t,e){};var et=f,nt=function(){return!1},rt=/[\/<\(]([^:\/]+):(\d+):(?:\d+)\)?\s*$/;R.inherits(F,Error),n.CapturedTrace=F,F.prototype.uncycle=function(){var t=this._length;if(!(t<2)){for(var e=[],n={},r=0,i=this;void 0!==i;++r)e.push(i),i=i._parent;t=this._length=r;for(var r=t-1;r>=0;--r){var o=e[r].stack;void 0===n[o]&&(n[o]=r)}for(var r=0;r<t;++r){var a=e[r].stack,s=n[a];if(void 0!==s&&s!==r){s>0&&(e[s-1]._parent=void 0,e[s-1]._length=1),e[r]._parent=void 0,e[r]._length=1;var u=r>0?e[r-1]:this;s<t-1?(u._parent=e[s+1],u._parent.uncycle(),u._length=u._parent._length+1):(u._parent=void 0,u._length=1);for(var l=u._length+1,c=r-2;c>=0;--c)e[c]._length=l,l++;return}}}},F.prototype.attachExtraTrace=function(t){if(!t.__stackCleaned__){this.uncycle();for(var e=k(t),n=e.message,r=[e.stack],i=this;void 0!==i;)r.push(w(i.stack.split("\n"))),i=i._parent;_(r),b(r),R.notEnumerableProp(t,"stack",y(n,r)),R.notEnumerableProp(t,"__stackCleaned__",!0)}};var it=function(){var t=/^\s*at\s*/,e=function(t,e){return"string"==typeof t?t:void 0!==e.name&&void 0!==e.message?e.toString():$(e)};if("number"==typeof Error.stackTraceLimit&&"function"==typeof Error.captureStackTrace){Error.stackTraceLimit+=6,B=t,U=e;var n=Error.captureStackTrace;return nt=function(t){return q.test(t)},function(t,e){Error.stackTraceLimit+=6,n(t,e),Error.stackTraceLimit-=6}}var r=new Error;if("string"==typeof r.stack&&r.stack.split("\n")[0].indexOf("stackDetection@")>=0)return B=/@/,U=e,V=!0,function(t){t.stack=(new Error).stack};var i;try{throw new Error}catch(o){i="stack"in o}return"stack"in r||!i||"number"!=typeof Error.stackTraceLimit?(U=function(t,e){return"string"==typeof t?t:"object"!=typeof e&&"function"!=typeof e||void 0===e.name||void 0===e.message?$(e):e.toString()},null):(B=t,U=e,function(t){Error.stackTraceLimit+=6;try{throw new Error}catch(e){t.stack=e.stack}Error.stackTraceLimit-=6})}([]);"undefined"!=typeof console&&"undefined"!=typeof console.warn&&(O=function(t){console.warn(t)},R.isNode&&process.stderr.isTTY?O=function(t,e){var n=e?"[33m":"[31m";console.warn(n+t+"[0m\n")}:R.isNode||"string"!=typeof(new Error).stack||(O=function(t,e){console.warn("%c"+t,e?"color: darkorange":"color: red")}));var ot={warnings:Y,longStackTraces:!1,cancellation:!1,monitoring:!1};return G&&e.longStackTraces(),{longStackTraces:function(){return ot.longStackTraces},warnings:function(){return ot.warnings},cancellation:function(){return ot.cancellation},monitoring:function(){return ot.monitoring},propagateFromFunction:function(){return et},boundValueFunction:function(){return h},checkForgottenReturns:m,setBounds:D,warn:v,deprecated:g,CapturedTrace:F,fireDomEvent:X,fireGlobalEvent:J}}},{"./errors":12,"./util":36}],10:[function(t,e,n){"use strict";e.exports=function(t){function e(){return this.value}function n(){throw this.reason}t.prototype["return"]=t.prototype.thenReturn=function(n){return n instanceof t&&n.suppressUnhandledRejections(),this._then(e,void 0,void 0,{value:n},void 0)},t.prototype["throw"]=t.prototype.thenThrow=function(t){return this._then(n,void 0,void 0,{reason:t},void 0)},t.prototype.catchThrow=function(t){if(arguments.length<=1)return this._then(void 0,n,void 0,{reason:t},void 0);var e=arguments[1],r=function(){throw e};return this.caught(t,r)},t.prototype.catchReturn=function(n){if(arguments.length<=1)return n instanceof t&&n.suppressUnhandledRejections(),this._then(void 0,e,void 0,{value:n},void 0);var r=arguments[1];r instanceof t&&r.suppressUnhandledRejections();var i=function(){return r};return this.caught(n,i)}}},{}],11:[function(t,e,n){"use strict";e.exports=function(t,e){function n(){return o(this)}function r(t,n){return i(t,n,e,e)}var i=t.reduce,o=t.all;t.prototype.each=function(t){return i(this,t,e,0)._then(n,void 0,void 0,this,void 0)},t.prototype.mapSeries=function(t){return i(this,t,e,e)},t.each=function(t,r){return i(t,r,e,0)._then(n,void 0,void 0,t,void 0)},t.mapSeries=r}},{}],12:[function(t,e,n){"use strict";function r(t,e){function n(r){return this instanceof n?(f(this,"message","string"==typeof r?r:e),f(this,"name",t),void(Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):Error.call(this))):new n(r)}return c(n,Error),n}function i(t){return this instanceof i?(f(this,"name","OperationalError"),f(this,"message",t),this.cause=t,this.isOperational=!0,void(t instanceof Error?(f(this,"message",t.message),f(this,"stack",t.stack)):Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor))):new i(t)}var o,a,s=t("./es5"),u=s.freeze,l=t("./util"),c=l.inherits,f=l.notEnumerableProp,h=r("Warning","warning"),d=r("CancellationError","cancellation error"),p=r("TimeoutError","timeout error"),m=r("AggregateError","aggregate error");try{o=TypeError,a=RangeError}catch(g){o=r("TypeError","type error"),a=r("RangeError","range error")}for(var v="join pop push shift unshift slice filter forEach some every map indexOf lastIndexOf reduce reduceRight sort reverse".split(" "),y=0;y<v.length;++y)"function"==typeof Array.prototype[v[y]]&&(m.prototype[v[y]]=Array.prototype[v[y]]);s.defineProperty(m.prototype,"length",{value:0,configurable:!1,writable:!0,enumerable:!0}),m.prototype.isOperational=!0;var b=0;m.prototype.toString=function(){var t=Array(4*b+1).join(" "),e="\n"+t+"AggregateError of:\n";b++,t=Array(4*b+1).join(" ");for(var n=0;n<this.length;++n){for(var r=this[n]===this?"[Circular AggregateError]":this[n]+"",i=r.split("\n"),o=0;o<i.length;++o)i[o]=t+i[o];r=i.join("\n"),e+=r+"\n"}return b--,e},c(i,Error);var _=Error.__BluebirdErrorTypes__;_||(_=u({CancellationError:d,TimeoutError:p,OperationalError:i,RejectionError:i,AggregateError:m}),s.defineProperty(Error,"__BluebirdErrorTypes__",{value:_,writable:!1,enumerable:!1,configurable:!1})),e.exports={Error:Error,TypeError:o,RangeError:a,CancellationError:_.CancellationError,OperationalError:_.OperationalError,TimeoutError:_.TimeoutError,AggregateError:_.AggregateError,Warning:h}},{"./es5":13,"./util":36}],13:[function(t,e,n){var r=function(){"use strict";return void 0===this}();if(r)e.exports={freeze:Object.freeze,defineProperty:Object.defineProperty,getDescriptor:Object.getOwnPropertyDescriptor,keys:Object.keys,names:Object.getOwnPropertyNames,getPrototypeOf:Object.getPrototypeOf,isArray:Array.isArray,isES5:r,propertyIsWritable:function(t,e){var n=Object.getOwnPropertyDescriptor(t,e);return!(n&&!n.writable&&!n.set)}};else{var i={}.hasOwnProperty,o={}.toString,a={}.constructor.prototype,s=function(t){var e=[];for(var n in t)i.call(t,n)&&e.push(n);return e},u=function(t,e){return{value:t[e]}},l=function(t,e,n){return t[e]=n.value,t},c=function(t){return t},f=function(t){try{return Object(t).constructor.prototype}catch(e){return a}},h=function(t){try{return"[object Array]"===o.call(t)}catch(e){return!1}};e.exports={isArray:h,keys:s,names:s,defineProperty:l,getDescriptor:u,freeze:c,getPrototypeOf:f,isES5:r,propertyIsWritable:function(){return!0}}}},{}],14:[function(t,e,n){"use strict";e.exports=function(t,e){var n=t.map;t.prototype.filter=function(t,r){return n(this,t,r,e)},t.filter=function(t,r,i){return n(t,r,i,e)}}},{}],15:[function(t,e,n){"use strict";e.exports=function(e,n,r){function i(t,e,n){this.promise=t,this.type=e,this.handler=n,this.called=!1,this.cancelPromise=null}function o(t){this.finallyHandler=t}function a(t,e){return null!=t.cancelPromise&&(arguments.length>1?t.cancelPromise._reject(e):t.cancelPromise._cancel(),t.cancelPromise=null,!0)}function s(){return l.call(this,this.promise._target()._settledValue())}function u(t){if(!a(this,t))return h.e=t,h}function l(t){var i=this.promise,l=this.handler;if(!this.called){this.called=!0;var c=this.isFinallyHandler()?l.call(i._boundValue()):l.call(i._boundValue(),t);if(c===r)return c;if(void 0!==c){i._setReturnedNonUndefined();var d=n(c,i);if(d instanceof e){if(null!=this.cancelPromise){if(d._isCancelled()){var p=new f("late cancellation observer");return i._attachExtraTrace(p),h.e=p,h}d.isPending()&&d._attachCancellationCallback(new o(this))}return d._then(s,u,void 0,this,void 0)}}}return i.isRejected()?(a(this),h.e=t,h):(a(this),t)}var c=t("./util"),f=e.CancellationError,h=c.errorObj,d=t("./catch_filter")(r);return i.prototype.isFinallyHandler=function(){return 0===this.type},o.prototype._resultCancelled=function(){a(this.finallyHandler)},e.prototype._passThrough=function(t,e,n,r){return"function"!=typeof t?this.then():this._then(n,r,void 0,new i(this,e,t),void 0)},e.prototype.lastly=e.prototype["finally"]=function(t){return this._passThrough(t,0,l,l)},e.prototype.tap=function(t){return this._passThrough(t,1,l)},e.prototype.tapCatch=function(t){var n=arguments.length;if(1===n)return this._passThrough(t,1,void 0,l);var r,i=new Array(n-1),o=0;for(r=0;r<n-1;++r){var a=arguments[r];if(!c.isObject(a))return e.reject(new TypeError("tapCatch statement predicate: expecting an object but got "+c.classString(a)));i[o++]=a}i.length=o;var s=arguments[r];return this._passThrough(d(i,s,this),1,void 0,l);
|
||
},i}},{"./catch_filter":7,"./util":36}],16:[function(t,e,n){"use strict";e.exports=function(e,n,r,i,o,a){function s(t,n,r){for(var o=0;o<n.length;++o){r._pushContext();var a=d(n[o])(t);if(r._popContext(),a===h){r._pushContext();var s=e.reject(h.e);return r._popContext(),s}var u=i(a,r);if(u instanceof e)return u}return null}function u(t,n,i,o){if(a.cancellation()){var s=new e(r),u=this._finallyPromise=new e(r);this._promise=s.lastly(function(){return u}),s._captureStackTrace(),s._setOnCancel(this)}else{var l=this._promise=new e(r);l._captureStackTrace()}this._stack=o,this._generatorFunction=t,this._receiver=n,this._generator=void 0,this._yieldHandlers="function"==typeof i?[i].concat(p):p,this._yieldedPromise=null,this._cancellationPhase=!1}var l=t("./errors"),c=l.TypeError,f=t("./util"),h=f.errorObj,d=f.tryCatch,p=[];f.inherits(u,o),u.prototype._isResolved=function(){return null===this._promise},u.prototype._cleanup=function(){this._promise=this._generator=null,a.cancellation()&&null!==this._finallyPromise&&(this._finallyPromise._fulfill(),this._finallyPromise=null)},u.prototype._promiseCancelled=function(){if(!this._isResolved()){var t,n="undefined"!=typeof this._generator["return"];if(n)this._promise._pushContext(),t=d(this._generator["return"]).call(this._generator,void 0),this._promise._popContext();else{var r=new e.CancellationError("generator .return() sentinel");e.coroutine.returnSentinel=r,this._promise._attachExtraTrace(r),this._promise._pushContext(),t=d(this._generator["throw"]).call(this._generator,r),this._promise._popContext()}this._cancellationPhase=!0,this._yieldedPromise=null,this._continue(t)}},u.prototype._promiseFulfilled=function(t){this._yieldedPromise=null,this._promise._pushContext();var e=d(this._generator.next).call(this._generator,t);this._promise._popContext(),this._continue(e)},u.prototype._promiseRejected=function(t){this._yieldedPromise=null,this._promise._attachExtraTrace(t),this._promise._pushContext();var e=d(this._generator["throw"]).call(this._generator,t);this._promise._popContext(),this._continue(e)},u.prototype._resultCancelled=function(){if(this._yieldedPromise instanceof e){var t=this._yieldedPromise;this._yieldedPromise=null,t.cancel()}},u.prototype.promise=function(){return this._promise},u.prototype._run=function(){this._generator=this._generatorFunction.call(this._receiver),this._receiver=this._generatorFunction=void 0,this._promiseFulfilled(void 0)},u.prototype._continue=function(t){var n=this._promise;if(t===h)return this._cleanup(),this._cancellationPhase?n.cancel():n._rejectCallback(t.e,!1);var r=t.value;if(t.done===!0)return this._cleanup(),this._cancellationPhase?n.cancel():n._resolveCallback(r);var o=i(r,this._promise);if(!(o instanceof e)&&(o=s(o,this._yieldHandlers,this._promise),null===o))return void this._promiseRejected(new c("A value %s was yielded that could not be treated as a promise\n\n See http://goo.gl/MqrFmX\n\n".replace("%s",String(r))+"From coroutine:\n"+this._stack.split("\n").slice(1,-7).join("\n")));o=o._target();var a=o._bitField;0===(50397184&a)?(this._yieldedPromise=o,o._proxy(this,null)):0!==(33554432&a)?e._async.invoke(this._promiseFulfilled,this,o._value()):0!==(16777216&a)?e._async.invoke(this._promiseRejected,this,o._reason()):this._promiseCancelled()},e.coroutine=function(t,e){if("function"!=typeof t)throw new c("generatorFunction must be a function\n\n See http://goo.gl/MqrFmX\n");var n=Object(e).yieldHandler,r=u,i=(new Error).stack;return function(){var e=t.apply(this,arguments),o=new r((void 0),(void 0),n,i),a=o.promise();return o._generator=e,o._promiseFulfilled(void 0),a}},e.coroutine.addYieldHandler=function(t){if("function"!=typeof t)throw new c("expecting a function but got "+f.classString(t));p.push(t)},e.spawn=function(t){if(a.deprecated("Promise.spawn()","Promise.coroutine()"),"function"!=typeof t)return n("generatorFunction must be a function\n\n See http://goo.gl/MqrFmX\n");var r=new u(t,this),i=r.promise();return r._run(e.spawn),i}}},{"./errors":12,"./util":36}],17:[function(t,e,n){"use strict";e.exports=function(e,n,r,i,o,a){var s=t("./util");s.canEvaluate,s.tryCatch,s.errorObj;e.join=function(){var t,e=arguments.length-1;if(e>0&&"function"==typeof arguments[e]){t=arguments[e];var r}var i=[].slice.call(arguments);t&&i.pop();var r=new n(i).promise();return void 0!==t?r.spread(t):r}}},{"./util":36}],18:[function(t,e,n){"use strict";e.exports=function(e,n,r,i,o,a){function s(t,e,n,r){this.constructor$(t),this._promise._captureStackTrace();var i=l();this._callback=null===i?e:c.domainBind(i,e),this._preservedValues=r===o?new Array(this.length()):null,this._limit=n,this._inFlight=0,this._queue=[],d.invoke(this._asyncInit,this,void 0)}function u(t,n,i,o){if("function"!=typeof n)return r("expecting a function but got "+c.classString(n));var a=0;if(void 0!==i){if("object"!=typeof i||null===i)return e.reject(new TypeError("options argument must be an object but it is "+c.classString(i)));if("number"!=typeof i.concurrency)return e.reject(new TypeError("'concurrency' must be a number but it is "+c.classString(i.concurrency)));a=i.concurrency}return a="number"==typeof a&&isFinite(a)&&a>=1?a:0,new s(t,n,a,o).promise()}var l=e._getDomain,c=t("./util"),f=c.tryCatch,h=c.errorObj,d=e._async;c.inherits(s,n),s.prototype._asyncInit=function(){this._init$(void 0,-2)},s.prototype._init=function(){},s.prototype._promiseFulfilled=function(t,n){var r=this._values,o=this.length(),s=this._preservedValues,u=this._limit;if(n<0){if(n=n*-1-1,r[n]=t,u>=1&&(this._inFlight--,this._drainQueue(),this._isResolved()))return!0}else{if(u>=1&&this._inFlight>=u)return r[n]=t,this._queue.push(n),!1;null!==s&&(s[n]=t);var l=this._promise,c=this._callback,d=l._boundValue();l._pushContext();var p=f(c).call(d,t,n,o),m=l._popContext();if(a.checkForgottenReturns(p,m,null!==s?"Promise.filter":"Promise.map",l),p===h)return this._reject(p.e),!0;var g=i(p,this._promise);if(g instanceof e){g=g._target();var v=g._bitField;if(0===(50397184&v))return u>=1&&this._inFlight++,r[n]=g,g._proxy(this,(n+1)*-1),!1;if(0===(33554432&v))return 0!==(16777216&v)?(this._reject(g._reason()),!0):(this._cancel(),!0);p=g._value()}r[n]=p}var y=++this._totalResolved;return y>=o&&(null!==s?this._filter(r,s):this._resolve(r),!0)},s.prototype._drainQueue=function(){for(var t=this._queue,e=this._limit,n=this._values;t.length>0&&this._inFlight<e;){if(this._isResolved())return;var r=t.pop();this._promiseFulfilled(n[r],r)}},s.prototype._filter=function(t,e){for(var n=e.length,r=new Array(n),i=0,o=0;o<n;++o)t[o]&&(r[i++]=e[o]);r.length=i,this._resolve(r)},s.prototype.preservedValues=function(){return this._preservedValues},e.prototype.map=function(t,e){return u(this,t,e,null)},e.map=function(t,e,n,r){return u(t,e,n,r)}}},{"./util":36}],19:[function(t,e,n){"use strict";e.exports=function(e,n,r,i,o){var a=t("./util"),s=a.tryCatch;e.method=function(t){if("function"!=typeof t)throw new e.TypeError("expecting a function but got "+a.classString(t));return function(){var r=new e(n);r._captureStackTrace(),r._pushContext();var i=s(t).apply(this,arguments),a=r._popContext();return o.checkForgottenReturns(i,a,"Promise.method",r),r._resolveFromSyncValue(i),r}},e.attempt=e["try"]=function(t){if("function"!=typeof t)return i("expecting a function but got "+a.classString(t));var r=new e(n);r._captureStackTrace(),r._pushContext();var u;if(arguments.length>1){o.deprecated("calling Promise.try with more than 1 argument");var l=arguments[1],c=arguments[2];u=a.isArray(l)?s(t).apply(c,l):s(t).call(c,l)}else u=s(t)();var f=r._popContext();return o.checkForgottenReturns(u,f,"Promise.try",r),r._resolveFromSyncValue(u),r},e.prototype._resolveFromSyncValue=function(t){t===a.errorObj?this._rejectCallback(t.e,!1):this._resolveCallback(t,!0)}}},{"./util":36}],20:[function(t,e,n){"use strict";function r(t){return t instanceof Error&&c.getPrototypeOf(t)===Error.prototype}function i(t){var e;if(r(t)){e=new l(t),e.name=t.name,e.message=t.message,e.stack=t.stack;for(var n=c.keys(t),i=0;i<n.length;++i){var o=n[i];f.test(o)||(e[o]=t[o])}return e}return a.markAsOriginatingFromRejection(t),t}function o(t,e){return function(n,r){if(null!==t){if(n){var o=i(s(n));t._attachExtraTrace(o),t._reject(o)}else if(e){var a=[].slice.call(arguments,1);t._fulfill(a)}else t._fulfill(r);t=null}}}var a=t("./util"),s=a.maybeWrapAsError,u=t("./errors"),l=u.OperationalError,c=t("./es5"),f=/^(?:name|message|stack|cause)$/;e.exports=o},{"./errors":12,"./es5":13,"./util":36}],21:[function(t,e,n){"use strict";e.exports=function(e){function n(t,e){var n=this;if(!o.isArray(t))return r.call(n,t,e);var i=s(e).apply(n._boundValue(),[null].concat(t));i===u&&a.throwLater(i.e)}function r(t,e){var n=this,r=n._boundValue(),i=void 0===t?s(e).call(r,null):s(e).call(r,null,t);i===u&&a.throwLater(i.e)}function i(t,e){var n=this;if(!t){var r=new Error(t+"");r.cause=t,t=r}var i=s(e).call(n._boundValue(),t);i===u&&a.throwLater(i.e)}var o=t("./util"),a=e._async,s=o.tryCatch,u=o.errorObj;e.prototype.asCallback=e.prototype.nodeify=function(t,e){if("function"==typeof t){var o=r;void 0!==e&&Object(e).spread&&(o=n),this._then(o,i,void 0,this,t)}return this}}},{"./util":36}],22:[function(t,e,n){"use strict";e.exports=function(){function n(){}function r(t,e){if(null==t||t.constructor!==i)throw new y("the promise constructor cannot be invoked directly\n\n See http://goo.gl/MqrFmX\n");if("function"!=typeof e)throw new y("expecting a function but got "+d.classString(e))}function i(t){t!==_&&r(this,t),this._bitField=0,this._fulfillmentHandler0=void 0,this._rejectionHandler0=void 0,this._promise0=void 0,this._receiver0=void 0,this._resolveFromExecutor(t),this._promiseCreated(),this._fireEvent("promiseCreated",this)}function o(t){this.promise._resolveCallback(t)}function a(t){this.promise._rejectCallback(t,!1)}function s(t){var e=new i(_);e._fulfillmentHandler0=t,e._rejectionHandler0=t,e._promise0=t,e._receiver0=t}var u,l=function(){return new y("circular promise resolution chain\n\n See http://goo.gl/MqrFmX\n")},c=function(){return new i.PromiseInspection(this._target())},f=function(t){return i.reject(new y(t))},h={},d=t("./util");u=d.isNode?function(){var t=process.domain;return void 0===t&&(t=null),t}:function(){return null},d.notEnumerableProp(i,"_getDomain",u);var p=t("./es5"),m=t("./async"),g=new m;p.defineProperty(i,"_async",{value:g});var v=t("./errors"),y=i.TypeError=v.TypeError;i.RangeError=v.RangeError;var b=i.CancellationError=v.CancellationError;i.TimeoutError=v.TimeoutError,i.OperationalError=v.OperationalError,i.RejectionError=v.OperationalError,i.AggregateError=v.AggregateError;var _=function(){},w={},x={},k=t("./thenables")(i,_),C=t("./promise_array")(i,_,k,f,n),E=t("./context")(i),$=E.create,S=t("./debuggability")(i,E),A=(S.CapturedTrace,t("./finally")(i,k,x)),T=t("./catch_filter")(x),D=t("./nodeback"),F=d.errorObj,N=d.tryCatch;return i.prototype.toString=function(){return"[object Promise]"},i.prototype.caught=i.prototype["catch"]=function(t){var e=arguments.length;if(e>1){var n,r=new Array(e-1),i=0;for(n=0;n<e-1;++n){var o=arguments[n];if(!d.isObject(o))return f("Catch statement predicate: expecting an object but got "+d.classString(o));r[i++]=o}return r.length=i,t=arguments[n],this.then(void 0,T(r,t,this))}return this.then(void 0,t)},i.prototype.reflect=function(){return this._then(c,c,void 0,this,void 0)},i.prototype.then=function(t,e){if(S.warnings()&&arguments.length>0&&"function"!=typeof t&&"function"!=typeof e){var n=".then() only accepts functions but was passed: "+d.classString(t);arguments.length>1&&(n+=", "+d.classString(e)),this._warn(n)}return this._then(t,e,void 0,void 0,void 0)},i.prototype.done=function(t,e){var n=this._then(t,e,void 0,void 0,void 0);n._setIsFinal()},i.prototype.spread=function(t){return"function"!=typeof t?f("expecting a function but got "+d.classString(t)):this.all()._then(t,void 0,void 0,w,void 0)},i.prototype.toJSON=function(){var t={isFulfilled:!1,isRejected:!1,fulfillmentValue:void 0,rejectionReason:void 0};return this.isFulfilled()?(t.fulfillmentValue=this.value(),t.isFulfilled=!0):this.isRejected()&&(t.rejectionReason=this.reason(),t.isRejected=!0),t},i.prototype.all=function(){return arguments.length>0&&this._warn(".all() was passed arguments but it does not take any"),new C(this).promise()},i.prototype.error=function(t){return this.caught(d.originatesFromRejection,t)},i.getNewLibraryCopy=e.exports,i.is=function(t){return t instanceof i},i.fromNode=i.fromCallback=function(t){var e=new i(_);e._captureStackTrace();var n=arguments.length>1&&!!Object(arguments[1]).multiArgs,r=N(t)(D(e,n));return r===F&&e._rejectCallback(r.e,!0),e._isFateSealed()||e._setAsyncGuaranteed(),e},i.all=function(t){return new C(t).promise()},i.cast=function(t){var e=k(t);return e instanceof i||(e=new i(_),e._captureStackTrace(),e._setFulfilled(),e._rejectionHandler0=t),e},i.resolve=i.fulfilled=i.cast,i.reject=i.rejected=function(t){var e=new i(_);return e._captureStackTrace(),e._rejectCallback(t,!0),e},i.setScheduler=function(t){if("function"!=typeof t)throw new y("expecting a function but got "+d.classString(t));return g.setScheduler(t)},i.prototype._then=function(t,e,n,r,o){var a=void 0!==o,s=a?o:new i(_),l=this._target(),c=l._bitField;a||(s._propagateFrom(this,3),s._captureStackTrace(),void 0===r&&0!==(2097152&this._bitField)&&(r=0!==(50397184&c)?this._boundValue():l===this?void 0:this._boundTo),this._fireEvent("promiseChained",this,s));var f=u();if(0!==(50397184&c)){var h,p,m=l._settlePromiseCtx;0!==(33554432&c)?(p=l._rejectionHandler0,h=t):0!==(16777216&c)?(p=l._fulfillmentHandler0,h=e,l._unsetRejectionIsUnhandled()):(m=l._settlePromiseLateCancellationObserver,p=new b("late cancellation observer"),l._attachExtraTrace(p),h=e),g.invoke(m,l,{handler:null===f?h:"function"==typeof h&&d.domainBind(f,h),promise:s,receiver:r,value:p})}else l._addCallbacks(t,e,s,r,f);return s},i.prototype._length=function(){return 65535&this._bitField},i.prototype._isFateSealed=function(){return 0!==(117506048&this._bitField)},i.prototype._isFollowing=function(){return 67108864===(67108864&this._bitField)},i.prototype._setLength=function(t){this._bitField=this._bitField&-65536|65535&t},i.prototype._setFulfilled=function(){this._bitField=33554432|this._bitField,this._fireEvent("promiseFulfilled",this)},i.prototype._setRejected=function(){this._bitField=16777216|this._bitField,this._fireEvent("promiseRejected",this)},i.prototype._setFollowing=function(){this._bitField=67108864|this._bitField,this._fireEvent("promiseResolved",this)},i.prototype._setIsFinal=function(){this._bitField=4194304|this._bitField},i.prototype._isFinal=function(){return(4194304&this._bitField)>0},i.prototype._unsetCancelled=function(){this._bitField=this._bitField&-65537},i.prototype._setCancelled=function(){this._bitField=65536|this._bitField,this._fireEvent("promiseCancelled",this)},i.prototype._setWillBeCancelled=function(){this._bitField=8388608|this._bitField},i.prototype._setAsyncGuaranteed=function(){g.hasCustomScheduler()||(this._bitField=134217728|this._bitField)},i.prototype._receiverAt=function(t){var e=0===t?this._receiver0:this[4*t-4+3];if(e!==h)return void 0===e&&this._isBound()?this._boundValue():e},i.prototype._promiseAt=function(t){return this[4*t-4+2]},i.prototype._fulfillmentHandlerAt=function(t){return this[4*t-4+0]},i.prototype._rejectionHandlerAt=function(t){return this[4*t-4+1]},i.prototype._boundValue=function(){},i.prototype._migrateCallback0=function(t){var e=(t._bitField,t._fulfillmentHandler0),n=t._rejectionHandler0,r=t._promise0,i=t._receiverAt(0);void 0===i&&(i=h),this._addCallbacks(e,n,r,i,null)},i.prototype._migrateCallbackAt=function(t,e){var n=t._fulfillmentHandlerAt(e),r=t._rejectionHandlerAt(e),i=t._promiseAt(e),o=t._receiverAt(e);void 0===o&&(o=h),this._addCallbacks(n,r,i,o,null)},i.prototype._addCallbacks=function(t,e,n,r,i){var o=this._length();if(o>=65531&&(o=0,this._setLength(0)),0===o)this._promise0=n,this._receiver0=r,"function"==typeof t&&(this._fulfillmentHandler0=null===i?t:d.domainBind(i,t)),"function"==typeof e&&(this._rejectionHandler0=null===i?e:d.domainBind(i,e));else{var a=4*o-4;this[a+2]=n,this[a+3]=r,"function"==typeof t&&(this[a+0]=null===i?t:d.domainBind(i,t)),"function"==typeof e&&(this[a+1]=null===i?e:d.domainBind(i,e))}return this._setLength(o+1),o},i.prototype._proxy=function(t,e){this._addCallbacks(void 0,void 0,e,t,null)},i.prototype._resolveCallback=function(t,e){if(0===(117506048&this._bitField)){if(t===this)return this._rejectCallback(l(),!1);var n=k(t,this);if(!(n instanceof i))return this._fulfill(t);e&&this._propagateFrom(n,2);var r=n._target();if(r===this)return void this._reject(l());var o=r._bitField;if(0===(50397184&o)){var a=this._length();a>0&&r._migrateCallback0(this);for(var s=1;s<a;++s)r._migrateCallbackAt(this,s);this._setFollowing(),this._setLength(0),this._setFollowee(r)}else if(0!==(33554432&o))this._fulfill(r._value());else if(0!==(16777216&o))this._reject(r._reason());else{var u=new b("late cancellation observer");r._attachExtraTrace(u),this._reject(u)}}},i.prototype._rejectCallback=function(t,e,n){var r=d.ensureErrorObject(t),i=r===t;if(!i&&!n&&S.warnings()){var o="a promise was rejected with a non-error: "+d.classString(t);this._warn(o,!0)}this._attachExtraTrace(r,!!e&&i),this._reject(t)},i.prototype._resolveFromExecutor=function(t){if(t!==_){var e=this;this._captureStackTrace(),this._pushContext();var n=!0,r=this._execute(t,function(t){e._resolveCallback(t)},function(t){e._rejectCallback(t,n)});n=!1,this._popContext(),void 0!==r&&e._rejectCallback(r,!0)}},i.prototype._settlePromiseFromHandler=function(t,e,n,r){var i=r._bitField;if(0===(65536&i)){r._pushContext();var o;e===w?n&&"number"==typeof n.length?o=N(t).apply(this._boundValue(),n):(o=F,o.e=new y("cannot .spread() a non-array: "+d.classString(n))):o=N(t).call(e,n);var a=r._popContext();i=r._bitField,0===(65536&i)&&(o===x?r._reject(n):o===F?r._rejectCallback(o.e,!1):(S.checkForgottenReturns(o,a,"",r,this),r._resolveCallback(o)))}},i.prototype._target=function(){for(var t=this;t._isFollowing();)t=t._followee();return t},i.prototype._followee=function(){return this._rejectionHandler0},i.prototype._setFollowee=function(t){this._rejectionHandler0=t},i.prototype._settlePromise=function(t,e,r,o){var a=t instanceof i,s=this._bitField,u=0!==(134217728&s);0!==(65536&s)?(a&&t._invokeInternalOnCancel(),r instanceof A&&r.isFinallyHandler()?(r.cancelPromise=t,N(e).call(r,o)===F&&t._reject(F.e)):e===c?t._fulfill(c.call(r)):r instanceof n?r._promiseCancelled(t):a||t instanceof C?t._cancel():r.cancel()):"function"==typeof e?a?(u&&t._setAsyncGuaranteed(),this._settlePromiseFromHandler(e,r,o,t)):e.call(r,o,t):r instanceof n?r._isResolved()||(0!==(33554432&s)?r._promiseFulfilled(o,t):r._promiseRejected(o,t)):a&&(u&&t._setAsyncGuaranteed(),0!==(33554432&s)?t._fulfill(o):t._reject(o))},i.prototype._settlePromiseLateCancellationObserver=function(t){var e=t.handler,n=t.promise,r=t.receiver,o=t.value;"function"==typeof e?n instanceof i?this._settlePromiseFromHandler(e,r,o,n):e.call(r,o,n):n instanceof i&&n._reject(o)},i.prototype._settlePromiseCtx=function(t){this._settlePromise(t.promise,t.handler,t.receiver,t.value)},i.prototype._settlePromise0=function(t,e,n){var r=this._promise0,i=this._receiverAt(0);this._promise0=void 0,this._receiver0=void 0,this._settlePromise(r,t,i,e)},i.prototype._clearCallbackDataAtIndex=function(t){var e=4*t-4;this[e+2]=this[e+3]=this[e+0]=this[e+1]=void 0},i.prototype._fulfill=function(t){var e=this._bitField;if(!((117506048&e)>>>16)){if(t===this){var n=l();return this._attachExtraTrace(n),this._reject(n)}this._setFulfilled(),this._rejectionHandler0=t,(65535&e)>0&&(0!==(134217728&e)?this._settlePromises():g.settlePromises(this))}},i.prototype._reject=function(t){var e=this._bitField;if(!((117506048&e)>>>16))return this._setRejected(),this._fulfillmentHandler0=t,this._isFinal()?g.fatalError(t,d.isNode):void((65535&e)>0?g.settlePromises(this):this._ensurePossibleRejectionHandled())},i.prototype._fulfillPromises=function(t,e){for(var n=1;n<t;n++){var r=this._fulfillmentHandlerAt(n),i=this._promiseAt(n),o=this._receiverAt(n);this._clearCallbackDataAtIndex(n),this._settlePromise(i,r,o,e)}},i.prototype._rejectPromises=function(t,e){for(var n=1;n<t;n++){var r=this._rejectionHandlerAt(n),i=this._promiseAt(n),o=this._receiverAt(n);this._clearCallbackDataAtIndex(n),this._settlePromise(i,r,o,e)}},i.prototype._settlePromises=function(){var t=this._bitField,e=65535&t;if(e>0){if(0!==(16842752&t)){var n=this._fulfillmentHandler0;this._settlePromise0(this._rejectionHandler0,n,t),this._rejectPromises(e,n)}else{var r=this._rejectionHandler0;this._settlePromise0(this._fulfillmentHandler0,r,t),this._fulfillPromises(e,r)}this._setLength(0)}this._clearCancellationData()},i.prototype._settledValue=function(){var t=this._bitField;return 0!==(33554432&t)?this._rejectionHandler0:0!==(16777216&t)?this._fulfillmentHandler0:void 0},i.defer=i.pending=function(){S.deprecated("Promise.defer","new Promise");var t=new i(_);return{promise:t,resolve:o,reject:a}},d.notEnumerableProp(i,"_makeSelfResolutionError",l),t("./method")(i,_,k,f,S),t("./bind")(i,_,k,S),t("./cancel")(i,C,f,S),t("./direct_resolve")(i),t("./synchronous_inspection")(i),t("./join")(i,C,k,_,g,u),i.Promise=i,i.version="3.5.1",t("./map.js")(i,C,f,k,_,S),t("./call_get.js")(i),t("./using.js")(i,f,k,$,_,S),t("./timers.js")(i,_,S),t("./generators.js")(i,f,_,k,n,S),t("./nodeify.js")(i),t("./promisify.js")(i,_),t("./props.js")(i,C,k,f),t("./race.js")(i,_,k,f),t("./reduce.js")(i,C,f,k,_,S),t("./settle.js")(i,C,S),t("./some.js")(i,C,f),t("./filter.js")(i,_),t("./each.js")(i,_),t("./any.js")(i),d.toFastProperties(i),d.toFastProperties(i.prototype),s({a:1}),s({b:2}),s({c:3}),s(1),s(function(){}),s(void 0),s(!1),s(new i(_)),S.setBounds(m.firstLineError,d.lastLineError),i}},{"./any.js":1,"./async":2,"./bind":3,"./call_get.js":5,"./cancel":6,"./catch_filter":7,"./context":8,"./debuggability":9,"./direct_resolve":10,"./each.js":11,"./errors":12,"./es5":13,"./filter.js":14,"./finally":15,"./generators.js":16,"./join":17,"./map.js":18,"./method":19,"./nodeback":20,"./nodeify.js":21,"./promise_array":23,"./promisify.js":24,"./props.js":25,"./race.js":27,"./reduce.js":28,"./settle.js":30,"./some.js":31,"./synchronous_inspection":32,"./thenables":33,"./timers.js":34,"./using.js":35,"./util":36}],23:[function(t,e,n){"use strict";e.exports=function(e,n,r,i,o){function a(t){switch(t){case-2:return[];case-3:return{};case-6:return new Map}}function s(t){var r=this._promise=new e(n);t instanceof e&&r._propagateFrom(t,3),r._setOnCancel(this),this._values=t,this._length=0,this._totalResolved=0,this._init(void 0,-2)}var u=t("./util");u.isArray;return u.inherits(s,o),s.prototype.length=function(){return this._length},s.prototype.promise=function(){return this._promise},s.prototype._init=function l(t,n){var o=r(this._values,this._promise);if(o instanceof e){o=o._target();var s=o._bitField;if(this._values=o,0===(50397184&s))return this._promise._setAsyncGuaranteed(),o._then(l,this._reject,void 0,this,n);if(0===(33554432&s))return 0!==(16777216&s)?this._reject(o._reason()):this._cancel();o=o._value()}if(o=u.asArray(o),null===o){var c=i("expecting an array or an iterable object but got "+u.classString(o)).reason();return void this._promise._rejectCallback(c,!1)}return 0===o.length?void(n===-5?this._resolveEmptyArray():this._resolve(a(n))):void this._iterate(o)},s.prototype._iterate=function(t){var n=this.getActualLength(t.length);this._length=n,this._values=this.shouldCopyValues()?new Array(n):this._values;for(var i=this._promise,o=!1,a=null,s=0;s<n;++s){var u=r(t[s],i);u instanceof e?(u=u._target(),a=u._bitField):a=null,o?null!==a&&u.suppressUnhandledRejections():null!==a?0===(50397184&a)?(u._proxy(this,s),this._values[s]=u):o=0!==(33554432&a)?this._promiseFulfilled(u._value(),s):0!==(16777216&a)?this._promiseRejected(u._reason(),s):this._promiseCancelled(s):o=this._promiseFulfilled(u,s)}o||i._setAsyncGuaranteed()},s.prototype._isResolved=function(){return null===this._values},s.prototype._resolve=function(t){this._values=null,this._promise._fulfill(t)},s.prototype._cancel=function(){!this._isResolved()&&this._promise._isCancellable()&&(this._values=null,this._promise._cancel())},s.prototype._reject=function(t){this._values=null,this._promise._rejectCallback(t,!1)},s.prototype._promiseFulfilled=function(t,e){this._values[e]=t;var n=++this._totalResolved;return n>=this._length&&(this._resolve(this._values),!0)},s.prototype._promiseCancelled=function(){return this._cancel(),!0},s.prototype._promiseRejected=function(t){return this._totalResolved++,this._reject(t),!0},s.prototype._resultCancelled=function(){if(!this._isResolved()){var t=this._values;if(this._cancel(),t instanceof e)t.cancel();else for(var n=0;n<t.length;++n)t[n]instanceof e&&t[n].cancel()}},s.prototype.shouldCopyValues=function(){return!0},s.prototype.getActualLength=function(t){return t},s}},{"./util":36}],24:[function(t,e,n){"use strict";e.exports=function(e,n){function r(t){return!x.test(t)}function i(t){try{return t.__isPromisified__===!0}catch(e){return!1}}function o(t,e,n){var r=d.getDataPropertyOrDefault(t,e+n,_);return!!r&&i(r)}function a(t,e,n){for(var r=0;r<t.length;r+=2){var i=t[r];if(n.test(i))for(var o=i.replace(n,""),a=0;a<t.length;a+=2)if(t[a]===o)throw new y("Cannot promisify an API that has normal methods with '%s'-suffix\n\n See http://goo.gl/MqrFmX\n".replace("%s",e))}}function s(t,e,n,r){for(var s=d.inheritedDataKeys(t),u=[],l=0;l<s.length;++l){var c=s[l],f=t[c],h=r===k||k(c,f,t);"function"!=typeof f||i(f)||o(t,c,e)||!r(c,f,t,h)||u.push(c,f)}return a(u,e,n),u}function u(t,r,i,o,a,s){function u(){var i=r;r===h&&(i=this);var o=new e(n);o._captureStackTrace();var a="string"==typeof c&&this!==l?this[c]:t,u=p(o,s);try{a.apply(i,m(arguments,u))}catch(f){o._rejectCallback(g(f),!0,!0)}return o._isFateSealed()||o._setAsyncGuaranteed(),o}var l=function(){return this}(),c=t;return"string"==typeof c&&(t=o),d.notEnumerableProp(u,"__isPromisified__",!0),u}function l(t,e,n,r,i){for(var o=new RegExp(C(e)+"$"),a=s(t,e,o,n),u=0,l=a.length;u<l;u+=2){var c=a[u],f=a[u+1],p=c+e;if(r===E)t[p]=E(c,h,c,f,e,i);else{var m=r(f,function(){return E(c,h,c,f,e,i)});d.notEnumerableProp(m,"__isPromisified__",!0),t[p]=m}}return d.toFastProperties(t),t}function c(t,e,n){return E(t,e,void 0,t,null,n)}var f,h={},d=t("./util"),p=t("./nodeback"),m=d.withAppended,g=d.maybeWrapAsError,v=d.canEvaluate,y=t("./errors").TypeError,b="Async",_={__isPromisified__:!0},w=["arity","length","name","arguments","caller","callee","prototype","__isPromisified__"],x=new RegExp("^(?:"+w.join("|")+")$"),k=function(t){return d.isIdentifier(t)&&"_"!==t.charAt(0)&&"constructor"!==t},C=function(t){return t.replace(/([$])/,"\\$")},E=v?f:u;e.promisify=function(t,e){if("function"!=typeof t)throw new y("expecting a function but got "+d.classString(t));if(i(t))return t;e=Object(e);var n=void 0===e.context?h:e.context,o=!!e.multiArgs,a=c(t,n,o);return d.copyDescriptors(t,a,r),a},e.promisifyAll=function(t,e){if("function"!=typeof t&&"object"!=typeof t)throw new y("the target of promisifyAll must be an object or a function\n\n See http://goo.gl/MqrFmX\n");e=Object(e);var n=!!e.multiArgs,r=e.suffix;"string"!=typeof r&&(r=b);var i=e.filter;"function"!=typeof i&&(i=k);var o=e.promisifier;if("function"!=typeof o&&(o=E),!d.isIdentifier(r))throw new RangeError("suffix must be a valid identifier\n\n See http://goo.gl/MqrFmX\n");for(var a=d.inheritedDataKeys(t),s=0;s<a.length;++s){var u=t[a[s]];"constructor"!==a[s]&&d.isClass(u)&&(l(u.prototype,r,i,o,n),l(u,r,i,o,n))}return l(t,r,i,o,n)}}},{"./errors":12,"./nodeback":20,"./util":36}],25:[function(t,e,n){"use strict";e.exports=function(e,n,r,i){function o(t){var e,n=!1;if(void 0!==s&&t instanceof s)e=f(t),n=!0;else{var r=c.keys(t),i=r.length;e=new Array(2*i);for(var o=0;o<i;++o){var a=r[o];e[o]=t[a],e[o+i]=a}}this.constructor$(e),this._isMap=n,this._init$(void 0,n?-6:-3)}function a(t){var n,a=r(t);return l(a)?(n=a instanceof e?a._then(e.props,void 0,void 0,void 0,void 0):new o(a).promise(),a instanceof e&&n._propagateFrom(a,2),n):i("cannot await properties of a non-object\n\n See http://goo.gl/MqrFmX\n")}var s,u=t("./util"),l=u.isObject,c=t("./es5");"function"==typeof Map&&(s=Map);var f=function(){function t(t,r){this[e]=t,this[e+n]=r,e++}var e=0,n=0;return function(r){n=r.size,e=0;var i=new Array(2*r.size);return r.forEach(t,i),i}}(),h=function(t){for(var e=new s,n=t.length/2|0,r=0;r<n;++r){var i=t[n+r],o=t[r];e.set(i,o)}return e};u.inherits(o,n),o.prototype._init=function(){},o.prototype._promiseFulfilled=function(t,e){this._values[e]=t;var n=++this._totalResolved;if(n>=this._length){var r;if(this._isMap)r=h(this._values);else{r={};for(var i=this.length(),o=0,a=this.length();o<a;++o)r[this._values[o+i]]=this._values[o]}return this._resolve(r),!0}return!1},o.prototype.shouldCopyValues=function(){return!1},o.prototype.getActualLength=function(t){return t>>1},e.prototype.props=function(){return a(this)},e.props=function(t){return a(t)}}},{"./es5":13,"./util":36}],26:[function(t,e,n){"use strict";function r(t,e,n,r,i){for(var o=0;o<i;++o)n[o+r]=t[o+e],t[o+e]=void 0}function i(t){this._capacity=t,this._length=0,this._front=0}i.prototype._willBeOverCapacity=function(t){return this._capacity<t},i.prototype._pushOne=function(t){var e=this.length();this._checkCapacity(e+1);var n=this._front+e&this._capacity-1;this[n]=t,this._length=e+1},i.prototype.push=function(t,e,n){var r=this.length()+3;if(this._willBeOverCapacity(r))return this._pushOne(t),this._pushOne(e),void this._pushOne(n);var i=this._front+r-3;this._checkCapacity(r);var o=this._capacity-1;this[i+0&o]=t,this[i+1&o]=e,this[i+2&o]=n,this._length=r},i.prototype.shift=function(){var t=this._front,e=this[t];return this[t]=void 0,this._front=t+1&this._capacity-1,this._length--,e},i.prototype.length=function(){return this._length},i.prototype._checkCapacity=function(t){this._capacity<t&&this._resizeTo(this._capacity<<1)},i.prototype._resizeTo=function(t){var e=this._capacity;this._capacity=t;var n=this._front,i=this._length,o=n+i&e-1;r(this,0,this,e,o)},e.exports=i},{}],27:[function(t,e,n){"use strict";e.exports=function(e,n,r,i){function o(t,o){var u=r(t);if(u instanceof e)return s(u);if(t=a.asArray(t),null===t)return i("expecting an array or an iterable object but got "+a.classString(t));var l=new e(n);void 0!==o&&l._propagateFrom(o,3);for(var c=l._fulfill,f=l._reject,h=0,d=t.length;h<d;++h){var p=t[h];(void 0!==p||h in t)&&e.cast(p)._then(c,f,void 0,l,null)}return l}var a=t("./util"),s=function(t){return t.then(function(e){return o(e,t)})};e.race=function(t){return o(t,void 0)},e.prototype.race=function(){return o(this,void 0)}}},{"./util":36}],28:[function(t,e,n){"use strict";e.exports=function(e,n,r,i,o,a){function s(t,n,r,i){this.constructor$(t);var a=h();this._fn=null===a?n:d.domainBind(a,n),void 0!==r&&(r=e.resolve(r),r._attachCancellationCallback(this)),this._initialValue=r,this._currentCancellable=null,i===o?this._eachValues=Array(this._length):0===i?this._eachValues=null:this._eachValues=void 0,this._promise._captureStackTrace(),this._init$(void 0,-5)}function u(t,e){this.isFulfilled()?e._resolve(t):e._reject(t)}function l(t,e,n,i){if("function"!=typeof e)return r("expecting a function but got "+d.classString(e));var o=new s(t,e,n,i);return o.promise()}function c(t){this.accum=t,this.array._gotAccum(t);var n=i(this.value,this.array._promise);return n instanceof e?(this.array._currentCancellable=n,n._then(f,void 0,void 0,this,void 0)):f.call(this,n)}function f(t){var n=this.array,r=n._promise,i=p(n._fn);r._pushContext();var o;o=void 0!==n._eachValues?i.call(r._boundValue(),t,this.index,this.length):i.call(r._boundValue(),this.accum,t,this.index,this.length),o instanceof e&&(n._currentCancellable=o);var s=r._popContext();return a.checkForgottenReturns(o,s,void 0!==n._eachValues?"Promise.each":"Promise.reduce",r),
|
||
o}var h=e._getDomain,d=t("./util"),p=d.tryCatch;d.inherits(s,n),s.prototype._gotAccum=function(t){void 0!==this._eachValues&&null!==this._eachValues&&t!==o&&this._eachValues.push(t)},s.prototype._eachComplete=function(t){return null!==this._eachValues&&this._eachValues.push(t),this._eachValues},s.prototype._init=function(){},s.prototype._resolveEmptyArray=function(){this._resolve(void 0!==this._eachValues?this._eachValues:this._initialValue)},s.prototype.shouldCopyValues=function(){return!1},s.prototype._resolve=function(t){this._promise._resolveCallback(t),this._values=null},s.prototype._resultCancelled=function(t){return t===this._initialValue?this._cancel():void(this._isResolved()||(this._resultCancelled$(),this._currentCancellable instanceof e&&this._currentCancellable.cancel(),this._initialValue instanceof e&&this._initialValue.cancel()))},s.prototype._iterate=function(t){this._values=t;var n,r,i=t.length;if(void 0!==this._initialValue?(n=this._initialValue,r=0):(n=e.resolve(t[0]),r=1),this._currentCancellable=n,!n.isRejected())for(;r<i;++r){var o={accum:null,value:t[r],index:r,length:i,array:this};n=n._then(c,void 0,void 0,o,void 0)}void 0!==this._eachValues&&(n=n._then(this._eachComplete,void 0,void 0,this,void 0)),n._then(u,u,void 0,n,this)},e.prototype.reduce=function(t,e){return l(this,t,e,null)},e.reduce=function(t,e,n,r){return l(t,e,n,r)}}},{"./util":36}],29:[function(t,e,n){"use strict";var r,i=t("./util"),o=function(){throw new Error("No async scheduler available\n\n See http://goo.gl/MqrFmX\n")},a=i.getNativePromise();if(i.isNode&&"undefined"==typeof MutationObserver){var s=global.setImmediate,u=process.nextTick;r=i.isRecentNode?function(t){s.call(global,t)}:function(t){u.call(process,t)}}else if("function"==typeof a&&"function"==typeof a.resolve){var l=a.resolve();r=function(t){l.then(t)}}else r="undefined"==typeof MutationObserver||"undefined"!=typeof window&&window.navigator&&(window.navigator.standalone||window.cordova)?"undefined"!=typeof setImmediate?function(t){setImmediate(t)}:"undefined"!=typeof setTimeout?function(t){setTimeout(t,0)}:o:function(){var t=document.createElement("div"),e={attributes:!0},n=!1,r=document.createElement("div"),i=new MutationObserver(function(){t.classList.toggle("foo"),n=!1});i.observe(r,e);var o=function(){n||(n=!0,r.classList.toggle("foo"))};return function(n){var r=new MutationObserver(function(){r.disconnect(),n()});r.observe(t,e),o()}}();e.exports=r},{"./util":36}],30:[function(t,e,n){"use strict";e.exports=function(e,n,r){function i(t){this.constructor$(t)}var o=e.PromiseInspection,a=t("./util");a.inherits(i,n),i.prototype._promiseResolved=function(t,e){this._values[t]=e;var n=++this._totalResolved;return n>=this._length&&(this._resolve(this._values),!0)},i.prototype._promiseFulfilled=function(t,e){var n=new o;return n._bitField=33554432,n._settledValueField=t,this._promiseResolved(e,n)},i.prototype._promiseRejected=function(t,e){var n=new o;return n._bitField=16777216,n._settledValueField=t,this._promiseResolved(e,n)},e.settle=function(t){return r.deprecated(".settle()",".reflect()"),new i(t).promise()},e.prototype.settle=function(){return e.settle(this)}}},{"./util":36}],31:[function(t,e,n){"use strict";e.exports=function(e,n,r){function i(t){this.constructor$(t),this._howMany=0,this._unwrap=!1,this._initialized=!1}function o(t,e){if((0|e)!==e||e<0)return r("expecting a positive integer\n\n See http://goo.gl/MqrFmX\n");var n=new i(t),o=n.promise();return n.setHowMany(e),n.init(),o}var a=t("./util"),s=t("./errors").RangeError,u=t("./errors").AggregateError,l=a.isArray,c={};a.inherits(i,n),i.prototype._init=function(){if(this._initialized){if(0===this._howMany)return void this._resolve([]);this._init$(void 0,-5);var t=l(this._values);!this._isResolved()&&t&&this._howMany>this._canPossiblyFulfill()&&this._reject(this._getRangeError(this.length()))}},i.prototype.init=function(){this._initialized=!0,this._init()},i.prototype.setUnwrap=function(){this._unwrap=!0},i.prototype.howMany=function(){return this._howMany},i.prototype.setHowMany=function(t){this._howMany=t},i.prototype._promiseFulfilled=function(t){return this._addFulfilled(t),this._fulfilled()===this.howMany()&&(this._values.length=this.howMany(),1===this.howMany()&&this._unwrap?this._resolve(this._values[0]):this._resolve(this._values),!0)},i.prototype._promiseRejected=function(t){return this._addRejected(t),this._checkOutcome()},i.prototype._promiseCancelled=function(){return this._values instanceof e||null==this._values?this._cancel():(this._addRejected(c),this._checkOutcome())},i.prototype._checkOutcome=function(){if(this.howMany()>this._canPossiblyFulfill()){for(var t=new u,e=this.length();e<this._values.length;++e)this._values[e]!==c&&t.push(this._values[e]);return t.length>0?this._reject(t):this._cancel(),!0}return!1},i.prototype._fulfilled=function(){return this._totalResolved},i.prototype._rejected=function(){return this._values.length-this.length()},i.prototype._addRejected=function(t){this._values.push(t)},i.prototype._addFulfilled=function(t){this._values[this._totalResolved++]=t},i.prototype._canPossiblyFulfill=function(){return this.length()-this._rejected()},i.prototype._getRangeError=function(t){var e="Input array must contain at least "+this._howMany+" items but contains only "+t+" items";return new s(e)},i.prototype._resolveEmptyArray=function(){this._reject(this._getRangeError(0))},e.some=function(t,e){return o(t,e)},e.prototype.some=function(t){return o(this,t)},e._SomePromiseArray=i}},{"./errors":12,"./util":36}],32:[function(t,e,n){"use strict";e.exports=function(t){function e(t){void 0!==t?(t=t._target(),this._bitField=t._bitField,this._settledValueField=t._isFateSealed()?t._settledValue():void 0):(this._bitField=0,this._settledValueField=void 0)}e.prototype._settledValue=function(){return this._settledValueField};var n=e.prototype.value=function(){if(!this.isFulfilled())throw new TypeError("cannot get fulfillment value of a non-fulfilled promise\n\n See http://goo.gl/MqrFmX\n");return this._settledValue()},r=e.prototype.error=e.prototype.reason=function(){if(!this.isRejected())throw new TypeError("cannot get rejection reason of a non-rejected promise\n\n See http://goo.gl/MqrFmX\n");return this._settledValue()},i=e.prototype.isFulfilled=function(){return 0!==(33554432&this._bitField)},o=e.prototype.isRejected=function(){return 0!==(16777216&this._bitField)},a=e.prototype.isPending=function(){return 0===(50397184&this._bitField)},s=e.prototype.isResolved=function(){return 0!==(50331648&this._bitField)};e.prototype.isCancelled=function(){return 0!==(8454144&this._bitField)},t.prototype.__isCancelled=function(){return 65536===(65536&this._bitField)},t.prototype._isCancelled=function(){return this._target().__isCancelled()},t.prototype.isCancelled=function(){return 0!==(8454144&this._target()._bitField)},t.prototype.isPending=function(){return a.call(this._target())},t.prototype.isRejected=function(){return o.call(this._target())},t.prototype.isFulfilled=function(){return i.call(this._target())},t.prototype.isResolved=function(){return s.call(this._target())},t.prototype.value=function(){return n.call(this._target())},t.prototype.reason=function(){var t=this._target();return t._unsetRejectionIsUnhandled(),r.call(t)},t.prototype._value=function(){return this._settledValue()},t.prototype._reason=function(){return this._unsetRejectionIsUnhandled(),this._settledValue()},t.PromiseInspection=e}},{}],33:[function(t,e,n){"use strict";e.exports=function(e,n){function r(t,r){if(c(t)){if(t instanceof e)return t;var i=o(t);if(i===l){r&&r._pushContext();var u=e.reject(i.e);return r&&r._popContext(),u}if("function"==typeof i){if(a(t)){var u=new e(n);return t._then(u._fulfill,u._reject,void 0,u,null),u}return s(t,i,r)}}return t}function i(t){return t.then}function o(t){try{return i(t)}catch(e){return l.e=e,l}}function a(t){try{return f.call(t,"_promise0")}catch(e){return!1}}function s(t,r,i){function o(t){s&&(s._resolveCallback(t),s=null)}function a(t){s&&(s._rejectCallback(t,f,!0),s=null)}var s=new e(n),c=s;i&&i._pushContext(),s._captureStackTrace(),i&&i._popContext();var f=!0,h=u.tryCatch(r).call(t,o,a);return f=!1,s&&h===l&&(s._rejectCallback(h.e,!0,!0),s=null),c}var u=t("./util"),l=u.errorObj,c=u.isObject,f={}.hasOwnProperty;return r}},{"./util":36}],34:[function(t,e,n){"use strict";e.exports=function(e,n,r){function i(t){this.handle=t}function o(t){return clearTimeout(this.handle),t}function a(t){throw clearTimeout(this.handle),t}var s=t("./util"),u=e.TimeoutError;i.prototype._resultCancelled=function(){clearTimeout(this.handle)};var l=function(t){return c(+this).thenReturn(t)},c=e.delay=function(t,o){var a,s;return void 0!==o?(a=e.resolve(o)._then(l,null,null,t,void 0),r.cancellation()&&o instanceof e&&a._setOnCancel(o)):(a=new e(n),s=setTimeout(function(){a._fulfill()},+t),r.cancellation()&&a._setOnCancel(new i(s)),a._captureStackTrace()),a._setAsyncGuaranteed(),a};e.prototype.delay=function(t){return c(t,this)};var f=function(t,e,n){var r;r="string"!=typeof e?e instanceof Error?e:new u("operation timed out"):new u(e),s.markAsOriginatingFromRejection(r),t._attachExtraTrace(r),t._reject(r),null!=n&&n.cancel()};e.prototype.timeout=function(t,e){t=+t;var n,s,u=new i(setTimeout(function(){n.isPending()&&f(n,e,s)},t));return r.cancellation()?(s=this.then(),n=s._then(o,a,void 0,u,void 0),n._setOnCancel(u)):n=this._then(o,a,void 0,u,void 0),n}}},{"./util":36}],35:[function(t,e,n){"use strict";e.exports=function(e,n,r,i,o,a){function s(t){setTimeout(function(){throw t},0)}function u(t){var e=r(t);return e!==t&&"function"==typeof t._isDisposable&&"function"==typeof t._getDisposer&&t._isDisposable()&&e._setDisposable(t._getDisposer()),e}function l(t,n){function i(){if(a>=l)return c._fulfill();var o=u(t[a++]);if(o instanceof e&&o._isDisposable()){try{o=r(o._getDisposer().tryDispose(n),t.promise)}catch(f){return s(f)}if(o instanceof e)return o._then(i,s,null,null,null)}i()}var a=0,l=t.length,c=new e(o);return i(),c}function c(t,e,n){this._data=t,this._promise=e,this._context=n}function f(t,e,n){this.constructor$(t,e,n)}function h(t){return c.isDisposer(t)?(this.resources[this.index]._setDisposable(t),t.promise()):t}function d(t){this.length=t,this.promise=null,this[t-1]=null}var p=t("./util"),m=t("./errors").TypeError,g=t("./util").inherits,v=p.errorObj,y=p.tryCatch,b={};c.prototype.data=function(){return this._data},c.prototype.promise=function(){return this._promise},c.prototype.resource=function(){return this.promise().isFulfilled()?this.promise().value():b},c.prototype.tryDispose=function(t){var e=this.resource(),n=this._context;void 0!==n&&n._pushContext();var r=e!==b?this.doDispose(e,t):null;return void 0!==n&&n._popContext(),this._promise._unsetDisposable(),this._data=null,r},c.isDisposer=function(t){return null!=t&&"function"==typeof t.resource&&"function"==typeof t.tryDispose},g(f,c),f.prototype.doDispose=function(t,e){var n=this.data();return n.call(t,t,e)},d.prototype._resultCancelled=function(){for(var t=this.length,n=0;n<t;++n){var r=this[n];r instanceof e&&r.cancel()}},e.using=function(){var t=arguments.length;if(t<2)return n("you must pass at least 2 arguments to Promise.using");var i=arguments[t-1];if("function"!=typeof i)return n("expecting a function but got "+p.classString(i));var o,s=!0;2===t&&Array.isArray(arguments[0])?(o=arguments[0],t=o.length,s=!1):(o=arguments,t--);for(var u=new d(t),f=0;f<t;++f){var m=o[f];if(c.isDisposer(m)){var g=m;m=m.promise(),m._setDisposable(g)}else{var b=r(m);b instanceof e&&(m=b._then(h,null,null,{resources:u,index:f},void 0))}u[f]=m}for(var _=new Array(u.length),f=0;f<_.length;++f)_[f]=e.resolve(u[f]).reflect();var w=e.all(_).then(function(t){for(var e=0;e<t.length;++e){var n=t[e];if(n.isRejected())return v.e=n.error(),v;if(!n.isFulfilled())return void w.cancel();t[e]=n.value()}x._pushContext(),i=y(i);var r=s?i.apply(void 0,t):i(t),o=x._popContext();return a.checkForgottenReturns(r,o,"Promise.using",x),r}),x=w.lastly(function(){var t=new e.PromiseInspection(w);return l(u,t)});return u.promise=x,x._setOnCancel(u),x},e.prototype._setDisposable=function(t){this._bitField=131072|this._bitField,this._disposer=t},e.prototype._isDisposable=function(){return(131072&this._bitField)>0},e.prototype._getDisposer=function(){return this._disposer},e.prototype._unsetDisposable=function(){this._bitField=this._bitField&-131073,this._disposer=void 0},e.prototype.disposer=function(t){if("function"==typeof t)return new f(t,this,i());throw new m}}},{"./errors":12,"./util":36}],36:[function(t,e,n){"use strict";function r(){try{var t=T;return T=null,t.apply(this,arguments)}catch(e){return A.e=e,A}}function i(t){return T=t,r}function o(t){return null==t||t===!0||t===!1||"string"==typeof t||"number"==typeof t}function a(t){return"function"==typeof t||"object"==typeof t&&null!==t}function s(t){return o(t)?new Error(g(t)):t}function u(t,e){var n,r=t.length,i=new Array(r+1);for(n=0;n<r;++n)i[n]=t[n];return i[n]=e,i}function l(t,e,n){if(!$.isES5)return{}.hasOwnProperty.call(t,e)?t[e]:void 0;var r=Object.getOwnPropertyDescriptor(t,e);return null!=r?null==r.get&&null==r.set?r.value:n:void 0}function c(t,e,n){if(o(t))return t;var r={value:n,configurable:!0,enumerable:!1,writable:!0};return $.defineProperty(t,e,r),t}function f(t){throw t}function h(t){try{if("function"==typeof t){var e=$.names(t.prototype),n=$.isES5&&e.length>1,r=e.length>0&&!(1===e.length&&"constructor"===e[0]),i=M.test(t+"")&&$.names(t).length>0;if(n||r||i)return!0}return!1}catch(o){return!1}}function d(t){function e(){}e.prototype=t;for(var n=8;n--;)new e;return t}function p(t){return O.test(t)}function m(t,e,n){for(var r=new Array(t),i=0;i<t;++i)r[i]=e+i+n;return r}function g(t){try{return t+""}catch(e){return"[no string representation]"}}function v(t){return t instanceof Error||null!==t&&"object"==typeof t&&"string"==typeof t.message&&"string"==typeof t.name}function y(t){try{c(t,"isOperational",!0)}catch(e){}}function b(t){return null!=t&&(t instanceof Error.__BluebirdErrorTypes__.OperationalError||t.isOperational===!0)}function _(t){return v(t)&&$.propertyIsWritable(t,"stack")}function w(t){return{}.toString.call(t)}function x(t,e,n){for(var r=$.names(t),i=0;i<r.length;++i){var o=r[i];if(n(o))try{$.defineProperty(e,o,$.getDescriptor(t,o))}catch(a){}}}function k(t){return I?process.env[t]:void 0}function C(){if("function"==typeof Promise)try{var t=new Promise(function(){});if("[object Promise]"==={}.toString.call(t))return Promise}catch(e){}}function E(t,e){return t.bind(e)}var $=t("./es5"),S="undefined"==typeof navigator,A={e:{}},T,D="undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:void 0!==this?this:null,F=function(t,e){function n(){this.constructor=t,this.constructor$=e;for(var n in e.prototype)r.call(e.prototype,n)&&"$"!==n.charAt(n.length-1)&&(this[n+"$"]=e.prototype[n])}var r={}.hasOwnProperty;return n.prototype=e.prototype,t.prototype=new n,t.prototype},N=function(){var t=[Array.prototype,Object.prototype,Function.prototype],e=function(e){for(var n=0;n<t.length;++n)if(t[n]===e)return!0;return!1};if($.isES5){var n=Object.getOwnPropertyNames;return function(t){for(var r=[],i=Object.create(null);null!=t&&!e(t);){var o;try{o=n(t)}catch(a){return r}for(var s=0;s<o.length;++s){var u=o[s];if(!i[u]){i[u]=!0;var l=Object.getOwnPropertyDescriptor(t,u);null!=l&&null==l.get&&null==l.set&&r.push(u)}}t=$.getPrototypeOf(t)}return r}}var r={}.hasOwnProperty;return function(n){if(e(n))return[];var i=[];t:for(var o in n)if(r.call(n,o))i.push(o);else{for(var a=0;a<t.length;++a)if(r.call(t[a],o))continue t;i.push(o)}return i}}(),M=/this\s*\.\s*\S+\s*=/,O=/^[a-z$_][a-z$_0-9]*$/i,j=function(){return"stack"in new Error?function(t){return _(t)?t:new Error(g(t))}:function(t){if(_(t))return t;try{throw new Error(g(t))}catch(e){return e}}}(),P=function(t){return $.isArray(t)?t:null};if("undefined"!=typeof Symbol&&Symbol.iterator){var L="function"==typeof Array.from?function(t){return Array.from(t)}:function(t){for(var e,n=[],r=t[Symbol.iterator]();!(e=r.next()).done;)n.push(e.value);return n};P=function(t){return $.isArray(t)?t:null!=t&&"function"==typeof t[Symbol.iterator]?L(t):null}}var R="undefined"!=typeof process&&"[object process]"===w(process).toLowerCase(),I="undefined"!=typeof process&&"undefined"!=typeof process.env,q={isClass:h,isIdentifier:p,inheritedDataKeys:N,getDataPropertyOrDefault:l,thrower:f,isArray:$.isArray,asArray:P,notEnumerableProp:c,isPrimitive:o,isObject:a,isError:v,canEvaluate:S,errorObj:A,tryCatch:i,inherits:F,withAppended:u,maybeWrapAsError:s,toFastProperties:d,filledRange:m,toString:g,canAttachTrace:_,ensureErrorObject:j,originatesFromRejection:b,markAsOriginatingFromRejection:y,classString:w,copyDescriptors:x,hasDevTools:"undefined"!=typeof chrome&&chrome&&"function"==typeof chrome.loadTimes,isNode:R,hasEnvVariables:I,env:k,global:D,getNativePromise:C,domainBind:E};q.isRecentNode=q.isNode&&function(){var t=process.versions.node.split(".").map(Number);return 0===t[0]&&t[1]>10||t[0]>0}(),q.isNode&&q.toFastProperties(process);try{throw new Error}catch(z){q.lastLineError=z}e.exports=q},{"./es5":13}]},{},[4])(4)}),"undefined"!=typeof window&&null!==window?window.P=window.Promise:"undefined"!=typeof self&&null!==self&&(self.P=self.Promise),function(t,e){"object"==typeof module&&"object"==typeof module.exports?module.exports=t.document?e(t,!0):function(t){if(!t.document)throw new Error("jQuery requires a window with a document");return e(t)}:e(t)}("undefined"!=typeof window?window:this,function(t,e){function n(t){var e=!!t&&"length"in t&&t.length,n=ot.type(t);return"function"!==n&&!ot.isWindow(t)&&("array"===n||0===e||"number"==typeof e&&e>0&&e-1 in t)}function r(t,e,n){if(ot.isFunction(e))return ot.grep(t,function(t,r){return!!e.call(t,r,t)!==n});if(e.nodeType)return ot.grep(t,function(t){return t===e!==n});if("string"==typeof e){if(mt.test(e))return ot.filter(e,t,n);e=ot.filter(e,t)}return ot.grep(t,function(t){return Q.call(e,t)>-1!==n})}function i(t,e){for(;(t=t[e])&&1!==t.nodeType;);return t}function o(t){var e={};return ot.each(t.match(wt)||[],function(t,n){e[n]=!0}),e}function a(){K.removeEventListener("DOMContentLoaded",a),t.removeEventListener("load",a),ot.ready()}function s(){this.expando=ot.expando+s.uid++}function u(t,e,n){var r;if(void 0===n&&1===t.nodeType)if(r="data-"+e.replace(At,"-$&").toLowerCase(),n=t.getAttribute(r),"string"==typeof n){try{n="true"===n||"false"!==n&&("null"===n?null:+n+""===n?+n:St.test(n)?ot.parseJSON(n):n)}catch(i){}$t.set(t,e,n)}else n=void 0;return n}function l(t,e,n,r){var i,o=1,a=20,s=r?function(){return r.cur()}:function(){return ot.css(t,e,"")},u=s(),l=n&&n[3]||(ot.cssNumber[e]?"":"px"),c=(ot.cssNumber[e]||"px"!==l&&+u)&&Dt.exec(ot.css(t,e));if(c&&c[3]!==l){l=l||c[3],n=n||[],c=+u||1;do o=o||".5",c/=o,ot.style(t,e,c+l);while(o!==(o=s()/u)&&1!==o&&--a)}return n&&(c=+c||+u||0,i=n[1]?c+(n[1]+1)*n[2]:+n[2],r&&(r.unit=l,r.start=c,r.end=i)),i}function c(t,e){var n="undefined"!=typeof t.getElementsByTagName?t.getElementsByTagName(e||"*"):"undefined"!=typeof t.querySelectorAll?t.querySelectorAll(e||"*"):[];return void 0===e||e&&ot.nodeName(t,e)?ot.merge([t],n):n}function f(t,e){for(var n=0,r=t.length;n<r;n++)Et.set(t[n],"globalEval",!e||Et.get(e[n],"globalEval"))}function h(t,e,n,r,i){for(var o,a,s,u,l,h,d=e.createDocumentFragment(),p=[],m=0,g=t.length;m<g;m++)if(o=t[m],o||0===o)if("object"===ot.type(o))ot.merge(p,o.nodeType?[o]:o);else if(Lt.test(o)){for(a=a||d.appendChild(e.createElement("div")),s=(Ot.exec(o)||["",""])[1].toLowerCase(),u=Pt[s]||Pt._default,a.innerHTML=u[1]+ot.htmlPrefilter(o)+u[2],h=u[0];h--;)a=a.lastChild;ot.merge(p,a.childNodes),a=d.firstChild,a.textContent=""}else p.push(e.createTextNode(o));for(d.textContent="",m=0;o=p[m++];)if(r&&ot.inArray(o,r)>-1)i&&i.push(o);else if(l=ot.contains(o.ownerDocument,o),a=c(d.appendChild(o),"script"),l&&f(a),n)for(h=0;o=a[h++];)jt.test(o.type||"")&&n.push(o);return d}function d(){return!0}function p(){return!1}function m(){try{return K.activeElement}catch(t){}}function g(t,e,n,r,i,o){var a,s;if("object"==typeof e){"string"!=typeof n&&(r=r||n,n=void 0);for(s in e)g(t,s,n,r,e[s],o);return t}if(null==r&&null==i?(i=n,r=n=void 0):null==i&&("string"==typeof n?(i=r,r=void 0):(i=r,r=n,n=void 0)),i===!1)i=p;else if(!i)return t;return 1===o&&(a=i,i=function(t){return ot().off(t),a.apply(this,arguments)},i.guid=a.guid||(a.guid=ot.guid++)),t.each(function(){ot.event.add(this,e,i,r,n)})}function v(t,e){return ot.nodeName(t,"table")&&ot.nodeName(11!==e.nodeType?e:e.firstChild,"tr")?t.getElementsByTagName("tbody")[0]||t.appendChild(t.ownerDocument.createElement("tbody")):t}function y(t){return t.type=(null!==t.getAttribute("type"))+"/"+t.type,t}function b(t){var e=Ut.exec(t.type);return e?t.type=e[1]:t.removeAttribute("type"),t}function _(t,e){var n,r,i,o,a,s,u,l;if(1===e.nodeType){if(Et.hasData(t)&&(o=Et.access(t),a=Et.set(e,o),l=o.events)){delete a.handle,a.events={};for(i in l)for(n=0,r=l[i].length;n<r;n++)ot.event.add(e,i,l[i][n])}$t.hasData(t)&&(s=$t.access(t),u=ot.extend({},s),$t.set(e,u))}}function w(t,e){var n=e.nodeName.toLowerCase();"input"===n&&Mt.test(t.type)?e.checked=t.checked:"input"!==n&&"textarea"!==n||(e.defaultValue=t.defaultValue)}function x(t,e,n,r){e=X.apply([],e);var i,o,a,s,u,l,f=0,d=t.length,p=d-1,m=e[0],g=ot.isFunction(m);if(g||d>1&&"string"==typeof m&&!rt.checkClone&&Bt.test(m))return t.each(function(i){var o=t.eq(i);g&&(e[0]=m.call(this,i,o.html())),x(o,e,n,r)});if(d&&(i=h(e,t[0].ownerDocument,!1,t,r),o=i.firstChild,1===i.childNodes.length&&(i=o),o||r)){for(a=ot.map(c(i,"script"),y),s=a.length;f<d;f++)u=i,f!==p&&(u=ot.clone(u,!0,!0),s&&ot.merge(a,c(u,"script"))),n.call(t[f],u,f);if(s)for(l=a[a.length-1].ownerDocument,ot.map(a,b),f=0;f<s;f++)u=a[f],jt.test(u.type||"")&&!Et.access(u,"globalEval")&&ot.contains(l,u)&&(u.src?ot._evalUrl&&ot._evalUrl(u.src):ot.globalEval(u.textContent.replace(Vt,"")))}return t}function k(t,e,n){for(var r,i=e?ot.filter(e,t):t,o=0;null!=(r=i[o]);o++)n||1!==r.nodeType||ot.cleanData(c(r)),r.parentNode&&(n&&ot.contains(r.ownerDocument,r)&&f(c(r,"script")),r.parentNode.removeChild(r));return t}function C(t,e){var n=ot(e.createElement(t)).appendTo(e.body),r=ot.css(n[0],"display");return n.detach(),r}function E(t){var e=K,n=Yt[t];return n||(n=C(t,e),"none"!==n&&n||(Wt=(Wt||ot("<iframe frameborder='0' width='0' height='0'/>")).appendTo(e.documentElement),e=Wt[0].contentDocument,e.write(),e.close(),n=C(t,e),Wt.detach()),Yt[t]=n),n}function $(t,e,n){var r,i,o,a,s=t.style;return n=n||Zt(t),a=n?n.getPropertyValue(e)||n[e]:void 0,""!==a&&void 0!==a||ot.contains(t.ownerDocument,t)||(a=ot.style(t,e)),n&&!rt.pixelMarginRight()&&Kt.test(a)&&Gt.test(e)&&(r=s.width,i=s.minWidth,o=s.maxWidth,s.minWidth=s.maxWidth=s.width=a,a=n.width,s.width=r,s.minWidth=i,s.maxWidth=o),void 0!==a?a+"":a}function S(t,e){return{get:function(){return t()?void delete this.get:(this.get=e).apply(this,arguments)}}}function A(t){if(t in re)return t;for(var e=t[0].toUpperCase()+t.slice(1),n=ne.length;n--;)if(t=ne[n]+e,t in re)return t}function T(t,e,n){var r=Dt.exec(e);return r?Math.max(0,r[2]-(n||0))+(r[3]||"px"):e}function D(t,e,n,r,i){for(var o=n===(r?"border":"content")?4:"width"===e?1:0,a=0;o<4;o+=2)"margin"===n&&(a+=ot.css(t,n+Ft[o],!0,i)),r?("content"===n&&(a-=ot.css(t,"padding"+Ft[o],!0,i)),"margin"!==n&&(a-=ot.css(t,"border"+Ft[o]+"Width",!0,i))):(a+=ot.css(t,"padding"+Ft[o],!0,i),"padding"!==n&&(a+=ot.css(t,"border"+Ft[o]+"Width",!0,i)));return a}function F(t,e,n){var r=!0,i="width"===e?t.offsetWidth:t.offsetHeight,o=Zt(t),a="border-box"===ot.css(t,"boxSizing",!1,o);if(i<=0||null==i){if(i=$(t,e,o),(i<0||null==i)&&(i=t.style[e]),Kt.test(i))return i;r=a&&(rt.boxSizingReliable()||i===t.style[e]),i=parseFloat(i)||0}return i+D(t,e,n||(a?"border":"content"),r,o)+"px"}function N(t,e){for(var n,r,i,o=[],a=0,s=t.length;a<s;a++)r=t[a],r.style&&(o[a]=Et.get(r,"olddisplay"),n=r.style.display,e?(o[a]||"none"!==n||(r.style.display=""),""===r.style.display&&Nt(r)&&(o[a]=Et.access(r,"olddisplay",E(r.nodeName)))):(i=Nt(r),"none"===n&&i||Et.set(r,"olddisplay",i?n:ot.css(r,"display"))));for(a=0;a<s;a++)r=t[a],r.style&&(e&&"none"!==r.style.display&&""!==r.style.display||(r.style.display=e?o[a]||"":"none"));return t}function M(t,e,n,r,i){return new M.prototype.init(t,e,n,r,i)}function O(){return t.setTimeout(function(){ie=void 0}),ie=ot.now()}function j(t,e){var n,r=0,i={height:t};for(e=e?1:0;r<4;r+=2-e)n=Ft[r],i["margin"+n]=i["padding"+n]=t;return e&&(i.opacity=i.width=t),i}function P(t,e,n){for(var r,i=(I.tweeners[e]||[]).concat(I.tweeners["*"]),o=0,a=i.length;o<a;o++)if(r=i[o].call(n,e,t))return r}function L(t,e,n){var r,i,o,a,s,u,l,c,f=this,h={},d=t.style,p=t.nodeType&&Nt(t),m=Et.get(t,"fxshow");n.queue||(s=ot._queueHooks(t,"fx"),null==s.unqueued&&(s.unqueued=0,u=s.empty.fire,s.empty.fire=function(){s.unqueued||u()}),s.unqueued++,f.always(function(){f.always(function(){s.unqueued--,ot.queue(t,"fx").length||s.empty.fire()})})),1===t.nodeType&&("height"in e||"width"in e)&&(n.overflow=[d.overflow,d.overflowX,d.overflowY],l=ot.css(t,"display"),c="none"===l?Et.get(t,"olddisplay")||E(t.nodeName):l,"inline"===c&&"none"===ot.css(t,"float")&&(d.display="inline-block")),n.overflow&&(d.overflow="hidden",f.always(function(){d.overflow=n.overflow[0],d.overflowX=n.overflow[1],d.overflowY=n.overflow[2]}));for(r in e)if(i=e[r],ae.exec(i)){if(delete e[r],o=o||"toggle"===i,i===(p?"hide":"show")){if("show"!==i||!m||void 0===m[r])continue;p=!0}h[r]=m&&m[r]||ot.style(t,r)}else l=void 0;if(ot.isEmptyObject(h))"inline"===("none"===l?E(t.nodeName):l)&&(d.display=l);else{m?"hidden"in m&&(p=m.hidden):m=Et.access(t,"fxshow",{}),o&&(m.hidden=!p),p?ot(t).show():f.done(function(){ot(t).hide()}),f.done(function(){var e;Et.remove(t,"fxshow");for(e in h)ot.style(t,e,h[e])});for(r in h)a=P(p?m[r]:0,r,f),r in m||(m[r]=a.start,p&&(a.end=a.start,a.start="width"===r||"height"===r?1:0))}}function R(t,e){var n,r,i,o,a;for(n in t)if(r=ot.camelCase(n),i=e[r],o=t[n],ot.isArray(o)&&(i=o[1],o=t[n]=o[0]),n!==r&&(t[r]=o,delete t[n]),a=ot.cssHooks[r],a&&"expand"in a){o=a.expand(o),delete t[r];for(n in o)n in t||(t[n]=o[n],e[n]=i)}else e[r]=i}function I(t,e,n){var r,i,o=0,a=I.prefilters.length,s=ot.Deferred().always(function(){delete u.elem}),u=function(){if(i)return!1;for(var e=ie||O(),n=Math.max(0,l.startTime+l.duration-e),r=n/l.duration||0,o=1-r,a=0,u=l.tweens.length;a<u;a++)l.tweens[a].run(o);return s.notifyWith(t,[l,o,n]),o<1&&u?n:(s.resolveWith(t,[l]),!1)},l=s.promise({elem:t,props:ot.extend({},e),opts:ot.extend(!0,{specialEasing:{},easing:ot.easing._default},n),originalProperties:e,originalOptions:n,startTime:ie||O(),duration:n.duration,tweens:[],createTween:function(e,n){var r=ot.Tween(t,l.opts,e,n,l.opts.specialEasing[e]||l.opts.easing);return l.tweens.push(r),r},stop:function(e){var n=0,r=e?l.tweens.length:0;if(i)return this;for(i=!0;n<r;n++)l.tweens[n].run(1);return e?(s.notifyWith(t,[l,1,0]),s.resolveWith(t,[l,e])):s.rejectWith(t,[l,e]),this}}),c=l.props;for(R(c,l.opts.specialEasing);o<a;o++)if(r=I.prefilters[o].call(l,t,c,l.opts))return ot.isFunction(r.stop)&&(ot._queueHooks(l.elem,l.opts.queue).stop=ot.proxy(r.stop,r)),r;return ot.map(c,P,l),ot.isFunction(l.opts.start)&&l.opts.start.call(t,l),ot.fx.timer(ot.extend(u,{elem:t,anim:l,queue:l.opts.queue})),l.progress(l.opts.progress).done(l.opts.done,l.opts.complete).fail(l.opts.fail).always(l.opts.always)}function q(t){return t.getAttribute&&t.getAttribute("class")||""}function z(t){return function(e,n){"string"!=typeof e&&(n=e,e="*");var r,i=0,o=e.toLowerCase().match(wt)||[];if(ot.isFunction(n))for(;r=o[i++];)"+"===r[0]?(r=r.slice(1)||"*",(t[r]=t[r]||[]).unshift(n)):(t[r]=t[r]||[]).push(n)}}function H(t,e,n,r){function i(s){var u;return o[s]=!0,ot.each(t[s]||[],function(t,s){var l=s(e,n,r);return"string"!=typeof l||a||o[l]?a?!(u=l):void 0:(e.dataTypes.unshift(l),i(l),!1)}),u}var o={},a=t===$e;return i(e.dataTypes[0])||!o["*"]&&i("*")}function B(t,e){var n,r,i=ot.ajaxSettings.flatOptions||{};for(n in e)void 0!==e[n]&&((i[n]?t:r||(r={}))[n]=e[n]);return r&&ot.extend(!0,t,r),t}function U(t,e,n){for(var r,i,o,a,s=t.contents,u=t.dataTypes;"*"===u[0];)u.shift(),void 0===r&&(r=t.mimeType||e.getResponseHeader("Content-Type"));if(r)for(i in s)if(s[i]&&s[i].test(r)){u.unshift(i);break}if(u[0]in n)o=u[0];else{for(i in n){if(!u[0]||t.converters[i+" "+u[0]]){o=i;break}a||(a=i)}o=o||a}if(o)return o!==u[0]&&u.unshift(o),n[o]}function V(t,e,n,r){var i,o,a,s,u,l={},c=t.dataTypes.slice();if(c[1])for(a in t.converters)l[a.toLowerCase()]=t.converters[a];for(o=c.shift();o;)if(t.responseFields[o]&&(n[t.responseFields[o]]=e),!u&&r&&t.dataFilter&&(e=t.dataFilter(e,t.dataType)),u=o,o=c.shift())if("*"===o)o=u;else if("*"!==u&&u!==o){if(a=l[u+" "+o]||l["* "+o],!a)for(i in l)if(s=i.split(" "),s[1]===o&&(a=l[u+" "+s[0]]||l["* "+s[0]])){a===!0?a=l[i]:l[i]!==!0&&(o=s[0],c.unshift(s[1]));break}if(a!==!0)if(a&&t["throws"])e=a(e);else try{e=a(e)}catch(f){return{state:"parsererror",error:a?f:"No conversion from "+u+" to "+o}}}return{state:"success",data:e}}function W(t,e,n,r){var i;if(ot.isArray(e))ot.each(e,function(e,i){n||De.test(t)?r(t,i):W(t+"["+("object"==typeof i&&null!=i?e:"")+"]",i,n,r)});else if(n||"object"!==ot.type(e))r(t,e);else for(i in e)W(t+"["+i+"]",e[i],n,r)}function Y(t){return ot.isWindow(t)?t:9===t.nodeType&&t.defaultView}var G=[],K=t.document,Z=G.slice,X=G.concat,J=G.push,Q=G.indexOf,tt={},et=tt.toString,nt=tt.hasOwnProperty,rt={},it="2.2.4",ot=function(t,e){return new ot.fn.init(t,e)},at=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,st=/^-ms-/,ut=/-([\da-z])/gi,lt=function(t,e){return e.toUpperCase()};ot.fn=ot.prototype={jquery:it,constructor:ot,selector:"",length:0,toArray:function(){return Z.call(this)},get:function(t){return null!=t?t<0?this[t+this.length]:this[t]:Z.call(this)},pushStack:function(t){var e=ot.merge(this.constructor(),t);return e.prevObject=this,e.context=this.context,e},each:function(t){return ot.each(this,t)},map:function(t){return this.pushStack(ot.map(this,function(e,n){return t.call(e,n,e)}))},slice:function(){return this.pushStack(Z.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(t){var e=this.length,n=+t+(t<0?e:0);return this.pushStack(n>=0&&n<e?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()},push:J,sort:G.sort,splice:G.splice},ot.extend=ot.fn.extend=function(){var t,e,n,r,i,o,a=arguments[0]||{},s=1,u=arguments.length,l=!1;for("boolean"==typeof a&&(l=a,a=arguments[s]||{},s++),"object"==typeof a||ot.isFunction(a)||(a={}),s===u&&(a=this,s--);s<u;s++)if(null!=(t=arguments[s]))for(e in t)n=a[e],r=t[e],a!==r&&(l&&r&&(ot.isPlainObject(r)||(i=ot.isArray(r)))?(i?(i=!1,o=n&&ot.isArray(n)?n:[]):o=n&&ot.isPlainObject(n)?n:{},a[e]=ot.extend(l,o,r)):void 0!==r&&(a[e]=r));return a},ot.extend({expando:"jQuery"+(it+Math.random()).replace(/\D/g,""),isReady:!0,error:function(t){throw new Error(t)},noop:function(){},isFunction:function(t){return"function"===ot.type(t)},isArray:Array.isArray,isWindow:function(t){return null!=t&&t===t.window},isNumeric:function(t){var e=t&&t.toString();return!ot.isArray(t)&&e-parseFloat(e)+1>=0},isPlainObject:function(t){var e;if("object"!==ot.type(t)||t.nodeType||ot.isWindow(t))return!1;if(t.constructor&&!nt.call(t,"constructor")&&!nt.call(t.constructor.prototype||{},"isPrototypeOf"))return!1;for(e in t);return void 0===e||nt.call(t,e)},isEmptyObject:function(t){var e;for(e in t)return!1;return!0},type:function(t){return null==t?t+"":"object"==typeof t||"function"==typeof t?tt[et.call(t)]||"object":typeof t},globalEval:function(t){var e,n=eval;t=ot.trim(t),t&&(1===t.indexOf("use strict")?(e=K.createElement("script"),e.text=t,K.head.appendChild(e).parentNode.removeChild(e)):n(t))},camelCase:function(t){return t.replace(st,"ms-").replace(ut,lt)},nodeName:function(t,e){return t.nodeName&&t.nodeName.toLowerCase()===e.toLowerCase();
|
||
},each:function(t,e){var r,i=0;if(n(t))for(r=t.length;i<r&&e.call(t[i],i,t[i])!==!1;i++);else for(i in t)if(e.call(t[i],i,t[i])===!1)break;return t},trim:function(t){return null==t?"":(t+"").replace(at,"")},makeArray:function(t,e){var r=e||[];return null!=t&&(n(Object(t))?ot.merge(r,"string"==typeof t?[t]:t):J.call(r,t)),r},inArray:function(t,e,n){return null==e?-1:Q.call(e,t,n)},merge:function(t,e){for(var n=+e.length,r=0,i=t.length;r<n;r++)t[i++]=e[r];return t.length=i,t},grep:function(t,e,n){for(var r,i=[],o=0,a=t.length,s=!n;o<a;o++)r=!e(t[o],o),r!==s&&i.push(t[o]);return i},map:function(t,e,r){var i,o,a=0,s=[];if(n(t))for(i=t.length;a<i;a++)o=e(t[a],a,r),null!=o&&s.push(o);else for(a in t)o=e(t[a],a,r),null!=o&&s.push(o);return X.apply([],s)},guid:1,proxy:function(t,e){var n,r,i;if("string"==typeof e&&(n=t[e],e=t,t=n),ot.isFunction(t))return r=Z.call(arguments,2),i=function(){return t.apply(e||this,r.concat(Z.call(arguments)))},i.guid=t.guid=t.guid||ot.guid++,i},now:Date.now,support:rt}),"function"==typeof Symbol&&(ot.fn[Symbol.iterator]=G[Symbol.iterator]),ot.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(t,e){tt["[object "+e+"]"]=e.toLowerCase()});var ct=function(t){function e(t,e,n,r){var i,o,a,s,u,l,f,d,p=e&&e.ownerDocument,m=e?e.nodeType:9;if(n=n||[],"string"!=typeof t||!t||1!==m&&9!==m&&11!==m)return n;if(!r&&((e?e.ownerDocument||e:q)!==N&&F(e),e=e||N,O)){if(11!==m&&(l=vt.exec(t)))if(i=l[1]){if(9===m){if(!(a=e.getElementById(i)))return n;if(a.id===i)return n.push(a),n}else if(p&&(a=p.getElementById(i))&&R(e,a)&&a.id===i)return n.push(a),n}else{if(l[2])return J.apply(n,e.getElementsByTagName(t)),n;if((i=l[3])&&w.getElementsByClassName&&e.getElementsByClassName)return J.apply(n,e.getElementsByClassName(i)),n}if(w.qsa&&!V[t+" "]&&(!j||!j.test(t))){if(1!==m)p=e,d=t;else if("object"!==e.nodeName.toLowerCase()){for((s=e.getAttribute("id"))?s=s.replace(bt,"\\$&"):e.setAttribute("id",s=I),f=E(t),o=f.length,u=ht.test(s)?"#"+s:"[id='"+s+"']";o--;)f[o]=u+" "+h(f[o]);d=f.join(","),p=yt.test(t)&&c(e.parentNode)||e}if(d)try{return J.apply(n,p.querySelectorAll(d)),n}catch(g){}finally{s===I&&e.removeAttribute("id")}}}return S(t.replace(st,"$1"),e,n,r)}function n(){function t(n,r){return e.push(n+" ")>x.cacheLength&&delete t[e.shift()],t[n+" "]=r}var e=[];return t}function r(t){return t[I]=!0,t}function i(t){var e=N.createElement("div");try{return!!t(e)}catch(n){return!1}finally{e.parentNode&&e.parentNode.removeChild(e),e=null}}function o(t,e){for(var n=t.split("|"),r=n.length;r--;)x.attrHandle[n[r]]=e}function a(t,e){var n=e&&t,r=n&&1===t.nodeType&&1===e.nodeType&&(~e.sourceIndex||Y)-(~t.sourceIndex||Y);if(r)return r;if(n)for(;n=n.nextSibling;)if(n===e)return-1;return t?1:-1}function s(t){return function(e){var n=e.nodeName.toLowerCase();return"input"===n&&e.type===t}}function u(t){return function(e){var n=e.nodeName.toLowerCase();return("input"===n||"button"===n)&&e.type===t}}function l(t){return r(function(e){return e=+e,r(function(n,r){for(var i,o=t([],n.length,e),a=o.length;a--;)n[i=o[a]]&&(n[i]=!(r[i]=n[i]))})})}function c(t){return t&&"undefined"!=typeof t.getElementsByTagName&&t}function f(){}function h(t){for(var e=0,n=t.length,r="";e<n;e++)r+=t[e].value;return r}function d(t,e,n){var r=e.dir,i=n&&"parentNode"===r,o=H++;return e.first?function(e,n,o){for(;e=e[r];)if(1===e.nodeType||i)return t(e,n,o)}:function(e,n,a){var s,u,l,c=[z,o];if(a){for(;e=e[r];)if((1===e.nodeType||i)&&t(e,n,a))return!0}else for(;e=e[r];)if(1===e.nodeType||i){if(l=e[I]||(e[I]={}),u=l[e.uniqueID]||(l[e.uniqueID]={}),(s=u[r])&&s[0]===z&&s[1]===o)return c[2]=s[2];if(u[r]=c,c[2]=t(e,n,a))return!0}}}function p(t){return t.length>1?function(e,n,r){for(var i=t.length;i--;)if(!t[i](e,n,r))return!1;return!0}:t[0]}function m(t,n,r){for(var i=0,o=n.length;i<o;i++)e(t,n[i],r);return r}function g(t,e,n,r,i){for(var o,a=[],s=0,u=t.length,l=null!=e;s<u;s++)(o=t[s])&&(n&&!n(o,r,i)||(a.push(o),l&&e.push(s)));return a}function v(t,e,n,i,o,a){return i&&!i[I]&&(i=v(i)),o&&!o[I]&&(o=v(o,a)),r(function(r,a,s,u){var l,c,f,h=[],d=[],p=a.length,v=r||m(e||"*",s.nodeType?[s]:s,[]),y=!t||!r&&e?v:g(v,h,t,s,u),b=n?o||(r?t:p||i)?[]:a:y;if(n&&n(y,b,s,u),i)for(l=g(b,d),i(l,[],s,u),c=l.length;c--;)(f=l[c])&&(b[d[c]]=!(y[d[c]]=f));if(r){if(o||t){if(o){for(l=[],c=b.length;c--;)(f=b[c])&&l.push(y[c]=f);o(null,b=[],l,u)}for(c=b.length;c--;)(f=b[c])&&(l=o?tt(r,f):h[c])>-1&&(r[l]=!(a[l]=f))}}else b=g(b===a?b.splice(p,b.length):b),o?o(null,a,b,u):J.apply(a,b)})}function y(t){for(var e,n,r,i=t.length,o=x.relative[t[0].type],a=o||x.relative[" "],s=o?1:0,u=d(function(t){return t===e},a,!0),l=d(function(t){return tt(e,t)>-1},a,!0),c=[function(t,n,r){var i=!o&&(r||n!==A)||((e=n).nodeType?u(t,n,r):l(t,n,r));return e=null,i}];s<i;s++)if(n=x.relative[t[s].type])c=[d(p(c),n)];else{if(n=x.filter[t[s].type].apply(null,t[s].matches),n[I]){for(r=++s;r<i&&!x.relative[t[r].type];r++);return v(s>1&&p(c),s>1&&h(t.slice(0,s-1).concat({value:" "===t[s-2].type?"*":""})).replace(st,"$1"),n,s<r&&y(t.slice(s,r)),r<i&&y(t=t.slice(r)),r<i&&h(t))}c.push(n)}return p(c)}function b(t,n){var i=n.length>0,o=t.length>0,a=function(r,a,s,u,l){var c,f,h,d=0,p="0",m=r&&[],v=[],y=A,b=r||o&&x.find.TAG("*",l),_=z+=null==y?1:Math.random()||.1,w=b.length;for(l&&(A=a===N||a||l);p!==w&&null!=(c=b[p]);p++){if(o&&c){for(f=0,a||c.ownerDocument===N||(F(c),s=!O);h=t[f++];)if(h(c,a||N,s)){u.push(c);break}l&&(z=_)}i&&((c=!h&&c)&&d--,r&&m.push(c))}if(d+=p,i&&p!==d){for(f=0;h=n[f++];)h(m,v,a,s);if(r){if(d>0)for(;p--;)m[p]||v[p]||(v[p]=Z.call(u));v=g(v)}J.apply(u,v),l&&!r&&v.length>0&&d+n.length>1&&e.uniqueSort(u)}return l&&(z=_,A=y),m};return i?r(a):a}var _,w,x,k,C,E,$,S,A,T,D,F,N,M,O,j,P,L,R,I="sizzle"+1*new Date,q=t.document,z=0,H=0,B=n(),U=n(),V=n(),W=function(t,e){return t===e&&(D=!0),0},Y=1<<31,G={}.hasOwnProperty,K=[],Z=K.pop,X=K.push,J=K.push,Q=K.slice,tt=function(t,e){for(var n=0,r=t.length;n<r;n++)if(t[n]===e)return n;return-1},et="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",nt="[\\x20\\t\\r\\n\\f]",rt="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",it="\\["+nt+"*("+rt+")(?:"+nt+"*([*^$|!~]?=)"+nt+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+rt+"))|)"+nt+"*\\]",ot=":("+rt+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+it+")*)|.*)\\)|)",at=new RegExp(nt+"+","g"),st=new RegExp("^"+nt+"+|((?:^|[^\\\\])(?:\\\\.)*)"+nt+"+$","g"),ut=new RegExp("^"+nt+"*,"+nt+"*"),lt=new RegExp("^"+nt+"*([>+~]|"+nt+")"+nt+"*"),ct=new RegExp("="+nt+"*([^\\]'\"]*?)"+nt+"*\\]","g"),ft=new RegExp(ot),ht=new RegExp("^"+rt+"$"),dt={ID:new RegExp("^#("+rt+")"),CLASS:new RegExp("^\\.("+rt+")"),TAG:new RegExp("^("+rt+"|[*])"),ATTR:new RegExp("^"+it),PSEUDO:new RegExp("^"+ot),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+nt+"*(even|odd|(([+-]|)(\\d*)n|)"+nt+"*(?:([+-]|)"+nt+"*(\\d+)|))"+nt+"*\\)|)","i"),bool:new RegExp("^(?:"+et+")$","i"),needsContext:new RegExp("^"+nt+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+nt+"*((?:-\\d)?\\d*)"+nt+"*\\)|)(?=[^-]|$)","i")},pt=/^(?:input|select|textarea|button)$/i,mt=/^h\d$/i,gt=/^[^{]+\{\s*\[native \w/,vt=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,yt=/[+~]/,bt=/'|\\/g,_t=new RegExp("\\\\([\\da-f]{1,6}"+nt+"?|("+nt+")|.)","ig"),wt=function(t,e,n){var r="0x"+e-65536;return r!==r||n?e:r<0?String.fromCharCode(r+65536):String.fromCharCode(r>>10|55296,1023&r|56320)},xt=function(){F()};try{J.apply(K=Q.call(q.childNodes),q.childNodes),K[q.childNodes.length].nodeType}catch(kt){J={apply:K.length?function(t,e){X.apply(t,Q.call(e))}:function(t,e){for(var n=t.length,r=0;t[n++]=e[r++];);t.length=n-1}}}w=e.support={},C=e.isXML=function(t){var e=t&&(t.ownerDocument||t).documentElement;return!!e&&"HTML"!==e.nodeName},F=e.setDocument=function(t){var e,n,r=t?t.ownerDocument||t:q;return r!==N&&9===r.nodeType&&r.documentElement?(N=r,M=N.documentElement,O=!C(N),(n=N.defaultView)&&n.top!==n&&(n.addEventListener?n.addEventListener("unload",xt,!1):n.attachEvent&&n.attachEvent("onunload",xt)),w.attributes=i(function(t){return t.className="i",!t.getAttribute("className")}),w.getElementsByTagName=i(function(t){return t.appendChild(N.createComment("")),!t.getElementsByTagName("*").length}),w.getElementsByClassName=gt.test(N.getElementsByClassName),w.getById=i(function(t){return M.appendChild(t).id=I,!N.getElementsByName||!N.getElementsByName(I).length}),w.getById?(x.find.ID=function(t,e){if("undefined"!=typeof e.getElementById&&O){var n=e.getElementById(t);return n?[n]:[]}},x.filter.ID=function(t){var e=t.replace(_t,wt);return function(t){return t.getAttribute("id")===e}}):(delete x.find.ID,x.filter.ID=function(t){var e=t.replace(_t,wt);return function(t){var n="undefined"!=typeof t.getAttributeNode&&t.getAttributeNode("id");return n&&n.value===e}}),x.find.TAG=w.getElementsByTagName?function(t,e){return"undefined"!=typeof e.getElementsByTagName?e.getElementsByTagName(t):w.qsa?e.querySelectorAll(t):void 0}:function(t,e){var n,r=[],i=0,o=e.getElementsByTagName(t);if("*"===t){for(;n=o[i++];)1===n.nodeType&&r.push(n);return r}return o},x.find.CLASS=w.getElementsByClassName&&function(t,e){if("undefined"!=typeof e.getElementsByClassName&&O)return e.getElementsByClassName(t)},P=[],j=[],(w.qsa=gt.test(N.querySelectorAll))&&(i(function(t){M.appendChild(t).innerHTML="<a id='"+I+"'></a><select id='"+I+"-\r\\' msallowcapture=''><option selected=''></option></select>",t.querySelectorAll("[msallowcapture^='']").length&&j.push("[*^$]="+nt+"*(?:''|\"\")"),t.querySelectorAll("[selected]").length||j.push("\\["+nt+"*(?:value|"+et+")"),t.querySelectorAll("[id~="+I+"-]").length||j.push("~="),t.querySelectorAll(":checked").length||j.push(":checked"),t.querySelectorAll("a#"+I+"+*").length||j.push(".#.+[+~]")}),i(function(t){var e=N.createElement("input");e.setAttribute("type","hidden"),t.appendChild(e).setAttribute("name","D"),t.querySelectorAll("[name=d]").length&&j.push("name"+nt+"*[*^$|!~]?="),t.querySelectorAll(":enabled").length||j.push(":enabled",":disabled"),t.querySelectorAll("*,:x"),j.push(",.*:")})),(w.matchesSelector=gt.test(L=M.matches||M.webkitMatchesSelector||M.mozMatchesSelector||M.oMatchesSelector||M.msMatchesSelector))&&i(function(t){w.disconnectedMatch=L.call(t,"div"),L.call(t,"[s!='']:x"),P.push("!=",ot)}),j=j.length&&new RegExp(j.join("|")),P=P.length&&new RegExp(P.join("|")),e=gt.test(M.compareDocumentPosition),R=e||gt.test(M.contains)?function(t,e){var n=9===t.nodeType?t.documentElement:t,r=e&&e.parentNode;return t===r||!(!r||1!==r.nodeType||!(n.contains?n.contains(r):t.compareDocumentPosition&&16&t.compareDocumentPosition(r)))}:function(t,e){if(e)for(;e=e.parentNode;)if(e===t)return!0;return!1},W=e?function(t,e){if(t===e)return D=!0,0;var n=!t.compareDocumentPosition-!e.compareDocumentPosition;return n?n:(n=(t.ownerDocument||t)===(e.ownerDocument||e)?t.compareDocumentPosition(e):1,1&n||!w.sortDetached&&e.compareDocumentPosition(t)===n?t===N||t.ownerDocument===q&&R(q,t)?-1:e===N||e.ownerDocument===q&&R(q,e)?1:T?tt(T,t)-tt(T,e):0:4&n?-1:1)}:function(t,e){if(t===e)return D=!0,0;var n,r=0,i=t.parentNode,o=e.parentNode,s=[t],u=[e];if(!i||!o)return t===N?-1:e===N?1:i?-1:o?1:T?tt(T,t)-tt(T,e):0;if(i===o)return a(t,e);for(n=t;n=n.parentNode;)s.unshift(n);for(n=e;n=n.parentNode;)u.unshift(n);for(;s[r]===u[r];)r++;return r?a(s[r],u[r]):s[r]===q?-1:u[r]===q?1:0},N):N},e.matches=function(t,n){return e(t,null,null,n)},e.matchesSelector=function(t,n){if((t.ownerDocument||t)!==N&&F(t),n=n.replace(ct,"='$1']"),w.matchesSelector&&O&&!V[n+" "]&&(!P||!P.test(n))&&(!j||!j.test(n)))try{var r=L.call(t,n);if(r||w.disconnectedMatch||t.document&&11!==t.document.nodeType)return r}catch(i){}return e(n,N,null,[t]).length>0},e.contains=function(t,e){return(t.ownerDocument||t)!==N&&F(t),R(t,e)},e.attr=function(t,e){(t.ownerDocument||t)!==N&&F(t);var n=x.attrHandle[e.toLowerCase()],r=n&&G.call(x.attrHandle,e.toLowerCase())?n(t,e,!O):void 0;return void 0!==r?r:w.attributes||!O?t.getAttribute(e):(r=t.getAttributeNode(e))&&r.specified?r.value:null},e.error=function(t){throw new Error("Syntax error, unrecognized expression: "+t)},e.uniqueSort=function(t){var e,n=[],r=0,i=0;if(D=!w.detectDuplicates,T=!w.sortStable&&t.slice(0),t.sort(W),D){for(;e=t[i++];)e===t[i]&&(r=n.push(i));for(;r--;)t.splice(n[r],1)}return T=null,t},k=e.getText=function(t){var e,n="",r=0,i=t.nodeType;if(i){if(1===i||9===i||11===i){if("string"==typeof t.textContent)return t.textContent;for(t=t.firstChild;t;t=t.nextSibling)n+=k(t)}else if(3===i||4===i)return t.nodeValue}else for(;e=t[r++];)n+=k(e);return n},x=e.selectors={cacheLength:50,createPseudo:r,match:dt,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(t){return t[1]=t[1].replace(_t,wt),t[3]=(t[3]||t[4]||t[5]||"").replace(_t,wt),"~="===t[2]&&(t[3]=" "+t[3]+" "),t.slice(0,4)},CHILD:function(t){return t[1]=t[1].toLowerCase(),"nth"===t[1].slice(0,3)?(t[3]||e.error(t[0]),t[4]=+(t[4]?t[5]+(t[6]||1):2*("even"===t[3]||"odd"===t[3])),t[5]=+(t[7]+t[8]||"odd"===t[3])):t[3]&&e.error(t[0]),t},PSEUDO:function(t){var e,n=!t[6]&&t[2];return dt.CHILD.test(t[0])?null:(t[3]?t[2]=t[4]||t[5]||"":n&&ft.test(n)&&(e=E(n,!0))&&(e=n.indexOf(")",n.length-e)-n.length)&&(t[0]=t[0].slice(0,e),t[2]=n.slice(0,e)),t.slice(0,3))}},filter:{TAG:function(t){var e=t.replace(_t,wt).toLowerCase();return"*"===t?function(){return!0}:function(t){return t.nodeName&&t.nodeName.toLowerCase()===e}},CLASS:function(t){var e=B[t+" "];return e||(e=new RegExp("(^|"+nt+")"+t+"("+nt+"|$)"))&&B(t,function(t){return e.test("string"==typeof t.className&&t.className||"undefined"!=typeof t.getAttribute&&t.getAttribute("class")||"")})},ATTR:function(t,n,r){return function(i){var o=e.attr(i,t);return null==o?"!="===n:!n||(o+="","="===n?o===r:"!="===n?o!==r:"^="===n?r&&0===o.indexOf(r):"*="===n?r&&o.indexOf(r)>-1:"$="===n?r&&o.slice(-r.length)===r:"~="===n?(" "+o.replace(at," ")+" ").indexOf(r)>-1:"|="===n&&(o===r||o.slice(0,r.length+1)===r+"-"))}},CHILD:function(t,e,n,r,i){var o="nth"!==t.slice(0,3),a="last"!==t.slice(-4),s="of-type"===e;return 1===r&&0===i?function(t){return!!t.parentNode}:function(e,n,u){var l,c,f,h,d,p,m=o!==a?"nextSibling":"previousSibling",g=e.parentNode,v=s&&e.nodeName.toLowerCase(),y=!u&&!s,b=!1;if(g){if(o){for(;m;){for(h=e;h=h[m];)if(s?h.nodeName.toLowerCase()===v:1===h.nodeType)return!1;p=m="only"===t&&!p&&"nextSibling"}return!0}if(p=[a?g.firstChild:g.lastChild],a&&y){for(h=g,f=h[I]||(h[I]={}),c=f[h.uniqueID]||(f[h.uniqueID]={}),l=c[t]||[],d=l[0]===z&&l[1],b=d&&l[2],h=d&&g.childNodes[d];h=++d&&h&&h[m]||(b=d=0)||p.pop();)if(1===h.nodeType&&++b&&h===e){c[t]=[z,d,b];break}}else if(y&&(h=e,f=h[I]||(h[I]={}),c=f[h.uniqueID]||(f[h.uniqueID]={}),l=c[t]||[],d=l[0]===z&&l[1],b=d),b===!1)for(;(h=++d&&h&&h[m]||(b=d=0)||p.pop())&&((s?h.nodeName.toLowerCase()!==v:1!==h.nodeType)||!++b||(y&&(f=h[I]||(h[I]={}),c=f[h.uniqueID]||(f[h.uniqueID]={}),c[t]=[z,b]),h!==e)););return b-=i,b===r||b%r===0&&b/r>=0}}},PSEUDO:function(t,n){var i,o=x.pseudos[t]||x.setFilters[t.toLowerCase()]||e.error("unsupported pseudo: "+t);return o[I]?o(n):o.length>1?(i=[t,t,"",n],x.setFilters.hasOwnProperty(t.toLowerCase())?r(function(t,e){for(var r,i=o(t,n),a=i.length;a--;)r=tt(t,i[a]),t[r]=!(e[r]=i[a])}):function(t){return o(t,0,i)}):o}},pseudos:{not:r(function(t){var e=[],n=[],i=$(t.replace(st,"$1"));return i[I]?r(function(t,e,n,r){for(var o,a=i(t,null,r,[]),s=t.length;s--;)(o=a[s])&&(t[s]=!(e[s]=o))}):function(t,r,o){return e[0]=t,i(e,null,o,n),e[0]=null,!n.pop()}}),has:r(function(t){return function(n){return e(t,n).length>0}}),contains:r(function(t){return t=t.replace(_t,wt),function(e){return(e.textContent||e.innerText||k(e)).indexOf(t)>-1}}),lang:r(function(t){return ht.test(t||"")||e.error("unsupported lang: "+t),t=t.replace(_t,wt).toLowerCase(),function(e){var n;do if(n=O?e.lang:e.getAttribute("xml:lang")||e.getAttribute("lang"))return n=n.toLowerCase(),n===t||0===n.indexOf(t+"-");while((e=e.parentNode)&&1===e.nodeType);return!1}}),target:function(e){var n=t.location&&t.location.hash;return n&&n.slice(1)===e.id},root:function(t){return t===M},focus:function(t){return t===N.activeElement&&(!N.hasFocus||N.hasFocus())&&!!(t.type||t.href||~t.tabIndex)},enabled:function(t){return t.disabled===!1},disabled:function(t){return t.disabled===!0},checked:function(t){var e=t.nodeName.toLowerCase();return"input"===e&&!!t.checked||"option"===e&&!!t.selected},selected:function(t){return t.parentNode&&t.parentNode.selectedIndex,t.selected===!0},empty:function(t){for(t=t.firstChild;t;t=t.nextSibling)if(t.nodeType<6)return!1;return!0},parent:function(t){return!x.pseudos.empty(t)},header:function(t){return mt.test(t.nodeName)},input:function(t){return pt.test(t.nodeName)},button:function(t){var e=t.nodeName.toLowerCase();return"input"===e&&"button"===t.type||"button"===e},text:function(t){var e;return"input"===t.nodeName.toLowerCase()&&"text"===t.type&&(null==(e=t.getAttribute("type"))||"text"===e.toLowerCase())},first:l(function(){return[0]}),last:l(function(t,e){return[e-1]}),eq:l(function(t,e,n){return[n<0?n+e:n]}),even:l(function(t,e){for(var n=0;n<e;n+=2)t.push(n);return t}),odd:l(function(t,e){for(var n=1;n<e;n+=2)t.push(n);return t}),lt:l(function(t,e,n){for(var r=n<0?n+e:n;--r>=0;)t.push(r);return t}),gt:l(function(t,e,n){for(var r=n<0?n+e:n;++r<e;)t.push(r);return t})}},x.pseudos.nth=x.pseudos.eq;for(_ in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})x.pseudos[_]=s(_);for(_ in{submit:!0,reset:!0})x.pseudos[_]=u(_);return f.prototype=x.filters=x.pseudos,x.setFilters=new f,E=e.tokenize=function(t,n){var r,i,o,a,s,u,l,c=U[t+" "];if(c)return n?0:c.slice(0);for(s=t,u=[],l=x.preFilter;s;){r&&!(i=ut.exec(s))||(i&&(s=s.slice(i[0].length)||s),u.push(o=[])),r=!1,(i=lt.exec(s))&&(r=i.shift(),o.push({value:r,type:i[0].replace(st," ")}),s=s.slice(r.length));for(a in x.filter)!(i=dt[a].exec(s))||l[a]&&!(i=l[a](i))||(r=i.shift(),o.push({value:r,type:a,matches:i}),s=s.slice(r.length));if(!r)break}return n?s.length:s?e.error(t):U(t,u).slice(0)},$=e.compile=function(t,e){var n,r=[],i=[],o=V[t+" "];if(!o){for(e||(e=E(t)),n=e.length;n--;)o=y(e[n]),o[I]?r.push(o):i.push(o);o=V(t,b(i,r)),o.selector=t}return o},S=e.select=function(t,e,n,r){var i,o,a,s,u,l="function"==typeof t&&t,f=!r&&E(t=l.selector||t);if(n=n||[],1===f.length){if(o=f[0]=f[0].slice(0),o.length>2&&"ID"===(a=o[0]).type&&w.getById&&9===e.nodeType&&O&&x.relative[o[1].type]){if(e=(x.find.ID(a.matches[0].replace(_t,wt),e)||[])[0],!e)return n;l&&(e=e.parentNode),t=t.slice(o.shift().value.length)}for(i=dt.needsContext.test(t)?0:o.length;i--&&(a=o[i],!x.relative[s=a.type]);)if((u=x.find[s])&&(r=u(a.matches[0].replace(_t,wt),yt.test(o[0].type)&&c(e.parentNode)||e))){if(o.splice(i,1),t=r.length&&h(o),!t)return J.apply(n,r),n;break}}return(l||$(t,f))(r,e,!O,n,!e||yt.test(t)&&c(e.parentNode)||e),n},w.sortStable=I.split("").sort(W).join("")===I,w.detectDuplicates=!!D,F(),w.sortDetached=i(function(t){return 1&t.compareDocumentPosition(N.createElement("div"))}),i(function(t){return t.innerHTML="<a href='#'></a>","#"===t.firstChild.getAttribute("href")})||o("type|href|height|width",function(t,e,n){if(!n)return t.getAttribute(e,"type"===e.toLowerCase()?1:2)}),w.attributes&&i(function(t){return t.innerHTML="<input/>",t.firstChild.setAttribute("value",""),""===t.firstChild.getAttribute("value")})||o("value",function(t,e,n){if(!n&&"input"===t.nodeName.toLowerCase())return t.defaultValue}),i(function(t){return null==t.getAttribute("disabled")})||o(et,function(t,e,n){var r;if(!n)return t[e]===!0?e.toLowerCase():(r=t.getAttributeNode(e))&&r.specified?r.value:null}),e}(t);ot.find=ct,ot.expr=ct.selectors,ot.expr[":"]=ot.expr.pseudos,ot.uniqueSort=ot.unique=ct.uniqueSort,ot.text=ct.getText,ot.isXMLDoc=ct.isXML,ot.contains=ct.contains;var ft=function(t,e,n){for(var r=[],i=void 0!==n;(t=t[e])&&9!==t.nodeType;)if(1===t.nodeType){if(i&&ot(t).is(n))break;r.push(t)}return r},ht=function(t,e){for(var n=[];t;t=t.nextSibling)1===t.nodeType&&t!==e&&n.push(t);return n},dt=ot.expr.match.needsContext,pt=/^<([\w-]+)\s*\/?>(?:<\/\1>|)$/,mt=/^.[^:#\[\.,]*$/;ot.filter=function(t,e,n){var r=e[0];return n&&(t=":not("+t+")"),1===e.length&&1===r.nodeType?ot.find.matchesSelector(r,t)?[r]:[]:ot.find.matches(t,ot.grep(e,function(t){return 1===t.nodeType}))},ot.fn.extend({find:function(t){var e,n=this.length,r=[],i=this;if("string"!=typeof t)return this.pushStack(ot(t).filter(function(){for(e=0;e<n;e++)if(ot.contains(i[e],this))return!0}));for(e=0;e<n;e++)ot.find(t,i[e],r);return r=this.pushStack(n>1?ot.unique(r):r),r.selector=this.selector?this.selector+" "+t:t,r},filter:function(t){return this.pushStack(r(this,t||[],!1))},not:function(t){return this.pushStack(r(this,t||[],!0))},is:function(t){return!!r(this,"string"==typeof t&&dt.test(t)?ot(t):t||[],!1).length}});var gt,vt=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/,yt=ot.fn.init=function(t,e,n){var r,i;if(!t)return this;if(n=n||gt,"string"==typeof t){if(r="<"===t[0]&&">"===t[t.length-1]&&t.length>=3?[null,t,null]:vt.exec(t),!r||!r[1]&&e)return!e||e.jquery?(e||n).find(t):this.constructor(e).find(t);if(r[1]){if(e=e instanceof ot?e[0]:e,ot.merge(this,ot.parseHTML(r[1],e&&e.nodeType?e.ownerDocument||e:K,!0)),pt.test(r[1])&&ot.isPlainObject(e))for(r in e)ot.isFunction(this[r])?this[r](e[r]):this.attr(r,e[r]);return this}return i=K.getElementById(r[2]),i&&i.parentNode&&(this.length=1,this[0]=i),this.context=K,this.selector=t,this}return t.nodeType?(this.context=this[0]=t,this.length=1,this):ot.isFunction(t)?void 0!==n.ready?n.ready(t):t(ot):(void 0!==t.selector&&(this.selector=t.selector,this.context=t.context),ot.makeArray(t,this))};yt.prototype=ot.fn,gt=ot(K);var bt=/^(?:parents|prev(?:Until|All))/,_t={children:!0,contents:!0,next:!0,prev:!0};ot.fn.extend({has:function(t){var e=ot(t,this),n=e.length;return this.filter(function(){for(var t=0;t<n;t++)if(ot.contains(this,e[t]))return!0})},closest:function(t,e){for(var n,r=0,i=this.length,o=[],a=dt.test(t)||"string"!=typeof t?ot(t,e||this.context):0;r<i;r++)for(n=this[r];n&&n!==e;n=n.parentNode)if(n.nodeType<11&&(a?a.index(n)>-1:1===n.nodeType&&ot.find.matchesSelector(n,t))){o.push(n);break}return this.pushStack(o.length>1?ot.uniqueSort(o):o)},index:function(t){return t?"string"==typeof t?Q.call(ot(t),this[0]):Q.call(this,t.jquery?t[0]:t):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(t,e){return this.pushStack(ot.uniqueSort(ot.merge(this.get(),ot(t,e))))},addBack:function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}}),ot.each({parent:function(t){var e=t.parentNode;return e&&11!==e.nodeType?e:null},parents:function(t){return ft(t,"parentNode")},parentsUntil:function(t,e,n){return ft(t,"parentNode",n)},next:function(t){return i(t,"nextSibling")},prev:function(t){return i(t,"previousSibling")},nextAll:function(t){return ft(t,"nextSibling")},prevAll:function(t){return ft(t,"previousSibling")},nextUntil:function(t,e,n){return ft(t,"nextSibling",n)},prevUntil:function(t,e,n){return ft(t,"previousSibling",n)},siblings:function(t){return ht((t.parentNode||{}).firstChild,t)},children:function(t){return ht(t.firstChild)},contents:function(t){return t.contentDocument||ot.merge([],t.childNodes)}},function(t,e){ot.fn[t]=function(n,r){var i=ot.map(this,e,n);return"Until"!==t.slice(-5)&&(r=n),r&&"string"==typeof r&&(i=ot.filter(r,i)),this.length>1&&(_t[t]||ot.uniqueSort(i),bt.test(t)&&i.reverse()),this.pushStack(i)}});var wt=/\S+/g;ot.Callbacks=function(t){t="string"==typeof t?o(t):ot.extend({},t);var e,n,r,i,a=[],s=[],u=-1,l=function(){for(i=t.once,r=e=!0;s.length;u=-1)for(n=s.shift();++u<a.length;)a[u].apply(n[0],n[1])===!1&&t.stopOnFalse&&(u=a.length,n=!1);t.memory||(n=!1),e=!1,i&&(a=n?[]:"")},c={add:function(){return a&&(n&&!e&&(u=a.length-1,s.push(n)),function r(e){ot.each(e,function(e,n){ot.isFunction(n)?t.unique&&c.has(n)||a.push(n):n&&n.length&&"string"!==ot.type(n)&&r(n)})}(arguments),n&&!e&&l()),this},remove:function(){return ot.each(arguments,function(t,e){for(var n;(n=ot.inArray(e,a,n))>-1;)a.splice(n,1),n<=u&&u--}),this},has:function(t){return t?ot.inArray(t,a)>-1:a.length>0},empty:function(){return a&&(a=[]),this},disable:function(){return i=s=[],a=n="",this},disabled:function(){return!a},lock:function(){return i=s=[],n||(a=n=""),this},locked:function(){return!!i},fireWith:function(t,n){return i||(n=n||[],n=[t,n.slice?n.slice():n],s.push(n),e||l()),this},fire:function(){return c.fireWith(this,arguments),this},fired:function(){return!!r}};return c},ot.extend({Deferred:function(t){var e=[["resolve","done",ot.Callbacks("once memory"),"resolved"],["reject","fail",ot.Callbacks("once memory"),"rejected"],["notify","progress",ot.Callbacks("memory")]],n="pending",r={state:function(){return n},always:function(){return i.done(arguments).fail(arguments),this},then:function(){var t=arguments;return ot.Deferred(function(n){ot.each(e,function(e,o){var a=ot.isFunction(t[e])&&t[e];i[o[1]](function(){var t=a&&a.apply(this,arguments);t&&ot.isFunction(t.promise)?t.promise().progress(n.notify).done(n.resolve).fail(n.reject):n[o[0]+"With"](this===r?n.promise():this,a?[t]:arguments)})}),t=null}).promise()},promise:function(t){return null!=t?ot.extend(t,r):r}},i={};return r.pipe=r.then,ot.each(e,function(t,o){var a=o[2],s=o[3];r[o[1]]=a.add,s&&a.add(function(){n=s},e[1^t][2].disable,e[2][2].lock),i[o[0]]=function(){return i[o[0]+"With"](this===i?r:this,arguments),this},i[o[0]+"With"]=a.fireWith}),r.promise(i),t&&t.call(i,i),i},when:function(t){var e,n,r,i=0,o=Z.call(arguments),a=o.length,s=1!==a||t&&ot.isFunction(t.promise)?a:0,u=1===s?t:ot.Deferred(),l=function(t,n,r){return function(i){n[t]=this,r[t]=arguments.length>1?Z.call(arguments):i,r===e?u.notifyWith(n,r):--s||u.resolveWith(n,r)}};if(a>1)for(e=new Array(a),n=new Array(a),r=new Array(a);i<a;i++)o[i]&&ot.isFunction(o[i].promise)?o[i].promise().progress(l(i,n,e)).done(l(i,r,o)).fail(u.reject):--s;return s||u.resolveWith(r,o),u.promise()}});var xt;ot.fn.ready=function(t){return ot.ready.promise().done(t),this},ot.extend({isReady:!1,readyWait:1,holdReady:function(t){t?ot.readyWait++:ot.ready(!0)},ready:function(t){(t===!0?--ot.readyWait:ot.isReady)||(ot.isReady=!0,t!==!0&&--ot.readyWait>0||(xt.resolveWith(K,[ot]),ot.fn.triggerHandler&&(ot(K).triggerHandler("ready"),ot(K).off("ready"))))}}),ot.ready.promise=function(e){return xt||(xt=ot.Deferred(),"complete"===K.readyState||"loading"!==K.readyState&&!K.documentElement.doScroll?t.setTimeout(ot.ready):(K.addEventListener("DOMContentLoaded",a),t.addEventListener("load",a))),xt.promise(e)},ot.ready.promise();var kt=function(t,e,n,r,i,o,a){var s=0,u=t.length,l=null==n;if("object"===ot.type(n)){i=!0;for(s in n)kt(t,e,s,n[s],!0,o,a)}else if(void 0!==r&&(i=!0,ot.isFunction(r)||(a=!0),l&&(a?(e.call(t,r),e=null):(l=e,e=function(t,e,n){return l.call(ot(t),n)})),e))for(;s<u;s++)e(t[s],n,a?r:r.call(t[s],s,e(t[s],n)));return i?t:l?e.call(t):u?e(t[0],n):o},Ct=function(t){return 1===t.nodeType||9===t.nodeType||!+t.nodeType};s.uid=1,s.prototype={register:function(t,e){var n=e||{};return t.nodeType?t[this.expando]=n:Object.defineProperty(t,this.expando,{value:n,writable:!0,configurable:!0}),t[this.expando]},cache:function(t){if(!Ct(t))return{};var e=t[this.expando];return e||(e={},Ct(t)&&(t.nodeType?t[this.expando]=e:Object.defineProperty(t,this.expando,{value:e,configurable:!0}))),e},set:function(t,e,n){var r,i=this.cache(t);if("string"==typeof e)i[e]=n;else for(r in e)i[r]=e[r];return i},get:function(t,e){return void 0===e?this.cache(t):t[this.expando]&&t[this.expando][e]},access:function(t,e,n){var r;return void 0===e||e&&"string"==typeof e&&void 0===n?(r=this.get(t,e),void 0!==r?r:this.get(t,ot.camelCase(e))):(this.set(t,e,n),void 0!==n?n:e)},remove:function(t,e){var n,r,i,o=t[this.expando];if(void 0!==o){if(void 0===e)this.register(t);else{ot.isArray(e)?r=e.concat(e.map(ot.camelCase)):(i=ot.camelCase(e),e in o?r=[e,i]:(r=i,r=r in o?[r]:r.match(wt)||[])),n=r.length;for(;n--;)delete o[r[n]]}(void 0===e||ot.isEmptyObject(o))&&(t.nodeType?t[this.expando]=void 0:delete t[this.expando])}},hasData:function(t){var e=t[this.expando];return void 0!==e&&!ot.isEmptyObject(e)}};var Et=new s,$t=new s,St=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,At=/[A-Z]/g;ot.extend({hasData:function(t){return $t.hasData(t)||Et.hasData(t)},data:function(t,e,n){return $t.access(t,e,n)},removeData:function(t,e){$t.remove(t,e)},_data:function(t,e,n){return Et.access(t,e,n)},_removeData:function(t,e){Et.remove(t,e)}}),ot.fn.extend({data:function(t,e){var n,r,i,o=this[0],a=o&&o.attributes;if(void 0===t){if(this.length&&(i=$t.get(o),1===o.nodeType&&!Et.get(o,"hasDataAttrs"))){for(n=a.length;n--;)a[n]&&(r=a[n].name,0===r.indexOf("data-")&&(r=ot.camelCase(r.slice(5)),u(o,r,i[r])));Et.set(o,"hasDataAttrs",!0)}return i}return"object"==typeof t?this.each(function(){$t.set(this,t)}):kt(this,function(e){var n,r;if(o&&void 0===e){if(n=$t.get(o,t)||$t.get(o,t.replace(At,"-$&").toLowerCase()),void 0!==n)return n;if(r=ot.camelCase(t),n=$t.get(o,r),void 0!==n)return n;if(n=u(o,r,void 0),void 0!==n)return n}else r=ot.camelCase(t),this.each(function(){var n=$t.get(this,r);$t.set(this,r,e),t.indexOf("-")>-1&&void 0!==n&&$t.set(this,t,e)})},null,e,arguments.length>1,null,!0)},removeData:function(t){return this.each(function(){$t.remove(this,t)})}}),ot.extend({queue:function(t,e,n){var r;if(t)return e=(e||"fx")+"queue",r=Et.get(t,e),n&&(!r||ot.isArray(n)?r=Et.access(t,e,ot.makeArray(n)):r.push(n)),r||[]},dequeue:function(t,e){e=e||"fx";var n=ot.queue(t,e),r=n.length,i=n.shift(),o=ot._queueHooks(t,e),a=function(){ot.dequeue(t,e)};"inprogress"===i&&(i=n.shift(),r--),i&&("fx"===e&&n.unshift("inprogress"),delete o.stop,i.call(t,a,o)),!r&&o&&o.empty.fire()},_queueHooks:function(t,e){var n=e+"queueHooks";return Et.get(t,n)||Et.access(t,n,{empty:ot.Callbacks("once memory").add(function(){Et.remove(t,[e+"queue",n])})})}}),ot.fn.extend({queue:function(t,e){var n=2;return"string"!=typeof t&&(e=t,t="fx",n--),arguments.length<n?ot.queue(this[0],t):void 0===e?this:this.each(function(){var n=ot.queue(this,t,e);ot._queueHooks(this,t),"fx"===t&&"inprogress"!==n[0]&&ot.dequeue(this,t)})},dequeue:function(t){return this.each(function(){ot.dequeue(this,t)})},clearQueue:function(t){return this.queue(t||"fx",[])},promise:function(t,e){var n,r=1,i=ot.Deferred(),o=this,a=this.length,s=function(){--r||i.resolveWith(o,[o])};for("string"!=typeof t&&(e=t,t=void 0),t=t||"fx";a--;)n=Et.get(o[a],t+"queueHooks"),n&&n.empty&&(r++,n.empty.add(s));return s(),i.promise(e)}});var Tt=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,Dt=new RegExp("^(?:([+-])=|)("+Tt+")([a-z%]*)$","i"),Ft=["Top","Right","Bottom","Left"],Nt=function(t,e){return t=e||t,"none"===ot.css(t,"display")||!ot.contains(t.ownerDocument,t)},Mt=/^(?:checkbox|radio)$/i,Ot=/<([\w:-]+)/,jt=/^$|\/(?:java|ecma)script/i,Pt={option:[1,"<select multiple='multiple'>","</select>"],thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};Pt.optgroup=Pt.option,Pt.tbody=Pt.tfoot=Pt.colgroup=Pt.caption=Pt.thead,Pt.th=Pt.td;var Lt=/<|&#?\w+;/;!function(){var t=K.createDocumentFragment(),e=t.appendChild(K.createElement("div")),n=K.createElement("input");n.setAttribute("type","radio"),n.setAttribute("checked","checked"),n.setAttribute("name","t"),e.appendChild(n),rt.checkClone=e.cloneNode(!0).cloneNode(!0).lastChild.checked,e.innerHTML="<textarea>x</textarea>",rt.noCloneChecked=!!e.cloneNode(!0).lastChild.defaultValue}();var Rt=/^key/,It=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,qt=/^([^.]*)(?:\.(.+)|)/;ot.event={global:{},add:function(t,e,n,r,i){var o,a,s,u,l,c,f,h,d,p,m,g=Et.get(t);if(g)for(n.handler&&(o=n,n=o.handler,i=o.selector),n.guid||(n.guid=ot.guid++),(u=g.events)||(u=g.events={}),
|
||
(a=g.handle)||(a=g.handle=function(e){return"undefined"!=typeof ot&&ot.event.triggered!==e.type?ot.event.dispatch.apply(t,arguments):void 0}),e=(e||"").match(wt)||[""],l=e.length;l--;)s=qt.exec(e[l])||[],d=m=s[1],p=(s[2]||"").split(".").sort(),d&&(f=ot.event.special[d]||{},d=(i?f.delegateType:f.bindType)||d,f=ot.event.special[d]||{},c=ot.extend({type:d,origType:m,data:r,handler:n,guid:n.guid,selector:i,needsContext:i&&ot.expr.match.needsContext.test(i),namespace:p.join(".")},o),(h=u[d])||(h=u[d]=[],h.delegateCount=0,f.setup&&f.setup.call(t,r,p,a)!==!1||t.addEventListener&&t.addEventListener(d,a)),f.add&&(f.add.call(t,c),c.handler.guid||(c.handler.guid=n.guid)),i?h.splice(h.delegateCount++,0,c):h.push(c),ot.event.global[d]=!0)},remove:function(t,e,n,r,i){var o,a,s,u,l,c,f,h,d,p,m,g=Et.hasData(t)&&Et.get(t);if(g&&(u=g.events)){for(e=(e||"").match(wt)||[""],l=e.length;l--;)if(s=qt.exec(e[l])||[],d=m=s[1],p=(s[2]||"").split(".").sort(),d){for(f=ot.event.special[d]||{},d=(r?f.delegateType:f.bindType)||d,h=u[d]||[],s=s[2]&&new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"),a=o=h.length;o--;)c=h[o],!i&&m!==c.origType||n&&n.guid!==c.guid||s&&!s.test(c.namespace)||r&&r!==c.selector&&("**"!==r||!c.selector)||(h.splice(o,1),c.selector&&h.delegateCount--,f.remove&&f.remove.call(t,c));a&&!h.length&&(f.teardown&&f.teardown.call(t,p,g.handle)!==!1||ot.removeEvent(t,d,g.handle),delete u[d])}else for(d in u)ot.event.remove(t,d+e[l],n,r,!0);ot.isEmptyObject(u)&&Et.remove(t,"handle events")}},dispatch:function(t){t=ot.event.fix(t);var e,n,r,i,o,a=[],s=Z.call(arguments),u=(Et.get(this,"events")||{})[t.type]||[],l=ot.event.special[t.type]||{};if(s[0]=t,t.delegateTarget=this,!l.preDispatch||l.preDispatch.call(this,t)!==!1){for(a=ot.event.handlers.call(this,t,u),e=0;(i=a[e++])&&!t.isPropagationStopped();)for(t.currentTarget=i.elem,n=0;(o=i.handlers[n++])&&!t.isImmediatePropagationStopped();)t.rnamespace&&!t.rnamespace.test(o.namespace)||(t.handleObj=o,t.data=o.data,r=((ot.event.special[o.origType]||{}).handle||o.handler).apply(i.elem,s),void 0!==r&&(t.result=r)===!1&&(t.preventDefault(),t.stopPropagation()));return l.postDispatch&&l.postDispatch.call(this,t),t.result}},handlers:function(t,e){var n,r,i,o,a=[],s=e.delegateCount,u=t.target;if(s&&u.nodeType&&("click"!==t.type||isNaN(t.button)||t.button<1))for(;u!==this;u=u.parentNode||this)if(1===u.nodeType&&(u.disabled!==!0||"click"!==t.type)){for(r=[],n=0;n<s;n++)o=e[n],i=o.selector+" ",void 0===r[i]&&(r[i]=o.needsContext?ot(i,this).index(u)>-1:ot.find(i,this,null,[u]).length),r[i]&&r.push(o);r.length&&a.push({elem:u,handlers:r})}return s<e.length&&a.push({elem:this,handlers:e.slice(s)}),a},props:"altKey bubbles cancelable ctrlKey currentTarget detail eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{},keyHooks:{props:"char charCode key keyCode".split(" "),filter:function(t,e){return null==t.which&&(t.which=null!=e.charCode?e.charCode:e.keyCode),t}},mouseHooks:{props:"button buttons clientX clientY offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(t,e){var n,r,i,o=e.button;return null==t.pageX&&null!=e.clientX&&(n=t.target.ownerDocument||K,r=n.documentElement,i=n.body,t.pageX=e.clientX+(r&&r.scrollLeft||i&&i.scrollLeft||0)-(r&&r.clientLeft||i&&i.clientLeft||0),t.pageY=e.clientY+(r&&r.scrollTop||i&&i.scrollTop||0)-(r&&r.clientTop||i&&i.clientTop||0)),t.which||void 0===o||(t.which=1&o?1:2&o?3:4&o?2:0),t}},fix:function(t){if(t[ot.expando])return t;var e,n,r,i=t.type,o=t,a=this.fixHooks[i];for(a||(this.fixHooks[i]=a=It.test(i)?this.mouseHooks:Rt.test(i)?this.keyHooks:{}),r=a.props?this.props.concat(a.props):this.props,t=new ot.Event(o),e=r.length;e--;)n=r[e],t[n]=o[n];return t.target||(t.target=K),3===t.target.nodeType&&(t.target=t.target.parentNode),a.filter?a.filter(t,o):t},special:{load:{noBubble:!0},focus:{trigger:function(){if(this!==m()&&this.focus)return this.focus(),!1},delegateType:"focusin"},blur:{trigger:function(){if(this===m()&&this.blur)return this.blur(),!1},delegateType:"focusout"},click:{trigger:function(){if("checkbox"===this.type&&this.click&&ot.nodeName(this,"input"))return this.click(),!1},_default:function(t){return ot.nodeName(t.target,"a")}},beforeunload:{postDispatch:function(t){void 0!==t.result&&t.originalEvent&&(t.originalEvent.returnValue=t.result)}}}},ot.removeEvent=function(t,e,n){t.removeEventListener&&t.removeEventListener(e,n)},ot.Event=function(t,e){return this instanceof ot.Event?(t&&t.type?(this.originalEvent=t,this.type=t.type,this.isDefaultPrevented=t.defaultPrevented||void 0===t.defaultPrevented&&t.returnValue===!1?d:p):this.type=t,e&&ot.extend(this,e),this.timeStamp=t&&t.timeStamp||ot.now(),void(this[ot.expando]=!0)):new ot.Event(t,e)},ot.Event.prototype={constructor:ot.Event,isDefaultPrevented:p,isPropagationStopped:p,isImmediatePropagationStopped:p,isSimulated:!1,preventDefault:function(){var t=this.originalEvent;this.isDefaultPrevented=d,t&&!this.isSimulated&&t.preventDefault()},stopPropagation:function(){var t=this.originalEvent;this.isPropagationStopped=d,t&&!this.isSimulated&&t.stopPropagation()},stopImmediatePropagation:function(){var t=this.originalEvent;this.isImmediatePropagationStopped=d,t&&!this.isSimulated&&t.stopImmediatePropagation(),this.stopPropagation()}},ot.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(t,e){ot.event.special[t]={delegateType:e,bindType:e,handle:function(t){var n,r=this,i=t.relatedTarget,o=t.handleObj;return i&&(i===r||ot.contains(r,i))||(t.type=o.origType,n=o.handler.apply(this,arguments),t.type=e),n}}}),ot.fn.extend({on:function(t,e,n,r){return g(this,t,e,n,r)},one:function(t,e,n,r){return g(this,t,e,n,r,1)},off:function(t,e,n){var r,i;if(t&&t.preventDefault&&t.handleObj)return r=t.handleObj,ot(t.delegateTarget).off(r.namespace?r.origType+"."+r.namespace:r.origType,r.selector,r.handler),this;if("object"==typeof t){for(i in t)this.off(i,e,t[i]);return this}return e!==!1&&"function"!=typeof e||(n=e,e=void 0),n===!1&&(n=p),this.each(function(){ot.event.remove(this,t,n,e)})}});var zt=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:-]+)[^>]*)\/>/gi,Ht=/<script|<style|<link/i,Bt=/checked\s*(?:[^=]|=\s*.checked.)/i,Ut=/^true\/(.*)/,Vt=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;ot.extend({htmlPrefilter:function(t){return t.replace(zt,"<$1></$2>")},clone:function(t,e,n){var r,i,o,a,s=t.cloneNode(!0),u=ot.contains(t.ownerDocument,t);if(!(rt.noCloneChecked||1!==t.nodeType&&11!==t.nodeType||ot.isXMLDoc(t)))for(a=c(s),o=c(t),r=0,i=o.length;r<i;r++)w(o[r],a[r]);if(e)if(n)for(o=o||c(t),a=a||c(s),r=0,i=o.length;r<i;r++)_(o[r],a[r]);else _(t,s);return a=c(s,"script"),a.length>0&&f(a,!u&&c(t,"script")),s},cleanData:function(t){for(var e,n,r,i=ot.event.special,o=0;void 0!==(n=t[o]);o++)if(Ct(n)){if(e=n[Et.expando]){if(e.events)for(r in e.events)i[r]?ot.event.remove(n,r):ot.removeEvent(n,r,e.handle);n[Et.expando]=void 0}n[$t.expando]&&(n[$t.expando]=void 0)}}}),ot.fn.extend({domManip:x,detach:function(t){return k(this,t,!0)},remove:function(t){return k(this,t)},text:function(t){return kt(this,function(t){return void 0===t?ot.text(this):this.empty().each(function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=t)})},null,t,arguments.length)},append:function(){return x(this,arguments,function(t){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var e=v(this,t);e.appendChild(t)}})},prepend:function(){return x(this,arguments,function(t){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var e=v(this,t);e.insertBefore(t,e.firstChild)}})},before:function(){return x(this,arguments,function(t){this.parentNode&&this.parentNode.insertBefore(t,this)})},after:function(){return x(this,arguments,function(t){this.parentNode&&this.parentNode.insertBefore(t,this.nextSibling)})},empty:function(){for(var t,e=0;null!=(t=this[e]);e++)1===t.nodeType&&(ot.cleanData(c(t,!1)),t.textContent="");return this},clone:function(t,e){return t=null!=t&&t,e=null==e?t:e,this.map(function(){return ot.clone(this,t,e)})},html:function(t){return kt(this,function(t){var e=this[0]||{},n=0,r=this.length;if(void 0===t&&1===e.nodeType)return e.innerHTML;if("string"==typeof t&&!Ht.test(t)&&!Pt[(Ot.exec(t)||["",""])[1].toLowerCase()]){t=ot.htmlPrefilter(t);try{for(;n<r;n++)e=this[n]||{},1===e.nodeType&&(ot.cleanData(c(e,!1)),e.innerHTML=t);e=0}catch(i){}}e&&this.empty().append(t)},null,t,arguments.length)},replaceWith:function(){var t=[];return x(this,arguments,function(e){var n=this.parentNode;ot.inArray(this,t)<0&&(ot.cleanData(c(this)),n&&n.replaceChild(e,this))},t)}}),ot.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(t,e){ot.fn[t]=function(t){for(var n,r=[],i=ot(t),o=i.length-1,a=0;a<=o;a++)n=a===o?this:this.clone(!0),ot(i[a])[e](n),J.apply(r,n.get());return this.pushStack(r)}});var Wt,Yt={HTML:"block",BODY:"block"},Gt=/^margin/,Kt=new RegExp("^("+Tt+")(?!px)[a-z%]+$","i"),Zt=function(e){var n=e.ownerDocument.defaultView;return n&&n.opener||(n=t),n.getComputedStyle(e)},Xt=function(t,e,n,r){var i,o,a={};for(o in e)a[o]=t.style[o],t.style[o]=e[o];i=n.apply(t,r||[]);for(o in e)t.style[o]=a[o];return i},Jt=K.documentElement;!function(){function e(){s.style.cssText="-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;position:relative;display:block;margin:auto;border:1px;padding:1px;top:1%;width:50%",s.innerHTML="",Jt.appendChild(a);var e=t.getComputedStyle(s);n="1%"!==e.top,o="2px"===e.marginLeft,r="4px"===e.width,s.style.marginRight="50%",i="4px"===e.marginRight,Jt.removeChild(a)}var n,r,i,o,a=K.createElement("div"),s=K.createElement("div");s.style&&(s.style.backgroundClip="content-box",s.cloneNode(!0).style.backgroundClip="",rt.clearCloneStyle="content-box"===s.style.backgroundClip,a.style.cssText="border:0;width:8px;height:0;top:0;left:-9999px;padding:0;margin-top:1px;position:absolute",a.appendChild(s),ot.extend(rt,{pixelPosition:function(){return e(),n},boxSizingReliable:function(){return null==r&&e(),r},pixelMarginRight:function(){return null==r&&e(),i},reliableMarginLeft:function(){return null==r&&e(),o},reliableMarginRight:function(){var e,n=s.appendChild(K.createElement("div"));return n.style.cssText=s.style.cssText="-webkit-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:0",n.style.marginRight=n.style.width="0",s.style.width="1px",Jt.appendChild(a),e=!parseFloat(t.getComputedStyle(n).marginRight),Jt.removeChild(a),s.removeChild(n),e}}))}();var Qt=/^(none|table(?!-c[ea]).+)/,te={position:"absolute",visibility:"hidden",display:"block"},ee={letterSpacing:"0",fontWeight:"400"},ne=["Webkit","O","Moz","ms"],re=K.createElement("div").style;ot.extend({cssHooks:{opacity:{get:function(t,e){if(e){var n=$(t,"opacity");return""===n?"1":n}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{"float":"cssFloat"},style:function(t,e,n,r){if(t&&3!==t.nodeType&&8!==t.nodeType&&t.style){var i,o,a,s=ot.camelCase(e),u=t.style;return e=ot.cssProps[s]||(ot.cssProps[s]=A(s)||s),a=ot.cssHooks[e]||ot.cssHooks[s],void 0===n?a&&"get"in a&&void 0!==(i=a.get(t,!1,r))?i:u[e]:(o=typeof n,"string"===o&&(i=Dt.exec(n))&&i[1]&&(n=l(t,e,i),o="number"),null!=n&&n===n&&("number"===o&&(n+=i&&i[3]||(ot.cssNumber[s]?"":"px")),rt.clearCloneStyle||""!==n||0!==e.indexOf("background")||(u[e]="inherit"),a&&"set"in a&&void 0===(n=a.set(t,n,r))||(u[e]=n)),void 0)}},css:function(t,e,n,r){var i,o,a,s=ot.camelCase(e);return e=ot.cssProps[s]||(ot.cssProps[s]=A(s)||s),a=ot.cssHooks[e]||ot.cssHooks[s],a&&"get"in a&&(i=a.get(t,!0,n)),void 0===i&&(i=$(t,e,r)),"normal"===i&&e in ee&&(i=ee[e]),""===n||n?(o=parseFloat(i),n===!0||isFinite(o)?o||0:i):i}}),ot.each(["height","width"],function(t,e){ot.cssHooks[e]={get:function(t,n,r){if(n)return Qt.test(ot.css(t,"display"))&&0===t.offsetWidth?Xt(t,te,function(){return F(t,e,r)}):F(t,e,r)},set:function(t,n,r){var i,o=r&&Zt(t),a=r&&D(t,e,r,"border-box"===ot.css(t,"boxSizing",!1,o),o);return a&&(i=Dt.exec(n))&&"px"!==(i[3]||"px")&&(t.style[e]=n,n=ot.css(t,e)),T(t,n,a)}}}),ot.cssHooks.marginLeft=S(rt.reliableMarginLeft,function(t,e){if(e)return(parseFloat($(t,"marginLeft"))||t.getBoundingClientRect().left-Xt(t,{marginLeft:0},function(){return t.getBoundingClientRect().left}))+"px"}),ot.cssHooks.marginRight=S(rt.reliableMarginRight,function(t,e){if(e)return Xt(t,{display:"inline-block"},$,[t,"marginRight"])}),ot.each({margin:"",padding:"",border:"Width"},function(t,e){ot.cssHooks[t+e]={expand:function(n){for(var r=0,i={},o="string"==typeof n?n.split(" "):[n];r<4;r++)i[t+Ft[r]+e]=o[r]||o[r-2]||o[0];return i}},Gt.test(t)||(ot.cssHooks[t+e].set=T)}),ot.fn.extend({css:function(t,e){return kt(this,function(t,e,n){var r,i,o={},a=0;if(ot.isArray(e)){for(r=Zt(t),i=e.length;a<i;a++)o[e[a]]=ot.css(t,e[a],!1,r);return o}return void 0!==n?ot.style(t,e,n):ot.css(t,e)},t,e,arguments.length>1)},show:function(){return N(this,!0)},hide:function(){return N(this)},toggle:function(t){return"boolean"==typeof t?t?this.show():this.hide():this.each(function(){Nt(this)?ot(this).show():ot(this).hide()})}}),ot.Tween=M,M.prototype={constructor:M,init:function(t,e,n,r,i,o){this.elem=t,this.prop=n,this.easing=i||ot.easing._default,this.options=e,this.start=this.now=this.cur(),this.end=r,this.unit=o||(ot.cssNumber[n]?"":"px")},cur:function(){var t=M.propHooks[this.prop];return t&&t.get?t.get(this):M.propHooks._default.get(this)},run:function(t){var e,n=M.propHooks[this.prop];return this.options.duration?this.pos=e=ot.easing[this.easing](t,this.options.duration*t,0,1,this.options.duration):this.pos=e=t,this.now=(this.end-this.start)*e+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):M.propHooks._default.set(this),this}},M.prototype.init.prototype=M.prototype,M.propHooks={_default:{get:function(t){var e;return 1!==t.elem.nodeType||null!=t.elem[t.prop]&&null==t.elem.style[t.prop]?t.elem[t.prop]:(e=ot.css(t.elem,t.prop,""),e&&"auto"!==e?e:0)},set:function(t){ot.fx.step[t.prop]?ot.fx.step[t.prop](t):1!==t.elem.nodeType||null==t.elem.style[ot.cssProps[t.prop]]&&!ot.cssHooks[t.prop]?t.elem[t.prop]=t.now:ot.style(t.elem,t.prop,t.now+t.unit)}}},M.propHooks.scrollTop=M.propHooks.scrollLeft={set:function(t){t.elem.nodeType&&t.elem.parentNode&&(t.elem[t.prop]=t.now)}},ot.easing={linear:function(t){return t},swing:function(t){return.5-Math.cos(t*Math.PI)/2},_default:"swing"},ot.fx=M.prototype.init,ot.fx.step={};var ie,oe,ae=/^(?:toggle|show|hide)$/,se=/queueHooks$/;ot.Animation=ot.extend(I,{tweeners:{"*":[function(t,e){var n=this.createTween(t,e);return l(n.elem,t,Dt.exec(e),n),n}]},tweener:function(t,e){ot.isFunction(t)?(e=t,t=["*"]):t=t.match(wt);for(var n,r=0,i=t.length;r<i;r++)n=t[r],I.tweeners[n]=I.tweeners[n]||[],I.tweeners[n].unshift(e)},prefilters:[L],prefilter:function(t,e){e?I.prefilters.unshift(t):I.prefilters.push(t)}}),ot.speed=function(t,e,n){var r=t&&"object"==typeof t?ot.extend({},t):{complete:n||!n&&e||ot.isFunction(t)&&t,duration:t,easing:n&&e||e&&!ot.isFunction(e)&&e};return r.duration=ot.fx.off?0:"number"==typeof r.duration?r.duration:r.duration in ot.fx.speeds?ot.fx.speeds[r.duration]:ot.fx.speeds._default,null!=r.queue&&r.queue!==!0||(r.queue="fx"),r.old=r.complete,r.complete=function(){ot.isFunction(r.old)&&r.old.call(this),r.queue&&ot.dequeue(this,r.queue)},r},ot.fn.extend({fadeTo:function(t,e,n,r){return this.filter(Nt).css("opacity",0).show().end().animate({opacity:e},t,n,r)},animate:function(t,e,n,r){var i=ot.isEmptyObject(t),o=ot.speed(e,n,r),a=function(){var e=I(this,ot.extend({},t),o);(i||Et.get(this,"finish"))&&e.stop(!0)};return a.finish=a,i||o.queue===!1?this.each(a):this.queue(o.queue,a)},stop:function(t,e,n){var r=function(t){var e=t.stop;delete t.stop,e(n)};return"string"!=typeof t&&(n=e,e=t,t=void 0),e&&t!==!1&&this.queue(t||"fx",[]),this.each(function(){var e=!0,i=null!=t&&t+"queueHooks",o=ot.timers,a=Et.get(this);if(i)a[i]&&a[i].stop&&r(a[i]);else for(i in a)a[i]&&a[i].stop&&se.test(i)&&r(a[i]);for(i=o.length;i--;)o[i].elem!==this||null!=t&&o[i].queue!==t||(o[i].anim.stop(n),e=!1,o.splice(i,1));!e&&n||ot.dequeue(this,t)})},finish:function(t){return t!==!1&&(t=t||"fx"),this.each(function(){var e,n=Et.get(this),r=n[t+"queue"],i=n[t+"queueHooks"],o=ot.timers,a=r?r.length:0;for(n.finish=!0,ot.queue(this,t,[]),i&&i.stop&&i.stop.call(this,!0),e=o.length;e--;)o[e].elem===this&&o[e].queue===t&&(o[e].anim.stop(!0),o.splice(e,1));for(e=0;e<a;e++)r[e]&&r[e].finish&&r[e].finish.call(this);delete n.finish})}}),ot.each(["toggle","show","hide"],function(t,e){var n=ot.fn[e];ot.fn[e]=function(t,r,i){return null==t||"boolean"==typeof t?n.apply(this,arguments):this.animate(j(e,!0),t,r,i)}}),ot.each({slideDown:j("show"),slideUp:j("hide"),slideToggle:j("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(t,e){ot.fn[t]=function(t,n,r){return this.animate(e,t,n,r)}}),ot.timers=[],ot.fx.tick=function(){var t,e=0,n=ot.timers;for(ie=ot.now();e<n.length;e++)t=n[e],t()||n[e]!==t||n.splice(e--,1);n.length||ot.fx.stop(),ie=void 0},ot.fx.timer=function(t){ot.timers.push(t),t()?ot.fx.start():ot.timers.pop()},ot.fx.interval=13,ot.fx.start=function(){oe||(oe=t.setInterval(ot.fx.tick,ot.fx.interval))},ot.fx.stop=function(){t.clearInterval(oe),oe=null},ot.fx.speeds={slow:600,fast:200,_default:400},ot.fn.delay=function(e,n){return e=ot.fx?ot.fx.speeds[e]||e:e,n=n||"fx",this.queue(n,function(n,r){var i=t.setTimeout(n,e);r.stop=function(){t.clearTimeout(i)}})},function(){var t=K.createElement("input"),e=K.createElement("select"),n=e.appendChild(K.createElement("option"));t.type="checkbox",rt.checkOn=""!==t.value,rt.optSelected=n.selected,e.disabled=!0,rt.optDisabled=!n.disabled,t=K.createElement("input"),t.value="t",t.type="radio",rt.radioValue="t"===t.value}();var ue,le=ot.expr.attrHandle;ot.fn.extend({attr:function(t,e){return kt(this,ot.attr,t,e,arguments.length>1)},removeAttr:function(t){return this.each(function(){ot.removeAttr(this,t)})}}),ot.extend({attr:function(t,e,n){var r,i,o=t.nodeType;if(3!==o&&8!==o&&2!==o)return"undefined"==typeof t.getAttribute?ot.prop(t,e,n):(1===o&&ot.isXMLDoc(t)||(e=e.toLowerCase(),i=ot.attrHooks[e]||(ot.expr.match.bool.test(e)?ue:void 0)),void 0!==n?null===n?void ot.removeAttr(t,e):i&&"set"in i&&void 0!==(r=i.set(t,n,e))?r:(t.setAttribute(e,n+""),n):i&&"get"in i&&null!==(r=i.get(t,e))?r:(r=ot.find.attr(t,e),null==r?void 0:r))},attrHooks:{type:{set:function(t,e){if(!rt.radioValue&&"radio"===e&&ot.nodeName(t,"input")){var n=t.value;return t.setAttribute("type",e),n&&(t.value=n),e}}}},removeAttr:function(t,e){var n,r,i=0,o=e&&e.match(wt);if(o&&1===t.nodeType)for(;n=o[i++];)r=ot.propFix[n]||n,ot.expr.match.bool.test(n)&&(t[r]=!1),t.removeAttribute(n)}}),ue={set:function(t,e,n){return e===!1?ot.removeAttr(t,n):t.setAttribute(n,n),n}},ot.each(ot.expr.match.bool.source.match(/\w+/g),function(t,e){var n=le[e]||ot.find.attr;le[e]=function(t,e,r){var i,o;return r||(o=le[e],le[e]=i,i=null!=n(t,e,r)?e.toLowerCase():null,le[e]=o),i}});var ce=/^(?:input|select|textarea|button)$/i,fe=/^(?:a|area)$/i;ot.fn.extend({prop:function(t,e){return kt(this,ot.prop,t,e,arguments.length>1)},removeProp:function(t){return this.each(function(){delete this[ot.propFix[t]||t]})}}),ot.extend({prop:function(t,e,n){var r,i,o=t.nodeType;if(3!==o&&8!==o&&2!==o)return 1===o&&ot.isXMLDoc(t)||(e=ot.propFix[e]||e,i=ot.propHooks[e]),void 0!==n?i&&"set"in i&&void 0!==(r=i.set(t,n,e))?r:t[e]=n:i&&"get"in i&&null!==(r=i.get(t,e))?r:t[e]},propHooks:{tabIndex:{get:function(t){var e=ot.find.attr(t,"tabindex");return e?parseInt(e,10):ce.test(t.nodeName)||fe.test(t.nodeName)&&t.href?0:-1}}},propFix:{"for":"htmlFor","class":"className"}}),rt.optSelected||(ot.propHooks.selected={get:function(t){var e=t.parentNode;return e&&e.parentNode&&e.parentNode.selectedIndex,null},set:function(t){var e=t.parentNode;e&&(e.selectedIndex,e.parentNode&&e.parentNode.selectedIndex)}}),ot.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){ot.propFix[this.toLowerCase()]=this});var he=/[\t\r\n\f]/g;ot.fn.extend({addClass:function(t){var e,n,r,i,o,a,s,u=0;if(ot.isFunction(t))return this.each(function(e){ot(this).addClass(t.call(this,e,q(this)))});if("string"==typeof t&&t)for(e=t.match(wt)||[];n=this[u++];)if(i=q(n),r=1===n.nodeType&&(" "+i+" ").replace(he," ")){for(a=0;o=e[a++];)r.indexOf(" "+o+" ")<0&&(r+=o+" ");s=ot.trim(r),i!==s&&n.setAttribute("class",s)}return this},removeClass:function(t){var e,n,r,i,o,a,s,u=0;if(ot.isFunction(t))return this.each(function(e){ot(this).removeClass(t.call(this,e,q(this)))});if(!arguments.length)return this.attr("class","");if("string"==typeof t&&t)for(e=t.match(wt)||[];n=this[u++];)if(i=q(n),r=1===n.nodeType&&(" "+i+" ").replace(he," ")){for(a=0;o=e[a++];)for(;r.indexOf(" "+o+" ")>-1;)r=r.replace(" "+o+" "," ");s=ot.trim(r),i!==s&&n.setAttribute("class",s)}return this},toggleClass:function(t,e){var n=typeof t;return"boolean"==typeof e&&"string"===n?e?this.addClass(t):this.removeClass(t):ot.isFunction(t)?this.each(function(n){ot(this).toggleClass(t.call(this,n,q(this),e),e)}):this.each(function(){var e,r,i,o;if("string"===n)for(r=0,i=ot(this),o=t.match(wt)||[];e=o[r++];)i.hasClass(e)?i.removeClass(e):i.addClass(e);else void 0!==t&&"boolean"!==n||(e=q(this),e&&Et.set(this,"__className__",e),this.setAttribute&&this.setAttribute("class",e||t===!1?"":Et.get(this,"__className__")||""))})},hasClass:function(t){var e,n,r=0;for(e=" "+t+" ";n=this[r++];)if(1===n.nodeType&&(" "+q(n)+" ").replace(he," ").indexOf(e)>-1)return!0;return!1}});var de=/\r/g,pe=/[\x20\t\r\n\f]+/g;ot.fn.extend({val:function(t){var e,n,r,i=this[0];{if(arguments.length)return r=ot.isFunction(t),this.each(function(n){var i;1===this.nodeType&&(i=r?t.call(this,n,ot(this).val()):t,null==i?i="":"number"==typeof i?i+="":ot.isArray(i)&&(i=ot.map(i,function(t){return null==t?"":t+""})),e=ot.valHooks[this.type]||ot.valHooks[this.nodeName.toLowerCase()],e&&"set"in e&&void 0!==e.set(this,i,"value")||(this.value=i))});if(i)return e=ot.valHooks[i.type]||ot.valHooks[i.nodeName.toLowerCase()],e&&"get"in e&&void 0!==(n=e.get(i,"value"))?n:(n=i.value,"string"==typeof n?n.replace(de,""):null==n?"":n)}}}),ot.extend({valHooks:{option:{get:function(t){var e=ot.find.attr(t,"value");return null!=e?e:ot.trim(ot.text(t)).replace(pe," ")}},select:{get:function(t){for(var e,n,r=t.options,i=t.selectedIndex,o="select-one"===t.type||i<0,a=o?null:[],s=o?i+1:r.length,u=i<0?s:o?i:0;u<s;u++)if(n=r[u],(n.selected||u===i)&&(rt.optDisabled?!n.disabled:null===n.getAttribute("disabled"))&&(!n.parentNode.disabled||!ot.nodeName(n.parentNode,"optgroup"))){if(e=ot(n).val(),o)return e;a.push(e)}return a},set:function(t,e){for(var n,r,i=t.options,o=ot.makeArray(e),a=i.length;a--;)r=i[a],(r.selected=ot.inArray(ot.valHooks.option.get(r),o)>-1)&&(n=!0);return n||(t.selectedIndex=-1),o}}}}),ot.each(["radio","checkbox"],function(){ot.valHooks[this]={set:function(t,e){if(ot.isArray(e))return t.checked=ot.inArray(ot(t).val(),e)>-1}},rt.checkOn||(ot.valHooks[this].get=function(t){return null===t.getAttribute("value")?"on":t.value})});var me=/^(?:focusinfocus|focusoutblur)$/;ot.extend(ot.event,{trigger:function(e,n,r,i){var o,a,s,u,l,c,f,h=[r||K],d=nt.call(e,"type")?e.type:e,p=nt.call(e,"namespace")?e.namespace.split("."):[];if(a=s=r=r||K,3!==r.nodeType&&8!==r.nodeType&&!me.test(d+ot.event.triggered)&&(d.indexOf(".")>-1&&(p=d.split("."),d=p.shift(),p.sort()),l=d.indexOf(":")<0&&"on"+d,e=e[ot.expando]?e:new ot.Event(d,"object"==typeof e&&e),e.isTrigger=i?2:3,e.namespace=p.join("."),e.rnamespace=e.namespace?new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=void 0,e.target||(e.target=r),n=null==n?[e]:ot.makeArray(n,[e]),f=ot.event.special[d]||{},i||!f.trigger||f.trigger.apply(r,n)!==!1)){if(!i&&!f.noBubble&&!ot.isWindow(r)){for(u=f.delegateType||d,me.test(u+d)||(a=a.parentNode);a;a=a.parentNode)h.push(a),s=a;s===(r.ownerDocument||K)&&h.push(s.defaultView||s.parentWindow||t)}for(o=0;(a=h[o++])&&!e.isPropagationStopped();)e.type=o>1?u:f.bindType||d,c=(Et.get(a,"events")||{})[e.type]&&Et.get(a,"handle"),c&&c.apply(a,n),c=l&&a[l],c&&c.apply&&Ct(a)&&(e.result=c.apply(a,n),e.result===!1&&e.preventDefault());return e.type=d,i||e.isDefaultPrevented()||f._default&&f._default.apply(h.pop(),n)!==!1||!Ct(r)||l&&ot.isFunction(r[d])&&!ot.isWindow(r)&&(s=r[l],s&&(r[l]=null),ot.event.triggered=d,r[d](),ot.event.triggered=void 0,s&&(r[l]=s)),e.result}},simulate:function(t,e,n){var r=ot.extend(new ot.Event,n,{type:t,isSimulated:!0});ot.event.trigger(r,null,e)}}),ot.fn.extend({trigger:function(t,e){return this.each(function(){ot.event.trigger(t,e,this)})},triggerHandler:function(t,e){var n=this[0];if(n)return ot.event.trigger(t,e,n,!0)}}),ot.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(" "),function(t,e){ot.fn[e]=function(t,n){return arguments.length>0?this.on(e,null,t,n):this.trigger(e)}}),ot.fn.extend({hover:function(t,e){return this.mouseenter(t).mouseleave(e||t)}}),rt.focusin="onfocusin"in t,rt.focusin||ot.each({focus:"focusin",blur:"focusout"},function(t,e){var n=function(t){ot.event.simulate(e,t.target,ot.event.fix(t))};ot.event.special[e]={setup:function(){var r=this.ownerDocument||this,i=Et.access(r,e);i||r.addEventListener(t,n,!0),Et.access(r,e,(i||0)+1)},teardown:function(){var r=this.ownerDocument||this,i=Et.access(r,e)-1;i?Et.access(r,e,i):(r.removeEventListener(t,n,!0),Et.remove(r,e))}}});var ge=t.location,ve=ot.now(),ye=/\?/;ot.parseJSON=function(t){return JSON.parse(t+"")},ot.parseXML=function(e){var n;if(!e||"string"!=typeof e)return null;try{n=(new t.DOMParser).parseFromString(e,"text/xml")}catch(r){n=void 0}return n&&!n.getElementsByTagName("parsererror").length||ot.error("Invalid XML: "+e),n};var be=/#.*$/,_e=/([?&])_=[^&]*/,we=/^(.*?):[ \t]*([^\r\n]*)$/gm,xe=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,ke=/^(?:GET|HEAD)$/,Ce=/^\/\//,Ee={},$e={},Se="*/".concat("*"),Ae=K.createElement("a");Ae.href=ge.href,ot.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:ge.href,type:"GET",isLocal:xe.test(ge.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Se,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":ot.parseJSON,"text xml":ot.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(t,e){return e?B(B(t,ot.ajaxSettings),e):B(ot.ajaxSettings,t)},ajaxPrefilter:z(Ee),ajaxTransport:z($e),ajax:function(e,n){function r(e,n,r,s){var l,f,y,b,w,k=n;2!==_&&(_=2,u&&t.clearTimeout(u),i=void 0,a=s||"",x.readyState=e>0?4:0,l=e>=200&&e<300||304===e,r&&(b=U(h,x,r)),b=V(h,b,x,l),l?(h.ifModified&&(w=x.getResponseHeader("Last-Modified"),w&&(ot.lastModified[o]=w),w=x.getResponseHeader("etag"),w&&(ot.etag[o]=w)),204===e||"HEAD"===h.type?k="nocontent":304===e?k="notmodified":(k=b.state,f=b.data,y=b.error,l=!y)):(y=k,!e&&k||(k="error",e<0&&(e=0))),x.status=e,x.statusText=(n||k)+"",l?m.resolveWith(d,[f,k,x]):m.rejectWith(d,[x,k,y]),x.statusCode(v),v=void 0,c&&p.trigger(l?"ajaxSuccess":"ajaxError",[x,h,l?f:y]),g.fireWith(d,[x,k]),c&&(p.trigger("ajaxComplete",[x,h]),--ot.active||ot.event.trigger("ajaxStop")))}"object"==typeof e&&(n=e,e=void 0),n=n||{};var i,o,a,s,u,l,c,f,h=ot.ajaxSetup({},n),d=h.context||h,p=h.context&&(d.nodeType||d.jquery)?ot(d):ot.event,m=ot.Deferred(),g=ot.Callbacks("once memory"),v=h.statusCode||{},y={},b={},_=0,w="canceled",x={readyState:0,getResponseHeader:function(t){var e;if(2===_){if(!s)for(s={};e=we.exec(a);)s[e[1].toLowerCase()]=e[2];e=s[t.toLowerCase()]}return null==e?null:e},getAllResponseHeaders:function(){return 2===_?a:null},setRequestHeader:function(t,e){var n=t.toLowerCase();return _||(t=b[n]=b[n]||t,y[t]=e),this},overrideMimeType:function(t){return _||(h.mimeType=t),this},statusCode:function(t){var e;if(t)if(_<2)for(e in t)v[e]=[v[e],t[e]];else x.always(t[x.status]);return this},abort:function(t){var e=t||w;return i&&i.abort(e),r(0,e),this}};if(m.promise(x).complete=g.add,x.success=x.done,x.error=x.fail,h.url=((e||h.url||ge.href)+"").replace(be,"").replace(Ce,ge.protocol+"//"),h.type=n.method||n.type||h.method||h.type,h.dataTypes=ot.trim(h.dataType||"*").toLowerCase().match(wt)||[""],null==h.crossDomain){l=K.createElement("a");try{l.href=h.url,l.href=l.href,h.crossDomain=Ae.protocol+"//"+Ae.host!=l.protocol+"//"+l.host}catch(k){h.crossDomain=!0}}if(h.data&&h.processData&&"string"!=typeof h.data&&(h.data=ot.param(h.data,h.traditional)),H(Ee,h,n,x),2===_)return x;c=ot.event&&h.global,c&&0===ot.active++&&ot.event.trigger("ajaxStart"),h.type=h.type.toUpperCase(),h.hasContent=!ke.test(h.type),o=h.url,h.hasContent||(h.data&&(o=h.url+=(ye.test(o)?"&":"?")+h.data,delete h.data),h.cache===!1&&(h.url=_e.test(o)?o.replace(_e,"$1_="+ve++):o+(ye.test(o)?"&":"?")+"_="+ve++)),h.ifModified&&(ot.lastModified[o]&&x.setRequestHeader("If-Modified-Since",ot.lastModified[o]),ot.etag[o]&&x.setRequestHeader("If-None-Match",ot.etag[o])),(h.data&&h.hasContent&&h.contentType!==!1||n.contentType)&&x.setRequestHeader("Content-Type",h.contentType),x.setRequestHeader("Accept",h.dataTypes[0]&&h.accepts[h.dataTypes[0]]?h.accepts[h.dataTypes[0]]+("*"!==h.dataTypes[0]?", "+Se+"; q=0.01":""):h.accepts["*"]);for(f in h.headers)x.setRequestHeader(f,h.headers[f]);if(h.beforeSend&&(h.beforeSend.call(d,x,h)===!1||2===_))return x.abort();w="abort";for(f in{success:1,error:1,complete:1})x[f](h[f]);if(i=H($e,h,n,x)){if(x.readyState=1,c&&p.trigger("ajaxSend",[x,h]),2===_)return x;h.async&&h.timeout>0&&(u=t.setTimeout(function(){x.abort("timeout")},h.timeout));try{_=1,i.send(y,r)}catch(k){if(!(_<2))throw k;r(-1,k)}}else r(-1,"No Transport");return x},getJSON:function(t,e,n){return ot.get(t,e,n,"json")},getScript:function(t,e){return ot.get(t,void 0,e,"script")}}),ot.each(["get","post"],function(t,e){ot[e]=function(t,n,r,i){return ot.isFunction(n)&&(i=i||r,r=n,n=void 0),ot.ajax(ot.extend({url:t,type:e,dataType:i,data:n,success:r},ot.isPlainObject(t)&&t))}}),ot._evalUrl=function(t){return ot.ajax({url:t,type:"GET",dataType:"script",async:!1,global:!1,"throws":!0})},ot.fn.extend({wrapAll:function(t){var e;return ot.isFunction(t)?this.each(function(e){ot(this).wrapAll(t.call(this,e))}):(this[0]&&(e=ot(t,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&e.insertBefore(this[0]),e.map(function(){for(var t=this;t.firstElementChild;)t=t.firstElementChild;return t}).append(this)),this)},wrapInner:function(t){return ot.isFunction(t)?this.each(function(e){ot(this).wrapInner(t.call(this,e))}):this.each(function(){var e=ot(this),n=e.contents();n.length?n.wrapAll(t):e.append(t)})},wrap:function(t){var e=ot.isFunction(t);return this.each(function(n){ot(this).wrapAll(e?t.call(this,n):t)})},unwrap:function(){return this.parent().each(function(){ot.nodeName(this,"body")||ot(this).replaceWith(this.childNodes)}).end()}}),ot.expr.filters.hidden=function(t){return!ot.expr.filters.visible(t)},ot.expr.filters.visible=function(t){return t.offsetWidth>0||t.offsetHeight>0||t.getClientRects().length>0};var Te=/%20/g,De=/\[\]$/,Fe=/\r?\n/g,Ne=/^(?:submit|button|image|reset|file)$/i,Me=/^(?:input|select|textarea|keygen)/i;ot.param=function(t,e){var n,r=[],i=function(t,e){e=ot.isFunction(e)?e():null==e?"":e,r[r.length]=encodeURIComponent(t)+"="+encodeURIComponent(e)};if(void 0===e&&(e=ot.ajaxSettings&&ot.ajaxSettings.traditional),
|
||
ot.isArray(t)||t.jquery&&!ot.isPlainObject(t))ot.each(t,function(){i(this.name,this.value)});else for(n in t)W(n,t[n],e,i);return r.join("&").replace(Te,"+")},ot.fn.extend({serialize:function(){return ot.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var t=ot.prop(this,"elements");return t?ot.makeArray(t):this}).filter(function(){var t=this.type;return this.name&&!ot(this).is(":disabled")&&Me.test(this.nodeName)&&!Ne.test(t)&&(this.checked||!Mt.test(t))}).map(function(t,e){var n=ot(this).val();return null==n?null:ot.isArray(n)?ot.map(n,function(t){return{name:e.name,value:t.replace(Fe,"\r\n")}}):{name:e.name,value:n.replace(Fe,"\r\n")}}).get()}}),ot.ajaxSettings.xhr=function(){try{return new t.XMLHttpRequest}catch(e){}};var Oe={0:200,1223:204},je=ot.ajaxSettings.xhr();rt.cors=!!je&&"withCredentials"in je,rt.ajax=je=!!je,ot.ajaxTransport(function(e){var n,r;if(rt.cors||je&&!e.crossDomain)return{send:function(i,o){var a,s=e.xhr();if(s.open(e.type,e.url,e.async,e.username,e.password),e.xhrFields)for(a in e.xhrFields)s[a]=e.xhrFields[a];e.mimeType&&s.overrideMimeType&&s.overrideMimeType(e.mimeType),e.crossDomain||i["X-Requested-With"]||(i["X-Requested-With"]="XMLHttpRequest");for(a in i)s.setRequestHeader(a,i[a]);n=function(t){return function(){n&&(n=r=s.onload=s.onerror=s.onabort=s.onreadystatechange=null,"abort"===t?s.abort():"error"===t?"number"!=typeof s.status?o(0,"error"):o(s.status,s.statusText):o(Oe[s.status]||s.status,s.statusText,"text"!==(s.responseType||"text")||"string"!=typeof s.responseText?{binary:s.response}:{text:s.responseText},s.getAllResponseHeaders()))}},s.onload=n(),r=s.onerror=n("error"),void 0!==s.onabort?s.onabort=r:s.onreadystatechange=function(){4===s.readyState&&t.setTimeout(function(){n&&r()})},n=n("abort");try{s.send(e.hasContent&&e.data||null)}catch(u){if(n)throw u}},abort:function(){n&&n()}}}),ot.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(t){return ot.globalEval(t),t}}}),ot.ajaxPrefilter("script",function(t){void 0===t.cache&&(t.cache=!1),t.crossDomain&&(t.type="GET")}),ot.ajaxTransport("script",function(t){if(t.crossDomain){var e,n;return{send:function(r,i){e=ot("<script>").prop({charset:t.scriptCharset,src:t.url}).on("load error",n=function(t){e.remove(),n=null,t&&i("error"===t.type?404:200,t.type)}),K.head.appendChild(e[0])},abort:function(){n&&n()}}}});var Pe=[],Le=/(=)\?(?=&|$)|\?\?/;ot.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var t=Pe.pop()||ot.expando+"_"+ve++;return this[t]=!0,t}}),ot.ajaxPrefilter("json jsonp",function(e,n,r){var i,o,a,s=e.jsonp!==!1&&(Le.test(e.url)?"url":"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&Le.test(e.data)&&"data");if(s||"jsonp"===e.dataTypes[0])return i=e.jsonpCallback=ot.isFunction(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,s?e[s]=e[s].replace(Le,"$1"+i):e.jsonp!==!1&&(e.url+=(ye.test(e.url)?"&":"?")+e.jsonp+"="+i),e.converters["script json"]=function(){return a||ot.error(i+" was not called"),a[0]},e.dataTypes[0]="json",o=t[i],t[i]=function(){a=arguments},r.always(function(){void 0===o?ot(t).removeProp(i):t[i]=o,e[i]&&(e.jsonpCallback=n.jsonpCallback,Pe.push(i)),a&&ot.isFunction(o)&&o(a[0]),a=o=void 0}),"script"}),ot.parseHTML=function(t,e,n){if(!t||"string"!=typeof t)return null;"boolean"==typeof e&&(n=e,e=!1),e=e||K;var r=pt.exec(t),i=!n&&[];return r?[e.createElement(r[1])]:(r=h([t],e,i),i&&i.length&&ot(i).remove(),ot.merge([],r.childNodes))};var Re=ot.fn.load;ot.fn.load=function(t,e,n){if("string"!=typeof t&&Re)return Re.apply(this,arguments);var r,i,o,a=this,s=t.indexOf(" ");return s>-1&&(r=ot.trim(t.slice(s)),t=t.slice(0,s)),ot.isFunction(e)?(n=e,e=void 0):e&&"object"==typeof e&&(i="POST"),a.length>0&&ot.ajax({url:t,type:i||"GET",dataType:"html",data:e}).done(function(t){o=arguments,a.html(r?ot("<div>").append(ot.parseHTML(t)).find(r):t)}).always(n&&function(t,e){a.each(function(){n.apply(this,o||[t.responseText,e,t])})}),this},ot.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(t,e){ot.fn[e]=function(t){return this.on(e,t)}}),ot.expr.filters.animated=function(t){return ot.grep(ot.timers,function(e){return t===e.elem}).length},ot.offset={setOffset:function(t,e,n){var r,i,o,a,s,u,l,c=ot.css(t,"position"),f=ot(t),h={};"static"===c&&(t.style.position="relative"),s=f.offset(),o=ot.css(t,"top"),u=ot.css(t,"left"),l=("absolute"===c||"fixed"===c)&&(o+u).indexOf("auto")>-1,l?(r=f.position(),a=r.top,i=r.left):(a=parseFloat(o)||0,i=parseFloat(u)||0),ot.isFunction(e)&&(e=e.call(t,n,ot.extend({},s))),null!=e.top&&(h.top=e.top-s.top+a),null!=e.left&&(h.left=e.left-s.left+i),"using"in e?e.using.call(t,h):f.css(h)}},ot.fn.extend({offset:function(t){if(arguments.length)return void 0===t?this:this.each(function(e){ot.offset.setOffset(this,t,e)});var e,n,r=this[0],i={top:0,left:0},o=r&&r.ownerDocument;if(o)return e=o.documentElement,ot.contains(e,r)?(i=r.getBoundingClientRect(),n=Y(o),{top:i.top+n.pageYOffset-e.clientTop,left:i.left+n.pageXOffset-e.clientLeft}):i},position:function(){if(this[0]){var t,e,n=this[0],r={top:0,left:0};return"fixed"===ot.css(n,"position")?e=n.getBoundingClientRect():(t=this.offsetParent(),e=this.offset(),ot.nodeName(t[0],"html")||(r=t.offset()),r.top+=ot.css(t[0],"borderTopWidth",!0),r.left+=ot.css(t[0],"borderLeftWidth",!0)),{top:e.top-r.top-ot.css(n,"marginTop",!0),left:e.left-r.left-ot.css(n,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var t=this.offsetParent;t&&"static"===ot.css(t,"position");)t=t.offsetParent;return t||Jt})}}),ot.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(t,e){var n="pageYOffset"===e;ot.fn[t]=function(r){return kt(this,function(t,r,i){var o=Y(t);return void 0===i?o?o[e]:t[r]:void(o?o.scrollTo(n?o.pageXOffset:i,n?i:o.pageYOffset):t[r]=i)},t,r,arguments.length)}}),ot.each(["top","left"],function(t,e){ot.cssHooks[e]=S(rt.pixelPosition,function(t,n){if(n)return n=$(t,e),Kt.test(n)?ot(t).position()[e]+"px":n})}),ot.each({Height:"height",Width:"width"},function(t,e){ot.each({padding:"inner"+t,content:e,"":"outer"+t},function(n,r){ot.fn[r]=function(r,i){var o=arguments.length&&(n||"boolean"!=typeof r),a=n||(r===!0||i===!0?"margin":"border");return kt(this,function(e,n,r){var i;return ot.isWindow(e)?e.document.documentElement["client"+t]:9===e.nodeType?(i=e.documentElement,Math.max(e.body["scroll"+t],i["scroll"+t],e.body["offset"+t],i["offset"+t],i["client"+t])):void 0===r?ot.css(e,n,a):ot.style(e,n,r,a)},e,o?r:void 0,o,null)}})}),ot.fn.extend({bind:function(t,e,n){return this.on(t,null,e,n)},unbind:function(t,e){return this.off(t,null,e)},delegate:function(t,e,n,r){return this.on(e,t,n,r)},undelegate:function(t,e,n){return 1===arguments.length?this.off(t,"**"):this.off(e,t||"**",n)},size:function(){return this.length}}),ot.fn.andSelf=ot.fn.addBack,"function"==typeof define&&define.amd&&define("jquery",[],function(){return ot});var Ie=t.jQuery,qe=t.$;return ot.noConflict=function(e){return t.$===ot&&(t.$=qe),e&&t.jQuery===ot&&(t.jQuery=Ie),ot},e||(t.jQuery=t.$=ot),ot}),function(){function t(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}function e(t,e,n,r){for(var i=-1,o=null==t?0:t.length;++i<o;){var a=t[i];e(r,a,n(a),t)}return r}function n(t,e){for(var n=-1,r=null==t?0:t.length;++n<r&&e(t[n],n,t)!==!1;);return t}function r(t,e){for(var n=null==t?0:t.length;n--&&e(t[n],n,t)!==!1;);return t}function i(t,e){for(var n=-1,r=null==t?0:t.length;++n<r;)if(!e(t[n],n,t))return!1;return!0}function o(t,e){for(var n=-1,r=null==t?0:t.length,i=0,o=[];++n<r;){var a=t[n];e(a,n,t)&&(o[i++]=a)}return o}function a(t,e){var n=null==t?0:t.length;return!!n&&v(t,e,0)>-1}function s(t,e,n){for(var r=-1,i=null==t?0:t.length;++r<i;)if(n(e,t[r]))return!0;return!1}function u(t,e){for(var n=-1,r=null==t?0:t.length,i=Array(r);++n<r;)i[n]=e(t[n],n,t);return i}function l(t,e){for(var n=-1,r=e.length,i=t.length;++n<r;)t[i+n]=e[n];return t}function c(t,e,n,r){var i=-1,o=null==t?0:t.length;for(r&&o&&(n=t[++i]);++i<o;)n=e(n,t[i],i,t);return n}function f(t,e,n,r){var i=null==t?0:t.length;for(r&&i&&(n=t[--i]);i--;)n=e(n,t[i],i,t);return n}function h(t,e){for(var n=-1,r=null==t?0:t.length;++n<r;)if(e(t[n],n,t))return!0;return!1}function d(t){return t.split("")}function p(t){return t.match(Pe)||[]}function m(t,e,n){var r;return n(t,function(t,n,i){if(e(t,n,i))return r=n,!1}),r}function g(t,e,n,r){for(var i=t.length,o=n+(r?1:-1);r?o--:++o<i;)if(e(t[o],o,t))return o;return-1}function v(t,e,n){return e===e?V(t,e,n):g(t,b,n)}function y(t,e,n,r){for(var i=n-1,o=t.length;++i<o;)if(r(t[i],e))return i;return-1}function b(t){return t!==t}function _(t,e){var n=null==t?0:t.length;return n?E(t,e)/n:Ft}function w(t){return function(e){return null==e?J:e[t]}}function x(t){return function(e){return null==t?J:t[e]}}function k(t,e,n,r,i){return i(t,function(t,i,o){n=r?(r=!1,t):e(n,t,i,o)}),n}function C(t,e){var n=t.length;for(t.sort(e);n--;)t[n]=t[n].value;return t}function E(t,e){for(var n,r=-1,i=t.length;++r<i;){var o=e(t[r]);o!==J&&(n=n===J?o:n+o)}return n}function $(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r}function S(t,e){return u(e,function(e){return[e,t[e]]})}function A(t){return function(e){return t(e)}}function T(t,e){return u(e,function(e){return t[e]})}function D(t,e){return t.has(e)}function F(t,e){for(var n=-1,r=t.length;++n<r&&v(e,t[n],0)>-1;);return n}function N(t,e){for(var n=t.length;n--&&v(e,t[n],0)>-1;);return n}function M(t,e){for(var n=t.length,r=0;n--;)t[n]===e&&++r;return r}function O(t){return"\\"+Kn[t]}function j(t,e){return null==t?J:t[e]}function P(t){return qn.test(t)}function L(t){return zn.test(t)}function R(t){for(var e,n=[];!(e=t.next()).done;)n.push(e.value);return n}function I(t){var e=-1,n=Array(t.size);return t.forEach(function(t,r){n[++e]=[r,t]}),n}function q(t,e){return function(n){return t(e(n))}}function z(t,e){for(var n=-1,r=t.length,i=0,o=[];++n<r;){var a=t[n];a!==e&&a!==ot||(t[n]=ot,o[i++]=n)}return o}function H(t,e){return"__proto__"==e?J:t[e]}function B(t){var e=-1,n=Array(t.size);return t.forEach(function(t){n[++e]=t}),n}function U(t){var e=-1,n=Array(t.size);return t.forEach(function(t){n[++e]=[t,t]}),n}function V(t,e,n){for(var r=n-1,i=t.length;++r<i;)if(t[r]===e)return r;return-1}function W(t,e,n){for(var r=n+1;r--;)if(t[r]===e)return r;return r}function Y(t){return P(t)?K(t):hr(t)}function G(t){return P(t)?Z(t):d(t)}function K(t){for(var e=Rn.lastIndex=0;Rn.test(t);)++e;return e}function Z(t){return t.match(Rn)||[]}function X(t){return t.match(In)||[]}var J,Q="4.17.5",tt=200,et="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",nt="Expected a function",rt="__lodash_hash_undefined__",it=500,ot="__lodash_placeholder__",at=1,st=2,ut=4,lt=1,ct=2,ft=1,ht=2,dt=4,pt=8,mt=16,gt=32,vt=64,yt=128,bt=256,_t=512,wt=30,xt="...",kt=800,Ct=16,Et=1,$t=2,St=3,At=1/0,Tt=9007199254740991,Dt=1.7976931348623157e308,Ft=NaN,Nt=4294967295,Mt=Nt-1,Ot=Nt>>>1,jt=[["ary",yt],["bind",ft],["bindKey",ht],["curry",pt],["curryRight",mt],["flip",_t],["partial",gt],["partialRight",vt],["rearg",bt]],Pt="[object Arguments]",Lt="[object Array]",Rt="[object AsyncFunction]",It="[object Boolean]",qt="[object Date]",zt="[object DOMException]",Ht="[object Error]",Bt="[object Function]",Ut="[object GeneratorFunction]",Vt="[object Map]",Wt="[object Number]",Yt="[object Null]",Gt="[object Object]",Kt="[object Promise]",Zt="[object Proxy]",Xt="[object RegExp]",Jt="[object Set]",Qt="[object String]",te="[object Symbol]",ee="[object Undefined]",ne="[object WeakMap]",re="[object WeakSet]",ie="[object ArrayBuffer]",oe="[object DataView]",ae="[object Float32Array]",se="[object Float64Array]",ue="[object Int8Array]",le="[object Int16Array]",ce="[object Int32Array]",fe="[object Uint8Array]",he="[object Uint8ClampedArray]",de="[object Uint16Array]",pe="[object Uint32Array]",me=/\b__p \+= '';/g,ge=/\b(__p \+=) '' \+/g,ve=/(__e\(.*?\)|\b__t\)) \+\n'';/g,ye=/&(?:amp|lt|gt|quot|#39);/g,be=/[&<>"']/g,_e=RegExp(ye.source),we=RegExp(be.source),xe=/<%-([\s\S]+?)%>/g,ke=/<%([\s\S]+?)%>/g,Ce=/<%=([\s\S]+?)%>/g,Ee=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,$e=/^\w*$/,Se=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Ae=/[\\^$.*+?()[\]{}|]/g,Te=RegExp(Ae.source),De=/^\s+|\s+$/g,Fe=/^\s+/,Ne=/\s+$/,Me=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Oe=/\{\n\/\* \[wrapped with (.+)\] \*/,je=/,? & /,Pe=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Le=/\\(\\)?/g,Re=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Ie=/\w*$/,qe=/^[-+]0x[0-9a-f]+$/i,ze=/^0b[01]+$/i,He=/^\[object .+?Constructor\]$/,Be=/^0o[0-7]+$/i,Ue=/^(?:0|[1-9]\d*)$/,Ve=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,We=/($^)/,Ye=/['\n\r\u2028\u2029\\]/g,Ge="\\ud800-\\udfff",Ke="\\u0300-\\u036f",Ze="\\ufe20-\\ufe2f",Xe="\\u20d0-\\u20ff",Je=Ke+Ze+Xe,Qe="\\u2700-\\u27bf",tn="a-z\\xdf-\\xf6\\xf8-\\xff",en="\\xac\\xb1\\xd7\\xf7",nn="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",rn="\\u2000-\\u206f",on=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",an="A-Z\\xc0-\\xd6\\xd8-\\xde",sn="\\ufe0e\\ufe0f",un=en+nn+rn+on,ln="['’]",cn="["+Ge+"]",fn="["+un+"]",hn="["+Je+"]",dn="\\d+",pn="["+Qe+"]",mn="["+tn+"]",gn="[^"+Ge+un+dn+Qe+tn+an+"]",vn="\\ud83c[\\udffb-\\udfff]",yn="(?:"+hn+"|"+vn+")",bn="[^"+Ge+"]",_n="(?:\\ud83c[\\udde6-\\uddff]){2}",wn="[\\ud800-\\udbff][\\udc00-\\udfff]",xn="["+an+"]",kn="\\u200d",Cn="(?:"+mn+"|"+gn+")",En="(?:"+xn+"|"+gn+")",$n="(?:"+ln+"(?:d|ll|m|re|s|t|ve))?",Sn="(?:"+ln+"(?:D|LL|M|RE|S|T|VE))?",An=yn+"?",Tn="["+sn+"]?",Dn="(?:"+kn+"(?:"+[bn,_n,wn].join("|")+")"+Tn+An+")*",Fn="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Nn="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Mn=Tn+An+Dn,On="(?:"+[pn,_n,wn].join("|")+")"+Mn,jn="(?:"+[bn+hn+"?",hn,_n,wn,cn].join("|")+")",Pn=RegExp(ln,"g"),Ln=RegExp(hn,"g"),Rn=RegExp(vn+"(?="+vn+")|"+jn+Mn,"g"),In=RegExp([xn+"?"+mn+"+"+$n+"(?="+[fn,xn,"$"].join("|")+")",En+"+"+Sn+"(?="+[fn,xn+Cn,"$"].join("|")+")",xn+"?"+Cn+"+"+$n,xn+"+"+Sn,Nn,Fn,dn,On].join("|"),"g"),qn=RegExp("["+kn+Ge+Je+sn+"]"),zn=/[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Hn=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Bn=-1,Un={};Un[ae]=Un[se]=Un[ue]=Un[le]=Un[ce]=Un[fe]=Un[he]=Un[de]=Un[pe]=!0,Un[Pt]=Un[Lt]=Un[ie]=Un[It]=Un[oe]=Un[qt]=Un[Ht]=Un[Bt]=Un[Vt]=Un[Wt]=Un[Gt]=Un[Xt]=Un[Jt]=Un[Qt]=Un[ne]=!1;var Vn={};Vn[Pt]=Vn[Lt]=Vn[ie]=Vn[oe]=Vn[It]=Vn[qt]=Vn[ae]=Vn[se]=Vn[ue]=Vn[le]=Vn[ce]=Vn[Vt]=Vn[Wt]=Vn[Gt]=Vn[Xt]=Vn[Jt]=Vn[Qt]=Vn[te]=Vn[fe]=Vn[he]=Vn[de]=Vn[pe]=!0,Vn[Ht]=Vn[Bt]=Vn[ne]=!1;var Wn={"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"},Yn={"&":"&","<":"<",">":">",'"':""","'":"'"},Gn={"&":"&","<":"<",">":">",""":'"',"'":"'"},Kn={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Zn=parseFloat,Xn=parseInt,Jn="object"==typeof global&&global&&global.Object===Object&&global,Qn="object"==typeof self&&self&&self.Object===Object&&self,tr=Jn||Qn||Function("return this")(),er="object"==typeof exports&&exports&&!exports.nodeType&&exports,nr=er&&"object"==typeof module&&module&&!module.nodeType&&module,rr=nr&&nr.exports===er,ir=rr&&Jn.process,or=function(){try{return ir&&ir.binding&&ir.binding("util")}catch(t){}}(),ar=or&&or.isArrayBuffer,sr=or&&or.isDate,ur=or&&or.isMap,lr=or&&or.isRegExp,cr=or&&or.isSet,fr=or&&or.isTypedArray,hr=w("length"),dr=x(Wn),pr=x(Yn),mr=x(Gn),gr=function yr(d){function x(t){if(ou(t)&&!vh(t)&&!(t instanceof Z)){if(t instanceof K)return t;if(gc.call(t,"__wrapped__"))return na(t)}return new K(t)}function V(){}function K(t,e){this.__wrapped__=t,this.__actions__=[],this.__chain__=!!e,this.__index__=0,this.__values__=J}function Z(t){this.__wrapped__=t,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=Nt,this.__views__=[]}function Pe(){var t=new Z(this.__wrapped__);return t.__actions__=Pi(this.__actions__),t.__dir__=this.__dir__,t.__filtered__=this.__filtered__,t.__iteratees__=Pi(this.__iteratees__),t.__takeCount__=this.__takeCount__,t.__views__=Pi(this.__views__),t}function Ge(){if(this.__filtered__){var t=new Z(this);t.__dir__=-1,t.__filtered__=!0}else t=this.clone(),t.__dir__*=-1;return t}function Ke(){var t=this.__wrapped__.value(),e=this.__dir__,n=vh(t),r=e<0,i=n?t.length:0,o=$o(0,i,this.__views__),a=o.start,s=o.end,u=s-a,l=r?s:a-1,c=this.__iteratees__,f=c.length,h=0,d=Wc(u,this.__takeCount__);if(!n||!r&&i==u&&d==u)return bi(t,this.__actions__);var p=[];t:for(;u--&&h<d;){l+=e;for(var m=-1,g=t[l];++m<f;){var v=c[m],y=v.iteratee,b=v.type,_=y(g);if(b==$t)g=_;else if(!_){if(b==Et)continue t;break t}}p[h++]=g}return p}function Ze(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function Xe(){this.__data__=nf?nf(null):{},this.size=0}function Je(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}function Qe(t){var e=this.__data__;if(nf){var n=e[t];return n===rt?J:n}return gc.call(e,t)?e[t]:J}function tn(t){var e=this.__data__;return nf?e[t]!==J:gc.call(e,t)}function en(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=nf&&e===J?rt:e,this}function nn(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function rn(){this.__data__=[],this.size=0}function on(t){var e=this.__data__,n=Dn(e,t);if(n<0)return!1;var r=e.length-1;return n==r?e.pop():Dc.call(e,n,1),--this.size,!0}function an(t){var e=this.__data__,n=Dn(e,t);return n<0?J:e[n][1]}function sn(t){return Dn(this.__data__,t)>-1}function un(t,e){var n=this.__data__,r=Dn(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this}function ln(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function cn(){this.size=0,this.__data__={hash:new Ze,map:new(Jc||nn),string:new Ze}}function fn(t){var e=xo(this,t)["delete"](t);return this.size-=e?1:0,e}function hn(t){return xo(this,t).get(t)}function dn(t){return xo(this,t).has(t)}function pn(t,e){var n=xo(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this}function mn(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new ln;++e<n;)this.add(t[e])}function gn(t){return this.__data__.set(t,rt),this}function vn(t){return this.__data__.has(t)}function yn(t){var e=this.__data__=new nn(t);this.size=e.size}function bn(){this.__data__=new nn,this.size=0}function _n(t){var e=this.__data__,n=e["delete"](t);return this.size=e.size,n}function wn(t){return this.__data__.get(t)}function xn(t){return this.__data__.has(t)}function kn(t,e){var n=this.__data__;if(n instanceof nn){var r=n.__data__;if(!Jc||r.length<tt-1)return r.push([t,e]),this.size=++n.size,this;n=this.__data__=new ln(r)}return n.set(t,e),this.size=n.size,this}function Cn(t,e){var n=vh(t),r=!n&&gh(t),i=!n&&!r&&bh(t),o=!n&&!r&&!i&&Ch(t),a=n||r||i||o,s=a?$(t.length,lc):[],u=s.length;for(var l in t)!e&&!gc.call(t,l)||a&&("length"==l||i&&("offset"==l||"parent"==l)||o&&("buffer"==l||"byteLength"==l||"byteOffset"==l)||Oo(l,u))||s.push(l);return s}function En(t){var e=t.length;return e?t[ti(0,e-1)]:J}function $n(t,e){return Jo(Pi(t),Rn(e,0,t.length))}function Sn(t){return Jo(Pi(t))}function An(t,e,n){(n===J||Vs(t[e],n))&&(n!==J||e in t)||On(t,e,n)}function Tn(t,e,n){var r=t[e];gc.call(t,e)&&Vs(r,n)&&(n!==J||e in t)||On(t,e,n)}function Dn(t,e){for(var n=t.length;n--;)if(Vs(t[n][0],e))return n;return-1}function Fn(t,e,n,r){return mf(t,function(t,i,o){e(r,t,n(t),o)}),r}function Nn(t,e){return t&&Li(e,qu(e),t)}function Mn(t,e){return t&&Li(e,zu(e),t)}function On(t,e,n){"__proto__"==e&&Oc?Oc(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}function jn(t,e){for(var n=-1,r=e.length,i=nc(r),o=null==t;++n<r;)i[n]=o?J:Lu(t,e[n]);return i}function Rn(t,e,n){return t===t&&(n!==J&&(t=t<=n?t:n),e!==J&&(t=t>=e?t:e)),t}function In(t,e,r,i,o,a){var s,u=e&at,l=e&st,c=e&ut;if(r&&(s=o?r(t,i,o,a):r(t)),s!==J)return s;if(!iu(t))return t;var f=vh(t);if(f){if(s=To(t),!u)return Pi(t,s)}else{var h=Sf(t),d=h==Bt||h==Ut;if(bh(t))return $i(t,u);if(h==Gt||h==Pt||d&&!o){if(s=l||d?{}:Do(t),!u)return l?Ii(t,Mn(s,t)):Ri(t,Nn(s,t))}else{if(!Vn[h])return o?t:{};s=Fo(t,h,u)}}a||(a=new yn);var p=a.get(t);if(p)return p;if(a.set(t,s),kh(t))return t.forEach(function(n){s.add(In(n,e,r,n,t,a))}),s;if(wh(t))return t.forEach(function(n,i){s.set(i,In(n,e,r,i,t,a))}),s;var m=c?l?yo:vo:l?zu:qu,g=f?J:m(t);return n(g||t,function(n,i){g&&(i=n,n=t[i]),Tn(s,i,In(n,e,r,i,t,a))}),s}function qn(t){var e=qu(t);return function(n){return zn(n,t,e)}}function zn(t,e,n){var r=n.length;if(null==t)return!r;for(t=sc(t);r--;){var i=n[r],o=e[i],a=t[i];if(a===J&&!(i in t)||!o(a))return!1}return!0}function Wn(t,e,n){if("function"!=typeof t)throw new cc(nt);return Df(function(){t.apply(J,n)},e)}function Yn(t,e,n,r){var i=-1,o=a,l=!0,c=t.length,f=[],h=e.length;if(!c)return f;n&&(e=u(e,A(n))),r?(o=s,l=!1):e.length>=tt&&(o=D,l=!1,e=new mn(e));t:for(;++i<c;){var d=t[i],p=null==n?d:n(d);if(d=r||0!==d?d:0,l&&p===p){for(var m=h;m--;)if(e[m]===p)continue t;f.push(d)}else o(e,p,r)||f.push(d)}return f}function Gn(t,e){var n=!0;return mf(t,function(t,r,i){return n=!!e(t,r,i)}),n}function Kn(t,e,n){for(var r=-1,i=t.length;++r<i;){var o=t[r],a=e(o);if(null!=a&&(s===J?a===a&&!gu(a):n(a,s)))var s=a,u=o}return u}function Jn(t,e,n,r){var i=t.length;for(n=xu(n),n<0&&(n=-n>i?0:i+n),r=r===J||r>i?i:xu(r),r<0&&(r+=i),r=n>r?0:ku(r);n<r;)t[n++]=e;return t}function Qn(t,e){var n=[];return mf(t,function(t,r,i){e(t,r,i)&&n.push(t)}),n}function er(t,e,n,r,i){var o=-1,a=t.length;for(n||(n=Mo),i||(i=[]);++o<a;){var s=t[o];e>0&&n(s)?e>1?er(s,e-1,n,r,i):l(i,s):r||(i[i.length]=s)}return i}function nr(t,e){return t&&vf(t,e,qu)}function ir(t,e){return t&&yf(t,e,qu)}function or(t,e){return o(e,function(e){return eu(t[e])})}function hr(t,e){e=Ci(e,t);for(var n=0,r=e.length;null!=t&&n<r;)t=t[Qo(e[n++])];return n&&n==r?t:J}function gr(t,e,n){var r=e(t);return vh(t)?r:l(r,n(t))}function br(t){return null==t?t===J?ee:Yt:Mc&&Mc in sc(t)?Eo(t):Wo(t)}function _r(t,e){return t>e}function wr(t,e){return null!=t&&gc.call(t,e)}function xr(t,e){return null!=t&&e in sc(t)}function kr(t,e,n){return t>=Wc(e,n)&&t<Vc(e,n)}function Cr(t,e,n){for(var r=n?s:a,i=t[0].length,o=t.length,l=o,c=nc(o),f=1/0,h=[];l--;){var d=t[l];l&&e&&(d=u(d,A(e))),f=Wc(d.length,f),c[l]=!n&&(e||i>=120&&d.length>=120)?new mn(l&&d):J}d=t[0];var p=-1,m=c[0];t:for(;++p<i&&h.length<f;){var g=d[p],v=e?e(g):g;if(g=n||0!==g?g:0,!(m?D(m,v):r(h,v,n))){for(l=o;--l;){var y=c[l];if(!(y?D(y,v):r(t[l],v,n)))continue t}m&&m.push(v),h.push(g)}}return h}function Er(t,e,n,r){return nr(t,function(t,i,o){e(r,n(t),i,o)}),r}function $r(e,n,r){n=Ci(n,e),e=Go(e,n);var i=null==e?e:e[Qo(wa(n))];return null==i?J:t(i,e,r)}function Sr(t){return ou(t)&&br(t)==Pt}function Ar(t){return ou(t)&&br(t)==ie}function Tr(t){return ou(t)&&br(t)==qt}function Dr(t,e,n,r,i){return t===e||(null==t||null==e||!ou(t)&&!ou(e)?t!==t&&e!==e:Fr(t,e,n,r,Dr,i))}function Fr(t,e,n,r,i,o){var a=vh(t),s=vh(e),u=a?Lt:Sf(t),l=s?Lt:Sf(e);u=u==Pt?Gt:u,l=l==Pt?Gt:l;var c=u==Gt,f=l==Gt,h=u==l;if(h&&bh(t)){if(!bh(e))return!1;a=!0,c=!1}if(h&&!c)return o||(o=new yn),a||Ch(t)?ho(t,e,n,r,i,o):po(t,e,u,n,r,i,o);if(!(n<)){var d=c&&gc.call(t,"__wrapped__"),p=f&&gc.call(e,"__wrapped__");if(d||p){var m=d?t.value():t,g=p?e.value():e;return o||(o=new yn),i(m,g,n,r,o)}}return!!h&&(o||(o=new yn),mo(t,e,n,r,i,o))}function Nr(t){return ou(t)&&Sf(t)==Vt}function Mr(t,e,n,r){var i=n.length,o=i,a=!r;if(null==t)return!o;for(t=sc(t);i--;){var s=n[i];if(a&&s[2]?s[1]!==t[s[0]]:!(s[0]in t))return!1}for(;++i<o;){s=n[i];var u=s[0],l=t[u],c=s[1];if(a&&s[2]){if(l===J&&!(u in t))return!1}else{var f=new yn;if(r)var h=r(l,c,u,t,e,f);if(!(h===J?Dr(c,l,lt|ct,r,f):h))return!1}}return!0}function Or(t){if(!iu(t)||Io(t))return!1;var e=eu(t)?xc:He;return e.test(ta(t))}function jr(t){return ou(t)&&br(t)==Xt}function Pr(t){return ou(t)&&Sf(t)==Jt}function Lr(t){return ou(t)&&ru(t.length)&&!!Un[br(t)]}function Rr(t){return"function"==typeof t?t:null==t?Dl:"object"==typeof t?vh(t)?Ur(t[0],t[1]):Br(t):Rl(t)}function Ir(t){if(!qo(t))return Uc(t);var e=[];for(var n in sc(t))gc.call(t,n)&&"constructor"!=n&&e.push(n);return e}function qr(t){if(!iu(t))return Vo(t);var e=qo(t),n=[];for(var r in t)("constructor"!=r||!e&&gc.call(t,r))&&n.push(r);return n}function zr(t,e){return t<e}function Hr(t,e){var n=-1,r=Ws(t)?nc(t.length):[];return mf(t,function(t,i,o){r[++n]=e(t,i,o)}),r}function Br(t){var e=ko(t);return 1==e.length&&e[0][2]?Ho(e[0][0],e[0][1]):function(n){return n===t||Mr(n,t,e)}}function Ur(t,e){return Po(t)&&zo(e)?Ho(Qo(t),e):function(n){var r=Lu(n,t);return r===J&&r===e?Iu(n,t):Dr(e,r,lt|ct)}}function Vr(t,e,n,r,i){t!==e&&vf(e,function(o,a){if(iu(o))i||(i=new yn),Wr(t,e,a,n,Vr,r,i);else{var s=r?r(H(t,a),o,a+"",t,e,i):J;s===J&&(s=o),An(t,a,s)}},zu)}function Wr(t,e,n,r,i,o,a){var s=H(t,n),u=H(e,n),l=a.get(u);if(l)return void An(t,n,l);var c=o?o(s,u,n+"",t,e,a):J,f=c===J;if(f){var h=vh(u),d=!h&&bh(u),p=!h&&!d&&Ch(u);c=u,h||d||p?vh(s)?c=s:Ys(s)?c=Pi(s):d?(f=!1,c=$i(u,!0)):p?(f=!1,c=Fi(u,!0)):c=[]:du(u)||gh(u)?(c=s,gh(s)?c=Eu(s):(!iu(s)||r&&eu(s))&&(c=Do(u))):f=!1}f&&(a.set(u,c),i(c,u,r,o,a),a["delete"](u)),An(t,n,c)}function Yr(t,e){var n=t.length;if(n)return e+=e<0?n:0,Oo(e,n)?t[e]:J}function Gr(t,e,n){var r=-1;e=u(e.length?e:[Dl],A(wo()));var i=Hr(t,function(t,n,i){var o=u(e,function(e){return e(t)});return{criteria:o,index:++r,value:t}});return C(i,function(t,e){return Mi(t,e,n)})}function Kr(t,e){return Zr(t,e,function(e,n){return Iu(t,n)})}function Zr(t,e,n){for(var r=-1,i=e.length,o={};++r<i;){var a=e[r],s=hr(t,a);n(s,a)&&ai(o,Ci(a,t),s)}return o}function Xr(t){return function(e){return hr(e,t)}}function Jr(t,e,n,r){var i=r?y:v,o=-1,a=e.length,s=t;for(t===e&&(e=Pi(e)),n&&(s=u(t,A(n)));++o<a;)for(var l=0,c=e[o],f=n?n(c):c;(l=i(s,f,l,r))>-1;)s!==t&&Dc.call(s,l,1),Dc.call(t,l,1);return t}function Qr(t,e){for(var n=t?e.length:0,r=n-1;n--;){var i=e[n];if(n==r||i!==o){var o=i;Oo(i)?Dc.call(t,i,1):gi(t,i)}}return t}function ti(t,e){return t+Ic(Kc()*(e-t+1))}function ei(t,e,n,r){for(var i=-1,o=Vc(Rc((e-t)/(n||1)),0),a=nc(o);o--;)a[r?o:++i]=t,t+=n;return a}function ni(t,e){var n="";if(!t||e<1||e>Tt)return n;do e%2&&(n+=t),e=Ic(e/2),e&&(t+=t);while(e);return n}function ri(t,e){return Ff(Yo(t,e,Dl),t+"")}function ii(t){return En(Qu(t))}function oi(t,e){var n=Qu(t);return Jo(n,Rn(e,0,n.length))}function ai(t,e,n,r){if(!iu(t))return t;e=Ci(e,t);for(var i=-1,o=e.length,a=o-1,s=t;null!=s&&++i<o;){var u=Qo(e[i]),l=n;if(i!=a){var c=s[u];l=r?r(c,u,s):J,l===J&&(l=iu(c)?c:Oo(e[i+1])?[]:{})}Tn(s,u,l),s=s[u]}return t}function si(t){return Jo(Qu(t))}function ui(t,e,n){var r=-1,i=t.length;e<0&&(e=-e>i?0:i+e),n=n>i?i:n,n<0&&(n+=i),i=e>n?0:n-e>>>0,e>>>=0;for(var o=nc(i);++r<i;)o[r]=t[r+e];return o}function li(t,e){var n;return mf(t,function(t,r,i){return n=e(t,r,i),!n}),!!n}function ci(t,e,n){var r=0,i=null==t?r:t.length;if("number"==typeof e&&e===e&&i<=Ot){for(;r<i;){var o=r+i>>>1,a=t[o];null!==a&&!gu(a)&&(n?a<=e:a<e)?r=o+1:i=o}return i}return fi(t,e,Dl,n)}function fi(t,e,n,r){e=n(e);for(var i=0,o=null==t?0:t.length,a=e!==e,s=null===e,u=gu(e),l=e===J;i<o;){var c=Ic((i+o)/2),f=n(t[c]),h=f!==J,d=null===f,p=f===f,m=gu(f);if(a)var g=r||p;else g=l?p&&(r||h):s?p&&h&&(r||!d):u?p&&h&&!d&&(r||!m):!d&&!m&&(r?f<=e:f<e);g?i=c+1:o=c}return Wc(o,Mt)}function hi(t,e){for(var n=-1,r=t.length,i=0,o=[];++n<r;){var a=t[n],s=e?e(a):a;if(!n||!Vs(s,u)){var u=s;o[i++]=0===a?0:a}}return o}function di(t){return"number"==typeof t?t:gu(t)?Ft:+t}function pi(t){if("string"==typeof t)return t;if(vh(t))return u(t,pi)+"";if(gu(t))return df?df.call(t):"";var e=t+"";return"0"==e&&1/t==-At?"-0":e}function mi(t,e,n){var r=-1,i=a,o=t.length,u=!0,l=[],c=l;if(n)u=!1,i=s;else if(o>=tt){var f=e?null:kf(t);if(f)return B(f);u=!1,i=D,c=new mn}else c=e?[]:l;t:for(;++r<o;){var h=t[r],d=e?e(h):h;if(h=n||0!==h?h:0,u&&d===d){for(var p=c.length;p--;)if(c[p]===d)continue t;e&&c.push(d),l.push(h)}else i(c,d,n)||(c!==l&&c.push(d),l.push(h))}return l}function gi(t,e){return e=Ci(e,t),t=Go(t,e),null==t||delete t[Qo(wa(e))]}function vi(t,e,n,r){return ai(t,e,n(hr(t,e)),r)}function yi(t,e,n,r){for(var i=t.length,o=r?i:-1;(r?o--:++o<i)&&e(t[o],o,t););return n?ui(t,r?0:o,r?o+1:i):ui(t,r?o+1:0,r?i:o)}function bi(t,e){var n=t;return n instanceof Z&&(n=n.value()),c(e,function(t,e){return e.func.apply(e.thisArg,l([t],e.args))},n)}function _i(t,e,n){var r=t.length;if(r<2)return r?mi(t[0]):[];for(var i=-1,o=nc(r);++i<r;)for(var a=t[i],s=-1;++s<r;)s!=i&&(o[i]=Yn(o[i]||a,t[s],e,n));return mi(er(o,1),e,n)}function wi(t,e,n){for(var r=-1,i=t.length,o=e.length,a={};++r<i;){var s=r<o?e[r]:J;n(a,t[r],s)}return a}function xi(t){return Ys(t)?t:[]}function ki(t){return"function"==typeof t?t:Dl}function Ci(t,e){return vh(t)?t:Po(t,e)?[t]:Nf(Su(t))}function Ei(t,e,n){var r=t.length;return n=n===J?r:n,!e&&n>=r?t:ui(t,e,n)}function $i(t,e){if(e)return t.slice();var n=t.length,r=$c?$c(n):new t.constructor(n);return t.copy(r),r}function Si(t){var e=new t.constructor(t.byteLength);return new Ec(e).set(new Ec(t)),e}function Ai(t,e){var n=e?Si(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)}function Ti(t){var e=new t.constructor(t.source,Ie.exec(t));return e.lastIndex=t.lastIndex,e}function Di(t){return hf?sc(hf.call(t)):{}}function Fi(t,e){var n=e?Si(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}function Ni(t,e){if(t!==e){var n=t!==J,r=null===t,i=t===t,o=gu(t),a=e!==J,s=null===e,u=e===e,l=gu(e);if(!s&&!l&&!o&&t>e||o&&a&&u&&!s&&!l||r&&a&&u||!n&&u||!i)return 1;if(!r&&!o&&!l&&t<e||l&&n&&i&&!r&&!o||s&&n&&i||!a&&i||!u)return-1}return 0}function Mi(t,e,n){for(var r=-1,i=t.criteria,o=e.criteria,a=i.length,s=n.length;++r<a;){var u=Ni(i[r],o[r]);if(u){if(r>=s)return u;var l=n[r];return u*("desc"==l?-1:1)}}return t.index-e.index}function Oi(t,e,n,r){for(var i=-1,o=t.length,a=n.length,s=-1,u=e.length,l=Vc(o-a,0),c=nc(u+l),f=!r;++s<u;)c[s]=e[s];
|
||
for(;++i<a;)(f||i<o)&&(c[n[i]]=t[i]);for(;l--;)c[s++]=t[i++];return c}function ji(t,e,n,r){for(var i=-1,o=t.length,a=-1,s=n.length,u=-1,l=e.length,c=Vc(o-s,0),f=nc(c+l),h=!r;++i<c;)f[i]=t[i];for(var d=i;++u<l;)f[d+u]=e[u];for(;++a<s;)(h||i<o)&&(f[d+n[a]]=t[i++]);return f}function Pi(t,e){var n=-1,r=t.length;for(e||(e=nc(r));++n<r;)e[n]=t[n];return e}function Li(t,e,n,r){var i=!n;n||(n={});for(var o=-1,a=e.length;++o<a;){var s=e[o],u=r?r(n[s],t[s],s,n,t):J;u===J&&(u=t[s]),i?On(n,s,u):Tn(n,s,u)}return n}function Ri(t,e){return Li(t,Ef(t),e)}function Ii(t,e){return Li(t,$f(t),e)}function qi(t,n){return function(r,i){var o=vh(r)?e:Fn,a=n?n():{};return o(r,t,wo(i,2),a)}}function zi(t){return ri(function(e,n){var r=-1,i=n.length,o=i>1?n[i-1]:J,a=i>2?n[2]:J;for(o=t.length>3&&"function"==typeof o?(i--,o):J,a&&jo(n[0],n[1],a)&&(o=i<3?J:o,i=1),e=sc(e);++r<i;){var s=n[r];s&&t(e,s,r,o)}return e})}function Hi(t,e){return function(n,r){if(null==n)return n;if(!Ws(n))return t(n,r);for(var i=n.length,o=e?i:-1,a=sc(n);(e?o--:++o<i)&&r(a[o],o,a)!==!1;);return n}}function Bi(t){return function(e,n,r){for(var i=-1,o=sc(e),a=r(e),s=a.length;s--;){var u=a[t?s:++i];if(n(o[u],u,o)===!1)break}return e}}function Ui(t,e,n){function r(){var e=this&&this!==tr&&this instanceof r?o:t;return e.apply(i?n:this,arguments)}var i=e&ft,o=Yi(t);return r}function Vi(t){return function(e){e=Su(e);var n=P(e)?G(e):J,r=n?n[0]:e.charAt(0),i=n?Ei(n,1).join(""):e.slice(1);return r[t]()+i}}function Wi(t){return function(e){return c(El(ol(e).replace(Pn,"")),t,"")}}function Yi(t){return function(){var e=arguments;switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3]);case 5:return new t(e[0],e[1],e[2],e[3],e[4]);case 6:return new t(e[0],e[1],e[2],e[3],e[4],e[5]);case 7:return new t(e[0],e[1],e[2],e[3],e[4],e[5],e[6])}var n=pf(t.prototype),r=t.apply(n,e);return iu(r)?r:n}}function Gi(e,n,r){function i(){for(var a=arguments.length,s=nc(a),u=a,l=_o(i);u--;)s[u]=arguments[u];var c=a<3&&s[0]!==l&&s[a-1]!==l?[]:z(s,l);if(a-=c.length,a<r)return oo(e,n,Xi,i.placeholder,J,s,c,J,J,r-a);var f=this&&this!==tr&&this instanceof i?o:e;return t(f,this,s)}var o=Yi(e);return i}function Ki(t){return function(e,n,r){var i=sc(e);if(!Ws(e)){var o=wo(n,3);e=qu(e),n=function(t){return o(i[t],t,i)}}var a=t(e,n,r);return a>-1?i[o?e[a]:a]:J}}function Zi(t){return go(function(e){var n=e.length,r=n,i=K.prototype.thru;for(t&&e.reverse();r--;){var o=e[r];if("function"!=typeof o)throw new cc(nt);if(i&&!a&&"wrapper"==bo(o))var a=new K([],(!0))}for(r=a?r:n;++r<n;){o=e[r];var s=bo(o),u="wrapper"==s?Cf(o):J;a=u&&Ro(u[0])&&u[1]==(yt|pt|gt|bt)&&!u[4].length&&1==u[9]?a[bo(u[0])].apply(a,u[3]):1==o.length&&Ro(o)?a[s]():a.thru(o)}return function(){var t=arguments,r=t[0];if(a&&1==t.length&&vh(r))return a.plant(r).value();for(var i=0,o=n?e[i].apply(this,t):r;++i<n;)o=e[i].call(this,o);return o}})}function Xi(t,e,n,r,i,o,a,s,u,l){function c(){for(var v=arguments.length,y=nc(v),b=v;b--;)y[b]=arguments[b];if(p)var _=_o(c),w=M(y,_);if(r&&(y=Oi(y,r,i,p)),o&&(y=ji(y,o,a,p)),v-=w,p&&v<l){var x=z(y,_);return oo(t,e,Xi,c.placeholder,n,y,x,s,u,l-v)}var k=h?n:this,C=d?k[t]:t;return v=y.length,s?y=Ko(y,s):m&&v>1&&y.reverse(),f&&u<v&&(y.length=u),this&&this!==tr&&this instanceof c&&(C=g||Yi(C)),C.apply(k,y)}var f=e&yt,h=e&ft,d=e&ht,p=e&(pt|mt),m=e&_t,g=d?J:Yi(t);return c}function Ji(t,e){return function(n,r){return Er(n,t,e(r),{})}}function Qi(t,e){return function(n,r){var i;if(n===J&&r===J)return e;if(n!==J&&(i=n),r!==J){if(i===J)return r;"string"==typeof n||"string"==typeof r?(n=pi(n),r=pi(r)):(n=di(n),r=di(r)),i=t(n,r)}return i}}function to(e){return go(function(n){return n=u(n,A(wo())),ri(function(r){var i=this;return e(n,function(e){return t(e,i,r)})})})}function eo(t,e){e=e===J?" ":pi(e);var n=e.length;if(n<2)return n?ni(e,t):e;var r=ni(e,Rc(t/Y(e)));return P(e)?Ei(G(r),0,t).join(""):r.slice(0,t)}function no(e,n,r,i){function o(){for(var n=-1,u=arguments.length,l=-1,c=i.length,f=nc(c+u),h=this&&this!==tr&&this instanceof o?s:e;++l<c;)f[l]=i[l];for(;u--;)f[l++]=arguments[++n];return t(h,a?r:this,f)}var a=n&ft,s=Yi(e);return o}function ro(t){return function(e,n,r){return r&&"number"!=typeof r&&jo(e,n,r)&&(n=r=J),e=wu(e),n===J?(n=e,e=0):n=wu(n),r=r===J?e<n?1:-1:wu(r),ei(e,n,r,t)}}function io(t){return function(e,n){return"string"==typeof e&&"string"==typeof n||(e=Cu(e),n=Cu(n)),t(e,n)}}function oo(t,e,n,r,i,o,a,s,u,l){var c=e&pt,f=c?a:J,h=c?J:a,d=c?o:J,p=c?J:o;e|=c?gt:vt,e&=~(c?vt:gt),e&dt||(e&=~(ft|ht));var m=[t,e,i,d,f,p,h,s,u,l],g=n.apply(J,m);return Ro(t)&&Tf(g,m),g.placeholder=r,Zo(g,t,e)}function ao(t){var e=ac[t];return function(t,n){if(t=Cu(t),n=null==n?0:Wc(xu(n),292)){var r=(Su(t)+"e").split("e"),i=e(r[0]+"e"+(+r[1]+n));return r=(Su(i)+"e").split("e"),+(r[0]+"e"+(+r[1]-n))}return e(t)}}function so(t){return function(e){var n=Sf(e);return n==Vt?I(e):n==Jt?U(e):S(e,t(e))}}function uo(t,e,n,r,i,o,a,s){var u=e&ht;if(!u&&"function"!=typeof t)throw new cc(nt);var l=r?r.length:0;if(l||(e&=~(gt|vt),r=i=J),a=a===J?a:Vc(xu(a),0),s=s===J?s:xu(s),l-=i?i.length:0,e&vt){var c=r,f=i;r=i=J}var h=u?J:Cf(t),d=[t,e,n,r,i,c,f,o,a,s];if(h&&Uo(d,h),t=d[0],e=d[1],n=d[2],r=d[3],i=d[4],s=d[9]=d[9]===J?u?0:t.length:Vc(d[9]-l,0),!s&&e&(pt|mt)&&(e&=~(pt|mt)),e&&e!=ft)p=e==pt||e==mt?Gi(t,e,s):e!=gt&&e!=(ft|gt)||i.length?Xi.apply(J,d):no(t,e,n,r);else var p=Ui(t,e,n);var m=h?bf:Tf;return Zo(m(p,d),t,e)}function lo(t,e,n,r){return t===J||Vs(t,dc[n])&&!gc.call(r,n)?e:t}function co(t,e,n,r,i,o){return iu(t)&&iu(e)&&(o.set(e,t),Vr(t,e,J,co,o),o["delete"](e)),t}function fo(t){return du(t)?J:t}function ho(t,e,n,r,i,o){var a=n<,s=t.length,u=e.length;if(s!=u&&!(a&&u>s))return!1;var l=o.get(t);if(l&&o.get(e))return l==e;var c=-1,f=!0,d=n&ct?new mn:J;for(o.set(t,e),o.set(e,t);++c<s;){var p=t[c],m=e[c];if(r)var g=a?r(m,p,c,e,t,o):r(p,m,c,t,e,o);if(g!==J){if(g)continue;f=!1;break}if(d){if(!h(e,function(t,e){if(!D(d,e)&&(p===t||i(p,t,n,r,o)))return d.push(e)})){f=!1;break}}else if(p!==m&&!i(p,m,n,r,o)){f=!1;break}}return o["delete"](t),o["delete"](e),f}function po(t,e,n,r,i,o,a){switch(n){case oe:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case ie:return!(t.byteLength!=e.byteLength||!o(new Ec(t),new Ec(e)));case It:case qt:case Wt:return Vs(+t,+e);case Ht:return t.name==e.name&&t.message==e.message;case Xt:case Qt:return t==e+"";case Vt:var s=I;case Jt:var u=r<if(s||(s=B),t.size!=e.size&&!u)return!1;var l=a.get(t);if(l)return l==e;r|=ct,a.set(t,e);var c=ho(s(t),s(e),r,i,o,a);return a["delete"](t),c;case te:if(hf)return hf.call(t)==hf.call(e)}return!1}function mo(t,e,n,r,i,o){var a=n<,s=vo(t),u=s.length,l=vo(e),c=l.length;if(u!=c&&!a)return!1;for(var f=u;f--;){var h=s[f];if(!(a?h in e:gc.call(e,h)))return!1}var d=o.get(t);if(d&&o.get(e))return d==e;var p=!0;o.set(t,e),o.set(e,t);for(var m=a;++f<u;){h=s[f];var g=t[h],v=e[h];if(r)var y=a?r(v,g,h,e,t,o):r(g,v,h,t,e,o);if(!(y===J?g===v||i(g,v,n,r,o):y)){p=!1;break}m||(m="constructor"==h)}if(p&&!m){var b=t.constructor,_=e.constructor;b!=_&&"constructor"in t&&"constructor"in e&&!("function"==typeof b&&b instanceof b&&"function"==typeof _&&_ instanceof _)&&(p=!1)}return o["delete"](t),o["delete"](e),p}function go(t){return Ff(Yo(t,J,da),t+"")}function vo(t){return gr(t,qu,Ef)}function yo(t){return gr(t,zu,$f)}function bo(t){for(var e=t.name+"",n=of[e],r=gc.call(of,e)?n.length:0;r--;){var i=n[r],o=i.func;if(null==o||o==t)return i.name}return e}function _o(t){var e=gc.call(x,"placeholder")?x:t;return e.placeholder}function wo(){var t=x.iteratee||Fl;return t=t===Fl?Rr:t,arguments.length?t(arguments[0],arguments[1]):t}function xo(t,e){var n=t.__data__;return Lo(e)?n["string"==typeof e?"string":"hash"]:n.map}function ko(t){for(var e=qu(t),n=e.length;n--;){var r=e[n],i=t[r];e[n]=[r,i,zo(i)]}return e}function Co(t,e){var n=j(t,e);return Or(n)?n:J}function Eo(t){var e=gc.call(t,Mc),n=t[Mc];try{t[Mc]=J;var r=!0}catch(i){}var o=bc.call(t);return r&&(e?t[Mc]=n:delete t[Mc]),o}function $o(t,e,n){for(var r=-1,i=n.length;++r<i;){var o=n[r],a=o.size;switch(o.type){case"drop":t+=a;break;case"dropRight":e-=a;break;case"take":e=Wc(e,t+a);break;case"takeRight":t=Vc(t,e-a)}}return{start:t,end:e}}function So(t){var e=t.match(Oe);return e?e[1].split(je):[]}function Ao(t,e,n){e=Ci(e,t);for(var r=-1,i=e.length,o=!1;++r<i;){var a=Qo(e[r]);if(!(o=null!=t&&n(t,a)))break;t=t[a]}return o||++r!=i?o:(i=null==t?0:t.length,!!i&&ru(i)&&Oo(a,i)&&(vh(t)||gh(t)))}function To(t){var e=t.length,n=new t.constructor(e);return e&&"string"==typeof t[0]&&gc.call(t,"index")&&(n.index=t.index,n.input=t.input),n}function Do(t){return"function"!=typeof t.constructor||qo(t)?{}:pf(Sc(t))}function Fo(t,e,n){var r=t.constructor;switch(e){case ie:return Si(t);case It:case qt:return new r((+t));case oe:return Ai(t,n);case ae:case se:case ue:case le:case ce:case fe:case he:case de:case pe:return Fi(t,n);case Vt:return new r;case Wt:case Qt:return new r(t);case Xt:return Ti(t);case Jt:return new r;case te:return Di(t)}}function No(t,e){var n=e.length;if(!n)return t;var r=n-1;return e[r]=(n>1?"& ":"")+e[r],e=e.join(n>2?", ":" "),t.replace(Me,"{\n/* [wrapped with "+e+"] */\n")}function Mo(t){return vh(t)||gh(t)||!!(Fc&&t&&t[Fc])}function Oo(t,e){var n=typeof t;return e=null==e?Tt:e,!!e&&("number"==n||"symbol"!=n&&Ue.test(t))&&t>-1&&t%1==0&&t<e}function jo(t,e,n){if(!iu(n))return!1;var r=typeof e;return!!("number"==r?Ws(n)&&Oo(e,n.length):"string"==r&&e in n)&&Vs(n[e],t)}function Po(t,e){if(vh(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!gu(t))||($e.test(t)||!Ee.test(t)||null!=e&&t in sc(e))}function Lo(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}function Ro(t){var e=bo(t),n=x[e];if("function"!=typeof n||!(e in Z.prototype))return!1;if(t===n)return!0;var r=Cf(n);return!!r&&t===r[0]}function Io(t){return!!yc&&yc in t}function qo(t){var e=t&&t.constructor,n="function"==typeof e&&e.prototype||dc;return t===n}function zo(t){return t===t&&!iu(t)}function Ho(t,e){return function(n){return null!=n&&(n[t]===e&&(e!==J||t in sc(n)))}}function Bo(t){var e=Fs(t,function(t){return n.size===it&&n.clear(),t}),n=e.cache;return e}function Uo(t,e){var n=t[1],r=e[1],i=n|r,o=i<(ft|ht|yt),a=r==yt&&n==pt||r==yt&&n==bt&&t[7].length<=e[8]||r==(yt|bt)&&e[7].length<=e[8]&&n==pt;if(!o&&!a)return t;r&ft&&(t[2]=e[2],i|=n&ft?0:dt);var s=e[3];if(s){var u=t[3];t[3]=u?Oi(u,s,e[4]):s,t[4]=u?z(t[3],ot):e[4]}return s=e[5],s&&(u=t[5],t[5]=u?ji(u,s,e[6]):s,t[6]=u?z(t[5],ot):e[6]),s=e[7],s&&(t[7]=s),r&yt&&(t[8]=null==t[8]?e[8]:Wc(t[8],e[8])),null==t[9]&&(t[9]=e[9]),t[0]=e[0],t[1]=i,t}function Vo(t){var e=[];if(null!=t)for(var n in sc(t))e.push(n);return e}function Wo(t){return bc.call(t)}function Yo(e,n,r){return n=Vc(n===J?e.length-1:n,0),function(){for(var i=arguments,o=-1,a=Vc(i.length-n,0),s=nc(a);++o<a;)s[o]=i[n+o];o=-1;for(var u=nc(n+1);++o<n;)u[o]=i[o];return u[n]=r(s),t(e,this,u)}}function Go(t,e){return e.length<2?t:hr(t,ui(e,0,-1))}function Ko(t,e){for(var n=t.length,r=Wc(e.length,n),i=Pi(t);r--;){var o=e[r];t[r]=Oo(o,n)?i[o]:J}return t}function Zo(t,e,n){var r=e+"";return Ff(t,No(r,ea(So(r),n)))}function Xo(t){var e=0,n=0;return function(){var r=Yc(),i=Ct-(r-n);if(n=r,i>0){if(++e>=kt)return arguments[0]}else e=0;return t.apply(J,arguments)}}function Jo(t,e){var n=-1,r=t.length,i=r-1;for(e=e===J?r:e;++n<e;){var o=ti(n,i),a=t[o];t[o]=t[n],t[n]=a}return t.length=e,t}function Qo(t){if("string"==typeof t||gu(t))return t;var e=t+"";return"0"==e&&1/t==-At?"-0":e}function ta(t){if(null!=t){try{return mc.call(t)}catch(e){}try{return t+""}catch(e){}}return""}function ea(t,e){return n(jt,function(n){var r="_."+n[0];e&n[1]&&!a(t,r)&&t.push(r)}),t.sort()}function na(t){if(t instanceof Z)return t.clone();var e=new K(t.__wrapped__,t.__chain__);return e.__actions__=Pi(t.__actions__),e.__index__=t.__index__,e.__values__=t.__values__,e}function ra(t,e,n){e=(n?jo(t,e,n):e===J)?1:Vc(xu(e),0);var r=null==t?0:t.length;if(!r||e<1)return[];for(var i=0,o=0,a=nc(Rc(r/e));i<r;)a[o++]=ui(t,i,i+=e);return a}function ia(t){for(var e=-1,n=null==t?0:t.length,r=0,i=[];++e<n;){var o=t[e];o&&(i[r++]=o)}return i}function oa(){var t=arguments.length;if(!t)return[];for(var e=nc(t-1),n=arguments[0],r=t;r--;)e[r-1]=arguments[r];return l(vh(n)?Pi(n):[n],er(e,1))}function aa(t,e,n){var r=null==t?0:t.length;return r?(e=n||e===J?1:xu(e),ui(t,e<0?0:e,r)):[]}function sa(t,e,n){var r=null==t?0:t.length;return r?(e=n||e===J?1:xu(e),e=r-e,ui(t,0,e<0?0:e)):[]}function ua(t,e){return t&&t.length?yi(t,wo(e,3),!0,!0):[]}function la(t,e){return t&&t.length?yi(t,wo(e,3),!0):[]}function ca(t,e,n,r){var i=null==t?0:t.length;return i?(n&&"number"!=typeof n&&jo(t,e,n)&&(n=0,r=i),Jn(t,e,n,r)):[]}function fa(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var i=null==n?0:xu(n);return i<0&&(i=Vc(r+i,0)),g(t,wo(e,3),i)}function ha(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var i=r-1;return n!==J&&(i=xu(n),i=n<0?Vc(r+i,0):Wc(i,r-1)),g(t,wo(e,3),i,!0)}function da(t){var e=null==t?0:t.length;return e?er(t,1):[]}function pa(t){var e=null==t?0:t.length;return e?er(t,At):[]}function ma(t,e){var n=null==t?0:t.length;return n?(e=e===J?1:xu(e),er(t,e)):[]}function ga(t){for(var e=-1,n=null==t?0:t.length,r={};++e<n;){var i=t[e];r[i[0]]=i[1]}return r}function va(t){return t&&t.length?t[0]:J}function ya(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var i=null==n?0:xu(n);return i<0&&(i=Vc(r+i,0)),v(t,e,i)}function ba(t){var e=null==t?0:t.length;return e?ui(t,0,-1):[]}function _a(t,e){return null==t?"":Bc.call(t,e)}function wa(t){var e=null==t?0:t.length;return e?t[e-1]:J}function xa(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var i=r;return n!==J&&(i=xu(n),i=i<0?Vc(r+i,0):Wc(i,r-1)),e===e?W(t,e,i):g(t,b,i,!0)}function ka(t,e){return t&&t.length?Yr(t,xu(e)):J}function Ca(t,e){return t&&t.length&&e&&e.length?Jr(t,e):t}function Ea(t,e,n){return t&&t.length&&e&&e.length?Jr(t,e,wo(n,2)):t}function $a(t,e,n){return t&&t.length&&e&&e.length?Jr(t,e,J,n):t}function Sa(t,e){var n=[];if(!t||!t.length)return n;var r=-1,i=[],o=t.length;for(e=wo(e,3);++r<o;){var a=t[r];e(a,r,t)&&(n.push(a),i.push(r))}return Qr(t,i),n}function Aa(t){return null==t?t:Zc.call(t)}function Ta(t,e,n){var r=null==t?0:t.length;return r?(n&&"number"!=typeof n&&jo(t,e,n)?(e=0,n=r):(e=null==e?0:xu(e),n=n===J?r:xu(n)),ui(t,e,n)):[]}function Da(t,e){return ci(t,e)}function Fa(t,e,n){return fi(t,e,wo(n,2))}function Na(t,e){var n=null==t?0:t.length;if(n){var r=ci(t,e);if(r<n&&Vs(t[r],e))return r}return-1}function Ma(t,e){return ci(t,e,!0)}function Oa(t,e,n){return fi(t,e,wo(n,2),!0)}function ja(t,e){var n=null==t?0:t.length;if(n){var r=ci(t,e,!0)-1;if(Vs(t[r],e))return r}return-1}function Pa(t){return t&&t.length?hi(t):[]}function La(t,e){return t&&t.length?hi(t,wo(e,2)):[]}function Ra(t){var e=null==t?0:t.length;return e?ui(t,1,e):[]}function Ia(t,e,n){return t&&t.length?(e=n||e===J?1:xu(e),ui(t,0,e<0?0:e)):[]}function qa(t,e,n){var r=null==t?0:t.length;return r?(e=n||e===J?1:xu(e),e=r-e,ui(t,e<0?0:e,r)):[]}function za(t,e){return t&&t.length?yi(t,wo(e,3),!1,!0):[]}function Ha(t,e){return t&&t.length?yi(t,wo(e,3)):[]}function Ba(t){return t&&t.length?mi(t):[]}function Ua(t,e){return t&&t.length?mi(t,wo(e,2)):[]}function Va(t,e){return e="function"==typeof e?e:J,t&&t.length?mi(t,J,e):[]}function Wa(t){if(!t||!t.length)return[];var e=0;return t=o(t,function(t){if(Ys(t))return e=Vc(t.length,e),!0}),$(e,function(e){return u(t,w(e))})}function Ya(e,n){if(!e||!e.length)return[];var r=Wa(e);return null==n?r:u(r,function(e){return t(n,J,e)})}function Ga(t,e){return wi(t||[],e||[],Tn)}function Ka(t,e){return wi(t||[],e||[],ai)}function Za(t){var e=x(t);return e.__chain__=!0,e}function Xa(t,e){return e(t),t}function Ja(t,e){return e(t)}function Qa(){return Za(this)}function ts(){return new K(this.value(),this.__chain__)}function es(){this.__values__===J&&(this.__values__=_u(this.value()));var t=this.__index__>=this.__values__.length,e=t?J:this.__values__[this.__index__++];return{done:t,value:e}}function ns(){return this}function rs(t){for(var e,n=this;n instanceof V;){var r=na(n);r.__index__=0,r.__values__=J,e?i.__wrapped__=r:e=r;var i=r;n=n.__wrapped__}return i.__wrapped__=t,e}function is(){var t=this.__wrapped__;if(t instanceof Z){var e=t;return this.__actions__.length&&(e=new Z(this)),e=e.reverse(),e.__actions__.push({func:Ja,args:[Aa],thisArg:J}),new K(e,this.__chain__)}return this.thru(Aa)}function os(){return bi(this.__wrapped__,this.__actions__)}function as(t,e,n){var r=vh(t)?i:Gn;return n&&jo(t,e,n)&&(e=J),r(t,wo(e,3))}function ss(t,e){var n=vh(t)?o:Qn;return n(t,wo(e,3))}function us(t,e){return er(ps(t,e),1)}function ls(t,e){return er(ps(t,e),At)}function cs(t,e,n){return n=n===J?1:xu(n),er(ps(t,e),n)}function fs(t,e){var r=vh(t)?n:mf;return r(t,wo(e,3))}function hs(t,e){var n=vh(t)?r:gf;return n(t,wo(e,3))}function ds(t,e,n,r){t=Ws(t)?t:Qu(t),n=n&&!r?xu(n):0;var i=t.length;return n<0&&(n=Vc(i+n,0)),mu(t)?n<=i&&t.indexOf(e,n)>-1:!!i&&v(t,e,n)>-1}function ps(t,e){var n=vh(t)?u:Hr;return n(t,wo(e,3))}function ms(t,e,n,r){return null==t?[]:(vh(e)||(e=null==e?[]:[e]),n=r?J:n,vh(n)||(n=null==n?[]:[n]),Gr(t,e,n))}function gs(t,e,n){var r=vh(t)?c:k,i=arguments.length<3;return r(t,wo(e,4),n,i,mf)}function vs(t,e,n){var r=vh(t)?f:k,i=arguments.length<3;return r(t,wo(e,4),n,i,gf)}function ys(t,e){var n=vh(t)?o:Qn;return n(t,Ns(wo(e,3)))}function bs(t){var e=vh(t)?En:ii;return e(t)}function _s(t,e,n){e=(n?jo(t,e,n):e===J)?1:xu(e);var r=vh(t)?$n:oi;return r(t,e)}function ws(t){var e=vh(t)?Sn:si;return e(t)}function xs(t){if(null==t)return 0;if(Ws(t))return mu(t)?Y(t):t.length;var e=Sf(t);return e==Vt||e==Jt?t.size:Ir(t).length}function ks(t,e,n){var r=vh(t)?h:li;return n&&jo(t,e,n)&&(e=J),r(t,wo(e,3))}function Cs(t,e){if("function"!=typeof e)throw new cc(nt);return t=xu(t),function(){if(--t<1)return e.apply(this,arguments)}}function Es(t,e,n){return e=n?J:e,e=t&&null==e?t.length:e,uo(t,yt,J,J,J,J,e)}function $s(t,e){var n;if("function"!=typeof e)throw new cc(nt);return t=xu(t),function(){return--t>0&&(n=e.apply(this,arguments)),t<=1&&(e=J),n}}function Ss(t,e,n){e=n?J:e;var r=uo(t,pt,J,J,J,J,J,e);return r.placeholder=Ss.placeholder,r}function As(t,e,n){e=n?J:e;var r=uo(t,mt,J,J,J,J,J,e);return r.placeholder=As.placeholder,r}function Ts(t,e,n){function r(e){var n=h,r=d;return h=d=J,y=e,m=t.apply(r,n)}function i(t){return y=t,g=Df(s,e),b?r(t):m}function o(t){var n=t-v,r=t-y,i=e-n;return _?Wc(i,p-r):i}function a(t){var n=t-v,r=t-y;return v===J||n>=e||n<0||_&&r>=p}function s(){var t=oh();return a(t)?u(t):void(g=Df(s,o(t)))}function u(t){return g=J,w&&h?r(t):(h=d=J,m)}function l(){g!==J&&xf(g),y=0,h=v=d=g=J}function c(){return g===J?m:u(oh())}function f(){var t=oh(),n=a(t);if(h=arguments,d=this,v=t,n){if(g===J)return i(v);if(_)return g=Df(s,e),r(v)}return g===J&&(g=Df(s,e)),m}var h,d,p,m,g,v,y=0,b=!1,_=!1,w=!0;if("function"!=typeof t)throw new cc(nt);return e=Cu(e)||0,iu(n)&&(b=!!n.leading,_="maxWait"in n,p=_?Vc(Cu(n.maxWait)||0,e):p,w="trailing"in n?!!n.trailing:w),f.cancel=l,f.flush=c,f}function Ds(t){return uo(t,_t)}function Fs(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new cc(nt);var n=function(){var r=arguments,i=e?e.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=t.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new(Fs.Cache||ln),n}function Ns(t){if("function"!=typeof t)throw new cc(nt);return function(){var e=arguments;switch(e.length){case 0:return!t.call(this);case 1:return!t.call(this,e[0]);case 2:return!t.call(this,e[0],e[1]);case 3:return!t.call(this,e[0],e[1],e[2])}return!t.apply(this,e)}}function Ms(t){return $s(2,t)}function Os(t,e){if("function"!=typeof t)throw new cc(nt);return e=e===J?e:xu(e),ri(t,e)}function js(e,n){if("function"!=typeof e)throw new cc(nt);return n=null==n?0:Vc(xu(n),0),ri(function(r){var i=r[n],o=Ei(r,0,n);return i&&l(o,i),t(e,this,o)})}function Ps(t,e,n){var r=!0,i=!0;if("function"!=typeof t)throw new cc(nt);return iu(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),Ts(t,e,{leading:r,maxWait:e,trailing:i})}function Ls(t){return Es(t,1)}function Rs(t,e){return fh(ki(e),t)}function Is(){if(!arguments.length)return[];var t=arguments[0];return vh(t)?t:[t]}function qs(t){return In(t,ut)}function zs(t,e){return e="function"==typeof e?e:J,In(t,ut,e)}function Hs(t){return In(t,at|ut)}function Bs(t,e){return e="function"==typeof e?e:J,In(t,at|ut,e)}function Us(t,e){return null==e||zn(t,e,qu(e))}function Vs(t,e){return t===e||t!==t&&e!==e}function Ws(t){return null!=t&&ru(t.length)&&!eu(t)}function Ys(t){return ou(t)&&Ws(t)}function Gs(t){return t===!0||t===!1||ou(t)&&br(t)==It}function Ks(t){return ou(t)&&1===t.nodeType&&!du(t)}function Zs(t){if(null==t)return!0;if(Ws(t)&&(vh(t)||"string"==typeof t||"function"==typeof t.splice||bh(t)||Ch(t)||gh(t)))return!t.length;var e=Sf(t);if(e==Vt||e==Jt)return!t.size;if(qo(t))return!Ir(t).length;for(var n in t)if(gc.call(t,n))return!1;return!0}function Xs(t,e){return Dr(t,e)}function Js(t,e,n){n="function"==typeof n?n:J;var r=n?n(t,e):J;return r===J?Dr(t,e,J,n):!!r}function Qs(t){if(!ou(t))return!1;var e=br(t);return e==Ht||e==zt||"string"==typeof t.message&&"string"==typeof t.name&&!du(t)}function tu(t){return"number"==typeof t&&Hc(t)}function eu(t){if(!iu(t))return!1;var e=br(t);return e==Bt||e==Ut||e==Rt||e==Zt}function nu(t){return"number"==typeof t&&t==xu(t)}function ru(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=Tt}function iu(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}function ou(t){return null!=t&&"object"==typeof t}function au(t,e){return t===e||Mr(t,e,ko(e))}function su(t,e,n){return n="function"==typeof n?n:J,Mr(t,e,ko(e),n)}function uu(t){return hu(t)&&t!=+t}function lu(t){if(Af(t))throw new ic(et);return Or(t)}function cu(t){return null===t}function fu(t){return null==t}function hu(t){return"number"==typeof t||ou(t)&&br(t)==Wt}function du(t){if(!ou(t)||br(t)!=Gt)return!1;var e=Sc(t);if(null===e)return!0;var n=gc.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&mc.call(n)==_c}function pu(t){return nu(t)&&t>=-Tt&&t<=Tt}function mu(t){return"string"==typeof t||!vh(t)&&ou(t)&&br(t)==Qt}function gu(t){return"symbol"==typeof t||ou(t)&&br(t)==te}function vu(t){return t===J}function yu(t){return ou(t)&&Sf(t)==ne}function bu(t){return ou(t)&&br(t)==re}function _u(t){if(!t)return[];if(Ws(t))return mu(t)?G(t):Pi(t);if(Nc&&t[Nc])return R(t[Nc]());var e=Sf(t),n=e==Vt?I:e==Jt?B:Qu;return n(t)}function wu(t){if(!t)return 0===t?t:0;if(t=Cu(t),t===At||t===-At){var e=t<0?-1:1;return e*Dt}return t===t?t:0}function xu(t){var e=wu(t),n=e%1;return e===e?n?e-n:e:0}function ku(t){return t?Rn(xu(t),0,Nt):0}function Cu(t){if("number"==typeof t)return t;if(gu(t))return Ft;if(iu(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=iu(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(De,"");var n=ze.test(t);return n||Be.test(t)?Xn(t.slice(2),n?2:8):qe.test(t)?Ft:+t}function Eu(t){return Li(t,zu(t))}function $u(t){return t?Rn(xu(t),-Tt,Tt):0===t?t:0}function Su(t){return null==t?"":pi(t)}function Au(t,e){var n=pf(t);return null==e?n:Nn(n,e)}function Tu(t,e){return m(t,wo(e,3),nr)}function Du(t,e){return m(t,wo(e,3),ir)}function Fu(t,e){return null==t?t:vf(t,wo(e,3),zu)}function Nu(t,e){return null==t?t:yf(t,wo(e,3),zu)}function Mu(t,e){return t&&nr(t,wo(e,3))}function Ou(t,e){return t&&ir(t,wo(e,3))}function ju(t){return null==t?[]:or(t,qu(t))}function Pu(t){return null==t?[]:or(t,zu(t))}function Lu(t,e,n){var r=null==t?J:hr(t,e);return r===J?n:r}function Ru(t,e){return null!=t&&Ao(t,e,wr)}function Iu(t,e){return null!=t&&Ao(t,e,xr)}function qu(t){return Ws(t)?Cn(t):Ir(t)}function zu(t){return Ws(t)?Cn(t,!0):qr(t)}function Hu(t,e){var n={};return e=wo(e,3),nr(t,function(t,r,i){On(n,e(t,r,i),t)}),n}function Bu(t,e){var n={};return e=wo(e,3),nr(t,function(t,r,i){On(n,r,e(t,r,i))}),n}function Uu(t,e){return Vu(t,Ns(wo(e)))}function Vu(t,e){if(null==t)return{};var n=u(yo(t),function(t){return[t]});return e=wo(e),Zr(t,n,function(t,n){return e(t,n[0])})}function Wu(t,e,n){e=Ci(e,t);var r=-1,i=e.length;for(i||(i=1,t=J);++r<i;){var o=null==t?J:t[Qo(e[r])];o===J&&(r=i,o=n),t=eu(o)?o.call(t):o}return t}function Yu(t,e,n){return null==t?t:ai(t,e,n)}function Gu(t,e,n,r){return r="function"==typeof r?r:J,null==t?t:ai(t,e,n,r)}function Ku(t,e,r){var i=vh(t),o=i||bh(t)||Ch(t);if(e=wo(e,4),null==r){var a=t&&t.constructor;r=o?i?new a:[]:iu(t)&&eu(a)?pf(Sc(t)):{}}return(o?n:nr)(t,function(t,n,i){return e(r,t,n,i)}),r}function Zu(t,e){return null==t||gi(t,e)}function Xu(t,e,n){return null==t?t:vi(t,e,ki(n))}function Ju(t,e,n,r){return r="function"==typeof r?r:J,null==t?t:vi(t,e,ki(n),r)}function Qu(t){return null==t?[]:T(t,qu(t))}function tl(t){return null==t?[]:T(t,zu(t))}function el(t,e,n){return n===J&&(n=e,e=J),n!==J&&(n=Cu(n),n=n===n?n:0),e!==J&&(e=Cu(e),e=e===e?e:0),Rn(Cu(t),e,n)}function nl(t,e,n){return e=wu(e),n===J?(n=e,e=0):n=wu(n),t=Cu(t),kr(t,e,n)}function rl(t,e,n){if(n&&"boolean"!=typeof n&&jo(t,e,n)&&(e=n=J),n===J&&("boolean"==typeof e?(n=e,e=J):"boolean"==typeof t&&(n=t,t=J)),t===J&&e===J?(t=0,e=1):(t=wu(t),e===J?(e=t,t=0):e=wu(e)),t>e){var r=t;t=e,e=r}if(n||t%1||e%1){var i=Kc();return Wc(t+i*(e-t+Zn("1e-"+((i+"").length-1))),e)}return ti(t,e)}function il(t){return Zh(Su(t).toLowerCase())}function ol(t){return t=Su(t),t&&t.replace(Ve,dr).replace(Ln,"")}function al(t,e,n){t=Su(t),e=pi(e);var r=t.length;n=n===J?r:Rn(xu(n),0,r);var i=n;return n-=e.length,n>=0&&t.slice(n,i)==e}function sl(t){return t=Su(t),t&&we.test(t)?t.replace(be,pr):t}function ul(t){return t=Su(t),t&&Te.test(t)?t.replace(Ae,"\\$&"):t}function ll(t,e,n){t=Su(t),e=xu(e);var r=e?Y(t):0;if(!e||r>=e)return t;var i=(e-r)/2;return eo(Ic(i),n)+t+eo(Rc(i),n)}function cl(t,e,n){t=Su(t),e=xu(e);var r=e?Y(t):0;return e&&r<e?t+eo(e-r,n):t}function fl(t,e,n){t=Su(t),e=xu(e);var r=e?Y(t):0;return e&&r<e?eo(e-r,n)+t:t}function hl(t,e,n){return n||null==e?e=0:e&&(e=+e),Gc(Su(t).replace(Fe,""),e||0)}function dl(t,e,n){return e=(n?jo(t,e,n):e===J)?1:xu(e),ni(Su(t),e)}function pl(){var t=arguments,e=Su(t[0]);return t.length<3?e:e.replace(t[1],t[2])}function ml(t,e,n){return n&&"number"!=typeof n&&jo(t,e,n)&&(e=n=J),(n=n===J?Nt:n>>>0)?(t=Su(t),t&&("string"==typeof e||null!=e&&!xh(e))&&(e=pi(e),!e&&P(t))?Ei(G(t),0,n):t.split(e,n)):[]}function gl(t,e,n){return t=Su(t),n=null==n?0:Rn(xu(n),0,t.length),e=pi(e),t.slice(n,n+e.length)==e}function vl(t,e,n){var r=x.templateSettings;n&&jo(t,e,n)&&(e=J),t=Su(t),e=Th({},e,r,lo);var i,o,a=Th({},e.imports,r.imports,lo),s=qu(a),u=T(a,s),l=0,c=e.interpolate||We,f="__p += '",h=uc((e.escape||We).source+"|"+c.source+"|"+(c===Ce?Re:We).source+"|"+(e.evaluate||We).source+"|$","g"),d="//# sourceURL="+("sourceURL"in e?e.sourceURL:"lodash.templateSources["+ ++Bn+"]")+"\n";t.replace(h,function(e,n,r,a,s,u){return r||(r=a),f+=t.slice(l,u).replace(Ye,O),n&&(i=!0,f+="' +\n__e("+n+") +\n'"),s&&(o=!0,f+="';\n"+s+";\n__p += '"),r&&(f+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),l=u+e.length,e}),f+="';\n";var p=e.variable;p||(f="with (obj) {\n"+f+"\n}\n"),f=(o?f.replace(me,""):f).replace(ge,"$1").replace(ve,"$1;"),f="function("+(p||"obj")+") {\n"+(p?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(i?", __e = _.escape":"")+(o?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+f+"return __p\n}";var m=Xh(function(){return oc(s,d+"return "+f).apply(J,u)});if(m.source=f,Qs(m))throw m;return m}function yl(t){return Su(t).toLowerCase()}function bl(t){return Su(t).toUpperCase()}function _l(t,e,n){if(t=Su(t),t&&(n||e===J))return t.replace(De,"");if(!t||!(e=pi(e)))return t;var r=G(t),i=G(e),o=F(r,i),a=N(r,i)+1;return Ei(r,o,a).join("")}function wl(t,e,n){if(t=Su(t),t&&(n||e===J))return t.replace(Ne,"");if(!t||!(e=pi(e)))return t;var r=G(t),i=N(r,G(e))+1;return Ei(r,0,i).join("")}function xl(t,e,n){if(t=Su(t),t&&(n||e===J))return t.replace(Fe,"");if(!t||!(e=pi(e)))return t;var r=G(t),i=F(r,G(e));return Ei(r,i).join("")}function kl(t,e){var n=wt,r=xt;if(iu(e)){var i="separator"in e?e.separator:i;n="length"in e?xu(e.length):n,r="omission"in e?pi(e.omission):r}t=Su(t);var o=t.length;if(P(t)){var a=G(t);o=a.length}if(n>=o)return t;var s=n-Y(r);if(s<1)return r;var u=a?Ei(a,0,s).join(""):t.slice(0,s);if(i===J)return u+r;if(a&&(s+=u.length-s),xh(i)){if(t.slice(s).search(i)){var l,c=u;for(i.global||(i=uc(i.source,Su(Ie.exec(i))+"g")),i.lastIndex=0;l=i.exec(c);)var f=l.index;u=u.slice(0,f===J?s:f)}}else if(t.indexOf(pi(i),s)!=s){var h=u.lastIndexOf(i);h>-1&&(u=u.slice(0,h))}return u+r}function Cl(t){return t=Su(t),t&&_e.test(t)?t.replace(ye,mr):t}function El(t,e,n){return t=Su(t),e=n?J:e,e===J?L(t)?X(t):p(t):t.match(e)||[]}function $l(e){var n=null==e?0:e.length,r=wo();return e=n?u(e,function(t){if("function"!=typeof t[1])throw new cc(nt);return[r(t[0]),t[1]]}):[],ri(function(r){for(var i=-1;++i<n;){var o=e[i];if(t(o[0],this,r))return t(o[1],this,r)}})}function Sl(t){return qn(In(t,at))}function Al(t){return function(){return t}}function Tl(t,e){return null==t||t!==t?e:t}function Dl(t){return t}function Fl(t){return Rr("function"==typeof t?t:In(t,at))}function Nl(t){return Br(In(t,at))}function Ml(t,e){return Ur(t,In(e,at))}function Ol(t,e,r){var i=qu(e),o=or(e,i);null!=r||iu(e)&&(o.length||!i.length)||(r=e,e=t,t=this,o=or(e,qu(e)));var a=!(iu(r)&&"chain"in r&&!r.chain),s=eu(t);return n(o,function(n){var r=e[n];t[n]=r,s&&(t.prototype[n]=function(){var e=this.__chain__;if(a||e){var n=t(this.__wrapped__),i=n.__actions__=Pi(this.__actions__);return i.push({func:r,args:arguments,thisArg:t}),n.__chain__=e,n}return r.apply(t,l([this.value()],arguments))})}),t}function jl(){return tr._===this&&(tr._=wc),this}function Pl(){}function Ll(t){return t=xu(t),ri(function(e){return Yr(e,t)})}function Rl(t){return Po(t)?w(Qo(t)):Xr(t)}function Il(t){return function(e){return null==t?J:hr(t,e)}}function ql(){return[]}function zl(){return!1}function Hl(){return{}}function Bl(){return""}function Ul(){return!0}function Vl(t,e){if(t=xu(t),t<1||t>Tt)return[];var n=Nt,r=Wc(t,Nt);e=wo(e),t-=Nt;for(var i=$(r,e);++n<t;)e(n);return i}function Wl(t){return vh(t)?u(t,Qo):gu(t)?[t]:Pi(Nf(Su(t)))}function Yl(t){var e=++vc;return Su(t)+e}function Gl(t){return t&&t.length?Kn(t,Dl,_r):J}function Kl(t,e){return t&&t.length?Kn(t,wo(e,2),_r):J}function Zl(t){return _(t,Dl)}function Xl(t,e){return _(t,wo(e,2))}function Jl(t){return t&&t.length?Kn(t,Dl,zr):J}function Ql(t,e){return t&&t.length?Kn(t,wo(e,2),zr):J}function tc(t){return t&&t.length?E(t,Dl):0}function ec(t,e){return t&&t.length?E(t,wo(e,2)):0}d=null==d?tr:vr.defaults(tr.Object(),d,vr.pick(tr,Hn));var nc=d.Array,rc=d.Date,ic=d.Error,oc=d.Function,ac=d.Math,sc=d.Object,uc=d.RegExp,lc=d.String,cc=d.TypeError,fc=nc.prototype,hc=oc.prototype,dc=sc.prototype,pc=d["__core-js_shared__"],mc=hc.toString,gc=dc.hasOwnProperty,vc=0,yc=function(){var t=/[^.]+$/.exec(pc&&pc.keys&&pc.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}(),bc=dc.toString,_c=mc.call(sc),wc=tr._,xc=uc("^"+mc.call(gc).replace(Ae,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),kc=rr?d.Buffer:J,Cc=d.Symbol,Ec=d.Uint8Array,$c=kc?kc.allocUnsafe:J,Sc=q(sc.getPrototypeOf,sc),Ac=sc.create,Tc=dc.propertyIsEnumerable,Dc=fc.splice,Fc=Cc?Cc.isConcatSpreadable:J,Nc=Cc?Cc.iterator:J,Mc=Cc?Cc.toStringTag:J,Oc=function(){try{var t=Co(sc,"defineProperty");return t({},"",{}),t}catch(e){}}(),jc=d.clearTimeout!==tr.clearTimeout&&d.clearTimeout,Pc=rc&&rc.now!==tr.Date.now&&rc.now,Lc=d.setTimeout!==tr.setTimeout&&d.setTimeout,Rc=ac.ceil,Ic=ac.floor,qc=sc.getOwnPropertySymbols,zc=kc?kc.isBuffer:J,Hc=d.isFinite,Bc=fc.join,Uc=q(sc.keys,sc),Vc=ac.max,Wc=ac.min,Yc=rc.now,Gc=d.parseInt,Kc=ac.random,Zc=fc.reverse,Xc=Co(d,"DataView"),Jc=Co(d,"Map"),Qc=Co(d,"Promise"),tf=Co(d,"Set"),ef=Co(d,"WeakMap"),nf=Co(sc,"create"),rf=ef&&new ef,of={},af=ta(Xc),sf=ta(Jc),uf=ta(Qc),lf=ta(tf),cf=ta(ef),ff=Cc?Cc.prototype:J,hf=ff?ff.valueOf:J,df=ff?ff.toString:J,pf=function(){
|
||
function t(){}return function(e){if(!iu(e))return{};if(Ac)return Ac(e);t.prototype=e;var n=new t;return t.prototype=J,n}}();x.templateSettings={escape:xe,evaluate:ke,interpolate:Ce,variable:"",imports:{_:x}},x.prototype=V.prototype,x.prototype.constructor=x,K.prototype=pf(V.prototype),K.prototype.constructor=K,Z.prototype=pf(V.prototype),Z.prototype.constructor=Z,Ze.prototype.clear=Xe,Ze.prototype["delete"]=Je,Ze.prototype.get=Qe,Ze.prototype.has=tn,Ze.prototype.set=en,nn.prototype.clear=rn,nn.prototype["delete"]=on,nn.prototype.get=an,nn.prototype.has=sn,nn.prototype.set=un,ln.prototype.clear=cn,ln.prototype["delete"]=fn,ln.prototype.get=hn,ln.prototype.has=dn,ln.prototype.set=pn,mn.prototype.add=mn.prototype.push=gn,mn.prototype.has=vn,yn.prototype.clear=bn,yn.prototype["delete"]=_n,yn.prototype.get=wn,yn.prototype.has=xn,yn.prototype.set=kn;var mf=Hi(nr),gf=Hi(ir,!0),vf=Bi(),yf=Bi(!0),bf=rf?function(t,e){return rf.set(t,e),t}:Dl,_f=Oc?function(t,e){return Oc(t,"toString",{configurable:!0,enumerable:!1,value:Al(e),writable:!0})}:Dl,wf=ri,xf=jc||function(t){return tr.clearTimeout(t)},kf=tf&&1/B(new tf([,-0]))[1]==At?function(t){return new tf(t)}:Pl,Cf=rf?function(t){return rf.get(t)}:Pl,Ef=qc?function(t){return null==t?[]:(t=sc(t),o(qc(t),function(e){return Tc.call(t,e)}))}:ql,$f=qc?function(t){for(var e=[];t;)l(e,Ef(t)),t=Sc(t);return e}:ql,Sf=br;(Xc&&Sf(new Xc(new ArrayBuffer(1)))!=oe||Jc&&Sf(new Jc)!=Vt||Qc&&Sf(Qc.resolve())!=Kt||tf&&Sf(new tf)!=Jt||ef&&Sf(new ef)!=ne)&&(Sf=function(t){var e=br(t),n=e==Gt?t.constructor:J,r=n?ta(n):"";if(r)switch(r){case af:return oe;case sf:return Vt;case uf:return Kt;case lf:return Jt;case cf:return ne}return e});var Af=pc?eu:zl,Tf=Xo(bf),Df=Lc||function(t,e){return tr.setTimeout(t,e)},Ff=Xo(_f),Nf=Bo(function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(Se,function(t,n,r,i){e.push(r?i.replace(Le,"$1"):n||t)}),e}),Mf=ri(function(t,e){return Ys(t)?Yn(t,er(e,1,Ys,!0)):[]}),Of=ri(function(t,e){var n=wa(e);return Ys(n)&&(n=J),Ys(t)?Yn(t,er(e,1,Ys,!0),wo(n,2)):[]}),jf=ri(function(t,e){var n=wa(e);return Ys(n)&&(n=J),Ys(t)?Yn(t,er(e,1,Ys,!0),J,n):[]}),Pf=ri(function(t){var e=u(t,xi);return e.length&&e[0]===t[0]?Cr(e):[]}),Lf=ri(function(t){var e=wa(t),n=u(t,xi);return e===wa(n)?e=J:n.pop(),n.length&&n[0]===t[0]?Cr(n,wo(e,2)):[]}),Rf=ri(function(t){var e=wa(t),n=u(t,xi);return e="function"==typeof e?e:J,e&&n.pop(),n.length&&n[0]===t[0]?Cr(n,J,e):[]}),If=ri(Ca),qf=go(function(t,e){var n=null==t?0:t.length,r=jn(t,e);return Qr(t,u(e,function(t){return Oo(t,n)?+t:t}).sort(Ni)),r}),zf=ri(function(t){return mi(er(t,1,Ys,!0))}),Hf=ri(function(t){var e=wa(t);return Ys(e)&&(e=J),mi(er(t,1,Ys,!0),wo(e,2))}),Bf=ri(function(t){var e=wa(t);return e="function"==typeof e?e:J,mi(er(t,1,Ys,!0),J,e)}),Uf=ri(function(t,e){return Ys(t)?Yn(t,e):[]}),Vf=ri(function(t){return _i(o(t,Ys))}),Wf=ri(function(t){var e=wa(t);return Ys(e)&&(e=J),_i(o(t,Ys),wo(e,2))}),Yf=ri(function(t){var e=wa(t);return e="function"==typeof e?e:J,_i(o(t,Ys),J,e)}),Gf=ri(Wa),Kf=ri(function(t){var e=t.length,n=e>1?t[e-1]:J;return n="function"==typeof n?(t.pop(),n):J,Ya(t,n)}),Zf=go(function(t){var e=t.length,n=e?t[0]:0,r=this.__wrapped__,i=function(e){return jn(e,t)};return!(e>1||this.__actions__.length)&&r instanceof Z&&Oo(n)?(r=r.slice(n,+n+(e?1:0)),r.__actions__.push({func:Ja,args:[i],thisArg:J}),new K(r,this.__chain__).thru(function(t){return e&&!t.length&&t.push(J),t})):this.thru(i)}),Xf=qi(function(t,e,n){gc.call(t,n)?++t[n]:On(t,n,1)}),Jf=Ki(fa),Qf=Ki(ha),th=qi(function(t,e,n){gc.call(t,n)?t[n].push(e):On(t,n,[e])}),eh=ri(function(e,n,r){var i=-1,o="function"==typeof n,a=Ws(e)?nc(e.length):[];return mf(e,function(e){a[++i]=o?t(n,e,r):$r(e,n,r)}),a}),nh=qi(function(t,e,n){On(t,n,e)}),rh=qi(function(t,e,n){t[n?0:1].push(e)},function(){return[[],[]]}),ih=ri(function(t,e){if(null==t)return[];var n=e.length;return n>1&&jo(t,e[0],e[1])?e=[]:n>2&&jo(e[0],e[1],e[2])&&(e=[e[0]]),Gr(t,er(e,1),[])}),oh=Pc||function(){return tr.Date.now()},ah=ri(function(t,e,n){var r=ft;if(n.length){var i=z(n,_o(ah));r|=gt}return uo(t,r,e,n,i)}),sh=ri(function(t,e,n){var r=ft|ht;if(n.length){var i=z(n,_o(sh));r|=gt}return uo(e,r,t,n,i)}),uh=ri(function(t,e){return Wn(t,1,e)}),lh=ri(function(t,e,n){return Wn(t,Cu(e)||0,n)});Fs.Cache=ln;var ch=wf(function(e,n){n=1==n.length&&vh(n[0])?u(n[0],A(wo())):u(er(n,1),A(wo()));var r=n.length;return ri(function(i){for(var o=-1,a=Wc(i.length,r);++o<a;)i[o]=n[o].call(this,i[o]);return t(e,this,i)})}),fh=ri(function(t,e){var n=z(e,_o(fh));return uo(t,gt,J,e,n)}),hh=ri(function(t,e){var n=z(e,_o(hh));return uo(t,vt,J,e,n)}),dh=go(function(t,e){return uo(t,bt,J,J,J,e)}),ph=io(_r),mh=io(function(t,e){return t>=e}),gh=Sr(function(){return arguments}())?Sr:function(t){return ou(t)&&gc.call(t,"callee")&&!Tc.call(t,"callee")},vh=nc.isArray,yh=ar?A(ar):Ar,bh=zc||zl,_h=sr?A(sr):Tr,wh=ur?A(ur):Nr,xh=lr?A(lr):jr,kh=cr?A(cr):Pr,Ch=fr?A(fr):Lr,Eh=io(zr),$h=io(function(t,e){return t<=e}),Sh=zi(function(t,e){if(qo(e)||Ws(e))return void Li(e,qu(e),t);for(var n in e)gc.call(e,n)&&Tn(t,n,e[n])}),Ah=zi(function(t,e){Li(e,zu(e),t)}),Th=zi(function(t,e,n,r){Li(e,zu(e),t,r)}),Dh=zi(function(t,e,n,r){Li(e,qu(e),t,r)}),Fh=go(jn),Nh=ri(function(t,e){t=sc(t);var n=-1,r=e.length,i=r>2?e[2]:J;for(i&&jo(e[0],e[1],i)&&(r=1);++n<r;)for(var o=e[n],a=zu(o),s=-1,u=a.length;++s<u;){var l=a[s],c=t[l];(c===J||Vs(c,dc[l])&&!gc.call(t,l))&&(t[l]=o[l])}return t}),Mh=ri(function(e){return e.push(J,co),t(Rh,J,e)}),Oh=Ji(function(t,e,n){null!=e&&"function"!=typeof e.toString&&(e=bc.call(e)),t[e]=n},Al(Dl)),jh=Ji(function(t,e,n){null!=e&&"function"!=typeof e.toString&&(e=bc.call(e)),gc.call(t,e)?t[e].push(n):t[e]=[n]},wo),Ph=ri($r),Lh=zi(function(t,e,n){Vr(t,e,n)}),Rh=zi(function(t,e,n,r){Vr(t,e,n,r)}),Ih=go(function(t,e){var n={};if(null==t)return n;var r=!1;e=u(e,function(e){return e=Ci(e,t),r||(r=e.length>1),e}),Li(t,yo(t),n),r&&(n=In(n,at|st|ut,fo));for(var i=e.length;i--;)gi(n,e[i]);return n}),qh=go(function(t,e){return null==t?{}:Kr(t,e)}),zh=so(qu),Hh=so(zu),Bh=Wi(function(t,e,n){return e=e.toLowerCase(),t+(n?il(e):e)}),Uh=Wi(function(t,e,n){return t+(n?"-":"")+e.toLowerCase()}),Vh=Wi(function(t,e,n){return t+(n?" ":"")+e.toLowerCase()}),Wh=Vi("toLowerCase"),Yh=Wi(function(t,e,n){return t+(n?"_":"")+e.toLowerCase()}),Gh=Wi(function(t,e,n){return t+(n?" ":"")+Zh(e)}),Kh=Wi(function(t,e,n){return t+(n?" ":"")+e.toUpperCase()}),Zh=Vi("toUpperCase"),Xh=ri(function(e,n){try{return t(e,J,n)}catch(r){return Qs(r)?r:new ic(r)}}),Jh=go(function(t,e){return n(e,function(e){e=Qo(e),On(t,e,ah(t[e],t))}),t}),Qh=Zi(),td=Zi(!0),ed=ri(function(t,e){return function(n){return $r(n,t,e)}}),nd=ri(function(t,e){return function(n){return $r(t,n,e)}}),rd=to(u),id=to(i),od=to(h),ad=ro(),sd=ro(!0),ud=Qi(function(t,e){return t+e},0),ld=ao("ceil"),cd=Qi(function(t,e){return t/e},1),fd=ao("floor"),hd=Qi(function(t,e){return t*e},1),dd=ao("round"),pd=Qi(function(t,e){return t-e},0);return x.after=Cs,x.ary=Es,x.assign=Sh,x.assignIn=Ah,x.assignInWith=Th,x.assignWith=Dh,x.at=Fh,x.before=$s,x.bind=ah,x.bindAll=Jh,x.bindKey=sh,x.castArray=Is,x.chain=Za,x.chunk=ra,x.compact=ia,x.concat=oa,x.cond=$l,x.conforms=Sl,x.constant=Al,x.countBy=Xf,x.create=Au,x.curry=Ss,x.curryRight=As,x.debounce=Ts,x.defaults=Nh,x.defaultsDeep=Mh,x.defer=uh,x.delay=lh,x.difference=Mf,x.differenceBy=Of,x.differenceWith=jf,x.drop=aa,x.dropRight=sa,x.dropRightWhile=ua,x.dropWhile=la,x.fill=ca,x.filter=ss,x.flatMap=us,x.flatMapDeep=ls,x.flatMapDepth=cs,x.flatten=da,x.flattenDeep=pa,x.flattenDepth=ma,x.flip=Ds,x.flow=Qh,x.flowRight=td,x.fromPairs=ga,x.functions=ju,x.functionsIn=Pu,x.groupBy=th,x.initial=ba,x.intersection=Pf,x.intersectionBy=Lf,x.intersectionWith=Rf,x.invert=Oh,x.invertBy=jh,x.invokeMap=eh,x.iteratee=Fl,x.keyBy=nh,x.keys=qu,x.keysIn=zu,x.map=ps,x.mapKeys=Hu,x.mapValues=Bu,x.matches=Nl,x.matchesProperty=Ml,x.memoize=Fs,x.merge=Lh,x.mergeWith=Rh,x.method=ed,x.methodOf=nd,x.mixin=Ol,x.negate=Ns,x.nthArg=Ll,x.omit=Ih,x.omitBy=Uu,x.once=Ms,x.orderBy=ms,x.over=rd,x.overArgs=ch,x.overEvery=id,x.overSome=od,x.partial=fh,x.partialRight=hh,x.partition=rh,x.pick=qh,x.pickBy=Vu,x.property=Rl,x.propertyOf=Il,x.pull=If,x.pullAll=Ca,x.pullAllBy=Ea,x.pullAllWith=$a,x.pullAt=qf,x.range=ad,x.rangeRight=sd,x.rearg=dh,x.reject=ys,x.remove=Sa,x.rest=Os,x.reverse=Aa,x.sampleSize=_s,x.set=Yu,x.setWith=Gu,x.shuffle=ws,x.slice=Ta,x.sortBy=ih,x.sortedUniq=Pa,x.sortedUniqBy=La,x.split=ml,x.spread=js,x.tail=Ra,x.take=Ia,x.takeRight=qa,x.takeRightWhile=za,x.takeWhile=Ha,x.tap=Xa,x.throttle=Ps,x.thru=Ja,x.toArray=_u,x.toPairs=zh,x.toPairsIn=Hh,x.toPath=Wl,x.toPlainObject=Eu,x.transform=Ku,x.unary=Ls,x.union=zf,x.unionBy=Hf,x.unionWith=Bf,x.uniq=Ba,x.uniqBy=Ua,x.uniqWith=Va,x.unset=Zu,x.unzip=Wa,x.unzipWith=Ya,x.update=Xu,x.updateWith=Ju,x.values=Qu,x.valuesIn=tl,x.without=Uf,x.words=El,x.wrap=Rs,x.xor=Vf,x.xorBy=Wf,x.xorWith=Yf,x.zip=Gf,x.zipObject=Ga,x.zipObjectDeep=Ka,x.zipWith=Kf,x.entries=zh,x.entriesIn=Hh,x.extend=Ah,x.extendWith=Th,Ol(x,x),x.add=ud,x.attempt=Xh,x.camelCase=Bh,x.capitalize=il,x.ceil=ld,x.clamp=el,x.clone=qs,x.cloneDeep=Hs,x.cloneDeepWith=Bs,x.cloneWith=zs,x.conformsTo=Us,x.deburr=ol,x.defaultTo=Tl,x.divide=cd,x.endsWith=al,x.eq=Vs,x.escape=sl,x.escapeRegExp=ul,x.every=as,x.find=Jf,x.findIndex=fa,x.findKey=Tu,x.findLast=Qf,x.findLastIndex=ha,x.findLastKey=Du,x.floor=fd,x.forEach=fs,x.forEachRight=hs,x.forIn=Fu,x.forInRight=Nu,x.forOwn=Mu,x.forOwnRight=Ou,x.get=Lu,x.gt=ph,x.gte=mh,x.has=Ru,x.hasIn=Iu,x.head=va,x.identity=Dl,x.includes=ds,x.indexOf=ya,x.inRange=nl,x.invoke=Ph,x.isArguments=gh,x.isArray=vh,x.isArrayBuffer=yh,x.isArrayLike=Ws,x.isArrayLikeObject=Ys,x.isBoolean=Gs,x.isBuffer=bh,x.isDate=_h,x.isElement=Ks,x.isEmpty=Zs,x.isEqual=Xs,x.isEqualWith=Js,x.isError=Qs,x.isFinite=tu,x.isFunction=eu,x.isInteger=nu,x.isLength=ru,x.isMap=wh,x.isMatch=au,x.isMatchWith=su,x.isNaN=uu,x.isNative=lu,x.isNil=fu,x.isNull=cu,x.isNumber=hu,x.isObject=iu,x.isObjectLike=ou,x.isPlainObject=du,x.isRegExp=xh,x.isSafeInteger=pu,x.isSet=kh,x.isString=mu,x.isSymbol=gu,x.isTypedArray=Ch,x.isUndefined=vu,x.isWeakMap=yu,x.isWeakSet=bu,x.join=_a,x.kebabCase=Uh,x.last=wa,x.lastIndexOf=xa,x.lowerCase=Vh,x.lowerFirst=Wh,x.lt=Eh,x.lte=$h,x.max=Gl,x.maxBy=Kl,x.mean=Zl,x.meanBy=Xl,x.min=Jl,x.minBy=Ql,x.stubArray=ql,x.stubFalse=zl,x.stubObject=Hl,x.stubString=Bl,x.stubTrue=Ul,x.multiply=hd,x.nth=ka,x.noConflict=jl,x.noop=Pl,x.now=oh,x.pad=ll,x.padEnd=cl,x.padStart=fl,x.parseInt=hl,x.random=rl,x.reduce=gs,x.reduceRight=vs,x.repeat=dl,x.replace=pl,x.result=Wu,x.round=dd,x.runInContext=yr,x.sample=bs,x.size=xs,x.snakeCase=Yh,x.some=ks,x.sortedIndex=Da,x.sortedIndexBy=Fa,x.sortedIndexOf=Na,x.sortedLastIndex=Ma,x.sortedLastIndexBy=Oa,x.sortedLastIndexOf=ja,x.startCase=Gh,x.startsWith=gl,x.subtract=pd,x.sum=tc,x.sumBy=ec,x.template=vl,x.times=Vl,x.toFinite=wu,x.toInteger=xu,x.toLength=ku,x.toLower=yl,x.toNumber=Cu,x.toSafeInteger=$u,x.toString=Su,x.toUpper=bl,x.trim=_l,x.trimEnd=wl,x.trimStart=xl,x.truncate=kl,x.unescape=Cl,x.uniqueId=Yl,x.upperCase=Kh,x.upperFirst=Zh,x.each=fs,x.eachRight=hs,x.first=va,Ol(x,function(){var t={};return nr(x,function(e,n){gc.call(x.prototype,n)||(t[n]=e)}),t}(),{chain:!1}),x.VERSION=Q,n(["bind","bindKey","curry","curryRight","partial","partialRight"],function(t){x[t].placeholder=x}),n(["drop","take"],function(t,e){Z.prototype[t]=function(n){n=n===J?1:Vc(xu(n),0);var r=this.__filtered__&&!e?new Z(this):this.clone();return r.__filtered__?r.__takeCount__=Wc(n,r.__takeCount__):r.__views__.push({size:Wc(n,Nt),type:t+(r.__dir__<0?"Right":"")}),r},Z.prototype[t+"Right"]=function(e){return this.reverse()[t](e).reverse()}}),n(["filter","map","takeWhile"],function(t,e){var n=e+1,r=n==Et||n==St;Z.prototype[t]=function(t){var e=this.clone();return e.__iteratees__.push({iteratee:wo(t,3),type:n}),e.__filtered__=e.__filtered__||r,e}}),n(["head","last"],function(t,e){var n="take"+(e?"Right":"");Z.prototype[t]=function(){return this[n](1).value()[0]}}),n(["initial","tail"],function(t,e){var n="drop"+(e?"":"Right");Z.prototype[t]=function(){return this.__filtered__?new Z(this):this[n](1)}}),Z.prototype.compact=function(){return this.filter(Dl)},Z.prototype.find=function(t){return this.filter(t).head()},Z.prototype.findLast=function(t){return this.reverse().find(t)},Z.prototype.invokeMap=ri(function(t,e){return"function"==typeof t?new Z(this):this.map(function(n){return $r(n,t,e)})}),Z.prototype.reject=function(t){return this.filter(Ns(wo(t)))},Z.prototype.slice=function(t,e){t=xu(t);var n=this;return n.__filtered__&&(t>0||e<0)?new Z(n):(t<0?n=n.takeRight(-t):t&&(n=n.drop(t)),e!==J&&(e=xu(e),n=e<0?n.dropRight(-e):n.take(e-t)),n)},Z.prototype.takeRightWhile=function(t){return this.reverse().takeWhile(t).reverse()},Z.prototype.toArray=function(){return this.take(Nt)},nr(Z.prototype,function(t,e){var n=/^(?:filter|find|map|reject)|While$/.test(e),r=/^(?:head|last)$/.test(e),i=x[r?"take"+("last"==e?"Right":""):e],o=r||/^find/.test(e);i&&(x.prototype[e]=function(){var e=this.__wrapped__,a=r?[1]:arguments,s=e instanceof Z,u=a[0],c=s||vh(e),f=function(t){var e=i.apply(x,l([t],a));return r&&h?e[0]:e};c&&n&&"function"==typeof u&&1!=u.length&&(s=c=!1);var h=this.__chain__,d=!!this.__actions__.length,p=o&&!h,m=s&&!d;if(!o&&c){e=m?e:new Z(this);var g=t.apply(e,a);return g.__actions__.push({func:Ja,args:[f],thisArg:J}),new K(g,h)}return p&&m?t.apply(this,a):(g=this.thru(f),p?r?g.value()[0]:g.value():g)})}),n(["pop","push","shift","sort","splice","unshift"],function(t){var e=fc[t],n=/^(?:push|sort|unshift)$/.test(t)?"tap":"thru",r=/^(?:pop|shift)$/.test(t);x.prototype[t]=function(){var t=arguments;if(r&&!this.__chain__){var i=this.value();return e.apply(vh(i)?i:[],t)}return this[n](function(n){return e.apply(vh(n)?n:[],t)})}}),nr(Z.prototype,function(t,e){var n=x[e];if(n){var r=n.name+"",i=of[r]||(of[r]=[]);i.push({name:e,func:n})}}),of[Xi(J,ht).name]=[{name:"wrapper",func:J}],Z.prototype.clone=Pe,Z.prototype.reverse=Ge,Z.prototype.value=Ke,x.prototype.at=Zf,x.prototype.chain=Qa,x.prototype.commit=ts,x.prototype.next=es,x.prototype.plant=rs,x.prototype.reverse=is,x.prototype.toJSON=x.prototype.valueOf=x.prototype.value=os,x.prototype.first=x.prototype.head,Nc&&(x.prototype[Nc]=ns),x},vr=gr();"function"==typeof define&&"object"==typeof define.amd&&define.amd?(tr._=vr,define(function(){return vr})):nr?((nr.exports=vr)._=vr,er._=vr):tr._=vr}.call(this),function(t){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var e;e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,e.MessageFormat=t()}}(function(){var t;return function e(t,n,r){function i(a,s){if(!n[a]){if(!t[a]){var u="function"==typeof require&&require;if(!s&&u)return u(a,!0);if(o)return o(a,!0);var l=new Error("Cannot find module '"+a+"'");throw l.code="MODULE_NOT_FOUND",l}var c=n[a]={exports:{}};t[a][0].call(c.exports,function(e){var n=t[a][1][e];return i(n?n:e)},c,c.exports,e,t,n,r)}return n[a].exports}for(var o="function"==typeof require&&require,a=0;a<r.length;a++)i(r[a]);return i}({1:[function(t,e,n){function r(t){this.mf=t,this.lc=null,this.locales={},this.runtime={},this.formatters={}}var i=t("reserved-words"),o=t("messageformat-parser").parse;e.exports=r,r.propname=function(t,e){if(/^[A-Z_$][0-9A-Z_$]*$/i.test(t)&&["break","continue","delete","else","for","function","if","in","new","return","this","typeof","var","void","while","with","case","catch","default","do","finally","instanceof","switch","throw","try"].indexOf(t)<0)return e?e+"."+t:t;var n=JSON.stringify(t);return e?e+"["+n+"]":n},r.funcname=function(t){var e=t.trim().replace(/\W+/g,"_");return i.check(e,"es2015",!0)||/^\d/.test(e)?"_"+e:e},r.bidiMarkText=function(t,e){function n(t){var e=["ar","ckb","fa","he","ks($|[^bfh])","lrc","mzn","pa-Arab","ps","ug","ur","uz-Arab","yi"];return new RegExp("^"+e.join("|^")).test(t)}var r=JSON.stringify(n(e)?"":"");return r+" + "+t+" + "+r},r.prototype.cases=function(t,e){var n="select"===t.type||!this.mf.hasCustomPluralFuncs,i=t.cases.map(function(t){"other"===t.key&&(n=!1);var i=t.tokens.map(function(t){return this.token(t,e)},this);return r.propname(t.key)+": "+(i.join(" + ")||'""')},this);if(n)throw new Error("No 'other' form found in "+JSON.stringify(t));return"{ "+i.join(", ")+" }"},r.prototype.token=function(t,e){if("string"==typeof t)return JSON.stringify(t);var n,i=[r.propname(t.arg,"d")];switch(t.type){case"argument":return this.mf.bidiSupport?r.bidiMarkText(i[0],this.lc):i[0];case"select":n="select",i.push(this.cases(t,this.mf.strictNumberSign?null:e)),this.runtime.select=!0;break;case"selectordinal":n="plural",i.push(0,r.funcname(this.lc),this.cases(t,t),1),this.locales[this.lc]=!0,this.runtime.plural=!0;break;case"plural":n="plural",i.push(t.offset||0,r.funcname(this.lc),this.cases(t,t)),this.locales[this.lc]=!0,this.runtime.plural=!0;break;case"function":if(this.mf.intlSupport&&!(t.key in this.mf.fmt)&&t.key in this.mf.constructor.formatters){var o=this.mf.constructor.formatters[t.key];this.mf.fmt[t.key]="function"==typeof o(this.mf)?o(this.mf):o}if(!this.mf.fmt[t.key])throw new Error("Formatting function "+JSON.stringify(t.key)+" not found!");if(i.push(JSON.stringify(this.lc)),t.params)switch(t.params.length){case 0:break;case 1:i.push(JSON.stringify(t.params[0]));break;default:i.push(JSON.stringify(t.params))}n=r.propname(t.key,"fmt"),this.formatters[t.key]=!0;break;case"octothorpe":if(!e)return'"#"';n="number",i=[r.propname(e.arg,"d"),JSON.stringify(e.arg)],e.offset&&i.push(e.offset),this.runtime.number=!0}if(!n)throw new Error("Parser error for token "+JSON.stringify(t));return n+"("+i.join(", ")+")"},r.prototype.compile=function(t,e,n){if("object"!=typeof t){this.lc=e;var r=n[e]||{cardinal:[],ordinal:[]},i=o(t,r).map(function(t){return this.token(t)},this);return"function(d) { return "+(i.join(" + ")||'""')+"; }"}var a={};for(var s in t){var u=n.hasOwnProperty(s)?s:e;a[s]=this.compile(t[s],u,n)}return a}},{"messageformat-parser":7,"reserved-words":9}],2:[function(t,e,n){function r(e,n){for(var r=t("make-plural/umd/plurals"),i=t("make-plural/umd/pluralCategories"),o=e;o;o=o.replace(/[-_]?[^-_]*$/,"")){var a=r[o];if(a){var s=n?{cardinal:[],ordinal:[]}:i[o]||{},u=function(){return a.apply(this,arguments)};return u.toString=function(){return a.toString()},u.cardinal=s.cardinal,u.ordinal=s.ordinal,u}}throw new Error("Localisation function not found for locale "+JSON.stringify(e))}function i(t){if(this.pluralFuncs={},t)if("string"==typeof t)this.pluralFuncs[t]=r(t);else if(Array.isArray(t))t.forEach(function(t){this.pluralFuncs[t]=r(t)},this);else if("object"==typeof t){for(var e in t)if(t.hasOwnProperty(e)){if("function"!=typeof t[e])throw new Error("Expected function value for locale "+JSON.stringify(e));this.pluralFuncs[e]=t[e]}this.hasCustomPluralFuncs=!0}this.fmt={},this.runtime=new a(this)}var o=t("./compiler"),a=t("./runtime");i.defaultLocale="en",i.escape=function(t){return t.replace(/[#{}\\]/g,"\\$&")},i.formatters={number:function(t){return new Function("v,lc,p","return new Intl.NumberFormat(lc,\n p=='integer' ? {maximumFractionDigits:0}\n : p=='percent' ? {style:'percent'}\n : p=='currency' ? {style:'currency', currency:'"+(t.currency||"USD")+"', minimumFractionDigits:2, maximumFractionDigits:2}\n : {}).format(v)")},date:function(t,e,n){var r={day:"numeric",month:"short",year:"numeric"};switch(n){case"full":r.weekday="long";case"long":r.month="long";break;case"short":r.month="numeric"}return new Date(t).toLocaleDateString(e,r)},time:function(t,e,n){var r={second:"numeric",minute:"numeric",hour:"numeric"};switch(n){case"full":case"long":r.timeZoneName="short";break;case"short":delete r.second}return new Date(t).toLocaleTimeString(e,r)}},i.prototype.addFormatters=function(t){for(var e in t)t.hasOwnProperty(e)&&(this.fmt[e]=t[e]);return this},i.prototype.disablePluralKeyChecks=function(){this.noPluralKeyChecks=!0;for(var t in this.pluralFuncs)this.pluralFuncs.hasOwnProperty(t)&&(this.pluralFuncs[t].cardinal=[],this.pluralFuncs[t].ordinal=[]);return this},i.prototype.setBiDiSupport=function(t){return this.bidiSupport=!!t||"undefined"==typeof t,this},i.prototype.setIntlSupport=function(t){return this.intlSupport=!!t||"undefined"==typeof t,this},i.prototype.setStrictNumberSign=function(t){return this.strictNumberSign=!!t||"undefined"==typeof t,this.runtime.setStrictNumber(this.strictNumberSign),this},i.prototype.compile=function(t,e){function n(t,e){if(e||(e=0),"object"!=typeof t)return t;for(var r=[],i="",a=0;a<e;++a)i+=" ";for(var s in t)r.push("\n"+i+" "+o.propname(s)+": "+n(t[s],e+1));return"{"+r.join(",")+"\n"+i+"}"}var a;if(0==Object.keys(this.pluralFuncs).length)e||(e=i.defaultLocale),a={},a[e]=r(e,this.noPluralKeyChecks);else if(e){if(a={},a[e]=this.pluralFuncs[e],!a[e])throw new Error("Locale "+JSON.stringify(e)+"not found in "+JSON.stringify(this.pluralFuncs)+"!")}else a=this.pluralFuncs,e=Object.keys(a)[0];var s=new o(this),u=s.compile(t,e,a);if("object"!=typeof t){var l=new Function("number, plural, select, fmt",o.funcname(e),"return "+u),c=this.runtime;return l(c.number,c.plural,c.select,this.fmt,a[e])}var f=this.runtime.toString(a,s)+"\n",h=n(u),d=new Function(f+"return "+h)();if(d.hasOwnProperty("toString"))throw new Error("The top-level message key `toString` is reserved");return d.toString=function(t){switch(t||""){case"exports":var e=[];for(var r in u)e.push(o.propname(r,"exports")+" = "+n(u[r]));return f+e.join(";\n");case"module.exports":return f+"module.exports = "+h;case"export default":return f+"export default "+h;case"":return f+"return "+h;default:return t.indexOf(".")>-1?f+t+" = "+h:f+["(function (root, G) {",' if (typeof define === "function" && define.amd) { define(G); }',' else if (typeof exports === "object") { module.exports = G; }'," else { "+o.propname(t,"root")+" = G; }","})(this, "+h+");"].join("\n")}},d},e.exports=i},{"./compiler":1,"./runtime":3,"make-plural/umd/pluralCategories":5,"make-plural/umd/plurals":6}],3:[function(t,e,n){function r(t){this.mf=t,this.setStrictNumber(t.strictNumberSign)}function i(t,e,n){if(!n)return t;if(isNaN(t))throw new Error("Can't apply offset:"+n+" to argument `"+e+"` with non-numerical value "+JSON.stringify(t)+".");return t-n}function o(t,e,n){if(isNaN(t))throw new Error("Argument `"+e+"` has non-numerical value "+JSON.stringify(t)+".");return t-(n||0)}var a=t("./compiler");e.exports=r,r.prototype.setStrictNumber=function(t){this.number=t?o:i},r.prototype.plural=function(t,e,n,r,i){if({}.hasOwnProperty.call(r,t))return r[t];e&&(t-=e);var o=n(t,i);return o in r?r[o]:r.other},r.prototype.select=function(t,e){return{}.hasOwnProperty.call(e,t)?e[t]:e.other},r.prototype.toString=function(t,e){function n(t,e){if("object"!=typeof t){var r=t.toString().replace(/^(function )\w*/,"$1"),i=/([ \t]*)\S.*$/.exec(r);return i?r.replace(new RegExp("^"+i[1],"mg"),""):r}var o=[];for(var s in t)0==e?o.push("var "+s+" = "+n(t[s],e+1)+";\n"):o.push(a.propname(s)+": "+n(t[s],e+1));if(0==e)return o.join("");if(0==o.length)return"{}";for(var i=" ";--e;)i+=" ";return"{\n"+o.join(",\n").replace(/^/gm,i)+"\n}"}var r={};Object.keys(e.locales).forEach(function(e){r[a.funcname(e)]=t[e]}),Object.keys(e.runtime).forEach(function(t){r[t]=this[t]},this);var i=Object.keys(e.formatters),o=this.mf.fmt;return i.length&&(r.fmt=i.reduce(function(t,e){return t[e]=o[e],t},{})),n(r,0)}},{"./compiler":1}],4:[function(t,e,n){(function(n){"use strict";function r(t,e){if(t===e)return 0;for(var n=t.length,r=e.length,i=0,o=Math.min(n,r);i<o;++i)if(t[i]!==e[i]){n=t[i],r=e[i];break}return n<r?-1:r<n?1:0}function i(t){return n.Buffer&&"function"==typeof n.Buffer.isBuffer?n.Buffer.isBuffer(t):!(null==t||!t._isBuffer)}function o(t){return Object.prototype.toString.call(t)}function a(t){return!i(t)&&("function"==typeof n.ArrayBuffer&&("function"==typeof ArrayBuffer.isView?ArrayBuffer.isView(t):!!t&&(t instanceof DataView||!!(t.buffer&&t.buffer instanceof ArrayBuffer))))}function s(t){if(_.isFunction(t)){if(k)return t.name;var e=t.toString(),n=e.match(E);return n&&n[1]}}function u(t,e){return"string"==typeof t?t.length<e?t:t.slice(0,e):t}function l(t){if(k||!_.isFunction(t))return _.inspect(t);var e=s(t),n=e?": "+e:"";return"[Function"+n+"]"}function c(t){return u(l(t.actual),128)+" "+t.operator+" "+u(l(t.expected),128)}function f(t,e,n,r,i){throw new C.AssertionError({message:n,actual:t,expected:e,operator:r,stackStartFunction:i})}function h(t,e){t||f(t,!0,e,"==",C.ok)}function d(t,e,n,s){if(t===e)return!0;if(i(t)&&i(e))return 0===r(t,e);if(_.isDate(t)&&_.isDate(e))return t.getTime()===e.getTime();if(_.isRegExp(t)&&_.isRegExp(e))return t.source===e.source&&t.global===e.global&&t.multiline===e.multiline&&t.lastIndex===e.lastIndex&&t.ignoreCase===e.ignoreCase;if(null!==t&&"object"==typeof t||null!==e&&"object"==typeof e){if(a(t)&&a(e)&&o(t)===o(e)&&!(t instanceof Float32Array||t instanceof Float64Array))return 0===r(new Uint8Array(t.buffer),new Uint8Array(e.buffer));if(i(t)!==i(e))return!1;s=s||{actual:[],expected:[]};var u=s.actual.indexOf(t);return u!==-1&&u===s.expected.indexOf(e)||(s.actual.push(t),s.expected.push(e),m(t,e,n,s))}return n?t===e:t==e}function p(t){return"[object Arguments]"==Object.prototype.toString.call(t)}function m(t,e,n,r){if(null===t||void 0===t||null===e||void 0===e)return!1;if(_.isPrimitive(t)||_.isPrimitive(e))return t===e;if(n&&Object.getPrototypeOf(t)!==Object.getPrototypeOf(e))return!1;var i=p(t),o=p(e);if(i&&!o||!i&&o)return!1;if(i)return t=x.call(t),e=x.call(e),d(t,e,n);var a,s,u=$(t),l=$(e);if(u.length!==l.length)return!1;for(u.sort(),l.sort(),s=u.length-1;s>=0;s--)if(u[s]!==l[s])return!1;for(s=u.length-1;s>=0;s--)if(a=u[s],!d(t[a],e[a],n,r))return!1;return!0}function g(t,e,n){d(t,e,!0)&&f(t,e,n,"notDeepStrictEqual",g)}function v(t,e){if(!t||!e)return!1;if("[object RegExp]"==Object.prototype.toString.call(e))return e.test(t);try{if(t instanceof e)return!0}catch(n){}return!Error.isPrototypeOf(e)&&e.call({},t)===!0}function y(t){var e;try{t()}catch(n){e=n}return e}function b(t,e,n,r){var i;if("function"!=typeof e)throw new TypeError('"block" argument must be a function');"string"==typeof n&&(r=n,n=null),i=y(e),r=(n&&n.name?" ("+n.name+").":".")+(r?" "+r:"."),t&&!i&&f(i,n,"Missing expected exception"+r);var o="string"==typeof r,a=!t&&_.isError(i),s=!t&&i&&!n;if((a&&o&&v(i,n)||s)&&f(i,n,"Got unwanted exception"+r),t&&i&&n&&!v(i,n)||!t&&i)throw i}var _=t("util/"),w=Object.prototype.hasOwnProperty,x=Array.prototype.slice,k=function(){return"foo"===function(){}.name}(),C=e.exports=h,E=/\s*function\s+([^\(\s]*)\s*/;C.AssertionError=function(t){this.name="AssertionError",this.actual=t.actual,this.expected=t.expected,this.operator=t.operator,t.message?(this.message=t.message,this.generatedMessage=!1):(this.message=c(this),this.generatedMessage=!0);var e=t.stackStartFunction||f;if(Error.captureStackTrace)Error.captureStackTrace(this,e);else{var n=new Error;if(n.stack){var r=n.stack,i=s(e),o=r.indexOf("\n"+i);if(o>=0){var a=r.indexOf("\n",o+1);r=r.substring(a+1)}this.stack=r}}},_.inherits(C.AssertionError,Error),C.fail=f,C.ok=h,C.equal=function(t,e,n){t!=e&&f(t,e,n,"==",C.equal)},C.notEqual=function(t,e,n){t==e&&f(t,e,n,"!=",C.notEqual)},C.deepEqual=function(t,e,n){d(t,e,!1)||f(t,e,n,"deepEqual",C.deepEqual)},C.deepStrictEqual=function(t,e,n){d(t,e,!0)||f(t,e,n,"deepStrictEqual",C.deepStrictEqual)},C.notDeepEqual=function(t,e,n){d(t,e,!1)&&f(t,e,n,"notDeepEqual",C.notDeepEqual)},C.notDeepStrictEqual=g,C.strictEqual=function(t,e,n){t!==e&&f(t,e,n,"===",C.strictEqual)},C.notStrictEqual=function(t,e,n){t===e&&f(t,e,n,"!==",C.notStrictEqual)},C["throws"]=function(t,e,n){b(!0,t,e,n)},C.doesNotThrow=function(t,e,n){b(!1,t,e,n)},C.ifError=function(t){if(t)throw t};var $=Object.keys||function(t){var e=[];for(var n in t)w.call(t,n)&&e.push(n);return e}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"util/":13}],5:[function(e,n,r){var i=[{cardinal:["other"],ordinal:["other"]},{cardinal:["one","other"],ordinal:["other"]},{cardinal:["one","other"],ordinal:["one","other"]},{cardinal:["one","two","other"],ordinal:["other"]}];!function(e,i){"function"==typeof t&&t.amd?t(i):"object"==typeof r?n.exports=i:e.pluralCategories=i}(this,{af:i[1],ak:i[1],am:i[1],ar:{cardinal:["zero","one","two","few","many","other"],ordinal:["other"]},ars:{cardinal:["zero","one","two","few","many","other"],ordinal:["other"]},as:{cardinal:["one","other"],ordinal:["one","two","few","many","other"]},asa:i[1],ast:i[1],az:{cardinal:["one","other"],ordinal:["one","few","many","other"]},be:{cardinal:["one","few","many","other"],ordinal:["few","other"]},bem:i[1],bez:i[1],bg:i[1],bh:i[1],bm:i[0],bn:{cardinal:["one","other"],ordinal:["one","two","few","many","other"]},bo:i[0],br:{cardinal:["one","two","few","many","other"],ordinal:["other"]},brx:i[1],bs:{cardinal:["one","few","other"],ordinal:["other"]},ca:{cardinal:["one","other"],ordinal:["one","two","few","other"]},ce:i[1],cgg:i[1],chr:i[1],ckb:i[1],cs:{cardinal:["one","few","many","other"],ordinal:["other"]},cy:{cardinal:["zero","one","two","few","many","other"],ordinal:["zero","one","two","few","many","other"]},da:i[1],de:i[1],dsb:{cardinal:["one","two","few","other"],ordinal:["other"]},dv:i[1],dz:i[0],ee:i[1],el:i[1],en:{cardinal:["one","other"],ordinal:["one","two","few","other"]},eo:i[1],es:i[1],et:i[1],eu:i[1],fa:i[1],ff:i[1],fi:i[1],fil:i[2],fo:i[1],fr:i[2],fur:i[1],fy:i[1],ga:{cardinal:["one","two","few","many","other"],ordinal:["one","other"]},gd:{cardinal:["one","two","few","other"],ordinal:["other"]},gl:i[1],gsw:i[1],gu:{cardinal:["one","other"],ordinal:["one","two","few","many","other"]},guw:i[1],gv:{cardinal:["one","two","few","many","other"],ordinal:["other"]},ha:i[1],haw:i[1],he:{cardinal:["one","two","many","other"],ordinal:["other"]},hi:{cardinal:["one","other"],ordinal:["one","two","few","many","other"]},hr:{cardinal:["one","few","other"],ordinal:["other"]},hsb:{cardinal:["one","two","few","other"],ordinal:["other"]},hu:i[2],hy:i[2],id:i[0],ig:i[0],ii:i[0],"in":i[0],io:i[1],is:i[1],it:{cardinal:["one","other"],ordinal:["many","other"]},iu:i[3],iw:{cardinal:["one","two","many","other"],ordinal:["other"]},ja:i[0],jbo:i[0],jgo:i[1],ji:i[1],jmc:i[1],jv:i[0],jw:i[0],ka:{cardinal:["one","other"],ordinal:["one","many","other"]},kab:i[1],kaj:i[1],kcg:i[1],kde:i[0],kea:i[0],kk:{cardinal:["one","other"],ordinal:["many","other"]},kkj:i[1],kl:i[1],km:i[0],kn:i[1],ko:i[0],ks:i[1],ksb:i[1],ksh:{cardinal:["zero","one","other"],ordinal:["other"]},ku:i[1],kw:i[3],ky:i[1],lag:{cardinal:["zero","one","other"],ordinal:["other"]},lb:i[1],lg:i[1],lkt:i[0],ln:i[1],lo:{cardinal:["other"],ordinal:["one","other"]},lt:{cardinal:["one","few","many","other"],ordinal:["other"]},lv:{cardinal:["zero","one","other"],ordinal:["other"]},mas:i[1],mg:i[1],mgo:i[1],mk:{cardinal:["one","other"],ordinal:["one","two","many","other"]},ml:i[1],mn:i[1],mo:{cardinal:["one","few","other"],ordinal:["one","other"]},mr:{cardinal:["one","other"],ordinal:["one","two","few","other"]},ms:{cardinal:["other"],ordinal:["one","other"]},mt:{cardinal:["one","few","many","other"],ordinal:["other"]},my:i[0],nah:i[1],naq:i[3],nb:i[1],nd:i[1],ne:i[2],nl:i[1],nn:i[1],nnh:i[1],no:i[1],nqo:i[0],nr:i[1],nso:i[1],ny:i[1],nyn:i[1],om:i[1],or:{cardinal:["one","other"],ordinal:["one","two","few","many","other"]},os:i[1],pa:i[1],pap:i[1],pl:{cardinal:["one","few","many","other"],ordinal:["other"]},prg:{cardinal:["zero","one","other"],ordinal:["other"]},ps:i[1],pt:i[1],"pt-PT":i[1],rm:i[1],ro:{cardinal:["one","few","other"],ordinal:["one","other"]},rof:i[1],root:i[0],ru:{cardinal:["one","few","many","other"],ordinal:["other"]},rwk:i[1],sah:i[0],saq:i[1],sd:i[1],sdh:i[1],se:i[3],seh:i[1],ses:i[0],sg:i[0],sh:{cardinal:["one","few","other"],ordinal:["other"]},shi:{cardinal:["one","few","other"],ordinal:["other"]},si:i[1],
|
||
sk:{cardinal:["one","few","many","other"],ordinal:["other"]},sl:{cardinal:["one","two","few","other"],ordinal:["other"]},sma:i[3],smi:i[3],smj:i[3],smn:i[3],sms:i[3],sn:i[1],so:i[1],sq:{cardinal:["one","other"],ordinal:["one","many","other"]},sr:{cardinal:["one","few","other"],ordinal:["other"]},ss:i[1],ssy:i[1],st:i[1],sv:i[2],sw:i[1],syr:i[1],ta:i[1],te:i[1],teo:i[1],th:i[0],ti:i[1],tig:i[1],tk:{cardinal:["one","other"],ordinal:["few","other"]},tl:i[2],tn:i[1],to:i[0],tr:i[1],ts:i[1],tzm:i[1],ug:i[1],uk:{cardinal:["one","few","many","other"],ordinal:["few","other"]},ur:i[1],uz:i[1],ve:i[1],vi:{cardinal:["other"],ordinal:["one","other"]},vo:i[1],vun:i[1],wa:i[1],wae:i[1],wo:i[0],xh:i[1],xog:i[1],yi:i[1],yo:i[0],yue:i[0],zh:i[0],zu:i[1]})},{}],6:[function(e,n,r){var i=[function(t,e){return"other"},function(t,e){return e?"other":1==t?"one":"other"},function(t,e){return e?"other":0==t||1==t?"one":"other"},function(t,e){var n=String(t).split("."),r=!n[1];return e?"other":1==t&&r?"one":"other"}];!function(e,i){"function"==typeof t&&t.amd?t(i):"object"==typeof r?n.exports=i:e.plurals=i}(this,{af:i[1],ak:i[2],am:function(t,e){return e?"other":t>=0&&t<=1?"one":"other"},ar:function(t,e){var n=String(t).split("."),r=Number(n[0])==t,i=r&&n[0].slice(-2);return e?"other":0==t?"zero":1==t?"one":2==t?"two":i>=3&&i<=10?"few":i>=11&&i<=99?"many":"other"},ars:function(t,e){var n=String(t).split("."),r=Number(n[0])==t,i=r&&n[0].slice(-2);return e?"other":0==t?"zero":1==t?"one":2==t?"two":i>=3&&i<=10?"few":i>=11&&i<=99?"many":"other"},as:function(t,e){return e?1==t||5==t||7==t||8==t||9==t||10==t?"one":2==t||3==t?"two":4==t?"few":6==t?"many":"other":t>=0&&t<=1?"one":"other"},asa:i[1],ast:i[3],az:function(t,e){var n=String(t).split("."),r=n[0],i=r.slice(-1),o=r.slice(-2),a=r.slice(-3);return e?1==i||2==i||5==i||7==i||8==i||20==o||50==o||70==o||80==o?"one":3==i||4==i||100==a||200==a||300==a||400==a||500==a||600==a||700==a||800==a||900==a?"few":0==r||6==i||40==o||60==o||90==o?"many":"other":1==t?"one":"other"},be:function(t,e){var n=String(t).split("."),r=Number(n[0])==t,i=r&&n[0].slice(-1),o=r&&n[0].slice(-2);return e?2!=i&&3!=i||12==o||13==o?"other":"few":1==i&&11!=o?"one":i>=2&&i<=4&&(o<12||o>14)?"few":r&&0==i||i>=5&&i<=9||o>=11&&o<=14?"many":"other"},bem:i[1],bez:i[1],bg:i[1],bh:i[2],bm:i[0],bn:function(t,e){return e?1==t||5==t||7==t||8==t||9==t||10==t?"one":2==t||3==t?"two":4==t?"few":6==t?"many":"other":t>=0&&t<=1?"one":"other"},bo:i[0],br:function(t,e){var n=String(t).split("."),r=Number(n[0])==t,i=r&&n[0].slice(-1),o=r&&n[0].slice(-2),a=r&&n[0].slice(-6);return e?"other":1==i&&11!=o&&71!=o&&91!=o?"one":2==i&&12!=o&&72!=o&&92!=o?"two":(3==i||4==i||9==i)&&(o<10||o>19)&&(o<70||o>79)&&(o<90||o>99)?"few":0!=t&&r&&0==a?"many":"other"},brx:i[1],bs:function(t,e){var n=String(t).split("."),r=n[0],i=n[1]||"",o=!n[1],a=r.slice(-1),s=r.slice(-2),u=i.slice(-1),l=i.slice(-2);return e?"other":o&&1==a&&11!=s||1==u&&11!=l?"one":o&&a>=2&&a<=4&&(s<12||s>14)||u>=2&&u<=4&&(l<12||l>14)?"few":"other"},ca:function(t,e){var n=String(t).split("."),r=!n[1];return e?1==t||3==t?"one":2==t?"two":4==t?"few":"other":1==t&&r?"one":"other"},ce:i[1],cgg:i[1],chr:i[1],ckb:i[1],cs:function(t,e){var n=String(t).split("."),r=n[0],i=!n[1];return e?"other":1==t&&i?"one":r>=2&&r<=4&&i?"few":i?"other":"many"},cy:function(t,e){return e?0==t||7==t||8==t||9==t?"zero":1==t?"one":2==t?"two":3==t||4==t?"few":5==t||6==t?"many":"other":0==t?"zero":1==t?"one":2==t?"two":3==t?"few":6==t?"many":"other"},da:function(t,e){var n=String(t).split("."),r=n[0],i=Number(n[0])==t;return e?"other":1!=t&&(i||0!=r&&1!=r)?"other":"one"},de:i[3],dsb:function(t,e){var n=String(t).split("."),r=n[0],i=n[1]||"",o=!n[1],a=r.slice(-2),s=i.slice(-2);return e?"other":o&&1==a||1==s?"one":o&&2==a||2==s?"two":o&&(3==a||4==a)||3==s||4==s?"few":"other"},dv:i[1],dz:i[0],ee:i[1],el:i[1],en:function(t,e){var n=String(t).split("."),r=!n[1],i=Number(n[0])==t,o=i&&n[0].slice(-1),a=i&&n[0].slice(-2);return e?1==o&&11!=a?"one":2==o&&12!=a?"two":3==o&&13!=a?"few":"other":1==t&&r?"one":"other"},eo:i[1],es:i[1],et:i[3],eu:i[1],fa:function(t,e){return e?"other":t>=0&&t<=1?"one":"other"},ff:function(t,e){return e?"other":t>=0&&t<2?"one":"other"},fi:i[3],fil:function(t,e){var n=String(t).split("."),r=n[0],i=n[1]||"",o=!n[1],a=r.slice(-1),s=i.slice(-1);return e?1==t?"one":"other":o&&(1==r||2==r||3==r)||o&&4!=a&&6!=a&&9!=a||!o&&4!=s&&6!=s&&9!=s?"one":"other"},fo:i[1],fr:function(t,e){return e?1==t?"one":"other":t>=0&&t<2?"one":"other"},fur:i[1],fy:i[3],ga:function(t,e){var n=String(t).split("."),r=Number(n[0])==t;return e?1==t?"one":"other":1==t?"one":2==t?"two":r&&t>=3&&t<=6?"few":r&&t>=7&&t<=10?"many":"other"},gd:function(t,e){var n=String(t).split("."),r=Number(n[0])==t;return e?"other":1==t||11==t?"one":2==t||12==t?"two":r&&t>=3&&t<=10||r&&t>=13&&t<=19?"few":"other"},gl:i[3],gsw:i[1],gu:function(t,e){return e?1==t?"one":2==t||3==t?"two":4==t?"few":6==t?"many":"other":t>=0&&t<=1?"one":"other"},guw:i[2],gv:function(t,e){var n=String(t).split("."),r=n[0],i=!n[1],o=r.slice(-1),a=r.slice(-2);return e?"other":i&&1==o?"one":i&&2==o?"two":!i||0!=a&&20!=a&&40!=a&&60!=a&&80!=a?i?"other":"many":"few"},ha:i[1],haw:i[1],he:function(t,e){var n=String(t).split("."),r=n[0],i=!n[1],o=Number(n[0])==t,a=o&&n[0].slice(-1);return e?"other":1==t&&i?"one":2==r&&i?"two":i&&(t<0||t>10)&&o&&0==a?"many":"other"},hi:function(t,e){return e?1==t?"one":2==t||3==t?"two":4==t?"few":6==t?"many":"other":t>=0&&t<=1?"one":"other"},hr:function(t,e){var n=String(t).split("."),r=n[0],i=n[1]||"",o=!n[1],a=r.slice(-1),s=r.slice(-2),u=i.slice(-1),l=i.slice(-2);return e?"other":o&&1==a&&11!=s||1==u&&11!=l?"one":o&&a>=2&&a<=4&&(s<12||s>14)||u>=2&&u<=4&&(l<12||l>14)?"few":"other"},hsb:function(t,e){var n=String(t).split("."),r=n[0],i=n[1]||"",o=!n[1],a=r.slice(-2),s=i.slice(-2);return e?"other":o&&1==a||1==s?"one":o&&2==a||2==s?"two":o&&(3==a||4==a)||3==s||4==s?"few":"other"},hu:function(t,e){return e?1==t||5==t?"one":"other":1==t?"one":"other"},hy:function(t,e){return e?1==t?"one":"other":t>=0&&t<2?"one":"other"},id:i[0],ig:i[0],ii:i[0],"in":i[0],io:i[3],is:function(t,e){var n=String(t).split("."),r=n[0],i=Number(n[0])==t,o=r.slice(-1),a=r.slice(-2);return e?"other":i&&1==o&&11!=a||!i?"one":"other"},it:function(t,e){var n=String(t).split("."),r=!n[1];return e?11==t||8==t||80==t||800==t?"many":"other":1==t&&r?"one":"other"},iu:function(t,e){return e?"other":1==t?"one":2==t?"two":"other"},iw:function(t,e){var n=String(t).split("."),r=n[0],i=!n[1],o=Number(n[0])==t,a=o&&n[0].slice(-1);return e?"other":1==t&&i?"one":2==r&&i?"two":i&&(t<0||t>10)&&o&&0==a?"many":"other"},ja:i[0],jbo:i[0],jgo:i[1],ji:i[3],jmc:i[1],jv:i[0],jw:i[0],ka:function(t,e){var n=String(t).split("."),r=n[0],i=r.slice(-2);return e?1==r?"one":0==r||i>=2&&i<=20||40==i||60==i||80==i?"many":"other":1==t?"one":"other"},kab:function(t,e){return e?"other":t>=0&&t<2?"one":"other"},kaj:i[1],kcg:i[1],kde:i[0],kea:i[0],kk:function(t,e){var n=String(t).split("."),r=Number(n[0])==t,i=r&&n[0].slice(-1);return e?6==i||9==i||r&&0==i&&0!=t?"many":"other":1==t?"one":"other"},kkj:i[1],kl:i[1],km:i[0],kn:function(t,e){return e?"other":t>=0&&t<=1?"one":"other"},ko:i[0],ks:i[1],ksb:i[1],ksh:function(t,e){return e?"other":0==t?"zero":1==t?"one":"other"},ku:i[1],kw:function(t,e){return e?"other":1==t?"one":2==t?"two":"other"},ky:i[1],lag:function(t,e){var n=String(t).split("."),r=n[0];return e?"other":0==t?"zero":0!=r&&1!=r||0==t?"other":"one"},lb:i[1],lg:i[1],lkt:i[0],ln:i[2],lo:function(t,e){return e&&1==t?"one":"other"},lt:function(t,e){var n=String(t).split("."),r=n[1]||"",i=Number(n[0])==t,o=i&&n[0].slice(-1),a=i&&n[0].slice(-2);return e?"other":1==o&&(a<11||a>19)?"one":o>=2&&o<=9&&(a<11||a>19)?"few":0!=r?"many":"other"},lv:function(t,e){var n=String(t).split("."),r=n[1]||"",i=r.length,o=Number(n[0])==t,a=o&&n[0].slice(-1),s=o&&n[0].slice(-2),u=r.slice(-2),l=r.slice(-1);return e?"other":o&&0==a||s>=11&&s<=19||2==i&&u>=11&&u<=19?"zero":1==a&&11!=s||2==i&&1==l&&11!=u||2!=i&&1==l?"one":"other"},mas:i[1],mg:i[2],mgo:i[1],mk:function(t,e){var n=String(t).split("."),r=n[0],i=n[1]||"",o=!n[1],a=r.slice(-1),s=r.slice(-2),u=i.slice(-1);return e?1==a&&11!=s?"one":2==a&&12!=s?"two":7!=a&&8!=a||17==s||18==s?"other":"many":o&&1==a||1==u?"one":"other"},ml:i[1],mn:i[1],mo:function(t,e){var n=String(t).split("."),r=!n[1],i=Number(n[0])==t,o=i&&n[0].slice(-2);return e?1==t?"one":"other":1==t&&r?"one":!r||0==t||1!=t&&o>=1&&o<=19?"few":"other"},mr:function(t,e){return e?1==t?"one":2==t||3==t?"two":4==t?"few":"other":t>=0&&t<=1?"one":"other"},ms:function(t,e){return e&&1==t?"one":"other"},mt:function(t,e){var n=String(t).split("."),r=Number(n[0])==t,i=r&&n[0].slice(-2);return e?"other":1==t?"one":0==t||i>=2&&i<=10?"few":i>=11&&i<=19?"many":"other"},my:i[0],nah:i[1],naq:function(t,e){return e?"other":1==t?"one":2==t?"two":"other"},nb:i[1],nd:i[1],ne:function(t,e){var n=String(t).split("."),r=Number(n[0])==t;return e?r&&t>=1&&t<=4?"one":"other":1==t?"one":"other"},nl:i[3],nn:i[1],nnh:i[1],no:i[1],nqo:i[0],nr:i[1],nso:i[2],ny:i[1],nyn:i[1],om:i[1],or:function(t,e){var n=String(t).split("."),r=Number(n[0])==t;return e?1==t||5==t||r&&t>=7&&t<=9?"one":2==t||3==t?"two":4==t?"few":6==t?"many":"other":1==t?"one":"other"},os:i[1],pa:i[2],pap:i[1],pl:function(t,e){var n=String(t).split("."),r=n[0],i=!n[1],o=r.slice(-1),a=r.slice(-2);return e?"other":1==t&&i?"one":i&&o>=2&&o<=4&&(a<12||a>14)?"few":i&&1!=r&&(0==o||1==o)||i&&o>=5&&o<=9||i&&a>=12&&a<=14?"many":"other"},prg:function(t,e){var n=String(t).split("."),r=n[1]||"",i=r.length,o=Number(n[0])==t,a=o&&n[0].slice(-1),s=o&&n[0].slice(-2),u=r.slice(-2),l=r.slice(-1);return e?"other":o&&0==a||s>=11&&s<=19||2==i&&u>=11&&u<=19?"zero":1==a&&11!=s||2==i&&1==l&&11!=u||2!=i&&1==l?"one":"other"},ps:i[1],pt:function(t,e){var n=String(t).split("."),r=n[0];return e?"other":0==r||1==r?"one":"other"},"pt-PT":i[3],rm:i[1],ro:function(t,e){var n=String(t).split("."),r=!n[1],i=Number(n[0])==t,o=i&&n[0].slice(-2);return e?1==t?"one":"other":1==t&&r?"one":!r||0==t||1!=t&&o>=1&&o<=19?"few":"other"},rof:i[1],root:i[0],ru:function(t,e){var n=String(t).split("."),r=n[0],i=!n[1],o=r.slice(-1),a=r.slice(-2);return e?"other":i&&1==o&&11!=a?"one":i&&o>=2&&o<=4&&(a<12||a>14)?"few":i&&0==o||i&&o>=5&&o<=9||i&&a>=11&&a<=14?"many":"other"},rwk:i[1],sah:i[0],saq:i[1],sd:i[1],sdh:i[1],se:function(t,e){return e?"other":1==t?"one":2==t?"two":"other"},seh:i[1],ses:i[0],sg:i[0],sh:function(t,e){var n=String(t).split("."),r=n[0],i=n[1]||"",o=!n[1],a=r.slice(-1),s=r.slice(-2),u=i.slice(-1),l=i.slice(-2);return e?"other":o&&1==a&&11!=s||1==u&&11!=l?"one":o&&a>=2&&a<=4&&(s<12||s>14)||u>=2&&u<=4&&(l<12||l>14)?"few":"other"},shi:function(t,e){var n=String(t).split("."),r=Number(n[0])==t;return e?"other":t>=0&&t<=1?"one":r&&t>=2&&t<=10?"few":"other"},si:function(t,e){var n=String(t).split("."),r=n[0],i=n[1]||"";return e?"other":0==t||1==t||0==r&&1==i?"one":"other"},sk:function(t,e){var n=String(t).split("."),r=n[0],i=!n[1];return e?"other":1==t&&i?"one":r>=2&&r<=4&&i?"few":i?"other":"many"},sl:function(t,e){var n=String(t).split("."),r=n[0],i=!n[1],o=r.slice(-2);return e?"other":i&&1==o?"one":i&&2==o?"two":i&&(3==o||4==o)||!i?"few":"other"},sma:function(t,e){return e?"other":1==t?"one":2==t?"two":"other"},smi:function(t,e){return e?"other":1==t?"one":2==t?"two":"other"},smj:function(t,e){return e?"other":1==t?"one":2==t?"two":"other"},smn:function(t,e){return e?"other":1==t?"one":2==t?"two":"other"},sms:function(t,e){return e?"other":1==t?"one":2==t?"two":"other"},sn:i[1],so:i[1],sq:function(t,e){var n=String(t).split("."),r=Number(n[0])==t,i=r&&n[0].slice(-1),o=r&&n[0].slice(-2);return e?1==t?"one":4==i&&14!=o?"many":"other":1==t?"one":"other"},sr:function(t,e){var n=String(t).split("."),r=n[0],i=n[1]||"",o=!n[1],a=r.slice(-1),s=r.slice(-2),u=i.slice(-1),l=i.slice(-2);return e?"other":o&&1==a&&11!=s||1==u&&11!=l?"one":o&&a>=2&&a<=4&&(s<12||s>14)||u>=2&&u<=4&&(l<12||l>14)?"few":"other"},ss:i[1],ssy:i[1],st:i[1],sv:function(t,e){var n=String(t).split("."),r=!n[1],i=Number(n[0])==t,o=i&&n[0].slice(-1),a=i&&n[0].slice(-2);return e?1!=o&&2!=o||11==a||12==a?"other":"one":1==t&&r?"one":"other"},sw:i[3],syr:i[1],ta:i[1],te:i[1],teo:i[1],th:i[0],ti:i[2],tig:i[1],tk:function(t,e){var n=String(t).split("."),r=Number(n[0])==t,i=r&&n[0].slice(-1);return e?6==i||9==i||10==t?"few":"other":1==t?"one":"other"},tl:function(t,e){var n=String(t).split("."),r=n[0],i=n[1]||"",o=!n[1],a=r.slice(-1),s=i.slice(-1);return e?1==t?"one":"other":o&&(1==r||2==r||3==r)||o&&4!=a&&6!=a&&9!=a||!o&&4!=s&&6!=s&&9!=s?"one":"other"},tn:i[1],to:i[0],tr:i[1],ts:i[1],tzm:function(t,e){var n=String(t).split("."),r=Number(n[0])==t;return e?"other":0==t||1==t||r&&t>=11&&t<=99?"one":"other"},ug:i[1],uk:function(t,e){var n=String(t).split("."),r=n[0],i=!n[1],o=Number(n[0])==t,a=o&&n[0].slice(-1),s=o&&n[0].slice(-2),u=r.slice(-1),l=r.slice(-2);return e?3==a&&13!=s?"few":"other":i&&1==u&&11!=l?"one":i&&u>=2&&u<=4&&(l<12||l>14)?"few":i&&0==u||i&&u>=5&&u<=9||i&&l>=11&&l<=14?"many":"other"},ur:i[3],uz:i[1],ve:i[1],vi:function(t,e){return e&&1==t?"one":"other"},vo:i[1],vun:i[1],wa:i[2],wae:i[1],wo:i[0],xh:i[1],xog:i[1],yi:i[3],yo:i[0],yue:i[0],zh:i[0],zu:function(t,e){return e?"other":t>=0&&t<=1?"one":"other"}})},{}],7:[function(t,e,n){"use strict";function r(t,e){function n(){this.constructor=t}n.prototype=e.prototype,t.prototype=new n}function i(t,e,n,r){this.message=t,this.expected=e,this.found=n,this.location=r,this.name="SyntaxError","function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,i)}function o(t,e){function n(t,e){return{type:"literal",text:t,ignoreCase:e}}function r(t,e,n){return{type:"class",parts:t,inverted:e,ignoreCase:n}}function o(){return{type:"end"}}function a(t){return{type:"other",description:t}}function s(e){var n,r=de[e];if(r)return r;for(n=e-1;!de[n];)n--;for(r=de[n],r={line:r.line,column:r.column};n<e;)10===t.charCodeAt(n)?(r.line++,r.column=1):r.column++,n++;return de[e]=r,r}function u(t,e){var n=s(t),r=s(e);return{start:{offset:t,line:n.line,column:n.column},end:{offset:e,line:r.line,column:r.column}}}function l(t){fe<pe||(fe>pe&&(pe=fe,me=[]),me.push(t))}function c(t,e,n){return new i(i.buildMessage(t,e),t,e,n)}function f(){var t,e;for(t=[],e=h();e!==q;)t.push(e),e=h();return t}function h(){var e,n,r;if(e=d(),e===q&&(e=p(),e===q&&(e=m(),e===q&&(e=g(),e===q&&(e=fe,35===t.charCodeAt(fe)?(n=B,fe++):(n=q,0===ge&&l(U)),n!==q&&(he=e,n=V()),e=n,e===q))))){if(e=fe,n=[],r=N(),r!==q)for(;r!==q;)n.push(r),r=N();else n=q;n!==q&&(he=e,n=W(n)),e=n}return e}function d(){var e,n,r,i,o,a;return e=fe,123===t.charCodeAt(fe)?(n=Y,fe++):(n=q,0===ge&&l(G)),n!==q?(r=R(),r!==q?(i=v(),i!==q?(o=R(),o!==q?(125===t.charCodeAt(fe)?(a=K,fe++):(a=q,0===ge&&l(Z)),a!==q?(he=e,n=X(i),e=n):(fe=e,e=q)):(fe=e,e=q)):(fe=e,e=q)):(fe=e,e=q)):(fe=e,e=q),e}function p(){var e,n,r,i,o,a,s,u,c,f,h,d,p,m;if(e=fe,123===t.charCodeAt(fe)?(n=Y,fe++):(n=q,0===ge&&l(G)),n!==q)if(r=R(),r!==q)if(i=v(),i!==q)if(o=R(),o!==q)if(44===t.charCodeAt(fe)?(a=J,fe++):(a=q,0===ge&&l(Q)),a!==q)if(s=R(),s!==q)if(t.substr(fe,6)===tt?(u=tt,fe+=6):(u=q,0===ge&&l(et)),u!==q)if(c=R(),c!==q)if(44===t.charCodeAt(fe)?(f=J,fe++):(f=q,0===ge&&l(Q)),f!==q)if(h=R(),h!==q){if(d=[],p=_(),p!==q)for(;p!==q;)d.push(p),p=_();else d=q;d!==q?(p=R(),p!==q?(125===t.charCodeAt(fe)?(m=K,fe++):(m=q,0===ge&&l(Z)),m!==q?(he=e,n=nt(i,d),e=n):(fe=e,e=q)):(fe=e,e=q)):(fe=e,e=q)}else fe=e,e=q;else fe=e,e=q;else fe=e,e=q;else fe=e,e=q;else fe=e,e=q;else fe=e,e=q;else fe=e,e=q;else fe=e,e=q;else fe=e,e=q;else fe=e,e=q;return e}function m(){var e,n,r,i,o,a,s,u,c,f,h,d,p,m,g;if(e=fe,123===t.charCodeAt(fe)?(n=Y,fe++):(n=q,0===ge&&l(G)),n!==q)if(r=R(),r!==q)if(i=v(),i!==q)if(o=R(),o!==q)if(44===t.charCodeAt(fe)?(a=J,fe++):(a=q,0===ge&&l(Q)),a!==q)if(s=R(),s!==q)if(t.substr(fe,6)===rt?(u=rt,fe+=6):(u=q,0===ge&&l(it)),u===q&&(t.substr(fe,13)===ot?(u=ot,fe+=13):(u=q,0===ge&&l(at))),u!==q)if(c=R(),c!==q)if(44===t.charCodeAt(fe)?(f=J,fe++):(f=q,0===ge&&l(Q)),f!==q)if(h=R(),h!==q)if(d=k(),d===q&&(d=null),d!==q){if(p=[],m=w(),m!==q)for(;m!==q;)p.push(m),m=w();else p=q;p!==q?(m=R(),m!==q?(125===t.charCodeAt(fe)?(g=K,fe++):(g=q,0===ge&&l(Z)),g!==q?(he=e,n=st(i,u,d,p),e=n):(fe=e,e=q)):(fe=e,e=q)):(fe=e,e=q)}else fe=e,e=q;else fe=e,e=q;else fe=e,e=q;else fe=e,e=q;else fe=e,e=q;else fe=e,e=q;else fe=e,e=q;else fe=e,e=q;else fe=e,e=q;else fe=e,e=q;else fe=e,e=q;return e}function g(){var e,n,r,i,o,a,s,u,c,f,h;return e=fe,123===t.charCodeAt(fe)?(n=Y,fe++):(n=q,0===ge&&l(G)),n!==q?(r=R(),r!==q?(i=v(),i!==q?(o=R(),o!==q?(44===t.charCodeAt(fe)?(a=J,fe++):(a=q,0===ge&&l(Q)),a!==q?(s=R(),s!==q?(u=v(),u!==q?(c=R(),c!==q?(f=E(),f!==q?(125===t.charCodeAt(fe)?(h=K,fe++):(h=q,0===ge&&l(Z)),h!==q?(he=e,n=ut(i,u,f),e=n):(fe=e,e=q)):(fe=e,e=q)):(fe=e,e=q)):(fe=e,e=q)):(fe=e,e=q)):(fe=e,e=q)):(fe=e,e=q)):(fe=e,e=q)):(fe=e,e=q)):(fe=e,e=q),e}function v(){var e,n,r,i,o;if(e=fe,n=fe,lt.test(t.charAt(fe))?(r=t.charAt(fe),fe++):(r=q,0===ge&&l(ct)),r!==q){for(i=[],ft.test(t.charAt(fe))?(o=t.charAt(fe),fe++):(o=q,0===ge&&l(ht));o!==q;)i.push(o),ft.test(t.charAt(fe))?(o=t.charAt(fe),fe++):(o=q,0===ge&&l(ht));i!==q?(r=[r,i],n=r):(fe=n,n=q)}else fe=n,n=q;return e=n!==q?t.substring(e,fe):n}function y(){var t,e,n;if(t=fe,e=[],n=O(),n!==q)for(;n!==q;)e.push(n),n=O();else e=q;return e!==q&&(he=t,e=W(e)),t=e}function b(){var t,e,n;if(t=fe,e=[],n=j(),n!==q)for(;n!==q;)e.push(n),n=j();else e=q;return e!==q&&(he=t,e=W(e)),t=e}function _(){var t,e,n,r,i;return t=fe,e=R(),e!==q?(n=v(),n!==q?(r=R(),r!==q?(i=x(),i!==q?(he=t,e=dt(n,i),t=e):(fe=t,t=q)):(fe=t,t=q)):(fe=t,t=q)):(fe=t,t=q),t}function w(){var t,e,n,r,i;return t=fe,e=R(),e!==q?(n=C(),n!==q?(r=R(),r!==q?(i=x(),i!==q?(he=t,e=dt(n,i),t=e):(fe=t,t=q)):(fe=t,t=q)):(fe=t,t=q)):(fe=t,t=q),t}function x(){var e,n,r,i,o,a;if(e=fe,123===t.charCodeAt(fe)?(n=Y,fe++):(n=q,0===ge&&l(G)),n!==q)if(r=fe,i=R(),i!==q?(o=fe,ge++,123===t.charCodeAt(fe)?(a=Y,fe++):(a=q,0===ge&&l(G)),ge--,a!==q?(fe=o,o=void 0):o=q,o!==q?(i=[i,o],r=i):(fe=r,r=q)):(fe=r,r=q),r===q&&(r=null),r!==q){for(i=[],o=h();o!==q;)i.push(o),o=h();i!==q?(o=R(),o!==q?(125===t.charCodeAt(fe)?(a=K,fe++):(a=q,0===ge&&l(Z)),a!==q?(he=e,n=pt(i),e=n):(fe=e,e=q)):(fe=e,e=q)):(fe=e,e=q)}else fe=e,e=q;else fe=e,e=q;return e}function k(){var e,n,r,i,o,a,s,u;return e=fe,n=R(),n!==q?(t.substr(fe,6)===mt?(r=mt,fe+=6):(r=q,0===ge&&l(gt)),r!==q?(i=R(),i!==q?(58===t.charCodeAt(fe)?(o=vt,fe++):(o=q,0===ge&&l(yt)),o!==q?(a=R(),a!==q?(s=P(),s!==q?(u=R(),u!==q?(he=e,n=bt(s),e=n):(fe=e,e=q)):(fe=e,e=q)):(fe=e,e=q)):(fe=e,e=q)):(fe=e,e=q)):(fe=e,e=q)):(fe=e,e=q),e}function C(){var e,n,r;return e=v(),e===q&&(e=fe,61===t.charCodeAt(fe)?(n=_t,fe++):(n=q,0===ge&&l(wt)),n!==q?(r=P(),r!==q?(he=e,n=bt(r),e=n):(fe=e,e=q)):(fe=e,e=q)),e}function E(){var t,e,n;for(t=fe,e=[],n=S();n!==q;)e.push(n),n=S();if(e!==q?(he=fe,n=xt(e),n=n?q:void 0,n!==q?(he=t,e=kt(e),t=e):(fe=t,t=q)):(fe=t,t=q),t===q){for(t=fe,e=[],n=$();n!==q;)e.push(n),n=$();e!==q?(he=fe,n=xt(e),n=n?void 0:q,n!==q?(he=t,e=kt(e),t=e):(fe=t,t=q)):(fe=t,t=q)}return t}function $(){var e,n,r,i;return e=fe,n=R(),n!==q?(44===t.charCodeAt(fe)?(r=J,fe++):(r=q,0===ge&&l(Q)),r!==q?(i=b(),i!==q?(he=e,n=kt(i),e=n):(fe=e,e=q)):(fe=e,e=q)):(fe=e,e=q),e}function S(){var e,n,r,i,o,a;return e=fe,n=R(),n!==q?(44===t.charCodeAt(fe)?(r=J,fe++):(r=q,0===ge&&l(Q)),r!==q?(i=R(),i!==q?(o=y(),o!==q?(a=R(),a!==q?(he=e,n=Ct(o),e=n):(fe=e,e=q)):(fe=e,e=q)):(fe=e,e=q)):(fe=e,e=q)):(fe=e,e=q),e}function A(){var e,n;return e=fe,t.substr(fe,2)===Et?(n=Et,fe+=2):(n=q,0===ge&&l($t)),n!==q&&(he=e,n=St()),e=n}function T(){var e,n,r;if(e=A(),e===q){if(e=fe,n=[],At.test(t.charAt(fe))?(r=t.charAt(fe),fe++):(r=q,0===ge&&l(Tt)),r!==q)for(;r!==q;)n.push(r),At.test(t.charAt(fe))?(r=t.charAt(fe),fe++):(r=q,0===ge&&l(Tt));else n=q;n!==q&&(he=e,n=W(n)),e=n}return e}function D(){var e,n,r,i;if(e=fe,t.substr(fe,2)===Dt?(n=Dt,fe+=2):(n=q,0===ge&&l(Ft)),n!==q){for(r=[],i=T();i!==q;)r.push(i),i=T();r!==q?(39===t.charCodeAt(fe)?(i=Nt,fe++):(i=q,0===ge&&l(Mt)),i!==q?(he=e,n=Ot(r),e=n):(fe=e,e=q)):(fe=e,e=q)}else fe=e,e=q;if(e===q)if(e=fe,t.substr(fe,2)===jt?(n=jt,fe+=2):(n=q,0===ge&&l(Pt)),n!==q){for(r=[],i=T();i!==q;)r.push(i),i=T();r!==q?(39===t.charCodeAt(fe)?(i=Nt,fe++):(i=q,0===ge&&l(Mt)),i!==q?(he=e,n=Lt(r),e=n):(fe=e,e=q)):(fe=e,e=q)}else fe=e,e=q;return e}function F(){var e;return e=D(),e===q&&(39===t.charCodeAt(fe)?(e=Nt,fe++):(e=q,0===ge&&l(Mt))),e}function N(){var e,n,r,i,o,a;return Rt.test(t.charAt(fe))?(e=t.charAt(fe),fe++):(e=q,0===ge&&l(It)),e===q&&(e=fe,t.substr(fe,2)===qt?(n=qt,fe+=2):(n=q,0===ge&&l(zt)),n!==q&&(he=e,n=Ht()),e=n,e===q&&(e=fe,t.substr(fe,2)===Bt?(n=Bt,fe+=2):(n=q,0===ge&&l(Ut)),n!==q&&(he=e,n=Vt()),e=n,e===q&&(e=fe,t.substr(fe,2)===Wt?(n=Wt,fe+=2):(n=q,0===ge&&l(Yt)),n!==q&&(he=e,n=Gt()),e=n,e===q&&(e=fe,t.substr(fe,2)===Kt?(n=Kt,fe+=2):(n=q,0===ge&&l(Zt)),n!==q&&(he=e,n=Xt()),e=n,e===q&&(e=fe,t.substr(fe,2)===Jt?(n=Jt,fe+=2):(n=q,0===ge&&l(Qt)),n!==q?(r=L(),r!==q?(i=L(),i!==q?(o=L(),o!==q?(a=L(),a!==q?(he=e,n=te(r,i,o,a),e=n):(fe=e,e=q)):(fe=e,e=q)):(fe=e,e=q)):(fe=e,e=q)):(fe=e,e=q)))))),e}function M(){var t;return t=A(),t===q&&(t=F()),t}function O(){var e,n,r;if(e=M(),e===q){if(e=fe,n=[],ee.test(t.charAt(fe))?(r=t.charAt(fe),fe++):(r=q,0===ge&&l(ne)),r!==q)for(;r!==q;)n.push(r),ee.test(t.charAt(fe))?(r=t.charAt(fe),fe++):(r=q,0===ge&&l(ne));else n=q;n!==q&&(he=e,n=W(n)),e=n}return e}function j(){var e,n,r;if(e=M(),e===q){if(e=fe,n=[],re.test(t.charAt(fe))?(r=t.charAt(fe),fe++):(r=q,0===ge&&l(ie)),r!==q)for(;r!==q;)n.push(r),re.test(t.charAt(fe))?(r=t.charAt(fe),fe++):(r=q,0===ge&&l(ie));else n=q;n!==q&&(he=e,n=W(n)),e=n}return e}function P(){var e,n,r;if(e=fe,n=[],oe.test(t.charAt(fe))?(r=t.charAt(fe),fe++):(r=q,0===ge&&l(ae)),r!==q)for(;r!==q;)n.push(r),oe.test(t.charAt(fe))?(r=t.charAt(fe),fe++):(r=q,0===ge&&l(ae));else n=q;return e=n!==q?t.substring(e,fe):n}function L(){var e;return se.test(t.charAt(fe))?(e=t.charAt(fe),fe++):(e=q,0===ge&&l(ue)),e}function R(){var e,n,r;for(e=fe,n=[],le.test(t.charAt(fe))?(r=t.charAt(fe),fe++):(r=q,0===ge&&l(ce));r!==q;)n.push(r),le.test(t.charAt(fe))?(r=t.charAt(fe),fe++):(r=q,0===ge&&l(ce));return e=n!==q?t.substring(e,fe):n}e=void 0!==e?e:{};var I,q={},z={start:f},H=f,B="#",U=n("#",!1),V=function(){return{type:"octothorpe"}},W=function(t){return t.join("")},Y="{",G=n("{",!1),K="}",Z=n("}",!1),X=function(t){return{type:"argument",arg:t}},J=",",Q=n(",",!1),tt="select",et=n("select",!1),nt=function(t,e){return{type:"select",arg:t,cases:e}},rt="plural",it=n("plural",!1),ot="selectordinal",at=n("selectordinal",!1),st=function(t,n,r,i){var o=("selectordinal"===n?e.ordinal:e.cardinal)||["zero","one","two","few","many","other"];return o&&o.length&&i.forEach(function(e){if(isNaN(e.key)&&o.indexOf(e.key)<0)throw new Error("Invalid key `"+e.key+"` for argument `"+t+"`. Valid "+n+" keys for this locale are `"+o.join("`, `")+"`, and explicit keys like `=0`.")}),{type:n,arg:t,offset:r||0,cases:i}},ut=function(t,e,n){return{type:"function",arg:t,key:e,params:n}},lt=/^[0-9a-zA-Z$_]/,ct=r([["0","9"],["a","z"],["A","Z"],"$","_"],!1,!1),ft=/^[^ \t\n\r,.+={}]/,ht=r([" ","\t","\n","\r",",",".","+","=","{","}"],!0,!1),dt=function(t,e){return{key:t,tokens:e}},pt=function(t){return t},mt="offset",gt=n("offset",!1),vt=":",yt=n(":",!1),bt=function(t){return t},_t="=",wt=n("=",!1),xt=function(t){return e.strictFunctionParams},kt=function(t){return t},Ct=function(t){return t.replace(/^[ \t\n\r]*|[ \t\n\r]*$/g,"")},Et="''",$t=n("''",!1),St=function(){return"'"},At=/^[^']/,Tt=r(["'"],!0,!1),Dt="'{",Ft=n("'{",!1),Nt="'",Mt=n("'",!1),Ot=function(t){return"{"+t.join("")},jt="'}",Pt=n("'}",!1),Lt=function(t){return"}"+t.join("")},Rt=/^[^{}#\\\0-\x08\x0E-\x1F\x7F]/,It=r(["{","}","#","\\",["\0","\b"],["",""],""],!0,!1),qt="\\\\",zt=n("\\\\",!1),Ht=function(){return"\\"},Bt="\\#",Ut=n("\\#",!1),Vt=function(){return"#"},Wt="\\{",Yt=n("\\{",!1),Gt=function(){return"{"},Kt="\\}",Zt=n("\\}",!1),Xt=function(){return"}"},Jt="\\u",Qt=n("\\u",!1),te=function(t,e,n,r){return String.fromCharCode(parseInt("0x"+t+e+n+r))},ee=/^[^',}]/,ne=r(["'",",","}"],!0,!1),re=/^[^'}]/,ie=r(["'","}"],!0,!1),oe=/^[0-9]/,ae=r([["0","9"]],!1,!1),se=/^[0-9a-fA-F]/,ue=r([["0","9"],["a","f"],["A","F"]],!1,!1),le=/^[ \t\n\r]/,ce=r([" ","\t","\n","\r"],!1,!1),fe=0,he=0,de=[{line:1,column:1}],pe=0,me=[],ge=0;if("startRule"in e){if(!(e.startRule in z))throw new Error("Can't start parsing from rule \""+e.startRule+'".');H=z[e.startRule]}if(I=H(),I!==q&&fe===t.length)return I;throw I!==q&&fe<t.length&&l(o()),c(me,pe<t.length?t.charAt(pe):null,pe<t.length?u(pe,pe+1):u(pe,pe))}r(i,Error),i.buildMessage=function(t,e){function n(t){return t.charCodeAt(0).toString(16).toUpperCase()}function r(t){return t.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,function(t){return"\\x0"+n(t)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(t){return"\\x"+n(t)})}function i(t){return t.replace(/\\/g,"\\\\").replace(/\]/g,"\\]").replace(/\^/g,"\\^").replace(/-/g,"\\-").replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,function(t){return"\\x0"+n(t)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(t){return"\\x"+n(t)})}function o(t){return u[t.type](t)}function a(t){var e,n,r=new Array(t.length);for(e=0;e<t.length;e++)r[e]=o(t[e]);if(r.sort(),r.length>0){for(e=1,n=1;e<r.length;e++)r[e-1]!==r[e]&&(r[n]=r[e],n++);r.length=n}switch(r.length){case 1:return r[0];case 2:return r[0]+" or "+r[1];default:return r.slice(0,-1).join(", ")+", or "+r[r.length-1]}}function s(t){return t?'"'+r(t)+'"':"end of input"}var u={literal:function(t){return'"'+r(t.text)+'"'},"class":function(t){var e,n="";for(e=0;e<t.parts.length;e++)n+=t.parts[e]instanceof Array?i(t.parts[e][0])+"-"+i(t.parts[e][1]):i(t.parts[e]);return"["+(t.inverted?"^":"")+n+"]"},any:function(t){return"any character"},end:function(t){return"end of input"},other:function(t){return t.description}};return"Expected "+a(t)+" but "+s(e)+" found."},e.exports={SyntaxError:i,parse:o}},{}],8:[function(t,e,n){function r(){throw new Error("setTimeout has not been defined")}function i(){throw new Error("clearTimeout has not been defined")}function o(t){if(f===setTimeout)return setTimeout(t,0);if((f===r||!f)&&setTimeout)return f=setTimeout,setTimeout(t,0);try{return f(t,0)}catch(e){try{return f.call(null,t,0)}catch(e){return f.call(this,t,0)}}}function a(t){if(h===clearTimeout)return clearTimeout(t);if((h===i||!h)&&clearTimeout)return h=clearTimeout,clearTimeout(t);try{return h(t)}catch(e){try{return h.call(null,t)}catch(e){return h.call(this,t)}}}function s(){g&&p&&(g=!1,p.length?m=p.concat(m):v=-1,m.length&&u())}function u(){if(!g){var t=o(s);g=!0;for(var e=m.length;e;){for(p=m,m=[];++v<e;)p&&p[v].run();v=-1,e=m.length}p=null,g=!1,a(t)}}function l(t,e){this.fun=t,this.array=e}function c(){}var f,h,d=e.exports={};!function(){try{f="function"==typeof setTimeout?setTimeout:r}catch(t){f=r}try{h="function"==typeof clearTimeout?clearTimeout:i}catch(t){h=i}}();var p,m=[],g=!1,v=-1;d.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)e[n-1]=arguments[n];m.push(new l(t,e)),1!==m.length||g||o(u)},l.prototype.run=function(){this.fun.apply(null,this.array)},d.title="browser",d.browser=!0,d.env={},d.argv=[],d.version="",d.versions={},d.on=c,d.addListener=c,d.once=c,d.off=c,d.removeListener=c,d.removeAllListeners=c,d.emit=c,d.prependListener=c,d.prependOnceListener=c,d.listeners=function(t){return[]},d.binding=function(t){throw new Error("process.binding is not supported")},d.cwd=function(){return"/"},d.chdir=function(t){throw new Error("process.chdir is not supported")},d.umask=function(){return 0}},{}],9:[function(t,e,n){e.exports=t("./reserved-words")},{"./reserved-words":10}],10:[function(t,e,n){function r(){var t=Array.prototype.map.call(arguments,function(t){return"string"==typeof t?t:Object.keys(t).join(" ")}).join(" ");return t.split(/\s+/).reduce(function(t,e){return t[e]=!0,t},{})}var i=t("assert"),o={es3:3,es5:5,es2015:6,es7:7,es6:6,"default":5,next:6},a=n.KEYWORDS={};n.check=function(t,e,n){e=e||o["default"];var r=o[e]||e;return n&&r>=5&&(r+="-strict"),i(a[r],"Unknown dialect"),a[r].hasOwnProperty(t)},a[3]=r("break else new var","case finally return void","catch for switch while","continue function this with","default if throw","delete in try","do instanceof typeof","abstract enum int short","boolean export interface static","byte extends long super","char final native synchronized","class float package throws","const goto private transient","debugger implements protected volatile","double import public","null true false"),a[5]=r("break do instanceof typeof","case else new var","catch finally return void","continue for switch while","debugger function this with","default if throw","delete in try","class enum extends super","const export import","null true false"),a["5-strict"]=r(a[5],"implements let private public yield","interface package protected static"),a[6]=r("break do in typeof","case else instanceof var","catch export new void","class extends return while","const finally super with","continue for switch yield","debugger function this","default if throw","delete import try","enum await","null true false"),a["6-strict"]=r(a[6],"let static","implements package protected","interface private public")},{assert:4}],11:[function(t,e,n){"function"==typeof Object.create?e.exports=function(t,e){t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}})}:e.exports=function(t,e){t.super_=e;var n=function(){};n.prototype=e.prototype,t.prototype=new n,t.prototype.constructor=t}},{}],12:[function(t,e,n){e.exports=function(t){return t&&"object"==typeof t&&"function"==typeof t.copy&&"function"==typeof t.fill&&"function"==typeof t.readUInt8}},{}],13:[function(t,e,n){(function(e,r){function i(t,e){var r={seen:[],stylize:a};return arguments.length>=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),m(e)?r.showHidden=e:e&&n._extend(r,e),w(r.showHidden)&&(r.showHidden=!1),w(r.depth)&&(r.depth=2),w(r.colors)&&(r.colors=!1),w(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=o),u(r,t,r.depth)}function o(t,e){var n=i.styles[e];return n?"["+i.colors[n][0]+"m"+t+"["+i.colors[n][1]+"m":t}function a(t,e){return t}function s(t){var e={};return t.forEach(function(t,n){e[t]=!0}),e}function u(t,e,r){if(t.customInspect&&e&&$(e.inspect)&&e.inspect!==n.inspect&&(!e.constructor||e.constructor.prototype!==e)){var i=e.inspect(r,t);return b(i)||(i=u(t,i,r)),i}var o=l(t,e);if(o)return o;var a=Object.keys(e),m=s(a);if(t.showHidden&&(a=Object.getOwnPropertyNames(e)),E(e)&&(a.indexOf("message")>=0||a.indexOf("description")>=0))return c(e);if(0===a.length){if($(e)){var g=e.name?": "+e.name:"";return t.stylize("[Function"+g+"]","special")}if(x(e))return t.stylize(RegExp.prototype.toString.call(e),"regexp");if(C(e))return t.stylize(Date.prototype.toString.call(e),"date");if(E(e))return c(e)}var v="",y=!1,_=["{","}"];if(p(e)&&(y=!0,_=["[","]"]),$(e)){var w=e.name?": "+e.name:"";v=" [Function"+w+"]"}if(x(e)&&(v=" "+RegExp.prototype.toString.call(e)),C(e)&&(v=" "+Date.prototype.toUTCString.call(e)),E(e)&&(v=" "+c(e)),0===a.length&&(!y||0==e.length))return _[0]+v+_[1];if(r<0)return x(e)?t.stylize(RegExp.prototype.toString.call(e),"regexp"):t.stylize("[Object]","special");t.seen.push(e);var k;return k=y?f(t,e,r,m,a):a.map(function(n){return h(t,e,r,m,n,y)}),t.seen.pop(),d(k,v,_)}function l(t,e){if(w(e))return t.stylize("undefined","undefined");if(b(e)){
|
||
var n="'"+JSON.stringify(e).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return t.stylize(n,"string")}return y(e)?t.stylize(""+e,"number"):m(e)?t.stylize(""+e,"boolean"):g(e)?t.stylize("null","null"):void 0}function c(t){return"["+Error.prototype.toString.call(t)+"]"}function f(t,e,n,r,i){for(var o=[],a=0,s=e.length;a<s;++a)F(e,String(a))?o.push(h(t,e,n,r,String(a),!0)):o.push("");return i.forEach(function(i){i.match(/^\d+$/)||o.push(h(t,e,n,r,i,!0))}),o}function h(t,e,n,r,i,o){var a,s,l;if(l=Object.getOwnPropertyDescriptor(e,i)||{value:e[i]},l.get?s=l.set?t.stylize("[Getter/Setter]","special"):t.stylize("[Getter]","special"):l.set&&(s=t.stylize("[Setter]","special")),F(r,i)||(a="["+i+"]"),s||(t.seen.indexOf(l.value)<0?(s=g(n)?u(t,l.value,null):u(t,l.value,n-1),s.indexOf("\n")>-1&&(s=o?s.split("\n").map(function(t){return" "+t}).join("\n").substr(2):"\n"+s.split("\n").map(function(t){return" "+t}).join("\n"))):s=t.stylize("[Circular]","special")),w(a)){if(o&&i.match(/^\d+$/))return s;a=JSON.stringify(""+i),a.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(a=a.substr(1,a.length-2),a=t.stylize(a,"name")):(a=a.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),a=t.stylize(a,"string"))}return a+": "+s}function d(t,e,n){var r=0,i=t.reduce(function(t,e){return r++,e.indexOf("\n")>=0&&r++,t+e.replace(/\u001b\[\d\d?m/g,"").length+1},0);return i>60?n[0]+(""===e?"":e+"\n ")+" "+t.join(",\n ")+" "+n[1]:n[0]+e+" "+t.join(", ")+" "+n[1]}function p(t){return Array.isArray(t)}function m(t){return"boolean"==typeof t}function g(t){return null===t}function v(t){return null==t}function y(t){return"number"==typeof t}function b(t){return"string"==typeof t}function _(t){return"symbol"==typeof t}function w(t){return void 0===t}function x(t){return k(t)&&"[object RegExp]"===A(t)}function k(t){return"object"==typeof t&&null!==t}function C(t){return k(t)&&"[object Date]"===A(t)}function E(t){return k(t)&&("[object Error]"===A(t)||t instanceof Error)}function $(t){return"function"==typeof t}function S(t){return null===t||"boolean"==typeof t||"number"==typeof t||"string"==typeof t||"symbol"==typeof t||"undefined"==typeof t}function A(t){return Object.prototype.toString.call(t)}function T(t){return t<10?"0"+t.toString(10):t.toString(10)}function D(){var t=new Date,e=[T(t.getHours()),T(t.getMinutes()),T(t.getSeconds())].join(":");return[t.getDate(),j[t.getMonth()],e].join(" ")}function F(t,e){return Object.prototype.hasOwnProperty.call(t,e)}var N=/%[sdj%]/g;n.format=function(t){if(!b(t)){for(var e=[],n=0;n<arguments.length;n++)e.push(i(arguments[n]));return e.join(" ")}for(var n=1,r=arguments,o=r.length,a=String(t).replace(N,function(t){if("%%"===t)return"%";if(n>=o)return t;switch(t){case"%s":return String(r[n++]);case"%d":return Number(r[n++]);case"%j":try{return JSON.stringify(r[n++])}catch(e){return"[Circular]"}default:return t}}),s=r[n];n<o;s=r[++n])a+=g(s)||!k(s)?" "+s:" "+i(s);return a},n.deprecate=function(t,i){function o(){if(!a){if(e.throwDeprecation)throw new Error(i);e.traceDeprecation?console.trace(i):console.error(i),a=!0}return t.apply(this,arguments)}if(w(r.process))return function(){return n.deprecate(t,i).apply(this,arguments)};if(e.noDeprecation===!0)return t;var a=!1;return o};var M,O={};n.debuglog=function(t){if(w(M)&&(M=e.env.NODE_DEBUG||""),t=t.toUpperCase(),!O[t])if(new RegExp("\\b"+t+"\\b","i").test(M)){var r=e.pid;O[t]=function(){var e=n.format.apply(n,arguments);console.error("%s %d: %s",t,r,e)}}else O[t]=function(){};return O[t]},n.inspect=i,i.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},i.styles={special:"cyan",number:"yellow","boolean":"yellow",undefined:"grey","null":"bold",string:"green",date:"magenta",regexp:"red"},n.isArray=p,n.isBoolean=m,n.isNull=g,n.isNullOrUndefined=v,n.isNumber=y,n.isString=b,n.isSymbol=_,n.isUndefined=w,n.isRegExp=x,n.isObject=k,n.isDate=C,n.isError=E,n.isFunction=$,n.isPrimitive=S,n.isBuffer=t("./support/isBuffer");var j=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];n.log=function(){console.log("%s - %s",D(),n.format.apply(n,arguments))},n.inherits=t("inherits"),n._extend=function(t,e){if(!e||!k(e))return t;for(var n=Object.keys(e),r=n.length;r--;)t[n[r]]=e[n[r]];return t}}).call(this,t("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./support/isBuffer":12,_process:8,inherits:11}]},{},[2])(2)}),function(t){"use strict";function e(t,e){return e=e||Error,function(){var n,r,i=2,o=arguments,a=o[0],s="["+(t?t+":":"")+a+"] ",u=o[1];for(s+=u.replace(/\{\d+\}/g,function(t){var e=+t.slice(1,-1),n=e+i;return n<o.length?yt(o[n]):t}),s+="\nhttp://errors.angularjs.org/1.5.5/"+(t?t+"/":"")+a,r=i,n="?";r<o.length;r++,n="&")s+=n+"p"+(r-i)+"="+encodeURIComponent(yt(o[r]));return new e(s)}}function n(t){if(null==t||$(t))return!1;if(Wr(t)||w(t)||jr&&t instanceof jr)return!0;var e="length"in Object(t)&&t.length;return x(e)&&(e>=0&&(e-1 in t||t instanceof Array)||"function"==typeof t.item)}function r(t,e,i){var o,a;if(t)if(C(t))for(o in t)"prototype"==o||"length"==o||"name"==o||t.hasOwnProperty&&!t.hasOwnProperty(o)||e.call(i,t[o],o,t);else if(Wr(t)||n(t)){var s="object"!=typeof t;for(o=0,a=t.length;o<a;o++)(s||o in t)&&e.call(i,t[o],o,t)}else if(t.forEach&&t.forEach!==r)t.forEach(e,i,t);else if(_(t))for(o in t)e.call(i,t[o],o,t);else if("function"==typeof t.hasOwnProperty)for(o in t)t.hasOwnProperty(o)&&e.call(i,t[o],o,t);else for(o in t)Tr.call(t,o)&&e.call(i,t[o],o,t);return t}function i(t,e,n){for(var r=Object.keys(t).sort(),i=0;i<r.length;i++)e.call(n,t[r[i]],r[i]);return r}function o(t){return function(e,n){t(n,e)}}function a(){return++Vr}function s(t,e){e?t.$$hashKey=e:delete t.$$hashKey}function u(t,e,n){for(var r=t.$$hashKey,i=0,o=e.length;i<o;++i){var a=e[i];if(b(a)||C(a))for(var l=Object.keys(a),c=0,f=l.length;c<f;c++){var h=l[c],d=a[h];n&&b(d)?k(d)?t[h]=new Date(d.valueOf()):E(d)?t[h]=new RegExp(d):d.nodeName?t[h]=d.cloneNode(!0):j(d)?t[h]=d.clone():(b(t[h])||(t[h]=Wr(d)?[]:{}),u(t[h],[d],!0)):t[h]=d}}return s(t,r),t}function l(t){return u(t,Rr.call(arguments,1),!1)}function c(t){return u(t,Rr.call(arguments,1),!0)}function f(t){return parseInt(t,10)}function h(t,e){return l(Object.create(t),e)}function d(){}function p(t){return t}function m(t){return function(){return t}}function g(t){return C(t.toString)&&t.toString!==zr}function v(t){return"undefined"==typeof t}function y(t){return"undefined"!=typeof t}function b(t){return null!==t&&"object"==typeof t}function _(t){return null!==t&&"object"==typeof t&&!Hr(t)}function w(t){return"string"==typeof t}function x(t){return"number"==typeof t}function k(t){return"[object Date]"===zr.call(t)}function C(t){return"function"==typeof t}function E(t){return"[object RegExp]"===zr.call(t)}function $(t){return t&&t.window===t}function S(t){return t&&t.$evalAsync&&t.$watch}function A(t){return"[object File]"===zr.call(t)}function T(t){return"[object FormData]"===zr.call(t)}function D(t){return"[object Blob]"===zr.call(t)}function F(t){return"boolean"==typeof t}function N(t){return t&&C(t.then)}function M(t){return t&&x(t.length)&&Yr.test(zr.call(t))}function O(t){return"[object ArrayBuffer]"===zr.call(t)}function j(t){return!(!t||!(t.nodeName||t.prop&&t.attr&&t.find))}function P(t){var e,n={},r=t.split(",");for(e=0;e<r.length;e++)n[r[e]]=!0;return n}function L(t){return Dr(t.nodeName||t[0]&&t[0].nodeName)}function R(t,e){var n=t.indexOf(e);return n>=0&&t.splice(n,1),n}function I(t,e){function n(t,e){var n,r=e.$$hashKey;if(Wr(t))for(var o=0,a=t.length;o<a;o++)e.push(i(t[o]));else if(_(t))for(n in t)e[n]=i(t[n]);else if(t&&"function"==typeof t.hasOwnProperty)for(n in t)t.hasOwnProperty(n)&&(e[n]=i(t[n]));else for(n in t)Tr.call(t,n)&&(e[n]=i(t[n]));return s(e,r),e}function i(t){if(!b(t))return t;var e=a.indexOf(t);if(e!==-1)return u[e];if($(t)||S(t))throw Br("cpws","Can't copy! Making copies of Window or Scope instances is not supported.");var r=!1,i=o(t);return void 0===i&&(i=Wr(t)?[]:Object.create(Hr(t)),r=!0),a.push(t),u.push(i),r?n(t,i):i}function o(t){switch(zr.call(t)){case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Float32Array]":case"[object Float64Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return new t.constructor(i(t.buffer));case"[object ArrayBuffer]":if(!t.slice){var e=new ArrayBuffer(t.byteLength);return new Uint8Array(e).set(new Uint8Array(t)),e}return t.slice(0);case"[object Boolean]":case"[object Number]":case"[object String]":case"[object Date]":return new t.constructor(t.valueOf());case"[object RegExp]":var n=new RegExp(t.source,t.toString().match(/[^\/]*$/)[0]);return n.lastIndex=t.lastIndex,n;case"[object Blob]":return new t.constructor([t],{type:t.type})}if(C(t.cloneNode))return t.cloneNode(!0)}var a=[],u=[];if(e){if(M(e)||O(e))throw Br("cpta","Can't copy! TypedArray destination cannot be mutated.");if(t===e)throw Br("cpi","Can't copy! Source and destination are identical.");return Wr(e)?e.length=0:r(e,function(t,n){"$$hashKey"!==n&&delete e[n]}),a.push(t),u.push(e),n(t,e)}return i(t)}function q(t,e){if(Wr(t)){e=e||[];for(var n=0,r=t.length;n<r;n++)e[n]=t[n]}else if(b(t)){e=e||{};for(var i in t)"$"===i.charAt(0)&&"$"===i.charAt(1)||(e[i]=t[i])}return e||t}function z(t,e){if(t===e)return!0;if(null===t||null===e)return!1;if(t!==t&&e!==e)return!0;var n,r,i,o=typeof t,a=typeof e;if(o==a&&"object"==o){if(!Wr(t)){if(k(t))return!!k(e)&&z(t.getTime(),e.getTime());if(E(t))return!!E(e)&&t.toString()==e.toString();if(S(t)||S(e)||$(t)||$(e)||Wr(e)||k(e)||E(e))return!1;i=mt();for(r in t)if("$"!==r.charAt(0)&&!C(t[r])){if(!z(t[r],e[r]))return!1;i[r]=!0}for(r in e)if(!(r in i)&&"$"!==r.charAt(0)&&y(e[r])&&!C(e[r]))return!1;return!0}if(!Wr(e))return!1;if((n=t.length)==e.length){for(r=0;r<n;r++)if(!z(t[r],e[r]))return!1;return!0}}return!1}function H(t,e,n){return t.concat(Rr.call(e,n))}function B(t,e){return Rr.call(t,e||0)}function U(t,e){var n=arguments.length>2?B(arguments,2):[];return!C(e)||e instanceof RegExp?e:n.length?function(){return arguments.length?e.apply(t,H(n,arguments,0)):e.apply(t,n)}:function(){return arguments.length?e.apply(t,arguments):e.call(t)}}function V(e,n){var r=n;return"string"==typeof e&&"$"===e.charAt(0)&&"$"===e.charAt(1)?r=void 0:$(n)?r="$WINDOW":n&&t.document===n?r="$DOCUMENT":S(n)&&(r="$SCOPE"),r}function W(t,e){if(!v(t))return x(e)||(e=e?2:null),JSON.stringify(t,V,e)}function Y(t){return w(t)?JSON.parse(t):t}function G(t,e){t=t.replace(Jr,"");var n=Date.parse("Jan 01, 1970 00:00:00 "+t)/6e4;return isNaN(n)?e:n}function K(t,e){return t=new Date(t.getTime()),t.setMinutes(t.getMinutes()+e),t}function Z(t,e,n){n=n?-1:1;var r=t.getTimezoneOffset(),i=G(e,r);return K(t,n*(i-r))}function X(t){t=jr(t).clone();try{t.empty()}catch(e){}var n=jr("<div>").append(t).html();try{return t[0].nodeType===ii?Dr(n):n.match(/^(<[^>]+>)/)[1].replace(/^<([\w\-]+)/,function(t,e){return"<"+Dr(e)})}catch(e){return Dr(n)}}function J(t){try{return decodeURIComponent(t)}catch(e){}}function Q(t){var e={};return r((t||"").split("&"),function(t){var n,r,i;t&&(r=t=t.replace(/\+/g,"%20"),n=t.indexOf("="),n!==-1&&(r=t.substring(0,n),i=t.substring(n+1)),r=J(r),y(r)&&(i=!y(i)||J(i),Tr.call(e,r)?Wr(e[r])?e[r].push(i):e[r]=[e[r],i]:e[r]=i))}),e}function tt(t){var e=[];return r(t,function(t,n){Wr(t)?r(t,function(t){e.push(nt(n,!0)+(t===!0?"":"="+nt(t,!0)))}):e.push(nt(n,!0)+(t===!0?"":"="+nt(t,!0)))}),e.length?e.join("&"):""}function et(t){return nt(t,!0).replace(/%26/gi,"&").replace(/%3D/gi,"=").replace(/%2B/gi,"+")}function nt(t,e){return encodeURIComponent(t).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%3B/gi,";").replace(/%20/g,e?"%20":"+")}function rt(t,e){var n,r,i=Qr.length;for(r=0;r<i;++r)if(n=Qr[r]+e,w(n=t.getAttribute(n)))return n;return null}function it(t,e){var n,i,o={};r(Qr,function(e){var r=e+"app";!n&&t.hasAttribute&&t.hasAttribute(r)&&(n=t,i=t.getAttribute(r))}),r(Qr,function(e){var r,o=e+"app";!n&&(r=t.querySelector("["+o.replace(":","\\:")+"]"))&&(n=r,i=r.getAttribute(o))}),n&&(o.strictDi=null!==rt(n,"strict-di"),e(n,i?[i]:[],o))}function ot(e,n,i){b(i)||(i={});var o={strictDi:!1};i=l(o,i);var a=function(){if(e=jr(e),e.injector()){var r=e[0]===t.document?"document":X(e);throw Br("btstrpd","App already bootstrapped with this element '{0}'",r.replace(/</,"<").replace(/>/,">"))}n=n||[],n.unshift(["$provide",function(t){t.value("$rootElement",e)}]),i.debugInfoEnabled&&n.push(["$compileProvider",function(t){t.debugInfoEnabled(!0)}]),n.unshift("ng");var o=ne(n,i.strictDi);return o.invoke(["$rootScope","$rootElement","$compile","$injector",function(t,e,n,r){t.$apply(function(){e.data("$injector",r),n(e)(t)})}]),o},s=/^NG_ENABLE_DEBUG_INFO!/,u=/^NG_DEFER_BOOTSTRAP!/;return t&&s.test(t.name)&&(i.debugInfoEnabled=!0,t.name=t.name.replace(s,"")),t&&!u.test(t.name)?a():(t.name=t.name.replace(u,""),Ur.resumeBootstrap=function(t){return r(t,function(t){n.push(t)}),a()},void(C(Ur.resumeDeferredBootstrap)&&Ur.resumeDeferredBootstrap()))}function at(){t.name="NG_ENABLE_DEBUG_INFO!"+t.name,t.location.reload()}function st(t){var e=Ur.element(t).injector();if(!e)throw Br("test","no injector found for element argument to getTestability");return e.get("$$testability")}function ut(t,e){return e=e||"_",t.replace(ti,function(t,n){return(n?e:"")+t.toLowerCase()})}function lt(){var e;if(!ei){var n=Xr();Pr=v(n)?t.jQuery:n?t[n]:void 0,Pr&&Pr.fn.on?(jr=Pr,l(Pr.fn,{scope:ki.scope,isolateScope:ki.isolateScope,controller:ki.controller,injector:ki.injector,inheritedData:ki.inheritedData}),e=Pr.cleanData,Pr.cleanData=function(t){for(var n,r,i=0;null!=(r=t[i]);i++)n=Pr._data(r,"events"),n&&n.$destroy&&Pr(r).triggerHandler("$destroy");e(t)}):jr=Tt,Ur.element=jr,ei=!0}}function ct(t,e,n){if(!t)throw Br("areq","Argument '{0}' is {1}",e||"?",n||"required");return t}function ft(t,e,n){return n&&Wr(t)&&(t=t[t.length-1]),ct(C(t),e,"not a function, got "+(t&&"object"==typeof t?t.constructor.name||"Object":typeof t)),t}function ht(t,e){if("hasOwnProperty"===t)throw Br("badname","hasOwnProperty is not a valid {0} name",e)}function dt(t,e,n){if(!e)return t;for(var r,i=e.split("."),o=t,a=i.length,s=0;s<a;s++)r=i[s],t&&(t=(o=t)[r]);return!n&&C(t)?U(o,t):t}function pt(t){for(var e,n=t[0],r=t[t.length-1],i=1;n!==r&&(n=n.nextSibling);i++)(e||t[i]!==n)&&(e||(e=jr(Rr.call(t,0,i))),e.push(n));return e||t}function mt(){return Object.create(null)}function gt(t){function n(t,e,n){return t[e]||(t[e]=n())}var r=e("$injector"),i=e("ng"),o=n(t,"angular",Object);return o.$$minErr=o.$$minErr||e,n(o,"module",function(){var t={};return function(e,o,a){var s=function(t,e){if("hasOwnProperty"===t)throw i("badname","hasOwnProperty is not a valid {0} name",e)};return s(e,"module"),o&&t.hasOwnProperty(e)&&(t[e]=null),n(t,e,function(){function t(t,e,n,r){return r||(r=i),function(){return r[n||"push"]([t,e,arguments]),c}}function n(t,n){return function(r,o){return o&&C(o)&&(o.$$moduleName=e),i.push([t,n,arguments]),c}}if(!o)throw r("nomod","Module '{0}' is not available! You either misspelled the module name or forgot to load it. If registering a module ensure that you specify the dependencies as the second argument.",e);var i=[],s=[],u=[],l=t("$injector","invoke","push",s),c={_invokeQueue:i,_configBlocks:s,_runBlocks:u,requires:o,name:e,provider:n("$provide","provider"),factory:n("$provide","factory"),service:n("$provide","service"),value:t("$provide","value"),constant:t("$provide","constant","unshift"),decorator:n("$provide","decorator"),animation:n("$animateProvider","register"),filter:n("$filterProvider","register"),controller:n("$controllerProvider","register"),directive:n("$compileProvider","directive"),component:n("$compileProvider","component"),config:l,run:function(t){return u.push(t),this}};return a&&l(a),c})}})}function vt(t){var e=[];return JSON.stringify(t,function(t,n){if(n=V(t,n),b(n)){if(e.indexOf(n)>=0)return"...";e.push(n)}return n})}function yt(t){return"function"==typeof t?t.toString().replace(/ \{[\s\S]*$/,""):v(t)?"undefined":"string"!=typeof t?vt(t):t}function bt(n){l(n,{bootstrap:ot,copy:I,extend:l,merge:c,equals:z,element:jr,forEach:r,injector:ne,noop:d,bind:U,toJson:W,fromJson:Y,identity:p,isUndefined:v,isDefined:y,isString:w,isFunction:C,isObject:b,isNumber:x,isElement:j,isArray:Wr,version:ui,isDate:k,lowercase:Dr,uppercase:Fr,callbacks:{counter:0},getTestability:st,$$minErr:e,$$csp:Zr,reloadWithDebugInfo:at}),(Lr=gt(t))("ng",["ngLocale"],["$provide",function(t){t.provider({$$sanitizeUri:kn}),t.provider("$compile",de).directive({a:Fo,input:Zo,textarea:Zo,form:Po,script:Va,select:Ga,style:Za,option:Ka,ngBind:Qo,ngBindHtml:ea,ngBindTemplate:ta,ngClass:ra,ngClassEven:oa,ngClassOdd:ia,ngCloak:aa,ngController:sa,ngForm:Lo,ngHide:Ra,ngIf:ca,ngInclude:fa,ngInit:da,ngNonBindable:Ta,ngPluralize:Ma,ngRepeat:Oa,ngShow:La,ngStyle:Ia,ngSwitch:qa,ngSwitchWhen:za,ngSwitchDefault:Ha,ngOptions:Na,ngTransclude:Ua,ngModel:$a,ngList:pa,ngChange:na,pattern:Ja,ngPattern:Ja,required:Xa,ngRequired:Xa,minlength:ts,ngMinlength:ts,maxlength:Qa,ngMaxlength:Qa,ngValue:Jo,ngModelOptions:Aa}).directive({ngInclude:ha}).directive(No).directive(ua),t.provider({$anchorScroll:re,$animate:Ii,$animateCss:Hi,$$animateJs:Li,$$animateQueue:Ri,$$AnimateRunner:zi,$$animateAsyncRun:qi,$browser:le,$cacheFactory:ce,$controller:be,$document:_e,$exceptionHandler:we,$filter:Ln,$$forceReflow:Gi,$interpolate:je,$interval:Pe,$http:Fe,$httpParamSerializer:ke,$httpParamSerializerJQLike:Ce,$httpBackend:Me,$xhrFactory:Ne,$location:Ze,$log:Xe,$parse:vn,$rootScope:xn,$q:yn,$$q:bn,$sce:Sn,$sceDelegate:$n,$sniffer:An,$templateCache:fe,$templateRequest:Tn,$$testability:Dn,$timeout:Fn,$window:On,$$rAF:wn,$$jqLite:Zt,$$HashMap:Si,$$cookieReader:Pn})}])}function _t(){return++ci}function wt(t){return t.replace(di,function(t,e,n,r){return r?n.toUpperCase():n}).replace(pi,"Moz$1")}function xt(t){return!yi.test(t)}function kt(t){var e=t.nodeType;return e===ni||!e||e===ai}function Ct(t){for(var e in li[t.ng339])return!0;return!1}function Et(t){for(var e=0,n=t.length;e<n;e++)Mt(t[e])}function $t(t,e){var n,i,o,a,s=e.createDocumentFragment(),u=[];if(xt(t))u.push(e.createTextNode(t));else{for(n=n||s.appendChild(e.createElement("div")),i=(bi.exec(t)||["",""])[1].toLowerCase(),o=wi[i]||wi._default,n.innerHTML=o[1]+t.replace(_i,"<$1></$2>")+o[2],a=o[0];a--;)n=n.lastChild;u=H(u,n.childNodes),n=s.firstChild,n.textContent=""}return s.textContent="",s.innerHTML="",r(u,function(t){s.appendChild(t)}),s}function St(e,n){n=n||t.document;var r;return(r=vi.exec(e))?[n.createElement(r[1])]:(r=$t(e,n))?r.childNodes:[]}function At(t,e){var n=t.parentNode;n&&n.replaceChild(e,t),e.appendChild(t)}function Tt(t){if(t instanceof Tt)return t;var e;if(w(t)&&(t=Gr(t),e=!0),!(this instanceof Tt)){if(e&&"<"!=t.charAt(0))throw gi("nosel","Looking up elements via selectors is not supported by jqLite! See: http://docs.angularjs.org/api/angular.element");return new Tt(t)}e?It(this,St(t)):It(this,t)}function Dt(t){return t.cloneNode(!0)}function Ft(t,e){if(e||Mt(t),t.querySelectorAll)for(var n=t.querySelectorAll("*"),r=0,i=n.length;r<i;r++)Mt(n[r])}function Nt(t,e,n,i){if(y(i))throw gi("offargs","jqLite#off() does not support the `selector` argument");var o=Ot(t),a=o&&o.events,s=o&&o.handle;if(s)if(e){var u=function(e){var r=a[e];y(n)&&R(r||[],n),y(n)&&r&&r.length>0||(hi(t,e,s),delete a[e])};r(e.split(" "),function(t){u(t),mi[t]&&u(mi[t])})}else for(e in a)"$destroy"!==e&&hi(t,e,s),delete a[e]}function Mt(t,e){var n=t.ng339,r=n&&li[n];if(r){if(e)return void delete r.data[e];r.handle&&(r.events.$destroy&&r.handle({},"$destroy"),Nt(t)),delete li[n],t.ng339=void 0}}function Ot(t,e){var n=t.ng339,r=n&&li[n];return e&&!r&&(t.ng339=n=_t(),r=li[n]={events:{},data:{},handle:void 0}),r}function jt(t,e,n){if(kt(t)){var r=y(n),i=!r&&e&&!b(e),o=!e,a=Ot(t,!i),s=a&&a.data;if(r)s[e]=n;else{if(o)return s;if(i)return s&&s[e];l(s,e)}}}function Pt(t,e){return!!t.getAttribute&&(" "+(t.getAttribute("class")||"")+" ").replace(/[\n\t]/g," ").indexOf(" "+e+" ")>-1}function Lt(t,e){e&&t.setAttribute&&r(e.split(" "),function(e){t.setAttribute("class",Gr((" "+(t.getAttribute("class")||"")+" ").replace(/[\n\t]/g," ").replace(" "+Gr(e)+" "," ")))})}function Rt(t,e){if(e&&t.setAttribute){var n=(" "+(t.getAttribute("class")||"")+" ").replace(/[\n\t]/g," ");r(e.split(" "),function(t){t=Gr(t),n.indexOf(" "+t+" ")===-1&&(n+=t+" ")}),t.setAttribute("class",Gr(n))}}function It(t,e){if(e)if(e.nodeType)t[t.length++]=e;else{var n=e.length;if("number"==typeof n&&e.window!==e){if(n)for(var r=0;r<n;r++)t[t.length++]=e[r]}else t[t.length++]=e}}function qt(t,e){return zt(t,"$"+(e||"ngController")+"Controller")}function zt(t,e,n){t.nodeType==ai&&(t=t.documentElement);for(var r=Wr(e)?e:[e];t;){for(var i=0,o=r.length;i<o;i++)if(y(n=jr.data(t,r[i])))return n;t=t.parentNode||t.nodeType===si&&t.host}}function Ht(t){for(Ft(t,!0);t.firstChild;)t.removeChild(t.firstChild)}function Bt(t,e){e||Ft(t);var n=t.parentNode;n&&n.removeChild(t)}function Ut(e,n){n=n||t,"complete"===n.document.readyState?n.setTimeout(e):jr(n).on("load",e)}function Vt(t,e){var n=Ci[e.toLowerCase()];return n&&Ei[L(t)]&&n}function Wt(t){return $i[t]}function Yt(t,e){var n=function(n,r){n.isDefaultPrevented=function(){return n.defaultPrevented};var i=e[r||n.type],o=i?i.length:0;if(o){if(v(n.immediatePropagationStopped)){var a=n.stopImmediatePropagation;n.stopImmediatePropagation=function(){n.immediatePropagationStopped=!0,n.stopPropagation&&n.stopPropagation(),a&&a.call(n)}}n.isImmediatePropagationStopped=function(){return n.immediatePropagationStopped===!0};var s=i.specialHandlerWrapper||Gt;o>1&&(i=q(i));for(var u=0;u<o;u++)n.isImmediatePropagationStopped()||s(t,n,i[u])}};return n.elem=t,n}function Gt(t,e,n){n.call(t,e)}function Kt(t,e,n){var r=e.relatedTarget;r&&(r===t||xi.call(t,r))||n.call(t,e)}function Zt(){this.$get=function(){return l(Tt,{hasClass:function(t,e){return t.attr&&(t=t[0]),Pt(t,e)},addClass:function(t,e){return t.attr&&(t=t[0]),Rt(t,e)},removeClass:function(t,e){return t.attr&&(t=t[0]),Lt(t,e)}})}}function Xt(t,e){var n=t&&t.$$hashKey;if(n)return"function"==typeof n&&(n=t.$$hashKey()),n;var r=typeof t;return n="function"==r||"object"==r&&null!==t?t.$$hashKey=r+":"+(e||a)():r+":"+t}function Jt(t,e){if(e){var n=0;this.nextUid=function(){return++n}}r(t,this.put,this)}function Qt(t){var e=Function.prototype.toString.call(t).replace(Ni,""),n=e.match(Ai)||e.match(Ti);return n}function te(t){var e=Qt(t);return e?"function("+(e[1]||"").replace(/[\s\r\n]+/," ")+")":"fn"}function ee(t,e,n){var i,o,a;if("function"==typeof t){if(!(i=t.$inject)){if(i=[],t.length){if(e)throw w(n)&&n||(n=t.name||te(t)),Mi("strictdi","{0} is not using explicit annotation and cannot be invoked in strict mode",n);o=Qt(t),r(o[1].split(Di),function(t){t.replace(Fi,function(t,e,n){i.push(n)})})}t.$inject=i}}else Wr(t)?(a=t.length-1,ft(t[a],"fn"),i=t.slice(0,a)):ft(t,"fn",!0);return i}function ne(t,e){function n(t){return function(e,n){return b(e)?void r(e,o(t)):t(e,n)}}function i(t,e){if(ht(t,"service"),(C(e)||Wr(e))&&(e=k.instantiate(e)),!e.$get)throw Mi("pget","Provider '{0}' must define $get factory method.",t);return x[t+g]=e}function a(t,e){return function(){var n=S.invoke(e,this);if(v(n))throw Mi("undef","Provider '{0}' must return a value from $get factory method.",t);return n}}function s(t,e,n){return i(t,{$get:n!==!1?a(t,e):e})}function u(t,e){return s(t,["$injector",function(t){return t.instantiate(e)}])}function l(t,e){return s(t,m(e),!1)}function c(t,e){ht(t,"constant"),x[t]=e,E[t]=e}function f(t,e){var n=k.get(t+g),r=n.$get;n.$get=function(){var t=S.invoke(r,n);return S.invoke(e,null,{$delegate:t})}}function h(t){ct(v(t)||Wr(t),"modulesToLoad","not an array");var e,n=[];return r(t,function(t){function r(t){var e,n;for(e=0,n=t.length;e<n;e++){var r=t[e],i=k.get(r[0]);i[r[1]].apply(i,r[2])}}if(!_.get(t)){_.put(t,!0);try{w(t)?(e=Lr(t),n=n.concat(h(e.requires)).concat(e._runBlocks),r(e._invokeQueue),r(e._configBlocks)):C(t)?n.push(k.invoke(t)):Wr(t)?n.push(k.invoke(t)):ft(t,"module")}catch(i){throw Wr(t)&&(t=t[t.length-1]),i.message&&i.stack&&i.stack.indexOf(i.message)==-1&&(i=i.message+"\n"+i.stack),Mi("modulerr","Failed to instantiate module {0} due to:\n{1}",t,i.stack||i.message||i)}}}),n}function d(t,n){function r(e,r){if(t.hasOwnProperty(e)){if(t[e]===p)throw Mi("cdep","Circular dependency found: {0}",e+" <- "+y.join(" <- "));return t[e]}try{return y.unshift(e),t[e]=p,t[e]=n(e,r)}catch(i){throw t[e]===p&&delete t[e],i}finally{y.shift()}}function i(t,n,i){for(var o=[],a=ne.$$annotate(t,e,i),s=0,u=a.length;s<u;s++){var l=a[s];if("string"!=typeof l)throw Mi("itkn","Incorrect injection token! Expected service name as string, got {0}",l);o.push(n&&n.hasOwnProperty(l)?n[l]:r(l,i))}return o}function o(t){return!(Or<=11)&&("function"==typeof t&&/^(?:class\s|constructor\()/.test(Function.prototype.toString.call(t)))}function a(t,e,n,r){"string"==typeof n&&(r=n,n=null);var a=i(t,n,r);return Wr(t)&&(t=t[t.length-1]),o(t)?(a.unshift(null),new(Function.prototype.bind.apply(t,a))):t.apply(e,a)}function s(t,e,n){var r=Wr(t)?t[t.length-1]:t,o=i(t,e,n);return o.unshift(null),new(Function.prototype.bind.apply(r,o))}return{invoke:a,instantiate:s,get:r,annotate:ne.$$annotate,has:function(e){return x.hasOwnProperty(e+g)||t.hasOwnProperty(e)}}}e=e===!0;var p={},g="Provider",y=[],_=new Jt([],(!0)),x={$provide:{provider:n(i),factory:n(s),service:n(u),value:n(l),constant:n(c),decorator:f}},k=x.$injector=d(x,function(t,e){throw Ur.isString(e)&&y.push(e),Mi("unpr","Unknown provider: {0}",y.join(" <- "))}),E={},$=d(E,function(t,e){var n=k.get(t+g,e);return S.invoke(n.$get,n,void 0,t)}),S=$;x["$injector"+g]={$get:m($)};var A=h(t);return S=$.get("$injector"),S.strictDi=e,r(A,function(t){t&&S.invoke(t)}),S}function re(){var t=!0;this.disableAutoScrolling=function(){t=!1},this.$get=["$window","$location","$rootScope",function(e,n,r){function i(t){var e=null;return Array.prototype.some.call(t,function(t){if("a"===L(t))return e=t,!0}),e}function o(){var t=s.yOffset;if(C(t))t=t();else if(j(t)){var n=t[0],r=e.getComputedStyle(n);t="fixed"!==r.position?0:n.getBoundingClientRect().bottom}else x(t)||(t=0);return t}function a(t){if(t){t.scrollIntoView();var n=o();if(n){var r=t.getBoundingClientRect().top;e.scrollBy(0,r-n)}}else e.scrollTo(0,0)}function s(t){t=w(t)?t:n.hash();var e;t?(e=u.getElementById(t))?a(e):(e=i(u.getElementsByName(t)))?a(e):"top"===t&&a(null):a(null)}var u=e.document;return t&&r.$watch(function(){return n.hash()},function(t,e){t===e&&""===t||Ut(function(){r.$evalAsync(s)})}),s}]}function ie(t,e){return t||e?t?e?(Wr(t)&&(t=t.join(" ")),Wr(e)&&(e=e.join(" ")),t+" "+e):t:e:""}function oe(t){for(var e=0;e<t.length;e++){var n=t[e];if(n.nodeType===ji)return n}}function ae(t){w(t)&&(t=t.split(" "));var e=mt();return r(t,function(t){t.length&&(e[t]=!0)}),e}function se(t){return b(t)?t:{}}function ue(t,e,n,i){function o(t){try{t.apply(null,B(arguments,1))}finally{if(y--,0===y)for(;b.length;)try{b.pop()()}catch(e){n.error(e)}}}function a(t){var e=t.indexOf("#");return e===-1?"":t.substr(e)}function s(){C=null,u(),l()}function u(){_=E(),_=v(_)?null:_,z(_,A)&&(_=A),A=_}function l(){x===c.url()&&w===_||(x=c.url(),w=_,r($,function(t){t(c.url(),_)}))}var c=this,f=t.location,h=t.history,p=t.setTimeout,m=t.clearTimeout,g={};c.isMock=!1;var y=0,b=[];c.$$completeOutstandingRequest=o,c.$$incOutstandingRequestCount=function(){y++},c.notifyWhenNoOutstandingRequests=function(t){0===y?t():b.push(t)};var _,w,x=f.href,k=e.find("base"),C=null,E=i.history?function(){try{return h.state}catch(t){}}:d;u(),w=_,c.url=function(e,n,r){if(v(r)&&(r=null),f!==t.location&&(f=t.location),h!==t.history&&(h=t.history),e){var o=w===r;if(x===e&&(!i.history||o))return c;var s=x&&ze(x)===ze(e);return x=e,w=r,!i.history||s&&o?(s&&!C||(C=e),n?f.replace(e):s?f.hash=a(e):f.href=e,f.href!==e&&(C=e)):(h[n?"replaceState":"pushState"](r,"",e),u(),w=_),c}return C||f.href.replace(/%27/g,"'")},c.state=function(){return _};var $=[],S=!1,A=null;c.onUrlChange=function(e){return S||(i.history&&jr(t).on("popstate",s),jr(t).on("hashchange",s),S=!0),$.push(e),e},c.$$applicationDestroyed=function(){jr(t).off("hashchange popstate",s)},c.$$checkUrlChange=l,c.baseHref=function(){var t=k.attr("href");return t?t.replace(/^(https?\:)?\/\/[^\/]*/,""):""},c.defer=function(t,e){var n;return y++,n=p(function(){delete g[n],o(t)},e||0),g[n]=!0,n},c.defer.cancel=function(t){return!!g[t]&&(delete g[t],m(t),o(d),!0)}}function le(){this.$get=["$window","$log","$sniffer","$document",function(t,e,n,r){return new ue(t,r,e,n)}]}function ce(){this.$get=function(){function t(t,r){function i(t){t!=h&&(d?d==t&&(d=t.n):d=t,o(t.n,t.p),o(t,h),h=t,h.n=null)}function o(t,e){t!=e&&(t&&(t.p=e),e&&(e.n=t))}if(t in n)throw e("$cacheFactory")("iid","CacheId '{0}' is already taken!",t);var a=0,s=l({},r,{id:t}),u=mt(),c=r&&r.capacity||Number.MAX_VALUE,f=mt(),h=null,d=null;return n[t]={put:function(t,e){if(!v(e)){if(c<Number.MAX_VALUE){var n=f[t]||(f[t]={key:t});i(n)}return t in u||a++,u[t]=e,a>c&&this.remove(d.key),e}},get:function(t){if(c<Number.MAX_VALUE){var e=f[t];if(!e)return;i(e)}return u[t]},remove:function(t){if(c<Number.MAX_VALUE){var e=f[t];if(!e)return;e==h&&(h=e.p),e==d&&(d=e.n),o(e.n,e.p),delete f[t]}t in u&&(delete u[t],a--)},removeAll:function(){u=mt(),a=0,f=mt(),h=d=null},destroy:function(){u=null,s=null,f=null,delete n[t]},info:function(){return l({},s,{size:a})}}}var n={};return t.info=function(){var t={};return r(n,function(e,n){t[n]=e.info()}),t},t.get=function(t){return n[t]},t}}function fe(){this.$get=["$cacheFactory",function(t){return t("templates")}]}function he(){}function de(e,n){function i(t,e,n){var i=/^\s*([@&<]|=(\*?))(\??)\s*(\w*)\s*$/,o=mt();return r(t,function(t,r){if(t in E)return void(o[r]=E[t]);var a=t.match(i);if(!a)throw Bi("iscp","Invalid {3} for directive '{0}'. Definition: {... {1}: '{2}' ...}",e,r,t,n?"controller bindings definition":"isolate scope definition");o[r]={mode:a[1][0],collection:"*"===a[2],optional:"?"===a[3],attrName:a[4]||r},a[4]&&(E[t]=o[r])}),o}function a(t,e){var n={isolateScope:null,bindToController:null};if(b(t.scope)&&(t.bindToController===!0?(n.bindToController=i(t.scope,e,!0),n.isolateScope={}):n.isolateScope=i(t.scope,e,!1)),b(t.bindToController)&&(n.bindToController=i(t.bindToController,e,!0)),b(n.bindToController)){var r=t.controller,o=t.controllerAs;if(!r)throw Bi("noctrl","Cannot bind to controller without directive '{0}'s controller.",e);if(!ye(r,o))throw Bi("noident","Cannot bind to controller without identifier for directive '{0}'.",e)}return n}function s(t){var e=t.charAt(0);if(!e||e!==Dr(e))throw Bi("baddir","Directive/Component name '{0}' is invalid. The first character must be a lowercase letter",t);if(t!==t.trim())throw Bi("baddir","Directive/Component name '{0}' is invalid. The name should not contain leading or trailing whitespaces",t)}var u={},c="Directive",f=/^\s*directive\:\s*([\w\-]+)\s+(.*)$/,g=/(([\w\-]+)(?:\:([^;]+))?;?)/,_=P("ngSrc,ngSrcset,src,srcset"),x=/^(?:(\^\^?)?(\?)?(\^\^?)?)?/,k=/^(on[a-z]+|formaction)$/,E=mt();this.directive=function T(t,n){return ht(t,"directive"),w(t)?(s(t),ct(n,"directiveFactory"),u.hasOwnProperty(t)||(u[t]=[],e.factory(t+c,["$injector","$exceptionHandler",function(e,n){var i=[];return r(u[t],function(r,o){try{var a=e.invoke(r);C(a)?a={compile:m(a)}:!a.compile&&a.link&&(a.compile=m(a.link)),a.priority=a.priority||0,a.index=o,a.name=a.name||t,a.require=a.require||a.controller&&a.name,a.restrict=a.restrict||"EA",a.$$moduleName=r.$$moduleName,i.push(a)}catch(s){n(s)}}),i}])),u[t].push(n)):r(t,o(T)),this},this.component=function(t,e){function n(t){function n(e){return C(e)||Wr(e)?function(n,r){return t.invoke(e,this,{
|
||
$element:n,$attrs:r})}:e}var o=e.template||e.templateUrl?e.template:"",a={controller:i,controllerAs:ye(e.controller)||e.controllerAs||"$ctrl",template:n(o),templateUrl:n(e.templateUrl),transclude:e.transclude,scope:{},bindToController:e.bindings||{},restrict:"E",require:e.require};return r(e,function(t,e){"$"===e.charAt(0)&&(a[e]=t)}),a}var i=e.controller||function(){};return r(e,function(t,e){"$"===e.charAt(0)&&(n[e]=t,C(i)&&(i[e]=t))}),n.$inject=["$injector"],this.directive(t,n)},this.aHrefSanitizationWhitelist=function(t){return y(t)?(n.aHrefSanitizationWhitelist(t),this):n.aHrefSanitizationWhitelist()},this.imgSrcSanitizationWhitelist=function(t){return y(t)?(n.imgSrcSanitizationWhitelist(t),this):n.imgSrcSanitizationWhitelist()};var $=!0;this.debugInfoEnabled=function(t){return y(t)?($=t,this):$};var A=10;this.onChangesTtl=function(t){return arguments.length?(A=t,this):A},this.$get=["$injector","$interpolate","$exceptionHandler","$templateRequest","$parse","$controller","$rootScope","$sce","$animate","$$sanitizeUri",function(e,n,i,o,s,m,y,E,T,D){function N(){try{if(!--bt)throw gt=void 0,Bi("infchng","{0} $onChanges() iterations reached. Aborting!\n",A);y.$apply(function(){for(var t=0,e=gt.length;t<e;++t)gt[t]();gt=void 0})}finally{bt++}}function M(t,e){if(e){var n,r,i,o=Object.keys(e);for(n=0,r=o.length;n<r;n++)i=o[n],this[i]=e[i]}else this.$attr={};this.$$element=t}function O(t,e,n){yt.innerHTML="<span "+e+">";var r=yt.firstChild.attributes,i=r[0];r.removeNamedItem(i.name),i.value=n,t.attributes.setNamedItem(i)}function j(t,e){try{t.addClass(e)}catch(n){}}function P(e,n,r,i,o){e instanceof jr||(e=jr(e));for(var a=/\S+/,s=0,u=e.length;s<u;s++){var l=e[s];l.nodeType===ii&&l.nodeValue.match(a)&&At(l,e[s]=t.document.createElement("span"))}var c=q(e,n,e,r,i,o);P.$$addScopeClass(e);var f=null;return function(t,n,r){ct(t,"scope"),o&&o.needsNewScope&&(t=t.$parent.$new()),r=r||{};var i=r.parentBoundTranscludeFn,a=r.transcludeControllers,s=r.futureParentElement;i&&i.$$boundTransclude&&(i=i.$$boundTransclude),f||(f=I(s));var u;if(u="html"!==f?jr(at(f,jr("<div>").append(e).html())):n?ki.clone.call(e):e,a)for(var l in a)u.data("$"+l+"Controller",a[l].instance);return P.$$addScopeInfo(u,t),n&&n(u,t),c&&c(t,u,u,i),u}}function I(t){var e=t&&t[0];return e&&"foreignobject"!==L(e)&&zr.call(e).match(/SVG/)?"svg":"html"}function q(t,e,n,r,i,o){function a(t,n,r,i){var o,a,s,u,l,c,f,h,m;if(d){var g=n.length;for(m=new Array(g),l=0;l<p.length;l+=3)f=p[l],m[f]=n[f]}else m=n;for(l=0,c=p.length;l<c;)s=m[p[l++]],o=p[l++],a=p[l++],o?(o.scope?(u=t.$new(),P.$$addScopeInfo(jr(s),u)):u=t,h=o.transcludeOnThisElement?H(t,o.transclude,i):!o.templateOnThisElement&&i?i:!i&&e?H(t,e):null,o(a,u,s,r,h)):a&&a(t,s.childNodes,void 0,i)}for(var s,u,l,c,f,h,d,p=[],m=0;m<t.length;m++)s=new M,u=U(t[m],[],s,0===m?r:void 0,i),l=u.length?G(u,t[m],s,e,n,null,[],[],o):null,l&&l.scope&&P.$$addScopeClass(s.$$element),f=l&&l.terminal||!(c=t[m].childNodes)||!c.length?null:q(c,l?(l.transcludeOnThisElement||!l.templateOnThisElement)&&l.transclude:e),(l||f)&&(p.push(m,l,f),h=!0,d=d||l),o=null;return h?a:null}function H(t,e,n){function r(r,i,o,a,s){return r||(r=t.$new(!1,s),r.$$transcluded=!0),e(r,i,{parentBoundTranscludeFn:n,transcludeControllers:o,futureParentElement:a})}var i=r.$$slots=mt();for(var o in e.$$slots)e.$$slots[o]?i[o]=H(t,e.$$slots[o],n):i[o]=null;return r}function U(t,e,n,r,i){var o,a,s=t.nodeType,u=n.$attr;switch(s){case ni:Q(e,me(L(t)),"E",r,i);for(var l,c,h,d,p,m,v=t.attributes,y=0,_=v&&v.length;y<_;y++){var x=!1,k=!1;l=v[y],c=l.name,p=Gr(l.value),d=me(c),(m=Ct.test(d))&&(c=c.replace(Vi,"").substr(8).replace(/_(.)/g,function(t,e){return e.toUpperCase()}));var C=d.match(Et);C&&tt(C[1])&&(x=c,k=c.substr(0,c.length-5)+"end",c=c.substr(0,c.length-6)),h=me(c.toLowerCase()),u[h]=c,!m&&n.hasOwnProperty(h)||(n[h]=p,Vt(t,h)&&(n[h]=!0)),lt(t,e,p,h,m),Q(e,h,"A",r,i,x,k)}if(a=t.className,b(a)&&(a=a.animVal),w(a)&&""!==a)for(;o=g.exec(a);)h=me(o[2]),Q(e,h,"C",r,i)&&(n[h]=Gr(o[3])),a=a.substr(o.index+o[0].length);break;case ii:if(11===Or)for(;t.parentNode&&t.nextSibling&&t.nextSibling.nodeType===ii;)t.nodeValue=t.nodeValue+t.nextSibling.nodeValue,t.parentNode.removeChild(t.nextSibling);ot(e,t.nodeValue);break;case oi:try{o=f.exec(t.nodeValue),o&&(h=me(o[1]),Q(e,h,"M",r,i)&&(n[h]=Gr(o[2])))}catch(E){}}return e.sort(rt),e}function V(t,e,n){var r=[],i=0;if(e&&t.hasAttribute&&t.hasAttribute(e)){do{if(!t)throw Bi("uterdir","Unterminated attribute, found '{0}' but no matching '{1}' found.",e,n);t.nodeType==ni&&(t.hasAttribute(e)&&i++,t.hasAttribute(n)&&i--),r.push(t),t=t.nextSibling}while(i>0)}else r.push(t);return jr(r)}function W(t,e,n){return function(r,i,o,a,s){return i=V(i[0],e,n),t(r,i,o,a,s)}}function Y(t,e,n,r,i,o){var a;return t?P(e,n,r,i,o):function(){return a||(a=P(e,n,r,i,o),e=n=o=null),a.apply(this,arguments)}}function G(t,e,n,o,a,s,u,c,f){function h(t,e,n,r){t&&(n&&(t=W(t,n,r)),t.require=p.require,t.directiveName=m,(E===p||p.$$isolateScope)&&(t=ht(t,{isolateScope:!0})),u.push(t)),e&&(n&&(e=W(e,n,r)),e.require=p.require,e.directiveName=m,(E===p||p.$$isolateScope)&&(e=ht(e,{isolateScope:!0})),c.push(e))}function d(t,i,o,a,s){function f(t,e,n,r){var i;if(S(t)||(r=n,n=e,e=t,t=void 0),F&&(i=y),n||(n=F?w.parent():w),!r)return s(t,e,i,n,R);var o=s.$$slots[r];if(o)return o(t,e,i,n,R);if(v(o))throw Bi("noslot",'No parent directive that requires a transclusion with slot name "{0}". Element: {1}',r,X(w))}var h,d,p,m,g,y,_,w,A,T;e===o?(A=n,w=n.$$element):(w=jr(o),A=new M(w,n)),g=i,E?m=i.$new(!0):x&&(g=i.$parent),s&&(_=f,_.$$boundTransclude=s,_.isSlotFilled=function(t){return!!s.$$slots[t]}),k&&(y=Z(w,A,_,k,m,i,E)),E&&(P.$$addScopeInfo(w,m,!0,!($&&($===E||$===E.$$originalDirective))),P.$$addScopeClass(w,!0),m.$$isolateBindings=E.$$isolateBindings,T=pt(i,A,m,m.$$isolateBindings,E),T.removeWatches&&m.$on("$destroy",T.removeWatches));for(var D in y){var N=k[D],O=y[D],j=N.$$bindings.bindToController;O.identifier&&j?O.bindingInfo=pt(g,A,O.instance,j,N):O.bindingInfo={};var L=O();L!==O.instance&&(O.instance=L,w.data("$"+N.name+"Controller",L),O.bindingInfo.removeWatches&&O.bindingInfo.removeWatches(),O.bindingInfo=pt(g,A,O.instance,j,N))}for(r(k,function(t,e){var n=t.require;t.bindToController&&!Wr(n)&&b(n)&&l(y[e].instance,K(e,n,w,y))}),r(y,function(t){var e=t.instance;C(e.$onChanges)&&e.$onChanges(t.bindingInfo.initialChanges),C(e.$onInit)&&e.$onInit(),C(e.$onDestroy)&&g.$on("$destroy",function(){e.$onDestroy()})}),h=0,d=u.length;h<d;h++)p=u[h],dt(p,p.isolateScope?m:i,w,A,p.require&&K(p.directiveName,p.require,w,y),_);var R=i;for(E&&(E.template||null===E.templateUrl)&&(R=m),t&&t(R,o.childNodes,void 0,s),h=c.length-1;h>=0;h--)p=c[h],dt(p,p.isolateScope?m:i,w,A,p.require&&K(p.directiveName,p.require,w,y),_);r(y,function(t){var e=t.instance;C(e.$postLink)&&e.$postLink()})}f=f||{};for(var p,m,g,y,_,w=-Number.MAX_VALUE,x=f.newScopeDirective,k=f.controllerDirectives,E=f.newIsolateScopeDirective,$=f.templateDirective,A=f.nonTlbTranscludeDirective,T=!1,D=!1,F=f.hasElementTranscludeDirective,N=n.$$element=jr(e),O=s,j=o,R=!1,I=!1,q=0,z=t.length;q<z;q++){p=t[q];var H=p.$$start,G=p.$$end;if(H&&(N=V(e,H,G)),g=void 0,w>p.priority)break;if((_=p.scope)&&(p.templateUrl||(b(_)?(it("new/isolated scope",E||x,p,N),E=p):it("new/isolated scope",E,p,N)),x=x||p),m=p.name,!R&&(p.replace&&(p.templateUrl||p.template)||p.transclude&&!p.$$tlb)){for(var Q,tt=q+1;Q=t[tt++];)if(Q.transclude&&!Q.$$tlb||Q.replace&&(Q.templateUrl||Q.template)){I=!0;break}R=!0}if(!p.templateUrl&&p.controller&&(_=p.controller,k=k||mt(),it("'"+m+"' controller",k[m],p,N),k[m]=p),_=p.transclude)if(T=!0,p.$$tlb||(it("transclusion",A,p,N),A=p),"element"==_)F=!0,w=p.priority,g=N,N=n.$$element=jr(P.$$createComment(m,n[m])),e=N[0],ft(a,B(g),e),g[0].$$parentNode=g[0].parentNode,j=Y(I,g,o,w,O&&O.name,{nonTlbTranscludeDirective:A});else{var rt=mt();if(g=jr(Dt(e)).contents(),b(_)){g=[];var ot=mt(),st=mt();r(_,function(t,e){var n="?"===t.charAt(0);t=n?t.substring(1):t,ot[t]=e,rt[e]=null,st[e]=n}),r(N.contents(),function(t){var e=ot[me(L(t))];e?(st[e]=!0,rt[e]=rt[e]||[],rt[e].push(t)):g.push(t)}),r(st,function(t,e){if(!t)throw Bi("reqslot","Required transclusion slot `{0}` was not filled.",e)});for(var ut in rt)rt[ut]&&(rt[ut]=Y(I,rt[ut],o))}N.empty(),j=Y(I,g,o,void 0,void 0,{needsNewScope:p.$$isolateScope||p.$$newScope}),j.$$slots=rt}if(p.template)if(D=!0,it("template",$,p,N),$=p,_=C(p.template)?p.template(N,n):p.template,_=kt(_),p.replace){if(O=p,g=xt(_)?[]:ve(at(p.templateNamespace,Gr(_))),e=g[0],1!=g.length||e.nodeType!==ni)throw Bi("tplrt","Template for directive '{0}' must have exactly one root element. {1}",m,"");ft(a,N,e);var lt={$attr:{}},ct=U(e,[],lt),gt=t.splice(q+1,t.length-(q+1));(E||x)&&J(ct,E,x),t=t.concat(ct).concat(gt),et(n,lt),z=t.length}else N.html(_);if(p.templateUrl)D=!0,it("template",$,p,N),$=p,p.replace&&(O=p),d=nt(t.splice(q,t.length-q),N,n,a,T&&j,u,c,{controllerDirectives:k,newScopeDirective:x!==p&&x,newIsolateScopeDirective:E,templateDirective:$,nonTlbTranscludeDirective:A}),z=t.length;else if(p.compile)try{y=p.compile(N,n,j),C(y)?h(null,y,H,G):y&&h(y.pre,y.post,H,G)}catch(vt){i(vt,X(N))}p.terminal&&(d.terminal=!0,w=Math.max(w,p.priority))}return d.scope=x&&x.scope===!0,d.transcludeOnThisElement=T,d.templateOnThisElement=D,d.transclude=j,f.hasElementTranscludeDirective=F,d}function K(t,e,n,i){var o;if(w(e)){var a=e.match(x),s=e.substring(a[0].length),u=a[1]||a[3],l="?"===a[2];if("^^"===u?n=n.parent():(o=i&&i[s],o=o&&o.instance),!o){var c="$"+s+"Controller";o=u?n.inheritedData(c):n.data(c)}if(!o&&!l)throw Bi("ctreq","Controller '{0}', required by directive '{1}', can't be found!",s,t)}else if(Wr(e)){o=[];for(var f=0,h=e.length;f<h;f++)o[f]=K(t,e[f],n,i)}else b(e)&&(o={},r(e,function(e,r){o[r]=K(t,e,n,i)}));return o||null}function Z(t,e,n,r,i,o,a){var s=mt();for(var u in r){var l=r[u],c={$scope:l===a||l.$$isolateScope?i:o,$element:t,$attrs:e,$transclude:n},f=l.controller;"@"==f&&(f=e[l.name]);var h=m(f,c,!0,l.controllerAs);s[l.name]=h,t.data("$"+l.name+"Controller",h.instance)}return s}function J(t,e,n){for(var r=0,i=t.length;r<i;r++)t[r]=h(t[r],{$$isolateScope:e,$$newScope:n})}function Q(t,n,r,o,s,l,f){if(n===s)return null;var d=null;if(u.hasOwnProperty(n))for(var p,m=e.get(n+c),g=0,y=m.length;g<y;g++)try{if(p=m[g],(v(o)||o>p.priority)&&p.restrict.indexOf(r)!=-1){if(l&&(p=h(p,{$$start:l,$$end:f})),!p.$$bindings){var _=p.$$bindings=a(p,p.name);b(_.isolateScope)&&(p.$$isolateBindings=_.isolateScope)}t.push(p),d=p}}catch(w){i(w)}return d}function tt(t){if(u.hasOwnProperty(t))for(var n,r=e.get(t+c),i=0,o=r.length;i<o;i++)if(n=r[i],n.multiElement)return!0;return!1}function et(t,e){var n=e.$attr,i=t.$attr,o=t.$$element;r(t,function(r,i){"$"!=i.charAt(0)&&(e[i]&&e[i]!==r&&(r+=("style"===i?";":" ")+e[i]),t.$set(i,r,!0,n[i]))}),r(e,function(e,r){"class"==r?(j(o,e),t["class"]=(t["class"]?t["class"]+" ":"")+e):"style"==r?(o.attr("style",o.attr("style")+";"+e),t.style=(t.style?t.style+";":"")+e):"$"==r.charAt(0)||t.hasOwnProperty(r)||(t[r]=e,i[r]=n[r])})}function nt(t,e,n,i,a,s,u,l){var c,f,d=[],p=e[0],m=t.shift(),g=h(m,{templateUrl:null,transclude:null,replace:null,$$originalDirective:m}),v=C(m.templateUrl)?m.templateUrl(e,n):m.templateUrl,y=m.templateNamespace;return e.empty(),o(v).then(function(o){var h,_,w,x;if(o=kt(o),m.replace){if(w=xt(o)?[]:ve(at(y,Gr(o))),h=w[0],1!=w.length||h.nodeType!==ni)throw Bi("tplrt","Template for directive '{0}' must have exactly one root element. {1}",m.name,v);_={$attr:{}},ft(i,e,h);var k=U(h,[],_);b(m.scope)&&J(k,!0),t=k.concat(t),et(n,_)}else h=p,e.html(o);for(t.unshift(g),c=G(t,h,n,a,e,m,s,u,l),r(i,function(t,n){t==h&&(i[n]=e[0])}),f=q(e[0].childNodes,a);d.length;){var C=d.shift(),E=d.shift(),$=d.shift(),S=d.shift(),A=e[0];if(!C.$$destroyed){if(E!==p){var T=E.className;l.hasElementTranscludeDirective&&m.replace||(A=Dt(h)),ft($,jr(E),A),j(jr(A),T)}x=c.transcludeOnThisElement?H(C,c.transclude,S):S,c(f,C,A,i,x)}}d=null}),function(t,e,n,r,i){var o=i;e.$$destroyed||(d?d.push(e,n,r,o):(c.transcludeOnThisElement&&(o=H(e,c.transclude,i)),c(f,e,n,r,o)))}}function rt(t,e){var n=e.priority-t.priority;return 0!==n?n:t.name!==e.name?t.name<e.name?-1:1:t.index-e.index}function it(t,e,n,r){function i(t){return t?" (module: "+t+")":""}if(e)throw Bi("multidir","Multiple directives [{0}{1}, {2}{3}] asking for {4} on: {5}",e.name,i(e.$$moduleName),n.name,i(n.$$moduleName),t,X(r))}function ot(t,e){var r=n(e,!0);r&&t.push({priority:0,compile:function(t){var e=t.parent(),n=!!e.length;return n&&P.$$addBindingClass(e),function(t,e){var i=e.parent();n||P.$$addBindingClass(i),P.$$addBindingInfo(i,r.expressions),t.$watch(r,function(t){e[0].nodeValue=t})}}})}function at(e,n){switch(e=Dr(e||"html")){case"svg":case"math":var r=t.document.createElement("div");return r.innerHTML="<"+e+">"+n+"</"+e+">",r.childNodes[0].childNodes;default:return n}}function st(t,e){if("srcdoc"==e)return E.HTML;var n=L(t);return"xlinkHref"==e||"form"==n&&"action"==e||"img"!=n&&("src"==e||"ngSrc"==e)?E.RESOURCE_URL:void 0}function lt(t,e,r,i,o){var a=st(t,i);o=_[i]||o;var s=n(r,!0,a,o);if(s){if("multiple"===i&&"select"===L(t))throw Bi("selmulti","Binding to the 'multiple' attribute is not supported. Element: {0}",X(t));e.push({priority:100,compile:function(){return{pre:function(t,e,u){var l=u.$$observers||(u.$$observers=mt());if(k.test(i))throw Bi("nodomevents","Interpolations for HTML DOM event attributes are disallowed. Please use the ng- versions (such as ng-click instead of onclick) instead.");var c=u[i];c!==r&&(s=c&&n(c,!0,a,o),r=c),s&&(u[i]=s(t),(l[i]||(l[i]=[])).$$inter=!0,(u.$$observers&&u.$$observers[i].$$scope||t).$watch(s,function(t,e){"class"===i&&t!=e?u.$updateClass(t,e):u.$set(i,t)}))}}}})}}function ft(e,n,r){var i,o,a=n[0],s=n.length,u=a.parentNode;if(e)for(i=0,o=e.length;i<o;i++)if(e[i]==a){e[i++]=r;for(var l=i,c=l+s-1,f=e.length;l<f;l++,c++)c<f?e[l]=e[c]:delete e[l];e.length-=s-1,e.context===a&&(e.context=r);break}u&&u.replaceChild(r,a);var h=t.document.createDocumentFragment();for(i=0;i<s;i++)h.appendChild(n[i]);for(jr.hasData(a)&&(jr.data(r,jr.data(a)),jr(a).off("$destroy")),jr.cleanData(h.querySelectorAll("*")),i=1;i<s;i++)delete n[i];n[0]=r,n.length=1}function ht(t,e){return l(function(){return t.apply(null,arguments)},t,e)}function dt(t,e,n,r,o,a){try{t(e,n,r,o,a)}catch(s){i(s,X(n))}}function pt(t,e,i,o,a){function u(e,n,r){C(i.$onChanges)&&n!==r&&(gt||(t.$$postDigest(N),gt=[]),c||(c={},gt.push(l)),c[e]&&(r=c[e].previousValue),c[e]=new pe(r,n))}function l(){i.$onChanges(c),c=void 0}var c,f=[],h={};return r(o,function(r,o){var l,c,p,m,g,v=r.attrName,y=r.optional,b=r.mode;switch(b){case"@":y||Tr.call(e,v)||(i[o]=e[v]=void 0),e.$observe(v,function(t){if(w(t)||F(t)){var e=i[o];u(o,t,e),i[o]=t}}),e.$$observers[v].$$scope=t,l=e[v],w(l)?i[o]=n(l)(t):F(l)&&(i[o]=l),h[o]=new pe(Ui,i[o]);break;case"=":if(!Tr.call(e,v)){if(y)break;e[v]=void 0}if(y&&!e[v])break;c=s(e[v]),m=c.literal?z:function(t,e){return t===e||t!==t&&e!==e},p=c.assign||function(){throw l=i[o]=c(t),Bi("nonassign","Expression '{0}' in attribute '{1}' used with directive '{2}' is non-assignable!",e[v],v,a.name)},l=i[o]=c(t);var _=function(e){return m(e,i[o])||(m(e,l)?p(t,e=i[o]):i[o]=e),l=e};_.$stateful=!0,g=r.collection?t.$watchCollection(e[v],_):t.$watch(s(e[v],_),null,c.literal),f.push(g);break;case"<":if(!Tr.call(e,v)){if(y)break;e[v]=void 0}if(y&&!e[v])break;c=s(e[v]),i[o]=c(t),h[o]=new pe(Ui,i[o]),g=t.$watch(c,function(t,e){t===e&&(e=i[o]),u(o,t,e),i[o]=t},c.literal),f.push(g);break;case"&":if(c=e.hasOwnProperty(v)?s(e[v]):d,c===d&&y)break;i[o]=function(e){return c(t,e)}}}),{initialChanges:h,removeWatches:f.length&&function(){for(var t=0,e=f.length;t<e;++t)f[t]()}}}var gt,vt=/^\w/,yt=t.document.createElement("div"),bt=A;M.prototype={$normalize:me,$addClass:function(t){t&&t.length>0&&T.addClass(this.$$element,t)},$removeClass:function(t){t&&t.length>0&&T.removeClass(this.$$element,t)},$updateClass:function(t,e){var n=ge(t,e);n&&n.length&&T.addClass(this.$$element,n);var r=ge(e,t);r&&r.length&&T.removeClass(this.$$element,r)},$set:function(t,e,n,o){var a,s=this.$$element[0],u=Vt(s,t),l=Wt(t),c=t;if(u?(this.$$element.prop(t,e),o=u):l&&(this[l]=e,c=l),this[t]=e,o?this.$attr[t]=o:(o=this.$attr[t],o||(this.$attr[t]=o=ut(t,"-"))),a=L(this.$$element),"a"===a&&("href"===t||"xlinkHref"===t)||"img"===a&&"src"===t)this[t]=e=D(e,"src"===t);else if("img"===a&&"srcset"===t){for(var f="",h=Gr(e),d=/(\s+\d+x\s*,|\s+\d+w\s*,|\s+,|,\s+)/,p=/\s/.test(h)?d:/(,)/,m=h.split(p),g=Math.floor(m.length/2),y=0;y<g;y++){var b=2*y;f+=D(Gr(m[b]),!0),f+=" "+Gr(m[b+1])}var _=Gr(m[2*y]).split(/\s/);f+=D(Gr(_[0]),!0),2===_.length&&(f+=" "+Gr(_[1])),this[t]=e=f}n!==!1&&(null===e||v(e)?this.$$element.removeAttr(o):vt.test(o)?this.$$element.attr(o,e):O(this.$$element[0],o,e));var w=this.$$observers;w&&r(w[c],function(t){try{t(e)}catch(n){i(n)}})},$observe:function(t,e){var n=this,r=n.$$observers||(n.$$observers=mt()),i=r[t]||(r[t]=[]);return i.push(e),y.$evalAsync(function(){i.$$inter||!n.hasOwnProperty(t)||v(n[t])||e(n[t])}),function(){R(i,e)}}};var _t=n.startSymbol(),wt=n.endSymbol(),kt="{{"==_t&&"}}"==wt?p:function(t){return t.replace(/\{\{/g,_t).replace(/}}/g,wt)},Ct=/^ngAttr[A-Z]/,Et=/^(.+)Start$/;return P.$$addBindingInfo=$?function(t,e){var n=t.data("$binding")||[];Wr(e)?n=n.concat(e):n.push(e),t.data("$binding",n)}:d,P.$$addBindingClass=$?function(t){j(t,"ng-binding")}:d,P.$$addScopeInfo=$?function(t,e,n,r){var i=n?r?"$isolateScopeNoTemplate":"$isolateScope":"$scope";t.data(i,e)}:d,P.$$addScopeClass=$?function(t,e){j(t,e?"ng-isolate-scope":"ng-scope")}:d,P.$$createComment=function(e,n){var r="";return $&&(r=" "+(e||"")+": "+(n||"")+" "),t.document.createComment(r)},P}]}function pe(t,e){this.previousValue=t,this.currentValue=e}function me(t){return wt(t.replace(Vi,""))}function ge(t,e){var n="",r=t.split(/\s+/),i=e.split(/\s+/);t:for(var o=0;o<r.length;o++){for(var a=r[o],s=0;s<i.length;s++)if(a==i[s])continue t;n+=(n.length>0?" ":"")+a}return n}function ve(t){t=jr(t);var e=t.length;if(e<=1)return t;for(;e--;){var n=t[e];n.nodeType===oi&&Ir.call(t,e,1)}return t}function ye(t,e){if(e&&w(e))return e;if(w(t)){var n=Yi.exec(t);if(n)return n[3]}}function be(){var t={},n=!1;this.has=function(e){return t.hasOwnProperty(e)},this.register=function(e,n){ht(e,"controller"),b(e)?l(t,e):t[e]=n},this.allowGlobals=function(){n=!0},this.$get=["$injector","$window",function(r,i){function o(t,n,r,i){if(!t||!b(t.$scope))throw e("$controller")("noscp","Cannot export controller '{0}' as '{1}'! No $scope object provided via `locals`.",i,n);t.$scope[n]=r}return function(e,a,s,u){var c,f,h,d;if(s=s===!0,u&&w(u)&&(d=u),w(e)){if(f=e.match(Yi),!f)throw Wi("ctrlfmt","Badly formed controller string '{0}'. Must match `__name__ as __id__` or `__name__`.",e);h=f[1],d=d||f[3],e=t.hasOwnProperty(h)?t[h]:dt(a.$scope,h,!0)||(n?dt(i,h,!0):void 0),ft(e,h,!0)}if(s){var p=(Wr(e)?e[e.length-1]:e).prototype;c=Object.create(p||null),d&&o(a,d,c,h||e.name);var m;return m=l(function(){var t=r.invoke(e,c,a,h);return t!==c&&(b(t)||C(t))&&(c=t,d&&o(a,d,c,h||e.name)),c},{instance:c,identifier:d})}return c=r.instantiate(e,a,h),d&&o(a,d,c,h||e.name),c}}]}function _e(){this.$get=["$window",function(t){return jr(t.document)}]}function we(){this.$get=["$log",function(t){return function(e,n){t.error.apply(t,arguments)}}]}function xe(t){return b(t)?k(t)?t.toISOString():W(t):t}function ke(){this.$get=function(){return function(t){if(!t)return"";var e=[];return i(t,function(t,n){null===t||v(t)||(Wr(t)?r(t,function(t){e.push(nt(n)+"="+nt(xe(t)))}):e.push(nt(n)+"="+nt(xe(t))))}),e.join("&")}}}function Ce(){this.$get=function(){return function(t){function e(t,o,a){null===t||v(t)||(Wr(t)?r(t,function(t,n){e(t,o+"["+(b(t)?n:"")+"]")}):b(t)&&!k(t)?i(t,function(t,n){e(t,o+(a?"":"[")+n+(a?"":"]"))}):n.push(nt(o)+"="+nt(xe(t))))}if(!t)return"";var n=[];return e(t,"",!0),n.join("&")}}}function Ee(t,e){if(w(t)){var n=t.replace(Qi,"").trim();if(n){var r=e("Content-Type");(r&&0===r.indexOf(Ki)||$e(n))&&(t=Y(n))}}return t}function $e(t){var e=t.match(Xi);return e&&Ji[e[0]].test(t)}function Se(t){function e(t,e){t&&(i[t]=i[t]?i[t]+", "+e:e)}var n,i=mt();return w(t)?r(t.split("\n"),function(t){n=t.indexOf(":"),e(Dr(Gr(t.substr(0,n))),Gr(t.substr(n+1)))}):b(t)&&r(t,function(t,n){e(Dr(n),Gr(t))}),i}function Ae(t){var e;return function(n){if(e||(e=Se(t)),n){var r=e[Dr(n)];return void 0===r&&(r=null),r}return e}}function Te(t,e,n,i){return C(i)?i(t,e,n):(r(i,function(r){t=r(t,e,n)}),t)}function De(t){return 200<=t&&t<300}function Fe(){var t=this.defaults={transformResponse:[Ee],transformRequest:[function(t){return!b(t)||A(t)||D(t)||T(t)?t:W(t)}],headers:{common:{Accept:"application/json, text/plain, */*"},post:q(Zi),put:q(Zi),patch:q(Zi)},xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",paramSerializer:"$httpParamSerializer"},n=!1;this.useApplyAsync=function(t){return y(t)?(n=!!t,this):n};var i=!0;this.useLegacyPromiseExtensions=function(t){return y(t)?(i=!!t,this):i};var o=this.interceptors=[];this.$get=["$httpBackend","$$cookieReader","$cacheFactory","$rootScope","$q","$injector",function(a,s,u,c,f,h){function d(n){function o(t){var e=l({},t);return e.data=Te(t.data,t.headers,t.status,u.transformResponse),De(t.status)?e:f.reject(e)}function a(t,e){var n,i={};return r(t,function(t,r){C(t)?(n=t(e),null!=n&&(i[r]=n)):i[r]=t}),i}function s(e){var n,r,i,o=t.headers,s=l({},e.headers);o=l({},o.common,o[Dr(e.method)]);t:for(n in o){r=Dr(n);for(i in s)if(Dr(i)===r)continue t;s[n]=o[n]}return a(s,q(e))}if(!b(n))throw e("$http")("badreq","Http request configuration must be an object. Received: {0}",n);if(!w(n.url))throw e("$http")("badreq","Http request configuration url must be a string. Received: {0}",n.url);var u=l({method:"get",transformRequest:t.transformRequest,transformResponse:t.transformResponse,paramSerializer:t.paramSerializer},n);u.headers=s(n),u.method=Fr(u.method),u.paramSerializer=w(u.paramSerializer)?h.get(u.paramSerializer):u.paramSerializer;var c=function(e){var n=e.headers,i=Te(e.data,Ae(n),void 0,e.transformRequest);return v(i)&&r(n,function(t,e){"content-type"===Dr(e)&&delete n[e]}),v(e.withCredentials)&&!v(t.withCredentials)&&(e.withCredentials=t.withCredentials),g(e,i).then(o,o)},d=[c,void 0],p=f.when(u);for(r(k,function(t){(t.request||t.requestError)&&d.unshift(t.request,t.requestError),(t.response||t.responseError)&&d.push(t.response,t.responseError)});d.length;){var m=d.shift(),y=d.shift();p=p.then(m,y)}return i?(p.success=function(t){return ft(t,"fn"),p.then(function(e){t(e.data,e.status,e.headers,u)}),p},p.error=function(t){return ft(t,"fn"),p.then(null,function(e){t(e.data,e.status,e.headers,u)}),p}):(p.success=eo("success"),p.error=eo("error")),p}function p(t){r(arguments,function(t){d[t]=function(e,n){return d(l({},n||{},{method:t,url:e}))}})}function m(t){r(arguments,function(t){d[t]=function(e,n,r){return d(l({},r||{},{method:t,url:e,data:n}))}})}function g(e,i){function o(t){if(t){var e={};return r(t,function(t,r){e[r]=function(e){function r(){t(e)}n?c.$applyAsync(r):c.$$phase?r():c.$apply(r)}}),e}}function u(t,e,r,i){function o(){l(e,t,r,i)}m&&(De(t)?m.put(E,[t,e,Se(r),i]):m.remove(E)),n?c.$applyAsync(o):(o(),c.$$phase||c.$apply())}function l(t,n,r,i){n=n>=-1?n:0,(De(n)?w.resolve:w.reject)({data:t,status:n,headers:Ae(r),config:e,statusText:i})}function h(t){l(t.data,t.status,q(t.headers()),t.statusText)}function p(){var t=d.pendingRequests.indexOf(e);t!==-1&&d.pendingRequests.splice(t,1)}var m,g,w=f.defer(),k=w.promise,C=e.headers,E=_(e.url,e.paramSerializer(e.params));if(d.pendingRequests.push(e),k.then(p,p),!e.cache&&!t.cache||e.cache===!1||"GET"!==e.method&&"JSONP"!==e.method||(m=b(e.cache)?e.cache:b(t.cache)?t.cache:x),m&&(g=m.get(E),y(g)?N(g)?g.then(h,h):Wr(g)?l(g[1],g[0],q(g[2]),g[3]):l(g,200,{},"OK"):m.put(E,k)),v(g)){var $=Mn(e.url)?s()[e.xsrfCookieName||t.xsrfCookieName]:void 0;$&&(C[e.xsrfHeaderName||t.xsrfHeaderName]=$),a(e.method,E,i,u,C,e.timeout,e.withCredentials,e.responseType,o(e.eventHandlers),o(e.uploadEventHandlers))}return k}function _(t,e){return e.length>0&&(t+=(t.indexOf("?")==-1?"?":"&")+e),t}var x=u("$http");t.paramSerializer=w(t.paramSerializer)?h.get(t.paramSerializer):t.paramSerializer;var k=[];return r(o,function(t){k.unshift(w(t)?h.get(t):h.invoke(t))}),d.pendingRequests=[],p("get","delete","head","jsonp"),m("post","put","patch"),d.defaults=t,d}]}function Ne(){this.$get=function(){return function(){return new t.XMLHttpRequest}}}function Me(){this.$get=["$browser","$window","$document","$xhrFactory",function(t,e,n,r){return Oe(t,r,t.defer,e.angular.callbacks,n[0])}]}function Oe(t,e,n,i,o){function a(t,e,n){var r=o.createElement("script"),a=null;return r.type="text/javascript",r.src=t,r.async=!0,a=function(t){hi(r,"load",a),hi(r,"error",a),o.body.removeChild(r),r=null;var s=-1,u="unknown";t&&("load"!==t.type||i[e].called||(t={type:"error"}),u=t.type,s="error"===t.type?404:200),n&&n(s,u)},fi(r,"load",a),fi(r,"error",a),o.body.appendChild(r),a}return function(o,s,u,l,c,f,h,p,m,g){function b(){x&&x(),k&&k.abort()}function _(e,r,i,o,a){y($)&&n.cancel($),x=k=null,e(r,i,o,a),t.$$completeOutstandingRequest(d)}if(t.$$incOutstandingRequestCount(),s=s||t.url(),"jsonp"==Dr(o)){var w="_"+(i.counter++).toString(36);i[w]=function(t){i[w].data=t,i[w].called=!0};var x=a(s.replace("JSON_CALLBACK","angular.callbacks."+w),w,function(t,e){_(l,t,i[w].data,"",e),i[w]=d})}else{var k=e(o,s);k.open(o,s,!0),r(c,function(t,e){y(t)&&k.setRequestHeader(e,t)}),k.onload=function(){var t=k.statusText||"",e="response"in k?k.response:k.responseText,n=1223===k.status?204:k.status;0===n&&(n=e?200:"file"==Nn(s).protocol?404:0),_(l,n,e,k.getAllResponseHeaders(),t)};var C=function(){_(l,-1,null,null,"")};if(k.onerror=C,k.onabort=C,r(m,function(t,e){k.addEventListener(e,t)}),r(g,function(t,e){k.upload.addEventListener(e,t)}),h&&(k.withCredentials=!0),p)try{k.responseType=p}catch(E){if("json"!==p)throw E}k.send(v(u)?null:u)}if(f>0)var $=n(b,f);else N(f)&&f.then(b)}}function je(){var t="{{",e="}}";this.startSymbol=function(e){return e?(t=e,this):t},this.endSymbol=function(t){return t?(e=t,this):e},this.$get=["$parse","$exceptionHandler","$sce",function(n,r,i){function o(t){return"\\\\\\"+t}function a(n){return n.replace(d,t).replace(p,e)}function s(t){if(null==t)return"";switch(typeof t){case"string":break;case"number":t=""+t;break;default:t=W(t)}return t}function u(t,e,n,r){var i;return i=t.$watch(function(t){return i(),r(t)},e,n)}function c(o,c,d,p){function g(t){try{return t=N(t),p&&!y(t)?t:s(t)}catch(e){r(no.interr(o,e))}}if(!o.length||o.indexOf(t)===-1){var b;if(!c){var _=a(o);b=m(_),b.exp=o,b.expressions=[],b.$$watchDelegate=u}return b}p=!!p;for(var w,x,k,E=0,$=[],S=[],A=o.length,T=[],D=[];E<A;){if((w=o.indexOf(t,E))==-1||(x=o.indexOf(e,w+f))==-1){E!==A&&T.push(a(o.substring(E)));break}E!==w&&T.push(a(o.substring(E,w))),k=o.substring(w+f,x),$.push(k),S.push(n(k,g)),E=x+h,D.push(T.length),T.push("")}if(d&&T.length>1&&no.throwNoconcat(o),!c||$.length){var F=function(t){for(var e=0,n=$.length;e<n;e++){if(p&&v(t[e]))return;T[D[e]]=t[e]}return T.join("")},N=function(t){return d?i.getTrusted(d,t):i.valueOf(t)};return l(function(t){var e=0,n=$.length,i=new Array(n);try{for(;e<n;e++)i[e]=S[e](t);return F(i)}catch(a){r(no.interr(o,a))}},{exp:o,expressions:$,$$watchDelegate:function(t,e){var n;return t.$watchGroup(S,function(r,i){var o=F(r);C(e)&&e.call(this,o,r!==i?n:o,t),n=o})}})}}var f=t.length,h=e.length,d=new RegExp(t.replace(/./g,o),"g"),p=new RegExp(e.replace(/./g,o),"g");return c.startSymbol=function(){return t},c.endSymbol=function(){return e},c}]}function Pe(){this.$get=["$rootScope","$window","$q","$$q","$browser",function(t,e,n,r,i){function o(o,s,u,l){function c(){f?o.apply(null,h):o(m)}var f=arguments.length>4,h=f?B(arguments,4):[],d=e.setInterval,p=e.clearInterval,m=0,g=y(l)&&!l,v=(g?r:n).defer(),b=v.promise;return u=y(u)?u:0,b.$$intervalId=d(function(){g?i.defer(c):t.$evalAsync(c),v.notify(m++),u>0&&m>=u&&(v.resolve(m),p(b.$$intervalId),delete a[b.$$intervalId]),g||t.$apply()},s),a[b.$$intervalId]=v,b}var a={};return o.cancel=function(t){return!!(t&&t.$$intervalId in a)&&(a[t.$$intervalId].reject("canceled"),e.clearInterval(t.$$intervalId),delete a[t.$$intervalId],!0)},o}]}function Le(t){for(var e=t.split("/"),n=e.length;n--;)e[n]=et(e[n]);return e.join("/")}function Re(t,e){var n=Nn(t);e.$$protocol=n.protocol,e.$$host=n.hostname,e.$$port=f(n.port)||io[n.protocol]||null}function Ie(t,e){var n="/"!==t.charAt(0);n&&(t="/"+t);var r=Nn(t);e.$$path=decodeURIComponent(n&&"/"===r.pathname.charAt(0)?r.pathname.substring(1):r.pathname),e.$$search=Q(r.search),e.$$hash=decodeURIComponent(r.hash),e.$$path&&"/"!=e.$$path.charAt(0)&&(e.$$path="/"+e.$$path)}function qe(t,e){if(0===e.indexOf(t))return e.substr(t.length)}function ze(t){var e=t.indexOf("#");return e==-1?t:t.substr(0,e)}function He(t){return t.replace(/(#.+)|#$/,"$1")}function Be(t){return t.substr(0,ze(t).lastIndexOf("/")+1)}function Ue(t){return t.substring(0,t.indexOf("/",t.indexOf("//")+2))}function Ve(t,e,n){this.$$html5=!0,n=n||"",Re(t,this),this.$$parse=function(t){var n=qe(e,t);if(!w(n))throw oo("ipthprfx",'Invalid url "{0}", missing path prefix "{1}".',t,e);Ie(n,this),this.$$path||(this.$$path="/"),this.$$compose()},this.$$compose=function(){var t=tt(this.$$search),n=this.$$hash?"#"+et(this.$$hash):"";this.$$url=Le(this.$$path)+(t?"?"+t:"")+n,this.$$absUrl=e+this.$$url.substr(1)},this.$$parseLinkUrl=function(r,i){if(i&&"#"===i[0])return this.hash(i.slice(1)),!0;var o,a,s;return y(o=qe(t,r))?(a=o,s=y(o=qe(n,o))?e+(qe("/",o)||o):t+a):y(o=qe(e,r))?s=e+o:e==r+"/"&&(s=e),s&&this.$$parse(s),!!s}}function We(t,e,n){Re(t,this),this.$$parse=function(r){function i(t,e,n){var r,i=/^\/[A-Z]:(\/.*)/;return 0===e.indexOf(n)&&(e=e.replace(n,"")),i.exec(e)?t:(r=i.exec(t),r?r[1]:t)}var o,a=qe(t,r)||qe(e,r);v(a)||"#"!==a.charAt(0)?this.$$html5?o=a:(o="",v(a)&&(t=r,this.replace())):(o=qe(n,a),v(o)&&(o=a)),Ie(o,this),this.$$path=i(this.$$path,o,t),this.$$compose()},this.$$compose=function(){var e=tt(this.$$search),r=this.$$hash?"#"+et(this.$$hash):"";this.$$url=Le(this.$$path)+(e?"?"+e:"")+r,this.$$absUrl=t+(this.$$url?n+this.$$url:"")},this.$$parseLinkUrl=function(e,n){return ze(t)==ze(e)&&(this.$$parse(e),!0)}}function Ye(t,e,n){this.$$html5=!0,We.apply(this,arguments),this.$$parseLinkUrl=function(r,i){if(i&&"#"===i[0])return this.hash(i.slice(1)),!0;var o,a;return t==ze(r)?o=r:(a=qe(e,r))?o=t+n+a:e===r+"/"&&(o=e),o&&this.$$parse(o),!!o},this.$$compose=function(){var e=tt(this.$$search),r=this.$$hash?"#"+et(this.$$hash):"";this.$$url=Le(this.$$path)+(e?"?"+e:"")+r,this.$$absUrl=t+n+this.$$url}}function Ge(t){return function(){return this[t]}}function Ke(t,e){return function(n){return v(n)?this[t]:(this[t]=e(n),this.$$compose(),this)}}function Ze(){var t="",e={enabled:!1,requireBase:!0,rewriteLinks:!0};this.hashPrefix=function(e){return y(e)?(t=e,this):t},this.html5Mode=function(t){return F(t)?(e.enabled=t,this):b(t)?(F(t.enabled)&&(e.enabled=t.enabled),F(t.requireBase)&&(e.requireBase=t.requireBase),F(t.rewriteLinks)&&(e.rewriteLinks=t.rewriteLinks),this):e},this.$get=["$rootScope","$browser","$sniffer","$rootElement","$window",function(n,r,i,o,a){function s(t,e,n){var i=l.url(),o=l.$$state;try{r.url(t,e,n),l.$$state=r.state()}catch(a){throw l.url(i),l.$$state=o,a}}function u(t,e){n.$broadcast("$locationChangeSuccess",l.absUrl(),t,l.$$state,e)}var l,c,f,h=r.baseHref(),d=r.url();if(e.enabled){if(!h&&e.requireBase)throw oo("nobase","$location in HTML5 mode requires a <base> tag to be present!");f=Ue(d)+(h||"/"),c=i.history?Ve:Ye}else f=ze(d),c=We;var p=Be(f);l=new c(f,p,"#"+t),l.$$parseLinkUrl(d,d),l.$$state=r.state();var m=/^\s*(javascript|mailto):/i;o.on("click",function(t){if(e.rewriteLinks&&!t.ctrlKey&&!t.metaKey&&!t.shiftKey&&2!=t.which&&2!=t.button){for(var i=jr(t.target);"a"!==L(i[0]);)if(i[0]===o[0]||!(i=i.parent())[0])return;var s=i.prop("href"),u=i.attr("href")||i.attr("xlink:href");
|
||
b(s)&&"[object SVGAnimatedString]"===s.toString()&&(s=Nn(s.animVal).href),m.test(s)||!s||i.attr("target")||t.isDefaultPrevented()||l.$$parseLinkUrl(s,u)&&(t.preventDefault(),l.absUrl()!=r.url()&&(n.$apply(),a.angular["ff-684208-preventDefault"]=!0))}}),He(l.absUrl())!=He(d)&&r.url(l.absUrl(),!0);var g=!0;return r.onUrlChange(function(t,e){return v(qe(p,t))?void(a.location.href=t):(n.$evalAsync(function(){var r,i=l.absUrl(),o=l.$$state;t=He(t),l.$$parse(t),l.$$state=e,r=n.$broadcast("$locationChangeStart",t,i,e,o).defaultPrevented,l.absUrl()===t&&(r?(l.$$parse(i),l.$$state=o,s(i,!1,o)):(g=!1,u(i,o)))}),void(n.$$phase||n.$digest()))}),n.$watch(function(){var t=He(r.url()),e=He(l.absUrl()),o=r.state(),a=l.$$replace,c=t!==e||l.$$html5&&i.history&&o!==l.$$state;(g||c)&&(g=!1,n.$evalAsync(function(){var e=l.absUrl(),r=n.$broadcast("$locationChangeStart",e,t,l.$$state,o).defaultPrevented;l.absUrl()===e&&(r?(l.$$parse(t),l.$$state=o):(c&&s(e,a,o===l.$$state?null:l.$$state),u(t,o)))})),l.$$replace=!1}),l}]}function Xe(){var t=!0,e=this;this.debugEnabled=function(e){return y(e)?(t=e,this):t},this.$get=["$window",function(n){function i(t){return t instanceof Error&&(t.stack?t=t.message&&t.stack.indexOf(t.message)===-1?"Error: "+t.message+"\n"+t.stack:t.stack:t.sourceURL&&(t=t.message+"\n"+t.sourceURL+":"+t.line)),t}function o(t){var e=n.console||{},o=e[t]||e.log||d,a=!1;try{a=!!o.apply}catch(s){}return a?function(){var t=[];return r(arguments,function(e){t.push(i(e))}),o.apply(e,t)}:function(t,e){o(t,null==e?"":e)}}return{log:o("log"),info:o("info"),warn:o("warn"),error:o("error"),debug:function(){var n=o("debug");return function(){t&&n.apply(e,arguments)}}()}}]}function Je(t,e){if("__defineGetter__"===t||"__defineSetter__"===t||"__lookupGetter__"===t||"__lookupSetter__"===t||"__proto__"===t)throw so("isecfld","Attempting to access a disallowed field in Angular expressions! Expression: {0}",e);return t}function Qe(t){return t+""}function tn(t,e){if(t){if(t.constructor===t)throw so("isecfn","Referencing Function in Angular expressions is disallowed! Expression: {0}",e);if(t.window===t)throw so("isecwindow","Referencing the Window in Angular expressions is disallowed! Expression: {0}",e);if(t.children&&(t.nodeName||t.prop&&t.attr&&t.find))throw so("isecdom","Referencing DOM nodes in Angular expressions is disallowed! Expression: {0}",e);if(t===Object)throw so("isecobj","Referencing Object in Angular expressions is disallowed! Expression: {0}",e)}return t}function en(t,e){if(t){if(t.constructor===t)throw so("isecfn","Referencing Function in Angular expressions is disallowed! Expression: {0}",e);if(t===uo||t===lo||t===co)throw so("isecff","Referencing call, apply or bind in Angular expressions is disallowed! Expression: {0}",e)}}function nn(t,e){if(t&&(t===(0).constructor||t===(!1).constructor||t==="".constructor||t==={}.constructor||t===[].constructor||t===Function.constructor))throw so("isecaf","Assigning to a constructor is disallowed! Expression: {0}",e)}function rn(t,e){return"undefined"!=typeof t?t:e}function on(t,e){return"undefined"==typeof t?e:"undefined"==typeof e?t:t+e}function an(t,e){var n=t(e);return!n.$stateful}function sn(t,e){var n,i;switch(t.type){case mo.Program:n=!0,r(t.body,function(t){sn(t.expression,e),n=n&&t.expression.constant}),t.constant=n;break;case mo.Literal:t.constant=!0,t.toWatch=[];break;case mo.UnaryExpression:sn(t.argument,e),t.constant=t.argument.constant,t.toWatch=t.argument.toWatch;break;case mo.BinaryExpression:sn(t.left,e),sn(t.right,e),t.constant=t.left.constant&&t.right.constant,t.toWatch=t.left.toWatch.concat(t.right.toWatch);break;case mo.LogicalExpression:sn(t.left,e),sn(t.right,e),t.constant=t.left.constant&&t.right.constant,t.toWatch=t.constant?[]:[t];break;case mo.ConditionalExpression:sn(t.test,e),sn(t.alternate,e),sn(t.consequent,e),t.constant=t.test.constant&&t.alternate.constant&&t.consequent.constant,t.toWatch=t.constant?[]:[t];break;case mo.Identifier:t.constant=!1,t.toWatch=[t];break;case mo.MemberExpression:sn(t.object,e),t.computed&&sn(t.property,e),t.constant=t.object.constant&&(!t.computed||t.property.constant),t.toWatch=[t];break;case mo.CallExpression:n=!!t.filter&&an(e,t.callee.name),i=[],r(t.arguments,function(t){sn(t,e),n=n&&t.constant,t.constant||i.push.apply(i,t.toWatch)}),t.constant=n,t.toWatch=t.filter&&an(e,t.callee.name)?i:[t];break;case mo.AssignmentExpression:sn(t.left,e),sn(t.right,e),t.constant=t.left.constant&&t.right.constant,t.toWatch=[t];break;case mo.ArrayExpression:n=!0,i=[],r(t.elements,function(t){sn(t,e),n=n&&t.constant,t.constant||i.push.apply(i,t.toWatch)}),t.constant=n,t.toWatch=i;break;case mo.ObjectExpression:n=!0,i=[],r(t.properties,function(t){sn(t.value,e),n=n&&t.value.constant,t.value.constant||i.push.apply(i,t.value.toWatch)}),t.constant=n,t.toWatch=i;break;case mo.ThisExpression:t.constant=!1,t.toWatch=[];break;case mo.LocalsExpression:t.constant=!1,t.toWatch=[]}}function un(t){if(1==t.length){var e=t[0].expression,n=e.toWatch;return 1!==n.length?n:n[0]!==e?n:void 0}}function ln(t){return t.type===mo.Identifier||t.type===mo.MemberExpression}function cn(t){if(1===t.body.length&&ln(t.body[0].expression))return{type:mo.AssignmentExpression,left:t.body[0].expression,right:{type:mo.NGValueParameter},operator:"="}}function fn(t){return 0===t.body.length||1===t.body.length&&(t.body[0].expression.type===mo.Literal||t.body[0].expression.type===mo.ArrayExpression||t.body[0].expression.type===mo.ObjectExpression)}function hn(t){return t.constant}function dn(t,e){this.astBuilder=t,this.$filter=e}function pn(t,e){this.astBuilder=t,this.$filter=e}function mn(t){return"constructor"==t}function gn(t){return C(t.valueOf)?t.valueOf():vo.call(t)}function vn(){var t,e,n=mt(),i=mt(),o={"true":!0,"false":!1,"null":null,undefined:void 0};this.addLiteral=function(t,e){o[t]=e},this.setIdentifierFns=function(n,r){return t=n,e=r,this},this.$get=["$filter",function(a){function s(t,e,r){var o,s,l;switch(r=r||_,typeof t){case"string":t=t.trim(),l=t;var g=r?i:n;if(o=g[l],!o){":"===t.charAt(0)&&":"===t.charAt(1)&&(s=!0,t=t.substring(2));var y=r?b:v,w=new po(y),x=new go(w,a,y);o=x.parse(t),o.constant?o.$$watchDelegate=p:s?o.$$watchDelegate=o.literal?h:f:o.inputs&&(o.$$watchDelegate=c),r&&(o=u(o)),g[l]=o}return m(o,e);case"function":return m(t,e);default:return m(d,e)}}function u(t){function e(e,n,r,i){var o=_;_=!0;try{return t(e,n,r,i)}finally{_=o}}if(!t)return t;e.$$watchDelegate=t.$$watchDelegate,e.assign=u(t.assign),e.constant=t.constant,e.literal=t.literal;for(var n=0;t.inputs&&n<t.inputs.length;++n)t.inputs[n]=u(t.inputs[n]);return e.inputs=t.inputs,e}function l(t,e){return null==t||null==e?t===e:("object"!=typeof t||(t=gn(t),"object"!=typeof t))&&(t===e||t!==t&&e!==e)}function c(t,e,n,r,i){var o,a=r.inputs;if(1===a.length){var s=l;return a=a[0],t.$watch(function(t){var e=a(t);return l(e,s)||(o=r(t,void 0,void 0,[e]),s=e&&gn(e)),o},e,n,i)}for(var u=[],c=[],f=0,h=a.length;f<h;f++)u[f]=l,c[f]=null;return t.$watch(function(t){for(var e=!1,n=0,i=a.length;n<i;n++){var s=a[n](t);(e||(e=!l(s,u[n])))&&(c[n]=s,u[n]=s&&gn(s))}return e&&(o=r(t,void 0,void 0,c)),o},e,n,i)}function f(t,e,n,r){var i,o;return i=t.$watch(function(t){return r(t)},function(t,n,r){o=t,C(e)&&e.apply(this,arguments),y(t)&&r.$$postDigest(function(){y(o)&&i()})},n)}function h(t,e,n,i){function o(t){var e=!0;return r(t,function(t){y(t)||(e=!1)}),e}var a,s;return a=t.$watch(function(t){return i(t)},function(t,n,r){s=t,C(e)&&e.call(this,t,n,r),o(t)&&r.$$postDigest(function(){o(s)&&a()})},n)}function p(t,e,n,r){var i;return i=t.$watch(function(t){return i(),r(t)},e,n)}function m(t,e){if(!e)return t;var n=t.$$watchDelegate,r=!1,i=n!==h&&n!==f,o=i?function(n,i,o,a){var s=r&&a?a[0]:t(n,i,o,a);return e(s,n,i)}:function(n,r,i,o){var a=t(n,r,i,o),s=e(a,n,r);return y(a)?s:a};return t.$$watchDelegate&&t.$$watchDelegate!==c?o.$$watchDelegate=t.$$watchDelegate:e.$stateful||(o.$$watchDelegate=c,r=!t.inputs,o.inputs=t.inputs?t.inputs:[t]),o}var g=Zr().noUnsafeEval,v={csp:g,expensiveChecks:!1,literals:I(o),isIdentifierStart:C(t)&&t,isIdentifierContinue:C(e)&&e},b={csp:g,expensiveChecks:!0,literals:I(o),isIdentifierStart:C(t)&&t,isIdentifierContinue:C(e)&&e},_=!1;return s.$$runningExpensiveChecks=function(){return _},s}]}function yn(){this.$get=["$rootScope","$exceptionHandler",function(t,e){return _n(function(e){t.$evalAsync(e)},e)}]}function bn(){this.$get=["$browser","$exceptionHandler",function(t,e){return _n(function(e){t.defer(e)},e)}]}function _n(t,n){function i(){this.$$state={status:0}}function o(t,e){return function(n){e.call(t,n)}}function a(t){var e,r,i;i=t.pending,t.processScheduled=!1,t.pending=void 0;for(var o=0,a=i.length;o<a;++o){r=i[o][0],e=i[o][t.status];try{C(e)?r.resolve(e(t.value)):1===t.status?r.resolve(t.value):r.reject(t.value)}catch(s){r.reject(s),n(s)}}}function s(e){!e.processScheduled&&e.pending&&(e.processScheduled=!0,t(function(){a(e)}))}function u(){this.promise=new i}function c(t){var e=new u,n=0,i=Wr(t)?[]:{};return r(t,function(t,r){n++,g(t).then(function(t){i.hasOwnProperty(r)||(i[r]=t,--n||e.resolve(i))},function(t){i.hasOwnProperty(r)||e.reject(t)})}),0===n&&e.resolve(i),e.promise}var f=e("$q",TypeError),h=function(){var t=new u;return t.resolve=o(t,t.resolve),t.reject=o(t,t.reject),t.notify=o(t,t.notify),t};l(i.prototype,{then:function(t,e,n){if(v(t)&&v(e)&&v(n))return this;var r=new u;return this.$$state.pending=this.$$state.pending||[],this.$$state.pending.push([r,t,e,n]),this.$$state.status>0&&s(this.$$state),r.promise},"catch":function(t){return this.then(null,t)},"finally":function(t,e){return this.then(function(e){return m(e,!0,t)},function(e){return m(e,!1,t)},e)}}),l(u.prototype,{resolve:function(t){this.promise.$$state.status||(t===this.promise?this.$$reject(f("qcycle","Expected promise to be resolved with value other than itself '{0}'",t)):this.$$resolve(t))},$$resolve:function(t){function e(t){u||(u=!0,a.$$resolve(t))}function r(t){u||(u=!0,a.$$reject(t))}var i,a=this,u=!1;try{(b(t)||C(t))&&(i=t&&t.then),C(i)?(this.promise.$$state.status=-1,i.call(t,e,r,o(this,this.notify))):(this.promise.$$state.value=t,this.promise.$$state.status=1,s(this.promise.$$state))}catch(l){r(l),n(l)}},reject:function(t){this.promise.$$state.status||this.$$reject(t)},$$reject:function(t){this.promise.$$state.value=t,this.promise.$$state.status=2,s(this.promise.$$state)},notify:function(e){var r=this.promise.$$state.pending;this.promise.$$state.status<=0&&r&&r.length&&t(function(){for(var t,i,o=0,a=r.length;o<a;o++){i=r[o][0],t=r[o][3];try{i.notify(C(t)?t(e):e)}catch(s){n(s)}}})}});var d=function(t){var e=new u;return e.reject(t),e.promise},p=function(t,e){var n=new u;return e?n.resolve(t):n.reject(t),n.promise},m=function(t,e,n){var r=null;try{C(n)&&(r=n())}catch(i){return p(i,!1)}return N(r)?r.then(function(){return p(t,e)},function(t){return p(t,!1)}):p(t,e)},g=function(t,e,n,r){var i=new u;return i.resolve(t),i.promise.then(e,n,r)},y=g,_=function(t){function e(t){r.resolve(t)}function n(t){r.reject(t)}if(!C(t))throw f("norslvr","Expected resolverFn, got '{0}'",t);var r=new u;return t(e,n),r.promise};return _.prototype=i.prototype,_.defer=h,_.reject=d,_.when=g,_.resolve=y,_.all=c,_}function wn(){this.$get=["$window","$timeout",function(t,e){var n=t.requestAnimationFrame||t.webkitRequestAnimationFrame,r=t.cancelAnimationFrame||t.webkitCancelAnimationFrame||t.webkitCancelRequestAnimationFrame,i=!!n,o=i?function(t){var e=n(t);return function(){r(e)}}:function(t){var n=e(t,16.66,!1);return function(){e.cancel(n)}};return o.supported=i,o}]}function xn(){function t(t){function e(){this.$$watchers=this.$$nextSibling=this.$$childHead=this.$$childTail=null,this.$$listeners={},this.$$listenerCount={},this.$$watchersCount=0,this.$id=a(),this.$$ChildScope=null}return e.prototype=t,e}var i=10,o=e("$rootScope"),s=null,u=null;this.digestTtl=function(t){return arguments.length&&(i=t),i},this.$get=["$exceptionHandler","$parse","$browser",function(e,l,c){function f(t){t.currentScope.$$destroyed=!0}function h(t){9===Or&&(t.$$childHead&&h(t.$$childHead),t.$$nextSibling&&h(t.$$nextSibling)),t.$parent=t.$$nextSibling=t.$$prevSibling=t.$$childHead=t.$$childTail=t.$root=t.$$watchers=null}function p(){this.$id=a(),this.$$phase=this.$parent=this.$$watchers=this.$$nextSibling=this.$$prevSibling=this.$$childHead=this.$$childTail=null,this.$root=this,this.$$destroyed=!1,this.$$listeners={},this.$$listenerCount={},this.$$watchersCount=0,this.$$isolateBindings=null}function m(t){if(E.$$phase)throw o("inprog","{0} already in progress",E.$$phase);E.$$phase=t}function g(){E.$$phase=null}function y(t,e){do t.$$watchersCount+=e;while(t=t.$parent)}function _(t,e,n){do t.$$listenerCount[n]-=e,0===t.$$listenerCount[n]&&delete t.$$listenerCount[n];while(t=t.$parent)}function w(){}function x(){for(;A.length;)try{A.shift()()}catch(t){e(t)}u=null}function k(){null===u&&(u=c.defer(function(){E.$apply(x)}))}p.prototype={constructor:p,$new:function(e,n){var r;return n=n||this,e?(r=new p,r.$root=this.$root):(this.$$ChildScope||(this.$$ChildScope=t(this)),r=new this.$$ChildScope),r.$parent=n,r.$$prevSibling=n.$$childTail,n.$$childHead?(n.$$childTail.$$nextSibling=r,n.$$childTail=r):n.$$childHead=n.$$childTail=r,(e||n!=this)&&r.$on("$destroy",f),r},$watch:function(t,e,n,r){var i=l(t);if(i.$$watchDelegate)return i.$$watchDelegate(this,e,n,i,t);var o=this,a=o.$$watchers,u={fn:e,last:w,get:i,exp:r||t,eq:!!n};return s=null,C(e)||(u.fn=d),a||(a=o.$$watchers=[]),a.unshift(u),y(this,1),function(){R(a,u)>=0&&y(o,-1),s=null}},$watchGroup:function(t,e){function n(){u=!1,l?(l=!1,e(o,o,s)):e(o,i,s)}var i=new Array(t.length),o=new Array(t.length),a=[],s=this,u=!1,l=!0;if(!t.length){var c=!0;return s.$evalAsync(function(){c&&e(o,o,s)}),function(){c=!1}}return 1===t.length?this.$watch(t[0],function(t,n,r){o[0]=t,i[0]=n,e(o,t===n?o:i,r)}):(r(t,function(t,e){var r=s.$watch(t,function(t,r){o[e]=t,i[e]=r,u||(u=!0,s.$evalAsync(n))});a.push(r)}),function(){for(;a.length;)a.shift()()})},$watchCollection:function(t,e){function r(t){o=t;var e,r,i,s,u;if(!v(o)){if(b(o))if(n(o)){a!==d&&(a=d,g=a.length=0,f++),e=o.length,g!==e&&(f++,a.length=g=e);for(var l=0;l<e;l++)u=a[l],s=o[l],i=u!==u&&s!==s,i||u===s||(f++,a[l]=s)}else{a!==p&&(a=p={},g=0,f++),e=0;for(r in o)Tr.call(o,r)&&(e++,s=o[r],u=a[r],r in a?(i=u!==u&&s!==s,i||u===s||(f++,a[r]=s)):(g++,a[r]=s,f++));if(g>e){f++;for(r in a)Tr.call(o,r)||(g--,delete a[r])}}else a!==o&&(a=o,f++);return f}}function i(){if(m?(m=!1,e(o,o,u)):e(o,s,u),c)if(b(o))if(n(o)){s=new Array(o.length);for(var t=0;t<o.length;t++)s[t]=o[t]}else{s={};for(var r in o)Tr.call(o,r)&&(s[r]=o[r])}else s=o}r.$stateful=!0;var o,a,s,u=this,c=e.length>1,f=0,h=l(t,r),d=[],p={},m=!0,g=0;return this.$watch(h,i)},$digest:function(){var t,n,r,a,l,f,h,d,p,v,y,b,_=i,k=this,A=[];m("$digest"),c.$$checkUrlChange(),this===E&&null!==u&&(c.defer.cancel(u),x()),s=null;do{for(d=!1,v=k;$.length;){try{b=$.shift(),b.scope.$eval(b.expression,b.locals)}catch(T){e(T)}s=null}t:do{if(f=v.$$watchers)for(h=f.length;h--;)try{if(t=f[h])if(l=t.get,(n=l(v))===(r=t.last)||(t.eq?z(n,r):"number"==typeof n&&"number"==typeof r&&isNaN(n)&&isNaN(r))){if(t===s){d=!1;break t}}else d=!0,s=t,t.last=t.eq?I(n,null):n,a=t.fn,a(n,r===w?n:r,v),_<5&&(y=4-_,A[y]||(A[y]=[]),A[y].push({msg:C(t.exp)?"fn: "+(t.exp.name||t.exp.toString()):t.exp,newVal:n,oldVal:r}))}catch(T){e(T)}if(!(p=v.$$watchersCount&&v.$$childHead||v!==k&&v.$$nextSibling))for(;v!==k&&!(p=v.$$nextSibling);)v=v.$parent}while(v=p);if((d||$.length)&&!_--)throw g(),o("infdig","{0} $digest() iterations reached. Aborting!\nWatchers fired in the last 5 iterations: {1}",i,A)}while(d||$.length);for(g();S.length;)try{S.shift()()}catch(T){e(T)}},$destroy:function(){if(!this.$$destroyed){var t=this.$parent;this.$broadcast("$destroy"),this.$$destroyed=!0,this===E&&c.$$applicationDestroyed(),y(this,-this.$$watchersCount);for(var e in this.$$listenerCount)_(this,this.$$listenerCount[e],e);t&&t.$$childHead==this&&(t.$$childHead=this.$$nextSibling),t&&t.$$childTail==this&&(t.$$childTail=this.$$prevSibling),this.$$prevSibling&&(this.$$prevSibling.$$nextSibling=this.$$nextSibling),this.$$nextSibling&&(this.$$nextSibling.$$prevSibling=this.$$prevSibling),this.$destroy=this.$digest=this.$apply=this.$evalAsync=this.$applyAsync=d,this.$on=this.$watch=this.$watchGroup=function(){return d},this.$$listeners={},this.$$nextSibling=null,h(this)}},$eval:function(t,e){return l(t)(this,e)},$evalAsync:function(t,e){E.$$phase||$.length||c.defer(function(){$.length&&E.$digest()}),$.push({scope:this,expression:l(t),locals:e})},$$postDigest:function(t){S.push(t)},$apply:function(t){try{m("$apply");try{return this.$eval(t)}finally{g()}}catch(n){e(n)}finally{try{E.$digest()}catch(n){throw e(n),n}}},$applyAsync:function(t){function e(){n.$eval(t)}var n=this;t&&A.push(e),t=l(t),k()},$on:function(t,e){var n=this.$$listeners[t];n||(this.$$listeners[t]=n=[]),n.push(e);var r=this;do r.$$listenerCount[t]||(r.$$listenerCount[t]=0),r.$$listenerCount[t]++;while(r=r.$parent);var i=this;return function(){var r=n.indexOf(e);r!==-1&&(n[r]=null,_(i,1,t))}},$emit:function(t,n){var r,i,o,a=[],s=this,u=!1,l={name:t,targetScope:s,stopPropagation:function(){u=!0},preventDefault:function(){l.defaultPrevented=!0},defaultPrevented:!1},c=H([l],arguments,1);do{for(r=s.$$listeners[t]||a,l.currentScope=s,i=0,o=r.length;i<o;i++)if(r[i])try{r[i].apply(null,c)}catch(f){e(f)}else r.splice(i,1),i--,o--;if(u)return l.currentScope=null,l;s=s.$parent}while(s);return l.currentScope=null,l},$broadcast:function(t,n){var r=this,i=r,o=r,a={name:t,targetScope:r,preventDefault:function(){a.defaultPrevented=!0},defaultPrevented:!1};if(!r.$$listenerCount[t])return a;for(var s,u,l,c=H([a],arguments,1);i=o;){for(a.currentScope=i,s=i.$$listeners[t]||[],u=0,l=s.length;u<l;u++)if(s[u])try{s[u].apply(null,c)}catch(f){e(f)}else s.splice(u,1),u--,l--;if(!(o=i.$$listenerCount[t]&&i.$$childHead||i!==r&&i.$$nextSibling))for(;i!==r&&!(o=i.$$nextSibling);)i=i.$parent}return a.currentScope=null,a}};var E=new p,$=E.$$asyncQueue=[],S=E.$$postDigestQueue=[],A=E.$$applyAsyncQueue=[];return E}]}function kn(){var t=/^\s*(https?|ftp|mailto|tel|file):/,e=/^\s*((https?|ftp|file|blob):|data:image\/)/;this.aHrefSanitizationWhitelist=function(e){return y(e)?(t=e,this):t},this.imgSrcSanitizationWhitelist=function(t){return y(t)?(e=t,this):e},this.$get=function(){return function(n,r){var i,o=r?e:t;return i=Nn(n).href,""===i||i.match(o)?n:"unsafe:"+i}}}function Cn(t){if("self"===t)return t;if(w(t)){if(t.indexOf("***")>-1)throw yo("iwcard","Illegal sequence *** in string matcher. String: {0}",t);return t=Kr(t).replace("\\*\\*",".*").replace("\\*","[^:/.?&;]*"),new RegExp("^"+t+"$")}if(E(t))return new RegExp("^"+t.source+"$");throw yo("imatcher",'Matchers may only be "self", string patterns or RegExp objects')}function En(t){var e=[];return y(t)&&r(t,function(t){e.push(Cn(t))}),e}function $n(){this.SCE_CONTEXTS=bo;var t=["self"],e=[];this.resourceUrlWhitelist=function(e){return arguments.length&&(t=En(e)),t},this.resourceUrlBlacklist=function(t){return arguments.length&&(e=En(t)),e},this.$get=["$injector",function(n){function r(t,e){return"self"===t?Mn(e):!!t.exec(e.href)}function i(n){var i,o,a=Nn(n.toString()),s=!1;for(i=0,o=t.length;i<o;i++)if(r(t[i],a)){s=!0;break}if(s)for(i=0,o=e.length;i<o;i++)if(r(e[i],a)){s=!1;break}return s}function o(t){var e=function(t){this.$$unwrapTrustedValue=function(){return t}};return t&&(e.prototype=new t),e.prototype.valueOf=function(){return this.$$unwrapTrustedValue()},e.prototype.toString=function(){return this.$$unwrapTrustedValue().toString()},e}function a(t,e){var n=f.hasOwnProperty(t)?f[t]:null;if(!n)throw yo("icontext","Attempted to trust a value in invalid context. Context: {0}; Value: {1}",t,e);if(null===e||v(e)||""===e)return e;if("string"!=typeof e)throw yo("itype","Attempted to trust a non-string value in a content requiring a string: Context: {0}",t);return new n(e)}function s(t){return t instanceof c?t.$$unwrapTrustedValue():t}function u(t,e){if(null===e||v(e)||""===e)return e;var n=f.hasOwnProperty(t)?f[t]:null;if(n&&e instanceof n)return e.$$unwrapTrustedValue();if(t===bo.RESOURCE_URL){if(i(e))return e;throw yo("insecurl","Blocked loading resource from url not allowed by $sceDelegate policy. URL: {0}",e.toString())}if(t===bo.HTML)return l(e);throw yo("unsafe","Attempting to use an unsafe value in a safe context.")}var l=function(t){throw yo("unsafe","Attempting to use an unsafe value in a safe context.")};n.has("$sanitize")&&(l=n.get("$sanitize"));var c=o(),f={};return f[bo.HTML]=o(c),f[bo.CSS]=o(c),f[bo.URL]=o(c),f[bo.JS]=o(c),f[bo.RESOURCE_URL]=o(f[bo.URL]),{trustAs:a,getTrusted:u,valueOf:s}}]}function Sn(){var t=!0;this.enabled=function(e){return arguments.length&&(t=!!e),t},this.$get=["$parse","$sceDelegate",function(e,n){if(t&&Or<8)throw yo("iequirks","Strict Contextual Escaping does not support Internet Explorer version < 11 in quirks mode. You can fix this by adding the text <!doctype html> to the top of your HTML document. See http://docs.angularjs.org/api/ng.$sce for more information.");var i=q(bo);i.isEnabled=function(){return t},i.trustAs=n.trustAs,i.getTrusted=n.getTrusted,i.valueOf=n.valueOf,t||(i.trustAs=i.getTrusted=function(t,e){return e},i.valueOf=p),i.parseAs=function(t,n){var r=e(n);return r.literal&&r.constant?r:e(n,function(e){return i.getTrusted(t,e)})};var o=i.parseAs,a=i.getTrusted,s=i.trustAs;return r(bo,function(t,e){var n=Dr(e);i[wt("parse_as_"+n)]=function(e){return o(t,e)},i[wt("get_trusted_"+n)]=function(e){return a(t,e)},i[wt("trust_as_"+n)]=function(e){return s(t,e)}}),i}]}function An(){this.$get=["$window","$document",function(t,e){var n,r,i={},o=t.chrome&&t.chrome.app&&t.chrome.app.runtime,a=!o&&t.history&&t.history.pushState,s=f((/android (\d+)/.exec(Dr((t.navigator||{}).userAgent))||[])[1]),u=/Boxee/i.test((t.navigator||{}).userAgent),l=e[0]||{},c=/^(Moz|webkit|ms)(?=[A-Z])/,h=l.body&&l.body.style,d=!1,p=!1;if(h){for(var m in h)if(r=c.exec(m)){n=r[0],n=n.substr(0,1).toUpperCase()+n.substr(1);break}n||(n="WebkitOpacity"in h&&"webkit"),d=!!("transition"in h||n+"Transition"in h),p=!!("animation"in h||n+"Animation"in h),!s||d&&p||(d=w(h.webkitTransition),p=w(h.webkitAnimation))}return{history:!(!a||s<4||u),hasEvent:function(t){if("input"===t&&Or<=11)return!1;if(v(i[t])){var e=l.createElement("div");i[t]="on"+t in e}return i[t]},csp:Zr(),vendorPrefix:n,transitions:d,animations:p,android:s}}]}function Tn(){var t;this.httpOptions=function(e){return e?(t=e,this):t},this.$get=["$templateCache","$http","$q","$sce",function(e,n,r,i){function o(a,s){function u(t){if(!s)throw _o("tpload","Failed to load template: {0} (HTTP status: {1} {2})",a,t.status,t.statusText);return r.reject(t)}o.totalPendingRequests++,w(a)&&e.get(a)||(a=i.getTrustedResourceUrl(a));var c=n.defaults&&n.defaults.transformResponse;return Wr(c)?c=c.filter(function(t){return t!==Ee}):c===Ee&&(c=null),n.get(a,l({cache:e,transformResponse:c},t))["finally"](function(){o.totalPendingRequests--}).then(function(t){return e.put(a,t.data),t.data},u)}return o.totalPendingRequests=0,o}]}function Dn(){this.$get=["$rootScope","$browser","$location",function(t,e,n){var i={};return i.findBindings=function(t,e,n){var i=t.getElementsByClassName("ng-binding"),o=[];return r(i,function(t){var i=Ur.element(t).data("$binding");i&&r(i,function(r){if(n){var i=new RegExp("(^|\\s)"+Kr(e)+"(\\s|\\||$)");i.test(r)&&o.push(t)}else r.indexOf(e)!=-1&&o.push(t)})}),o},i.findModels=function(t,e,n){for(var r=["ng-","data-ng-","ng\\:"],i=0;i<r.length;++i){var o=n?"=":"*=",a="["+r[i]+"model"+o+'"'+e+'"]',s=t.querySelectorAll(a);if(s.length)return s}},i.getLocation=function(){return n.url()},i.setLocation=function(e){e!==n.url()&&(n.url(e),t.$digest())},i.whenStable=function(t){e.notifyWhenNoOutstandingRequests(t)},i}]}function Fn(){this.$get=["$rootScope","$browser","$q","$$q","$exceptionHandler",function(t,e,n,r,i){function o(o,s,u){C(o)||(u=s,s=o,o=d);var l,c=B(arguments,3),f=y(u)&&!u,h=(f?r:n).defer(),p=h.promise;return l=e.defer(function(){try{h.resolve(o.apply(null,c))}catch(e){h.reject(e),i(e)}finally{delete a[p.$$timeoutId]}f||t.$apply()},s),p.$$timeoutId=l,a[l]=h,p}var a={};return o.cancel=function(t){return!!(t&&t.$$timeoutId in a)&&(a[t.$$timeoutId].reject("canceled"),delete a[t.$$timeoutId],e.defer.cancel(t.$$timeoutId))},o}]}function Nn(t){var e=t;return Or&&(wo.setAttribute("href",e),e=wo.href),wo.setAttribute("href",e),{href:wo.href,protocol:wo.protocol?wo.protocol.replace(/:$/,""):"",host:wo.host,search:wo.search?wo.search.replace(/^\?/,""):"",hash:wo.hash?wo.hash.replace(/^#/,""):"",hostname:wo.hostname,port:wo.port,pathname:"/"===wo.pathname.charAt(0)?wo.pathname:"/"+wo.pathname}}function Mn(t){var e=w(t)?Nn(t):t;return e.protocol===xo.protocol&&e.host===xo.host}function On(){this.$get=m(t)}function jn(t){function e(t){try{return decodeURIComponent(t)}catch(e){return t}}var n=t[0]||{},r={},i="";return function(){var t,o,a,s,u,l=n.cookie||"";if(l!==i)for(i=l,t=i.split("; "),r={},a=0;a<t.length;a++)o=t[a],s=o.indexOf("="),s>0&&(u=e(o.substring(0,s)),v(r[u])&&(r[u]=e(o.substring(s+1))));return r}}function Pn(){this.$get=jn}function Ln(t){function e(i,o){if(b(i)){var a={};return r(i,function(t,n){a[n]=e(n,t)}),a}return t.factory(i+n,o)}var n="Filter";this.register=e,this.$get=["$injector",function(t){return function(e){return t.get(e+n)}}],e("currency",Hn),e("date",rr),e("filter",Rn),e("json",ir),e("limitTo",or),e("lowercase",To),e("number",Bn),e("orderBy",ar),e("uppercase",Do)}function Rn(){return function(t,r,i){if(!n(t)){if(null==t)return t;throw e("filter")("notarray","Expected array but received: {0}",t)}var o,a,s=zn(r);switch(s){case"function":o=r;break;case"boolean":case"null":case"number":case"string":a=!0;case"object":o=In(r,i,a);break;default:return t}return Array.prototype.filter.call(t,o)}}function In(t,e,n){var r,i=b(t)&&"$"in t;return e===!0?e=z:C(e)||(e=function(t,e){return!v(t)&&(null===t||null===e?t===e:!(b(e)||b(t)&&!g(t))&&(t=Dr(""+t),e=Dr(""+e),t.indexOf(e)!==-1))}),r=function(r){return i&&!b(r)?qn(r,t.$,e,!1):qn(r,t,e,n)}}function qn(t,e,n,r,i){var o=zn(t),a=zn(e);if("string"===a&&"!"===e.charAt(0))return!qn(t,e.substring(1),n,r);if(Wr(t))return t.some(function(t){return qn(t,e,n,r)});switch(o){case"object":var s;if(r){for(s in t)if("$"!==s.charAt(0)&&qn(t[s],e,n,!0))return!0;return!i&&qn(t,e,n,!1)}if("object"===a){for(s in e){var u=e[s];if(!C(u)&&!v(u)){var l="$"===s,c=l?t:t[s];if(!qn(c,u,n,l,l))return!1}}return!0}return n(t,e);case"function":return!1;default:return n(t,e)}}function zn(t){return null===t?"null":typeof t}function Hn(t){var e=t.NUMBER_FORMATS;return function(t,n,r){return v(n)&&(n=e.CURRENCY_SYM),v(r)&&(r=e.PATTERNS[1].maxFrac),null==t?t:Wn(t,e.PATTERNS[1],e.GROUP_SEP,e.DECIMAL_SEP,r).replace(/\u00A4/g,n)}}function Bn(t){var e=t.NUMBER_FORMATS;return function(t,n){return null==t?t:Wn(t,e.PATTERNS[0],e.GROUP_SEP,e.DECIMAL_SEP,n)}}function Un(t){var e,n,r,i,o,a=0;for((n=t.indexOf(Co))>-1&&(t=t.replace(Co,"")),(r=t.search(/e/i))>0?(n<0&&(n=r),n+=+t.slice(r+1),t=t.substring(0,r)):n<0&&(n=t.length),r=0;t.charAt(r)==Eo;r++);if(r==(o=t.length))e=[0],n=1;else{for(o--;t.charAt(o)==Eo;)o--;for(n-=r,e=[],i=0;r<=o;r++,i++)e[i]=+t.charAt(r)}return n>ko&&(e=e.splice(0,ko-1),a=n-1,n=1),{d:e,e:a,i:n}}function Vn(t,e,n,r){var i=t.d,o=i.length-t.i;e=v(e)?Math.min(Math.max(n,o),r):+e;var a=e+t.i,s=i[a];if(a>0){i.splice(Math.max(t.i,a));for(var u=a;u<i.length;u++)i[u]=0}else{o=Math.max(0,o),t.i=1,i.length=Math.max(1,a=e+1),i[0]=0;for(var l=1;l<a;l++)i[l]=0}if(s>=5)if(a-1<0){for(var c=0;c>a;c--)i.unshift(0),t.i++;i.unshift(1),t.i++}else i[a-1]++;for(;o<Math.max(0,e);o++)i.push(0);var f=i.reduceRight(function(t,e,n,r){return e+=t,r[n]=e%10,Math.floor(e/10)},0);f&&(i.unshift(f),t.i++)}function Wn(t,e,n,r,i){if(!w(t)&&!x(t)||isNaN(t))return"";var o,a=!isFinite(t),s=!1,u=Math.abs(t)+"",l="";if(a)l="∞";else{o=Un(u),Vn(o,i,e.minFrac,e.maxFrac);var c=o.d,f=o.i,h=o.e,d=[];for(s=c.reduce(function(t,e){return t&&!e},!0);f<0;)c.unshift(0),f++;f>0?d=c.splice(f):(d=c,c=[0]);var p=[];for(c.length>=e.lgSize&&p.unshift(c.splice(-e.lgSize).join(""));c.length>e.gSize;)p.unshift(c.splice(-e.gSize).join(""));c.length&&p.unshift(c.join("")),l=p.join(n),d.length&&(l+=r+d.join("")),h&&(l+="e+"+h)}return t<0&&!s?e.negPre+l+e.negSuf:e.posPre+l+e.posSuf}function Yn(t,e,n,r){var i="";for((t<0||r&&t<=0)&&(r?t=-t+1:(t=-t,i="-")),t=""+t;t.length<e;)t=Eo+t;return n&&(t=t.substr(t.length-e)),i+t}function Gn(t,e,n,r,i){return n=n||0,function(o){var a=o["get"+t]();return(n>0||a>-n)&&(a+=n),0===a&&n==-12&&(a=12),Yn(a,e,r,i)}}function Kn(t,e,n){return function(r,i){var o=r["get"+t](),a=(n?"STANDALONE":"")+(e?"SHORT":""),s=Fr(a+t);return i[s][o]}}function Zn(t,e,n){var r=-1*n,i=r>=0?"+":"";return i+=Yn(Math[r>0?"floor":"ceil"](r/60),2)+Yn(Math.abs(r%60),2)}function Xn(t){var e=new Date(t,0,1).getDay();return new Date(t,0,(e<=4?5:12)-e)}function Jn(t){return new Date(t.getFullYear(),t.getMonth(),t.getDate()+(4-t.getDay()))}function Qn(t){return function(e){var n=Xn(e.getFullYear()),r=Jn(e),i=+r-+n,o=1+Math.round(i/6048e5);return Yn(o,t)}}function tr(t,e){return t.getHours()<12?e.AMPMS[0]:e.AMPMS[1]}function er(t,e){return t.getFullYear()<=0?e.ERAS[0]:e.ERAS[1]}function nr(t,e){return t.getFullYear()<=0?e.ERANAMES[0]:e.ERANAMES[1]}function rr(t){function e(t){var e;if(e=t.match(n)){var r=new Date(0),i=0,o=0,a=e[8]?r.setUTCFullYear:r.setFullYear,s=e[8]?r.setUTCHours:r.setHours;e[9]&&(i=f(e[9]+e[10]),o=f(e[9]+e[11])),a.call(r,f(e[1]),f(e[2])-1,f(e[3]));var u=f(e[4]||0)-i,l=f(e[5]||0)-o,c=f(e[6]||0),h=Math.round(1e3*parseFloat("0."+(e[7]||0)));return s.call(r,u,l,c,h),r}return t}var n=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/;return function(n,i,o){var a,s,u="",l=[];if(i=i||"mediumDate",i=t.DATETIME_FORMATS[i]||i,w(n)&&(n=Ao.test(n)?f(n):e(n)),x(n)&&(n=new Date(n)),!k(n)||!isFinite(n.getTime()))return n;for(;i;)s=So.exec(i),s?(l=H(l,s,1),i=l.pop()):(l.push(i),i=null);var c=n.getTimezoneOffset();return o&&(c=G(o,c),n=Z(n,o,!0)),r(l,function(e){a=$o[e],u+=a?a(n,t.DATETIME_FORMATS,c):"''"===e?"'":e.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),u}}function ir(){return function(t,e){return v(e)&&(e=2),W(t,e)}}function or(){return function(t,e,n){return e=Math.abs(Number(e))===1/0?Number(e):f(e),isNaN(e)?t:(x(t)&&(t=t.toString()),Wr(t)||w(t)?(n=!n||isNaN(n)?0:f(n),n=n<0?Math.max(0,t.length+n):n,e>=0?t.slice(n,n+e):0===n?t.slice(e,t.length):t.slice(Math.max(0,n+e),n)):t)}}function ar(t){function r(e,n){return n=n?-1:1,e.map(function(e){var r=1,i=p;if(C(e))i=e;else if(w(e)&&("+"!=e.charAt(0)&&"-"!=e.charAt(0)||(r="-"==e.charAt(0)?-1:1,e=e.substring(1)),""!==e&&(i=t(e),i.constant))){var o=i();i=function(t){return t[o]}}return{get:i,descending:r*n}})}function i(t){switch(typeof t){case"number":case"boolean":case"string":return!0;default:return!1}}function o(t,e){return"function"==typeof t.valueOf&&(t=t.valueOf(),i(t))?t:g(t)&&(t=t.toString(),i(t))?t:e}function a(t,e){var n=typeof t;return null===t?(n="string",t="null"):"string"===n?t=t.toLowerCase():"object"===n&&(t=o(t,e)),{value:t,type:n}}function s(t,e){var n=0;return t.type===e.type?t.value!==e.value&&(n=t.value<e.value?-1:1):n=t.type<e.type?-1:1,n}return function(t,i,o){function u(t,e){return{value:t,predicateValues:c.map(function(n){return a(n.get(t),e)})}}function l(t,e){for(var n=0,r=0,i=c.length;r<i&&!(n=s(t.predicateValues[r],e.predicateValues[r])*c[r].descending);++r);return n}if(null==t)return t;if(!n(t))throw e("orderBy")("notarray","Expected array but received: {0}",t);Wr(i)||(i=[i]),0===i.length&&(i=["+"]);var c=r(i,o);c.push({get:function(){return{}},descending:o?-1:1});var f=Array.prototype.map.call(t,u);return f.sort(l),t=f.map(function(t){return t.value})}}function sr(t){return C(t)&&(t={link:t}),t.restrict=t.restrict||"AC",m(t)}function ur(t,e){t.$name=e}function lr(t,e,n,i,o){var a=this,s=[];a.$error={},
|
||
a.$$success={},a.$pending=void 0,a.$name=o(e.name||e.ngForm||"")(n),a.$dirty=!1,a.$pristine=!0,a.$valid=!0,a.$invalid=!1,a.$submitted=!1,a.$$parentForm=Mo,a.$rollbackViewValue=function(){r(s,function(t){t.$rollbackViewValue()})},a.$commitViewValue=function(){r(s,function(t){t.$commitViewValue()})},a.$addControl=function(t){ht(t.$name,"input"),s.push(t),t.$name&&(a[t.$name]=t),t.$$parentForm=a},a.$$renameControl=function(t,e){var n=t.$name;a[n]===t&&delete a[n],a[e]=t,t.$name=e},a.$removeControl=function(t){t.$name&&a[t.$name]===t&&delete a[t.$name],r(a.$pending,function(e,n){a.$setValidity(n,null,t)}),r(a.$error,function(e,n){a.$setValidity(n,null,t)}),r(a.$$success,function(e,n){a.$setValidity(n,null,t)}),R(s,t),t.$$parentForm=Mo},Cr({ctrl:this,$element:t,set:function(t,e,n){var r=t[e];if(r){var i=r.indexOf(n);i===-1&&r.push(n)}else t[e]=[n]},unset:function(t,e,n){var r=t[e];r&&(R(r,n),0===r.length&&delete t[e])},$animate:i}),a.$setDirty=function(){i.removeClass(t,va),i.addClass(t,ya),a.$dirty=!0,a.$pristine=!1,a.$$parentForm.$setDirty()},a.$setPristine=function(){i.setClass(t,va,ya+" "+Oo),a.$dirty=!1,a.$pristine=!0,a.$submitted=!1,r(s,function(t){t.$setPristine()})},a.$setUntouched=function(){r(s,function(t){t.$setUntouched()})},a.$setSubmitted=function(){i.addClass(t,Oo),a.$submitted=!0,a.$$parentForm.$setSubmitted()}}function cr(t){t.$formatters.push(function(e){return t.$isEmpty(e)?e:e.toString()})}function fr(t,e,n,r,i,o){hr(t,e,n,r,i,o),cr(r)}function hr(t,e,n,r,i,o){var a=Dr(e[0].type);if(!i.android){var s=!1;e.on("compositionstart",function(){s=!0}),e.on("compositionend",function(){s=!1,l()})}var u,l=function(t){if(u&&(o.defer.cancel(u),u=null),!s){var i=e.val(),l=t&&t.type;"password"===a||n.ngTrim&&"false"===n.ngTrim||(i=Gr(i)),(r.$viewValue!==i||""===i&&r.$$hasNativeValidators)&&r.$setViewValue(i,l)}};if(i.hasEvent("input"))e.on("input",l);else{var c=function(t,e,n){u||(u=o.defer(function(){u=null,e&&e.value===n||l(t)}))};e.on("keydown",function(t){var e=t.keyCode;91===e||15<e&&e<19||37<=e&&e<=40||c(t,this,this.value)}),i.hasEvent("paste")&&e.on("paste cut",c)}e.on("change",l),Go[a]&&r.$$hasNativeValidators&&a===n.type&&e.on(Yo,function(t){if(!u){var e=this[Ar],n=e.badInput,r=e.typeMismatch;u=o.defer(function(){u=null,e.badInput===n&&e.typeMismatch===r||l(t)})}}),r.$render=function(){var t=r.$isEmpty(r.$viewValue)?"":r.$viewValue;e.val()!==t&&e.val(t)}}function dr(t,e){if(k(t))return t;if(w(t)){Uo.lastIndex=0;var n=Uo.exec(t);if(n){var r=+n[1],i=+n[2],o=0,a=0,s=0,u=0,l=Xn(r),c=7*(i-1);return e&&(o=e.getHours(),a=e.getMinutes(),s=e.getSeconds(),u=e.getMilliseconds()),new Date(r,0,l.getDate()+c,o,a,s,u)}}return NaN}function pr(t,e){return function(n,i){var o,a;if(k(n))return n;if(w(n)){if('"'==n.charAt(0)&&'"'==n.charAt(n.length-1)&&(n=n.substring(1,n.length-1)),Ro.test(n))return new Date(n);if(t.lastIndex=0,o=t.exec(n))return o.shift(),a=i?{yyyy:i.getFullYear(),MM:i.getMonth()+1,dd:i.getDate(),HH:i.getHours(),mm:i.getMinutes(),ss:i.getSeconds(),sss:i.getMilliseconds()/1e3}:{yyyy:1970,MM:1,dd:1,HH:0,mm:0,ss:0,sss:0},r(o,function(t,n){n<e.length&&(a[e[n]]=+t)}),new Date(a.yyyy,a.MM-1,a.dd,a.HH,a.mm,a.ss||0,1e3*a.sss||0)}return NaN}}function mr(t,e,n,r){return function(i,o,a,s,u,l,c){function f(t){return t&&!(t.getTime&&t.getTime()!==t.getTime())}function h(t){return y(t)&&!k(t)?n(t)||void 0:t}gr(i,o,a,s),hr(i,o,a,s,u,l);var d,p=s&&s.$options&&s.$options.timezone;if(s.$$parserName=t,s.$parsers.push(function(t){if(s.$isEmpty(t))return null;if(e.test(t)){var r=n(t,d);return p&&(r=Z(r,p)),r}}),s.$formatters.push(function(t){if(t&&!k(t))throw Ca("datefmt","Expected `{0}` to be a date",t);return f(t)?(d=t,d&&p&&(d=Z(d,p,!0)),c("date")(t,r,p)):(d=null,"")}),y(a.min)||a.ngMin){var m;s.$validators.min=function(t){return!f(t)||v(m)||n(t)>=m},a.$observe("min",function(t){m=h(t),s.$validate()})}if(y(a.max)||a.ngMax){var g;s.$validators.max=function(t){return!f(t)||v(g)||n(t)<=g},a.$observe("max",function(t){g=h(t),s.$validate()})}}}function gr(t,e,n,r){var i=e[0],o=r.$$hasNativeValidators=b(i.validity);o&&r.$parsers.push(function(t){var n=e.prop(Ar)||{};return n.badInput||n.typeMismatch?void 0:t})}function vr(t,e,n,r,i,o){if(gr(t,e,n,r),hr(t,e,n,r,i,o),r.$$parserName="number",r.$parsers.push(function(t){return r.$isEmpty(t)?null:zo.test(t)?parseFloat(t):void 0}),r.$formatters.push(function(t){if(!r.$isEmpty(t)){if(!x(t))throw Ca("numfmt","Expected `{0}` to be a number",t);t=t.toString()}return t}),y(n.min)||n.ngMin){var a;r.$validators.min=function(t){return r.$isEmpty(t)||v(a)||t>=a},n.$observe("min",function(t){y(t)&&!x(t)&&(t=parseFloat(t,10)),a=x(t)&&!isNaN(t)?t:void 0,r.$validate()})}if(y(n.max)||n.ngMax){var s;r.$validators.max=function(t){return r.$isEmpty(t)||v(s)||t<=s},n.$observe("max",function(t){y(t)&&!x(t)&&(t=parseFloat(t,10)),s=x(t)&&!isNaN(t)?t:void 0,r.$validate()})}}function yr(t,e,n,r,i,o){hr(t,e,n,r,i,o),cr(r),r.$$parserName="url",r.$validators.url=function(t,e){var n=t||e;return r.$isEmpty(n)||Io.test(n)}}function br(t,e,n,r,i,o){hr(t,e,n,r,i,o),cr(r),r.$$parserName="email",r.$validators.email=function(t,e){var n=t||e;return r.$isEmpty(n)||qo.test(n)}}function _r(t,e,n,r){v(n.name)&&e.attr("name",a());var i=function(t){e[0].checked&&r.$setViewValue(n.value,t&&t.type)};e.on("click",i),r.$render=function(){var t=n.value;e[0].checked=t==r.$viewValue},n.$observe("value",r.$render)}function wr(t,e,n,r,i){var o;if(y(r)){if(o=t(r),!o.constant)throw Ca("constexpr","Expected constant expression for `{0}`, but saw `{1}`.",n,r);return o(e)}return i}function xr(t,e,n,r,i,o,a,s){var u=wr(s,t,"ngTrueValue",n.ngTrueValue,!0),l=wr(s,t,"ngFalseValue",n.ngFalseValue,!1),c=function(t){r.$setViewValue(e[0].checked,t&&t.type)};e.on("click",c),r.$render=function(){e[0].checked=r.$viewValue},r.$isEmpty=function(t){return t===!1},r.$formatters.push(function(t){return z(t,u)}),r.$parsers.push(function(t){return t?u:l})}function kr(t,e){return t="ngClass"+t,["$animate",function(n){function i(t,e){var n=[];t:for(var r=0;r<t.length;r++){for(var i=t[r],o=0;o<e.length;o++)if(i==e[o])continue t;n.push(i)}return n}function o(t){var e=[];return Wr(t)?(r(t,function(t){e=e.concat(o(t))}),e):w(t)?t.split(" "):b(t)?(r(t,function(t,n){t&&(e=e.concat(n.split(" ")))}),e):t}return{restrict:"AC",link:function(a,s,u){function l(t){var e=f(t,1);u.$addClass(e)}function c(t){var e=f(t,-1);u.$removeClass(e)}function f(t,e){var n=s.data("$classCounts")||mt(),i=[];return r(t,function(t){(e>0||n[t])&&(n[t]=(n[t]||0)+e,n[t]===+(e>0)&&i.push(t))}),s.data("$classCounts",n),i.join(" ")}function h(t,e){var r=i(e,t),o=i(t,e);r=f(r,1),o=f(o,-1),r&&r.length&&n.addClass(s,r),o&&o.length&&n.removeClass(s,o)}function d(t){if(e===!0||a.$index%2===e){var n=o(t||[]);if(p){if(!z(t,p)){var r=o(p);h(r,n)}}else l(n)}p=Wr(t)?t.map(function(t){return q(t)}):q(t)}var p;a.$watch(u[t],d,!0),u.$observe("class",function(e){d(a.$eval(u[t]))}),"ngClass"!==t&&a.$watch("$index",function(n,r){var i=1&n;if(i!==(1&r)){var s=o(a.$eval(u[t]));i===e?l(s):c(s)}})}}}]}function Cr(t){function e(t,e,s){v(e)?n("$pending",t,s):r("$pending",t,s),F(e)?e?(c(a.$error,t,s),l(a.$$success,t,s)):(l(a.$error,t,s),c(a.$$success,t,s)):(c(a.$error,t,s),c(a.$$success,t,s)),a.$pending?(i(wa,!0),a.$valid=a.$invalid=void 0,o("",null)):(i(wa,!1),a.$valid=Er(a.$error),a.$invalid=!a.$valid,o("",a.$valid));var u;u=a.$pending&&a.$pending[t]?void 0:!a.$error[t]&&(!!a.$$success[t]||null),o(t,u),a.$$parentForm.$setValidity(t,u,a)}function n(t,e,n){a[t]||(a[t]={}),l(a[t],e,n)}function r(t,e,n){a[t]&&c(a[t],e,n),Er(a[t])&&(a[t]=void 0)}function i(t,e){e&&!u[t]?(f.addClass(s,t),u[t]=!0):!e&&u[t]&&(f.removeClass(s,t),u[t]=!1)}function o(t,e){t=t?"-"+ut(t,"-"):"",i(ma+t,e===!0),i(ga+t,e===!1)}var a=t.ctrl,s=t.$element,u={},l=t.set,c=t.unset,f=t.$animate;u[ga]=!(u[ma]=s.hasClass(ma)),a.$setValidity=e}function Er(t){if(t)for(var e in t)if(t.hasOwnProperty(e))return!1;return!0}function $r(t){t[0].hasAttribute("selected")&&(t[0].selected=!0)}var Sr=/^\/(.+)\/([a-z]*)$/,Ar="validity",Tr=Object.prototype.hasOwnProperty,Dr=function(t){return w(t)?t.toLowerCase():t},Fr=function(t){return w(t)?t.toUpperCase():t},Nr=function(t){return w(t)?t.replace(/[A-Z]/g,function(t){return String.fromCharCode(32|t.charCodeAt(0))}):t},Mr=function(t){return w(t)?t.replace(/[a-z]/g,function(t){return String.fromCharCode(t.charCodeAt(0)&-33)}):t};"i"!=="I".toLowerCase()&&(Dr=Nr,Fr=Mr);var Or,jr,Pr,Lr,Rr=[].slice,Ir=[].splice,qr=[].push,zr=Object.prototype.toString,Hr=Object.getPrototypeOf,Br=e("ng"),Ur=t.angular||(t.angular={}),Vr=0;Or=t.document.documentMode,d.$inject=[],p.$inject=[];var Wr=Array.isArray,Yr=/^\[object (?:Uint8|Uint8Clamped|Uint16|Uint32|Int8|Int16|Int32|Float32|Float64)Array\]$/,Gr=function(t){return w(t)?t.trim():t},Kr=function(t){return t.replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08")},Zr=function(){function e(){try{return new Function(""),!1}catch(t){return!0}}if(!y(Zr.rules)){var n=t.document.querySelector("[ng-csp]")||t.document.querySelector("[data-ng-csp]");if(n){var r=n.getAttribute("ng-csp")||n.getAttribute("data-ng-csp");Zr.rules={noUnsafeEval:!r||r.indexOf("no-unsafe-eval")!==-1,noInlineStyle:!r||r.indexOf("no-inline-style")!==-1}}else Zr.rules={noUnsafeEval:e(),noInlineStyle:!1}}return Zr.rules},Xr=function(){if(y(Xr.name_))return Xr.name_;var e,n,r,i,o=Qr.length;for(n=0;n<o;++n)if(r=Qr[n],e=t.document.querySelector("["+r.replace(":","\\:")+"jq]")){i=e.getAttribute(r+"jq");break}return Xr.name_=i},Jr=/:/g,Qr=["ng-","data-ng-","ng:","x-ng-"],ti=/[A-Z]/g,ei=!1,ni=1,ri=2,ii=3,oi=8,ai=9,si=11,ui={full:"1.5.5",major:1,minor:5,dot:5,codeName:"material-conspiration"};Tt.expando="ng339";var li=Tt.cache={},ci=1,fi=function(t,e,n){t.addEventListener(e,n,!1)},hi=function(t,e,n){t.removeEventListener(e,n,!1)};Tt._data=function(t){return this.cache[t[this.expando]]||{}};var di=/([\:\-\_]+(.))/g,pi=/^moz([A-Z])/,mi={mouseleave:"mouseout",mouseenter:"mouseover"},gi=e("jqLite"),vi=/^<([\w-]+)\s*\/?>(?:<\/\1>|)$/,yi=/<|&#?\w+;/,bi=/<([\w:-]+)/,_i=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:-]+)[^>]*)\/>/gi,wi={option:[1,'<select multiple="multiple">',"</select>"],thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};wi.optgroup=wi.option,wi.tbody=wi.tfoot=wi.colgroup=wi.caption=wi.thead,wi.th=wi.td;var xi=t.Node.prototype.contains||function(t){return!!(16&this.compareDocumentPosition(t))},ki=Tt.prototype={ready:function(e){function n(){r||(r=!0,e())}var r=!1;"complete"===t.document.readyState?t.setTimeout(n):(this.on("DOMContentLoaded",n),Tt(t).on("load",n))},toString:function(){var t=[];return r(this,function(e){t.push(""+e)}),"["+t.join(", ")+"]"},eq:function(t){return jr(t>=0?this[t]:this[this.length+t])},length:0,push:qr,sort:[].sort,splice:[].splice},Ci={};r("multiple,selected,checked,disabled,readOnly,required,open".split(","),function(t){Ci[Dr(t)]=t});var Ei={};r("input,select,option,textarea,button,form,details".split(","),function(t){Ei[t]=!0});var $i={ngMinlength:"minlength",ngMaxlength:"maxlength",ngMin:"min",ngMax:"max",ngPattern:"pattern"};r({data:jt,removeData:Mt,hasData:Ct,cleanData:Et},function(t,e){Tt[e]=t}),r({data:jt,inheritedData:zt,scope:function(t){return jr.data(t,"$scope")||zt(t.parentNode||t,["$isolateScope","$scope"])},isolateScope:function(t){return jr.data(t,"$isolateScope")||jr.data(t,"$isolateScopeNoTemplate")},controller:qt,injector:function(t){return zt(t,"$injector")},removeAttr:function(t,e){t.removeAttribute(e)},hasClass:Pt,css:function(t,e,n){return e=wt(e),y(n)?void(t.style[e]=n):t.style[e]},attr:function(t,e,n){var r=t.nodeType;if(r!==ii&&r!==ri&&r!==oi){var i=Dr(e);if(Ci[i]){if(!y(n))return t[e]||(t.attributes.getNamedItem(e)||d).specified?i:void 0;n?(t[e]=!0,t.setAttribute(e,i)):(t[e]=!1,t.removeAttribute(i))}else if(y(n))t.setAttribute(e,n);else if(t.getAttribute){var o=t.getAttribute(e,2);return null===o?void 0:o}}},prop:function(t,e,n){return y(n)?void(t[e]=n):t[e]},text:function(){function t(t,e){if(v(e)){var n=t.nodeType;return n===ni||n===ii?t.textContent:""}t.textContent=e}return t.$dv="",t}(),val:function(t,e){if(v(e)){if(t.multiple&&"select"===L(t)){var n=[];return r(t.options,function(t){t.selected&&n.push(t.value||t.text)}),0===n.length?null:n}return t.value}t.value=e},html:function(t,e){return v(e)?t.innerHTML:(Ft(t,!0),void(t.innerHTML=e))},empty:Ht},function(t,e){Tt.prototype[e]=function(e,n){var r,i,o=this.length;if(t!==Ht&&v(2==t.length&&t!==Pt&&t!==qt?e:n)){if(b(e)){for(r=0;r<o;r++)if(t===jt)t(this[r],e);else for(i in e)t(this[r],i,e[i]);return this}for(var a=t.$dv,s=v(a)?Math.min(o,1):o,u=0;u<s;u++){var l=t(this[u],e,n);a=a?a+l:l}return a}for(r=0;r<o;r++)t(this[r],e,n);return this}}),r({removeData:Mt,on:function(t,e,n,r){if(y(r))throw gi("onargs","jqLite#on() does not support the `selector` or `eventData` parameters");if(kt(t)){var i=Ot(t,!0),o=i.events,a=i.handle;a||(a=i.handle=Yt(t,o));for(var s=e.indexOf(" ")>=0?e.split(" "):[e],u=s.length,l=function(e,r,i){var s=o[e];s||(s=o[e]=[],s.specialHandlerWrapper=r,"$destroy"===e||i||fi(t,e,a)),s.push(n)};u--;)e=s[u],mi[e]?(l(mi[e],Kt),l(e,void 0,!0)):l(e)}},off:Nt,one:function(t,e,n){t=jr(t),t.on(e,function r(){t.off(e,n),t.off(e,r)}),t.on(e,n)},replaceWith:function(t,e){var n,i=t.parentNode;Ft(t),r(new Tt(e),function(e){n?i.insertBefore(e,n.nextSibling):i.replaceChild(e,t),n=e})},children:function(t){var e=[];return r(t.childNodes,function(t){t.nodeType===ni&&e.push(t)}),e},contents:function(t){return t.contentDocument||t.childNodes||[]},append:function(t,e){var n=t.nodeType;if(n===ni||n===si){e=new Tt(e);for(var r=0,i=e.length;r<i;r++){var o=e[r];t.appendChild(o)}}},prepend:function(t,e){if(t.nodeType===ni){var n=t.firstChild;r(new Tt(e),function(e){t.insertBefore(e,n)})}},wrap:function(t,e){At(t,jr(e).eq(0).clone()[0])},remove:Bt,detach:function(t){Bt(t,!0)},after:function(t,e){var n=t,r=t.parentNode;e=new Tt(e);for(var i=0,o=e.length;i<o;i++){var a=e[i];r.insertBefore(a,n.nextSibling),n=a}},addClass:Rt,removeClass:Lt,toggleClass:function(t,e,n){e&&r(e.split(" "),function(e){var r=n;v(r)&&(r=!Pt(t,e)),(r?Rt:Lt)(t,e)})},parent:function(t){var e=t.parentNode;return e&&e.nodeType!==si?e:null},next:function(t){return t.nextElementSibling},find:function(t,e){return t.getElementsByTagName?t.getElementsByTagName(e):[]},clone:Dt,triggerHandler:function(t,e,n){var i,o,a,s=e.type||e,u=Ot(t),c=u&&u.events,f=c&&c[s];f&&(i={preventDefault:function(){this.defaultPrevented=!0},isDefaultPrevented:function(){return this.defaultPrevented===!0},stopImmediatePropagation:function(){this.immediatePropagationStopped=!0},isImmediatePropagationStopped:function(){return this.immediatePropagationStopped===!0},stopPropagation:d,type:s,target:t},e.type&&(i=l(i,e)),o=q(f),a=n?[i].concat(n):[i],r(o,function(e){i.isImmediatePropagationStopped()||e.apply(t,a)}))}},function(t,e){Tt.prototype[e]=function(e,n,r){for(var i,o=0,a=this.length;o<a;o++)v(i)?(i=t(this[o],e,n,r),y(i)&&(i=jr(i))):It(i,t(this[o],e,n,r));return y(i)?i:this},Tt.prototype.bind=Tt.prototype.on,Tt.prototype.unbind=Tt.prototype.off}),Jt.prototype={put:function(t,e){this[Xt(t,this.nextUid)]=e},get:function(t){return this[Xt(t,this.nextUid)]},remove:function(t){var e=this[t=Xt(t,this.nextUid)];return delete this[t],e}};var Si=[function(){this.$get=[function(){return Jt}]}],Ai=/^([^\(]+?)=>/,Ti=/^[^\(]*\(\s*([^\)]*)\)/m,Di=/,/,Fi=/^\s*(_?)(\S+?)\1\s*$/,Ni=/((\/\/.*$)|(\/\*[\s\S]*?\*\/))/gm,Mi=e("$injector");ne.$$annotate=ee;var Oi=e("$animate"),ji=1,Pi="ng-animate",Li=function(){this.$get=d},Ri=function(){var t=new Jt,e=[];this.$get=["$$AnimateRunner","$rootScope",function(n,i){function o(t,e,n){var i=!1;return e&&(e=w(e)?e.split(" "):Wr(e)?e:[],r(e,function(e){e&&(i=!0,t[e]=n)})),i}function a(){r(e,function(e){var n=t.get(e);if(n){var i=ae(e.attr("class")),o="",a="";r(n,function(t,e){var n=!!i[e];t!==n&&(t?o+=(o.length?" ":"")+e:a+=(a.length?" ":"")+e)}),r(e,function(t){o&&Rt(t,o),a&&Lt(t,a)}),t.remove(e)}}),e.length=0}function s(n,r,s){var u=t.get(n)||{},l=o(u,r,!0),c=o(u,s,!1);(l||c)&&(t.put(n,u),e.push(n),1===e.length&&i.$$postDigest(a))}return{enabled:d,on:d,off:d,pin:d,push:function(t,e,r,i){i&&i(),r=r||{},r.from&&t.css(r.from),r.to&&t.css(r.to),(r.addClass||r.removeClass)&&s(t,r.addClass,r.removeClass);var o=new n;return o.complete(),o}}}]},Ii=["$provide",function(t){var e=this;this.$$registeredAnimations=Object.create(null),this.register=function(n,r){if(n&&"."!==n.charAt(0))throw Oi("notcsel","Expecting class selector starting with '.' got '{0}'.",n);var i=n+"-animation";e.$$registeredAnimations[n.substr(1)]=i,t.factory(i,r)},this.classNameFilter=function(t){if(1===arguments.length&&(this.$$classNameFilter=t instanceof RegExp?t:null,this.$$classNameFilter)){var e=new RegExp("(\\s+|\\/)"+Pi+"(\\s+|\\/)");if(e.test(this.$$classNameFilter.toString()))throw Oi("nongcls",'$animateProvider.classNameFilter(regex) prohibits accepting a regex value which matches/contains the "{0}" CSS class.',Pi)}return this.$$classNameFilter},this.$get=["$$animateQueue",function(t){function e(t,e,n){if(n){var r=oe(n);!r||r.parentNode||r.previousElementSibling||(n=null)}n?n.after(t):e.prepend(t)}return{on:t.on,off:t.off,pin:t.pin,enabled:t.enabled,cancel:function(t){t.end&&t.end()},enter:function(n,r,i,o){return r=r&&jr(r),i=i&&jr(i),r=r||i.parent(),e(n,r,i),t.push(n,"enter",se(o))},move:function(n,r,i,o){return r=r&&jr(r),i=i&&jr(i),r=r||i.parent(),e(n,r,i),t.push(n,"move",se(o))},leave:function(e,n){return t.push(e,"leave",se(n),function(){e.remove()})},addClass:function(e,n,r){return r=se(r),r.addClass=ie(r.addclass,n),t.push(e,"addClass",r)},removeClass:function(e,n,r){return r=se(r),r.removeClass=ie(r.removeClass,n),t.push(e,"removeClass",r)},setClass:function(e,n,r,i){return i=se(i),i.addClass=ie(i.addClass,n),i.removeClass=ie(i.removeClass,r),t.push(e,"setClass",i)},animate:function(e,n,r,i,o){return o=se(o),o.from=o.from?l(o.from,n):n,o.to=o.to?l(o.to,r):r,i=i||"ng-inline-animate",o.tempClasses=ie(o.tempClasses,i),t.push(e,"animate",o)}}}]}],qi=function(){this.$get=["$$rAF",function(t){function e(e){n.push(e),n.length>1||t(function(){for(var t=0;t<n.length;t++)n[t]();n=[]})}var n=[];return function(){var t=!1;return e(function(){t=!0}),function(n){t?n():e(n)}}}]},zi=function(){this.$get=["$q","$sniffer","$$animateAsyncRun","$document","$timeout",function(t,e,n,i,o){function a(t){this.setHost(t);var e=n(),r=function(t){o(t,0,!1)};this._doneCallbacks=[],this._tick=function(t){var n=i[0];n&&n.hidden?r(t):e(t)},this._state=0}var s=0,u=1,l=2;return a.chain=function(t,e){function n(){return r===t.length?void e(!0):void t[r](function(t){return t===!1?void e(!1):(r++,void n())})}var r=0;n()},a.all=function(t,e){function n(n){o=o&&n,++i===t.length&&e(o)}var i=0,o=!0;r(t,function(t){t.done(n)})},a.prototype={setHost:function(t){this.host=t||{}},done:function(t){this._state===l?t():this._doneCallbacks.push(t)},progress:d,getPromise:function(){if(!this.promise){var e=this;this.promise=t(function(t,n){e.done(function(e){e===!1?n():t()})})}return this.promise},then:function(t,e){return this.getPromise().then(t,e)},"catch":function(t){return this.getPromise()["catch"](t)},"finally":function(t){return this.getPromise()["finally"](t)},pause:function(){this.host.pause&&this.host.pause()},resume:function(){this.host.resume&&this.host.resume()},end:function(){this.host.end&&this.host.end(),this._resolve(!0)},cancel:function(){this.host.cancel&&this.host.cancel(),this._resolve(!1)},complete:function(t){var e=this;e._state===s&&(e._state=u,e._tick(function(){e._resolve(t)}))},_resolve:function(t){this._state!==l&&(r(this._doneCallbacks,function(e){e(t)}),this._doneCallbacks.length=0,this._state=l)}},a}]},Hi=function(){this.$get=["$$rAF","$q","$$AnimateRunner",function(t,e,n){return function(e,r){function i(){return t(function(){o(),s||u.complete(),s=!0}),u}function o(){a.addClass&&(e.addClass(a.addClass),a.addClass=null),a.removeClass&&(e.removeClass(a.removeClass),a.removeClass=null),a.to&&(e.css(a.to),a.to=null)}var a=r||{};a.$$prepared||(a=I(a)),a.cleanupStyles&&(a.from=a.to=null),a.from&&(e.css(a.from),a.from=null);var s,u=new n;return{start:i,end:i}}}]},Bi=e("$compile"),Ui=new he;de.$inject=["$provide","$$sanitizeUriProvider"],pe.prototype.isFirstChange=function(){return this.previousValue===Ui};var Vi=/^((?:x|data)[\:\-_])/i,Wi=e("$controller"),Yi=/^(\S+)(\s+as\s+([\w$]+))?$/,Gi=function(){this.$get=["$document",function(t){return function(e){return e?!e.nodeType&&e instanceof jr&&(e=e[0]):e=t[0].body,e.offsetWidth+1}}]},Ki="application/json",Zi={"Content-Type":Ki+";charset=utf-8"},Xi=/^\[|^\{(?!\{)/,Ji={"[":/]$/,"{":/}$/},Qi=/^\)\]\}',?\n/,to=e("$http"),eo=function(t){return function(){throw to("legacy","The method `{0}` on the promise returned from `$http` has been disabled.",t)}},no=Ur.$interpolateMinErr=e("$interpolate");no.throwNoconcat=function(t){throw no("noconcat","Error while interpolating: {0}\nStrict Contextual Escaping disallows interpolations that concatenate multiple expressions when a trusted value is required. See http://docs.angularjs.org/api/ng.$sce",t)},no.interr=function(t,e){return no("interr","Can't interpolate: {0}\n{1}",t,e.toString())};var ro=/^([^\?#]*)(\?([^#]*))?(#(.*))?$/,io={http:80,https:443,ftp:21},oo=e("$location"),ao={$$html5:!1,$$replace:!1,absUrl:Ge("$$absUrl"),url:function(t){if(v(t))return this.$$url;var e=ro.exec(t);return(e[1]||""===t)&&this.path(decodeURIComponent(e[1])),(e[2]||e[1]||""===t)&&this.search(e[3]||""),this.hash(e[5]||""),this},protocol:Ge("$$protocol"),host:Ge("$$host"),port:Ge("$$port"),path:Ke("$$path",function(t){return t=null!==t?t.toString():"","/"==t.charAt(0)?t:"/"+t}),search:function(t,e){switch(arguments.length){case 0:return this.$$search;case 1:if(w(t)||x(t))t=t.toString(),this.$$search=Q(t);else{if(!b(t))throw oo("isrcharg","The first argument of the `$location#search()` call must be a string or an object.");t=I(t,{}),r(t,function(e,n){null==e&&delete t[n]}),this.$$search=t}break;default:v(e)||null===e?delete this.$$search[t]:this.$$search[t]=e}return this.$$compose(),this},hash:Ke("$$hash",function(t){return null!==t?t.toString():""}),replace:function(){return this.$$replace=!0,this}};r([Ye,We,Ve],function(t){t.prototype=Object.create(ao),t.prototype.state=function(e){if(!arguments.length)return this.$$state;if(t!==Ve||!this.$$html5)throw oo("nostate","History API state support is available only in HTML5 mode and only in browsers supporting HTML5 History API");return this.$$state=v(e)?null:e,this}});var so=e("$parse"),uo=Function.prototype.call,lo=Function.prototype.apply,co=Function.prototype.bind,fo=mt();r("+ - * / % === !== == != < > <= >= && || ! = |".split(" "),function(t){fo[t]=!0});var ho={n:"\n",f:"\f",r:"\r",t:"\t",v:"\x0B","'":"'",'"':'"'},po=function(t){this.options=t};po.prototype={constructor:po,lex:function(t){for(this.text=t,this.index=0,this.tokens=[];this.index<this.text.length;){var e=this.text.charAt(this.index);if('"'===e||"'"===e)this.readString(e);else if(this.isNumber(e)||"."===e&&this.isNumber(this.peek()))this.readNumber();else if(this.isIdentifierStart(this.peekMultichar()))this.readIdent();else if(this.is(e,"(){}[].,;:?"))this.tokens.push({index:this.index,text:e}),this.index++;else if(this.isWhitespace(e))this.index++;else{var n=e+this.peek(),r=n+this.peek(2),i=fo[e],o=fo[n],a=fo[r];if(i||o||a){var s=a?r:o?n:e;this.tokens.push({index:this.index,text:s,operator:!0}),this.index+=s.length}else this.throwError("Unexpected next character ",this.index,this.index+1)}}return this.tokens},is:function(t,e){return e.indexOf(t)!==-1},peek:function(t){var e=t||1;return this.index+e<this.text.length&&this.text.charAt(this.index+e)},isNumber:function(t){return"0"<=t&&t<="9"&&"string"==typeof t},isWhitespace:function(t){return" "===t||"\r"===t||"\t"===t||"\n"===t||"\x0B"===t||" "===t},isIdentifierStart:function(t){return this.options.isIdentifierStart?this.options.isIdentifierStart(t,this.codePointAt(t)):this.isValidIdentifierStart(t)},isValidIdentifierStart:function(t){return"a"<=t&&t<="z"||"A"<=t&&t<="Z"||"_"===t||"$"===t},isIdentifierContinue:function(t){return this.options.isIdentifierContinue?this.options.isIdentifierContinue(t,this.codePointAt(t)):this.isValidIdentifierContinue(t)},isValidIdentifierContinue:function(t,e){return this.isValidIdentifierStart(t,e)||this.isNumber(t)},codePointAt:function(t){return 1===t.length?t.charCodeAt(0):(t.charCodeAt(0)<<10)+t.charCodeAt(1)-56613888},peekMultichar:function(){var t=this.text.charAt(this.index),e=this.peek();if(!e)return t;var n=t.charCodeAt(0),r=e.charCodeAt(0);return n>=55296&&n<=56319&&r>=56320&&r<=57343?t+e:t},isExpOperator:function(t){return"-"===t||"+"===t||this.isNumber(t)},throwError:function(t,e,n){n=n||this.index;var r=y(e)?"s "+e+"-"+this.index+" ["+this.text.substring(e,n)+"]":" "+n;throw so("lexerr","Lexer Error: {0} at column{1} in expression [{2}].",t,r,this.text)},readNumber:function(){for(var t="",e=this.index;this.index<this.text.length;){var n=Dr(this.text.charAt(this.index));if("."==n||this.isNumber(n))t+=n;else{var r=this.peek();if("e"==n&&this.isExpOperator(r))t+=n;else if(this.isExpOperator(n)&&r&&this.isNumber(r)&&"e"==t.charAt(t.length-1))t+=n;else{if(!this.isExpOperator(n)||r&&this.isNumber(r)||"e"!=t.charAt(t.length-1))break;this.throwError("Invalid exponent")}}this.index++}this.tokens.push({index:e,text:t,constant:!0,value:Number(t)})},readIdent:function(){var t=this.index;for(this.index+=this.peekMultichar().length;this.index<this.text.length;){var e=this.peekMultichar();if(!this.isIdentifierContinue(e))break;this.index+=e.length}this.tokens.push({index:t,text:this.text.slice(t,this.index),identifier:!0})},readString:function(t){var e=this.index;this.index++;for(var n="",r=t,i=!1;this.index<this.text.length;){var o=this.text.charAt(this.index);if(r+=o,i){if("u"===o){var a=this.text.substring(this.index+1,this.index+5);a.match(/[\da-f]{4}/i)||this.throwError("Invalid unicode escape [\\u"+a+"]"),this.index+=4,n+=String.fromCharCode(parseInt(a,16))}else{var s=ho[o];n+=s||o}i=!1}else if("\\"===o)i=!0;else{if(o===t)return this.index++,void this.tokens.push({index:e,text:r,constant:!0,value:n});n+=o}this.index++}this.throwError("Unterminated quote",e)}};var mo=function(t,e){this.lexer=t,this.options=e};mo.Program="Program",mo.ExpressionStatement="ExpressionStatement",mo.AssignmentExpression="AssignmentExpression",mo.ConditionalExpression="ConditionalExpression",mo.LogicalExpression="LogicalExpression",mo.BinaryExpression="BinaryExpression",mo.UnaryExpression="UnaryExpression",mo.CallExpression="CallExpression",mo.MemberExpression="MemberExpression",mo.Identifier="Identifier",mo.Literal="Literal",mo.ArrayExpression="ArrayExpression",mo.Property="Property",mo.ObjectExpression="ObjectExpression",mo.ThisExpression="ThisExpression",mo.LocalsExpression="LocalsExpression",mo.NGValueParameter="NGValueParameter",mo.prototype={ast:function(t){this.text=t,this.tokens=this.lexer.lex(t);var e=this.program();return 0!==this.tokens.length&&this.throwError("is an unexpected token",this.tokens[0]),e},program:function(){for(var t=[];;)if(this.tokens.length>0&&!this.peek("}",")",";","]")&&t.push(this.expressionStatement()),!this.expect(";"))return{type:mo.Program,body:t}},expressionStatement:function(){return{type:mo.ExpressionStatement,expression:this.filterChain()}},filterChain:function(){for(var t,e=this.expression();t=this.expect("|");)e=this.filter(e);return e},expression:function(){return this.assignment()},assignment:function(){var t=this.ternary();return this.expect("=")&&(t={type:mo.AssignmentExpression,left:t,right:this.assignment(),operator:"="}),t},ternary:function(){var t,e,n=this.logicalOR();return this.expect("?")&&(t=this.expression(),this.consume(":"))?(e=this.expression(),{type:mo.ConditionalExpression,test:n,alternate:t,consequent:e}):n},logicalOR:function(){for(var t=this.logicalAND();this.expect("||");)t={type:mo.LogicalExpression,operator:"||",left:t,right:this.logicalAND()};return t},logicalAND:function(){for(var t=this.equality();this.expect("&&");)t={type:mo.LogicalExpression,operator:"&&",left:t,right:this.equality()};return t},equality:function(){for(var t,e=this.relational();t=this.expect("==","!=","===","!==");)e={type:mo.BinaryExpression,operator:t.text,left:e,right:this.relational()};return e},relational:function(){for(var t,e=this.additive();t=this.expect("<",">","<=",">=");)e={type:mo.BinaryExpression,operator:t.text,left:e,right:this.additive()};return e},additive:function(){for(var t,e=this.multiplicative();t=this.expect("+","-");)e={type:mo.BinaryExpression,operator:t.text,left:e,right:this.multiplicative()};return e},multiplicative:function(){for(var t,e=this.unary();t=this.expect("*","/","%");)e={type:mo.BinaryExpression,operator:t.text,left:e,right:this.unary()};return e},unary:function(){var t;return(t=this.expect("+","-","!"))?{type:mo.UnaryExpression,operator:t.text,prefix:!0,argument:this.unary()}:this.primary()},primary:function(){var t;this.expect("(")?(t=this.filterChain(),this.consume(")")):this.expect("[")?t=this.arrayDeclaration():this.expect("{")?t=this.object():this.selfReferential.hasOwnProperty(this.peek().text)?t=I(this.selfReferential[this.consume().text]):this.options.literals.hasOwnProperty(this.peek().text)?t={type:mo.Literal,value:this.options.literals[this.consume().text]}:this.peek().identifier?t=this.identifier():this.peek().constant?t=this.constant():this.throwError("not a primary expression",this.peek());for(var e;e=this.expect("(","[",".");)"("===e.text?(t={type:mo.CallExpression,callee:t,arguments:this.parseArguments()},this.consume(")")):"["===e.text?(t={type:mo.MemberExpression,object:t,property:this.expression(),computed:!0},this.consume("]")):"."===e.text?t={type:mo.MemberExpression,object:t,property:this.identifier(),computed:!1}:this.throwError("IMPOSSIBLE");return t},filter:function(t){for(var e=[t],n={type:mo.CallExpression,callee:this.identifier(),arguments:e,filter:!0};this.expect(":");)e.push(this.expression());return n},parseArguments:function(){var t=[];if(")"!==this.peekToken().text)do t.push(this.expression());while(this.expect(","));return t},identifier:function(){var t=this.consume();return t.identifier||this.throwError("is not a valid identifier",t),{type:mo.Identifier,name:t.text}},constant:function(){return{type:mo.Literal,value:this.consume().value}},arrayDeclaration:function(){var t=[];if("]"!==this.peekToken().text)do{if(this.peek("]"))break;t.push(this.expression())}while(this.expect(","));return this.consume("]"),{type:mo.ArrayExpression,elements:t}},object:function(){var t,e=[];if("}"!==this.peekToken().text)do{if(this.peek("}"))break;t={type:mo.Property,kind:"init"},this.peek().constant?t.key=this.constant():this.peek().identifier?t.key=this.identifier():this.throwError("invalid key",this.peek()),this.consume(":"),t.value=this.expression(),e.push(t)}while(this.expect(","));return this.consume("}"),{type:mo.ObjectExpression,properties:e}},throwError:function(t,e){throw so("syntax","Syntax Error: Token '{0}' {1} at column {2} of the expression [{3}] starting at [{4}].",e.text,t,e.index+1,this.text,this.text.substring(e.index))},consume:function(t){if(0===this.tokens.length)throw so("ueoe","Unexpected end of expression: {0}",this.text);var e=this.expect(t);return e||this.throwError("is unexpected, expecting ["+t+"]",this.peek()),e},peekToken:function(){if(0===this.tokens.length)throw so("ueoe","Unexpected end of expression: {0}",this.text);return this.tokens[0]},peek:function(t,e,n,r){return this.peekAhead(0,t,e,n,r)},peekAhead:function(t,e,n,r,i){if(this.tokens.length>t){var o=this.tokens[t],a=o.text;if(a===e||a===n||a===r||a===i||!e&&!n&&!r&&!i)return o}return!1},expect:function(t,e,n,r){var i=this.peek(t,e,n,r);return!!i&&(this.tokens.shift(),i)},selfReferential:{"this":{type:mo.ThisExpression
|
||
},$locals:{type:mo.LocalsExpression}}},dn.prototype={compile:function(t,e){var n=this,i=this.astBuilder.ast(t);this.state={nextId:0,filters:{},expensiveChecks:e,fn:{vars:[],body:[],own:{}},assign:{vars:[],body:[],own:{}},inputs:[]},sn(i,n.$filter);var o,a="";if(this.stage="assign",o=cn(i)){this.state.computing="assign";var s=this.nextId();this.recurse(o,s),this.return_(s),a="fn.assign="+this.generateFunction("assign","s,v,l")}var u=un(i.body);n.stage="inputs",r(u,function(t,e){var r="fn"+e;n.state[r]={vars:[],body:[],own:{}},n.state.computing=r;var i=n.nextId();n.recurse(t,i),n.return_(i),n.state.inputs.push(r),t.watchId=e}),this.state.computing="fn",this.stage="main",this.recurse(i);var l='"'+this.USE+" "+this.STRICT+'";\n'+this.filterPrefix()+"var fn="+this.generateFunction("fn","s,l,a,i")+a+this.watchFns()+"return fn;",c=new Function("$filter","ensureSafeMemberName","ensureSafeObject","ensureSafeFunction","getStringValue","ensureSafeAssignContext","ifDefined","plus","text",l)(this.$filter,Je,tn,en,Qe,nn,rn,on,t);return this.state=this.stage=void 0,c.literal=fn(i),c.constant=hn(i),c},USE:"use",STRICT:"strict",watchFns:function(){var t=[],e=this.state.inputs,n=this;return r(e,function(e){t.push("var "+e+"="+n.generateFunction(e,"s"))}),e.length&&t.push("fn.inputs=["+e.join(",")+"];"),t.join("")},generateFunction:function(t,e){return"function("+e+"){"+this.varsPrefix(t)+this.body(t)+"};"},filterPrefix:function(){var t=[],e=this;return r(this.state.filters,function(n,r){t.push(n+"=$filter("+e.escape(r)+")")}),t.length?"var "+t.join(",")+";":""},varsPrefix:function(t){return this.state[t].vars.length?"var "+this.state[t].vars.join(",")+";":""},body:function(t){return this.state[t].body.join("")},recurse:function(t,e,n,i,o,a){var s,u,l,c,f=this;if(i=i||d,!a&&y(t.watchId))return e=e||this.nextId(),void this.if_("i",this.lazyAssign(e,this.computedMember("i",t.watchId)),this.lazyRecurse(t,e,n,i,o,!0));switch(t.type){case mo.Program:r(t.body,function(e,n){f.recurse(e.expression,void 0,void 0,function(t){u=t}),n!==t.body.length-1?f.current().body.push(u,";"):f.return_(u)});break;case mo.Literal:c=this.escape(t.value),this.assign(e,c),i(c);break;case mo.UnaryExpression:this.recurse(t.argument,void 0,void 0,function(t){u=t}),c=t.operator+"("+this.ifDefined(u,0)+")",this.assign(e,c),i(c);break;case mo.BinaryExpression:this.recurse(t.left,void 0,void 0,function(t){s=t}),this.recurse(t.right,void 0,void 0,function(t){u=t}),c="+"===t.operator?this.plus(s,u):"-"===t.operator?this.ifDefined(s,0)+t.operator+this.ifDefined(u,0):"("+s+")"+t.operator+"("+u+")",this.assign(e,c),i(c);break;case mo.LogicalExpression:e=e||this.nextId(),f.recurse(t.left,e),f.if_("&&"===t.operator?e:f.not(e),f.lazyRecurse(t.right,e)),i(e);break;case mo.ConditionalExpression:e=e||this.nextId(),f.recurse(t.test,e),f.if_(e,f.lazyRecurse(t.alternate,e),f.lazyRecurse(t.consequent,e)),i(e);break;case mo.Identifier:e=e||this.nextId(),n&&(n.context="inputs"===f.stage?"s":this.assign(this.nextId(),this.getHasOwnProperty("l",t.name)+"?l:s"),n.computed=!1,n.name=t.name),Je(t.name),f.if_("inputs"===f.stage||f.not(f.getHasOwnProperty("l",t.name)),function(){f.if_("inputs"===f.stage||"s",function(){o&&1!==o&&f.if_(f.not(f.nonComputedMember("s",t.name)),f.lazyAssign(f.nonComputedMember("s",t.name),"{}")),f.assign(e,f.nonComputedMember("s",t.name))})},e&&f.lazyAssign(e,f.nonComputedMember("l",t.name))),(f.state.expensiveChecks||mn(t.name))&&f.addEnsureSafeObject(e),i(e);break;case mo.MemberExpression:s=n&&(n.context=this.nextId())||this.nextId(),e=e||this.nextId(),f.recurse(t.object,s,void 0,function(){f.if_(f.notNull(s),function(){o&&1!==o&&f.addEnsureSafeAssignContext(s),t.computed?(u=f.nextId(),f.recurse(t.property,u),f.getStringValue(u),f.addEnsureSafeMemberName(u),o&&1!==o&&f.if_(f.not(f.computedMember(s,u)),f.lazyAssign(f.computedMember(s,u),"{}")),c=f.ensureSafeObject(f.computedMember(s,u)),f.assign(e,c),n&&(n.computed=!0,n.name=u)):(Je(t.property.name),o&&1!==o&&f.if_(f.not(f.nonComputedMember(s,t.property.name)),f.lazyAssign(f.nonComputedMember(s,t.property.name),"{}")),c=f.nonComputedMember(s,t.property.name),(f.state.expensiveChecks||mn(t.property.name))&&(c=f.ensureSafeObject(c)),f.assign(e,c),n&&(n.computed=!1,n.name=t.property.name))},function(){f.assign(e,"undefined")}),i(e)},!!o);break;case mo.CallExpression:e=e||this.nextId(),t.filter?(u=f.filter(t.callee.name),l=[],r(t.arguments,function(t){var e=f.nextId();f.recurse(t,e),l.push(e)}),c=u+"("+l.join(",")+")",f.assign(e,c),i(e)):(u=f.nextId(),s={},l=[],f.recurse(t.callee,u,s,function(){f.if_(f.notNull(u),function(){f.addEnsureSafeFunction(u),r(t.arguments,function(t){f.recurse(t,f.nextId(),void 0,function(t){l.push(f.ensureSafeObject(t))})}),s.name?(f.state.expensiveChecks||f.addEnsureSafeObject(s.context),c=f.member(s.context,s.name,s.computed)+"("+l.join(",")+")"):c=u+"("+l.join(",")+")",c=f.ensureSafeObject(c),f.assign(e,c)},function(){f.assign(e,"undefined")}),i(e)}));break;case mo.AssignmentExpression:if(u=this.nextId(),s={},!ln(t.left))throw so("lval","Trying to assign a value to a non l-value");this.recurse(t.left,void 0,s,function(){f.if_(f.notNull(s.context),function(){f.recurse(t.right,u),f.addEnsureSafeObject(f.member(s.context,s.name,s.computed)),f.addEnsureSafeAssignContext(s.context),c=f.member(s.context,s.name,s.computed)+t.operator+u,f.assign(e,c),i(e||c)})},1);break;case mo.ArrayExpression:l=[],r(t.elements,function(t){f.recurse(t,f.nextId(),void 0,function(t){l.push(t)})}),c="["+l.join(",")+"]",this.assign(e,c),i(c);break;case mo.ObjectExpression:l=[],r(t.properties,function(t){f.recurse(t.value,f.nextId(),void 0,function(e){l.push(f.escape(t.key.type===mo.Identifier?t.key.name:""+t.key.value)+":"+e)})}),c="{"+l.join(",")+"}",this.assign(e,c),i(c);break;case mo.ThisExpression:this.assign(e,"s"),i("s");break;case mo.LocalsExpression:this.assign(e,"l"),i("l");break;case mo.NGValueParameter:this.assign(e,"v"),i("v")}},getHasOwnProperty:function(t,e){var n=t+"."+e,r=this.current().own;return r.hasOwnProperty(n)||(r[n]=this.nextId(!1,t+"&&("+this.escape(e)+" in "+t+")")),r[n]},assign:function(t,e){if(t)return this.current().body.push(t,"=",e,";"),t},filter:function(t){return this.state.filters.hasOwnProperty(t)||(this.state.filters[t]=this.nextId(!0)),this.state.filters[t]},ifDefined:function(t,e){return"ifDefined("+t+","+this.escape(e)+")"},plus:function(t,e){return"plus("+t+","+e+")"},return_:function(t){this.current().body.push("return ",t,";")},if_:function(t,e,n){if(t===!0)e();else{var r=this.current().body;r.push("if(",t,"){"),e(),r.push("}"),n&&(r.push("else{"),n(),r.push("}"))}},not:function(t){return"!("+t+")"},notNull:function(t){return t+"!=null"},nonComputedMember:function(t,e){var n=/[$_a-zA-Z][$_a-zA-Z0-9]*/,r=/[^$_a-zA-Z0-9]/g;return n.test(e)?t+"."+e:t+'["'+e.replace(r,this.stringEscapeFn)+'"]'},computedMember:function(t,e){return t+"["+e+"]"},member:function(t,e,n){return n?this.computedMember(t,e):this.nonComputedMember(t,e)},addEnsureSafeObject:function(t){this.current().body.push(this.ensureSafeObject(t),";")},addEnsureSafeMemberName:function(t){this.current().body.push(this.ensureSafeMemberName(t),";")},addEnsureSafeFunction:function(t){this.current().body.push(this.ensureSafeFunction(t),";")},addEnsureSafeAssignContext:function(t){this.current().body.push(this.ensureSafeAssignContext(t),";")},ensureSafeObject:function(t){return"ensureSafeObject("+t+",text)"},ensureSafeMemberName:function(t){return"ensureSafeMemberName("+t+",text)"},ensureSafeFunction:function(t){return"ensureSafeFunction("+t+",text)"},getStringValue:function(t){this.assign(t,"getStringValue("+t+")")},ensureSafeAssignContext:function(t){return"ensureSafeAssignContext("+t+",text)"},lazyRecurse:function(t,e,n,r,i,o){var a=this;return function(){a.recurse(t,e,n,r,i,o)}},lazyAssign:function(t,e){var n=this;return function(){n.assign(t,e)}},stringEscapeRegex:/[^ a-zA-Z0-9]/g,stringEscapeFn:function(t){return"\\u"+("0000"+t.charCodeAt(0).toString(16)).slice(-4)},escape:function(t){if(w(t))return"'"+t.replace(this.stringEscapeRegex,this.stringEscapeFn)+"'";if(x(t))return t.toString();if(t===!0)return"true";if(t===!1)return"false";if(null===t)return"null";if("undefined"==typeof t)return"undefined";throw so("esc","IMPOSSIBLE")},nextId:function(t,e){var n="v"+this.state.nextId++;return t||this.current().vars.push(n+(e?"="+e:"")),n},current:function(){return this.state[this.state.computing]}},pn.prototype={compile:function(t,e){var n=this,i=this.astBuilder.ast(t);this.expression=t,this.expensiveChecks=e,sn(i,n.$filter);var o,a;(o=cn(i))&&(a=this.recurse(o));var s,u=un(i.body);u&&(s=[],r(u,function(t,e){var r=n.recurse(t);t.input=r,s.push(r),t.watchId=e}));var l=[];r(i.body,function(t){l.push(n.recurse(t.expression))});var c=0===i.body.length?d:1===i.body.length?l[0]:function(t,e){var n;return r(l,function(r){n=r(t,e)}),n};return a&&(c.assign=function(t,e,n){return a(t,n,e)}),s&&(c.inputs=s),c.literal=fn(i),c.constant=hn(i),c},recurse:function(t,e,n){var i,o,a,s=this;if(t.input)return this.inputs(t.input,t.watchId);switch(t.type){case mo.Literal:return this.value(t.value,e);case mo.UnaryExpression:return o=this.recurse(t.argument),this["unary"+t.operator](o,e);case mo.BinaryExpression:return i=this.recurse(t.left),o=this.recurse(t.right),this["binary"+t.operator](i,o,e);case mo.LogicalExpression:return i=this.recurse(t.left),o=this.recurse(t.right),this["binary"+t.operator](i,o,e);case mo.ConditionalExpression:return this["ternary?:"](this.recurse(t.test),this.recurse(t.alternate),this.recurse(t.consequent),e);case mo.Identifier:return Je(t.name,s.expression),s.identifier(t.name,s.expensiveChecks||mn(t.name),e,n,s.expression);case mo.MemberExpression:return i=this.recurse(t.object,!1,!!n),t.computed||(Je(t.property.name,s.expression),o=t.property.name),t.computed&&(o=this.recurse(t.property)),t.computed?this.computedMember(i,o,e,n,s.expression):this.nonComputedMember(i,o,s.expensiveChecks,e,n,s.expression);case mo.CallExpression:return a=[],r(t.arguments,function(t){a.push(s.recurse(t))}),t.filter&&(o=this.$filter(t.callee.name)),t.filter||(o=this.recurse(t.callee,!0)),t.filter?function(t,n,r,i){for(var s=[],u=0;u<a.length;++u)s.push(a[u](t,n,r,i));var l=o.apply(void 0,s,i);return e?{context:void 0,name:void 0,value:l}:l}:function(t,n,r,i){var u,l=o(t,n,r,i);if(null!=l.value){tn(l.context,s.expression),en(l.value,s.expression);for(var c=[],f=0;f<a.length;++f)c.push(tn(a[f](t,n,r,i),s.expression));u=tn(l.value.apply(l.context,c),s.expression)}return e?{value:u}:u};case mo.AssignmentExpression:return i=this.recurse(t.left,!0,1),o=this.recurse(t.right),function(t,n,r,a){var u=i(t,n,r,a),l=o(t,n,r,a);return tn(u.value,s.expression),nn(u.context),u.context[u.name]=l,e?{value:l}:l};case mo.ArrayExpression:return a=[],r(t.elements,function(t){a.push(s.recurse(t))}),function(t,n,r,i){for(var o=[],s=0;s<a.length;++s)o.push(a[s](t,n,r,i));return e?{value:o}:o};case mo.ObjectExpression:return a=[],r(t.properties,function(t){a.push({key:t.key.type===mo.Identifier?t.key.name:""+t.key.value,value:s.recurse(t.value)})}),function(t,n,r,i){for(var o={},s=0;s<a.length;++s)o[a[s].key]=a[s].value(t,n,r,i);return e?{value:o}:o};case mo.ThisExpression:return function(t){return e?{value:t}:t};case mo.LocalsExpression:return function(t,n){return e?{value:n}:n};case mo.NGValueParameter:return function(t,n,r){return e?{value:r}:r}}},"unary+":function(t,e){return function(n,r,i,o){var a=t(n,r,i,o);return a=y(a)?+a:0,e?{value:a}:a}},"unary-":function(t,e){return function(n,r,i,o){var a=t(n,r,i,o);return a=y(a)?-a:0,e?{value:a}:a}},"unary!":function(t,e){return function(n,r,i,o){var a=!t(n,r,i,o);return e?{value:a}:a}},"binary+":function(t,e,n){return function(r,i,o,a){var s=t(r,i,o,a),u=e(r,i,o,a),l=on(s,u);return n?{value:l}:l}},"binary-":function(t,e,n){return function(r,i,o,a){var s=t(r,i,o,a),u=e(r,i,o,a),l=(y(s)?s:0)-(y(u)?u:0);return n?{value:l}:l}},"binary*":function(t,e,n){return function(r,i,o,a){var s=t(r,i,o,a)*e(r,i,o,a);return n?{value:s}:s}},"binary/":function(t,e,n){return function(r,i,o,a){var s=t(r,i,o,a)/e(r,i,o,a);return n?{value:s}:s}},"binary%":function(t,e,n){return function(r,i,o,a){var s=t(r,i,o,a)%e(r,i,o,a);return n?{value:s}:s}},"binary===":function(t,e,n){return function(r,i,o,a){var s=t(r,i,o,a)===e(r,i,o,a);return n?{value:s}:s}},"binary!==":function(t,e,n){return function(r,i,o,a){var s=t(r,i,o,a)!==e(r,i,o,a);return n?{value:s}:s}},"binary==":function(t,e,n){return function(r,i,o,a){var s=t(r,i,o,a)==e(r,i,o,a);return n?{value:s}:s}},"binary!=":function(t,e,n){return function(r,i,o,a){var s=t(r,i,o,a)!=e(r,i,o,a);return n?{value:s}:s}},"binary<":function(t,e,n){return function(r,i,o,a){var s=t(r,i,o,a)<e(r,i,o,a);return n?{value:s}:s}},"binary>":function(t,e,n){return function(r,i,o,a){var s=t(r,i,o,a)>e(r,i,o,a);return n?{value:s}:s}},"binary<=":function(t,e,n){return function(r,i,o,a){var s=t(r,i,o,a)<=e(r,i,o,a);return n?{value:s}:s}},"binary>=":function(t,e,n){return function(r,i,o,a){var s=t(r,i,o,a)>=e(r,i,o,a);return n?{value:s}:s}},"binary&&":function(t,e,n){return function(r,i,o,a){var s=t(r,i,o,a)&&e(r,i,o,a);return n?{value:s}:s}},"binary||":function(t,e,n){return function(r,i,o,a){var s=t(r,i,o,a)||e(r,i,o,a);return n?{value:s}:s}},"ternary?:":function(t,e,n,r){return function(i,o,a,s){var u=t(i,o,a,s)?e(i,o,a,s):n(i,o,a,s);return r?{value:u}:u}},value:function(t,e){return function(){return e?{context:void 0,name:void 0,value:t}:t}},identifier:function(t,e,n,r,i){return function(o,a,s,u){var l=a&&t in a?a:o;r&&1!==r&&l&&!l[t]&&(l[t]={});var c=l?l[t]:void 0;return e&&tn(c,i),n?{context:l,name:t,value:c}:c}},computedMember:function(t,e,n,r,i){return function(o,a,s,u){var l,c,f=t(o,a,s,u);return null!=f&&(l=e(o,a,s,u),l=Qe(l),Je(l,i),r&&1!==r&&(nn(f),f&&!f[l]&&(f[l]={})),c=f[l],tn(c,i)),n?{context:f,name:l,value:c}:c}},nonComputedMember:function(t,e,n,r,i,o){return function(a,s,u,l){var c=t(a,s,u,l);i&&1!==i&&(nn(c),c&&!c[e]&&(c[e]={}));var f=null!=c?c[e]:void 0;return(n||mn(e))&&tn(f,o),r?{context:c,name:e,value:f}:f}},inputs:function(t,e){return function(n,r,i,o){return o?o[e]:t(n,r,i)}}};var go=function(t,e,n){this.lexer=t,this.$filter=e,this.options=n,this.ast=new mo(t,n),this.astCompiler=n.csp?new pn(this.ast,e):new dn(this.ast,e)};go.prototype={constructor:go,parse:function(t){return this.astCompiler.compile(t,this.options.expensiveChecks)}};var vo=Object.prototype.valueOf,yo=e("$sce"),bo={HTML:"html",CSS:"css",URL:"url",RESOURCE_URL:"resourceUrl",JS:"js"},_o=e("$compile"),wo=t.document.createElement("a"),xo=Nn(t.location.href);jn.$inject=["$document"],Ln.$inject=["$provide"];var ko=22,Co=".",Eo="0";Hn.$inject=["$locale"],Bn.$inject=["$locale"];var $o={yyyy:Gn("FullYear",4,0,!1,!0),yy:Gn("FullYear",2,0,!0,!0),y:Gn("FullYear",1,0,!1,!0),MMMM:Kn("Month"),MMM:Kn("Month",!0),MM:Gn("Month",2,1),M:Gn("Month",1,1),LLLL:Kn("Month",!1,!0),dd:Gn("Date",2),d:Gn("Date",1),HH:Gn("Hours",2),H:Gn("Hours",1),hh:Gn("Hours",2,-12),h:Gn("Hours",1,-12),mm:Gn("Minutes",2),m:Gn("Minutes",1),ss:Gn("Seconds",2),s:Gn("Seconds",1),sss:Gn("Milliseconds",3),EEEE:Kn("Day"),EEE:Kn("Day",!0),a:tr,Z:Zn,ww:Qn(2),w:Qn(1),G:er,GG:er,GGG:er,GGGG:nr},So=/((?:[^yMLdHhmsaZEwG']+)|(?:'(?:[^']|'')*')|(?:E+|y+|M+|L+|d+|H+|h+|m+|s+|a|Z|G+|w+))(.*)/,Ao=/^\-?\d+$/;rr.$inject=["$locale"];var To=m(Dr),Do=m(Fr);ar.$inject=["$parse"];var Fo=m({restrict:"E",compile:function(t,e){if(!e.href&&!e.xlinkHref)return function(t,e){if("a"===e[0].nodeName.toLowerCase()){var n="[object SVGAnimatedString]"===zr.call(e.prop("href"))?"xlink:href":"href";e.on("click",function(t){e.attr(n)||t.preventDefault()})}}}}),No={};r(Ci,function(t,e){function n(t,n,i){t.$watch(i[r],function(t){i.$set(e,!!t)})}if("multiple"!=t){var r=me("ng-"+e),i=n;"checked"===t&&(i=function(t,e,i){i.ngModel!==i[r]&&n(t,e,i)}),No[r]=function(){return{restrict:"A",priority:100,link:i}}}}),r($i,function(t,e){No[e]=function(){return{priority:100,link:function(t,n,r){if("ngPattern"===e&&"/"==r.ngPattern.charAt(0)){var i=r.ngPattern.match(Sr);if(i)return void r.$set("ngPattern",new RegExp(i[1],i[2]))}t.$watch(r[e],function(t){r.$set(e,t)})}}}}),r(["src","srcset","href"],function(t){var e=me("ng-"+t);No[e]=function(){return{priority:99,link:function(n,r,i){var o=t,a=t;"href"===t&&"[object SVGAnimatedString]"===zr.call(r.prop("href"))&&(a="xlinkHref",i.$attr[a]="xlink:href",o=null),i.$observe(e,function(e){return e?(i.$set(a,e),void(Or&&o&&r.prop(o,i[a]))):void("href"===t&&i.$set(a,null))})}}}});var Mo={$addControl:d,$$renameControl:ur,$removeControl:d,$setValidity:d,$setDirty:d,$setPristine:d,$setSubmitted:d},Oo="ng-submitted";lr.$inject=["$element","$attrs","$scope","$animate","$interpolate"];var jo=function(t){return["$timeout","$parse",function(e,n){function r(t){return""===t?n('this[""]').assign:n(t).assign||d}var i={name:"form",restrict:t?"EAC":"E",require:["form","^^?form"],controller:lr,compile:function(n,i){n.addClass(va).addClass(ma);var o=i.name?"name":!(!t||!i.ngForm)&&"ngForm";return{pre:function(t,n,i,a){var s=a[0];if(!("action"in i)){var u=function(e){t.$apply(function(){s.$commitViewValue(),s.$setSubmitted()}),e.preventDefault()};fi(n[0],"submit",u),n.on("$destroy",function(){e(function(){hi(n[0],"submit",u)},0,!1)})}var c=a[1]||s.$$parentForm;c.$addControl(s);var f=o?r(s.$name):d;o&&(f(t,s),i.$observe(o,function(e){s.$name!==e&&(f(t,void 0),s.$$parentForm.$$renameControl(s,e),(f=r(s.$name))(t,s))})),n.on("$destroy",function(){s.$$parentForm.$removeControl(s),f(t,void 0),l(s,Mo)})}}}};return i}]},Po=jo(),Lo=jo(!0),Ro=/^\d{4,}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+(?:[+-][0-2]\d:[0-5]\d|Z)$/,Io=/^[a-z][a-z\d.+-]*:\/*(?:[^:@]+(?::[^@]+)?@)?(?:[^\s:\/?#]+|\[[a-f\d:]+\])(?::\d+)?(?:\/[^?#]*)?(?:\?[^#]*)?(?:#.*)?$/i,qo=/^[a-z0-9!#$%&'*+\/=?^_`{|}~.-]+@[a-z0-9]([a-z0-9-]*[a-z0-9])?(\.[a-z0-9]([a-z0-9-]*[a-z0-9])?)*$/i,zo=/^\s*(\-|\+)?(\d+|(\d*(\.\d*)))([eE][+-]?\d+)?\s*$/,Ho=/^(\d{4,})-(\d{2})-(\d{2})$/,Bo=/^(\d{4,})-(\d\d)-(\d\d)T(\d\d):(\d\d)(?::(\d\d)(\.\d{1,3})?)?$/,Uo=/^(\d{4,})-W(\d\d)$/,Vo=/^(\d{4,})-(\d\d)$/,Wo=/^(\d\d):(\d\d)(?::(\d\d)(\.\d{1,3})?)?$/,Yo="keydown wheel mousedown",Go=mt();r("date,datetime-local,month,time,week".split(","),function(t){Go[t]=!0});var Ko={text:fr,date:mr("date",Ho,pr(Ho,["yyyy","MM","dd"]),"yyyy-MM-dd"),"datetime-local":mr("datetimelocal",Bo,pr(Bo,["yyyy","MM","dd","HH","mm","ss","sss"]),"yyyy-MM-ddTHH:mm:ss.sss"),time:mr("time",Wo,pr(Wo,["HH","mm","ss","sss"]),"HH:mm:ss.sss"),week:mr("week",Uo,dr,"yyyy-Www"),month:mr("month",Vo,pr(Vo,["yyyy","MM"]),"yyyy-MM"),number:vr,url:yr,email:br,radio:_r,checkbox:xr,hidden:d,button:d,submit:d,reset:d,file:d},Zo=["$browser","$sniffer","$filter","$parse",function(t,e,n,r){return{restrict:"E",require:["?ngModel"],link:{pre:function(i,o,a,s){s[0]&&(Ko[Dr(a.type)]||Ko.text)(i,o,a,s[0],e,t,n,r)}}}}],Xo=/^(true|false|\d+)$/,Jo=function(){return{restrict:"A",priority:100,compile:function(t,e){return Xo.test(e.ngValue)?function(t,e,n){n.$set("value",t.$eval(n.ngValue))}:function(t,e,n){t.$watch(n.ngValue,function(t){n.$set("value",t)})}}}},Qo=["$compile",function(t){return{restrict:"AC",compile:function(e){return t.$$addBindingClass(e),function(e,n,r){t.$$addBindingInfo(n,r.ngBind),n=n[0],e.$watch(r.ngBind,function(t){n.textContent=v(t)?"":t})}}}}],ta=["$interpolate","$compile",function(t,e){return{compile:function(n){return e.$$addBindingClass(n),function(n,r,i){var o=t(r.attr(i.$attr.ngBindTemplate));e.$$addBindingInfo(r,o.expressions),r=r[0],i.$observe("ngBindTemplate",function(t){r.textContent=v(t)?"":t})}}}}],ea=["$sce","$parse","$compile",function(t,e,n){return{restrict:"A",compile:function(r,i){var o=e(i.ngBindHtml),a=e(i.ngBindHtml,function(t){return(t||"").toString()});return n.$$addBindingClass(r),function(e,r,i){n.$$addBindingInfo(r,i.ngBindHtml),e.$watch(a,function(){r.html(t.getTrustedHtml(o(e))||"")})}}}}],na=m({restrict:"A",require:"ngModel",link:function(t,e,n,r){r.$viewChangeListeners.push(function(){t.$eval(n.ngChange)})}}),ra=kr("",!0),ia=kr("Odd",0),oa=kr("Even",1),aa=sr({compile:function(t,e){e.$set("ngCloak",void 0),t.removeClass("ng-cloak")}}),sa=[function(){return{restrict:"A",scope:!0,controller:"@",priority:500}}],ua={},la={blur:!0,focus:!0};r("click dblclick mousedown mouseup mouseover mouseout mousemove mouseenter mouseleave keydown keyup keypress submit focus blur copy cut paste".split(" "),function(t){var e=me("ng-"+t);ua[e]=["$parse","$rootScope",function(n,r){return{restrict:"A",compile:function(i,o){var a=n(o[e],null,!0);return function(e,n){n.on(t,function(n){var i=function(){a(e,{$event:n})};la[t]&&r.$$phase?e.$evalAsync(i):e.$apply(i)})}}}}]});var ca=["$animate","$compile",function(t,e){return{multiElement:!0,transclude:"element",priority:600,terminal:!0,restrict:"A",$$tlb:!0,link:function(n,r,i,o,a){var s,u,l;n.$watch(i.ngIf,function(n){n?u||a(function(n,o){u=o,n[n.length++]=e.$$createComment("end ngIf",i.ngIf),s={clone:n},t.enter(n,r.parent(),r)}):(l&&(l.remove(),l=null),u&&(u.$destroy(),u=null),s&&(l=pt(s.clone),t.leave(l).then(function(){l=null}),s=null))})}}}],fa=["$templateRequest","$anchorScroll","$animate",function(t,e,n){return{restrict:"ECA",priority:400,terminal:!0,transclude:"element",controller:Ur.noop,compile:function(r,i){var o=i.ngInclude||i.src,a=i.onload||"",s=i.autoscroll;return function(r,i,u,l,c){var f,h,d,p=0,m=function(){h&&(h.remove(),h=null),f&&(f.$destroy(),f=null),d&&(n.leave(d).then(function(){h=null}),h=d,d=null)};r.$watch(o,function(o){var u=function(){!y(s)||s&&!r.$eval(s)||e()},h=++p;o?(t(o,!0).then(function(t){if(!r.$$destroyed&&h===p){var e=r.$new();l.template=t;var s=c(e,function(t){m(),n.enter(t,null,i).then(u)});f=e,d=s,f.$emit("$includeContentLoaded",o),r.$eval(a)}},function(){r.$$destroyed||h===p&&(m(),r.$emit("$includeContentError",o))}),r.$emit("$includeContentRequested",o)):(m(),l.template=null)})}}}}],ha=["$compile",function(e){return{restrict:"ECA",priority:-400,require:"ngInclude",link:function(n,r,i,o){return zr.call(r[0]).match(/SVG/)?(r.empty(),void e($t(o.template,t.document).childNodes)(n,function(t){r.append(t)},{futureParentElement:r})):(r.html(o.template),void e(r.contents())(n))}}}],da=sr({priority:450,compile:function(){return{pre:function(t,e,n){t.$eval(n.ngInit)}}}}),pa=function(){return{restrict:"A",priority:100,require:"ngModel",link:function(t,e,n,i){var o=e.attr(n.$attr.ngList)||", ",a="false"!==n.ngTrim,s=a?Gr(o):o,u=function(t){if(!v(t)){var e=[];return t&&r(t.split(s),function(t){t&&e.push(a?Gr(t):t)}),e}};i.$parsers.push(u),i.$formatters.push(function(t){if(Wr(t))return t.join(o)}),i.$isEmpty=function(t){return!t||!t.length}}}},ma="ng-valid",ga="ng-invalid",va="ng-pristine",ya="ng-dirty",ba="ng-untouched",_a="ng-touched",wa="ng-pending",xa="ng-empty",ka="ng-not-empty",Ca=e("ngModel"),Ea=["$scope","$exceptionHandler","$attrs","$element","$parse","$animate","$timeout","$rootScope","$q","$interpolate",function(t,e,n,i,o,a,s,u,l,c){this.$viewValue=Number.NaN,this.$modelValue=Number.NaN,this.$$rawModelValue=void 0,this.$validators={},this.$asyncValidators={},this.$parsers=[],this.$formatters=[],this.$viewChangeListeners=[],this.$untouched=!0,this.$touched=!1,this.$pristine=!0,this.$dirty=!1,this.$valid=!0,this.$invalid=!1,this.$error={},this.$$success={},this.$pending=void 0,this.$name=c(n.name||"",!1)(t),this.$$parentForm=Mo;var f,h=o(n.ngModel),p=h.assign,m=h,g=p,b=null,_=this;this.$$setOptions=function(t){if(_.$options=t,t&&t.getterSetter){var e=o(n.ngModel+"()"),r=o(n.ngModel+"($$$p)");m=function(t){var n=h(t);return C(n)&&(n=e(t)),n},g=function(t,e){C(h(t))?r(t,{$$$p:e}):p(t,e)}}else if(!h.assign)throw Ca("nonassign","Expression '{0}' is non-assignable. Element: {1}",n.ngModel,X(i))},this.$render=d,this.$isEmpty=function(t){return v(t)||""===t||null===t||t!==t},this.$$updateEmptyClasses=function(t){_.$isEmpty(t)?(a.removeClass(i,ka),a.addClass(i,xa)):(a.removeClass(i,xa),a.addClass(i,ka))};var w=0;Cr({ctrl:this,$element:i,set:function(t,e){t[e]=!0},unset:function(t,e){delete t[e]},$animate:a}),this.$setPristine=function(){_.$dirty=!1,_.$pristine=!0,a.removeClass(i,ya),a.addClass(i,va)},this.$setDirty=function(){_.$dirty=!0,_.$pristine=!1,a.removeClass(i,va),a.addClass(i,ya),_.$$parentForm.$setDirty()},this.$setUntouched=function(){_.$touched=!1,_.$untouched=!0,a.setClass(i,ba,_a)},this.$setTouched=function(){_.$touched=!0,_.$untouched=!1,a.setClass(i,_a,ba)},this.$rollbackViewValue=function(){s.cancel(b),_.$viewValue=_.$$lastCommittedViewValue,_.$render()},this.$validate=function(){if(!x(_.$modelValue)||!isNaN(_.$modelValue)){var t=_.$$lastCommittedViewValue,e=_.$$rawModelValue,n=_.$valid,r=_.$modelValue,i=_.$options&&_.$options.allowInvalid;_.$$runValidators(e,t,function(t){i||n===t||(_.$modelValue=t?e:void 0,_.$modelValue!==r&&_.$$writeModelToScope())})}},this.$$runValidators=function(t,e,n){function i(){var t=_.$$parserName||"parse";return v(f)?(s(t,null),!0):(f||(r(_.$validators,function(t,e){s(e,null)}),r(_.$asyncValidators,function(t,e){s(e,null)})),s(t,f),f)}function o(){var n=!0;return r(_.$validators,function(r,i){var o=r(t,e);n=n&&o,s(i,o)}),!!n||(r(_.$asyncValidators,function(t,e){s(e,null)}),!1)}function a(){var n=[],i=!0;r(_.$asyncValidators,function(r,o){var a=r(t,e);if(!N(a))throw Ca("nopromise","Expected asynchronous validator to return a promise but got '{0}' instead.",a);s(o,void 0),n.push(a.then(function(){s(o,!0)},function(){i=!1,s(o,!1)}))}),n.length?l.all(n).then(function(){u(i)},d):u(!0)}function s(t,e){c===w&&_.$setValidity(t,e)}function u(t){c===w&&n(t)}w++;var c=w;return i()&&o()?void a():void u(!1)},this.$commitViewValue=function(){var t=_.$viewValue;s.cancel(b),(_.$$lastCommittedViewValue!==t||""===t&&_.$$hasNativeValidators)&&(_.$$updateEmptyClasses(t),_.$$lastCommittedViewValue=t,_.$pristine&&this.$setDirty(),this.$$parseAndValidate())},this.$$parseAndValidate=function(){function e(){_.$modelValue!==o&&_.$$writeModelToScope()}var n=_.$$lastCommittedViewValue,r=n;if(f=!v(r)||void 0)for(var i=0;i<_.$parsers.length;i++)if(r=_.$parsers[i](r),v(r)){f=!1;break}x(_.$modelValue)&&isNaN(_.$modelValue)&&(_.$modelValue=m(t));var o=_.$modelValue,a=_.$options&&_.$options.allowInvalid;_.$$rawModelValue=r,a&&(_.$modelValue=r,e()),_.$$runValidators(r,_.$$lastCommittedViewValue,function(t){a||(_.$modelValue=t?r:void 0,e())})},this.$$writeModelToScope=function(){g(t,_.$modelValue),r(_.$viewChangeListeners,function(t){try{t()}catch(n){e(n)}})},this.$setViewValue=function(t,e){_.$viewValue=t,_.$options&&!_.$options.updateOnDefault||_.$$debounceViewValueCommit(e)},this.$$debounceViewValueCommit=function(e){var n,r=0,i=_.$options;i&&y(i.debounce)&&(n=i.debounce,x(n)?r=n:x(n[e])?r=n[e]:x(n["default"])&&(r=n["default"])),s.cancel(b),r?b=s(function(){_.$commitViewValue()},r):u.$$phase?_.$commitViewValue():t.$apply(function(){_.$commitViewValue()})},t.$watch(function(){var e=m(t);if(e!==_.$modelValue&&(_.$modelValue===_.$modelValue||e===e)){_.$modelValue=_.$$rawModelValue=e,f=void 0;for(var n=_.$formatters,r=n.length,i=e;r--;)i=n[r](i);_.$viewValue!==i&&(_.$$updateEmptyClasses(i),_.$viewValue=_.$$lastCommittedViewValue=i,_.$render(),_.$$runValidators(e,i,d))}return e})}],$a=["$rootScope",function(t){return{restrict:"A",require:["ngModel","^?form","^?ngModelOptions"],controller:Ea,priority:1,compile:function(e){return e.addClass(va).addClass(ba).addClass(ma),{pre:function(t,e,n,r){var i=r[0],o=r[1]||i.$$parentForm;i.$$setOptions(r[2]&&r[2].$options),o.$addControl(i),n.$observe("name",function(t){i.$name!==t&&i.$$parentForm.$$renameControl(i,t)}),t.$on("$destroy",function(){i.$$parentForm.$removeControl(i)})},post:function(e,n,r,i){var o=i[0];o.$options&&o.$options.updateOn&&n.on(o.$options.updateOn,function(t){o.$$debounceViewValueCommit(t&&t.type)}),n.on("blur",function(){o.$touched||(t.$$phase?e.$evalAsync(o.$setTouched):e.$apply(o.$setTouched))})}}}}}],Sa=/(\s+|^)default(\s+|$)/,Aa=function(){return{restrict:"A",controller:["$scope","$attrs",function(t,e){var n=this;this.$options=I(t.$eval(e.ngModelOptions)),y(this.$options.updateOn)?(this.$options.updateOnDefault=!1,this.$options.updateOn=Gr(this.$options.updateOn.replace(Sa,function(){return n.$options.updateOnDefault=!0," "}))):this.$options.updateOnDefault=!0}]}},Ta=sr({terminal:!0,priority:1e3}),Da=e("ngOptions"),Fa=/^\s*([\s\S]+?)(?:\s+as\s+([\s\S]+?))?(?:\s+group\s+by\s+([\s\S]+?))?(?:\s+disable\s+when\s+([\s\S]+?))?\s+for\s+(?:([\$\w][\$\w]*)|(?:\(\s*([\$\w][\$\w]*)\s*,\s*([\$\w][\$\w]*)\s*\)))\s+in\s+([\s\S]+?)(?:\s+track\s+by\s+([\s\S]+?))?$/,Na=["$compile","$document","$parse",function(e,i,o){function a(t,e,r){function i(t,e,n,r,i){this.selectValue=t,this.viewValue=e,this.label=n,this.group=r,this.disabled=i}function a(t){var e;if(!l&&n(t))e=t;else{e=[];for(var r in t)t.hasOwnProperty(r)&&"$"!==r.charAt(0)&&e.push(r)}return e}var s=t.match(Fa);if(!s)throw Da("iexp","Expected expression in form of '_select_ (as _label_)? for (_key_,)?_value_ in _collection_' but got '{0}'. Element: {1}",t,X(e));var u=s[5]||s[7],l=s[6],c=/ as /.test(s[0])&&s[1],f=s[9],h=o(s[2]?s[1]:u),d=c&&o(c),p=d||h,m=f&&o(f),g=f?function(t,e){return m(r,e)}:function(t){return Xt(t)},v=function(t,e){return g(t,k(t,e))},y=o(s[2]||s[1]),b=o(s[3]||""),_=o(s[4]||""),w=o(s[8]),x={},k=l?function(t,e){return x[l]=e,x[u]=t,x}:function(t){return x[u]=t,x};return{trackBy:f,getTrackByValue:v,getWatchables:o(w,function(t){var e=[];t=t||[];for(var n=a(t),i=n.length,o=0;o<i;o++){var u=t===n?o:n[o],l=t[u],c=k(l,u),f=g(l,c);if(e.push(f),s[2]||s[1]){var h=y(r,c);e.push(h)}if(s[4]){var d=_(r,c);e.push(d)}}return e}),getOptions:function(){for(var t=[],e={},n=w(r)||[],o=a(n),s=o.length,u=0;u<s;u++){var l=n===o?u:o[u],c=n[l],h=k(c,l),d=p(r,h),m=g(d,h),x=y(r,h),C=b(r,h),E=_(r,h),$=new i(m,d,x,C,E);t.push($),e[m]=$}return{items:t,selectValueMap:e,getOptionFromViewValue:function(t){return e[v(t)]},getViewValueFromOption:function(t){return f?Ur.copy(t.viewValue):t.viewValue}}}}}function s(t,n,o,s){function c(t,e){var n=u.cloneNode(!1);e.appendChild(n),f(t,n)}function f(t,e){t.element=e,e.disabled=t.disabled,t.label!==e.label&&(e.label=t.label,e.textContent=t.label),t.value!==e.value&&(e.value=t.selectValue)}function h(){var t=k&&p.readValue();if(k)for(var e=k.items.length-1;e>=0;e--){var r=k.items[e];Bt(r.group?r.element.parentNode:r.element)}k=C.getOptions();var i={};if(w&&n.prepend(d),k.items.forEach(function(t){var e;y(t.group)?(e=i[t.group],e||(e=l.cloneNode(!1),E.appendChild(e),e.label=t.group,i[t.group]=e),c(t,e)):c(t,E)}),n[0].appendChild(E),m.$render(),!m.$isEmpty(t)){var o=p.readValue(),a=C.trackBy||g;(a?z(t,o):t===o)||(m.$setViewValue(o),m.$render())}}for(var d,p=s[0],m=s[1],g=o.multiple,v=0,b=n.children(),_=b.length;v<_;v++)if(""===b[v].value){d=b.eq(v);break}var w=!!d,x=jr(u.cloneNode(!1));x.val("?");var k,C=a(o.ngOptions,n,t),E=i[0].createDocumentFragment(),$=function(){w||n.prepend(d),n.val(""),d.prop("selected",!0),d.attr("selected",!0)},S=function(){w||d.remove()},A=function(){n.prepend(x),n.val("?"),x.prop("selected",!0),x.attr("selected",!0)},T=function(){x.remove()};g?(m.$isEmpty=function(t){return!t||0===t.length},p.writeValue=function(t){k.items.forEach(function(t){t.element.selected=!1}),t&&t.forEach(function(t){var e=k.getOptionFromViewValue(t);e&&(e.element.selected=!0)})},p.readValue=function(){var t=n.val()||[],e=[];return r(t,function(t){var n=k.selectValueMap[t];n&&!n.disabled&&e.push(k.getViewValueFromOption(n))}),e},C.trackBy&&t.$watchCollection(function(){if(Wr(m.$viewValue))return m.$viewValue.map(function(t){return C.getTrackByValue(t)})},function(){m.$render()})):(p.writeValue=function(t){var e=k.getOptionFromViewValue(t);e?(n[0].value!==e.selectValue&&(T(),S(),n[0].value=e.selectValue,e.element.selected=!0),e.element.setAttribute("selected","selected")):null===t||w?(T(),$()):(S(),A())},p.readValue=function(){var t=k.selectValueMap[n.val()];return t&&!t.disabled?(S(),T(),k.getViewValueFromOption(t)):null},C.trackBy&&t.$watch(function(){
|
||
return C.getTrackByValue(m.$viewValue)},function(){m.$render()})),w?(d.remove(),e(d)(t),d.removeClass("ng-scope")):d=jr(u.cloneNode(!1)),n.empty(),h(),t.$watchCollection(C.getWatchables,h)}var u=t.document.createElement("option"),l=t.document.createElement("optgroup");return{restrict:"A",terminal:!0,require:["select","ngModel"],link:{pre:function(t,e,n,r){r[0].registerOption=d},post:s}}}],Ma=["$locale","$interpolate","$log",function(t,e,n){var i=/{}/g,o=/^when(Minus)?(.+)$/;return{link:function(a,s,u){function l(t){s.text(t||"")}var c,f=u.count,h=u.$attr.when&&s.attr(u.$attr.when),p=u.offset||0,m=a.$eval(h)||{},g={},y=e.startSymbol(),b=e.endSymbol(),_=y+f+"-"+p+b,w=Ur.noop;r(u,function(t,e){var n=o.exec(e);if(n){var r=(n[1]?"-":"")+Dr(n[2]);m[r]=s.attr(u.$attr[e])}}),r(m,function(t,n){g[n]=e(t.replace(i,_))}),a.$watch(f,function(e){var r=parseFloat(e),i=isNaN(r);if(i||r in m||(r=t.pluralCat(r-p)),r!==c&&!(i&&x(c)&&isNaN(c))){w();var o=g[r];v(o)?(null!=e&&n.debug("ngPluralize: no rule defined for '"+r+"' in "+h),w=d,l()):w=a.$watch(o,l),c=r}})}}}],Oa=["$parse","$animate","$compile",function(t,i,o){var a="$$NG_REMOVED",s=e("ngRepeat"),u=function(t,e,n,r,i,o,a){t[n]=r,i&&(t[i]=o),t.$index=e,t.$first=0===e,t.$last=e===a-1,t.$middle=!(t.$first||t.$last),t.$odd=!(t.$even=0===(1&e))},l=function(t){return t.clone[0]},c=function(t){return t.clone[t.clone.length-1]};return{restrict:"A",multiElement:!0,transclude:"element",priority:1e3,terminal:!0,$$tlb:!0,compile:function(e,f){var h=f.ngRepeat,d=o.$$createComment("end ngRepeat",h),p=h.match(/^\s*([\s\S]+?)\s+in\s+([\s\S]+?)(?:\s+as\s+([\s\S]+?))?(?:\s+track\s+by\s+([\s\S]+?))?\s*$/);if(!p)throw s("iexp","Expected expression in form of '_item_ in _collection_[ track by _id_]' but got '{0}'.",h);var m=p[1],g=p[2],v=p[3],y=p[4];if(p=m.match(/^(?:(\s*[\$\w]+)|\(\s*([\$\w]+)\s*,\s*([\$\w]+)\s*\))$/),!p)throw s("iidexp","'_item_' in '_item_ in _collection_' should be an identifier or '(_key_, _value_)' expression, but got '{0}'.",m);var b=p[3]||p[1],_=p[2];if(v&&(!/^[$a-zA-Z_][$a-zA-Z0-9_]*$/.test(v)||/^(null|undefined|this|\$index|\$first|\$middle|\$last|\$even|\$odd|\$parent|\$root|\$id)$/.test(v)))throw s("badident","alias '{0}' is invalid --- must be a valid JS identifier which is not a reserved name.",v);var w,x,k,C,E={$id:Xt};return y?w=t(y):(k=function(t,e){return Xt(e)},C=function(t){return t}),function(t,e,o,f,p){w&&(x=function(e,n,r){return _&&(E[_]=e),E[b]=n,E.$index=r,w(t,E)});var m=mt();t.$watchCollection(g,function(o){var f,g,y,w,E,$,S,A,T,D,F,N,M=e[0],O=mt();if(v&&(t[v]=o),n(o))T=o,A=x||k;else{A=x||C,T=[];for(var j in o)Tr.call(o,j)&&"$"!==j.charAt(0)&&T.push(j)}for(w=T.length,F=new Array(w),f=0;f<w;f++)if(E=o===T?f:T[f],$=o[E],S=A(E,$,f),m[S])D=m[S],delete m[S],O[S]=D,F[f]=D;else{if(O[S])throw r(F,function(t){t&&t.scope&&(m[t.id]=t)}),s("dupes","Duplicates in a repeater are not allowed. Use 'track by' expression to specify unique keys. Repeater: {0}, Duplicate key: {1}, Duplicate value: {2}",h,S,$);F[f]={id:S,scope:void 0,clone:void 0},O[S]=!0}for(var P in m){if(D=m[P],N=pt(D.clone),i.leave(N),N[0].parentNode)for(f=0,g=N.length;f<g;f++)N[f][a]=!0;D.scope.$destroy()}for(f=0;f<w;f++)if(E=o===T?f:T[f],$=o[E],D=F[f],D.scope){y=M;do y=y.nextSibling;while(y&&y[a]);l(D)!=y&&i.move(pt(D.clone),null,M),M=c(D),u(D.scope,f,b,$,_,E,w)}else p(function(t,e){D.scope=e;var n=d.cloneNode(!1);t[t.length++]=n,i.enter(t,null,M),M=n,D.clone=t,O[D.id]=D,u(D.scope,f,b,$,_,E,w)});m=O})}}}}],ja="ng-hide",Pa="ng-hide-animate",La=["$animate",function(t){return{restrict:"A",multiElement:!0,link:function(e,n,r){e.$watch(r.ngShow,function(e){t[e?"removeClass":"addClass"](n,ja,{tempClasses:Pa})})}}}],Ra=["$animate",function(t){return{restrict:"A",multiElement:!0,link:function(e,n,r){e.$watch(r.ngHide,function(e){t[e?"addClass":"removeClass"](n,ja,{tempClasses:Pa})})}}}],Ia=sr(function(t,e,n){t.$watch(n.ngStyle,function(t,n){n&&t!==n&&r(n,function(t,n){e.css(n,"")}),t&&e.css(t)},!0)}),qa=["$animate","$compile",function(t,e){return{require:"ngSwitch",controller:["$scope",function(){this.cases={}}],link:function(n,i,o,a){var s=o.ngSwitch||o.on,u=[],l=[],c=[],f=[],h=function(t,e){return function(){t.splice(e,1)}};n.$watch(s,function(n){var i,o;for(i=0,o=c.length;i<o;++i)t.cancel(c[i]);for(c.length=0,i=0,o=f.length;i<o;++i){var s=pt(l[i].clone);f[i].$destroy();var d=c[i]=t.leave(s);d.then(h(c,i))}l.length=0,f.length=0,(u=a.cases["!"+n]||a.cases["?"])&&r(u,function(n){n.transclude(function(r,i){f.push(i);var o=n.element;r[r.length++]=e.$$createComment("end ngSwitchWhen");var a={clone:r};l.push(a),t.enter(r,o.parent(),o)})})})}}}],za=sr({transclude:"element",priority:1200,require:"^ngSwitch",multiElement:!0,link:function(t,e,n,r,i){r.cases["!"+n.ngSwitchWhen]=r.cases["!"+n.ngSwitchWhen]||[],r.cases["!"+n.ngSwitchWhen].push({transclude:i,element:e})}}),Ha=sr({transclude:"element",priority:1200,require:"^ngSwitch",multiElement:!0,link:function(t,e,n,r,i){r.cases["?"]=r.cases["?"]||[],r.cases["?"].push({transclude:i,element:e})}}),Ba=e("ngTransclude"),Ua=sr({restrict:"EAC",link:function(t,e,n,r,i){function o(t){t.length&&(e.empty(),e.append(t))}if(n.ngTransclude===n.$attr.ngTransclude&&(n.ngTransclude=""),!i)throw Ba("orphan","Illegal use of ngTransclude directive in the template! No parent directive that requires a transclusion found. Element: {0}",X(e));var a=n.ngTransclude||n.ngTranscludeSlot;i(o,null,a)}}),Va=["$templateCache",function(t){return{restrict:"E",terminal:!0,compile:function(e,n){if("text/ng-template"==n.type){var r=n.id,i=e[0].text;t.put(r,i)}}}}],Wa={$setViewValue:d,$render:d},Ya=["$element","$scope",function(e,n){var r=this,i=new Jt;r.ngModelCtrl=Wa,r.unknownOption=jr(t.document.createElement("option")),r.renderUnknownOption=function(t){var n="? "+Xt(t)+" ?";r.unknownOption.val(n),e.prepend(r.unknownOption),e.val(n)},n.$on("$destroy",function(){r.renderUnknownOption=d}),r.removeUnknownOption=function(){r.unknownOption.parent()&&r.unknownOption.remove()},r.readValue=function(){return r.removeUnknownOption(),e.val()},r.writeValue=function(t){r.hasOption(t)?(r.removeUnknownOption(),e.val(t),""===t&&r.emptyOption.prop("selected",!0)):null==t&&r.emptyOption?(r.removeUnknownOption(),e.val("")):r.renderUnknownOption(t)},r.addOption=function(t,e){if(e[0].nodeType!==oi){ht(t,'"option value"'),""===t&&(r.emptyOption=e);var n=i.get(t)||0;i.put(t,n+1),r.ngModelCtrl.$render(),$r(e)}},r.removeOption=function(t){var e=i.get(t);e&&(1===e?(i.remove(t),""===t&&(r.emptyOption=void 0)):i.put(t,e-1))},r.hasOption=function(t){return!!i.get(t)},r.registerOption=function(t,e,n,i,o){if(i){var a;n.$observe("value",function(t){y(a)&&r.removeOption(a),a=t,r.addOption(t,e)})}else o?t.$watch(o,function(t,i){n.$set("value",t),i!==t&&r.removeOption(i),r.addOption(t,e)}):r.addOption(n.value,e);e.on("$destroy",function(){r.removeOption(n.value),r.ngModelCtrl.$render()})}}],Ga=function(){function t(t,e,n,i){var o=i[1];if(o){var a=i[0];if(a.ngModelCtrl=o,e.on("change",function(){t.$apply(function(){o.$setViewValue(a.readValue())})}),n.multiple){a.readValue=function(){var t=[];return r(e.find("option"),function(e){e.selected&&t.push(e.value)}),t},a.writeValue=function(t){var n=new Jt(t);r(e.find("option"),function(t){t.selected=y(n.get(t.value))})};var s,u=NaN;t.$watch(function(){u!==o.$viewValue||z(s,o.$viewValue)||(s=q(o.$viewValue),o.$render()),u=o.$viewValue}),o.$isEmpty=function(t){return!t||0===t.length}}}}function e(t,e,n,r){var i=r[1];if(i){var o=r[0];i.$render=function(){o.writeValue(i.$viewValue)}}}return{restrict:"E",require:["select","?ngModel"],controller:Ya,priority:1,link:{pre:t,post:e}}},Ka=["$interpolate",function(t){return{restrict:"E",priority:100,compile:function(e,n){if(y(n.value))var r=t(n.value,!0);else{var i=t(e.text(),!0);i||n.$set("value",e.text())}return function(t,e,n){var o="$selectController",a=e.parent(),s=a.data(o)||a.parent().data(o);s&&s.registerOption(t,e,n,r,i)}}}}],Za=m({restrict:"E",terminal:!1}),Xa=function(){return{restrict:"A",require:"?ngModel",link:function(t,e,n,r){r&&(n.required=!0,r.$validators.required=function(t,e){return!n.required||!r.$isEmpty(e)},n.$observe("required",function(){r.$validate()}))}}},Ja=function(){return{restrict:"A",require:"?ngModel",link:function(t,n,r,i){if(i){var o,a=r.ngPattern||r.pattern;r.$observe("pattern",function(t){if(w(t)&&t.length>0&&(t=new RegExp("^"+t+"$")),t&&!t.test)throw e("ngPattern")("noregexp","Expected {0} to be a RegExp but was {1}. Element: {2}",a,t,X(n));o=t||void 0,i.$validate()}),i.$validators.pattern=function(t,e){return i.$isEmpty(e)||v(o)||o.test(e)}}}}},Qa=function(){return{restrict:"A",require:"?ngModel",link:function(t,e,n,r){if(r){var i=-1;n.$observe("maxlength",function(t){var e=f(t);i=isNaN(e)?-1:e,r.$validate()}),r.$validators.maxlength=function(t,e){return i<0||r.$isEmpty(e)||e.length<=i}}}}},ts=function(){return{restrict:"A",require:"?ngModel",link:function(t,e,n,r){if(r){var i=0;n.$observe("minlength",function(t){i=f(t)||0,r.$validate()}),r.$validators.minlength=function(t,e){return r.$isEmpty(e)||e.length>=i}}}}};return t.angular.bootstrap?void(t.console&&console.log("WARNING: Tried to load angular more than once.")):(lt(),bt(Ur),Ur.module("ngLocale",[],["$provide",function(t){function e(t){t+="";var e=t.indexOf(".");return e==-1?0:t.length-e-1}function n(t,n){var r=n;void 0===r&&(r=Math.min(e(t),3));var i=Math.pow(10,r),o=(t*i|0)%i;return{v:r,f:o}}var r={ZERO:"zero",ONE:"one",TWO:"two",FEW:"few",MANY:"many",OTHER:"other"};t.value("$locale",{DATETIME_FORMATS:{AMPMS:["AM","PM"],DAY:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],ERANAMES:["Before Christ","Anno Domini"],ERAS:["BC","AD"],FIRSTDAYOFWEEK:6,MONTH:["January","February","March","April","May","June","July","August","September","October","November","December"],SHORTDAY:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],SHORTMONTH:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],STANDALONEMONTH:["January","February","March","April","May","June","July","August","September","October","November","December"],WEEKENDRANGE:[5,6],fullDate:"EEEE, MMMM d, y",longDate:"MMMM d, y",medium:"MMM d, y h:mm:ss a",mediumDate:"MMM d, y",mediumTime:"h:mm:ss a","short":"M/d/yy h:mm a",shortDate:"M/d/yy",shortTime:"h:mm a"},NUMBER_FORMATS:{CURRENCY_SYM:"$",DECIMAL_SEP:".",GROUP_SEP:",",PATTERNS:[{gSize:3,lgSize:3,maxFrac:3,minFrac:0,minInt:1,negPre:"-",negSuf:"",posPre:"",posSuf:""},{gSize:3,lgSize:3,maxFrac:2,minFrac:2,minInt:1,negPre:"-¤",negSuf:"",posPre:"¤",posSuf:""}]},id:"en-us",localeID:"en_US",pluralCat:function(t,e){var i=0|t,o=n(t,e);return 1==i&&0==o.v?r.ONE:r.OTHER}})}]),void jr(t.document).ready(function(){it(t.document,ot)}))}(window),!window.angular.$$csp().noInlineStyle&&window.angular.element(document.head).prepend('<style type="text/css">@charset "UTF-8";[ng\\:cloak],[ng-cloak],[data-ng-cloak],[x-ng-cloak],.ng-cloak,.x-ng-cloak,.ng-hide:not(.ng-hide-animate){display:none !important;}ng\\:form{display:block;}.ng-animate-shim{visibility:hidden;}.ng-anchor{position:absolute;}</style>'),function(t,e){"use strict";function n(){function t(t,n){return e.extend(Object.create(t),n)}function n(t,e){var n=e.caseInsensitiveMatch,r={originalPath:t,regexp:t},i=r.keys=[];return t=t.replace(/([().])/g,"\\$1").replace(/(\/)?:(\w+)(\*\?|[\?\*])?/g,function(t,e,n,r){var o="?"===r||"*?"===r?"?":null,a="*"===r||"*?"===r?"*":null;return i.push({name:n,optional:!!o}),e=e||"",""+(o?"":e)+"(?:"+(o?e:"")+(a&&"(.+?)"||"([^/]+)")+(o||"")+")"+(o||"")}).replace(/([\/$\*])/g,"\\$1"),r.regexp=new RegExp("^"+t+"$",n?"i":""),r}var r={};this.when=function(t,i){var o=e.copy(i);if(e.isUndefined(o.reloadOnSearch)&&(o.reloadOnSearch=!0),e.isUndefined(o.caseInsensitiveMatch)&&(o.caseInsensitiveMatch=this.caseInsensitiveMatch),r[t]=e.extend(o,t&&n(t,o)),t){var a="/"==t[t.length-1]?t.substr(0,t.length-1):t+"/";r[a]=e.extend({redirectTo:t},n(a,o))}return this},this.caseInsensitiveMatch=!1,this.otherwise=function(t){return"string"==typeof t&&(t={redirectTo:t}),this.when(null,t),this},this.$get=["$rootScope","$location","$routeParams","$q","$injector","$templateRequest","$sce",function(n,i,o,a,u,l,c){function f(t,e){var n=e.keys,r={};if(!e.regexp)return null;var i=e.regexp.exec(t);if(!i)return null;for(var o=1,a=i.length;o<a;++o){var s=n[o-1],u=i[o];s&&u&&(r[s.name]=u)}return r}function h(t){var r=b.current;g=p(),v=g&&r&&g.$$route===r.$$route&&e.equals(g.pathParams,r.pathParams)&&!g.reloadOnSearch&&!y,v||!r&&!g||n.$broadcast("$routeChangeStart",g,r).defaultPrevented&&t&&t.preventDefault()}function d(){var t=b.current,r=g;v?(t.params=r.params,e.copy(t.params,o),n.$broadcast("$routeUpdate",t)):(r||t)&&(y=!1,b.current=r,r&&r.redirectTo&&(e.isString(r.redirectTo)?i.path(m(r.redirectTo,r.params)).search(r.params).replace():i.url(r.redirectTo(r.pathParams,i.path(),i.search())).replace()),a.when(r).then(function(){if(r){var t,n,i=e.extend({},r.resolve);return e.forEach(i,function(t,n){i[n]=e.isString(t)?u.get(t):u.invoke(t,null,null,n)}),e.isDefined(t=r.template)?e.isFunction(t)&&(t=t(r.params)):e.isDefined(n=r.templateUrl)&&(e.isFunction(n)&&(n=n(r.params)),e.isDefined(n)&&(r.loadedTemplateUrl=c.valueOf(n),t=l(n))),e.isDefined(t)&&(i.$template=t),a.all(i)}}).then(function(i){r==b.current&&(r&&(r.locals=i,e.copy(r.params,o)),n.$broadcast("$routeChangeSuccess",r,t))},function(e){r==b.current&&n.$broadcast("$routeChangeError",r,t,e)}))}function p(){var n,o;return e.forEach(r,function(r,a){!o&&(n=f(i.path(),r))&&(o=t(r,{params:e.extend({},i.search(),n),pathParams:n}),o.$$route=r)}),o||r[null]&&t(r[null],{params:{},pathParams:{}})}function m(t,n){var r=[];return e.forEach((t||"").split(":"),function(t,e){if(0===e)r.push(t);else{var i=t.match(/(\w+)(?:[?*])?(.*)/),o=i[1];r.push(n[o]),r.push(i[2]||""),delete n[o]}}),r.join("")}var g,v,y=!1,b={routes:r,reload:function(){y=!0;var t={defaultPrevented:!1,preventDefault:function(){this.defaultPrevented=!0,y=!1}};n.$evalAsync(function(){h(t),t.defaultPrevented||d()})},updateParams:function(t){if(!this.current||!this.current.$$route)throw s("norout","Tried updating route when with no current route");t=e.extend({},this.current.params,t),i.path(m(this.current.$$route.originalPath,t)),i.search(t)}};return n.$on("$locationChangeStart",h),n.$on("$locationChangeSuccess",d),b}]}function r(){this.$get=function(){return{}}}function i(t,n,r){return{restrict:"ECA",terminal:!0,priority:400,transclude:"element",link:function(i,o,a,s,u){function l(){d&&(r.cancel(d),d=null),f&&(f.$destroy(),f=null),h&&(d=r.leave(h),d.then(function(){d=null}),h=null)}function c(){var a=t.current&&t.current.locals,s=a&&a.$template;if(e.isDefined(s)){var c=i.$new(),d=t.current,g=u(c,function(t){r.enter(t,null,h||o).then(function(){!e.isDefined(p)||p&&!i.$eval(p)||n()}),l()});h=g,f=d.scope=c,f.$emit("$viewContentLoaded"),f.$eval(m)}else l()}var f,h,d,p=a.autoscroll,m=a.onload||"";i.$on("$routeChangeSuccess",c),c()}}}function o(t,e,n){return{restrict:"ECA",priority:-400,link:function(r,i){var o=n.current,a=o.locals;i.html(a.$template);var s=t(i.contents());if(o.controller){a.$scope=r;var u=e(o.controller,a);o.controllerAs&&(r[o.controllerAs]=u),i.data("$ngControllerController",u),i.children().data("$ngControllerController",u)}r[o.resolveAs||"$resolve"]=a,s(r)}}}var a=e.module("ngRoute",["ng"]).provider("$route",n),s=e.$$minErr("ngRoute");a.provider("$routeParams",r),a.directive("ngView",i),a.directive("ngView",o),i.$inject=["$route","$anchorScroll","$animate"],o.$inject=["$compile","$controller","$route"]}(window,window.angular),function(t,e){"use strict";function n(){var t=!1;this.$get=["$$sanitizeUri",function(n){return t&&e.extend(x,_),function(t){var e=[];return o(t,u(e,function(t,e){return!/^unsafe:/.test(n(t,e))})),e.join("")}}],this.enableSvg=function(n){return e.isDefined(n)?(t=n,this):t}}function r(t){var n=[],r=u(n,e.noop);return r.chars(t),n.join("")}function i(t,n){var r,i={},o=t.split(",");for(r=0;r<o.length;r++)i[n?e.lowercase(o[r]):o[r]]=!0;return i}function o(e,n){null===e||void 0===e?e="":"string"!=typeof e&&(e=""+e),c.innerHTML=e;var r=5;do{if(0===r)throw f("uinput","Failed to sanitize html because the input is unstable");r--,t.document.documentMode&&l(c),e=c.innerHTML,c.innerHTML=e}while(e!==c.innerHTML);for(var i=c.firstChild;i;){switch(i.nodeType){case 1:n.start(i.nodeName.toLowerCase(),a(i.attributes));break;case 3:n.chars(i.textContent)}var o;if(!(o=i.firstChild)&&(1==i.nodeType&&n.end(i.nodeName.toLowerCase()),o=i.nextSibling,!o))for(;null==o&&(i=i.parentNode,i!==c);)o=i.nextSibling,1==i.nodeType&&n.end(i.nodeName.toLowerCase());i=o}for(;i=c.firstChild;)c.removeChild(i)}function a(t){for(var e={},n=0,r=t.length;n<r;n++){var i=t[n];e[i.name]=i.value}return e}function s(t){return t.replace(/&/g,"&").replace(h,function(t){var e=t.charCodeAt(0),n=t.charCodeAt(1);return"&#"+(1024*(e-55296)+(n-56320)+65536)+";"}).replace(d,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(/</g,"<").replace(/>/g,">")}function u(t,n){var r=!1,i=e.bind(t,t.push);return{start:function(t,o){t=e.lowercase(t),!r&&w[t]&&(r=t),r||x[t]!==!0||(i("<"),i(t),e.forEach(o,function(r,o){var a=e.lowercase(o),u="img"===t&&"src"===a||"background"===a;$[a]!==!0||k[a]===!0&&!n(r,u)||(i(" "),i(o),i('="'),i(s(r)),i('"'))}),i(">"))},end:function(t){t=e.lowercase(t),r||x[t]!==!0||p[t]===!0||(i("</"),i(t),i(">")),t==r&&(r=!1)},chars:function(t){r||i(s(t))}}}function l(e){if(e.nodeType===t.Node.ELEMENT_NODE)for(var n=e.attributes,r=0,i=n.length;r<i;r++){var o=n[r],a=o.name.toLowerCase();"xmlns:ns1"!==a&&0!==a.indexOf("ns1:")||(e.removeAttributeNode(o),r--,i--)}var s=e.firstChild;s&&l(s),s=e.nextSibling,s&&l(s)}var c,f=e.$$minErr("$sanitize"),h=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,d=/([^\#-~ |!])/g,p=i("area,br,col,hr,img,wbr"),m=i("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),g=i("rp,rt"),v=e.extend({},g,m),y=e.extend({},m,i("address,article,aside,blockquote,caption,center,del,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,map,menu,nav,ol,pre,section,table,ul")),b=e.extend({},g,i("a,abbr,acronym,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,q,ruby,rp,rt,s,samp,small,span,strike,strong,sub,sup,time,tt,u,var")),_=i("circle,defs,desc,ellipse,font-face,font-face-name,font-face-src,g,glyph,hkern,image,linearGradient,line,marker,metadata,missing-glyph,mpath,path,polygon,polyline,radialGradient,rect,stop,svg,switch,text,title,tspan"),w=i("script,style"),x=e.extend({},p,y,b,v),k=i("background,cite,href,longdesc,src,xlink:href"),C=i("abbr,align,alt,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,coords,dir,face,headers,height,hreflang,hspace,ismap,lang,language,nohref,nowrap,rel,rev,rows,rowspan,rules,scope,scrolling,shape,size,span,start,summary,tabindex,target,title,type,valign,value,vspace,width"),E=i("accent-height,accumulate,additive,alphabetic,arabic-form,ascent,baseProfile,bbox,begin,by,calcMode,cap-height,class,color,color-rendering,content,cx,cy,d,dx,dy,descent,display,dur,end,fill,fill-rule,font-family,font-size,font-stretch,font-style,font-variant,font-weight,from,fx,fy,g1,g2,glyph-name,gradientUnits,hanging,height,horiz-adv-x,horiz-origin-x,ideographic,k,keyPoints,keySplines,keyTimes,lang,marker-end,marker-mid,marker-start,markerHeight,markerUnits,markerWidth,mathematical,max,min,offset,opacity,orient,origin,overline-position,overline-thickness,panose-1,path,pathLength,points,preserveAspectRatio,r,refX,refY,repeatCount,repeatDur,requiredExtensions,requiredFeatures,restart,rotate,rx,ry,slope,stemh,stemv,stop-color,stop-opacity,strikethrough-position,strikethrough-thickness,stroke,stroke-dasharray,stroke-dashoffset,stroke-linecap,stroke-linejoin,stroke-miterlimit,stroke-opacity,stroke-width,systemLanguage,target,text-anchor,to,transform,type,u1,u2,underline-position,underline-thickness,unicode,unicode-range,units-per-em,values,version,viewBox,visibility,width,widths,x,x-height,x1,x2,xlink:actuate,xlink:arcrole,xlink:role,xlink:show,xlink:title,xlink:type,xml:base,xml:lang,xml:space,xmlns,xmlns:xlink,y,y1,y2,zoomAndPan",!0),$=e.extend({},k,E,C);!function(t){var e;if(!t.document||!t.document.implementation)throw f("noinert","Can't create an inert html document");e=t.document.implementation.createHTMLDocument("inert");var n=e.documentElement||e.getDocumentElement(),r=n.getElementsByTagName("body");if(1===r.length)c=r[0];else{var i=e.createElement("html");c=e.createElement("body"),i.appendChild(c),e.appendChild(i)}}(t),e.module("ngSanitize",[]).provider("$sanitize",n),e.module("ngSanitize").filter("linky",["$sanitize",function(t){var n=/((ftp|https?):\/\/|(www\.)|(mailto:)?[A-Za-z0-9._%+-]+@)\S*[^\s.;,(){}<>"\u201d\u2019]/i,i=/^mailto:/i,o=e.$$minErr("linky"),a=e.isString;return function(s,u,l){function c(t){t&&g.push(r(t))}function f(t,n){var r;if(g.push("<a "),e.isFunction(l)&&(l=l(t)),e.isObject(l))for(r in l)g.push(r+'="'+l[r]+'" ');else l={};!e.isDefined(u)||"target"in l||g.push('target="',u,'" '),g.push('href="',t.replace(/"/g,"""),'">'),c(n),g.push("</a>")}if(null==s||""===s)return s;if(!a(s))throw o("notstring","Expected string but received: {0}",s);for(var h,d,p,m=s,g=[];h=m.match(n);)d=h[0],h[2]||h[4]||(d=(h[3]?"http://":"mailto:")+d),p=h.index,c(m.substr(0,p)),f(d,h[0].replace(i,"")),m=m.substring(p+h[0].length);return c(m),t(g.join(""))}}])}(window,window.angular),function(t,e){"use strict";function n(t,e,n){if(!t)throw mt("areq","Argument '{0}' is {1}",e||"?",n||"required");return t}function r(t,e){return t||e?t?e?(H(t)&&(t=t.join(" ")),H(e)&&(e=e.join(" ")),t+" "+e):t:e:""}function i(t){var e={};return t&&(t.to||t.from)&&(e.to=t.to,e.from=t.from),e}function o(t,e,n){var r="";return t=H(t)?t:t&&B(t)&&t.length?t.split(/\s+/):[],z(t,function(t,i){t&&t.length>0&&(r+=i>0?" ":"",r+=n?e+t:t+e)}),r}function a(t,e){var n=t.indexOf(e);e>=0&&t.splice(n,1)}function s(t){if(t instanceof q)switch(t.length){case 0:return[];case 1:if(t[0].nodeType===K)return t;break;default:return q(u(t))}if(t.nodeType===K)return q(t)}function u(t){if(!t[0])return t;for(var e=0;e<t.length;e++){var n=t[e];if(n.nodeType==K)return n}}function l(t,e,n){z(e,function(e){t.addClass(e,n)})}function c(t,e,n){z(e,function(e){t.removeClass(e,n)})}function f(t){return function(e,n){n.addClass&&(l(t,e,n.addClass),n.addClass=null),n.removeClass&&(c(t,e,n.removeClass),n.removeClass=null)}}function h(t){if(t=t||{},!t.$$prepared){var e=t.domOperation||L;t.domOperation=function(){t.$$domOperationFired=!0,e(),e=L},t.$$prepared=!0}return t}function d(t,e){p(t,e),m(t,e)}function p(t,e){e.from&&(t.css(e.from),e.from=null)}function m(t,e){e.to&&(t.css(e.to),e.to=null)}function g(t,e,n){var r=e.options||{},i=n.options||{},o=(r.addClass||"")+" "+(i.addClass||""),a=(r.removeClass||"")+" "+(i.removeClass||""),s=v(t.attr("class"),o,a);i.preparationClasses&&(r.preparationClasses=C(i.preparationClasses,r.preparationClasses),delete i.preparationClasses);var u=r.domOperation!==L?r.domOperation:null;return I(r,i),u&&(r.domOperation=u),s.addClass?r.addClass=s.addClass:r.addClass=null,s.removeClass?r.removeClass=s.removeClass:r.removeClass=null,e.addClass=r.addClass,e.removeClass=r.removeClass,r}function v(t,e,n){function r(t){B(t)&&(t=t.split(" "));var e={};return z(t,function(t){t.length&&(e[t]=!0)}),e}var i=1,o=-1,a={};t=r(t),e=r(e),z(e,function(t,e){a[e]=i}),n=r(n),z(n,function(t,e){a[e]=a[e]===i?null:o});var s={addClass:"",removeClass:""};return z(a,function(e,n){var r,a;e===i?(r="addClass",a=!t[n]):e===o&&(r="removeClass",a=t[n]),a&&(s[r].length&&(s[r]+=" "),s[r]+=n)}),s}function y(t){return t instanceof e.element?t[0]:t}function b(t,e,n){var r="";e&&(r=o(e,J,!0)),n.addClass&&(r=C(r,o(n.addClass,Z))),n.removeClass&&(r=C(r,o(n.removeClass,X))),r.length&&(n.preparationClasses=r,t.addClass(r))}function _(t,e){e.preparationClasses&&(t.removeClass(e.preparationClasses),e.preparationClasses=null),e.activeClasses&&(t.removeClass(e.activeClasses),e.activeClasses=null)}function w(t,e){var n=e?"-"+e+"s":"";return k(t,[dt,n]),[dt,n]}function x(t,e){var n=e?"paused":"",r=j+lt;return k(t,[r,n]),[r,n]}function k(t,e){var n=e[0],r=e[1];t.style[n]=r}function C(t,e){return t?e?t+" "+e:t:e}function E(t){return[ht,t+"s"]}function $(t,e){var n=e?ft:dt;return[n,t+"s"]}function S(t,e,n){var r=Object.create(null),i=t.getComputedStyle(e)||{};return z(n,function(t,e){var n=i[t];if(n){var o=n.charAt(0);("-"===o||"+"===o||o>=0)&&(n=A(n)),0===n&&(n=null),r[e]=n}}),r}function A(t){var e=0,n=t.split(/\s*,\s*/);return z(n,function(t){"s"==t.charAt(t.length-1)&&(t=t.substring(0,t.length-1)),t=parseFloat(t)||0,e=e?Math.max(t,e):t}),e}function T(t){return 0===t||null!=t}function D(t,e){var n=M,r=t+"s";return e?n+=it:r+=" linear all",[n,r]}function F(){var t=Object.create(null);return{flush:function(){t=Object.create(null)},count:function(e){var n=t[e];return n?n.total:0},get:function(e){var n=t[e];return n&&n.value},put:function(e,n){t[e]?t[e].total++:t[e]={total:1,value:n}}}}function N(t,e,n){z(n,function(n){t[n]=W(t[n])?t[n]:e.style.getPropertyValue(n)})}var M,O,j,P,L=e.noop,R=e.copy,I=e.extend,q=e.element,z=e.forEach,H=e.isArray,B=e.isString,U=e.isObject,V=e.isUndefined,W=e.isDefined,Y=e.isFunction,G=e.isElement,K=1,Z="-add",X="-remove",J="ng-",Q="-active",tt="-prepare",et="ng-animate",nt="$$ngAnimateChildren",rt="";V(t.ontransitionend)&&W(t.onwebkittransitionend)?(rt="-webkit-",M="WebkitTransition",O="webkitTransitionEnd transitionend"):(M="transition",O="transitionend"),V(t.onanimationend)&&W(t.onwebkitanimationend)?(rt="-webkit-",j="WebkitAnimation",P="webkitAnimationEnd animationend"):(j="animation",P="animationend");var it="Duration",ot="Property",at="Delay",st="TimingFunction",ut="IterationCount",lt="PlayState",ct=9999,ft=j+at,ht=j+it,dt=M+at,pt=M+it,mt=e.$$minErr("ng"),gt=["$$rAF",function(t){function e(t){r=r.concat(t),n()}function n(){if(r.length){for(var e=r.shift(),o=0;o<e.length;o++)e[o]();i||t(function(){i||n()})}}var r,i;return r=e.queue=[],e.waitUntilQuiet=function(e){i&&i(),i=t(function(){i=null,e(),n()})},e}],vt=["$interpolate",function(t){return{link:function(n,r,i){function o(t){t="on"===t||"true"===t,r.data(nt,t)}var a=i.ngAnimateChildren;e.isString(a)&&0===a.length?r.data(nt,!0):(o(t(a)(n)),i.$observe("ngAnimateChildren",o))}}}],yt="$$animateCss",bt=1e3,_t=3,wt=1.5,xt={transitionDuration:pt,transitionDelay:dt,transitionProperty:M+ot,animationDuration:ht,animationDelay:ft,animationIterationCount:j+ut},kt={transitionDuration:pt,transitionDelay:dt,animationDuration:ht,animationDelay:ft},Ct=["$animateProvider",function(t){var e=F(),n=F();this.$get=["$window","$$jqLite","$$AnimateRunner","$timeout","$$forceReflow","$sniffer","$$rAFScheduler","$$animateQueue",function(t,r,s,u,l,c,g,v){function b(t,e){var n="$$ngAnimateParentKey",r=t.parentNode,i=r[n]||(r[n]=++q);return i+"-"+t.getAttribute("class")+"-"+e}function _(n,r,i,o){var a=e.get(i);return a||(a=S(t,n,o),"infinite"===a.animationIterationCount&&(a.animationIterationCount=1)),e.put(i,a),a}function C(i,a,s,u){var l;if(e.count(s)>0&&(l=n.get(s),!l)){var c=o(a,"-stagger");r.addClass(i,c),l=S(t,i,u),l.animationDuration=Math.max(l.animationDuration,0),l.transitionDuration=Math.max(l.transitionDuration,0),r.removeClass(i,c),n.put(s,l)}return l||{}}function A(t){B.push(t),g.waitUntilQuiet(function(){e.flush(),n.flush();for(var t=l(),r=0;r<B.length;r++)B[r](t);B.length=0})}function F(t,e,n){var r=_(t,e,n,xt),i=r.animationDelay,o=r.transitionDelay;return r.maxDelay=i&&o?Math.max(i,o):i||o,r.maxDuration=Math.max(r.animationDuration*r.animationIterationCount,r.transitionDuration),r}var I=f(r),q=0,B=[];return function(t,n){function l(){g()}function f(){g(!0)}function g(e){if(!(Y||K&&G)){Y=!0,G=!1,U.$$skipPreparationClasses||r.removeClass(t,xt),r.removeClass(t,Et),x(W,!1),w(W,!1),z(lt,function(t){W.style[t[0]]=""}),I(t,U),d(t,U),Object.keys(V).length&&z(V,function(t,e){t?W.style.setProperty(e,t):W.style.removeProperty(e)}),U.onDone&&U.onDone(),dt&&dt.length&&t.off(dt.join(" "),q);var n=t.data(yt);n&&(u.cancel(n[0].timer),t.removeData(yt)),tt&&tt.complete(!e)}}function _(t){It.blockTransition&&w(W,t),It.blockKeyframeAnimation&&x(W,!!t)}function S(){return tt=new s({end:l,cancel:f}),A(L),g(),{$$willAnimate:!1,start:function(){return tt},end:l}}function q(t){t.stopPropagation();var e=t.originalEvent||t,n=e.$manualTimeStamp||Date.now(),r=parseFloat(e.elapsedTime.toFixed(_t));Math.max(n-ut,0)>=rt&&r>=it&&(K=!0,g())}function B(){function e(){if(!Y){if(_(!1),z(lt,function(t){var e=t[0],n=t[1];W.style[e]=n}),I(t,U),r.addClass(t,Et),It.recalculateTimingStyles){if(Ct=W.className+" "+xt,At=b(W,Ct),Lt=F(W,Ct,At),Rt=Lt.maxDelay,nt=Math.max(Rt,0),it=Lt.maxDuration,0===it)return void g();It.hasTransitions=Lt.transitionDuration>0,It.hasAnimations=Lt.animationDuration>0}if(It.applyAnimationDelay&&(Rt="boolean"!=typeof U.delay&&T(U.delay)?parseFloat(U.delay):Rt,nt=Math.max(Rt,0),Lt.animationDelay=Rt,qt=$(Rt,!0),lt.push(qt),W.style[qt[0]]=qt[1]),rt=nt*bt,at=it*bt,U.easing){var e,i=U.easing;It.hasTransitions&&(e=M+st,lt.push([e,i]),W.style[e]=i),It.hasAnimations&&(e=j+st,lt.push([e,i]),W.style[e]=i)}Lt.transitionDuration&&dt.push(O),Lt.animationDuration&&dt.push(P),ut=Date.now();var o=rt+wt*at,a=ut+o,s=t.data(yt)||[],l=!0;if(s.length){var c=s[0];l=a>c.expectedEndTime,l?u.cancel(c.timer):s.push(g)}if(l){var f=u(n,o,!1);s[0]={timer:f,expectedEndTime:a},s.push(g),t.data(yt,s)}dt.length&&t.on(dt.join(" "),q),U.to&&(U.cleanupStyles&&N(V,W,Object.keys(U.to)),m(t,U))}}function n(){var e=t.data(yt);if(e){for(var n=1;n<e.length;n++)e[n]();t.removeData(yt)}}if(!Y){if(!W.parentNode)return void g();var i=function(t){if(K)G&&t&&(G=!1,g());else if(G=!t,Lt.animationDuration){var e=x(W,G);G?lt.push(e):a(lt,e)}},o=jt>0&&(Lt.transitionDuration&&0===Tt.transitionDuration||Lt.animationDuration&&0===Tt.animationDuration)&&Math.max(Tt.animationDelay,Tt.transitionDelay);o?u(e,Math.floor(o*jt*bt),!1):e(),et.resume=function(){i(!0)},et.pause=function(){i(!1)}}}var U=n||{};U.$$prepared||(U=h(R(U)));var V={},W=y(t);if(!W||!W.parentNode||!v.enabled())return S();var Y,G,K,tt,et,nt,rt,it,at,ut,lt=[],ft=t.attr("class"),ht=i(U),dt=[];if(0===U.duration||!c.animations&&!c.transitions)return S();var pt=U.event&&H(U.event)?U.event.join(" "):U.event,mt=pt&&U.structural,gt="",vt="";mt?gt=o(pt,J,!0):pt&&(gt=pt),U.addClass&&(vt+=o(U.addClass,Z)),U.removeClass&&(vt.length&&(vt+=" "),vt+=o(U.removeClass,X)),U.applyClassesEarly&&vt.length&&I(t,U);var xt=[gt,vt].join(" ").trim(),Ct=ft+" "+xt,Et=o(xt,Q),$t=ht.to&&Object.keys(ht.to).length>0,St=(U.keyframeStyle||"").length>0;if(!St&&!$t&&!xt)return S();var At,Tt;if(U.stagger>0){var Dt=parseFloat(U.stagger);Tt={transitionDelay:Dt,animationDelay:Dt,transitionDuration:0,animationDuration:0}}else At=b(W,Ct),Tt=C(W,xt,At,kt);U.$$skipPreparationClasses||r.addClass(t,xt);var Ft;if(U.transitionStyle){var Nt=[M,U.transitionStyle];k(W,Nt),lt.push(Nt)}if(U.duration>=0){Ft=W.style[M].length>0;var Mt=D(U.duration,Ft);k(W,Mt),lt.push(Mt)}if(U.keyframeStyle){var Ot=[j,U.keyframeStyle];k(W,Ot),lt.push(Ot)}var jt=Tt?U.staggerIndex>=0?U.staggerIndex:e.count(At):0,Pt=0===jt;Pt&&!U.skipBlocking&&w(W,ct);var Lt=F(W,Ct,At),Rt=Lt.maxDelay;nt=Math.max(Rt,0),it=Lt.maxDuration;var It={};if(It.hasTransitions=Lt.transitionDuration>0,It.hasAnimations=Lt.animationDuration>0,It.hasTransitionAll=It.hasTransitions&&"all"==Lt.transitionProperty,It.applyTransitionDuration=$t&&(It.hasTransitions&&!It.hasTransitionAll||It.hasAnimations&&!It.hasTransitions),It.applyAnimationDuration=U.duration&&It.hasAnimations,It.applyTransitionDelay=T(U.delay)&&(It.applyTransitionDuration||It.hasTransitions),It.applyAnimationDelay=T(U.delay)&&It.hasAnimations,It.recalculateTimingStyles=vt.length>0,(It.applyTransitionDuration||It.applyAnimationDuration)&&(it=U.duration?parseFloat(U.duration):it,It.applyTransitionDuration&&(It.hasTransitions=!0,Lt.transitionDuration=it,Ft=W.style[M+ot].length>0,lt.push(D(it,Ft))),It.applyAnimationDuration&&(It.hasAnimations=!0,
|
||
Lt.animationDuration=it,lt.push(E(it)))),0===it&&!It.recalculateTimingStyles)return S();if(null!=U.delay){var qt;"boolean"!=typeof U.delay&&(qt=parseFloat(U.delay),nt=Math.max(qt,0)),It.applyTransitionDelay&<.push($(qt)),It.applyAnimationDelay&<.push($(qt,!0))}return null==U.duration&&Lt.transitionDuration>0&&(It.recalculateTimingStyles=It.recalculateTimingStyles||Pt),rt=nt*bt,at=it*bt,U.skipBlocking||(It.blockTransition=Lt.transitionDuration>0,It.blockKeyframeAnimation=Lt.animationDuration>0&&Tt.animationDelay>0&&0===Tt.animationDuration),U.from&&(U.cleanupStyles&&N(V,W,Object.keys(U.from)),p(t,U)),It.blockTransition||It.blockKeyframeAnimation?_(it):U.skipBlocking||w(W,!1),{$$willAnimate:!0,end:l,start:function(){if(!Y)return et={end:l,cancel:f,resume:null,pause:null},tt=new s(et),A(B),tt}}}}]}],Et=["$$animationProvider",function(t){function e(t){return t.parentNode&&11===t.parentNode.nodeType}t.drivers.push("$$animateCssDriver");var n="ng-animate-shim",r="ng-anchor",i="ng-anchor-out",o="ng-anchor-in";this.$get=["$animateCss","$rootScope","$$AnimateRunner","$rootElement","$sniffer","$$jqLite","$document",function(t,a,s,u,l,c,h){function d(t){return t.replace(/\bng-\S+\b/g,"")}function p(t,e){return B(t)&&(t=t.split(" ")),B(e)&&(e=e.split(" ")),t.filter(function(t){return e.indexOf(t)===-1}).join(" ")}function m(e,a,u){function l(t){var e={},n=y(t).getBoundingClientRect();return z(["width","height","top","left"],function(t){var r=n[t];switch(t){case"top":r+=b.scrollTop;break;case"left":r+=b.scrollLeft}e[t]=Math.floor(r)+"px"}),e}function c(){var e=t(g,{addClass:i,delay:!0,from:l(a)});return e.$$willAnimate?e:null}function f(t){return t.attr("class")||""}function h(){var e=d(f(u)),n=p(e,v),r=p(v,e),a=t(g,{to:l(u),addClass:o+" "+n,removeClass:i+" "+r,delay:!0});return a.$$willAnimate?a:null}function m(){g.remove(),a.removeClass(n),u.removeClass(n)}var g=q(y(a).cloneNode(!0)),v=d(f(g));a.addClass(n),u.addClass(n),g.addClass(r),w.append(g);var _,x=c();if(!x&&(_=h(),!_))return m();var k=x||_;return{start:function(){function t(){n&&n.end()}var e,n=k.start();return n.done(function(){return n=null,!_&&(_=h())?(n=_.start(),n.done(function(){n=null,m(),e.complete()}),n):(m(),void e.complete())}),e=new s({end:t,cancel:t})}}}function g(t,e,n,r){var i=v(t,L),o=v(e,L),a=[];if(z(r,function(t){var e=t.out,r=t["in"],i=m(n,e,r);i&&a.push(i)}),i||o||0!==a.length)return{start:function(){function t(){z(e,function(t){t.end()})}var e=[];i&&e.push(i.start()),o&&e.push(o.start()),z(a,function(t){e.push(t.start())});var n=new s({end:t,cancel:t});return s.all(e,function(t){n.complete(t)}),n}}}function v(e){var n=e.element,r=e.options||{};e.structural&&(r.event=e.event,r.structural=!0,r.applyClassesEarly=!0,"leave"===e.event&&(r.onDone=r.domOperation)),r.preparationClasses&&(r.event=C(r.event,r.preparationClasses));var i=t(n,r);return i.$$willAnimate?i:null}if(!l.animations&&!l.transitions)return L;var b=h[0].body,_=y(u),w=q(e(_)||b.contains(_)?_:b);f(c);return function(t){return t.from&&t.to?g(t.from,t.to,t.classes,t.anchors):v(t)}}]}],$t=["$animateProvider",function(t){this.$get=["$injector","$$AnimateRunner","$$jqLite",function(e,n,r){function i(n){n=H(n)?n:n.split(" ");for(var r=[],i={},o=0;o<n.length;o++){var a=n[o],s=t.$$registeredAnimations[a];s&&!i[a]&&(r.push(e.get(s)),i[a]=!0)}return r}var o=f(r);return function(t,e,r,a){function s(){a.domOperation(),o(t,a)}function u(){p=!0,s(),d(t,a)}function l(t,e,r,i,o){var a;switch(r){case"animate":a=[e,i.from,i.to,o];break;case"setClass":a=[e,v,y,o];break;case"addClass":a=[e,v,o];break;case"removeClass":a=[e,y,o];break;default:a=[e,o]}a.push(i);var s=t.apply(t,a);if(s)if(Y(s.start)&&(s=s.start()),s instanceof n)s.done(o);else if(Y(s))return s;return L}function c(t,e,r,i,o){var a=[];return z(i,function(i){var s=i[o];s&&a.push(function(){var i,o,a=!1,u=function(t){a||(a=!0,(o||L)(t),i.complete(!t))};return i=new n({end:function(){u()},cancel:function(){u(!0)}}),o=l(s,t,e,r,function(t){var e=t===!1;u(e)}),i})}),a}function f(t,e,r,i,o){var a=c(t,e,r,i,o);if(0===a.length){var s,u;"beforeSetClass"===o?(s=c(t,"removeClass",r,i,"beforeRemoveClass"),u=c(t,"addClass",r,i,"beforeAddClass")):"setClass"===o&&(s=c(t,"removeClass",r,i,"removeClass"),u=c(t,"addClass",r,i,"addClass")),s&&(a=a.concat(s)),u&&(a=a.concat(u))}if(0!==a.length)return function(t){var e=[];return a.length&&z(a,function(t){e.push(t())}),e.length?n.all(e,t):t(),function(t){z(e,function(e){t?e.cancel():e.end()})}}}var p=!1;3===arguments.length&&U(r)&&(a=r,r=null),a=h(a),r||(r=t.attr("class")||"",a.addClass&&(r+=" "+a.addClass),a.removeClass&&(r+=" "+a.removeClass));var m,g,v=a.addClass,y=a.removeClass,b=i(r);if(b.length){var _,w;"leave"==e?(w="leave",_="afterLeave"):(w="before"+e.charAt(0).toUpperCase()+e.substr(1),_=e),"enter"!==e&&"move"!==e&&(m=f(t,e,a,b,w)),g=f(t,e,a,b,_)}if(m||g){var x;return{$$willAnimate:!0,end:function(){return x?x.end():(u(),x=new n,x.complete(!0)),x},start:function(){function t(t){u(t),x.complete(t)}function e(e){p||((r||L)(e),t(e))}if(x)return x;x=new n;var r,i=[];return m&&i.push(function(t){r=m(t)}),i.length?i.push(function(t){s(),t(!0)}):s(),g&&i.push(function(t){r=g(t)}),x.setHost({end:function(){e()},cancel:function(){e(!0)}}),n.chain(i,t),x}}}}}]}],St=["$$animationProvider",function(t){t.drivers.push("$$animateJsDriver"),this.$get=["$$animateJs","$$AnimateRunner",function(t,e){function n(e){var n=e.element,r=e.event,i=e.options,o=e.classes;return t(n,r,o,i)}return function(t){if(t.from&&t.to){var r=n(t.from),i=n(t.to);if(!r&&!i)return;return{start:function(){function t(){return function(){z(o,function(t){t.end()})}}function n(t){a.complete(t)}var o=[];r&&o.push(r.start()),i&&o.push(i.start()),e.all(o,n);var a=new e({end:t(),cancel:t()});return a}}}return n(t)}}]}],At="data-ng-animate",Tt="$ngAnimatePin",Dt=["$animateProvider",function(r){function i(t){if(!t)return null;var e=t.split(m),n=Object.create(null);return z(e,function(t){n[t]=!0}),n}function o(t,e){if(t&&e){var n=i(e);return t.split(m).some(function(t){return n[t]})}}function a(t,e,n,r){return v[t].some(function(t){return t(e,n,r)})}function l(t,e){var n=(t.addClass||"").length>0,r=(t.removeClass||"").length>0;return e?n&&r:n||r}var c=1,p=2,m=" ",v=this.rules={skip:[],cancel:[],join:[]};v.join.push(function(t,e,n){return!e.structural&&l(e)}),v.skip.push(function(t,e,n){return!e.structural&&!l(e)}),v.skip.push(function(t,e,n){return"leave"==n.event&&e.structural}),v.skip.push(function(t,e,n){return n.structural&&n.state===p&&!e.structural}),v.cancel.push(function(t,e,n){return n.structural&&e.structural}),v.cancel.push(function(t,e,n){return n.state===p&&e.structural}),v.cancel.push(function(t,e,n){if(n.structural)return!1;var r=e.addClass,i=e.removeClass,a=n.addClass,s=n.removeClass;return!(V(r)&&V(i)||V(a)&&V(s))&&(o(r,s)||o(i,a))}),this.$get=["$$rAF","$rootScope","$rootElement","$document","$$HashMap","$$animation","$$AnimateRunner","$templateRequest","$$jqLite","$$forceReflow",function(i,o,m,v,w,x,k,C,E,$){function S(){var t=!1;return function(e){t?e():o.$$postDigest(function(){t=!0,e()})}}function A(t,e){return g(t,e,{})}function T(t,e,n){var r=y(e),i=y(t),o=[],a=Q[n];return a&&z(a,function(t){it.call(t.node,r)?o.push(t.callback):"leave"===n&&it.call(t.node,i)&&o.push(t.callback)}),o}function D(t,e,n){var r=u(e);return t.filter(function(t){var e=t.node===r&&(!n||t.callback===n);return!e})}function F(t,e){"close"!==t||e[0].parentNode||ot.off(e)}function N(t,e,n){function r(e,n,r,o){E(function(){var e=T(m,t,n);e.length?i(function(){z(e,function(e){e(t,r,o)}),F(r,t)}):F(r,t)}),e.progress(n,r,o)}function u(e){_(t,w),rt(t,w),d(t,w),w.domOperation(),C.complete(!e)}var f,m,w=R(n);t=s(t),t&&(f=y(t),m=t.parent()),w=h(w);var C=new k,E=S();if(H(w.addClass)&&(w.addClass=w.addClass.join(" ")),w.addClass&&!B(w.addClass)&&(w.addClass=null),H(w.removeClass)&&(w.removeClass=w.removeClass.join(" ")),w.removeClass&&!B(w.removeClass)&&(w.removeClass=null),w.from&&!U(w.from)&&(w.from=null),w.to&&!U(w.to)&&(w.to=null),!f)return u(),C;var $=[f.className,w.addClass,w.removeClass].join(" ");if(!et($))return u(),C;var D=["enter","move","leave"].indexOf(e)>=0,N=v[0].hidden,j=!X||N||Z.get(f),I=!j&&Y.get(f)||{},q=!!I.state;if(j||q&&I.state==c||(j=!P(t,m,e)),j)return N&&r(C,e,"start"),u(),N&&r(C,e,"close"),C;D&&M(t);var V={structural:D,element:t,event:e,addClass:w.addClass,removeClass:w.removeClass,close:u,options:w,runner:C};if(q){var W=a("skip",t,V,I);if(W)return I.state===p?(u(),C):(g(t,I,V),I.runner);var G=a("cancel",t,V,I);if(G)if(I.state===p)I.runner.end();else{if(!I.structural)return g(t,I,V),I.runner;I.close()}else{var K=a("join",t,V,I);if(K){if(I.state!==p)return b(t,D?e:null,w),e=V.event=I.event,w=g(t,I,V),I.runner;A(t,V)}}}else A(t,V);var J=V.structural;if(J||(J="animate"===V.event&&Object.keys(V.options.to||{}).length>0||l(V)),!J)return u(),O(t),C;var Q=(I.counter||0)+1;return V.counter=Q,L(t,c,V),o.$$postDigest(function(){var n=Y.get(f),i=!n;n=n||{};var o=t.parent()||[],a=o.length>0&&("animate"===n.event||n.structural||l(n));if(i||n.counter!==Q||!a)return i&&(rt(t,w),d(t,w)),(i||D&&n.event!==e)&&(w.domOperation(),C.end()),void(a||O(t));e=!n.structural&&l(n,!0)?"setClass":n.event,L(t,p);var s=x(t,e,n.options);C.setHost(s),r(C,e,"start",{}),s.done(function(n){u(!n);var i=Y.get(f);i&&i.counter===Q&&O(y(t)),r(C,e,"close",{})})}),C}function M(t){var e=y(t),n=e.querySelectorAll("["+At+"]");z(n,function(t){var e=parseInt(t.getAttribute(At)),n=Y.get(t);if(n)switch(e){case p:n.runner.end();case c:Y.remove(t)}})}function O(t){var e=y(t);e.removeAttribute(At),Y.remove(e)}function j(t,e){return y(t)===y(e)}function P(t,e,n){var r,i=q(v[0].body),o=j(t,i)||"HTML"===t[0].nodeName,a=j(t,m),s=!1,u=Z.get(y(t)),l=q.data(t[0],Tt);for(l&&(e=l),e=y(e);e&&(a||(a=j(e,m)),e.nodeType===K);){var c=Y.get(e)||{};if(!s){var f=Z.get(e);if(f===!0&&u!==!1){u=!0;break}f===!1&&(u=!1),s=c.structural}if(V(r)||r===!0){var h=q.data(e,nt);W(h)&&(r=h)}if(s&&r===!1)break;if(o||(o=j(e,i)),o&&a)break;e=a||!(l=q.data(e,Tt))?e.parentNode:y(l)}var d=(!s||r)&&u!==!0;return d&&a&&o}function L(t,e,n){n=n||{},n.state=e;var r=y(t);r.setAttribute(At,e);var i=Y.get(r),o=i?I(i,n):n;Y.put(r,o)}var Y=new w,Z=new w,X=null,J=o.$watch(function(){return 0===C.totalPendingRequests},function(t){t&&(J(),o.$$postDigest(function(){o.$$postDigest(function(){null===X&&(X=!0)})}))}),Q={},tt=r.classNameFilter(),et=tt?function(t){return tt.test(t)}:function(){return!0},rt=f(E),it=t.Node.prototype.contains||function(t){return this===t||!!(16&this.compareDocumentPosition(t))},ot={on:function(t,e,n){var r=u(e);Q[t]=Q[t]||[],Q[t].push({node:r,callback:n}),q(e).on("$destroy",function(){var i=Y.get(r);i||ot.off(t,e,n)})},off:function(t,n,r){if(1!==arguments.length||e.isString(arguments[0])){var i=Q[t];i&&(Q[t]=1===arguments.length?null:D(i,n,r))}else{n=arguments[0];for(var o in Q)Q[o]=D(Q[o],n)}},pin:function(t,e){n(G(t),"element","not an element"),n(G(e),"parentElement","not an element"),t.data(Tt,e)},push:function(t,e,n,r){return n=n||{},n.domOperation=r,N(t,e,n)},enabled:function(t,e){var n=arguments.length;if(0===n)e=!!X;else{var r=G(t);if(r){var i=y(t),o=Z.get(i);1===n?e=!o:Z.put(i,!e)}else e=X=!!t}return e}};return ot}]}],Ft=["$animateProvider",function(t){function e(t,e){t.data(s,e)}function n(t){t.removeData(s)}function i(t){return t.data(s)}var o="ng-animate-ref",a=this.drivers=[],s="$$animationRunner";this.$get=["$$jqLite","$rootScope","$injector","$$AnimateRunner","$$HashMap","$$rAFScheduler",function(t,s,u,l,c,p){function m(t){function e(t){if(t.processed)return t;t.processed=!0;var n=t.domNode,r=n.parentNode;o.put(n,t);for(var a;r;){if(a=o.get(r)){a.processed||(a=e(a));break}r=r.parentNode}return(a||i).children.push(t),t}function n(t){var e,n=[],r=[];for(e=0;e<t.children.length;e++)r.push(t.children[e]);var i=r.length,o=0,a=[];for(e=0;e<r.length;e++){var s=r[e];i<=0&&(i=o,o=0,n.push(a),a=[]),a.push(s.fn),s.children.forEach(function(t){o++,r.push(t)}),i--}return a.length&&n.push(a),n}var r,i={children:[]},o=new c;for(r=0;r<t.length;r++){var a=t[r];o.put(a.domNode,t[r]={domNode:a.domNode,fn:a.fn,children:[]})}for(r=0;r<t.length;r++)e(t[r]);return n(i)}var g=[],v=f(t);return function(c,f,b){function _(t){var e="["+o+"]",n=t.hasAttribute(o)?[t]:t.querySelectorAll(e),r=[];return z(n,function(t){var e=t.getAttribute(o);e&&e.length&&r.push(t)}),r}function w(t){var e=[],n={};z(t,function(t,r){var i=t.element,a=y(i),s=t.event,u=["enter","move"].indexOf(s)>=0,l=t.structural?_(a):[];if(l.length){var c=u?"to":"from";z(l,function(t){var e=t.getAttribute(o);n[e]=n[e]||{},n[e][c]={animationID:r,element:q(t)}})}else e.push(t)});var r={},i={};return z(n,function(n,o){var a=n.from,s=n.to;if(!a||!s){var u=a?a.animationID:s.animationID,l=u.toString();return void(r[l]||(r[l]=!0,e.push(t[u])))}var c=t[a.animationID],f=t[s.animationID],h=a.animationID.toString();if(!i[h]){var d=i[h]={structural:!0,beforeStart:function(){c.beforeStart(),f.beforeStart()},close:function(){c.close(),f.close()},classes:x(c.classes,f.classes),from:c,to:f,anchors:[]};d.classes.length?e.push(d):(e.push(c),e.push(f))}i[h].anchors.push({out:a.element,"in":s.element})}),e}function x(t,e){t=t.split(" "),e=e.split(" ");for(var n=[],r=0;r<t.length;r++){var i=t[r];if("ng-"!==i.substring(0,3))for(var o=0;o<e.length;o++)if(i===e[o]){n.push(i);break}}return n.join(" ")}function k(t){for(var e=a.length-1;e>=0;e--){var n=a[e];if(u.has(n)){var r=u.get(n),i=r(t);if(i)return i}}}function C(){c.addClass(et),F&&t.addClass(c,F),N&&(t.removeClass(c,N),N=null)}function E(t,e){function n(t){i(t).setHost(e)}t.from&&t.to?(n(t.from.element),n(t.to.element)):n(t.element)}function $(){var t=i(c);!t||"leave"===f&&b.$$domOperationFired||t.end()}function S(e){c.off("$destroy",$),n(c),v(c,b),d(c,b),b.domOperation(),F&&t.removeClass(c,F),c.removeClass(et),T.complete(!e)}b=h(b);var A=["enter","move","leave"].indexOf(f)>=0,T=new l({end:function(){S()},cancel:function(){S(!0)}});if(!a.length)return S(),T;e(c,T);var D=r(c.attr("class"),r(b.addClass,b.removeClass)),F=b.tempClasses;F&&(D+=" "+F,b.tempClasses=null);var N;return A&&(N="ng-"+f+tt,t.addClass(c,N)),g.push({element:c,classes:D,event:f,structural:A,options:b,beforeStart:C,close:S}),c.on("$destroy",$),g.length>1?T:(s.$$postDigest(function(){var t=[];z(g,function(e){i(e.element)?t.push(e):e.close()}),g.length=0;var e=w(t),n=[];z(e,function(t){n.push({domNode:y(t.from?t.from.element:t.element),fn:function(){t.beforeStart();var e,n=t.close,r=t.anchors?t.from.element||t.to.element:t.element;if(i(r)){var o=k(t);o&&(e=o.start)}if(e){var a=e();a.done(function(t){n(!t)}),E(t,a)}else n()}})}),p(m(n))}),T)}}]}],Nt=["$animate","$rootScope",function(t,e){return{restrict:"A",transclude:"element",terminal:!0,priority:600,link:function(e,n,r,i,o){var a,s;e.$watchCollection(r.ngAnimateSwap||r["for"],function(r){a&&t.leave(a),s&&(s.$destroy(),s=null),(r||0===r)&&(s=e.$new(),o(s,function(e){a=e,t.enter(e,null,n)}))})}}}];e.module("ngAnimate",[]).directive("ngAnimateSwap",Nt).directive("ngAnimateChildren",vt).factory("$$rAFScheduler",gt).provider("$$animateQueue",Dt).provider("$$animation",Ft).provider("$animateCss",Ct).provider("$$animateCssDriver",Et).provider("$$animateJs",$t).provider("$$animateJsDriver",St)}(window,window.angular),function(t,e){"use strict";function n(){function t(t,e,r,i){return function(a,s,u){var l=u.$normalize(e);!n[l]||o(s,r)||u[l]||a.$watch(u[t],function(t){t=i?!t:!!t,s.attr(e,t)})}}var n={ariaHidden:!0,ariaChecked:!0,ariaReadonly:!0,ariaDisabled:!0,ariaRequired:!0,ariaInvalid:!0,ariaValue:!0,tabindex:!0,bindKeypress:!0,bindRoleForClick:!0};this.config=function(t){n=e.extend(n,t)},this.$get=function(){return{config:function(t){return n[t]},$$watchExpr:t}}}var r=e.module("ngAria",["ng"]).provider("$aria",n),i=["BUTTON","A","INPUT","TEXTAREA","SELECT","DETAILS","SUMMARY"],o=function(t,e){if(e.indexOf(t[0].nodeName)!==-1)return!0};r.directive("ngShow",["$aria",function(t){return t.$$watchExpr("ngShow","aria-hidden",[],!0)}]).directive("ngHide",["$aria",function(t){return t.$$watchExpr("ngHide","aria-hidden",[],!1)}]).directive("ngValue",["$aria",function(t){return t.$$watchExpr("ngValue","aria-checked",i,!1)}]).directive("ngChecked",["$aria",function(t){return t.$$watchExpr("ngChecked","aria-checked",i,!1)}]).directive("ngReadonly",["$aria",function(t){return t.$$watchExpr("ngReadonly","aria-readonly",i,!1)}]).directive("ngRequired",["$aria",function(t){return t.$$watchExpr("ngRequired","aria-required",i,!1)}]).directive("ngModel",["$aria",function(t){function e(e,n,r,a){return t.config(n)&&!r.attr(e)&&(a||!o(r,i))}function n(t,e){return!e.attr("role")&&e.attr("type")===t&&"INPUT"!==e[0].nodeName}function r(t,e){var n=t.type,r=t.role;return"checkbox"===(n||r)||"menuitemcheckbox"===r?"checkbox":"radio"===(n||r)||"menuitemradio"===r?"radio":"range"===n||"progressbar"===r||"slider"===r?"range":""}return{restrict:"A",require:"ngModel",priority:200,compile:function(i,o){var a=r(o,i);return{pre:function(t,e,n,r){"checkbox"===a&&(r.$isEmpty=function(t){return t===!1})},post:function(r,i,o,s){function u(){return s.$modelValue}function l(t){var e=o.value==s.$viewValue;i.attr("aria-checked",e)}function c(){i.attr("aria-checked",!s.$isEmpty(s.$viewValue))}var f=e("tabindex","tabindex",i,!1);switch(a){case"radio":case"checkbox":n(a,i)&&i.attr("role",a),e("aria-checked","ariaChecked",i,!1)&&r.$watch(u,"radio"===a?l:c),f&&i.attr("tabindex",0);break;case"range":if(n(a,i)&&i.attr("role","slider"),t.config("ariaValue")){var h=!i.attr("aria-valuemin")&&(o.hasOwnProperty("min")||o.hasOwnProperty("ngMin")),d=!i.attr("aria-valuemax")&&(o.hasOwnProperty("max")||o.hasOwnProperty("ngMax")),p=!i.attr("aria-valuenow");h&&o.$observe("min",function(t){i.attr("aria-valuemin",t)}),d&&o.$observe("max",function(t){i.attr("aria-valuemax",t)}),p&&r.$watch(u,function(t){i.attr("aria-valuenow",t)})}f&&i.attr("tabindex",0)}!o.hasOwnProperty("ngRequired")&&s.$validators.required&&e("aria-required","ariaRequired",i,!1)&&o.$observe("required",function(){i.attr("aria-required",!!o.required)}),e("aria-invalid","ariaInvalid",i,!0)&&r.$watch(function(){return s.$invalid},function(t){i.attr("aria-invalid",!!t)})}}}}}]).directive("ngDisabled",["$aria",function(t){return t.$$watchExpr("ngDisabled","aria-disabled",i,!1)}]).directive("ngMessages",function(){return{restrict:"A",require:"?ngMessages",link:function(t,e,n,r){e.attr("aria-live")||e.attr("aria-live","assertive")}}}).directive("ngClick",["$aria","$parse",function(t,e){return{restrict:"A",compile:function(n,r){var a=e(r.ngClick,null,!0);return function(e,n,r){o(n,i)||(t.config("bindRoleForClick")&&!n.attr("role")&&n.attr("role","button"),t.config("tabindex")&&!n.attr("tabindex")&&n.attr("tabindex",0),t.config("bindKeypress")&&!r.ngKeypress&&n.on("keypress",function(t){function n(){a(e,{$event:t})}var r=t.which||t.keyCode;32!==r&&13!==r||e.$apply(n)}))}}}}]).directive("ngDblclick",["$aria",function(t){return function(e,n,r){!t.config("tabindex")||n.attr("tabindex")||o(n,i)||n.attr("tabindex",0)}}])}(window,window.angular),function(t,e){"function"==typeof define&&define.amd?define([],function(){return e()}):"object"==typeof exports?module.exports=e():e()}(this,function(){function t(t){"use strict";var e=t.storageKey(),n=t.storage(),r=function(){var r=t.preferredLanguage();angular.isString(r)?t.use(r):n.put(e,t.use())};r.displayName="fallbackFromIncorrectStorageValue",n?n.get(e)?t.use(n.get(e))["catch"](r):r():angular.isString(t.preferredLanguage())&&t.use(t.preferredLanguage())}function e(){"use strict";var t,e,n=null,r=!1,i=!1;e={sanitize:function(t,e){return"text"===e&&(t=a(t)),t},escape:function(t,e){return"text"===e&&(t=o(t)),t},sanitizeParameters:function(t,e){return"params"===e&&(t=s(t,a)),t},escapeParameters:function(t,e){return"params"===e&&(t=s(t,o)),t}},e.escaped=e.escapeParameters,this.addStrategy=function(t,n){return e[t]=n,this},this.removeStrategy=function(t){return delete e[t],this},this.useStrategy=function(t){return r=!0,n=t,this},this.$get=["$injector","$log",function(o,a){var s={},u=function(t,n,r){return angular.forEach(r,function(r){if(angular.isFunction(r))t=r(t,n);else if(angular.isFunction(e[r]))t=e[r](t,n);else{if(!angular.isString(e[r]))throw new Error("pascalprecht.translate.$translateSanitization: Unknown sanitization strategy: '"+r+"'");if(!s[e[r]])try{s[e[r]]=o.get(e[r])}catch(i){throw s[e[r]]=function(){},new Error("pascalprecht.translate.$translateSanitization: Unknown sanitization strategy: '"+r+"'")}t=s[e[r]](t,n)}}),t},l=function(){r||i||(a.warn("pascalprecht.translate.$translateSanitization: No sanitization strategy has been configured. This can have serious security implications. See http://angular-translate.github.io/docs/#/guide/19_security for details."),i=!0)};return o.has("$sanitize")&&(t=o.get("$sanitize")),{useStrategy:function(t){return function(e){t.useStrategy(e)}}(this),sanitize:function(t,e,r){if(n||l(),arguments.length<3&&(r=n),!r)return t;var i=angular.isArray(r)?r:[r];return u(t,e,i)}}}];var o=function(t){var e=angular.element("<div></div>");return e.text(t),e.html()},a=function(e){if(!t)throw new Error("pascalprecht.translate.$translateSanitization: Error cannot find $sanitize service. Either include the ngSanitize module (https://docs.angularjs.org/api/ngSanitize) or use a sanitization strategy which does not depend on $sanitize, such as 'escape'.");return t(e)},s=function(t,e,n){if(angular.isObject(t)){var r=angular.isArray(t)?[]:{};if(n){if(n.indexOf(t)>-1)throw new Error("pascalprecht.translate.$translateSanitization: Error cannot interpolate parameter due recursive object")}else n=[];return n.push(t),angular.forEach(t,function(t,i){r[i]=s(t,e,n)}),n.splice(-1,1),r}return angular.isNumber(t)?t:e(t)}}function n(t,e,n,r){"use strict";var i,o,a,s,u,l,c,f,h,d,p,m,g,v,y,b={},_=[],w=t,x=[],k="translate-cloak",C=!1,E=!1,$=".",S=!1,A=0,T=!0,D="default",F={"default":function(t){return(t||"").split("-").join("_")},java:function(t){var e=(t||"").split("-").join("_"),n=e.split("_");return n.length>1?n[0].toLowerCase()+"_"+n[1].toUpperCase():e},bcp47:function(t){var e=(t||"").split("_").join("-"),n=e.split("-");return n.length>1?n[0].toLowerCase()+"-"+n[1].toUpperCase():e}},N="2.10.0",M=function(){if(angular.isFunction(r.getLocale))return r.getLocale();var t,n,i=e.$get().navigator,o=["language","browserLanguage","systemLanguage","userLanguage"];if(angular.isArray(i.languages))for(t=0;t<i.languages.length;t++)if(n=i.languages[t],n&&n.length)return n;for(t=0;t<o.length;t++)if(n=i[o[t]],n&&n.length)return n;return null};M.displayName="angular-translate/service: getFirstBrowserLanguage";var O=function(){var t=M()||"";return F[D]&&(t=F[D](t)),t};O.displayName="angular-translate/service: getLocale";var j=function(t,e){for(var n=0,r=t.length;n<r;n++)if(t[n]===e)return n;return-1},P=function(){return this.toString().replace(/^\s+|\s+$/g,"")},L=function(t){if(t){for(var e=[],n=angular.lowercase(t),r=0,i=_.length;r<i;r++)e.push(angular.lowercase(_[r]));if(j(e,n)>-1)return t;if(o){var a;for(var s in o){var u=!1,l=Object.prototype.hasOwnProperty.call(o,s)&&angular.lowercase(s)===angular.lowercase(t);if("*"===s.slice(-1)&&(u=s.slice(0,-1)===t.slice(0,s.length-1)),(l||u)&&(a=o[s],j(e,angular.lowercase(a))>-1))return a}}var c=t.split("_");return c.length>1&&j(e,angular.lowercase(c[0]))>-1?c[0]:void 0}},R=function(t,e){if(!t&&!e)return b;if(t&&!e){if(angular.isString(t))return b[t]}else angular.isObject(b[t])||(b[t]={}),angular.extend(b[t],I(e));return this};this.translations=R,this.cloakClassName=function(t){return t?(k=t,this):k},this.nestedObjectDelimeter=function(t){return t?($=t,this):$};var I=function(t,e,n,r){var i,o,a,s;e||(e=[]),n||(n={});for(i in t)Object.prototype.hasOwnProperty.call(t,i)&&(s=t[i],angular.isObject(s)?I(s,e.concat(i),n,i):(o=e.length?""+e.join($)+$+i:i,e.length&&i===r&&(a=""+e.join($),n[a]="@:"+o),n[o]=s));return n};I.displayName="flatObject",this.addInterpolation=function(t){return x.push(t),this},this.useMessageFormatInterpolation=function(){return this.useInterpolation("$translateMessageFormatInterpolation")},this.useInterpolation=function(t){return d=t,this},this.useSanitizeValueStrategy=function(t){return n.useStrategy(t),this},this.preferredLanguage=function(t){return t?(q(t),this):i};var q=function(t){return t&&(i=t),i};this.translationNotFoundIndicator=function(t){return this.translationNotFoundIndicatorLeft(t),this.translationNotFoundIndicatorRight(t),this},this.translationNotFoundIndicatorLeft=function(t){return t?(g=t,this):g},this.translationNotFoundIndicatorRight=function(t){return t?(v=t,this):v},this.fallbackLanguage=function(t){return z(t),this};var z=function(t){return t?(angular.isString(t)?(s=!0,a=[t]):angular.isArray(t)&&(s=!1,a=t),angular.isString(i)&&j(a,i)<0&&a.push(i),this):s?a[0]:a};this.use=function(t){if(t){if(!b[t]&&!p)throw new Error("$translateProvider couldn't find translationTable for langKey: '"+t+"'");return u=t,this}return u};var H=function(t){return t?(w=t,this):f?f+w:w};this.storageKey=H,this.useUrlLoader=function(t,e){return this.useLoader("$translateUrlLoader",angular.extend({url:t},e))},this.useStaticFilesLoader=function(t){return this.useLoader("$translateStaticFilesLoader",t)},this.useLoader=function(t,e){return p=t,m=e||{},this},this.useLocalStorage=function(){return this.useStorage("$translateLocalStorage")},this.useCookieStorage=function(){return this.useStorage("$translateCookieStorage")},this.useStorage=function(t){return c=t,this},this.storagePrefix=function(t){return t?(f=t,this):t},this.useMissingTranslationHandlerLog=function(){return this.useMissingTranslationHandler("$translateMissingTranslationHandlerLog")},this.useMissingTranslationHandler=function(t){return h=t,this},this.usePostCompiling=function(t){return C=!!t,this},this.forceAsyncReload=function(t){return E=!!t,this},this.uniformLanguageTag=function(t){return t?angular.isString(t)&&(t={standard:t}):t={},D=t.standard,this},this.determinePreferredLanguage=function(t){var e=t&&angular.isFunction(t)?t():O();return i=_.length?L(e)||e:e,this},this.registerAvailableLanguageKeys=function(t,e){return t?(_=t,e&&(o=e),this):_},this.useLoaderCache=function(t){return t===!1?y=void 0:t===!0?y=!0:"undefined"==typeof t?y="$translationCache":t&&(y=t),this},this.directivePriority=function(t){return void 0===t?A:(A=t,this)},this.statefulFilter=function(t){return void 0===t?T:(T=t,this)},this.$get=["$log","$injector","$rootScope","$q",function(t,e,n,r){var o,f,_,D=e.get(d||"$translateDefaultInterpolation"),F=!1,M={},O={},B=function(t,e,n,s,l){var h=l&&l!==u?L(l)||l:u;if(angular.isArray(t)){var d=function(t){for(var i={},o=[],a=function(t){var o=r.defer(),a=function(e){i[t]=e,o.resolve([t,e])};return B(t,e,n,s,l).then(a,a),o.promise},u=0,c=t.length;u<c;u++)o.push(a(t[u]));return r.all(o).then(function(){return i})};return d(t)}var p=r.defer();t&&(t=P.apply(t));var m=function(){var t=i?O[i]:O[h];if(f=0,c&&!t){var e=o.get(w);if(t=O[e],a&&a.length){var n=j(a,e);f=0===n?1:0,j(a,i)<0&&a.push(i)}}return t}();if(m){var g=function(){l||(h=u),nt(t,e,n,s,h).then(p.resolve,p.reject)};g.displayName="promiseResolved",m["finally"](g)}else nt(t,e,n,s,h).then(p.resolve,p.reject);return p.promise},U=function(t){return g&&(t=[g,t].join(" ")),v&&(t=[t,v].join(" ")),t},V=function(t){u=t,c&&o.put(B.storageKey(),u),n.$emit("$translateChangeSuccess",{language:t}),D.setLocale(u);var e=function(t,e){M[e].setLocale(u)};e.displayName="eachInterpolatorLocaleSetter",angular.forEach(M,e),n.$emit("$translateChangeEnd",{language:t})},W=function(t){if(!t)throw"No language key specified for loading.";var i=r.defer();n.$emit("$translateLoadingStart",{language:t}),F=!0;var o=y;"string"==typeof o&&(o=e.get(o));var a=angular.extend({},m,{key:t,$http:angular.extend({},{cache:o},m.$http)}),s=function(e){var r={};n.$emit("$translateLoadingSuccess",{language:t}),angular.isArray(e)?angular.forEach(e,function(t){angular.extend(r,I(t))}):angular.extend(r,I(e)),F=!1,i.resolve({key:t,table:r}),n.$emit("$translateLoadingEnd",{language:t})};s.displayName="onLoaderSuccess";var u=function(t){n.$emit("$translateLoadingError",{language:t}),i.reject(t),n.$emit("$translateLoadingEnd",{language:t})};return u.displayName="onLoaderError",e.get(p)(a).then(s,u),i.promise};if(c&&(o=e.get(c),!o.get||!o.put))throw new Error("Couldn't use storage '"+c+"', missing get() or put() method!");if(x.length){var Y=function(t){var n=e.get(t);n.setLocale(i||u),M[n.getInterpolationIdentifier()]=n};Y.displayName="interpolationFactoryAdder",angular.forEach(x,Y)}var G=function(t){var e=r.defer();if(Object.prototype.hasOwnProperty.call(b,t))e.resolve(b[t]);else if(O[t]){var n=function(t){R(t.key,t.table),e.resolve(t.table)};n.displayName="translationTableResolver",O[t].then(n,e.reject)}else e.reject();return e.promise},K=function(t,e,n,i){var o=r.defer(),a=function(r){if(Object.prototype.hasOwnProperty.call(r,e)){i.setLocale(t);var a=r[e];"@:"===a.substr(0,2)?K(t,a.substr(2),n,i).then(o.resolve,o.reject):o.resolve(i.interpolate(r[e],n)),i.setLocale(u)}else o.reject()};return a.displayName="fallbackTranslationResolver",G(t).then(a,o.reject),o.promise},Z=function(t,e,n,r){var i,o=b[t];if(o&&Object.prototype.hasOwnProperty.call(o,e)){if(r.setLocale(t),i=r.interpolate(o[e],n),"@:"===i.substr(0,2))return Z(t,i.substr(2),n,r);r.setLocale(u)}return i},X=function(t,n){if(h){var r=e.get(h)(t,u,n);return void 0!==r?r:t}return t},J=function(t,e,n,i,o){var s=r.defer();if(t<a.length){var u=a[t];K(u,e,n,i).then(s.resolve,function(){J(t+1,e,n,i,o).then(s.resolve)})}else o?s.resolve(o):s.resolve(X(e,n));return s.promise},Q=function(t,e,n,r){var i;if(t<a.length){var o=a[t];i=Z(o,e,n,r),i||(i=Q(t+1,e,n,r))}return i},tt=function(t,e,n,r){return J(_>0?_:f,t,e,n,r)},et=function(t,e,n){return Q(_>0?_:f,t,e,n)},nt=function(t,e,n,i,o){var s=r.defer(),u=o?b[o]:b,l=n?M[n]:D;if(u&&Object.prototype.hasOwnProperty.call(u,t)){var c=u[t];"@:"===c.substr(0,2)?B(c.substr(2),e,n,i,o).then(s.resolve,s.reject):s.resolve(l.interpolate(c,e))}else{var f;h&&!F&&(f=X(t,e)),o&&a&&a.length?tt(t,e,l,i).then(function(t){s.resolve(t)},function(t){s.reject(U(t))}):h&&!F&&f?i?s.resolve(i):s.resolve(f):i?s.resolve(i):s.reject(U(t))}return s.promise},rt=function(t,e,n,r){var i,o=r?b[r]:b,s=D;if(M&&Object.prototype.hasOwnProperty.call(M,n)&&(s=M[n]),o&&Object.prototype.hasOwnProperty.call(o,t)){var u=o[t];i="@:"===u.substr(0,2)?rt(u.substr(2),e,n,r):s.interpolate(u,e)}else{var l;h&&!F&&(l=X(t,e)),r&&a&&a.length?(f=0,i=et(t,e,s)):i=h&&!F&&l?l:U(t)}return i},it=function(t){l===t&&(l=void 0),O[t]=void 0};B.preferredLanguage=function(t){return t&&q(t),i},B.cloakClassName=function(){return k},B.nestedObjectDelimeter=function(){return $},B.fallbackLanguage=function(t){if(void 0!==t&&null!==t){if(z(t),p&&a&&a.length)for(var e=0,n=a.length;e<n;e++)O[a[e]]||(O[a[e]]=W(a[e]));B.use(B.use())}return s?a[0]:a},B.useFallbackLanguage=function(t){if(void 0!==t&&null!==t)if(t){var e=j(a,t);e>-1&&(_=e)}else _=0},B.proposedLanguage=function(){return l},B.storage=function(){return o},B.negotiateLocale=L,B.use=function(t){if(!t)return u;var e=r.defer();n.$emit("$translateChangeStart",{language:t});var i=L(t);return i&&(t=i),l=t,!E&&b[t]||!p||O[t]?O[t]?O[t].then(function(t){return l===t.key&&V(t.key),e.resolve(t.key),t},function(t){return!u&&a&&a.length>0?B.use(a[0]).then(e.resolve,e.reject):e.reject(t)}):(e.resolve(t),V(t)):(O[t]=W(t).then(function(n){return R(n.key,n.table),e.resolve(n.key),l===t&&V(n.key),n},function(t){return n.$emit("$translateChangeError",{language:t}),e.reject(t),n.$emit("$translateChangeEnd",{language:t}),r.reject(t)}),O[t]["finally"](function(){it(t)})),e.promise},B.storageKey=function(){return H()},B.isPostCompilingEnabled=function(){return C},B.isForceAsyncReloadEnabled=function(){return E},B.refresh=function(t){function e(){o.resolve(),n.$emit("$translateRefreshEnd",{language:t})}function i(){o.reject(),n.$emit("$translateRefreshEnd",{language:t})}if(!p)throw new Error("Couldn't refresh translation table, no loader registered!");
|
||
var o=r.defer();if(n.$emit("$translateRefreshStart",{language:t}),t)if(b[t]){var s=function(n){R(n.key,n.table),t===u&&V(u),e()};s.displayName="refreshPostProcessor",W(t).then(s,i)}else i();else{var l=[],c={};if(a&&a.length)for(var f=0,h=a.length;f<h;f++)l.push(W(a[f])),c[a[f]]=!0;u&&!c[u]&&l.push(W(u));var d=function(t){b={},angular.forEach(t,function(t){R(t.key,t.table)}),u&&V(u),e()};d.displayName="refreshPostProcessor",r.all(l).then(d,i)}return o.promise},B.instant=function(t,e,n,r){var o=r&&r!==u?L(r)||r:u;if(null===t||angular.isUndefined(t))return t;if(angular.isArray(t)){for(var s={},l=0,c=t.length;l<c;l++)s[t[l]]=B.instant(t[l],e,n,r);return s}if(angular.isString(t)&&t.length<1)return t;t&&(t=P.apply(t));var f,d=[];i&&d.push(i),o&&d.push(o),a&&a.length&&(d=d.concat(a));for(var p=0,m=d.length;p<m;p++){var y=d[p];if(b[y]&&"undefined"!=typeof b[y][t]&&(f=rt(t,e,n,o)),"undefined"!=typeof f)break}return f||""===f||(g||v?f=U(t):(f=D.interpolate(t,e),h&&!F&&(f=X(t,e)))),f},B.versionInfo=function(){return N},B.loaderCache=function(){return y},B.directivePriority=function(){return A},B.statefulFilter=function(){return T},B.isReady=function(){return S};var ot=r.defer();ot.promise.then(function(){S=!0}),B.onReady=function(t){var e=r.defer();return angular.isFunction(t)&&e.promise.then(t),S?e.resolve():ot.promise.then(e.resolve),e.promise};var at=n.$on("$translateReady",function(){ot.resolve(),at(),at=null}),st=n.$on("$translateChangeEnd",function(){ot.resolve(),st(),st=null});if(p){if(angular.equals(b,{})&&B.use()&&B.use(B.use()),a&&a.length)for(var ut=function(t){return R(t.key,t.table),n.$emit("$translateChangeEnd",{language:t.key}),t},lt=0,ct=a.length;lt<ct;lt++){var ft=a[lt];!E&&b[ft]||(O[ft]=W(ft).then(ut))}}else n.$emit("$translateReady",{language:B.use()});return B}]}function r(t,e){"use strict";var n,r={},i="default";return r.setLocale=function(t){n=t},r.getInterpolationIdentifier=function(){return i},r.useSanitizeValueStrategy=function(t){return e.useStrategy(t),this},r.interpolate=function(n,r){r=r||{},r=e.sanitize(r,"params");var i=t(n)(r);return i=e.sanitize(i,"text")},r}function i(t,e,n,r,i,a){"use strict";var s=function(){return this.toString().replace(/^\s+|\s+$/g,"")};return{restrict:"AE",scope:!0,priority:t.directivePriority(),compile:function(e,u){var l=u.translateValues?u.translateValues:void 0,c=u.translateInterpolation?u.translateInterpolation:void 0,f=e[0].outerHTML.match(/translate-value-+/i),h="^(.*)("+n.startSymbol()+".*"+n.endSymbol()+")(.*)",d="^(.*)"+n.startSymbol()+"(.*)"+n.endSymbol()+"(.*)";return function(e,p,m){e.interpolateParams={},e.preText="",e.postText="",e.translateNamespace=o(e);var g={},v=function(t,n,r){if(n.translateValues&&angular.extend(t,i(n.translateValues)(e.$parent)),f)for(var o in r)if(Object.prototype.hasOwnProperty.call(n,o)&&"translateValue"===o.substr(0,14)&&"translateValues"!==o){var a=angular.lowercase(o.substr(14,1))+o.substr(15);t[a]=r[o]}},y=function(t){if(angular.isFunction(y._unwatchOld)&&(y._unwatchOld(),y._unwatchOld=void 0),angular.equals(t,"")||!angular.isDefined(t)){var r=s.apply(p.text()),i=r.match(h);if(angular.isArray(i)){e.preText=i[1],e.postText=i[3],g.translate=n(i[2])(e.$parent);var o=r.match(d);angular.isArray(o)&&o[2]&&o[2].length&&(y._unwatchOld=e.$watch(o[2],function(t){g.translate=t,C()}))}else g.translate=r?r:void 0}else g.translate=t;C()},b=function(t){m.$observe(t,function(e){g[t]=e,C()})};v(e.interpolateParams,m,u);var _=!0;m.$observe("translate",function(t){"undefined"==typeof t?y(""):""===t&&_||(g.translate=t,C()),_=!1});for(var w in m)m.hasOwnProperty(w)&&"translateAttr"===w.substr(0,13)&&b(w);if(m.$observe("translateDefault",function(t){e.defaultText=t,C()}),l&&m.$observe("translateValues",function(t){t&&e.$parent.$watch(function(){angular.extend(e.interpolateParams,i(t)(e.$parent))})}),f){var x=function(t){m.$observe(t,function(n){var r=angular.lowercase(t.substr(14,1))+t.substr(15);e.interpolateParams[r]=n})};for(var k in m)Object.prototype.hasOwnProperty.call(m,k)&&"translateValue"===k.substr(0,14)&&"translateValues"!==k&&x(k)}var C=function(){for(var t in g)g.hasOwnProperty(t)&&void 0!==g[t]&&E(t,g[t],e,e.interpolateParams,e.defaultText,e.translateNamespace)},E=function(e,n,r,i,o,a){n?(a&&"."===n.charAt(0)&&(n=a+n),t(n,i,c,o,r.translateLanguage).then(function(t){$(t,r,!0,e)},function(t){$(t,r,!1,e)})):$(n,r,!1,e)},$=function(e,n,i,o){if("translate"===o){i||"undefined"==typeof n.defaultText||(e=n.defaultText),p.empty().append(n.preText+e+n.postText);var a=t.isPostCompilingEnabled(),s="undefined"!=typeof u.translateCompile,l=s&&"false"!==u.translateCompile;(a&&!s||l)&&r(p.contents())(n)}else{i||"undefined"==typeof n.defaultText||(e=n.defaultText);var c=m.$attr[o];"data-"===c.substr(0,5)&&(c=c.substr(5)),c=c.substr(15),p.attr(c,e)}};(l||f||m.translateDefault)&&e.$watch("interpolateParams",C,!0),e.$watch("translateLanguage",C);var S=a.$on("$translateChangeSuccess",C);p.text().length?y(m.translate?m.translate:""):m.translate&&y(m.translate),C(),e.$on("$destroy",S)}}}}function o(t){"use strict";return t.translateNamespace?t.translateNamespace:t.$parent?o(t.$parent):void 0}function a(t,e){"use strict";return{compile:function(n){var r=function(){n.addClass(t.cloakClassName())},i=function(){n.removeClass(t.cloakClassName())};return t.onReady(function(){i()}),r(),function(n,o,a){a.translateCloak&&a.translateCloak.length&&(a.$observe("translateCloak",function(e){t(e).then(i,r)}),e.$on("$translateChangeSuccess",function(){t(a.translateCloak).then(i,r)}))}}}}function s(){"use strict";return{restrict:"A",scope:!0,compile:function(){return{pre:function(t,e,n){t.translateNamespace=o(t),t.translateNamespace&&"."===n.translateNamespace.charAt(0)?t.translateNamespace+=n.translateNamespace:t.translateNamespace=n.translateNamespace}}}}}function o(t){"use strict";return t.translateNamespace?t.translateNamespace:t.$parent?o(t.$parent):void 0}function u(){"use strict";return{restrict:"A",scope:!0,compile:function(){return function(t,e,n){n.$observe("translateLanguage",function(e){t.translateLanguage=e})}}}}function l(t,e){"use strict";var n=function(n,r,i,o){return angular.isObject(r)||(r=t(r)(this)),e.instant(n,r,i,o)};return e.statefulFilter()&&(n.$stateful=!0),n}function c(t){"use strict";return t("translations")}return angular.module("pascalprecht.translate",["ng"]).run(t),t.$inject=["$translate"],t.displayName="runTranslate",angular.module("pascalprecht.translate").provider("$translateSanitization",e),angular.module("pascalprecht.translate").constant("pascalprechtTranslateOverrider",{}).provider("$translate",n),n.$inject=["$STORAGE_KEY","$windowProvider","$translateSanitizationProvider","pascalprechtTranslateOverrider"],n.displayName="displayName",angular.module("pascalprecht.translate").factory("$translateDefaultInterpolation",r),r.$inject=["$interpolate","$translateSanitization"],r.displayName="$translateDefaultInterpolation",angular.module("pascalprecht.translate").constant("$STORAGE_KEY","NG_TRANSLATE_LANG_KEY"),angular.module("pascalprecht.translate").directive("translate",i),i.$inject=["$translate","$q","$interpolate","$compile","$parse","$rootScope"],i.displayName="translateDirective",angular.module("pascalprecht.translate").directive("translateCloak",a),a.$inject=["$translate","$rootScope"],a.displayName="translateCloakDirective",angular.module("pascalprecht.translate").directive("translateNamespace",s),s.displayName="translateNamespaceDirective",angular.module("pascalprecht.translate").directive("translateLanguage",u),u.displayName="translateLanguageDirective",angular.module("pascalprecht.translate").filter("translate",l),l.$inject=["$parse","$translate"],l.displayName="translateFilterFactory",angular.module("pascalprecht.translate").factory("$translationCache",c),c.$inject=["$cacheFactory"],c.displayName="$translationCache","pascalprecht.translate"}),function(t,e){"function"==typeof define&&define.amd?define([],function(){return e()}):"object"==typeof exports?module.exports=e():e()}(this,function(){function t(){"use strict";function t(t,e){this.name=t,this.isActive=!0,this.tables={},this.priority=e||0}function e(t){return Object.prototype.hasOwnProperty.call(a,t)}function n(t){return angular.isString(t)&&""!==t}function r(t){if(!n(t))throw new TypeError("Invalid type of a first argument, a non-empty string expected.");return e(t)&&a[t].isActive}function i(t,e){for(var n in e)e[n]&&e[n].constructor&&e[n].constructor===Object?(t[n]=t[n]||{},i(t[n],e[n])):t[n]=e[n];return t}function o(){var t=[];for(var e in a)a[e].isActive&&t.push(a[e]);return t.sort(function(t,e){return t.priority-e.priority}),t}t.prototype.parseUrl=function(t,e){return angular.isFunction(t)?t(this.name,e):t.replace(/\{part\}/g,this.name).replace(/\{lang\}/g,e)},t.prototype.getTable=function(t,e,n,r,i,o){if(this.tables[t])return e.when(this.tables[t]);var a=this;return n(angular.extend({method:"GET",url:this.parseUrl(i,t)},r)).then(function(e){return a.tables[t]=e.data,e.data},function(){return o?o(a.name,t).then(function(e){return a.tables[t]=e,e},function(){return e.reject(a.name)}):e.reject(a.name)})};var a={};this.addPart=function(r,i){if(!n(r))throw new TypeError("Couldn't add part, part name has to be a string!");return e(r)||(a[r]=new t(r,i)),a[r].isActive=!0,this},this.setPart=function(r,i,o){if(!n(r))throw new TypeError("Couldn't set part.`lang` parameter has to be a string!");if(!n(i))throw new TypeError("Couldn't set part.`part` parameter has to be a string!");if("object"!=typeof o||null===o)throw new TypeError("Couldn't set part. `table` parameter has to be an object!");return e(i)||(a[i]=new t(i),a[i].isActive=!1),a[i].tables[r]=o,this},this.deletePart=function(t){if(!n(t))throw new TypeError("Couldn't delete part, first arg has to be string.");return e(t)&&(a[t].isActive=!1),this},this.isPartAvailable=r,this.$get=["$rootScope","$injector","$q","$http",function(s,u,l,c){var f=function(t){if(!n(t.key))throw new TypeError("Unable to load data, a key is not a non-empty string.");if(!n(t.urlTemplate)&&!angular.isFunction(t.urlTemplate))throw new TypeError("Unable to load data, a urlTemplate is not a non-empty string or not a function.");var e=t.loadFailureHandler;if(void 0!==e){if(!angular.isString(e))throw new Error("Unable to load data, a loadFailureHandler is not a string.");e=u.get(e)}var r=[],a=o();return angular.forEach(a,function(n){r.push(n.getTable(t.key,l,c,t.$http,t.urlTemplate,e)),n.urlTemplate=t.urlTemplate}),l.all(r).then(function(){var e={};return a=o(),angular.forEach(a,function(n){i(e,n.tables[t.key])}),e},function(){return l.reject(t.key)})};return f.addPart=function(r,i){if(!n(r))throw new TypeError("Couldn't add part, first arg has to be a string");return e(r)?a[r].isActive||(a[r].isActive=!0,s.$emit("$translatePartialLoaderStructureChanged",r)):(a[r]=new t(r,i),s.$emit("$translatePartialLoaderStructureChanged",r)),f},f.deletePart=function(t,r){if(!n(t))throw new TypeError("Couldn't delete part, first arg has to be string");if(void 0===r)r=!1;else if("boolean"!=typeof r)throw new TypeError("Invalid type of a second argument, a boolean expected.");if(e(t)){var i=a[t].isActive;if(r){var o=u.get("$translate"),l=o.loaderCache();"string"==typeof l&&(l=u.get(l)),"object"==typeof l&&angular.forEach(a[t].tables,function(e,n){l.remove(a[t].parseUrl(a[t].urlTemplate,n))}),delete a[t]}else a[t].isActive=!1;i&&s.$emit("$translatePartialLoaderStructureChanged",t)}return f},f.isPartLoaded=function(t,e){return angular.isDefined(a[t])&&angular.isDefined(a[t].tables[e])},f.getRegisteredParts=function(){var t=[];return angular.forEach(a,function(e){e.isActive&&t.push(e.name)}),t},f.isPartAvailable=r,f}]}return angular.module("pascalprecht.translate").provider("$translatePartialLoader",t),t.displayName="$translatePartialLoader","pascalprecht.translate"}),function(t,e){"function"==typeof define&&define.amd?define([],function(){return e()}):"object"==typeof exports?module.exports=e():e()}(this,function(){function t(t,e){"use strict";return function(n){if(!(n&&(angular.isArray(n.files)||angular.isString(n.prefix)&&angular.isString(n.suffix))))throw new Error("Couldn't load static files, no files and prefix or suffix specified!");n.files||(n.files=[{prefix:n.prefix,suffix:n.suffix}]);for(var r=function(r){if(!r||!angular.isString(r.prefix)||!angular.isString(r.suffix))throw new Error("Couldn't load static file, no prefix or suffix specified!");return e(angular.extend({url:[r.prefix,n.key,r.suffix].join(""),method:"GET",params:""},n.$http)).then(function(t){return t.data},function(){return t.reject(n.key)})},i=[],o=n.files.length,a=0;a<o;a++)i.push(r({prefix:n.files[a].prefix,key:n.key,suffix:n.files[a].suffix}));return t.all(i).then(function(t){for(var e=t.length,n={},r=0;r<e;r++)for(var i in t[r])n[i]=t[r][i];return n})}}return angular.module("pascalprecht.translate").factory("$translateStaticFilesLoader",t),t.$inject=["$q","$http"],t.displayName="$translateStaticFilesLoader","pascalprecht.translate"}),function(t,e){"function"==typeof define&&define.amd?define(["messageformat"],function(t){return e(t)}):"object"==typeof exports?module.exports=e(require("messageformat")):e(MessageFormat)}(this,function(t){function e(e,n,r){"use strict";var i={},o=n.get(r),a=new t("en"),s="messageformat";return o||(o=n(r)),o.put("en",a),i.setLocale=function(e){a=o.get(e),a||(a=new t(e),o.put(e,a))},i.getInterpolationIdentifier=function(){return s},i.useSanitizeValueStrategy=function(t){return e.useStrategy(t),this},i.interpolate=function(t,n){n=n||{},n=e.sanitize(n,"params");var r=o.get(t+angular.toJson(n));if(!r){for(var i in n)if(n.hasOwnProperty(i)){var s=parseInt(n[i],10);angular.isNumber(s)&&""+s===n[i]&&(n[i]=s)}r=a.compile(t)(n),r=e.sanitize(r,"text"),o.put(t+angular.toJson(n),r)}return r},i}return angular.module("pascalprecht.translate").constant("TRANSLATE_MF_INTERPOLATION_CACHE","$translateMessageFormatInterpolation").factory("$translateMessageFormatInterpolation",e),e.$inject=["$translateSanitization","$cacheFactory","TRANSLATE_MF_INTERPOLATION_CACHE"],e.displayName="$translateMessageFormatInterpolation","pascalprecht.translate"}),function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):t.moment=e()}(this,function(){"use strict";function t(){return Sr.apply(null,arguments)}function e(t){Sr=t}function n(t){return t instanceof Array||"[object Array]"===Object.prototype.toString.call(t)}function r(t){return null!=t&&"[object Object]"===Object.prototype.toString.call(t)}function i(t){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(t).length;var e;for(e in t)if(t.hasOwnProperty(e))return!1;return!0}function o(t){return void 0===t}function a(t){return"number"==typeof t||"[object Number]"===Object.prototype.toString.call(t)}function s(t){return t instanceof Date||"[object Date]"===Object.prototype.toString.call(t)}function u(t,e){var n,r=[];for(n=0;n<t.length;++n)r.push(e(t[n],n));return r}function l(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function c(t,e){for(var n in e)l(e,n)&&(t[n]=e[n]);return l(e,"toString")&&(t.toString=e.toString),l(e,"valueOf")&&(t.valueOf=e.valueOf),t}function f(t,e,n,r){return Ce(t,e,n,r,!0).utc()}function h(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],meridiem:null,rfc2822:!1,weekdayMismatch:!1}}function d(t){return null==t._pf&&(t._pf=h()),t._pf}function p(t){if(null==t._isValid){var e=d(t),n=Ar.call(e.parsedDateParts,function(t){return null!=t}),r=!isNaN(t._d.getTime())&&e.overflow<0&&!e.empty&&!e.invalidMonth&&!e.invalidWeekday&&!e.weekdayMismatch&&!e.nullInput&&!e.invalidFormat&&!e.userInvalidated&&(!e.meridiem||e.meridiem&&n);if(t._strict&&(r=r&&0===e.charsLeftOver&&0===e.unusedTokens.length&&void 0===e.bigHour),null!=Object.isFrozen&&Object.isFrozen(t))return r;t._isValid=r}return t._isValid}function m(t){var e=f(NaN);return null!=t?c(d(e),t):d(e).userInvalidated=!0,e}function g(t,e){var n,r,i;if(o(e._isAMomentObject)||(t._isAMomentObject=e._isAMomentObject),o(e._i)||(t._i=e._i),o(e._f)||(t._f=e._f),o(e._l)||(t._l=e._l),o(e._strict)||(t._strict=e._strict),o(e._tzm)||(t._tzm=e._tzm),o(e._isUTC)||(t._isUTC=e._isUTC),o(e._offset)||(t._offset=e._offset),o(e._pf)||(t._pf=d(e)),o(e._locale)||(t._locale=e._locale),Tr.length>0)for(n=0;n<Tr.length;n++)r=Tr[n],i=e[r],o(i)||(t[r]=i);return t}function v(e){g(this,e),this._d=new Date(null!=e._d?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),Dr===!1&&(Dr=!0,t.updateOffset(this),Dr=!1)}function y(t){return t instanceof v||null!=t&&null!=t._isAMomentObject}function b(t){return t<0?Math.ceil(t)||0:Math.floor(t)}function _(t){var e=+t,n=0;return 0!==e&&isFinite(e)&&(n=b(e)),n}function w(t,e,n){var r,i=Math.min(t.length,e.length),o=Math.abs(t.length-e.length),a=0;for(r=0;r<i;r++)(n&&t[r]!==e[r]||!n&&_(t[r])!==_(e[r]))&&a++;return a+o}function x(e){t.suppressDeprecationWarnings===!1&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+e)}function k(e,n){var r=!0;return c(function(){if(null!=t.deprecationHandler&&t.deprecationHandler(null,e),r){for(var i,o=[],a=0;a<arguments.length;a++){if(i="","object"==typeof arguments[a]){i+="\n["+a+"] ";for(var s in arguments[0])i+=s+": "+arguments[0][s]+", ";i=i.slice(0,-2)}else i=arguments[a];o.push(i)}x(e+"\nArguments: "+Array.prototype.slice.call(o).join("")+"\n"+(new Error).stack),r=!1}return n.apply(this,arguments)},n)}function C(e,n){null!=t.deprecationHandler&&t.deprecationHandler(e,n),Fr[e]||(x(n),Fr[e]=!0)}function E(t){return t instanceof Function||"[object Function]"===Object.prototype.toString.call(t)}function $(t){var e,n;for(n in t)e=t[n],E(e)?this[n]=e:this["_"+n]=e;this._config=t,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function S(t,e){var n,i=c({},t);for(n in e)l(e,n)&&(r(t[n])&&r(e[n])?(i[n]={},c(i[n],t[n]),c(i[n],e[n])):null!=e[n]?i[n]=e[n]:delete i[n]);for(n in t)l(t,n)&&!l(e,n)&&r(t[n])&&(i[n]=c({},i[n]));return i}function A(t){null!=t&&this.set(t)}function T(t,e,n){var r=this._calendar[t]||this._calendar.sameElse;return E(r)?r.call(e,n):r}function D(t){var e=this._longDateFormat[t],n=this._longDateFormat[t.toUpperCase()];return e||!n?e:(this._longDateFormat[t]=n.replace(/MMMM|MM|DD|dddd/g,function(t){return t.slice(1)}),this._longDateFormat[t])}function F(){return this._invalidDate}function N(t){return this._ordinal.replace("%d",t)}function M(t,e,n,r){var i=this._relativeTime[n];return E(i)?i(t,e,n,r):i.replace(/%d/i,t)}function O(t,e){var n=this._relativeTime[t>0?"future":"past"];return E(n)?n(e):n.replace(/%s/i,e)}function j(t,e){var n=t.toLowerCase();Ir[n]=Ir[n+"s"]=Ir[e]=t}function P(t){return"string"==typeof t?Ir[t]||Ir[t.toLowerCase()]:void 0}function L(t){var e,n,r={};for(n in t)l(t,n)&&(e=P(n),e&&(r[e]=t[n]));return r}function R(t,e){qr[t]=e}function I(t){var e=[];for(var n in t)e.push({unit:n,priority:qr[n]});return e.sort(function(t,e){return t.priority-e.priority}),e}function q(t,e,n){var r=""+Math.abs(t),i=e-r.length,o=t>=0;return(o?n?"+":"":"-")+Math.pow(10,Math.max(0,i)).toString().substr(1)+r}function z(t,e,n,r){var i=r;"string"==typeof r&&(i=function(){return this[r]()}),t&&(Ur[t]=i),e&&(Ur[e[0]]=function(){return q(i.apply(this,arguments),e[1],e[2])}),n&&(Ur[n]=function(){return this.localeData().ordinal(i.apply(this,arguments),t)})}function H(t){return t.match(/\[[\s\S]/)?t.replace(/^\[|\]$/g,""):t.replace(/\\/g,"")}function B(t){var e,n,r=t.match(zr);for(e=0,n=r.length;e<n;e++)Ur[r[e]]?r[e]=Ur[r[e]]:r[e]=H(r[e]);return function(e){var i,o="";for(i=0;i<n;i++)o+=E(r[i])?r[i].call(e,t):r[i];return o}}function U(t,e){return t.isValid()?(e=V(e,t.localeData()),Br[e]=Br[e]||B(e),Br[e](t)):t.localeData().invalidDate()}function V(t,e){function n(t){return e.longDateFormat(t)||t}var r=5;for(Hr.lastIndex=0;r>=0&&Hr.test(t);)t=t.replace(Hr,n),Hr.lastIndex=0,r-=1;return t}function W(t,e,n){ui[t]=E(e)?e:function(t,r){return t&&n?n:e}}function Y(t,e){return l(ui,t)?ui[t](e._strict,e._locale):new RegExp(G(t))}function G(t){return K(t.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(t,e,n,r,i){return e||n||r||i}))}function K(t){return t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function Z(t,e){var n,r=e;for("string"==typeof t&&(t=[t]),a(e)&&(r=function(t,n){n[e]=_(t)}),n=0;n<t.length;n++)li[t[n]]=r}function X(t,e){Z(t,function(t,n,r,i){r._w=r._w||{},e(t,r._w,r,i)})}function J(t,e,n){null!=e&&l(li,t)&&li[t](e,n._a,n,t)}function Q(t){return tt(t)?366:365}function tt(t){return t%4===0&&t%100!==0||t%400===0}function et(){return tt(this.year())}function nt(e,n){return function(r){return null!=r?(it(this,e,r),t.updateOffset(this,n),this):rt(this,e)}}function rt(t,e){return t.isValid()?t._d["get"+(t._isUTC?"UTC":"")+e]():NaN}function it(t,e,n){t.isValid()&&!isNaN(n)&&("FullYear"===e&&tt(t.year())&&1===t.month()&&29===t.date()?t._d["set"+(t._isUTC?"UTC":"")+e](n,t.month(),ut(n,t.month())):t._d["set"+(t._isUTC?"UTC":"")+e](n))}function ot(t){return t=P(t),E(this[t])?this[t]():this}function at(t,e){if("object"==typeof t){t=L(t);for(var n=I(t),r=0;r<n.length;r++)this[n[r].unit](t[n[r].unit])}else if(t=P(t),E(this[t]))return this[t](e);return this}function st(t,e){return(t%e+e)%e}function ut(t,e){if(isNaN(t)||isNaN(e))return NaN;var n=st(e,12);return t+=(e-n)/12,1===n?tt(t)?29:28:31-n%7%2}function lt(t,e){return t?n(this._months)?this._months[t.month()]:this._months[(this._months.isFormat||wi).test(e)?"format":"standalone"][t.month()]:n(this._months)?this._months:this._months.standalone}function ct(t,e){return t?n(this._monthsShort)?this._monthsShort[t.month()]:this._monthsShort[wi.test(e)?"format":"standalone"][t.month()]:n(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function ft(t,e,n){var r,i,o,a=t.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],r=0;r<12;++r)o=f([2e3,r]),this._shortMonthsParse[r]=this.monthsShort(o,"").toLocaleLowerCase(),this._longMonthsParse[r]=this.months(o,"").toLocaleLowerCase();return n?"MMM"===e?(i=bi.call(this._shortMonthsParse,a),i!==-1?i:null):(i=bi.call(this._longMonthsParse,a),i!==-1?i:null):"MMM"===e?(i=bi.call(this._shortMonthsParse,a),i!==-1?i:(i=bi.call(this._longMonthsParse,a),i!==-1?i:null)):(i=bi.call(this._longMonthsParse,a),i!==-1?i:(i=bi.call(this._shortMonthsParse,a),i!==-1?i:null))}function ht(t,e,n){var r,i,o;if(this._monthsParseExact)return ft.call(this,t,e,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),r=0;r<12;r++){if(i=f([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]||(o="^"+this.months(i,"")+"|^"+this.monthsShort(i,""),this._monthsParse[r]=new RegExp(o.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 dt(t,e){var n;if(!t.isValid())return t;if("string"==typeof e)if(/^\d+$/.test(e))e=_(e);else if(e=t.localeData().monthsParse(e),!a(e))return t;return n=Math.min(t.date(),ut(t.year(),e)),t._d["set"+(t._isUTC?"UTC":"")+"Month"](e,n),t}function pt(e){return null!=e?(dt(this,e),t.updateOffset(this,!0),this):rt(this,"Month")}function mt(){return ut(this.year(),this.month())}function gt(t){return this._monthsParseExact?(l(this,"_monthsRegex")||yt.call(this),t?this._monthsShortStrictRegex:this._monthsShortRegex):(l(this,"_monthsShortRegex")||(this._monthsShortRegex=Ci),this._monthsShortStrictRegex&&t?this._monthsShortStrictRegex:this._monthsShortRegex)}function vt(t){return this._monthsParseExact?(l(this,"_monthsRegex")||yt.call(this),t?this._monthsStrictRegex:this._monthsRegex):(l(this,"_monthsRegex")||(this._monthsRegex=Ei),this._monthsStrictRegex&&t?this._monthsStrictRegex:this._monthsRegex)}function yt(){function t(t,e){return e.length-t.length}var e,n,r=[],i=[],o=[];for(e=0;e<12;e++)n=f([2e3,e]),r.push(this.monthsShort(n,"")),i.push(this.months(n,"")),o.push(this.months(n,"")),o.push(this.monthsShort(n,""));for(r.sort(t),i.sort(t),o.sort(t),e=0;e<12;e++)r[e]=K(r[e]),i[e]=K(i[e]);for(e=0;e<24;e++)o[e]=K(o[e]);this._monthsRegex=new RegExp("^("+o.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+i.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+r.join("|")+")","i")}function bt(t,e,n,r,i,o,a){var s=new Date(t,e,n,r,i,o,a);return t<100&&t>=0&&isFinite(s.getFullYear())&&s.setFullYear(t),s}function _t(t){var e=new Date(Date.UTC.apply(null,arguments));return t<100&&t>=0&&isFinite(e.getUTCFullYear())&&e.setUTCFullYear(t),e}function wt(t,e,n){var r=7+e-n,i=(7+_t(t,0,r).getUTCDay()-e)%7;return-i+r-1}function xt(t,e,n,r,i){var o,a,s=(7+n-r)%7,u=wt(t,r,i),l=1+7*(e-1)+s+u;return l<=0?(o=t-1,a=Q(o)+l):l>Q(t)?(o=t+1,a=l-Q(t)):(o=t,a=l),{year:o,dayOfYear:a}}function kt(t,e,n){var r,i,o=wt(t.year(),e,n),a=Math.floor((t.dayOfYear()-o-1)/7)+1;return a<1?(i=t.year()-1,r=a+Ct(i,e,n)):a>Ct(t.year(),e,n)?(r=a-Ct(t.year(),e,n),i=t.year()+1):(i=t.year(),r=a),{week:r,year:i}}function Ct(t,e,n){var r=wt(t,e,n),i=wt(t+1,e,n);return(Q(t)-r+i)/7}function Et(t){return kt(t,this._week.dow,this._week.doy).week}function $t(){return this._week.dow}function St(){return this._week.doy}function At(t){var e=this.localeData().week(this);return null==t?e:this.add(7*(t-e),"d")}function Tt(t){var e=kt(this,1,4).week;return null==t?e:this.add(7*(t-e),"d")}function Dt(t,e){return"string"!=typeof t?t:isNaN(t)?(t=e.weekdaysParse(t),"number"==typeof t?t:null):parseInt(t,10)}function Ft(t,e){return"string"==typeof t?e.weekdaysParse(t)%7||7:isNaN(t)?null:t}function Nt(t,e){return t?n(this._weekdays)?this._weekdays[t.day()]:this._weekdays[this._weekdays.isFormat.test(e)?"format":"standalone"][t.day()]:n(this._weekdays)?this._weekdays:this._weekdays.standalone}function Mt(t){return t?this._weekdaysShort[t.day()]:this._weekdaysShort}function Ot(t){return t?this._weekdaysMin[t.day()]:this._weekdaysMin}function jt(t,e,n){var r,i,o,a=t.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)o=f([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(o,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(o,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(o,"").toLocaleLowerCase();return n?"dddd"===e?(i=bi.call(this._weekdaysParse,a),i!==-1?i:null):"ddd"===e?(i=bi.call(this._shortWeekdaysParse,a),i!==-1?i:null):(i=bi.call(this._minWeekdaysParse,a),i!==-1?i:null):"dddd"===e?(i=bi.call(this._weekdaysParse,a),i!==-1?i:(i=bi.call(this._shortWeekdaysParse,a),i!==-1?i:(i=bi.call(this._minWeekdaysParse,a),i!==-1?i:null))):"ddd"===e?(i=bi.call(this._shortWeekdaysParse,a),i!==-1?i:(i=bi.call(this._weekdaysParse,a),i!==-1?i:(i=bi.call(this._minWeekdaysParse,a),i!==-1?i:null))):(i=bi.call(this._minWeekdaysParse,a),i!==-1?i:(i=bi.call(this._weekdaysParse,a),i!==-1?i:(i=bi.call(this._shortWeekdaysParse,a),i!==-1?i:null)))}function Pt(t,e,n){var r,i,o;if(this._weekdaysParseExact)return jt.call(this,t,e,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(i=f([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]||(o="^"+this.weekdays(i,"")+"|^"+this.weekdaysShort(i,"")+"|^"+this.weekdaysMin(i,""),this._weekdaysParse[r]=new RegExp(o.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 Lt(t){if(!this.isValid())return null!=t?this:NaN;var e=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=t?(t=Dt(t,this.localeData()),this.add(t-e,"d")):e}function Rt(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 It(t){if(!this.isValid())return null!=t?this:NaN;if(null!=t){var e=Ft(t,this.localeData());return this.day(this.day()%7?e:e-7)}return this.day()||7}function qt(t){return this._weekdaysParseExact?(l(this,"_weekdaysRegex")||Bt.call(this),t?this._weekdaysStrictRegex:this._weekdaysRegex):(l(this,"_weekdaysRegex")||(this._weekdaysRegex=Di),this._weekdaysStrictRegex&&t?this._weekdaysStrictRegex:this._weekdaysRegex)}function zt(t){return this._weekdaysParseExact?(l(this,"_weekdaysRegex")||Bt.call(this),t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(l(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Fi),this._weekdaysShortStrictRegex&&t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function Ht(t){return this._weekdaysParseExact?(l(this,"_weekdaysRegex")||Bt.call(this),t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(l(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Ni),this._weekdaysMinStrictRegex&&t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function Bt(){function t(t,e){return e.length-t.length}var e,n,r,i,o,a=[],s=[],u=[],l=[];for(e=0;e<7;e++)n=f([2e3,1]).day(e),r=this.weekdaysMin(n,""),i=this.weekdaysShort(n,""),o=this.weekdays(n,""),a.push(r),s.push(i),u.push(o),l.push(r),l.push(i),l.push(o);for(a.sort(t),s.sort(t),u.sort(t),l.sort(t),e=0;e<7;e++)s[e]=K(s[e]),u[e]=K(u[e]),l[e]=K(l[e]);this._weekdaysRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+u.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+a.join("|")+")","i")}function Ut(){return this.hours()%12||12}function Vt(){return this.hours()||24}function Wt(t,e){z(t,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),e)})}function Yt(t,e){return e._meridiemParse}function Gt(t){return"p"===(t+"").toLowerCase().charAt(0)}function Kt(t,e,n){return t>11?n?"pm":"PM":n?"am":"AM"}function Zt(t){return t?t.toLowerCase().replace("_","-"):t}function Xt(t){for(var e,n,r,i,o=0;o<t.length;){for(i=Zt(t[o]).split("-"),e=i.length,n=Zt(t[o+1]),n=n?n.split("-"):null;e>0;){if(r=Jt(i.slice(0,e).join("-")))return r;if(n&&n.length>=e&&w(i,n,!0)>=e-1)break;e--}o++}return Mi}function Jt(t){var e=null;if(!Li[t]&&"undefined"!=typeof module&&module&&module.exports)try{e=Mi._abbr;var n=require;n("./locale/"+t),Qt(e)}catch(r){}return Li[t]}function Qt(t,e){var n;return t&&(n=o(e)?ne(t):te(t,e),n?Mi=n:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+t+" not found. Did you forget to load it?")),Mi._abbr}function te(t,e){if(null!==e){var n,r=Pi;if(e.abbr=t,null!=Li[t])C("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=Li[t]._config;else if(null!=e.parentLocale)if(null!=Li[e.parentLocale])r=Li[e.parentLocale]._config;else{if(n=Jt(e.parentLocale),null==n)return Ri[e.parentLocale]||(Ri[e.parentLocale]=[]),Ri[e.parentLocale].push({name:t,config:e}),null;r=n._config}return Li[t]=new A(S(r,e)),Ri[t]&&Ri[t].forEach(function(t){te(t.name,t.config);
|
||
}),Qt(t),Li[t]}return delete Li[t],null}function ee(t,e){if(null!=e){var n,r,i=Pi;r=Jt(t),null!=r&&(i=r._config),e=S(i,e),n=new A(e),n.parentLocale=Li[t],Li[t]=n,Qt(t)}else null!=Li[t]&&(null!=Li[t].parentLocale?Li[t]=Li[t].parentLocale:null!=Li[t]&&delete Li[t]);return Li[t]}function ne(t){var e;if(t&&t._locale&&t._locale._abbr&&(t=t._locale._abbr),!t)return Mi;if(!n(t)){if(e=Jt(t))return e;t=[t]}return Xt(t)}function re(){return Nr(Li)}function ie(t){var e,n=t._a;return n&&d(t).overflow===-2&&(e=n[fi]<0||n[fi]>11?fi:n[hi]<1||n[hi]>ut(n[ci],n[fi])?hi:n[di]<0||n[di]>24||24===n[di]&&(0!==n[pi]||0!==n[mi]||0!==n[gi])?di:n[pi]<0||n[pi]>59?pi:n[mi]<0||n[mi]>59?mi:n[gi]<0||n[gi]>999?gi:-1,d(t)._overflowDayOfYear&&(e<ci||e>hi)&&(e=hi),d(t)._overflowWeeks&&e===-1&&(e=vi),d(t)._overflowWeekday&&e===-1&&(e=yi),d(t).overflow=e),t}function oe(t,e,n){return null!=t?t:null!=e?e:n}function ae(e){var n=new Date(t.now());return e._useUTC?[n.getUTCFullYear(),n.getUTCMonth(),n.getUTCDate()]:[n.getFullYear(),n.getMonth(),n.getDate()]}function se(t){var e,n,r,i,o,a=[];if(!t._d){for(r=ae(t),t._w&&null==t._a[hi]&&null==t._a[fi]&&ue(t),null!=t._dayOfYear&&(o=oe(t._a[ci],r[ci]),(t._dayOfYear>Q(o)||0===t._dayOfYear)&&(d(t)._overflowDayOfYear=!0),n=_t(o,0,t._dayOfYear),t._a[fi]=n.getUTCMonth(),t._a[hi]=n.getUTCDate()),e=0;e<3&&null==t._a[e];++e)t._a[e]=a[e]=r[e];for(;e<7;e++)t._a[e]=a[e]=null==t._a[e]?2===e?1:0:t._a[e];24===t._a[di]&&0===t._a[pi]&&0===t._a[mi]&&0===t._a[gi]&&(t._nextDay=!0,t._a[di]=0),t._d=(t._useUTC?_t:bt).apply(null,a),i=t._useUTC?t._d.getUTCDay():t._d.getDay(),null!=t._tzm&&t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),t._nextDay&&(t._a[di]=24),t._w&&"undefined"!=typeof t._w.d&&t._w.d!==i&&(d(t).weekdayMismatch=!0)}}function ue(t){var e,n,r,i,o,a,s,u;if(e=t._w,null!=e.GG||null!=e.W||null!=e.E)o=1,a=4,n=oe(e.GG,t._a[ci],kt(Ee(),1,4).year),r=oe(e.W,1),i=oe(e.E,1),(i<1||i>7)&&(u=!0);else{o=t._locale._week.dow,a=t._locale._week.doy;var l=kt(Ee(),o,a);n=oe(e.gg,t._a[ci],l.year),r=oe(e.w,l.week),null!=e.d?(i=e.d,(i<0||i>6)&&(u=!0)):null!=e.e?(i=e.e+o,(e.e<0||e.e>6)&&(u=!0)):i=o}r<1||r>Ct(n,o,a)?d(t)._overflowWeeks=!0:null!=u?d(t)._overflowWeekday=!0:(s=xt(n,r,i,o,a),t._a[ci]=s.year,t._dayOfYear=s.dayOfYear)}function le(t){var e,n,r,i,o,a,s=t._i,u=Ii.exec(s)||qi.exec(s);if(u){for(d(t).iso=!0,e=0,n=Hi.length;e<n;e++)if(Hi[e][1].exec(u[1])){i=Hi[e][0],r=Hi[e][2]!==!1;break}if(null==i)return void(t._isValid=!1);if(u[3]){for(e=0,n=Bi.length;e<n;e++)if(Bi[e][1].exec(u[3])){o=(u[2]||" ")+Bi[e][0];break}if(null==o)return void(t._isValid=!1)}if(!r&&null!=o)return void(t._isValid=!1);if(u[4]){if(!zi.exec(u[4]))return void(t._isValid=!1);a="Z"}t._f=i+(o||"")+(a||""),ve(t)}else t._isValid=!1}function ce(t,e,n,r,i,o){var a=[fe(t),ki.indexOf(e),parseInt(n,10),parseInt(r,10),parseInt(i,10)];return o&&a.push(parseInt(o,10)),a}function fe(t){var e=parseInt(t,10);return e<=49?2e3+e:e<=999?1900+e:e}function he(t){return t.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}function de(t,e,n){if(t){var r=Ai.indexOf(t),i=new Date(e[0],e[1],e[2]).getDay();if(r!==i)return d(n).weekdayMismatch=!0,n._isValid=!1,!1}return!0}function pe(t,e,n){if(t)return Wi[t];if(e)return 0;var r=parseInt(n,10),i=r%100,o=(r-i)/100;return 60*o+i}function me(t){var e=Vi.exec(he(t._i));if(e){var n=ce(e[4],e[3],e[2],e[5],e[6],e[7]);if(!de(e[1],n,t))return;t._a=n,t._tzm=pe(e[8],e[9],e[10]),t._d=_t.apply(null,t._a),t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),d(t).rfc2822=!0}else t._isValid=!1}function ge(e){var n=Ui.exec(e._i);return null!==n?void(e._d=new Date((+n[1]))):(le(e),void(e._isValid===!1&&(delete e._isValid,me(e),e._isValid===!1&&(delete e._isValid,t.createFromInputFallback(e)))))}function ve(e){if(e._f===t.ISO_8601)return void le(e);if(e._f===t.RFC_2822)return void me(e);e._a=[],d(e).empty=!0;var n,r,i,o,a,s=""+e._i,u=s.length,l=0;for(i=V(e._f,e._locale).match(zr)||[],n=0;n<i.length;n++)o=i[n],r=(s.match(Y(o,e))||[])[0],r&&(a=s.substr(0,s.indexOf(r)),a.length>0&&d(e).unusedInput.push(a),s=s.slice(s.indexOf(r)+r.length),l+=r.length),Ur[o]?(r?d(e).empty=!1:d(e).unusedTokens.push(o),J(o,r,e)):e._strict&&!r&&d(e).unusedTokens.push(o);d(e).charsLeftOver=u-l,s.length>0&&d(e).unusedInput.push(s),e._a[di]<=12&&d(e).bigHour===!0&&e._a[di]>0&&(d(e).bigHour=void 0),d(e).parsedDateParts=e._a.slice(0),d(e).meridiem=e._meridiem,e._a[di]=ye(e._locale,e._a[di],e._meridiem),se(e),ie(e)}function ye(t,e,n){var r;return null==n?e:null!=t.meridiemHour?t.meridiemHour(e,n):null!=t.isPM?(r=t.isPM(n),r&&e<12&&(e+=12),r||12!==e||(e=0),e):e}function be(t){var e,n,r,i,o;if(0===t._f.length)return d(t).invalidFormat=!0,void(t._d=new Date(NaN));for(i=0;i<t._f.length;i++)o=0,e=g({},t),null!=t._useUTC&&(e._useUTC=t._useUTC),e._f=t._f[i],ve(e),p(e)&&(o+=d(e).charsLeftOver,o+=10*d(e).unusedTokens.length,d(e).score=o,(null==r||o<r)&&(r=o,n=e));c(t,n||e)}function _e(t){if(!t._d){var e=L(t._i);t._a=u([e.year,e.month,e.day||e.date,e.hour,e.minute,e.second,e.millisecond],function(t){return t&&parseInt(t,10)}),se(t)}}function we(t){var e=new v(ie(xe(t)));return e._nextDay&&(e.add(1,"d"),e._nextDay=void 0),e}function xe(t){var e=t._i,r=t._f;return t._locale=t._locale||ne(t._l),null===e||void 0===r&&""===e?m({nullInput:!0}):("string"==typeof e&&(t._i=e=t._locale.preparse(e)),y(e)?new v(ie(e)):(s(e)?t._d=e:n(r)?be(t):r?ve(t):ke(t),p(t)||(t._d=null),t))}function ke(e){var i=e._i;o(i)?e._d=new Date(t.now()):s(i)?e._d=new Date(i.valueOf()):"string"==typeof i?ge(e):n(i)?(e._a=u(i.slice(0),function(t){return parseInt(t,10)}),se(e)):r(i)?_e(e):a(i)?e._d=new Date(i):t.createFromInputFallback(e)}function Ce(t,e,o,a,s){var u={};return o!==!0&&o!==!1||(a=o,o=void 0),(r(t)&&i(t)||n(t)&&0===t.length)&&(t=void 0),u._isAMomentObject=!0,u._useUTC=u._isUTC=s,u._l=o,u._i=t,u._f=e,u._strict=a,we(u)}function Ee(t,e,n,r){return Ce(t,e,n,r,!1)}function $e(t,e){var r,i;if(1===e.length&&n(e[0])&&(e=e[0]),!e.length)return Ee();for(r=e[0],i=1;i<e.length;++i)e[i].isValid()&&!e[i][t](r)||(r=e[i]);return r}function Se(){var t=[].slice.call(arguments,0);return $e("isBefore",t)}function Ae(){var t=[].slice.call(arguments,0);return $e("isAfter",t)}function Te(t){for(var e in t)if(bi.call(Zi,e)===-1||null!=t[e]&&isNaN(t[e]))return!1;for(var n=!1,r=0;r<Zi.length;++r)if(t[Zi[r]]){if(n)return!1;parseFloat(t[Zi[r]])!==_(t[Zi[r]])&&(n=!0)}return!0}function De(){return this._isValid}function Fe(){return Ze(NaN)}function Ne(t){var e=L(t),n=e.year||0,r=e.quarter||0,i=e.month||0,o=e.week||0,a=e.day||0,s=e.hour||0,u=e.minute||0,l=e.second||0,c=e.millisecond||0;this._isValid=Te(e),this._milliseconds=+c+1e3*l+6e4*u+1e3*s*60*60,this._days=+a+7*o,this._months=+i+3*r+12*n,this._data={},this._locale=ne(),this._bubble()}function Me(t){return t instanceof Ne}function Oe(t){return t<0?Math.round(-1*t)*-1:Math.round(t)}function je(t,e){z(t,0,0,function(){var t=this.utcOffset(),n="+";return t<0&&(t=-t,n="-"),n+q(~~(t/60),2)+e+q(~~t%60,2)})}function Pe(t,e){var n=(e||"").match(t);if(null===n)return null;var r=n[n.length-1]||[],i=(r+"").match(Xi)||["-",0,0],o=+(60*i[1])+_(i[2]);return 0===o?0:"+"===i[0]?o:-o}function Le(e,n){var r,i;return n._isUTC?(r=n.clone(),i=(y(e)||s(e)?e.valueOf():Ee(e).valueOf())-r.valueOf(),r._d.setTime(r._d.valueOf()+i),t.updateOffset(r,!1),r):Ee(e).local()}function Re(t){return 15*-Math.round(t._d.getTimezoneOffset()/15)}function Ie(e,n,r){var i,o=this._offset||0;if(!this.isValid())return null!=e?this:NaN;if(null!=e){if("string"==typeof e){if(e=Pe(oi,e),null===e)return this}else Math.abs(e)<16&&!r&&(e=60*e);return!this._isUTC&&n&&(i=Re(this)),this._offset=e,this._isUTC=!0,null!=i&&this.add(i,"m"),o!==e&&(!n||this._changeInProgress?en(this,Ze(e-o,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,t.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?o:Re(this)}function qe(t,e){return null!=t?("string"!=typeof t&&(t=-t),this.utcOffset(t,e),this):-this.utcOffset()}function ze(t){return this.utcOffset(0,t)}function He(t){return this._isUTC&&(this.utcOffset(0,t),this._isUTC=!1,t&&this.subtract(Re(this),"m")),this}function Be(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var t=Pe(ii,this._i);null!=t?this.utcOffset(t):this.utcOffset(0,!0)}return this}function Ue(t){return!!this.isValid()&&(t=t?Ee(t).utcOffset():0,(this.utcOffset()-t)%60===0)}function Ve(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function We(){if(!o(this._isDSTShifted))return this._isDSTShifted;var t={};if(g(t,this),t=xe(t),t._a){var e=t._isUTC?f(t._a):Ee(t._a);this._isDSTShifted=this.isValid()&&w(t._a,e.toArray())>0}else this._isDSTShifted=!1;return this._isDSTShifted}function Ye(){return!!this.isValid()&&!this._isUTC}function Ge(){return!!this.isValid()&&this._isUTC}function Ke(){return!!this.isValid()&&(this._isUTC&&0===this._offset)}function Ze(t,e){var n,r,i,o=t,s=null;return Me(t)?o={ms:t._milliseconds,d:t._days,M:t._months}:a(t)?(o={},e?o[e]=t:o.milliseconds=t):(s=Ji.exec(t))?(n="-"===s[1]?-1:1,o={y:0,d:_(s[hi])*n,h:_(s[di])*n,m:_(s[pi])*n,s:_(s[mi])*n,ms:_(Oe(1e3*s[gi]))*n}):(s=Qi.exec(t))?(n="-"===s[1]?-1:("+"===s[1],1),o={y:Xe(s[2],n),M:Xe(s[3],n),w:Xe(s[4],n),d:Xe(s[5],n),h:Xe(s[6],n),m:Xe(s[7],n),s:Xe(s[8],n)}):null==o?o={}:"object"==typeof o&&("from"in o||"to"in o)&&(i=Qe(Ee(o.from),Ee(o.to)),o={},o.ms=i.milliseconds,o.M=i.months),r=new Ne(o),Me(t)&&l(t,"_locale")&&(r._locale=t._locale),r}function Xe(t,e){var n=t&&parseFloat(t.replace(",","."));return(isNaN(n)?0:n)*e}function Je(t,e){var n={milliseconds:0,months:0};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 Qe(t,e){var n;return t.isValid()&&e.isValid()?(e=Le(e,t),t.isBefore(e)?n=Je(t,e):(n=Je(e,t),n.milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}function tn(t,e){return function(n,r){var i,o;return null===r||isNaN(+r)||(C(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."),o=n,n=r,r=o),n="string"==typeof n?+n:n,i=Ze(n,r),en(this,i,t),this}}function en(e,n,r,i){var o=n._milliseconds,a=Oe(n._days),s=Oe(n._months);e.isValid()&&(i=null==i||i,s&&dt(e,rt(e,"Month")+s*r),a&&it(e,"Date",rt(e,"Date")+a*r),o&&e._d.setTime(e._d.valueOf()+o*r),i&&t.updateOffset(e,a||s))}function nn(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 rn(e,n){var r=e||Ee(),i=Le(r,this).startOf("day"),o=t.calendarFormat(this,i)||"sameElse",a=n&&(E(n[o])?n[o].call(this,r):n[o]);return this.format(a||this.localeData().calendar(o,this,Ee(r)))}function on(){return new v(this)}function an(t,e){var n=y(t)?t:Ee(t);return!(!this.isValid()||!n.isValid())&&(e=P(o(e)?"millisecond":e),"millisecond"===e?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(e).valueOf())}function sn(t,e){var n=y(t)?t:Ee(t);return!(!this.isValid()||!n.isValid())&&(e=P(o(e)?"millisecond":e),"millisecond"===e?this.valueOf()<n.valueOf():this.clone().endOf(e).valueOf()<n.valueOf())}function un(t,e,n,r){return r=r||"()",("("===r[0]?this.isAfter(t,n):!this.isBefore(t,n))&&(")"===r[1]?this.isBefore(e,n):!this.isAfter(e,n))}function ln(t,e){var n,r=y(t)?t:Ee(t);return!(!this.isValid()||!r.isValid())&&(e=P(e||"millisecond"),"millisecond"===e?this.valueOf()===r.valueOf():(n=r.valueOf(),this.clone().startOf(e).valueOf()<=n&&n<=this.clone().endOf(e).valueOf()))}function cn(t,e){return this.isSame(t,e)||this.isAfter(t,e)}function fn(t,e){return this.isSame(t,e)||this.isBefore(t,e)}function hn(t,e,n){var r,i,o;if(!this.isValid())return NaN;if(r=Le(t,this),!r.isValid())return NaN;switch(i=6e4*(r.utcOffset()-this.utcOffset()),e=P(e)){case"year":o=dn(this,r)/12;break;case"month":o=dn(this,r);break;case"quarter":o=dn(this,r)/3;break;case"second":o=(this-r)/1e3;break;case"minute":o=(this-r)/6e4;break;case"hour":o=(this-r)/36e5;break;case"day":o=(this-r-i)/864e5;break;case"week":o=(this-r-i)/6048e5;break;default:o=this-r}return n?o:b(o)}function dn(t,e){var n,r,i=12*(e.year()-t.year())+(e.month()-t.month()),o=t.clone().add(i,"months");return e-o<0?(n=t.clone().add(i-1,"months"),r=(e-o)/(o-n)):(n=t.clone().add(i+1,"months"),r=(e-o)/(n-o)),-(i+r)||0}function pn(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function mn(t){if(!this.isValid())return null;var e=t!==!0,n=e?this.clone().utc():this;return n.year()<0||n.year()>9999?U(n,e?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):E(Date.prototype.toISOString)?e?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",U(n,"Z")):U(n,e?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function gn(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var t="moment",e="";this.isLocal()||(t=0===this.utcOffset()?"moment.utc":"moment.parseZone",e="Z");var n="["+t+'("]',r=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",i="-MM-DD[T]HH:mm:ss.SSS",o=e+'[")]';return this.format(n+r+i+o)}function vn(e){e||(e=this.isUtc()?t.defaultFormatUtc:t.defaultFormat);var n=U(this,e);return this.localeData().postformat(n)}function yn(t,e){return this.isValid()&&(y(t)&&t.isValid()||Ee(t).isValid())?Ze({to:this,from:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()}function bn(t){return this.from(Ee(),t)}function _n(t,e){return this.isValid()&&(y(t)&&t.isValid()||Ee(t).isValid())?Ze({from:this,to:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()}function wn(t){return this.to(Ee(),t)}function xn(t){var e;return void 0===t?this._locale._abbr:(e=ne(t),null!=e&&(this._locale=e),this)}function kn(){return this._locale}function Cn(t){switch(t=P(t)){case"year":this.month(0);case"quarter":case"month":this.date(1);case"week":case"isoWeek":case"day":case"date":this.hours(0);case"hour":this.minutes(0);case"minute":this.seconds(0);case"second":this.milliseconds(0)}return"week"===t&&this.weekday(0),"isoWeek"===t&&this.isoWeekday(1),"quarter"===t&&this.month(3*Math.floor(this.month()/3)),this}function En(t){return t=P(t),void 0===t||"millisecond"===t?this:("date"===t&&(t="day"),this.startOf(t).add(1,"isoWeek"===t?"week":t).subtract(1,"ms"))}function $n(){return this._d.valueOf()-6e4*(this._offset||0)}function Sn(){return Math.floor(this.valueOf()/1e3)}function An(){return new Date(this.valueOf())}function Tn(){var t=this;return[t.year(),t.month(),t.date(),t.hour(),t.minute(),t.second(),t.millisecond()]}function Dn(){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 Fn(){return this.isValid()?this.toISOString():null}function Nn(){return p(this)}function Mn(){return c({},d(this))}function On(){return d(this).overflow}function jn(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}function Pn(t,e){z(0,[t,t.length],0,e)}function Ln(t){return zn.call(this,t,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)}function Rn(t){return zn.call(this,t,this.isoWeek(),this.isoWeekday(),1,4)}function In(){return Ct(this.year(),1,4)}function qn(){var t=this.localeData()._week;return Ct(this.year(),t.dow,t.doy)}function zn(t,e,n,r,i){var o;return null==t?kt(this,r,i).year:(o=Ct(t,r,i),e>o&&(e=o),Hn.call(this,t,e,n,r,i))}function Hn(t,e,n,r,i){var o=xt(t,e,n,r,i),a=_t(o.year,0,o.dayOfYear);return this.year(a.getUTCFullYear()),this.month(a.getUTCMonth()),this.date(a.getUTCDate()),this}function Bn(t){return null==t?Math.ceil((this.month()+1)/3):this.month(3*(t-1)+this.month()%3)}function Un(t){var e=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==t?e:this.add(t-e,"d")}function Vn(t,e){e[gi]=_(1e3*("0."+t))}function Wn(){return this._isUTC?"UTC":""}function Yn(){return this._isUTC?"Coordinated Universal Time":""}function Gn(t){return Ee(1e3*t)}function Kn(){return Ee.apply(null,arguments).parseZone()}function Zn(t){return t}function Xn(t,e,n,r){var i=ne(),o=f().set(r,e);return i[n](o,t)}function Jn(t,e,n){if(a(t)&&(e=t,t=void 0),t=t||"",null!=e)return Xn(t,e,n,"month");var r,i=[];for(r=0;r<12;r++)i[r]=Xn(t,r,n,"month");return i}function Qn(t,e,n,r){"boolean"==typeof t?(a(e)&&(n=e,e=void 0),e=e||""):(e=t,n=e,t=!1,a(e)&&(n=e,e=void 0),e=e||"");var i=ne(),o=t?i._week.dow:0;if(null!=n)return Xn(e,(n+o)%7,r,"day");var s,u=[];for(s=0;s<7;s++)u[s]=Xn(e,(s+o)%7,r,"day");return u}function tr(t,e){return Jn(t,e,"months")}function er(t,e){return Jn(t,e,"monthsShort")}function nr(t,e,n){return Qn(t,e,n,"weekdays")}function rr(t,e,n){return Qn(t,e,n,"weekdaysShort")}function ir(t,e,n){return Qn(t,e,n,"weekdaysMin")}function or(){var t=this._data;return this._milliseconds=co(this._milliseconds),this._days=co(this._days),this._months=co(this._months),t.milliseconds=co(t.milliseconds),t.seconds=co(t.seconds),t.minutes=co(t.minutes),t.hours=co(t.hours),t.months=co(t.months),t.years=co(t.years),this}function ar(t,e,n,r){var i=Ze(e,n);return t._milliseconds+=r*i._milliseconds,t._days+=r*i._days,t._months+=r*i._months,t._bubble()}function sr(t,e){return ar(this,t,e,1)}function ur(t,e){return ar(this,t,e,-1)}function lr(t){return t<0?Math.floor(t):Math.ceil(t)}function cr(){var t,e,n,r,i,o=this._milliseconds,a=this._days,s=this._months,u=this._data;return o>=0&&a>=0&&s>=0||o<=0&&a<=0&&s<=0||(o+=864e5*lr(hr(s)+a),a=0,s=0),u.milliseconds=o%1e3,t=b(o/1e3),u.seconds=t%60,e=b(t/60),u.minutes=e%60,n=b(e/60),u.hours=n%24,a+=b(n/24),i=b(fr(a)),s+=i,a-=lr(hr(i)),r=b(s/12),s%=12,u.days=a,u.months=s,u.years=r,this}function fr(t){return 4800*t/146097}function hr(t){return 146097*t/4800}function dr(t){if(!this.isValid())return NaN;var e,n,r=this._milliseconds;if(t=P(t),"month"===t||"year"===t)return e=this._days+r/864e5,n=this._months+fr(e),"month"===t?n:n/12;switch(e=this._days+Math.round(hr(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 pr(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*_(this._months/12):NaN}function mr(t){return function(){return this.as(t)}}function gr(){return Ze(this)}function vr(t){return t=P(t),this.isValid()?this[t+"s"]():NaN}function yr(t){return function(){return this.isValid()?this._data[t]:NaN}}function br(){return b(this.days()/7)}function _r(t,e,n,r,i){return i.relativeTime(e||1,!!n,t,r)}function wr(t,e,n){var r=Ze(t).abs(),i=So(r.as("s")),o=So(r.as("m")),a=So(r.as("h")),s=So(r.as("d")),u=So(r.as("M")),l=So(r.as("y")),c=i<=Ao.ss&&["s",i]||i<Ao.s&&["ss",i]||o<=1&&["m"]||o<Ao.m&&["mm",o]||a<=1&&["h"]||a<Ao.h&&["hh",a]||s<=1&&["d"]||s<Ao.d&&["dd",s]||u<=1&&["M"]||u<Ao.M&&["MM",u]||l<=1&&["y"]||["yy",l];return c[2]=e,c[3]=+t>0,c[4]=n,_r.apply(null,c)}function xr(t){return void 0===t?So:"function"==typeof t&&(So=t,!0)}function kr(t,e){return void 0!==Ao[t]&&(void 0===e?Ao[t]:(Ao[t]=e,"s"===t&&(Ao.ss=e-1),!0))}function Cr(t){if(!this.isValid())return this.localeData().invalidDate();var e=this.localeData(),n=wr(this,!t,e);return t&&(n=e.pastFuture(+this,n)),e.postformat(n)}function Er(t){return(t>0)-(t<0)||+t}function $r(){if(!this.isValid())return this.localeData().invalidDate();var t,e,n,r=To(this._milliseconds)/1e3,i=To(this._days),o=To(this._months);t=b(r/60),e=b(t/60),r%=60,t%=60,n=b(o/12),o%=12;var a=n,s=o,u=i,l=e,c=t,f=r?r.toFixed(3).replace(/\.?0+$/,""):"",h=this.asSeconds();if(!h)return"P0D";var d=h<0?"-":"",p=Er(this._months)!==Er(h)?"-":"",m=Er(this._days)!==Er(h)?"-":"",g=Er(this._milliseconds)!==Er(h)?"-":"";return d+"P"+(a?p+a+"Y":"")+(s?p+s+"M":"")+(u?m+u+"D":"")+(l||c||f?"T":"")+(l?g+l+"H":"")+(c?g+c+"M":"")+(f?g+f+"S":"")}var Sr,Ar;Ar=Array.prototype.some?Array.prototype.some:function(t){for(var e=Object(this),n=e.length>>>0,r=0;r<n;r++)if(r in e&&t.call(this,e[r],r,e))return!0;return!1};var Tr=t.momentProperties=[],Dr=!1,Fr={};t.suppressDeprecationWarnings=!1,t.deprecationHandler=null;var Nr;Nr=Object.keys?Object.keys:function(t){var e,n=[];for(e in t)l(t,e)&&n.push(e);return n};var Mr={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},Or={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"},jr="Invalid date",Pr="%d",Lr=/\d{1,2}/,Rr={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",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},Ir={},qr={},zr=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,Hr=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,Br={},Ur={},Vr=/\d/,Wr=/\d\d/,Yr=/\d{3}/,Gr=/\d{4}/,Kr=/[+-]?\d{6}/,Zr=/\d\d?/,Xr=/\d\d\d\d?/,Jr=/\d\d\d\d\d\d?/,Qr=/\d{1,3}/,ti=/\d{1,4}/,ei=/[+-]?\d{1,6}/,ni=/\d+/,ri=/[+-]?\d+/,ii=/Z|[+-]\d\d:?\d\d/gi,oi=/Z|[+-]\d\d(?::?\d\d)?/gi,ai=/[+-]?\d+(\.\d{1,3})?/,si=/[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,ui={},li={},ci=0,fi=1,hi=2,di=3,pi=4,mi=5,gi=6,vi=7,yi=8;z("Y",0,0,function(){var t=this.year();return t<=9999?""+t:"+"+t}),z(0,["YY",2],0,function(){return this.year()%100}),z(0,["YYYY",4],0,"year"),z(0,["YYYYY",5],0,"year"),z(0,["YYYYYY",6,!0],0,"year"),j("year","y"),R("year",1),W("Y",ri),W("YY",Zr,Wr),W("YYYY",ti,Gr),W("YYYYY",ei,Kr),W("YYYYYY",ei,Kr),Z(["YYYYY","YYYYYY"],ci),Z("YYYY",function(e,n){n[ci]=2===e.length?t.parseTwoDigitYear(e):_(e)}),Z("YY",function(e,n){n[ci]=t.parseTwoDigitYear(e)}),Z("Y",function(t,e){e[ci]=parseInt(t,10)}),t.parseTwoDigitYear=function(t){return _(t)+(_(t)>68?1900:2e3)};var bi,_i=nt("FullYear",!0);bi=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},z("M",["MM",2],"Mo",function(){return this.month()+1}),z("MMM",0,0,function(t){return this.localeData().monthsShort(this,t)}),z("MMMM",0,0,function(t){return this.localeData().months(this,t)}),j("month","M"),R("month",8),W("M",Zr),W("MM",Zr,Wr),W("MMM",function(t,e){return e.monthsShortRegex(t)}),W("MMMM",function(t,e){return e.monthsRegex(t)}),Z(["M","MM"],function(t,e){e[fi]=_(t)-1}),Z(["MMM","MMMM"],function(t,e,n,r){var i=n._locale.monthsParse(t,r,n._strict);null!=i?e[fi]=i:d(n).invalidMonth=t});var wi=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,xi="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ki="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),Ci=si,Ei=si;z("w",["ww",2],"wo","week"),z("W",["WW",2],"Wo","isoWeek"),j("week","w"),j("isoWeek","W"),R("week",5),R("isoWeek",5),W("w",Zr),W("ww",Zr,Wr),W("W",Zr),W("WW",Zr,Wr),X(["w","ww","W","WW"],function(t,e,n,r){e[r.substr(0,1)]=_(t)});var $i={dow:0,doy:6};z("d",0,"do","day"),z("dd",0,0,function(t){return this.localeData().weekdaysMin(this,t)}),z("ddd",0,0,function(t){return this.localeData().weekdaysShort(this,t)}),z("dddd",0,0,function(t){return this.localeData().weekdays(this,t)}),z("e",0,0,"weekday"),z("E",0,0,"isoWeekday"),j("day","d"),j("weekday","e"),j("isoWeekday","E"),R("day",11),R("weekday",11),R("isoWeekday",11),W("d",Zr),W("e",Zr),W("E",Zr),W("dd",function(t,e){return e.weekdaysMinRegex(t)}),W("ddd",function(t,e){return e.weekdaysShortRegex(t)}),W("dddd",function(t,e){return e.weekdaysRegex(t)}),X(["dd","ddd","dddd"],function(t,e,n,r){var i=n._locale.weekdaysParse(t,r,n._strict);null!=i?e.d=i:d(n).invalidWeekday=t}),X(["d","e","E"],function(t,e,n,r){e[r]=_(t)});var Si="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Ai="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Ti="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Di=si,Fi=si,Ni=si;z("H",["HH",2],0,"hour"),z("h",["hh",2],0,Ut),z("k",["kk",2],0,Vt),z("hmm",0,0,function(){return""+Ut.apply(this)+q(this.minutes(),2)}),z("hmmss",0,0,function(){return""+Ut.apply(this)+q(this.minutes(),2)+q(this.seconds(),2)}),z("Hmm",0,0,function(){return""+this.hours()+q(this.minutes(),2)}),z("Hmmss",0,0,function(){return""+this.hours()+q(this.minutes(),2)+q(this.seconds(),2)}),Wt("a",!0),Wt("A",!1),j("hour","h"),R("hour",13),W("a",Yt),W("A",Yt),W("H",Zr),W("h",Zr),W("k",Zr),W("HH",Zr,Wr),W("hh",Zr,Wr),W("kk",Zr,Wr),W("hmm",Xr),W("hmmss",Jr),W("Hmm",Xr),W("Hmmss",Jr),Z(["H","HH"],di),Z(["k","kk"],function(t,e,n){var r=_(t);e[di]=24===r?0:r}),Z(["a","A"],function(t,e,n){n._isPm=n._locale.isPM(t),n._meridiem=t}),Z(["h","hh"],function(t,e,n){e[di]=_(t),d(n).bigHour=!0}),Z("hmm",function(t,e,n){var r=t.length-2;e[di]=_(t.substr(0,r)),e[pi]=_(t.substr(r)),d(n).bigHour=!0}),Z("hmmss",function(t,e,n){var r=t.length-4,i=t.length-2;e[di]=_(t.substr(0,r)),e[pi]=_(t.substr(r,2)),e[mi]=_(t.substr(i)),d(n).bigHour=!0}),Z("Hmm",function(t,e,n){var r=t.length-2;e[di]=_(t.substr(0,r)),e[pi]=_(t.substr(r))}),Z("Hmmss",function(t,e,n){var r=t.length-4,i=t.length-2;e[di]=_(t.substr(0,r)),e[pi]=_(t.substr(r,2)),e[mi]=_(t.substr(i))});var Mi,Oi=/[ap]\.?m?\.?/i,ji=nt("Hours",!0),Pi={calendar:Mr,longDateFormat:Or,invalidDate:jr,ordinal:Pr,dayOfMonthOrdinalParse:Lr,relativeTime:Rr,months:xi,monthsShort:ki,week:$i,weekdays:Si,weekdaysMin:Ti,weekdaysShort:Ai,meridiemParse:Oi},Li={},Ri={},Ii=/^\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)?)?$/,qi=/^\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)?)?$/,zi=/Z|[+-]\d\d(?::?\d\d)?/,Hi=[["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}/]],Bi=[["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/]],Ui=/^\/?Date\((\-?\d+)/i,Vi=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,Wi={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};t.createFromInputFallback=k("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged and will be removed in an upcoming major release. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(t){t._d=new Date(t._i+(t._useUTC?" UTC":""))}),t.ISO_8601=function(){},t.RFC_2822=function(){};var Yi=k("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var t=Ee.apply(null,arguments);return this.isValid()&&t.isValid()?t<this?this:t:m()}),Gi=k("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var t=Ee.apply(null,arguments);return this.isValid()&&t.isValid()?t>this?this:t:m()}),Ki=function(){return Date.now?Date.now():+new Date},Zi=["year","quarter","month","week","day","hour","minute","second","millisecond"];je("Z",":"),je("ZZ",""),W("Z",oi),W("ZZ",oi),Z(["Z","ZZ"],function(t,e,n){n._useUTC=!0,n._tzm=Pe(oi,t)});var Xi=/([\+\-]|\d\d)/gi;t.updateOffset=function(){};var Ji=/^(\-|\+)?(?:(\d*)[. ])?(\d+)\:(\d+)(?:\:(\d+)(\.\d*)?)?$/,Qi=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;Ze.fn=Ne.prototype,Ze.invalid=Fe;var to=tn(1,"add"),eo=tn(-1,"subtract");t.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",t.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var no=k("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(t){return void 0===t?this.localeData():this.locale(t)});z(0,["gg",2],0,function(){return this.weekYear()%100}),z(0,["GG",2],0,function(){return this.isoWeekYear()%100}),Pn("gggg","weekYear"),Pn("ggggg","weekYear"),Pn("GGGG","isoWeekYear"),Pn("GGGGG","isoWeekYear"),j("weekYear","gg"),j("isoWeekYear","GG"),R("weekYear",1),R("isoWeekYear",1),W("G",ri),W("g",ri),W("GG",Zr,Wr),W("gg",Zr,Wr),W("GGGG",ti,Gr),W("gggg",ti,Gr),W("GGGGG",ei,Kr),W("ggggg",ei,Kr),X(["gggg","ggggg","GGGG","GGGGG"],function(t,e,n,r){e[r.substr(0,2)]=_(t)}),X(["gg","GG"],function(e,n,r,i){n[i]=t.parseTwoDigitYear(e)}),z("Q",0,"Qo","quarter"),j("quarter","Q"),R("quarter",7),W("Q",Vr),Z("Q",function(t,e){e[fi]=3*(_(t)-1)}),z("D",["DD",2],"Do","date"),j("date","D"),R("date",9),W("D",Zr),W("DD",Zr,Wr),W("Do",function(t,e){return t?e._dayOfMonthOrdinalParse||e._ordinalParse:e._dayOfMonthOrdinalParseLenient}),Z(["D","DD"],hi),Z("Do",function(t,e){e[hi]=_(t.match(Zr)[0])});var ro=nt("Date",!0);z("DDD",["DDDD",3],"DDDo","dayOfYear"),j("dayOfYear","DDD"),R("dayOfYear",4),W("DDD",Qr),W("DDDD",Yr),Z(["DDD","DDDD"],function(t,e,n){n._dayOfYear=_(t)}),z("m",["mm",2],0,"minute"),j("minute","m"),R("minute",14),W("m",Zr),W("mm",Zr,Wr),Z(["m","mm"],pi);var io=nt("Minutes",!1);z("s",["ss",2],0,"second"),j("second","s"),R("second",15),W("s",Zr),W("ss",Zr,Wr),Z(["s","ss"],mi);var oo=nt("Seconds",!1);z("S",0,0,function(){return~~(this.millisecond()/100)}),z(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),z(0,["SSS",3],0,"millisecond"),z(0,["SSSS",4],0,function(){return 10*this.millisecond()}),z(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),z(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),z(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),z(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),z(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),j("millisecond","ms"),R("millisecond",16),W("S",Qr,Vr),W("SS",Qr,Wr),W("SSS",Qr,Yr);var ao;for(ao="SSSS";ao.length<=9;ao+="S")W(ao,ni);for(ao="S";ao.length<=9;ao+="S")Z(ao,Vn);var so=nt("Milliseconds",!1);z("z",0,0,"zoneAbbr"),z("zz",0,0,"zoneName");var uo=v.prototype;uo.add=to,uo.calendar=rn,uo.clone=on,uo.diff=hn,uo.endOf=En,uo.format=vn,uo.from=yn,uo.fromNow=bn,uo.to=_n,uo.toNow=wn,uo.get=ot,uo.invalidAt=On,uo.isAfter=an,uo.isBefore=sn,uo.isBetween=un,uo.isSame=ln,uo.isSameOrAfter=cn,uo.isSameOrBefore=fn,uo.isValid=Nn,uo.lang=no,uo.locale=xn,uo.localeData=kn,uo.max=Gi,uo.min=Yi,uo.parsingFlags=Mn,uo.set=at,uo.startOf=Cn,uo.subtract=eo,uo.toArray=Tn,uo.toObject=Dn,uo.toDate=An,uo.toISOString=mn,uo.inspect=gn,uo.toJSON=Fn,uo.toString=pn,uo.unix=Sn,uo.valueOf=$n,uo.creationData=jn,uo.year=_i,uo.isLeapYear=et,uo.weekYear=Ln,uo.isoWeekYear=Rn,uo.quarter=uo.quarters=Bn,uo.month=pt,uo.daysInMonth=mt,uo.week=uo.weeks=At,uo.isoWeek=uo.isoWeeks=Tt,uo.weeksInYear=qn,uo.isoWeeksInYear=In,uo.date=ro,uo.day=uo.days=Lt,uo.weekday=Rt,uo.isoWeekday=It,uo.dayOfYear=Un,uo.hour=uo.hours=ji,uo.minute=uo.minutes=io,uo.second=uo.seconds=oo,uo.millisecond=uo.milliseconds=so,uo.utcOffset=Ie,uo.utc=ze,uo.local=He,uo.parseZone=Be,uo.hasAlignedHourOffset=Ue,uo.isDST=Ve,uo.isLocal=Ye,uo.isUtcOffset=Ge,uo.isUtc=Ke,uo.isUTC=Ke,uo.zoneAbbr=Wn,uo.zoneName=Yn,uo.dates=k("dates accessor is deprecated. Use date instead.",ro),
|
||
uo.months=k("months accessor is deprecated. Use month instead",pt),uo.years=k("years accessor is deprecated. Use year instead",_i),uo.zone=k("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",qe),uo.isDSTShifted=k("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",We);var lo=A.prototype;lo.calendar=T,lo.longDateFormat=D,lo.invalidDate=F,lo.ordinal=N,lo.preparse=Zn,lo.postformat=Zn,lo.relativeTime=M,lo.pastFuture=O,lo.set=$,lo.months=lt,lo.monthsShort=ct,lo.monthsParse=ht,lo.monthsRegex=vt,lo.monthsShortRegex=gt,lo.week=Et,lo.firstDayOfYear=St,lo.firstDayOfWeek=$t,lo.weekdays=Nt,lo.weekdaysMin=Ot,lo.weekdaysShort=Mt,lo.weekdaysParse=Pt,lo.weekdaysRegex=qt,lo.weekdaysShortRegex=zt,lo.weekdaysMinRegex=Ht,lo.isPM=Gt,lo.meridiem=Kt,Qt("en",{dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(t){var e=t%10,n=1===_(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th";return t+n}}),t.lang=k("moment.lang is deprecated. Use moment.locale instead.",Qt),t.langData=k("moment.langData is deprecated. Use moment.localeData instead.",ne);var co=Math.abs,fo=mr("ms"),ho=mr("s"),po=mr("m"),mo=mr("h"),go=mr("d"),vo=mr("w"),yo=mr("M"),bo=mr("y"),_o=yr("milliseconds"),wo=yr("seconds"),xo=yr("minutes"),ko=yr("hours"),Co=yr("days"),Eo=yr("months"),$o=yr("years"),So=Math.round,Ao={ss:44,s:45,m:45,h:22,d:26,M:11},To=Math.abs,Do=Ne.prototype;return Do.isValid=De,Do.abs=or,Do.add=sr,Do.subtract=ur,Do.as=dr,Do.asMilliseconds=fo,Do.asSeconds=ho,Do.asMinutes=po,Do.asHours=mo,Do.asDays=go,Do.asWeeks=vo,Do.asMonths=yo,Do.asYears=bo,Do.valueOf=pr,Do._bubble=cr,Do.clone=gr,Do.get=vr,Do.milliseconds=_o,Do.seconds=wo,Do.minutes=xo,Do.hours=ko,Do.days=Co,Do.weeks=br,Do.months=Eo,Do.years=$o,Do.humanize=Cr,Do.toISOString=$r,Do.toString=$r,Do.toJSON=$r,Do.locale=xn,Do.localeData=kn,Do.toIsoString=k("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",$r),Do.lang=no,z("X",0,0,"unix"),z("x",0,0,"valueOf"),W("x",ri),W("X",ai),Z("X",function(t,e,n){n._d=new Date(1e3*parseFloat(t,10))}),Z("x",function(t,e,n){n._d=new Date(_(t))}),t.version="2.21.0",e(Ee),t.fn=uo,t.min=Se,t.max=Ae,t.now=Ki,t.utc=f,t.unix=Gn,t.months=tr,t.isDate=s,t.locale=Qt,t.invalid=m,t.duration=Ze,t.isMoment=y,t.weekdays=nr,t.parseZone=Kn,t.localeData=ne,t.isDuration=Me,t.monthsShort=er,t.weekdaysMin=ir,t.defineLocale=te,t.updateLocale=ee,t.locales=re,t.weekdaysShort=rr,t.normalizeUnits=P,t.relativeTimeRounding=xr,t.relativeTimeThreshold=kr,t.calendarFormat=nn,t.prototype=uo,t.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:"YYYY-[W]WW",MONTH:"YYYY-MM"},t}),function(){var t,e,n,r,o,a,s,u,l,c,f,h,d={}.hasOwnProperty,p=function(t,e){function n(){this.constructor=t}for(var r in e)d.call(e,r)&&(t[r]=e[r]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t};s={inputs:"input, textarea, select",excluded:"input[type=hidden], input[type=file], :disabled",focus:"first",validationMinlength:3,validateIfUnchanged:!1,interceptSubmit:!0,messages:{},validators:{},showErrors:!0,errorClass:"checksley-error",successClass:"checksley-ok",validatedClass:"checksley-validated",onlyOneErrorElement:!1,containerClass:"checksley-error-list",containerGlobalSearch:!1,containerPreferenceSelector:".errors-box",containerErrorsSelector:"li",errors:{classHandler:function(t,e){return t},container:function(t,e){return t.parent()},errorsWrapper:"<ul />",errorElem:"<li />"},listeners:{onFieldValidate:function(t,e){return!1},onFormSubmit:function(t,e,n){},onFieldError:function(t,e,n){},onFieldSuccess:function(t,e,n){}}},f={notnull:function(t){return t.length>0},notblank:function(t){return _.isString(t)&&""!==t.replace(/^\s+/g,"").replace(/\s+$/g,"")},required:function(t){var e,n,r;if(_.isArray(t)){for(n=0,r=t.length;n<r;n++)if(e=t[n],f.required(t[i]))return!0;return!1}return f.notnull(t)&&f.notblank(t)},type:function(t,e){var n;switch(n=null,e){case"number":n=/^-?(?:\d+|\d{1,3}(?:,\d{3})+)?(?:\.\d+)?$/;break;case"digits":n=/^\d+$/;break;case"alphanum":n=/^\w+$/;break;case"email":n=/^((([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(\.([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+)*)|((\x22)((((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(([\x01-\x08\x0b\x0c\x0e-\x1f\x7f]|\x21|[\x23-\x5b]|[\x5d-\x7e]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(\\([\x01-\x09\x0b\x0c\x0d-\x7f]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))))*(((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(\x22)))@((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))$/i;break;case"url":/(https?|s?ftp|git)/i.test(t)||(t="http://"+t),n=/^(https?|s?ftp|git):\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i;break;case"urlstrict":n=/^(https?|s?ftp|git):\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i;break;case"dateIso":n=/^(\d{4})\D?(0[1-9]|1[0-2])\D?([12]\d|0[1-9]|3[01])$/;break;case"phone":n=/^((\+\d{1,3}(-| )?\(?\d\)?(-| )?\d{1,5})|(\(?\d{2,6}\)?))(-| )?(\d{3,4})(-| )?(\d{4})(( x| ext)\d{1,5}){0,1}$/}return!!n&&n.test(t)},regexp:function(t,e,n){return new RegExp(e,n.options.regexpFlag||"").test(t)},minlength:function(t,e){return t.length>=e},maxlength:function(t,e){return t.length<=e},rangelength:function(t,e){return t.length>=e[0]&&t.length<=e[1]},min:function(t,e){return Number(t)>=e},max:function(t,e){return Number(t)<=e},range:function(t,e){return t>=e[0]&&t<=e[1]},equalto:function(t,e,n){return n.options.validateIfUnchanged=!0,t===$(e).val()},mincheck:function(t,e){return f.minlength(t,e)},maxcheck:function(t,e){return f.maxlength(t,e)},rangecheck:function(t,e){return f.rangelength(t,e)}},l={defaultMessage:"This value seems to be invalid.",type:{email:"This value should be a valid email.",url:"This value should be a valid url.",urlstrict:"This value should be a valid url.",number:"This value should be a valid number.",digits:"This value should be digits.",dateIso:"This value should be a valid date (YYYY-MM-DD).",alphanum:"This value should be alphanumeric.",phone:"This value should be a valid phone number."},notnull:"This value should not be null.",notblank:"This value should not be blank.",required:"This value is required.",regexp:"This value seems to be invalid.",min:"This value should be greater than or equal to %s.",max:"This value should be lower than or equal to %s.",range:"This value should be between %s and %s.",minlength:"This value is too short. It should have %s characters or more.",maxlength:"This value is too long. It should have %s characters or less.",rangelength:"This value length is invalid. It should be between %s and %s characters long.",mincheck:"You must select at least %s choices.",maxcheck:"You must select %s choices or less.",rangecheck:"You must select between %s and %s choices.",equalto:"This value should be the same."},u=function(t,e){return _.isArray(e)||(e=[e]),t.indexOf("%s")>=0?t.replace(/%s/g,function(t){return String(e.shift())}):t.indexOf("%e")>=0?t.replace(/%e/g,function(t){return String($(e.shift()).val())}):t},c=function(t){return parseInt(t,10)},h=function(t){var e,i,a;if(e=$(this),!e.is("form, input, select, textarea"))throw"element is not a valid element for checksley";if(i=e.data("checksley"),void 0!==i&&null!==i||(a={},_.isPlainObject(t)&&(a=t),i=e.is("input[type=radio], input[type=checkbox]")?new r(e,t):e.is("input, select, textarea")?new n(e,t):new o(e,t)),!_.isString(t))return i;switch(t){case"validate":return i.validate();case"destroy":return i.destroy();case"reset":return i.reset()}},t=function(){function t(t){void 0===t?this.jq=window.jQuery||window.Zepto:this.jq=t,this.messages={"default":{defaultMessage:"Invalid"}},this.lang=this.detectLang()}return t.prototype.updateDefaults=function(t){return _.merge(s,t)},t.prototype.updateValidators=function(t){return _.extend(f,t)},t.prototype.updateMessages=function(t,e,n){return null==n&&(n=!1),void 0===this.messages[t]&&(this.messages[t]={}),n?this.messages[t]=e:_.merge(this.messages[t],e)},t.prototype.injectPlugin=function(){return this.jq.fn.checksley=h},t.prototype.setLang=function(t){return this.lang=t},t.prototype.detectLang=function(){return this.jq("html").attr("lang")||"default"},t.prototype.getMessage=function(t,e){var n;return void 0===e&&(e=this.lang),l=this.messages[e],void 0===l&&(l={}),n=l[t],void 0===n?"default"===e?this.getMessage("defaultMessage",e):this.getMessage(t,"default"):n},t}(),n=function(){function t(t,e){null==e&&(e={}),this.id=_.uniqueId("field-"),this.element=$(t),this.validatedOnce=!1,this.options=_.merge({},s,e),this.isRadioOrCheckbox=!1,this.validators=f,this.resetConstraints(),this.bindEvents(),this.bindData()}return t.prototype.bindData=function(){return this.element.data("checksley-field",this)},t.prototype.unbindData=function(){return this.element.data("checksley-field",null)},t.prototype.focus=function(){return this.element.focus()},t.prototype.eventValidate=function(t){var e,n;return e=this.element.data("trigger"),n=this.getValue(),"keyup"===t.type&&!/keyup/i.test(e)&&!this.validatedOnce||("change"===t.type&&!/change/i.test(e)&&!this.validatedOnce||(n.length<this.options.validationMinlength&&!this.validatedOnce||this.validate()))},t.prototype.unbindEvents=function(){return this.element.off("."+this.id)},t.prototype.bindEvents=function(){var t;if(this.unbindEvents(),t=this.element.data("trigger"),_.isString(t)&&this.element.on(""+t+"."+this.id,_.bind(this.eventValidate,this)),this.element.is("select")&&"change"!==t&&this.element.on("change."+this.id,_.bind(this.eventValidate,this)),"keyup"!==t)return this.element.on("keyup."+this.id,_.bind(this.eventValidate,this))},t.prototype.errorClassTarget=function(){return this.element},t.prototype.resetHtml5Constraints=function(){var t,e,n,r;if(this.element.prop("required")&&(this.required=!0),r=new RegExp(this.element.attr("type"),"i"),r.test("email url number range"))switch(n=this.element.attr("type")){case"range":if(e=this.element.attr("min"),t=this.element.attr("max"),e&&t)return this.constraints[n]={valid:!0,params:[c(e),c(t)],fn:this.validators[n]}}},t.prototype.resetConstraints=function(){var t,e,n,r;this.constraints={},this.valid=!0,this.required=!1,this.resetHtml5Constraints(),this.element.addClass("checksley-validated"),n=this.validators,r=[];for(t in n)e=n[t],void 0!==this.element.data(t)&&(this.constraints[t]={valid:!0,params:this.element.data(t),fn:e},"required"===t?r.push(this.required=!0):r.push(void 0));return r},t.prototype.hasConstraints=function(){return!_.isEmpty(this.constraints)},t.prototype.validate=function(t){return this.validatedOnce=!0,this.hasConstraints()?this.options.listeners.onFieldValidate(this.element,this)?(this.reset(),null):this.required||""!==this.getValue()?this.applyValidators(t):(this.reset(),null):null},t.prototype.applyValidators=function(t){var e,n,r,i,o,a;void 0!==t&&null!==t||(t=this.options.showErrors),i=this.getValue(),o=!0,n=this.options.listeners,t&&this.removeErrors(),a=this.constraints;for(r in a)e=a[r],e.valid=e.fn(this.getValue(),e.params,this),e.valid===!1?(o=!1,t&&this.manageError(r,e),n.onFieldError(this.element,e,this)):n.onFieldSuccess(this.element,e,this);return this.handleClasses(o),o},t.prototype.handleClasses=function(t){var e,n,r;switch(e=this.options.errors.classHandler(this.element,!1),n=this.options.errorClass,r=this.options.successClass,t){case null:return e.removeClass(n),e.removeClass(r);case!1:return e.removeClass(r),e.addClass(n);case!0:return e.removeClass(n),e.addClass(r)}},t.prototype.manageError=function(t,e){var n,r;return n=this.element.data(),r=void 0!==n.errorMessage?n.errorMessage:"type"===t?a.getMessage("type")[e.params]:a.getMessage(t),void 0===r&&(r=a.getMessage("default")),e.params&&(r=u(r,_.clone(e.params,!0))),this.addError(this.makeErrorElement(t,r))},t.prototype.setErrors=function(t){var e,n,r,i;for(this.removeErrors(),_.isArray(t)||(t=[t]),i=[],n=0,r=t.length;n<r;n++)e=t[n],i.push(this.addError(this.makeErrorElement("custom",e)));return i},t.prototype.makeErrorElement=function(t,e){var n;return n=$("<li />",{"class":"checksley-"+t}),n.html(e),n.addClass(t),n},t.prototype.addError=function(t){var e,n;if(e=this.getErrorContainer(),n=this.options.containerErrorsSelector,!this.options.onlyOneErrorElement||!e.find(n).length)return e.append(t)},t.prototype.reset=function(){return this.handleClasses(null),this.resetConstraints(),this.removeErrors()},t.prototype.removeErrors=function(){return $("#"+this.errorContainerId()).remove()},t.prototype.getValue=function(){return this.element.val()},t.prototype.errorContainerId=function(){return"checksley-error-"+this.id},t.prototype.errorContainerClass=function(){return"checksley-error-list"},t.prototype.getErrorContainer=function(){var t,e,n,r,i;return n=$("#"+this.errorContainerId()),1===n.length?n:(r={"class":this.errorContainerClass(),id:this.errorContainerId()},n=$("<ul />",r),e=this.element.data("error-container"),void 0===e?(this.isRadioOrCheckbox?n.insertAfter(this.element.parent()):n.insertAfter(this.element),n):(t=this.options.errors.containerGlobalSearch?$(e):this.element.closest(e),i=this.options.errors.containerPreferenceSelector,1===t.find(i).length&&(t=t.find(i)),t.append(n),n))},t.prototype.destroy=function(){return this.unbindEvents(),this.removeErrors(),this.unbindData()},t.prototype.setForm=function(t){return this.form=t},t}(),r=function(t){function e(t,n){e.__super__.constructor.call(this,t,n),this.isRadioOrCheckbox=!0,this.isRadio=this.element.is("input[type=radio]"),this.isCheckbox=this.element.is("input[type=checkbox]")}return p(e,t),e.prototype.getSiblings=function(){var t;return t=this.element.data("group"),void 0===t?"input[name="+this.element.attr("name")+"]":'[data-group="'+t+'"]'},e.prototype.getValue=function(){var t,e,n,r,i;if(this.isRadio)return $(""+this.getSiblings()+":checked").val()||"";if(this.isCheckbox){for(e=[],i=$(""+this.getSiblings()+":checked"),n=0,r=i.length;n<r;n++)t=i[n],e.push($(t).val());return e}},e.prototype.unbindEvents=function(){var t,e,n,r,i;for(r=$(this.getSiblings()),i=[],e=0,n=r.length;e<n;e++)t=r[e],i.push($(t).off("."+this.id));return i},e.prototype.bindEvents=function(){var t,e,n,r,i,o;for(this.unbindEvents(),e=this.element.data("trigger"),i=$(this.getSiblings()),o=[],n=0,r=i.length;n<r;n++)t=i[n],t=$(t),_.isString(e)&&t.on(""+e+"."+this.id,_.bind(this.eventValidate,this)),"change"!==e?o.push(t.on("change."+this.id,_.bind(this.eventValidate,this))):o.push(void 0);return o},e}(n),e=function(t){function e(t,n){e.__super__.constructor.call(this,t,n)}return p(e,t),e.prototype.getComponents=function(){var t,e,n,r,i;for(t=[],n=this.element.data("composed").split(","),r=0,i=n.length;r<i;r++)e=n[r],t.push(this.element.find("[name="+e+"]"));return t},e.prototype.getValue=function(){var t;return t=_.map(this.getComponents(),function(t){return t.val()}).join(this.element.data("composed-joiner")),this.element.val(t),t},e.prototype.unbindEvents=function(){var t,e,n,r,i;for(r=$(this.getComponents()),i=[],e=0,n=r.length;e<n;e++)t=r[e],i.push(t.off("."+this.id));return i},e.prototype.bindEvents=function(){var t,e,n,r,i,o;for(this.unbindEvents(),e=this.element.data("trigger"),i=$(this.getComponents()),o=[],n=0,r=i.length;n<r;n++)t=i[n],_.isString(e)&&t.on(""+e+"."+this.id,_.bind(this.eventValidate,this)),"change"!==e?o.push(t.on("change."+this.id,_.bind(this.eventValidate,this))):o.push(void 0);return o},e}(n),o=function(){function t(t,e){null==e&&(e={}),this.id=_.uniqueId("checksleyform-"),this.element=$(t),this.options=_.extend({},s,e),this.initialize()}return t.prototype.initialize=function(){return this.initializeFields(),this.bindEvents(),this.bindData()},t.prototype.bindData=function(){return this.element.data("checksley",this)},t.prototype.unbindData=function(){return this.element.data("checksley",null)},t.prototype.initializeFields=function(){var t,e,n,r,i,o,s,u,l,c,f;for(this.fields=[],this.fieldsByName={},l=this.element.find(this.options.inputs),i=0,s=l.length;i<s;i++)r=l[i],e=$(r),e.is(this.options.excluded)||(n=e.is("input[type=radio], input[type=checkbox]")?new a.FieldMultiple(r,this.options):new a.Field(r,this.options),n.setForm(this),this.fields.push(n),this.fieldsByName[e.attr("name")]=n);for(c=this.element.find("[data-composed]"),f=[],o=0,u=c.length;o<u;o++)t=c[o],n=new a.ComposedField(t,this.options),n.setForm(this),f.push(this.fields.push(n));return f},t.prototype.setErrors=function(t){var e,n,r,i;i=[];for(r in t)e=t[r],n=this.fieldsByName[r],n?i.push(n.setErrors(e)):i.push(void 0);return i},t.prototype.validate=function(){var t,e,n,r,i,o;for(n=!0,e=[],o=this.fields,r=0,i=o.length;r<i;r++)t=o[r],t.validate()===!1&&(n=!1,e.push(t));if(!n)switch(this.options.focus){case"first":e[0].focus();break;case"last":e[e.length].focus()}return n},t.prototype.bindEvents=function(){var t;return t=this,this.unbindEvents(),this.element.on("submit."+this.id,function(e){var n;if(n=t.validate(),t.options.listeners.onFormSubmit(n,e,t),t.options.interceptSubmit&&!n)return e.preventDefault()})},t.prototype.unbindEvents=function(){return this.element.off("."+this.id)},t.prototype.removeErrors=function(){var t,e,n,r,i;for(r=this.fields,i=[],e=0,n=r.length;e<n;e++)t=r[e],i.push(t.reset());return i},t.prototype.destroy=function(){var t,e,n,r;for(this.unbindEvents(),this.unbindData(),r=this.fields,e=0,n=r.length;e<n;e++)t=r[e],t.destroy();return this.field=[]},t.prototype.reset=function(){var t,e,n,r,i;for(r=this.fields,i=[],e=0,n=r.length;e<n;e++)t=r[e],i.push(t.reset());return i},t}(),a=new t,a.updateMessages("default",l),a.injectPlugin(),a.Checksley=t,a.Form=o,a.Field=n,a.FieldMultiple=r,a.ComposedField=e,this.checksley=a}.call(this),function(t,e){"use strict";var n;if("object"==typeof exports){try{n=require("moment")}catch(r){}module.exports=e(n)}else"function"==typeof define&&define.amd?define(function(t){var r="moment";try{n=t(r)}catch(i){}return e(n)}):t.Pikaday=e(t.moment)}(this,function(t){"use strict";var e="function"==typeof t,n=!!window.addEventListener,r=window.document,i=window.setTimeout,o=function(t,e,r,i){n?t.addEventListener(e,r,!!i):t.attachEvent("on"+e,r)},a=function(t,e,r,i){n?t.removeEventListener(e,r,!!i):t.detachEvent("on"+e,r)},s=function(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")},u=function(t,e){return(" "+t.className+" ").indexOf(" "+e+" ")!==-1},l=function(t,e){u(t,e)||(t.className=""===t.className?e:t.className+" "+e)},c=function(t,e){t.className=s((" "+t.className+" ").replace(" "+e+" "," "))},f=function(t){return/Array/.test(Object.prototype.toString.call(t))},h=function(t){return/Date/.test(Object.prototype.toString.call(t))&&!isNaN(t.getTime())},d=function(t){var e=t.getDay();return 0===e||6===e},p=function(t){return t%4===0&&t%100!==0||t%400===0},m=function(t,e){return[31,p(t)?29:28,31,30,31,30,31,31,30,31,30,31][e]},g=function(t){h(t)&&t.setHours(0,0,0,0)},v=function(t,e){return t.getTime()===e.getTime()},y=function(t,e,n){var r,i;for(r in e)i=void 0!==t[r],i&&"object"==typeof e[r]&&null!==e[r]&&void 0===e[r].nodeName?h(e[r])?n&&(t[r]=new Date(e[r].getTime())):f(e[r])?n&&(t[r]=e[r].slice(0)):t[r]=y({},e[r],n):!n&&i||(t[r]=e[r]);return t},b=function(t,e,n){var i;r.createEvent?(i=r.createEvent("HTMLEvents"),i.initEvent(e,!0,!1),i=y(i,n),t.dispatchEvent(i)):r.createEventObject&&(i=r.createEventObject(),i=y(i,n),t.fireEvent("on"+e,i))},_=function(t){return t.month<0&&(t.year-=Math.ceil(Math.abs(t.month)/12),t.month+=12),t.month>11&&(t.year+=Math.floor(Math.abs(t.month)/12),t.month-=12),t},w={field:null,bound:void 0,position:"bottom left",reposition:!0,format:"YYYY-MM-DD",toString:null,parse:null,defaultDate:null,setDefaultDate:!1,firstDay:0,formatStrict:!1,minDate:null,maxDate:null,yearRange:10,showWeekNumber:!1,pickWholeWeek:!1,minYear:0,maxYear:9999,minMonth:void 0,maxMonth:void 0,startRange:null,endRange:null,isRTL:!1,yearSuffix:"",showMonthAfterYear:!1,showDaysInNextAndPreviousMonths:!1,enableSelectionDaysInNextAndPreviousMonths:!1,numberOfMonths:1,mainCalendar:"left",container:void 0,blurFieldOnSelect:!0,i18n:{previousMonth:"Previous Month",nextMonth:"Next Month",months:["January","February","March","April","May","June","July","August","September","October","November","December"],weekdays:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],weekdaysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},theme:null,events:[],onSelect:null,onOpen:null,onClose:null,onDraw:null,keyboardInput:!0},x=function(t,e,n){for(e+=t.firstDay;e>=7;)e-=7;return n?t.i18n.weekdaysShort[e]:t.i18n.weekdays[e]},k=function(t){var e=[],n="false";if(t.isEmpty){if(!t.showDaysInNextAndPreviousMonths)return'<td class="is-empty"></td>';e.push("is-outside-current-month"),t.enableSelectionDaysInNextAndPreviousMonths||e.push("is-selection-disabled")}return t.isDisabled&&e.push("is-disabled"),t.isToday&&e.push("is-today"),t.isSelected&&(e.push("is-selected"),n="true"),t.hasEvent&&e.push("has-event"),t.isInRange&&e.push("is-inrange"),t.isStartRange&&e.push("is-startrange"),t.isEndRange&&e.push("is-endrange"),'<td data-day="'+t.day+'" class="'+e.join(" ")+'" aria-selected="'+n+'"><button class="pika-button pika-day" type="button" data-pika-year="'+t.year+'" data-pika-month="'+t.month+'" data-pika-day="'+t.day+'">'+t.day+"</button></td>"},C=function(t,e,n){var r=new Date(n,0,1),i=Math.ceil(((new Date(n,e,t)-r)/864e5+r.getDay()+1)/7);return'<td class="pika-week">'+i+"</td>"},E=function(t,e,n,r){return'<tr class="pika-row'+(n?" pick-whole-week":"")+(r?" is-selected":"")+'">'+(e?t.reverse():t).join("")+"</tr>"},$=function(t){return"<tbody>"+t.join("")+"</tbody>"},S=function(t){var e,n=[];for(t.showWeekNumber&&n.push("<th></th>"),e=0;e<7;e++)n.push('<th scope="col"><abbr title="'+x(t,e)+'">'+x(t,e,!0)+"</abbr></th>");return"<thead><tr>"+(t.isRTL?n.reverse():n).join("")+"</tr></thead>"},A=function(t,e,n,r,i,o){var a,s,u,l,c,h=t._o,d=n===h.minYear,p=n===h.maxYear,m='<div id="'+o+'" class="pika-title" role="heading" aria-live="assertive">',g=!0,v=!0;for(u=[],a=0;a<12;a++)u.push('<option value="'+(n===i?a-e:12+a-e)+'"'+(a===r?' selected="selected"':"")+(d&&a<h.minMonth||p&&a>h.maxMonth?'disabled="disabled"':"")+">"+h.i18n.months[a]+"</option>");for(l='<div class="pika-label">'+h.i18n.months[r]+'<select class="pika-select pika-select-month" tabindex="-1">'+u.join("")+"</select></div>",f(h.yearRange)?(a=h.yearRange[0],s=h.yearRange[1]+1):(a=n-h.yearRange,s=1+n+h.yearRange),u=[];a<s&&a<=h.maxYear;a++)a>=h.minYear&&u.push('<option value="'+a+'"'+(a===n?' selected="selected"':"")+">"+a+"</option>");return c='<div class="pika-label">'+n+h.yearSuffix+'<select class="pika-select pika-select-year" tabindex="-1">'+u.join("")+"</select></div>",m+=h.showMonthAfterYear?c+l:l+c,d&&(0===r||h.minMonth>=r)&&(g=!1),p&&(11===r||h.maxMonth<=r)&&(v=!1),0===e&&(m+='<button class="pika-prev'+(g?"":" is-disabled")+'" type="button">'+h.i18n.previousMonth+"</button>"),e===t._o.numberOfMonths-1&&(m+='<button class="pika-next'+(v?"":" is-disabled")+'" type="button">'+h.i18n.nextMonth+"</button>"),m+="</div>"},T=function(t,e,n){return'<table cellpadding="0" cellspacing="0" class="pika-table" role="grid" aria-labelledby="'+n+'">'+S(t)+$(e)+"</table>"},D=function(a){var s=this,l=s.config(a);s._onMouseDown=function(t){if(s._v){t=t||window.event;var e=t.target||t.srcElement;if(e)if(u(e,"is-disabled")||(!u(e,"pika-button")||u(e,"is-empty")||u(e.parentNode,"is-disabled")?u(e,"pika-prev")?s.prevMonth():u(e,"pika-next")&&s.nextMonth():(s.setDate(new Date(e.getAttribute("data-pika-year"),e.getAttribute("data-pika-month"),e.getAttribute("data-pika-day"))),l.bound&&i(function(){s.hide(),l.blurFieldOnSelect&&l.field&&l.field.blur()},100))),u(e,"pika-select"))s._c=!0;else{if(!t.preventDefault)return t.returnValue=!1,!1;t.preventDefault()}}},s._onChange=function(t){t=t||window.event;var e=t.target||t.srcElement;e&&(u(e,"pika-select-month")?s.gotoMonth(e.value):u(e,"pika-select-year")&&s.gotoYear(e.value))},s._onKeyChange=function(t){if(t=t||window.event,s.isVisible())switch(t.keyCode){case 13:case 27:l.field&&l.field.blur();break;case 37:t.preventDefault(),s.adjustDate("subtract",1);break;case 38:s.adjustDate("subtract",7);break;case 39:s.adjustDate("add",1);break;case 40:s.adjustDate("add",7)}},s._onInputChange=function(n){var r;n.firedBy!==s&&(l.parse?r=l.parse(l.field.value,l.format):e?(r=t(l.field.value,l.format,l.formatStrict),r=r&&r.isValid()?r.toDate():null):r=new Date(Date.parse(l.field.value)),h(r)&&s.setDate(r),s._v||s.show())},s._onInputFocus=function(){s.show()},s._onInputClick=function(){s.show()},s._onInputBlur=function(){var t=r.activeElement;do if(u(t,"pika-single"))return;while(t=t.parentNode);s._c||(s._b=i(function(){s.hide()},50)),s._c=!1},s._onClick=function(t){t=t||window.event;var e=t.target||t.srcElement,r=e;if(e){!n&&u(e,"pika-select")&&(e.onchange||(e.setAttribute("onchange","return;"),o(e,"change",s._onChange)));do if(u(r,"pika-single")||r===l.trigger)return;while(r=r.parentNode);s._v&&e!==l.trigger&&r!==l.trigger&&s.hide()}},s.el=r.createElement("div"),s.el.className="pika-single"+(l.isRTL?" is-rtl":"")+(l.theme?" "+l.theme:""),o(s.el,"mousedown",s._onMouseDown,!0),o(s.el,"touchend",s._onMouseDown,!0),o(s.el,"change",s._onChange),l.keyboardInput&&o(r,"keydown",s._onKeyChange),l.field&&(l.container?l.container.appendChild(s.el):l.bound?r.body.appendChild(s.el):l.field.parentNode.insertBefore(s.el,l.field.nextSibling),o(l.field,"change",s._onInputChange),l.defaultDate||(e&&l.field.value?l.defaultDate=t(l.field.value,l.format).toDate():l.defaultDate=new Date(Date.parse(l.field.value)),l.setDefaultDate=!0));var c=l.defaultDate;h(c)?l.setDefaultDate?s.setDate(c,!0):s.gotoDate(c):s.gotoDate(new Date),l.bound?(this.hide(),s.el.className+=" is-bound",o(l.trigger,"click",s._onInputClick),o(l.trigger,"focus",s._onInputFocus),o(l.trigger,"blur",s._onInputBlur)):this.show()};return D.prototype={config:function(t){this._o||(this._o=y({},w,!0));var e=y(this._o,t,!0);e.isRTL=!!e.isRTL,e.field=e.field&&e.field.nodeName?e.field:null,e.theme="string"==typeof e.theme&&e.theme?e.theme:null,e.bound=!!(void 0!==e.bound?e.field&&e.bound:e.field),e.trigger=e.trigger&&e.trigger.nodeName?e.trigger:e.field,e.disableWeekends=!!e.disableWeekends,e.disableDayFn="function"==typeof e.disableDayFn?e.disableDayFn:null;var n=parseInt(e.numberOfMonths,10)||1;if(e.numberOfMonths=n>4?4:n,h(e.minDate)||(e.minDate=!1),h(e.maxDate)||(e.maxDate=!1),e.minDate&&e.maxDate&&e.maxDate<e.minDate&&(e.maxDate=e.minDate=!1),e.minDate&&this.setMinDate(e.minDate),e.maxDate&&this.setMaxDate(e.maxDate),f(e.yearRange)){var r=(new Date).getFullYear()-10;e.yearRange[0]=parseInt(e.yearRange[0],10)||r,e.yearRange[1]=parseInt(e.yearRange[1],10)||r}else e.yearRange=Math.abs(parseInt(e.yearRange,10))||w.yearRange,e.yearRange>100&&(e.yearRange=100);return e},toString:function(n){return n=n||this._o.format,h(this._d)?this._o.toString?this._o.toString(this._d,n):e?t(this._d).format(n):this._d.toDateString():""},getMoment:function(){return e?t(this._d):null},setMoment:function(n,r){e&&t.isMoment(n)&&this.setDate(n.toDate(),r)},getDate:function(){return h(this._d)?new Date(this._d.getTime()):null},setDate:function(t,e){if(!t)return this._d=null,this._o.field&&(this._o.field.value="",b(this._o.field,"change",{firedBy:this})),this.draw();if("string"==typeof t&&(t=new Date(Date.parse(t))),h(t)){var n=this._o.minDate,r=this._o.maxDate;h(n)&&t<n?t=n:h(r)&&t>r&&(t=r),this._d=new Date(t.getTime()),g(this._d),this.gotoDate(this._d),this._o.field&&(this._o.field.value=this.toString(),b(this._o.field,"change",{firedBy:this})),e||"function"!=typeof this._o.onSelect||this._o.onSelect.call(this,this.getDate())}},gotoDate:function(t){var e=!0;if(h(t)){if(this.calendars){var n=new Date(this.calendars[0].year,this.calendars[0].month,1),r=new Date(this.calendars[this.calendars.length-1].year,this.calendars[this.calendars.length-1].month,1),i=t.getTime();r.setMonth(r.getMonth()+1),r.setDate(r.getDate()-1),e=i<n.getTime()||r.getTime()<i}e&&(this.calendars=[{month:t.getMonth(),year:t.getFullYear()}],"right"===this._o.mainCalendar&&(this.calendars[0].month+=1-this._o.numberOfMonths)),this.adjustCalendars()}},adjustDate:function(t,e){var n,r=this.getDate()||new Date,i=24*parseInt(e)*60*60*1e3;"add"===t?n=new Date(r.valueOf()+i):"subtract"===t&&(n=new Date(r.valueOf()-i)),this.setDate(n)},adjustCalendars:function(){this.calendars[0]=_(this.calendars[0]);for(var t=1;t<this._o.numberOfMonths;t++)this.calendars[t]=_({month:this.calendars[0].month+t,year:this.calendars[0].year});this.draw()},gotoToday:function(){this.gotoDate(new Date)},gotoMonth:function(t){isNaN(t)||(this.calendars[0].month=parseInt(t,10),this.adjustCalendars())},nextMonth:function(){this.calendars[0].month++,this.adjustCalendars()},prevMonth:function(){this.calendars[0].month--,this.adjustCalendars()},gotoYear:function(t){isNaN(t)||(this.calendars[0].year=parseInt(t,10),this.adjustCalendars())},setMinDate:function(t){t instanceof Date?(g(t),this._o.minDate=t,this._o.minYear=t.getFullYear(),this._o.minMonth=t.getMonth()):(this._o.minDate=w.minDate,this._o.minYear=w.minYear,this._o.minMonth=w.minMonth,this._o.startRange=w.startRange),this.draw();
|
||
},setMaxDate:function(t){t instanceof Date?(g(t),this._o.maxDate=t,this._o.maxYear=t.getFullYear(),this._o.maxMonth=t.getMonth()):(this._o.maxDate=w.maxDate,this._o.maxYear=w.maxYear,this._o.maxMonth=w.maxMonth,this._o.endRange=w.endRange),this.draw()},setStartRange:function(t){this._o.startRange=t},setEndRange:function(t){this._o.endRange=t},draw:function(t){if(this._v||t){var e,n=this._o,r=n.minYear,o=n.maxYear,a=n.minMonth,s=n.maxMonth,u="";this._y<=r&&(this._y=r,!isNaN(a)&&this._m<a&&(this._m=a)),this._y>=o&&(this._y=o,!isNaN(s)&&this._m>s&&(this._m=s)),e="pika-title-"+Math.random().toString(36).replace(/[^a-z]+/g,"").substr(0,2);for(var l=0;l<n.numberOfMonths;l++)u+='<div class="pika-lendar">'+A(this,l,this.calendars[l].year,this.calendars[l].month,this.calendars[0].year,e)+this.render(this.calendars[l].year,this.calendars[l].month,e)+"</div>";this.el.innerHTML=u,n.bound&&"hidden"!==n.field.type&&i(function(){n.trigger.focus()},1),"function"==typeof this._o.onDraw&&this._o.onDraw(this),n.bound&&n.field.setAttribute("aria-label","Use the arrow keys to pick a date")}},adjustPosition:function(){var t,e,n,i,o,a,s,u,l,c;if(!this._o.container){if(this.el.style.position="absolute",t=this._o.trigger,e=t,n=this.el.offsetWidth,i=this.el.offsetHeight,o=window.innerWidth||r.documentElement.clientWidth,a=window.innerHeight||r.documentElement.clientHeight,s=window.pageYOffset||r.body.scrollTop||r.documentElement.scrollTop,"function"==typeof t.getBoundingClientRect)c=t.getBoundingClientRect(),u=c.left+window.pageXOffset,l=c.bottom+window.pageYOffset;else for(u=e.offsetLeft,l=e.offsetTop+e.offsetHeight;e=e.offsetParent;)u+=e.offsetLeft,l+=e.offsetTop;(this._o.reposition&&u+n>o||this._o.position.indexOf("right")>-1&&u-n+t.offsetWidth>0)&&(u=u-n+t.offsetWidth),(this._o.reposition&&l+i>a+s||this._o.position.indexOf("top")>-1&&l-i-t.offsetHeight>0)&&(l=l-i-t.offsetHeight),this.el.style.left=u+"px",this.el.style.top=l+"px"}},render:function(t,e,n){var r=this._o,i=new Date,o=m(t,e),a=new Date(t,e,1).getDay(),s=[],u=[];g(i),r.firstDay>0&&(a-=r.firstDay,a<0&&(a+=7));for(var l=0===e?11:e-1,c=11===e?0:e+1,f=0===e?t-1:t,p=11===e?t+1:t,y=m(f,l),b=o+a,_=b;_>7;)_-=7;b+=7-_;for(var w=!1,x=0,$=0;x<b;x++){var S=new Date(t,e,1+(x-a)),A=!!h(this._d)&&v(S,this._d),D=v(S,i),F=r.events.indexOf(S.toDateString())!==-1,N=x<a||x>=o+a,M=1+(x-a),O=e,j=t,P=r.startRange&&v(r.startRange,S),L=r.endRange&&v(r.endRange,S),R=r.startRange&&r.endRange&&r.startRange<S&&S<r.endRange,I=r.minDate&&S<r.minDate||r.maxDate&&S>r.maxDate||r.disableWeekends&&d(S)||r.disableDayFn&&r.disableDayFn(S);N&&(x<a?(M=y+M,O=l,j=f):(M-=o,O=c,j=p));var q={day:M,month:O,year:j,hasEvent:F,isSelected:A,isToday:D,isDisabled:I,isEmpty:N,isStartRange:P,isEndRange:L,isInRange:R,showDaysInNextAndPreviousMonths:r.showDaysInNextAndPreviousMonths,enableSelectionDaysInNextAndPreviousMonths:r.enableSelectionDaysInNextAndPreviousMonths};r.pickWholeWeek&&A&&(w=!0),u.push(k(q)),7===++$&&(r.showWeekNumber&&u.unshift(C(x-a,e,t)),s.push(E(u,r.isRTL,r.pickWholeWeek,w)),u=[],$=0,w=!1)}return T(r,s,n)},isVisible:function(){return this._v},show:function(){this.isVisible()||(this._v=!0,this.draw(),c(this.el,"is-hidden"),this._o.bound&&(o(r,"click",this._onClick),this.adjustPosition()),"function"==typeof this._o.onOpen&&this._o.onOpen.call(this))},hide:function(){var t=this._v;t!==!1&&(this._o.bound&&a(r,"click",this._onClick),this.el.style.position="static",this.el.style.left="auto",this.el.style.top="auto",l(this.el,"is-hidden"),this._v=!1,void 0!==t&&"function"==typeof this._o.onClose&&this._o.onClose.call(this))},destroy:function(){var t=this._o;this.hide(),a(this.el,"mousedown",this._onMouseDown,!0),a(this.el,"touchend",this._onMouseDown,!0),a(this.el,"change",this._onChange),t.keyboardInput&&a(r,"keydown",this._onKeyChange),t.field&&(a(t.field,"change",this._onInputChange),t.bound&&(a(t.trigger,"click",this._onInputClick),a(t.trigger,"focus",this._onInputFocus),a(t.trigger,"blur",this._onInputBlur))),this.el.parentNode&&this.el.parentNode.removeChild(this.el)}},D}),function(t){t.color={},t.color.make=function(e,n,r,i){var o={};return o.r=e||0,o.g=n||0,o.b=r||0,o.a=null!=i?i:1,o.add=function(t,e){for(var n=0;n<t.length;++n)o[t.charAt(n)]+=e;return o.normalize()},o.scale=function(t,e){for(var n=0;n<t.length;++n)o[t.charAt(n)]*=e;return o.normalize()},o.toString=function(){return o.a>=1?"rgb("+[o.r,o.g,o.b].join(",")+")":"rgba("+[o.r,o.g,o.b,o.a].join(",")+")"},o.normalize=function(){function t(t,e,n){return e<t?t:e>n?n:e}return o.r=t(0,parseInt(o.r),255),o.g=t(0,parseInt(o.g),255),o.b=t(0,parseInt(o.b),255),o.a=t(0,o.a,1),o},o.clone=function(){return t.color.make(o.r,o.b,o.g,o.a)},o.normalize()},t.color.extract=function(e,n){var r;do{if(r=e.css(n).toLowerCase(),""!=r&&"transparent"!=r)break;e=e.parent()}while(e.length&&!t.nodeName(e.get(0),"body"));return"rgba(0, 0, 0, 0)"==r&&(r="transparent"),t.color.parse(r)},t.color.parse=function(n){var r,i=t.color.make;if(r=/rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/.exec(n))return i(parseInt(r[1],10),parseInt(r[2],10),parseInt(r[3],10));if(r=/rgba\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]+(?:\.[0-9]+)?)\s*\)/.exec(n))return i(parseInt(r[1],10),parseInt(r[2],10),parseInt(r[3],10),parseFloat(r[4]));if(r=/rgb\(\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*\)/.exec(n))return i(2.55*parseFloat(r[1]),2.55*parseFloat(r[2]),2.55*parseFloat(r[3]));if(r=/rgba\(\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\s*\)/.exec(n))return i(2.55*parseFloat(r[1]),2.55*parseFloat(r[2]),2.55*parseFloat(r[3]),parseFloat(r[4]));if(r=/#([a-fA-F0-9]{2})([a-fA-F0-9]{2})([a-fA-F0-9]{2})/.exec(n))return i(parseInt(r[1],16),parseInt(r[2],16),parseInt(r[3],16));if(r=/#([a-fA-F0-9])([a-fA-F0-9])([a-fA-F0-9])/.exec(n))return i(parseInt(r[1]+r[1],16),parseInt(r[2]+r[2],16),parseInt(r[3]+r[3],16));var o=t.trim(n).toLowerCase();return"transparent"==o?i(255,255,255,0):(r=e[o]||[0,0,0],i(r[0],r[1],r[2]))};var e={aqua:[0,255,255],azure:[240,255,255],beige:[245,245,220],black:[0,0,0],blue:[0,0,255],brown:[165,42,42],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgrey:[169,169,169],darkgreen:[0,100,0],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkviolet:[148,0,211],fuchsia:[255,0,255],gold:[255,215,0],green:[0,128,0],indigo:[75,0,130],khaki:[240,230,140],lightblue:[173,216,230],lightcyan:[224,255,255],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightyellow:[255,255,224],lime:[0,255,0],magenta:[255,0,255],maroon:[128,0,0],navy:[0,0,128],olive:[128,128,0],orange:[255,165,0],pink:[255,192,203],purple:[128,0,128],violet:[128,0,128],red:[255,0,0],silver:[192,192,192],white:[255,255,255],yellow:[255,255,0]}}(jQuery),function(t){function e(e,n){var r=n.children("."+e)[0];if(null==r&&(r=document.createElement("canvas"),r.className=e,t(r).css({direction:"ltr",position:"absolute",left:0,top:0}).appendTo(n),!r.getContext)){if(!window.G_vmlCanvasManager)throw new Error("Canvas is not available. If you're using IE with a fall-back such as Excanvas, then there's either a mistake in your conditional include, or the page has no DOCTYPE and is rendering in Quirks Mode.");r=window.G_vmlCanvasManager.initElement(r)}this.element=r;var i=this.context=r.getContext("2d"),o=window.devicePixelRatio||1,a=i.webkitBackingStorePixelRatio||i.mozBackingStorePixelRatio||i.msBackingStorePixelRatio||i.oBackingStorePixelRatio||i.backingStorePixelRatio||1;this.pixelRatio=o/a,this.resize(n.width(),n.height()),this.textContainer=null,this.text={},this._textCache={}}function n(n,i,o,a){function s(t,e){e=[gt].concat(e);for(var n=0;n<t.length;++n)t[n].apply(this,e)}function u(){for(var n={Canvas:e},r=0;r<a.length;++r){var i=a[r];i.init(gt,n),i.options&&t.extend(!0,it,i.options)}}function l(e){t.extend(!0,it,e),e&&e.colors&&(it.colors=e.colors),null==it.xaxis.color&&(it.xaxis.color=t.color.parse(it.grid.color).scale("a",.22).toString()),null==it.yaxis.color&&(it.yaxis.color=t.color.parse(it.grid.color).scale("a",.22).toString()),null==it.xaxis.tickColor&&(it.xaxis.tickColor=it.grid.tickColor||it.xaxis.color),null==it.yaxis.tickColor&&(it.yaxis.tickColor=it.grid.tickColor||it.yaxis.color),null==it.grid.borderColor&&(it.grid.borderColor=it.grid.color),null==it.grid.tickColor&&(it.grid.tickColor=t.color.parse(it.grid.color).scale("a",.22).toString());var r,i,o,a=n.css("font-size"),u=a?+a.replace("px",""):13,l={style:n.css("font-style"),size:Math.round(.8*u),variant:n.css("font-variant"),weight:n.css("font-weight"),family:n.css("font-family")};for(o=it.xaxes.length||1,r=0;r<o;++r)i=it.xaxes[r],i&&!i.tickColor&&(i.tickColor=i.color),i=t.extend(!0,{},it.xaxis,i),it.xaxes[r]=i,i.font&&(i.font=t.extend({},l,i.font),i.font.color||(i.font.color=i.color),i.font.lineHeight||(i.font.lineHeight=Math.round(1.15*i.font.size)));for(o=it.yaxes.length||1,r=0;r<o;++r)i=it.yaxes[r],i&&!i.tickColor&&(i.tickColor=i.color),i=t.extend(!0,{},it.yaxis,i),it.yaxes[r]=i,i.font&&(i.font=t.extend({},l,i.font),i.font.color||(i.font.color=i.color),i.font.lineHeight||(i.font.lineHeight=Math.round(1.15*i.font.size)));for(it.xaxis.noTicks&&null==it.xaxis.ticks&&(it.xaxis.ticks=it.xaxis.noTicks),it.yaxis.noTicks&&null==it.yaxis.ticks&&(it.yaxis.ticks=it.yaxis.noTicks),it.x2axis&&(it.xaxes[1]=t.extend(!0,{},it.xaxis,it.x2axis),it.xaxes[1].position="top",null==it.x2axis.min&&(it.xaxes[1].min=null),null==it.x2axis.max&&(it.xaxes[1].max=null)),it.y2axis&&(it.yaxes[1]=t.extend(!0,{},it.yaxis,it.y2axis),it.yaxes[1].position="right",null==it.y2axis.min&&(it.yaxes[1].min=null),null==it.y2axis.max&&(it.yaxes[1].max=null)),it.grid.coloredAreas&&(it.grid.markings=it.grid.coloredAreas),it.grid.coloredAreasColor&&(it.grid.markingsColor=it.grid.coloredAreasColor),it.lines&&t.extend(!0,it.series.lines,it.lines),it.points&&t.extend(!0,it.series.points,it.points),it.bars&&t.extend(!0,it.series.bars,it.bars),null!=it.shadowSize&&(it.series.shadowSize=it.shadowSize),null!=it.highlightColor&&(it.series.highlightColor=it.highlightColor),r=0;r<it.xaxes.length;++r)g(ct,r+1).options=it.xaxes[r];for(r=0;r<it.yaxes.length;++r)g(ft,r+1).options=it.yaxes[r];for(var c in mt)it.hooks[c]&&it.hooks[c].length&&(mt[c]=mt[c].concat(it.hooks[c]));s(mt.processOptions,[it])}function c(t){rt=f(t),v(),y()}function f(e){for(var n=[],r=0;r<e.length;++r){var i=t.extend(!0,{},it.series);null!=e[r].data?(i.data=e[r].data,delete e[r].data,t.extend(!0,i,e[r]),e[r].data=i.data):i.data=e[r],n.push(i)}return n}function h(t,e){var n=t[e+"axis"];return"object"==typeof n&&(n=n.n),"number"!=typeof n&&(n=1),n}function d(){return t.grep(ct.concat(ft),function(t){return t})}function p(t){var e,n,r={};for(e=0;e<ct.length;++e)n=ct[e],n&&n.used&&(r["x"+n.n]=n.c2p(t.left));for(e=0;e<ft.length;++e)n=ft[e],n&&n.used&&(r["y"+n.n]=n.c2p(t.top));return void 0!==r.x1&&(r.x=r.x1),void 0!==r.y1&&(r.y=r.y1),r}function m(t){var e,n,r,i={};for(e=0;e<ct.length;++e)if(n=ct[e],n&&n.used&&(r="x"+n.n,null==t[r]&&1==n.n&&(r="x"),null!=t[r])){i.left=n.p2c(t[r]);break}for(e=0;e<ft.length;++e)if(n=ft[e],n&&n.used&&(r="y"+n.n,null==t[r]&&1==n.n&&(r="y"),null!=t[r])){i.top=n.p2c(t[r]);break}return i}function g(e,n){return e[n-1]||(e[n-1]={n:n,direction:e==ct?"x":"y",options:t.extend(!0,{},e==ct?it.xaxis:it.yaxis)}),e[n-1]}function v(){var e,n=rt.length,r=-1;for(e=0;e<rt.length;++e){var i=rt[e].color;null!=i&&(n--,"number"==typeof i&&i>r&&(r=i))}n<=r&&(n=r+1);var o,a=[],s=it.colors,u=s.length,l=0;for(e=0;e<n;e++)o=t.color.parse(s[e%u]||"#666"),e%u==0&&e&&(l=l>=0?l<.5?-l-.2:0:-l),a[e]=o.scale("rgb",1+l);var c,f=0;for(e=0;e<rt.length;++e){if(c=rt[e],null==c.color?(c.color=a[f].toString(),++f):"number"==typeof c.color&&(c.color=a[c.color].toString()),null==c.lines.show){var d,p=!0;for(d in c)if(c[d]&&c[d].show){p=!1;break}p&&(c.lines.show=!0)}null==c.lines.zero&&(c.lines.zero=!!c.lines.fill),c.xaxis=g(ct,h(c,"x")),c.yaxis=g(ft,h(c,"y"))}}function y(){function e(t,e,n){e<t.datamin&&e!=-y&&(t.datamin=e),n>t.datamax&&n!=y&&(t.datamax=n)}var n,r,i,o,a,u,l,c,f,h,p,m,g=Number.POSITIVE_INFINITY,v=Number.NEGATIVE_INFINITY,y=Number.MAX_VALUE;for(t.each(d(),function(t,e){e.datamin=g,e.datamax=v,e.used=!1}),n=0;n<rt.length;++n)a=rt[n],a.datapoints={points:[]},s(mt.processRawData,[a,a.data,a.datapoints]);for(n=0;n<rt.length;++n){if(a=rt[n],p=a.data,m=a.datapoints.format,!m){if(m=[],m.push({x:!0,number:!0,required:!0}),m.push({y:!0,number:!0,required:!0}),a.bars.show||a.lines.show&&a.lines.fill){var b=!!(a.bars.show&&a.bars.zero||a.lines.show&&a.lines.zero);m.push({y:!0,number:!0,required:!1,defaultValue:0,autoscale:b}),a.bars.horizontal&&(delete m[m.length-1].y,m[m.length-1].x=!0)}a.datapoints.format=m}if(null==a.datapoints.pointsize){a.datapoints.pointsize=m.length,l=a.datapoints.pointsize,u=a.datapoints.points;var _=a.lines.show&&a.lines.steps;for(a.xaxis.used=a.yaxis.used=!0,r=i=0;r<p.length;++r,i+=l){h=p[r];var w=null==h;if(!w)for(o=0;o<l;++o)c=h[o],f=m[o],f&&(f.number&&null!=c&&(c=+c,isNaN(c)?c=null:c==1/0?c=y:c==-(1/0)&&(c=-y)),null==c&&(f.required&&(w=!0),null!=f.defaultValue&&(c=f.defaultValue))),u[i+o]=c;if(w)for(o=0;o<l;++o)c=u[i+o],null!=c&&(f=m[o],f.autoscale!==!1&&(f.x&&e(a.xaxis,c,c),f.y&&e(a.yaxis,c,c))),u[i+o]=null;else if(_&&i>0&&null!=u[i-l]&&u[i-l]!=u[i]&&u[i-l+1]!=u[i+1]){for(o=0;o<l;++o)u[i+l+o]=u[i+o];u[i+1]=u[i-l+1],i+=l}}}}for(n=0;n<rt.length;++n)a=rt[n],s(mt.processDatapoints,[a,a.datapoints]);for(n=0;n<rt.length;++n){a=rt[n],u=a.datapoints.points,l=a.datapoints.pointsize,m=a.datapoints.format;var x=g,k=g,C=v,E=v;for(r=0;r<u.length;r+=l)if(null!=u[r])for(o=0;o<l;++o)c=u[r+o],f=m[o],f&&f.autoscale!==!1&&c!=y&&c!=-y&&(f.x&&(c<x&&(x=c),c>C&&(C=c)),f.y&&(c<k&&(k=c),c>E&&(E=c)));if(a.bars.show){var $;switch(a.bars.align){case"left":$=0;break;case"right":$=-a.bars.barWidth;break;default:$=-a.bars.barWidth/2}a.bars.horizontal?(k+=$,E+=$+a.bars.barWidth):(x+=$,C+=$+a.bars.barWidth)}e(a.xaxis,x,C),e(a.yaxis,k,E)}t.each(d(),function(t,e){e.datamin==g&&(e.datamin=null),e.datamax==v&&(e.datamax=null)})}function b(){n.css("padding",0).children().filter(function(){return!t(this).hasClass("flot-overlay")&&!t(this).hasClass("flot-base")}).remove(),"static"==n.css("position")&&n.css("position","relative"),ot=new e("flot-base",n),at=new e("flot-overlay",n),ut=ot.context,lt=at.context,st=t(at.element).unbind();var r=n.data("plot");r&&(r.shutdown(),at.clear()),n.data("plot",gt)}function _(){it.grid.hoverable&&(st.mousemove(V),st.bind("mouseleave",W)),it.grid.clickable&&st.click(Y),s(mt.bindEvents,[st])}function w(){yt&&clearTimeout(yt),st.unbind("mousemove",V),st.unbind("mouseleave",W),st.unbind("click",Y),s(mt.shutdown,[st])}function x(t){function e(t){return t}var n,r,i=t.options.transform||e,o=t.options.inverseTransform;"x"==t.direction?(n=t.scale=dt/Math.abs(i(t.max)-i(t.min)),r=Math.min(i(t.max),i(t.min))):(n=t.scale=pt/Math.abs(i(t.max)-i(t.min)),n=-n,r=Math.max(i(t.max),i(t.min))),i==e?t.p2c=function(t){return(t-r)*n}:t.p2c=function(t){return(i(t)-r)*n},o?t.c2p=function(t){return o(r+t/n)}:t.c2p=function(t){return r+t/n}}function k(t){for(var e=t.options,n=t.ticks||[],r=e.labelWidth||0,i=e.labelHeight||0,o=r||("x"==t.direction?Math.floor(ot.width/(n.length||1)):null),a=t.direction+"Axis "+t.direction+t.n+"Axis",s="flot-"+t.direction+"-axis flot-"+t.direction+t.n+"-axis "+a,u=e.font||"flot-tick-label tickLabel",l=0;l<n.length;++l){var c=n[l];if(c.label){var f=ot.getTextInfo(s,c.label,u,null,o);r=Math.max(r,f.width),i=Math.max(i,f.height)}}t.labelWidth=e.labelWidth||r,t.labelHeight=e.labelHeight||i}function C(e){var n=e.labelWidth,r=e.labelHeight,i=e.options.position,o="x"===e.direction,a=e.options.tickLength,s=it.grid.axisMargin,u=it.grid.labelMargin,l=!0,c=!0,f=!0,h=!1;t.each(o?ct:ft,function(t,n){n&&(n.show||n.reserveSpace)&&(n===e?h=!0:n.options.position===i&&(h?c=!1:l=!1),h||(f=!1))}),c&&(s=0),null==a&&(a=f?"full":5),isNaN(+a)||(u+=+a),o?(r+=u,"bottom"==i?(ht.bottom+=r+s,e.box={top:ot.height-ht.bottom,height:r}):(e.box={top:ht.top+s,height:r},ht.top+=r+s)):(n+=u,"left"==i?(e.box={left:ht.left+s,width:n},ht.left+=n+s):(ht.right+=n+s,e.box={left:ot.width-ht.right,width:n})),e.position=i,e.tickLength=a,e.box.padding=u,e.innermost=l}function E(t){"x"==t.direction?(t.box.left=ht.left-t.labelWidth/2,t.box.width=ot.width-ht.left-ht.right+t.labelWidth):(t.box.top=ht.top-t.labelHeight/2,t.box.height=ot.height-ht.bottom-ht.top+t.labelHeight)}function $(){var e,n=it.grid.minBorderMargin;if(null==n)for(n=0,e=0;e<rt.length;++e)n=Math.max(n,2*(rt[e].points.radius+rt[e].points.lineWidth/2));var r={left:n,right:n,top:n,bottom:n};t.each(d(),function(t,e){e.reserveSpace&&e.ticks&&e.ticks.length&&("x"===e.direction?(r.left=Math.max(r.left,e.labelWidth/2),r.right=Math.max(r.right,e.labelWidth/2)):(r.bottom=Math.max(r.bottom,e.labelHeight/2),r.top=Math.max(r.top,e.labelHeight/2)))}),ht.left=Math.ceil(Math.max(r.left,ht.left)),ht.right=Math.ceil(Math.max(r.right,ht.right)),ht.top=Math.ceil(Math.max(r.top,ht.top)),ht.bottom=Math.ceil(Math.max(r.bottom,ht.bottom))}function S(){var e,n=d(),r=it.grid.show;for(var i in ht){var o=it.grid.margin||0;ht[i]="number"==typeof o?o:o[i]||0}s(mt.processOffset,[ht]);for(var i in ht)"object"==typeof it.grid.borderWidth?ht[i]+=r?it.grid.borderWidth[i]:0:ht[i]+=r?it.grid.borderWidth:0;if(t.each(n,function(t,e){var n=e.options;e.show=null==n.show?e.used:n.show,e.reserveSpace=null==n.reserveSpace?e.show:n.reserveSpace,A(e)}),r){var a=t.grep(n,function(t){return t.show||t.reserveSpace});for(t.each(a,function(t,e){T(e),D(e),F(e,e.ticks),k(e)}),e=a.length-1;e>=0;--e)C(a[e]);$(),t.each(a,function(t,e){E(e)})}dt=ot.width-ht.left-ht.right,pt=ot.height-ht.bottom-ht.top,t.each(n,function(t,e){x(e)}),r&&P(),B()}function A(t){var e=t.options,n=+(null!=e.min?e.min:t.datamin),r=+(null!=e.max?e.max:t.datamax),i=r-n;if(0==i){var o=0==r?1:.01;null==e.min&&(n-=o),null!=e.max&&null==e.min||(r+=o)}else{var a=e.autoscaleMargin;null!=a&&(null==e.min&&(n-=i*a,n<0&&null!=t.datamin&&t.datamin>=0&&(n=0)),null==e.max&&(r+=i*a,r>0&&null!=t.datamax&&t.datamax<=0&&(r=0)))}t.min=n,t.max=r}function T(e){var n,i=e.options;n="number"==typeof i.ticks&&i.ticks>0?i.ticks:.3*Math.sqrt("x"==e.direction?ot.width:ot.height);var o=(e.max-e.min)/n,a=-Math.floor(Math.log(o)/Math.LN10),s=i.tickDecimals;null!=s&&a>s&&(a=s);var u,l=Math.pow(10,-a),c=o/l;if(c<1.5?u=1:c<3?(u=2,c>2.25&&(null==s||a+1<=s)&&(u=2.5,++a)):u=c<7.5?5:10,u*=l,null!=i.minTickSize&&u<i.minTickSize&&(u=i.minTickSize),e.delta=o,e.tickDecimals=Math.max(0,null!=s?s:a),e.tickSize=i.tickSize||u,"time"==i.mode&&!e.tickGenerator)throw new Error("Time mode requires the flot.time plugin.");if(e.tickGenerator||(e.tickGenerator=function(t){var e,n=[],i=r(t.min,t.tickSize),o=0,a=Number.NaN;do e=a,a=i+o*t.tickSize,n.push(a),++o;while(a<t.max&&a!=e);return n},e.tickFormatter=function(t,e){var n=e.tickDecimals?Math.pow(10,e.tickDecimals):1,r=""+Math.round(t*n)/n;if(null!=e.tickDecimals){var i=r.indexOf("."),o=i==-1?0:r.length-i-1;if(o<e.tickDecimals)return(o?r:r+".")+(""+n).substr(1,e.tickDecimals-o)}return r}),t.isFunction(i.tickFormatter)&&(e.tickFormatter=function(t,e){return""+i.tickFormatter(t,e)}),null!=i.alignTicksWithAxis){var f=("x"==e.direction?ct:ft)[i.alignTicksWithAxis-1];if(f&&f.used&&f!=e){var h=e.tickGenerator(e);if(h.length>0&&(null==i.min&&(e.min=Math.min(e.min,h[0])),null==i.max&&h.length>1&&(e.max=Math.max(e.max,h[h.length-1]))),e.tickGenerator=function(t){var e,n,r=[];for(n=0;n<f.ticks.length;++n)e=(f.ticks[n].v-f.min)/(f.max-f.min),e=t.min+e*(t.max-t.min),r.push(e);return r},!e.mode&&null==i.tickDecimals){var d=Math.max(0,-Math.floor(Math.log(e.delta)/Math.LN10)+1),p=e.tickGenerator(e);p.length>1&&/\..*0$/.test((p[1]-p[0]).toFixed(d))||(e.tickDecimals=d)}}}}function D(e){var n=e.options.ticks,r=[];null==n||"number"==typeof n&&n>0?r=e.tickGenerator(e):n&&(r=t.isFunction(n)?n(e):n);var i,o;for(e.ticks=[],i=0;i<r.length;++i){var a=null,s=r[i];"object"==typeof s?(o=+s[0],s.length>1&&(a=s[1])):o=+s,null==a&&(a=e.tickFormatter(o,e)),isNaN(o)||e.ticks.push({v:o,label:a})}}function F(t,e){t.options.autoscaleMargin&&e.length>0&&(null==t.options.min&&(t.min=Math.min(t.min,e[0].v)),null==t.options.max&&e.length>1&&(t.max=Math.max(t.max,e[e.length-1].v)))}function N(){ot.clear(),s(mt.drawBackground,[ut]);var t=it.grid;t.show&&t.backgroundColor&&O(),t.show&&!t.aboveData&&j();for(var e=0;e<rt.length;++e)s(mt.drawSeries,[ut,rt[e]]),L(rt[e]);s(mt.draw,[ut]),t.show&&t.aboveData&&j(),ot.render(),K()}function M(t,e){for(var n,r,i,o,a=d(),s=0;s<a.length;++s)if(n=a[s],n.direction==e&&(o=e+n.n+"axis",t[o]||1!=n.n||(o=e+"axis"),t[o])){r=t[o].from,i=t[o].to;break}if(t[o]||(n="x"==e?ct[0]:ft[0],r=t[e+"1"],i=t[e+"2"]),null!=r&&null!=i&&r>i){var u=r;r=i,i=u}return{from:r,to:i,axis:n}}function O(){ut.save(),ut.translate(ht.left,ht.top),ut.fillStyle=nt(it.grid.backgroundColor,pt,0,"rgba(255, 255, 255, 0)"),ut.fillRect(0,0,dt,pt),ut.restore()}function j(){var e,n,r,i;ut.save(),ut.translate(ht.left,ht.top);var o=it.grid.markings;if(o)for(t.isFunction(o)&&(n=gt.getAxes(),n.xmin=n.xaxis.min,n.xmax=n.xaxis.max,n.ymin=n.yaxis.min,n.ymax=n.yaxis.max,o=o(n)),e=0;e<o.length;++e){var a=o[e],s=M(a,"x"),u=M(a,"y");if(null==s.from&&(s.from=s.axis.min),null==s.to&&(s.to=s.axis.max),null==u.from&&(u.from=u.axis.min),null==u.to&&(u.to=u.axis.max),!(s.to<s.axis.min||s.from>s.axis.max||u.to<u.axis.min||u.from>u.axis.max)){s.from=Math.max(s.from,s.axis.min),s.to=Math.min(s.to,s.axis.max),u.from=Math.max(u.from,u.axis.min),u.to=Math.min(u.to,u.axis.max);var l=s.from===s.to,c=u.from===u.to;if(!l||!c)if(s.from=Math.floor(s.axis.p2c(s.from)),s.to=Math.floor(s.axis.p2c(s.to)),u.from=Math.floor(u.axis.p2c(u.from)),u.to=Math.floor(u.axis.p2c(u.to)),l||c){var f=a.lineWidth||it.grid.markingsLineWidth,h=f%2?.5:0;ut.beginPath(),ut.strokeStyle=a.color||it.grid.markingsColor,ut.lineWidth=f,l?(ut.moveTo(s.to+h,u.from),ut.lineTo(s.to+h,u.to)):(ut.moveTo(s.from,u.to+h),ut.lineTo(s.to,u.to+h)),ut.stroke()}else ut.fillStyle=a.color||it.grid.markingsColor,ut.fillRect(s.from,u.to,s.to-s.from,u.from-u.to)}}n=d(),r=it.grid.borderWidth;for(var p=0;p<n.length;++p){var m,g,v,y,b=n[p],_=b.box,w=b.tickLength;if(b.show&&0!=b.ticks.length){for(ut.lineWidth=1,"x"==b.direction?(m=0,g="full"==w?"top"==b.position?0:pt:_.top-ht.top+("top"==b.position?_.height:0)):(g=0,m="full"==w?"left"==b.position?0:dt:_.left-ht.left+("left"==b.position?_.width:0)),b.innermost||(ut.strokeStyle=b.options.color,ut.beginPath(),v=y=0,"x"==b.direction?v=dt+1:y=pt+1,1==ut.lineWidth&&("x"==b.direction?g=Math.floor(g)+.5:m=Math.floor(m)+.5),ut.moveTo(m,g),ut.lineTo(m+v,g+y),ut.stroke()),ut.strokeStyle=b.options.tickColor,ut.beginPath(),e=0;e<b.ticks.length;++e){var x=b.ticks[e].v;v=y=0,isNaN(x)||x<b.min||x>b.max||"full"==w&&("object"==typeof r&&r[b.position]>0||r>0)&&(x==b.min||x==b.max)||("x"==b.direction?(m=b.p2c(x),y="full"==w?-pt:w,"top"==b.position&&(y=-y)):(g=b.p2c(x),v="full"==w?-dt:w,"left"==b.position&&(v=-v)),1==ut.lineWidth&&("x"==b.direction?m=Math.floor(m)+.5:g=Math.floor(g)+.5),ut.moveTo(m,g),ut.lineTo(m+v,g+y))}ut.stroke()}}r&&(i=it.grid.borderColor,"object"==typeof r||"object"==typeof i?("object"!=typeof r&&(r={top:r,right:r,bottom:r,left:r}),"object"!=typeof i&&(i={top:i,right:i,bottom:i,left:i}),r.top>0&&(ut.strokeStyle=i.top,ut.lineWidth=r.top,ut.beginPath(),ut.moveTo(0-r.left,0-r.top/2),ut.lineTo(dt,0-r.top/2),ut.stroke()),r.right>0&&(ut.strokeStyle=i.right,ut.lineWidth=r.right,ut.beginPath(),ut.moveTo(dt+r.right/2,0-r.top),ut.lineTo(dt+r.right/2,pt),ut.stroke()),r.bottom>0&&(ut.strokeStyle=i.bottom,ut.lineWidth=r.bottom,ut.beginPath(),ut.moveTo(dt+r.right,pt+r.bottom/2),ut.lineTo(0,pt+r.bottom/2),ut.stroke()),r.left>0&&(ut.strokeStyle=i.left,ut.lineWidth=r.left,ut.beginPath(),ut.moveTo(0-r.left/2,pt+r.bottom),ut.lineTo(0-r.left/2,0),ut.stroke())):(ut.lineWidth=r,ut.strokeStyle=it.grid.borderColor,ut.strokeRect(-r/2,-r/2,dt+r,pt+r))),ut.restore()}function P(){t.each(d(),function(t,e){var n,r,i,o,a,s=e.box,u=e.direction+"Axis "+e.direction+e.n+"Axis",l="flot-"+e.direction+"-axis flot-"+e.direction+e.n+"-axis "+u,c=e.options.font||"flot-tick-label tickLabel";if(ot.removeText(l),e.show&&0!=e.ticks.length)for(var f=0;f<e.ticks.length;++f)n=e.ticks[f],!n.label||n.v<e.min||n.v>e.max||("x"==e.direction?(o="center",r=ht.left+e.p2c(n.v),"bottom"==e.position?i=s.top+s.padding:(i=s.top+s.height-s.padding,a="bottom")):(a="middle",i=ht.top+e.p2c(n.v),"left"==e.position?(r=s.left+s.width-s.padding,o="right"):r=s.left+s.padding),ot.addText(l,r,i,n.label,c,null,null,o,a))})}function L(t){t.lines.show&&R(t),t.bars.show&&z(t),t.points.show&&I(t)}function R(t){function e(t,e,n,r,i){var o=t.points,a=t.pointsize,s=null,u=null;ut.beginPath();for(var l=a;l<o.length;l+=a){var c=o[l-a],f=o[l-a+1],h=o[l],d=o[l+1];if(null!=c&&null!=h){if(f<=d&&f<i.min){if(d<i.min)continue;c=(i.min-f)/(d-f)*(h-c)+c,f=i.min}else if(d<=f&&d<i.min){if(f<i.min)continue;h=(i.min-f)/(d-f)*(h-c)+c,d=i.min}if(f>=d&&f>i.max){if(d>i.max)continue;c=(i.max-f)/(d-f)*(h-c)+c,f=i.max}else if(d>=f&&d>i.max){if(f>i.max)continue;h=(i.max-f)/(d-f)*(h-c)+c,d=i.max}if(c<=h&&c<r.min){if(h<r.min)continue;f=(r.min-c)/(h-c)*(d-f)+f,c=r.min}else if(h<=c&&h<r.min){if(c<r.min)continue;d=(r.min-c)/(h-c)*(d-f)+f,h=r.min}if(c>=h&&c>r.max){if(h>r.max)continue;f=(r.max-c)/(h-c)*(d-f)+f,c=r.max}else if(h>=c&&h>r.max){if(c>r.max)continue;d=(r.max-c)/(h-c)*(d-f)+f,h=r.max}c==s&&f==u||ut.moveTo(r.p2c(c)+e,i.p2c(f)+n),s=h,u=d,ut.lineTo(r.p2c(h)+e,i.p2c(d)+n)}}ut.stroke()}function n(t,e,n){for(var r=t.points,i=t.pointsize,o=Math.min(Math.max(0,n.min),n.max),a=0,s=!1,u=1,l=0,c=0;;){if(i>0&&a>r.length+i)break;a+=i;var f=r[a-i],h=r[a-i+u],d=r[a],p=r[a+u];if(s){if(i>0&&null!=f&&null==d){c=a,i=-i,u=2;continue}if(i<0&&a==l+i){ut.fill(),s=!1,i=-i,u=1,a=l=c+i;continue}}if(null!=f&&null!=d){if(f<=d&&f<e.min){if(d<e.min)continue;h=(e.min-f)/(d-f)*(p-h)+h,f=e.min}else if(d<=f&&d<e.min){if(f<e.min)continue;p=(e.min-f)/(d-f)*(p-h)+h,d=e.min}if(f>=d&&f>e.max){if(d>e.max)continue;h=(e.max-f)/(d-f)*(p-h)+h,f=e.max}else if(d>=f&&d>e.max){if(f>e.max)continue;p=(e.max-f)/(d-f)*(p-h)+h,d=e.max}if(s||(ut.beginPath(),ut.moveTo(e.p2c(f),n.p2c(o)),s=!0),h>=n.max&&p>=n.max)ut.lineTo(e.p2c(f),n.p2c(n.max)),ut.lineTo(e.p2c(d),n.p2c(n.max));else if(h<=n.min&&p<=n.min)ut.lineTo(e.p2c(f),n.p2c(n.min)),ut.lineTo(e.p2c(d),n.p2c(n.min));else{var m=f,g=d;h<=p&&h<n.min&&p>=n.min?(f=(n.min-h)/(p-h)*(d-f)+f,h=n.min):p<=h&&p<n.min&&h>=n.min&&(d=(n.min-h)/(p-h)*(d-f)+f,p=n.min),h>=p&&h>n.max&&p<=n.max?(f=(n.max-h)/(p-h)*(d-f)+f,h=n.max):p>=h&&p>n.max&&h<=n.max&&(d=(n.max-h)/(p-h)*(d-f)+f,p=n.max),f!=m&&ut.lineTo(e.p2c(m),n.p2c(h)),ut.lineTo(e.p2c(f),n.p2c(h)),ut.lineTo(e.p2c(d),n.p2c(p)),d!=g&&(ut.lineTo(e.p2c(d),n.p2c(p)),ut.lineTo(e.p2c(g),n.p2c(p)))}}}}ut.save(),ut.translate(ht.left,ht.top),ut.lineJoin="round";var r=t.lines.lineWidth,i=t.shadowSize;if(r>0&&i>0){ut.lineWidth=i,ut.strokeStyle="rgba(0,0,0,0.1)";var o=Math.PI/18;e(t.datapoints,Math.sin(o)*(r/2+i/2),Math.cos(o)*(r/2+i/2),t.xaxis,t.yaxis),ut.lineWidth=i/2,e(t.datapoints,Math.sin(o)*(r/2+i/4),Math.cos(o)*(r/2+i/4),t.xaxis,t.yaxis)}ut.lineWidth=r,ut.strokeStyle=t.color;var a=H(t.lines,t.color,0,pt);a&&(ut.fillStyle=a,n(t.datapoints,t.xaxis,t.yaxis)),r>0&&e(t.datapoints,0,0,t.xaxis,t.yaxis),ut.restore()}function I(t){function e(t,e,n,r,i,o,a,s){for(var u=t.points,l=t.pointsize,c=0;c<u.length;c+=l){var f=u[c],h=u[c+1];null==f||f<o.min||f>o.max||h<a.min||h>a.max||(ut.beginPath(),f=o.p2c(f),h=a.p2c(h)+r,"circle"==s?ut.arc(f,h,e,0,i?Math.PI:2*Math.PI,!1):s(ut,f,h,e,i),ut.closePath(),n&&(ut.fillStyle=n,ut.fill()),ut.stroke())}}ut.save(),ut.translate(ht.left,ht.top);var n=t.points.lineWidth,r=t.shadowSize,i=t.points.radius,o=t.points.symbol;if(0==n&&(n=1e-4),n>0&&r>0){var a=r/2;ut.lineWidth=a,ut.strokeStyle="rgba(0,0,0,0.1)",e(t.datapoints,i,null,a+a/2,!0,t.xaxis,t.yaxis,o),ut.strokeStyle="rgba(0,0,0,0.2)",e(t.datapoints,i,null,a/2,!0,t.xaxis,t.yaxis,o)}ut.lineWidth=n,ut.strokeStyle=t.color,e(t.datapoints,i,H(t.points,t.color),0,!1,t.xaxis,t.yaxis,o),ut.restore()}function q(t,e,n,r,i,o,a,s,u,l,c){var f,h,d,p,m,g,v,y,b;l?(y=g=v=!0,m=!1,f=n,h=t,p=e+r,d=e+i,h<f&&(b=h,h=f,f=b,m=!0,g=!1)):(m=g=v=!0,y=!1,f=t+r,h=t+i,d=n,p=e,p<d&&(b=p,p=d,d=b,y=!0,v=!1)),h<a.min||f>a.max||p<s.min||d>s.max||(f<a.min&&(f=a.min,m=!1),h>a.max&&(h=a.max,g=!1),d<s.min&&(d=s.min,y=!1),p>s.max&&(p=s.max,v=!1),f=a.p2c(f),d=s.p2c(d),h=a.p2c(h),p=s.p2c(p),o&&(u.fillStyle=o(d,p),u.fillRect(f,p,h-f,d-p)),c>0&&(m||g||v||y)&&(u.beginPath(),u.moveTo(f,d),m?u.lineTo(f,p):u.moveTo(f,p),v?u.lineTo(h,p):u.moveTo(h,p),g?u.lineTo(h,d):u.moveTo(h,d),y?u.lineTo(f,d):u.moveTo(f,d),u.stroke()))}function z(t){function e(e,n,r,i,o,a){for(var s=e.points,u=e.pointsize,l=0;l<s.length;l+=u)null!=s[l]&&q(s[l],s[l+1],s[l+2],n,r,i,o,a,ut,t.bars.horizontal,t.bars.lineWidth)}ut.save(),ut.translate(ht.left,ht.top),ut.lineWidth=t.bars.lineWidth,ut.strokeStyle=t.color;var n;switch(t.bars.align){case"left":n=0;break;case"right":n=-t.bars.barWidth;break;default:n=-t.bars.barWidth/2}var r=t.bars.fill?function(e,n){return H(t.bars,t.color,e,n)}:null;e(t.datapoints,n,n+t.bars.barWidth,r,t.xaxis,t.yaxis),ut.restore()}function H(e,n,r,i){var o=e.fill;if(!o)return null;if(e.fillColor)return nt(e.fillColor,r,i,n);var a=t.color.parse(n);return a.a="number"==typeof o?o:.4,a.normalize(),a.toString()}function B(){if(null!=it.legend.container?t(it.legend.container).html(""):n.find(".legend").remove(),it.legend.show){for(var e,r,i=[],o=[],a=!1,s=it.legend.labelFormatter,u=0;u<rt.length;++u)e=rt[u],e.label&&(r=s?s(e.label,e):e.label,r&&o.push({label:r,color:e.color}));if(it.legend.sorted)if(t.isFunction(it.legend.sorted))o.sort(it.legend.sorted);else if("reverse"==it.legend.sorted)o.reverse();else{var l="descending"!=it.legend.sorted;o.sort(function(t,e){return t.label==e.label?0:t.label<e.label!=l?1:-1})}for(var u=0;u<o.length;++u){var c=o[u];u%it.legend.noColumns==0&&(a&&i.push("</tr>"),i.push("<tr>"),a=!0),i.push('<td class="legendColorBox"><div style="border:1px solid '+it.legend.labelBoxBorderColor+';padding:1px"><div style="width:4px;height:0;border:5px solid '+c.color+';overflow:hidden"></div></div></td><td class="legendLabel">'+c.label+"</td>")}if(a&&i.push("</tr>"),0!=i.length){var f='<table style="font-size:smaller;color:'+it.grid.color+'">'+i.join("")+"</table>";if(null!=it.legend.container)t(it.legend.container).html(f);else{var h="",d=it.legend.position,p=it.legend.margin;null==p[0]&&(p=[p,p]),"n"==d.charAt(0)?h+="top:"+(p[1]+ht.top)+"px;":"s"==d.charAt(0)&&(h+="bottom:"+(p[1]+ht.bottom)+"px;"),"e"==d.charAt(1)?h+="right:"+(p[0]+ht.right)+"px;":"w"==d.charAt(1)&&(h+="left:"+(p[0]+ht.left)+"px;");var m=t('<div class="legend">'+f.replace('style="','style="position:absolute;'+h+";")+"</div>").appendTo(n);if(0!=it.legend.backgroundOpacity){var g=it.legend.backgroundColor;null==g&&(g=it.grid.backgroundColor,g=g&&"string"==typeof g?t.color.parse(g):t.color.extract(m,"background-color"),g.a=1,g=g.toString());var v=m.children();t('<div style="position:absolute;width:'+v.width()+"px;height:"+v.height()+"px;"+h+"background-color:"+g+';"> </div>').prependTo(m).css("opacity",it.legend.backgroundOpacity)}}}}}function U(t,e,n){var r,i,o,a=it.grid.mouseActiveRadius,s=a*a+1,u=null;for(r=rt.length-1;r>=0;--r)if(n(rt[r])){var l=rt[r],c=l.xaxis,f=l.yaxis,h=l.datapoints.points,d=c.c2p(t),p=f.c2p(e),m=a/c.scale,g=a/f.scale;if(o=l.datapoints.pointsize,c.options.inverseTransform&&(m=Number.MAX_VALUE),f.options.inverseTransform&&(g=Number.MAX_VALUE),l.lines.show||l.points.show)for(i=0;i<h.length;i+=o){var v=h[i],y=h[i+1];if(null!=v&&!(v-d>m||v-d<-m||y-p>g||y-p<-g)){var b=Math.abs(c.p2c(v)-t),_=Math.abs(f.p2c(y)-e),w=b*b+_*_;w<s&&(s=w,u=[r,i/o])}}if(l.bars.show&&!u){var x,k;switch(l.bars.align){case"left":x=0;break;
|
||
case"right":x=-l.bars.barWidth;break;default:x=-l.bars.barWidth/2}for(k=x+l.bars.barWidth,i=0;i<h.length;i+=o){var v=h[i],y=h[i+1],C=h[i+2];null!=v&&(rt[r].bars.horizontal?d<=Math.max(C,v)&&d>=Math.min(C,v)&&p>=y+x&&p<=y+k:d>=v+x&&d<=v+k&&p>=Math.min(C,y)&&p<=Math.max(C,y))&&(u=[r,i/o])}}}return u?(r=u[0],i=u[1],o=rt[r].datapoints.pointsize,{datapoint:rt[r].datapoints.points.slice(i*o,(i+1)*o),dataIndex:i,series:rt[r],seriesIndex:r}):null}function V(t){it.grid.hoverable&&G("plothover",t,function(t){return 0!=t.hoverable})}function W(t){it.grid.hoverable&&G("plothover",t,function(t){return!1})}function Y(t){G("plotclick",t,function(t){return 0!=t.clickable})}function G(t,e,r){var i=st.offset(),o=e.pageX-i.left-ht.left,a=e.pageY-i.top-ht.top,s=p({left:o,top:a});s.pageX=e.pageX,s.pageY=e.pageY;var u=U(o,a,r);if(u&&(u.pageX=parseInt(u.series.xaxis.p2c(u.datapoint[0])+i.left+ht.left,10),u.pageY=parseInt(u.series.yaxis.p2c(u.datapoint[1])+i.top+ht.top,10)),it.grid.autoHighlight){for(var l=0;l<vt.length;++l){var c=vt[l];c.auto!=t||u&&c.series==u.series&&c.point[0]==u.datapoint[0]&&c.point[1]==u.datapoint[1]||J(c.series,c.point)}u&&X(u.series,u.datapoint,t)}n.trigger(t,[s,u])}function K(){var t=it.interaction.redrawOverlayInterval;return t==-1?void Z():void(yt||(yt=setTimeout(Z,t)))}function Z(){yt=null,lt.save(),at.clear(),lt.translate(ht.left,ht.top);var t,e;for(t=0;t<vt.length;++t)e=vt[t],e.series.bars.show?et(e.series,e.point):tt(e.series,e.point);lt.restore(),s(mt.drawOverlay,[lt])}function X(t,e,n){if("number"==typeof t&&(t=rt[t]),"number"==typeof e){var r=t.datapoints.pointsize;e=t.datapoints.points.slice(r*e,r*(e+1))}var i=Q(t,e);i==-1?(vt.push({series:t,point:e,auto:n}),K()):n||(vt[i].auto=!1)}function J(t,e){if(null==t&&null==e)return vt=[],void K();if("number"==typeof t&&(t=rt[t]),"number"==typeof e){var n=t.datapoints.pointsize;e=t.datapoints.points.slice(n*e,n*(e+1))}var r=Q(t,e);r!=-1&&(vt.splice(r,1),K())}function Q(t,e){for(var n=0;n<vt.length;++n){var r=vt[n];if(r.series==t&&r.point[0]==e[0]&&r.point[1]==e[1])return n}return-1}function tt(e,n){var r=n[0],i=n[1],o=e.xaxis,a=e.yaxis,s="string"==typeof e.highlightColor?e.highlightColor:t.color.parse(e.color).scale("a",.5).toString();if(!(r<o.min||r>o.max||i<a.min||i>a.max)){var u=e.points.radius+e.points.lineWidth/2;lt.lineWidth=u,lt.strokeStyle=s;var l=1.5*u;r=o.p2c(r),i=a.p2c(i),lt.beginPath(),"circle"==e.points.symbol?lt.arc(r,i,l,0,2*Math.PI,!1):e.points.symbol(lt,r,i,l,!1),lt.closePath(),lt.stroke()}}function et(e,n){var r,i="string"==typeof e.highlightColor?e.highlightColor:t.color.parse(e.color).scale("a",.5).toString(),o=i;switch(e.bars.align){case"left":r=0;break;case"right":r=-e.bars.barWidth;break;default:r=-e.bars.barWidth/2}lt.lineWidth=e.bars.lineWidth,lt.strokeStyle=i,q(n[0],n[1],n[2]||0,r,r+e.bars.barWidth,function(){return o},e.xaxis,e.yaxis,lt,e.bars.horizontal,e.bars.lineWidth)}function nt(e,n,r,i){if("string"==typeof e)return e;for(var o=ut.createLinearGradient(0,r,0,n),a=0,s=e.colors.length;a<s;++a){var u=e.colors[a];if("string"!=typeof u){var l=t.color.parse(i);null!=u.brightness&&(l=l.scale("rgb",u.brightness)),null!=u.opacity&&(l.a*=u.opacity),u=l.toString()}o.addColorStop(a/(s-1),u)}return o}var rt=[],it={colors:["#edc240","#afd8f8","#cb4b4b","#4da74d","#9440ed"],legend:{show:!0,noColumns:1,labelFormatter:null,labelBoxBorderColor:"#ccc",container:null,position:"ne",margin:5,backgroundColor:null,backgroundOpacity:.85,sorted:null},xaxis:{show:null,position:"bottom",mode:null,font:null,color:null,tickColor:null,transform:null,inverseTransform:null,min:null,max:null,autoscaleMargin:null,ticks:null,tickFormatter:null,labelWidth:null,labelHeight:null,reserveSpace:null,tickLength:null,alignTicksWithAxis:null,tickDecimals:null,tickSize:null,minTickSize:null},yaxis:{autoscaleMargin:.02,position:"left"},xaxes:[],yaxes:[],series:{points:{show:!1,radius:3,lineWidth:2,fill:!0,fillColor:"#ffffff",symbol:"circle"},lines:{lineWidth:2,fill:!1,fillColor:null,steps:!1},bars:{show:!1,lineWidth:2,barWidth:1,fill:!0,fillColor:null,align:"left",horizontal:!1,zero:!0},shadowSize:3,highlightColor:null},grid:{show:!0,aboveData:!1,color:"#545454",backgroundColor:null,borderColor:null,tickColor:null,margin:0,labelMargin:5,axisMargin:8,borderWidth:2,minBorderMargin:null,markings:null,markingsColor:"#f4f4f4",markingsLineWidth:2,clickable:!1,hoverable:!1,autoHighlight:!0,mouseActiveRadius:10},interaction:{redrawOverlayInterval:1e3/60},hooks:{}},ot=null,at=null,st=null,ut=null,lt=null,ct=[],ft=[],ht={left:0,right:0,top:0,bottom:0},dt=0,pt=0,mt={processOptions:[],processRawData:[],processDatapoints:[],processOffset:[],drawBackground:[],drawSeries:[],draw:[],bindEvents:[],drawOverlay:[],shutdown:[]},gt=this;gt.setData=c,gt.setupGrid=S,gt.draw=N,gt.getPlaceholder=function(){return n},gt.getCanvas=function(){return ot.element},gt.getPlotOffset=function(){return ht},gt.width=function(){return dt},gt.height=function(){return pt},gt.offset=function(){var t=st.offset();return t.left+=ht.left,t.top+=ht.top,t},gt.getData=function(){return rt},gt.getAxes=function(){var e={};return t.each(ct.concat(ft),function(t,n){n&&(e[n.direction+(1!=n.n?n.n:"")+"axis"]=n)}),e},gt.getXAxes=function(){return ct},gt.getYAxes=function(){return ft},gt.c2p=p,gt.p2c=m,gt.getOptions=function(){return it},gt.highlight=X,gt.unhighlight=J,gt.triggerRedrawOverlay=K,gt.pointOffset=function(t){return{left:parseInt(ct[h(t,"x")-1].p2c(+t.x)+ht.left,10),top:parseInt(ft[h(t,"y")-1].p2c(+t.y)+ht.top,10)}},gt.shutdown=w,gt.destroy=function(){w(),n.removeData("plot").empty(),rt=[],it=null,ot=null,at=null,st=null,ut=null,lt=null,ct=[],ft=[],mt=null,vt=[],gt=null},gt.resize=function(){var t=n.width(),e=n.height();ot.resize(t,e),at.resize(t,e)},gt.hooks=mt,u(gt),l(o),b(),c(i),S(),N(),_();var vt=[],yt=null}function r(t,e){return e*Math.floor(t/e)}var i=Object.prototype.hasOwnProperty;t.fn.detach||(t.fn.detach=function(){return this.each(function(){this.parentNode&&this.parentNode.removeChild(this)})}),e.prototype.resize=function(t,e){if(t<=0||e<=0)throw new Error("Invalid dimensions for plot, width = "+t+", height = "+e);var n=this.element,r=this.context,i=this.pixelRatio;this.width!=t&&(n.width=t*i,n.style.width=t+"px",this.width=t),this.height!=e&&(n.height=e*i,n.style.height=e+"px",this.height=e),r.restore(),r.save(),r.scale(i,i)},e.prototype.clear=function(){this.context.clearRect(0,0,this.width,this.height)},e.prototype.render=function(){var t=this._textCache;for(var e in t)if(i.call(t,e)){var n=this.getTextLayer(e),r=t[e];n.hide();for(var o in r)if(i.call(r,o)){var a=r[o];for(var s in a)if(i.call(a,s)){for(var u,l=a[s].positions,c=0;u=l[c];c++)u.active?u.rendered||(n.append(u.element),u.rendered=!0):(l.splice(c--,1),u.rendered&&u.element.detach());0==l.length&&delete a[s]}}n.show()}},e.prototype.getTextLayer=function(e){var n=this.text[e];return null==n&&(null==this.textContainer&&(this.textContainer=t("<div class='flot-text'></div>").css({position:"absolute",top:0,left:0,bottom:0,right:0,"font-size":"smaller",color:"#545454"}).insertAfter(this.element)),n=this.text[e]=t("<div></div>").addClass(e).css({position:"absolute",top:0,left:0,bottom:0,right:0}).appendTo(this.textContainer)),n},e.prototype.getTextInfo=function(e,n,r,i,o){var a,s,u,l;if(n=""+n,a="object"==typeof r?r.style+" "+r.variant+" "+r.weight+" "+r.size+"px/"+r.lineHeight+"px "+r.family:r,s=this._textCache[e],null==s&&(s=this._textCache[e]={}),u=s[a],null==u&&(u=s[a]={}),l=u[n],null==l){var c=t("<div></div>").html(n).css({position:"absolute","max-width":o,top:-9999}).appendTo(this.getTextLayer(e));"object"==typeof r?c.css({font:a,color:r.color}):"string"==typeof r&&c.addClass(r),l=u[n]={width:c.outerWidth(!0),height:c.outerHeight(!0),element:c,positions:[]},c.detach()}return l},e.prototype.addText=function(t,e,n,r,i,o,a,s,u){var l=this.getTextInfo(t,r,i,o,a),c=l.positions;"center"==s?e-=l.width/2:"right"==s&&(e-=l.width),"middle"==u?n-=l.height/2:"bottom"==u&&(n-=l.height);for(var f,h=0;f=c[h];h++)if(f.x==e&&f.y==n)return void(f.active=!0);f={active:!0,rendered:!1,element:c.length?l.element.clone():l.element,x:e,y:n},c.push(f),f.element.css({top:Math.round(n),left:Math.round(e),"text-align":s})},e.prototype.removeText=function(t,e,n,r,o,a){if(null==r){var s=this._textCache[t];if(null!=s)for(var u in s)if(i.call(s,u)){var l=s[u];for(var c in l)if(i.call(l,c))for(var f,h=l[c].positions,d=0;f=h[d];d++)f.active=!1}}else for(var f,h=this.getTextInfo(t,r,o,a).positions,d=0;f=h[d];d++)f.x==e&&f.y==n&&(f.active=!1)},t.plot=function(e,r,i){var o=new n(t(e),r,i,t.plot.plugins);return o},t.plot.version="0.8.3",t.plot.plugins=[],t.fn.plot=function(e,n){return this.each(function(){t.plot(this,e,n)})}}(jQuery),function(t){function e(e){function i(e,n,r){k||(k=!0,v=e.getCanvas(),y=t(v).parent(),b=e.getOptions(),e.setData(o(e.getData())))}function o(e){for(var n=0,r=0,i=0,o=b.series.pie.combine.color,a=[],s=0;s<e.length;++s){var u=e[s].data;t.isArray(u)&&1==u.length&&(u=u[0]),t.isArray(u)?!isNaN(parseFloat(u[1]))&&isFinite(u[1])?u[1]=+u[1]:u[1]=0:u=!isNaN(parseFloat(u))&&isFinite(u)?[1,+u]:[1,0],e[s].data=[u]}for(var s=0;s<e.length;++s)n+=e[s].data[0][1];for(var s=0;s<e.length;++s){var u=e[s].data[0][1];u/n<=b.series.pie.combine.threshold&&(r+=u,i++,o||(o=e[s].color))}for(var s=0;s<e.length;++s){var u=e[s].data[0][1];(i<2||u/n>b.series.pie.combine.threshold)&&a.push(t.extend(e[s],{data:[[1,u]],color:e[s].color,label:e[s].label,angle:u*Math.PI*2/n,percent:u/(n/100)}))}return i>1&&a.push({data:[[1,r]],color:o,label:b.series.pie.combine.label,angle:r*Math.PI*2/n,percent:r/(n/100)}),a}function a(e,i){function o(){C.clearRect(0,0,l,c),y.children().filter(".pieLabel, .pieLabelBackground").remove()}function a(){var t=b.series.pie.shadow.left,e=b.series.pie.shadow.top,n=10,r=b.series.pie.shadow.alpha,i=b.series.pie.radius>1?b.series.pie.radius:_*b.series.pie.radius;if(!(i>=l/2-t||i*b.series.pie.tilt>=c/2-e||i<=n)){C.save(),C.translate(t,e),C.globalAlpha=r,C.fillStyle="#000",C.translate(w,x),C.scale(1,b.series.pie.tilt);for(var o=1;o<=n;o++)C.beginPath(),C.arc(0,0,i,0,2*Math.PI,!1),C.fill(),i-=o;C.restore()}}function u(){function e(t,e,n){t<=0||isNaN(t)||(n?C.fillStyle=e:(C.strokeStyle=e,C.lineJoin="round"),C.beginPath(),Math.abs(t-2*Math.PI)>1e-9&&C.moveTo(0,0),C.arc(0,0,i,o,o+t/2,!1),C.arc(0,0,i,o+t/2,o+t,!1),C.closePath(),o+=t,n?C.fill():C.stroke())}function n(){function e(e,n,r){if(0==e.data[0][1])return!0;var o,a=b.legend.labelFormatter,s=b.series.pie.label.formatter;o=a?a(e.label,e):e.label,s&&(o=s(o,e));var u=(n+e.angle+n)/2,f=w+Math.round(Math.cos(u)*i),h=x+Math.round(Math.sin(u)*i)*b.series.pie.tilt,d="<span class='pieLabel' id='pieLabel"+r+"' style='position:absolute;top:"+h+"px;left:"+f+"px;'>"+o+"</span>";y.append(d);var p=y.children("#pieLabel"+r),m=h-p.height()/2,g=f-p.width()/2;if(p.css("top",m),p.css("left",g),0-m>0||0-g>0||c-(m+p.height())<0||l-(g+p.width())<0)return!1;if(0!=b.series.pie.label.background.opacity){var v=b.series.pie.label.background.color;null==v&&(v=e.color);var _="top:"+m+"px;left:"+g+"px;";t("<div class='pieLabelBackground' style='position:absolute;width:"+p.width()+"px;height:"+p.height()+"px;"+_+"background-color:"+v+";'></div>").css("opacity",b.series.pie.label.background.opacity).insertBefore(p)}return!0}for(var n=r,i=b.series.pie.label.radius>1?b.series.pie.label.radius:_*b.series.pie.label.radius,o=0;o<h.length;++o){if(h[o].percent>=100*b.series.pie.label.threshold&&!e(h[o],n,o))return!1;n+=h[o].angle}return!0}var r=Math.PI*b.series.pie.startAngle,i=b.series.pie.radius>1?b.series.pie.radius:_*b.series.pie.radius;C.save(),C.translate(w,x),C.scale(1,b.series.pie.tilt),C.save();for(var o=r,a=0;a<h.length;++a)h[a].startAngle=o,e(h[a].angle,h[a].color,!0);if(C.restore(),b.series.pie.stroke.width>0){C.save(),C.lineWidth=b.series.pie.stroke.width,o=r;for(var a=0;a<h.length;++a)e(h[a].angle,b.series.pie.stroke.color,!1);C.restore()}return s(C),C.restore(),!b.series.pie.label.show||n()}if(y){var l=e.getPlaceholder().width(),c=e.getPlaceholder().height(),f=y.children().filter(".legend").children().width()||0;C=i,k=!1,_=Math.min(l,c/b.series.pie.tilt)/2,x=c/2+b.series.pie.offset.top,w=l/2,"auto"==b.series.pie.offset.left?(b.legend.position.match("w")?w+=f/2:w-=f/2,w<_?w=_:w>l-_&&(w=l-_)):w+=b.series.pie.offset.left;var h=e.getData(),d=0;do d>0&&(_*=r),d+=1,o(),b.series.pie.tilt<=.8&&a();while(!u()&&d<n);d>=n&&(o(),y.prepend("<div class='error'>Could not draw pie with labels contained inside canvas</div>")),e.setSeries&&e.insertLegend&&(e.setSeries(h),e.insertLegend())}}function s(t){if(b.series.pie.innerRadius>0){t.save();var e=b.series.pie.innerRadius>1?b.series.pie.innerRadius:_*b.series.pie.innerRadius;t.globalCompositeOperation="destination-out",t.beginPath(),t.fillStyle=b.series.pie.stroke.color,t.arc(0,0,e,0,2*Math.PI,!1),t.fill(),t.closePath(),t.restore(),t.save(),t.beginPath(),t.strokeStyle=b.series.pie.stroke.color,t.arc(0,0,e,0,2*Math.PI,!1),t.stroke(),t.closePath(),t.restore()}}function u(t,e){for(var n=!1,r=-1,i=t.length,o=i-1;++r<i;o=r)(t[r][1]<=e[1]&&e[1]<t[o][1]||t[o][1]<=e[1]&&e[1]<t[r][1])&&e[0]<(t[o][0]-t[r][0])*(e[1]-t[r][1])/(t[o][1]-t[r][1])+t[r][0]&&(n=!n);return n}function l(t,n){for(var r,i,o=e.getData(),a=e.getOptions(),s=a.series.pie.radius>1?a.series.pie.radius:_*a.series.pie.radius,l=0;l<o.length;++l){var c=o[l];if(c.pie.show){if(C.save(),C.beginPath(),C.moveTo(0,0),C.arc(0,0,s,c.startAngle,c.startAngle+c.angle/2,!1),C.arc(0,0,s,c.startAngle+c.angle/2,c.startAngle+c.angle,!1),C.closePath(),r=t-w,i=n-x,C.isPointInPath){if(C.isPointInPath(t-w,n-x))return C.restore(),{datapoint:[c.percent,c.data],dataIndex:0,series:c,seriesIndex:l}}else{var f=s*Math.cos(c.startAngle),h=s*Math.sin(c.startAngle),d=s*Math.cos(c.startAngle+c.angle/4),p=s*Math.sin(c.startAngle+c.angle/4),m=s*Math.cos(c.startAngle+c.angle/2),g=s*Math.sin(c.startAngle+c.angle/2),v=s*Math.cos(c.startAngle+c.angle/1.5),y=s*Math.sin(c.startAngle+c.angle/1.5),b=s*Math.cos(c.startAngle+c.angle),k=s*Math.sin(c.startAngle+c.angle),E=[[0,0],[f,h],[d,p],[m,g],[v,y],[b,k]],$=[r,i];if(u(E,$))return C.restore(),{datapoint:[c.percent,c.data],dataIndex:0,series:c,seriesIndex:l}}C.restore()}}return null}function c(t){h("plothover",t)}function f(t){h("plotclick",t)}function h(t,n){var r=e.offset(),i=parseInt(n.pageX-r.left),o=parseInt(n.pageY-r.top),a=l(i,o);if(b.grid.autoHighlight)for(var s=0;s<E.length;++s){var u=E[s];u.auto!=t||a&&u.series==a.series||p(u.series)}a&&d(a.series,t);var c={pageX:n.pageX,pageY:n.pageY};y.trigger(t,[c,a])}function d(t,n){var r=m(t);r==-1?(E.push({series:t,auto:n}),e.triggerRedrawOverlay()):n||(E[r].auto=!1)}function p(t){null==t&&(E=[],e.triggerRedrawOverlay());var n=m(t);n!=-1&&(E.splice(n,1),e.triggerRedrawOverlay())}function m(t){for(var e=0;e<E.length;++e){var n=E[e];if(n.series==t)return e}return-1}function g(t,e){function n(t){t.angle<=0||isNaN(t.angle)||(e.fillStyle="rgba(255, 255, 255, "+r.series.pie.highlight.opacity+")",e.beginPath(),Math.abs(t.angle-2*Math.PI)>1e-9&&e.moveTo(0,0),e.arc(0,0,i,t.startAngle,t.startAngle+t.angle/2,!1),e.arc(0,0,i,t.startAngle+t.angle/2,t.startAngle+t.angle,!1),e.closePath(),e.fill())}var r=t.getOptions(),i=r.series.pie.radius>1?r.series.pie.radius:_*r.series.pie.radius;e.save(),e.translate(w,x),e.scale(1,r.series.pie.tilt);for(var o=0;o<E.length;++o)n(E[o].series);s(e),e.restore()}var v=null,y=null,b=null,_=null,w=null,x=null,k=!1,C=null,E=[];e.hooks.processOptions.push(function(t,e){e.series.pie.show&&(e.grid.show=!1,"auto"==e.series.pie.label.show&&(e.legend.show?e.series.pie.label.show=!1:e.series.pie.label.show=!0),"auto"==e.series.pie.radius&&(e.series.pie.label.show?e.series.pie.radius=.75:e.series.pie.radius=1),e.series.pie.tilt>1?e.series.pie.tilt=1:e.series.pie.tilt<0&&(e.series.pie.tilt=0))}),e.hooks.bindEvents.push(function(t,e){var n=t.getOptions();n.series.pie.show&&(n.grid.hoverable&&e.unbind("mousemove").mousemove(c),n.grid.clickable&&e.unbind("click").click(f))}),e.hooks.processDatapoints.push(function(t,e,n,r){var o=t.getOptions();o.series.pie.show&&i(t,e,n,r)}),e.hooks.drawOverlay.push(function(t,e){var n=t.getOptions();n.series.pie.show&&g(t,e)}),e.hooks.draw.push(function(t,e){var n=t.getOptions();n.series.pie.show&&a(t,e)})}var n=10,r=.95,i={series:{pie:{show:!1,radius:"auto",innerRadius:0,startAngle:1.5,tilt:1,shadow:{left:5,top:15,alpha:.02},offset:{top:0,left:"auto"},stroke:{color:"#fff",width:1},label:{show:"auto",formatter:function(t,e){return"<div style='font-size:x-small;text-align:center;padding:2px;color:"+e.color+";'>"+t+"<br/>"+Math.round(e.percent)+"%</div>"},radius:1,background:{color:null,opacity:0},threshold:0},combine:{threshold:-1,color:null,label:"Other"},highlight:{opacity:.5}}}};t.plot.plugins.push({init:e,options:i,name:"pie",version:"1.1"})}(jQuery),function(t){function e(t,e){return e*Math.floor(t/e)}function n(t,e,n,r){if("function"==typeof t.strftime)return t.strftime(e);var i=function(t,e){return t=""+t,e=""+(null==e?"0":e),1==t.length?e+t:t},o=[],a=!1,s=t.getHours(),u=s<12;null==n&&(n=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]),null==r&&(r=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]);var l;l=s>12?s-12:0==s?12:s;for(var c=0;c<e.length;++c){var f=e.charAt(c);if(a){switch(f){case"a":f=""+r[t.getDay()];break;case"b":f=""+n[t.getMonth()];break;case"d":f=i(t.getDate());break;case"e":f=i(t.getDate()," ");break;case"h":case"H":f=i(s);break;case"I":f=i(l);break;case"l":f=i(l," ");break;case"m":f=i(t.getMonth()+1);break;case"M":f=i(t.getMinutes());break;case"q":f=""+(Math.floor(t.getMonth()/3)+1);break;case"S":f=i(t.getSeconds());break;case"y":f=i(t.getFullYear()%100);break;case"Y":f=""+t.getFullYear();break;case"p":f=u?"am":"pm";break;case"P":f=u?"AM":"PM";break;case"w":f=""+t.getDay()}o.push(f),a=!1}else"%"==f?a=!0:o.push(f)}return o.join("")}function r(t){function e(t,e,n,r){t[e]=function(){return n[r].apply(n,arguments)}}var n={date:t};void 0!=t.strftime&&e(n,"strftime",t,"strftime"),e(n,"getTime",t,"getTime"),e(n,"setTime",t,"setTime");for(var r=["Date","Day","FullYear","Hours","Milliseconds","Minutes","Month","Seconds"],i=0;i<r.length;i++)e(n,"get"+r[i],t,"getUTC"+r[i]),e(n,"set"+r[i],t,"setUTC"+r[i]);return n}function i(t,e){if("browser"==e.timezone)return new Date(t);if(e.timezone&&"utc"!=e.timezone){if("undefined"!=typeof timezoneJS&&"undefined"!=typeof timezoneJS.Date){var n=new timezoneJS.Date;return n.setTimezone(e.timezone),n.setTime(t),n}return r(new Date(t))}return r(new Date(t))}function o(r){r.hooks.processOptions.push(function(r,o){t.each(r.getAxes(),function(t,r){var o=r.options;"time"==o.mode&&(r.tickGenerator=function(t){var n=[],r=i(t.min,o),a=0,u=o.tickSize&&"quarter"===o.tickSize[1]||o.minTickSize&&"quarter"===o.minTickSize[1]?c:l;null!=o.minTickSize&&(a="number"==typeof o.tickSize?o.tickSize:o.minTickSize[0]*s[o.minTickSize[1]]);for(var f=0;f<u.length-1&&!(t.delta<(u[f][0]*s[u[f][1]]+u[f+1][0]*s[u[f+1][1]])/2&&u[f][0]*s[u[f][1]]>=a);++f);var h=u[f][0],d=u[f][1];if("year"==d){if(null!=o.minTickSize&&"year"==o.minTickSize[1])h=Math.floor(o.minTickSize[0]);else{var p=Math.pow(10,Math.floor(Math.log(t.delta/s.year)/Math.LN10)),m=t.delta/s.year/p;h=m<1.5?1:m<3?2:m<7.5?5:10,h*=p}h<1&&(h=1)}t.tickSize=o.tickSize||[h,d];var g=t.tickSize[0];d=t.tickSize[1];var v=g*s[d];"second"==d?r.setSeconds(e(r.getSeconds(),g)):"minute"==d?r.setMinutes(e(r.getMinutes(),g)):"hour"==d?r.setHours(e(r.getHours(),g)):"month"==d?r.setMonth(e(r.getMonth(),g)):"quarter"==d?r.setMonth(3*e(r.getMonth()/3,g)):"year"==d&&r.setFullYear(e(r.getFullYear(),g)),r.setMilliseconds(0),v>=s.minute&&r.setSeconds(0),v>=s.hour&&r.setMinutes(0),v>=s.day&&r.setHours(0),v>=4*s.day&&r.setDate(1),v>=2*s.month&&r.setMonth(e(r.getMonth(),3)),v>=2*s.quarter&&r.setMonth(e(r.getMonth(),6)),v>=s.year&&r.setMonth(0);var y,b=0,_=Number.NaN;do if(y=_,_=r.getTime(),n.push(_),"month"==d||"quarter"==d)if(g<1){r.setDate(1);var w=r.getTime();r.setMonth(r.getMonth()+("quarter"==d?3:1));var x=r.getTime();r.setTime(_+b*s.hour+(x-w)*g),b=r.getHours(),r.setHours(0)}else r.setMonth(r.getMonth()+g*("quarter"==d?3:1));else"year"==d?r.setFullYear(r.getFullYear()+g):r.setTime(_+v);while(_<t.max&&_!=y);return n},r.tickFormatter=function(t,e){var r=i(t,e.options);if(null!=o.timeformat)return n(r,o.timeformat,o.monthNames,o.dayNames);var a,u=e.options.tickSize&&"quarter"==e.options.tickSize[1]||e.options.minTickSize&&"quarter"==e.options.minTickSize[1],l=e.tickSize[0]*s[e.tickSize[1]],c=e.max-e.min,f=o.twelveHourClock?" %p":"",h=o.twelveHourClock?"%I":"%H";a=l<s.minute?h+":%M:%S"+f:l<s.day?c<2*s.day?h+":%M"+f:"%b %d "+h+":%M"+f:l<s.month?"%b %d":u&&l<s.quarter||!u&&l<s.year?c<s.year?"%b":"%b %Y":u&&l<s.year?c<s.year?"Q%q":"Q%q %Y":"%Y";var d=n(r,a,o.monthNames,o.dayNames);return d})})})}var a={xaxis:{timezone:null,timeformat:null,twelveHourClock:!1,monthNames:null}},s={second:1e3,minute:6e4,hour:36e5,day:864e5,month:2592e6,quarter:7776e6,year:525949.2*60*1e3},u=[[1,"second"],[2,"second"],[5,"second"],[10,"second"],[30,"second"],[1,"minute"],[2,"minute"],[5,"minute"],[10,"minute"],[30,"minute"],[1,"hour"],[2,"hour"],[4,"hour"],[8,"hour"],[12,"hour"],[1,"day"],[2,"day"],[3,"day"],[.25,"month"],[.5,"month"],[1,"month"],[2,"month"]],l=u.concat([[3,"month"],[6,"month"],[1,"year"]]),c=u.concat([[1,"quarter"],[2,"quarter"],[1,"year"]]);t.plot.plugins.push({init:o,options:a,name:"time",version:"1.0"}),t.plot.formatDate=n,t.plot.dateGenerator=i}(jQuery),function(t){function e(e){var n=!1;e.hooks.draw.push(function(e,r){n?(t.each(e.getAxes(),function(n,r){var i=r.options||e.getOptions()[n];if(i&&i.axisLabel)if(i.axisLabelUseCanvas){var o=e.getCanvas().getContext("2d");o.save(),o.font=i.axisLabelFontSizePixels+"px "+i.axisLabelFontFamily;var a,s,u=o.measureText(i.axisLabel).width,l=i.axisLabelFontSizePixels;"x"==n.charAt(0)?(a=e.getPlotOffset().left+e.width()/2-u/2,s=e.getCanvas().height):(a=.72*l,s=e.getPlotOffset().top+e.height()/2-u/2),o.translate(a,s),o.rotate("x"==n.charAt(0)?0:-Math.PI/2),o.fillText(i.axisLabel,0,0),o.restore()}else{e.getPlaceholder().find("#"+n+"Label").remove();var c=t('<div id="'+n+'Label" " class="axisLabels" style="position:absolute;">'+i.axisLabel+"</div>");"x"==n.charAt(0)?(c.css("left",e.getPlotOffset().left+e.width()/2-c.outerWidth()/2+"px"),c.css("bottom","0px")):(c.css("top",e.getPlotOffset().top+e.height()/2-c.outerHeight()/2+"px"),c.css("left","0px")),e.getPlaceholder().append(c)}}),n=!1):(t.each(e.getAxes(),function(n,r){var i=r.options||e.getOptions()[n];if(i&&i.axisLabel){var o,a;if(0!=i.axisLabelUseCanvas&&(i.axisLabelUseCanvas=!0),i.axisLabelUseCanvas)i.axisLabelFontSizePixels||(i.axisLabelFontSizePixels=14),i.axisLabelFontFamily||(i.axisLabelFontFamily="sans-serif"),o=i.axisLabelFontSizePixels,a=i.axisLabelFontSizePixels;else{var s=t('<div class="axisLabels" style="position:absolute;">'+i.axisLabel+"</div>");e.getPlaceholder().append(s),o=s.outerWidth(!0),a=s.outerHeight(!0),s.remove()}"x"==n.charAt(0)?r.labelHeight+=a:r.labelWidth+=o,i.labelHeight=r.labelHeight,i.labelWidth=r.labelWidth}}),n=!0,e.setupGrid(),e.draw())})}var n={};t.plot.plugins.push({init:e,options:n,name:"axisLabels",version:"1.0"})}(jQuery),function(t){var e={tooltip:{show:!1,cssClass:"flotTip",content:"%s | X: %x | Y: %y",xDateFormat:null,yDateFormat:null,monthNames:null,dayNames:null,shifts:{x:10,y:20},defaultTheme:!0,snap:!0,lines:!1,clickTips:!1,onHover:function(t,e){},$compat:!1}};e.tooltipOpts=e.tooltip;var n=function(t){this.tipPosition={x:0,y:0},this.init(t)};n.prototype.init=function(e){function n(t){var n={};n.x=t.pageX,n.y=t.pageY,e.setTooltipPosition(n)}function r(n,r,a){o.clickmode?(t(e.getPlaceholder()).bind("plothover",i),e.hideTooltip(),o.clickmode=!1):(i(n,r,a),o.getDomElement().is(":visible")&&(t(e.getPlaceholder()).unbind("plothover",i),o.clickmode=!0))}function i(n,r,i){var a=function(t,e,n,r){return Math.sqrt((n-t)*(n-t)+(r-e)*(r-e))},s=function(t,e,n,r,i,o,s){if(!s||(s=function(t,e,n,r,i,o){if("undefined"!=typeof n)return{x:n,y:e};if("undefined"!=typeof r)return{x:t,y:r};var a,s=-1/((o-r)/(i-n));return{x:a=(i*(t*s-e+r)+n*(t*-s+e-o))/(s*(i-n)+r-o),y:s*a-s*t+e}}(t,e,n,r,i,o),s.x>=Math.min(n,i)&&s.x<=Math.max(n,i)&&s.y>=Math.min(r,o)&&s.y<=Math.max(r,o))){var u=r-o,l=i-n,c=n*o-r*i;return Math.abs(u*t+l*e+c)/Math.sqrt(u*u+l*l)}var f=a(t,e,n,r),h=a(t,e,i,o);return f>h?h:f};if(i)e.showTooltip(i,o.tooltipOptions.snap?i:r);else if(o.plotOptions.series.lines.show&&o.tooltipOptions.lines===!0){var u=o.plotOptions.grid.mouseActiveRadius,l={distance:u+1},c=r;t.each(e.getData(),function(t,n){for(var i=0,u=-1,f=1;f<n.data.length;f++)n.data[f-1][0]<=r.x&&n.data[f][0]>=r.x&&(i=f-1,u=f);if(u===-1)return void e.hideTooltip();var h={x:n.data[i][0],y:n.data[i][1]},d={x:n.data[u][0],y:n.data[u][1]},p=s(n.xaxis.p2c(r.x),n.yaxis.p2c(r.y),n.xaxis.p2c(h.x),n.yaxis.p2c(h.y),n.xaxis.p2c(d.x),n.yaxis.p2c(d.y),!1);if(p<l.distance){var m=a(h.x,h.y,r.x,r.y)<a(r.x,r.y,d.x,d.y)?i:u,g=(n.datapoints.pointsize,[r.x,h.y+(d.y-h.y)*((r.x-h.x)/(d.x-h.x))]),v={datapoint:g,dataIndex:m,series:n,seriesIndex:t};l={distance:p,item:v},o.tooltipOptions.snap&&(c={pageX:n.xaxis.p2c(g[0]),pageY:n.yaxis.p2c(g[1])})}}),l.distance<u+1?e.showTooltip(l.item,c):e.hideTooltip()}else e.hideTooltip()}var o=this,a=t.plot.plugins.length;if(this.plotPlugins=[],a)for(var s=0;s<a;s++)this.plotPlugins.push(t.plot.plugins[s].name);e.hooks.bindEvents.push(function(e,a){if(o.plotOptions=e.getOptions(),"boolean"==typeof o.plotOptions.tooltip&&(o.plotOptions.tooltipOpts.show=o.plotOptions.tooltip,o.plotOptions.tooltip=o.plotOptions.tooltipOpts,delete o.plotOptions.tooltipOpts),o.plotOptions.tooltip.show!==!1&&"undefined"!=typeof o.plotOptions.tooltip.show){o.tooltipOptions=o.plotOptions.tooltip,o.tooltipOptions.$compat?(o.wfunc="width",o.hfunc="height"):(o.wfunc="innerWidth",o.hfunc="innerHeight");o.getDomElement();t(e.getPlaceholder()).bind("plothover",i),o.tooltipOptions.clickTips&&t(e.getPlaceholder()).bind("plotclick",r),o.clickmode=!1,t(a).bind("mousemove",n)}}),e.hooks.shutdown.push(function(e,o){t(e.getPlaceholder()).unbind("plothover",i),t(e.getPlaceholder()).unbind("plotclick",r),e.removeTooltip(),t(o).unbind("mousemove",n)}),e.setTooltipPosition=function(e){var n=o.getDomElement(),r=n.outerWidth()+o.tooltipOptions.shifts.x,i=n.outerHeight()+o.tooltipOptions.shifts.y;e.x-t(window).scrollLeft()>t(window)[o.wfunc]()-r&&(e.x-=r,e.x=Math.max(e.x,0)),e.y-t(window).scrollTop()>t(window)[o.hfunc]()-i&&(e.y-=i),isNaN(e.x)?o.tipPosition.x=o.tipPosition.xPrev:(o.tipPosition.x=e.x,o.tipPosition.xPrev=e.x),isNaN(e.y)?o.tipPosition.y=o.tipPosition.yPrev:(o.tipPosition.y=e.y,o.tipPosition.yPrev=e.y)},e.showTooltip=function(t,n,r){var i=o.getDomElement(),a=o.stringFormat(o.tooltipOptions.content,t);""!==a&&(i.html(a),e.setTooltipPosition({x:o.tipPosition.x,y:o.tipPosition.y}),i.css({left:o.tipPosition.x+o.tooltipOptions.shifts.x,top:o.tipPosition.y+o.tooltipOptions.shifts.y}).show(),"function"==typeof o.tooltipOptions.onHover&&o.tooltipOptions.onHover(t,i))},e.hideTooltip=function(){o.getDomElement().hide().html("")},e.removeTooltip=function(){o.getDomElement().remove()}},n.prototype.getDomElement=function(){var e=t("<div>");return this.tooltipOptions&&this.tooltipOptions.cssClass&&(e=t("."+this.tooltipOptions.cssClass),0===e.length&&(e=t("<div />").addClass(this.tooltipOptions.cssClass),e.appendTo("body").hide().css({position:"absolute"}),this.tooltipOptions.defaultTheme&&e.css({background:"#fff","z-index":"1040",padding:"0.4em 0.6em","border-radius":"0.5em","font-size":"0.8em",border:"1px solid #111",display:"none","white-space":"nowrap"}))),e},n.prototype.stringFormat=function(t,e){var n,r,i,o,a,s=/%p\.{0,1}(\d{0,})/,u=/%s/,l=/%c/,c=/%lx/,f=/%ly/,h=/%x\.{0,1}(\d{0,})/,d=/%y\.{0,1}(\d{0,})/,p="%x",m="%y",g="%ct",v="%n";if("undefined"!=typeof e.series.threshold?(n=e.datapoint[0],r=e.datapoint[1],i=e.datapoint[2]):"undefined"!=typeof e.series.curvedLines?(n=e.datapoint[0],r=e.datapoint[1]):"undefined"!=typeof e.series.lines&&e.series.lines.steps?(n=e.series.datapoints.points[2*e.dataIndex],r=e.series.datapoints.points[2*e.dataIndex+1],i=""):(n=e.series.data[e.dataIndex][0],r=e.series.data[e.dataIndex][1],i=e.series.data[e.dataIndex][2]),null===e.series.label&&e.series.originSeries&&(e.series.label=e.series.originSeries.label),"function"==typeof t&&(t=t(e.series.label,n,r,e)),"boolean"==typeof t&&!t)return"";if(i&&(t=t.replace(g,i)),"undefined"!=typeof e.series.percent?o=e.series.percent:"undefined"!=typeof e.series.percents&&(o=e.series.percents[e.dataIndex]),"number"==typeof o&&(t=this.adjustValPrecision(s,t,o)),e.series.hasOwnProperty("pie")&&"undefined"!=typeof e.series.data[0][1]&&(a=e.series.data[0][1]),"number"==typeof a&&(t=t.replace(v,a)),t="undefined"!=typeof e.series.label?t.replace(u,e.series.label):t.replace(u,""),t="undefined"!=typeof e.series.color?t.replace(l,e.series.color):t.replace(l,""),t=this.hasAxisLabel("xaxis",e)?t.replace(c,e.series.xaxis.options.axisLabel):t.replace(c,""),t=this.hasAxisLabel("yaxis",e)?t.replace(f,e.series.yaxis.options.axisLabel):t.replace(f,""),this.isTimeMode("xaxis",e)&&this.isXDateFormat(e)&&(t=t.replace(h,this.timestampToDate(n,this.tooltipOptions.xDateFormat,e.series.xaxis.options))),this.isTimeMode("yaxis",e)&&this.isYDateFormat(e)&&(t=t.replace(d,this.timestampToDate(r,this.tooltipOptions.yDateFormat,e.series.yaxis.options))),"number"==typeof n&&(t=this.adjustValPrecision(h,t,n)),"number"==typeof r&&(t=this.adjustValPrecision(d,t,r)),"undefined"!=typeof e.series.xaxis.ticks){var y;y=this.hasRotatedXAxisTicks(e)?"rotatedTicks":"ticks";var b=e.dataIndex+e.seriesIndex;for(var _ in e.series.xaxis[y])if(e.series.xaxis[y].hasOwnProperty(b)&&!this.isTimeMode("xaxis",e)){var w=this.isCategoriesMode("xaxis",e)?e.series.xaxis[y][b].label:e.series.xaxis[y][b].v;w===n&&(t=t.replace(h,e.series.xaxis[y][b].label.replace(/\$/g,"$$$$")))}}if("undefined"!=typeof e.series.yaxis.ticks)for(var x in e.series.yaxis.ticks)if(e.series.yaxis.ticks.hasOwnProperty(x)){var k=this.isCategoriesMode("yaxis",e)?e.series.yaxis.ticks[x].label:e.series.yaxis.ticks[x].v;k===r&&(t=t.replace(d,e.series.yaxis.ticks[x].label.replace(/\$/g,"$$$$")))}return"undefined"!=typeof e.series.xaxis.tickFormatter&&(t=t.replace(p,e.series.xaxis.tickFormatter(n,e.series.xaxis).replace(/\$/g,"$$"))),"undefined"!=typeof e.series.yaxis.tickFormatter&&(t=t.replace(m,e.series.yaxis.tickFormatter(r,e.series.yaxis).replace(/\$/g,"$$"))),t},n.prototype.isTimeMode=function(t,e){return"undefined"!=typeof e.series[t].options.mode&&"time"===e.series[t].options.mode},n.prototype.isXDateFormat=function(t){return"undefined"!=typeof this.tooltipOptions.xDateFormat&&null!==this.tooltipOptions.xDateFormat},n.prototype.isYDateFormat=function(t){return"undefined"!=typeof this.tooltipOptions.yDateFormat&&null!==this.tooltipOptions.yDateFormat},n.prototype.isCategoriesMode=function(t,e){return"undefined"!=typeof e.series[t].options.mode&&"categories"===e.series[t].options.mode},n.prototype.timestampToDate=function(e,n,r){var i=t.plot.dateGenerator(e,r);return t.plot.formatDate(i,n,this.tooltipOptions.monthNames,this.tooltipOptions.dayNames)},n.prototype.adjustValPrecision=function(t,e,n){var r,i=e.match(t);return null!==i&&""!==RegExp.$1&&(r=RegExp.$1,n=n.toFixed(r),e=e.replace(t,n)),e},n.prototype.hasAxisLabel=function(e,n){return t.inArray("axisLabels",this.plotPlugins)!==-1&&"undefined"!=typeof n.series[e].options.axisLabel&&n.series[e].options.axisLabel.length>0},n.prototype.hasRotatedXAxisTicks=function(e){return t.inArray("tickRotor",this.plotPlugins)!==-1&&"undefined"!=typeof e.series.xaxis.rotatedTicks};var r=function(t){new n(t)};t.plot.plugins.push({init:r,options:e,name:"tooltip",version:"0.8.5"})}(jQuery),function(t){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var e;e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,
|
||
e.Raven=t()}}(function(){return function t(e,n,r){function i(a,s){if(!n[a]){if(!e[a]){var u="function"==typeof require&&require;if(!s&&u)return u(a,!0);if(o)return o(a,!0);var l=new Error("Cannot find module '"+a+"'");throw l.code="MODULE_NOT_FOUND",l}var c=n[a]={exports:{}};e[a][0].call(c.exports,function(t){var n=e[a][1][t];return i(n?n:t)},c,c.exports,t,e,n,r)}return n[a].exports}for(var o="function"==typeof require&&require,a=0;a<r.length;a++)i(r[a]);return i}({1:[function(t,e,n){function r(t){this.name="RavenConfigError",this.message=t}r.prototype=new Error,r.prototype.constructor=r,e.exports=r},{}],2:[function(t,e,n){var r=t(5),i=function(t,e,n){var i=t[e],o=t;if(e in t){var a="warn"===e?"warning":e;t[e]=function(){var t=[].slice.call(arguments),s=r.safeJoin(t," "),u={level:a,logger:"console",extra:{arguments:t}};"assert"===e?t[0]===!1&&(s="Assertion failed: "+(r.safeJoin(t.slice(1)," ")||"console.assert"),u.extra.arguments=t.slice(1),n&&n(s,u)):n&&n(s,u),i&&Function.prototype.apply.call(i,o,t)}}};e.exports={wrapMethod:i}},{5:5}],3:[function(t,e,n){(function(n){function r(){return+new Date}function i(t,e){return p(e)?function(n){return e(n,t)}:e}function o(){this._hasJSON=!("object"!=typeof JSON||!JSON.stringify),this._hasDocument=!d(L),this._hasNavigator=!d(R),this._lastCapturedException=null,this._lastData=null,this._lastEventId=null,this._globalServer=null,this._globalKey=null,this._globalProject=null,this._globalContext={},this._globalOptions={release:P.SENTRY_RELEASE&&P.SENTRY_RELEASE.id,logger:"javascript",ignoreErrors:[],ignoreUrls:[],whitelistUrls:[],includePaths:[],headers:null,collectWindowErrors:!0,captureUnhandledRejections:!0,maxMessageLength:0,maxUrlLength:250,stackTraceLimit:50,autoBreadcrumbs:!0,instrument:!0,sampleRate:1},this._fetchDefaults={method:"POST",keepalive:!0,referrerPolicy:N()?"origin":""},this._ignoreOnError=0,this._isRavenInstalled=!1,this._originalErrorStackTraceLimit=Error.stackTraceLimit,this._originalConsole=P.console||{},this._originalConsoleMethods={},this._plugins=[],this._startTime=r(),this._wrappedBuiltIns=[],this._breadcrumbs=[],this._lastCapturedEvent=null,this._keypressTimeout,this._location=P.location,this._lastHref=this._location&&this._location.href,this._resetBackoff();for(var t in this._originalConsole)this._originalConsoleMethods[t]=this._originalConsole[t]}var a=t(6),s=t(7),u=t(1),l=t(5),c=l.isError,f=l.isObject,h=l.isErrorEvent,d=l.isUndefined,p=l.isFunction,m=l.isString,g=l.isArray,v=l.isEmptyObject,y=l.each,b=l.objectMerge,_=l.truncate,w=l.objectFrozen,x=l.hasKey,k=l.joinRegExp,C=l.urlencode,E=l.uuid4,$=l.htmlTreeAsString,S=l.isSameException,A=l.isSameStacktrace,T=l.parseUrl,D=l.fill,F=l.supportsFetch,N=l.supportsReferrerPolicy,M=t(2).wrapMethod,O="source protocol user pass host port path".split(" "),j=/^(?:(\w+):)?\/\/(?:(\w+)(:\w+)?@)?([\w\.-]+)(?::(\d+))?(\/.*)/,P="undefined"!=typeof window?window:"undefined"!=typeof n?n:"undefined"!=typeof self?self:{},L=P.document,R=P.navigator;o.prototype={VERSION:"3.23.1",debug:!1,TraceKit:a,config:function(t,e){var n=this;if(n._globalServer)return this._logDebug("error","Error: Raven has already been configured"),n;if(!t)return n;var r=n._globalOptions;e&&y(e,function(t,e){"tags"===t||"extra"===t||"user"===t?n._globalContext[t]=e:r[t]=e}),n.setDSN(t),r.ignoreErrors.push(/^Script error\.?$/),r.ignoreErrors.push(/^Javascript error: Script error\.? on line 0$/),r.ignoreErrors=k(r.ignoreErrors),r.ignoreUrls=!!r.ignoreUrls.length&&k(r.ignoreUrls),r.whitelistUrls=!!r.whitelistUrls.length&&k(r.whitelistUrls),r.includePaths=k(r.includePaths),r.maxBreadcrumbs=Math.max(0,Math.min(r.maxBreadcrumbs||100,100));var i={xhr:!0,console:!0,dom:!0,location:!0,sentry:!0},o=r.autoBreadcrumbs;"[object Object]"==={}.toString.call(o)?o=b(i,o):o!==!1&&(o=i),r.autoBreadcrumbs=o;var s={tryCatch:!0},u=r.instrument;return"[object Object]"==={}.toString.call(u)?u=b(s,u):u!==!1&&(u=s),r.instrument=u,a.collectWindowErrors=!!r.collectWindowErrors,n},install:function(){var t=this;return t.isSetup()&&!t._isRavenInstalled&&(a.report.subscribe(function(){t._handleOnErrorStackInfo.apply(t,arguments)}),t._globalOptions.captureUnhandledRejections&&t._attachPromiseRejectionHandler(),t._patchFunctionToString(),t._globalOptions.instrument&&t._globalOptions.instrument.tryCatch&&t._instrumentTryCatch(),t._globalOptions.autoBreadcrumbs&&t._instrumentBreadcrumbs(),t._drainPlugins(),t._isRavenInstalled=!0),Error.stackTraceLimit=t._globalOptions.stackTraceLimit,this},setDSN:function(t){var e=this,n=e._parseDSN(t),r=n.path.lastIndexOf("/"),i=n.path.substr(1,r);e._dsn=t,e._globalKey=n.user,e._globalSecret=n.pass&&n.pass.substr(1),e._globalProject=n.path.substr(r+1),e._globalServer=e._getGlobalServer(n),e._globalEndpoint=e._globalServer+"/"+i+"api/"+e._globalProject+"/store/",this._resetBackoff()},context:function(t,e,n){return p(t)&&(n=e||[],e=t,t=void 0),this.wrap(t,e).apply(this,n)},wrap:function(t,e,n){function r(){var r=[],o=arguments.length,a=!t||t&&t.deep!==!1;for(n&&p(n)&&n.apply(this,arguments);o--;)r[o]=a?i.wrap(t,arguments[o]):arguments[o];try{return e.apply(this,r)}catch(s){throw i._ignoreNextOnError(),i.captureException(s,t),s}}var i=this;if(d(e)&&!p(t))return t;if(p(t)&&(e=t,t=void 0),!p(e))return e;try{if(e.__raven__)return e;if(e.__raven_wrapper__)return e.__raven_wrapper__}catch(o){return e}for(var a in e)x(e,a)&&(r[a]=e[a]);return r.prototype=e.prototype,e.__raven_wrapper__=r,r.__raven__=!0,r.__orig__=e,r},uninstall:function(){return a.report.uninstall(),this._detachPromiseRejectionHandler(),this._unpatchFunctionToString(),this._restoreBuiltIns(),this._restoreConsole(),Error.stackTraceLimit=this._originalErrorStackTraceLimit,this._isRavenInstalled=!1,this},_promiseRejectionHandler:function(t){this._logDebug("debug","Raven caught unhandled promise rejection:",t),this.captureException(t.reason)},_attachPromiseRejectionHandler:function(){return this._promiseRejectionHandler=this._promiseRejectionHandler.bind(this),P.addEventListener&&P.addEventListener("unhandledrejection",this._promiseRejectionHandler),this},_detachPromiseRejectionHandler:function(){return P.removeEventListener&&P.removeEventListener("unhandledrejection",this._promiseRejectionHandler),this},captureException:function(t,e){e=b({trimHeadFrames:0},e?e:{});var n=!c(t),r=!h(t),i=h(t)&&!t.error;if(n&&r||i)return this.captureMessage(t,b(e,{stacktrace:!0,trimHeadFrames:e.trimHeadFrames+1}));h(t)&&(t=t.error),this._lastCapturedException=t;try{var o=a.computeStackTrace(t);this._handleStackInfo(o,e)}catch(s){if(t!==s)throw s}return this},captureMessage:function(t,e){if(!this._globalOptions.ignoreErrors.test||!this._globalOptions.ignoreErrors.test(t)){e=e||{};var n,r=b({message:t+""},e);try{throw new Error(t)}catch(i){n=i}n.name=null;var o=a.computeStackTrace(n),s=g(o.stack)&&o.stack[1],u=s&&s.url||"";if((!this._globalOptions.ignoreUrls.test||!this._globalOptions.ignoreUrls.test(u))&&(!this._globalOptions.whitelistUrls.test||this._globalOptions.whitelistUrls.test(u))){if(this._globalOptions.stacktrace||e&&e.stacktrace){e=b({fingerprint:t,trimHeadFrames:0},e),e.trimHeadFrames+=1;var l=this._prepareFrames(o,e);r.stacktrace={frames:l.reverse()}}return this._send(r),this}}},captureBreadcrumb:function(t){var e=b({timestamp:r()/1e3},t);if(p(this._globalOptions.breadcrumbCallback)){var n=this._globalOptions.breadcrumbCallback(e);if(f(n)&&!v(n))e=n;else if(n===!1)return this}return this._breadcrumbs.push(e),this._breadcrumbs.length>this._globalOptions.maxBreadcrumbs&&this._breadcrumbs.shift(),this},addPlugin:function(t){var e=[].slice.call(arguments,1);return this._plugins.push([t,e]),this._isRavenInstalled&&this._drainPlugins(),this},setUserContext:function(t){return this._globalContext.user=t,this},setExtraContext:function(t){return this._mergeContext("extra",t),this},setTagsContext:function(t){return this._mergeContext("tags",t),this},clearContext:function(){return this._globalContext={},this},getContext:function(){return JSON.parse(s(this._globalContext))},setEnvironment:function(t){return this._globalOptions.environment=t,this},setRelease:function(t){return this._globalOptions.release=t,this},setDataCallback:function(t){var e=this._globalOptions.dataCallback;return this._globalOptions.dataCallback=i(e,t),this},setBreadcrumbCallback:function(t){var e=this._globalOptions.breadcrumbCallback;return this._globalOptions.breadcrumbCallback=i(e,t),this},setShouldSendCallback:function(t){var e=this._globalOptions.shouldSendCallback;return this._globalOptions.shouldSendCallback=i(e,t),this},setTransport:function(t){return this._globalOptions.transport=t,this},lastException:function(){return this._lastCapturedException},lastEventId:function(){return this._lastEventId},isSetup:function(){return!!this._hasJSON&&(!!this._globalServer||(this.ravenNotConfiguredError||(this.ravenNotConfiguredError=!0,this._logDebug("error","Error: Raven has not been configured.")),!1))},afterLoad:function(){var t=P.RavenConfig;t&&this.config(t.dsn,t.config).install()},showReportDialog:function(t){if(L){t=t||{};var e=t.eventId||this.lastEventId();if(!e)throw new u("Missing eventId");var n=t.dsn||this._dsn;if(!n)throw new u("Missing DSN");var r=encodeURIComponent,i="";i+="?eventId="+r(e),i+="&dsn="+r(n);var o=t.user||this._globalContext.user;o&&(o.name&&(i+="&name="+r(o.name)),o.email&&(i+="&email="+r(o.email)));var a=this._getGlobalServer(this._parseDSN(n)),s=L.createElement("script");s.async=!0,s.src=a+"/api/embed/error-page/"+i,(L.head||L.body).appendChild(s)}},_ignoreNextOnError:function(){var t=this;this._ignoreOnError+=1,setTimeout(function(){t._ignoreOnError-=1})},_triggerEvent:function(t,e){var n,r;if(this._hasDocument){e=e||{},t="raven"+t.substr(0,1).toUpperCase()+t.substr(1),L.createEvent?(n=L.createEvent("HTMLEvents"),n.initEvent(t,!0,!0)):(n=L.createEventObject(),n.eventType=t);for(r in e)x(e,r)&&(n[r]=e[r]);if(L.createEvent)L.dispatchEvent(n);else try{L.fireEvent("on"+n.eventType.toLowerCase(),n)}catch(i){}}},_breadcrumbEventHandler:function(t){var e=this;return function(n){if(e._keypressTimeout=null,e._lastCapturedEvent!==n){e._lastCapturedEvent=n;var r;try{r=$(n.target)}catch(i){r="<unknown>"}e.captureBreadcrumb({category:"ui."+t,message:r})}}},_keypressEventHandler:function(){var t=this,e=1e3;return function(n){var r;try{r=n.target}catch(i){return}var o=r&&r.tagName;if(o&&("INPUT"===o||"TEXTAREA"===o||r.isContentEditable)){var a=t._keypressTimeout;a||t._breadcrumbEventHandler("input")(n),clearTimeout(a),t._keypressTimeout=setTimeout(function(){t._keypressTimeout=null},e)}}},_captureUrlChange:function(t,e){var n=T(this._location.href),r=T(e),i=T(t);this._lastHref=e,n.protocol===r.protocol&&n.host===r.host&&(e=r.relative),n.protocol===i.protocol&&n.host===i.host&&(t=i.relative),this.captureBreadcrumb({category:"navigation",data:{to:e,from:t}})},_patchFunctionToString:function(){var t=this;t._originalFunctionToString=Function.prototype.toString,Function.prototype.toString=function(){return"function"==typeof this&&this.__raven__?t._originalFunctionToString.apply(this.__orig__,arguments):t._originalFunctionToString.apply(this,arguments)}},_unpatchFunctionToString:function(){this._originalFunctionToString&&(Function.prototype.toString=this._originalFunctionToString)},_instrumentTryCatch:function(){function t(t){return function(e,r){for(var i=new Array(arguments.length),o=0;o<i.length;++o)i[o]=arguments[o];var a=i[0];return p(a)&&(i[0]=n.wrap(a)),t.apply?t.apply(this,i):t(i[0],i[1])}}function e(t){var e=P[t]&&P[t].prototype;e&&e.hasOwnProperty&&e.hasOwnProperty("addEventListener")&&(D(e,"addEventListener",function(e){return function(r,o,a,s){try{o&&o.handleEvent&&(o.handleEvent=n.wrap(o.handleEvent))}catch(u){}var l,c,f;return i&&i.dom&&("EventTarget"===t||"Node"===t)&&(c=n._breadcrumbEventHandler("click"),f=n._keypressEventHandler(),l=function(t){if(t){var e;try{e=t.type}catch(n){return}return"click"===e?c(t):"keypress"===e?f(t):void 0}}),e.call(this,r,n.wrap(o,void 0,l),a,s)}},r),D(e,"removeEventListener",function(t){return function(e,n,r,i){try{n=n&&(n.__raven_wrapper__?n.__raven_wrapper__:n)}catch(o){}return t.call(this,e,n,r,i)}},r))}var n=this,r=n._wrappedBuiltIns,i=this._globalOptions.autoBreadcrumbs;D(P,"setTimeout",t,r),D(P,"setInterval",t,r),P.requestAnimationFrame&&D(P,"requestAnimationFrame",function(t){return function(e){return t(n.wrap(e))}},r);for(var o=["EventTarget","Window","Node","ApplicationCache","AudioTrackList","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"],a=0;a<o.length;a++)e(o[a])},_instrumentBreadcrumbs:function(){function t(t,n){t in n&&p(n[t])&&D(n,t,function(t){return e.wrap(t)})}var e=this,n=this._globalOptions.autoBreadcrumbs,r=e._wrappedBuiltIns;if(n.xhr&&"XMLHttpRequest"in P){var i=XMLHttpRequest.prototype;D(i,"open",function(t){return function(n,r){return m(r)&&r.indexOf(e._globalKey)===-1&&(this.__raven_xhr={method:n,url:r,status_code:null}),t.apply(this,arguments)}},r),D(i,"send",function(n){return function(){function r(){if(i.__raven_xhr&&4===i.readyState){try{i.__raven_xhr.status_code=i.status}catch(t){}e.captureBreadcrumb({type:"http",category:"xhr",data:i.__raven_xhr})}}for(var i=this,o=["onload","onerror","onprogress"],a=0;a<o.length;a++)t(o[a],i);return"onreadystatechange"in i&&p(i.onreadystatechange)?D(i,"onreadystatechange",function(t){return e.wrap(t,void 0,r)}):i.onreadystatechange=r,n.apply(this,arguments)}},r)}n.xhr&&F()&&D(P,"fetch",function(t){return function(){for(var n=new Array(arguments.length),r=0;r<n.length;++r)n[r]=arguments[r];var i,o=n[0],a="GET";if("string"==typeof o?i=o:"Request"in P&&o instanceof P.Request?(i=o.url,o.method&&(a=o.method)):i=""+o,i.indexOf(e._globalKey)!==-1)return t.apply(this,n);n[1]&&n[1].method&&(a=n[1].method);var s={method:a,url:i,status_code:null};return t.apply(this,n).then(function(t){return s.status_code=t.status,e.captureBreadcrumb({type:"http",category:"fetch",data:s}),t})}},r),n.dom&&this._hasDocument&&(L.addEventListener?(L.addEventListener("click",e._breadcrumbEventHandler("click"),!1),L.addEventListener("keypress",e._keypressEventHandler(),!1)):(L.attachEvent("onclick",e._breadcrumbEventHandler("click")),L.attachEvent("onkeypress",e._keypressEventHandler())));var o=P.chrome,a=o&&o.app&&o.app.runtime,s=!a&&P.history&&history.pushState&&history.replaceState;if(n.location&&s){var u=P.onpopstate;P.onpopstate=function(){var t=e._location.href;if(e._captureUrlChange(e._lastHref,t),u)return u.apply(this,arguments)};var l=function(t){return function(){var n=arguments.length>2?arguments[2]:void 0;return n&&e._captureUrlChange(e._lastHref,n+""),t.apply(this,arguments)}};D(history,"pushState",l,r),D(history,"replaceState",l,r)}if(n.console&&"console"in P&&console.log){var c=function(t,n){e.captureBreadcrumb({message:t,level:n.level,category:"console"})};y(["debug","info","warn","error","log"],function(t,e){M(console,e,c)})}},_restoreBuiltIns:function(){for(var t;this._wrappedBuiltIns.length;){t=this._wrappedBuiltIns.shift();var e=t[0],n=t[1],r=t[2];e[n]=r}},_restoreConsole:function(){for(var t in this._originalConsoleMethods)this._originalConsole[t]=this._originalConsoleMethods[t]},_drainPlugins:function(){var t=this;y(this._plugins,function(e,n){var r=n[0],i=n[1];r.apply(t,[t].concat(i))})},_parseDSN:function(t){var e=j.exec(t),n={},r=7;try{for(;r--;)n[O[r]]=e[r]||""}catch(i){throw new u("Invalid DSN: "+t)}if(n.pass&&!this._globalOptions.allowSecretKey)throw new u("Do not specify your secret key in the DSN. See: http://bit.ly/raven-secret-key");return n},_getGlobalServer:function(t){var e="//"+t.host+(t.port?":"+t.port:"");return t.protocol&&(e=t.protocol+":"+e),e},_handleOnErrorStackInfo:function(){this._ignoreOnError||this._handleStackInfo.apply(this,arguments)},_handleStackInfo:function(t,e){var n=this._prepareFrames(t,e);this._triggerEvent("handle",{stackInfo:t,options:e}),this._processException(t.name,t.message,t.url,t.lineno,n,e)},_prepareFrames:function(t,e){var n=this,r=[];if(t.stack&&t.stack.length&&(y(t.stack,function(e,i){var o=n._normalizeFrame(i,t.url);o&&r.push(o)}),e&&e.trimHeadFrames))for(var i=0;i<e.trimHeadFrames&&i<r.length;i++)r[i].in_app=!1;return r=r.slice(0,this._globalOptions.stackTraceLimit)},_normalizeFrame:function(t,e){var n={filename:t.url,lineno:t.line,colno:t.column,"function":t.func||"?"};return t.url||(n.filename=e),n.in_app=!(this._globalOptions.includePaths.test&&!this._globalOptions.includePaths.test(n.filename)||/(Raven|TraceKit)\./.test(n["function"])||/raven\.(min\.)?js$/.test(n.filename)),n},_processException:function(t,e,n,r,i,o){var a=(t?t+": ":"")+(e||"");if(!this._globalOptions.ignoreErrors.test||!this._globalOptions.ignoreErrors.test(e)&&!this._globalOptions.ignoreErrors.test(a)){var s;if(i&&i.length?(n=i[0].filename||n,i.reverse(),s={frames:i}):n&&(s={frames:[{filename:n,lineno:r,in_app:!0}]}),(!this._globalOptions.ignoreUrls.test||!this._globalOptions.ignoreUrls.test(n))&&(!this._globalOptions.whitelistUrls.test||this._globalOptions.whitelistUrls.test(n))){var u=b({exception:{values:[{type:t,value:e,stacktrace:s}]},culprit:n},o);this._send(u)}}},_trimPacket:function(t){var e=this._globalOptions.maxMessageLength;if(t.message&&(t.message=_(t.message,e)),t.exception){var n=t.exception.values[0];n.value=_(n.value,e)}var r=t.request;return r&&(r.url&&(r.url=_(r.url,this._globalOptions.maxUrlLength)),r.Referer&&(r.Referer=_(r.Referer,this._globalOptions.maxUrlLength))),t.breadcrumbs&&t.breadcrumbs.values&&this._trimBreadcrumbs(t.breadcrumbs),t},_trimBreadcrumbs:function(t){for(var e,n,r,i=["to","from","url"],o=0;o<t.values.length;++o)if(n=t.values[o],n.hasOwnProperty("data")&&f(n.data)&&!w(n.data)){r=b({},n.data);for(var a=0;a<i.length;++a)e=i[a],r.hasOwnProperty(e)&&r[e]&&(r[e]=_(r[e],this._globalOptions.maxUrlLength));t.values[o].data=r}},_getHttpData:function(){if(this._hasNavigator||this._hasDocument){var t={};return this._hasNavigator&&R.userAgent&&(t.headers={"User-Agent":navigator.userAgent}),P.location&&P.location.href&&(t.url=P.location.href),this._hasDocument&&L.referrer&&(t.headers||(t.headers={}),t.headers.Referer=L.referrer),t}},_resetBackoff:function(){this._backoffDuration=0,this._backoffStart=null},_shouldBackoff:function(){return this._backoffDuration&&r()-this._backoffStart<this._backoffDuration},_isRepeatData:function(t){var e=this._lastData;return!(!e||t.message!==e.message||t.culprit!==e.culprit)&&(t.stacktrace||e.stacktrace?A(t.stacktrace,e.stacktrace):!t.exception&&!e.exception||S(t.exception,e.exception))},_setBackoffState:function(t){if(!this._shouldBackoff()){var e=t.status;if(400===e||401===e||429===e){var n;try{n=F()?t.headers.get("Retry-After"):t.getResponseHeader("Retry-After"),n=1e3*parseInt(n,10)}catch(i){}this._backoffDuration=n?n:2*this._backoffDuration||1e3,this._backoffStart=r()}}},_send:function(t){var e=this._globalOptions,n={project:this._globalProject,logger:e.logger,platform:"javascript"},i=this._getHttpData();if(i&&(n.request=i),t.trimHeadFrames&&delete t.trimHeadFrames,t=b(n,t),t.tags=b(b({},this._globalContext.tags),t.tags),t.extra=b(b({},this._globalContext.extra),t.extra),t.extra["session:duration"]=r()-this._startTime,this._breadcrumbs&&this._breadcrumbs.length>0&&(t.breadcrumbs={values:[].slice.call(this._breadcrumbs,0)}),this._globalContext.user&&(t.user=this._globalContext.user),e.environment&&(t.environment=e.environment),e.release&&(t.release=e.release),e.serverName&&(t.server_name=e.serverName),Object.keys(t).forEach(function(e){(null==t[e]||""===t[e]||v(t[e]))&&delete t[e]}),p(e.dataCallback)&&(t=e.dataCallback(t)||t),t&&!v(t)&&(!p(e.shouldSendCallback)||e.shouldSendCallback(t)))return this._shouldBackoff()?void this._logDebug("warn","Raven dropped error due to backoff: ",t):void("number"==typeof e.sampleRate?Math.random()<e.sampleRate&&this._sendProcessedPayload(t):this._sendProcessedPayload(t))},_getUuid:function(){return E()},_sendProcessedPayload:function(t,e){var n=this,r=this._globalOptions;if(this.isSetup()){if(t=this._trimPacket(t),!this._globalOptions.allowDuplicates&&this._isRepeatData(t))return void this._logDebug("warn","Raven dropped repeat event: ",t);this._lastEventId=t.event_id||(t.event_id=this._getUuid()),this._lastData=t,this._logDebug("debug","Raven about to send:",t);var i={sentry_version:"7",sentry_client:"raven-js/"+this.VERSION,sentry_key:this._globalKey};this._globalSecret&&(i.sentry_secret=this._globalSecret);var o=t.exception&&t.exception.values[0];this._globalOptions.autoBreadcrumbs&&this._globalOptions.autoBreadcrumbs.sentry&&this.captureBreadcrumb({category:"sentry",message:o?(o.type?o.type+": ":"")+o.value:t.message,event_id:t.event_id,level:t.level||"error"});var a=this._globalEndpoint;(r.transport||this._makeRequest).call(this,{url:a,auth:i,data:t,options:r,onSuccess:function(){n._resetBackoff(),n._triggerEvent("success",{data:t,src:a}),e&&e()},onError:function(r){n._logDebug("error","Raven transport failed to send: ",r),r.request&&n._setBackoffState(r.request),n._triggerEvent("failure",{data:t,src:a}),r=r||new Error("Raven send failed (no additional details provided)"),e&&e(r)}})}},_makeRequest:function(t){var e=t.url+"?"+C(t.auth),n=null,r={};if(t.options.headers&&(n=this._evaluateHash(t.options.headers)),t.options.fetchParameters&&(r=this._evaluateHash(t.options.fetchParameters)),F()){r.body=s(t.data);var i=b({},this._fetchDefaults),o=b(i,r);return n&&(o.headers=n),P.fetch(e,o).then(function(e){if(e.ok)t.onSuccess&&t.onSuccess();else{var n=new Error("Sentry error code: "+e.status);n.request=e,t.onError&&t.onError(n)}})["catch"](function(){t.onError&&t.onError(new Error("Sentry error code: network unavailable"))})}var a=P.XMLHttpRequest&&new P.XMLHttpRequest;if(a){var u="withCredentials"in a||"undefined"!=typeof XDomainRequest;u&&("withCredentials"in a?a.onreadystatechange=function(){if(4===a.readyState)if(200===a.status)t.onSuccess&&t.onSuccess();else if(t.onError){var e=new Error("Sentry error code: "+a.status);e.request=a,t.onError(e)}}:(a=new XDomainRequest,e=e.replace(/^https?:/,""),t.onSuccess&&(a.onload=t.onSuccess),t.onError&&(a.onerror=function(){var e=new Error("Sentry error code: XDomainRequest");e.request=a,t.onError(e)})),a.open("POST",e),n&&y(n,function(t,e){a.setRequestHeader(t,e)}),a.send(s(t.data)))}},_evaluateHash:function(t){var e={};for(var n in t)if(t.hasOwnProperty(n)){var r=t[n];e[n]="function"==typeof r?r():r}return e},_logDebug:function(t){this._originalConsoleMethods[t]&&this.debug&&Function.prototype.apply.call(this._originalConsoleMethods[t],this._originalConsole,[].slice.call(arguments,1))},_mergeContext:function(t,e){d(e)?delete this._globalContext[t]:this._globalContext[t]=b(this._globalContext[t]||{},e)}},o.prototype.setUser=o.prototype.setUserContext,o.prototype.setReleaseContext=o.prototype.setRelease,e.exports=o}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{1:1,2:2,5:5,6:6,7:7}],4:[function(t,e,n){(function(n){var r=t(3),i="undefined"!=typeof window?window:"undefined"!=typeof n?n:"undefined"!=typeof self?self:{},o=i.Raven,a=new r;a.noConflict=function(){return i.Raven=o,a},a.afterLoad(),e.exports=a}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{3:3}],5:[function(t,e,n){(function(t){function n(t){return"object"==typeof t&&null!==t}function r(t){switch({}.toString.call(t)){case"[object Error]":return!0;case"[object Exception]":return!0;case"[object DOMException]":return!0;default:return t instanceof Error}}function i(t){return f()&&"[object ErrorEvent]"==={}.toString.call(t)}function o(t){return void 0===t}function a(t){return"function"==typeof t}function s(t){return"[object Object]"===Object.prototype.toString.call(t)}function u(t){return"[object String]"===Object.prototype.toString.call(t)}function l(t){return"[object Array]"===Object.prototype.toString.call(t)}function c(t){if(!s(t))return!1;for(var e in t)if(t.hasOwnProperty(e))return!1;return!0}function f(){try{return new ErrorEvent(""),!0}catch(t){return!1}}function h(){if(!("fetch"in M))return!1;try{return new Headers,new Request(""),new Response,!0}catch(t){return!1}}function d(){if(!h())return!1;try{return new Request("pickleRick",{referrerPolicy:"origin"}),!0}catch(t){return!1}}function p(){return"function"==typeof PromiseRejectionEvent}function m(t){function e(e,n){var r=t(e)||e;return n?n(r)||r:r}return e}function g(t,e){var n,r;if(o(t.length))for(n in t)_(t,n)&&e.call(null,n,t[n]);else if(r=t.length)for(n=0;n<r;n++)e.call(null,n,t[n])}function v(t,e){return e?(g(e,function(e,n){t[e]=n}),t):t}function y(t){return!!Object.isFrozen&&Object.isFrozen(t)}function b(t,e){return!e||t.length<=e?t:t.substr(0,e)+"…"}function _(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function w(t){for(var e,n=[],r=0,i=t.length;r<i;r++)e=t[r],u(e)?n.push(e.replace(/([.*+?^=!:${}()|\[\]\/\\])/g,"\\$1")):e&&e.source&&n.push(e.source);return new RegExp(n.join("|"),"i")}function x(t){var e=[];return g(t,function(t,n){e.push(encodeURIComponent(t)+"="+encodeURIComponent(n))}),e.join("&")}function k(t){if("string"!=typeof t)return{};var e=t.match(/^(([^:\/?#]+):)?(\/\/([^\/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/),n=e[6]||"",r=e[8]||"";return{protocol:e[2],host:e[4],path:e[5],relative:e[5]+n+r}}function C(){var t=M.crypto||M.msCrypto;if(!o(t)&&t.getRandomValues){var e=new Uint16Array(8);t.getRandomValues(e),e[3]=4095&e[3]|16384,e[4]=16383&e[4]|32768;var n=function(t){for(var e=t.toString(16);e.length<4;)e="0"+e;return e};return n(e[0])+n(e[1])+n(e[2])+n(e[3])+n(e[4])+n(e[5])+n(e[6])+n(e[7])}return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,function(t){var e=16*Math.random()|0,n="x"===t?e:3&e|8;return n.toString(16)})}function E(t){for(var e,n=5,r=80,i=[],o=0,a=0,s=" > ",u=s.length;t&&o++<n&&(e=$(t),!("html"===e||o>1&&a+i.length*u+e.length>=r));)i.push(e),a+=e.length,t=t.parentNode;return i.reverse().join(s)}function $(t){var e,n,r,i,o,a=[];if(!t||!t.tagName)return"";if(a.push(t.tagName.toLowerCase()),t.id&&a.push("#"+t.id),e=t.className,e&&u(e))for(n=e.split(/\s+/),o=0;o<n.length;o++)a.push("."+n[o]);var s=["type","name","title","alt"];for(o=0;o<s.length;o++)r=s[o],i=t.getAttribute(r),i&&a.push("["+r+'="'+i+'"]');return a.join("")}function S(t,e){return!!(!!t^!!e)}function A(t,e){return o(t)&&o(e)}function T(t,e){return!S(t,e)&&(t=t.values[0],e=e.values[0],t.type===e.type&&t.value===e.value&&(!A(t.stacktrace,e.stacktrace)&&D(t.stacktrace,e.stacktrace)))}function D(t,e){if(S(t,e))return!1;var n=t.frames,r=e.frames;if(n.length!==r.length)return!1;for(var i,o,a=0;a<n.length;a++)if(i=n[a],o=r[a],i.filename!==o.filename||i.lineno!==o.lineno||i.colno!==o.colno||i["function"]!==o["function"])return!1;return!0}function F(t,e,n,r){var i=t[e];t[e]=n(i),t[e].__raven__=!0,t[e].__orig__=i,r&&r.push([t,e,i])}function N(t,e){if(!l(t))return"";for(var n=[],r=0;r<t.length;r++)try{n.push(String(t[r]))}catch(i){n.push("[value cannot be serialized]")}return n.join(e)}var M="undefined"!=typeof window?window:"undefined"!=typeof t?t:"undefined"!=typeof self?self:{};e.exports={isObject:n,isError:r,isErrorEvent:i,isUndefined:o,isFunction:a,isPlainObject:s,isString:u,isArray:l,isEmptyObject:c,supportsErrorEvent:f,supportsFetch:h,supportsReferrerPolicy:d,supportsPromiseRejectionEvent:p,wrappedCallback:m,each:g,objectMerge:v,truncate:b,objectFrozen:y,hasKey:_,joinRegExp:w,urlencode:x,uuid4:C,htmlTreeAsString:E,htmlElementAsString:$,isSameException:T,isSameStacktrace:D,parseUrl:k,fill:F,safeJoin:N}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],6:[function(t,e,n){(function(n){function r(){return"undefined"==typeof document||null==document.location?"":document.location.href}var i=t(5),o={collectWindowErrors:!0,debug:!1},a="undefined"!=typeof window?window:"undefined"!=typeof n?n:"undefined"!=typeof self?self:{},s=[].slice,u="?",l=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/;o.report=function(){function t(t){h(),y.push(t)}function e(t){for(var e=y.length-1;e>=0;--e)y[e]===t&&y.splice(e,1)}function n(){d(),y=[]}function c(t,e){var n=null;if(!e||o.collectWindowErrors){for(var r in y)if(y.hasOwnProperty(r))try{y[r].apply(null,[t].concat(s.call(arguments,2)))}catch(i){n=i}if(n)throw n}}function f(t,e,n,a,s){var f=null,h=i.isErrorEvent(s)?s.error:s,d=i.isErrorEvent(t)?t.message:t;if(w)o.computeStackTrace.augmentStackTraceWithInitialElement(w,e,n,d),p();else if(h&&i.isError(h))f=o.computeStackTrace(h),c(f,!0);else{var m,v={url:e,line:n,column:a},y=void 0;if("[object String]"==={}.toString.call(d)){var m=d.match(l);m&&(y=m[1],d=m[2])}v.func=u,f={name:y,message:d,url:r(),stack:[v]},c(f,!0)}return!!g&&g.apply(this,arguments)}function h(){v||(g=a.onerror,a.onerror=f,v=!0)}function d(){v&&(a.onerror=g,v=!1,g=void 0)}function p(){var t=w,e=b;b=null,w=null,_=null,c.apply(null,[t,!1].concat(e))}function m(t,e){var n=s.call(arguments,1);if(w){if(_===t)return;p()}var r=o.computeStackTrace(t);if(w=r,_=t,b=n,setTimeout(function(){_===t&&p()},r.incomplete?2e3:0),e!==!1)throw t}var g,v,y=[],b=null,_=null,w=null;return m.subscribe=t,m.unsubscribe=e,m.uninstall=n,m}(),o.computeStackTrace=function(){function t(t){if("undefined"!=typeof t.stack&&t.stack){for(var e,n,i,o=/^\s*at (?:(.*?) ?\()?((?:file|https?|blob|chrome-extension|native|eval|webpack|<anonymous>|[a-z]:|\/).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,a=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx(?:-web)|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,s=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)((?:file|https?|blob|chrome|webpack|resource|moz-extension).*?:\/.*?|\[native code\]|[^@]*bundle)(?::(\d+))?(?::(\d+))?\s*$/i,l=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,c=/\((\S*)(?::(\d+))(?::(\d+))\)/,f=t.stack.split("\n"),h=[],d=(/^(.*) is undefined$/.exec(t.message),0),p=f.length;d<p;++d){if(n=o.exec(f[d])){var m=n[2]&&0===n[2].indexOf("native"),g=n[2]&&0===n[2].indexOf("eval");g&&(e=c.exec(n[2]))&&(n[2]=e[1],n[3]=e[2],n[4]=e[3]),i={url:m?null:n[2],func:n[1]||u,args:m?[n[2]]:[],line:n[3]?+n[3]:null,column:n[4]?+n[4]:null}}else if(n=a.exec(f[d]))i={url:n[2],func:n[1]||u,args:[],line:+n[3],column:n[4]?+n[4]:null};else{if(!(n=s.exec(f[d])))continue;var g=n[3]&&n[3].indexOf(" > eval")>-1;g&&(e=l.exec(n[3]))?(n[3]=e[1],n[4]=e[2],n[5]=null):0!==d||n[5]||"undefined"==typeof t.columnNumber||(h[0].column=t.columnNumber+1),i={url:n[3],func:n[1]||u,args:n[2]?n[2].split(","):[],line:n[4]?+n[4]:null,column:n[5]?+n[5]:null}}!i.func&&i.line&&(i.func=u),h.push(i)}return h.length?{name:t.name,message:t.message,url:r(),stack:h}:null}}function e(t,e,n,r){var i={url:e,line:n};if(i.url&&i.line){if(t.incomplete=!1,i.func||(i.func=u),t.stack.length>0&&t.stack[0].url===i.url){if(t.stack[0].line===i.line)return!1;if(!t.stack[0].line&&t.stack[0].func===i.func)return t.stack[0].line=i.line,!1}return t.stack.unshift(i),t.partial=!0,!0}return t.incomplete=!0,!1}function n(t,a){for(var s,l,c=/function\s+([_$a-zA-Z\xA0-\uFFFF][_$a-zA-Z0-9\xA0-\uFFFF]*)?\s*\(/i,f=[],h={},d=!1,p=n.caller;p&&!d;p=p.caller)if(p!==i&&p!==o.report){if(l={url:null,func:u,line:null,column:null},p.name?l.func=p.name:(s=c.exec(p.toString()))&&(l.func=s[1]),"undefined"==typeof l.func)try{l.func=s.input.substring(0,s.input.indexOf("{"))}catch(m){}h[""+p]?d=!0:h[""+p]=!0,f.push(l)}a&&f.splice(0,a);var g={name:t.name,message:t.message,url:r(),stack:f};return e(g,t.sourceURL||t.fileName,t.line||t.lineNumber,t.message||t.description),g}function i(e,i){var a=null;i=null==i?0:+i;try{if(a=t(e))return a}catch(s){if(o.debug)throw s}try{if(a=n(e,i+1))return a}catch(s){
|
||
if(o.debug)throw s}return{name:e.name,message:e.message,url:r()}}return i.augmentStackTraceWithInitialElement=e,i.computeStackTraceFromStackProp=t,i}(),e.exports=o}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{5:5}],7:[function(t,e,n){function r(t,e){for(var n=0;n<t.length;++n)if(t[n]===e)return n;return-1}function i(t,e,n,r){return JSON.stringify(t,a(e,r),n)}function o(t){var e={stack:t.stack,message:t.message,name:t.name};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}function a(t,e){var n=[],i=[];return null==e&&(e=function(t,e){return n[0]===e?"[Circular ~]":"[Circular ~."+i.slice(0,r(n,e)).join(".")+"]"}),function(a,s){if(n.length>0){var u=r(n,this);~u?n.splice(u+1):n.push(this),~u?i.splice(u,1/0,a):i.push(a),~r(n,s)&&(s=e.call(this,a,s))}else n.push(s);return null==t?s instanceof Error?o(s):s:t.call(this,a,s)}}n=e.exports=i,n.getSerialize=a},{}]},{},[4])(4)}),function(t,e){var n=function(t,e){return t instanceof(e||Array)},r=document,i="getElementsByTagName",o="length",a="readyState",s="onreadystatechange",u=r[i]("script"),l=u[u[o]-1],c=l.innerHTML.replace(/^\s+|\s+$/g,"");if(!t.ljs){var f=l.src.match(/checkLoaded/)?1:0,h=r[i]("head")[0]||r.documentElement,d=function(t){var e={};return e.u=t.replace(/#(=)?([^#]*)?/g,function(t,n,r){return e[n?"f":"i"]=r,""}),e},p=function(t,e,n){var i,o=r.createElement(t);n&&(o[a]?o[s]=function(){"loaded"!==o[a]&&"complete"!==o[a]||(o[s]=null,n())}:o.onload=n);for(i in e)e[i]&&(o[i]=e[i]);h.appendChild(o)},m=function(t,e){if(this.aliases&&this.aliases[t]){var r=this.aliases[t].slice(0);return n(r)||(r=[r]),e&&r.push(e),this.load.apply(this,r)}if(n(t)){for(var i=t[o];i--;)this.load(t[i]);return e&&t.push(e),this.load.apply(this,t)}return t.match(/\.css\b/)?this.loadcss(t,e):this.loadjs(t,e)},g={},v={aliases:{},loadjs:function(t,n){var r=d(t);return t=r.u,g[t]===!0?(n&&n(),this):g[t]!==e?(n&&(g[t]=function(t,e){return function(){t&&t(),e&&e()}}(g[t],n)),this):(g[t]=function(e){return function(){g[t]=!0,e&&e()}}(n),n=function(){g[t]()},p("script",{type:"text/javascript",src:t,id:r.i,onerror:function(t){if(r.f){var e=t.currentTarget;e.parentNode.removeChild(e),p("script",{type:"text/javascript",src:r.f,id:r.i},n)}}},n),this)},loadcss:function(t,e){var n=d(t);return t=n.u,g[t]||p("link",{type:"text/css",rel:"stylesheet",href:t,id:n.i}),g[t]=!0,e&&e(),this},load:function(){var t=arguments,r=t[o];return 1===r&&n(t[0],Function)?(t[0](),this):(m.call(this,t[0],r<=1?e:function(){v.load.apply(v,[].slice.call(t,1))}),this)},addAliases:function(t){for(var e in t)this.aliases[e]=n(t[e])?t[e].slice(0):t[e];return this}};if(f){var y,b,_,w;for(y=0,b=u[o];y<b;y++)(w=u[y].getAttribute("src"))&&(g[w.replace(/#.*$/,"")]=!0);for(_=r[i]("link"),y=0,b=_[o];y<b;y++)("stylesheet"===_[y].rel||"text/css"===_[y].type)&&(g[_[y].getAttribute("href").replace(/#.*$/,"")]=!0)}t.ljs=v}l.src&&c&&p("script",{innerHTML:c})}(window),angular.module("infinite-scroll",[]).value("THROTTLE_MILLISECONDS",null).directive("infiniteScroll",["$rootScope","$window","$interval","THROTTLE_MILLISECONDS",function(t,e,n,r){return{scope:{infiniteScroll:"&",infiniteScrollContainer:"=",infiniteScrollDistance:"=",infiniteScrollDisabled:"=",infiniteScrollUseDocumentBottom:"=",infiniteScrollListenForEvent:"@"},link:function(i,o,a){var s,u,l,c,f,h,d,p,m,g,v,y,b,_,w,x,k,C,E;return E=angular.element(e),_=null,w=null,l=null,c=null,v=!0,C=!1,k=null,u=!1,g=function(t){return t=t[0]||t,isNaN(t.offsetHeight)?t.document.documentElement.clientHeight:t.offsetHeight},y=function(t){if(t[0].getBoundingClientRect&&!t.css("none"))return t[0].getBoundingClientRect().top+b(t)},b=function(t){return t=t[0]||t,isNaN(window.pageYOffset)?t.document.documentElement.scrollTop:t.ownerDocument.defaultView.pageYOffset},m=function(){var e,r,a,s,f;return c===E?(e=g(c)+b(c[0].document.documentElement),a=y(o)+g(o)):(e=g(c),r=0,void 0!==y(c)&&(r=y(c)),a=y(o)-r+g(o)),C&&(a=g((o[0].ownerDocument||o[0].document).documentElement)),s=a-e,f=s<=g(c)*_+1,f?(l=!0,w?i.$$phase||t.$$phase?i.infiniteScroll():i.$apply(i.infiniteScroll):void 0):(u&&n.cancel(u),l=!1)},x=function(t,e){var r,i,o;return o=null,i=0,r=function(){return i=(new Date).getTime(),n.cancel(o),o=null,t.call()},function(){var a,s;return a=(new Date).getTime(),s=e-(a-i),s<=0?(n.cancel(o),o=null,i=a,t.call()):o?void 0:o=n(r,s,1)}},null!=r&&(m=x(m,r)),i.$on("$destroy",function(){if(c.unbind("scroll",m),null!=k&&(k(),k=null),u)return n.cancel(u)}),d=function(t){return _=parseFloat(t)||0},i.$watch("infiniteScrollDistance",d),d(i.infiniteScrollDistance),h=function(t){if(w=!t,w&&l)return l=!1,m()},i.$watch("infiniteScrollDisabled",h),h(i.infiniteScrollDisabled),p=function(t){return C=t},i.$watch("infiniteScrollUseDocumentBottom",p),p(i.infiniteScrollUseDocumentBottom),s=function(t){if(null!=c&&c.unbind("scroll",m),c=t,null!=t)return c.bind("scroll",m)},s(E),i.infiniteScrollListenForEvent&&(k=t.$on(i.infiniteScrollListenForEvent,m)),f=function(t){if(null!=t&&0!==t.length){if(t.nodeType&&1===t.nodeType?t=angular.element(t):"function"==typeof t.append?t=angular.element(t[t.length-1]):"string"==typeof t&&(t=angular.element(document.querySelector(t))),null!=t)return s(t);throw new Error("invalid infinite-scroll-container attribute.")}},i.$watch("infiniteScrollContainer",f),f(i.infiniteScrollContainer||[]),null!=a.infiniteScrollParent&&s(angular.element(o.parent())),null!=a.infiniteScrollImmediateCheck&&(v=i.$eval(a.infiniteScrollImmediateCheck)),u=n(function(){return v&&m(),n.cancel(u)})}}}]),"undefined"!=typeof module&&"undefined"!=typeof exports&&module.exports===exports&&(module.exports="infinite-scroll"),function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):t.Immutable=e()}(this,function(){"use strict";function t(t,e){e&&(t.prototype=Object.create(e.prototype)),t.prototype.constructor=t}function e(t){return o(t)?t:T(t)}function n(t){return a(t)?t:D(t)}function r(t){return s(t)?t:F(t)}function i(t){return o(t)&&!u(t)?t:N(t)}function o(t){return!(!t||!t[ln])}function a(t){return!(!t||!t[cn])}function s(t){return!(!t||!t[fn])}function u(t){return a(t)||s(t)}function l(t){return!(!t||!t[hn])}function c(t){return t.value=!1,t}function f(t){t&&(t.value=!0)}function h(){}function d(t,e){e=e||0;for(var n=Math.max(0,t.length-e),r=new Array(n),i=0;i<n;i++)r[i]=t[i+e];return r}function p(t){return void 0===t.size&&(t.size=t.__iterate(g)),t.size}function m(t,e){if("number"!=typeof e){var n=e>>>0;if(""+n!==e||4294967295===n)return NaN;e=n}return e<0?p(t)+e:e}function g(){return!0}function v(t,e,n){return(0===t||void 0!==n&&t<=-n)&&(void 0===e||void 0!==n&&e>=n)}function y(t,e){return _(t,e,0)}function b(t,e){return _(t,e,e)}function _(t,e,n){return void 0===t?n:t<0?Math.max(0,e+t):void 0===e?t:Math.min(e,t)}function w(t){this.next=t}function x(t,e,n,r){var i=0===t?e:1===t?n:[e,n];return r?r.value=i:r={value:i,done:!1},r}function k(){return{value:void 0,done:!0}}function C(t){return!!S(t)}function E(t){return t&&"function"==typeof t.next}function $(t){var e=S(t);return e&&e.call(t)}function S(t){var e=t&&(kn&&t[kn]||t[Cn]);if("function"==typeof e)return e}function A(t){return t&&"number"==typeof t.length}function T(t){return null===t||void 0===t?R():o(t)?t.toSeq():z(t)}function D(t){return null===t||void 0===t?R().toKeyedSeq():o(t)?a(t)?t.toSeq():t.fromEntrySeq():I(t)}function F(t){return null===t||void 0===t?R():o(t)?a(t)?t.entrySeq():t.toIndexedSeq():q(t)}function N(t){return(null===t||void 0===t?R():o(t)?a(t)?t.entrySeq():t:q(t)).toSetSeq()}function M(t){this._array=t,this.size=t.length}function O(t){var e=Object.keys(t);this._object=t,this._keys=e,this.size=e.length}function j(t){this._iterable=t,this.size=t.length||t.size}function P(t){this._iterator=t,this._iteratorCache=[]}function L(t){return!(!t||!t[$n])}function R(){return Sn||(Sn=new M([]))}function I(t){var e=Array.isArray(t)?new M(t).fromEntrySeq():E(t)?new P(t).fromEntrySeq():C(t)?new j(t).fromEntrySeq():"object"==typeof t?new O(t):void 0;if(!e)throw new TypeError("Expected Array or iterable object of [k, v] entries, or keyed object: "+t);return e}function q(t){var e=H(t);if(!e)throw new TypeError("Expected Array or iterable object of values: "+t);return e}function z(t){var e=H(t)||"object"==typeof t&&new O(t);if(!e)throw new TypeError("Expected Array or iterable object of values, or keyed object: "+t);return e}function H(t){return A(t)?new M(t):E(t)?new P(t):C(t)?new j(t):void 0}function B(t,e,n,r){var i=t._cache;if(i){for(var o=i.length-1,a=0;a<=o;a++){var s=i[n?o-a:a];if(e(s[1],r?s[0]:a,t)===!1)return a+1}return a}return t.__iterateUncached(e,n)}function U(t,e,n,r){var i=t._cache;if(i){var o=i.length-1,a=0;return new w(function(){var t=i[n?o-a:a];return a++>o?k():x(e,r?t[0]:a-1,t[1])})}return t.__iteratorUncached(e,n)}function V(t,e){return e?W(e,t,"",{"":t}):Y(t)}function W(t,e,n,r){return Array.isArray(e)?t.call(r,n,F(e).map(function(n,r){return W(t,n,r,e)})):G(e)?t.call(r,n,D(e).map(function(n,r){return W(t,n,r,e)})):e}function Y(t){return Array.isArray(t)?F(t).map(Y).toList():G(t)?D(t).map(Y).toMap():t}function G(t){return t&&(t.constructor===Object||void 0===t.constructor)}function K(t,e){if(t===e||t!==t&&e!==e)return!0;if(!t||!e)return!1;if("function"==typeof t.valueOf&&"function"==typeof e.valueOf){if(t=t.valueOf(),e=e.valueOf(),t===e||t!==t&&e!==e)return!0;if(!t||!e)return!1}return!("function"!=typeof t.equals||"function"!=typeof e.equals||!t.equals(e))}function Z(t,e){if(t===e)return!0;if(!o(e)||void 0!==t.size&&void 0!==e.size&&t.size!==e.size||void 0!==t.__hash&&void 0!==e.__hash&&t.__hash!==e.__hash||a(t)!==a(e)||s(t)!==s(e)||l(t)!==l(e))return!1;if(0===t.size&&0===e.size)return!0;var n=!u(t);if(l(t)){var r=t.entries();return e.every(function(t,e){var i=r.next().value;return i&&K(i[1],t)&&(n||K(i[0],e))})&&r.next().done}var i=!1;if(void 0===t.size)if(void 0===e.size)"function"==typeof t.cacheResult&&t.cacheResult();else{i=!0;var c=t;t=e,e=c}var f=!0,h=e.__iterate(function(e,r){if(n?!t.has(e):i?!K(e,t.get(r,vn)):!K(t.get(r,vn),e))return f=!1,!1});return f&&t.size===h}function X(t,e){if(!(this instanceof X))return new X(t,e);if(this._value=t,this.size=void 0===e?1/0:Math.max(0,e),0===this.size){if(An)return An;An=this}}function J(t,e){if(!t)throw new Error(e)}function Q(t,e,n){if(!(this instanceof Q))return new Q(t,e,n);if(J(0!==n,"Cannot step a Range by 0"),t=t||0,void 0===e&&(e=1/0),n=void 0===n?1:Math.abs(n),e<t&&(n=-n),this._start=t,this._end=e,this._step=n,this.size=Math.max(0,Math.ceil((e-t)/n-1)+1),0===this.size){if(Tn)return Tn;Tn=this}}function tt(){throw TypeError("Abstract")}function et(){}function nt(){}function rt(){}function it(t){return t>>>1&1073741824|3221225471&t}function ot(t){if(t===!1||null===t||void 0===t)return 0;if("function"==typeof t.valueOf&&(t=t.valueOf(),t===!1||null===t||void 0===t))return 0;if(t===!0)return 1;var e=typeof t;if("number"===e){if(t!==t||t===1/0)return 0;var n=0|t;for(n!==t&&(n^=4294967295*t);t>4294967295;)t/=4294967295,n^=t;return it(n)}if("string"===e)return t.length>Ln?at(t):st(t);if("function"==typeof t.hashCode)return t.hashCode();if("object"===e)return ut(t);if("function"==typeof t.toString)return st(t.toString());throw new Error("Value type "+e+" cannot be hashed.")}function at(t){var e=qn[t];return void 0===e&&(e=st(t),In===Rn&&(In=0,qn={}),In++,qn[t]=e),e}function st(t){for(var e=0,n=0;n<t.length;n++)e=31*e+t.charCodeAt(n)|0;return it(e)}function ut(t){var e;if(On&&(e=Dn.get(t),void 0!==e))return e;if(e=t[Pn],void 0!==e)return e;if(!Mn){if(e=t.propertyIsEnumerable&&t.propertyIsEnumerable[Pn],void 0!==e)return e;if(e=lt(t),void 0!==e)return e}if(e=++jn,1073741824&jn&&(jn=0),On)Dn.set(t,e);else{if(void 0!==Nn&&Nn(t)===!1)throw new Error("Non-extensible objects are not allowed as keys.");if(Mn)Object.defineProperty(t,Pn,{enumerable:!1,configurable:!1,writable:!1,value:e});else if(void 0!==t.propertyIsEnumerable&&t.propertyIsEnumerable===t.constructor.prototype.propertyIsEnumerable)t.propertyIsEnumerable=function(){return this.constructor.prototype.propertyIsEnumerable.apply(this,arguments)},t.propertyIsEnumerable[Pn]=e;else{if(void 0===t.nodeType)throw new Error("Unable to set a non-enumerable property on object.");t[Pn]=e}}return e}function lt(t){if(t&&t.nodeType>0)switch(t.nodeType){case 1:return t.uniqueID;case 9:return t.documentElement&&t.documentElement.uniqueID}}function ct(t){J(t!==1/0,"Cannot perform this action with an infinite size.")}function ft(t){return null===t||void 0===t?xt():ht(t)&&!l(t)?t:xt().withMutations(function(e){var r=n(t);ct(r.size),r.forEach(function(t,n){return e.set(n,t)})})}function ht(t){return!(!t||!t[zn])}function dt(t,e){this.ownerID=t,this.entries=e}function pt(t,e,n){this.ownerID=t,this.bitmap=e,this.nodes=n}function mt(t,e,n){this.ownerID=t,this.count=e,this.nodes=n}function gt(t,e,n){this.ownerID=t,this.keyHash=e,this.entries=n}function vt(t,e,n){this.ownerID=t,this.keyHash=e,this.entry=n}function yt(t,e,n){this._type=e,this._reverse=n,this._stack=t._root&&_t(t._root)}function bt(t,e){return x(t,e[0],e[1])}function _t(t,e){return{node:t,index:0,__prev:e}}function wt(t,e,n,r){var i=Object.create(Hn);return i.size=t,i._root=e,i.__ownerID=n,i.__hash=r,i.__altered=!1,i}function xt(){return Bn||(Bn=wt(0))}function kt(t,e,n){var r,i;if(t._root){var o=c(yn),a=c(bn);if(r=Ct(t._root,t.__ownerID,0,void 0,e,n,o,a),!a.value)return t;i=t.size+(o.value?n===vn?-1:1:0)}else{if(n===vn)return t;i=1,r=new dt(t.__ownerID,[[e,n]])}return t.__ownerID?(t.size=i,t._root=r,t.__hash=void 0,t.__altered=!0,t):r?wt(i,r):xt()}function Ct(t,e,n,r,i,o,a,s){return t?t.update(e,n,r,i,o,a,s):o===vn?t:(f(s),f(a),new vt(e,r,[i,o]))}function Et(t){return t.constructor===vt||t.constructor===gt}function $t(t,e,n,r,i){if(t.keyHash===r)return new gt(e,r,[t.entry,i]);var o,a=(0===n?t.keyHash:t.keyHash>>>n)&gn,s=(0===n?r:r>>>n)&gn,u=a===s?[$t(t,e,n+pn,r,i)]:(o=new vt(e,r,i),a<s?[t,o]:[o,t]);return new pt(e,1<<a|1<<s,u)}function St(t,e,n,r){t||(t=new h);for(var i=new vt(t,ot(n),[n,r]),o=0;o<e.length;o++){var a=e[o];i=i.update(t,0,void 0,a[0],a[1])}return i}function At(t,e,n,r){for(var i=0,o=0,a=new Array(n),s=0,u=1,l=e.length;s<l;s++,u<<=1){var c=e[s];void 0!==c&&s!==r&&(i|=u,a[o++]=c)}return new pt(t,i,a)}function Tt(t,e,n,r,i){for(var o=0,a=new Array(mn),s=0;0!==n;s++,n>>>=1)a[s]=1&n?e[o++]:void 0;return a[r]=i,new mt(t,o+1,a)}function Dt(t,e,r){for(var i=[],a=0;a<r.length;a++){var s=r[a],u=n(s);o(s)||(u=u.map(function(t){return V(t)})),i.push(u)}return Mt(t,e,i)}function Ft(t,e,n){return t&&t.mergeDeep&&o(e)?t.mergeDeep(e):K(t,e)?t:e}function Nt(t){return function(e,n,r){if(e&&e.mergeDeepWith&&o(n))return e.mergeDeepWith(t,n);var i=t(e,n,r);return K(e,i)?e:i}}function Mt(t,e,n){return n=n.filter(function(t){return 0!==t.size}),0===n.length?t:0!==t.size||t.__ownerID||1!==n.length?t.withMutations(function(t){for(var r=e?function(n,r){t.update(r,vn,function(t){return t===vn?n:e(t,n,r)})}:function(e,n){t.set(n,e)},i=0;i<n.length;i++)n[i].forEach(r)}):t.constructor(n[0])}function Ot(t,e,n,r){var i=t===vn,o=e.next();if(o.done){var a=i?n:t,s=r(a);return s===a?t:s}J(i||t&&t.set,"invalid keyPath");var u=o.value,l=i?vn:t.get(u,vn),c=Ot(l,e,n,r);return c===l?t:c===vn?t.remove(u):(i?xt():t).set(u,c)}function jt(t){return t-=t>>1&1431655765,t=(858993459&t)+(t>>2&858993459),t=t+(t>>4)&252645135,t+=t>>8,t+=t>>16,127&t}function Pt(t,e,n,r){var i=r?t:d(t);return i[e]=n,i}function Lt(t,e,n,r){var i=t.length+1;if(r&&e+1===i)return t[e]=n,t;for(var o=new Array(i),a=0,s=0;s<i;s++)s===e?(o[s]=n,a=-1):o[s]=t[s+a];return o}function Rt(t,e,n){var r=t.length-1;if(n&&e===r)return t.pop(),t;for(var i=new Array(r),o=0,a=0;a<r;a++)a===e&&(o=1),i[a]=t[a+o];return i}function It(t){var e=Ut();if(null===t||void 0===t)return e;if(qt(t))return t;var n=r(t),i=n.size;return 0===i?e:(ct(i),i>0&&i<mn?Bt(0,i,pn,null,new zt(n.toArray())):e.withMutations(function(t){t.setSize(i),n.forEach(function(e,n){return t.set(n,e)})}))}function qt(t){return!(!t||!t[Yn])}function zt(t,e){this.array=t,this.ownerID=e}function Ht(t,e){function n(t,e,n){return 0===e?r(t,n):i(t,e,n)}function r(t,n){var r=n===s?u&&u.array:t&&t.array,i=n>o?0:o-n,l=a-n;return l>mn&&(l=mn),function(){if(i===l)return Zn;var t=e?--l:i++;return r&&r[t]}}function i(t,r,i){var s,u=t&&t.array,l=i>o?0:o-i>>r,c=(a-i>>r)+1;return c>mn&&(c=mn),function(){for(;;){if(s){var t=s();if(t!==Zn)return t;s=null}if(l===c)return Zn;var o=e?--c:l++;s=n(u&&u[o],r-pn,i+(o<<r))}}}var o=t._origin,a=t._capacity,s=Xt(a),u=t._tail;return n(t._root,t._level,0)}function Bt(t,e,n,r,i,o,a){var s=Object.create(Gn);return s.size=e-t,s._origin=t,s._capacity=e,s._level=n,s._root=r,s._tail=i,s.__ownerID=o,s.__hash=a,s.__altered=!1,s}function Ut(){return Kn||(Kn=Bt(0,0,pn))}function Vt(t,e,n){if(e=m(t,e),e!==e)return t;if(e>=t.size||e<0)return t.withMutations(function(t){e<0?Kt(t,e).set(0,n):Kt(t,0,e+1).set(e,n)});e+=t._origin;var r=t._tail,i=t._root,o=c(bn);return e>=Xt(t._capacity)?r=Wt(r,t.__ownerID,0,e,n,o):i=Wt(i,t.__ownerID,t._level,e,n,o),o.value?t.__ownerID?(t._root=i,t._tail=r,t.__hash=void 0,t.__altered=!0,t):Bt(t._origin,t._capacity,t._level,i,r):t}function Wt(t,e,n,r,i,o){var a=r>>>n&gn,s=t&&a<t.array.length;if(!s&&void 0===i)return t;var u;if(n>0){var l=t&&t.array[a],c=Wt(l,e,n-pn,r,i,o);return c===l?t:(u=Yt(t,e),u.array[a]=c,u)}return s&&t.array[a]===i?t:(f(o),u=Yt(t,e),void 0===i&&a===u.array.length-1?u.array.pop():u.array[a]=i,u)}function Yt(t,e){return e&&t&&e===t.ownerID?t:new zt(t?t.array.slice():[],e)}function Gt(t,e){if(e>=Xt(t._capacity))return t._tail;if(e<1<<t._level+pn){for(var n=t._root,r=t._level;n&&r>0;)n=n.array[e>>>r&gn],r-=pn;return n}}function Kt(t,e,n){void 0!==e&&(e=0|e),void 0!==n&&(n=0|n);var r=t.__ownerID||new h,i=t._origin,o=t._capacity,a=i+e,s=void 0===n?o:n<0?o+n:i+n;if(a===i&&s===o)return t;if(a>=s)return t.clear();for(var u=t._level,l=t._root,c=0;a+c<0;)l=new zt(l&&l.array.length?[void 0,l]:[],r),u+=pn,c+=1<<u;c&&(a+=c,i+=c,s+=c,o+=c);for(var f=Xt(o),d=Xt(s);d>=1<<u+pn;)l=new zt(l&&l.array.length?[l]:[],r),u+=pn;var p=t._tail,m=d<f?Gt(t,s-1):d>f?new zt([],r):p;if(p&&d>f&&a<o&&p.array.length){l=Yt(l,r);for(var g=l,v=u;v>pn;v-=pn){var y=f>>>v&gn;g=g.array[y]=Yt(g.array[y],r)}g.array[f>>>pn&gn]=p}if(s<o&&(m=m&&m.removeAfter(r,0,s)),a>=d)a-=d,s-=d,u=pn,l=null,m=m&&m.removeBefore(r,0,a);else if(a>i||d<f){for(c=0;l;){var b=a>>>u&gn;if(b!==d>>>u&gn)break;b&&(c+=(1<<u)*b),u-=pn,l=l.array[b]}l&&a>i&&(l=l.removeBefore(r,u,a-c)),l&&d<f&&(l=l.removeAfter(r,u,d-c)),c&&(a-=c,s-=c)}return t.__ownerID?(t.size=s-a,t._origin=a,t._capacity=s,t._level=u,t._root=l,t._tail=m,t.__hash=void 0,t.__altered=!0,t):Bt(a,s,u,l,m)}function Zt(t,e,n){for(var i=[],a=0,s=0;s<n.length;s++){var u=n[s],l=r(u);l.size>a&&(a=l.size),o(u)||(l=l.map(function(t){return V(t)})),i.push(l)}return a>t.size&&(t=t.setSize(a)),Mt(t,e,i)}function Xt(t){return t<mn?0:t-1>>>pn<<pn}function Jt(t){return null===t||void 0===t?ee():Qt(t)?t:ee().withMutations(function(e){var r=n(t);ct(r.size),r.forEach(function(t,n){return e.set(n,t)})})}function Qt(t){return ht(t)&&l(t)}function te(t,e,n,r){var i=Object.create(Jt.prototype);return i.size=t?t.size:0,i._map=t,i._list=e,i.__ownerID=n,i.__hash=r,i}function ee(){return Xn||(Xn=te(xt(),Ut()))}function ne(t,e,n){var r,i,o=t._map,a=t._list,s=o.get(e),u=void 0!==s;if(n===vn){if(!u)return t;a.size>=mn&&a.size>=2*o.size?(i=a.filter(function(t,e){return void 0!==t&&s!==e}),r=i.toKeyedSeq().map(function(t){return t[0]}).flip().toMap(),t.__ownerID&&(r.__ownerID=i.__ownerID=t.__ownerID)):(r=o.remove(e),i=s===a.size-1?a.pop():a.set(s,void 0))}else if(u){if(n===a.get(s)[1])return t;r=o,i=a.set(s,[e,n])}else r=o.set(e,a.size),i=a.set(a.size,[e,n]);return t.__ownerID?(t.size=r.size,t._map=r,t._list=i,t.__hash=void 0,t):te(r,i)}function re(t,e){this._iter=t,this._useKeys=e,this.size=t.size}function ie(t){this._iter=t,this.size=t.size}function oe(t){this._iter=t,this.size=t.size}function ae(t){this._iter=t,this.size=t.size}function se(t){var e=Ae(t);return e._iter=t,e.size=t.size,e.flip=function(){return t},e.reverse=function(){var e=t.reverse.apply(this);return e.flip=function(){return t.reverse()},e},e.has=function(e){return t.includes(e)},e.includes=function(e){return t.has(e)},e.cacheResult=Te,e.__iterateUncached=function(e,n){var r=this;return t.__iterate(function(t,n){return e(n,t,r)!==!1},n)},e.__iteratorUncached=function(e,n){if(e===xn){var r=t.__iterator(e,n);return new w(function(){var t=r.next();if(!t.done){var e=t.value[0];t.value[0]=t.value[1],t.value[1]=e}return t})}return t.__iterator(e===wn?_n:wn,n)},e}function ue(t,e,n){var r=Ae(t);return r.size=t.size,r.has=function(e){return t.has(e)},r.get=function(r,i){var o=t.get(r,vn);return o===vn?i:e.call(n,o,r,t)},r.__iterateUncached=function(r,i){var o=this;return t.__iterate(function(t,i,a){return r(e.call(n,t,i,a),i,o)!==!1},i)},r.__iteratorUncached=function(r,i){var o=t.__iterator(xn,i);return new w(function(){var i=o.next();if(i.done)return i;var a=i.value,s=a[0];return x(r,s,e.call(n,a[1],s,t),i)})},r}function le(t,e){var n=Ae(t);return n._iter=t,n.size=t.size,n.reverse=function(){return t},t.flip&&(n.flip=function(){var e=se(t);return e.reverse=function(){return t.flip()},e}),n.get=function(n,r){return t.get(e?n:-1-n,r)},n.has=function(n){return t.has(e?n:-1-n)},n.includes=function(e){return t.includes(e)},n.cacheResult=Te,n.__iterate=function(e,n){var r=this;return t.__iterate(function(t,n){return e(t,n,r)},!n)},n.__iterator=function(e,n){return t.__iterator(e,!n)},n}function ce(t,e,n,r){var i=Ae(t);return r&&(i.has=function(r){var i=t.get(r,vn);return i!==vn&&!!e.call(n,i,r,t)},i.get=function(r,i){var o=t.get(r,vn);return o!==vn&&e.call(n,o,r,t)?o:i}),i.__iterateUncached=function(i,o){var a=this,s=0;return t.__iterate(function(t,o,u){if(e.call(n,t,o,u))return s++,i(t,r?o:s-1,a)},o),s},i.__iteratorUncached=function(i,o){var a=t.__iterator(xn,o),s=0;return new w(function(){for(;;){var o=a.next();if(o.done)return o;var u=o.value,l=u[0],c=u[1];if(e.call(n,c,l,t))return x(i,r?l:s++,c,o)}})},i}function fe(t,e,n){var r=ft().asMutable();return t.__iterate(function(i,o){r.update(e.call(n,i,o,t),0,function(t){return t+1})}),r.asImmutable()}function he(t,e,n){var r=a(t),i=(l(t)?Jt():ft()).asMutable();t.__iterate(function(o,a){i.update(e.call(n,o,a,t),function(t){return t=t||[],t.push(r?[a,o]:o),t})});var o=Se(t);return i.map(function(e){return Ce(t,o(e))})}function de(t,e,n,r){var i=t.size;if(void 0!==e&&(e=0|e),void 0!==n&&(n=n===1/0?i:0|n),v(e,n,i))return t;var o=y(e,i),a=b(n,i);if(o!==o||a!==a)return de(t.toSeq().cacheResult(),e,n,r);var s,u=a-o;u===u&&(s=u<0?0:u);var l=Ae(t);return l.size=0===s?s:t.size&&s||void 0,!r&&L(t)&&s>=0&&(l.get=function(e,n){return e=m(this,e),e>=0&&e<s?t.get(e+o,n):n}),l.__iterateUncached=function(e,n){var i=this;if(0===s)return 0;if(n)return this.cacheResult().__iterate(e,n);var a=0,u=!0,l=0;return t.__iterate(function(t,n){if(!u||!(u=a++<o))return l++,e(t,r?n:l-1,i)!==!1&&l!==s}),l},l.__iteratorUncached=function(e,n){if(0!==s&&n)return this.cacheResult().__iterator(e,n);var i=0!==s&&t.__iterator(e,n),a=0,u=0;return new w(function(){for(;a++<o;)i.next();if(++u>s)return k();var t=i.next();return r||e===wn?t:e===_n?x(e,u-1,void 0,t):x(e,u-1,t.value[1],t)})},l}function pe(t,e,n){var r=Ae(t);return r.__iterateUncached=function(r,i){var o=this;if(i)return this.cacheResult().__iterate(r,i);var a=0;return t.__iterate(function(t,i,s){return e.call(n,t,i,s)&&++a&&r(t,i,o)}),a},r.__iteratorUncached=function(r,i){var o=this;if(i)return this.cacheResult().__iterator(r,i);var a=t.__iterator(xn,i),s=!0;return new w(function(){if(!s)return k();var t=a.next();if(t.done)return t;var i=t.value,u=i[0],l=i[1];return e.call(n,l,u,o)?r===xn?t:x(r,u,l,t):(s=!1,k())})},r}function me(t,e,n,r){var i=Ae(t);return i.__iterateUncached=function(i,o){var a=this;if(o)return this.cacheResult().__iterate(i,o);var s=!0,u=0;return t.__iterate(function(t,o,l){if(!s||!(s=e.call(n,t,o,l)))return u++,i(t,r?o:u-1,a)}),u},i.__iteratorUncached=function(i,o){var a=this;if(o)return this.cacheResult().__iterator(i,o);var s=t.__iterator(xn,o),u=!0,l=0;return new w(function(){var t,o,c;do{if(t=s.next(),t.done)return r||i===wn?t:i===_n?x(i,l++,void 0,t):x(i,l++,t.value[1],t);var f=t.value;o=f[0],c=f[1],u&&(u=e.call(n,c,o,a))}while(u);return i===xn?t:x(i,o,c,t)})},i}function ge(t,e){var r=a(t),i=[t].concat(e).map(function(t){return o(t)?r&&(t=n(t)):t=r?I(t):q(Array.isArray(t)?t:[t]),t}).filter(function(t){return 0!==t.size});if(0===i.length)return t;if(1===i.length){var u=i[0];if(u===t||r&&a(u)||s(t)&&s(u))return u}var l=new M(i);return r?l=l.toKeyedSeq():s(t)||(l=l.toSetSeq()),l=l.flatten(!0),l.size=i.reduce(function(t,e){if(void 0!==t){var n=e.size;if(void 0!==n)return t+n}},0),l}function ve(t,e,n){var r=Ae(t);return r.__iterateUncached=function(r,i){function a(t,l){var c=this;t.__iterate(function(t,i){return(!e||l<e)&&o(t)?a(t,l+1):r(t,n?i:s++,c)===!1&&(u=!0),!u},i)}var s=0,u=!1;return a(t,0),s},r.__iteratorUncached=function(r,i){var a=t.__iterator(r,i),s=[],u=0;return new w(function(){for(;a;){var t=a.next();if(t.done===!1){var l=t.value;if(r===xn&&(l=l[1]),e&&!(s.length<e)||!o(l))return n?t:x(r,u++,l,t);s.push(a),a=l.__iterator(r,i)}else a=s.pop()}return k()})},r}function ye(t,e,n){var r=Se(t);return t.toSeq().map(function(i,o){return r(e.call(n,i,o,t))}).flatten(!0)}function be(t,e){var n=Ae(t);return n.size=t.size&&2*t.size-1,n.__iterateUncached=function(n,r){var i=this,o=0;return t.__iterate(function(t,r){return(!o||n(e,o++,i)!==!1)&&n(t,o++,i)!==!1},r),o},n.__iteratorUncached=function(n,r){var i,o=t.__iterator(wn,r),a=0;return new w(function(){return(!i||a%2)&&(i=o.next(),i.done)?i:a%2?x(n,a++,e):x(n,a++,i.value,i)})},n}function _e(t,e,n){e||(e=De);var r=a(t),i=0,o=t.toSeq().map(function(e,r){return[r,e,i++,n?n(e,r,t):e]}).toArray();return o.sort(function(t,n){return e(t[3],n[3])||t[2]-n[2]}).forEach(r?function(t,e){o[e].length=2}:function(t,e){o[e]=t[1]}),r?D(o):s(t)?F(o):N(o)}function we(t,e,n){if(e||(e=De),n){var r=t.toSeq().map(function(e,r){return[e,n(e,r,t)]}).reduce(function(t,n){return xe(e,t[1],n[1])?n:t});return r&&r[0]}return t.reduce(function(t,n){return xe(e,t,n)?n:t})}function xe(t,e,n){var r=t(n,e);return 0===r&&n!==e&&(void 0===n||null===n||n!==n)||r>0}function ke(t,n,r){var i=Ae(t);return i.size=new M(r).map(function(t){return t.size}).min(),i.__iterate=function(t,e){for(var n,r=this.__iterator(wn,e),i=0;!(n=r.next()).done&&t(n.value,i++,this)!==!1;);return i},i.__iteratorUncached=function(t,i){var o=r.map(function(t){return t=e(t),$(i?t.reverse():t)}),a=0,s=!1;return new w(function(){var e;return s||(e=o.map(function(t){return t.next()}),s=e.some(function(t){return t.done})),s?k():x(t,a++,n.apply(null,e.map(function(t){return t.value})))})},i}function Ce(t,e){return L(t)?e:t.constructor(e)}function Ee(t){if(t!==Object(t))throw new TypeError("Expected [K, V] tuple: "+t)}function $e(t){return ct(t.size),p(t)}function Se(t){return a(t)?n:s(t)?r:i}function Ae(t){return Object.create((a(t)?D:s(t)?F:N).prototype)}function Te(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):T.prototype.cacheResult.call(this)}function De(t,e){return t>e?1:t<e?-1:0}function Fe(t){var n=$(t);if(!n){if(!A(t))throw new TypeError("Expected iterable or array-like: "+t);n=$(e(t))}return n}function Ne(t,e){var n,r=function(o){if(o instanceof r)return o;if(!(this instanceof r))return new r(o);if(!n){n=!0;var a=Object.keys(t);je(i,a),i.size=a.length,i._name=e,i._keys=a,i._defaultValues=t}this._map=ft(o)},i=r.prototype=Object.create(Jn);return i.constructor=r,r}function Me(t,e,n){var r=Object.create(Object.getPrototypeOf(t));return r._map=e,r.__ownerID=n,r}function Oe(t){return t._name||t.constructor.name||"Record"}function je(t,e){try{e.forEach(Pe.bind(void 0,t))}catch(n){}}function Pe(t,e){Object.defineProperty(t,e,{get:function(){return this.get(e)},set:function(t){J(this.__ownerID,"Cannot set on an immutable record."),this.set(e,t)}})}function Le(t){return null===t||void 0===t?ze():Re(t)&&!l(t)?t:ze().withMutations(function(e){var n=i(t);ct(n.size),n.forEach(function(t){return e.add(t)})})}function Re(t){return!(!t||!t[Qn])}function Ie(t,e){return t.__ownerID?(t.size=e.size,t._map=e,t):e===t._map?t:0===e.size?t.__empty():t.__make(e)}function qe(t,e){var n=Object.create(tr);return n.size=t?t.size:0,n._map=t,n.__ownerID=e,n}function ze(){return er||(er=qe(xt()))}function He(t){return null===t||void 0===t?Ve():Be(t)?t:Ve().withMutations(function(e){var n=i(t);ct(n.size),n.forEach(function(t){return e.add(t)})})}function Be(t){return Re(t)&&l(t)}function Ue(t,e){var n=Object.create(nr);return n.size=t?t.size:0,n._map=t,n.__ownerID=e,n}function Ve(){return rr||(rr=Ue(ee()))}function We(t){return null===t||void 0===t?Ke():Ye(t)?t:Ke().unshiftAll(t)}function Ye(t){return!(!t||!t[ir])}function Ge(t,e,n,r){var i=Object.create(or);return i.size=t,i._head=e,i.__ownerID=n,i.__hash=r,i.__altered=!1,i}function Ke(){return ar||(ar=Ge(0))}function Ze(t,e){var n=function(n){t.prototype[n]=e[n]};return Object.keys(e).forEach(n),Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(e).forEach(n),t}function Xe(t,e){return e}function Je(t,e){return[e,t]}function Qe(t){return function(){return!t.apply(this,arguments)}}function tn(t){return function(){return-t.apply(this,arguments)}}function en(t){return"string"==typeof t?JSON.stringify(t):String(t)}function nn(){return d(arguments)}function rn(t,e){return t<e?1:t>e?-1:0}function on(t){if(t.size===1/0)return 0;var e=l(t),n=a(t),r=e?1:0,i=t.__iterate(n?e?function(t,e){r=31*r+sn(ot(t),ot(e))|0}:function(t,e){r=r+sn(ot(t),ot(e))|0}:e?function(t){r=31*r+ot(t)|0}:function(t){r=r+ot(t)|0});return an(i,r)}function an(t,e){return e=Fn(e,3432918353),e=Fn(e<<15|e>>>-15,461845907),e=Fn(e<<13|e>>>-13,5),e=(e+3864292196|0)^t,e=Fn(e^e>>>16,2246822507),e=Fn(e^e>>>13,3266489909),e=it(e^e>>>16)}function sn(t,e){return t^e+2654435769+(t<<6)+(t>>2)|0}var un=Array.prototype.slice;t(n,e),t(r,e),t(i,e),e.isIterable=o,e.isKeyed=a,e.isIndexed=s,e.isAssociative=u,e.isOrdered=l,e.Keyed=n,e.Indexed=r,e.Set=i;var ln="@@__IMMUTABLE_ITERABLE__@@",cn="@@__IMMUTABLE_KEYED__@@",fn="@@__IMMUTABLE_INDEXED__@@",hn="@@__IMMUTABLE_ORDERED__@@",dn="delete",pn=5,mn=1<<pn,gn=mn-1,vn={},yn={value:!1},bn={value:!1},_n=0,wn=1,xn=2,kn="function"==typeof Symbol&&Symbol.iterator,Cn="@@iterator",En=kn||Cn;w.prototype.toString=function(){return"[Iterator]"},w.KEYS=_n,w.VALUES=wn,w.ENTRIES=xn,w.prototype.inspect=w.prototype.toSource=function(){return this.toString()},w.prototype[En]=function(){return this},t(T,e),T.of=function(){return T(arguments)},T.prototype.toSeq=function(){return this},T.prototype.toString=function(){return this.__toString("Seq {","}")},T.prototype.cacheResult=function(){return!this._cache&&this.__iterateUncached&&(this._cache=this.entrySeq().toArray(),this.size=this._cache.length),this},T.prototype.__iterate=function(t,e){return B(this,t,e,!0)},T.prototype.__iterator=function(t,e){return U(this,t,e,!0)},t(D,T),D.prototype.toKeyedSeq=function(){return this},t(F,T),F.of=function(){return F(arguments)},F.prototype.toIndexedSeq=function(){return this},F.prototype.toString=function(){return this.__toString("Seq [","]")},F.prototype.__iterate=function(t,e){return B(this,t,e,!1)},F.prototype.__iterator=function(t,e){return U(this,t,e,!1)},t(N,T),N.of=function(){return N(arguments)},N.prototype.toSetSeq=function(){return this},T.isSeq=L,T.Keyed=D,T.Set=N,T.Indexed=F;var $n="@@__IMMUTABLE_SEQ__@@";T.prototype[$n]=!0,t(M,F),M.prototype.get=function(t,e){return this.has(t)?this._array[m(this,t)]:e},M.prototype.__iterate=function(t,e){for(var n=this._array,r=n.length-1,i=0;i<=r;i++)if(t(n[e?r-i:i],i,this)===!1)return i+1;return i},M.prototype.__iterator=function(t,e){var n=this._array,r=n.length-1,i=0;return new w(function(){return i>r?k():x(t,i,n[e?r-i++:i++]);
|
||
})},t(O,D),O.prototype.get=function(t,e){return void 0===e||this.has(t)?this._object[t]:e},O.prototype.has=function(t){return this._object.hasOwnProperty(t)},O.prototype.__iterate=function(t,e){for(var n=this._object,r=this._keys,i=r.length-1,o=0;o<=i;o++){var a=r[e?i-o:o];if(t(n[a],a,this)===!1)return o+1}return o},O.prototype.__iterator=function(t,e){var n=this._object,r=this._keys,i=r.length-1,o=0;return new w(function(){var a=r[e?i-o:o];return o++>i?k():x(t,a,n[a])})},O.prototype[hn]=!0,t(j,F),j.prototype.__iterateUncached=function(t,e){if(e)return this.cacheResult().__iterate(t,e);var n=this._iterable,r=$(n),i=0;if(E(r))for(var o;!(o=r.next()).done&&t(o.value,i++,this)!==!1;);return i},j.prototype.__iteratorUncached=function(t,e){if(e)return this.cacheResult().__iterator(t,e);var n=this._iterable,r=$(n);if(!E(r))return new w(k);var i=0;return new w(function(){var e=r.next();return e.done?e:x(t,i++,e.value)})},t(P,F),P.prototype.__iterateUncached=function(t,e){if(e)return this.cacheResult().__iterate(t,e);for(var n=this._iterator,r=this._iteratorCache,i=0;i<r.length;)if(t(r[i],i++,this)===!1)return i;for(var o;!(o=n.next()).done;){var a=o.value;if(r[i]=a,t(a,i++,this)===!1)break}return i},P.prototype.__iteratorUncached=function(t,e){if(e)return this.cacheResult().__iterator(t,e);var n=this._iterator,r=this._iteratorCache,i=0;return new w(function(){if(i>=r.length){var e=n.next();if(e.done)return e;r[i]=e.value}return x(t,i,r[i++])})};var Sn;t(X,F),X.prototype.toString=function(){return 0===this.size?"Repeat []":"Repeat [ "+this._value+" "+this.size+" times ]"},X.prototype.get=function(t,e){return this.has(t)?this._value:e},X.prototype.includes=function(t){return K(this._value,t)},X.prototype.slice=function(t,e){var n=this.size;return v(t,e,n)?this:new X(this._value,b(e,n)-y(t,n))},X.prototype.reverse=function(){return this},X.prototype.indexOf=function(t){return K(this._value,t)?0:-1},X.prototype.lastIndexOf=function(t){return K(this._value,t)?this.size:-1},X.prototype.__iterate=function(t,e){for(var n=0;n<this.size;n++)if(t(this._value,n,this)===!1)return n+1;return n},X.prototype.__iterator=function(t,e){var n=this,r=0;return new w(function(){return r<n.size?x(t,r++,n._value):k()})},X.prototype.equals=function(t){return t instanceof X?K(this._value,t._value):Z(t)};var An;t(Q,F),Q.prototype.toString=function(){return 0===this.size?"Range []":"Range [ "+this._start+"..."+this._end+(1!==this._step?" by "+this._step:"")+" ]"},Q.prototype.get=function(t,e){return this.has(t)?this._start+m(this,t)*this._step:e},Q.prototype.includes=function(t){var e=(t-this._start)/this._step;return e>=0&&e<this.size&&e===Math.floor(e)},Q.prototype.slice=function(t,e){return v(t,e,this.size)?this:(t=y(t,this.size),e=b(e,this.size),e<=t?new Q(0,0):new Q(this.get(t,this._end),this.get(e,this._end),this._step))},Q.prototype.indexOf=function(t){var e=t-this._start;if(e%this._step===0){var n=e/this._step;if(n>=0&&n<this.size)return n}return-1},Q.prototype.lastIndexOf=function(t){return this.indexOf(t)},Q.prototype.__iterate=function(t,e){for(var n=this.size-1,r=this._step,i=e?this._start+n*r:this._start,o=0;o<=n;o++){if(t(i,o,this)===!1)return o+1;i+=e?-r:r}return o},Q.prototype.__iterator=function(t,e){var n=this.size-1,r=this._step,i=e?this._start+n*r:this._start,o=0;return new w(function(){var a=i;return i+=e?-r:r,o>n?k():x(t,o++,a)})},Q.prototype.equals=function(t){return t instanceof Q?this._start===t._start&&this._end===t._end&&this._step===t._step:Z(this,t)};var Tn;t(tt,e),t(et,tt),t(nt,tt),t(rt,tt),tt.Keyed=et,tt.Indexed=nt,tt.Set=rt;var Dn,Fn="function"==typeof Math.imul&&Math.imul(4294967295,2)===-2?Math.imul:function(t,e){t=0|t,e=0|e;var n=65535&t,r=65535&e;return n*r+((t>>>16)*r+n*(e>>>16)<<16>>>0)|0},Nn=Object.isExtensible,Mn=function(){try{return Object.defineProperty({},"@",{}),!0}catch(t){return!1}}(),On="function"==typeof WeakMap;On&&(Dn=new WeakMap);var jn=0,Pn="__immutablehash__";"function"==typeof Symbol&&(Pn=Symbol(Pn));var Ln=16,Rn=255,In=0,qn={};t(ft,et),ft.of=function(){var t=un.call(arguments,0);return xt().withMutations(function(e){for(var n=0;n<t.length;n+=2){if(n+1>=t.length)throw new Error("Missing value for key: "+t[n]);e.set(t[n],t[n+1])}})},ft.prototype.toString=function(){return this.__toString("Map {","}")},ft.prototype.get=function(t,e){return this._root?this._root.get(0,void 0,t,e):e},ft.prototype.set=function(t,e){return kt(this,t,e)},ft.prototype.setIn=function(t,e){return this.updateIn(t,vn,function(){return e})},ft.prototype.remove=function(t){return kt(this,t,vn)},ft.prototype.deleteIn=function(t){return this.updateIn(t,function(){return vn})},ft.prototype.update=function(t,e,n){return 1===arguments.length?t(this):this.updateIn([t],e,n)},ft.prototype.updateIn=function(t,e,n){n||(n=e,e=void 0);var r=Ot(this,Fe(t),e,n);return r===vn?void 0:r},ft.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._root=null,this.__hash=void 0,this.__altered=!0,this):xt()},ft.prototype.merge=function(){return Dt(this,void 0,arguments)},ft.prototype.mergeWith=function(t){var e=un.call(arguments,1);return Dt(this,t,e)},ft.prototype.mergeIn=function(t){var e=un.call(arguments,1);return this.updateIn(t,xt(),function(t){return"function"==typeof t.merge?t.merge.apply(t,e):e[e.length-1]})},ft.prototype.mergeDeep=function(){return Dt(this,Ft,arguments)},ft.prototype.mergeDeepWith=function(t){var e=un.call(arguments,1);return Dt(this,Nt(t),e)},ft.prototype.mergeDeepIn=function(t){var e=un.call(arguments,1);return this.updateIn(t,xt(),function(t){return"function"==typeof t.mergeDeep?t.mergeDeep.apply(t,e):e[e.length-1]})},ft.prototype.sort=function(t){return Jt(_e(this,t))},ft.prototype.sortBy=function(t,e){return Jt(_e(this,e,t))},ft.prototype.withMutations=function(t){var e=this.asMutable();return t(e),e.wasAltered()?e.__ensureOwner(this.__ownerID):this},ft.prototype.asMutable=function(){return this.__ownerID?this:this.__ensureOwner(new h)},ft.prototype.asImmutable=function(){return this.__ensureOwner()},ft.prototype.wasAltered=function(){return this.__altered},ft.prototype.__iterator=function(t,e){return new yt(this,t,e)},ft.prototype.__iterate=function(t,e){var n=this,r=0;return this._root&&this._root.iterate(function(e){return r++,t(e[1],e[0],n)},e),r},ft.prototype.__ensureOwner=function(t){return t===this.__ownerID?this:t?wt(this.size,this._root,t,this.__hash):(this.__ownerID=t,this.__altered=!1,this)},ft.isMap=ht;var zn="@@__IMMUTABLE_MAP__@@",Hn=ft.prototype;Hn[zn]=!0,Hn[dn]=Hn.remove,Hn.removeIn=Hn.deleteIn,dt.prototype.get=function(t,e,n,r){for(var i=this.entries,o=0,a=i.length;o<a;o++)if(K(n,i[o][0]))return i[o][1];return r},dt.prototype.update=function(t,e,n,r,i,o,a){for(var s=i===vn,u=this.entries,l=0,c=u.length;l<c&&!K(r,u[l][0]);l++);var h=l<c;if(h?u[l][1]===i:s)return this;if(f(a),(s||!h)&&f(o),!s||1!==u.length){if(!h&&!s&&u.length>=Un)return St(t,u,r,i);var p=t&&t===this.ownerID,m=p?u:d(u);return h?s?l===c-1?m.pop():m[l]=m.pop():m[l]=[r,i]:m.push([r,i]),p?(this.entries=m,this):new dt(t,m)}},pt.prototype.get=function(t,e,n,r){void 0===e&&(e=ot(n));var i=1<<((0===t?e:e>>>t)&gn),o=this.bitmap;return 0===(o&i)?r:this.nodes[jt(o&i-1)].get(t+pn,e,n,r)},pt.prototype.update=function(t,e,n,r,i,o,a){void 0===n&&(n=ot(r));var s=(0===e?n:n>>>e)&gn,u=1<<s,l=this.bitmap,c=0!==(l&u);if(!c&&i===vn)return this;var f=jt(l&u-1),h=this.nodes,d=c?h[f]:void 0,p=Ct(d,t,e+pn,n,r,i,o,a);if(p===d)return this;if(!c&&p&&h.length>=Vn)return Tt(t,h,l,s,p);if(c&&!p&&2===h.length&&Et(h[1^f]))return h[1^f];if(c&&p&&1===h.length&&Et(p))return p;var m=t&&t===this.ownerID,g=c?p?l:l^u:l|u,v=c?p?Pt(h,f,p,m):Rt(h,f,m):Lt(h,f,p,m);return m?(this.bitmap=g,this.nodes=v,this):new pt(t,g,v)},mt.prototype.get=function(t,e,n,r){void 0===e&&(e=ot(n));var i=(0===t?e:e>>>t)&gn,o=this.nodes[i];return o?o.get(t+pn,e,n,r):r},mt.prototype.update=function(t,e,n,r,i,o,a){void 0===n&&(n=ot(r));var s=(0===e?n:n>>>e)&gn,u=i===vn,l=this.nodes,c=l[s];if(u&&!c)return this;var f=Ct(c,t,e+pn,n,r,i,o,a);if(f===c)return this;var h=this.count;if(c){if(!f&&(h--,h<Wn))return At(t,l,h,s)}else h++;var d=t&&t===this.ownerID,p=Pt(l,s,f,d);return d?(this.count=h,this.nodes=p,this):new mt(t,h,p)},gt.prototype.get=function(t,e,n,r){for(var i=this.entries,o=0,a=i.length;o<a;o++)if(K(n,i[o][0]))return i[o][1];return r},gt.prototype.update=function(t,e,n,r,i,o,a){void 0===n&&(n=ot(r));var s=i===vn;if(n!==this.keyHash)return s?this:(f(a),f(o),$t(this,t,e,n,[r,i]));for(var u=this.entries,l=0,c=u.length;l<c&&!K(r,u[l][0]);l++);var h=l<c;if(h?u[l][1]===i:s)return this;if(f(a),(s||!h)&&f(o),s&&2===c)return new vt(t,this.keyHash,u[1^l]);var p=t&&t===this.ownerID,m=p?u:d(u);return h?s?l===c-1?m.pop():m[l]=m.pop():m[l]=[r,i]:m.push([r,i]),p?(this.entries=m,this):new gt(t,this.keyHash,m)},vt.prototype.get=function(t,e,n,r){return K(n,this.entry[0])?this.entry[1]:r},vt.prototype.update=function(t,e,n,r,i,o,a){var s=i===vn,u=K(r,this.entry[0]);return(u?i===this.entry[1]:s)?this:(f(a),s?void f(o):u?t&&t===this.ownerID?(this.entry[1]=i,this):new vt(t,this.keyHash,[r,i]):(f(o),$t(this,t,e,ot(r),[r,i])))},dt.prototype.iterate=gt.prototype.iterate=function(t,e){for(var n=this.entries,r=0,i=n.length-1;r<=i;r++)if(t(n[e?i-r:r])===!1)return!1},pt.prototype.iterate=mt.prototype.iterate=function(t,e){for(var n=this.nodes,r=0,i=n.length-1;r<=i;r++){var o=n[e?i-r:r];if(o&&o.iterate(t,e)===!1)return!1}},vt.prototype.iterate=function(t,e){return t(this.entry)},t(yt,w),yt.prototype.next=function(){for(var t=this._type,e=this._stack;e;){var n,r=e.node,i=e.index++;if(r.entry){if(0===i)return bt(t,r.entry)}else if(r.entries){if(n=r.entries.length-1,i<=n)return bt(t,r.entries[this._reverse?n-i:i])}else if(n=r.nodes.length-1,i<=n){var o=r.nodes[this._reverse?n-i:i];if(o){if(o.entry)return bt(t,o.entry);e=this._stack=_t(o,e)}continue}e=this._stack=this._stack.__prev}return k()};var Bn,Un=mn/4,Vn=mn/2,Wn=mn/4;t(It,nt),It.of=function(){return this(arguments)},It.prototype.toString=function(){return this.__toString("List [","]")},It.prototype.get=function(t,e){if(t=m(this,t),t>=0&&t<this.size){t+=this._origin;var n=Gt(this,t);return n&&n.array[t&gn]}return e},It.prototype.set=function(t,e){return Vt(this,t,e)},It.prototype.remove=function(t){return this.has(t)?0===t?this.shift():t===this.size-1?this.pop():this.splice(t,1):this},It.prototype.insert=function(t,e){return this.splice(t,0,e)},It.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=this._origin=this._capacity=0,this._level=pn,this._root=this._tail=null,this.__hash=void 0,this.__altered=!0,this):Ut()},It.prototype.push=function(){var t=arguments,e=this.size;return this.withMutations(function(n){Kt(n,0,e+t.length);for(var r=0;r<t.length;r++)n.set(e+r,t[r])})},It.prototype.pop=function(){return Kt(this,0,-1)},It.prototype.unshift=function(){var t=arguments;return this.withMutations(function(e){Kt(e,-t.length);for(var n=0;n<t.length;n++)e.set(n,t[n])})},It.prototype.shift=function(){return Kt(this,1)},It.prototype.merge=function(){return Zt(this,void 0,arguments)},It.prototype.mergeWith=function(t){var e=un.call(arguments,1);return Zt(this,t,e)},It.prototype.mergeDeep=function(){return Zt(this,Ft,arguments)},It.prototype.mergeDeepWith=function(t){var e=un.call(arguments,1);return Zt(this,Nt(t),e)},It.prototype.setSize=function(t){return Kt(this,0,t)},It.prototype.slice=function(t,e){var n=this.size;return v(t,e,n)?this:Kt(this,y(t,n),b(e,n))},It.prototype.__iterator=function(t,e){var n=0,r=Ht(this,e);return new w(function(){var e=r();return e===Zn?k():x(t,n++,e)})},It.prototype.__iterate=function(t,e){for(var n,r=0,i=Ht(this,e);(n=i())!==Zn&&t(n,r++,this)!==!1;);return r},It.prototype.__ensureOwner=function(t){return t===this.__ownerID?this:t?Bt(this._origin,this._capacity,this._level,this._root,this._tail,t,this.__hash):(this.__ownerID=t,this)},It.isList=qt;var Yn="@@__IMMUTABLE_LIST__@@",Gn=It.prototype;Gn[Yn]=!0,Gn[dn]=Gn.remove,Gn.setIn=Hn.setIn,Gn.deleteIn=Gn.removeIn=Hn.removeIn,Gn.update=Hn.update,Gn.updateIn=Hn.updateIn,Gn.mergeIn=Hn.mergeIn,Gn.mergeDeepIn=Hn.mergeDeepIn,Gn.withMutations=Hn.withMutations,Gn.asMutable=Hn.asMutable,Gn.asImmutable=Hn.asImmutable,Gn.wasAltered=Hn.wasAltered,zt.prototype.removeBefore=function(t,e,n){if(n===e?1<<e:0===this.array.length)return this;var r=n>>>e&gn;if(r>=this.array.length)return new zt([],t);var i,o=0===r;if(e>0){var a=this.array[r];if(i=a&&a.removeBefore(t,e-pn,n),i===a&&o)return this}if(o&&!i)return this;var s=Yt(this,t);if(!o)for(var u=0;u<r;u++)s.array[u]=void 0;return i&&(s.array[r]=i),s},zt.prototype.removeAfter=function(t,e,n){if(n===(e?1<<e:0)||0===this.array.length)return this;var r=n-1>>>e&gn;if(r>=this.array.length)return this;var i;if(e>0){var o=this.array[r];if(i=o&&o.removeAfter(t,e-pn,n),i===o&&r===this.array.length-1)return this}var a=Yt(this,t);return a.array.splice(r+1),i&&(a.array[r]=i),a};var Kn,Zn={};t(Jt,ft),Jt.of=function(){return this(arguments)},Jt.prototype.toString=function(){return this.__toString("OrderedMap {","}")},Jt.prototype.get=function(t,e){var n=this._map.get(t);return void 0!==n?this._list.get(n)[1]:e},Jt.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._map.clear(),this._list.clear(),this):ee()},Jt.prototype.set=function(t,e){return ne(this,t,e)},Jt.prototype.remove=function(t){return ne(this,t,vn)},Jt.prototype.wasAltered=function(){return this._map.wasAltered()||this._list.wasAltered()},Jt.prototype.__iterate=function(t,e){var n=this;return this._list.__iterate(function(e){return e&&t(e[1],e[0],n)},e)},Jt.prototype.__iterator=function(t,e){return this._list.fromEntrySeq().__iterator(t,e)},Jt.prototype.__ensureOwner=function(t){if(t===this.__ownerID)return this;var e=this._map.__ensureOwner(t),n=this._list.__ensureOwner(t);return t?te(e,n,t,this.__hash):(this.__ownerID=t,this._map=e,this._list=n,this)},Jt.isOrderedMap=Qt,Jt.prototype[hn]=!0,Jt.prototype[dn]=Jt.prototype.remove;var Xn;t(re,D),re.prototype.get=function(t,e){return this._iter.get(t,e)},re.prototype.has=function(t){return this._iter.has(t)},re.prototype.valueSeq=function(){return this._iter.valueSeq()},re.prototype.reverse=function(){var t=this,e=le(this,!0);return this._useKeys||(e.valueSeq=function(){return t._iter.toSeq().reverse()}),e},re.prototype.map=function(t,e){var n=this,r=ue(this,t,e);return this._useKeys||(r.valueSeq=function(){return n._iter.toSeq().map(t,e)}),r},re.prototype.__iterate=function(t,e){var n,r=this;return this._iter.__iterate(this._useKeys?function(e,n){return t(e,n,r)}:(n=e?$e(this):0,function(i){return t(i,e?--n:n++,r)}),e)},re.prototype.__iterator=function(t,e){if(this._useKeys)return this._iter.__iterator(t,e);var n=this._iter.__iterator(wn,e),r=e?$e(this):0;return new w(function(){var i=n.next();return i.done?i:x(t,e?--r:r++,i.value,i)})},re.prototype[hn]=!0,t(ie,F),ie.prototype.includes=function(t){return this._iter.includes(t)},ie.prototype.__iterate=function(t,e){var n=this,r=0;return this._iter.__iterate(function(e){return t(e,r++,n)},e)},ie.prototype.__iterator=function(t,e){var n=this._iter.__iterator(wn,e),r=0;return new w(function(){var e=n.next();return e.done?e:x(t,r++,e.value,e)})},t(oe,N),oe.prototype.has=function(t){return this._iter.includes(t)},oe.prototype.__iterate=function(t,e){var n=this;return this._iter.__iterate(function(e){return t(e,e,n)},e)},oe.prototype.__iterator=function(t,e){var n=this._iter.__iterator(wn,e);return new w(function(){var e=n.next();return e.done?e:x(t,e.value,e.value,e)})},t(ae,D),ae.prototype.entrySeq=function(){return this._iter.toSeq()},ae.prototype.__iterate=function(t,e){var n=this;return this._iter.__iterate(function(e){if(e){Ee(e);var r=o(e);return t(r?e.get(1):e[1],r?e.get(0):e[0],n)}},e)},ae.prototype.__iterator=function(t,e){var n=this._iter.__iterator(wn,e);return new w(function(){for(;;){var e=n.next();if(e.done)return e;var r=e.value;if(r){Ee(r);var i=o(r);return x(t,i?r.get(0):r[0],i?r.get(1):r[1],e)}}})},ie.prototype.cacheResult=re.prototype.cacheResult=oe.prototype.cacheResult=ae.prototype.cacheResult=Te,t(Ne,et),Ne.prototype.toString=function(){return this.__toString(Oe(this)+" {","}")},Ne.prototype.has=function(t){return this._defaultValues.hasOwnProperty(t)},Ne.prototype.get=function(t,e){if(!this.has(t))return e;var n=this._defaultValues[t];return this._map?this._map.get(t,n):n},Ne.prototype.clear=function(){if(this.__ownerID)return this._map&&this._map.clear(),this;var t=this.constructor;return t._empty||(t._empty=Me(this,xt()))},Ne.prototype.set=function(t,e){if(!this.has(t))throw new Error('Cannot set unknown key "'+t+'" on '+Oe(this));if(this._map&&!this._map.has(t)){var n=this._defaultValues[t];if(e===n)return this}var r=this._map&&this._map.set(t,e);return this.__ownerID||r===this._map?this:Me(this,r)},Ne.prototype.remove=function(t){if(!this.has(t))return this;var e=this._map&&this._map.remove(t);return this.__ownerID||e===this._map?this:Me(this,e)},Ne.prototype.wasAltered=function(){return this._map.wasAltered()},Ne.prototype.__iterator=function(t,e){var r=this;return n(this._defaultValues).map(function(t,e){return r.get(e)}).__iterator(t,e)},Ne.prototype.__iterate=function(t,e){var r=this;return n(this._defaultValues).map(function(t,e){return r.get(e)}).__iterate(t,e)},Ne.prototype.__ensureOwner=function(t){if(t===this.__ownerID)return this;var e=this._map&&this._map.__ensureOwner(t);return t?Me(this,e,t):(this.__ownerID=t,this._map=e,this)};var Jn=Ne.prototype;Jn[dn]=Jn.remove,Jn.deleteIn=Jn.removeIn=Hn.removeIn,Jn.merge=Hn.merge,Jn.mergeWith=Hn.mergeWith,Jn.mergeIn=Hn.mergeIn,Jn.mergeDeep=Hn.mergeDeep,Jn.mergeDeepWith=Hn.mergeDeepWith,Jn.mergeDeepIn=Hn.mergeDeepIn,Jn.setIn=Hn.setIn,Jn.update=Hn.update,Jn.updateIn=Hn.updateIn,Jn.withMutations=Hn.withMutations,Jn.asMutable=Hn.asMutable,Jn.asImmutable=Hn.asImmutable,t(Le,rt),Le.of=function(){return this(arguments)},Le.fromKeys=function(t){return this(n(t).keySeq())},Le.prototype.toString=function(){return this.__toString("Set {","}")},Le.prototype.has=function(t){return this._map.has(t)},Le.prototype.add=function(t){return Ie(this,this._map.set(t,!0))},Le.prototype.remove=function(t){return Ie(this,this._map.remove(t))},Le.prototype.clear=function(){return Ie(this,this._map.clear())},Le.prototype.union=function(){var t=un.call(arguments,0);return t=t.filter(function(t){return 0!==t.size}),0===t.length?this:0!==this.size||this.__ownerID||1!==t.length?this.withMutations(function(e){for(var n=0;n<t.length;n++)i(t[n]).forEach(function(t){return e.add(t)})}):this.constructor(t[0])},Le.prototype.intersect=function(){var t=un.call(arguments,0);if(0===t.length)return this;t=t.map(function(t){return i(t)});var e=this;return this.withMutations(function(n){e.forEach(function(e){t.every(function(t){return t.includes(e)})||n.remove(e)})})},Le.prototype.subtract=function(){var t=un.call(arguments,0);if(0===t.length)return this;t=t.map(function(t){return i(t)});var e=this;return this.withMutations(function(n){e.forEach(function(e){t.some(function(t){return t.includes(e)})&&n.remove(e)})})},Le.prototype.merge=function(){return this.union.apply(this,arguments)},Le.prototype.mergeWith=function(t){var e=un.call(arguments,1);return this.union.apply(this,e)},Le.prototype.sort=function(t){return He(_e(this,t))},Le.prototype.sortBy=function(t,e){return He(_e(this,e,t))},Le.prototype.wasAltered=function(){return this._map.wasAltered()},Le.prototype.__iterate=function(t,e){var n=this;return this._map.__iterate(function(e,r){return t(r,r,n)},e)},Le.prototype.__iterator=function(t,e){return this._map.map(function(t,e){return e}).__iterator(t,e)},Le.prototype.__ensureOwner=function(t){if(t===this.__ownerID)return this;var e=this._map.__ensureOwner(t);return t?this.__make(e,t):(this.__ownerID=t,this._map=e,this)},Le.isSet=Re;var Qn="@@__IMMUTABLE_SET__@@",tr=Le.prototype;tr[Qn]=!0,tr[dn]=tr.remove,tr.mergeDeep=tr.merge,tr.mergeDeepWith=tr.mergeWith,tr.withMutations=Hn.withMutations,tr.asMutable=Hn.asMutable,tr.asImmutable=Hn.asImmutable,tr.__empty=ze,tr.__make=qe;var er;t(He,Le),He.of=function(){return this(arguments)},He.fromKeys=function(t){return this(n(t).keySeq())},He.prototype.toString=function(){return this.__toString("OrderedSet {","}")},He.isOrderedSet=Be;var nr=He.prototype;nr[hn]=!0,nr.__empty=Ve,nr.__make=Ue;var rr;t(We,nt),We.of=function(){return this(arguments)},We.prototype.toString=function(){return this.__toString("Stack [","]")},We.prototype.get=function(t,e){var n=this._head;for(t=m(this,t);n&&t--;)n=n.next;return n?n.value:e},We.prototype.peek=function(){return this._head&&this._head.value},We.prototype.push=function(){if(0===arguments.length)return this;for(var t=this.size+arguments.length,e=this._head,n=arguments.length-1;n>=0;n--)e={value:arguments[n],next:e};return this.__ownerID?(this.size=t,this._head=e,this.__hash=void 0,this.__altered=!0,this):Ge(t,e)},We.prototype.pushAll=function(t){if(t=r(t),0===t.size)return this;ct(t.size);var e=this.size,n=this._head;return t.reverse().forEach(function(t){e++,n={value:t,next:n}}),this.__ownerID?(this.size=e,this._head=n,this.__hash=void 0,this.__altered=!0,this):Ge(e,n)},We.prototype.pop=function(){return this.slice(1)},We.prototype.unshift=function(){return this.push.apply(this,arguments)},We.prototype.unshiftAll=function(t){return this.pushAll(t)},We.prototype.shift=function(){return this.pop.apply(this,arguments)},We.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._head=void 0,this.__hash=void 0,this.__altered=!0,this):Ke()},We.prototype.slice=function(t,e){if(v(t,e,this.size))return this;var n=y(t,this.size),r=b(e,this.size);if(r!==this.size)return nt.prototype.slice.call(this,t,e);for(var i=this.size-n,o=this._head;n--;)o=o.next;return this.__ownerID?(this.size=i,this._head=o,this.__hash=void 0,this.__altered=!0,this):Ge(i,o)},We.prototype.__ensureOwner=function(t){return t===this.__ownerID?this:t?Ge(this.size,this._head,t,this.__hash):(this.__ownerID=t,this.__altered=!1,this)},We.prototype.__iterate=function(t,e){if(e)return this.reverse().__iterate(t);for(var n=0,r=this._head;r&&t(r.value,n++,this)!==!1;)r=r.next;return n},We.prototype.__iterator=function(t,e){if(e)return this.reverse().__iterator(t);var n=0,r=this._head;return new w(function(){if(r){var e=r.value;return r=r.next,x(t,n++,e)}return k()})},We.isStack=Ye;var ir="@@__IMMUTABLE_STACK__@@",or=We.prototype;or[ir]=!0,or.withMutations=Hn.withMutations,or.asMutable=Hn.asMutable,or.asImmutable=Hn.asImmutable,or.wasAltered=Hn.wasAltered;var ar;e.Iterator=w,Ze(e,{toArray:function(){ct(this.size);var t=new Array(this.size||0);return this.valueSeq().__iterate(function(e,n){t[n]=e}),t},toIndexedSeq:function(){return new ie(this)},toJS:function(){return this.toSeq().map(function(t){return t&&"function"==typeof t.toJS?t.toJS():t}).__toJS()},toJSON:function(){return this.toSeq().map(function(t){return t&&"function"==typeof t.toJSON?t.toJSON():t}).__toJS()},toKeyedSeq:function(){return new re(this,(!0))},toMap:function(){return ft(this.toKeyedSeq())},toObject:function(){ct(this.size);var t={};return this.__iterate(function(e,n){t[n]=e}),t},toOrderedMap:function(){return Jt(this.toKeyedSeq())},toOrderedSet:function(){return He(a(this)?this.valueSeq():this)},toSet:function(){return Le(a(this)?this.valueSeq():this)},toSetSeq:function(){return new oe(this)},toSeq:function(){return s(this)?this.toIndexedSeq():a(this)?this.toKeyedSeq():this.toSetSeq()},toStack:function(){return We(a(this)?this.valueSeq():this)},toList:function(){return It(a(this)?this.valueSeq():this)},toString:function(){return"[Iterable]"},__toString:function(t,e){return 0===this.size?t+e:t+" "+this.toSeq().map(this.__toStringMapper).join(", ")+" "+e},concat:function(){var t=un.call(arguments,0);return Ce(this,ge(this,t))},includes:function(t){return this.some(function(e){return K(e,t)})},entries:function(){return this.__iterator(xn)},every:function(t,e){ct(this.size);var n=!0;return this.__iterate(function(r,i,o){if(!t.call(e,r,i,o))return n=!1,!1}),n},filter:function(t,e){return Ce(this,ce(this,t,e,!0))},find:function(t,e,n){var r=this.findEntry(t,e);return r?r[1]:n},forEach:function(t,e){return ct(this.size),this.__iterate(e?t.bind(e):t)},join:function(t){ct(this.size),t=void 0!==t?""+t:",";var e="",n=!0;return this.__iterate(function(r){n?n=!1:e+=t,e+=null!==r&&void 0!==r?r.toString():""}),e},keys:function(){return this.__iterator(_n)},map:function(t,e){return Ce(this,ue(this,t,e))},reduce:function(t,e,n){ct(this.size);var r,i;return arguments.length<2?i=!0:r=e,this.__iterate(function(e,o,a){i?(i=!1,r=e):r=t.call(n,r,e,o,a)}),r},reduceRight:function(t,e,n){var r=this.toKeyedSeq().reverse();return r.reduce.apply(r,arguments)},reverse:function(){return Ce(this,le(this,!0))},slice:function(t,e){return Ce(this,de(this,t,e,!0))},some:function(t,e){return!this.every(Qe(t),e)},sort:function(t){return Ce(this,_e(this,t))},values:function(){return this.__iterator(wn)},butLast:function(){return this.slice(0,-1)},isEmpty:function(){return void 0!==this.size?0===this.size:!this.some(function(){return!0})},count:function(t,e){return p(t?this.toSeq().filter(t,e):this)},countBy:function(t,e){return fe(this,t,e)},equals:function(t){return Z(this,t)},entrySeq:function(){var t=this;if(t._cache)return new M(t._cache);var e=t.toSeq().map(Je).toIndexedSeq();return e.fromEntrySeq=function(){return t.toSeq()},e},filterNot:function(t,e){return this.filter(Qe(t),e)},findEntry:function(t,e,n){var r=n;return this.__iterate(function(n,i,o){if(t.call(e,n,i,o))return r=[i,n],!1}),r},findKey:function(t,e){var n=this.findEntry(t,e);return n&&n[0]},findLast:function(t,e,n){return this.toKeyedSeq().reverse().find(t,e,n)},findLastEntry:function(t,e,n){return this.toKeyedSeq().reverse().findEntry(t,e,n)},findLastKey:function(t,e){return this.toKeyedSeq().reverse().findKey(t,e)},first:function(){return this.find(g)},flatMap:function(t,e){return Ce(this,ye(this,t,e))},flatten:function(t){return Ce(this,ve(this,t,!0))},fromEntrySeq:function(){return new ae(this)},get:function(t,e){return this.find(function(e,n){return K(n,t)},void 0,e)},getIn:function(t,e){for(var n,r=this,i=Fe(t);!(n=i.next()).done;){var o=n.value;if(r=r&&r.get?r.get(o,vn):vn,r===vn)return e}return r},groupBy:function(t,e){return he(this,t,e)},has:function(t){return this.get(t,vn)!==vn},hasIn:function(t){return this.getIn(t,vn)!==vn},isSubset:function(t){return t="function"==typeof t.includes?t:e(t),this.every(function(e){return t.includes(e)})},isSuperset:function(t){return t="function"==typeof t.isSubset?t:e(t),t.isSubset(this)},keyOf:function(t){return this.findKey(function(e){return K(e,t)})},keySeq:function(){return this.toSeq().map(Xe).toIndexedSeq()},last:function(){return this.toSeq().reverse().first()},lastKeyOf:function(t){return this.toKeyedSeq().reverse().keyOf(t)},max:function(t){return we(this,t)},maxBy:function(t,e){return we(this,e,t)},min:function(t){return we(this,t?tn(t):rn)},minBy:function(t,e){return we(this,e?tn(e):rn,t)},rest:function(){return this.slice(1)},skip:function(t){return this.slice(Math.max(0,t))},skipLast:function(t){return Ce(this,this.toSeq().reverse().skip(t).reverse())},skipWhile:function(t,e){return Ce(this,me(this,t,e,!0))},skipUntil:function(t,e){return this.skipWhile(Qe(t),e)},sortBy:function(t,e){return Ce(this,_e(this,e,t))},take:function(t){return this.slice(0,Math.max(0,t))},takeLast:function(t){return Ce(this,this.toSeq().reverse().take(t).reverse())},takeWhile:function(t,e){return Ce(this,pe(this,t,e))},takeUntil:function(t,e){return this.takeWhile(Qe(t),e)},valueSeq:function(){return this.toIndexedSeq()},hashCode:function(){return this.__hash||(this.__hash=on(this))}});var sr=e.prototype;sr[ln]=!0,sr[En]=sr.values,sr.__toJS=sr.toArray,sr.__toStringMapper=en,sr.inspect=sr.toSource=function(){return this.toString()},sr.chain=sr.flatMap,sr.contains=sr.includes,Ze(n,{flip:function(){return Ce(this,se(this))},mapEntries:function(t,e){var n=this,r=0;return Ce(this,this.toSeq().map(function(i,o){return t.call(e,[o,i],r++,n)}).fromEntrySeq())},mapKeys:function(t,e){var n=this;return Ce(this,this.toSeq().flip().map(function(r,i){return t.call(e,r,i,n)}).flip())}});var ur=n.prototype;ur[cn]=!0,ur[En]=sr.entries,ur.__toJS=sr.toObject,ur.__toStringMapper=function(t,e){return JSON.stringify(e)+": "+en(t)},Ze(r,{toKeyedSeq:function(){return new re(this,(!1))},filter:function(t,e){return Ce(this,ce(this,t,e,!1))},findIndex:function(t,e){var n=this.findEntry(t,e);return n?n[0]:-1},indexOf:function(t){var e=this.keyOf(t);return void 0===e?-1:e},lastIndexOf:function(t){var e=this.lastKeyOf(t);return void 0===e?-1:e},reverse:function(){return Ce(this,le(this,!1))},slice:function(t,e){return Ce(this,de(this,t,e,!1))},splice:function(t,e){var n=arguments.length;if(e=Math.max(0|e,0),0===n||2===n&&!e)return this;t=y(t,t<0?this.count():this.size);var r=this.slice(0,t);return Ce(this,1===n?r:r.concat(d(arguments,2),this.slice(t+e)))},findLastIndex:function(t,e){var n=this.findLastEntry(t,e);return n?n[0]:-1},first:function(){return this.get(0)},flatten:function(t){return Ce(this,ve(this,t,!1))},get:function(t,e){return t=m(this,t),t<0||this.size===1/0||void 0!==this.size&&t>this.size?e:this.find(function(e,n){return n===t},void 0,e)},has:function(t){return t=m(this,t),t>=0&&(void 0!==this.size?this.size===1/0||t<this.size:this.indexOf(t)!==-1)},interpose:function(t){return Ce(this,be(this,t))},interleave:function(){var t=[this].concat(d(arguments)),e=ke(this.toSeq(),F.of,t),n=e.flatten(!0);return e.size&&(n.size=e.size*t.length),Ce(this,n)},keySeq:function(){return Q(0,this.size)},last:function(){return this.get(-1)},skipWhile:function(t,e){return Ce(this,me(this,t,e,!1))},zip:function(){var t=[this].concat(d(arguments));return Ce(this,ke(this,nn,t))},zipWith:function(t){var e=d(arguments);return e[0]=this,Ce(this,ke(this,t,e))}}),r.prototype[fn]=!0,r.prototype[hn]=!0,Ze(i,{get:function(t,e){return this.has(t)?t:e},includes:function(t){return this.has(t)},keySeq:function(){return this.valueSeq()}}),i.prototype.has=sr.includes,i.prototype.contains=i.prototype.includes,Ze(D,n.prototype),Ze(F,r.prototype),Ze(N,i.prototype),Ze(et,n.prototype),Ze(nt,r.prototype),Ze(rt,i.prototype);var lr={Iterable:e,Seq:T,Collection:tt,Map:ft,OrderedMap:Jt,List:It,Stack:We,Set:Le,OrderedSet:He,Record:Ne,Range:Q,Repeat:X,is:K,fromJS:V};return lr}),function(t,e){"object"==typeof exports?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e(t)}(this,function(t){function e(t){this._targetElement=t,this._introItems=[],this._options={nextLabel:"Next →",prevLabel:"← Back",skipLabel:"Skip",doneLabel:"Done",hidePrev:!1,hideNext:!1,tooltipPosition:"bottom",tooltipClass:"",highlightClass:"",exitOnEsc:!0,exitOnOverlayClick:!0,showStepNumbers:!0,keyboardNavigation:!0,showButtons:!0,showBullets:!0,showProgress:!1,scrollToElement:!0,scrollTo:"element",scrollPadding:30,overlayOpacity:.8,positionPrecedence:["bottom","top","right","left"],disableInteraction:!1,hintPosition:"top-middle",hintButtonLabel:"Got it",hintAnimation:!0}}function n(t){var e=[],n=this;if(this._options.steps)for(var i=0,o=this._options.steps.length;i<o;i++){var u=r(this._options.steps[i]);if(u.step=e.length+1,"string"==typeof u.element&&(u.element=document.querySelector(u.element)),"undefined"==typeof u.element||null==u.element){var c=document.querySelector(".introjsFloatingElement");null==c&&(c=document.createElement("div"),c.className="introjsFloatingElement",document.body.appendChild(c)),u.element=c,u.position="floating"}u.scrollTo=u.scrollTo||this._options.scrollTo,"undefined"==typeof u.disableInteraction&&(u.disableInteraction=this._options.disableInteraction),null!=u.element&&e.push(u)}else{var f=t.querySelectorAll("*[data-intro]");if(f.length<1)return!1;for(var i=0,h=f.length;i<h;i++){var d=f[i];if("none"!=d.style.display){var p=parseInt(d.getAttribute("data-step"),10),m=this._options.disableInteraction;"undefined"!=typeof d.getAttribute("data-disable-interaction")&&(m=!!d.getAttribute("data-disable-interaction")),
|
||
p>0&&(e[p-1]={element:d,intro:d.getAttribute("data-intro"),step:parseInt(d.getAttribute("data-step"),10),tooltipClass:d.getAttribute("data-tooltipClass"),highlightClass:d.getAttribute("data-highlightClass"),position:d.getAttribute("data-position")||this._options.tooltipPosition,scrollTo:d.getAttribute("data-scrollTo")||this._options.scrollTo,disableInteraction:m})}}for(var g=0,i=0,h=f.length;i<h;i++){var d=f[i];if(null==d.getAttribute("data-step")){for(;;){if("undefined"==typeof e[g])break;g++}var m=this._options.disableInteraction;"undefined"!=typeof d.getAttribute("data-disable-interaction")&&(m=!!d.getAttribute("data-disable-interaction")),e[g]={element:d,intro:d.getAttribute("data-intro"),step:g+1,tooltipClass:d.getAttribute("data-tooltipClass"),highlightClass:d.getAttribute("data-highlightClass"),position:d.getAttribute("data-position")||this._options.tooltipPosition,scrollTo:d.getAttribute("data-scrollTo")||this._options.scrollTo,disableInteraction:m}}}}for(var v=[],y=0;y<e.length;y++)e[y]&&v.push(e[y]);if(e=v,e.sort(function(t,e){return t.step-e.step}),n._introItems=e,A.call(n,t)){a.call(n);t.querySelector(".introjs-skipbutton"),t.querySelector(".introjs-nextbutton");n._onKeyDown=function(e){if(27===e.keyCode&&1==n._options.exitOnEsc)l.call(n,t);else if(37===e.keyCode)s.call(n);else if(39===e.keyCode)a.call(n);else if(13===e.keyCode){var r=e.target||e.srcElement;r&&r.className.indexOf("introjs-prevbutton")>0?s.call(n):r&&r.className.indexOf("introjs-skipbutton")>0?(n._introItems.length-1==n._currentStep&&"function"==typeof n._introCompleteCallback&&n._introCompleteCallback.call(n),l.call(n,t)):a.call(n),e.preventDefault?e.preventDefault():e.returnValue=!1}},n._onResize=function(t){n.refresh.call(n)},window.addEventListener?(this._options.keyboardNavigation&&window.addEventListener("keydown",n._onKeyDown,!0),window.addEventListener("resize",n._onResize,!0)):document.attachEvent&&(this._options.keyboardNavigation&&document.attachEvent("onkeydown",n._onKeyDown),document.attachEvent("onresize",n._onResize))}return!1}function r(t){if(null==t||"object"!=typeof t||"undefined"!=typeof t.nodeType)return t;var e={};for(var n in t)"undefined"!=typeof jQuery&&t[n]instanceof jQuery?e[n]=t[n]:e[n]=r(t[n]);return e}function i(t){this._currentStep=t-2,"undefined"!=typeof this._introItems&&a.call(this)}function o(t){this._currentStepNumber=t,"undefined"!=typeof this._introItems&&a.call(this)}function a(){if(this._direction="forward","undefined"!=typeof this._currentStepNumber)for(var t=0,e=this._introItems.length;t<e;t++){var n=this._introItems[t];n.step===this._currentStepNumber&&(this._currentStep=t-1,this._currentStepNumber=void 0)}if("undefined"==typeof this._currentStep?this._currentStep=0:++this._currentStep,this._introItems.length<=this._currentStep)return"function"==typeof this._introCompleteCallback&&this._introCompleteCallback.call(this),void l.call(this,this._targetElement);var r=this._introItems[this._currentStep];"undefined"!=typeof this._introBeforeChangeCallback&&this._introBeforeChangeCallback.call(this,r.element),y.call(this,r)}function s(){if(this._direction="backward",0===this._currentStep)return!1;var t=this._introItems[--this._currentStep];"undefined"!=typeof this._introBeforeChangeCallback&&this._introBeforeChangeCallback.call(this,t.element),y.call(this,t)}function u(){if(m.call(this,document.querySelector(".introjs-helperLayer")),m.call(this,document.querySelector(".introjs-tooltipReferenceLayer")),void 0!==this._currentStep&&null!==this._currentStep){var t=document.querySelector(".introjs-helperNumberLayer"),e=document.querySelector(".introjs-arrow"),n=document.querySelector(".introjs-tooltip");c.call(this,this._introItems[this._currentStep].element,n,e,t)}return F.call(this),this}function l(t,e){var n=!0;if(void 0!=this._introBeforeExitCallback&&(n=this._introBeforeExitCallback.call(self)),e||n!==!1){var r=t.querySelectorAll(".introjs-overlay");if(r&&r.length>0)for(var i=r.length-1;i>=0;i--){var o=r[i];o.style.opacity=0,setTimeout(function(){this.parentNode&&this.parentNode.removeChild(this)}.bind(o),500)}var a=t.querySelector(".introjs-helperLayer");a&&a.parentNode.removeChild(a);var s=t.querySelector(".introjs-tooltipReferenceLayer");s&&s.parentNode.removeChild(s);var u=t.querySelector(".introjs-disableInteraction");u&&u.parentNode.removeChild(u);var l=document.querySelector(".introjsFloatingElement");l&&l.parentNode.removeChild(l),_();var c=document.querySelectorAll(".introjs-fixParent");if(c&&c.length>0)for(var i=c.length-1;i>=0;i--)c[i].className=c[i].className.replace(/introjs-fixParent/g,"").replace(/^\s+|\s+$/g,"");window.removeEventListener?window.removeEventListener("keydown",this._onKeyDown,!0):document.detachEvent&&document.detachEvent("onkeydown",this._onKeyDown),void 0!=this._introExitCallback&&this._introExitCallback.call(self),this._currentStep=void 0}}function c(t,e,n,r,i){var o,a,s,u,l,c="";if(i=i||!1,e.style.top=null,e.style.right=null,e.style.bottom=null,e.style.left=null,e.style.marginLeft=null,e.style.marginTop=null,n.style.display="inherit","undefined"!=typeof r&&null!=r&&(r.style.top=null,r.style.left=null),this._introItems[this._currentStep])switch(o=this._introItems[this._currentStep],c="string"==typeof o.tooltipClass?o.tooltipClass:this._options.tooltipClass,e.className=("introjs-tooltip "+c).replace(/^\s+|\s+$/g,""),l=this._introItems[this._currentStep].position,"floating"!=l&&(l="auto"===l?d.call(this,t,e):d.call(this,t,e,l)),s=z(t),a=z(e),u=$(),l){case"top":if(n.className="introjs-arrow bottom",i)var p=0;else var p=15;f(s,p,a,u,e),e.style.bottom=s.height+20+"px";break;case"right":e.style.left=s.width+20+"px",s.top+a.height>u.height?(n.className="introjs-arrow left-bottom",e.style.top="-"+(a.height-s.height-20)+"px"):n.className="introjs-arrow left";break;case"left":i||1!=this._options.showStepNumbers||(e.style.top="15px"),s.top+a.height>u.height?(e.style.top="-"+(a.height-s.height-20)+"px",n.className="introjs-arrow right-bottom"):n.className="introjs-arrow right",e.style.right=s.width+20+"px";break;case"floating":n.style.display="none",e.style.left="50%",e.style.top="50%",e.style.marginLeft="-"+a.width/2+"px",e.style.marginTop="-"+a.height/2+"px","undefined"!=typeof r&&null!=r&&(r.style.left="-"+(a.width/2+18)+"px",r.style.top="-"+(a.height/2+18)+"px");break;case"bottom-right-aligned":n.className="introjs-arrow top-right";var m=0;h(s,m,a,e),e.style.top=s.height+20+"px";break;case"bottom-middle-aligned":n.className="introjs-arrow top-middle";var g=s.width/2-a.width/2;i&&(g+=5),h(s,g,a,e)&&(e.style.right=null,f(s,g,a,u,e)),e.style.top=s.height+20+"px";break;case"bottom-left-aligned":case"bottom":default:n.className="introjs-arrow top";var p=0;f(s,p,a,u,e),e.style.top=s.height+20+"px"}}function f(t,e,n,r,i){return t.left+e+n.width>r.width?(i.style.left=r.width-n.width-t.left+"px",!1):(i.style.left=e+"px",!0)}function h(t,e,n,r){return t.left+t.width-e-n.width<0?(r.style.left=-t.left+"px",!1):(r.style.right=e+"px",!0)}function d(t,e,n){var r=this._options.positionPrecedence.slice(),i=$(),o=z(e).height+10,a=z(e).width+20,s=z(t),u="floating";return s.left+a>i.width||s.left+s.width/2-a<0?(p(r,"bottom"),p(r,"top")):(s.height+s.top+o>i.height&&p(r,"bottom"),s.top-o<0&&p(r,"top")),s.width+s.left+a>i.width&&p(r,"right"),s.left-a<0&&p(r,"left"),r.length>0&&(u=r[0]),n&&"auto"!=n&&r.indexOf(n)>-1&&(u=n),u}function p(t,e){t.indexOf(e)>-1&&t.splice(t.indexOf(e),1)}function m(t){if(t){if(!this._introItems[this._currentStep])return;var e=this._introItems[this._currentStep],n=z(e.element),r=10;E(e.element)?t.className+=" introjs-fixedTooltip":t.className=t.className.replace(" introjs-fixedTooltip",""),"floating"==e.position&&(r=0),t.setAttribute("style","width: "+(n.width+r)+"px; height:"+(n.height+r)+"px; top:"+(n.top-5)+"px;left: "+(n.left-5)+"px;")}}function g(){var t=document.querySelector(".introjs-disableInteraction");null===t&&(t=document.createElement("div"),t.className="introjs-disableInteraction",this._targetElement.appendChild(t)),m.call(this,t)}function v(t){t.setAttribute("role","button"),t.tabIndex=0}function y(t){"undefined"!=typeof this._introChangeCallback&&this._introChangeCallback.call(this,t.element);var e=this,n=document.querySelector(".introjs-helperLayer"),r=document.querySelector(".introjs-tooltipReferenceLayer"),i="introjs-helperLayer";z(t.element);if("string"==typeof t.highlightClass&&(i+=" "+t.highlightClass),"string"==typeof this._options.highlightClass&&(i+=" "+this._options.highlightClass),null!=n){var o=r.querySelector(".introjs-helperNumberLayer"),u=r.querySelector(".introjs-tooltiptext"),f=r.querySelector(".introjs-arrow"),h=r.querySelector(".introjs-tooltip"),d=r.querySelector(".introjs-skipbutton"),p=r.querySelector(".introjs-prevbutton"),y=r.querySelector(".introjs-nextbutton");if(n.className=i,h.style.opacity=0,h.style.display="none",null!=o){var x=this._introItems[t.step-2>=0?t.step-2:0];(null!=x&&"forward"==this._direction&&"floating"==x.position||"backward"==this._direction&&"floating"==t.position)&&(o.style.opacity=0)}m.call(e,n),m.call(e,r);var k=document.querySelectorAll(".introjs-fixParent");if(k&&k.length>0)for(var C=k.length-1;C>=0;C--)k[C].className=k[C].className.replace(/introjs-fixParent/g,"").replace(/^\s+|\s+$/g,"");_(),e._lastShowElementTimer&&clearTimeout(e._lastShowElementTimer),e._lastShowElementTimer=setTimeout(function(){null!=o&&(o.innerHTML=t.step),u.innerHTML=t.intro,h.style.display="block",c.call(e,t.element,h,f,o),e._options.showBullets&&(r.querySelector(".introjs-bullets li > a.active").className="",r.querySelector('.introjs-bullets li > a[data-stepnumber="'+t.step+'"]').className="active"),r.querySelector(".introjs-progress .introjs-progressbar").setAttribute("style","width:"+H.call(e)+"%;"),h.style.opacity=1,o&&(o.style.opacity=1),"undefined"!=typeof d&&null!=d&&/introjs-donebutton/gi.test(d.className)?d.focus():"undefined"!=typeof y&&null!=y&&y.focus(),b.call(e,t.scrollTo,t,u)},350)}else{var E=document.createElement("div"),$=document.createElement("div"),S=document.createElement("div"),A=document.createElement("div"),T=document.createElement("div"),D=document.createElement("div"),F=document.createElement("div"),N=document.createElement("div");E.className=i,$.className="introjs-tooltipReferenceLayer",m.call(e,E),m.call(e,$),this._targetElement.appendChild(E),this._targetElement.appendChild($),S.className="introjs-arrow",T.className="introjs-tooltiptext",T.innerHTML=t.intro,D.className="introjs-bullets",this._options.showBullets===!1&&(D.style.display="none");for(var M=document.createElement("ul"),C=0,O=this._introItems.length;C<O;C++){var j=document.createElement("li"),P=document.createElement("a");P.onclick=function(){e.goToStep(this.getAttribute("data-stepnumber"))},C===t.step-1&&(P.className="active"),v(P),P.innerHTML=" ",P.setAttribute("data-stepnumber",this._introItems[C].step),j.appendChild(P),M.appendChild(j)}D.appendChild(M),F.className="introjs-progress",this._options.showProgress===!1&&(F.style.display="none");var L=document.createElement("div");if(L.className="introjs-progressbar",L.setAttribute("style","width:"+H.call(this)+"%;"),F.appendChild(L),N.className="introjs-tooltipbuttons",this._options.showButtons===!1&&(N.style.display="none"),A.className="introjs-tooltip",A.appendChild(T),A.appendChild(D),A.appendChild(F),1==this._options.showStepNumbers){var R=document.createElement("span");R.className="introjs-helperNumberLayer",R.innerHTML=t.step,$.appendChild(R)}A.appendChild(S),$.appendChild(A);var y=document.createElement("a");y.onclick=function(){e._introItems.length-1!=e._currentStep&&a.call(e)},v(y),y.innerHTML=this._options.nextLabel;var p=document.createElement("a");p.onclick=function(){0!=e._currentStep&&s.call(e)},v(p),p.innerHTML=this._options.prevLabel;var d=document.createElement("a");d.className="introjs-button introjs-skipbutton",v(d),d.innerHTML=this._options.skipLabel,d.onclick=function(){e._introItems.length-1==e._currentStep&&"function"==typeof e._introCompleteCallback&&e._introCompleteCallback.call(e),l.call(e,e._targetElement)},N.appendChild(d),this._introItems.length>1&&(N.appendChild(p),N.appendChild(y)),A.appendChild(N),c.call(e,t.element,A,S,R),b.call(this,t.scrollTo,t,A)}var I=e._targetElement.querySelector(".introjs-disableInteraction");I&&I.parentNode.removeChild(I),t.disableInteraction&&g.call(e),"undefined"!=typeof y&&null!=y&&y.removeAttribute("tabIndex"),"undefined"!=typeof p&&null!=p&&p.removeAttribute("tabIndex"),0==this._currentStep&&this._introItems.length>1?("undefined"!=typeof d&&null!=d&&(d.className="introjs-button introjs-skipbutton"),"undefined"!=typeof y&&null!=y&&(y.className="introjs-button introjs-nextbutton"),1==this._options.hidePrev?("undefined"!=typeof p&&null!=p&&(p.className="introjs-button introjs-prevbutton introjs-hidden"),"undefined"!=typeof y&&null!=y&&(y.className+=" introjs-fullbutton")):"undefined"!=typeof p&&null!=p&&(p.className="introjs-button introjs-prevbutton introjs-disabled"),"undefined"!=typeof p&&null!=p&&(p.tabIndex="-1"),"undefined"!=typeof d&&null!=d&&(d.innerHTML=this._options.skipLabel)):this._introItems.length-1==this._currentStep||1==this._introItems.length?("undefined"!=typeof d&&null!=d&&(d.innerHTML=this._options.doneLabel,d.className+=" introjs-donebutton"),"undefined"!=typeof p&&null!=p&&(p.className="introjs-button introjs-prevbutton"),1==this._options.hideNext?("undefined"!=typeof y&&null!=y&&(y.className="introjs-button introjs-nextbutton introjs-hidden"),"undefined"!=typeof p&&null!=p&&(p.className+=" introjs-fullbutton")):"undefined"!=typeof y&&null!=y&&(y.className="introjs-button introjs-nextbutton introjs-disabled"),"undefined"!=typeof y&&null!=y&&(y.tabIndex="-1")):("undefined"!=typeof d&&null!=d&&(d.className="introjs-button introjs-skipbutton"),"undefined"!=typeof p&&null!=p&&(p.className="introjs-button introjs-prevbutton"),"undefined"!=typeof y&&null!=y&&(y.className="introjs-button introjs-nextbutton"),"undefined"!=typeof d&&null!=d&&(d.innerHTML=this._options.skipLabel)),"undefined"!=typeof y&&null!=y&&y.focus(),w(t),"undefined"!=typeof this._introAfterChangeCallback&&this._introAfterChangeCallback.call(this,t.element)}function b(t,e,n){if(this._options.scrollToElement){if("tooltip"===t)var r=n.getBoundingClientRect();else var r=e.element.getBoundingClientRect();if(!S(e.element)){var i=$().height,o=r.bottom-(r.bottom-r.top);r.bottom-i;o<0||e.element.clientHeight>i?window.scrollBy(0,r.top-(i/2-r.height/2)-this._options.scrollPadding):window.scrollBy(0,r.top-(i/2-r.height/2)+this._options.scrollPadding)}}}function _(){for(var t=document.querySelectorAll(".introjs-showElement"),e=0,n=t.length;e<n;e++){var r=t[e];k(r,/introjs-[a-zA-Z]+/g)}}function w(t){if(t.element instanceof SVGElement)for(var e=t.element.parentNode;null!=t.element.parentNode&&e.tagName&&"body"!==e.tagName.toLowerCase();)"svg"===e.tagName.toLowerCase()&&x(e,"introjs-showElement introjs-relativePosition"),e=e.parentNode;x(t.element,"introjs-showElement");var n=C(t.element,"position");"absolute"!==n&&"relative"!==n&&"fixed"!==n&&x(t.element,"introjs-relativePosition");for(var e=t.element.parentNode;null!=e&&e.tagName&&"body"!==e.tagName.toLowerCase();){var r=C(e,"z-index"),i=parseFloat(C(e,"opacity")),o=C(e,"transform")||C(e,"-webkit-transform")||C(e,"-moz-transform")||C(e,"-ms-transform")||C(e,"-o-transform");(/[0-9]+/.test(r)||i<1||"none"!==o&&void 0!==o)&&(e.className+=" introjs-fixParent"),e=e.parentNode}}function x(t,e){if(t instanceof SVGElement){var n=t.getAttribute("class")||"";t.setAttribute("class",n+" "+e)}else t.className+=" "+e}function k(t,e){if(t instanceof SVGElement){var n=t.getAttribute("class")||"";t.setAttribute("class",n.replace(e,"").replace(/^\s+|\s+$/g,""))}else t.className=t.className.replace(e,"").replace(/^\s+|\s+$/g,"")}function C(t,e){var n="";return t.currentStyle?n=t.currentStyle[e]:document.defaultView&&document.defaultView.getComputedStyle&&(n=document.defaultView.getComputedStyle(t,null).getPropertyValue(e)),n&&n.toLowerCase?n.toLowerCase():n}function E(t){var e=t.parentNode;return!(!e||"HTML"===e.nodeName)&&("fixed"==C(t,"position")||E(e))}function $(){if(void 0!=window.innerWidth)return{width:window.innerWidth,height:window.innerHeight};var t=document.documentElement;return{width:t.clientWidth,height:t.clientHeight}}function S(t){var e=t.getBoundingClientRect();return e.top>=0&&e.left>=0&&e.bottom+80<=window.innerHeight&&e.right<=window.innerWidth}function A(t){var e=document.createElement("div"),n="",r=this;if(e.className="introjs-overlay",t.tagName&&"body"!==t.tagName.toLowerCase()){var i=z(t);i&&(n+="width: "+i.width+"px; height:"+i.height+"px; top:"+i.top+"px;left: "+i.left+"px;",e.setAttribute("style",n))}else n+="top: 0;bottom: 0; left: 0;right: 0;position: fixed;",e.setAttribute("style",n);return t.appendChild(e),e.onclick=function(){1==r._options.exitOnOverlayClick&&l.call(r,t)},setTimeout(function(){n+="opacity: "+r._options.overlayOpacity.toString()+";",e.setAttribute("style",n)},10),!0}function T(){var t=this._targetElement.querySelector(".introjs-hintReference");if(t){var e=t.getAttribute("data-step");return t.parentNode.removeChild(t),e}}function D(t){if(this._introItems=[],this._options.hints)for(var e=0,n=this._options.hints.length;e<n;e++){var i=r(this._options.hints[e]);"string"==typeof i.element&&(i.element=document.querySelector(i.element)),i.hintPosition=i.hintPosition||this._options.hintPosition,i.hintAnimation=i.hintAnimation||this._options.hintAnimation,null!=i.element&&this._introItems.push(i)}else{var o=t.querySelectorAll("*[data-hint]");if(o.length<1)return!1;for(var e=0,n=o.length;e<n;e++){var a=o[e],s=a.getAttribute("data-hintAnimation");s=s?"true"==s:this._options.hintAnimation,this._introItems.push({element:a,hint:a.getAttribute("data-hint"),hintPosition:a.getAttribute("data-hintPosition")||this._options.hintPosition,hintAnimation:s,tooltipClass:a.getAttribute("data-tooltipClass"),position:a.getAttribute("data-position")||this._options.tooltipPosition})}}R.call(this),document.addEventListener?(document.addEventListener("click",T.bind(this),!1),window.addEventListener("resize",F.bind(this),!0)):document.attachEvent&&(document.attachEvent("onclick",T.bind(this)),document.attachEvent("onresize",F.bind(this)))}function F(){for(var t=0,e=this._introItems.length;t<e;t++){var n=this._introItems[t];"undefined"!=typeof n.targetElement&&I.call(this,n.hintPosition,n.element,n.targetElement)}}function N(t){T.call(this);var e=this._targetElement.querySelector('.introjs-hint[data-step="'+t+'"]');e&&(e.className+=" introjs-hidehint"),"undefined"!=typeof this._hintCloseCallback&&this._hintCloseCallback.call(this,t)}function M(){var t=this._targetElement.querySelectorAll(".introjs-hint");if(t&&t.length>0)for(var e=0;e<t.length;e++)N.call(this,t[e].getAttribute("data-step"))}function O(){var t=this._targetElement.querySelectorAll(".introjs-hint");if(t&&t.length>0)for(var e=0;e<t.length;e++)j.call(this,t[e].getAttribute("data-step"));else D.call(this,this._targetElement)}function j(t){var e=this._targetElement.querySelector('.introjs-hint[data-step="'+t+'"]');e&&(e.className=e.className.replace(/introjs\-hidehint/g,""))}function P(){var t=this._targetElement.querySelectorAll(".introjs-hint");if(t&&t.length>0)for(var e=0;e<t.length;e++)L.call(this,t[e].getAttribute("data-step"))}function L(t){var e=this._targetElement.querySelector('.introjs-hint[data-step="'+t+'"]');e&&e.parentNode.removeChild(e)}function R(){var t=this,e=document.querySelector(".introjs-hints");if(null!=e)n=e;else{var n=document.createElement("div");n.className="introjs-hints"}for(var r=0,i=this._introItems.length;r<i;r++){var o=this._introItems[r];if(!document.querySelector('.introjs-hint[data-step="'+r+'"]')){var a=document.createElement("a");v(a),function(e,n,r){e.onclick=function(e){var n=e?e:window.event;n.stopPropagation&&n.stopPropagation(),null!=n.cancelBubble&&(n.cancelBubble=!0),q.call(t,r)}}(a,o,r),a.className="introjs-hint",o.hintAnimation||(a.className+=" introjs-hint-no-anim"),E(o.element)&&(a.className+=" introjs-fixedhint");var s=document.createElement("div");s.className="introjs-hint-dot";var u=document.createElement("div");u.className="introjs-hint-pulse",a.appendChild(s),a.appendChild(u),a.setAttribute("data-step",r),o.targetElement=o.element,o.element=a,I.call(this,o.hintPosition,a,o.targetElement),n.appendChild(a)}}document.body.appendChild(n),"undefined"!=typeof this._hintsAddedCallback&&this._hintsAddedCallback.call(this)}function I(t,e,n){var r=z.call(this,n),i=20,o=20;switch(t){default:case"top-left":e.style.left=r.left+"px",e.style.top=r.top+"px";break;case"top-right":e.style.left=r.left+r.width-i+"px",e.style.top=r.top+"px";break;case"bottom-left":e.style.left=r.left+"px",e.style.top=r.top+r.height-o+"px";break;case"bottom-right":e.style.left=r.left+r.width-i+"px",e.style.top=r.top+r.height-o+"px";break;case"middle-left":e.style.left=r.left+"px",e.style.top=r.top+(r.height-o)/2+"px";break;case"middle-right":e.style.left=r.left+r.width-i+"px",e.style.top=r.top+(r.height-o)/2+"px";break;case"middle-middle":e.style.left=r.left+(r.width-i)/2+"px",e.style.top=r.top+(r.height-o)/2+"px";break;case"bottom-middle":e.style.left=r.left+(r.width-i)/2+"px",e.style.top=r.top+r.height-o+"px";break;case"top-middle":e.style.left=r.left+(r.width-i)/2+"px",e.style.top=r.top+"px"}}function q(t){var e=document.querySelector('.introjs-hint[data-step="'+t+'"]'),n=this._introItems[t];"undefined"!=typeof this._hintClickCallback&&this._hintClickCallback.call(this,e,n,t);var r=T.call(this);if(parseInt(r,10)!=t){var i=document.createElement("div"),o=document.createElement("div"),a=document.createElement("div"),s=document.createElement("div");i.className="introjs-tooltip",i.onclick=function(t){t.stopPropagation?t.stopPropagation():t.cancelBubble=!0},o.className="introjs-tooltiptext";var u=document.createElement("p");u.innerHTML=n.hint;var l=document.createElement("a");l.className="introjs-button",l.innerHTML=this._options.hintButtonLabel,l.onclick=N.bind(this,t),o.appendChild(u),o.appendChild(l),a.className="introjs-arrow",i.appendChild(a),i.appendChild(o),this._currentStep=e.getAttribute("data-step"),s.className="introjs-tooltipReferenceLayer introjs-hintReference",s.setAttribute("data-step",e.getAttribute("data-step")),m.call(this,s),s.appendChild(i),document.body.appendChild(s),c.call(this,e,i,a,null,!0)}}function z(t){var e={},n=document.body,r=document.documentElement,i=window.pageYOffset||r.scrollTop||n.scrollTop,o=window.pageXOffset||r.scrollLeft||n.scrollLeft;if(t instanceof SVGElement){var a=t.getBoundingClientRect();e.top=a.top+i,e.width=a.width,e.height=a.height,e.left=a.left+o}else{e.width=t.offsetWidth,e.height=t.offsetHeight;for(var s=0,u=0;t&&!isNaN(t.offsetLeft)&&!isNaN(t.offsetTop);)s+=t.offsetLeft,u+=t.offsetTop,t=t.offsetParent;e.top=u,e.left=s}return e}function H(){var t=parseInt(this._currentStep+1,10);return t/this._introItems.length*100}function B(t,e){var n={};for(var r in t)n[r]=t[r];for(var r in e)n[r]=e[r];return n}var U="2.7.0",V=function(t){if("object"==typeof t)return new e(t);if("string"==typeof t){var n=document.querySelector(t);if(n)return new e(n);throw new Error("There is no element with given selector.")}return new e(document.body)};return V.version=U,V.fn=e.prototype={clone:function(){return new e(this)},setOption:function(t,e){return this._options[t]=e,this},setOptions:function(t){return this._options=B(this._options,t),this},start:function(){return n.call(this,this._targetElement),this},goToStep:function(t){return i.call(this,t),this},addStep:function(t){return this._options.steps||(this._options.steps=[]),this._options.steps.push(t),this},addSteps:function(t){if(t.length){for(var e=0;e<t.length;e++)this.addStep(t[e]);return this}},goToStepNumber:function(t){return o.call(this,t),this},nextStep:function(){return a.call(this),this},previousStep:function(){return s.call(this),this},exit:function(t){return l.call(this,this._targetElement,t),this},refresh:function(){return u.call(this),this},onbeforechange:function(t){if("function"!=typeof t)throw new Error("Provided callback for onbeforechange was not a function");return this._introBeforeChangeCallback=t,this},onchange:function(t){if("function"!=typeof t)throw new Error("Provided callback for onchange was not a function.");return this._introChangeCallback=t,this},onafterchange:function(t){if("function"!=typeof t)throw new Error("Provided callback for onafterchange was not a function");return this._introAfterChangeCallback=t,this},oncomplete:function(t){if("function"!=typeof t)throw new Error("Provided callback for oncomplete was not a function.");return this._introCompleteCallback=t,this},onhintsadded:function(t){if("function"!=typeof t)throw new Error("Provided callback for onhintsadded was not a function.");return this._hintsAddedCallback=t,this},onhintclick:function(t){if("function"!=typeof t)throw new Error("Provided callback for onhintclick was not a function.");return this._hintClickCallback=t,this},onhintclose:function(t){if("function"!=typeof t)throw new Error("Provided callback for onhintclose was not a function.");return this._hintCloseCallback=t,this},onexit:function(t){if("function"!=typeof t)throw new Error("Provided callback for onexit was not a function.");return this._introExitCallback=t,this},onbeforeexit:function(t){if("function"!=typeof t)throw new Error("Provided callback for onbeforeexit was not a function.");return this._introBeforeExitCallback=t,this},addHints:function(){return D.call(this,this._targetElement),this},hideHint:function(t){return N.call(this,t),this},hideHints:function(){return M.call(this),this},showHint:function(t){return j.call(this,t),this},showHints:function(){return O.call(this),this},removeHints:function(){return P.call(this),this},removeHint:function(t){return L.call(this,t),this},showHintDialog:function(t){return q.call(this,t),this}},t.introJs=V,V}),function(t){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var e;e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,e.dragula=t()}}(function(){return function t(e,n,r){function i(a,s){if(!n[a]){if(!e[a]){var u="function"==typeof require&&require;if(!s&&u)return u(a,!0);if(o)return o(a,!0);var l=new Error("Cannot find module '"+a+"'");throw l.code="MODULE_NOT_FOUND",l}var c=n[a]={exports:{}};e[a][0].call(c.exports,function(t){var n=e[a][1][t];return i(n?n:t)},c,c.exports,t,e,n,r)}return n[a].exports}for(var o="function"==typeof require&&require,a=0;a<r.length;a++)i(r[a]);return i}({1:[function(t,e,n){"use strict";function r(t){var e=a[t];return e?e.lastIndex=0:a[t]=e=new RegExp(s+t+u,"g"),e}function i(t,e){var n=t.className;n.length?r(e).test(n)||(t.className+=" "+e):t.className=e}function o(t,e){t.className=t.className.replace(r(e)," ").trim()}var a={},s="(?:^|\\s)",u="(?:\\s|$)";e.exports={add:i,rm:o}},{}],2:[function(t,e,n){(function(n){"use strict";function r(t,e){function n(t){return ct.containers.indexOf(t)!==-1||lt.isContainer(t)}function r(t){var e=t?"remove":"add";i(k,e,"mousedown",E),i(k,e,"mouseup",O)}function s(t){var e=t?"remove":"add";i(k,e,"mousemove",$)}function m(t){var e=t?"remove":"add";_[e](k,"selectstart",C),_[e](k,"click",C)}function v(){r(!0),O({})}function C(t){st&&t.preventDefault()}function E(t){et=t.clientX,nt=t.clientY;var e=1!==o(t)||t.metaKey||t.ctrlKey;if(!e){var n=t.target,r=S(n);r&&(st=r,s(),"mousedown"===t.type&&(p(n)?n.focus():t.preventDefault()))}}function $(t){if(st){if(0===o(t))return void O({});if(void 0===t.clientX||t.clientX!==et||void 0===t.clientY||t.clientY!==nt){if(lt.ignoreInputTextSelection){var e=y("clientX",t),n=y("clientY",t),r=x.elementFromPoint(e,n);if(p(r))return}var i=st;s(!0),m(),N(),D(i);var u=a(J);Q=y("pageX",t)-u.left,tt=y("pageY",t)-u.top,w.add(ot||J,"gu-transit"),U(),z(t)}}}function S(t){if(!(ct.dragging&&Z||n(t))){for(var e=t;d(t)&&n(d(t))===!1;){if(lt.invalid(t,e))return;if(t=d(t),!t)return}var r=d(t);if(r&&!lt.invalid(t,e)){var i=lt.moves(t,r,e,g(t));if(i)return{item:t,source:r}}}}function A(t){return!!S(t)}function T(t){var e=S(t);e&&D(e)}function D(t){G(t.item,t.source)&&(ot=t.item.cloneNode(!0),ct.emit("cloned",ot,t.item,"copy")),X=t.source,J=t.item,rt=it=g(t.item),ct.dragging=!0,ct.emit("drag",J,X)}function F(){return!1}function N(){if(ct.dragging){var t=ot||J;j(t,d(t))}}function M(){st=!1,s(!0),m(!0)}function O(t){if(M(),ct.dragging){var e=ot||J,n=y("clientX",t),r=y("clientY",t),i=u(Z,n,r),o=q(i,n,r);o&&(ot&<.copySortSource||!ot||o!==X)?j(e,o):lt.removeOnSpill?P():L()}}function j(t,e){var n=d(t);ot&<.copySortSource&&e===X&&n.removeChild(J),I(e)?ct.emit("cancel",t,X,X):ct.emit("drop",t,e,X,it),R()}function P(){if(ct.dragging){var t=ot||J,e=d(t);e&&e.removeChild(t),ct.emit(ot?"cancel":"remove",t,e,X),R()}}function L(t){if(ct.dragging){var e=arguments.length>0?t:lt.revertOnSpill,n=ot||J,r=d(n),i=I(r);i===!1&&e&&(ot?r&&r.removeChild(ot):X.insertBefore(n,rt)),i||e?ct.emit("cancel",n,X,X):ct.emit("drop",n,r,X,it),R()}}function R(){var t=ot||J;M(),V(),t&&w.rm(t,"gu-transit"),at&&clearTimeout(at),ct.dragging=!1,ut&&ct.emit("out",t,ut,X),ct.emit("dragend",t),X=J=ot=rt=it=at=ut=null}function I(t,e){var n;return n=void 0!==e?e:Z?it:g(ot||J),t===X&&n===rt}function q(t,e,r){function i(){var i=n(o);if(i===!1)return!1;var a=W(o,t),s=Y(o,a,e,r),u=I(o,s);return!!u||lt.accepts(J,o,X,s)}for(var o=t;o&&!i();)o=d(o);return o}function z(t){function e(t){ct.emit(t,l,ut,X)}function n(){h&&e("over")}function r(){ut&&e("out")}if(Z){t.preventDefault();var i=y("clientX",t),o=y("clientY",t),a=i-Q,s=o-tt;Z.style.left=a+"px",Z.style.top=s+"px";var l=ot||J,c=u(Z,i,o),f=q(c,i,o),h=null!==f&&f!==ut;(h||null===f)&&(r(),ut=f,n());var p=d(l);if(f===X&&ot&&!lt.copySortSource)return void(p&&p.removeChild(l));var m,v=W(f,c);if(null!==v)m=Y(f,v,i,o);else{if(lt.revertOnSpill!==!0||ot)return void(ot&&p&&p.removeChild(l));m=rt,f=X}(null===m&&h||m!==l&&m!==g(l))&&(it=m,f.insertBefore(l,m),ct.emit("shadow",l,f,X))}}function H(t){w.rm(t,"gu-hide")}function B(t){ct.dragging&&w.add(t,"gu-hide")}function U(){if(!Z){var t=J.getBoundingClientRect();Z=J.cloneNode(!0),Z.style.width=f(t)+"px",Z.style.height=h(t)+"px",w.rm(Z,"gu-transit"),w.add(Z,"gu-mirror"),lt.mirrorContainer.appendChild(Z),i(k,"add","mousemove",z),w.add(lt.mirrorContainer,"gu-unselectable"),ct.emit("cloned",Z,J,"mirror")}}function V(){Z&&(w.rm(lt.mirrorContainer,"gu-unselectable"),i(k,"remove","mousemove",z),d(Z).removeChild(Z),Z=null)}function W(t,e){for(var n=e;n!==t&&d(n)!==t;)n=d(n);return n===k?null:n}function Y(t,e,n,r){function i(){var e,i,o,a=t.children.length;for(e=0;e<a;e++){if(i=t.children[e],o=i.getBoundingClientRect(),s&&o.left+o.width/2>n)return i;if(!s&&o.top+o.height/2>r)return i}return null}function o(){var t=e.getBoundingClientRect();return a(s?n>t.left+f(t)/2:r>t.top+h(t)/2)}function a(t){return t?g(e):e}var s="horizontal"===lt.direction,u=e!==t?o():i();return u}function G(t,e){return"boolean"==typeof lt.copy?lt.copy:lt.copy(t,e)}var K=arguments.length;1===K&&Array.isArray(t)===!1&&(e=t,t=[]);var Z,X,J,Q,tt,et,nt,rt,it,ot,at,st,ut=null,lt=e||{};void 0===lt.moves&&(lt.moves=c),void 0===lt.accepts&&(lt.accepts=c),void 0===lt.invalid&&(lt.invalid=F),void 0===lt.containers&&(lt.containers=t||[]),void 0===lt.isContainer&&(lt.isContainer=l),void 0===lt.copy&&(lt.copy=!1),void 0===lt.copySortSource&&(lt.copySortSource=!1),void 0===lt.revertOnSpill&&(lt.revertOnSpill=!1),void 0===lt.removeOnSpill&&(lt.removeOnSpill=!1),void 0===lt.direction&&(lt.direction="vertical"),void 0===lt.ignoreInputTextSelection&&(lt.ignoreInputTextSelection=!0),void 0===lt.mirrorContainer&&(lt.mirrorContainer=x.body);var ct=b({containers:lt.containers,start:T,end:N,cancel:L,remove:P,destroy:v,canMove:A,dragging:!1});return lt.removeOnSpill===!0&&ct.on("over",H).on("out",B),r(),ct}function i(t,e,r,i){var o={mouseup:"touchend",
|
||
mousedown:"touchstart",mousemove:"touchmove"},a={mouseup:"pointerup",mousedown:"pointerdown",mousemove:"pointermove"},s={mouseup:"MSPointerUp",mousedown:"MSPointerDown",mousemove:"MSPointerMove"};n.navigator.pointerEnabled?_[e](t,a[r],i):n.navigator.msPointerEnabled?_[e](t,s[r],i):(_[e](t,o[r],i),_[e](t,r,i))}function o(t){if(void 0!==t.touches)return t.touches.length;if(void 0!==t.which&&0!==t.which)return t.which;if(void 0!==t.buttons)return t.buttons;var e=t.button;return void 0!==e?1&e?1:2&e?3:4&e?2:0:void 0}function a(t){var e=t.getBoundingClientRect();return{left:e.left+s("scrollLeft","pageXOffset"),top:e.top+s("scrollTop","pageYOffset")}}function s(t,e){return"undefined"!=typeof n[e]?n[e]:k.clientHeight?k[t]:x.body[t]}function u(t,e,n){var r,i=t||{},o=i.className;return i.className+=" gu-hide",r=x.elementFromPoint(e,n),i.className=o,r}function l(){return!1}function c(){return!0}function f(t){return t.width||t.right-t.left}function h(t){return t.height||t.bottom-t.top}function d(t){return t.parentNode===x?null:t.parentNode}function p(t){return"INPUT"===t.tagName||"TEXTAREA"===t.tagName||"SELECT"===t.tagName||m(t)}function m(t){return!!t&&("false"!==t.contentEditable&&("true"===t.contentEditable||m(d(t))))}function g(t){function e(){var e=t;do e=e.nextSibling;while(e&&1!==e.nodeType);return e}return t.nextElementSibling||e()}function v(t){return t.targetTouches&&t.targetTouches.length?t.targetTouches[0]:t.changedTouches&&t.changedTouches.length?t.changedTouches[0]:t}function y(t,e){var n=v(e),r={pageX:"clientX",pageY:"clientY"};return t in r&&!(t in n)&&r[t]in n&&(t=r[t]),n[t]}var b=t("contra/emitter"),_=t("crossvent"),w=t("./classes"),x=document,k=x.documentElement;e.exports=r}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./classes":1,"contra/emitter":5,crossvent:6}],3:[function(t,e,n){e.exports=function(t,e){return Array.prototype.slice.call(t,e)}},{}],4:[function(t,e,n){"use strict";var r=t("ticky");e.exports=function(t,e,n){t&&r(function(){t.apply(n||null,e||[])})}},{ticky:9}],5:[function(t,e,n){"use strict";var r=t("atoa"),i=t("./debounce");e.exports=function(t,e){var n=e||{},o={};return void 0===t&&(t={}),t.on=function(e,n){return o[e]?o[e].push(n):o[e]=[n],t},t.once=function(e,n){return n._once=!0,t.on(e,n),t},t.off=function(e,n){var r=arguments.length;if(1===r)delete o[e];else if(0===r)o={};else{var i=o[e];if(!i)return t;i.splice(i.indexOf(n),1)}return t},t.emit=function(){var e=r(arguments);return t.emitterSnapshot(e.shift()).apply(this,e)},t.emitterSnapshot=function(e){var a=(o[e]||[]).slice(0);return function(){var o=r(arguments),s=this||t;if("error"===e&&n["throws"]!==!1&&!a.length)throw 1===o.length?o[0]:o;return a.forEach(function(r){n.async?i(r,o,s):r.apply(s,o),r._once&&t.off(e,r)}),t}},t}},{"./debounce":4,atoa:3}],6:[function(t,e,n){(function(n){"use strict";function r(t,e,n,r){return t.addEventListener(e,n,r)}function i(t,e,n){return t.attachEvent("on"+e,l(t,e,n))}function o(t,e,n,r){return t.removeEventListener(e,n,r)}function a(t,e,n){var r=c(t,e,n);if(r)return t.detachEvent("on"+e,r)}function s(t,e,n){function r(){var t;return p.createEvent?(t=p.createEvent("Event"),t.initEvent(e,!0,!0)):p.createEventObject&&(t=p.createEventObject()),t}function i(){return new h(e,{detail:n})}var o=d.indexOf(e)===-1?i():r();t.dispatchEvent?t.dispatchEvent(o):t.fireEvent("on"+e,o)}function u(t,e,r){return function(e){var i=e||n.event;i.target=i.target||i.srcElement,i.preventDefault=i.preventDefault||function(){i.returnValue=!1},i.stopPropagation=i.stopPropagation||function(){i.cancelBubble=!0},i.which=i.which||i.keyCode,r.call(t,i)}}function l(t,e,n){var r=c(t,e,n)||u(t,e,n);return v.push({wrapper:r,element:t,type:e,fn:n}),r}function c(t,e,n){var r=f(t,e,n);if(r){var i=v[r].wrapper;return v.splice(r,1),i}}function f(t,e,n){var r,i;for(r=0;r<v.length;r++)if(i=v[r],i.element===t&&i.type===e&&i.fn===n)return r}var h=t("custom-event"),d=t("./eventmap"),p=n.document,m=r,g=o,v=[];n.addEventListener||(m=i,g=a),e.exports={add:m,remove:g,fabricate:s}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./eventmap":7,"custom-event":8}],7:[function(t,e,n){(function(t){"use strict";var n=[],r="",i=/^on/;for(r in t)i.test(r)&&n.push(r.slice(2));e.exports=n}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],8:[function(t,e,n){(function(t){function n(){try{var t=new r("cat",{detail:{foo:"bar"}});return"cat"===t.type&&"bar"===t.detail.foo}catch(e){}return!1}var r=t.CustomEvent;e.exports=n()?r:"function"==typeof document.createEvent?function(t,e){var n=document.createEvent("CustomEvent");return e?n.initCustomEvent(t,e.bubbles,e.cancelable,e.detail):n.initCustomEvent(t,!1,!1,void 0),n}:function(t,e){var n=document.createEventObject();return n.type=t,e?(n.bubbles=Boolean(e.bubbles),n.cancelable=Boolean(e.cancelable),n.detail=e.detail):(n.bubbles=!1,n.cancelable=!1,n.detail=void 0),n}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],9:[function(t,e,n){var r,i="function"==typeof setImmediate;r=i?function(t){setImmediate(t)}:function(t){setTimeout(t,0)},e.exports=r},{}]},{},[2])(2)}),function(){function t(t){var e=Array.isArray(t)?{label:t[0],value:t[1]}:"object"==typeof t&&"label"in t&&"value"in t?t:{label:t,value:t};this.label=e.label||e.value,this.value=e.value}function e(t,e,n){for(var r in e){var i=e[r],o=t.input.getAttribute("data-"+r.toLowerCase());"number"==typeof i?t[r]=parseInt(o):i===!1?t[r]=null!==o:i instanceof Function?t[r]=null:t[r]=o,t[r]||0===t[r]||(t[r]=r in n?n[r]:i)}}function n(t,e){return"string"==typeof t?(e||document).querySelector(t):t||null}function r(t,e){return a.call((e||document).querySelectorAll(t))}function i(){r("input.awesomplete").forEach(function(t){new o(t)})}var o=function(t,r){var i=this;this.isOpened=!1,this.input=n(t),this.input.setAttribute("autocomplete","off"),this.input.setAttribute("aria-autocomplete","list"),r=r||{},e(this,{minChars:2,maxItems:10,autoFirst:!1,data:o.DATA,filter:o.FILTER_CONTAINS,sort:r.sort!==!1&&o.SORT_BYLENGTH,item:o.ITEM,replace:o.REPLACE},r),this.index=-1,this.container=n.create("div",{className:"awesomplete",around:t}),this.ul=n.create("ul",{hidden:"hidden",inside:this.container}),this.status=n.create("span",{className:"visually-hidden",role:"status","aria-live":"assertive","aria-relevant":"additions",inside:this.container}),this._events={input:{input:this.evaluate.bind(this),blur:this.close.bind(this,{reason:"blur"}),keydown:function(t){var e=t.keyCode;i.opened&&(13===e&&i.selected?(t.preventDefault(),i.select()):27===e?i.close({reason:"esc"}):38!==e&&40!==e||(t.preventDefault(),i[38===e?"previous":"next"]()))}},form:{submit:this.close.bind(this,{reason:"submit"})},ul:{mousedown:function(t){var e=t.target;if(e!==this){for(;e&&!/li/i.test(e.nodeName);)e=e.parentNode;e&&0===t.button&&(t.preventDefault(),i.select(e,t.target))}}}},n.bind(this.input,this._events.input),n.bind(this.input.form,this._events.form),n.bind(this.ul,this._events.ul),this.input.hasAttribute("list")?(this.list="#"+this.input.getAttribute("list"),this.input.removeAttribute("list")):this.list=this.input.getAttribute("data-list")||r.list||[],o.all.push(this)};o.prototype={set list(t){if(Array.isArray(t))this._list=t;else if("string"==typeof t&&t.indexOf(",")>-1)this._list=t.split(/\s*,\s*/);else if(t=n(t),t&&t.children){var e=[];a.apply(t.children).forEach(function(t){if(!t.disabled){var n=t.textContent.trim(),r=t.value||n,i=t.label||n;""!==r&&e.push({label:i,value:r})}}),this._list=e}document.activeElement===this.input&&this.evaluate()},get selected(){return this.index>-1},get opened(){return this.isOpened},close:function(t){this.opened&&(this.ul.setAttribute("hidden",""),this.isOpened=!1,this.index=-1,n.fire(this.input,"awesomplete-close",t||{}))},open:function(){this.ul.removeAttribute("hidden"),this.isOpened=!0,this.autoFirst&&this.index===-1&&this["goto"](0),n.fire(this.input,"awesomplete-open")},destroy:function(){n.unbind(this.input,this._events.input),n.unbind(this.input.form,this._events.form);var t=this.container.parentNode;t.insertBefore(this.input,this.container),t.removeChild(this.container),this.input.removeAttribute("autocomplete"),this.input.removeAttribute("aria-autocomplete");var e=o.all.indexOf(this);e!==-1&&o.all.splice(e,1)},next:function(){var t=this.ul.children.length;this["goto"](this.index<t-1?this.index+1:t?0:-1)},previous:function(){var t=this.ul.children.length,e=this.index-1;this["goto"](this.selected&&e!==-1?e:t-1)},"goto":function(t){var e=this.ul.children;this.selected&&e[this.index].setAttribute("aria-selected","false"),this.index=t,t>-1&&e.length>0&&(e[t].setAttribute("aria-selected","true"),this.status.textContent=e[t].textContent,this.ul.scrollTop=e[t].offsetTop-this.ul.clientHeight+e[t].clientHeight,n.fire(this.input,"awesomplete-highlight",{text:this.suggestions[this.index]}))},select:function(t,e){if(t?this.index=n.siblingIndex(t):t=this.ul.children[this.index],t){var r=this.suggestions[this.index],i=n.fire(this.input,"awesomplete-select",{text:r,origin:e||t});i&&(this.replace(r),this.close({reason:"select"}),n.fire(this.input,"awesomplete-selectcomplete",{text:r}))}},evaluate:function(){var e=this,n=this.input.value;n.length>=this.minChars&&this._list.length>0?(this.index=-1,this.ul.innerHTML="",this.suggestions=this._list.map(function(r){return new t(e.data(r,n))}).filter(function(t){return e.filter(t,n)}),this.sort!==!1&&(this.suggestions=this.suggestions.sort(this.sort)),this.suggestions=this.suggestions.slice(0,this.maxItems),this.suggestions.forEach(function(t){e.ul.appendChild(e.item(t,n))}),0===this.ul.children.length?this.close({reason:"nomatches"}):this.open()):this.close({reason:"nomatches"})}},o.all=[],o.FILTER_CONTAINS=function(t,e){return RegExp(n.regExpEscape(e.trim()),"i").test(t)},o.FILTER_STARTSWITH=function(t,e){return RegExp("^"+n.regExpEscape(e.trim()),"i").test(t)},o.SORT_BYLENGTH=function(t,e){return t.length!==e.length?t.length-e.length:t<e?-1:1},o.ITEM=function(t,e){var r=""===e.trim()?t:t.replace(RegExp(n.regExpEscape(e.trim()),"gi"),"<mark>$&</mark>");return n.create("li",{innerHTML:r,"aria-selected":"false"})},o.REPLACE=function(t){this.input.value=t.value},o.DATA=function(t){return t},Object.defineProperty(t.prototype=Object.create(String.prototype),"length",{get:function(){return this.label.length}}),t.prototype.toString=t.prototype.valueOf=function(){return""+this.label};var a=Array.prototype.slice;return n.create=function(t,e){var r=document.createElement(t);for(var i in e){var o=e[i];if("inside"===i)n(o).appendChild(r);else if("around"===i){var a=n(o);a.parentNode.insertBefore(r,a),r.appendChild(a)}else i in r?r[i]=o:r.setAttribute(i,o)}return r},n.bind=function(t,e){if(t)for(var n in e){var r=e[n];n.split(/\s+/).forEach(function(e){t.addEventListener(e,r)})}},n.unbind=function(t,e){if(t)for(var n in e){var r=e[n];n.split(/\s+/).forEach(function(e){t.removeEventListener(e,r)})}},n.fire=function(t,e,n){var r=document.createEvent("HTMLEvents");r.initEvent(e,!0,!0);for(var i in n)r[i]=n[i];return t.dispatchEvent(r)},n.regExpEscape=function(t){return t.replace(/[-\\^$*+?.()|[\]{}]/g,"\\$&")},n.siblingIndex=function(t){for(var e=0;t=t.previousElementSibling;e++);return e},"undefined"!=typeof Document&&("loading"!==document.readyState?i():document.addEventListener("DOMContentLoaded",i)),o.$=n,o.$$=r,"undefined"!=typeof self&&(self.Awesomplete=o),"object"==typeof module&&module.exports&&(module.exports=o),o}(),"classList"in document.createElement("_")||!function(t){"use strict";if("Element"in t){var e="classList",n="prototype",r=t.Element[n],i=Object,o=String[n].trim||function(){return this.replace(/^\s+|\s+$/g,"")},a=Array[n].indexOf||function(t){for(var e=0,n=this.length;e<n;e++)if(e in this&&this[e]===t)return e;return-1},s=function(t,e){this.name=t,this.code=DOMException[t],this.message=e},u=function(t,e){if(""===e)throw new s("SYNTAX_ERR","An invalid or illegal string was specified");if(/\s/.test(e))throw new s("INVALID_CHARACTER_ERR","String contains an invalid character");return a.call(t,e)},l=function(t){for(var e=o.call(t.getAttribute("class")||""),n=e?e.split(/\s+/):[],r=0,i=n.length;r<i;r++)this.push(n[r]);this._updateClassName=function(){t.setAttribute("class",this.toString())}},c=l[n]=[],f=function(){return new l(this)};if(s[n]=Error[n],c.item=function(t){return this[t]||null},c.contains=function(t){return t+="",u(this,t)!==-1},c.add=function(){var t,e=arguments,n=0,r=e.length,i=!1;do t=e[n]+"",u(this,t)===-1&&(this.push(t),i=!0);while(++n<r);i&&this._updateClassName()},c.remove=function(){var t,e,n=arguments,r=0,i=n.length,o=!1;do for(t=n[r]+"",e=u(this,t);e!==-1;)this.splice(e,1),o=!0,e=u(this,t);while(++r<i);o&&this._updateClassName()},c.toggle=function(t,e){t+="";var n=this.contains(t),r=n?e!==!0&&"remove":e!==!1&&"add";return r&&this[r](t),e===!0||e===!1?e:!n},c.toString=function(){return this.join(" ")},i.defineProperty){var h={get:f,enumerable:!0,configurable:!0};try{i.defineProperty(r,e,h)}catch(d){d.number===-2146823252&&(h.enumerable=!1,i.defineProperty(r,e,h))}}else i[n].__defineGetter__&&r.__defineGetter__(e,f)}}(self),function(t){"use strict";if(t.URL=t.URL||t.webkitURL,t.Blob&&t.URL)try{return void new Blob}catch(e){}var n=t.BlobBuilder||t.WebKitBlobBuilder||t.MozBlobBuilder||function(t){var e=function(t){return Object.prototype.toString.call(t).match(/^\[object\s(.*)\]$/)[1]},n=function(){this.data=[]},r=function(t,e,n){this.data=t,this.size=t.length,this.type=e,this.encoding=n},i=n.prototype,o=r.prototype,a=t.FileReaderSync,s=function(t){this.code=this[this.name=t]},u="NOT_FOUND_ERR SECURITY_ERR ABORT_ERR NOT_READABLE_ERR ENCODING_ERR NO_MODIFICATION_ALLOWED_ERR INVALID_STATE_ERR SYNTAX_ERR".split(" "),l=u.length,c=t.URL||t.webkitURL||t,f=c.createObjectURL,h=c.revokeObjectURL,d=c,p=t.btoa,m=t.atob,g=t.ArrayBuffer,v=t.Uint8Array,y=/^[\w-]+:\/*\[?[\w\.:-]+\]?(?::[0-9]+)?/;for(r.fake=o.fake=!0;l--;)s.prototype[u[l]]=l+1;return c.createObjectURL||(d=t.URL=function(t){var e,n=document.createElementNS("http://www.w3.org/1999/xhtml","a");return n.href=t,"origin"in n||("data:"===n.protocol.toLowerCase()?n.origin=null:(e=t.match(y),n.origin=e&&e[1])),n}),d.createObjectURL=function(t){var e,n=t.type;return null===n&&(n="application/octet-stream"),t instanceof r?(e="data:"+n,"base64"===t.encoding?e+";base64,"+t.data:"URI"===t.encoding?e+","+decodeURIComponent(t.data):p?e+";base64,"+p(t.data):e+","+encodeURIComponent(t.data)):f?f.call(c,t):void 0},d.revokeObjectURL=function(t){"data:"!==t.substring(0,5)&&h&&h.call(c,t)},i.append=function(t){var n=this.data;if(v&&(t instanceof g||t instanceof v)){for(var i="",o=new v(t),u=0,l=o.length;u<l;u++)i+=String.fromCharCode(o[u]);n.push(i)}else if("Blob"===e(t)||"File"===e(t)){if(!a)throw new s("NOT_READABLE_ERR");var c=new a;n.push(c.readAsBinaryString(t))}else t instanceof r?"base64"===t.encoding&&m?n.push(m(t.data)):"URI"===t.encoding?n.push(decodeURIComponent(t.data)):"raw"===t.encoding&&n.push(t.data):("string"!=typeof t&&(t+=""),n.push(unescape(encodeURIComponent(t))))},i.getBlob=function(t){return arguments.length||(t=null),new r(this.data.join(""),t,"raw")},i.toString=function(){return"[object BlobBuilder]"},o.slice=function(t,e,n){var i=arguments.length;return i<3&&(n=null),new r(this.data.slice(t,i>1?e:this.data.length),n,this.encoding)},o.toString=function(){return"[object Blob]"},o.close=function(){this.size=0,delete this.data},n}(t);t.Blob=function(t,e){var r=e?e.type||"":"",i=new n;if(t)for(var o=0,a=t.length;o<a;o++)Uint8Array&&t[o]instanceof Uint8Array?i.append(t[o].buffer):i.append(t[o]);var s=i.getBlob(r);return!s.slice&&s.webkitSlice&&(s.slice=s.webkitSlice),s};var r=Object.getPrototypeOf||function(t){return t.__proto__};t.Blob.prototype=r(new t.Blob)}("undefined"!=typeof self&&self||"undefined"!=typeof window&&window||this.content||this),function(t,e){"use strict";var n="object"==typeof module&&"undefined"!=typeof process&&process&&process.versions&&process.versions.electron;n||"object"!=typeof module?"function"==typeof define&&define.amd?define(function(){return e}):t.MediumEditor=e:module.exports=e}(this,function(){"use strict";function t(t,e){return this.init(t,e)}return t.extensions={},function(e){function n(t,e){var n,r=Array.prototype.slice.call(arguments,2);e=e||{};for(var i=0;i<r.length;i++){var o=r[i];if(o)for(n in o)o.hasOwnProperty(n)&&"undefined"!=typeof o[n]&&(t||e.hasOwnProperty(n)===!1)&&(e[n]=o[n])}return e}var r=!1;try{var i=document.createElement("div"),o=document.createTextNode(" ");i.appendChild(o),r=i.contains(o)}catch(a){}var s={isIE:"Microsoft Internet Explorer"===navigator.appName||"Netscape"===navigator.appName&&null!==new RegExp("Trident/.*rv:([0-9]{1,}[.0-9]{0,})").exec(navigator.userAgent),isEdge:null!==/Edge\/\d+/.exec(navigator.userAgent),isFF:navigator.userAgent.toLowerCase().indexOf("firefox")>-1,isMac:e.navigator.platform.toUpperCase().indexOf("MAC")>=0,keyCode:{BACKSPACE:8,TAB:9,ENTER:13,ESCAPE:27,SPACE:32,DELETE:46,K:75,M:77,V:86},isMetaCtrlKey:function(t){return!!(s.isMac&&t.metaKey||!s.isMac&&t.ctrlKey)},isKey:function(t,e){var n=s.getKeyCode(t);return!1===Array.isArray(e)?n===e:-1!==e.indexOf(n)},getKeyCode:function(t){var e=t.which;return null===e&&(e=null!==t.charCode?t.charCode:t.keyCode),e},blockContainerElementNames:["p","h1","h2","h3","h4","h5","h6","blockquote","pre","ul","li","ol","address","article","aside","audio","canvas","dd","dl","dt","fieldset","figcaption","figure","footer","form","header","hgroup","main","nav","noscript","output","section","video","table","thead","tbody","tfoot","tr","th","td"],emptyElementNames:["br","col","colgroup","hr","img","input","source","wbr"],extend:function(){var t=[!0].concat(Array.prototype.slice.call(arguments));return n.apply(this,t)},defaults:function(){var t=[!1].concat(Array.prototype.slice.call(arguments));return n.apply(this,t)},createLink:function(t,e,n,r){var i=t.createElement("a");return s.moveTextRangeIntoElement(e[0],e[e.length-1],i),i.setAttribute("href",n),r&&("_blank"===r&&i.setAttribute("rel","noopener noreferrer"),i.setAttribute("target",r)),i},findOrCreateMatchingTextNodes:function(t,e,n){for(var r=t.createTreeWalker(e,NodeFilter.SHOW_ALL,null,!1),i=[],o=0,a=!1,u=null,l=null;null!==(u=r.nextNode());)if(!(u.nodeType>3))if(3===u.nodeType){if(!a&&n.start<o+u.nodeValue.length&&(a=!0,l=s.splitStartNodeIfNeeded(u,n.start,o)),a&&s.splitEndNodeIfNeeded(u,l,n.end,o),a&&o===n.end)break;if(a&&o>n.end+1)throw new Error("PerformLinking overshot the target!");a&&i.push(l||u),o+=u.nodeValue.length,null!==l&&(o+=l.nodeValue.length,r.nextNode()),l=null}else"img"===u.tagName.toLowerCase()&&(!a&&n.start<=o&&(a=!0),a&&i.push(u));return i},splitStartNodeIfNeeded:function(t,e,n){return e!==n?t.splitText(e-n):null},splitEndNodeIfNeeded:function(t,e,n,r){var i,o;i=r+t.nodeValue.length+(e?e.nodeValue.length:0)-1,o=n-r-(e?t.nodeValue.length:0),i>=n&&r!==i&&0!==o&&(e||t).splitText(o)},splitByBlockElements:function(e){if(3!==e.nodeType&&1!==e.nodeType)return[];var n=[],r=t.util.blockContainerElementNames.join(",");if(3===e.nodeType||0===e.querySelectorAll(r).length)return[e];for(var i=0;i<e.childNodes.length;i++){var o=e.childNodes[i];if(3===o.nodeType)n.push(o);else if(1===o.nodeType){var a=o.querySelectorAll(r);0===a.length?n.push(o):n=n.concat(t.util.splitByBlockElements(o))}}return n},findAdjacentTextNodeWithContent:function(t,e,n){var r,i=!1,o=n.createNodeIterator(t,NodeFilter.SHOW_TEXT,null,!1);for(r=o.nextNode();r;){if(r===e)i=!0;else if(i&&3===r.nodeType&&r.nodeValue&&r.nodeValue.trim().length>0)break;r=o.nextNode()}return r},findPreviousSibling:function(t){if(!t||s.isMediumEditorElement(t))return!1;for(var e=t.previousSibling;!e&&!s.isMediumEditorElement(t.parentNode);)t=t.parentNode,e=t.previousSibling;return e},isDescendant:function(t,e,n){if(!t||!e)return!1;if(t===e)return!!n;if(1!==t.nodeType)return!1;if(r||3!==e.nodeType)return t.contains(e);for(var i=e.parentNode;null!==i;){if(i===t)return!0;i=i.parentNode}return!1},isElement:function(t){return!(!t||1!==t.nodeType)},throttle:function(t,e){var n,r,i,o=50,a=null,s=0,u=function(){s=Date.now(),a=null,i=t.apply(n,r),a||(n=r=null)};return e||0===e||(e=o),function(){var o=Date.now(),l=e-(o-s);return n=this,r=arguments,l<=0||l>e?(a&&(clearTimeout(a),a=null),s=o,i=t.apply(n,r),a||(n=r=null)):a||(a=setTimeout(u,l)),i}},traverseUp:function(t,e){if(!t)return!1;do{if(1===t.nodeType){if(e(t))return t;if(s.isMediumEditorElement(t))return!1}t=t.parentNode}while(t);return!1},htmlEntities:function(t){return String(t).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""")},insertHTMLCommand:function(e,n){var r,i,o,a,u,l,c,f=!1,h=["insertHTML",!1,n];if(!t.util.isEdge&&e.queryCommandSupported("insertHTML"))try{return e.execCommand.apply(e,h)}catch(d){}if(r=e.getSelection(),r.rangeCount){if(i=r.getRangeAt(0),c=i.commonAncestorContainer,s.isMediumEditorElement(c)&&!c.firstChild)i.selectNode(c.appendChild(e.createTextNode("")));else if(3===c.nodeType&&0===i.startOffset&&i.endOffset===c.nodeValue.length||3!==c.nodeType&&c.innerHTML===i.toString()){for(;!s.isMediumEditorElement(c)&&c.parentNode&&1===c.parentNode.childNodes.length&&!s.isMediumEditorElement(c.parentNode);)c=c.parentNode;i.selectNode(c)}for(i.deleteContents(),o=e.createElement("div"),o.innerHTML=n,a=e.createDocumentFragment();o.firstChild;)u=o.firstChild,l=a.appendChild(u);i.insertNode(a),l&&(i=i.cloneRange(),i.setStartAfter(l),i.collapse(!0),t.selection.selectRange(e,i)),f=!0}return e.execCommand.callListeners&&e.execCommand.callListeners(h,f),f},execFormatBlock:function(e,n){var r,i=s.getTopBlockContainer(t.selection.getSelectionStart(e));if("blockquote"===n){if(i&&(r=Array.prototype.slice.call(i.childNodes),r.some(function(t){return s.isBlockContainer(t)})))return e.execCommand("outdent",!1,null);if(s.isIE)return e.execCommand("indent",!1,n)}if(i&&n===i.nodeName.toLowerCase()&&(n="p"),s.isIE&&(n="<"+n+">"),i&&"blockquote"===i.nodeName.toLowerCase()){if(s.isIE&&"<p>"===n)return e.execCommand("outdent",!1,n);if((s.isFF||s.isEdge)&&"p"===n)return r=Array.prototype.slice.call(i.childNodes),r.some(function(t){return!s.isBlockContainer(t)})&&e.execCommand("formatBlock",!1,n),e.execCommand("outdent",!1,n)}return e.execCommand("formatBlock",!1,n)},setTargetBlank:function(t,e){var n,r=e||!1;if("a"===t.nodeName.toLowerCase())t.target="_blank",t.rel="noopener noreferrer";else for(t=t.getElementsByTagName("a"),n=0;n<t.length;n+=1)!1!==r&&r!==t[n].attributes.href.value||(t[n].target="_blank",t[n].rel="noopener noreferrer")},removeTargetBlank:function(t,e){var n;if("a"===t.nodeName.toLowerCase())t.removeAttribute("target"),t.removeAttribute("rel");else for(t=t.getElementsByTagName("a"),n=0;n<t.length;n+=1)e===t[n].attributes.href.value&&(t[n].removeAttribute("target"),t[n].removeAttribute("rel"))},addClassToAnchors:function(t,e){var n,r,i=e.split(" ");if("a"===t.nodeName.toLowerCase())for(r=0;r<i.length;r+=1)t.classList.add(i[r]);else{var o=t.getElementsByTagName("a");if(0===o.length){var a=s.getClosestTag(t,"a");t=a?[a]:[]}else t=o;for(n=0;n<t.length;n+=1)for(r=0;r<i.length;r+=1)t[n].classList.add(i[r])}},isListItem:function(t){if(!t)return!1;if("li"===t.nodeName.toLowerCase())return!0;for(var e=t.parentNode,n=e.nodeName.toLowerCase();"li"===n||!s.isBlockContainer(e)&&"div"!==n;){if("li"===n)return!0;if(e=e.parentNode,!e)return!1;n=e.nodeName.toLowerCase()}return!1},cleanListDOM:function(e,n){if("li"===n.nodeName.toLowerCase()){var r=n.parentElement;"p"===r.parentElement.nodeName.toLowerCase()&&(s.unwrap(r.parentElement,e),t.selection.moveCursor(e,n.firstChild,n.firstChild.textContent.length))}},splitOffDOMTree:function(t,e,n){for(var r=e,i=null,o=!n;r!==t;){var a,s=r.parentNode,u=s.cloneNode(!1),l=o?r:s.firstChild;for(i&&(o?u.appendChild(i):a=i),i=u;l;){var c=l.nextSibling;l===r?(l.hasChildNodes()?l=l.cloneNode(!1):l.parentNode.removeChild(l),l.textContent&&i.appendChild(l),l=o?c:null):(l.parentNode.removeChild(l),(l.hasChildNodes()||l.textContent)&&i.appendChild(l),l=c)}a&&i.appendChild(a),r=s}return i},moveTextRangeIntoElement:function(t,e,n){if(!t||!e)return!1;var r=s.findCommonRoot(t,e);if(!r)return!1;if(e===t){var i=t.parentNode,o=t.nextSibling;return i.removeChild(t),n.appendChild(t),o?i.insertBefore(n,o):i.appendChild(n),n.hasChildNodes()}for(var a,u,l,c=[],f=0;f<r.childNodes.length;f++)if(l=r.childNodes[f],a){if(s.isDescendant(l,e,!0)){u=l;break}c.push(l)}else s.isDescendant(l,t,!0)&&(a=l);var h=u.nextSibling,d=r.ownerDocument.createDocumentFragment();return a===t?(a.parentNode.removeChild(a),d.appendChild(a)):d.appendChild(s.splitOffDOMTree(a,t)),c.forEach(function(t){t.parentNode.removeChild(t),d.appendChild(t)}),u===e?(u.parentNode.removeChild(u),d.appendChild(u)):d.appendChild(s.splitOffDOMTree(u,e,!0)),n.appendChild(d),u.parentNode===r?r.insertBefore(n,u):h?r.insertBefore(n,h):r.appendChild(n),n.hasChildNodes()},depthOfNode:function(t){for(var e=0,n=t;null!==n.parentNode;)n=n.parentNode,e++;return e},findCommonRoot:function(t,e){for(var n=s.depthOfNode(t),r=s.depthOfNode(e),i=t,o=e;n!==r;)n>r?(i=i.parentNode,n-=1):(o=o.parentNode,r-=1);for(;i!==o;)i=i.parentNode,o=o.parentNode;return i},isElementAtBeginningOfBlock:function(t){for(var e,n;!s.isBlockContainer(t)&&!s.isMediumEditorElement(t);){for(n=t;n=n.previousSibling;)if(e=3===n.nodeType?n.nodeValue:n.textContent,e.length>0)return!1;t=t.parentNode}return!0},isMediumEditorElement:function(t){return t&&t.getAttribute&&!!t.getAttribute("data-medium-editor-element")},getContainerEditorElement:function(t){return s.traverseUp(t,function(t){return s.isMediumEditorElement(t)})},isBlockContainer:function(t){return t&&3!==t.nodeType&&s.blockContainerElementNames.indexOf(t.nodeName.toLowerCase())!==-1},getClosestBlockContainer:function(t){return s.traverseUp(t,function(t){return s.isBlockContainer(t)||s.isMediumEditorElement(t)})},getTopBlockContainer:function(t){var e=!!s.isBlockContainer(t)&&t;return s.traverseUp(t,function(t){return s.isBlockContainer(t)&&(e=t),!(e||!s.isMediumEditorElement(t))&&(e=t,!0)}),e},getFirstSelectableLeafNode:function(t){for(;t&&t.firstChild;)t=t.firstChild;if(t=s.traverseUp(t,function(t){return s.emptyElementNames.indexOf(t.nodeName.toLowerCase())===-1}),"table"===t.nodeName.toLowerCase()){var e=t.querySelector("th, td");e&&(t=e)}return t},getFirstTextNode:function(t){return s.warn("getFirstTextNode is deprecated and will be removed in version 6.0.0"),s._getFirstTextNode(t)},_getFirstTextNode:function(t){if(3===t.nodeType)return t;for(var e=0;e<t.childNodes.length;e++){var n=s._getFirstTextNode(t.childNodes[e]);if(null!==n)return n}return null},ensureUrlHasProtocol:function(t){return t.indexOf("://")===-1?"http://"+t:t},warn:function(){void 0!==e.console&&"function"==typeof e.console.warn&&e.console.warn.apply(e.console,arguments)},deprecated:function(t,e,n){var r=t+" is deprecated, please use "+e+" instead.";n&&(r+=" Will be removed in "+n),s.warn(r)},deprecatedMethod:function(t,e,n,r){s.deprecated(t,e,r),"function"==typeof this[e]&&this[e].apply(this,n)},cleanupAttrs:function(t,e){e.forEach(function(e){t.removeAttribute(e)})},cleanupTags:function(t,e){e.indexOf(t.nodeName.toLowerCase())!==-1&&t.parentNode.removeChild(t)},unwrapTags:function(e,n){n.indexOf(e.nodeName.toLowerCase())!==-1&&t.util.unwrap(e,document)},getClosestTag:function(t,e){return s.traverseUp(t,function(t){return t.nodeName.toLowerCase()===e.toLowerCase()})},unwrap:function(t,e){for(var n=e.createDocumentFragment(),r=Array.prototype.slice.call(t.childNodes),i=0;i<r.length;i++)n.appendChild(r[i]);n.childNodes.length?t.parentNode.replaceChild(n,t):t.parentNode.removeChild(t)},guid:function(){function t(){return Math.floor(65536*(1+Math.random())).toString(16).substring(1)}return t()+t()+"-"+t()+"-"+t()+"-"+t()+"-"+t()+t()+t()}};t.util=s}(window),function(){var e=function(e){t.util.extend(this,e)};e.extend=function(e){var n,r=this;n=e&&e.hasOwnProperty("constructor")?e.constructor:function(){return r.apply(this,arguments)},t.util.extend(n,r);var i=function(){this.constructor=n};return i.prototype=r.prototype,n.prototype=new i,e&&t.util.extend(n.prototype,e),n},e.prototype={init:function(){},base:void 0,name:void 0,checkState:void 0,destroy:void 0,queryCommandState:void 0,isActive:void 0,isAlreadyApplied:void 0,setActive:void 0,setInactive:void 0,getInteractionElements:void 0,window:void 0,document:void 0,getEditorElements:function(){return this.base.elements},getEditorId:function(){return this.base.id},getEditorOption:function(t){return this.base.options[t]}},["execAction","on","off","subscribe","trigger"].forEach(function(t){e.prototype[t]=function(){return this.base[t].apply(this.base,arguments)}}),t.Extension=e}(),function(){function e(e){return t.util.isBlockContainer(e)?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}var n={findMatchingSelectionParent:function(e,n){var r,i,o=n.getSelection();return 0!==o.rangeCount&&(r=o.getRangeAt(0),i=r.commonAncestorContainer,t.util.traverseUp(i,e))},getSelectionElement:function(e){return this.findMatchingSelectionParent(function(e){return t.util.isMediumEditorElement(e)},e)},exportSelection:function(t,e){if(!t)return null;var n=null,r=e.getSelection();if(r.rangeCount>0){var i,o=r.getRangeAt(0),a=o.cloneRange();a.selectNodeContents(t),a.setEnd(o.startContainer,o.startOffset),i=a.toString().length,n={start:i,end:i+o.toString().length},this.doesRangeStartWithImages(o,e)&&(n.startsWithImage=!0);var s=this.getTrailingImageCount(t,n,o.endContainer,o.endOffset);if(s&&(n.trailingImageCount=s),0!==i){var u=this.getIndexRelativeToAdjacentEmptyBlocks(e,t,o.startContainer,o.startOffset);u!==-1&&(n.emptyBlocksIndex=u)}}return n},importSelection:function(t,e,n,r){if(t&&e){var i=n.createRange();i.setStart(e,0),i.collapse(!0);var o,a=e,s=[],u=0,l=!1,c=!1,f=0,h=!1,d=!1,p=null;for((r||t.startsWithImage||"undefined"!=typeof t.emptyBlocksIndex)&&(d=!0);!h&&a;)if(a.nodeType>3)a=s.pop();else{if(3!==a.nodeType||c){if(t.trailingImageCount&&c&&("img"===a.nodeName.toLowerCase()&&f++,f===t.trailingImageCount)){for(var m=0;a.parentNode.childNodes[m]!==a;)m++;i.setEnd(a.parentNode,m+1),h=!0}if(!h&&1===a.nodeType)for(var g=a.childNodes.length-1;g>=0;)s.push(a.childNodes[g]),g-=1}else o=u+a.length,!l&&t.start>=u&&t.start<=o&&(d||t.start<o?(i.setStart(a,t.start-u),l=!0):p=a),l&&t.end>=u&&t.end<=o&&(t.trailingImageCount?c=!0:(i.setEnd(a,t.end-u),h=!0)),u=o;h||(a=s.pop())}!l&&p&&(i.setStart(p,p.length),i.setEnd(p,p.length)),"undefined"!=typeof t.emptyBlocksIndex&&(i=this.importSelectionMoveCursorPastBlocks(n,e,t.emptyBlocksIndex,i)),r&&(i=this.importSelectionMoveCursorPastAnchor(t,i)),this.selectRange(n,i)}},importSelectionMoveCursorPastAnchor:function(e,n){var r=function(t){return"a"===t.nodeName.toLowerCase()};if(e.start===e.end&&3===n.startContainer.nodeType&&n.startOffset===n.startContainer.nodeValue.length&&t.util.traverseUp(n.startContainer,r)){for(var i=n.startContainer,o=n.startContainer.parentNode;null!==o&&"a"!==o.nodeName.toLowerCase();)o.childNodes[o.childNodes.length-1]!==i?o=null:(i=o,o=o.parentNode);if(null!==o&&"a"===o.nodeName.toLowerCase()){for(var a=null,s=0;null===a&&s<o.parentNode.childNodes.length;s++)o.parentNode.childNodes[s]===o&&(a=s);n.setStart(o.parentNode,a+1),n.collapse(!0)}}return n},importSelectionMoveCursorPastBlocks:function(n,r,i,o){var a,s,u=n.createTreeWalker(r,NodeFilter.SHOW_ELEMENT,e,!1),l=o.startContainer,c=0;for(i=i||1,a=3===l.nodeType&&t.util.isBlockContainer(l.previousSibling)?l.previousSibling:t.util.getClosestBlockContainer(l);u.nextNode();)if(s){if(s=u.currentNode,c++,c===i)break;if(s.textContent.length>0)break}else a===u.currentNode&&(s=u.currentNode);return s||(s=a),o.setStart(t.util.getFirstSelectableLeafNode(s),0),o},getIndexRelativeToAdjacentEmptyBlocks:function(n,r,i,o){
|
||
if(i.textContent.length>0&&o>0)return-1;var a=i;if(3!==a.nodeType&&(a=i.childNodes[o]),a){if(!t.util.isElementAtBeginningOfBlock(a))return-1;var s=t.util.findPreviousSibling(a);if(!s)return-1;if(s.nodeValue)return-1}for(var u=t.util.getClosestBlockContainer(i),l=n.createTreeWalker(r,NodeFilter.SHOW_ELEMENT,e,!1),c=0;l.nextNode();){var f=""===l.currentNode.textContent;if((f||c>0)&&(c+=1),l.currentNode===u)return c;f||(c=0)}return c},doesRangeStartWithImages:function(t,e){if(0!==t.startOffset||1!==t.startContainer.nodeType)return!1;if("img"===t.startContainer.nodeName.toLowerCase())return!0;var n=t.startContainer.querySelector("img");if(!n)return!1;for(var r=e.createTreeWalker(t.startContainer,NodeFilter.SHOW_ALL,null,!1);r.nextNode();){var i=r.currentNode;if(i===n)break;if(i.nodeValue)return!1}return!0},getTrailingImageCount:function(t,e,n,r){if(0===r||1!==n.nodeType)return 0;if("img"!==n.nodeName.toLowerCase()&&!n.querySelector("img"))return 0;for(var i=n.childNodes[r-1];i.hasChildNodes();)i=i.lastChild;for(var o,a=t,s=[],u=0,l=!1,c=!1,f=!1,h=0;!f&&a;)if(a.nodeType>3)a=s.pop();else{if(3!==a.nodeType||c){if("img"===a.nodeName.toLowerCase()&&h++,a===i)f=!0;else if(1===a.nodeType)for(var d=a.childNodes.length-1;d>=0;)s.push(a.childNodes[d]),d-=1}else h=0,o=u+a.length,!l&&e.start>=u&&e.start<=o&&(l=!0),l&&e.end>=u&&e.end<=o&&(c=!0),u=o;f||(a=s.pop())}return h},selectionContainsContent:function(t){var e=t.getSelection();if(!e||e.isCollapsed||!e.rangeCount)return!1;if(""!==e.toString().trim())return!0;var n=this.getSelectedParentElement(e.getRangeAt(0));return!(!n||!("img"===n.nodeName.toLowerCase()||1===n.nodeType&&n.querySelector("img")))},selectionInContentEditableFalse:function(t){var e,n=this.findMatchingSelectionParent(function(t){var n=t&&t.getAttribute("contenteditable");return"true"===n&&(e=!0),"#text"!==t.nodeName&&"false"===n},t);return!e&&n},getSelectionHtml:function(t){var e,n,r,i="",o=t.getSelection();if(o.rangeCount){for(r=t.createElement("div"),e=0,n=o.rangeCount;e<n;e+=1)r.appendChild(o.getRangeAt(e).cloneContents());i=r.innerHTML}return i},getCaretOffsets:function(t,e){var n,r;return e||(e=window.getSelection().getRangeAt(0)),n=e.cloneRange(),r=e.cloneRange(),n.selectNodeContents(t),n.setEnd(e.endContainer,e.endOffset),r.selectNodeContents(t),r.setStart(e.endContainer,e.endOffset),{left:n.toString().length,right:r.toString().length}},rangeSelectsSingleNode:function(t){var e=t.startContainer;return e===t.endContainer&&e.hasChildNodes()&&t.endOffset===t.startOffset+1},getSelectedParentElement:function(t){return t?this.rangeSelectsSingleNode(t)&&3!==t.startContainer.childNodes[t.startOffset].nodeType?t.startContainer.childNodes[t.startOffset]:3===t.startContainer.nodeType?t.startContainer.parentNode:t.startContainer:null},getSelectedElements:function(t){var e,n,r,i=t.getSelection();if(!i.rangeCount||i.isCollapsed||!i.getRangeAt(0).commonAncestorContainer)return[];if(e=i.getRangeAt(0),3===e.commonAncestorContainer.nodeType){for(n=[],r=e.commonAncestorContainer;r.parentNode&&1===r.parentNode.childNodes.length;)n.push(r.parentNode),r=r.parentNode;return n}return[].filter.call(e.commonAncestorContainer.getElementsByTagName("*"),function(t){return"function"!=typeof i.containsNode||i.containsNode(t,!0)})},selectNode:function(t,e){var n=e.createRange();n.selectNodeContents(t),this.selectRange(e,n)},select:function(t,e,n,r,i){var o=t.createRange();return o.setStart(e,n),r?o.setEnd(r,i):o.collapse(!0),this.selectRange(t,o),o},clearSelection:function(t,e){e?t.getSelection().collapseToStart():t.getSelection().collapseToEnd()},moveCursor:function(t,e,n){this.select(t,e,n)},getSelectionRange:function(t){var e=t.getSelection();return 0===e.rangeCount?null:e.getRangeAt(0)},selectRange:function(t,e){var n=t.getSelection();n.removeAllRanges(),n.addRange(e)},getSelectionStart:function(t){var e=t.getSelection().anchorNode,n=e&&3===e.nodeType?e.parentNode:e;return n}};t.selection=n}(),function(){function e(e,n){return!!e&&e.some(function(e){if("function"!=typeof e.getInteractionElements)return!1;var r=e.getInteractionElements();return!!r&&(Array.isArray(r)||(r=[r]),r.some(function(e){return t.util.isDescendant(e,n,!0)}))})}var n=function(t){this.base=t,this.options=this.base.options,this.events=[],this.disabledEvents={},this.customEvents={},this.listeners={}};n.prototype={InputEventOnContenteditableSupported:!t.util.isIE&&!t.util.isEdge,attachDOMEvent:function(e,n,r,i){var o=this.base.options.contentWindow,a=this.base.options.ownerDocument;e=t.util.isElement(e)||[o,a].indexOf(e)>-1?[e]:e,Array.prototype.forEach.call(e,function(t){t.addEventListener(n,r,i),this.events.push([t,n,r,i])}.bind(this))},detachDOMEvent:function(e,n,r,i){var o,a,s=this.base.options.contentWindow,u=this.base.options.ownerDocument;e&&(e=t.util.isElement(e)||[s,u].indexOf(e)>-1?[e]:e,Array.prototype.forEach.call(e,function(t){o=this.indexOfListener(t,n,r,i),o!==-1&&(a=this.events.splice(o,1)[0],a[0].removeEventListener(a[1],a[2],a[3]))}.bind(this)))},indexOfListener:function(t,e,n,r){var i,o,a;for(i=0,o=this.events.length;i<o;i+=1)if(a=this.events[i],a[0]===t&&a[1]===e&&a[2]===n&&a[3]===r)return i;return-1},detachAllDOMEvents:function(){for(var t=this.events.pop();t;)t[0].removeEventListener(t[1],t[2],t[3]),t=this.events.pop()},detachAllEventsFromElement:function(t){for(var e=this.events.filter(function(e){return e&&e[0].getAttribute&&e[0].getAttribute("medium-editor-index")===t.getAttribute("medium-editor-index")}),n=0,r=e.length;n<r;n++){var i=e[n];this.detachDOMEvent(i[0],i[1],i[2],i[3])}},attachAllEventsToElement:function(t){this.listeners.editableInput&&(this.contentCache[t.getAttribute("medium-editor-index")]=t.innerHTML),this.eventsCache&&this.eventsCache.forEach(function(e){this.attachDOMEvent(t,e.name,e.handler.bind(this))},this)},enableCustomEvent:function(t){void 0!==this.disabledEvents[t]&&delete this.disabledEvents[t]},disableCustomEvent:function(t){this.disabledEvents[t]=!0},attachCustomEvent:function(t,e){this.setupListener(t),this.customEvents[t]||(this.customEvents[t]=[]),this.customEvents[t].push(e)},detachCustomEvent:function(t,e){var n=this.indexOfCustomListener(t,e);n!==-1&&this.customEvents[t].splice(n,1)},indexOfCustomListener:function(t,e){return this.customEvents[t]&&this.customEvents[t].length?this.customEvents[t].indexOf(e):-1},detachAllCustomEvents:function(){this.customEvents={}},triggerCustomEvent:function(t,e,n){this.customEvents[t]&&!this.disabledEvents[t]&&this.customEvents[t].forEach(function(t){t(e,n)})},destroy:function(){this.detachAllDOMEvents(),this.detachAllCustomEvents(),this.detachExecCommand(),this.base.elements&&this.base.elements.forEach(function(t){t.removeAttribute("data-medium-focused")})},attachToExecCommand:function(){this.execCommandListener||(this.execCommandListener=function(t){this.handleDocumentExecCommand(t)}.bind(this),this.wrapExecCommand(),this.options.ownerDocument.execCommand.listeners.push(this.execCommandListener))},detachExecCommand:function(){var t=this.options.ownerDocument;if(this.execCommandListener&&t.execCommand.listeners){var e=t.execCommand.listeners.indexOf(this.execCommandListener);e!==-1&&t.execCommand.listeners.splice(e,1),t.execCommand.listeners.length||this.unwrapExecCommand()}},wrapExecCommand:function(){var t=this.options.ownerDocument;if(!t.execCommand.listeners){var e=function(e,n){t.execCommand.listeners&&t.execCommand.listeners.forEach(function(t){t({command:e[0],value:e[2],args:e,result:n})})},n=function(){var n=t.execCommand.orig.apply(this,arguments);if(!t.execCommand.listeners)return n;var r=Array.prototype.slice.call(arguments);return e(r,n),n};n.orig=t.execCommand,n.listeners=[],n.callListeners=e,t.execCommand=n}},unwrapExecCommand:function(){var t=this.options.ownerDocument;t.execCommand.orig&&(t.execCommand=t.execCommand.orig)},setupListener:function(t){if(!this.listeners[t]){switch(t){case"externalInteraction":this.attachDOMEvent(this.options.ownerDocument.body,"mousedown",this.handleBodyMousedown.bind(this),!0),this.attachDOMEvent(this.options.ownerDocument.body,"click",this.handleBodyClick.bind(this),!0),this.attachDOMEvent(this.options.ownerDocument.body,"focus",this.handleBodyFocus.bind(this),!0);break;case"blur":this.setupListener("externalInteraction");break;case"focus":this.setupListener("externalInteraction");break;case"editableInput":this.contentCache={},this.base.elements.forEach(function(t){this.contentCache[t.getAttribute("medium-editor-index")]=t.innerHTML},this),this.InputEventOnContenteditableSupported&&this.attachToEachElement("input",this.handleInput),this.InputEventOnContenteditableSupported||(this.setupListener("editableKeypress"),this.keypressUpdateInput=!0,this.attachDOMEvent(document,"selectionchange",this.handleDocumentSelectionChange.bind(this)),this.attachToExecCommand());break;case"editableClick":this.attachToEachElement("click",this.handleClick);break;case"editableBlur":this.attachToEachElement("blur",this.handleBlur);break;case"editableKeypress":this.attachToEachElement("keypress",this.handleKeypress);break;case"editableKeyup":this.attachToEachElement("keyup",this.handleKeyup);break;case"editableKeydown":this.attachToEachElement("keydown",this.handleKeydown);break;case"editableKeydownSpace":this.setupListener("editableKeydown");break;case"editableKeydownEnter":this.setupListener("editableKeydown");break;case"editableKeydownTab":this.setupListener("editableKeydown");break;case"editableKeydownDelete":this.setupListener("editableKeydown");break;case"editableMouseover":this.attachToEachElement("mouseover",this.handleMouseover);break;case"editableDrag":this.attachToEachElement("dragover",this.handleDragging),this.attachToEachElement("dragleave",this.handleDragging);break;case"editableDrop":this.attachToEachElement("drop",this.handleDrop);break;case"editablePaste":this.attachToEachElement("paste",this.handlePaste)}this.listeners[t]=!0}},attachToEachElement:function(t,e){this.eventsCache||(this.eventsCache=[]),this.base.elements.forEach(function(n){this.attachDOMEvent(n,t,e.bind(this))},this),this.eventsCache.push({name:t,handler:e})},cleanupElement:function(t){var e=t.getAttribute("medium-editor-index");e&&(this.detachAllEventsFromElement(t),this.contentCache&&delete this.contentCache[e])},focusElement:function(t){t.focus(),this.updateFocus(t,{target:t,type:"focus"})},updateFocus:function(n,r){var i,o=this.base.getFocusedElement();o&&"click"===r.type&&this.lastMousedownTarget&&(t.util.isDescendant(o,this.lastMousedownTarget,!0)||e(this.base.extensions,this.lastMousedownTarget))&&(i=o),i||this.base.elements.some(function(e){return!i&&t.util.isDescendant(e,n,!0)&&(i=e),!!i},this);var a=!t.util.isDescendant(o,n,!0)&&!e(this.base.extensions,n);i!==o&&(o&&a&&(o.removeAttribute("data-medium-focused"),this.triggerCustomEvent("blur",r,o)),i&&(i.setAttribute("data-medium-focused",!0),this.triggerCustomEvent("focus",r,i))),a&&this.triggerCustomEvent("externalInteraction",r)},updateInput:function(t,e){if(this.contentCache){var n=t.getAttribute("medium-editor-index"),r=t.innerHTML;r!==this.contentCache[n]&&this.triggerCustomEvent("editableInput",e,t),this.contentCache[n]=r}},handleDocumentSelectionChange:function(e){if(e.currentTarget&&e.currentTarget.activeElement){var n,r=e.currentTarget.activeElement;this.base.elements.some(function(e){return!!t.util.isDescendant(e,r,!0)&&(n=e,!0)},this),n&&this.updateInput(n,{target:r,currentTarget:n})}},handleDocumentExecCommand:function(){var t=this.base.getFocusedElement();t&&this.updateInput(t,{target:t,currentTarget:t})},handleBodyClick:function(t){this.updateFocus(t.target,t)},handleBodyFocus:function(t){this.updateFocus(t.target,t)},handleBodyMousedown:function(t){this.lastMousedownTarget=t.target},handleInput:function(t){this.updateInput(t.currentTarget,t)},handleClick:function(t){this.triggerCustomEvent("editableClick",t,t.currentTarget)},handleBlur:function(t){this.triggerCustomEvent("editableBlur",t,t.currentTarget)},handleKeypress:function(t){if(this.triggerCustomEvent("editableKeypress",t,t.currentTarget),this.keypressUpdateInput){var e={target:t.target,currentTarget:t.currentTarget};setTimeout(function(){this.updateInput(e.currentTarget,e)}.bind(this),0)}},handleKeyup:function(t){this.triggerCustomEvent("editableKeyup",t,t.currentTarget)},handleMouseover:function(t){this.triggerCustomEvent("editableMouseover",t,t.currentTarget)},handleDragging:function(t){this.triggerCustomEvent("editableDrag",t,t.currentTarget)},handleDrop:function(t){this.triggerCustomEvent("editableDrop",t,t.currentTarget)},handlePaste:function(t){this.triggerCustomEvent("editablePaste",t,t.currentTarget)},handleKeydown:function(e){return this.triggerCustomEvent("editableKeydown",e,e.currentTarget),t.util.isKey(e,t.util.keyCode.SPACE)?this.triggerCustomEvent("editableKeydownSpace",e,e.currentTarget):t.util.isKey(e,t.util.keyCode.ENTER)||e.ctrlKey&&t.util.isKey(e,t.util.keyCode.M)?this.triggerCustomEvent("editableKeydownEnter",e,e.currentTarget):t.util.isKey(e,t.util.keyCode.TAB)?this.triggerCustomEvent("editableKeydownTab",e,e.currentTarget):t.util.isKey(e,[t.util.keyCode.DELETE,t.util.keyCode.BACKSPACE])?this.triggerCustomEvent("editableKeydownDelete",e,e.currentTarget):void 0}},t.Events=n}(),function(){var e=t.Extension.extend({action:void 0,aria:void 0,tagNames:void 0,style:void 0,useQueryState:void 0,contentDefault:void 0,contentFA:void 0,classList:void 0,attrs:void 0,constructor:function(n){e.isBuiltInButton(n)?t.Extension.call(this,this.defaults[n]):t.Extension.call(this,n)},init:function(){t.Extension.prototype.init.apply(this,arguments),this.button=this.createButton(),this.on(this.button,"click",this.handleClick.bind(this))},getButton:function(){return this.button},getAction:function(){return"function"==typeof this.action?this.action(this.base.options):this.action},getAria:function(){return"function"==typeof this.aria?this.aria(this.base.options):this.aria},getTagNames:function(){return"function"==typeof this.tagNames?this.tagNames(this.base.options):this.tagNames},createButton:function(){var t=this.document.createElement("button"),e=this.contentDefault,n=this.getAria(),r=this.getEditorOption("buttonLabels");return t.classList.add("medium-editor-action"),t.classList.add("medium-editor-action-"+this.name),this.classList&&this.classList.forEach(function(e){t.classList.add(e)}),t.setAttribute("data-action",this.getAction()),n&&(t.setAttribute("title",n),t.setAttribute("aria-label",n)),this.attrs&&Object.keys(this.attrs).forEach(function(e){t.setAttribute(e,this.attrs[e])},this),"fontawesome"===r&&this.contentFA&&(e=this.contentFA),t.innerHTML=e,t},handleClick:function(t){t.preventDefault(),t.stopPropagation();var e=this.getAction();e&&this.execAction(e)},isActive:function(){return this.button.classList.contains(this.getEditorOption("activeButtonClass"))},setInactive:function(){this.button.classList.remove(this.getEditorOption("activeButtonClass")),delete this.knownState},setActive:function(){this.button.classList.add(this.getEditorOption("activeButtonClass")),delete this.knownState},queryCommandState:function(){var t=null;return this.useQueryState&&(t=this.base.queryCommandState(this.getAction())),t},isAlreadyApplied:function(t){var e,n,r=!1,i=this.getTagNames();return this.knownState===!1||this.knownState===!0?this.knownState:(i&&i.length>0&&(r=i.indexOf(t.nodeName.toLowerCase())!==-1),!r&&this.style&&(e=this.style.value.split("|"),n=this.window.getComputedStyle(t,null).getPropertyValue(this.style.prop),e.forEach(function(t){this.knownState||(r=n.indexOf(t)!==-1,(r||"text-decoration"!==this.style.prop)&&(this.knownState=r))},this)),r)}});e.isBuiltInButton=function(e){return"string"==typeof e&&t.extensions.button.prototype.defaults.hasOwnProperty(e)},t.extensions.button=e}(),function(){t.extensions.button.prototype.defaults={bold:{name:"bold",action:"bold",aria:"bold",tagNames:["b","strong"],style:{prop:"font-weight",value:"700|bold"},useQueryState:!0,contentDefault:"<b>B</b>",contentFA:'<i class="fa fa-bold"></i>'},italic:{name:"italic",action:"italic",aria:"italic",tagNames:["i","em"],style:{prop:"font-style",value:"italic"},useQueryState:!0,contentDefault:"<b><i>I</i></b>",contentFA:'<i class="fa fa-italic"></i>'},underline:{name:"underline",action:"underline",aria:"underline",tagNames:["u"],style:{prop:"text-decoration",value:"underline"},useQueryState:!0,contentDefault:"<b><u>U</u></b>",contentFA:'<i class="fa fa-underline"></i>'},strikethrough:{name:"strikethrough",action:"strikethrough",aria:"strike through",tagNames:["strike"],style:{prop:"text-decoration",value:"line-through"},useQueryState:!0,contentDefault:"<s>A</s>",contentFA:'<i class="fa fa-strikethrough"></i>'},superscript:{name:"superscript",action:"superscript",aria:"superscript",tagNames:["sup"],contentDefault:"<b>x<sup>1</sup></b>",contentFA:'<i class="fa fa-superscript"></i>'},subscript:{name:"subscript",action:"subscript",aria:"subscript",tagNames:["sub"],contentDefault:"<b>x<sub>1</sub></b>",contentFA:'<i class="fa fa-subscript"></i>'},image:{name:"image",action:"image",aria:"image",tagNames:["img"],contentDefault:"<b>image</b>",contentFA:'<i class="fa fa-picture-o"></i>'},html:{name:"html",action:"html",aria:"evaluate html",tagNames:["iframe","object"],contentDefault:"<b>html</b>",contentFA:'<i class="fa fa-code"></i>'},orderedlist:{name:"orderedlist",action:"insertorderedlist",aria:"ordered list",tagNames:["ol"],useQueryState:!0,contentDefault:"<b>1.</b>",contentFA:'<i class="fa fa-list-ol"></i>'},unorderedlist:{name:"unorderedlist",action:"insertunorderedlist",aria:"unordered list",tagNames:["ul"],useQueryState:!0,contentDefault:"<b>•</b>",contentFA:'<i class="fa fa-list-ul"></i>'},indent:{name:"indent",action:"indent",aria:"indent",tagNames:[],contentDefault:"<b>→</b>",contentFA:'<i class="fa fa-indent"></i>'},outdent:{name:"outdent",action:"outdent",aria:"outdent",tagNames:[],contentDefault:"<b>←</b>",contentFA:'<i class="fa fa-outdent"></i>'},justifyCenter:{name:"justifyCenter",action:"justifyCenter",aria:"center justify",tagNames:[],style:{prop:"text-align",value:"center"},contentDefault:"<b>C</b>",contentFA:'<i class="fa fa-align-center"></i>'},justifyFull:{name:"justifyFull",action:"justifyFull",aria:"full justify",tagNames:[],style:{prop:"text-align",value:"justify"},contentDefault:"<b>J</b>",contentFA:'<i class="fa fa-align-justify"></i>'},justifyLeft:{name:"justifyLeft",action:"justifyLeft",aria:"left justify",tagNames:[],style:{prop:"text-align",value:"left"},contentDefault:"<b>L</b>",contentFA:'<i class="fa fa-align-left"></i>'},justifyRight:{name:"justifyRight",action:"justifyRight",aria:"right justify",tagNames:[],style:{prop:"text-align",value:"right"},contentDefault:"<b>R</b>",contentFA:'<i class="fa fa-align-right"></i>'},removeFormat:{name:"removeFormat",aria:"remove formatting",action:"removeFormat",contentDefault:"<b>X</b>",contentFA:'<i class="fa fa-eraser"></i>'},quote:{name:"quote",action:"append-blockquote",aria:"blockquote",tagNames:["blockquote"],contentDefault:"<b>“</b>",contentFA:'<i class="fa fa-quote-right"></i>'},pre:{name:"pre",action:"append-pre",aria:"preformatted text",tagNames:["pre"],contentDefault:"<b>0101</b>",contentFA:'<i class="fa fa-code fa-lg"></i>'},h1:{name:"h1",action:"append-h1",aria:"header type one",tagNames:["h1"],contentDefault:"<b>H1</b>",contentFA:'<i class="fa fa-header"><sup>1</sup>'},h2:{name:"h2",action:"append-h2",aria:"header type two",tagNames:["h2"],contentDefault:"<b>H2</b>",contentFA:'<i class="fa fa-header"><sup>2</sup>'},h3:{name:"h3",action:"append-h3",aria:"header type three",tagNames:["h3"],contentDefault:"<b>H3</b>",contentFA:'<i class="fa fa-header"><sup>3</sup>'},h4:{name:"h4",action:"append-h4",aria:"header type four",tagNames:["h4"],contentDefault:"<b>H4</b>",contentFA:'<i class="fa fa-header"><sup>4</sup>'},h5:{name:"h5",action:"append-h5",aria:"header type five",tagNames:["h5"],contentDefault:"<b>H5</b>",contentFA:'<i class="fa fa-header"><sup>5</sup>'},h6:{name:"h6",action:"append-h6",aria:"header type six",tagNames:["h6"],contentDefault:"<b>H6</b>",contentFA:'<i class="fa fa-header"><sup>6</sup>'}}}(),function(){var e=t.extensions.button.extend({init:function(){t.extensions.button.prototype.init.apply(this,arguments)},formSaveLabel:"✓",formCloseLabel:"×",activeClass:"medium-editor-toolbar-form-active",hasForm:!0,getForm:function(){},isDisplayed:function(){return!!this.hasForm&&this.getForm().classList.contains(this.activeClass)},showForm:function(){this.hasForm&&this.getForm().classList.add(this.activeClass)},hideForm:function(){this.hasForm&&this.getForm().classList.remove(this.activeClass)},showToolbarDefaultActions:function(){var t=this.base.getExtensionByName("toolbar");t&&t.showToolbarDefaultActions()},hideToolbarDefaultActions:function(){var t=this.base.getExtensionByName("toolbar");t&&t.hideToolbarDefaultActions()},setToolbarPosition:function(){var t=this.base.getExtensionByName("toolbar");t&&t.setToolbarPosition()}});t.extensions.form=e}(),function(){var e=t.extensions.form.extend({customClassOption:null,customClassOptionText:"Button",linkValidation:!1,placeholderText:"Paste or type a link",targetCheckbox:!1,targetCheckboxText:"Open in new window",name:"anchor",action:"createLink",aria:"link",tagNames:["a"],contentDefault:"<b>#</b>",contentFA:'<i class="fa fa-link"></i>',init:function(){t.extensions.form.prototype.init.apply(this,arguments),this.subscribe("editableKeydown",this.handleKeydown.bind(this))},handleClick:function(e){e.preventDefault(),e.stopPropagation();var n=t.selection.getSelectionRange(this.document);return"a"===n.startContainer.nodeName.toLowerCase()||"a"===n.endContainer.nodeName.toLowerCase()||t.util.getClosestTag(t.selection.getSelectedParentElement(n),"a")?this.execAction("unlink"):(this.isDisplayed()||this.showForm(),!1)},handleKeydown:function(e){t.util.isKey(e,t.util.keyCode.K)&&t.util.isMetaCtrlKey(e)&&!e.shiftKey&&this.handleClick(e)},getForm:function(){return this.form||(this.form=this.createForm()),this.form},getTemplate:function(){var t=['<input type="text" class="medium-editor-toolbar-input" placeholder="',this.placeholderText,'">'];return t.push('<a href="#" class="medium-editor-toolbar-save">',"fontawesome"===this.getEditorOption("buttonLabels")?'<i class="fa fa-check"></i>':this.formSaveLabel,"</a>"),t.push('<a href="#" class="medium-editor-toolbar-close">',"fontawesome"===this.getEditorOption("buttonLabels")?'<i class="fa fa-times"></i>':this.formCloseLabel,"</a>"),this.targetCheckbox&&t.push('<div class="medium-editor-toolbar-form-row">','<input type="checkbox" class="medium-editor-toolbar-anchor-target" id="medium-editor-toolbar-anchor-target-field-'+this.getEditorId()+'">','<label for="medium-editor-toolbar-anchor-target-field-'+this.getEditorId()+'">',this.targetCheckboxText,"</label>","</div>"),this.customClassOption&&t.push('<div class="medium-editor-toolbar-form-row">','<input type="checkbox" class="medium-editor-toolbar-anchor-button">',"<label>",this.customClassOptionText,"</label>","</div>"),t.join("")},isDisplayed:function(){return t.extensions.form.prototype.isDisplayed.apply(this)},hideForm:function(){t.extensions.form.prototype.hideForm.apply(this),this.getInput().value=""},showForm:function(e){var n=this.getInput(),r=this.getAnchorTargetCheckbox(),i=this.getAnchorButtonCheckbox();if(e=e||{value:""},"string"==typeof e&&(e={value:e}),this.base.saveSelection(),this.hideToolbarDefaultActions(),t.extensions.form.prototype.showForm.apply(this),this.setToolbarPosition(),n.value=e.value,n.focus(),r&&(r.checked="_blank"===e.target),i){var o=e.buttonClass?e.buttonClass.split(" "):[];i.checked=o.indexOf(this.customClassOption)!==-1}},destroy:function(){return!!this.form&&(this.form.parentNode&&this.form.parentNode.removeChild(this.form),void delete this.form)},getFormOpts:function(){var t=this.getAnchorTargetCheckbox(),e=this.getAnchorButtonCheckbox(),n={value:this.getInput().value.trim()};return this.linkValidation&&(n.value=this.checkLinkFormat(n.value)),n.target="_self",t&&t.checked&&(n.target="_blank"),e&&e.checked&&(n.buttonClass=this.customClassOption),n},doFormSave:function(){var t=this.getFormOpts();this.completeFormSave(t)},completeFormSave:function(t){this.base.restoreSelection(),this.execAction(this.action,t),this.base.checkSelection()},ensureEncodedUri:function(t){return t===decodeURI(t)?encodeURI(t):t},ensureEncodedUriComponent:function(t){return t===decodeURIComponent(t)?encodeURIComponent(t):t},ensureEncodedParam:function(t){var e=t.split("="),n=e[0],r=e[1];return n+(void 0===r?"":"="+this.ensureEncodedUriComponent(r))},ensureEncodedQuery:function(t){return t.split("&").map(this.ensureEncodedParam.bind(this)).join("&")},checkLinkFormat:function(t){var e=/^([a-z]+:)?\/\/|^(mailto|tel|maps):|^\#/i,n=e.test(t),r="",i=/^\+?\s?\(?(?:\d\s?\-?\)?){3,20}$/,o=t.match(/^(.*?)(?:\?(.*?))?(?:#(.*))?$/),a=o[1],s=o[2],u=o[3];if(i.test(t))return"tel:"+t;if(!n){var l=a.split("/")[0];(l.match(/.+(\.|:).+/)||"localhost"===l)&&(r="http://")}return r+this.ensureEncodedUri(a)+(void 0===s?"":"?"+this.ensureEncodedQuery(s))+(void 0===u?"":"#"+u)},doFormCancel:function(){this.base.restoreSelection(),this.base.checkSelection()},attachFormEvents:function(t){var e=t.querySelector(".medium-editor-toolbar-close"),n=t.querySelector(".medium-editor-toolbar-save"),r=t.querySelector(".medium-editor-toolbar-input");this.on(t,"click",this.handleFormClick.bind(this)),this.on(r,"keyup",this.handleTextboxKeyup.bind(this)),this.on(e,"click",this.handleCloseClick.bind(this)),this.on(n,"click",this.handleSaveClick.bind(this),!0)},createForm:function(){var t=this.document,e=t.createElement("div");return e.className="medium-editor-toolbar-form",e.id="medium-editor-toolbar-form-anchor-"+this.getEditorId(),e.innerHTML=this.getTemplate(),this.attachFormEvents(e),e},getInput:function(){return this.getForm().querySelector("input.medium-editor-toolbar-input")},getAnchorTargetCheckbox:function(){return this.getForm().querySelector(".medium-editor-toolbar-anchor-target")},getAnchorButtonCheckbox:function(){return this.getForm().querySelector(".medium-editor-toolbar-anchor-button")},handleTextboxKeyup:function(e){return e.keyCode===t.util.keyCode.ENTER?(e.preventDefault(),void this.doFormSave()):void(e.keyCode===t.util.keyCode.ESCAPE&&(e.preventDefault(),this.doFormCancel()))},handleFormClick:function(t){t.stopPropagation()},handleSaveClick:function(t){t.preventDefault(),this.doFormSave()},handleCloseClick:function(t){t.preventDefault(),this.doFormCancel()}});t.extensions.anchor=e}(),function(){var e=t.Extension.extend({name:"anchor-preview",hideDelay:500,previewValueSelector:"a",showWhenToolbarIsVisible:!1,showOnEmptyLinks:!0,init:function(){this.anchorPreview=this.createPreview(),this.getEditorOption("elementsContainer").appendChild(this.anchorPreview),this.attachToEditables()},getInteractionElements:function(){return this.getPreviewElement()},getPreviewElement:function(){return this.anchorPreview},createPreview:function(){var t=this.document.createElement("div");return t.id="medium-editor-anchor-preview-"+this.getEditorId(),t.className="medium-editor-anchor-preview",t.innerHTML=this.getTemplate(),this.on(t,"click",this.handleClick.bind(this)),t},getTemplate:function(){return'<div class="medium-editor-toolbar-anchor-preview" id="medium-editor-toolbar-anchor-preview"> <a class="medium-editor-toolbar-anchor-preview-inner"></a></div>'},destroy:function(){this.anchorPreview&&(this.anchorPreview.parentNode&&this.anchorPreview.parentNode.removeChild(this.anchorPreview),delete this.anchorPreview)},hidePreview:function(){this.anchorPreview&&this.anchorPreview.classList.remove("medium-editor-anchor-preview-active"),this.activeAnchor=null},showPreview:function(t){return!(!this.anchorPreview.classList.contains("medium-editor-anchor-preview-active")&&!t.getAttribute("data-disable-preview"))||(this.previewValueSelector&&(this.anchorPreview.querySelector(this.previewValueSelector).textContent=t.attributes.href.value,this.anchorPreview.querySelector(this.previewValueSelector).href=t.attributes.href.value),this.anchorPreview.classList.add("medium-toolbar-arrow-over"),this.anchorPreview.classList.remove("medium-toolbar-arrow-under"),this.anchorPreview.classList.contains("medium-editor-anchor-preview-active")||this.anchorPreview.classList.add("medium-editor-anchor-preview-active"),this.activeAnchor=t,this.positionPreview(),this.attachPreviewHandlers(),this)},positionPreview:function(t){t=t||this.activeAnchor;var e,n,r,i,o,a=this.window.innerWidth,s=this.anchorPreview.offsetHeight,u=t.getBoundingClientRect(),l=this.diffLeft,c=this.diffTop,f=this.getEditorOption("elementsContainer"),h=["absolute","fixed"].indexOf(window.getComputedStyle(f).getPropertyValue("position"))>-1,d={};e=this.anchorPreview.offsetWidth/2;var p=this.base.getExtensionByName("toolbar");p&&(l=p.diffLeft,c=p.diffTop),n=l-e,h?(i=f.getBoundingClientRect(),["top","left"].forEach(function(t){d[t]=u[t]-i[t]}),d.width=u.width,d.height=u.height,u=d,a=i.width,o=f.scrollTop):o=this.window.pageYOffset,r=u.left+u.width/2,o+=s+u.top+u.height-c-this.anchorPreview.offsetHeight,this.anchorPreview.style.top=Math.round(o)+"px",this.anchorPreview.style.right="initial",r<e?(this.anchorPreview.style.left=n+e+"px",this.anchorPreview.style.right="initial"):a-r<e?(this.anchorPreview.style.left="auto",this.anchorPreview.style.right=0):(this.anchorPreview.style.left=n+r+"px",this.anchorPreview.style.right="initial")},attachToEditables:function(){this.subscribe("editableMouseover",this.handleEditableMouseover.bind(this)),this.subscribe("positionedToolbar",this.handlePositionedToolbar.bind(this))},handlePositionedToolbar:function(){this.showWhenToolbarIsVisible||this.hidePreview()},handleClick:function(t){var e=this.base.getExtensionByName("anchor"),n=this.activeAnchor;e&&n&&(t.preventDefault(),this.base.selectElement(this.activeAnchor),this.base.delay(function(){if(n){var t={value:n.attributes.href.value,target:n.getAttribute("target"),buttonClass:n.getAttribute("class")};e.showForm(t),n=null}}.bind(this))),this.hidePreview()},handleAnchorMouseout:function(){this.anchorToPreview=null,this.off(this.activeAnchor,"mouseout",this.instanceHandleAnchorMouseout),this.instanceHandleAnchorMouseout=null},handleEditableMouseover:function(e){var n=t.util.getClosestTag(e.target,"a");if(!1!==n){if(!this.showOnEmptyLinks&&(!/href=["']\S+["']/.test(n.outerHTML)||/href=["']#\S+["']/.test(n.outerHTML)))return!0;var r=this.base.getExtensionByName("toolbar");if(!this.showWhenToolbarIsVisible&&r&&r.isDisplayed&&r.isDisplayed())return!0;this.activeAnchor&&this.activeAnchor!==n&&this.detachPreviewHandlers(),this.anchorToPreview=n,this.instanceHandleAnchorMouseout=this.handleAnchorMouseout.bind(this),this.on(this.anchorToPreview,"mouseout",this.instanceHandleAnchorMouseout),this.base.delay(function(){this.anchorToPreview&&this.showPreview(this.anchorToPreview)}.bind(this))}},handlePreviewMouseover:function(){this.lastOver=(new Date).getTime(),this.hovering=!0},handlePreviewMouseout:function(t){t.relatedTarget&&/anchor-preview/.test(t.relatedTarget.className)||(this.hovering=!1)},updatePreview:function(){if(this.hovering)return!0;var t=(new Date).getTime()-this.lastOver;t>this.hideDelay&&this.detachPreviewHandlers()},detachPreviewHandlers:function(){clearInterval(this.intervalTimer),this.instanceHandlePreviewMouseover&&(this.off(this.anchorPreview,"mouseover",this.instanceHandlePreviewMouseover),this.off(this.anchorPreview,"mouseout",this.instanceHandlePreviewMouseout),this.activeAnchor&&(this.off(this.activeAnchor,"mouseover",this.instanceHandlePreviewMouseover),this.off(this.activeAnchor,"mouseout",this.instanceHandlePreviewMouseout))),this.hidePreview(),this.hovering=this.instanceHandlePreviewMouseover=this.instanceHandlePreviewMouseout=null},attachPreviewHandlers:function(){this.lastOver=(new Date).getTime(),this.hovering=!0,this.instanceHandlePreviewMouseover=this.handlePreviewMouseover.bind(this),
|
||
this.instanceHandlePreviewMouseout=this.handlePreviewMouseout.bind(this),this.intervalTimer=setInterval(this.updatePreview.bind(this),200),this.on(this.anchorPreview,"mouseover",this.instanceHandlePreviewMouseover),this.on(this.anchorPreview,"mouseout",this.instanceHandlePreviewMouseout),this.on(this.activeAnchor,"mouseover",this.instanceHandlePreviewMouseover),this.on(this.activeAnchor,"mouseout",this.instanceHandlePreviewMouseout)}});t.extensions.anchorPreview=e}(),function(){function e(e){return!t.util.getClosestTag(e,"a")}var n,r,i,o,a;n=[" ","\t","\n","\r"," "," "," "," "," ","\u2028","\u2029"],r="com|net|org|edu|gov|mil|aero|asia|biz|cat|coop|info|int|jobs|mobi|museum|name|post|pro|tel|travel|xxx|ac|ad|ae|af|ag|ai|al|am|an|ao|aq|ar|as|at|au|aw|ax|az|ba|bb|bd|be|bf|bg|bh|bi|bj|bm|bn|bo|br|bs|bt|bv|bw|by|bz|ca|cc|cd|cf|cg|ch|ci|ck|cl|cm|cn|co|cr|cs|cu|cv|cx|cy|cz|dd|de|dj|dk|dm|do|dz|ec|ee|eg|eh|er|es|et|eu|fi|fj|fk|fm|fo|fr|ga|gb|gd|ge|gf|gg|gh|gi|gl|gm|gn|gp|gq|gr|gs|gt|gu|gw|gy|hk|hm|hn|hr|ht|hu|id|ie|il|im|in|io|iq|ir|is|it|je|jm|jo|jp|ke|kg|kh|ki|km|kn|kp|kr|kw|ky|kz|la|lb|lc|li|lk|lr|ls|lt|lu|lv|ly|ma|mc|md|me|mg|mh|mk|ml|mm|mn|mo|mp|mq|mr|ms|mt|mu|mv|mw|mx|my|mz|na|nc|ne|nf|ng|ni|nl|no|np|nr|nu|nz|om|pa|pe|pf|pg|ph|pk|pl|pm|pn|pr|ps|pt|pw|py|qa|re|ro|rs|ru|rw|sa|sb|sc|sd|se|sg|sh|si|sj|ja|sk|sl|sm|sn|so|sr|ss|st|su|sv|sx|sy|sz|tc|td|tf|tg|th|tj|tk|tl|tm|tn|to|tp|tr|tt|tv|tw|tz|ua|ug|uk|us|uy|uz|va|vc|ve|vg|vi|vn|vu|wf|ws|ye|yt|yu|za|zm|zw",i="(((?:(https?://|ftps?://|nntp://)|www\\d{0,3}[.]|[a-z0-9.\\-]+[.]("+r+")\\/)\\S+(?:[^\\s`!\\[\\]{};:'\".,?«»“”‘’])))|(([a-z0-9\\-]+\\.)?[a-z0-9\\-]+\\.("+r+"))",o=new RegExp("^("+r+")$","i"),a=new RegExp(i,"gi");var s=t.Extension.extend({init:function(){t.Extension.prototype.init.apply(this,arguments),this.disableEventHandling=!1,this.subscribe("editableKeypress",this.onKeypress.bind(this)),this.subscribe("editableBlur",this.onBlur.bind(this)),this.document.execCommand("AutoUrlDetect",!1,!1)},isLastInstance:function(){for(var t=0,e=0;e<this.window._mediumEditors.length;e++){var n=this.window._mediumEditors[e];null!==n&&void 0!==n.getExtensionByName("autoLink")&&t++}return 1===t},destroy:function(){this.document.queryCommandSupported("AutoUrlDetect")&&this.isLastInstance()&&this.document.execCommand("AutoUrlDetect",!1,!0)},onBlur:function(t,e){this.performLinking(e)},onKeypress:function(e){this.disableEventHandling||t.util.isKey(e,[t.util.keyCode.SPACE,t.util.keyCode.ENTER])&&(clearTimeout(this.performLinkingTimeout),this.performLinkingTimeout=setTimeout(function(){try{var t=this.base.exportSelection();this.performLinking(e.target)&&this.base.importSelection(t,!0)}catch(n){window.console&&window.console.error("Failed to perform linking",n),this.disableEventHandling=!0}}.bind(this),0))},performLinking:function(e){var n=t.util.splitByBlockElements(e),r=!1;0===n.length&&(n=[e]);for(var i=0;i<n.length;i++)r=this.removeObsoleteAutoLinkSpans(n[i])||r,r=this.performLinkingWithinElement(n[i])||r;return this.base.events.updateInput(e,{target:e,currentTarget:e}),r},removeObsoleteAutoLinkSpans:function(n){if(!n||3===n.nodeType)return!1;for(var r=n.querySelectorAll('span[data-auto-link="true"]'),i=!1,o=0;o<r.length;o++){var a=r[o].textContent;if(a.indexOf("://")===-1&&(a=t.util.ensureUrlHasProtocol(a)),r[o].getAttribute("data-href")!==a&&e(r[o])){i=!0;var s=a.replace(/\s+$/,"");if(r[o].getAttribute("data-href")===s){var u=a.length-s.length,l=t.util.splitOffDOMTree(r[o],this.splitTextBeforeEnd(r[o],u));r[o].parentNode.insertBefore(l,r[o].nextSibling)}else t.util.unwrap(r[o],this.document)}}return i},splitTextBeforeEnd:function(t,e){for(var n=this.document.createTreeWalker(t,NodeFilter.SHOW_TEXT,null,!1),r=!0;r;)r=null!==n.lastChild();for(var i,o,a;e>0&&null!==a;)i=n.currentNode,o=i.nodeValue,o.length>e?(a=i.splitText(o.length-e),e=0):(a=n.previousNode(),e-=o.length);return a},performLinkingWithinElement:function(e){for(var n=this.findLinkableText(e),r=!1,i=0;i<n.length;i++){var o=t.util.findOrCreateMatchingTextNodes(this.document,e,n[i]);this.shouldNotLink(o)||this.createAutoLink(o,n[i].href)}return r},shouldNotLink:function(e){for(var n=!1,r=0;r<e.length&&n===!1;r++)n=!!t.util.traverseUp(e[r],function(t){return"a"===t.nodeName.toLowerCase()||t.getAttribute&&"true"===t.getAttribute("data-auto-link")});return n},findLinkableText:function(t){for(var e=t.textContent,r=null,i=[];null!==(r=a.exec(e));){var s=!0,u=r.index+r[0].length;s=!(0!==r.index&&n.indexOf(e[r.index-1])===-1||u!==e.length&&n.indexOf(e[u])===-1),s=s&&(r[0].indexOf("/")!==-1||o.test(r[0].split(".").pop().split("?").shift())),s&&i.push({href:r[0],start:r.index,end:u})}return i},createAutoLink:function(e,n){n=t.util.ensureUrlHasProtocol(n);var r=t.util.createLink(this.document,e,n,this.getEditorOption("targetBlank")?"_blank":null),i=this.document.createElement("span");for(i.setAttribute("data-auto-link","true"),i.setAttribute("data-href",n),r.insertBefore(i,r.firstChild);r.childNodes.length>1;)i.appendChild(r.childNodes[1])}});t.extensions.autoLink=s}(),function(){function e(e){var r=t.util.getContainerEditorElement(e),i=Array.prototype.slice.call(r.parentElement.querySelectorAll("."+n));i.forEach(function(t){t.classList.remove(n)})}var n="medium-editor-dragover",r=t.Extension.extend({name:"fileDragging",allowedTypes:["image"],init:function(){t.Extension.prototype.init.apply(this,arguments),this.subscribe("editableDrag",this.handleDrag.bind(this)),this.subscribe("editableDrop",this.handleDrop.bind(this))},handleDrag:function(t){t.preventDefault(),t.dataTransfer.dropEffect="copy";var r=t.target.classList?t.target:t.target.parentElement;e(r),"dragover"===t.type&&r.classList.add(n)},handleDrop:function(t){t.preventDefault(),t.stopPropagation(),this.base.selectElement(t.target);var n=this.base.exportSelection();n.start=n.end,this.base.importSelection(n),t.dataTransfer.files&&Array.prototype.slice.call(t.dataTransfer.files).forEach(function(t){this.isAllowedFile(t)&&t.type.match("image")&&this.insertImageFile(t)},this),e(t.target)},isAllowedFile:function(t){return this.allowedTypes.some(function(e){return!!t.type.match(e)})},insertImageFile:function(e){if("function"==typeof FileReader){var n=new FileReader;n.readAsDataURL(e),n.addEventListener("load",function(e){var n=this.document.createElement("img");n.src=e.target.result,t.util.insertHTMLCommand(this.document,n.outerHTML)}.bind(this))}}});t.extensions.fileDragging=r}(),function(){var e=t.Extension.extend({name:"keyboard-commands",commands:[{command:"bold",key:"B",meta:!0,shift:!1,alt:!1},{command:"italic",key:"I",meta:!0,shift:!1,alt:!1},{command:"underline",key:"U",meta:!0,shift:!1,alt:!1}],init:function(){t.Extension.prototype.init.apply(this,arguments),this.subscribe("editableKeydown",this.handleKeydown.bind(this)),this.keys={},this.commands.forEach(function(t){var e=t.key.charCodeAt(0);this.keys[e]||(this.keys[e]=[]),this.keys[e].push(t)},this)},handleKeydown:function(e){var n=t.util.getKeyCode(e);if(this.keys[n]){var r=t.util.isMetaCtrlKey(e),i=!!e.shiftKey,o=!!e.altKey;this.keys[n].forEach(function(t){t.meta!==r||t.shift!==i||t.alt!==o&&void 0!==t.alt||(e.preventDefault(),e.stopPropagation(),"function"==typeof t.command?t.command.apply(this):!1!==t.command&&this.execAction(t.command))},this)}}});t.extensions.keyboardCommands=e}(),function(){var e=t.extensions.form.extend({name:"fontname",action:"fontName",aria:"change font name",contentDefault:"±",contentFA:'<i class="fa fa-font"></i>',fonts:["","Arial","Verdana","Times New Roman"],init:function(){t.extensions.form.prototype.init.apply(this,arguments)},handleClick:function(t){if(t.preventDefault(),t.stopPropagation(),!this.isDisplayed()){var e=this.document.queryCommandValue("fontName")+"";this.showForm(e)}return!1},getForm:function(){return this.form||(this.form=this.createForm()),this.form},isDisplayed:function(){return"block"===this.getForm().style.display},hideForm:function(){this.getForm().style.display="none",this.getSelect().value=""},showForm:function(t){var e=this.getSelect();this.base.saveSelection(),this.hideToolbarDefaultActions(),this.getForm().style.display="block",this.setToolbarPosition(),e.value=t||"",e.focus()},destroy:function(){return!!this.form&&(this.form.parentNode&&this.form.parentNode.removeChild(this.form),void delete this.form)},doFormSave:function(){this.base.restoreSelection(),this.base.checkSelection()},doFormCancel:function(){this.base.restoreSelection(),this.clearFontName(),this.base.checkSelection()},createForm:function(){var t,e=this.document,n=e.createElement("div"),r=e.createElement("select"),i=e.createElement("a"),o=e.createElement("a");n.className="medium-editor-toolbar-form",n.id="medium-editor-toolbar-form-fontname-"+this.getEditorId(),this.on(n,"click",this.handleFormClick.bind(this));for(var a=0;a<this.fonts.length;a++)t=e.createElement("option"),t.innerHTML=this.fonts[a],t.value=this.fonts[a],r.appendChild(t);return r.className="medium-editor-toolbar-select",n.appendChild(r),this.on(r,"change",this.handleFontChange.bind(this)),o.setAttribute("href","#"),o.className="medium-editor-toobar-save",o.innerHTML="fontawesome"===this.getEditorOption("buttonLabels")?'<i class="fa fa-check"></i>':"✓",n.appendChild(o),this.on(o,"click",this.handleSaveClick.bind(this),!0),i.setAttribute("href","#"),i.className="medium-editor-toobar-close",i.innerHTML="fontawesome"===this.getEditorOption("buttonLabels")?'<i class="fa fa-times"></i>':"×",n.appendChild(i),this.on(i,"click",this.handleCloseClick.bind(this)),n},getSelect:function(){return this.getForm().querySelector("select.medium-editor-toolbar-select")},clearFontName:function(){t.selection.getSelectedElements(this.document).forEach(function(t){"font"===t.nodeName.toLowerCase()&&t.hasAttribute("face")&&t.removeAttribute("face")})},handleFontChange:function(){var t=this.getSelect().value;""===t?this.clearFontName():this.execAction("fontName",{value:t})},handleFormClick:function(t){t.stopPropagation()},handleSaveClick:function(t){t.preventDefault(),this.doFormSave()},handleCloseClick:function(t){t.preventDefault(),this.doFormCancel()}});t.extensions.fontName=e}(),function(){var e=t.extensions.form.extend({name:"fontsize",action:"fontSize",aria:"increase/decrease font size",contentDefault:"±",contentFA:'<i class="fa fa-text-height"></i>',init:function(){t.extensions.form.prototype.init.apply(this,arguments)},handleClick:function(t){if(t.preventDefault(),t.stopPropagation(),!this.isDisplayed()){var e=this.document.queryCommandValue("fontSize")+"";this.showForm(e)}return!1},getForm:function(){return this.form||(this.form=this.createForm()),this.form},isDisplayed:function(){return"block"===this.getForm().style.display},hideForm:function(){this.getForm().style.display="none",this.getInput().value=""},showForm:function(t){var e=this.getInput();this.base.saveSelection(),this.hideToolbarDefaultActions(),this.getForm().style.display="block",this.setToolbarPosition(),e.value=t||"",e.focus()},destroy:function(){return!!this.form&&(this.form.parentNode&&this.form.parentNode.removeChild(this.form),void delete this.form)},doFormSave:function(){this.base.restoreSelection(),this.base.checkSelection()},doFormCancel:function(){this.base.restoreSelection(),this.clearFontSize(),this.base.checkSelection()},createForm:function(){var t=this.document,e=t.createElement("div"),n=t.createElement("input"),r=t.createElement("a"),i=t.createElement("a");return e.className="medium-editor-toolbar-form",e.id="medium-editor-toolbar-form-fontsize-"+this.getEditorId(),this.on(e,"click",this.handleFormClick.bind(this)),n.setAttribute("type","range"),n.setAttribute("min","1"),n.setAttribute("max","7"),n.className="medium-editor-toolbar-input",e.appendChild(n),this.on(n,"change",this.handleSliderChange.bind(this)),i.setAttribute("href","#"),i.className="medium-editor-toobar-save",i.innerHTML="fontawesome"===this.getEditorOption("buttonLabels")?'<i class="fa fa-check"></i>':"✓",e.appendChild(i),this.on(i,"click",this.handleSaveClick.bind(this),!0),r.setAttribute("href","#"),r.className="medium-editor-toobar-close",r.innerHTML="fontawesome"===this.getEditorOption("buttonLabels")?'<i class="fa fa-times"></i>':"×",e.appendChild(r),this.on(r,"click",this.handleCloseClick.bind(this)),e},getInput:function(){return this.getForm().querySelector("input.medium-editor-toolbar-input")},clearFontSize:function(){t.selection.getSelectedElements(this.document).forEach(function(t){"font"===t.nodeName.toLowerCase()&&t.hasAttribute("size")&&t.removeAttribute("size")})},handleSliderChange:function(){var t=this.getInput().value;"4"===t?this.clearFontSize():this.execAction("fontSize",{value:t})},handleFormClick:function(t){t.stopPropagation()},handleSaveClick:function(t){t.preventDefault(),this.doFormSave()},handleCloseClick:function(t){t.preventDefault(),this.doFormCancel()}});t.extensions.fontSize=e}(),function(){function e(){return[[new RegExp(/^[\s\S]*<body[^>]*>\s*|\s*<\/body[^>]*>[\s\S]*$/g),""],[new RegExp(/<!--StartFragment-->|<!--EndFragment-->/g),""],[new RegExp(/<br>$/i),""],[new RegExp(/<[^>]*docs-internal-guid[^>]*>/gi),""],[new RegExp(/<\/b>(<br[^>]*>)?$/gi),""],[new RegExp(/<span class="Apple-converted-space">\s+<\/span>/g)," "],[new RegExp(/<br class="Apple-interchange-newline">/g),"<br>"],[new RegExp(/<span[^>]*(font-style:italic;font-weight:(bold|700)|font-weight:(bold|700);font-style:italic)[^>]*>/gi),'<span class="replace-with italic bold">'],[new RegExp(/<span[^>]*font-style:italic[^>]*>/gi),'<span class="replace-with italic">'],[new RegExp(/<span[^>]*font-weight:(bold|700)[^>]*>/gi),'<span class="replace-with bold">'],[new RegExp(/<(\/?)(i|b|a)>/gi),"<$1$2>"],[new RegExp(/<a(?:(?!href).)+href=(?:"|”|“|"|“|”)(((?!"|”|“|"|“|”).)*)(?:"|”|“|"|“|”)(?:(?!>).)*>/gi),'<a href="$1">'],[new RegExp(/<\/p>\n+/gi),"</p>"],[new RegExp(/\n+<p/gi),"<p"],[new RegExp(/<\/?o:[a-z]*>/gi),""],[new RegExp(/<!\[if !supportLists\]>(((?!<!).)*)<!\[endif]\>/gi),"$1"]]}function n(t,e,n){var r=t.clipboardData||e.clipboardData||n.dataTransfer,i={};if(!r)return i;if(r.getData){var o=r.getData("Text");o&&o.length>0&&(i["text/plain"]=o)}if(r.types)for(var a=0;a<r.types.length;a++){var s=r.types[a];i[s]=r.getData(s)}return i}var r="%ME_PASTEBIN%",i=null,o=null,a=function(t){t.stopPropagation()},s=t.Extension.extend({forcePlainText:!0,cleanPastedHTML:!1,preCleanReplacements:[],cleanReplacements:[],cleanAttrs:["class","style","dir"],cleanTags:["meta"],unwrapTags:[],init:function(){t.Extension.prototype.init.apply(this,arguments),(this.forcePlainText||this.cleanPastedHTML)&&(this.subscribe("editableKeydown",this.handleKeydown.bind(this)),this.getEditorElements().forEach(function(t){this.on(t,"paste",this.handlePaste.bind(this))},this),this.subscribe("addElement",this.handleAddElement.bind(this)))},handleAddElement:function(t,e){this.on(e,"paste",this.handlePaste.bind(this))},destroy:function(){(this.forcePlainText||this.cleanPastedHTML)&&this.removePasteBin()},handlePaste:function(t,e){if(!t.defaultPrevented){var r=n(t,this.window,this.document),i=r["text/html"],o=r["text/plain"];this.window.clipboardData&&void 0===t.clipboardData&&!i&&(i=o),(i||o)&&(t.preventDefault(),this.doPaste(i,o,e))}},doPaste:function(e,n,r){var i,o,a="";if(this.cleanPastedHTML&&e)return this.cleanPaste(e);if(n){if(this.getEditorOption("disableReturn")||r&&r.getAttribute("data-disable-return"))a=t.util.htmlEntities(n);else if(i=n.split(/[\r\n]+/g),i.length>1)for(o=0;o<i.length;o+=1)""!==i[o]&&(a+="<p>"+t.util.htmlEntities(i[o])+"</p>");else a=t.util.htmlEntities(i[0]);t.util.insertHTMLCommand(this.document,a)}},handlePasteBinPaste:function(t){if(t.defaultPrevented)return void this.removePasteBin();var e=n(t,this.window,this.document),r=e["text/html"],i=e["text/plain"],a=o;return!this.cleanPastedHTML||r?(t.preventDefault(),this.removePasteBin(),this.doPaste(r,i,a),void this.trigger("editablePaste",{currentTarget:a,target:a},a)):void setTimeout(function(){this.cleanPastedHTML&&(r=this.getPasteBinHtml()),this.removePasteBin(),this.doPaste(r,i,a),this.trigger("editablePaste",{currentTarget:a,target:a},a)}.bind(this),0)},handleKeydown:function(e,n){t.util.isKey(e,t.util.keyCode.V)&&t.util.isMetaCtrlKey(e)&&(e.stopImmediatePropagation(),this.removePasteBin(),this.createPasteBin(n))},createPasteBin:function(e){var n,s=t.selection.getSelectionRange(this.document),u=this.window.pageYOffset;o=e,s&&(n=s.getClientRects(),u+=n.length?n[0].top:void 0!==s.startContainer.getBoundingClientRect?s.startContainer.getBoundingClientRect().top:s.getBoundingClientRect().top),i=s;var l=this.document.createElement("div");l.id=this.pasteBinId="medium-editor-pastebin-"+ +Date.now(),l.setAttribute("style","border: 1px red solid; position: absolute; top: "+u+"px; width: 10px; height: 10px; overflow: hidden; opacity: 0"),l.setAttribute("contentEditable",!0),l.innerHTML=r,this.document.body.appendChild(l),this.on(l,"focus",a),this.on(l,"focusin",a),this.on(l,"focusout",a),l.focus(),t.selection.selectNode(l,this.document),this.boundHandlePaste||(this.boundHandlePaste=this.handlePasteBinPaste.bind(this)),this.on(l,"paste",this.boundHandlePaste)},removePasteBin:function(){null!==i&&(t.selection.selectRange(this.document,i),i=null),null!==o&&(o=null);var e=this.getPasteBin();e&&e&&(this.off(e,"focus",a),this.off(e,"focusin",a),this.off(e,"focusout",a),this.off(e,"paste",this.boundHandlePaste),e.parentElement.removeChild(e))},getPasteBin:function(){return this.document.getElementById(this.pasteBinId)},getPasteBinHtml:function(){var t=this.getPasteBin();if(!t)return!1;if(t.firstChild&&"mcepastebin"===t.firstChild.id)return!1;var e=t.innerHTML;return!(!e||e===r)&&e},cleanPaste:function(t){var n,r,i,o,a=/<p|<br|<div/.test(t),s=[].concat(this.preCleanReplacements||[],e(),this.cleanReplacements||[]);for(n=0;n<s.length;n+=1)t=t.replace(s[n][0],s[n][1]);if(!a)return this.pasteHTML(t);for(i=this.document.createElement("div"),i.innerHTML="<p>"+t.split("<br><br>").join("</p><p>")+"</p>",r=i.querySelectorAll("a,p,div,br"),n=0;n<r.length;n+=1)switch(o=r[n],o.innerHTML=o.innerHTML.replace(/\n/gi," "),o.nodeName.toLowerCase()){case"p":case"div":this.filterCommonBlocks(o);break;case"br":this.filterLineBreak(o)}this.pasteHTML(i.innerHTML)},pasteHTML:function(e,n){n=t.util.defaults({},n,{cleanAttrs:this.cleanAttrs,cleanTags:this.cleanTags,unwrapTags:this.unwrapTags});var r,i,o,a,s=this.document.createDocumentFragment();for(s.appendChild(this.document.createElement("body")),a=s.querySelector("body"),a.innerHTML=e,this.cleanupSpans(a),r=a.querySelectorAll("*"),o=0;o<r.length;o+=1)i=r[o],"a"===i.nodeName.toLowerCase()&&this.getEditorOption("targetBlank")&&t.util.setTargetBlank(i),t.util.cleanupAttrs(i,n.cleanAttrs),t.util.cleanupTags(i,n.cleanTags),t.util.unwrapTags(i,n.unwrapTags);t.util.insertHTMLCommand(this.document,a.innerHTML.replace(/ /g," "))},isCommonBlock:function(t){return t&&("p"===t.nodeName.toLowerCase()||"div"===t.nodeName.toLowerCase())},filterCommonBlocks:function(t){/^\s*$/.test(t.textContent)&&t.parentNode&&t.parentNode.removeChild(t)},filterLineBreak:function(t){this.isCommonBlock(t.previousElementSibling)?this.removeWithParent(t):!this.isCommonBlock(t.parentNode)||t.parentNode.firstChild!==t&&t.parentNode.lastChild!==t?t.parentNode&&1===t.parentNode.childElementCount&&""===t.parentNode.textContent&&this.removeWithParent(t):this.removeWithParent(t)},removeWithParent:function(t){t&&t.parentNode&&(t.parentNode.parentNode&&1===t.parentNode.childElementCount?t.parentNode.parentNode.removeChild(t.parentNode):t.parentNode.removeChild(t))},cleanupSpans:function(e){var n,r,i,o=e.querySelectorAll(".replace-with"),a=function(t){return t&&"#text"!==t.nodeName&&"false"===t.getAttribute("contenteditable")};for(n=0;n<o.length;n+=1)r=o[n],i=this.document.createElement(r.classList.contains("bold")?"b":"i"),r.classList.contains("bold")&&r.classList.contains("italic")?i.innerHTML="<i>"+r.innerHTML+"</i>":i.innerHTML=r.innerHTML,r.parentNode.replaceChild(i,r);for(o=e.querySelectorAll("span"),n=0;n<o.length;n+=1){if(r=o[n],t.util.traverseUp(r,a))return!1;t.util.unwrap(r,this.document)}}});t.extensions.paste=s}(),function(){var e=t.Extension.extend({name:"placeholder",text:"Type your text",hideOnClick:!0,init:function(){t.Extension.prototype.init.apply(this,arguments),this.initPlaceholders(),this.attachEventHandlers()},initPlaceholders:function(){this.getEditorElements().forEach(this.initElement,this)},handleAddElement:function(t,e){this.initElement(e)},initElement:function(t){t.getAttribute("data-placeholder")||t.setAttribute("data-placeholder",this.text),this.updatePlaceholder(t)},destroy:function(){this.getEditorElements().forEach(this.cleanupElement,this)},handleRemoveElement:function(t,e){this.cleanupElement(e)},cleanupElement:function(t){t.getAttribute("data-placeholder")===this.text&&t.removeAttribute("data-placeholder")},showPlaceholder:function(e){e&&(t.util.isFF&&0===e.childNodes.length?(e.classList.add("medium-editor-placeholder-relative"),e.classList.remove("medium-editor-placeholder")):(e.classList.add("medium-editor-placeholder"),e.classList.remove("medium-editor-placeholder-relative")))},hidePlaceholder:function(t){t&&(t.classList.remove("medium-editor-placeholder"),t.classList.remove("medium-editor-placeholder-relative"))},updatePlaceholder:function(t,e){return t.querySelector("img, blockquote, ul, ol, table")||""!==t.textContent.replace(/^\s+|\s+$/g,"")?this.hidePlaceholder(t):void(e||this.showPlaceholder(t))},attachEventHandlers:function(){this.hideOnClick&&this.subscribe("focus",this.handleFocus.bind(this)),this.subscribe("editableInput",this.handleInput.bind(this)),this.subscribe("blur",this.handleBlur.bind(this)),this.subscribe("addElement",this.handleAddElement.bind(this)),this.subscribe("removeElement",this.handleRemoveElement.bind(this))},handleInput:function(t,e){var n=this.hideOnClick&&e===this.base.getFocusedElement();this.updatePlaceholder(e,n)},handleFocus:function(t,e){this.hidePlaceholder(e)},handleBlur:function(t,e){this.updatePlaceholder(e)}});t.extensions.placeholder=e}(),function(){var e=t.Extension.extend({name:"toolbar",align:"center",allowMultiParagraphSelection:!0,buttons:["bold","italic","underline","anchor","h2","h3","quote"],diffLeft:0,diffTop:-10,firstButtonClass:"medium-editor-button-first",lastButtonClass:"medium-editor-button-last",standardizeSelectionStart:!1,"static":!1,sticky:!1,stickyTopOffset:0,updateOnEmptySelection:!1,relativeContainer:null,init:function(){t.Extension.prototype.init.apply(this,arguments),this.initThrottledMethods(),this.relativeContainer?this.relativeContainer.appendChild(this.getToolbarElement()):this.getEditorOption("elementsContainer").appendChild(this.getToolbarElement())},forEachExtension:function(t,e){return this.base.extensions.forEach(function(n){if(n!==this)return t.apply(e||this,arguments)},this)},createToolbar:function(){var t=this.document.createElement("div");return t.id="medium-editor-toolbar-"+this.getEditorId(),t.className="medium-editor-toolbar",this["static"]?t.className+=" static-toolbar":this.relativeContainer?t.className+=" medium-editor-relative-toolbar":t.className+=" medium-editor-stalker-toolbar",t.appendChild(this.createToolbarButtons()),this.forEachExtension(function(e){e.hasForm&&t.appendChild(e.getForm())}),this.attachEventHandlers(),t},createToolbarButtons:function(){var e,n,r,i,o,a,s=this.document.createElement("ul");return s.id="medium-editor-toolbar-actions"+this.getEditorId(),s.className="medium-editor-toolbar-actions",s.style.display="block",this.buttons.forEach(function(r){"string"==typeof r?(o=r,a=null):(o=r.name,a=r),i=this.base.addBuiltInExtension(o,a),i&&"function"==typeof i.getButton&&(n=i.getButton(this.base),e=this.document.createElement("li"),t.util.isElement(n)?e.appendChild(n):e.innerHTML=n,s.appendChild(e))},this),r=s.querySelectorAll("button"),r.length>0&&(r[0].classList.add(this.firstButtonClass),r[r.length-1].classList.add(this.lastButtonClass)),s},destroy:function(){this.toolbar&&(this.toolbar.parentNode&&this.toolbar.parentNode.removeChild(this.toolbar),delete this.toolbar)},getInteractionElements:function(){return this.getToolbarElement()},getToolbarElement:function(){return this.toolbar||(this.toolbar=this.createToolbar()),this.toolbar},getToolbarActionsElement:function(){return this.getToolbarElement().querySelector(".medium-editor-toolbar-actions")},initThrottledMethods:function(){this.throttledPositionToolbar=t.util.throttle(function(){this.base.isActive&&this.positionToolbarIfShown()}.bind(this))},attachEventHandlers:function(){this.subscribe("blur",this.handleBlur.bind(this)),this.subscribe("focus",this.handleFocus.bind(this)),this.subscribe("editableClick",this.handleEditableClick.bind(this)),this.subscribe("editableKeyup",this.handleEditableKeyup.bind(this)),this.on(this.document.documentElement,"mouseup",this.handleDocumentMouseup.bind(this)),this["static"]&&this.sticky&&this.on(this.window,"scroll",this.handleWindowScroll.bind(this),!0),this.on(this.window,"resize",this.handleWindowResize.bind(this))},handleWindowScroll:function(){this.positionToolbarIfShown()},handleWindowResize:function(){this.throttledPositionToolbar()},handleDocumentMouseup:function(e){return!(e&&e.target&&t.util.isDescendant(this.getToolbarElement(),e.target))&&void this.checkState()},handleEditableClick:function(){setTimeout(function(){this.checkState()}.bind(this),0)},handleEditableKeyup:function(){this.checkState()},handleBlur:function(){clearTimeout(this.hideTimeout),clearTimeout(this.delayShowTimeout),this.hideTimeout=setTimeout(function(){this.hideToolbar()}.bind(this),1)},handleFocus:function(){this.checkState()},isDisplayed:function(){return this.getToolbarElement().classList.contains("medium-editor-toolbar-active")},showToolbar:function(){clearTimeout(this.hideTimeout),this.isDisplayed()||(this.getToolbarElement().classList.add("medium-editor-toolbar-active"),this.trigger("showToolbar",{},this.base.getFocusedElement()))},hideToolbar:function(){this.isDisplayed()&&(this.getToolbarElement().classList.remove("medium-editor-toolbar-active"),this.trigger("hideToolbar",{},this.base.getFocusedElement()))},isToolbarDefaultActionsDisplayed:function(){return"block"===this.getToolbarActionsElement().style.display},hideToolbarDefaultActions:function(){this.isToolbarDefaultActionsDisplayed()&&(this.getToolbarActionsElement().style.display="none")},showToolbarDefaultActions:function(){this.hideExtensionForms(),this.isToolbarDefaultActionsDisplayed()||(this.getToolbarActionsElement().style.display="block"),this.delayShowTimeout=this.base.delay(function(){this.showToolbar()}.bind(this))},hideExtensionForms:function(){this.forEachExtension(function(t){t.hasForm&&t.isDisplayed()&&t.hideForm()})},multipleBlockElementsSelected:function(){var e=/<[^\/>][^>]*><\/[^>]+>/gim,n=new RegExp("<("+t.util.blockContainerElementNames.join("|")+")[^>]*>","g"),r=t.selection.getSelectionHtml(this.document).replace(e,""),i=r.match(n);return!!i&&i.length>1},modifySelection:function(){var e=this.window.getSelection(),n=e.getRangeAt(0);if(this.standardizeSelectionStart&&n.startContainer.nodeValue&&n.startOffset===n.startContainer.nodeValue.length){var r=t.util.findAdjacentTextNodeWithContent(t.selection.getSelectionElement(this.window),n.startContainer,this.document);if(r){for(var i=0;0===r.nodeValue.substr(i,1).trim().length;)i+=1;n=t.selection.select(this.document,r,i,n.endContainer,n.endOffset)}}},checkState:function(){if(!this.base.preventSelectionUpdates){if(!this.base.getFocusedElement()||t.selection.selectionInContentEditableFalse(this.window))return this.hideToolbar();var e=t.selection.getSelectionElement(this.window);return!e||this.getEditorElements().indexOf(e)===-1||e.getAttribute("data-disable-toolbar")?this.hideToolbar():this.updateOnEmptySelection&&this["static"]?this.showAndUpdateToolbar():!t.selection.selectionContainsContent(this.document)||this.allowMultiParagraphSelection===!1&&this.multipleBlockElementsSelected()?this.hideToolbar():void this.showAndUpdateToolbar()}},showAndUpdateToolbar:function(){this.modifySelection(),this.setToolbarButtonStates(),this.trigger("positionToolbar",{},this.base.getFocusedElement()),this.showToolbarDefaultActions(),this.setToolbarPosition()},setToolbarButtonStates:function(){this.forEachExtension(function(t){"function"==typeof t.isActive&&"function"==typeof t.setInactive&&t.setInactive()}),this.checkActiveButtons()},checkActiveButtons:function(){var e,n=[],r=null,i=t.selection.getSelectionRange(this.document),o=function(t){"function"==typeof t.checkState?t.checkState(e):"function"==typeof t.isActive&&"function"==typeof t.isAlreadyApplied&&"function"==typeof t.setActive&&!t.isActive()&&t.isAlreadyApplied(e)&&t.setActive()};if(i&&(this.forEachExtension(function(t){return"function"==typeof t.queryCommandState&&(r=t.queryCommandState(),null!==r)?void(r&&"function"==typeof t.setActive&&t.setActive()):void n.push(t)}),e=t.selection.getSelectedParentElement(i),this.getEditorElements().some(function(n){return t.util.isDescendant(n,e,!0)})))for(;e&&(n.forEach(o),!t.util.isMediumEditorElement(e));)e=e.parentNode},positionToolbarIfShown:function(){this.isDisplayed()&&this.setToolbarPosition()},setToolbarPosition:function(){var t=this.base.getFocusedElement(),e=this.window.getSelection();return t?void(!this["static"]&&e.isCollapsed||(this.showToolbar(),this.relativeContainer||(this["static"]?this.positionStaticToolbar(t):this.positionToolbar(e)),this.trigger("positionedToolbar",{},this.base.getFocusedElement()))):this},positionStaticToolbar:function(t){this.getToolbarElement().style.left="0";var e,n=this.document.documentElement&&this.document.documentElement.scrollTop||this.document.body.scrollTop,r=this.window.innerWidth,i=this.getToolbarElement(),o=t.getBoundingClientRect(),a=o.top+n,s=o.left+o.width/2,u=i.offsetHeight,l=i.offsetWidth,c=l/2;switch(this.sticky?n>a+t.offsetHeight-u-this.stickyTopOffset?(i.style.top=a+t.offsetHeight-u+"px",i.classList.remove("medium-editor-sticky-toolbar")):n>a-u-this.stickyTopOffset?(i.classList.add("medium-editor-sticky-toolbar"),i.style.top=this.stickyTopOffset+"px"):(i.classList.remove("medium-editor-sticky-toolbar"),i.style.top=a-u+"px"):i.style.top=a-u+"px",this.align){case"left":e=o.left;break;case"right":e=o.right-l;break;case"center":e=s-c}e<0?e=0:e+l>r&&(e=r-Math.ceil(l)-1),i.style.left=e+"px"},positionToolbar:function(t){this.getToolbarElement().style.left="0",this.getToolbarElement().style.right="initial";var e=t.getRangeAt(0),n=e.getBoundingClientRect();(!n||0===n.height&&0===n.width&&e.startContainer===e.endContainer)&&(n=1===e.startContainer.nodeType&&e.startContainer.querySelector("img")?e.startContainer.querySelector("img").getBoundingClientRect():e.startContainer.getBoundingClientRect());var r,i,o=this.window.innerWidth,a=this.getToolbarElement(),s=a.offsetHeight,u=a.offsetWidth,l=u/2,c=50,f=this.diffLeft-l,h=this.getEditorOption("elementsContainer"),d=["absolute","fixed"].indexOf(window.getComputedStyle(h).getPropertyValue("position"))>-1,p={},m={};d?(i=h.getBoundingClientRect(),["top","left"].forEach(function(t){m[t]=n[t]-i[t]}),m.width=n.width,m.height=n.height,n=m,o=i.width,p.top=h.scrollTop):p.top=this.window.pageYOffset,r=n.left+n.width/2,p.top+=n.top-s,n.top<c?(a.classList.add("medium-toolbar-arrow-over"),a.classList.remove("medium-toolbar-arrow-under"),p.top+=c+n.height-this.diffTop):(a.classList.add("medium-toolbar-arrow-under"),a.classList.remove("medium-toolbar-arrow-over"),p.top+=this.diffTop),r<l?(p.left=f+l,p.right="initial"):o-r<l?(p.left="auto",p.right=0):(p.left=f+r,p.right="initial"),["top","left","right"].forEach(function(t){a.style[t]=p[t]+(isNaN(p[t])?"":"px")})}});t.extensions.toolbar=e}(),function(){var e=t.Extension.extend({init:function(){t.Extension.prototype.init.apply(this,arguments),this.subscribe("editableDrag",this.handleDrag.bind(this)),this.subscribe("editableDrop",this.handleDrop.bind(this));
|
||
},handleDrag:function(t){var e="medium-editor-dragover";t.preventDefault(),t.dataTransfer.dropEffect="copy","dragover"===t.type?t.target.classList.add(e):"dragleave"===t.type&&t.target.classList.remove(e)},handleDrop:function(e){var n,r="medium-editor-dragover";e.preventDefault(),e.stopPropagation(),e.dataTransfer.files&&(n=Array.prototype.slice.call(e.dataTransfer.files,0),n.some(function(e){if(e.type.match("image")){var n,r;n=new FileReader,n.readAsDataURL(e),r="medium-img-"+ +new Date,t.util.insertHTMLCommand(this.document,'<img class="medium-editor-image-loading" id="'+r+'" />'),n.onload=function(){var t=this.document.getElementById(r);t&&(t.removeAttribute("id"),t.removeAttribute("class"),t.src=n.result)}.bind(this)}}.bind(this))),e.target.classList.remove(r)}});t.extensions.imageDragging=e}(),function(){function e(e){var n=t.selection.getSelectionStart(this.options.ownerDocument),r=n.textContent,i=t.selection.getCaretOffsets(n);(void 0===r[i.left-1]||""===r[i.left-1].trim()||void 0!==r[i.left]&&""===r[i.left].trim())&&e.preventDefault()}function n(e,n){if(this.options.disableReturn||n.getAttribute("data-disable-return"))e.preventDefault();else if(this.options.disableDoubleReturn||n.getAttribute("data-disable-double-return")){var r=t.selection.getSelectionStart(this.options.ownerDocument);(r&&""===r.textContent.trim()&&"li"!==r.nodeName.toLowerCase()||r.previousElementSibling&&"br"!==r.previousElementSibling.nodeName.toLowerCase()&&""===r.previousElementSibling.textContent.trim())&&e.preventDefault()}}function r(e){var n=t.selection.getSelectionStart(this.options.ownerDocument),r=n&&n.nodeName.toLowerCase();"pre"===r&&(e.preventDefault(),t.util.insertHTMLCommand(this.options.ownerDocument," ")),t.util.isListItem(n)&&(e.preventDefault(),e.shiftKey?this.options.ownerDocument.execCommand("outdent",!1,null):this.options.ownerDocument.execCommand("indent",!1,null))}function i(e){var n,r=t.selection.getSelectionStart(this.options.ownerDocument),i=r.nodeName.toLowerCase(),o=/^(\s+|<br\/?>)?$/i,a=/h\d/i;t.util.isKey(e,[t.util.keyCode.BACKSPACE,t.util.keyCode.ENTER])&&r.previousElementSibling&&a.test(i)&&0===t.selection.getCaretOffsets(r).left?t.util.isKey(e,t.util.keyCode.BACKSPACE)&&o.test(r.previousElementSibling.innerHTML)?(r.previousElementSibling.parentNode.removeChild(r.previousElementSibling),e.preventDefault()):!this.options.disableDoubleReturn&&t.util.isKey(e,t.util.keyCode.ENTER)&&(n=this.options.ownerDocument.createElement("p"),n.innerHTML="<br>",r.previousElementSibling.parentNode.insertBefore(n,r),e.preventDefault()):t.util.isKey(e,t.util.keyCode.DELETE)&&r.nextElementSibling&&r.previousElementSibling&&!a.test(i)&&o.test(r.innerHTML)&&a.test(r.nextElementSibling.nodeName.toLowerCase())?(t.selection.moveCursor(this.options.ownerDocument,r.nextElementSibling),r.previousElementSibling.parentNode.removeChild(r),e.preventDefault()):t.util.isKey(e,t.util.keyCode.BACKSPACE)&&"li"===i&&o.test(r.innerHTML)&&!r.previousElementSibling&&!r.parentElement.previousElementSibling&&r.nextElementSibling&&"li"===r.nextElementSibling.nodeName.toLowerCase()?(n=this.options.ownerDocument.createElement("p"),n.innerHTML="<br>",r.parentElement.parentElement.insertBefore(n,r.parentElement),t.selection.moveCursor(this.options.ownerDocument,n),r.parentElement.removeChild(r),e.preventDefault()):t.util.isKey(e,t.util.keyCode.BACKSPACE)&&t.util.getClosestTag(r,"blockquote")!==!1&&0===t.selection.getCaretOffsets(r).left?(e.preventDefault(),t.util.execFormatBlock(this.options.ownerDocument,"p")):t.util.isKey(e,t.util.keyCode.ENTER)&&t.util.getClosestTag(r,"blockquote")!==!1&&0===t.selection.getCaretOffsets(r).right?(n=this.options.ownerDocument.createElement("p"),n.innerHTML="<br>",r.parentElement.insertBefore(n,r.nextSibling),t.selection.moveCursor(this.options.ownerDocument,n),e.preventDefault()):t.util.isKey(e,t.util.keyCode.BACKSPACE)&&t.util.isMediumEditorElement(r.parentElement)&&!r.previousElementSibling&&r.nextElementSibling&&o.test(r.innerHTML)&&(e.preventDefault(),t.selection.moveCursor(this.options.ownerDocument,r.nextSibling),r.parentElement.removeChild(r))}function o(e){var n,r=t.selection.getSelectionStart(this.options.ownerDocument);r&&(t.util.isMediumEditorElement(r)&&0===r.children.length&&!t.util.isBlockContainer(r)&&this.options.ownerDocument.execCommand("formatBlock",!1,"p"),!t.util.isKey(e,t.util.keyCode.ENTER)||t.util.isListItem(r)||t.util.isBlockContainer(r)||(n=r.nodeName.toLowerCase(),"a"===n?this.options.ownerDocument.execCommand("unlink",!1,null):e.shiftKey||e.ctrlKey||this.options.ownerDocument.execCommand("formatBlock",!1,"p")))}function a(t,e){var n=e.parentNode.querySelector('textarea[medium-editor-textarea-id="'+e.getAttribute("medium-editor-textarea-id")+'"]');n&&(n.value=e.innerHTML.trim())}function s(t){t._mediumEditors||(t._mediumEditors=[null]),this.id||(this.id=t._mediumEditors.length),t._mediumEditors[this.id]=this}function u(t){t._mediumEditors&&t._mediumEditors[this.id]&&(t._mediumEditors[this.id]=null)}function l(e,n,r){var i=[];if(e||(e=[]),"string"==typeof e&&(e=n.querySelectorAll(e)),t.util.isElement(e)&&(e=[e]),r)for(var o=0;o<e.length;o++){var a=e[o];!t.util.isElement(a)||a.getAttribute("data-medium-editor-element")||a.getAttribute("medium-editor-textarea-id")||i.push(a)}else i=Array.prototype.slice.apply(e);return i}function c(t){var e=t.parentNode.querySelector('textarea[medium-editor-textarea-id="'+t.getAttribute("medium-editor-textarea-id")+'"]');e&&(e.classList.remove("medium-editor-hidden"),e.removeAttribute("medium-editor-textarea-id")),t.parentNode&&t.parentNode.removeChild(t)}function f(t,e){return Object.keys(e).forEach(function(n){void 0===t[n]&&(t[n]=e[n])}),t}function h(t,e,n){var r={window:n.options.contentWindow,document:n.options.ownerDocument,base:n};return t=f(t,r),"function"==typeof t.init&&t.init(),t.name||(t.name=e),t}function d(){return!this.elements.every(function(t){return!!t.getAttribute("data-disable-toolbar")})&&this.options.toolbar!==!1}function p(){return!!d.call(this)&&this.options.anchorPreview!==!1}function m(){return this.options.placeholder!==!1}function g(){return this.options.autoLink!==!1}function v(){return this.options.imageDragging!==!1}function y(){return this.options.keyboardCommands!==!1}function b(){return!this.options.extensions.imageDragging}function _(t){for(var e=this.options.ownerDocument.createElement("div"),n=Date.now(),r="medium-editor-"+n,i=t.attributes;this.options.ownerDocument.getElementById(r);)n++,r="medium-editor-"+n;e.className=t.className,e.id=r,e.innerHTML=t.value,t.setAttribute("medium-editor-textarea-id",r);for(var o=0,a=i.length;o<a;o++)e.hasAttribute(i[o].nodeName)||e.setAttribute(i[o].nodeName,i[o].value);return t.form&&this.on(t.form,"reset",function(t){t.defaultPrevented||this.resetContent(this.options.ownerDocument.getElementById(r))}.bind(this)),t.classList.add("medium-editor-hidden"),t.parentNode.insertBefore(e,t),e}function w(e,r){if(!e.getAttribute("data-medium-editor-element")){"textarea"===e.nodeName.toLowerCase()&&(e=_.call(this,e),this.instanceHandleEditableInput||(this.instanceHandleEditableInput=a.bind(this),this.subscribe("editableInput",this.instanceHandleEditableInput))),this.options.disableEditing||e.getAttribute("data-disable-editing")||(e.setAttribute("contentEditable",!0),e.setAttribute("spellcheck",this.options.spellcheck)),this.instanceHandleEditableKeydownEnter||(e.getAttribute("data-disable-return")||e.getAttribute("data-disable-double-return"))&&(this.instanceHandleEditableKeydownEnter=n.bind(this),this.subscribe("editableKeydownEnter",this.instanceHandleEditableKeydownEnter)),this.options.disableReturn||e.getAttribute("data-disable-return")||this.on(e,"keyup",o.bind(this));var i=t.util.guid();e.setAttribute("data-medium-editor-element",!0),e.classList.add("medium-editor-element"),e.setAttribute("role","textbox"),e.setAttribute("aria-multiline",!0),e.setAttribute("data-medium-editor-editor-index",r),e.setAttribute("medium-editor-index",i),S[i]=e.innerHTML,this.events.attachAllEventsToElement(e)}return e}function x(){this.subscribe("editableKeydownTab",r.bind(this)),this.subscribe("editableKeydownDelete",i.bind(this)),this.subscribe("editableKeydownEnter",i.bind(this)),this.options.disableExtraSpaces&&this.subscribe("editableKeydownSpace",e.bind(this)),this.instanceHandleEditableKeydownEnter||(this.options.disableReturn||this.options.disableDoubleReturn)&&(this.instanceHandleEditableKeydownEnter=n.bind(this),this.subscribe("editableKeydownEnter",this.instanceHandleEditableKeydownEnter))}function k(){if(this.extensions=[],Object.keys(this.options.extensions).forEach(function(t){"toolbar"!==t&&this.options.extensions[t]&&this.extensions.push(h(this.options.extensions[t],t,this))},this),b.call(this)){var e=this.options.fileDragging;e||(e={},v.call(this)||(e.allowedTypes=[])),this.addBuiltInExtension("fileDragging",e)}var n={paste:!0,"anchor-preview":p.call(this),autoLink:g.call(this),keyboardCommands:y.call(this),placeholder:m.call(this)};Object.keys(n).forEach(function(t){n[t]&&this.addBuiltInExtension(t)},this);var r=this.options.extensions.toolbar;if(!r&&d.call(this)){var i=t.util.extend({},this.options.toolbar,{allowMultiParagraphSelection:this.options.allowMultiParagraphSelection});r=new t.extensions.toolbar(i)}r&&this.extensions.push(h(r,"toolbar",this))}function C(e,n){var r=[["allowMultiParagraphSelection","toolbar.allowMultiParagraphSelection"]];return n&&r.forEach(function(e){n.hasOwnProperty(e[0])&&void 0!==n[e[0]]&&t.util.deprecated(e[0],e[1],"v6.0.0")}),t.util.defaults({},n,e)}function E(e,n){var r,i,o=/^append-(.+)$/gi,a=/justify([A-Za-z]*)$/g;if(r=o.exec(e))return t.util.execFormatBlock(this.options.ownerDocument,r[1]);if("fontSize"===e)return n.size&&t.util.deprecated(".size option for fontSize command",".value","6.0.0"),i=n.value||n.size,this.options.ownerDocument.execCommand("fontSize",!1,i);if("fontName"===e)return n.name&&t.util.deprecated(".name option for fontName command",".value","6.0.0"),i=n.value||n.name,this.options.ownerDocument.execCommand("fontName",!1,i);if("createLink"===e)return this.createLink(n);if("image"===e){var s=this.options.contentWindow.getSelection().toString().trim();return this.options.ownerDocument.execCommand("insertImage",!1,s)}if("html"===e){var u=this.options.contentWindow.getSelection().toString().trim();return t.util.insertHTMLCommand(this.options.ownerDocument,u)}if(a.exec(e)){var l=this.options.ownerDocument.execCommand(e,!1,null),c=t.selection.getSelectedParentElement(t.selection.getSelectionRange(this.options.ownerDocument));return c&&$.call(this,t.util.getTopBlockContainer(c)),l}return i=n&&n.value,this.options.ownerDocument.execCommand(e,!1,i)}function $(e){if(e){var n,r=Array.prototype.slice.call(e.childNodes).filter(function(t){var e="div"===t.nodeName.toLowerCase();return e&&!n&&(n=t.style.textAlign),e});r.length&&(this.saveSelection(),r.forEach(function(e){if(e.style.textAlign===n){var r=e.lastChild;if(r){t.util.unwrap(e,this.options.ownerDocument);var i=this.options.ownerDocument.createElement("BR");r.parentNode.insertBefore(i,r.nextSibling)}}},this),e.style.textAlign=n,this.restoreSelection())}}var S={};t.prototype={init:function(t,e){return this.options=C.call(this,this.defaults,e),this.origElements=t,this.options.elementsContainer||(this.options.elementsContainer=this.options.ownerDocument.body),this.setup()},setup:function(){this.isActive||(s.call(this,this.options.contentWindow),this.events=new t.Events(this),this.elements=[],this.addElements(this.origElements),0!==this.elements.length&&(this.isActive=!0,k.call(this),x.call(this)))},destroy:function(){this.isActive&&(this.isActive=!1,this.extensions.forEach(function(t){"function"==typeof t.destroy&&t.destroy()},this),this.events.destroy(),this.elements.forEach(function(t){this.options.spellcheck&&(t.innerHTML=t.innerHTML),t.removeAttribute("contentEditable"),t.removeAttribute("spellcheck"),t.removeAttribute("data-medium-editor-element"),t.classList.remove("medium-editor-element"),t.removeAttribute("role"),t.removeAttribute("aria-multiline"),t.removeAttribute("medium-editor-index"),t.removeAttribute("data-medium-editor-editor-index"),t.getAttribute("medium-editor-textarea-id")&&c(t)},this),this.elements=[],this.instanceHandleEditableKeydownEnter=null,this.instanceHandleEditableInput=null,u.call(this,this.options.contentWindow))},on:function(t,e,n,r){return this.events.attachDOMEvent(t,e,n,r),this},off:function(t,e,n,r){return this.events.detachDOMEvent(t,e,n,r),this},subscribe:function(t,e){return this.events.attachCustomEvent(t,e),this},unsubscribe:function(t,e){return this.events.detachCustomEvent(t,e),this},trigger:function(t,e,n){return this.events.triggerCustomEvent(t,e,n),this},delay:function(t){var e=this;return setTimeout(function(){e.isActive&&t()},this.options.delay)},serialize:function(){var t,e,n={},r=this.elements.length;for(t=0;t<r;t+=1)e=""!==this.elements[t].id?this.elements[t].id:"element-"+t,n[e]={value:this.elements[t].innerHTML.trim()};return n},getExtensionByName:function(t){var e;return this.extensions&&this.extensions.length&&this.extensions.some(function(n){return n.name===t&&(e=n,!0)}),e},addBuiltInExtension:function(e,n){var r,i=this.getExtensionByName(e);if(i)return i;switch(e){case"anchor":r=t.util.extend({},this.options.anchor,n),i=new t.extensions.anchor(r);break;case"anchor-preview":i=new t.extensions.anchorPreview(this.options.anchorPreview);break;case"autoLink":i=new t.extensions.autoLink;break;case"fileDragging":i=new t.extensions.fileDragging(n);break;case"fontname":i=new t.extensions.fontName(this.options.fontName);break;case"fontsize":i=new t.extensions.fontSize(n);break;case"keyboardCommands":i=new t.extensions.keyboardCommands(this.options.keyboardCommands);break;case"paste":i=new t.extensions.paste(this.options.paste);break;case"placeholder":i=new t.extensions.placeholder(this.options.placeholder);break;default:t.extensions.button.isBuiltInButton(e)&&(n?(r=t.util.defaults({},n,t.extensions.button.prototype.defaults[e]),i=new t.extensions.button(r)):i=new t.extensions.button(e))}return i&&this.extensions.push(h(i,e,this)),i},stopSelectionUpdates:function(){this.preventSelectionUpdates=!0},startSelectionUpdates:function(){this.preventSelectionUpdates=!1},checkSelection:function(){var t=this.getExtensionByName("toolbar");return t&&t.checkState(),this},queryCommandState:function(t){var e,n=/^full-(.+)$/gi,r=null;e=n.exec(t),e&&(t=e[1]);try{r=this.options.ownerDocument.queryCommandState(t)}catch(i){r=null}return r},execAction:function(e,n){var r,i,o=/^full-(.+)$/gi;return r=o.exec(e),r?(this.saveSelection(),this.selectAllContents(),i=E.call(this,r[1],n),this.restoreSelection()):i=E.call(this,e,n),"insertunorderedlist"!==e&&"insertorderedlist"!==e||t.util.cleanListDOM(this.options.ownerDocument,this.getSelectedParentElement()),this.checkSelection(),i},getSelectedParentElement:function(e){return void 0===e&&(e=this.options.contentWindow.getSelection().getRangeAt(0)),t.selection.getSelectedParentElement(e)},selectAllContents:function(){var e=t.selection.getSelectionElement(this.options.contentWindow);if(e){for(;1===e.children.length;)e=e.children[0];this.selectElement(e)}},selectElement:function(e){t.selection.selectNode(e,this.options.ownerDocument);var n=t.selection.getSelectionElement(this.options.contentWindow);n&&this.events.focusElement(n)},getFocusedElement:function(){var t;return this.elements.some(function(e){return!t&&e.getAttribute("data-medium-focused")&&(t=e),!!t},this),t},exportSelection:function(){var e=t.selection.getSelectionElement(this.options.contentWindow),n=this.elements.indexOf(e),r=null;return n>=0&&(r=t.selection.exportSelection(e,this.options.ownerDocument)),null!==r&&0!==n&&(r.editableElementIndex=n),r},saveSelection:function(){this.selectionState=this.exportSelection()},importSelection:function(e,n){if(e){var r=this.elements[e.editableElementIndex||0];t.selection.importSelection(e,r,this.options.ownerDocument,n)}},restoreSelection:function(){this.importSelection(this.selectionState)},createLink:function(e){var n,r=t.selection.getSelectionElement(this.options.contentWindow),i={};if(this.elements.indexOf(r)!==-1){try{if(this.events.disableCustomEvent("editableInput"),e.url&&t.util.deprecated(".url option for createLink",".value","6.0.0"),n=e.url||e.value,n&&n.trim().length>0){var o=this.options.contentWindow.getSelection();if(o){var a,s,u,l,c=o.getRangeAt(0),f=c.commonAncestorContainer;if(3===c.endContainer.nodeType&&3!==c.startContainer.nodeType&&0===c.startOffset&&c.startContainer.firstChild===c.endContainer&&(f=c.endContainer),s=t.util.getClosestBlockContainer(c.startContainer),u=t.util.getClosestBlockContainer(c.endContainer),3!==f.nodeType&&0!==f.textContent.length&&s===u){var h=s||r,d=this.options.ownerDocument.createDocumentFragment();this.execAction("unlink"),a=this.exportSelection(),d.appendChild(h.cloneNode(!0)),r===h?t.selection.select(this.options.ownerDocument,h.firstChild,0,h.lastChild,3===h.lastChild.nodeType?h.lastChild.nodeValue.length:h.lastChild.childNodes.length):t.selection.select(this.options.ownerDocument,h,0,h,h.childNodes.length);var p=this.exportSelection();l=t.util.findOrCreateMatchingTextNodes(this.options.ownerDocument,d,{start:a.start-p.start,end:a.end-p.start,editableElementIndex:a.editableElementIndex}),0===l.length&&(d=this.options.ownerDocument.createDocumentFragment(),d.appendChild(f.cloneNode(!0)),l=[d.firstChild.firstChild,d.firstChild.lastChild]),t.util.createLink(this.options.ownerDocument,l,n.trim());var m=(d.firstChild.innerHTML.match(/^\s+/)||[""])[0].length;t.util.insertHTMLCommand(this.options.ownerDocument,d.firstChild.innerHTML.replace(/^\s+/,"")),a.start-=m,a.end-=m,this.importSelection(a)}else this.options.ownerDocument.execCommand("createLink",!1,n);this.options.targetBlank||"_blank"===e.target?t.util.setTargetBlank(t.selection.getSelectionStart(this.options.ownerDocument),n):t.util.removeTargetBlank(t.selection.getSelectionStart(this.options.ownerDocument),n),e.buttonClass&&t.util.addClassToAnchors(t.selection.getSelectionStart(this.options.ownerDocument),e.buttonClass)}}if(this.options.targetBlank||"_blank"===e.target||e.buttonClass){i=this.options.ownerDocument.createEvent("HTMLEvents"),i.initEvent("input",!0,!0,this.options.contentWindow);for(var g=0,v=this.elements.length;g<v;g+=1)this.elements[g].dispatchEvent(i)}}finally{this.events.enableCustomEvent("editableInput")}this.events.triggerCustomEvent("editableInput",i,r)}},cleanPaste:function(t){this.getExtensionByName("paste").cleanPaste(t)},pasteHTML:function(t,e){this.getExtensionByName("paste").pasteHTML(t,e)},setContent:function(t,e){if(e=e||0,this.elements[e]){var n=this.elements[e];n.innerHTML=t,this.checkContentChanged(n)}},getContent:function(t){return t=t||0,this.elements[t]?this.elements[t].innerHTML.trim():null},checkContentChanged:function(e){e=e||t.selection.getSelectionElement(this.options.contentWindow),this.events.updateInput(e,{target:e,currentTarget:e})},resetContent:function(t){if(t){var e=this.elements.indexOf(t);return void(e!==-1&&this.setContent(S[t.getAttribute("medium-editor-index")],e))}this.elements.forEach(function(t,e){this.setContent(S[t.getAttribute("medium-editor-index")],e)},this)},addElements:function(t){var e=l(t,this.options.ownerDocument,!0);return 0!==e.length&&void e.forEach(function(t){t=w.call(this,t,this.id),this.elements.push(t),this.trigger("addElement",{target:t,currentTarget:t},t)},this)},removeElements:function(t){var e=l(t,this.options.ownerDocument),n=e.map(function(t){return t.getAttribute("medium-editor-textarea-id")&&t.parentNode?t.parentNode.querySelector('div[medium-editor-textarea-id="'+t.getAttribute("medium-editor-textarea-id")+'"]'):t});this.elements=this.elements.filter(function(t){return n.indexOf(t)===-1||(this.events.cleanupElement(t),t.getAttribute("medium-editor-textarea-id")&&c(t),this.trigger("removeElement",{target:t,currentTarget:t},t),!1)},this)}},t.getEditorFromElement=function(t){var e=t.getAttribute("data-medium-editor-editor-index"),n=t&&t.ownerDocument&&(t.ownerDocument.defaultView||t.ownerDocument.parentWindow);return n&&n._mediumEditors&&n._mediumEditors[e]?n._mediumEditors[e]:null}}(),function(){t.prototype.defaults={activeButtonClass:"medium-editor-button-active",buttonLabels:!1,delay:0,disableReturn:!1,disableDoubleReturn:!1,disableExtraSpaces:!1,disableEditing:!1,autoLink:!1,elementsContainer:!1,contentWindow:window,ownerDocument:document,targetBlank:!1,extensions:{},spellcheck:!0}}(),t.parseVersionString=function(t){var e=t.split("-"),n=e[0].split("."),r=e.length>1?e[1]:"";return{major:parseInt(n[0],10),minor:parseInt(n[1],10),revision:parseInt(n[2],10),preRelease:r,toString:function(){return[n[0],n[1],n[2]].join(".")+(r?"-"+r:"")}}},t.version=t.parseVersionString.call(this,{version:"5.23.3"}.version),t}()),function(t){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var e;e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,e.toMarkdown=t()}}(function(){return function t(e,n,r){function i(a,s){if(!n[a]){if(!e[a]){var u="function"==typeof require&&require;if(!s&&u)return u(a,!0);if(o)return o(a,!0);var l=new Error("Cannot find module '"+a+"'");throw l.code="MODULE_NOT_FOUND",l}var c=n[a]={exports:{}};e[a][0].call(c.exports,function(t){var n=e[a][1][t];return i(n?n:t)},c,c.exports,t,e,n,r)}return n[a].exports}for(var o="function"==typeof require&&require,a=0;a<r.length;a++)i(r[a]);return i}({1:[function(t,e,n){"use strict";function r(t){return b.indexOf(t.nodeName.toLowerCase())!==-1}function i(t){return _.indexOf(t.nodeName.toLowerCase())!==-1}function o(t){var e=(new v).parseFromString(t,"text/html");return y(e.documentElement,r),e}function a(t){for(var e,n,r,i=[t],o=[];i.length>0;)for(e=i.shift(),o.push(e),n=e.childNodes,r=0;r<n.length;r++)1===n[r].nodeType&&i.push(n[r]);return o.shift(),o}function s(t){for(var e="",n=0;n<t.childNodes.length;n++)if(1===t.childNodes[n].nodeType)e+=t.childNodes[n]._replacement;else{if(3!==t.childNodes[n].nodeType)continue;e+=t.childNodes[n].data}return e}function u(t,e){return t.cloneNode(!1).outerHTML.replace("><",">"+e+"<")}function l(t,e){if("string"==typeof e)return e===t.nodeName.toLowerCase();if(Array.isArray(e))return e.indexOf(t.nodeName.toLowerCase())!==-1;if("function"==typeof e)return e.call(d,t);throw new TypeError("`filter` needs to be a string, array, or function")}function c(t,e){var n,i,o;return"left"===t?(n=e.previousSibling,i=/ $/):(n=e.nextSibling,i=/^ /),n&&(3===n.nodeType?o=i.test(n.nodeValue):1!==n.nodeType||r(n)||(o=i.test(n.textContent))),o}function f(t,e){var n="",i="";if(!r(t)){var o=/^[ \r\n\t]/.test(e),a=/[ \r\n\t]$/.test(e);o&&!c("left",t)&&(n=" "),a&&!c("right",t)&&(i=" ")}return{leading:n,trailing:i}}function h(t){var e,n=s(t);if(!i(t)&&!/A|TH|TD/.test(t.nodeName)&&/^\s*$/i.test(n))return void(t._replacement="");for(var r=0;r<p.length;r++){var o=p[r];if(l(t,o.filter)){if("function"!=typeof o.replacement)throw new TypeError("`replacement` needs to be a function that returns a string");var a=f(t,n);(a.leading||a.trailing)&&(n=n.trim()),e=a.leading+o.replacement.call(d,n,t)+a.trailing;break}}t._replacement=e}var d,p,m=t("./lib/md-converters"),g=t("./lib/gfm-converters"),v=t("./lib/html-parser"),y=t("collapse-whitespace"),b=["address","article","aside","audio","blockquote","body","canvas","center","dd","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frameset","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","isindex","li","main","menu","nav","noframes","noscript","ol","output","p","pre","section","table","tbody","td","tfoot","th","thead","tr","ul"],_=["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"];d=function(t,e){if(e=e||{},"string"!=typeof t)throw new TypeError(t+" is not a string");if(""===t)return"";t=t.replace(/(\d+)\. /g,"$1\\. ");var n,r=o(t).body,i=a(r);p=m.slice(0),e.gfm&&(p=g.concat(p)),e.converters&&(p=e.converters.concat(p));for(var u=i.length-1;u>=0;u--)h(i[u]);return n=s(r),n.replace(/^[\t\r\n]+|[\t\r\n\s]+$/g,"").replace(/\n\s+\n/g,"\n\n").replace(/\n{3,}/g,"\n\n")},d.isBlock=r,d.isVoid=i,d.outer=u,e.exports=d},{"./lib/gfm-converters":2,"./lib/html-parser":3,"./lib/md-converters":4,"collapse-whitespace":7}],2:[function(t,e,n){"use strict";function r(t,e){var n=Array.prototype.indexOf.call(e.parentNode.childNodes,e),r=" ";return 0===n&&(r="| "),r+t+" |"}var i=/highlight highlight-(\S+)/;e.exports=[{filter:"br",replacement:function(){return"\n"}},{filter:["del","s","strike"],replacement:function(t){return"~~"+t+"~~"}},{filter:function(t){return"checkbox"===t.type&&"LI"===t.parentNode.nodeName},replacement:function(t,e){return(e.checked?"[x]":"[ ]")+" "}},{filter:["th","td"],replacement:function(t,e){return r(t,e)}},{filter:"tr",replacement:function(t,e){var n="",i={left:":--",right:"--:",center:":-:"};if("THEAD"===e.parentNode.nodeName)for(var o=0;o<e.childNodes.length;o++){var a=e.childNodes[o].attributes.align,s="---";a&&(s=i[a.value]||s),n+=r(s,e.childNodes[o])}return"\n"+t+(n?"\n"+n:"")}},{filter:"table",replacement:function(t){return"\n\n"+t+"\n\n"}},{filter:["thead","tbody","tfoot"],replacement:function(t){return t}},{filter:function(t){return"PRE"===t.nodeName&&t.firstChild&&"CODE"===t.firstChild.nodeName},replacement:function(t,e){return"\n\n```\n"+e.firstChild.textContent+"\n```\n\n"}},{filter:function(t){return"PRE"===t.nodeName&&"DIV"===t.parentNode.nodeName&&i.test(t.parentNode.className)},replacement:function(t,e){var n=e.parentNode.className.match(i)[1];return"\n\n```"+n+"\n"+e.textContent+"\n```\n\n"}},{filter:function(t){return"DIV"===t.nodeName&&i.test(t.className)},replacement:function(t){return"\n\n"+t+"\n\n"}}]},{}],3:[function(t,e,n){function r(){var t=a.DOMParser,e=!1;try{(new t).parseFromString("","text/html")&&(e=!0)}catch(n){}return e}function i(){var e=function(){};if("undefined"==typeof document){var n=t("jsdom");e.prototype.parseFromString=function(t){return n.jsdom(t,{features:{FetchExternalResources:[],ProcessExternalResources:!1}})}}else o()?e.prototype.parseFromString=function(t){var e=new window.ActiveXObject("htmlfile");return e.designMode="on",e.open(),e.write(t),e.close(),e}:e.prototype.parseFromString=function(t){var e=document.implementation.createHTMLDocument("");return e.open(),e.write(t),e.close(),e};return e}function o(){var t=!1;try{document.implementation.createHTMLDocument("").open()}catch(e){window.ActiveXObject&&(t=!0)}return t}var a="undefined"!=typeof window?window:this;e.exports=r()?a.DOMParser:i()},{jsdom:6}],4:[function(t,e,n){"use strict";e.exports=[{filter:"p",replacement:function(t){return"\n\n"+t+"\n\n"}},{filter:"br",replacement:function(){return" \n"}},{filter:["h1","h2","h3","h4","h5","h6"],replacement:function(t,e){for(var n=e.nodeName.charAt(1),r="",i=0;i<n;i++)r+="#";return"\n\n"+r+" "+t+"\n\n"}},{filter:"hr",replacement:function(){return"\n\n* * *\n\n"}},{filter:["em","i"],replacement:function(t){return"_"+t+"_"}},{filter:["strong","b"],replacement:function(t){return"**"+t+"**"}},{filter:function(t){var e=t.previousSibling||t.nextSibling,n="PRE"===t.parentNode.nodeName&&!e;return"CODE"===t.nodeName&&!n},replacement:function(t){return"`"+t+"`"}},{filter:function(t){return"A"===t.nodeName&&t.getAttribute("href")},replacement:function(t,e){var n=e.title?' "'+e.title+'"':"";return"["+t+"]("+e.getAttribute("href")+n+")"}},{filter:"img",replacement:function(t,e){var n=e.alt||"",r=e.getAttribute("src")||"",i=e.title||"",o=i?' "'+i+'"':"";return r?"":""}},{filter:function(t){return"PRE"===t.nodeName&&"CODE"===t.firstChild.nodeName},replacement:function(t,e){return"\n\n "+e.firstChild.textContent.replace(/\n/g,"\n ")+"\n\n"}},{filter:"blockquote",replacement:function(t){return t=t.trim(),t=t.replace(/\n{3,}/g,"\n\n"),t=t.replace(/^/gm,"> "),"\n\n"+t+"\n\n"}},{filter:"li",replacement:function(t,e){t=t.replace(/^\s+/,"").replace(/\n/gm,"\n ");var n="* ",r=e.parentNode,i=Array.prototype.indexOf.call(r.children,e)+1;return n=/ol/i.test(r.nodeName)?i+". ":"* ",n+t}},{filter:["ul","ol"],replacement:function(t,e){for(var n=[],r=0;r<e.childNodes.length;r++)n.push(e.childNodes[r]._replacement);return/li/i.test(e.parentNode.nodeName)?"\n"+n.join("\n"):"\n\n"+n.join("\n")+"\n\n"}},{filter:function(t){return this.isBlock(t)},replacement:function(t,e){return"\n\n"+this.outer(e,t)+"\n\n"}},{filter:function(){return!0},replacement:function(t,e){return this.outer(e,t)}}]},{}],5:[function(t,e,n){e.exports=["address","article","aside","audio","blockquote","canvas","dd","div","dl","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","main","nav","noscript","ol","output","p","pre","section","table","tfoot","ul","video"]},{}],6:[function(t,e,n){},{}],7:[function(t,e,n){"use strict";function r(t){return!(!t||!l[t.nodeName])}function i(t){return!(!t||!u[t.nodeName])}function o(t,e){if(t.firstChild&&"PRE"!==t.nodeName){"function"!=typeof e&&(e=r);for(var n=null,o=!1,u=null,l=s(u,t);l!==t;){if(3===l.nodeType){var c=l.data.replace(/[ \r\n\t]+/g," ");if(n&&!/ $/.test(n.data)||o||" "!==c[0]||(c=c.substr(1)),!c){l=a(l);continue}l.data=c,n=l}else{if(1!==l.nodeType){l=a(l);continue}e(l)||"BR"===l.nodeName?(n&&(n.data=n.data.replace(/ $/,"")),n=null,o=!1):i(l)&&(n=null,o=!0)}var f=s(u,l);u=l,l=f}n&&(n.data=n.data.replace(/ $/,""),n.data||a(n))}}function a(t){var e=t.nextSibling||t.parentNode;return t.parentNode.removeChild(t),e}function s(t,e){return t&&t.parentNode===e||"PRE"===e.nodeName?e.nextSibling||e.parentNode:e.firstChild||e.nextSibling||e.parentNode}var u=t("void-elements");Object.keys(u).forEach(function(t){u[t.toUpperCase()]=1});var l={};t("block-elements").forEach(function(t){l[t.toUpperCase()]=1}),e.exports=o},{"block-elements":5,"void-elements":8}],8:[function(t,e,n){e.exports={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,menuitem:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0}},{}]},{},[1])(1)}),function(t){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var e;e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,e.markdownit=t()}}(function(){var t;return function e(t,n,r){function i(a,s){if(!n[a]){if(!t[a]){var u="function"==typeof require&&require;if(!s&&u)return u(a,!0);if(o)return o(a,!0);var l=new Error("Cannot find module '"+a+"'");throw l.code="MODULE_NOT_FOUND",l}var c=n[a]={exports:{}};t[a][0].call(c.exports,function(e){var n=t[a][1][e];return i(n?n:e)},c,c.exports,e,t,n,r)}return n[a].exports}for(var o="function"==typeof require&&require,a=0;a<r.length;a++)i(r[a]);return i}({1:[function(t,e,n){"use strict";e.exports=t("entities/maps/entities.json")},{"entities/maps/entities.json":52}],2:[function(t,e,n){"use strict";e.exports=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","meta","nav","noframes","ol","optgroup","option","p","param","section","source","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"]},{}],3:[function(t,e,n){"use strict";var r="[a-zA-Z_:][a-zA-Z0-9:._-]*",i="[^\"'=<>`\\x00-\\x20]+",o="'[^']*'",a='"[^"]*"',s="(?:"+i+"|"+o+"|"+a+")",u="(?:\\s+"+r+"(?:\\s*=\\s*"+s+")?)",l="<[A-Za-z][A-Za-z0-9\\-]*"+u+"*\\s*\\/?>",c="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",f="<!---->|<!--(?:-?[^>-])(?:-?[^-])*-->",h="<[?].*?[?]>",d="<![A-Z]+\\s+[^>]*>",p="<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",m=new RegExp("^(?:"+l+"|"+c+"|"+f+"|"+h+"|"+d+"|"+p+")"),g=new RegExp("^(?:"+l+"|"+c+")");
|
||
e.exports.HTML_TAG_RE=m,e.exports.HTML_OPEN_CLOSE_TAG_RE=g},{}],4:[function(t,e,n){"use strict";function r(t){return Object.prototype.toString.call(t)}function i(t){return"[object String]"===r(t)}function o(t,e){return w.call(t,e)}function a(t){var e=Array.prototype.slice.call(arguments,1);return e.forEach(function(e){if(e){if("object"!=typeof e)throw new TypeError(e+"must be object");Object.keys(e).forEach(function(n){t[n]=e[n]})}}),t}function s(t,e,n){return[].concat(t.slice(0,e),n,t.slice(e+1))}function u(t){return!(t>=55296&&t<=57343)&&(!(t>=64976&&t<=65007)&&(65535!==(65535&t)&&65534!==(65535&t)&&(!(t>=0&&t<=8)&&(11!==t&&(!(t>=14&&t<=31)&&(!(t>=127&&t<=159)&&!(t>1114111)))))))}function l(t){if(t>65535){t-=65536;var e=55296+(t>>10),n=56320+(1023&t);return String.fromCharCode(e,n)}return String.fromCharCode(t)}function c(t,e){var n=0;return o($,e)?$[e]:35===e.charCodeAt(0)&&E.test(e)&&(n="x"===e[1].toLowerCase()?parseInt(e.slice(2),16):parseInt(e.slice(1),10),u(n))?l(n):t}function f(t){return t.indexOf("\\")<0?t:t.replace(x,"$1")}function h(t){return t.indexOf("\\")<0&&t.indexOf("&")<0?t:t.replace(C,function(t,e,n){return e?e:c(t,n)})}function d(t){return T[t]}function p(t){return S.test(t)?t.replace(A,d):t}function m(t){return t.replace(D,"\\$&")}function g(t){switch(t){case 9:case 32:return!0}return!1}function v(t){if(t>=8192&&t<=8202)return!0;switch(t){case 9:case 10:case 11:case 12:case 13:case 32:case 160:case 5760:case 8239:case 8287:case 12288:return!0}return!1}function y(t){return F.test(t)}function b(t){switch(t){case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 124:case 125:case 126:return!0;default:return!1}}function _(t){return t.trim().replace(/\s+/g," ").toUpperCase()}var w=Object.prototype.hasOwnProperty,x=/\\([!"#$%&'()*+,\-.\/:;<=>?@[\\\]^_`{|}~])/g,k=/&([a-z#][a-z0-9]{1,31});/gi,C=new RegExp(x.source+"|"+k.source,"gi"),E=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))/i,$=t("./entities"),S=/[&<>"]/,A=/[&<>"]/g,T={"&":"&","<":"<",">":">",'"':"""},D=/[.?*+^$[\]\\(){}|-]/g,F=t("uc.micro/categories/P/regex");n.lib={},n.lib.mdurl=t("mdurl"),n.lib.ucmicro=t("uc.micro"),n.assign=a,n.isString=i,n.has=o,n.unescapeMd=f,n.unescapeAll=h,n.isValidEntityCode=u,n.fromCodePoint=l,n.escapeHtml=p,n.arrayReplaceAt=s,n.isSpace=g,n.isWhiteSpace=v,n.isMdAsciiPunct=b,n.isPunctChar=y,n.escapeRE=m,n.normalizeReference=_},{"./entities":1,mdurl:58,"uc.micro":65,"uc.micro/categories/P/regex":63}],5:[function(t,e,n){"use strict";n.parseLinkLabel=t("./parse_link_label"),n.parseLinkDestination=t("./parse_link_destination"),n.parseLinkTitle=t("./parse_link_title")},{"./parse_link_destination":6,"./parse_link_label":7,"./parse_link_title":8}],6:[function(t,e,n){"use strict";var r=t("../common/utils").isSpace,i=t("../common/utils").unescapeAll;e.exports=function(t,e,n){var o,a,s=0,u=e,l={ok:!1,pos:0,lines:0,str:""};if(60===t.charCodeAt(e)){for(e++;e<n;){if(o=t.charCodeAt(e),10===o||r(o))return l;if(62===o)return l.pos=e+1,l.str=i(t.slice(u+1,e)),l.ok=!0,l;92===o&&e+1<n?e+=2:e++}return l}for(a=0;e<n&&(o=t.charCodeAt(e),32!==o)&&!(o<32||127===o);)if(92===o&&e+1<n)e+=2;else{if(40===o&&a++,41===o){if(0===a)break;a--}e++}return u===e?l:0!==a?l:(l.str=i(t.slice(u,e)),l.lines=s,l.pos=e,l.ok=!0,l)}},{"../common/utils":4}],7:[function(t,e,n){"use strict";e.exports=function(t,e,n){var r,i,o,a,s=-1,u=t.posMax,l=t.pos;for(t.pos=e+1,r=1;t.pos<u;){if(o=t.src.charCodeAt(t.pos),93===o&&(r--,0===r)){i=!0;break}if(a=t.pos,t.md.inline.skipToken(t),91===o)if(a===t.pos-1)r++;else if(n)return t.pos=l,-1}return i&&(s=t.pos),t.pos=l,s}},{}],8:[function(t,e,n){"use strict";var r=t("../common/utils").unescapeAll;e.exports=function(t,e,n){var i,o,a=0,s=e,u={ok:!1,pos:0,lines:0,str:""};if(e>=n)return u;if(o=t.charCodeAt(e),34!==o&&39!==o&&40!==o)return u;for(e++,40===o&&(o=41);e<n;){if(i=t.charCodeAt(e),i===o)return u.pos=e+1,u.lines=a,u.str=r(t.slice(s+1,e)),u.ok=!0,u;10===i?a++:92===i&&e+1<n&&(e++,10===t.charCodeAt(e)&&a++),e++}return u}},{"../common/utils":4}],9:[function(t,e,n){"use strict";function r(t){var e=t.trim().toLowerCase();return!v.test(e)||!!y.test(e)}function i(t){var e=p.parse(t,!0);if(e.hostname&&(!e.protocol||b.indexOf(e.protocol)>=0))try{e.hostname=m.toASCII(e.hostname)}catch(n){}return p.encode(p.format(e))}function o(t){var e=p.parse(t,!0);if(e.hostname&&(!e.protocol||b.indexOf(e.protocol)>=0))try{e.hostname=m.toUnicode(e.hostname)}catch(n){}return p.decode(p.format(e))}function a(t,e){return this instanceof a?(e||s.isString(t)||(e=t||{},t="default"),this.inline=new h,this.block=new f,this.core=new c,this.renderer=new l,this.linkify=new d,this.validateLink=r,this.normalizeLink=i,this.normalizeLinkText=o,this.utils=s,this.helpers=s.assign({},u),this.options={},this.configure(t),void(e&&this.set(e))):new a(t,e)}var s=t("./common/utils"),u=t("./helpers"),l=t("./renderer"),c=t("./parser_core"),f=t("./parser_block"),h=t("./parser_inline"),d=t("linkify-it"),p=t("mdurl"),m=t("punycode"),g={"default":t("./presets/default"),zero:t("./presets/zero"),commonmark:t("./presets/commonmark")},v=/^(vbscript|javascript|file|data):/,y=/^data:image\/(gif|png|jpeg|webp);/,b=["http:","https:","mailto:"];a.prototype.set=function(t){return s.assign(this.options,t),this},a.prototype.configure=function(t){var e,n=this;if(s.isString(t)&&(e=t,t=g[e],!t))throw new Error('Wrong `markdown-it` preset "'+e+'", check name');if(!t)throw new Error("Wrong `markdown-it` preset, can't be empty");return t.options&&n.set(t.options),t.components&&Object.keys(t.components).forEach(function(e){t.components[e].rules&&n[e].ruler.enableOnly(t.components[e].rules),t.components[e].rules2&&n[e].ruler2.enableOnly(t.components[e].rules2)}),this},a.prototype.enable=function(t,e){var n=[];Array.isArray(t)||(t=[t]),["core","block","inline"].forEach(function(e){n=n.concat(this[e].ruler.enable(t,!0))},this),n=n.concat(this.inline.ruler2.enable(t,!0));var r=t.filter(function(t){return n.indexOf(t)<0});if(r.length&&!e)throw new Error("MarkdownIt. Failed to enable unknown rule(s): "+r);return this},a.prototype.disable=function(t,e){var n=[];Array.isArray(t)||(t=[t]),["core","block","inline"].forEach(function(e){n=n.concat(this[e].ruler.disable(t,!0))},this),n=n.concat(this.inline.ruler2.disable(t,!0));var r=t.filter(function(t){return n.indexOf(t)<0});if(r.length&&!e)throw new Error("MarkdownIt. Failed to disable unknown rule(s): "+r);return this},a.prototype.use=function(t){var e=[this].concat(Array.prototype.slice.call(arguments,1));return t.apply(t,e),this},a.prototype.parse=function(t,e){if("string"!=typeof t)throw new Error("Input data should be a String");var n=new this.core.State(t,this,e);return this.core.process(n),n.tokens},a.prototype.render=function(t,e){return e=e||{},this.renderer.render(this.parse(t,e),this.options,e)},a.prototype.parseInline=function(t,e){var n=new this.core.State(t,this,e);return n.inlineMode=!0,this.core.process(n),n.tokens},a.prototype.renderInline=function(t,e){return e=e||{},this.renderer.render(this.parseInline(t,e),this.options,e)},e.exports=a},{"./common/utils":4,"./helpers":5,"./parser_block":10,"./parser_core":11,"./parser_inline":12,"./presets/commonmark":13,"./presets/default":14,"./presets/zero":15,"./renderer":16,"linkify-it":53,mdurl:58,punycode:60}],10:[function(t,e,n){"use strict";function r(){this.ruler=new i;for(var t=0;t<o.length;t++)this.ruler.push(o[t][0],o[t][1],{alt:(o[t][2]||[]).slice()})}var i=t("./ruler"),o=[["table",t("./rules_block/table"),["paragraph","reference"]],["code",t("./rules_block/code")],["fence",t("./rules_block/fence"),["paragraph","reference","blockquote","list"]],["blockquote",t("./rules_block/blockquote"),["paragraph","reference","blockquote","list"]],["hr",t("./rules_block/hr"),["paragraph","reference","blockquote","list"]],["list",t("./rules_block/list"),["paragraph","reference","blockquote"]],["reference",t("./rules_block/reference")],["heading",t("./rules_block/heading"),["paragraph","reference","blockquote"]],["lheading",t("./rules_block/lheading")],["html_block",t("./rules_block/html_block"),["paragraph","reference","blockquote"]],["paragraph",t("./rules_block/paragraph")]];r.prototype.tokenize=function(t,e,n){for(var r,i,o=this.ruler.getRules(""),a=o.length,s=e,u=!1,l=t.md.options.maxNesting;s<n&&(t.line=s=t.skipEmptyLines(s),!(s>=n))&&!(t.sCount[s]<t.blkIndent);){if(t.level>=l){t.line=n;break}for(i=0;i<a&&!(r=o[i](t,s,n,!1));i++);t.tight=!u,t.isEmpty(t.line-1)&&(u=!0),s=t.line,s<n&&t.isEmpty(s)&&(u=!0,s++,t.line=s)}},r.prototype.parse=function(t,e,n,r){var i;t&&(i=new this.State(t,e,n,r),this.tokenize(i,i.line,i.lineMax))},r.prototype.State=t("./rules_block/state_block"),e.exports=r},{"./ruler":17,"./rules_block/blockquote":18,"./rules_block/code":19,"./rules_block/fence":20,"./rules_block/heading":21,"./rules_block/hr":22,"./rules_block/html_block":23,"./rules_block/lheading":24,"./rules_block/list":25,"./rules_block/paragraph":26,"./rules_block/reference":27,"./rules_block/state_block":28,"./rules_block/table":29}],11:[function(t,e,n){"use strict";function r(){this.ruler=new i;for(var t=0;t<o.length;t++)this.ruler.push(o[t][0],o[t][1])}var i=t("./ruler"),o=[["normalize",t("./rules_core/normalize")],["block",t("./rules_core/block")],["inline",t("./rules_core/inline")],["linkify",t("./rules_core/linkify")],["replacements",t("./rules_core/replacements")],["smartquotes",t("./rules_core/smartquotes")]];r.prototype.process=function(t){var e,n,r;for(r=this.ruler.getRules(""),e=0,n=r.length;e<n;e++)r[e](t)},r.prototype.State=t("./rules_core/state_core"),e.exports=r},{"./ruler":17,"./rules_core/block":30,"./rules_core/inline":31,"./rules_core/linkify":32,"./rules_core/normalize":33,"./rules_core/replacements":34,"./rules_core/smartquotes":35,"./rules_core/state_core":36}],12:[function(t,e,n){"use strict";function r(){var t;for(this.ruler=new i,t=0;t<o.length;t++)this.ruler.push(o[t][0],o[t][1]);for(this.ruler2=new i,t=0;t<a.length;t++)this.ruler2.push(a[t][0],a[t][1])}var i=t("./ruler"),o=[["text",t("./rules_inline/text")],["newline",t("./rules_inline/newline")],["escape",t("./rules_inline/escape")],["backticks",t("./rules_inline/backticks")],["strikethrough",t("./rules_inline/strikethrough").tokenize],["emphasis",t("./rules_inline/emphasis").tokenize],["link",t("./rules_inline/link")],["image",t("./rules_inline/image")],["autolink",t("./rules_inline/autolink")],["html_inline",t("./rules_inline/html_inline")],["entity",t("./rules_inline/entity")]],a=[["balance_pairs",t("./rules_inline/balance_pairs")],["strikethrough",t("./rules_inline/strikethrough").postProcess],["emphasis",t("./rules_inline/emphasis").postProcess],["text_collapse",t("./rules_inline/text_collapse")]];r.prototype.skipToken=function(t){var e,n,r=t.pos,i=this.ruler.getRules(""),o=i.length,a=t.md.options.maxNesting,s=t.cache;if("undefined"!=typeof s[r])return void(t.pos=s[r]);if(t.level<a)for(n=0;n<o&&(t.level++,e=i[n](t,!0),t.level--,!e);n++);else t.pos=t.posMax;e||t.pos++,s[r]=t.pos},r.prototype.tokenize=function(t){for(var e,n,r=this.ruler.getRules(""),i=r.length,o=t.posMax,a=t.md.options.maxNesting;t.pos<o;){if(t.level<a)for(n=0;n<i&&!(e=r[n](t,!1));n++);if(e){if(t.pos>=o)break}else t.pending+=t.src[t.pos++]}t.pending&&t.pushPending()},r.prototype.parse=function(t,e,n,r){var i,o,a,s=new this.State(t,e,n,r);for(this.tokenize(s),o=this.ruler2.getRules(""),a=o.length,i=0;i<a;i++)o[i](s)},r.prototype.State=t("./rules_inline/state_inline"),e.exports=r},{"./ruler":17,"./rules_inline/autolink":37,"./rules_inline/backticks":38,"./rules_inline/balance_pairs":39,"./rules_inline/emphasis":40,"./rules_inline/entity":41,"./rules_inline/escape":42,"./rules_inline/html_inline":43,"./rules_inline/image":44,"./rules_inline/link":45,"./rules_inline/newline":46,"./rules_inline/state_inline":47,"./rules_inline/strikethrough":48,"./rules_inline/text":49,"./rules_inline/text_collapse":50}],13:[function(t,e,n){"use strict";e.exports={options:{html:!0,xhtmlOut:!0,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline"]},block:{rules:["blockquote","code","fence","heading","hr","html_block","lheading","list","reference","paragraph"]},inline:{rules:["autolink","backticks","emphasis","entity","escape","html_inline","image","link","newline","text"],rules2:["balance_pairs","emphasis","text_collapse"]}}}},{}],14:[function(t,e,n){"use strict";e.exports={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:100},components:{core:{},block:{},inline:{}}}},{}],15:[function(t,e,n){"use strict";e.exports={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline"]},block:{rules:["paragraph"]},inline:{rules:["text"],rules2:["balance_pairs","text_collapse"]}}}},{}],16:[function(t,e,n){"use strict";function r(){this.rules=i({},s)}var i=t("./common/utils").assign,o=t("./common/utils").unescapeAll,a=t("./common/utils").escapeHtml,s={};s.code_inline=function(t,e,n,r,i){var o=t[e];return"<code"+i.renderAttrs(o)+">"+a(t[e].content)+"</code>"},s.code_block=function(t,e,n,r,i){var o=t[e];return"<pre"+i.renderAttrs(o)+"><code>"+a(t[e].content)+"</code></pre>\n"},s.fence=function(t,e,n,r,i){var s,u,l,c,f=t[e],h=f.info?o(f.info).trim():"",d="";return h&&(d=h.split(/\s+/g)[0]),s=n.highlight?n.highlight(f.content,d)||a(f.content):a(f.content),0===s.indexOf("<pre")?s+"\n":h?(u=f.attrIndex("class"),l=f.attrs?f.attrs.slice():[],u<0?l.push(["class",n.langPrefix+d]):l[u][1]+=" "+n.langPrefix+d,c={attrs:l},"<pre><code"+i.renderAttrs(c)+">"+s+"</code></pre>\n"):"<pre><code"+i.renderAttrs(f)+">"+s+"</code></pre>\n"},s.image=function(t,e,n,r,i){var o=t[e];return o.attrs[o.attrIndex("alt")][1]=i.renderInlineAsText(o.children,n,r),i.renderToken(t,e,n)},s.hardbreak=function(t,e,n){return n.xhtmlOut?"<br />\n":"<br>\n"},s.softbreak=function(t,e,n){return n.breaks?n.xhtmlOut?"<br />\n":"<br>\n":"\n"},s.text=function(t,e){return a(t[e].content)},s.html_block=function(t,e){return t[e].content},s.html_inline=function(t,e){return t[e].content},r.prototype.renderAttrs=function(t){var e,n,r;if(!t.attrs)return"";for(r="",e=0,n=t.attrs.length;e<n;e++)r+=" "+a(t.attrs[e][0])+'="'+a(t.attrs[e][1])+'"';return r},r.prototype.renderToken=function(t,e,n){var r,i="",o=!1,a=t[e];return a.hidden?"":(a.block&&a.nesting!==-1&&e&&t[e-1].hidden&&(i+="\n"),i+=(a.nesting===-1?"</":"<")+a.tag,i+=this.renderAttrs(a),0===a.nesting&&n.xhtmlOut&&(i+=" /"),a.block&&(o=!0,1===a.nesting&&e+1<t.length&&(r=t[e+1],"inline"===r.type||r.hidden?o=!1:r.nesting===-1&&r.tag===a.tag&&(o=!1))),i+=o?">\n":">")},r.prototype.renderInline=function(t,e,n){for(var r,i="",o=this.rules,a=0,s=t.length;a<s;a++)r=t[a].type,i+="undefined"!=typeof o[r]?o[r](t,a,e,n,this):this.renderToken(t,a,e);return i},r.prototype.renderInlineAsText=function(t,e,n){for(var r="",i=0,o=t.length;i<o;i++)"text"===t[i].type?r+=t[i].content:"image"===t[i].type&&(r+=this.renderInlineAsText(t[i].children,e,n));return r},r.prototype.render=function(t,e,n){var r,i,o,a="",s=this.rules;for(r=0,i=t.length;r<i;r++)o=t[r].type,a+="inline"===o?this.renderInline(t[r].children,e,n):"undefined"!=typeof s[o]?s[t[r].type](t,r,e,n,this):this.renderToken(t,r,e,n);return a},e.exports=r},{"./common/utils":4}],17:[function(t,e,n){"use strict";function r(){this.__rules__=[],this.__cache__=null}r.prototype.__find__=function(t){for(var e=0;e<this.__rules__.length;e++)if(this.__rules__[e].name===t)return e;return-1},r.prototype.__compile__=function(){var t=this,e=[""];t.__rules__.forEach(function(t){t.enabled&&t.alt.forEach(function(t){e.indexOf(t)<0&&e.push(t)})}),t.__cache__={},e.forEach(function(e){t.__cache__[e]=[],t.__rules__.forEach(function(n){n.enabled&&(e&&n.alt.indexOf(e)<0||t.__cache__[e].push(n.fn))})})},r.prototype.at=function(t,e,n){var r=this.__find__(t),i=n||{};if(r===-1)throw new Error("Parser rule not found: "+t);this.__rules__[r].fn=e,this.__rules__[r].alt=i.alt||[],this.__cache__=null},r.prototype.before=function(t,e,n,r){var i=this.__find__(t),o=r||{};if(i===-1)throw new Error("Parser rule not found: "+t);this.__rules__.splice(i,0,{name:e,enabled:!0,fn:n,alt:o.alt||[]}),this.__cache__=null},r.prototype.after=function(t,e,n,r){var i=this.__find__(t),o=r||{};if(i===-1)throw new Error("Parser rule not found: "+t);this.__rules__.splice(i+1,0,{name:e,enabled:!0,fn:n,alt:o.alt||[]}),this.__cache__=null},r.prototype.push=function(t,e,n){var r=n||{};this.__rules__.push({name:t,enabled:!0,fn:e,alt:r.alt||[]}),this.__cache__=null},r.prototype.enable=function(t,e){Array.isArray(t)||(t=[t]);var n=[];return t.forEach(function(t){var r=this.__find__(t);if(r<0){if(e)return;throw new Error("Rules manager: invalid rule name "+t)}this.__rules__[r].enabled=!0,n.push(t)},this),this.__cache__=null,n},r.prototype.enableOnly=function(t,e){Array.isArray(t)||(t=[t]),this.__rules__.forEach(function(t){t.enabled=!1}),this.enable(t,e)},r.prototype.disable=function(t,e){Array.isArray(t)||(t=[t]);var n=[];return t.forEach(function(t){var r=this.__find__(t);if(r<0){if(e)return;throw new Error("Rules manager: invalid rule name "+t)}this.__rules__[r].enabled=!1,n.push(t)},this),this.__cache__=null,n},r.prototype.getRules=function(t){return null===this.__cache__&&this.__compile__(),this.__cache__[t]||[]},e.exports=r},{}],18:[function(t,e,n){"use strict";var r=t("../common/utils").isSpace;e.exports=function(t,e,n,i){var o,a,s,u,l,c,f,h,d,p,m,g,v,y,b,_,w,x,k,C,E=t.lineMax,$=t.bMarks[e]+t.tShift[e],S=t.eMarks[e];if(t.sCount[e]-t.blkIndent>=4)return!1;if(62!==t.src.charCodeAt($++))return!1;if(i)return!0;for(u=d=t.sCount[e]+$-(t.bMarks[e]+t.tShift[e]),32===t.src.charCodeAt($)?($++,u++,d++,o=!1,_=!0):9===t.src.charCodeAt($)?(_=!0,(t.bsCount[e]+d)%4===3?($++,u++,d++,o=!1):o=!0):_=!1,p=[t.bMarks[e]],t.bMarks[e]=$;$<S&&(a=t.src.charCodeAt($),r(a));)9===a?d+=4-(d+t.bsCount[e]+(o?1:0))%4:d++,$++;for(m=[t.bsCount[e]],t.bsCount[e]=t.sCount[e]+1+(_?1:0),c=$>=S,y=[t.sCount[e]],t.sCount[e]=d-u,b=[t.tShift[e]],t.tShift[e]=$-t.bMarks[e],x=t.md.block.ruler.getRules("blockquote"),v=t.parentType,t.parentType="blockquote",C=!1,h=e+1;h<n&&(t.sCount[h]<t.blkIndent&&(C=!0),$=t.bMarks[h]+t.tShift[h],S=t.eMarks[h],!($>=S));h++)if(62!==t.src.charCodeAt($++)||C){if(c)break;for(w=!1,s=0,l=x.length;s<l;s++)if(x[s](t,h,n,!0)){w=!0;break}if(w){t.lineMax=h,0!==t.blkIndent&&(p.push(t.bMarks[h]),m.push(t.bsCount[h]),b.push(t.tShift[h]),y.push(t.sCount[h]),t.sCount[h]-=t.blkIndent);break}p.push(t.bMarks[h]),m.push(t.bsCount[h]),b.push(t.tShift[h]),y.push(t.sCount[h]),t.sCount[h]=-1}else{for(u=d=t.sCount[h]+$-(t.bMarks[h]+t.tShift[h]),32===t.src.charCodeAt($)?($++,u++,d++,o=!1,_=!0):9===t.src.charCodeAt($)?(_=!0,(t.bsCount[h]+d)%4===3?($++,u++,d++,o=!1):o=!0):_=!1,p.push(t.bMarks[h]),t.bMarks[h]=$;$<S&&(a=t.src.charCodeAt($),r(a));)9===a?d+=4-(d+t.bsCount[h]+(o?1:0))%4:d++,$++;c=$>=S,m.push(t.bsCount[h]),t.bsCount[h]=t.sCount[h]+1+(_?1:0),y.push(t.sCount[h]),t.sCount[h]=d-u,b.push(t.tShift[h]),t.tShift[h]=$-t.bMarks[h]}for(g=t.blkIndent,t.blkIndent=0,k=t.push("blockquote_open","blockquote",1),k.markup=">",k.map=f=[e,0],t.md.block.tokenize(t,e,h),k=t.push("blockquote_close","blockquote",-1),k.markup=">",t.lineMax=E,t.parentType=v,f[1]=t.line,s=0;s<b.length;s++)t.bMarks[s+e]=p[s],t.tShift[s+e]=b[s],t.sCount[s+e]=y[s],t.bsCount[s+e]=m[s];return t.blkIndent=g,!0}},{"../common/utils":4}],19:[function(t,e,n){"use strict";e.exports=function(t,e,n){var r,i,o;if(t.sCount[e]-t.blkIndent<4)return!1;for(i=r=e+1;r<n;)if(t.isEmpty(r))r++;else{if(!(t.sCount[r]-t.blkIndent>=4))break;r++,i=r}return t.line=i,o=t.push("code_block","code",0),o.content=t.getLines(e,i,4+t.blkIndent,!0),o.map=[e,t.line],!0}},{}],20:[function(t,e,n){"use strict";e.exports=function(t,e,n,r){var i,o,a,s,u,l,c,f=!1,h=t.bMarks[e]+t.tShift[e],d=t.eMarks[e];if(t.sCount[e]-t.blkIndent>=4)return!1;if(h+3>d)return!1;if(i=t.src.charCodeAt(h),126!==i&&96!==i)return!1;if(u=h,h=t.skipChars(h,i),o=h-u,o<3)return!1;if(c=t.src.slice(u,h),a=t.src.slice(h,d),a.indexOf(String.fromCharCode(i))>=0)return!1;if(r)return!0;for(s=e;(s++,!(s>=n))&&(h=u=t.bMarks[s]+t.tShift[s],d=t.eMarks[s],!(h<d&&t.sCount[s]<t.blkIndent));)if(t.src.charCodeAt(h)===i&&!(t.sCount[s]-t.blkIndent>=4||(h=t.skipChars(h,i),h-u<o||(h=t.skipSpaces(h),h<d)))){f=!0;break}return o=t.sCount[e],t.line=s+(f?1:0),l=t.push("fence","code",0),l.info=a,l.content=t.getLines(e+1,s,o,!0),l.markup=c,l.map=[e,t.line],!0}},{}],21:[function(t,e,n){"use strict";var r=t("../common/utils").isSpace;e.exports=function(t,e,n,i){var o,a,s,u,l=t.bMarks[e]+t.tShift[e],c=t.eMarks[e];if(t.sCount[e]-t.blkIndent>=4)return!1;if(o=t.src.charCodeAt(l),35!==o||l>=c)return!1;for(a=1,o=t.src.charCodeAt(++l);35===o&&l<c&&a<=6;)a++,o=t.src.charCodeAt(++l);return!(a>6||l<c&&!r(o))&&(!!i||(c=t.skipSpacesBack(c,l),s=t.skipCharsBack(c,35,l),s>l&&r(t.src.charCodeAt(s-1))&&(c=s),t.line=e+1,u=t.push("heading_open","h"+String(a),1),u.markup="########".slice(0,a),u.map=[e,t.line],u=t.push("inline","",0),u.content=t.src.slice(l,c).trim(),u.map=[e,t.line],u.children=[],u=t.push("heading_close","h"+String(a),-1),u.markup="########".slice(0,a),!0))}},{"../common/utils":4}],22:[function(t,e,n){"use strict";var r=t("../common/utils").isSpace;e.exports=function(t,e,n,i){var o,a,s,u,l=t.bMarks[e]+t.tShift[e],c=t.eMarks[e];if(t.sCount[e]-t.blkIndent>=4)return!1;if(o=t.src.charCodeAt(l++),42!==o&&45!==o&&95!==o)return!1;for(a=1;l<c;){if(s=t.src.charCodeAt(l++),s!==o&&!r(s))return!1;s===o&&a++}return!(a<3)&&(!!i||(t.line=e+1,u=t.push("hr","hr",0),u.map=[e,t.line],u.markup=Array(a+1).join(String.fromCharCode(o)),!0))}},{"../common/utils":4}],23:[function(t,e,n){"use strict";var r=t("../common/html_blocks"),i=t("../common/html_re").HTML_OPEN_CLOSE_TAG_RE,o=[[/^<(script|pre|style)(?=(\s|>|$))/i,/<\/(script|pre|style)>/i,!0],[/^<!--/,/-->/,!0],[/^<\?/,/\?>/,!0],[/^<![A-Z]/,/>/,!0],[/^<!\[CDATA\[/,/\]\]>/,!0],[new RegExp("^</?("+r.join("|")+")(?=(\\s|/?>|$))","i"),/^$/,!0],[new RegExp(i.source+"\\s*$"),/^$/,!1]];e.exports=function(t,e,n,r){var i,a,s,u,l=t.bMarks[e]+t.tShift[e],c=t.eMarks[e];if(t.sCount[e]-t.blkIndent>=4)return!1;if(!t.md.options.html)return!1;if(60!==t.src.charCodeAt(l))return!1;for(u=t.src.slice(l,c),i=0;i<o.length&&!o[i][0].test(u);i++);if(i===o.length)return!1;if(r)return o[i][2];if(a=e+1,!o[i][1].test(u))for(;a<n&&!(t.sCount[a]<t.blkIndent);a++)if(l=t.bMarks[a]+t.tShift[a],c=t.eMarks[a],u=t.src.slice(l,c),o[i][1].test(u)){0!==u.length&&a++;break}return t.line=a,s=t.push("html_block","",0),s.map=[e,a],s.content=t.getLines(e,a,t.blkIndent,!0),!0}},{"../common/html_blocks":2,"../common/html_re":3}],24:[function(t,e,n){"use strict";e.exports=function(t,e,n){var r,i,o,a,s,u,l,c,f,h,d=e+1,p=t.md.block.ruler.getRules("paragraph");if(t.sCount[e]-t.blkIndent>=4)return!1;for(h=t.parentType,t.parentType="paragraph";d<n&&!t.isEmpty(d);d++)if(!(t.sCount[d]-t.blkIndent>3)){if(t.sCount[d]>=t.blkIndent&&(u=t.bMarks[d]+t.tShift[d],l=t.eMarks[d],u<l&&(f=t.src.charCodeAt(u),(45===f||61===f)&&(u=t.skipChars(u,f),u=t.skipSpaces(u),u>=l)))){c=61===f?1:2;break}if(!(t.sCount[d]<0)){for(i=!1,o=0,a=p.length;o<a;o++)if(p[o](t,d,n,!0)){i=!0;break}if(i)break}}return!!c&&(r=t.getLines(e,d,t.blkIndent,!1).trim(),t.line=d+1,s=t.push("heading_open","h"+String(c),1),s.markup=String.fromCharCode(f),s.map=[e,t.line],s=t.push("inline","",0),s.content=r,s.map=[e,t.line-1],s.children=[],s=t.push("heading_close","h"+String(c),-1),s.markup=String.fromCharCode(f),t.parentType=h,!0)}},{}],25:[function(t,e,n){"use strict";function r(t,e){var n,r,i,o;return r=t.bMarks[e]+t.tShift[e],i=t.eMarks[e],n=t.src.charCodeAt(r++),42!==n&&45!==n&&43!==n?-1:r<i&&(o=t.src.charCodeAt(r),!a(o))?-1:r}function i(t,e){var n,r=t.bMarks[e]+t.tShift[e],i=r,o=t.eMarks[e];if(i+1>=o)return-1;if(n=t.src.charCodeAt(i++),n<48||n>57)return-1;for(;;){if(i>=o)return-1;n=t.src.charCodeAt(i++);{if(!(n>=48&&n<=57)){if(41===n||46===n)break;return-1}if(i-r>=10)return-1}}return i<o&&(n=t.src.charCodeAt(i),!a(n))?-1:i}function o(t,e){var n,r,i=t.level+2;for(n=e+2,r=t.tokens.length-2;n<r;n++)t.tokens[n].level===i&&"paragraph_open"===t.tokens[n].type&&(t.tokens[n+2].hidden=!0,t.tokens[n].hidden=!0,n+=2)}var a=t("../common/utils").isSpace;e.exports=function(t,e,n,a){var s,u,l,c,f,h,d,p,m,g,v,y,b,_,w,x,k,C,E,$,S,A,T,D,F,N,M,O,j=!1,P=!0;if(t.sCount[e]-t.blkIndent>=4)return!1;if(a&&"paragraph"===t.parentType&&t.tShift[e]>=t.blkIndent&&(j=!0),(T=i(t,e))>=0){if(d=!0,F=t.bMarks[e]+t.tShift[e],b=Number(t.src.substr(F,T-F-1)),j&&1!==b)return!1}else{if(!((T=r(t,e))>=0))return!1;d=!1}if(j&&t.skipSpaces(T)>=t.eMarks[e])return!1;if(y=t.src.charCodeAt(T-1),a)return!0;for(v=t.tokens.length,d?(O=t.push("ordered_list_open","ol",1),1!==b&&(O.attrs=[["start",b]])):O=t.push("bullet_list_open","ul",1),O.map=g=[e,0],O.markup=String.fromCharCode(y),w=e,D=!1,M=t.md.block.ruler.getRules("list"),E=t.parentType,t.parentType="list";w<n;){for(A=T,_=t.eMarks[w],h=x=t.sCount[w]+T-(t.bMarks[e]+t.tShift[e]);A<_;){if(s=t.src.charCodeAt(A),9===s)x+=4-(x+t.bsCount[w])%4;else{if(32!==s)break;x++}A++}if(u=A,f=u>=_?1:x-h,f>4&&(f=1),c=h+f,O=t.push("list_item_open","li",1),O.markup=String.fromCharCode(y),O.map=p=[e,0],k=t.blkIndent,S=t.tight,$=t.tShift[e],C=t.sCount[e],t.blkIndent=c,t.tight=!0,t.tShift[e]=u-t.bMarks[e],t.sCount[e]=x,u>=_&&t.isEmpty(e+1)?t.line=Math.min(t.line+2,n):t.md.block.tokenize(t,e,n,!0),t.tight&&!D||(P=!1),D=t.line-e>1&&t.isEmpty(t.line-1),t.blkIndent=k,t.tShift[e]=$,t.sCount[e]=C,t.tight=S,O=t.push("list_item_close","li",-1),O.markup=String.fromCharCode(y),w=e=t.line,p[1]=w,u=t.bMarks[e],w>=n)break;if(t.sCount[w]<t.blkIndent)break;for(N=!1,l=0,m=M.length;l<m;l++)if(M[l](t,w,n,!0)){N=!0;break}if(N)break;if(d){if(T=i(t,w),T<0)break}else if(T=r(t,w),T<0)break;if(y!==t.src.charCodeAt(T-1))break}return O=d?t.push("ordered_list_close","ol",-1):t.push("bullet_list_close","ul",-1),O.markup=String.fromCharCode(y),g[1]=w,t.line=w,t.parentType=E,P&&o(t,v),!0}},{"../common/utils":4}],26:[function(t,e,n){"use strict";e.exports=function(t,e){var n,r,i,o,a,s,u=e+1,l=t.md.block.ruler.getRules("paragraph"),c=t.lineMax;for(s=t.parentType,t.parentType="paragraph";u<c&&!t.isEmpty(u);u++)if(!(t.sCount[u]-t.blkIndent>3||t.sCount[u]<0)){for(r=!1,i=0,o=l.length;i<o;i++)if(l[i](t,u,c,!0)){r=!0;break}if(r)break}return n=t.getLines(e,u,t.blkIndent,!1).trim(),t.line=u,a=t.push("paragraph_open","p",1),a.map=[e,t.line],a=t.push("inline","",0),a.content=n,a.map=[e,t.line],a.children=[],a=t.push("paragraph_close","p",-1),t.parentType=s,!0}},{}],27:[function(t,e,n){"use strict";var r=t("../common/utils").normalizeReference,i=t("../common/utils").isSpace;e.exports=function(t,e,n,o){var a,s,u,l,c,f,h,d,p,m,g,v,y,b,_,w,x=0,k=t.bMarks[e]+t.tShift[e],C=t.eMarks[e],E=e+1;if(t.sCount[e]-t.blkIndent>=4)return!1;if(91!==t.src.charCodeAt(k))return!1;for(;++k<C;)if(93===t.src.charCodeAt(k)&&92!==t.src.charCodeAt(k-1)){if(k+1===C)return!1;if(58!==t.src.charCodeAt(k+1))return!1;break}for(l=t.lineMax,_=t.md.block.ruler.getRules("reference"),m=t.parentType,t.parentType="reference";E<l&&!t.isEmpty(E);E++)if(!(t.sCount[E]-t.blkIndent>3||t.sCount[E]<0)){for(b=!1,f=0,h=_.length;f<h;f++)if(_[f](t,E,l,!0)){b=!0;break}if(b)break}for(y=t.getLines(e,E,t.blkIndent,!1).trim(),C=y.length,k=1;k<C;k++){if(a=y.charCodeAt(k),91===a)return!1;if(93===a){p=k;break}10===a?x++:92===a&&(k++,k<C&&10===y.charCodeAt(k)&&x++)}if(p<0||58!==y.charCodeAt(p+1))return!1;for(k=p+2;k<C;k++)if(a=y.charCodeAt(k),10===a)x++;else if(!i(a))break;if(g=t.md.helpers.parseLinkDestination(y,k,C),!g.ok)return!1;if(c=t.md.normalizeLink(g.str),!t.md.validateLink(c))return!1;for(k=g.pos,x+=g.lines,s=k,u=x,v=k;k<C;k++)if(a=y.charCodeAt(k),10===a)x++;else if(!i(a))break;for(g=t.md.helpers.parseLinkTitle(y,k,C),k<C&&v!==k&&g.ok?(w=g.str,k=g.pos,x+=g.lines):(w="",k=s,x=u);k<C&&(a=y.charCodeAt(k),i(a));)k++;if(k<C&&10!==y.charCodeAt(k)&&w)for(w="",k=s,x=u;k<C&&(a=y.charCodeAt(k),i(a));)k++;return!(k<C&&10!==y.charCodeAt(k))&&(!!(d=r(y.slice(1,p)))&&(!!o||("undefined"==typeof t.env.references&&(t.env.references={}),"undefined"==typeof t.env.references[d]&&(t.env.references[d]={title:w,href:c}),t.parentType=m,t.line=e+x+1,!0)))}},{"../common/utils":4}],28:[function(t,e,n){"use strict";function r(t,e,n,r){var i,a,s,u,l,c,f,h;for(this.src=t,this.md=e,this.env=n,this.tokens=r,this.bMarks=[],this.eMarks=[],this.tShift=[],this.sCount=[],this.bsCount=[],this.blkIndent=0,this.line=0,this.lineMax=0,this.tight=!1,this.ddIndent=-1,this.parentType="root",this.level=0,this.result="",a=this.src,h=!1,s=u=c=f=0,l=a.length;u<l;u++){if(i=a.charCodeAt(u),!h){if(o(i)){c++,9===i?f+=4-f%4:f++;continue}h=!0}10!==i&&u!==l-1||(10!==i&&u++,this.bMarks.push(s),this.eMarks.push(u),this.tShift.push(c),this.sCount.push(f),this.bsCount.push(0),h=!1,c=0,f=0,s=u+1)}this.bMarks.push(a.length),this.eMarks.push(a.length),this.tShift.push(0),this.sCount.push(0),this.bsCount.push(0),this.lineMax=this.bMarks.length-1}var i=t("../token"),o=t("../common/utils").isSpace;r.prototype.push=function(t,e,n){var r=new i(t,e,n);return r.block=!0,n<0&&this.level--,r.level=this.level,n>0&&this.level++,this.tokens.push(r),r},r.prototype.isEmpty=function(t){return this.bMarks[t]+this.tShift[t]>=this.eMarks[t]},r.prototype.skipEmptyLines=function(t){for(var e=this.lineMax;t<e&&!(this.bMarks[t]+this.tShift[t]<this.eMarks[t]);t++);return t},r.prototype.skipSpaces=function(t){for(var e,n=this.src.length;t<n&&(e=this.src.charCodeAt(t),o(e));t++);return t},r.prototype.skipSpacesBack=function(t,e){if(t<=e)return t;for(;t>e;)if(!o(this.src.charCodeAt(--t)))return t+1;return t},r.prototype.skipChars=function(t,e){for(var n=this.src.length;t<n&&this.src.charCodeAt(t)===e;t++);return t},r.prototype.skipCharsBack=function(t,e,n){if(t<=n)return t;for(;t>n;)if(e!==this.src.charCodeAt(--t))return t+1;return t},r.prototype.getLines=function(t,e,n,r){var i,a,s,u,l,c,f,h=t;if(t>=e)return"";for(c=new Array(e-t),i=0;h<e;h++,i++){for(a=0,f=u=this.bMarks[h],l=h+1<e||r?this.eMarks[h]+1:this.eMarks[h];u<l&&a<n;){if(s=this.src.charCodeAt(u),o(s))9===s?a+=4-(a+this.bsCount[h])%4:a++;else{if(!(u-f<this.tShift[h]))break;a++}u++}a>n?c[i]=new Array(a-n+1).join(" ")+this.src.slice(u,l):c[i]=this.src.slice(u,l)}return c.join("")},r.prototype.Token=i,e.exports=r},{"../common/utils":4,"../token":51}],29:[function(t,e,n){"use strict";function r(t,e){var n=t.bMarks[e]+t.blkIndent,r=t.eMarks[e];return t.src.substr(n,r-n)}function i(t){var e,n=[],r=0,i=t.length,o=0,a=0,s=!1,u=0;for(e=t.charCodeAt(r);r<i;)96===e?s?(s=!1,u=r):o%2===0&&(s=!0,u=r):124!==e||o%2!==0||s||(n.push(t.substring(a,r)),a=r+1),92===e?o++:o=0,r++,r===i&&s&&(s=!1,r=u+1),e=t.charCodeAt(r);return n.push(t.substring(a)),n}var o=t("../common/utils").isSpace;e.exports=function(t,e,n,a){var s,u,l,c,f,h,d,p,m,g,v,y;if(e+2>n)return!1;if(f=e+1,t.sCount[f]<t.blkIndent)return!1;if(t.sCount[f]-t.blkIndent>=4)return!1;if(l=t.bMarks[f]+t.tShift[f],l>=t.eMarks[f])return!1;if(s=t.src.charCodeAt(l++),124!==s&&45!==s&&58!==s)return!1;for(;l<t.eMarks[f];){if(s=t.src.charCodeAt(l),124!==s&&45!==s&&58!==s&&!o(s))return!1;l++}for(u=r(t,e+1),h=u.split("|"),m=[],c=0;c<h.length;c++){if(g=h[c].trim(),!g){if(0===c||c===h.length-1)continue;return!1}if(!/^:?-+:?$/.test(g))return!1;58===g.charCodeAt(g.length-1)?m.push(58===g.charCodeAt(0)?"center":"right"):58===g.charCodeAt(0)?m.push("left"):m.push("")}if(u=r(t,e).trim(),u.indexOf("|")===-1)return!1;if(t.sCount[e]-t.blkIndent>=4)return!1;if(h=i(u.replace(/^\||\|$/g,"")),d=h.length,d>m.length)return!1;if(a)return!0;for(p=t.push("table_open","table",1),p.map=v=[e,0],p=t.push("thead_open","thead",1),p.map=[e,e+1],p=t.push("tr_open","tr",1),p.map=[e,e+1],c=0;c<h.length;c++)p=t.push("th_open","th",1),
|
||
p.map=[e,e+1],m[c]&&(p.attrs=[["style","text-align:"+m[c]]]),p=t.push("inline","",0),p.content=h[c].trim(),p.map=[e,e+1],p.children=[],p=t.push("th_close","th",-1);for(p=t.push("tr_close","tr",-1),p=t.push("thead_close","thead",-1),p=t.push("tbody_open","tbody",1),p.map=y=[e+2,0],f=e+2;f<n&&!(t.sCount[f]<t.blkIndent)&&(u=r(t,f).trim(),u.indexOf("|")!==-1)&&!(t.sCount[f]-t.blkIndent>=4);f++){for(h=i(u.replace(/^\||\|$/g,"")),p=t.push("tr_open","tr",1),c=0;c<d;c++)p=t.push("td_open","td",1),m[c]&&(p.attrs=[["style","text-align:"+m[c]]]),p=t.push("inline","",0),p.content=h[c]?h[c].trim():"",p.children=[],p=t.push("td_close","td",-1);p=t.push("tr_close","tr",-1)}return p=t.push("tbody_close","tbody",-1),p=t.push("table_close","table",-1),v[1]=y[1]=f,t.line=f,!0}},{"../common/utils":4}],30:[function(t,e,n){"use strict";e.exports=function(t){var e;t.inlineMode?(e=new t.Token("inline","",0),e.content=t.src,e.map=[0,1],e.children=[],t.tokens.push(e)):t.md.block.parse(t.src,t.md,t.env,t.tokens)}},{}],31:[function(t,e,n){"use strict";e.exports=function(t){var e,n,r,i=t.tokens;for(n=0,r=i.length;n<r;n++)e=i[n],"inline"===e.type&&t.md.inline.parse(e.content,t.md,t.env,e.children)}},{}],32:[function(t,e,n){"use strict";function r(t){return/^<a[>\s]/i.test(t)}function i(t){return/^<\/a\s*>/i.test(t)}var o=t("../common/utils").arrayReplaceAt;e.exports=function(t){var e,n,a,s,u,l,c,f,h,d,p,m,g,v,y,b,_,w=t.tokens;if(t.md.options.linkify)for(n=0,a=w.length;n<a;n++)if("inline"===w[n].type&&t.md.linkify.pretest(w[n].content))for(s=w[n].children,g=0,e=s.length-1;e>=0;e--)if(l=s[e],"link_close"!==l.type){if("html_inline"===l.type&&(r(l.content)&&g>0&&g--,i(l.content)&&g++),!(g>0)&&"text"===l.type&&t.md.linkify.test(l.content)){for(h=l.content,_=t.md.linkify.match(h),c=[],m=l.level,p=0,f=0;f<_.length;f++)v=_[f].url,y=t.md.normalizeLink(v),t.md.validateLink(y)&&(b=_[f].text,b=_[f].schema?"mailto:"!==_[f].schema||/^mailto:/i.test(b)?t.md.normalizeLinkText(b):t.md.normalizeLinkText("mailto:"+b).replace(/^mailto:/,""):t.md.normalizeLinkText("http://"+b).replace(/^http:\/\//,""),d=_[f].index,d>p&&(u=new t.Token("text","",0),u.content=h.slice(p,d),u.level=m,c.push(u)),u=new t.Token("link_open","a",1),u.attrs=[["href",y]],u.level=m++,u.markup="linkify",u.info="auto",c.push(u),u=new t.Token("text","",0),u.content=b,u.level=m,c.push(u),u=new t.Token("link_close","a",(-1)),u.level=--m,u.markup="linkify",u.info="auto",c.push(u),p=_[f].lastIndex);p<h.length&&(u=new t.Token("text","",0),u.content=h.slice(p),u.level=m,c.push(u)),w[n].children=s=o(s,e,c)}}else for(e--;s[e].level!==l.level&&"link_open"!==s[e].type;)e--}},{"../common/utils":4}],33:[function(t,e,n){"use strict";var r=/\r[\n\u0085]?|[\u2424\u2028\u0085]/g,i=/\u0000/g;e.exports=function(t){var e;e=t.src.replace(r,"\n"),e=e.replace(i,"<22>"),t.src=e}},{}],34:[function(t,e,n){"use strict";function r(t,e){return l[e.toLowerCase()]}function i(t){var e,n,i=0;for(e=t.length-1;e>=0;e--)n=t[e],"text"!==n.type||i||(n.content=n.content.replace(u,r)),"link_open"===n.type&&"auto"===n.info&&i--,"link_close"===n.type&&"auto"===n.info&&i++}function o(t){var e,n,r=0;for(e=t.length-1;e>=0;e--)n=t[e],"text"!==n.type||r||a.test(n.content)&&(n.content=n.content.replace(/\+-/g,"±").replace(/\.{2,}/g,"…").replace(/([?!])…/g,"$1..").replace(/([?!]){4,}/g,"$1$1$1").replace(/,{2,}/g,",").replace(/(^|[^-])---([^-]|$)/gm,"$1—$2").replace(/(^|\s)--(\s|$)/gm,"$1–$2").replace(/(^|[^-\s])--([^-\s]|$)/gm,"$1–$2")),"link_open"===n.type&&"auto"===n.info&&r--,"link_close"===n.type&&"auto"===n.info&&r++}var a=/\+-|\.\.|\?\?\?\?|!!!!|,,|--/,s=/\((c|tm|r|p)\)/i,u=/\((c|tm|r|p)\)/gi,l={c:"©",r:"®",p:"§",tm:"™"};e.exports=function(t){var e;if(t.md.options.typographer)for(e=t.tokens.length-1;e>=0;e--)"inline"===t.tokens[e].type&&(s.test(t.tokens[e].content)&&i(t.tokens[e].children),a.test(t.tokens[e].content)&&o(t.tokens[e].children))}},{}],35:[function(t,e,n){"use strict";function r(t,e,n){return t.substr(0,e)+n+t.substr(e+1)}function i(t,e){var n,i,u,f,h,d,p,m,g,v,y,b,_,w,x,k,C,E,$,S,A;for($=[],n=0;n<t.length;n++){for(i=t[n],p=t[n].level,C=$.length-1;C>=0&&!($[C].level<=p);C--);if($.length=C+1,"text"===i.type){u=i.content,h=0,d=u.length;t:for(;h<d&&(l.lastIndex=h,f=l.exec(u));){if(x=k=!0,h=f.index+1,E="'"===f[0],g=32,f.index-1>=0)g=u.charCodeAt(f.index-1);else for(C=n-1;C>=0&&("softbreak"!==t[C].type&&"hardbreak"!==t[C].type);C--)if("text"===t[C].type){g=t[C].content.charCodeAt(t[C].content.length-1);break}if(v=32,h<d)v=u.charCodeAt(h);else for(C=n+1;C<t.length&&("softbreak"!==t[C].type&&"hardbreak"!==t[C].type);C++)if("text"===t[C].type){v=t[C].content.charCodeAt(0);break}if(y=s(g)||a(String.fromCharCode(g)),b=s(v)||a(String.fromCharCode(v)),_=o(g),w=o(v),w?x=!1:b&&(_||y||(x=!1)),_?k=!1:y&&(w||b||(k=!1)),34===v&&'"'===f[0]&&g>=48&&g<=57&&(k=x=!1),x&&k&&(x=!1,k=b),x||k){if(k)for(C=$.length-1;C>=0&&(m=$[C],!($[C].level<p));C--)if(m.single===E&&$[C].level===p){m=$[C],E?(S=e.md.options.quotes[2],A=e.md.options.quotes[3]):(S=e.md.options.quotes[0],A=e.md.options.quotes[1]),i.content=r(i.content,f.index,A),t[m.token].content=r(t[m.token].content,m.pos,S),h+=A.length-1,m.token===n&&(h+=S.length-1),u=i.content,d=u.length,$.length=C;continue t}x?$.push({token:n,pos:f.index,single:E,level:p}):k&&E&&(i.content=r(i.content,f.index,c))}else E&&(i.content=r(i.content,f.index,c))}}}}var o=t("../common/utils").isWhiteSpace,a=t("../common/utils").isPunctChar,s=t("../common/utils").isMdAsciiPunct,u=/['"]/,l=/['"]/g,c="’";e.exports=function(t){var e;if(t.md.options.typographer)for(e=t.tokens.length-1;e>=0;e--)"inline"===t.tokens[e].type&&u.test(t.tokens[e].content)&&i(t.tokens[e].children,t)}},{"../common/utils":4}],36:[function(t,e,n){"use strict";function r(t,e,n){this.src=t,this.env=n,this.tokens=[],this.inlineMode=!1,this.md=e}var i=t("../token");r.prototype.Token=i,e.exports=r},{"../token":51}],37:[function(t,e,n){"use strict";var r=/^<([a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*)>/,i=/^<([a-zA-Z][a-zA-Z0-9+.\-]{1,31}):([^<>\x00-\x20]*)>/;e.exports=function(t,e){var n,o,a,s,u,l,c=t.pos;return 60===t.src.charCodeAt(c)&&(n=t.src.slice(c),!(n.indexOf(">")<0)&&(i.test(n)?(o=n.match(i),s=o[0].slice(1,-1),u=t.md.normalizeLink(s),!!t.md.validateLink(u)&&(e||(l=t.push("link_open","a",1),l.attrs=[["href",u]],l.markup="autolink",l.info="auto",l=t.push("text","",0),l.content=t.md.normalizeLinkText(s),l=t.push("link_close","a",-1),l.markup="autolink",l.info="auto"),t.pos+=o[0].length,!0)):!!r.test(n)&&(a=n.match(r),s=a[0].slice(1,-1),u=t.md.normalizeLink("mailto:"+s),!!t.md.validateLink(u)&&(e||(l=t.push("link_open","a",1),l.attrs=[["href",u]],l.markup="autolink",l.info="auto",l=t.push("text","",0),l.content=t.md.normalizeLinkText(s),l=t.push("link_close","a",-1),l.markup="autolink",l.info="auto"),t.pos+=a[0].length,!0))))}},{}],38:[function(t,e,n){"use strict";e.exports=function(t,e){var n,r,i,o,a,s,u=t.pos,l=t.src.charCodeAt(u);if(96!==l)return!1;for(n=u,u++,r=t.posMax;u<r&&96===t.src.charCodeAt(u);)u++;for(i=t.src.slice(n,u),o=a=u;(o=t.src.indexOf("`",a))!==-1;){for(a=o+1;a<r&&96===t.src.charCodeAt(a);)a++;if(a-o===i.length)return e||(s=t.push("code_inline","code",0),s.markup=i,s.content=t.src.slice(u,o).replace(/[ \n]+/g," ").trim()),t.pos=a,!0}return e||(t.pending+=i),t.pos+=i.length,!0}},{}],39:[function(t,e,n){"use strict";e.exports=function(t){var e,n,r,i,o=t.delimiters,a=t.delimiters.length;for(e=0;e<a;e++)if(r=o[e],r.close)for(n=e-r.jump-1;n>=0;){if(i=o[n],i.open&&i.marker===r.marker&&i.end<0&&i.level===r.level){var s=(i.close||r.open)&&"undefined"!=typeof i.length&&"undefined"!=typeof r.length&&(i.length+r.length)%3===0;if(!s){r.jump=e-n,r.open=!1,i.end=e,i.jump=0;break}}n-=i.jump+1}}},{}],40:[function(t,e,n){"use strict";e.exports.tokenize=function(t,e){var n,r,i,o=t.pos,a=t.src.charCodeAt(o);if(e)return!1;if(95!==a&&42!==a)return!1;for(r=t.scanDelims(t.pos,42===a),n=0;n<r.length;n++)i=t.push("text","",0),i.content=String.fromCharCode(a),t.delimiters.push({marker:a,length:r.length,jump:n,token:t.tokens.length-1,level:t.level,end:-1,open:r.can_open,close:r.can_close});return t.pos+=r.length,!0},e.exports.postProcess=function(t){var e,n,r,i,o,a,s=t.delimiters,u=t.delimiters.length;for(e=u-1;e>=0;e--)n=s[e],95!==n.marker&&42!==n.marker||n.end!==-1&&(r=s[n.end],a=e>0&&s[e-1].end===n.end+1&&s[e-1].token===n.token-1&&s[n.end+1].token===r.token+1&&s[e-1].marker===n.marker,o=String.fromCharCode(n.marker),i=t.tokens[n.token],i.type=a?"strong_open":"em_open",i.tag=a?"strong":"em",i.nesting=1,i.markup=a?o+o:o,i.content="",i=t.tokens[r.token],i.type=a?"strong_close":"em_close",i.tag=a?"strong":"em",i.nesting=-1,i.markup=a?o+o:o,i.content="",a&&(t.tokens[s[e-1].token].content="",t.tokens[s[n.end+1].token].content="",e--))}},{}],41:[function(t,e,n){"use strict";var r=t("../common/entities"),i=t("../common/utils").has,o=t("../common/utils").isValidEntityCode,a=t("../common/utils").fromCodePoint,s=/^&#((?:x[a-f0-9]{1,8}|[0-9]{1,8}));/i,u=/^&([a-z][a-z0-9]{1,31});/i;e.exports=function(t,e){var n,l,c,f=t.pos,h=t.posMax;if(38!==t.src.charCodeAt(f))return!1;if(f+1<h)if(n=t.src.charCodeAt(f+1),35===n){if(c=t.src.slice(f).match(s))return e||(l="x"===c[1][0].toLowerCase()?parseInt(c[1].slice(1),16):parseInt(c[1],10),t.pending+=a(o(l)?l:65533)),t.pos+=c[0].length,!0}else if(c=t.src.slice(f).match(u),c&&i(r,c[1]))return e||(t.pending+=r[c[1]]),t.pos+=c[0].length,!0;return e||(t.pending+="&"),t.pos++,!0}},{"../common/entities":1,"../common/utils":4}],42:[function(t,e,n){"use strict";for(var r=t("../common/utils").isSpace,i=[],o=0;o<256;o++)i.push(0);"\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-".split("").forEach(function(t){i[t.charCodeAt(0)]=1}),e.exports=function(t,e){var n,o=t.pos,a=t.posMax;if(92!==t.src.charCodeAt(o))return!1;if(o++,o<a){if(n=t.src.charCodeAt(o),n<256&&0!==i[n])return e||(t.pending+=t.src[o]),t.pos+=2,!0;if(10===n){for(e||t.push("hardbreak","br",0),o++;o<a&&(n=t.src.charCodeAt(o),r(n));)o++;return t.pos=o,!0}}return e||(t.pending+="\\"),t.pos++,!0}},{"../common/utils":4}],43:[function(t,e,n){"use strict";function r(t){var e=32|t;return e>=97&&e<=122}var i=t("../common/html_re").HTML_TAG_RE;e.exports=function(t,e){var n,o,a,s,u=t.pos;return!!t.md.options.html&&(a=t.posMax,!(60!==t.src.charCodeAt(u)||u+2>=a)&&(n=t.src.charCodeAt(u+1),!(33!==n&&63!==n&&47!==n&&!r(n))&&(!!(o=t.src.slice(u).match(i))&&(e||(s=t.push("html_inline","",0),s.content=t.src.slice(u,u+o[0].length)),t.pos+=o[0].length,!0))))}},{"../common/html_re":3}],44:[function(t,e,n){"use strict";var r=t("../common/utils").normalizeReference,i=t("../common/utils").isSpace;e.exports=function(t,e){var n,o,a,s,u,l,c,f,h,d,p,m,g,v="",y=t.pos,b=t.posMax;if(33!==t.src.charCodeAt(t.pos))return!1;if(91!==t.src.charCodeAt(t.pos+1))return!1;if(l=t.pos+2,u=t.md.helpers.parseLinkLabel(t,t.pos+1,!1),u<0)return!1;if(c=u+1,c<b&&40===t.src.charCodeAt(c)){for(c++;c<b&&(o=t.src.charCodeAt(c),i(o)||10===o);c++);if(c>=b)return!1;for(g=c,h=t.md.helpers.parseLinkDestination(t.src,c,t.posMax),h.ok&&(v=t.md.normalizeLink(h.str),t.md.validateLink(v)?c=h.pos:v=""),g=c;c<b&&(o=t.src.charCodeAt(c),i(o)||10===o);c++);if(h=t.md.helpers.parseLinkTitle(t.src,c,t.posMax),c<b&&g!==c&&h.ok)for(d=h.str,c=h.pos;c<b&&(o=t.src.charCodeAt(c),i(o)||10===o);c++);else d="";if(c>=b||41!==t.src.charCodeAt(c))return t.pos=y,!1;c++}else{if("undefined"==typeof t.env.references)return!1;if(c<b&&91===t.src.charCodeAt(c)?(g=c+1,c=t.md.helpers.parseLinkLabel(t,c),c>=0?s=t.src.slice(g,c++):c=u+1):c=u+1,s||(s=t.src.slice(l,u)),f=t.env.references[r(s)],!f)return t.pos=y,!1;v=f.href,d=f.title}return e||(a=t.src.slice(l,u),t.md.inline.parse(a,t.md,t.env,m=[]),p=t.push("image","img",0),p.attrs=n=[["src",v],["alt",""]],p.children=m,p.content=a,d&&n.push(["title",d])),t.pos=c,t.posMax=b,!0}},{"../common/utils":4}],45:[function(t,e,n){"use strict";var r=t("../common/utils").normalizeReference,i=t("../common/utils").isSpace;e.exports=function(t,e){var n,o,a,s,u,l,c,f,h,d,p="",m=t.pos,g=t.posMax,v=t.pos,y=!0;if(91!==t.src.charCodeAt(t.pos))return!1;if(u=t.pos+1,s=t.md.helpers.parseLinkLabel(t,t.pos,!0),s<0)return!1;if(l=s+1,l<g&&40===t.src.charCodeAt(l)){for(y=!1,l++;l<g&&(o=t.src.charCodeAt(l),i(o)||10===o);l++);if(l>=g)return!1;for(v=l,c=t.md.helpers.parseLinkDestination(t.src,l,t.posMax),c.ok&&(p=t.md.normalizeLink(c.str),t.md.validateLink(p)?l=c.pos:p=""),v=l;l<g&&(o=t.src.charCodeAt(l),i(o)||10===o);l++);if(c=t.md.helpers.parseLinkTitle(t.src,l,t.posMax),l<g&&v!==l&&c.ok)for(h=c.str,l=c.pos;l<g&&(o=t.src.charCodeAt(l),i(o)||10===o);l++);else h="";(l>=g||41!==t.src.charCodeAt(l))&&(y=!0),l++}if(y){if("undefined"==typeof t.env.references)return!1;if(l<g&&91===t.src.charCodeAt(l)?(v=l+1,l=t.md.helpers.parseLinkLabel(t,l),l>=0?a=t.src.slice(v,l++):l=s+1):l=s+1,a||(a=t.src.slice(u,s)),f=t.env.references[r(a)],!f)return t.pos=m,!1;p=f.href,h=f.title}return e||(t.pos=u,t.posMax=s,d=t.push("link_open","a",1),d.attrs=n=[["href",p]],h&&n.push(["title",h]),t.md.inline.tokenize(t),d=t.push("link_close","a",-1)),t.pos=l,t.posMax=g,!0}},{"../common/utils":4}],46:[function(t,e,n){"use strict";var r=t("../common/utils").isSpace;e.exports=function(t,e){var n,i,o=t.pos;if(10!==t.src.charCodeAt(o))return!1;for(n=t.pending.length-1,i=t.posMax,e||(n>=0&&32===t.pending.charCodeAt(n)?n>=1&&32===t.pending.charCodeAt(n-1)?(t.pending=t.pending.replace(/ +$/,""),t.push("hardbreak","br",0)):(t.pending=t.pending.slice(0,-1),t.push("softbreak","br",0)):t.push("softbreak","br",0)),o++;o<i&&r(t.src.charCodeAt(o));)o++;return t.pos=o,!0}},{"../common/utils":4}],47:[function(t,e,n){"use strict";function r(t,e,n,r){this.src=t,this.env=n,this.md=e,this.tokens=r,this.pos=0,this.posMax=this.src.length,this.level=0,this.pending="",this.pendingLevel=0,this.cache={},this.delimiters=[]}var i=t("../token"),o=t("../common/utils").isWhiteSpace,a=t("../common/utils").isPunctChar,s=t("../common/utils").isMdAsciiPunct;r.prototype.pushPending=function(){var t=new i("text","",0);return t.content=this.pending,t.level=this.pendingLevel,this.tokens.push(t),this.pending="",t},r.prototype.push=function(t,e,n){this.pending&&this.pushPending();var r=new i(t,e,n);return n<0&&this.level--,r.level=this.level,n>0&&this.level++,this.pendingLevel=this.level,this.tokens.push(r),r},r.prototype.scanDelims=function(t,e){var n,r,i,u,l,c,f,h,d,p=t,m=!0,g=!0,v=this.posMax,y=this.src.charCodeAt(t);for(n=t>0?this.src.charCodeAt(t-1):32;p<v&&this.src.charCodeAt(p)===y;)p++;return i=p-t,r=p<v?this.src.charCodeAt(p):32,f=s(n)||a(String.fromCharCode(n)),d=s(r)||a(String.fromCharCode(r)),c=o(n),h=o(r),h?m=!1:d&&(c||f||(m=!1)),c?g=!1:f&&(h||d||(g=!1)),e?(u=m,l=g):(u=m&&(!g||f),l=g&&(!m||d)),{can_open:u,can_close:l,length:i}},r.prototype.Token=i,e.exports=r},{"../common/utils":4,"../token":51}],48:[function(t,e,n){"use strict";e.exports.tokenize=function(t,e){var n,r,i,o,a,s=t.pos,u=t.src.charCodeAt(s);if(e)return!1;if(126!==u)return!1;if(r=t.scanDelims(t.pos,!0),o=r.length,a=String.fromCharCode(u),o<2)return!1;for(o%2&&(i=t.push("text","",0),i.content=a,o--),n=0;n<o;n+=2)i=t.push("text","",0),i.content=a+a,t.delimiters.push({marker:u,jump:n,token:t.tokens.length-1,level:t.level,end:-1,open:r.can_open,close:r.can_close});return t.pos+=r.length,!0},e.exports.postProcess=function(t){var e,n,r,i,o,a=[],s=t.delimiters,u=t.delimiters.length;for(e=0;e<u;e++)r=s[e],126===r.marker&&r.end!==-1&&(i=s[r.end],o=t.tokens[r.token],o.type="s_open",o.tag="s",o.nesting=1,o.markup="~~",o.content="",o=t.tokens[i.token],o.type="s_close",o.tag="s",o.nesting=-1,o.markup="~~",o.content="","text"===t.tokens[i.token-1].type&&"~"===t.tokens[i.token-1].content&&a.push(i.token-1));for(;a.length;){for(e=a.pop(),n=e+1;n<t.tokens.length&&"s_close"===t.tokens[n].type;)n++;n--,e!==n&&(o=t.tokens[n],t.tokens[n]=t.tokens[e],t.tokens[e]=o)}}},{}],49:[function(t,e,n){"use strict";function r(t){switch(t){case 10:case 33:case 35:case 36:case 37:case 38:case 42:case 43:case 45:case 58:case 60:case 61:case 62:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 125:case 126:return!0;default:return!1}}e.exports=function(t,e){for(var n=t.pos;n<t.posMax&&!r(t.src.charCodeAt(n));)n++;return n!==t.pos&&(e||(t.pending+=t.src.slice(t.pos,n)),t.pos=n,!0)}},{}],50:[function(t,e,n){"use strict";e.exports=function(t){var e,n,r=0,i=t.tokens,o=t.tokens.length;for(e=n=0;e<o;e++)r+=i[e].nesting,i[e].level=r,"text"===i[e].type&&e+1<o&&"text"===i[e+1].type?i[e+1].content=i[e].content+i[e+1].content:(e!==n&&(i[n]=i[e]),n++);e!==n&&(i.length=n)}},{}],51:[function(t,e,n){"use strict";function r(t,e,n){this.type=t,this.tag=e,this.attrs=null,this.map=null,this.nesting=n,this.level=0,this.children=null,this.content="",this.markup="",this.info="",this.meta=null,this.block=!1,this.hidden=!1}r.prototype.attrIndex=function(t){var e,n,r;if(!this.attrs)return-1;for(e=this.attrs,n=0,r=e.length;n<r;n++)if(e[n][0]===t)return n;return-1},r.prototype.attrPush=function(t){this.attrs?this.attrs.push(t):this.attrs=[t]},r.prototype.attrSet=function(t,e){var n=this.attrIndex(t),r=[t,e];n<0?this.attrPush(r):this.attrs[n]=r},r.prototype.attrGet=function(t){var e=this.attrIndex(t),n=null;return e>=0&&(n=this.attrs[e][1]),n},r.prototype.attrJoin=function(t,e){var n=this.attrIndex(t);n<0?this.attrPush([t,e]):this.attrs[n][1]=this.attrs[n][1]+" "+e},e.exports=r},{}],52:[function(t,e,n){e.exports={Aacute:"Á",aacute:"á",Abreve:"Ă",abreve:"ă",ac:"∾",acd:"∿",acE:"∾̳",Acirc:"Â",acirc:"â",acute:"´",Acy:"А",acy:"а",AElig:"Æ",aelig:"æ",af:"",Afr:"𝔄",afr:"𝔞",Agrave:"À",agrave:"à",alefsym:"ℵ",aleph:"ℵ",Alpha:"Α",alpha:"α",Amacr:"Ā",amacr:"ā",amalg:"⨿",amp:"&",AMP:"&",andand:"⩕",And:"⩓",and:"∧",andd:"⩜",andslope:"⩘",andv:"⩚",ang:"∠",ange:"⦤",angle:"∠",angmsdaa:"⦨",angmsdab:"⦩",angmsdac:"⦪",angmsdad:"⦫",angmsdae:"⦬",angmsdaf:"⦭",angmsdag:"⦮",angmsdah:"⦯",angmsd:"∡",angrt:"∟",angrtvb:"⊾",angrtvbd:"⦝",angsph:"∢",angst:"Å",angzarr:"⍼",Aogon:"Ą",aogon:"ą",Aopf:"𝔸",aopf:"𝕒",apacir:"⩯",ap:"≈",apE:"⩰",ape:"≊",apid:"≋",apos:"'",ApplyFunction:"",approx:"≈",approxeq:"≊",Aring:"Å",aring:"å",Ascr:"𝒜",ascr:"𝒶",Assign:"≔",ast:"*",asymp:"≈",asympeq:"≍",Atilde:"Ã",atilde:"ã",Auml:"Ä",auml:"ä",awconint:"∳",awint:"⨑",backcong:"≌",backepsilon:"϶",backprime:"‵",backsim:"∽",backsimeq:"⋍",Backslash:"∖",Barv:"⫧",barvee:"⊽",barwed:"⌅",Barwed:"⌆",barwedge:"⌅",bbrk:"⎵",bbrktbrk:"⎶",bcong:"≌",Bcy:"Б",bcy:"б",bdquo:"„",becaus:"∵",because:"∵",Because:"∵",bemptyv:"⦰",bepsi:"϶",bernou:"ℬ",Bernoullis:"ℬ",Beta:"Β",beta:"β",beth:"ℶ",between:"≬",Bfr:"𝔅",bfr:"𝔟",bigcap:"⋂",bigcirc:"◯",bigcup:"⋃",bigodot:"⨀",bigoplus:"⨁",bigotimes:"⨂",bigsqcup:"⨆",bigstar:"★",bigtriangledown:"▽",bigtriangleup:"△",biguplus:"⨄",bigvee:"⋁",bigwedge:"⋀",bkarow:"⤍",blacklozenge:"⧫",blacksquare:"▪",blacktriangle:"▴",blacktriangledown:"▾",blacktriangleleft:"◂",blacktriangleright:"▸",blank:"␣",blk12:"▒",blk14:"░",blk34:"▓",block:"█",bne:"=⃥",bnequiv:"≡⃥",bNot:"⫭",bnot:"⌐",Bopf:"𝔹",bopf:"𝕓",bot:"⊥",bottom:"⊥",bowtie:"⋈",boxbox:"⧉",boxdl:"┐",boxdL:"╕",boxDl:"╖",boxDL:"╗",boxdr:"┌",boxdR:"╒",boxDr:"╓",boxDR:"╔",boxh:"─",boxH:"═",boxhd:"┬",boxHd:"╤",boxhD:"╥",boxHD:"╦",boxhu:"┴",boxHu:"╧",boxhU:"╨",boxHU:"╩",boxminus:"⊟",boxplus:"⊞",boxtimes:"⊠",boxul:"┘",boxuL:"╛",boxUl:"╜",boxUL:"╝",boxur:"└",boxuR:"╘",boxUr:"╙",boxUR:"╚",boxv:"│",boxV:"║",boxvh:"┼",boxvH:"╪",boxVh:"╫",boxVH:"╬",boxvl:"┤",boxvL:"╡",boxVl:"╢",boxVL:"╣",boxvr:"├",boxvR:"╞",boxVr:"╟",boxVR:"╠",bprime:"‵",breve:"˘",Breve:"˘",brvbar:"¦",bscr:"𝒷",Bscr:"ℬ",bsemi:"⁏",bsim:"∽",bsime:"⋍",bsolb:"⧅",bsol:"\\",bsolhsub:"⟈",bull:"•",bullet:"•",bump:"≎",bumpE:"⪮",bumpe:"≏",Bumpeq:"≎",bumpeq:"≏",Cacute:"Ć",cacute:"ć",capand:"⩄",capbrcup:"⩉",capcap:"⩋",cap:"∩",Cap:"⋒",capcup:"⩇",capdot:"⩀",CapitalDifferentialD:"ⅅ",caps:"∩︀",caret:"⁁",caron:"ˇ",Cayleys:"ℭ",ccaps:"⩍",Ccaron:"Č",ccaron:"č",Ccedil:"Ç",ccedil:"ç",Ccirc:"Ĉ",ccirc:"ĉ",Cconint:"∰",ccups:"⩌",ccupssm:"⩐",Cdot:"Ċ",cdot:"ċ",cedil:"¸",Cedilla:"¸",cemptyv:"⦲",cent:"¢",centerdot:"·",CenterDot:"·",cfr:"𝔠",Cfr:"ℭ",CHcy:"Ч",chcy:"ч",check:"✓",checkmark:"✓",Chi:"Χ",chi:"χ",circ:"ˆ",circeq:"≗",circlearrowleft:"↺",circlearrowright:"↻",circledast:"⊛",circledcirc:"⊚",circleddash:"⊝",CircleDot:"⊙",circledR:"®",circledS:"Ⓢ",CircleMinus:"⊖",CirclePlus:"⊕",CircleTimes:"⊗",cir:"○",cirE:"⧃",cire:"≗",cirfnint:"⨐",cirmid:"⫯",cirscir:"⧂",ClockwiseContourIntegral:"∲",CloseCurlyDoubleQuote:"”",CloseCurlyQuote:"’",clubs:"♣",clubsuit:"♣",colon:":",Colon:"∷",Colone:"⩴",colone:"≔",coloneq:"≔",comma:",",commat:"@",comp:"∁",compfn:"∘",complement:"∁",complexes:"ℂ",cong:"≅",congdot:"⩭",Congruent:"≡",conint:"∮",Conint:"∯",ContourIntegral:"∮",copf:"𝕔",Copf:"ℂ",coprod:"∐",Coproduct:"∐",copy:"©",COPY:"©",copysr:"℗",CounterClockwiseContourIntegral:"∳",crarr:"↵",cross:"✗",Cross:"⨯",Cscr:"𝒞",cscr:"𝒸",csub:"⫏",csube:"⫑",csup:"⫐",csupe:"⫒",ctdot:"⋯",cudarrl:"⤸",cudarrr:"⤵",cuepr:"⋞",cuesc:"⋟",cularr:"↶",cularrp:"⤽",cupbrcap:"⩈",cupcap:"⩆",CupCap:"≍",cup:"∪",Cup:"⋓",cupcup:"⩊",cupdot:"⊍",cupor:"⩅",cups:"∪︀",curarr:"↷",curarrm:"⤼",curlyeqprec:"⋞",curlyeqsucc:"⋟",curlyvee:"⋎",curlywedge:"⋏",curren:"¤",curvearrowleft:"↶",curvearrowright:"↷",cuvee:"⋎",cuwed:"⋏",cwconint:"∲",cwint:"∱",cylcty:"⌭",dagger:"†",Dagger:"‡",daleth:"ℸ",darr:"↓",Darr:"↡",dArr:"⇓",dash:"‐",Dashv:"⫤",dashv:"⊣",dbkarow:"⤏",dblac:"˝",Dcaron:"Ď",dcaron:"ď",Dcy:"Д",dcy:"д",ddagger:"‡",ddarr:"⇊",DD:"ⅅ",dd:"ⅆ",DDotrahd:"⤑",ddotseq:"⩷",deg:"°",Del:"∇",Delta:"Δ",delta:"δ",demptyv:"⦱",dfisht:"⥿",Dfr:"𝔇",dfr:"𝔡",dHar:"⥥",dharl:"⇃",dharr:"⇂",DiacriticalAcute:"´",DiacriticalDot:"˙",DiacriticalDoubleAcute:"˝",DiacriticalGrave:"`",DiacriticalTilde:"˜",diam:"⋄",diamond:"⋄",Diamond:"⋄",diamondsuit:"♦",diams:"♦",die:"¨",DifferentialD:"ⅆ",digamma:"ϝ",disin:"⋲",div:"÷",divide:"÷",divideontimes:"⋇",divonx:"⋇",DJcy:"Ђ",djcy:"ђ",dlcorn:"⌞",dlcrop:"⌍",dollar:"$",Dopf:"𝔻",dopf:"𝕕",Dot:"¨",dot:"˙",DotDot:"⃜",doteq:"≐",doteqdot:"≑",DotEqual:"≐",dotminus:"∸",dotplus:"∔",dotsquare:"⊡",doublebarwedge:"⌆",DoubleContourIntegral:"∯",DoubleDot:"¨",DoubleDownArrow:"⇓",DoubleLeftArrow:"⇐",DoubleLeftRightArrow:"⇔",DoubleLeftTee:"⫤",DoubleLongLeftArrow:"⟸",DoubleLongLeftRightArrow:"⟺",DoubleLongRightArrow:"⟹",DoubleRightArrow:"⇒",DoubleRightTee:"⊨",DoubleUpArrow:"⇑",DoubleUpDownArrow:"⇕",DoubleVerticalBar:"∥",DownArrowBar:"⤓",downarrow:"↓",DownArrow:"↓",Downarrow:"⇓",DownArrowUpArrow:"⇵",DownBreve:"̑",downdownarrows:"⇊",downharpoonleft:"⇃",downharpoonright:"⇂",DownLeftRightVector:"⥐",DownLeftTeeVector:"⥞",DownLeftVectorBar:"⥖",DownLeftVector:"↽",DownRightTeeVector:"⥟",DownRightVectorBar:"⥗",DownRightVector:"⇁",DownTeeArrow:"↧",DownTee:"⊤",drbkarow:"⤐",drcorn:"⌟",drcrop:"⌌",Dscr:"𝒟",dscr:"𝒹",DScy:"Ѕ",dscy:"ѕ",dsol:"⧶",Dstrok:"Đ",dstrok:"đ",dtdot:"⋱",dtri:"▿",dtrif:"▾",duarr:"⇵",duhar:"⥯",dwangle:"⦦",DZcy:"Џ",dzcy:"џ",dzigrarr:"⟿",Eacute:"É",eacute:"é",easter:"⩮",Ecaron:"Ě",ecaron:"ě",Ecirc:"Ê",ecirc:"ê",ecir:"≖",ecolon:"≕",Ecy:"Э",ecy:"э",eDDot:"⩷",Edot:"Ė",edot:"ė",eDot:"≑",ee:"ⅇ",efDot:"≒",Efr:"𝔈",efr:"𝔢",eg:"⪚",Egrave:"È",egrave:"è",egs:"⪖",egsdot:"⪘",el:"⪙",Element:"∈",elinters:"⏧",ell:"ℓ",els:"⪕",elsdot:"⪗",Emacr:"Ē",emacr:"ē",empty:"∅",emptyset:"∅",EmptySmallSquare:"◻",emptyv:"∅",EmptyVerySmallSquare:"▫",emsp13:" ",emsp14:" ",emsp:" ",ENG:"Ŋ",eng:"ŋ",ensp:" ",Eogon:"Ę",eogon:"ę",Eopf:"𝔼",eopf:"𝕖",epar:"⋕",eparsl:"⧣",eplus:"⩱",epsi:"ε",Epsilon:"Ε",epsilon:"ε",epsiv:"ϵ",eqcirc:"≖",eqcolon:"≕",eqsim:"≂",eqslantgtr:"⪖",eqslantless:"⪕",Equal:"⩵",equals:"=",EqualTilde:"≂",equest:"≟",Equilibrium:"⇌",equiv:"≡",equivDD:"⩸",eqvparsl:"⧥",erarr:"⥱",erDot:"≓",escr:"ℯ",Escr:"ℰ",esdot:"≐",Esim:"⩳",esim:"≂",Eta:"Η",eta:"η",ETH:"Ð",eth:"ð",Euml:"Ë",euml:"ë",euro:"€",excl:"!",exist:"∃",Exists:"∃",expectation:"ℰ",exponentiale:"ⅇ",ExponentialE:"ⅇ",fallingdotseq:"≒",Fcy:"Ф",fcy:"ф",female:"♀",ffilig:"ffi",fflig:"ff",ffllig:"ffl",Ffr:"𝔉",ffr:"𝔣",filig:"fi",FilledSmallSquare:"◼",FilledVerySmallSquare:"▪",fjlig:"fj",flat:"♭",fllig:"fl",fltns:"▱",fnof:"ƒ",Fopf:"𝔽",fopf:"𝕗",forall:"∀",ForAll:"∀",fork:"⋔",forkv:"⫙",Fouriertrf:"ℱ",fpartint:"⨍",frac12:"½",frac13:"⅓",frac14:"¼",frac15:"⅕",frac16:"⅙",frac18:"⅛",frac23:"⅔",frac25:"⅖",frac34:"¾",frac35:"⅗",frac38:"⅜",frac45:"⅘",frac56:"⅚",frac58:"⅝",frac78:"⅞",frasl:"⁄",frown:"⌢",fscr:"𝒻",Fscr:"ℱ",gacute:"ǵ",Gamma:"Γ",gamma:"γ",Gammad:"Ϝ",gammad:"ϝ",gap:"⪆",Gbreve:"Ğ",gbreve:"ğ",Gcedil:"Ģ",Gcirc:"Ĝ",gcirc:"ĝ",Gcy:"Г",gcy:"г",Gdot:"Ġ",gdot:"ġ",ge:"≥",gE:"≧",gEl:"⪌",gel:"⋛",geq:"≥",geqq:"≧",geqslant:"⩾",gescc:"⪩",ges:"⩾",gesdot:"⪀",gesdoto:"⪂",gesdotol:"⪄",gesl:"⋛︀",gesles:"⪔",Gfr:"𝔊",gfr:"𝔤",gg:"≫",Gg:"⋙",ggg:"⋙",gimel:"ℷ",GJcy:"Ѓ",gjcy:"ѓ",gla:"⪥",gl:"≷",glE:"⪒",glj:"⪤",gnap:"⪊",gnapprox:"⪊",gne:"⪈",gnE:"≩",gneq:"⪈",gneqq:"≩",gnsim:"⋧",Gopf:"𝔾",gopf:"𝕘",grave:"`",GreaterEqual:"≥",GreaterEqualLess:"⋛",GreaterFullEqual:"≧",GreaterGreater:"⪢",GreaterLess:"≷",GreaterSlantEqual:"⩾",GreaterTilde:"≳",Gscr:"𝒢",gscr:"ℊ",gsim:"≳",gsime:"⪎",gsiml:"⪐",gtcc:"⪧",gtcir:"⩺",gt:">",GT:">",Gt:"≫",gtdot:"⋗",gtlPar:"⦕",gtquest:"⩼",gtrapprox:"⪆",gtrarr:"⥸",gtrdot:"⋗",gtreqless:"⋛",gtreqqless:"⪌",gtrless:"≷",gtrsim:"≳",gvertneqq:"≩︀",gvnE:"≩︀",Hacek:"ˇ",hairsp:" ",half:"½",hamilt:"ℋ",HARDcy:"Ъ",hardcy:"ъ",harrcir:"⥈",harr:"↔",hArr:"⇔",harrw:"↭",Hat:"^",hbar:"ℏ",Hcirc:"Ĥ",hcirc:"ĥ",hearts:"♥",heartsuit:"♥",hellip:"…",hercon:"⊹",hfr:"𝔥",Hfr:"ℌ",HilbertSpace:"ℋ",hksearow:"⤥",hkswarow:"⤦",hoarr:"⇿",homtht:"∻",hookleftarrow:"↩",hookrightarrow:"↪",hopf:"𝕙",Hopf:"ℍ",horbar:"―",HorizontalLine:"─",hscr:"𝒽",Hscr:"ℋ",hslash:"ℏ",Hstrok:"Ħ",hstrok:"ħ",HumpDownHump:"≎",HumpEqual:"≏",hybull:"⁃",hyphen:"‐",Iacute:"Í",iacute:"í",ic:"",Icirc:"Î",icirc:"î",Icy:"И",icy:"и",Idot:"İ",IEcy:"Е",iecy:"е",iexcl:"¡",iff:"⇔",ifr:"𝔦",Ifr:"ℑ",Igrave:"Ì",igrave:"ì",ii:"ⅈ",iiiint:"⨌",iiint:"∭",iinfin:"⧜",iiota:"℩",IJlig:"IJ",ijlig:"ij",Imacr:"Ī",imacr:"ī",image:"ℑ",ImaginaryI:"ⅈ",imagline:"ℐ",imagpart:"ℑ",imath:"ı",Im:"ℑ",imof:"⊷",imped:"Ƶ",Implies:"⇒",incare:"℅","in":"∈",infin:"∞",infintie:"⧝",inodot:"ı",intcal:"⊺","int":"∫",Int:"∬",integers:"ℤ",Integral:"∫",intercal:"⊺",Intersection:"⋂",intlarhk:"⨗",intprod:"⨼",InvisibleComma:"",InvisibleTimes:"",IOcy:"Ё",iocy:"ё",Iogon:"Į",iogon:"į",Iopf:"𝕀",iopf:"𝕚",Iota:"Ι",iota:"ι",iprod:"⨼",iquest:"¿",iscr:"𝒾",Iscr:"ℐ",isin:"∈",isindot:"⋵",isinE:"⋹",isins:"⋴",isinsv:"⋳",isinv:"∈",it:"",Itilde:"Ĩ",itilde:"ĩ",Iukcy:"І",iukcy:"і",Iuml:"Ï",iuml:"ï",Jcirc:"Ĵ",jcirc:"ĵ",Jcy:"Й",jcy:"й",Jfr:"𝔍",jfr:"𝔧",jmath:"ȷ",Jopf:"𝕁",jopf:"𝕛",Jscr:"𝒥",jscr:"𝒿",Jsercy:"Ј",jsercy:"ј",Jukcy:"Є",jukcy:"є",Kappa:"Κ",kappa:"κ",kappav:"ϰ",Kcedil:"Ķ",kcedil:"ķ",Kcy:"К",kcy:"к",Kfr:"𝔎",kfr:"𝔨",kgreen:"ĸ",KHcy:"Х",khcy:"х",KJcy:"Ќ",kjcy:"ќ",Kopf:"𝕂",kopf:"𝕜",Kscr:"𝒦",kscr:"𝓀",lAarr:"⇚",Lacute:"Ĺ",lacute:"ĺ",laemptyv:"⦴",lagran:"ℒ",Lambda:"Λ",lambda:"λ",lang:"⟨",Lang:"⟪",langd:"⦑",langle:"⟨",lap:"⪅",Laplacetrf:"ℒ",laquo:"«",larrb:"⇤",larrbfs:"⤟",larr:"←",Larr:"↞",lArr:"⇐",larrfs:"⤝",larrhk:"↩",larrlp:"↫",larrpl:"⤹",larrsim:"⥳",larrtl:"↢",latail:"⤙",lAtail:"⤛",lat:"⪫",late:"⪭",lates:"⪭︀",lbarr:"⤌",lBarr:"⤎",lbbrk:"❲",lbrace:"{",lbrack:"[",lbrke:"⦋",lbrksld:"⦏",lbrkslu:"⦍",Lcaron:"Ľ",lcaron:"ľ",Lcedil:"Ļ",lcedil:"ļ",lceil:"⌈",lcub:"{",Lcy:"Л",lcy:"л",ldca:"⤶",ldquo:"“",ldquor:"„",ldrdhar:"⥧",ldrushar:"⥋",ldsh:"↲",le:"≤",lE:"≦",LeftAngleBracket:"⟨",LeftArrowBar:"⇤",leftarrow:"←",LeftArrow:"←",Leftarrow:"⇐",LeftArrowRightArrow:"⇆",leftarrowtail:"↢",LeftCeiling:"⌈",LeftDoubleBracket:"⟦",LeftDownTeeVector:"⥡",LeftDownVectorBar:"⥙",LeftDownVector:"⇃",LeftFloor:"⌊",leftharpoondown:"↽",leftharpoonup:"↼",leftleftarrows:"⇇",leftrightarrow:"↔",LeftRightArrow:"↔",Leftrightarrow:"⇔",leftrightarrows:"⇆",leftrightharpoons:"⇋",leftrightsquigarrow:"↭",LeftRightVector:"⥎",LeftTeeArrow:"↤",LeftTee:"⊣",LeftTeeVector:"⥚",leftthreetimes:"⋋",LeftTriangleBar:"⧏",LeftTriangle:"⊲",LeftTriangleEqual:"⊴",LeftUpDownVector:"⥑",LeftUpTeeVector:"⥠",LeftUpVectorBar:"⥘",LeftUpVector:"↿",LeftVectorBar:"⥒",LeftVector:"↼",lEg:"⪋",leg:"⋚",leq:"≤",leqq:"≦",leqslant:"⩽",lescc:"⪨",les:"⩽",lesdot:"⩿",lesdoto:"⪁",lesdotor:"⪃",lesg:"⋚︀",lesges:"⪓",lessapprox:"⪅",lessdot:"⋖",lesseqgtr:"⋚",lesseqqgtr:"⪋",LessEqualGreater:"⋚",LessFullEqual:"≦",LessGreater:"≶",lessgtr:"≶",LessLess:"⪡",lesssim:"≲",LessSlantEqual:"⩽",LessTilde:"≲",lfisht:"⥼",lfloor:"⌊",Lfr:"𝔏",lfr:"𝔩",lg:"≶",lgE:"⪑",lHar:"⥢",lhard:"↽",lharu:"↼",lharul:"⥪",lhblk:"▄",LJcy:"Љ",ljcy:"љ",llarr:"⇇",ll:"≪",Ll:"⋘",llcorner:"⌞",Lleftarrow:"⇚",llhard:"⥫",lltri:"◺",Lmidot:"Ŀ",lmidot:"ŀ",lmoustache:"⎰",lmoust:"⎰",lnap:"⪉",lnapprox:"⪉",lne:"⪇",lnE:"≨",lneq:"⪇",lneqq:"≨",lnsim:"⋦",loang:"⟬",loarr:"⇽",lobrk:"⟦",longleftarrow:"⟵",LongLeftArrow:"⟵",Longleftarrow:"⟸",longleftrightarrow:"⟷",LongLeftRightArrow:"⟷",Longleftrightarrow:"⟺",longmapsto:"⟼",longrightarrow:"⟶",LongRightArrow:"⟶",Longrightarrow:"⟹",looparrowleft:"↫",looparrowright:"↬",lopar:"⦅",Lopf:"𝕃",lopf:"𝕝",loplus:"⨭",lotimes:"⨴",lowast:"∗",lowbar:"_",LowerLeftArrow:"↙",LowerRightArrow:"↘",loz:"◊",lozenge:"◊",lozf:"⧫",lpar:"(",lparlt:"⦓",lrarr:"⇆",lrcorner:"⌟",lrhar:"⇋",lrhard:"⥭",lrm:"",lrtri:"⊿",lsaquo:"‹",lscr:"𝓁",Lscr:"ℒ",lsh:"↰",Lsh:"↰",lsim:"≲",lsime:"⪍",lsimg:"⪏",lsqb:"[",lsquo:"‘",lsquor:"‚",Lstrok:"Ł",lstrok:"ł",ltcc:"⪦",ltcir:"⩹",lt:"<",LT:"<",Lt:"≪",ltdot:"⋖",lthree:"⋋",ltimes:"⋉",ltlarr:"⥶",ltquest:"⩻",ltri:"◃",ltrie:"⊴",ltrif:"◂",ltrPar:"⦖",lurdshar:"⥊",luruhar:"⥦",lvertneqq:"≨︀",lvnE:"≨︀",macr:"¯",male:"♂",malt:"✠",maltese:"✠",Map:"⤅",map:"↦",mapsto:"↦",mapstodown:"↧",mapstoleft:"↤",mapstoup:"↥",marker:"▮",mcomma:"⨩",Mcy:"М",mcy:"м",mdash:"—",mDDot:"∺",measuredangle:"∡",MediumSpace:" ",Mellintrf:"ℳ",Mfr:"𝔐",mfr:"𝔪",mho:"℧",micro:"µ",midast:"*",midcir:"⫰",mid:"∣",middot:"·",minusb:"⊟",minus:"−",minusd:"∸",minusdu:"⨪",MinusPlus:"∓",mlcp:"⫛",mldr:"…",mnplus:"∓",models:"⊧",Mopf:"𝕄",mopf:"𝕞",mp:"∓",mscr:"𝓂",Mscr:"ℳ",mstpos:"∾",Mu:"Μ",mu:"μ",multimap:"⊸",mumap:"⊸",nabla:"∇",Nacute:"Ń",nacute:"ń",nang:"∠⃒",nap:"≉",napE:"⩰̸",napid:"≋̸",napos:"ʼn",napprox:"≉",natural:"♮",naturals:"ℕ",natur:"♮",nbsp:" ",nbump:"≎̸",nbumpe:"≏̸",ncap:"⩃",Ncaron:"Ň",ncaron:"ň",Ncedil:"Ņ",ncedil:"ņ",ncong:"≇",ncongdot:"⩭̸",ncup:"⩂",Ncy:"Н",ncy:"н",ndash:"–",nearhk:"⤤",nearr:"↗",neArr:"⇗",nearrow:"↗",ne:"≠",nedot:"≐̸",NegativeMediumSpace:"",NegativeThickSpace:"",NegativeThinSpace:"",NegativeVeryThinSpace:"",nequiv:"≢",nesear:"⤨",nesim:"≂̸",NestedGreaterGreater:"≫",NestedLessLess:"≪",NewLine:"\n",nexist:"∄",nexists:"∄",Nfr:"𝔑",nfr:"𝔫",ngE:"≧̸",nge:"≱",ngeq:"≱",ngeqq:"≧̸",ngeqslant:"⩾̸",nges:"⩾̸",nGg:"⋙̸",ngsim:"≵",nGt:"≫⃒",ngt:"≯",ngtr:"≯",nGtv:"≫̸",nharr:"↮",nhArr:"⇎",nhpar:"⫲",ni:"∋",nis:"⋼",nisd:"⋺",niv:"∋",NJcy:"Њ",njcy:"њ",nlarr:"↚",nlArr:"⇍",nldr:"‥",nlE:"≦̸",nle:"≰",nleftarrow:"↚",nLeftarrow:"⇍",nleftrightarrow:"↮",nLeftrightarrow:"⇎",nleq:"≰",nleqq:"≦̸",nleqslant:"⩽̸",nles:"⩽̸",nless:"≮",nLl:"⋘̸",nlsim:"≴",nLt:"≪⃒",nlt:"≮",nltri:"⋪",nltrie:"⋬",nLtv:"≪̸",nmid:"∤",NoBreak:"",NonBreakingSpace:" ",nopf:"𝕟",Nopf:"ℕ",Not:"⫬",not:"¬",NotCongruent:"≢",NotCupCap:"≭",NotDoubleVerticalBar:"∦",NotElement:"∉",NotEqual:"≠",NotEqualTilde:"≂̸",NotExists:"∄",NotGreater:"≯",NotGreaterEqual:"≱",NotGreaterFullEqual:"≧̸",NotGreaterGreater:"≫̸",NotGreaterLess:"≹",NotGreaterSlantEqual:"⩾̸",NotGreaterTilde:"≵",NotHumpDownHump:"≎̸",NotHumpEqual:"≏̸",notin:"∉",notindot:"⋵̸",notinE:"⋹̸",notinva:"∉",notinvb:"⋷",notinvc:"⋶",NotLeftTriangleBar:"⧏̸",NotLeftTriangle:"⋪",NotLeftTriangleEqual:"⋬",NotLess:"≮",NotLessEqual:"≰",NotLessGreater:"≸",NotLessLess:"≪̸",NotLessSlantEqual:"⩽̸",NotLessTilde:"≴",NotNestedGreaterGreater:"⪢̸",NotNestedLessLess:"⪡̸",notni:"∌",notniva:"∌",notnivb:"⋾",notnivc:"⋽",NotPrecedes:"⊀",NotPrecedesEqual:"⪯̸",NotPrecedesSlantEqual:"⋠",NotReverseElement:"∌",NotRightTriangleBar:"⧐̸",NotRightTriangle:"⋫",NotRightTriangleEqual:"⋭",NotSquareSubset:"⊏̸",NotSquareSubsetEqual:"⋢",NotSquareSuperset:"⊐̸",NotSquareSupersetEqual:"⋣",NotSubset:"⊂⃒",NotSubsetEqual:"⊈",NotSucceeds:"⊁",NotSucceedsEqual:"⪰̸",NotSucceedsSlantEqual:"⋡",NotSucceedsTilde:"≿̸",NotSuperset:"⊃⃒",NotSupersetEqual:"⊉",NotTilde:"≁",NotTildeEqual:"≄",NotTildeFullEqual:"≇",NotTildeTilde:"≉",NotVerticalBar:"∤",nparallel:"∦",
|
||
npar:"∦",nparsl:"⫽⃥",npart:"∂̸",npolint:"⨔",npr:"⊀",nprcue:"⋠",nprec:"⊀",npreceq:"⪯̸",npre:"⪯̸",nrarrc:"⤳̸",nrarr:"↛",nrArr:"⇏",nrarrw:"↝̸",nrightarrow:"↛",nRightarrow:"⇏",nrtri:"⋫",nrtrie:"⋭",nsc:"⊁",nsccue:"⋡",nsce:"⪰̸",Nscr:"𝒩",nscr:"𝓃",nshortmid:"∤",nshortparallel:"∦",nsim:"≁",nsime:"≄",nsimeq:"≄",nsmid:"∤",nspar:"∦",nsqsube:"⋢",nsqsupe:"⋣",nsub:"⊄",nsubE:"⫅̸",nsube:"⊈",nsubset:"⊂⃒",nsubseteq:"⊈",nsubseteqq:"⫅̸",nsucc:"⊁",nsucceq:"⪰̸",nsup:"⊅",nsupE:"⫆̸",nsupe:"⊉",nsupset:"⊃⃒",nsupseteq:"⊉",nsupseteqq:"⫆̸",ntgl:"≹",Ntilde:"Ñ",ntilde:"ñ",ntlg:"≸",ntriangleleft:"⋪",ntrianglelefteq:"⋬",ntriangleright:"⋫",ntrianglerighteq:"⋭",Nu:"Ν",nu:"ν",num:"#",numero:"№",numsp:" ",nvap:"≍⃒",nvdash:"⊬",nvDash:"⊭",nVdash:"⊮",nVDash:"⊯",nvge:"≥⃒",nvgt:">⃒",nvHarr:"⤄",nvinfin:"⧞",nvlArr:"⤂",nvle:"≤⃒",nvlt:"<⃒",nvltrie:"⊴⃒",nvrArr:"⤃",nvrtrie:"⊵⃒",nvsim:"∼⃒",nwarhk:"⤣",nwarr:"↖",nwArr:"⇖",nwarrow:"↖",nwnear:"⤧",Oacute:"Ó",oacute:"ó",oast:"⊛",Ocirc:"Ô",ocirc:"ô",ocir:"⊚",Ocy:"О",ocy:"о",odash:"⊝",Odblac:"Ő",odblac:"ő",odiv:"⨸",odot:"⊙",odsold:"⦼",OElig:"Œ",oelig:"œ",ofcir:"⦿",Ofr:"𝔒",ofr:"𝔬",ogon:"˛",Ograve:"Ò",ograve:"ò",ogt:"⧁",ohbar:"⦵",ohm:"Ω",oint:"∮",olarr:"↺",olcir:"⦾",olcross:"⦻",oline:"‾",olt:"⧀",Omacr:"Ō",omacr:"ō",Omega:"Ω",omega:"ω",Omicron:"Ο",omicron:"ο",omid:"⦶",ominus:"⊖",Oopf:"𝕆",oopf:"𝕠",opar:"⦷",OpenCurlyDoubleQuote:"“",OpenCurlyQuote:"‘",operp:"⦹",oplus:"⊕",orarr:"↻",Or:"⩔",or:"∨",ord:"⩝",order:"ℴ",orderof:"ℴ",ordf:"ª",ordm:"º",origof:"⊶",oror:"⩖",orslope:"⩗",orv:"⩛",oS:"Ⓢ",Oscr:"𝒪",oscr:"ℴ",Oslash:"Ø",oslash:"ø",osol:"⊘",Otilde:"Õ",otilde:"õ",otimesas:"⨶",Otimes:"⨷",otimes:"⊗",Ouml:"Ö",ouml:"ö",ovbar:"⌽",OverBar:"‾",OverBrace:"⏞",OverBracket:"⎴",OverParenthesis:"⏜",para:"¶",parallel:"∥",par:"∥",parsim:"⫳",parsl:"⫽",part:"∂",PartialD:"∂",Pcy:"П",pcy:"п",percnt:"%",period:".",permil:"‰",perp:"⊥",pertenk:"‱",Pfr:"𝔓",pfr:"𝔭",Phi:"Φ",phi:"φ",phiv:"ϕ",phmmat:"ℳ",phone:"☎",Pi:"Π",pi:"π",pitchfork:"⋔",piv:"ϖ",planck:"ℏ",planckh:"ℎ",plankv:"ℏ",plusacir:"⨣",plusb:"⊞",pluscir:"⨢",plus:"+",plusdo:"∔",plusdu:"⨥",pluse:"⩲",PlusMinus:"±",plusmn:"±",plussim:"⨦",plustwo:"⨧",pm:"±",Poincareplane:"ℌ",pointint:"⨕",popf:"𝕡",Popf:"ℙ",pound:"£",prap:"⪷",Pr:"⪻",pr:"≺",prcue:"≼",precapprox:"⪷",prec:"≺",preccurlyeq:"≼",Precedes:"≺",PrecedesEqual:"⪯",PrecedesSlantEqual:"≼",PrecedesTilde:"≾",preceq:"⪯",precnapprox:"⪹",precneqq:"⪵",precnsim:"⋨",pre:"⪯",prE:"⪳",precsim:"≾",prime:"′",Prime:"″",primes:"ℙ",prnap:"⪹",prnE:"⪵",prnsim:"⋨",prod:"∏",Product:"∏",profalar:"⌮",profline:"⌒",profsurf:"⌓",prop:"∝",Proportional:"∝",Proportion:"∷",propto:"∝",prsim:"≾",prurel:"⊰",Pscr:"𝒫",pscr:"𝓅",Psi:"Ψ",psi:"ψ",puncsp:" ",Qfr:"𝔔",qfr:"𝔮",qint:"⨌",qopf:"𝕢",Qopf:"ℚ",qprime:"⁗",Qscr:"𝒬",qscr:"𝓆",quaternions:"ℍ",quatint:"⨖",quest:"?",questeq:"≟",quot:'"',QUOT:'"',rAarr:"⇛",race:"∽̱",Racute:"Ŕ",racute:"ŕ",radic:"√",raemptyv:"⦳",rang:"⟩",Rang:"⟫",rangd:"⦒",range:"⦥",rangle:"⟩",raquo:"»",rarrap:"⥵",rarrb:"⇥",rarrbfs:"⤠",rarrc:"⤳",rarr:"→",Rarr:"↠",rArr:"⇒",rarrfs:"⤞",rarrhk:"↪",rarrlp:"↬",rarrpl:"⥅",rarrsim:"⥴",Rarrtl:"⤖",rarrtl:"↣",rarrw:"↝",ratail:"⤚",rAtail:"⤜",ratio:"∶",rationals:"ℚ",rbarr:"⤍",rBarr:"⤏",RBarr:"⤐",rbbrk:"❳",rbrace:"}",rbrack:"]",rbrke:"⦌",rbrksld:"⦎",rbrkslu:"⦐",Rcaron:"Ř",rcaron:"ř",Rcedil:"Ŗ",rcedil:"ŗ",rceil:"⌉",rcub:"}",Rcy:"Р",rcy:"р",rdca:"⤷",rdldhar:"⥩",rdquo:"”",rdquor:"”",rdsh:"↳",real:"ℜ",realine:"ℛ",realpart:"ℜ",reals:"ℝ",Re:"ℜ",rect:"▭",reg:"®",REG:"®",ReverseElement:"∋",ReverseEquilibrium:"⇋",ReverseUpEquilibrium:"⥯",rfisht:"⥽",rfloor:"⌋",rfr:"𝔯",Rfr:"ℜ",rHar:"⥤",rhard:"⇁",rharu:"⇀",rharul:"⥬",Rho:"Ρ",rho:"ρ",rhov:"ϱ",RightAngleBracket:"⟩",RightArrowBar:"⇥",rightarrow:"→",RightArrow:"→",Rightarrow:"⇒",RightArrowLeftArrow:"⇄",rightarrowtail:"↣",RightCeiling:"⌉",RightDoubleBracket:"⟧",RightDownTeeVector:"⥝",RightDownVectorBar:"⥕",RightDownVector:"⇂",RightFloor:"⌋",rightharpoondown:"⇁",rightharpoonup:"⇀",rightleftarrows:"⇄",rightleftharpoons:"⇌",rightrightarrows:"⇉",rightsquigarrow:"↝",RightTeeArrow:"↦",RightTee:"⊢",RightTeeVector:"⥛",rightthreetimes:"⋌",RightTriangleBar:"⧐",RightTriangle:"⊳",RightTriangleEqual:"⊵",RightUpDownVector:"⥏",RightUpTeeVector:"⥜",RightUpVectorBar:"⥔",RightUpVector:"↾",RightVectorBar:"⥓",RightVector:"⇀",ring:"˚",risingdotseq:"≓",rlarr:"⇄",rlhar:"⇌",rlm:"",rmoustache:"⎱",rmoust:"⎱",rnmid:"⫮",roang:"⟭",roarr:"⇾",robrk:"⟧",ropar:"⦆",ropf:"𝕣",Ropf:"ℝ",roplus:"⨮",rotimes:"⨵",RoundImplies:"⥰",rpar:")",rpargt:"⦔",rppolint:"⨒",rrarr:"⇉",Rrightarrow:"⇛",rsaquo:"›",rscr:"𝓇",Rscr:"ℛ",rsh:"↱",Rsh:"↱",rsqb:"]",rsquo:"’",rsquor:"’",rthree:"⋌",rtimes:"⋊",rtri:"▹",rtrie:"⊵",rtrif:"▸",rtriltri:"⧎",RuleDelayed:"⧴",ruluhar:"⥨",rx:"℞",Sacute:"Ś",sacute:"ś",sbquo:"‚",scap:"⪸",Scaron:"Š",scaron:"š",Sc:"⪼",sc:"≻",sccue:"≽",sce:"⪰",scE:"⪴",Scedil:"Ş",scedil:"ş",Scirc:"Ŝ",scirc:"ŝ",scnap:"⪺",scnE:"⪶",scnsim:"⋩",scpolint:"⨓",scsim:"≿",Scy:"С",scy:"с",sdotb:"⊡",sdot:"⋅",sdote:"⩦",searhk:"⤥",searr:"↘",seArr:"⇘",searrow:"↘",sect:"§",semi:";",seswar:"⤩",setminus:"∖",setmn:"∖",sext:"✶",Sfr:"𝔖",sfr:"𝔰",sfrown:"⌢",sharp:"♯",SHCHcy:"Щ",shchcy:"щ",SHcy:"Ш",shcy:"ш",ShortDownArrow:"↓",ShortLeftArrow:"←",shortmid:"∣",shortparallel:"∥",ShortRightArrow:"→",ShortUpArrow:"↑",shy:"",Sigma:"Σ",sigma:"σ",sigmaf:"ς",sigmav:"ς",sim:"∼",simdot:"⩪",sime:"≃",simeq:"≃",simg:"⪞",simgE:"⪠",siml:"⪝",simlE:"⪟",simne:"≆",simplus:"⨤",simrarr:"⥲",slarr:"←",SmallCircle:"∘",smallsetminus:"∖",smashp:"⨳",smeparsl:"⧤",smid:"∣",smile:"⌣",smt:"⪪",smte:"⪬",smtes:"⪬︀",SOFTcy:"Ь",softcy:"ь",solbar:"⌿",solb:"⧄",sol:"/",Sopf:"𝕊",sopf:"𝕤",spades:"♠",spadesuit:"♠",spar:"∥",sqcap:"⊓",sqcaps:"⊓︀",sqcup:"⊔",sqcups:"⊔︀",Sqrt:"√",sqsub:"⊏",sqsube:"⊑",sqsubset:"⊏",sqsubseteq:"⊑",sqsup:"⊐",sqsupe:"⊒",sqsupset:"⊐",sqsupseteq:"⊒",square:"□",Square:"□",SquareIntersection:"⊓",SquareSubset:"⊏",SquareSubsetEqual:"⊑",SquareSuperset:"⊐",SquareSupersetEqual:"⊒",SquareUnion:"⊔",squarf:"▪",squ:"□",squf:"▪",srarr:"→",Sscr:"𝒮",sscr:"𝓈",ssetmn:"∖",ssmile:"⌣",sstarf:"⋆",Star:"⋆",star:"☆",starf:"★",straightepsilon:"ϵ",straightphi:"ϕ",strns:"¯",sub:"⊂",Sub:"⋐",subdot:"⪽",subE:"⫅",sube:"⊆",subedot:"⫃",submult:"⫁",subnE:"⫋",subne:"⊊",subplus:"⪿",subrarr:"⥹",subset:"⊂",Subset:"⋐",subseteq:"⊆",subseteqq:"⫅",SubsetEqual:"⊆",subsetneq:"⊊",subsetneqq:"⫋",subsim:"⫇",subsub:"⫕",subsup:"⫓",succapprox:"⪸",succ:"≻",succcurlyeq:"≽",Succeeds:"≻",SucceedsEqual:"⪰",SucceedsSlantEqual:"≽",SucceedsTilde:"≿",succeq:"⪰",succnapprox:"⪺",succneqq:"⪶",succnsim:"⋩",succsim:"≿",SuchThat:"∋",sum:"∑",Sum:"∑",sung:"♪",sup1:"¹",sup2:"²",sup3:"³",sup:"⊃",Sup:"⋑",supdot:"⪾",supdsub:"⫘",supE:"⫆",supe:"⊇",supedot:"⫄",Superset:"⊃",SupersetEqual:"⊇",suphsol:"⟉",suphsub:"⫗",suplarr:"⥻",supmult:"⫂",supnE:"⫌",supne:"⊋",supplus:"⫀",supset:"⊃",Supset:"⋑",supseteq:"⊇",supseteqq:"⫆",supsetneq:"⊋",supsetneqq:"⫌",supsim:"⫈",supsub:"⫔",supsup:"⫖",swarhk:"⤦",swarr:"↙",swArr:"⇙",swarrow:"↙",swnwar:"⤪",szlig:"ß",Tab:"\t",target:"⌖",Tau:"Τ",tau:"τ",tbrk:"⎴",Tcaron:"Ť",tcaron:"ť",Tcedil:"Ţ",tcedil:"ţ",Tcy:"Т",tcy:"т",tdot:"⃛",telrec:"⌕",Tfr:"𝔗",tfr:"𝔱",there4:"∴",therefore:"∴",Therefore:"∴",Theta:"Θ",theta:"θ",thetasym:"ϑ",thetav:"ϑ",thickapprox:"≈",thicksim:"∼",ThickSpace:" ",ThinSpace:" ",thinsp:" ",thkap:"≈",thksim:"∼",THORN:"Þ",thorn:"þ",tilde:"˜",Tilde:"∼",TildeEqual:"≃",TildeFullEqual:"≅",TildeTilde:"≈",timesbar:"⨱",timesb:"⊠",times:"×",timesd:"⨰",tint:"∭",toea:"⤨",topbot:"⌶",topcir:"⫱",top:"⊤",Topf:"𝕋",topf:"𝕥",topfork:"⫚",tosa:"⤩",tprime:"‴",trade:"™",TRADE:"™",triangle:"▵",triangledown:"▿",triangleleft:"◃",trianglelefteq:"⊴",triangleq:"≜",triangleright:"▹",trianglerighteq:"⊵",tridot:"◬",trie:"≜",triminus:"⨺",TripleDot:"⃛",triplus:"⨹",trisb:"⧍",tritime:"⨻",trpezium:"⏢",Tscr:"𝒯",tscr:"𝓉",TScy:"Ц",tscy:"ц",TSHcy:"Ћ",tshcy:"ћ",Tstrok:"Ŧ",tstrok:"ŧ",twixt:"≬",twoheadleftarrow:"↞",twoheadrightarrow:"↠",Uacute:"Ú",uacute:"ú",uarr:"↑",Uarr:"↟",uArr:"⇑",Uarrocir:"⥉",Ubrcy:"Ў",ubrcy:"ў",Ubreve:"Ŭ",ubreve:"ŭ",Ucirc:"Û",ucirc:"û",Ucy:"У",ucy:"у",udarr:"⇅",Udblac:"Ű",udblac:"ű",udhar:"⥮",ufisht:"⥾",Ufr:"𝔘",ufr:"𝔲",Ugrave:"Ù",ugrave:"ù",uHar:"⥣",uharl:"↿",uharr:"↾",uhblk:"▀",ulcorn:"⌜",ulcorner:"⌜",ulcrop:"⌏",ultri:"◸",Umacr:"Ū",umacr:"ū",uml:"¨",UnderBar:"_",UnderBrace:"⏟",UnderBracket:"⎵",UnderParenthesis:"⏝",Union:"⋃",UnionPlus:"⊎",Uogon:"Ų",uogon:"ų",Uopf:"𝕌",uopf:"𝕦",UpArrowBar:"⤒",uparrow:"↑",UpArrow:"↑",Uparrow:"⇑",UpArrowDownArrow:"⇅",updownarrow:"↕",UpDownArrow:"↕",Updownarrow:"⇕",UpEquilibrium:"⥮",upharpoonleft:"↿",upharpoonright:"↾",uplus:"⊎",UpperLeftArrow:"↖",UpperRightArrow:"↗",upsi:"υ",Upsi:"ϒ",upsih:"ϒ",Upsilon:"Υ",upsilon:"υ",UpTeeArrow:"↥",UpTee:"⊥",upuparrows:"⇈",urcorn:"⌝",urcorner:"⌝",urcrop:"⌎",Uring:"Ů",uring:"ů",urtri:"◹",Uscr:"𝒰",uscr:"𝓊",utdot:"⋰",Utilde:"Ũ",utilde:"ũ",utri:"▵",utrif:"▴",uuarr:"⇈",Uuml:"Ü",uuml:"ü",uwangle:"⦧",vangrt:"⦜",varepsilon:"ϵ",varkappa:"ϰ",varnothing:"∅",varphi:"ϕ",varpi:"ϖ",varpropto:"∝",varr:"↕",vArr:"⇕",varrho:"ϱ",varsigma:"ς",varsubsetneq:"⊊︀",varsubsetneqq:"⫋︀",varsupsetneq:"⊋︀",varsupsetneqq:"⫌︀",vartheta:"ϑ",vartriangleleft:"⊲",vartriangleright:"⊳",vBar:"⫨",Vbar:"⫫",vBarv:"⫩",Vcy:"В",vcy:"в",vdash:"⊢",vDash:"⊨",Vdash:"⊩",VDash:"⊫",Vdashl:"⫦",veebar:"⊻",vee:"∨",Vee:"⋁",veeeq:"≚",vellip:"⋮",verbar:"|",Verbar:"‖",vert:"|",Vert:"‖",VerticalBar:"∣",VerticalLine:"|",VerticalSeparator:"❘",VerticalTilde:"≀",VeryThinSpace:" ",Vfr:"𝔙",vfr:"𝔳",vltri:"⊲",vnsub:"⊂⃒",vnsup:"⊃⃒",Vopf:"𝕍",vopf:"𝕧",vprop:"∝",vrtri:"⊳",Vscr:"𝒱",vscr:"𝓋",vsubnE:"⫋︀",vsubne:"⊊︀",vsupnE:"⫌︀",vsupne:"⊋︀",Vvdash:"⊪",vzigzag:"⦚",Wcirc:"Ŵ",wcirc:"ŵ",wedbar:"⩟",wedge:"∧",Wedge:"⋀",wedgeq:"≙",weierp:"℘",Wfr:"𝔚",wfr:"𝔴",Wopf:"𝕎",wopf:"𝕨",wp:"℘",wr:"≀",wreath:"≀",Wscr:"𝒲",wscr:"𝓌",xcap:"⋂",xcirc:"◯",xcup:"⋃",xdtri:"▽",Xfr:"𝔛",xfr:"𝔵",xharr:"⟷",xhArr:"⟺",Xi:"Ξ",xi:"ξ",xlarr:"⟵",xlArr:"⟸",xmap:"⟼",xnis:"⋻",xodot:"⨀",Xopf:"𝕏",xopf:"𝕩",xoplus:"⨁",xotime:"⨂",xrarr:"⟶",xrArr:"⟹",Xscr:"𝒳",xscr:"𝓍",xsqcup:"⨆",xuplus:"⨄",xutri:"△",xvee:"⋁",xwedge:"⋀",Yacute:"Ý",yacute:"ý",YAcy:"Я",yacy:"я",Ycirc:"Ŷ",ycirc:"ŷ",Ycy:"Ы",ycy:"ы",yen:"¥",Yfr:"𝔜",yfr:"𝔶",YIcy:"Ї",yicy:"ї",Yopf:"𝕐",yopf:"𝕪",Yscr:"𝒴",yscr:"𝓎",YUcy:"Ю",yucy:"ю",yuml:"ÿ",Yuml:"Ÿ",Zacute:"Ź",zacute:"ź",Zcaron:"Ž",zcaron:"ž",Zcy:"З",zcy:"з",Zdot:"Ż",zdot:"ż",zeetrf:"ℨ",ZeroWidthSpace:"",Zeta:"Ζ",zeta:"ζ",zfr:"𝔷",Zfr:"ℨ",ZHcy:"Ж",zhcy:"ж",zigrarr:"⇝",zopf:"𝕫",Zopf:"ℤ",Zscr:"𝒵",zscr:"𝓏",zwj:"",zwnj:""}},{}],53:[function(t,e,n){"use strict";function r(t){var e=Array.prototype.slice.call(arguments,1);return e.forEach(function(e){e&&Object.keys(e).forEach(function(n){t[n]=e[n]})}),t}function i(t){return Object.prototype.toString.call(t)}function o(t){return"[object String]"===i(t)}function a(t){return"[object Object]"===i(t)}function s(t){return"[object RegExp]"===i(t)}function u(t){return"[object Function]"===i(t)}function l(t){return t.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}function c(t){return Object.keys(t||{}).reduce(function(t,e){return t||y.hasOwnProperty(e)},!1)}function f(t){t.__index__=-1,t.__text_cache__=""}function h(t){return function(e,n){var r=e.slice(n);return t.test(r)?r.match(t)[0].length:0}}function d(){return function(t,e){e.normalize(t)}}function p(e){function n(t){return t.replace("%TLDS%",i.src_tlds)}function r(t,e){throw new Error('(LinkifyIt) Invalid schema "'+t+'": '+e)}var i=e.re=t("./lib/re")(e.__opts__),c=e.__tlds__.slice();e.onCompile(),e.__tlds_replaced__||c.push(_),c.push(i.src_xn),i.src_tlds=c.join("|"),i.email_fuzzy=RegExp(n(i.tpl_email_fuzzy),"i"),i.link_fuzzy=RegExp(n(i.tpl_link_fuzzy),"i"),i.link_no_ip_fuzzy=RegExp(n(i.tpl_link_no_ip_fuzzy),"i"),i.host_fuzzy_test=RegExp(n(i.tpl_host_fuzzy_test),"i");var p=[];e.__compiled__={},Object.keys(e.__schemas__).forEach(function(t){var n=e.__schemas__[t];if(null!==n){var i={validate:null,link:null};return e.__compiled__[t]=i,a(n)?(s(n.validate)?i.validate=h(n.validate):u(n.validate)?i.validate=n.validate:r(t,n),void(u(n.normalize)?i.normalize=n.normalize:n.normalize?r(t,n):i.normalize=d())):o(n)?void p.push(t):void r(t,n)}}),p.forEach(function(t){e.__compiled__[e.__schemas__[t]]&&(e.__compiled__[t].validate=e.__compiled__[e.__schemas__[t]].validate,e.__compiled__[t].normalize=e.__compiled__[e.__schemas__[t]].normalize)}),e.__compiled__[""]={validate:null,normalize:d()};var m=Object.keys(e.__compiled__).filter(function(t){return t.length>0&&e.__compiled__[t]}).map(l).join("|");e.re.schema_test=RegExp("(^|(?!_)(?:[><|]|"+i.src_ZPCc+"))("+m+")","i"),e.re.schema_search=RegExp("(^|(?!_)(?:[><|]|"+i.src_ZPCc+"))("+m+")","ig"),e.re.pretest=RegExp("("+e.re.schema_test.source+")|("+e.re.host_fuzzy_test.source+")|@","i"),f(e)}function m(t,e){var n=t.__index__,r=t.__last_index__,i=t.__text_cache__.slice(n,r);this.schema=t.__schema__.toLowerCase(),this.index=n+e,this.lastIndex=r+e,this.raw=i,this.text=i,this.url=i}function g(t,e){var n=new m(t,e);return t.__compiled__[n.schema].normalize(n,t),n}function v(t,e){return this instanceof v?(e||c(t)&&(e=t,t={}),this.__opts__=r({},y,e),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=r({},b,t),this.__compiled__={},this.__tlds__=w,this.__tlds_replaced__=!1,this.re={},void p(this)):new v(t,e)}var y={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1},b={"http:":{validate:function(t,e,n){var r=t.slice(e);return n.re.http||(n.re.http=new RegExp("^\\/\\/"+n.re.src_auth+n.re.src_host_port_strict+n.re.src_path,"i")),n.re.http.test(r)?r.match(n.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(t,e,n){var r=t.slice(e);return n.re.no_http||(n.re.no_http=new RegExp("^"+n.re.src_auth+"(?:localhost|(?:(?:"+n.re.src_domain+")\\.)+"+n.re.src_domain_root+")"+n.re.src_port+n.re.src_host_terminator+n.re.src_path,"i")),n.re.no_http.test(r)?e>=3&&":"===t[e-3]?0:e>=3&&"/"===t[e-3]?0:r.match(n.re.no_http)[0].length:0}},"mailto:":{validate:function(t,e,n){var r=t.slice(e);return n.re.mailto||(n.re.mailto=new RegExp("^"+n.re.src_email_name+"@"+n.re.src_host_strict,"i")),n.re.mailto.test(r)?r.match(n.re.mailto)[0].length:0}}},_="a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]",w="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");v.prototype.add=function(t,e){return this.__schemas__[t]=e,p(this),this},v.prototype.set=function(t){return this.__opts__=r(this.__opts__,t),this},v.prototype.test=function(t){if(this.__text_cache__=t,this.__index__=-1,!t.length)return!1;var e,n,r,i,o,a,s,u,l;if(this.re.schema_test.test(t))for(s=this.re.schema_search,s.lastIndex=0;null!==(e=s.exec(t));)if(i=this.testSchemaAt(t,e[2],s.lastIndex)){this.__schema__=e[2],this.__index__=e.index+e[1].length,this.__last_index__=e.index+e[0].length+i;break}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&(u=t.search(this.re.host_fuzzy_test),u>=0&&(this.__index__<0||u<this.__index__)&&null!==(n=t.match(this.__opts__.fuzzyIP?this.re.link_fuzzy:this.re.link_no_ip_fuzzy))&&(o=n.index+n[1].length,(this.__index__<0||o<this.__index__)&&(this.__schema__="",this.__index__=o,this.__last_index__=n.index+n[0].length))),this.__opts__.fuzzyEmail&&this.__compiled__["mailto:"]&&(l=t.indexOf("@"),l>=0&&null!==(r=t.match(this.re.email_fuzzy))&&(o=r.index+r[1].length,a=r.index+r[0].length,(this.__index__<0||o<this.__index__||o===this.__index__&&a>this.__last_index__)&&(this.__schema__="mailto:",this.__index__=o,this.__last_index__=a))),this.__index__>=0},v.prototype.pretest=function(t){return this.re.pretest.test(t)},v.prototype.testSchemaAt=function(t,e,n){return this.__compiled__[e.toLowerCase()]?this.__compiled__[e.toLowerCase()].validate(t,n,this):0},v.prototype.match=function(t){var e=0,n=[];this.__index__>=0&&this.__text_cache__===t&&(n.push(g(this,e)),e=this.__last_index__);for(var r=e?t.slice(e):t;this.test(r);)n.push(g(this,e)),r=r.slice(this.__last_index__),e+=this.__last_index__;return n.length?n:null},v.prototype.tlds=function(t,e){return t=Array.isArray(t)?t:[t],e?(this.__tlds__=this.__tlds__.concat(t).sort().filter(function(t,e,n){return t!==n[e-1]}).reverse(),p(this),this):(this.__tlds__=t.slice(),this.__tlds_replaced__=!0,p(this),this)},v.prototype.normalize=function(t){t.schema||(t.url="http://"+t.url),"mailto:"!==t.schema||/^mailto:/i.test(t.url)||(t.url="mailto:"+t.url)},v.prototype.onCompile=function(){},e.exports=v},{"./lib/re":54}],54:[function(t,e,n){"use strict";e.exports=function(e){var n={};n.src_Any=t("uc.micro/properties/Any/regex").source,n.src_Cc=t("uc.micro/categories/Cc/regex").source,n.src_Z=t("uc.micro/categories/Z/regex").source,n.src_P=t("uc.micro/categories/P/regex").source,n.src_ZPCc=[n.src_Z,n.src_P,n.src_Cc].join("|"),n.src_ZCc=[n.src_Z,n.src_Cc].join("|");var r="[><|]";return n.src_pseudo_letter="(?:(?!"+r+"|"+n.src_ZPCc+")"+n.src_Any+")",n.src_ip4="(?:(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)",n.src_auth="(?:(?:(?!"+n.src_ZCc+"|[@/\\[\\]()]).)+@)?",n.src_port="(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?",n.src_host_terminator="(?=$|"+r+"|"+n.src_ZPCc+")(?!-|_|:\\d|\\.-|\\.(?!$|"+n.src_ZPCc+"))",n.src_path="(?:[/?#](?:(?!"+n.src_ZCc+"|"+r+"|[()[\\]{}.,\"'?!\\-]).|\\[(?:(?!"+n.src_ZCc+"|\\]).)*\\]|\\((?:(?!"+n.src_ZCc+"|[)]).)*\\)|\\{(?:(?!"+n.src_ZCc+'|[}]).)*\\}|\\"(?:(?!'+n.src_ZCc+'|["]).)+\\"|\\\'(?:(?!'+n.src_ZCc+"|[']).)+\\'|\\'(?="+n.src_pseudo_letter+"|[-]).|\\.{2,3}[a-zA-Z0-9%/]|\\.(?!"+n.src_ZCc+"|[.]).|"+(e&&e["---"]?"\\-(?!--(?:[^-]|$))(?:-*)|":"\\-+|")+"\\,(?!"+n.src_ZCc+").|\\!(?!"+n.src_ZCc+"|[!]).|\\?(?!"+n.src_ZCc+"|[?]).)+|\\/)?",n.src_email_name='[\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]+',n.src_xn="xn--[a-z0-9\\-]{1,59}",n.src_domain_root="(?:"+n.src_xn+"|"+n.src_pseudo_letter+"{1,63})",n.src_domain="(?:"+n.src_xn+"|(?:"+n.src_pseudo_letter+")|(?:"+n.src_pseudo_letter+"(?:-(?!-)|"+n.src_pseudo_letter+"){0,61}"+n.src_pseudo_letter+"))",n.src_host="(?:(?:(?:(?:"+n.src_domain+")\\.)*"+n.src_domain+"))",n.tpl_host_fuzzy="(?:"+n.src_ip4+"|(?:(?:(?:"+n.src_domain+")\\.)+(?:%TLDS%)))",n.tpl_host_no_ip_fuzzy="(?:(?:(?:"+n.src_domain+")\\.)+(?:%TLDS%))",n.src_host_strict=n.src_host+n.src_host_terminator,n.tpl_host_fuzzy_strict=n.tpl_host_fuzzy+n.src_host_terminator,n.src_host_port_strict=n.src_host+n.src_port+n.src_host_terminator,n.tpl_host_port_fuzzy_strict=n.tpl_host_fuzzy+n.src_port+n.src_host_terminator,n.tpl_host_port_no_ip_fuzzy_strict=n.tpl_host_no_ip_fuzzy+n.src_port+n.src_host_terminator,n.tpl_host_fuzzy_test="localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:"+n.src_ZPCc+"|>|$))",n.tpl_email_fuzzy="(^|"+r+"|\\(|"+n.src_ZCc+")("+n.src_email_name+"@"+n.tpl_host_fuzzy_strict+")",n.tpl_link_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+n.src_ZPCc+"))((?![$+<=>^`||])"+n.tpl_host_port_fuzzy_strict+n.src_path+")",n.tpl_link_no_ip_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+n.src_ZPCc+"))((?![$+<=>^`||])"+n.tpl_host_port_no_ip_fuzzy_strict+n.src_path+")",n}},{"uc.micro/categories/Cc/regex":61,"uc.micro/categories/P/regex":63,"uc.micro/categories/Z/regex":64,"uc.micro/properties/Any/regex":66}],55:[function(t,e,n){"use strict";function r(t){var e,n,r=o[t];if(r)return r;for(r=o[t]=[],e=0;e<128;e++)n=String.fromCharCode(e),r.push(n);for(e=0;e<t.length;e++)n=t.charCodeAt(e),r[n]="%"+("0"+n.toString(16).toUpperCase()).slice(-2);return r}function i(t,e){var n;return"string"!=typeof e&&(e=i.defaultChars),n=r(e),t.replace(/(%[a-f0-9]{2})+/gi,function(t){var e,r,i,o,a,s,u,l="";for(e=0,r=t.length;e<r;e+=3)i=parseInt(t.slice(e+1,e+3),16),i<128?l+=n[i]:192===(224&i)&&e+3<r&&(o=parseInt(t.slice(e+4,e+6),16),128===(192&o))?(u=i<<6&1984|63&o,l+=u<128?"<22><>":String.fromCharCode(u),e+=3):224===(240&i)&&e+6<r&&(o=parseInt(t.slice(e+4,e+6),16),a=parseInt(t.slice(e+7,e+9),16),128===(192&o)&&128===(192&a))?(u=i<<12&61440|o<<6&4032|63&a,l+=u<2048||u>=55296&&u<=57343?"<22><><EFBFBD>":String.fromCharCode(u),e+=6):240===(248&i)&&e+9<r&&(o=parseInt(t.slice(e+4,e+6),16),a=parseInt(t.slice(e+7,e+9),16),s=parseInt(t.slice(e+10,e+12),16),128===(192&o)&&128===(192&a)&&128===(192&s))?(u=i<<18&1835008|o<<12&258048|a<<6&4032|63&s,u<65536||u>1114111?l+="<22><><EFBFBD><EFBFBD>":(u-=65536,l+=String.fromCharCode(55296+(u>>10),56320+(1023&u))),e+=9):l+="<22>";return l})}var o={};i.defaultChars=";/?:@&=+$,#",i.componentChars="",e.exports=i},{}],56:[function(t,e,n){"use strict";function r(t){var e,n,r=o[t];if(r)return r;for(r=o[t]=[],e=0;e<128;e++)n=String.fromCharCode(e),/^[0-9a-z]$/i.test(n)?r.push(n):r.push("%"+("0"+e.toString(16).toUpperCase()).slice(-2));for(e=0;e<t.length;e++)r[t.charCodeAt(e)]=t[e];return r}function i(t,e,n){var o,a,s,u,l,c="";for("string"!=typeof e&&(n=e,e=i.defaultChars),"undefined"==typeof n&&(n=!0),l=r(e),o=0,a=t.length;o<a;o++)if(s=t.charCodeAt(o),n&&37===s&&o+2<a&&/^[0-9a-f]{2}$/i.test(t.slice(o+1,o+3)))c+=t.slice(o,o+3),o+=2;else if(s<128)c+=l[s];else if(s>=55296&&s<=57343){if(s>=55296&&s<=56319&&o+1<a&&(u=t.charCodeAt(o+1),u>=56320&&u<=57343)){c+=encodeURIComponent(t[o]+t[o+1]),o++;continue}c+="%EF%BF%BD"}else c+=encodeURIComponent(t[o]);return c}var o={};i.defaultChars=";/?:@&=+$,-_.!~*'()#",i.componentChars="-_.!~*'()",e.exports=i},{}],57:[function(t,e,n){"use strict";e.exports=function(t){var e="";return e+=t.protocol||"",e+=t.slashes?"//":"",e+=t.auth?t.auth+"@":"",e+=t.hostname&&t.hostname.indexOf(":")!==-1?"["+t.hostname+"]":t.hostname||"",e+=t.port?":"+t.port:"",e+=t.pathname||"",e+=t.search||"",e+=t.hash||""}},{}],58:[function(t,e,n){"use strict";e.exports.encode=t("./encode"),e.exports.decode=t("./decode"),e.exports.format=t("./format"),e.exports.parse=t("./parse")},{"./decode":55,"./encode":56,"./format":57,"./parse":59}],59:[function(t,e,n){"use strict";function r(){this.protocol=null,this.slashes=null,this.auth=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.pathname=null}function i(t,e){if(t&&t instanceof r)return t;var n=new r;return n.parse(t,e),n}var o=/^([a-z0-9.+-]+:)/i,a=/:[0-9]*$/,s=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,u=["<",">",'"',"`"," ","\r","\n","\t"],l=["{","}","|","\\","^","`"].concat(u),c=["'"].concat(l),f=["%","/","?",";","#"].concat(c),h=["/","?","#"],d=255,p=/^[+a-z0-9A-Z_-]{0,63}$/,m=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,g={javascript:!0,"javascript:":!0},v={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};r.prototype.parse=function(t,e){var n,r,i,a,u,l=t;if(l=l.trim(),!e&&1===t.split("#").length){var c=s.exec(l);if(c)return this.pathname=c[1],c[2]&&(this.search=c[2]),this}var y=o.exec(l);if(y&&(y=y[0],i=y.toLowerCase(),this.protocol=y,l=l.substr(y.length)),(e||y||l.match(/^\/\/[^@\/]+@[^@\/]+/))&&(u="//"===l.substr(0,2),!u||y&&g[y]||(l=l.substr(2),this.slashes=!0)),!g[y]&&(u||y&&!v[y])){var b=-1;for(n=0;n<h.length;n++)a=l.indexOf(h[n]),a!==-1&&(b===-1||a<b)&&(b=a);var _,w;for(w=b===-1?l.lastIndexOf("@"):l.lastIndexOf("@",b),w!==-1&&(_=l.slice(0,w),l=l.slice(w+1),this.auth=_),b=-1,n=0;n<f.length;n++)a=l.indexOf(f[n]),a!==-1&&(b===-1||a<b)&&(b=a);b===-1&&(b=l.length),":"===l[b-1]&&b--;var x=l.slice(0,b);l=l.slice(b),this.parseHost(x),this.hostname=this.hostname||"";var k="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!k){var C=this.hostname.split(/\./);for(n=0,r=C.length;n<r;n++){var E=C[n];if(E&&!E.match(p)){for(var $="",S=0,A=E.length;S<A;S++)$+=E.charCodeAt(S)>127?"x":E[S];if(!$.match(p)){var T=C.slice(0,n),D=C.slice(n+1),F=E.match(m);F&&(T.push(F[1]),D.unshift(F[2])),D.length&&(l=D.join(".")+l),this.hostname=T.join(".");break}}}}this.hostname.length>d&&(this.hostname=""),k&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}var N=l.indexOf("#");N!==-1&&(this.hash=l.substr(N),l=l.slice(0,N));var M=l.indexOf("?");return M!==-1&&(this.search=l.substr(M),l=l.slice(0,M)),l&&(this.pathname=l),v[i]&&this.hostname&&!this.pathname&&(this.pathname=""),this},r.prototype.parseHost=function(t){var e=a.exec(t);e&&(e=e[0],":"!==e&&(this.port=e.substr(1)),t=t.substr(0,t.length-e.length)),t&&(this.hostname=t)},e.exports=i},{}],60:[function(e,n,r){(function(e){!function(i){function o(t){throw new RangeError(O[t])}function a(t,e){for(var n=t.length,r=[];n--;)r[n]=e(t[n]);return r}function s(t,e){var n=t.split("@"),r="";n.length>1&&(r=n[0]+"@",t=n[1]),t=t.replace(M,".");var i=t.split("."),o=a(i,e).join(".");return r+o}function u(t){for(var e,n,r=[],i=0,o=t.length;i<o;)e=t.charCodeAt(i++),e>=55296&&e<=56319&&i<o?(n=t.charCodeAt(i++),56320==(64512&n)?r.push(((1023&e)<<10)+(1023&n)+65536):(r.push(e),i--)):r.push(e);return r}function l(t){return a(t,function(t){var e="";return t>65535&&(t-=65536,e+=L(t>>>10&1023|55296),t=56320|1023&t),e+=L(t)}).join("")}function c(t){return t-48<10?t-22:t-65<26?t-65:t-97<26?t-97:k}function f(t,e){return t+22+75*(t<26)-((0!=e)<<5)}function h(t,e,n){var r=0;for(t=n?P(t/S):t>>1,t+=P(t/e);t>j*E>>1;r+=k)t=P(t/j);return P(r+(j+1)*t/(t+$))}function d(t){var e,n,r,i,a,s,u,f,d,p,m=[],g=t.length,v=0,y=T,b=A;for(n=t.lastIndexOf(D),n<0&&(n=0),r=0;r<n;++r)t.charCodeAt(r)>=128&&o("not-basic"),m.push(t.charCodeAt(r));for(i=n>0?n+1:0;i<g;){for(a=v,s=1,u=k;i>=g&&o("invalid-input"),f=c(t.charCodeAt(i++)),(f>=k||f>P((x-v)/s))&&o("overflow"),v+=f*s,d=u<=b?C:u>=b+E?E:u-b,!(f<d);u+=k)p=k-d,s>P(x/p)&&o("overflow"),s*=p;e=m.length+1,b=h(v-a,e,0==a),P(v/e)>x-y&&o("overflow"),y+=P(v/e),v%=e,m.splice(v++,0,y)}return l(m)}function p(t){var e,n,r,i,a,s,l,c,d,p,m,g,v,y,b,_=[];for(t=u(t),g=t.length,e=T,n=0,a=A,s=0;s<g;++s)m=t[s],m<128&&_.push(L(m));for(r=i=_.length,i&&_.push(D);r<g;){for(l=x,s=0;s<g;++s)m=t[s],m>=e&&m<l&&(l=m);for(v=r+1,l-e>P((x-n)/v)&&o("overflow"),n+=(l-e)*v,e=l,s=0;s<g;++s)if(m=t[s],m<e&&++n>x&&o("overflow"),m==e){for(c=n,d=k;p=d<=a?C:d>=a+E?E:d-a,!(c<p);d+=k)b=c-p,y=k-p,_.push(L(f(p+b%y,0))),c=P(b/y);_.push(L(f(c,0))),a=h(n,v,r==i),n=0,++r}++n,++e}return _.join("")}function m(t){return s(t,function(t){return F.test(t)?d(t.slice(4).toLowerCase()):t})}function g(t){return s(t,function(t){return N.test(t)?"xn--"+p(t):t})}var v="object"==typeof r&&r&&!r.nodeType&&r,y="object"==typeof n&&n&&!n.nodeType&&n,b="object"==typeof e&&e;b.global!==b&&b.window!==b&&b.self!==b||(i=b);var _,w,x=2147483647,k=36,C=1,E=26,$=38,S=700,A=72,T=128,D="-",F=/^xn--/,N=/[^\x20-\x7E]/,M=/[\x2E\u3002\uFF0E\uFF61]/g,O={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},j=k-C,P=Math.floor,L=String.fromCharCode;if(_={version:"1.4.1",ucs2:{decode:u,encode:l},decode:d,encode:p,toASCII:g,toUnicode:m},"function"==typeof t&&"object"==typeof t.amd&&t.amd)t("punycode",function(){return _});else if(v&&y)if(n.exports==v)y.exports=_;else for(w in _)_.hasOwnProperty(w)&&(v[w]=_[w]);else i.punycode=_}(this)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],61:[function(t,e,n){e.exports=/[\0-\x1F\x7F-\x9F]/},{}],62:[function(t,e,n){e.exports=/[\xAD\u0600-\u0605\u061C\u06DD\u070F\u08E2\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804\uDCBD|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/},{}],63:[function(t,e,n){e.exports=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0AF0\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E49\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC9\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDF3C-\uDF3E]|\uD806[\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2]|\uD807[\uDC41-\uDC45\uDC70\uDC71]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/},{}],64:[function(t,e,n){e.exports=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/},{}],65:[function(t,e,n){"use strict";n.Any=t("./properties/Any/regex"),n.Cc=t("./categories/Cc/regex"),n.Cf=t("./categories/Cf/regex"),n.P=t("./categories/P/regex"),n.Z=t("./categories/Z/regex")},{"./categories/Cc/regex":61,"./categories/Cf/regex":62,"./categories/P/regex":63,"./categories/Z/regex":64,"./properties/Any/regex":66}],66:[function(t,e,n){e.exports=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/},{}],67:[function(t,e,n){"use strict";e.exports=t("./lib/")},{"./lib/":9}]},{},[67])(67)});var _self="undefined"!=typeof window?window:"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope?self:{},Prism=function(){var t=/\blang(?:uage)?-(\w+)\b/i,e=0,n=_self.Prism={manual:_self.Prism&&_self.Prism.manual,disableWorkerMessageHandler:_self.Prism&&_self.Prism.disableWorkerMessageHandler,util:{encode:function(t){return t instanceof r?new r(t.type,n.util.encode(t.content),t.alias):"Array"===n.util.type(t)?t.map(n.util.encode):t.replace(/&/g,"&").replace(/</g,"<").replace(/\u00a0/g," ")},type:function(t){return Object.prototype.toString.call(t).match(/\[object (\w+)\]/)[1]},objId:function(t){return t.__id||Object.defineProperty(t,"__id",{value:++e}),t.__id},clone:function(t){var e=n.util.type(t);switch(e){case"Object":var r={};for(var i in t)t.hasOwnProperty(i)&&(r[i]=n.util.clone(t[i]));return r;case"Array":return t.map(function(t){return n.util.clone(t)})}return t}},languages:{extend:function(t,e){var r=n.util.clone(n.languages[t]);for(var i in e)r[i]=e[i];return r},insertBefore:function(t,e,r,i){i=i||n.languages;var o=i[t];if(2==arguments.length){r=arguments[1];for(var a in r)r.hasOwnProperty(a)&&(o[a]=r[a]);return o}var s={};for(var u in o)if(o.hasOwnProperty(u)){if(u==e)for(var a in r)r.hasOwnProperty(a)&&(s[a]=r[a]);s[u]=o[u]}return n.languages.DFS(n.languages,function(e,n){n===i[t]&&e!=t&&(this[e]=s)}),i[t]=s},DFS:function(t,e,r,i){i=i||{};for(var o in t)t.hasOwnProperty(o)&&(e.call(t,o,t[o],r||o),"Object"!==n.util.type(t[o])||i[n.util.objId(t[o])]?"Array"!==n.util.type(t[o])||i[n.util.objId(t[o])]||(i[n.util.objId(t[o])]=!0,n.languages.DFS(t[o],e,o,i)):(i[n.util.objId(t[o])]=!0,n.languages.DFS(t[o],e,null,i)))}},plugins:{},highlightAll:function(t,e){n.highlightAllUnder(document,t,e)},highlightAllUnder:function(t,e,r){var i={callback:r,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};n.hooks.run("before-highlightall",i);for(var o,a=i.elements||t.querySelectorAll(i.selector),s=0;o=a[s++];)n.highlightElement(o,e===!0,i.callback)},highlightElement:function(e,r,i){for(var o,a,s=e;s&&!t.test(s.className);)s=s.parentNode;s&&(o=(s.className.match(t)||[,""])[1].toLowerCase(),a=n.languages[o]),e.className=e.className.replace(t,"").replace(/\s+/g," ")+" language-"+o,
|
||
e.parentNode&&(s=e.parentNode,/pre/i.test(s.nodeName)&&(s.className=s.className.replace(t,"").replace(/\s+/g," ")+" language-"+o));var u=e.textContent,l={element:e,language:o,grammar:a,code:u};if(n.hooks.run("before-sanity-check",l),!l.code||!l.grammar)return l.code&&(n.hooks.run("before-highlight",l),l.element.textContent=l.code,n.hooks.run("after-highlight",l)),void n.hooks.run("complete",l);if(n.hooks.run("before-highlight",l),r&&_self.Worker){var c=new Worker(n.filename);c.onmessage=function(t){l.highlightedCode=t.data,n.hooks.run("before-insert",l),l.element.innerHTML=l.highlightedCode,i&&i.call(l.element),n.hooks.run("after-highlight",l),n.hooks.run("complete",l)},c.postMessage(JSON.stringify({language:l.language,code:l.code,immediateClose:!0}))}else l.highlightedCode=n.highlight(l.code,l.grammar,l.language),n.hooks.run("before-insert",l),l.element.innerHTML=l.highlightedCode,i&&i.call(e),n.hooks.run("after-highlight",l),n.hooks.run("complete",l)},highlight:function(t,e,i){var o=n.tokenize(t,e);return r.stringify(n.util.encode(o),i)},matchGrammar:function(t,e,r,i,o,a,s){var u=n.Token;for(var l in r)if(r.hasOwnProperty(l)&&r[l]){if(l==s)return;var c=r[l];c="Array"===n.util.type(c)?c:[c];for(var f=0;f<c.length;++f){var h=c[f],d=h.inside,p=!!h.lookbehind,m=!!h.greedy,g=0,v=h.alias;if(m&&!h.pattern.global){var y=h.pattern.toString().match(/[imuy]*$/)[0];h.pattern=RegExp(h.pattern.source,y+"g")}h=h.pattern||h;for(var b=i,_=o;b<e.length;_+=e[b].length,++b){var w=e[b];if(e.length>t.length)return;if(!(w instanceof u)){h.lastIndex=0;var x=h.exec(w),k=1;if(!x&&m&&b!=e.length-1){if(h.lastIndex=_,x=h.exec(t),!x)break;for(var C=x.index+(p?x[1].length:0),E=x.index+x[0].length,$=b,S=_,A=e.length;$<A&&(S<E||!e[$].type&&!e[$-1].greedy);++$)S+=e[$].length,C>=S&&(++b,_=S);if(e[b]instanceof u||e[$-1].greedy)continue;k=$-b,w=t.slice(_,S),x.index-=_}if(x){p&&(g=x[1].length);var C=x.index+g,x=x[0].slice(g),E=C+x.length,T=w.slice(0,C),D=w.slice(E),F=[b,k];T&&(++b,_+=T.length,F.push(T));var N=new u(l,d?n.tokenize(x,d):x,v,x,m);if(F.push(N),D&&F.push(D),Array.prototype.splice.apply(e,F),1!=k&&n.matchGrammar(t,e,r,b,_,!0,l),a)break}else if(a)break}}}}},tokenize:function(t,e,r){var i=[t],o=e.rest;if(o){for(var a in o)e[a]=o[a];delete e.rest}return n.matchGrammar(t,i,e,0,0,!1),i},hooks:{all:{},add:function(t,e){var r=n.hooks.all;r[t]=r[t]||[],r[t].push(e)},run:function(t,e){var r=n.hooks.all[t];if(r&&r.length)for(var i,o=0;i=r[o++];)i(e)}}},r=n.Token=function(t,e,n,r,i){this.type=t,this.content=e,this.alias=n,this.length=0|(r||"").length,this.greedy=!!i};if(r.stringify=function(t,e,i){if("string"==typeof t)return t;if("Array"===n.util.type(t))return t.map(function(n){return r.stringify(n,e,t)}).join("");var o={type:t.type,content:r.stringify(t.content,e,i),tag:"span",classes:["token",t.type],attributes:{},language:e,parent:i};if(t.alias){var a="Array"===n.util.type(t.alias)?t.alias:[t.alias];Array.prototype.push.apply(o.classes,a)}n.hooks.run("wrap",o);var s=Object.keys(o.attributes).map(function(t){return t+'="'+(o.attributes[t]||"").replace(/"/g,""")+'"'}).join(" ");return"<"+o.tag+' class="'+o.classes.join(" ")+'"'+(s?" "+s:"")+">"+o.content+"</"+o.tag+">"},!_self.document)return _self.addEventListener?(n.disableWorkerMessageHandler||_self.addEventListener("message",function(t){var e=JSON.parse(t.data),r=e.language,i=e.code,o=e.immediateClose;_self.postMessage(n.highlight(i,n.languages[r],r)),o&&_self.close()},!1),_self.Prism):_self.Prism;var i=document.currentScript||[].slice.call(document.getElementsByTagName("script")).pop();return i&&(n.filename=i.src,n.manual||i.hasAttribute("data-manual")||("loading"!==document.readyState?window.requestAnimationFrame?window.requestAnimationFrame(n.highlightAll):window.setTimeout(n.highlightAll,16):document.addEventListener("DOMContentLoaded",n.highlightAll))),_self.Prism}();"undefined"!=typeof module&&module.exports&&(module.exports=Prism),"undefined"!=typeof global&&(global.Prism=Prism),Prism.languages.markup={comment:/<!--[\s\S]*?-->/,prolog:/<\?[\s\S]+?\?>/,doctype:/<!DOCTYPE[\s\S]+?>/i,cdata:/<!\[CDATA\[[\s\S]*?]]>/i,tag:{pattern:/<\/?(?!\d)[^\s>\/=$<]+(?:\s+[^\s>\/=]+(?:=(?:("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|[^\s'">=]+))?)*\s*\/?>/i,inside:{tag:{pattern:/^<\/?[^\s>\/]+/i,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"attr-value":{pattern:/=(?:("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|[^\s'">=]+)/i,inside:{punctuation:[/^=/,{pattern:/(^|[^\\])["']/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:/&#?[\da-z]{1,8};/i},Prism.languages.markup.tag.inside["attr-value"].inside.entity=Prism.languages.markup.entity,Prism.hooks.add("wrap",function(t){"entity"===t.type&&(t.attributes.title=t.content.replace(/&/,"&"))}),Prism.languages.xml=Prism.languages.markup,Prism.languages.html=Prism.languages.markup,Prism.languages.mathml=Prism.languages.markup,Prism.languages.svg=Prism.languages.markup,Prism.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:/@[\w-]+?.*?(?:;|(?=\s*\{))/i,inside:{rule:/@[\w-]+/}},url:/url\((?:(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1|.*?)\)/i,selector:/[^{}\s][^{};]*?(?=\s*\{)/,string:{pattern:/("|')(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},property:/[-_a-z\xA0-\uFFFF][-\w\xA0-\uFFFF]*(?=\s*:)/i,important:/\B!important\b/i,"function":/[-a-z0-9]+(?=\()/i,punctuation:/[(){};:]/},Prism.languages.css.atrule.inside.rest=Prism.util.clone(Prism.languages.css),Prism.languages.markup&&(Prism.languages.insertBefore("markup","tag",{style:{pattern:/(<style[\s\S]*?>)[\s\S]*?(?=<\/style>)/i,lookbehind:!0,inside:Prism.languages.css,alias:"language-css",greedy:!0}}),Prism.languages.insertBefore("inside","attr-value",{"style-attr":{pattern:/\s*style=("|')(?:\\[\s\S]|(?!\1)[^\\])*\1/i,inside:{"attr-name":{pattern:/^\s*style/i,inside:Prism.languages.markup.tag.inside},punctuation:/^\s*=\s*['"]|['"]\s*$/,"attr-value":{pattern:/.+/i,inside:Prism.languages.css}},alias:"language-css"}},Prism.languages.markup.tag)),Prism.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/((?:\b(?:class|interface|extends|implements|trait|instanceof|new)\s+)|(?:catch\s+\())[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:if|else|while|do|for|return|in|instanceof|function|new|try|throw|catch|finally|null|break|continue)\b/,"boolean":/\b(?:true|false)\b/,"function":/[a-z0-9_]+(?=\()/i,number:/\b-?(?:0x[\da-f]+|\d*\.?\d+(?:e[+-]?\d+)?)\b/i,operator:/--?|\+\+?|!=?=?|<=?|>=?|==?=?|&&?|\|\|?|\?|\*|\/|~|\^|%/,punctuation:/[{}[\];(),.:]/},Prism.languages.javascript=Prism.languages.extend("clike",{keyword:/\b(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|var|void|while|with|yield)\b/,number:/\b-?(?:0[xX][\dA-Fa-f]+|0[bB][01]+|0[oO][0-7]+|\d*\.?\d+(?:[Ee][+-]?\d+)?|NaN|Infinity)\b/,"function":/[_$a-z\xA0-\uFFFF][$\w\xA0-\uFFFF]*(?=\s*\()/i,operator:/-[-=]?|\+[+=]?|!=?=?|<<?=?|>>?>?=?|=(?:==?|>)?|&[&=]?|\|[|=]?|\*\*?=?|\/=?|~|\^=?|%=?|\?|\.{3}/}),Prism.languages.insertBefore("javascript","keyword",{regex:{pattern:/(^|[^\/])\/(?!\/)(\[[^\]\r\n]+]|\\.|[^\/\\\[\r\n])+\/[gimyu]{0,5}(?=\s*($|[\r\n,.;})]))/,lookbehind:!0,greedy:!0},"function-variable":{pattern:/[_$a-z\xA0-\uFFFF][$\w\xA0-\uFFFF]*(?=\s*=\s*(?:function\b|(?:\([^()]*\)|[_$a-z\xA0-\uFFFF][$\w\xA0-\uFFFF]*)\s*=>))/i,alias:"function"}}),Prism.languages.insertBefore("javascript","string",{"template-string":{pattern:/`(?:\\[\s\S]|[^\\`])*`/,greedy:!0,inside:{interpolation:{pattern:/\$\{[^}]+\}/,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:Prism.languages.javascript}},string:/[\s\S]+/}}}),Prism.languages.markup&&Prism.languages.insertBefore("markup","tag",{script:{pattern:/(<script[\s\S]*?>)[\s\S]*?(?=<\/script>)/i,lookbehind:!0,inside:Prism.languages.javascript,alias:"language-javascript",greedy:!0}}),Prism.languages.js=Prism.languages.javascript,function(){"undefined"!=typeof self&&self.Prism&&self.document&&document.querySelector&&(self.Prism.fileHighlight=function(){var t={js:"javascript",py:"python",rb:"ruby",ps1:"powershell",psm1:"powershell",sh:"bash",bat:"batch",h:"c",tex:"latex"};Array.prototype.slice.call(document.querySelectorAll("pre[data-src]")).forEach(function(e){for(var n,r=e.getAttribute("data-src"),i=e,o=/\blang(?:uage)?-(?!\*)(\w+)\b/i;i&&!o.test(i.className);)i=i.parentNode;if(i&&(n=(e.className.match(o)||[,""])[1]),!n){var a=(r.match(/\.(\w+)$/)||[,""])[1];n=t[a]||a}var s=document.createElement("code");s.className="language-"+n,e.textContent="",s.textContent="Loading…",e.appendChild(s);var u=new XMLHttpRequest;u.open("GET",r,!0),u.onreadystatechange=function(){4==u.readyState&&(u.status<400&&u.responseText?(s.textContent=u.responseText,Prism.highlightElement(s)):u.status>=400?s.textContent="✖ Error "+u.status+" while fetching file: "+u.statusText:s.textContent="✖ Error: File does not exist or is empty")},u.send(null)})},document.addEventListener("DOMContentLoaded",self.Prism.fileHighlight))}(),function(){if("undefined"!=typeof self&&self.Prism||"undefined"!=typeof global&&global.Prism){var t={classMap:{}};Prism.plugins.customClass={map:function(e){t.classMap=e},prefix:function(e){t.prefixString=e}},Prism.hooks.add("wrap",function(e){(t.classMap||t.prefixString)&&(e.classes=e.classes.map(function(e){return(t.prefixString||"")+(t.classMap[e]||e)}))})}}(),function(t,e){"use strict";"object"==typeof module?module.exports=e:"function"==typeof define&&define.amd?define(e):t.AutoList=e}(this,function(t){var e=t.Extension.extend({name:"autolist",init:function(){this.subscribe("editableKeypress",this.onKeypress.bind(this))},onKeypress:function(e){if(t.util.isKey(e,[t.util.keyCode.SPACE])){var n=this.base.getSelectedParentElement().textContent;"1."==n&&this.base.getExtensionByName("orderedlist")?(this.base.execAction("insertorderedlist"),this.base.getSelectedParentElement().textContent=this.base.getSelectedParentElement().textContent.slice(2).trim()):"*"==n&&this.base.getExtensionByName("unorderedlist")&&(this.base.execAction("insertunorderedlist"),this.base.getSelectedParentElement().textContent=this.base.getSelectedParentElement().textContent.slice(1).trim())}}});return e}("function"==typeof require?require("medium-editor"):MediumEditor)),function(t,e){"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?module.exports=e():t.Autolinker=e()}(this,function(){var t=function(e){e=e||{},this.version=t.version,this.urls=this.normalizeUrlsCfg(e.urls),this.email="boolean"!=typeof e.email||e.email,this.phone="boolean"!=typeof e.phone||e.phone,this.hashtag=e.hashtag||!1,this.mention=e.mention||!1,this.newWindow="boolean"!=typeof e.newWindow||e.newWindow,this.stripPrefix=this.normalizeStripPrefixCfg(e.stripPrefix),this.stripTrailingSlash="boolean"!=typeof e.stripTrailingSlash||e.stripTrailingSlash,this.decodePercentEncoding="boolean"!=typeof e.decodePercentEncoding||e.decodePercentEncoding;var n=this.mention;if(n!==!1&&"twitter"!==n&&"instagram"!==n)throw new Error("invalid `mention` cfg - see docs");var r=this.hashtag;if(r!==!1&&"twitter"!==r&&"facebook"!==r&&"instagram"!==r)throw new Error("invalid `hashtag` cfg - see docs");this.truncate=this.normalizeTruncateCfg(e.truncate),this.className=e.className||"",this.replaceFn=e.replaceFn||null,this.context=e.context||this,this.htmlParser=null,this.matchers=null,this.tagBuilder=null};return t.link=function(e,n){var r=new t(n);return r.link(e)},t.parse=function(e,n){var r=new t(n);return r.parse(e)},t.version="1.6.2",t.prototype={constructor:t,normalizeUrlsCfg:function(t){return null==t&&(t=!0),"boolean"==typeof t?{schemeMatches:t,wwwMatches:t,tldMatches:t}:{schemeMatches:"boolean"!=typeof t.schemeMatches||t.schemeMatches,wwwMatches:"boolean"!=typeof t.wwwMatches||t.wwwMatches,tldMatches:"boolean"!=typeof t.tldMatches||t.tldMatches}},normalizeStripPrefixCfg:function(t){return null==t&&(t=!0),"boolean"==typeof t?{scheme:t,www:t}:{scheme:"boolean"!=typeof t.scheme||t.scheme,www:"boolean"!=typeof t.www||t.www}},normalizeTruncateCfg:function(e){return"number"==typeof e?{length:e,location:"end"}:t.Util.defaults(e||{},{length:Number.POSITIVE_INFINITY,location:"end"})},parse:function(t){for(var e=this.getHtmlParser(),n=e.parse(t),r=0,i=[],o=0,a=n.length;o<a;o++){var s=n[o],u=s.getType();if("element"===u&&"a"===s.getTagName())s.isClosing()?r=Math.max(r-1,0):r++;else if("text"===u&&0===r){var l=this.parseText(s.getText(),s.getOffset());i.push.apply(i,l)}}return i=this.compactMatches(i),i=this.removeUnwantedMatches(i)},compactMatches:function(t){t.sort(function(t,e){return t.getOffset()-e.getOffset()});for(var e=0;e<t.length-1;e++){var n=t[e],r=n.getOffset(),i=n.getMatchedText().length,o=r+i;if(e+1<t.length){if(t[e+1].getOffset()===r){var a=t[e+1].getMatchedText().length>i?e:e+1;t.splice(a,1);continue}t[e+1].getOffset()<=o&&t.splice(e+1,1)}}return t},removeUnwantedMatches:function(e){var n=t.Util.remove;return this.hashtag||n(e,function(t){return"hashtag"===t.getType()}),this.email||n(e,function(t){return"email"===t.getType()}),this.phone||n(e,function(t){return"phone"===t.getType()}),this.mention||n(e,function(t){return"mention"===t.getType()}),this.urls.schemeMatches||n(e,function(t){return"url"===t.getType()&&"scheme"===t.getUrlMatchType()}),this.urls.wwwMatches||n(e,function(t){return"url"===t.getType()&&"www"===t.getUrlMatchType()}),this.urls.tldMatches||n(e,function(t){return"url"===t.getType()&&"tld"===t.getUrlMatchType()}),e},parseText:function(t,e){e=e||0;for(var n=this.getMatchers(),r=[],i=0,o=n.length;i<o;i++){for(var a=n[i].parseMatches(t),s=0,u=a.length;s<u;s++)a[s].setOffset(e+a[s].getOffset());r.push.apply(r,a)}return r},link:function(t){if(!t)return"";for(var e=this.parse(t),n=[],r=0,i=0,o=e.length;i<o;i++){var a=e[i];n.push(t.substring(r,a.getOffset())),n.push(this.createMatchReturnVal(a)),r=a.getOffset()+a.getMatchedText().length}return n.push(t.substring(r)),n.join("")},createMatchReturnVal:function(e){var n;if(this.replaceFn&&(n=this.replaceFn.call(this.context,e)),"string"==typeof n)return n;if(n===!1)return e.getMatchedText();if(n instanceof t.HtmlTag)return n.toAnchorString();var r=e.buildTag();return r.toAnchorString()},getHtmlParser:function(){var e=this.htmlParser;return e||(e=this.htmlParser=new t.htmlParser.HtmlParser),e},getMatchers:function(){if(this.matchers)return this.matchers;var e=t.matcher,n=this.getTagBuilder(),r=[new e.Hashtag({tagBuilder:n,serviceName:this.hashtag}),new e.Email({tagBuilder:n}),new e.Phone({tagBuilder:n}),new e.Mention({tagBuilder:n,serviceName:this.mention}),new e.Url({tagBuilder:n,stripPrefix:this.stripPrefix,stripTrailingSlash:this.stripTrailingSlash,decodePercentEncoding:this.decodePercentEncoding})];return this.matchers=r},getTagBuilder:function(){var e=this.tagBuilder;return e||(e=this.tagBuilder=new t.AnchorTagBuilder({newWindow:this.newWindow,truncate:this.truncate,className:this.className})),e}},t.match={},t.matcher={},t.htmlParser={},t.truncate={},t.Util={abstractMethod:function(){throw"abstract"},trimRegex:/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,assign:function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t},defaults:function(t,e){for(var n in e)e.hasOwnProperty(n)&&void 0===t[n]&&(t[n]=e[n]);return t},extend:function(e,n){var r=e.prototype,i=function(){};i.prototype=r;var o;o=n.hasOwnProperty("constructor")?n.constructor:function(){r.constructor.apply(this,arguments)};var a=o.prototype=new i;return a.constructor=o,a.superclass=r,delete n.constructor,t.Util.assign(a,n),o},ellipsis:function(t,e,n){var r;return t.length>e&&(null==n?(n="…",r=3):r=n.length,t=t.substring(0,e-r)+n),t},indexOf:function(t,e){if(Array.prototype.indexOf)return t.indexOf(e);for(var n=0,r=t.length;n<r;n++)if(t[n]===e)return n;return-1},remove:function(t,e){for(var n=t.length-1;n>=0;n--)e(t[n])===!0&&t.splice(n,1)},splitAndCapture:function(t,e){if(!e.global)throw new Error("`splitRegex` must have the 'g' flag set");for(var n,r=[],i=0;n=e.exec(t);)r.push(t.substring(i,n.index)),r.push(n[0]),i=n.index+n[0].length;return r.push(t.substring(i)),r},trim:function(t){return t.replace(this.trimRegex,"")}},t.HtmlTag=t.Util.extend(Object,{whitespaceRegex:/\s+/,constructor:function(e){t.Util.assign(this,e),this.innerHtml=this.innerHtml||this.innerHTML},setTagName:function(t){return this.tagName=t,this},getTagName:function(){return this.tagName||""},setAttr:function(t,e){var n=this.getAttrs();return n[t]=e,this},getAttr:function(t){return this.getAttrs()[t]},setAttrs:function(e){var n=this.getAttrs();return t.Util.assign(n,e),this},getAttrs:function(){return this.attrs||(this.attrs={})},setClass:function(t){return this.setAttr("class",t)},addClass:function(e){for(var n,r=this.getClass(),i=this.whitespaceRegex,o=t.Util.indexOf,a=r?r.split(i):[],s=e.split(i);n=s.shift();)o(a,n)===-1&&a.push(n);return this.getAttrs()["class"]=a.join(" "),this},removeClass:function(e){for(var n,r=this.getClass(),i=this.whitespaceRegex,o=t.Util.indexOf,a=r?r.split(i):[],s=e.split(i);a.length&&(n=s.shift());){var u=o(a,n);u!==-1&&a.splice(u,1)}return this.getAttrs()["class"]=a.join(" "),this},getClass:function(){return this.getAttrs()["class"]||""},hasClass:function(t){return(" "+this.getClass()+" ").indexOf(" "+t+" ")!==-1},setInnerHtml:function(t){return this.innerHtml=t,this},getInnerHtml:function(){return this.innerHtml||""},toAnchorString:function(){var t=this.getTagName(),e=this.buildAttrsStr();return e=e?" "+e:"",["<",t,e,">",this.getInnerHtml(),"</",t,">"].join("")},buildAttrsStr:function(){if(!this.attrs)return"";var t=this.getAttrs(),e=[];for(var n in t)t.hasOwnProperty(n)&&e.push(n+'="'+t[n]+'"');return e.join(" ")}}),t.RegexLib=function(){var t="A-Za-z\\xAA\\xB5\\xBA\\xC0-\\xD6\\xD8-\\xF6\\xF8-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙա-ևא-תװ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࢠ-ࢴऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౠౡಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛱ-ᛸᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᳩ-ᳬᳮ-ᳱᳵᳶᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎↃↄⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⸯ々〆〱-〵〻〼ぁ-ゖゝ-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿕ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛥꜗ-ꜟꜢ-ꞈꞋ-ꞭꞰ-ꞷꟷ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭥꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",e="0-9٠-٩۰-۹߀-߉०-९০-৯੦-੯૦-૯୦-୯௦-௯౦-౯೦-೯൦-൯෦-෯๐-๙໐-໙༠-༩၀-၉႐-႙០-៩᠐-᠙᥆-᥏᧐-᧙᪀-᪉᪐-᪙᭐-᭙᮰-᮹᱀-᱉᱐-᱙꘠-꘩꣐-꣙꤀-꤉꧐-꧙꧰-꧹꩐-꩙꯰-꯹0-9",n=t+e,r="(?:["+e+"]{1,3}\\.){3}["+e+"]{1,3}",i="["+n+"](?:["+n+"\\-]{0,61}["+n+"])?",o=function(t){return"(?=("+i+"))\\"+t},a=function(t){return"(?:"+o(t)+"(?:\\."+o(t+1)+"){0,126}|"+r+")"};return{alphaNumericCharsStr:n,alphaCharsStr:t,getDomainNameStr:a}}(),t.AnchorTagBuilder=t.Util.extend(Object,{constructor:function(t){t=t||{},this.newWindow=t.newWindow,this.truncate=t.truncate,this.className=t.className},build:function(e){return new t.HtmlTag({tagName:"a",attrs:this.createAttrs(e),innerHtml:this.processAnchorText(e.getAnchorText())})},createAttrs:function(t){var e={href:t.getAnchorHref()},n=this.createCssClass(t);return n&&(e["class"]=n),this.newWindow&&(e.target="_blank",e.rel="noopener noreferrer"),this.truncate&&this.truncate.length&&this.truncate.length<t.getAnchorText().length&&(e.title=t.getAnchorHref()),e},createCssClass:function(t){var e=this.className;if(e){for(var n=[e],r=t.getCssClassSuffixes(),i=0,o=r.length;i<o;i++)n.push(e+"-"+r[i]);return n.join(" ")}return""},processAnchorText:function(t){return t=this.doTruncate(t)},doTruncate:function(e){var n=this.truncate;if(!n||!n.length)return e;var r=n.length,i=n.location;return"smart"===i?t.truncate.TruncateSmart(e,r):"middle"===i?t.truncate.TruncateMiddle(e,r):t.truncate.TruncateEnd(e,r)}}),t.htmlParser.HtmlParser=t.Util.extend(Object,{htmlRegex:function(){var t=/!--([\s\S]+?)--/,e=/[0-9a-zA-Z][0-9a-zA-Z:]*/,n=/[^\s"'>\/=\x00-\x1F\x7F]+/,r=/(?:"[^"]*?"|'[^']*?'|[^'"=<>`\s]+)/,i="(?:\\s*?=\\s*?"+r.source+")?",o=function(t){return"(?=("+n.source+"))\\"+t+i};return new RegExp(["(?:","<(!DOCTYPE)","(?:","\\s+","(?:",o(2),"|",r.source+")",")*",">",")","|","(?:","<(/)?","(?:",t.source,"|","(?:","("+e.source+")","\\s*/?",")","|","(?:","("+e.source+")","\\s+","(?:","(?:\\s+|\\b)",o(7),")*","\\s*/?",")",")",">",")"].join(""),"gi")}(),htmlCharacterEntitiesRegex:/( | |<|<|>|>|"|"|')/gi,parse:function(t){for(var e,n,r=this.htmlRegex,i=0,o=[];null!==(e=r.exec(t));){var a=e[0],s=e[4],u=e[1]||e[5]||e[6],l=!!e[3],c=e.index,f=t.substring(i,c);f&&(n=this.parseTextAndEntityNodes(i,f),o.push.apply(o,n)),s?o.push(this.createCommentNode(c,a,s)):o.push(this.createElementNode(c,a,u,l)),i=c+a.length}if(i<t.length){var h=t.substring(i);h&&(n=this.parseTextAndEntityNodes(i,h),n.forEach(function(t){o.push(t)}))}return o},parseTextAndEntityNodes:function(e,n){for(var r=[],i=t.Util.splitAndCapture(n,this.htmlCharacterEntitiesRegex),o=0,a=i.length;o<a;o+=2){var s=i[o],u=i[o+1];s&&(r.push(this.createTextNode(e,s)),e+=s.length),u&&(r.push(this.createEntityNode(e,u)),e+=u.length)}return r},createCommentNode:function(e,n,r){return new t.htmlParser.CommentNode({offset:e,text:n,comment:t.Util.trim(r)})},createElementNode:function(e,n,r,i){return new t.htmlParser.ElementNode({offset:e,text:n,tagName:r.toLowerCase(),closing:i})},createEntityNode:function(e,n){return new t.htmlParser.EntityNode({offset:e,text:n})},createTextNode:function(e,n){return new t.htmlParser.TextNode({offset:e,text:n})}}),t.htmlParser.HtmlNode=t.Util.extend(Object,{offset:void 0,text:void 0,constructor:function(e){if(t.Util.assign(this,e),null==this.offset)throw new Error("`offset` cfg required");if(null==this.text)throw new Error("`text` cfg required")},getType:t.Util.abstractMethod,getOffset:function(){return this.offset},getText:function(){return this.text}}),t.htmlParser.CommentNode=t.Util.extend(t.htmlParser.HtmlNode,{comment:"",getType:function(){return"comment"},getComment:function(){return this.comment}}),t.htmlParser.ElementNode=t.Util.extend(t.htmlParser.HtmlNode,{tagName:"",closing:!1,getType:function(){return"element"},getTagName:function(){return this.tagName},isClosing:function(){return this.closing}}),t.htmlParser.EntityNode=t.Util.extend(t.htmlParser.HtmlNode,{getType:function(){return"entity"}}),t.htmlParser.TextNode=t.Util.extend(t.htmlParser.HtmlNode,{getType:function(){return"text"}}),t.match.Match=t.Util.extend(Object,{constructor:function(t){if(null==t.tagBuilder)throw new Error("`tagBuilder` cfg required");if(null==t.matchedText)throw new Error("`matchedText` cfg required");if(null==t.offset)throw new Error("`offset` cfg required");this.tagBuilder=t.tagBuilder,this.matchedText=t.matchedText,this.offset=t.offset},getType:t.Util.abstractMethod,getMatchedText:function(){return this.matchedText},setOffset:function(t){this.offset=t},getOffset:function(){return this.offset},getAnchorHref:t.Util.abstractMethod,getAnchorText:t.Util.abstractMethod,getCssClassSuffixes:function(){return[this.getType()]},buildTag:function(){return this.tagBuilder.build(this)}}),t.match.Email=t.Util.extend(t.match.Match,{constructor:function(e){if(t.match.Match.prototype.constructor.call(this,e),!e.email)throw new Error("`email` cfg required");this.email=e.email},getType:function(){return"email"},getEmail:function(){return this.email},getAnchorHref:function(){return"mailto:"+this.email},getAnchorText:function(){return this.email}}),t.match.Hashtag=t.Util.extend(t.match.Match,{constructor:function(e){if(t.match.Match.prototype.constructor.call(this,e),!e.hashtag)throw new Error("`hashtag` cfg required");this.serviceName=e.serviceName,this.hashtag=e.hashtag},getType:function(){return"hashtag"},getServiceName:function(){return this.serviceName},getHashtag:function(){return this.hashtag},getAnchorHref:function(){var t=this.serviceName,e=this.hashtag;switch(t){case"twitter":return"https://twitter.com/hashtag/"+e;case"facebook":return"https://www.facebook.com/hashtag/"+e;case"instagram":return"https://instagram.com/explore/tags/"+e;default:throw new Error("Unknown service name to point hashtag to: ",t)}},getAnchorText:function(){return"#"+this.hashtag}}),t.match.Phone=t.Util.extend(t.match.Match,{constructor:function(e){if(t.match.Match.prototype.constructor.call(this,e),!e.number)throw new Error("`number` cfg required");if(null==e.plusSign)throw new Error("`plusSign` cfg required");this.number=e.number,this.plusSign=e.plusSign},getType:function(){return"phone"},getNumber:function(){return this.number},getAnchorHref:function(){return"tel:"+(this.plusSign?"+":"")+this.number},getAnchorText:function(){return this.matchedText}}),t.match.Mention=t.Util.extend(t.match.Match,{constructor:function(e){if(t.match.Match.prototype.constructor.call(this,e),!e.serviceName)throw new Error("`serviceName` cfg required");if(!e.mention)throw new Error("`mention` cfg required");this.mention=e.mention,this.serviceName=e.serviceName},getType:function(){return"mention"},getMention:function(){return this.mention},getServiceName:function(){return this.serviceName},getAnchorHref:function(){switch(this.serviceName){case"twitter":return"https://twitter.com/"+this.mention;case"instagram":return"https://instagram.com/"+this.mention;default:throw new Error("Unknown service name to point mention to: ",this.serviceName)}},getAnchorText:function(){return"@"+this.mention},getCssClassSuffixes:function(){var e=t.match.Match.prototype.getCssClassSuffixes.call(this),n=this.getServiceName();return n&&e.push(n),e}}),t.match.Url=t.Util.extend(t.match.Match,{constructor:function(e){if(t.match.Match.prototype.constructor.call(this,e),"scheme"!==e.urlMatchType&&"www"!==e.urlMatchType&&"tld"!==e.urlMatchType)throw new Error('`urlMatchType` cfg must be one of: "scheme", "www", or "tld"');if(!e.url)throw new Error("`url` cfg required");if(null==e.protocolUrlMatch)throw new Error("`protocolUrlMatch` cfg required");if(null==e.protocolRelativeMatch)throw new Error("`protocolRelativeMatch` cfg required");if(null==e.stripPrefix)throw new Error("`stripPrefix` cfg required");if(null==e.stripTrailingSlash)throw new Error("`stripTrailingSlash` cfg required");if(null==e.decodePercentEncoding)throw new Error("`decodePercentEncoding` cfg required");this.urlMatchType=e.urlMatchType,this.url=e.url,this.protocolUrlMatch=e.protocolUrlMatch,this.protocolRelativeMatch=e.protocolRelativeMatch,this.stripPrefix=e.stripPrefix,this.stripTrailingSlash=e.stripTrailingSlash,this.decodePercentEncoding=e.decodePercentEncoding},schemePrefixRegex:/^(https?:\/\/)?/i,wwwPrefixRegex:/^(https?:\/\/)?(www\.)?/i,protocolRelativeRegex:/^\/\//,protocolPrepended:!1,getType:function(){return"url"},getUrlMatchType:function(){return this.urlMatchType},getUrl:function(){var t=this.url;return this.protocolRelativeMatch||this.protocolUrlMatch||this.protocolPrepended||(t=this.url="http://"+t,this.protocolPrepended=!0),t},getAnchorHref:function(){var t=this.getUrl();return t.replace(/&/g,"&")},getAnchorText:function(){var t=this.getMatchedText();return this.protocolRelativeMatch&&(t=this.stripProtocolRelativePrefix(t)),this.stripPrefix.scheme&&(t=this.stripSchemePrefix(t)),this.stripPrefix.www&&(t=this.stripWwwPrefix(t)),this.stripTrailingSlash&&(t=this.removeTrailingSlash(t)),this.decodePercentEncoding&&(t=this.removePercentEncoding(t)),t},stripSchemePrefix:function(t){return t.replace(this.schemePrefixRegex,"")},stripWwwPrefix:function(t){return t.replace(this.wwwPrefixRegex,"$1")},stripProtocolRelativePrefix:function(t){return t.replace(this.protocolRelativeRegex,"")},removeTrailingSlash:function(t){return"/"===t.charAt(t.length-1)&&(t=t.slice(0,-1)),t},removePercentEncoding:function(t){try{return decodeURIComponent(t.replace(/%22/gi,""").replace(/%26/gi,"&").replace(/%27/gi,"'").replace(/%3C/gi,"<").replace(/%3E/gi,">"))}catch(e){return t}}}),t.tldRegex=/(?:xn--vermgensberatung-pwb|xn--vermgensberater-ctb|xn--clchc0ea0b2g2a9gcd|xn--w4r85el8fhu5dnra|northwesternmutual|travelersinsurance|vermögensberatung|xn--3oq18vl8pn36a|xn--5su34j936bgsg|xn--bck1b9a5dre4c|xn--mgbai9azgqp6j|xn--mgberp4a5d4ar|xn--xkc2dl3a5ee0h|vermögensberater|xn--fzys8d69uvgm|xn--mgba7c0bbn0a|xn--xkc2al3hye2a|americanexpress|kerryproperties|sandvikcoromant|xn--i1b6b1a6a2e|xn--kcrx77d1x4a|xn--lgbbat1ad8j|xn--mgba3a4f16a|xn--mgbc0a9azcg|xn--nqv7fs00ema|afamilycompany|americanfamily|bananarepublic|cancerresearch|cookingchannel|kerrylogistics|weatherchannel|xn--54b7fta0cc|xn--6qq986b3xl|xn--80aqecdr1a|xn--b4w605ferd|xn--fiq228c5hs|xn--jlq61u9w7b|xn--mgba3a3ejt|xn--mgbaam7a8h|xn--mgbayh7gpa|xn--mgbb9fbpob|xn--mgbbh1a71e|xn--mgbca7dzdo|xn--mgbi4ecexp|xn--mgbx4cd0ab|international|lifeinsurance|orientexpress|spreadbetting|travelchannel|wolterskluwer|xn--eckvdtc9d|xn--fpcrj9c3d|xn--fzc2c9e2c|xn--tiq49xqyj|xn--yfro4i67o|xn--ygbi2ammx|construction|lplfinancial|pamperedchef|scholarships|versicherung|xn--3e0b707e|xn--80adxhks|xn--80asehdb|xn--8y0a063a|xn--gckr3f0f|xn--mgb9awbf|xn--mgbab2bd|xn--mgbpl2fh|xn--mgbt3dhd|xn--mk1bu44c|xn--ngbc5azd|xn--ngbe9e0a|xn--ogbpf8fl|xn--qcka1pmc|accountants|barclaycard|blackfriday|blockbuster|bridgestone|calvinklein|contractors|creditunion|engineering|enterprises|foodnetwork|investments|kerryhotels|lamborghini|motorcycles|olayangroup|photography|playstation|productions|progressive|redumbrella|rightathome|williamhill|xn--11b4c3d|xn--1ck2e1b|xn--1qqw23a|xn--3bst00m|xn--3ds443g|xn--42c2d9a|xn--45brj9c|xn--55qw42g|xn--6frz82g|xn--80ao21a|xn--9krt00a|xn--cck2b3b|xn--czr694b|xn--d1acj3b|xn--efvy88h|xn--estv75g|xn--fct429k|xn--fjq720a|xn--flw351e|xn--g2xx48c|xn--gecrj9c|xn--gk3at1e|xn--h2brj9c|xn--hxt814e|xn--imr513n|xn--j6w193g|xn--jvr189m|xn--kprw13d|xn--kpry57d|xn--kpu716f|xn--mgbtx2b|xn--mix891f|xn--nyqy26a|xn--pbt977c|xn--pgbs0dh|xn--q9jyb4c|xn--rhqv96g|xn--rovu88b|xn--s9brj9c|xn--ses554g|xn--t60b56a|xn--vuq861b|xn--w4rs40l|xn--xhq521b|xn--zfr164b|சிங்கப்பூர்|accountant|apartments|associates|basketball|bnpparibas|boehringer|capitalone|consulting|creditcard|cuisinella|eurovision|extraspace|foundation|healthcare|immobilien|industries|management|mitsubishi|nationwide|newholland|nextdirect|onyourside|properties|protection|prudential|realestate|republican|restaurant|schaeffler|swiftcover|tatamotors|technology|telefonica|university|vistaprint|vlaanderen|volkswagen|xn--30rr7y|xn--3pxu8k|xn--45q11c|xn--4gbrim|xn--55qx5d|xn--5tzm5g|xn--80aswg|xn--90a3ac|xn--9dbq2a|xn--9et52u|xn--c2br7g|xn--cg4bki|xn--czrs0t|xn--czru2d|xn--fiq64b|xn--fiqs8s|xn--fiqz9s|xn--io0a7i|xn--kput3i|xn--mxtq1m|xn--o3cw4h|xn--pssy2u|xn--unup4y|xn--wgbh1c|xn--wgbl6a|xn--y9a3aq|accenture|alfaromeo|allfinanz|amsterdam|analytics|aquarelle|barcelona|bloomberg|christmas|community|directory|education|equipment|fairwinds|financial|firestone|fresenius|frontdoor|fujixerox|furniture|goldpoint|goodhands|hisamitsu|homedepot|homegoods|homesense|honeywell|institute|insurance|kuokgroup|ladbrokes|lancaster|landrover|lifestyle|marketing|marshalls|mcdonalds|melbourne|microsoft|montblanc|panasonic|passagens|pramerica|richardli|scjohnson|shangrila|solutions|statebank|statefarm|stockholm|travelers|vacations|xn--90ais|xn--c1avg|xn--d1alf|xn--e1a4c|xn--fhbei|xn--j1aef|xn--j1amh|xn--l1acc|xn--nqv7f|xn--p1acf|xn--tckwe|xn--vhquv|yodobashi|abudhabi|airforce|allstate|attorney|barclays|barefoot|bargains|baseball|boutique|bradesco|broadway|brussels|budapest|builders|business|capetown|catering|catholic|chrysler|cipriani|cityeats|cleaning|clinique|clothing|commbank|computer|delivery|deloitte|democrat|diamonds|discount|discover|download|engineer|ericsson|esurance|everbank|exchange|feedback|fidelity|firmdale|football|frontier|goodyear|grainger|graphics|guardian|hdfcbank|helsinki|holdings|hospital|infiniti|ipiranga|istanbul|jpmorgan|lighting|lundbeck|marriott|maserati|mckinsey|memorial|mortgage|movistar|observer|partners|pharmacy|pictures|plumbing|property|redstone|reliance|saarland|samsclub|security|services|shopping|showtime|softbank|software|stcgroup|supplies|symantec|telecity|training|uconnect|vanguard|ventures|verisign|woodside|xn--90ae|xn--node|xn--p1ai|xn--qxam|yokohama|السعودية|abogado|academy|agakhan|alibaba|android|athleta|auction|audible|auspost|avianca|banamex|bauhaus|bentley|bestbuy|booking|brother|bugatti|capital|caravan|careers|cartier|channel|chintai|citadel|clubmed|college|cologne|comcast|company|compare|contact|cooking|corsica|country|coupons|courses|cricket|cruises|dentist|digital|domains|exposed|express|farmers|fashion|ferrari|ferrero|finance|fishing|fitness|flights|florist|flowers|forsale|frogans|fujitsu|gallery|genting|godaddy|guitars|hamburg|hangout|hitachi|holiday|hosting|hoteles|hotmail|hyundai|iselect|ismaili|jewelry|juniper|kitchen|komatsu|lacaixa|lancome|lanxess|lasalle|latrobe|leclerc|liaison|limited|lincoln|markets|metlife|monster|netbank|netflix|network|neustar|okinawa|oldnavy|organic|origins|panerai|philips|pioneer|politie|realtor|recipes|rentals|reviews|rexroth|samsung|sandvik|schmidt|schwarz|science|shiksha|shriram|singles|spiegel|staples|starhub|statoil|storage|support|surgery|systems|temasek|theater|theatre|tickets|tiffany|toshiba|trading|walmart|wanggou|watches|weather|website|wedding|whoswho|windows|winners|xfinity|yamaxun|youtube|zuerich|католик|الجزائر|العليان|پاکستان|كاثوليك|موبايلي|இந்தியா|abarth|abbott|abbvie|active|africa|agency|airbus|airtel|alipay|alsace|alstom|anquan|aramco|author|bayern|beauty|berlin|bharti|blanco|bostik|boston|broker|camera|career|caseih|casino|center|chanel|chrome|church|circle|claims|clinic|coffee|comsec|condos|coupon|credit|cruise|dating|datsun|dealer|degree|dental|design|direct|doctor|dunlop|dupont|durban|emerck|energy|estate|events|expert|family|flickr|futbol|gallup|garden|george|giving|global|google|gratis|health|hermes|hiphop|hockey|hughes|imamat|insure|intuit|jaguar|joburg|juegos|kaufen|kinder|kindle|kosher|lancia|latino|lawyer|lefrak|living|locker|london|luxury|madrid|maison|makeup|market|mattel|mobile|mobily|monash|mormon|moscow|museum|mutual|nagoya|natura|nissan|nissay|norton|nowruz|office|olayan|online|oracle|orange|otsuka|pfizer|photos|physio|piaget|pictet|quebec|racing|realty|reisen|repair|report|review|rocher|rogers|ryukyu|safety|sakura|sanofi|school|schule|secure|select|shouji|soccer|social|stream|studio|supply|suzuki|swatch|sydney|taipei|taobao|target|tattoo|tennis|tienda|tjmaxx|tkmaxx|toyota|travel|unicom|viajes|viking|villas|virgin|vision|voting|voyage|vuelos|walter|warman|webcam|xihuan|xperia|yachts|yandex|zappos|москва|онлайн|ابوظبي|ارامكو|الاردن|المغرب|امارات|فلسطين|مليسيا|இலங்கை|ファッション|actor|adult|aetna|amfam|amica|apple|archi|audio|autos|azure|baidu|beats|bible|bingo|black|boats|boots|bosch|build|canon|cards|chase|cheap|chloe|cisco|citic|click|cloud|coach|codes|crown|cymru|dabur|dance|deals|delta|dodge|drive|dubai|earth|edeka|email|epost|epson|faith|fedex|final|forex|forum|gallo|games|gifts|gives|glade|glass|globo|gmail|green|gripe|group|gucci|guide|homes|honda|horse|house|hyatt|ikano|intel|irish|iveco|jetzt|koeln|kyoto|lamer|lease|legal|lexus|lilly|linde|lipsy|lixil|loans|locus|lotte|lotto|lupin|macys|mango|media|miami|money|mopar|movie|nadex|nexus|nikon|ninja|nokia|nowtv|omega|osaka|paris|parts|party|phone|photo|pizza|place|poker|praxi|press|prime|promo|quest|radio|rehab|reise|ricoh|rocks|rodeo|salon|sener|seven|sharp|shell|shoes|skype|sling|smart|smile|solar|space|stada|store|study|style|sucks|swiss|tatar|tires|tirol|tmall|today|tokyo|tools|toray|total|tours|trade|trust|tunes|tushu|ubank|vegas|video|vista|vodka|volvo|wales|watch|weber|weibo|works|world|xerox|yahoo|zippo|ایران|بازار|بھارت|سودان|سورية|همراه|संगठन|বাংলা|భారత్|嘉里大酒店|aarp|able|adac|aero|aigo|akdn|ally|amex|army|arpa|arte|asda|asia|audi|auto|baby|band|bank|bbva|beer|best|bike|bing|blog|blue|bofa|bond|book|buzz|cafe|call|camp|care|cars|casa|case|cash|cbre|cern|chat|citi|city|club|cool|coop|cyou|data|date|dclk|deal|dell|desi|diet|dish|docs|doha|duck|duns|dvag|erni|fage|fail|fans|farm|fast|fiat|fido|film|fire|fish|flir|food|ford|free|fund|game|gbiz|gent|ggee|gift|gmbh|gold|golf|goog|guge|guru|hair|haus|hdfc|help|here|hgtv|host|hsbc|icbc|ieee|imdb|immo|info|itau|java|jeep|jobs|jprs|kddi|kiwi|kpmg|kred|land|lego|lgbt|lidl|life|like|limo|link|live|loan|loft|love|ltda|luxe|maif|meet|meme|menu|mini|mint|mobi|moda|moto|mtpc|name|navy|news|next|nico|nike|ollo|open|page|pars|pccw|pics|ping|pink|play|plus|pohl|porn|post|prod|prof|qpon|raid|read|reit|rent|rest|rich|rmit|room|rsvp|ruhr|safe|sale|sapo|sarl|save|saxo|scor|scot|seat|seek|sexy|shaw|shia|shop|show|silk|sina|site|skin|sncf|sohu|song|sony|spot|star|surf|talk|taxi|team|tech|teva|tiaa|tips|town|toys|tube|vana|visa|viva|vivo|vote|voto|wang|weir|wien|wiki|wine|work|xbox|yoga|zara|zero|zone|дети|сайт|بيتك|تونس|شبكة|عراق|عمان|موقع|भारत|ভারত|ਭਾਰਤ|ભારત|ලංකා|グーグル|クラウド|ポイント|大众汽车|组织机构|電訊盈科|香格里拉|aaa|abb|abc|aco|ads|aeg|afl|aig|anz|aol|app|art|aws|axa|bar|bbc|bbt|bcg|bcn|bet|bid|bio|biz|bms|bmw|bnl|bom|boo|bot|box|buy|bzh|cab|cal|cam|car|cat|cba|cbn|cbs|ceb|ceo|cfa|cfd|com|crs|csc|dad|day|dds|dev|dhl|diy|dnp|dog|dot|dtv|dvr|eat|eco|edu|esq|eus|fan|fit|fly|foo|fox|frl|ftr|fun|fyi|gal|gap|gdn|gea|gle|gmo|gmx|goo|gop|got|gov|hbo|hiv|hkt|hot|how|htc|ibm|ice|icu|ifm|ing|ink|int|ist|itv|iwc|jcb|jcp|jio|jlc|jll|jmp|jnj|jot|joy|kfh|kia|kim|kpn|krd|lat|law|lds|lol|lpl|ltd|man|mba|mcd|med|men|meo|mil|mit|mlb|mls|mma|moe|moi|mom|mov|msd|mtn|mtr|nab|nba|nec|net|new|nfl|ngo|nhk|now|nra|nrw|ntt|nyc|obi|off|one|ong|onl|ooo|org|ott|ovh|pay|pet|pid|pin|pnc|pro|pru|pub|pwc|qvc|red|ren|ril|rio|rip|run|rwe|sap|sas|sbi|sbs|sca|scb|ses|sew|sex|sfr|ski|sky|soy|srl|srt|stc|tab|tax|tci|tdk|tel|thd|tjx|top|trv|tui|tvs|ubs|uno|uol|ups|vet|vig|vin|vip|wed|win|wme|wow|wtc|wtf|xin|xxx|xyz|you|yun|zip|бел|ком|қаз|мкд|мон|орг|рус|срб|укр|հայ|קום|قطر|كوم|مصر|कॉम|नेट|คอม|ไทย|ストア|セール|みんな|中文网|天主教|我爱你|新加坡|淡马锡|诺基亚|飞利浦|ac|ad|ae|af|ag|ai|al|am|ao|aq|ar|as|at|au|aw|ax|az|ba|bb|bd|be|bf|bg|bh|bi|bj|bm|bn|bo|br|bs|bt|bv|bw|by|bz|ca|cc|cd|cf|cg|ch|ci|ck|cl|cm|cn|co|cr|cu|cv|cw|cx|cy|cz|de|dj|dk|dm|do|dz|ec|ee|eg|er|es|et|eu|fi|fj|fk|fm|fo|fr|ga|gb|gd|ge|gf|gg|gh|gi|gl|gm|gn|gp|gq|gr|gs|gt|gu|gw|gy|hk|hm|hn|hr|ht|hu|id|ie|il|im|in|io|iq|ir|is|it|je|jm|jo|jp|ke|kg|kh|ki|km|kn|kp|kr|kw|ky|kz|la|lb|lc|li|lk|lr|ls|lt|lu|lv|ly|ma|mc|md|me|mg|mh|mk|ml|mm|mn|mo|mp|mq|mr|ms|mt|mu|mv|mw|mx|my|mz|na|nc|ne|nf|ng|ni|nl|no|np|nr|nu|nz|om|pa|pe|pf|pg|ph|pk|pl|pm|pn|pr|ps|pt|pw|py|qa|re|ro|rs|ru|rw|sa|sb|sc|sd|se|sg|sh|si|sj|sk|sl|sm|sn|so|sr|st|su|sv|sx|sy|sz|tc|td|tf|tg|th|tj|tk|tl|tm|tn|to|tr|tt|tv|tw|tz|ua|ug|uk|us|uy|uz|va|vc|ve|vg|vi|vn|vu|wf|ws|ye|yt|za|zm|zw|ελ|бг|ею|рф|გე|닷넷|닷컴|삼성|한국|コム|世界|中信|中国|中國|企业|佛山|信息|健康|八卦|公司|公益|台湾|台灣|商城|商店|商标|嘉里|在线|大拿|娱乐|家電|工行|广东|微博|慈善|手机|手表|政务|政府|新闻|时尚|書籍|机构|游戏|澳門|点看|珠宝|移动|网址|网店|网站|网络|联通|谷歌|购物|通販|集团|食品|餐厅|香港)/,
|
||
t.matcher.Matcher=t.Util.extend(Object,{constructor:function(t){if(!t.tagBuilder)throw new Error("`tagBuilder` cfg required");this.tagBuilder=t.tagBuilder},parseMatches:t.Util.abstractMethod}),t.matcher.Email=t.Util.extend(t.matcher.Matcher,{matcherRegex:function(){var e=t.RegexLib.alphaNumericCharsStr,n="!#$%&'*+\\-\\/=?^_`{|}~",r='\\s"(),:;<>@\\[\\]',i=e+n,o=i+r,a=new RegExp("(?:["+i+"](?:["+i+']|\\.(?!\\.|@))*|\\"['+o+'.]+\\")@'),s=t.RegexLib.getDomainNameStr,u=t.tldRegex;return new RegExp([a.source,s(1),"\\.",u.source].join(""),"gi")}(),parseMatches:function(e){for(var n,r=this.matcherRegex,i=this.tagBuilder,o=[];null!==(n=r.exec(e));){var a=n[0];o.push(new t.match.Email({tagBuilder:i,matchedText:a,offset:n.index,email:a}))}return o}}),t.matcher.Hashtag=t.Util.extend(t.matcher.Matcher,{matcherRegex:new RegExp("#[_"+t.RegexLib.alphaNumericCharsStr+"]{1,139}","g"),nonWordCharRegex:new RegExp("[^"+t.RegexLib.alphaNumericCharsStr+"]"),constructor:function(e){t.matcher.Matcher.prototype.constructor.call(this,e),this.serviceName=e.serviceName},parseMatches:function(e){for(var n,r=this.matcherRegex,i=this.nonWordCharRegex,o=this.serviceName,a=this.tagBuilder,s=[];null!==(n=r.exec(e));){var u=n.index,l=e.charAt(u-1);if(0===u||i.test(l)){var c=n[0],f=n[0].slice(1);s.push(new t.match.Hashtag({tagBuilder:a,matchedText:c,offset:u,serviceName:o,hashtag:f}))}}return s}}),t.matcher.Phone=t.Util.extend(t.matcher.Matcher,{matcherRegex:/(?:(\+)?\d{1,3}[-\040.]?)?\(?\d{3}\)?[-\040.]?\d{3}[-\040.]?\d{4}([,;]*[0-9]+#?)*/g,parseMatches:function(e){for(var n,r=this.matcherRegex,i=this.tagBuilder,o=[];null!==(n=r.exec(e));){var a=n[0],s=a.replace(/[^0-9,;#]/g,""),u=!!n[1];this.testMatch(n[2])&&this.testMatch(a)&&o.push(new t.match.Phone({tagBuilder:i,matchedText:a,offset:n.index,number:s,plusSign:u}))}return o},testMatch:function(t){return/\D/.test(t)}}),t.matcher.Mention=t.Util.extend(t.matcher.Matcher,{matcherRegexes:{twitter:new RegExp("@[_"+t.RegexLib.alphaNumericCharsStr+"]{1,20}","g"),instagram:new RegExp("@[_."+t.RegexLib.alphaNumericCharsStr+"]{1,50}","g")},nonWordCharRegex:new RegExp("[^"+t.RegexLib.alphaNumericCharsStr+"]"),constructor:function(e){t.matcher.Matcher.prototype.constructor.call(this,e),this.serviceName=e.serviceName},parseMatches:function(e){var n,r=this.matcherRegexes[this.serviceName],i=this.nonWordCharRegex,o=this.serviceName,a=this.tagBuilder,s=[];if(!r)return s;for(;null!==(n=r.exec(e));){var u=n.index,l=e.charAt(u-1);if(0===u||i.test(l)){var c=n[0].replace(/\.+$/g,""),f=c.slice(1);s.push(new t.match.Mention({tagBuilder:a,matchedText:c,offset:u,serviceName:o,mention:f}))}}return s}}),t.matcher.Url=t.Util.extend(t.matcher.Matcher,{matcherRegex:function(){var e=/(?:[A-Za-z][-.+A-Za-z0-9]{0,63}:(?![A-Za-z][-.+A-Za-z0-9]{0,63}:\/\/)(?!\d+\/?)(?:\/\/)?)/,n=/(?:www\.)/,r=t.RegexLib.getDomainNameStr,i=t.tldRegex,o=t.RegexLib.alphaNumericCharsStr,a=new RegExp("[/?#](?:["+o+"\\-+&@#/%=~_()|'$*\\[\\]?!:,.;✓]*["+o+"\\-+&@#/%=~_()|'$*\\[\\]✓])?");return new RegExp(["(?:","(",e.source,r(2),")","|","(","(//)?",n.source,r(6),")","|","(","(//)?",r(10)+"\\.",i.source,"(?![-"+o+"])",")",")","(?::[0-9]+)?","(?:"+a.source+")?"].join(""),"gi")}(),wordCharRegExp:new RegExp("["+t.RegexLib.alphaNumericCharsStr+"]"),openParensRe:/\(/g,closeParensRe:/\)/g,constructor:function(e){if(t.matcher.Matcher.prototype.constructor.call(this,e),null==e.stripPrefix)throw new Error("`stripPrefix` cfg required");if(null==e.stripTrailingSlash)throw new Error("`stripTrailingSlash` cfg required");this.stripPrefix=e.stripPrefix,this.stripTrailingSlash=e.stripTrailingSlash,this.decodePercentEncoding=e.decodePercentEncoding},parseMatches:function(e){for(var n,r=this.matcherRegex,i=this.stripPrefix,o=this.stripTrailingSlash,a=this.decodePercentEncoding,s=this.tagBuilder,u=[];null!==(n=r.exec(e));){var l=n[0],c=n[1],f=n[4],h=n[5],d=n[9],p=n.index,m=h||d,g=e.charAt(p-1);if(t.matcher.UrlMatchValidator.isValid(l,c)&&!(p>0&&"@"===g||p>0&&m&&this.wordCharRegExp.test(g))){if(/\?$/.test(l)&&(l=l.substr(0,l.length-1)),this.matchHasUnbalancedClosingParen(l))l=l.substr(0,l.length-1);else{var v=this.matchHasInvalidCharAfterTld(l,c);v>-1&&(l=l.substr(0,v))}var y=c?"scheme":f?"www":"tld",b=!!c;u.push(new t.match.Url({tagBuilder:s,matchedText:l,offset:p,urlMatchType:y,url:l,protocolUrlMatch:b,protocolRelativeMatch:!!m,stripPrefix:i,stripTrailingSlash:o,decodePercentEncoding:a}))}}return u},matchHasUnbalancedClosingParen:function(t){var e=t.charAt(t.length-1);if(")"===e){var n=t.match(this.openParensRe),r=t.match(this.closeParensRe),i=n&&n.length||0,o=r&&r.length||0;if(i<o)return!0}return!1},matchHasInvalidCharAfterTld:function(e,n){if(!e)return-1;var r=0;n&&(r=e.indexOf(":"),e=e.slice(r));var i=t.RegexLib.alphaNumericCharsStr,o=new RegExp("^((.?//)?[-."+i+"]*[-"+i+"]\\.[-"+i+"]+)"),a=o.exec(e);return null===a?-1:(r+=a[1].length,e=e.slice(a[1].length),/^[^-.A-Za-z0-9:\/?#]/.test(e)?r:-1)}}),t.matcher.UrlMatchValidator={hasFullProtocolRegex:/^[A-Za-z][-.+A-Za-z0-9]*:\/\//,uriSchemeRegex:/^[A-Za-z][-.+A-Za-z0-9]*:/,hasWordCharAfterProtocolRegex:new RegExp(":[^\\s]*?["+t.RegexLib.alphaCharsStr+"]"),ipRegex:/[0-9][0-9]?[0-9]?\.[0-9][0-9]?[0-9]?\.[0-9][0-9]?[0-9]?\.[0-9][0-9]?[0-9]?(:[0-9]*)?\/?$/,isValid:function(t,e){return!(e&&!this.isValidUriScheme(e)||this.urlMatchDoesNotHaveProtocolOrDot(t,e)||this.urlMatchDoesNotHaveAtLeastOneWordChar(t,e)&&!this.isValidIpAddress(t)||this.containsMultipleDots(t))},isValidIpAddress:function(t){var e=new RegExp(this.hasFullProtocolRegex.source+this.ipRegex.source),n=t.match(e);return null!==n},containsMultipleDots:function(t){var e=t;return this.hasFullProtocolRegex.test(t)&&(e=t.split("://")[1]),e.split("/")[0].indexOf("..")>-1},isValidUriScheme:function(t){var e=t.match(this.uriSchemeRegex)[0].toLowerCase();return"javascript:"!==e&&"vbscript:"!==e},urlMatchDoesNotHaveProtocolOrDot:function(t,e){return!(!t||e&&this.hasFullProtocolRegex.test(e)||t.indexOf(".")!==-1)},urlMatchDoesNotHaveAtLeastOneWordChar:function(t,e){return!(!t||!e)&&!this.hasWordCharAfterProtocolRegex.test(t)}},t.truncate.TruncateEnd=function(e,n,r){return t.Util.ellipsis(e,n,r)},t.truncate.TruncateMiddle=function(t,e,n){if(t.length<=e)return t;var r,i;null==n?(n="…",r=8,i=3):(r=n.length,i=n.length);var o=e-i,a="";return o>0&&(a=t.substr(-1*Math.floor(o/2))),(t.substr(0,Math.ceil(o/2))+n+a).substr(0,o+r)},t.truncate.TruncateSmart=function(t,e,n){var r,i;null==n?(n="…",i=3,r=8):(i=n.length,r=n.length);var o=function(t){var e={},n=t,r=n.match(/^([a-z]+):\/\//i);return r&&(e.scheme=r[1],n=n.substr(r[0].length)),r=n.match(/^(.*?)(?=(\?|#|\/|$))/i),r&&(e.host=r[1],n=n.substr(r[0].length)),r=n.match(/^\/(.*?)(?=(\?|#|$))/i),r&&(e.path=r[1],n=n.substr(r[0].length)),r=n.match(/^\?(.*?)(?=(#|$))/i),r&&(e.query=r[1],n=n.substr(r[0].length)),r=n.match(/^#(.*?)$/i),r&&(e.fragment=r[1]),e},a=function(t){var e="";return t.scheme&&t.host&&(e+=t.scheme+"://"),t.host&&(e+=t.host),t.path&&(e+="/"+t.path),t.query&&(e+="?"+t.query),t.fragment&&(e+="#"+t.fragment),e},s=function(t,e){var r=e/2,i=Math.ceil(r),o=-1*Math.floor(r),a="";return o<0&&(a=t.substr(o)),t.substr(0,i)+n+a};if(t.length<=e)return t;var u=e-i,l=o(t);if(l.query){var c=l.query.match(/^(.*?)(?=(\?|\#))(.*?)$/i);c&&(l.query=l.query.substr(0,c[1].length),t=a(l))}if(t.length<=e)return t;if(l.host&&(l.host=l.host.replace(/^www\./,""),t=a(l)),t.length<=e)return t;var f="";if(l.host&&(f+=l.host),f.length>=u)return l.host.length==e?(l.host.substr(0,e-i)+n).substr(0,u+r):s(f,u).substr(0,u+r);var h="";if(l.path&&(h+="/"+l.path),l.query&&(h+="?"+l.query),h){if((f+h).length>=u){if((f+h).length==e)return(f+h).substr(0,e);var d=u-f.length;return(f+s(h,d)).substr(0,u+r)}f+=h}if(l.fragment){var p="#"+l.fragment;if((f+p).length>=u){if((f+p).length==e)return(f+p).substr(0,e);var m=u-f.length;return(f+s(p,m)).substr(0,u+r)}f+=p}if(l.scheme&&l.host){var g=l.scheme+"://";if((f+g).length<u)return(g+f).substr(0,e)}if(f.length<=e)return f;var v="";return u>0&&(v=f.substr(-1*Math.floor(u/2))),(f.substr(0,Math.ceil(u/2))+n+v).substr(0,u+r)},t}),function(){function t(t){this.listeners={},this.__context=t||this}function n(t,e){function n(t,e,n){Object.defineProperty(t,e,{value:n,configurable:!0,writable:!1})}for(var r in e)n(this,r,e[r]);n(this,"x",t.x-e.left+1),n(this,"y",t.y-e.top+1),n(this,"north",(e.bottom-e.top)/2-this.y),n(this,"south",-(e.bottom-e.top)/2+this.y),n(this,"east",(e.right-e.left)/2-this.x),n(this,"west",-(e.right-e.left)/2+this.x)}function r(t){function r(t){y=Date.now(),s(t),f.down=!0,f.up=!1,f.current&&(f.origin=f.current,f.emitter.emit("down",f.current,g)),k=f.x,C=f.y}function o(t){s(t),f.emitter.emit("move",f.current,g),f.down&&f.current&&f.emitter.emit("stroke",f.current,g)}function a(t){return f.down=!1,f.up=!0,f.current&&f.emitter.emit("up",f.current,g),t.targetTouches&&!(f.y>C-$&&f.y<C+$&&f.x>k-$&&f.x<k+$||E)?(f.previous=null,f.origin=null,t.preventDefault(),!1):(E=!1,f.previous=null,void(f.origin=null))}function s(t){var e,r,o,a,s=null,u=null;if(t=t||window.event,a=t.target||t.srcElement,t.targetTouches?(t.pageX=t.targetTouches[0].clientX,t.pageY=t.targetTouches[0].clientY,t.clientX=t.targetTouches[0].clientX,t.clientY=t.targetTouches[0].clientY):null===t.pageX&&null!==t.clientX&&(e=t.target&&t.target.ownerDocument||document,r=e.documentElement,o=e.body,t.pageX=t.clientX+(r&&r.scrollLeft||o&&o.scrollLeft||0)-(r&&r.clientLeft||o&&o.clientLeft||0),t.pageY=t.clientY+(r&&r.scrollTop||o&&o.scrollTop||0)-(r&&r.clientTop||o&&o.clientTop||0)),f.x&&f.y&&(t.pageX<f.x?_.h="left":t.pageX>f.x&&(_.h="right"),t.pageY<f.y?_.v="up":t.pageY>f.y&&(_.v="down"),w=f.x,x=f.y),b={},b.x=t.clientX,b.y=t.clientY,null===f.current||f.outside(f.current)){for(var l=0;l<h.length;l++)if(h[l]===a||f.inside(h[l])){s=h[l];break}u=f.current,s&&(f.previous=f.current,f.current=s)}m=f.current?i(f.current):null,g=m?new n(f,m):null,u&&(s||(f.current=null),f.emitter.emit("leave",u,g)),s&&f.emitter.emit("enter",f.current,g)}function l(t,e){for(var n=0;n<A[t].length;n++)if(A[t][n].callback===e)return void A[t].splice(n,1)}function c(t,e,n){"undefined"==typeof n&&(n=e,e=null),A[t].push({data:e,callback:n})}var f=this,h=[];"undefined"==typeof t.length&&(t=[t]);for(var d=0;d<t.length;d++)if(void 0!==t[d])if("string"==typeof t[d])try{h.push(document.querySelector(e))}catch(p){throw new Error(e+" is not a valid selector used by pointer.")}else h.push(t[d]);var m,g,v,y,b={},_={},w=-1,x=-1,k=-1,C=-1,E=!1,$=10,S=!1,A={hold:[]};this.emitter=new u(this),this.origin=null,this.current=null,this.previous=null,window.addEventListener("mousedown",r,!1),window.addEventListener("mousemove",o,!1),window.addEventListener("mouseup",a,!1),window.addEventListener("touchstart",r,!1),window.addEventListener("touchmove",o,!1),window.addEventListener("touchend",a,!1),window.addEventListener("scroll",function(t){E=!0,clearTimeout(S),S=setTimeout(function(){E=!1},100)}),Object.defineProperty(this,"speedX",{get:function(){var t=Date.now()/1e3,e=t-v,n=f.x-w;return v=t,Math.round(n/e)}}),Object.defineProperty(this,"speedY",{get:function(){var t=Date.now()/1e3,e=t-v,n=f.y-x;return v=t,Math.round(n/e)}}),Object.defineProperty(this,"x",{get:function(){return b.x}}),Object.defineProperty(this,"y",{get:function(){return b.y}}),Object.defineProperty(this,"h",{get:function(){return _.h}}),Object.defineProperty(this,"v",{get:function(){return _.v}}),this.emitter.on("up",function(t,e){if(y)for(var n=0;n<A.hold.length;n++)Date.now()>y+(A.hold[n].data||2e3)&&A.hold[n].callback.call(this,t,e);y=0}),this.on=function(t,e){return A[t]?(c(t,e,arguments[2]),this):(this.emitter.on(t,e),this)},this.off=function(t,e){return A[t]?(l(t,e),this):(this.emitter.off(t,e),this)},this.add=function(t){if("string"==typeof t)try{h.push(document.querySelector(e))}catch(n){throw new Error(e+" is not a valid selector, and can't be used add to pointer.")}else if(!t)throw new Error(e+" can not be added to pointer.");h.push(t)},this.destroy=function(){window.removeEventListener("mousedown",r,!1),window.removeEventListener("mousemove",o,!1),window.removeEventListener("mouseup",a,!1),window.removeEventListener("touchstart",r,!1),window.removeEventListener("touchmove",o,!1),window.removeEventListener("touchend",a,!1),h=null,f=null,b=null,_=null}}function i(t){return t===window?{top:0,left:0,right:window.innerWidth,bottom:window.innerHeight,width:window.innerWidth,height:window.innerHeight}:t.getBoundingClientRect()}function o(t,e){function n(){m=!0}function r(){m=!1}function o(e){if(f.autoScroll()&&e.target){var n,r=e.target;if(!b||!a(d,b))if(!b&&r){for(b=null;r=r.parentNode;)for(var i=0;i<t.length;i++)if(t[i]===r&&a(d,t[i])){b=t[i];break}}else{n=b,b=null;for(var i=0;i<t.length;i++)t[i]!==n&&a(d,t[i])&&(b=t[i])}g&&s(g),b&&s(b)}}function s(t){var e=i(t);d.y<e.top+f.margin?u(t,-1,e):d.y>e.bottom-f.margin&&u(t,1,e),d.x<e.left+f.margin?c(t,-1,e):d.x>e.right-f.margin&&c(t,1,e)}function u(t,e,n){f.autoScroll()&&(f.scrollWhenOutside||a(d,t,n))&&(t===window?window.scrollTo(t.pageXOffset,t.pageYOffset+e):t.scrollTop=t.scrollTop+e,setTimeout(function(){d.y<n.top+f.margin?u(t,e,n):d.y>n.bottom-f.margin&&u(t,e,n)},f.interval))}function c(t,e,n){f.autoScroll()&&(f.scrollWhenOutside||a(d,t,n))&&(t===window?window.scrollTo(t.pageXOffset+e,t.pageYOffset):t.scrollLeft=t.scrollLeft+e,setTimeout(function(){d.x<n.left+f.margin?c(t,e,n):d.x>n.right-f.margin&&c(t,e,n)},f.interval))}var f=this,h=2;e=e||{},this.margin=e.margin||-1,this.scrolling=!1,this.scrollWhenOutside=e.scrollWhenOutside||!1;var d={},p=l(d),m=!1;window.addEventListener("mousemove",p,!1),window.addEventListener("touchmove",p,!1),isNaN(e.pixels)||(h=e.pixels),"boolean"==typeof e.autoScroll?this.autoScroll=e.autoScroll?function(){return!0}:function(){return!1}:"undefined"==typeof e.autoScroll?this.autoScroll=function(){return!1}:"function"==typeof e.autoScroll&&(this.autoScroll=e.autoScroll),this.destroy=function(){window.removeEventListener("mousemove",p,!1),window.removeEventListener("touchmove",p,!1),window.removeEventListener("mousedown",n,!1),window.removeEventListener("touchstart",n,!1),window.removeEventListener("mouseup",r,!1),window.removeEventListener("touchend",r,!1)};for(var g=null,v=[],y=0;y<t.length;y++){if(t[y]===window){g=window;break}v.push(t[y])}t=v,v=null,Object.defineProperties(this,{down:{get:function(){return m}},interval:{get:function(){return 1/h*1e3}},pixels:{set:function(t){h=t},get:function(){return h}}}),window.addEventListener("mousedown",n,!1),window.addEventListener("touchstart",n,!1),window.addEventListener("mouseup",r,!1),window.addEventListener("touchend",r,!1);var b;window.addEventListener("mousemove",o,!1),window.addEventListener("touchmove",o,!1)}function i(t){if(t===window)return{top:0,left:0,right:window.innerWidth,bottom:window.innerHeight,width:window.innerWidth,height:window.innerHeight};try{return t.getBoundingClientRect()}catch(e){throw new TypeError("Can't call getBoundingClientRect on "+t)}}function a(t,e,n){return n=n||i(e),t.y>n.top&&t.y<n.bottom&&t.x>n.left&&t.x<n.right}function s(t,e){return new o(t,e)}t.prototype={constructor:t,on:function(t,e){return this.listeners[t]=this.listeners[t]||[],this.listeners[t].push(e),this},one:function(t,e){function n(){return e.apply(this,arguments),this.off(t,n),this}return this.on(t,n)},emit:function(t){if("undefined"==typeof this.listeners[t]||!this.listeners[t].length)return this;var e=Array.prototype.slice.call(arguments,1),n=this.listeners[t].length;do this.listeners[t][--n].apply(this.__context,e);while(n);return this},off:function(t,e){return void 0!==this.listeners[t]&&this.listeners[t].length?(this.listeners[t]=this.listeners[t].filter(function(t){return t!==e}),this):this},dispose:function(){for(var t in this)this[t]=null}};var u=t;Date.now||(Date.now=function(){return(new Date).getTime()}),r.prototype={constructor:r,inside:function(t){if(!t)throw new TypeError("Cannot be inside "+t);var e=i(t);return this.y>e.top&&this.y<e.bottom&&this.x>e.left&&this.x<e.right},outside:function(t){if(!t)throw new TypeError("Cannot be outside "+t);return!this.inside(t)}};var l=function(t){return function(e){if(e=e||window.event,t.target=e.target||e.srcElement||e.originalTarget,t.element=this,t.type=e.type,e.targetTouches)t.x=e.targetTouches[0].clientX,t.y=e.targetTouches[0].clientY,t.pageX=e.pageX,t.pageY=e.pageY;else{if(null===e.pageX&&null!==e.clientX){var n=e.target&&e.target.ownerDocument||document,r=n.documentElement,i=n.body;t.pageX=e.clientX+(r&&r.scrollLeft||i&&i.scrollLeft||0)-(r&&r.clientLeft||i&&i.clientLeft||0),t.pageY=e.clientY+(r&&r.scrollTop||i&&i.scrollTop||0)-(r&&r.clientTop||i&&i.clientTop||0)}else t.pageX=e.pageX,t.pageY=e.pageY;t.x=e.clientX,t.y=e.clientY}}};window.autoScroll=s}(),function(){var t="ui-multisortable-multiple",e="main-drag-item",n=!1,r=null,i=function(){var t=(l.items.elm,l.items.container,l.items.shadow),e=t.position().left,n=t.position().top,r=t.outerHeight();$(".gu-transit").addClass("gu-transit-multi"),_.forEach(l.items.draggingItems,function(t,i){var o=parseInt(t.data("dragMultipleIndex"),10),a=n+o*r;t.css({top:a,left:e})})},o=function(){return n=!1,a(),document.documentElement.removeEventListener("mousemove",r),l.items={},$("."+e).removeClass(e),$(".tg-multiple-drag-mirror").remove(),$(".multiple-drag-mirror").removeClass("multiple-drag-mirror"),$(".tg-multiple-drag-dragging").removeClass("tg-multiple-drag-dragging").show(),$(".gu-transit-multi").removeClass("gu-transit-multi"),$("."+t)},a=function(){var t=parseInt(l.items.elm.data("dragMultipleIndex"),10),e=[],n=[];_.forEach(l.items.draggedItemsOriginal,function(r){parseInt($(r).data("dragMultipleIndex"),10)>t?e.push(r):n.push(r)}),e.reverse(),_.forEach(e,function(t){$(t).insertAfter(l.items.elm)}),_.forEach(n,function(t){$(t).insertBefore(l.items.elm)})},s=function(e,n){var r=$(n).find("."+t);return!!($(e).hasClass(t)&&r.length>1)},u=function(t){var e=[],n=[],r=!1;_.forEach(t,function(t,i){return 0===$(t).data("dragMultipleIndex")?void(r=!0):void(r?n.push(t):e.push(t))}),e.reverse(),_.forEach(n,function(t,e){$(t).data("dragMultipleIndex",e+1)}),_.forEach(e,function(t,e){$(t).data("dragMultipleIndex",-e-1)})},l={};l.prepare=function(r,i){n=!0;var o=$(i).find("."+t);_.forEach(o,function(t,e){$(t).data("position",null).data("dragMultipleIndex",null)}),$(r).data("dragmultiple:originalPosition",$(r).position()).data("dragMultipleActive",!0),l.items={},l.items.elm=$(r),l.items.container=$(i),l.items.elm.data("dragMultipleIndex",0),u(o),l.items.shadow=$(".gu-mirror"),l.items.elm.addClass(e),o=_.filter(o,function(t){return!$(t).hasClass(e)}),l.items.draggedItemsOriginal=o;var a=_.map(o,function(t){return clone=$(t).clone(!0),clone.addClass("multiple-drag-mirror").addClass("tg-multiple-drag-mirror").data("dragmultiple:originalPosition",$(t).position()).data("dragMultipleActive",!0).css({zIndex:"9999",opacity:"0.8",position:"fixed",width:l.items.elm.outerWidth(),height:l.items.elm.outerHeight()}),$(t).hide().addClass("tg-multiple-drag-dragging"),clone});l.items.draggingItems=a,$(document.body).append(a)},l.start=function(t,e){s(t,e)&&document.documentElement.addEventListener("mousemove",function(){n||l.prepare(t,e),i(),r=arguments.callee})},l.stop=function(){return n?o():[]},window.dragMultiple=l}(),function(){function t(){return++s}function e(e,n){var r=e&&e.$$hashKey;if(r)return"function"==typeof r&&(r=e.$$hashKey()),r;var i=typeof e;return r="function"==i||"object"==i&&null!==e?e.$$hashKey=i+":"+(n||t)():i+":"+e}function n(){return Object.create(null)}function r(t){if(null==t||i(t))return!1;var e=t.length;return!(t.nodeType!==a||!e)||(angular.isString(t)||angular.isArray(t)||0===e||"number"==typeof e&&e>0&&e-1 in t)}function i(t){return t&&t.window===t}function o(t){var e=t[0],n=t[t.length-1],r=[e];do{if(e=e.nextSibling,!e)break;r.push(e)}while(e!==n);return u(r)}var a=1,s=0,u=(Array.isArray,$),l=["$parse","$animate",function(t,i){var a="$$NG_REMOVED",s=angular.$$minErr("ngRepeat"),l=function(t,e,n,r,i,o,a){t[n]=r,i&&(t[i]=o),t.$index=e,t.$first=0===e,t.$last=e===a-1,t.$middle=!(t.$first||t.$last),t.$odd=!(t.$even=0===(1&e))},c=function(t){return t.clone[0]},f=function(t){return t.clone[t.clone.length-1]};return{restrict:"A",multiElement:!0,transclude:"element",priority:1e3,terminal:!0,$$tlb:!0,compile:function(h,d){var p=d.tgRepeat,m=document.createComment(" end ngRepeat: "+p+" "),g=p.match(/^\s*([\s\S]+?)\s+in\s+([\s\S]+?)(?:\s+as\s+([\s\S]+?))?(?:\s+track\s+by\s+([\s\S]+?))?\s*$/);if(!g)throw s("iexp","Expected expression in form of '_item_ in _collection_[ track by _id_]' but got '{0}'.",p);var v=g[1],y=g[2],b=g[3],_=g[4];if(g=v.match(/^(?:(\s*[\$\w]+)|\(\s*([\$\w]+)\s*,\s*([\$\w]+)\s*\))$/),!g)throw s("iidexp","'_item_' in '_item_ in _collection_' should be an identifier or '(_key_, _value_)' expression, but got '{0}'.",v);var w=g[3]||g[1],x=g[2];if(b&&(!/^[$a-zA-Z_][$a-zA-Z0-9_]*$/.test(b)||/^(null|undefined|this|\$index|\$first|\$middle|\$last|\$even|\$odd|\$parent|\$root|\$id)$/.test(b)))throw s("badident","alias '{0}' is invalid --- must be a valid JS identifier which is not a reserved name.",b);var k,C,E,$,S={$id:e};return _?k=t(_):(E=function(t,n){return e(n)},$=function(t){return t}),function(t,e,h,d,g){k&&(C=function(e,n,r){return x&&(S[x]=e),S[w]=n,S.$index=r,k(t,S)});var v=n();t.$watch(y,function(h){var d=[];h&&h.toJS&&(d=h.toJS());var y,_,k,S,A,T,D,F,N,M,O,j,P=e[0],L=n();if(b&&(t[b]=h),r(d))N=d,F=C||E;else{F=C||$,N=[];for(var R in d)d.hasOwnProperty(R)&&"$"!==R.charAt(0)&&N.push(R)}for(S=N.length,O=new Array(S),y=0;y<S;y++)if(A=d===N?y:N[y],T=d[A],immutable_value=h.get(A),D=F(A,immutable_value,y),v[D])M=v[D],delete v[D],L[D]=M,O[y]=M;else{if(L[D])throw O.forEach(function(t){t&&t.scope&&(v[t.id]=t)}),s("dupes","Duplicates in a repeater are not allowed. Use 'track by' expression to specify unique keys. Repeater: {0}, Duplicate key: {1}, Duplicate value: {2}",p,D,T);O[y]={id:D,scope:void 0,clone:void 0},L[D]=!0}for(var I in v){if(M=v[I],j=o(M.clone),i.leave(j),j[0].parentNode)for(y=0,_=j.length;y<_;y++)j[y][a]=!0;M.scope.$destroy()}for(y=0;y<S;y++)if(A=d===N?y:N[y],T=d[A],immutable_value=h.get(A),M=O[y],M.scope){k=P;do k=k.nextSibling;while(k&&k[a]);c(M)!=k&&i.move(o(M.clone),null,u(P)),P=f(M),l(M.scope,y,w,immutable_value,x,A,S)}else g(function(t,e){M.scope=e;var n=m.cloneNode(!1);t[t.length++]=n,i.enter(t,null,u(P)),P=n,M.clone=t,L[M.id]=M,l(M.scope,y,w,immutable_value,x,A,S)});v=L})}}}}];angular.module("tgRepeat",[]).directive("tgRepeat",l)}();var hexcase=0,b64pad="",chrsz=8,MentionExtension=MediumEditor.Extension.extend({name:"mediumMention",init:function(){this.subscribe("editableKeyup",this.handleKeyup.bind(this)),this.subscribe("editableKeydown",this.handleKeydown.bind(this)),this.subscribe("blur",this.cancel.bind(this))},isEditMode:function(){return!this.base.origElements.parentNode.classList.contains("read-mode")},cancel:function(){this.isEditMode()&&(this.hidePanel(),this.reset())},handleKeydown:function(t){var e=t.keyCode?t.keyCode:t.which;this.mentionPanel&&e===MediumEditor.util.keyCode.ENTER&&t.preventDefault()},handleKeyup:function(t){var e=t.keyCode?t.keyCode:t.which,n=e===MediumEditor.util.keyCode.SPACE,r=e===MediumEditor.util.keyCode.BACKSPACE;this.mentionPanel&&this.keyDownMentionPanel(t);var i=[37,38,39,40];if(i.indexOf(e)===-1&&(this.selection=this.document.getSelection(),!r||"p"!==this.selection.focusNode.nodeName.toLowerCase())){if(n||1!==this.selection.rangeCount)n&&this.cancelMentionSpace();else{var o=this.selection.getRangeAt(0).startOffset,a=this.selection.focusNode.textContent;if(a=a.substring(0,o),this.word=this.getLastWord(a),this.word.length>1&&["@","#",":"].indexOf(this.word[0])!=-1)return this.wrap(),this.showPanel(),void MediumEditor.selection.select(this.document,this.wordNode.firstChild,this.word.length)}this.hidePanel()}},reset:function(){this.wordNode=null,this.word=null,this.selection=null},cancelMentionSpace:function(){if(this.wordNode&&this.wordNode.nextSibling){var t=this.document.createTextNode("");t.textContent=this.word+" ",this.wordNode.parentNode.replaceChild(t,this.wordNode),MediumEditor.selection.select(this.document,t,this.word.length+1)}this.reset()},wrap:function(){var t=this.selection.getRangeAt(0).cloneRange();if("a"===t.startContainer.parentNode.nodeName.toLowerCase()){var e=t.startContainer.parentNode.parentNode,n=this.document.createTextNode(t.startContainer.parentNode.innerText);e.replaceChild(n,t.startContainer.parentNode),this.selection.removeAllRanges(),t=document.createRange(),t.setStart(n,n.length),t.setEnd(n,n.length),this.selection.addRange(t)}t.startContainer.parentNode.classList.contains("mention")?this.wordNode=t.startContainer.parentNode:(this.wordNode=this.document.createElement("span"),this.wordNode.classList.add("mention"),t.setStart(t.startContainer,this.selection.getRangeAt(0).startOffset-this.word.length),t.surroundContents(this.wordNode),this.selection.removeAllRanges(),this.selection.addRange(t),t.setStart(t.startContainer,t.endOffset),t.setStart(t.endContainer,t.endOffset),this.selection.removeAllRanges(),this.selection.addRange(t))},refreshPositionPanel:function(){var t=this.wordNode.getBoundingClientRect();this.mentionPanel.style.top=this.window.pageYOffset+t.bottom+"px",this.mentionPanel.style.left=this.window.pageXOffset+t.left+"px"},selectMention:function(t){if(t.image){var e=document.createElement("img");e.src=t.image,this.wordNode.parentNode.replaceChild(e,this.wordNode),this.wordNode=e}else{var n=document.createElement("a");n.setAttribute("href",t.url),t.ref?n.innerText="#"+t.ref+"-"+t.subject:n.innerText="@"+t.username,this.wordNode.parentNode.replaceChild(n,this.wordNode),this.wordNode=n}var r=this.document.createTextNode("");r.textContent=" ",this.wordNode.parentNode.insertBefore(r,this.wordNode.nextSibling),MediumEditor.selection.select(this.document,r,1);var i=this.base.getFocusedElement();this.base.events.updateInput(i,{target:i,currentTarget:i}),this.hidePanel(),this.reset()},showPanel:function(){if(document.querySelectorAll(".medium-editor-mention-panel").length)return this.refreshPositionPanel(),void this.getItems(this.word,this.renderPanel.bind(this));var t=this.document.createElement("div");t.classList.add("medium-editor-mention-panel"),this.mentionPanel=t,this.getEditorOption("elementsContainer").appendChild(t),this.refreshPositionPanel(),this.getItems(this.word,this.renderPanel.bind(this))},keyDownMentionPanel:function(t){var e=t.keyCode?t.keyCode:t.which,n=this.mentionPanel.querySelector(".active");if(this.wordNode=document.querySelector("span.mention"),n){if(e===MediumEditor.util.keyCode.ENTER){t.preventDefault(),t.stopPropagation();var r=document.createEvent("HTMLEvents");return r.initEvent("mousedown",!0,!1),void n.dispatchEvent(r)}n.classList.remove("active"),38===e?n.previousSibling?n.previousSibling.classList.add("active"):n.parentNode.lastChild.classList.add("active"):40===e&&(n.nextSibling?n.nextSibling.classList.add("active"):n.parentNode.firstChild.classList.add("active"))}},renderPanel:function(t){if(this.mentionPanel.innerHTML="",t.length){var e=this.document.createElement("ul");e.classList.add("medium-mention"),t.forEach(function(t){var n=this.document.createElement("li");if(t.image){var r=this.document.createElement("img");r.src=t.image,n.appendChild(r);var i=document.createTextNode("");i.textContent=" "+t.name,n.appendChild(i)}else t.ref?n.innerText="#"+t.ref+" - "+t.subject:n.innerText="@"+t.username;n.addEventListener("mousedown",this.selectMention.bind(this,t)),e.appendChild(n)}.bind(this)),e.firstChild.classList.add("active"),this.mentionPanel.appendChild(e)}},hidePanel:function(){this.mentionPanel&&(this.mentionPanel.parentNode.removeChild(this.mentionPanel),this.mentionPanel=null)},getLastWord:function(t){var e=t.split(" ");return e[e.length-1].trim()}});!function(){"use strict";window.markdownitLazyHeaders=function(t){function e(t,e,n,r){var i,o,a,s,u=t.bMarks[e]+t.tShift[e],l=t.eMarks[e];if(i=t.src.charCodeAt(u),35!==i||u>=l)return!1;for(o=1,i=t.src.charCodeAt(++u);35===i&&u<l&&o<=6;)o++,i=t.src.charCodeAt(++u);return!(o>6)&&(!!r||(l=t.skipCharsBack(l,32,u),a=t.skipCharsBack(l,35,u),a>u&&32===t.src.charCodeAt(a-1)&&(l=a),t.line=e+1,s=t.push("heading_open","h"+String(o),1),s.markup="########".slice(0,o),s.map=[e,t.line],s=t.push("inline","",0),s.content=t.src.slice(u,l).trim(),s.map=[e,t.line],s.children=[],s=t.push("heading_close","h"+String(o),-1),s.markup="########".slice(0,o),!0))}t.block.ruler.at("heading",e,{alt:["paragraph","reference","blockquote"]})}}();
|
||
//# sourceMappingURL=maps/libs.js.map
|