@ -0,0 +1,37 @@ |
|||
<?xml version="1.0" encoding="UTF-8"?> |
|||
<projectDescription> |
|||
<name>board</name> |
|||
<comment></comment> |
|||
<projects> |
|||
</projects> |
|||
<buildSpec> |
|||
<buildCommand> |
|||
<name>com.aptana.ide.core.unifiedBuilder</name> |
|||
<arguments> |
|||
</arguments> |
|||
</buildCommand> |
|||
</buildSpec> |
|||
<natures> |
|||
<nature>com.aptana.projects.webnature</nature> |
|||
</natures> |
|||
<filteredResources> |
|||
<filter> |
|||
<id>1603242067445</id> |
|||
<name></name> |
|||
<type>26</type> |
|||
<matcher> |
|||
<id>org.eclipse.ui.ide.multiFilter</id> |
|||
<arguments>1.0-name-matches-false-false-node_modules</arguments> |
|||
</matcher> |
|||
</filter> |
|||
<filter> |
|||
<id>1603332272281</id> |
|||
<name></name> |
|||
<type>26</type> |
|||
<matcher> |
|||
<id>org.eclipse.ui.ide.multiFilter</id> |
|||
<arguments>1.0-name-matches-false-false-node_modules</arguments> |
|||
</matcher> |
|||
</filter> |
|||
</filteredResources> |
|||
</projectDescription> |
|||
@ -0,0 +1,2 @@ |
|||
# jys |
|||
|
|||
@ -0,0 +1,220 @@ |
|||
export declare type ResolutionString = string; |
|||
export interface Exchange { |
|||
value: string; |
|||
name: string; |
|||
desc: string; |
|||
} |
|||
export interface DatafeedSymbolType { |
|||
name: string; |
|||
value: string; |
|||
} |
|||
export interface DatafeedConfiguration { |
|||
exchanges?: Exchange[]; |
|||
supported_resolutions?: ResolutionString[]; |
|||
supports_marks?: boolean; |
|||
supports_time?: boolean; |
|||
supports_timescale_marks?: boolean; |
|||
symbols_types?: DatafeedSymbolType[]; |
|||
} |
|||
export declare type OnReadyCallback = (configuration: DatafeedConfiguration) => void; |
|||
export interface IExternalDatafeed { |
|||
onReady(callback: OnReadyCallback): void; |
|||
} |
|||
export interface DatafeedQuoteValues { |
|||
ch?: number; |
|||
chp?: number; |
|||
short_name?: string; |
|||
exchange?: string; |
|||
description?: string; |
|||
lp?: number; |
|||
ask?: number; |
|||
bid?: number; |
|||
spread?: number; |
|||
open_price?: number; |
|||
high_price?: number; |
|||
low_price?: number; |
|||
prev_close_price?: number; |
|||
volume?: number; |
|||
original_name?: string; |
|||
[valueName: string]: string | number | undefined; |
|||
} |
|||
export interface QuoteOkData { |
|||
s: 'ok'; |
|||
n: string; |
|||
v: DatafeedQuoteValues; |
|||
} |
|||
export interface QuoteErrorData { |
|||
s: 'error'; |
|||
n: string; |
|||
v: object; |
|||
} |
|||
export declare type QuoteData = QuoteOkData | QuoteErrorData; |
|||
export declare type QuotesCallback = (data: QuoteData[]) => void; |
|||
export interface IDatafeedQuotesApi { |
|||
getQuotes(symbols: string[], onDataCallback: QuotesCallback, onErrorCallback: (msg: string) => void): void; |
|||
subscribeQuotes(symbols: string[], fastSymbols: string[], onRealtimeCallback: QuotesCallback, listenerGUID: string): void; |
|||
unsubscribeQuotes(listenerGUID: string): void; |
|||
} |
|||
export declare type CustomTimezones = 'America/New_York' | 'America/Los_Angeles' | 'America/Chicago' | 'America/Phoenix' | 'America/Toronto' | 'America/Vancouver' | 'America/Argentina/Buenos_Aires' | 'America/El_Salvador' | 'America/Sao_Paulo' | 'America/Bogota' | 'America/Caracas' | 'Europe/Moscow' | 'Europe/Athens' | 'Europe/Berlin' | 'Europe/London' | 'Europe/Madrid' | 'Europe/Paris' | 'Europe/Rome' | 'Europe/Warsaw' | 'Europe/Istanbul' | 'Europe/Zurich' | 'Australia/Sydney' | 'Australia/Brisbane' | 'Australia/Adelaide' | 'Australia/ACT' | 'Asia/Almaty' | 'Asia/Ashkhabad' | 'Asia/Tokyo' | 'Asia/Taipei' | 'Asia/Singapore' | 'Asia/Shanghai' | 'Asia/Seoul' | 'Asia/Tehran' | 'Asia/Dubai' | 'Asia/Kolkata' | 'Asia/Hong_Kong' | 'Asia/Bangkok' | 'Pacific/Auckland' | 'Pacific/Chatham' | 'Pacific/Fakaofo' | 'Pacific/Honolulu' | 'America/Mexico_City' | 'Africa/Johannesburg' | 'Asia/Kathmandu' | 'US/Mountain'; |
|||
export declare type Timezone = 'UTC' | CustomTimezones; |
|||
export interface LibrarySymbolInfo { |
|||
/** |
|||
* Symbol Name |
|||
*/ |
|||
name: string; |
|||
full_name: string; |
|||
base_name?: [string]; |
|||
/** |
|||
* Unique symbol id |
|||
*/ |
|||
ticker?: string; |
|||
description: string; |
|||
type: string; |
|||
/** |
|||
* @example "1700-0200" |
|||
*/ |
|||
session: string; |
|||
/** |
|||
* Traded exchange |
|||
* @example "NYSE" |
|||
*/ |
|||
exchange: string; |
|||
listed_exchange: string; |
|||
timezone: Timezone; |
|||
/** |
|||
* Code (Tick) |
|||
* @example 8/16/.../256 (1/8/100 1/16/100 ... 1/256/100) or 1/10/.../10000000 (1 0.1 ... 0.0000001) |
|||
*/ |
|||
pricescale: number; |
|||
/** |
|||
* The number of units that make up one tick. |
|||
* @example For example, U.S. equities are quotes in decimals, and tick in decimals, and can go up +/- .01. So the tick increment is 1. But the e-mini S&P futures contract, though quoted in decimals, goes up in .25 increments, so the tick increment is 25. (see also Tick Size) |
|||
*/ |
|||
minmov: number; |
|||
fractional?: boolean; |
|||
/** |
|||
* @example Quarters of 1/32: pricescale=128, minmovement=1, minmovement2=4 |
|||
*/ |
|||
minmove2?: number; |
|||
/** |
|||
* false if DWM only |
|||
*/ |
|||
has_intraday?: boolean; |
|||
/** |
|||
* An array of resolutions which should be enabled in resolutions picker for this symbol. |
|||
*/ |
|||
supported_resolutions: ResolutionString[]; |
|||
/** |
|||
* @example (for ex.: "1,5,60") - only these resolutions will be requested, all others will be built using them if possible |
|||
*/ |
|||
intraday_multipliers?: string[]; |
|||
has_seconds?: boolean; |
|||
/** |
|||
* It is an array containing seconds resolutions (in seconds without a postfix) the datafeed builds by itself. |
|||
*/ |
|||
seconds_multipliers?: string[]; |
|||
has_daily?: boolean; |
|||
has_weekly_and_monthly?: boolean; |
|||
has_empty_bars?: boolean; |
|||
force_session_rebuild?: boolean; |
|||
has_no_volume?: boolean; |
|||
/** |
|||
* Integer showing typical volume value decimal places for this symbol |
|||
*/ |
|||
volume_precision?: number; |
|||
data_status?: 'streaming' | 'endofday' | 'pulsed' | 'delayed_streaming'; |
|||
/** |
|||
* Boolean showing whether this symbol is expired futures contract or not. |
|||
*/ |
|||
expired?: boolean; |
|||
/** |
|||
* Unix timestamp of expiration date. |
|||
*/ |
|||
expiration_date?: number; |
|||
sector?: string; |
|||
industry?: string; |
|||
currency_code?: string; |
|||
} |
|||
export interface DOMLevel { |
|||
price: number; |
|||
volume: number; |
|||
} |
|||
export interface DOMData { |
|||
snapshot: boolean; |
|||
asks: DOMLevel[]; |
|||
bids: DOMLevel[]; |
|||
} |
|||
export interface Bar { |
|||
time: number; |
|||
open: number; |
|||
high: number; |
|||
low: number; |
|||
close: number; |
|||
volume?: number; |
|||
} |
|||
export interface SearchSymbolResultItem { |
|||
symbol: string; |
|||
full_name: string; |
|||
description: string; |
|||
exchange: string; |
|||
ticker: string; |
|||
type: string; |
|||
} |
|||
export interface HistoryMetadata { |
|||
noData: boolean; |
|||
nextTime?: number | null; |
|||
} |
|||
export interface MarkCustomColor { |
|||
color: string; |
|||
background: string; |
|||
} |
|||
export declare type MarkConstColors = 'red' | 'green' | 'blue' | 'yellow'; |
|||
export interface Mark { |
|||
id: string | number; |
|||
time: number; |
|||
color: MarkConstColors | MarkCustomColor; |
|||
text: string; |
|||
label: string; |
|||
labelFontColor: string; |
|||
minSize: number; |
|||
} |
|||
export interface TimescaleMark { |
|||
id: string | number; |
|||
time: number; |
|||
color: MarkConstColors | string; |
|||
label: string; |
|||
tooltip: string[]; |
|||
} |
|||
export declare type ResolutionBackValues = 'D' | 'M'; |
|||
export interface HistoryDepth { |
|||
resolutionBack: ResolutionBackValues; |
|||
intervalBack: number; |
|||
} |
|||
export declare type SearchSymbolsCallback = (items: SearchSymbolResultItem[]) => void; |
|||
export declare type ResolveCallback = (symbolInfo: LibrarySymbolInfo) => void; |
|||
export declare type HistoryCallback = (bars: Bar[], meta: HistoryMetadata) => void; |
|||
export declare type SubscribeBarsCallback = (bar: Bar) => void; |
|||
export declare type GetMarksCallback<T> = (marks: T[]) => void; |
|||
export declare type ServerTimeCallback = (serverTime: number) => void; |
|||
export declare type DomeCallback = (data: DOMData) => void; |
|||
export declare type ErrorCallback = (reason: string) => void; |
|||
export interface IDatafeedChartApi { |
|||
calculateHistoryDepth?(resolution: ResolutionString, resolutionBack: ResolutionBackValues, intervalBack: number): HistoryDepth | undefined; |
|||
getMarks?(symbolInfo: LibrarySymbolInfo, startDate: number, endDate: number, onDataCallback: GetMarksCallback<Mark>, resolution: ResolutionString): void; |
|||
getTimescaleMarks?(symbolInfo: LibrarySymbolInfo, startDate: number, endDate: number, onDataCallback: GetMarksCallback<TimescaleMark>, resolution: ResolutionString): void; |
|||
/** |
|||
* This function is called if configuration flag supports_time is set to true when chart needs to know the server time. |
|||
* The charting library expects callback to be called once. |
|||
* The time is provided without milliseconds. Example: 1445324591. It is used to display Countdown on the price scale. |
|||
*/ |
|||
getServerTime?(callback: ServerTimeCallback): void; |
|||
searchSymbols(userInput: string, exchange: string, symbolType: string, onResult: SearchSymbolsCallback): void; |
|||
resolveSymbol(symbolName: string, onResolve: ResolveCallback, onError: ErrorCallback): void; |
|||
getBars(symbolInfo: LibrarySymbolInfo, resolution: ResolutionString, rangeStartDate: number, rangeEndDate: number, onResult: HistoryCallback, onError: ErrorCallback, isFirstCall: boolean): void; |
|||
subscribeBars(symbolInfo: LibrarySymbolInfo, resolution: ResolutionString, onTick: SubscribeBarsCallback, listenerGuid: string, onResetCacheNeededCallback: () => void): void; |
|||
unsubscribeBars(listenerGuid: string): void; |
|||
subscribeDepth?(symbolInfo: LibrarySymbolInfo, callback: DomeCallback): string; |
|||
unsubscribeDepth?(subscriberUID: string): void; |
|||
} |
|||
|
|||
export as namespace TradingView; |
|||
@ -0,0 +1,4 @@ |
|||
webpackJsonp([13],{334:function(t,e,n){var o,i,r;!function(a,c){i=[t,n(516),n(1092),n(687)],o=c,void 0!==(r="function"==typeof o?o.apply(e,i):o)&&(t.exports=r)}(0,function(t,e,n,o){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function c(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function u(t,e){var n="data-clipboard-"+t;if(e.hasAttribute(n))return e.getAttribute(n)}var l=i(e),s=i(n),f=i(o),h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},d=function(){function t(t,e){var n,o;for(n=0;n<e.length;n++)o=e[n],o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}return function(e,n,o){return n&&t(e.prototype,n),o&&t(e,o),e}}(),p=function(t){function e(t,n){r(this,e);var o=a(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));return o.resolveOptions(n),o.listenClick(t),o}return c(e,t),d(e,[{key:"resolveOptions",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.action="function"==typeof t.action?t.action:this.defaultAction,this.target="function"==typeof t.target?t.target:this.defaultTarget,this.text="function"==typeof t.text?t.text:this.defaultText,this.container="object"===h(t.container)?t.container:document.body}},{key:"listenClick",value:function(t){var e=this;this.listener=(0,f.default)(t,"click",function(t){return e.onClick(t)})}},{key:"onClick",value:function(t){var e=t.delegateTarget||t.currentTarget;this.clipboardAction&&(this.clipboardAction=null),this.clipboardAction=new l.default({action:this.action(e),target:this.target(e),text:this.text(e),container:this.container,trigger:e,emitter:this})}},{key:"defaultAction",value:function(t){return u("action",t)}},{key:"defaultTarget",value:function(t){var e=u("target",t);if(e)return document.querySelector(e)}},{key:"defaultText",value:function(t){return u("text",t)}},{key:"destroy",value:function(){this.listener.destroy(),this.clipboardAction&&(this.clipboardAction.destroy(),this.clipboardAction=null)}}],[{key:"isSupported",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["copy","cut"],e="string"==typeof t?[t]:t,n=!!document.queryCommandSupported;return e.forEach(function(t){n=n&&!!document.queryCommandSupported(t)}),n}}]),e}(s.default);t.exports=p})},516:function(t,e,n){var o,i,r;!function(a,c){i=[t,n(1091)],o=c, |
|||
void 0!==(r="function"==typeof o?o.apply(e,i):o)&&(t.exports=r)}(0,function(t,e){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var i=n(e),r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},a=function(){function t(t,e){var n,o;for(n=0;n<e.length;n++)o=e[n],o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}return function(e,n,o){return n&&t(e.prototype,n),o&&t(e,o),e}}(),c=function(){function t(e){o(this,t),this.resolveOptions(e),this.initSelection()}return a(t,[{key:"resolveOptions",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.action=t.action,this.container=t.container,this.emitter=t.emitter,this.target=t.target,this.text=t.text,this.trigger=t.trigger,this.selectedText=""}},{key:"initSelection",value:function(){this.text?this.selectFake():this.target&&this.selectTarget()}},{key:"selectFake",value:function(){var t,e=this,n="rtl"==document.documentElement.getAttribute("dir");this.removeFake(),this.fakeHandlerCallback=function(){return e.removeFake()},this.fakeHandler=this.container.addEventListener("click",this.fakeHandlerCallback)||!0,this.fakeElem=document.createElement("textarea"),this.fakeElem.style.fontSize="12pt",this.fakeElem.style.border="0",this.fakeElem.style.padding="0",this.fakeElem.style.margin="0",this.fakeElem.style.position="absolute",this.fakeElem.style[n?"right":"left"]="-9999px",t=window.pageYOffset||document.documentElement.scrollTop,this.fakeElem.style.top=t+"px",this.fakeElem.setAttribute("readonly",""),this.fakeElem.value=this.text,this.container.appendChild(this.fakeElem),this.selectedText=(0,i.default)(this.fakeElem),this.copyText()}},{key:"removeFake",value:function(){this.fakeHandler&&(this.container.removeEventListener("click",this.fakeHandlerCallback),this.fakeHandler=null,this.fakeHandlerCallback=null),this.fakeElem&&(this.container.removeChild(this.fakeElem),this.fakeElem=null)}},{key:"selectTarget",value:function(){this.selectedText=(0,i.default)(this.target),this.copyText()}},{key:"copyText",value:function(){var t=void 0;try{t=document.execCommand(this.action)}catch(e){t=!1}this.handleResult(t)}},{key:"handleResult",value:function(t){this.emitter.emit(t?"success":"error",{action:this.action,text:this.selectedText,trigger:this.trigger,clearSelection:this.clearSelection.bind(this)})}},{key:"clearSelection",value:function(){this.trigger&&this.trigger.focus(),window.getSelection().removeAllRanges()}},{key:"destroy",value:function(){this.removeFake()}},{key:"action",set:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"copy";if(this._action=t,"copy"!==this._action&&"cut"!==this._action)throw Error('Invalid "action" value, use either "copy" or "cut"')},get:function(){return this._action}},{key:"target", |
|||
set:function(t){if(void 0!==t){if(!t||"object"!==(void 0===t?"undefined":r(t))||1!==t.nodeType)throw Error('Invalid "target" value, use a valid Element');if("copy"===this.action&&t.hasAttribute("disabled"))throw Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if("cut"===this.action&&(t.hasAttribute("readonly")||t.hasAttribute("disabled")))throw Error('Invalid "target" attribute. You can\'t cut text from elements with "readonly" or "disabled" attributes');this._target=t}},get:function(){return this._target}}]),t}();t.exports=c})},613:function(t,e){function n(t,e){for(;t&&t.nodeType!==i;){if("function"==typeof t.matches&&t.matches(e))return t;t=t.parentNode}}var o,i=9;"undefined"==typeof Element||Element.prototype.matches||(o=Element.prototype,o.matches=o.matchesSelector||o.mozMatchesSelector||o.msMatchesSelector||o.oMatchesSelector||o.webkitMatchesSelector),t.exports=n},614:function(t,e,n){function o(t,e,n,o,i){var a=r.apply(this,arguments);return t.addEventListener(n,a,i),{destroy:function(){t.removeEventListener(n,a,i)}}}function i(t,e,n,i,r){return"function"==typeof t.addEventListener?o.apply(null,arguments):"function"==typeof n?o.bind(null,document).apply(null,arguments):("string"==typeof t&&(t=document.querySelectorAll(t)),Array.prototype.map.call(t,function(t){return o(t,e,n,i,r)}))}function r(t,e,n,o){return function(n){n.delegateTarget=a(n.target,e),n.delegateTarget&&o.call(t,n)}}var a=n(613);t.exports=i},686:function(t,e){e.node=function(t){return void 0!==t&&t instanceof HTMLElement&&1===t.nodeType},e.nodeList=function(t){var n=Object.prototype.toString.call(t);return void 0!==t&&("[object NodeList]"===n||"[object HTMLCollection]"===n)&&"length"in t&&(0===t.length||e.node(t[0]))},e.string=function(t){return"string"==typeof t||t instanceof String},e.fn=function(t){return"[object Function]"===Object.prototype.toString.call(t)}},687:function(t,e,n){function o(t,e,n){if(!t&&!e&&!n)throw Error("Missing required arguments");if(!c.string(e))throw new TypeError("Second argument must be a String");if(!c.fn(n))throw new TypeError("Third argument must be a Function");if(c.node(t))return i(t,e,n);if(c.nodeList(t))return r(t,e,n);if(c.string(t))return a(t,e,n);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList")}function i(t,e,n){return t.addEventListener(e,n),{destroy:function(){t.removeEventListener(e,n)}}}function r(t,e,n){return Array.prototype.forEach.call(t,function(t){t.addEventListener(e,n)}),{destroy:function(){Array.prototype.forEach.call(t,function(t){t.removeEventListener(e,n)})}}}function a(t,e,n){return u(document.body,t,e,n)}var c=n(686),u=n(614);t.exports=o},1091:function(t,e){function n(t){var e,n,o,i;return"SELECT"===t.nodeName?(t.focus(),e=t.value):"INPUT"===t.nodeName||"TEXTAREA"===t.nodeName?(n=t.hasAttribute("readonly"),n||t.setAttribute("readonly",""),t.select(),t.setSelectionRange(0,t.value.length),n||t.removeAttribute("readonly"),e=t.value):(t.hasAttribute("contenteditable")&&t.focus(),o=window.getSelection(), |
|||
i=document.createRange(),i.selectNodeContents(t),o.removeAllRanges(),o.addRange(i),e=""+o),e}t.exports=n},1092:function(t,e){function n(){}n.prototype={on:function(t,e,n){var o=this.e||(this.e={});return(o[t]||(o[t]=[])).push({fn:e,ctx:n}),this},once:function(t,e,n){function o(){i.off(t,o),e.apply(n,arguments)}var i=this;return o._=e,this.on(t,o,n)},emit:function(t){var e=[].slice.call(arguments,1),n=((this.e||(this.e={}))[t]||[]).slice(),o=0,i=n.length;for(o;o<i;o++)n[o].fn.apply(n[o].ctx,e);return this},off:function(t,e){var n,o,i=this.e||(this.e={}),r=i[t],a=[];if(r&&e)for(n=0,o=r.length;n<o;n++)r[n].fn!==e&&r[n].fn._!==e&&a.push(r[n]);return a.length?i[t]=a:delete i[t],this}},t.exports=n}}); |
|||
|
After Width: | Height: | Size: 4.2 KiB |
|
After Width: | Height: | Size: 4.2 KiB |
@ -0,0 +1,78 @@ |
|||
webpackJsonp([5],{14:function(e,t,o){"use strict";function i(e){function t(t,o,i){e.call(this,t,o,i),this._linetool=i,this._templateList=new s(this._linetool._constructor,this.applyTemplate.bind(this))}return inherit(t,e),t.prototype.applyTemplate=function(e){this._linetool.restoreTemplate(e),this._model.model().updateSource(this._linetool),this.loadData()},t.prototype.createTemplateButton=function(e){var t=this;return e=$.extend({},e,{getDataForSaveAs:function(){return t._linetool.template()}}),this._templateList.createButton(e)},t}function n(e,t,o){r.call(this,e,t),this._linetool=o}var a=o(10),r=a.PropertyPage,l=a.ColorBinding,p=o(47).addColorPicker,s=o(268);inherit(n,r),n.prototype.createOneColorForAllLinesWidget=function(){var e=$("<td class='colorpicker-cell'>");return this.bindControl(new l(p(e),this._linetool.properties().collectibleColors,!0,this.model(),"Change All Lines Color",0)),{label:$("<td>"+$.t("Use one color")+"</td>"),editor:e}},n.prototype.addOneColorPropertyWidget=function(e){var t=this.createOneColorForAllLinesWidget(),o=$("<tr>");o.append($("<td>")).append(t.label).append(t.editor),o.appendTo(e)},n=i(n),n.createTemplatesPropertyPage=i,e.exports=n},15:function(e,t,o){"use strict";function i(){return $('<div class="linewidth-slider">').slider({max:4,min:1,step:1})}Object.defineProperty(t,"__esModule",{value:!0}),o(22),o(285),t.createLineWidthEditor=i},31:function(e,t,o){"use strict";function i(){return new n.Combobox([{html:'<div class="linestyle solidline"/>',value:a.LINESTYLE_SOLID},{html:'<div class="linestyle dottedline"/>',value:a.LINESTYLE_DOTTED},{html:'<div class="linestyle dashedline"/>',value:a.LINESTYLE_DASHED}])}var n,a;Object.defineProperty(t,"__esModule",{value:!0}),n=o(738),a=o(115),t.createLineStyleEditor=i},65:function(e,t,o){"use strict";function i(e){var t=$('<div class="transparency-slider"><div class="gradient"></div></div>').slider({max:100,min:0,step:1}),o=["-moz-linear-gradient(left, %COLOR 0%, transparent 100%)","-webkit-gradient(linear, left top, right top, color-stop(0%,%COLOR), color-stop(100%,transparent))","-webkit-linear-gradient(left, %COLOR 0%,transparent 100%)","-o-linear-gradient(left, %COLOR 0%,transparent 100%)","linear-gradient(to right, %COLOR 0%,transparent 100%)"];return t.updateColor=function(e){var i=t.find(".gradient");o.forEach(function(t){i.css("background-image",t.replace(/%COLOR/,e))})},e?(t.updateColor(e.val()||"black"),e.on("change",function(e){t.updateColor(e.target.value)})):t.updateColor("black"),t}Object.defineProperty(t,"__esModule",{value:!0}),o(22),o(285),t.createTransparencyEditor=i},81:function(e,t,o){"use strict";function i(e,t,o){a.call(this,e,t),this._linetool=o,this.prepareLayout()}var n=o(10),a=n.PropertyPage,r=n.GreateTransformer,l=n.LessTransformer,p=n.ToIntTransformer,s=n.SimpleStringBinder;o(142),inherit(i,a),i.BarIndexPastLimit=-5e4,i.BarIndexFutureLimit=15e3,i.prototype.bindBarIndex=function(e,t,o,n){var a=[p(e.value()),r(i.BarIndexPastLimit),l(i.BarIndexFutureLimit)];this.bindControl(new s(t,e,a,!1,o,n))}, |
|||
i.prototype.createPriceEditor=function(e){var t,o=this._linetool.ownerSource().formatter(),i=function(e){return o.format(e)},n=function(e){var t=o.parse(e);if(t.res)return t.price?t.price:t.value},a=$("<input type='text'>");return a.TVTicker({step:o._minMove/o._priceScale||1,formatter:i,parser:n}),e&&(t=[function(t){var o=n(t);return void 0===o?e.value():o}],this.bindControl(new s(a,e,t,!1,this.model(),"Change "+this._linetool+" point price")).addFormatter(function(e){return o.format(e)})),a},i.prototype._createPointRow=function(e,t,o){var i,n,a,r,l,p=$("<tr>"),s=$("<td>");return s.html($.t("Price")+o),s.appendTo(p),i=$("<td>"),i.appendTo(p),n=this.createPriceEditor(t.price),n.appendTo(i),a=$("<td>"),a.html($.t("Bar #")),a.appendTo(p),r=$("<td>"),r.appendTo(p),l=$("<input type='text'>"),l.appendTo(r),l.addClass("ticker"),this.bindBarIndex(t.bar,l,this.model(),"Change "+this._linetool+" point bar index"),p},i.prototype.prepareLayoutForTable=function(e){var t,o,i,n,a,r=this._linetool.points(),l=r.length;for(t=0;t<r.length;t++)o=r[t],(i=this._linetool.properties().points[t])&&(n=t||l>1?" "+(t+1):"",a=this._createPointRow(o,i,n),a.appendTo(e))},i.prototype.prepareLayout=function(){this._table=$(document.createElement("table")),this._table.addClass("property-page"),this._table.attr("cellspacing","0"),this._table.attr("cellpadding","2"),this.prepareLayoutForTable(this._table),this.loadData()},i.prototype.widget=function(){return this._table},e.exports=i},121:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e[e.Coordinates=100]="Coordinates",e[e.Display=100]="Display",e[e.Style=200]="Style",e[e.Inputs=300]="Inputs",e[e.Properties=250]="Properties"}(t.TabPriority||(t.TabPriority={})),function(e){e.background="Background",e.coordinates="Coordinates",e.drawings="Drawings",e.events="Events",e.eventsAndAlerts="Events & Alerts",e.inputs="Inputs",e.properties="Properties",e.scales="Scales",e.sourceCode="Source Code",e.style="Style",e.timezoneSessions="Timezone/Sessions",e.trading="Trading",e.visibility="Visibility"}(t.TabNames||(t.TabNames={})),function(e){e[e.Default=100]="Default",e[e.UserSave=200]="UserSave",e[e.Override=300]="Override"}(t.TabOpenFrom||(t.TabOpenFrom={}))},208:function(e,t,o){"use strict";function i(e,t,o){r.call(this,e,t),this._study=o,this.prepareLayout()}function n(e,t,o){r.call(this,e,t),this._study=o,this._property=e,this.prepareLayout()}var a=o(10),r=a.PropertyPage,l=a.GreateTransformer,p=a.LessTransformer,s=a.ToIntTransformer,d=a.ToFloatTransformer,h=a.SimpleComboBinder,c=a.BooleanBinder,b=a.DisabledBinder,u=a.ColorBinding,C=a.SliderBinder,y=a.SimpleStringBinder,g=o(47).addColorPicker,w=o(31).createLineStyleEditor,T=o(1122).createShapeLocationEditor,_=o(1123).createShapeStyleEditor,m=o(15).createLineWidthEditor,f=o(1124).createVisibilityEditor,L=o(1120).createHHistDirectionEditor,v=o(476).createPlotEditor,k=o(38).NumericFormatter,S=o(45),P=o(106).PlotType,x=o(13).getLogger("Chart.Study.PropertyPage");inherit(i,r),i.prototype.prepareLayout=function(){function e(e){ |
|||
return(new k).format(e)}var t,o,n,a,r,l,p,s,b,T,_,f,L,v,P,B,E,R,F,I,A,D,W,O,V,j,z,M,H,q,N,G,U,Y,K,Q;for(this._table=$("<table/>"),this._table.addClass("property-page"),this._table.attr("cellspacing","0"),this._table.attr("cellpadding","2"),t=this._study.metaInfo(),o={},n=0;n<t.plots.length;++n)if(!(this._study.isSelfColorerPlot(n)||this._study.isTextColorerPlot(n)||this._study.isDataOffsetPlot(n)||this._study.isOHLCColorerPlot(n))){if(l=t.plots[n],t.styles){if(t.styles[l.id])a=t.styles[l.id].isHidden;else if(!this._study.isOHLCSeriesPlot(n))continue;if(this._study.isOHLCSeriesPlot(n)){if(r=t.plots[n].target,o[r])continue;a=t.ohlcPlots[r].isHidden,o[r]=r}if(a)continue}this._study.isLinePlot(n)||this._study.isBarColorerPlot(n)||this._study.isBgColorerPlot(n)?this._prepareLayoutForPlot(n,l):this._study.isPlotArrowsPlot(n)?this._prepareLayoutForArrowsPlot(n,l):this._study.isPlotCharsPlot(n)?this._prepareLayoutForCharsPlot(n,l):this._study.isPlotShapesPlot(n)?this._prepareLayoutForShapesPlot(n,l):this._study.isOHLCSeriesPlot(n)?(p={id:r,type:"ohlc"},this._study.isOHLCBarsPlot(n)?this._prepareLayoutForBarsPlot(n,p):this._study.isOHLCCandlesPlot(n)&&this._prepareLayoutForCandlesPlot(n,p)):x.logError("Unknown plot type: "+l.type)}if((s=this._study.properties().bands)&&s.childCount()>0)for(n=0;n<s.childCount();n++)b=s[n],b.isHidden&&b.isHidden.value()||(T=$('<tr class="line"/>'),T.appendTo(this._table),_=$("<td/>"),_.appendTo(T),f=$("<input type='checkbox' class='visibility-switch'/>"),f.appendTo(_),L=$.t(b.name.value(),{context:"input"}),v=this.createLabeledCell(L,f).appendTo(T).addClass("propertypage-name-label"),P=$("<td/>"),P.appendTo(T),P.addClass("colorpicker-cell"),B=g(P),E=$("<td/>"),E.appendTo(T),R=m(),R.appendTo(E),F=$('<td colspan="4">').css({whiteSpace:"nowrap"}),F.appendTo(T),I=w(),I.render().appendTo(F),A=$("<input class='property-page-bandwidth' type='text'/>"),A.appendTo(F),D=[d(b.value.value())],W="Change band",O=new y(A,b.value,D,!1,this.model(),W),O.addFormatter(e),this.bindControl(O),this.bindControl(new c(f,b.visible,!0,this.model(),W)),this.bindControl(new u(B,b.color,!0,this.model(),W)),this.bindControl(new h(I,b.linestyle,parseInt,!0,this.model(),W)),this.bindControl(new C(R,b.linewidth,!0,this.model(),W)));if(this._study.properties().bandsBackground&&(b=this._study.properties().bandsBackground,V=$.t("Background"),W=$.t("Change band background"),T=this._prepareFilledAreaBackground(b.fillBackground,b.backgroundColor,b.transparency,V,W),T.appendTo(this._table)),this._study.properties().areaBackground&&(b=this._study.properties().areaBackground,V=$.t("Background"),W=$.t("Change area background"),T=this._prepareFilledAreaBackground(b.fillBackground,b.backgroundColor,b.transparency,V,W),T.appendTo(this._table)),void 0!==(j=t.filledAreas))for(n=0;n<j.length;++n)z=j[n],z.isHidden||(W="Change "+V,b=this._study.properties().filledAreasStyle[z.id],V=z.title||$.t("Background"),z.palette?(T=$('<tr class="line"/>'),_=$("<td/>"),_.appendTo(T),f=$("<input type='checkbox' class='visibility-switch'/>"),f.appendTo(_), |
|||
this.bindControl(new c(f,b.visible,!0,this.model(),W+" visibility")),this.createLabeledCell(V,f).appendTo(T).addClass("propertypage-name-label"),T.appendTo(this._table),M=this._findPlotPalette(n,z),H=M.palette,q=M.paletteProps,this._prepareLayoutForPalette(0,z,H,q,W)):(T=this._prepareFilledAreaBackground(b.visible,b.color,b.transparency,V,W),T.appendTo(this._table)));for(N in t.graphics){G=t.graphics[N];for(U in G)b=this._property.graphics[N][U],i["_createRow_"+N].call(this,this._table,b)}Y=this._table.find(".visibility-switch.plot-visibility-switch"),1===Y.length&&(_=Y.parent(),_.css("display","none"),v=this._table.find(".propertypage-plot-with-palette"),1===v.length?v.css("display","none"):(v=this._table.find(".propertypage-name-label"),v.css("padding-left",0),v.find("label").attr("for",""))),K=this._prepareStudyPropertiesLayout(),this._table=this._table.add(K),S.isScriptStrategy(t)&&(Q=this._prepareOrdersSwitches(),this._table=this._table.add(Q)),this.loadData()},i.prototype._prepareOrdersSwitches=function(){var e,t,o,i,n,a,r,l=$('<table class="property-page study-strategy-properties" cellspacing="0" cellpadding="2">'),p="chart-orders-switch_"+Date.now().toString(36),s=$("<tr>").appendTo(l),d=$('<input id="'+p+'" type="checkbox">').appendTo($("<td>").appendTo(s));return $('<label for="'+p+'">'+$.t("Trades on Chart")+"</label>").appendTo($("<td>").appendTo(s)),e="chart-orders-labels-switch_"+Date.now().toString(36),t=$("<tr>").appendTo(l),o=$('<input id="'+e+'" type="checkbox">').appendTo($("<td>").appendTo(t)),$('<label for="'+e+'">'+$.t("Signal Labels")+"</label>").appendTo($("<td>").appendTo(t)),i="chart-orders-qty-switch_"+Date.now().toString(36),n=$("<tr>").appendTo(l),a=$('<input id="'+i+'" type="checkbox">').appendTo($("<td>").appendTo(n)),$('<label for="'+i+'">'+$.t("Quantity")+"</label>").appendTo($("<td>").appendTo(n)),r=this._study.properties(),this.bindControl(new c(d,r.strategy.orders.visible,!0,this.model(),"Trades on chart visibility")),this.bindControl(new c(o,r.strategy.orders.showLabels,!0,this.model(),"Signal labels visibility")),this.bindControl(new b(o,r.strategy.orders.visible,!0,this.model(),"Signal labels visibility",!0)),this.bindControl(new c(a,r.strategy.orders.showQty,!0,this.model(),"Quantity visibility")),this.bindControl(new b(a,r.strategy.orders.visible,!0,this.model(),"Quantity visibility",!0)),l},i.prototype._prepareLayoutForPlot=function(e,t){var o,i,n,a,r,l,p,s,d,b,y,w,T=t.id,_=this._study.properties().styles[T],f=this._findPlotPalette(e,t),L=f.palette,k=f.paletteProps,S="Change "+T;L?(o=$('<tr class="line"/>'),o.appendTo(this._table),i=$("<td/>"),i.appendTo(o),i.addClass("visibility-cell"),n=$("<input type='checkbox' class='visibility-switch plot-visibility-switch'/>"),n.appendTo(i),this.bindControl(new c(n,_.visible,!0,this.model(),S)),a=$.t(_.title.value(),{context:"input"}),this.createLabeledCell(a,n).appendTo(o).addClass("propertypage-name-label propertypage-plot-with-palette"),this._prepareLayoutForPalette(e,t,L,k,S)):(o=$('<tr class="line"/>'),o.appendTo(this._table), |
|||
i=$("<td/>"),i.appendTo(o),i.addClass("visibility-cell"),n=$("<input type='checkbox' class='visibility-switch plot-visibility-switch'/>"),n.appendTo(i),a=$.t(this._study.properties().styles[T].title.value(),{context:"input"}),this.createLabeledCell(a,n).appendTo(o).addClass("propertypage-name-label"),r=$("<td/>"),r.appendTo(o),r.addClass("colorpicker-cell"),l=g(r),p=$("<td/>"),p.appendTo(o),s=m(),s.appendTo(p),d=$("<td>"),d.appendTo(o),b=v(),b.appendTo(d),y=$("<td>"),y.appendTo(o),w=$("<input type='checkbox'>"),w.appendTo(y),this.createLabeledCell("Price Line",w).appendTo(o),this.bindControl(new c(n,_.visible,!0,this.model(),S)),this.bindControl(new u(l,_.color,!0,this.model(),S,_.transparency)),this.bindControl(new C(s,_.linewidth,!0,this.model(),S,this._study.metaInfo().isTVScript)),this.bindControl(new h(b,_.plottype,parseInt,!0,this.model(),S)),this.bindControl(new c(w,_.trackPrice,!0,this.model(),"Change Price Line")))},i.prototype._prepareLayoutForBarsPlot=function(e,t){var o,i,n,a,r,l,p=t.id,s=this._study.properties().ohlcPlots[p],d=this._findPlotPalette(e,t),h=d.palette,b=d.paletteProps,C="Change "+p,y=$('<tr class="line"/>');y.appendTo(this._table),o=$("<td/>"),o.appendTo(y),o.addClass("visibility-cell"),i=$("<input type='checkbox' class='visibility-switch'/>"),i.appendTo(o),this.bindControl(new c(i,s.visible,!0,this.model(),C)),n=s.title.value(),this.createLabeledCell(n,i).appendTo(y).addClass("propertypage-name-label"),h?(a=!0,this._prepareLayoutForPalette(e,t,h,b,C,a)):(r=$("<td/>"),r.appendTo(y),r.addClass("colorpicker-cell"),l=g(r),this.bindControl(new u(l,s.color,!0,this.model(),C)))},i.prototype._prepareLayoutForCandlesPlot=function(e,t){var o,i,n,a,r,l,p,s,d;this._prepareLayoutForBarsPlot(e,t),o=t.id,i=this._study.properties().ohlcPlots[o],n="Change "+o,a=$('<tr class="line"/>'),a.appendTo(this._table),r=$("<td/>"),r.appendTo(a),r.addClass("visibility-cell"),l=$("<input type='checkbox' class='visibility-switch'/>"),l.appendTo(r),this.bindControl(new c(l,i.drawWick,!0,this.model(),n)),p="Wick",this.createLabeledCell(p,l).appendTo(a),s=$("<td/>"),s.appendTo(a),s.addClass("colorpicker-cell"),d=g(s),this.bindControl(new u(d,i.wickColor,!0,this.model(),n))},i.prototype._prepareLayoutForShapesPlot=function(e,t){var o,i,n,a,r,l,p,s,d,b=t.id,C=this._study.properties().styles[b],y=this._findPlotPalette(e,t),w=y.palette,m=y.paletteProps,f="Change "+b,L=$('<tr class="line"/>');L.appendTo(this._table),o=$("<td/>"),o.appendTo(L),o.addClass("visibility-cell"),i=$("<input type='checkbox' class='visibility-switch'/>"),i.appendTo(o),this.bindControl(new c(i,C.visible,!0,this.model(),f)),n=$.t(this._study.properties().styles[b].title.value(),{context:"input"}),this.createLabeledCell(n,i).appendTo(L).addClass("propertypage-name-label"),a=$("<td/>"),a.appendTo(L),r=_(),r.appendTo(a),this.bindControl(new h(r,C.plottype,null,!0,this.model(),f)),l=$("<td/>"),l.appendTo(L),p=T(),p.appendTo(l),this.bindControl(new h(p,C.location,null,!0,this.model(),f)),w?this._prepareLayoutForPalette(e,t,w,m,f):(L=$('<tr class="line"/>'), |
|||
L.appendTo(this._table),$("<td/>").appendTo(L),$("<td/>").appendTo(L),s=$("<td/>"),s.appendTo(L),s.addClass("colorpicker-cell"),d=g(s),this.bindControl(new u(d,C.color,!0,this.model(),f,C.transparency)))},i.prototype._prepareLayoutForCharsPlot=function(e,t){var o,i,n,a,r,l,p,s,d,b=t.id,C=this._study.properties().styles[b],w=this._findPlotPalette(e,t),_=w.palette,m=w.paletteProps,f="Change "+b,L=$('<tr class="line"/>');L.appendTo(this._table),o=$("<td/>"),o.appendTo(L),o.addClass("visibility-cell"),i=$("<input type='checkbox' class='visibility-switch'/>"),i.appendTo(o),this.bindControl(new c(i,C.visible,!0,this.model(),f)),n=$.t(this._study.properties().styles[b].title.value(),{context:"input"}),this.createLabeledCell(n,i).appendTo(L).addClass("propertypage-name-label"),a=$("<td/>"),a.appendTo(L),r=$('<input type="text"/>'),r.appendTo(a),r.keyup(function(){var e=$(this),t=e.val();t&&(e.val(t.split("")[t.length-1]),e.change())}),this.bindControl(new y(r,C.char,null,!1,this.model(),f)),l=$("<td/>"),l.appendTo(L),p=T(),p.appendTo(l),this.bindControl(new h(p,C.location,null,!0,this.model(),f)),_?this._prepareLayoutForPalette(e,t,_,m,f):(L=$('<tr class="line"/>'),L.appendTo(this._table),$("<td/>").appendTo(L),$("<td/>").appendTo(L),s=$("<td/>"),s.appendTo(L),s.addClass("colorpicker-cell"),d=g(s),this.bindControl(new u(d,C.color,!0,this.model(),f,C.transparency)))},i.prototype._isStyleNeedsConnectPoints=function(e){return[P.Cross,P.Circles].indexOf(e)>=0},i.prototype._prepareLayoutForPalette=function(e,t,o,i,n,a){var r,l,p,s,d,b,y,w,T,_,f,L,k,S,P,x=e,B=t.id,E=null,R=B.startsWith("fill");E=a?this._study.properties().ohlcPlots[B]:R?this._study.properties().filledAreasStyle[B]:this._study.properties().styles[B],r=0;for(l in o.colors)p=i.colors[l],s=$('<tr class="line"/>'),s.appendTo(this._table),$("<td/>").appendTo(s),d=$("<td/>"),d.appendTo(s),d.addClass("propertypage-name-label"),d.html($.t(p.name.value(),{context:"input"})),b=$("<td/>"),b.appendTo(s),b.addClass("colorpicker-cell"),y=g(b),this.bindControl(new u(y,p.color,!0,this.model(),n,E.transparency)),!R&&this._study.isLinePlot(x)&&(w=$("<td/>"),w.appendTo(s),T=m(),T.appendTo(w),this.bindControl(new C(T,p.width,!0,this.model(),n,this._study.metaInfo().isTVScript)),_=$("<td>"),_.appendTo(s),0===r&&(f=v(),f.appendTo(_),this.bindControl(new h(f,E.plottype,parseInt,!0,this.model(),n)),L=$("<input type='checkbox'>"),k=$('<td colspan="4">').css({whiteSpace:"nowrap"}),S=$("<span>").html($.t("Price Line")),P=$("<span>"),P.append(L),k.append(P).append(S).appendTo(s),this.bindControl(new c(L,E.trackPrice,!0,this.model(),"Change Price Line")))),r++},i.prototype._prepareLayoutForArrowsPlot=function(e,t){var o,i,n,a,r,l,p,s=t.id,d=this._study.properties().styles[s],h="Change "+s,b=$('<tr class="line"/>');b.appendTo(this._table),o=$("<td/>"),o.appendTo(b),o.addClass("visibility-cell"),i=$("<input type='checkbox' class='visibility-switch'/>"),i.appendTo(o),n=$.t(this._study.properties().styles[s].title.value(),{context:"input"}), |
|||
this.createLabeledCell(n,i).appendTo(b).addClass("propertypage-name-label"),a=$("<td/>"),a.appendTo(b),a.addClass("colorpicker-cell"),r=g(a),l=$("<td/>"),l.appendTo(b),l.addClass("colorpicker-cell"),p=g(l),this.bindControl(new c(i,d.visible,!0,this.model(),h)),this.bindControl(new u(r,d.colorup,!0,this.model(),h,d.transparency)),this.bindControl(new u(p,d.colordown,!0,this.model(),h,d.transparency))},i.prototype._findPlotPalette=function(e,t){var o,i=e,n=t.id,a=null,r=null,l=this._study.metaInfo().plots;if(this._study.isBarColorerPlot(i)||this._study.isBgColorerPlot(i))a=this._study.metaInfo().palettes[t.palette],r=this._study.properties().palettes[t.palette];else for(o=0;o<l.length;o++)if(l[o].target===n&&(this._study.isSelfColorerPlot(o)||this._study.isOHLCColorerPlot(o))){a=this._study.metaInfo().palettes[l[o].palette],r=this._study.properties().palettes[l[o].palette];break}return{palette:a,paletteProps:r}},i.prototype._prepareStudyPropertiesLayout=function(){var e,t,o=$('<table class="property-page study-properties" cellspacing="0" cellpadding="2">');return this._study.metaInfo().is_price_study||(e=this.createPrecisionEditor(),t=$("<tr>"),t.appendTo(o),$("<td>"+$.t("Precision")+"</td>").appendTo(t),$("<td>").append(e).appendTo(t),this.bindControl(new h(e,this._study.properties().precision,null,!0,this.model(),"Change Precision"))),"Compare@tv-basicstudies"===this._study.metaInfo().id&&(e=this.createSeriesMinTickEditor(),t=$("<tr>"),t.appendTo(o),$("<td>"+$.t("Override Min Tick")+"</td>").appendTo(t),$("<td>").append(e).appendTo(t),this.bindControl(new h(e,this._study.properties().minTick,null,!0,this.model(),"Change MinTick"))),this._putStudyDefaultStyles(o),o},i.prototype._putStudyDefaultStyles=function(e,t){var o,i,n,a,r,l,p=null,s=this._study;return(!s.properties().linkedToSeries||!s.properties().linkedToSeries.value())&&($.each(this._model.m_model.panes(),function(e,t){$.each(t.dataSources(),function(e,o){if(o===s)return p=t,!1})}),this._pane=p,this._pane&&(-1!==this._pane.leftPriceScale().dataSources().indexOf(this._study)?o="left":-1!==this._pane.rightPriceScale().dataSources().indexOf(this._study)?o="right":this._pane.isOverlay(this._study)&&(o="none")),o&&(i=this,n={left:$.t("Scale Left"),right:$.t("Scale Right")},i._pane.actionNoScaleIsEnabled(s)&&(n.none=$.t("Screen (No Scale)")),a=this.createKeyCombo(n).val(o).change(function(){switch(this.value){case"left":i._model.move(i._study,i._pane,i._pane.leftPriceScale());break;case"right":i._model.move(i._study,i._pane,i._pane.rightPriceScale());break;case"none":i._model.move(i._study,i._pane,null)}}),r=this.addRow(e),$("<td>"+$.t("Scale")+"</td>").appendTo(r),l=$("<td>").appendTo(r).append(a),t&&t>2&&l.attr("colspan",t-1)),e)},i.prototype.widget=function(){return this._table},i.prototype._prepareFilledAreaBackground=function(e,t,o,i,n){var a,r,l,p=$('<tr class="line"/>'),s=$("<td/>");return s.appendTo(p),a=$("<input type='checkbox' class='visibility-switch'/>"),a.appendTo(s),this.createLabeledCell(i,a).appendTo(p).addClass("propertypage-name-label"), |
|||
r=$("<td/>"),r.appendTo(p),r.addClass("colorpicker-cell"),l=g(r),this.bindControl(new c(a,e,!0,this.model(),n+" visibility")),this.bindControl(new u(l,t,!0,this.model(),n+" color",o)),p},inherit(n,r),n.prototype.prepareLayout=function(){if(this._study.properties().linkedToSeries&&this._study.properties().linkedToSeries.value())return void(this._table=$());this._table=$()},n.prototype.widget=function(){return this._table},i._createRow_horizlines=function(e,t){var o=this.addRow(e),i=t.name.value(),n=$("<input type='checkbox' class='visibility-switch'/>"),a=this.createColorPicker(),r=m(),l=w();$("<td>").append(n).appendTo(o),this.createLabeledCell(i,n).appendTo(o),$("<td>").append(a).appendTo(o),$("<td>").append(r).appendTo(o),$("<td>").append(l.render()).appendTo(o),this.bindControl(new c(n,t.visible,!0,this.model(),"Change "+i+" visibility")),this.bindControl(new u(a,t.color,!0,this.model(),"Change "+i+" color")),this.bindControl(new h(l,t.style,parseInt,!0,this.model(),"Change "+i+" style")),this.bindControl(new C(r,t.width,!0,this.model(),"Change "+i+" width"))},i._createRow_vertlines=function(e,t){var o=this.addRow(e),i=t.name.value(),n=$("<input type='checkbox' class='visibility-switch'/>"),a=this.createColorPicker(),r=m(),l=w();$("<td>").append(n).appendTo(o),this.createLabeledCell(i,n).appendTo(o),$("<td>").append(a).appendTo(o),$("<td>").append(r).appendTo(o),$("<td>").append(l.render()).appendTo(o),this.bindControl(new c(n,t.visible,!0,this.model(),"Change "+i+" visibility")),this.bindControl(new u(a,t.color,!0,this.model(),"Change "+i+" color")),this.bindControl(new h(l,t.style,parseInt,!0,this.model(),"Change "+i+" style")),this.bindControl(new C(r,t.width,!0,this.model(),"Change "+i+" width"))},i._createRow_lines=function(e,t){var o=this.addRow(e),i=t.title.value(),n=$("<input type='checkbox' class='visibility-switch'/>"),a=this.createColorPicker(),r=m(),l=w();$("<td>").append(n).appendTo(o),this.createLabeledCell(i,n).appendTo(o),$("<td>").append(a).appendTo(o),$("<td>").append(r).appendTo(o),$("<td>").append(l.render()).appendTo(o),this.bindControl(new c(n,t.visible,!0,this.model(),"Change "+i+" visibility")),this.bindControl(new u(a,t.color,!0,this.model(),"Change "+i+" color")),this.bindControl(new h(l,t.style,parseInt,!0,this.model(),"Change "+i+" style")),this.bindControl(new C(r,t.width,!0,this.model(),"Change "+i+" width"))},i._createRow_hlines=function(e,t){var o,i,n,a=this.addRow(e),r=t.name.value(),l=$("<input type='checkbox' class='visibility-switch'/>"),p=this.createColorPicker(),s=m(),d=w(),b=$("<input type='checkbox'>");$("<td>").append(l).appendTo(a),this.createLabeledCell(r,l).appendTo(a),$("<td>").append(p).appendTo(a),$("<td>").append(s).appendTo(a),$("<td>").append(d.render()).appendTo(a),$("<td>").appendTo(a),$("<td>").append(b).appendTo(a),this.createLabeledCell("Show Price",b).appendTo(a),this.bindControl(new c(l,t.visible,!0,this.model(),"Change "+r+" visibility")),this.bindControl(new u(p,t.color,!0,this.model(),"Change "+r+" color")), |
|||
this.bindControl(new h(d,t.style,parseInt,!0,this.model(),"Change "+r+" style")),this.bindControl(new C(s,t.width,!0,this.model(),"Change "+r+" width")),this.bindControl(new c(b,t.showPrice,!0,this.model(),"Change "+r+" show price")),t.enableText.value()&&(a=this.addRow(e),$('<td colspan="2">').appendTo(a),o=$("<input type='checkbox'>"),$('<td class="text-center">').append(o).appendTo(a),this.createLabeledCell("Show Text",o).appendTo(a),this.bindControl(new c(o,t.showText,!0,this.model(),"Change "+r+" show text")),i=TradingView.createTextPosEditor(),$("<td>").append(i.render()).appendTo(a),this.bindControl(new h(i,t.textPos,parseInt,!0,this.model(),"Change "+r+" text position")),n=this.createFontSizeEditor(),$('<td colspan="2">').append(n).appendTo(a),this.bindControl(new h(n,t.fontSize,parseInt,!0,this.model(),"Change "+r+" font size")))},i._createRow_hhists=function(e,t){var o,i,n,a,r,d,b=t.title.value(),C=[],g=[],w=this.addRow(e),T=f();$("<td>").append(T).appendTo(w),this.createLabeledCell(b,T).appendTo(w),this.bindControl(new c(T,t.visible,!0,this.model(),"Change "+b+" Visibility")),w=this.addRow(e),o=$("<input/>"),o.attr("type","text"),o.addClass("ticker"),this.createLabeledCell($.t("Width (% of the Box)"),o).appendTo(w),$("<td>").append(o).appendTo(w),i=[s(40)],i.push(l(0)),i.push(p(100)),this.bindControl(new y(o,t.percentWidth,i,!1,this.model(),"Change Percent Width")),w=this.addLabeledRow(e,"Placement"),n=L(),$("<td>").append(n).appendTo(w),this.bindControl(new h(n,t.direction,null,!0,this.model(),"Change "+b+" Placement")),w=this.addRow(e),a=$("<input type='checkbox'>"),$("<td>").append(a).appendTo(w),this.createLabeledCell($.t("Show Values"),a).appendTo(w),this.bindControl(new c(a,t.showValues,!0,this.model(),"Change "+b+" Show Values")),w=this.addRow(e),r=this.createColorPicker(),this.createLabeledCell($.t("Text Color"),r).appendTo(w),$("<td>").append(r).appendTo(w),this.bindControl(new u(r,t.valuesColor,!0,this.model(),"Change "+b+" Text Color"));for(d in t.colors)isNumber(parseInt(d,10))&&(w=this.addRow(e),C[d]=t.titles[d].value(),g[d]=this.createColorPicker(),$("<td>").append(C[d]).appendTo(w),$("<td>").append(g[d]).appendTo(w),this.bindControl(new u(g[d],t.colors[d],!0,this.model(),"Change "+C[d]+" color")))},i._createRow_backgrounds=function(e,t){var o=this.addRow(e),i=$("<input type='checkbox' class='visibility-switch'/>"),n=t.name.value(),a=this.createColorPicker();$("<td>").append(i).appendTo(o),this.createLabeledCell(n,i).appendTo(o),$("<td>").append(a).appendTo(o),this.bindControl(new c(i,t.visible,!0,this.model(),"Change "+n+" visibility")),this.bindControl(new u(a,t.color,!0,this.model(),"Change "+n+" color",t.transparency))},i._createRow_polygons=function(e,t){var o=this.addRow(e),i=t.name.value(),n=this.createColorPicker();$("<td>").append(i).appendTo(o),$("<td>").append(n).appendTo(o),this.bindControl(new u(n,t.color,!0,this.model(),"Change "+i+" color"))},i._createRow_trendchannels=function(e,t){var o=this.addRow(e),i=t.name.value(),n=this.createColorPicker() |
|||
;$("<td>").append(i).appendTo(o),$("<td>").append(n).appendTo(o),this.bindControl(new u(n,t.color,!0,this.model(),"Change "+i+" color",t.transparency))},i._createRow_textmarks=function(e,t){var o=this.addLabeledRow(e),i=t.name.value(),n=this.createColorPicker(),a=this.createColorPicker(),r=this.createFontEditor(),l=this.createFontSizeEditor(),p=$('<span class="_tv-button _tv-button-fontstyle"><span class="icon-fontstyle-bold"></span></span>'),s=$('<span class="_tv-button _tv-button-fontstyle"><span class="icon-fontstyle-italic"></span></span>');$("<td>").append(i).appendTo(o),"rectangle"!==t.shape.value()&&$("<td>").append(n).appendTo(o),$("<td>").append(a).appendTo(o),$("<td>").append(r).appendTo(o),$("<td>").append(l).appendTo(o),$("<td>").append(p).appendTo(o),$("<td>").append(s).appendTo(o),this.bindControl(new u(n,t.color,!0,this.model(),"Change "+i+" color",t.transparency)),this.bindControl(new u(a,t.fontColor,!0,this.model(),"Change "+i+" text color",t.transparency)),this.bindControl(new h(l,t.fontSize,parseInt,!0,this.model(),"Change "+i+" font size")),this.bindControl(new h(r,t.fontFamily,null,!0,this.model(),"Change "+i+" font")),this.bindControl(new c(p,t.fontBold,!0,this.model(),"Change Text Font Bold")),this.bindControl(new c(s,t.fontItalic,!0,this.model(),"Change Text Font Italic"))},i._createRow_shapemarks=function(e,t){var o=this.addRow(e),i=$("<input type='checkbox' class='visibility-switch'/>"),n=t.name.value(),a=this.createColorPicker(),r=$("<input/>");r.attr("type","text"),r.addClass("ticker"),$("<td>").append(i).appendTo(o),this.createLabeledCell(n,i).appendTo(o),$("<td>").append(a).appendTo(o),this.createLabeledCell("Size",r).appendTo(o),$("<td>").append(r).appendTo(o),this.bindControl(new c(i,t.visible,!0,this.model(),"Change "+n+" visibility")),this.bindControl(new u(a,t.color,!0,this.model(),"Change "+n+" back color",t.transparency)),this.bindControl(new y(r,t.size,null,!1,this.model(),"Change size"))},t.StudyStylesPropertyPage=i,t.StudyDisplayPropertyPage=n},267:function(e,t,o){"use strict";function i(e,t,o){n.call(this,e,t,o),this.prepareLayout()}var n=o(14),a=o(10),r=a.FloatBinder,l=a.BooleanBinder,p=a.SliderBinder,s=a.ColorBinding,d=a.SimpleComboBinder,h=o(47).addColorPicker,c=o(31).createLineStyleEditor,b=o(15).createLineWidthEditor,u=o(65).createTransparencyEditor;inherit(i,n),i.prototype.addLevelEditor=function(e,t){var o,i,n,a,p,d=t||$("<tr>").appendTo(this._table),c=$("<td>");return c.appendTo(d),o=$("<input type='checkbox' class='visibility-switch'>"),o.appendTo(c),t&&o.css("margin-left","15px"),i=$("<td>"),i.appendTo(d),n=$("<input type='text'>"),n.appendTo(i),n.css("width","70px"),this.bindControl(new r(n,e.coeff,!1,this.model(),"Change Pitchfork Line Coeff")),a=$("<td class='colorpicker-cell'>"),a.appendTo(d),p=h(a),this.bindControl(new l(o,e.visible,!0,this.model(),"Change Fib Retracement Line Visibility")),this.bindControl(new s(p,e.color,!0,this.model(),"Change Fib Retracement Line Color",0)),d},i.prototype.prepareLayout=function(){ |
|||
var e,t,o,i,n,a,r,C,y,g,w,T,_,m,f,L,v,k,S,P,x,B,E,R,F,I,A,D,W,O,V,j,z;for(this._div=$(document.createElement("div")).addClass("property-page"),e=this._linetool.properties().trendline,t=$("<table>").appendTo(this._div).css("padding-bottom","3px"),e&&(o=$("<tr>").appendTo(t),i=$("<input type='checkbox' class='visibility-switch'>"),$("<td>").append(i).appendTo(o),$("<td>").append($.t("Trend Line")).appendTo(o),this.bindControl(new l(i,e.visible,!0,this.model(),"Change Fib Retracement Line Visibility")),n=$("<td class='colorpicker-cell'>").appendTo(o),a=h(n),this.bindControl(new s(a,e.color,!0,this.model(),"Change Fib Retracement Line Color",0)),r=$("<td>").appendTo(o),C=b(),C.appendTo(r),this.bindControl(new p(C,e.linewidth,parseInt,this.model(),"Change Fib Retracement Line Width")),y=$("<td>").appendTo(o),g=c(),g.render().appendTo(y),this.bindControl(new d(g,e.linestyle,parseInt,!0,this.model(),"Change Fib Retracement Line Style"))),w=this._linetool.properties().levelsStyle,T=$("<tr>").appendTo(t),$("<td>").appendTo(T),$("<td>"+$.t("Levels Line")+"</td>").appendTo(T),$("<td>").appendTo(T),r=$("<td>").appendTo(T),C=b(),C.appendTo(r),this.bindControl(new p(C,w.linewidth,parseInt,this.model(),"Change Fib Retracement Line Width")),y=$("<td>").appendTo(T),g=c(),g.render().appendTo(y),this.bindControl(new d(g,w.linestyle,parseInt,!0,this.model(),"Change Fib Retracement Line Style")),this._table=$(document.createElement("table")).appendTo(this._div),this._table.attr("cellspacing","0"),this._table.attr("cellpadding","2"),_={},m=0;m<24;m++)f=m%8,T=_[f],L="level"+(m+1),_[f]=this.addLevelEditor(this._linetool.properties()[L],T);this.addOneColorPropertyWidget(this._table),v=$("<table cellpadding=0 cellspacing=0>").appendTo(this._div),k=$("<tr>").appendTo(v),this._linetool.properties().extendLines&&(S=$("<input type='checkbox' class='visibility-switch'>"),P=$("<label>").append(S).append($.t("Extend Lines")),$("<td>").append(P).appendTo(k)),this._linetool.properties().extendLeft&&(x=$("<input type='checkbox' class='visibility-switch'>"),P=$("<label>").append(x).append($.t("Extend Left")),$("<td>").append(P).appendTo(k)),this._linetool.properties().extendRight&&(B=$("<input type='checkbox' class='visibility-switch'>"),P=$("<label>").append(B).append($.t("Extend Right")),$("<td>").append(P).appendTo(k)),this._linetool.properties().reverse&&(E=$("<input type='checkbox' class='visibility-switch'>"),P=$("<label>").append(E).append($.t("Reverse")),$("<td>").append(P).appendTo(k)),R=$("<tr>").appendTo(v),F=$("<input type='checkbox' class='visibility-switch'>"),P=$("<label>").append(F).append($.t("Levels")),$("<td>").append(P).appendTo(R),I=$("<input type='checkbox' class='visibility-switch'>"),P=$("<label>").append(I).append($.t("Prices")),$("<td>").append(P).appendTo(R),A=$("<input type='checkbox' class='visibility-switch'>"),P=$("<label>").append(A).append($.t("Percents")),$("<td>").append(P).appendTo(R),D=$("<table cellspacing='0' cellpadding='0'>").appendTo(this._div), |
|||
W=$("<select><option value='left'>"+$.t("left")+"</option><option value='center'>"+$.t("center")+"</option><option value='right'>"+$.t("right")+"</option></select>"),O=$("<select><option value='bottom'>"+$.t("top")+"</option><option value='middle'>"+$.t("middle")+"</option><option value='top'>"+$.t("bottom")+"</option></select>"),T=$("<tr>"),T.append("<td>"+$.t("Labels")+"</td>").append(W).append("<td> </td>").append(O),T.appendTo(D),V=$("<table cellspacing='0' cellpadding='0'>").appendTo(this._div),T=$("<tr>").appendTo(V),j=$("<input type='checkbox' class='visibility-switch'>"),$("<td>").append(j).appendTo(T),this.createLabeledCell($.t("Background"),j).appendTo(T),z=u(),$("<td>").append(z).appendTo(T),this.bindControl(new l(I,this._linetool.properties().showPrices,!0,this.model(),"Change Gann Fan Prices Visibility")),this.bindControl(new l(F,this._linetool.properties().showCoeffs,!0,this.model(),"Change Gann Fan Levels Visibility")),this.bindControl(new l(j,this._linetool.properties().fillBackground,!0,this.model(),"Change Fib Retracement Background Visibility")),this.bindControl(new p(z,this._linetool.properties().transparency,!0,this.model(),"Change Fib Retracement Background Transparency")),this._linetool.properties().extendLines&&this.bindControl(new l(S,this._linetool.properties().extendLines,!0,this.model(),"Change Fib Retracement Extend Lines")),this._linetool.properties().extendLeft&&this.bindControl(new l(x,this._linetool.properties().extendLeft,!0,this.model(),"Change Fib Retracement Extend Lines")),this._linetool.properties().extendRight&&this.bindControl(new l(B,this._linetool.properties().extendRight,!0,this.model(),"Change Fib Retracement Extend Lines")),this._linetool.properties().reverse&&this.bindControl(new l(E,this._linetool.properties().reverse,!0,this.model(),"Change Fib Retracement Reverse")),this.bindControl(new d(W,this._linetool.properties().horzLabelsAlign,null,!0,this.model(),"Change Fib Labels Horizontal Alignment")),this.bindControl(new d(O,this._linetool.properties().vertLabelsAlign,null,!0,this.model(),"Change Fib Labels Vertical Alignment")),this.bindControl(new l(A,this._linetool.properties().coeffsAsPercents,!0,this.model(),"Change Fib Retracement Coeffs As Percents")),this.loadData()},i.prototype.widget=function(){return this._div},e.exports=i},399:function(e,t,o){"use strict";function i(e,t,o){p.call(this,e,t),this._linetool=o,this.prepareLayout()}function n(e,t,o){a.call(this,e,t,o),this.prepareLayout()}var a=o(14),r=o(81),l=o(10),p=l.PropertyPage,s=l.SliderBinder,d=o(65).createTransparencyEditor,h=o(121);inherit(i,r),i.prototype.prepareLayout=function(){var e,t,o,i,n,a,l=$('<table class="property-page" cellspacing="0" cellpadding="0">'),p=$('<table class="property-page" cellspacing="0" cellpadding="0">').data({"layout-tab":h.TabNames.inputs,"layout-tab-priority":h.TabPriority.Inputs});this._table=l.add(p),r.prototype.prepareLayoutForTable.call(this,l),e=$("<tr>").appendTo(p),$("<td>").append($.t("Avg HL in minticks")).appendTo(e),t=$("<td>").appendTo(e), |
|||
o=$("<input type='text'>").addClass("ticker").appendTo(t),e=$("<tr>").appendTo(p),$("<td>").append($.t("Variance")).appendTo(e),i=$("<td>").appendTo(e),n=$("<input type='text'>").addClass("ticker").appendTo(i),a=this._linetool.properties(),this.bindInteger(o,a.averageHL,$.t("Change Average HL value"),1,5e4),this.bindInteger(n,a.variance,$.t("Change Variance value"),1,100),this.loadData()},i.prototype.widget=function(){return this._table},inherit(n,a),n.prototype.prepareLayout=function(){var e,t,o,i,n,a,r,l,p,h,c;this._widget=$("<div>"),e=$("<table cellspacing=4>").appendTo(this._widget),t=this.createColorPicker(),o=this.createColorPicker(),i=this.createColorPicker(),n=this.createColorPicker(),a=this.createColorPicker(),r=$("<input type='checkbox' class='visibility-switch'/>").data("hides",$(n).add(a)),l=$("<input type='checkbox' class='visibility-switch'/>").data("hides",$(i)),p=this.addLabeledRow(e,$.t("Candles")),$("<td>").prependTo(p),$("<td>").append(t).appendTo(p),$("<td>").append(o).appendTo(p),p=this.addLabeledRow(e,$.t("Borders"),r),$("<td>").append(r).prependTo(p),$("<td>").append(n).appendTo(p),$("<td>").append(a).appendTo(p),$("<td>").appendTo(p),p=this.addLabeledRow(e,$.t("Wick"),l),$("<td>").append(l).prependTo(p),$("<td>").append(i).appendTo(p),$("<td>").appendTo(p),e=$("<table>").appendTo(this._widget),p=$("<tr>").appendTo(e),$("<td colspan='2'>").append($.t("Transparency")).appendTo(p),h=d(),$("<td colspan='2'>").append(h).appendTo(p),c=this._linetool.properties(),this.bindColor(t,c.candleStyle.upColor,"Change Candle Up Color"),this.bindColor(o,c.candleStyle.downColor,"Change Candle Down Color"),this.bindBoolean(l,c.candleStyle.drawWick,"Change Candle Wick Visibility"),this.bindColor(i,c.candleStyle.wickColor,"Change Candle Wick Color"),this.bindBoolean(r,c.candleStyle.drawBorder,"Change Candle Border Visibility"),this.bindColor(n,c.candleStyle.borderUpColor,"Change Candle Up Border Color"),this.bindColor(a,c.candleStyle.borderDownColor,"Change Candle Down Border Color"),this.bindControl(new s(h,c.transparency,!0,this.model(),"Change Guest Feed Transparency"))},n.prototype.widget=function(){return this._widget},t.LineToolGhostFeedInputsPropertyPage=i,t.LineToolGhostFeedStylesPropertyPage=n},400:function(e,t,o){"use strict";function i(e,t,o){a.call(this,e,t,o),this.prepareLayout()}function n(e,t,o){r.call(this,e,t,o)}var a=o(14),r=o(81),l=o(10),p=l.BooleanBinder,s=l.SimpleComboBinder,d=l.SimpleStringBinder,h=l.ColorBinding,c=l.SliderBinder,b=o(31).createLineStyleEditor,u=o(15).createLineWidthEditor;inherit(i,a),i.prototype.prepareLayout=function(){var e,t,o,i,n,a,r,l,C,y,g,w,T,_;this._res=$("<div>"),this._table=$('<table class="property-page" cellspacing="0" cellpadding="2" style="width:100%"></table>').appendTo(this._res),e=u(),t=b(),o=this.createColorPicker(),i=this.addLabeledRow(this._table,"Line"),$("<td>").append(o).appendTo(i),$("<td>").append(e).appendTo(i),$('<td colspan="3">').append(t.render().css("display","block")).appendTo(i),n=$("<input type='checkbox' class='visibility-switch'>"), |
|||
i=$("<tr>").appendTo(this._table),$('<td colspan="3">').append($("<label>").append(n).append($.t("Show Price"))).prependTo(i),a=$("<input type='checkbox'>"),i=$("<tr>").appendTo(this._table),$('<td colspan="3">').append($("<label>").append(a).append($.t("Show Text"))).prependTo(i),i=this.addLabeledRow(this._table,"Text:"),r=this.createColorPicker(),l=this.createFontSizeEditor(),C=this.createFontEditor(),y=$('<span class="_tv-button _tv-button-fontstyle"><span class="icon-fontstyle-bold"></span></span>'),g=$('<span class="_tv-button _tv-button-fontstyle"><span class="icon-fontstyle-italic"></span></span>'),$("<td>").append(r).appendTo(i),$("<td>").append(C).appendTo(i),$("<td>").append(l).appendTo(i),$("<td>").append(y).appendTo(i),$("<td>").append(g).appendTo(i),i=$("<tr>").appendTo(this._table),$("<td colspan='2'>").append($.t("Text Alignment:")).appendTo(i),w=$("<select><option value='left'>"+$.t("left")+"</option><option value='center'>"+$.t("center")+"</option><option value='right'>"+$.t("right")+"</option></select>"),T=$("<select><option value='bottom'>"+$.t("top")+"</option><option value='middle'>"+$.t("middle")+"</option><option value='top'>"+$.t("bottom")+"</option></select>").data("selectbox-css",{display:"block"}),$("<td>").append(w).appendTo(i),$("<td colspan='3'>").append(T).appendTo(i),_=$("<textarea rows='7' cols='60'>").css("width","100%"),i=$("<tr>").appendTo(this._table),$("<td colspan='7'>").append(_).appendTo(i),this.bindControl(new p(a,this._linetool.properties().showLabel,!0,this.model(),"Change Horz Line Text Visibility")),this.bindControl(new s(w,this._linetool.properties().horzLabelsAlign,null,!0,this.model(),"Change Horz Line Labels Alignment")),this.bindControl(new s(T,this._linetool.properties().vertLabelsAlign,null,!0,this.model(),"Change Horz Line Labels Alignment")),this.bindControl(new d(_,this._linetool.properties().text,null,!0,this.model(),"Change Text")),this.bindControl(new p(n,this._linetool.properties().showPrice,!0,this.model(),"Change Horz Line Price Visibility")),this.bindControl(new h(o,this._linetool.properties().linecolor,!0,this.model(),"Change Horz Line Color")),this.bindControl(new s(t,this._linetool.properties().linestyle,parseInt,!0,this.model(),"Change Horz Line Style")),this.bindControl(new c(e,this._linetool.properties().linewidth,!0,this.model(),"Change Horz Line Width")),this.bindControl(new s(l,this._linetool.properties().fontsize,parseInt,!0,this.model(),"Change Text Font Size")),this.bindControl(new s(C,this._linetool.properties().font,null,!0,this.model(),"Change Text Font")),this.bindControl(new h(r,this._linetool.properties().textcolor,!0,this.model(),"Change Text Color")),this.bindControl(new p(y,this._linetool.properties().bold,!0,this.model(),"Change Text Font Bold")),this.bindControl(new p(g,this._linetool.properties().italic,!0,this.model(),"Change Text Font Italic")),this.loadData()},i.prototype.widget=function(){return this._res},inherit(n,r),n.prototype.prepareLayout=function(){var e,t,o,i |
|||
;this._table=$('<table class="property-page" cellspacing="0" cellpadding="2">'),(e=this._linetool.points()[0])&&(t=this._linetool.properties().points[0],o=this.createPriceEditor(t.price),i=$("<tr>").appendTo(this._table),$("<td>"+$.t("Price")+"</td>").appendTo(i),$("<td>").append(o).appendTo(i),this.loadData())},t.LineToolHorzLineStylesPropertyPage=i,t.LineToolHorzLineInputsPropertyPage=n},401:function(e,t,o){"use strict";function i(e,t,o){r.call(this,e,t,o),this.prepareLayout()}function n(e,t,o){a.call(this,e,t,o),this.prepareLayout()}var a=o(14),r=o(81),l=o(10),p=l.LessTransformer,s=l.GreateTransformer,d=l.ToIntTransformer,h=l.ToFloatTransformer,c=l.SimpleStringBinder,b=l.ColorBinding,u=l.SliderBinder,C=l.SimpleComboBinder,y=l.BooleanBinder,g=o(15).createLineWidthEditor,w=o(38).NumericFormatter;inherit(i,r),i.prototype.prepareLayout=function(){function e(e){return(new w).format(e)}var t,o,i,n,a,r,l,b,u,C,y,g;this._table=$('<table class="property-page" cellspacing="0" cellpadding="2">'),t=$("<tbody>").appendTo(this._table),o=this.addLabeledRow(t,$.t("Stop Level. Ticks:")),i=$('<input type="text">'),$("<td>").append(i).appendTo(o),i.addClass("ticker"),n=$('<input type="text" class="ticker">'),$("<td>"+$.t("Price:")+"</td>").appendTo(o),$("<td>").append(n).appendTo(o),a=this.addLabeledRow(t,$.t("Entry price:")),r=$('<input type="text" class="ticker">'),$('<td colspan="2">').append(r).appendTo(a),l=this.addLabeledRow(t,$.t("Profit Level. Ticks:")),b=$('<input type="text" class="ticker">'),$("<td>").append(b).appendTo(l),u=$('<input type="text" class="ticker">'),$("<td>"+$.t("Price:")+"</td>").appendTo(l),$("<td>").append(u).appendTo(l),"LineToolRiskRewardLong"===this._linetool.getConstructor()&&(o.detach().appendTo(t),l.detach().prependTo(t)),C=[d(this._linetool.properties().stopLevel.value()),s(0),p(1e9)],this.bindControl(new c(i,this._linetool.properties().stopLevel,C,!1,this.model(),"Change "+this._linetool+" stop level")),C=[d(this._linetool.properties().profitLevel.value()),s(0),p(1e9)],this.bindControl(new c(b,this._linetool.properties().profitLevel,C,!1,this.model(),"Change "+this._linetool+" profit level")),C=[h(this._linetool.properties().entryPrice.value())],y=new c(r,this._linetool.properties().entryPrice,C,!1,this.model(),"Change "+this._linetool+" entry price"),y.addFormatter(e),this.bindControl(y),g=this,C=[h(this._linetool.properties().stopPrice.value()),function(e){return g._linetool.preparseStopPrice(e)}],y=new c(n,this._linetool.properties().stopPrice,C,!1,this.model(),"Change "+this._linetool+" stop price"),y.addFormatter(e),this.bindControl(y),C=[h(this._linetool.properties().targetPrice.value()),function(e){return g._linetool.preparseProfitPrice(e)}],y=new c(u,this._linetool.properties().targetPrice,C,!1,this.model(),"Change "+this._linetool+" stop price"),y.addFormatter(e),this.bindControl(y)},i.prototype.widget=function(){return this._table},inherit(n,a),n.prototype.prepareLayout=function(){var e,t,o,i,n,a,r,l,d,w,T,_,m,f,L,v=this._linetool,k=v.properties() |
|||
;this._table=$('<table class="property-page" cellspacing="0" cellpadding="2">'),e=$("<tbody>").appendTo(this._table),t=g(),o=this.createColorPicker(),i=this.addLabeledRow(e,$.t("Lines:")),$("<td>").append(o).appendTo(i),$("<td>").append(t).appendTo(i),i=this.addLabeledRow(e,$.t("Stop Color:")),n=this.createColorPicker(),$("<td>").append(n).appendTo(i),i=this.addLabeledRow(e,$.t("Target Color:")),a=this.createColorPicker(),$("<td>").append(a).appendTo(i),i=this.addLabeledRow(e,$.t("Text:")),r=this.createColorPicker(),l=this.createFontSizeEditor(),d=this.createFontEditor(),$("<td>").append(r).appendTo(i),$("<td>").append(d).appendTo(i),$("<td>").append(l).appendTo(i),i=$("<tr>").appendTo(e),w=$("<label>").text($.t("Compact")),T=$('<input type="checkbox">').prependTo(w),$("<td>").append(w).appendTo(i),i=this.addLabeledRow(e,$.t("Account Size")),_=$('<input type="text" class="ticker">'),$("<td>").append(_).appendTo(i),i=this.addLabeledRow(e,$.t("Risk")),this._riskEdit=$('<input type="text" class="ticker">'),$("<td>").append(this._riskEdit).appendTo(i),this._riskEdit.data("step",v.getRiskStep(k.riskDisplayMode.value())),k.riskDisplayMode.subscribe(this,this._onRiskDisplayModeChange),m=this.createKeyCombo({percents:$.t("%"),money:$.t("Cash")}),$("<td>").append(m).appendTo(i),this.bindControl(new b(o,k.linecolor,!0,this.model(),"Change Risk/Reward line Color")),this.bindControl(new u(t,k.linewidth,!0,this.model(),"Change Risk/Reward line width")),this.bindControl(new b(n,k.stopBackground,!0,this.model(),"Change stop color",k.stopBackgroundTransparency)),this.bindControl(new b(a,k.profitBackground,!0,this.model(),"Change target color",k.profitBackgroundTransparency)),this.bindControl(new C(l,k.fontsize,parseInt,!0,this.model(),"Change Text Font Size")),this.bindControl(new C(d,k.font,null,!0,this.model(),"Change Text Font")),this.bindControl(new b(r,k.textcolor,!0,this.model(),"Change Text Color")),this.bindControl(new y(T,k.compact,!0,this.model(),"Compact mode")),f=[h(k.accountSize.value()),s(1),p(1e9)],this.bindControl(new c(_,k.accountSize,f,!1,this.model(),"Change "+this._linetool+" Account Size")),this.bindControl(new C(m,k.riskDisplayMode,null,!0,this.model(),"% / Cash")),L=[h(k.risk.value()),s(1),function(e){var t,o=k.riskDisplayMode.value();return"percents"===o?e=e>100?100:e:(t=k.accountSize.value(),e=e>t?t:e),v.riskFormatter(o).format(e)}],this.bindControl(new c(this._riskEdit,k.risk,L,!1,this.model(),"Change "+this._linetool+" Risk")),this.loadData()},n.prototype._onRiskDisplayModeChange=function(){var e=this._linetool,t=e.properties(),o=t.riskDisplayMode.value(),i=e.riskFormatter(o);this._riskEdit.data("TVTicker",{step:e.getRiskStep(o),formatter:i.format.bind(i)})},n.prototype.destroy=function(){this._linetool.properties().riskDisplayMode.unsubscribe(this,this._onRiskDisplayModeChange),a.prototype.destroy.call(this)},n.prototype.onResoreDefaults=function(){this._linetool.recalculate()},n.prototype.widget=function(){return this._table},t.LineToolRiskRewardInputsPropertyPage=i, |
|||
t.LineToolRiskRewardStylesPropertyPage=n},402:function(e,t,o){"use strict";function i(e,t,o){a.call(this,e,t,o),this.prepareLayout()}function n(e,t,o){r.call(this,e,t,o)}var a=o(14),r=o(81),l=o(10),p=l.GreateTransformer,s=l.LessTransformer,d=l.ToFloatTransformer,h=l.ColorBinding,c=l.BooleanBinder,b=l.SimpleComboBinder,u=l.SimpleStringBinder,C=l.SliderBinder,y=o(31).createLineStyleEditor,g=o(15).createLineWidthEditor,w=o(38).NumericFormatter;inherit(i,a),i.prototype.prepareLayout=function(){var e,t,o,i,n,a,r,l,p,s,d,u,w,T,_,m,f;this._table=$('<table class="property-page" cellspacing="0" cellpadding="2">'),e=$("<tbody>").appendTo(this._table),t=g(),o=y(),i=this.createColorPicker(),n=this.addLabeledRow(e,$.t("Line")),$("<td>").append(i).appendTo(n),$("<td>").append(t).appendTo(n),$('<td colspan="3">').append(o.render()).appendTo(n),a=$("<tbody>").appendTo(this._table),n=this.addLabeledRow(a,$.t("Text")),r=this.createColorPicker(),l=this.createFontSizeEditor(),p=this.createFontEditor(),s=$('<span class="_tv-button _tv-button-fontstyle"><span class="icon-fontstyle-bold"></span></span>'),d=$('<span class="_tv-button _tv-button-fontstyle"><span class="icon-fontstyle-italic"></span></span>'),u=$('<input type="checkbox">'),$("<td>").append(r).appendTo(n),$("<td>").append(p).appendTo(n),$("<td>").append(l).appendTo(n),$("<td>").append(s).appendTo(n),$("<td>").append(d).appendTo(n),w=$('<input type="checkbox">'),T=$('<input type="checkbox">'),n=this.addLabeledRow(a,$.t("Extend Right End")),$('<td colspan="3">').appendTo(n).append(w),n=this.addLabeledRow(a,$.t("Extend Left End")),$('<td colspan="3">').appendTo(n).append(T),_=$('<input type="checkbox">'),m=$('<input type="checkbox">'),f=$('<input type="checkbox">'),n=this.addLabeledRow(a,$.t("Show Price Range")),$('<td colspan="3">').appendTo(n).append(_),n=this.addLabeledRow(a,$.t("Show Bars Range")),$('<td colspan="3">').appendTo(n).append(m),n=this.addLabeledRow(a,$.t("Always Show Stats")),$('<td colspan="3">').appendTo(n).append(f),n=this.addLabeledRow(a,$.t("Show Middle Point")),$('<td colspan="3">').appendTo(n).append(u),this.bindControl(new c(_,this._linetool.properties().showPriceRange,!0,this.model(),"Change Trend Line Show Price Range")),this.bindControl(new c(m,this._linetool.properties().showBarsRange,!0,this.model(),"Change Trend Line Show Bars Range")),this.bindControl(new b(l,this._linetool.properties().fontsize,parseInt,!0,this.model(),"Change Text Font Size")),this.bindControl(new b(p,this._linetool.properties().font,null,!0,this.model(),"Change Text Font")),this.bindControl(new h(r,this._linetool.properties().textcolor,!0,this.model(),"Change Text Color")),this.bindControl(new c(s,this._linetool.properties().bold,!0,this.model(),"Change Text Font Bold")),this.bindControl(new c(d,this._linetool.properties().italic,!0,this.model(),"Change Text Font Italic")),this.bindControl(new h(i,this._linetool.properties().linecolor,!0,this.model(),"Change Trend Line Color")), |
|||
this.bindControl(new b(o,this._linetool.properties().linestyle,parseInt,!0,this.model(),"Change Trend Line Style")),this.bindControl(new C(t,this._linetool.properties().linewidth,!0,this.model(),"Change Trend Line Width")),this.bindControl(new c(w,this._linetool.properties().extendRight,!0,this.model(),"Change Trend Angle Extending Right")),this.bindControl(new c(T,this._linetool.properties().extendLeft,!0,this.model(),"Change Trend Angle Extending Left")),this.bindControl(new c(f,this._linetool.properties().alwaysShowStats,!0,this.model(),"Change Trend Line Always Show Stats")),this.bindControl(new c(u,this._linetool.properties().showMiddlePoint,!0,this.model(),"Change Trend Line Show Middle Point")),this.loadData()},i.prototype.widget=function(){return this._table},inherit(n,r),n.prototype.prepareLayout=function(){var e,t,o,i,n,a;this._table=$('<table class="property-page" cellspacing="0" cellpadding="2">'),e=this._linetool.points()[0],t=this._linetool.properties().points[0],e&&t&&(o=this._createPointRow(e,t,""),this._table.append(o),o=$("<tr>").appendTo(this._table),$("<td>").append($.t("Angle")).appendTo(o),i=$("<input type='text'>"),$("<td>").append(i).appendTo(o),n=[d(t.price.value()),p(-360),s(360)],a=new u(i,this._linetool.properties().angle,n,!1,this.model(),"Change angle"),a.addFormatter(function(e){return(new w).format(e)}),this.bindControl(a),this.loadData())},n.prototype.widget=function(){return this._table},t.LineToolTrendAngleStylesPropertyPage=i,t.LineToolTrendAngleInputsPropertyPage=n},403:function(e,t,o){"use strict";function i(e,t,o){a.call(this,e,t,o),this.prepareLayout()}function n(e,t,o){r.call(this,e,t,o)}var a=o(14),r=o(81),l=o(10),p=l.BooleanBinder,s=l.SimpleComboBinder,d=l.SliderBinder,h=l.ColorBinding,c=o(31).createLineStyleEditor,b=o(15).createLineWidthEditor;inherit(i,a),i.prototype.prepareLayout=function(){var e,t,o,i,n;this._table=$(document.createElement("table")),this._table.addClass("property-page"),this._table.attr("cellspacing","0"),this._table.attr("cellpadding","2"),e=b(),t=c(),o=this.createColorPicker(),i=this.addLabeledRow(this._table,"Line"),$("<td>").prependTo(i),$("<td>").append(o).appendTo(i),$("<td>").append(e).appendTo(i),$("<td>").append(t.render()).appendTo(i),n=$("<input type='checkbox' class='visibility-switch'>"),i=$("<tr>").appendTo(this._table),$("<td>").append(n).prependTo(i),this.createLabeledCell(2,"Show Time",n).appendTo(i),this.bindControl(new p(n,this._linetool.properties().showTime,!0,this.model(),"Change Vert Line Time Visibility")),this.bindControl(new h(o,this._linetool.properties().linecolor,!0,this.model(),"Change Vert Line Color")),this.bindControl(new s(t,this._linetool.properties().linestyle,parseInt,!0,this.model(),"Change Vert Line Style")),this.bindControl(new d(e,this._linetool.properties().linewidth,!0,this.model(),"Change Vert Line Width")),this.loadData()},i.prototype.widget=function(){return this._table},inherit(n,r),n.prototype.prepareLayout=function(){var e,t,o,i |
|||
;this._table=$('<table class="property-page" cellspacing="0" cellpadding="2">'),(e=this._linetool.points()[0])&&(t=$('<input type="text" class="ticker">'),o=$("<tr>").appendTo(this._table),$("<td>"+$.t("Bar #")+"</td>").appendTo(o),$("<td>").append(t).appendTo(o),i=this._linetool.properties().points[0],this.bindBarIndex(i.bar,t,this.model(),"Change "+this._linetool+" point bar index"),this.loadData())},t.LineToolVertLineStylesPropertyPage=i,t.LineToolVertLineInputsPropertyPage=n},407:function(e,t,o){(function(t){"use strict";function i(){}var n=o(10),a=n.PropertyPage,r=n.GreateTransformer,l=n.LessTransformer,p=n.ToIntTransformer,s=n.ToFloatTransformer,d=n.SimpleStringBinder,h=n.SimpleComboBinder,c=n.ColorBinding,b=n.BooleanBinder,u=n.SliderBinder,C=o(71),y=o(15).createLineWidthEditor,g=o(1121).createPriceSourceEditor,w=o(38).NumericFormatter;inherit(i,a),i.prototype.i18nCache=[window.t("Style"),window.t("Box size assignment method"),window.t("Color bars based on previous close"),window.t("Candles"),window.t("Borders"),window.t("Wick"),window.t("HLC Bars"),window.t("Price Source"),window.t("Type"),window.t("Show real prices on price scale (instead of Heikin-Ashi price)"),window.t("Up bars"),window.t("Down bars"),window.t("Projection up bars"),window.t("Projection down bars"),window.t("Line"),window.t("Fill"),window.t("Up Color"),window.t("Down Color"),window.t("Traditional"),window.t("ATR Length"),window.t("Number Of Line"),window.t("Reversal Amount"),window.t("Box Size")],i.prototype.getInputTitle=function(e,t){return"style"===e?window.t("Box size assignment method"):"boxSize"===e?window.t("Box Size"):t.inputInfo?t.inputInfo[e].name.value():e.toLowerCase().replace(/\b\w/g,function(e){return e.toUpperCase()})},i.prototype.prepareLayoutImpl=function(e,t,o,i){function n(t){b.refreshStateControls(c,e.inputs,o.inputs)}function a(e){return(new w).format(e)}var c,b,u,C,y,g,T,_,m,f,L,v,k,S,P,x,B,E;for(i=i||{},c={},b=this,u=0;u<e.inputs.length;u++){C=e.inputs[u],y=C.id,T="BarSetRenko@tv-prostudies"===e.name||"BarSetKagi@tv-prostudies"===e.name||"BarSetPriceBreak@tv-prostudies"===e.name,"BarSetPnF@tv-prostudies"===e.name&&"sources"===y&&(C.options=C.options.filter(function(e){return"HL"===e||"Close"===e}));try{g=this.getInputTitle(y,o)}catch(e){continue}if(("BarSetRenko@tv-prostudies"!==e.name||"wicks"!==y)&&(!T||"source"!==y)){if(_=$("<tr/>"),C.isHidden||_.appendTo(t),m=$("<td"+(i.nameColspan?' colspan = "'+i.nameColspan+'"':"")+"/>"),m.appendTo(_),m.addClass("propertypage-name-label"),m.text($.t(g)),f=$("<td"+(i.valueColspan?' colspan = "'+i.valueColspan+'"':"")+"/>"),f.appendTo(_),L=null,C.options)for(L=$("<select/>"),v=0;v<C.options.length;v++)k=C.options[v],$("<option value='"+k+"'>"+$.t(k)+"</option>").appendTo(L);else L=$("<input/>"),"bool"===C.type?L.attr("type","checkbox"):L.attr("type","text");L.appendTo(f),L.css("width","100px"),S="Change "+g,C.options?this.bindControl(new h(L,o.inputs[y],null,!0,this.model(),S)):"integer"===C.type?(P=[p(C.defval)],C.min&&P.push(r(C.min)),C.max&&P.push(l(C.max)), |
|||
this.bindControl(new d(L,o.inputs[y],P,!1,this.model(),S)),L.addClass("ticker")):"float"===C.type?(P=[s(C.defval)],C.min&&((("BarSetRenko@tv-prostudies"===e.id||"BarSetPnF@tv-prostudies"===e.id)&&"boxSize"===C.id||"BarSetKagi@tv-prostudies"===e.id&&"reversalAmount"===C.id)&&(B=this._model.model().mainSeries().symbolInfo(),x=B.minmov/B.pricescale),P.push(r(x||C.min))),C.max&&P.push(l(C.max)),E=new d(L,o.inputs[y],P,!1,this.model(),S),E.addFormatter(a),this.bindControl(E),L.addClass("ticker")):"text"===C.type&&this.bindControl(new d(L,this._property.inputs[y],null,!1,this.model(),S)),L.change(n),c[C.id]=_}}this.refreshStateControls(c,e.inputs,o.inputs)},i.prototype.getMetaInfo=function(e){var t,o=this._model.m_model._studiesMetaData;for(t=0;t<o.length;t++)if(o[t].id===e)return o[t];return null},i.prototype._isJapaneseChartsAvailable=function(){return!0},i.prototype._prepareSeriesStyleLayout=function(e,o,i,n){var a,s,w,T,_,m,f,L,v,k,S,P,x,B,E,R,F,I,A,D,W,O,V,j,z,M,H,q,N,G,U,Y,K,Q,J,Z,X,ee,te,oe,ie,ne,ae,re,le,pe,se,de,he,ce,be,ue,Ce,ye,ge,$e,we,Te,_e,me,fe,Le,ve,ke,Se,Pe,xe,Be,Ee,Re,Fe,Ie,Ae,De,We,Oe,Ve,je,ze,Me=$("<tbody>").appendTo(e),He=this._candlesColorerTbody=$("<tbody>").appendTo(o),qe=this._barsColorerTbody=$("<tbody>").appendTo(o),Ne=this._haColorerTbody=$("<tbody>").appendTo(o),Ge=this._candlesTbody=$("<tbody>").appendTo(i),Ue=this._hollowCandlesTbody=$("<tbody>").appendTo(i),Ye=this._haTbody=$("<tbody>").appendTo(i),Ke=this._barsTbody=$("<tbody>").appendTo(i),Qe=this._lineTbody=$("<tbody>").appendTo(i),Je=this._areaTbody=$("<tbody>").appendTo(i),Ze=this._renkoTbody=$("<tbody>").appendTo(i),Xe=this._pbTbody=$("<tbody>").appendTo(i),et=this._kagiTbody=$("<tbody>").appendTo(i),tt=this._pnfTbody=$("<tbody>").appendTo(i),ot=this._baselineTbody=$("<tbody>").appendTo(i),it=this.addLabeledRow(Me,"Style"),nt=$(document.createElement("td")).appendTo(it);nt.addClass("property-wide-select"),a=$(document.createElement("select")),$("<option value="+C.STYLE_BARS+">"+$.t("Bars")+"</option>").appendTo(a),$("<option value="+C.STYLE_CANDLES+">"+$.t("Candles")+"</option>").appendTo(a),$("<option value="+C.STYLE_HOLLOW_CANDLES+">"+$.t("Hollow Candles")+"</option>").appendTo(a),this._isJapaneseChartsAvailable()&&$("<option value="+C.STYLE_HEIKEN_ASHI+">"+$.t("Heikin Ashi")+"</option>").appendTo(a),$("<option value="+C.STYLE_LINE+">"+$.t("Line")+"</option>").appendTo(a),$("<option value="+C.STYLE_AREA+">"+$.t("Area")+"</option>").appendTo(a),$("<option value="+C.STYLE_BASELINE+">"+$.t("Baseline")+"</option>").appendTo(a),a.css("width","100px").appendTo(nt),this.switchStyle(),s=function(e){this._undoModel.setChartStyleProperty(this._property,e,this._undoText)},this.bindControl(new h(a,n.style,parseInt,!0,this.model(),"Change Series Style",s)),n.style.listeners().subscribe(this,this.switchStyle),w=this.createColorPicker(),T=this.createColorPicker(),_=this.createColorPicker(),m=this.createColorPicker(),f=this.createColorPicker(),L=this.createColorPicker(), |
|||
v=$("<input type='checkbox' class='visibility-switch'/>").data("hides",$(f).add(L)),k=$("<input type='checkbox' class='visibility-switch'/>").data("hides",$(_).add(m)),S=$("<input type='checkbox'/>"),P=this.addLabeledRow(He,"Color bars based on previous close",S),$("<td>").append(S).prependTo(P),P=this.addLabeledRow(Ge,"Candles"),$("<td>").prependTo(P),$("<td>").append(w).appendTo(P),$("<td>").append(T).appendTo(P),P=this.addLabeledRow(Ge,"Borders",v),$("<td>").append(v).prependTo(P),$("<td>").append(f).appendTo(P),$("<td>").append(L).appendTo(P),P=this.addLabeledRow(Ge,"Wick",k),$("<td>").append(k).prependTo(P),$("<td>").append(_).appendTo(P),$("<td>").append(m).appendTo(P),this.bindControl(new c(w,n.candleStyle.upColor,!0,this.model(),"Change Candle Up Color")),this.bindControl(new c(T,n.candleStyle.downColor,!0,this.model(),"Change Candle Down Color")),this.bindControl(new b(k,n.candleStyle.drawWick,!0,this.model(),"Change Candle Wick Visibility")),this.bindControl(new c(_,n.candleStyle.wickUpColor,!0,this.model(),"Change Candle Wick Up Color")),this.bindControl(new c(m,n.candleStyle.wickDownColor,!0,this.model(),"Change Candle Wick Down Color")),this.bindControl(new b(v,n.candleStyle.drawBorder,!0,this.model(),"Change Candle Border Visibility")),this.bindControl(new c(f,n.candleStyle.borderUpColor,!0,this.model(),"Change Candle Up Border Color")),this.bindControl(new c(L,n.candleStyle.borderDownColor,!0,this.model(),"Change Candle Down Border Color")),this.bindControl(new b(S,n.candleStyle.barColorsOnPrevClose,!0,this.model(),"Change Color Bars Based On Previous Close")),x=this.createColorPicker(),B=this.createColorPicker(),E=this.createColorPicker(),R=this.createColorPicker(),F=this.createColorPicker(),I=this.createColorPicker(),A=$("<input type='checkbox' class='visibility-switch'/>").data("hides",$(F).add(I)),D=$("<input type='checkbox' class='visibility-switch'/>").data("hides",$(E).add(R)),P=this.addLabeledRow(Ue,"Candles"),$("<td>").prependTo(P),$("<td>").append(x).appendTo(P),$("<td>").append(B).appendTo(P),P=this.addLabeledRow(Ue,"Borders",A),$("<td>").append(A).prependTo(P),$("<td>").append(F).appendTo(P),$("<td>").append(I).appendTo(P),P=this.addLabeledRow(Ue,"Wick",D),$("<td>").append(D).prependTo(P),$("<td>").append(E).appendTo(P),$("<td>").append(R).appendTo(P),this.bindControl(new c(x,n.hollowCandleStyle.upColor,!0,this.model(),"Change Hollow Candle Up Color")),this.bindControl(new c(B,n.hollowCandleStyle.downColor,!0,this.model(),"Change Hollow Candle Down Color")),this.bindControl(new b(D,n.hollowCandleStyle.drawWick,!0,this.model(),"Change Hollow Candle Wick Visibility")),this.bindControl(new c(E,n.hollowCandleStyle.wickUpColor,!0,this.model(),"Change Hollow Candle Wick Up Color")),this.bindControl(new c(R,n.hollowCandleStyle.wickDownColor,!0,this.model(),"Change Hollow Candle Down Wick Color")),this.bindControl(new b(A,n.hollowCandleStyle.drawBorder,!0,this.model(),"Change Hollow Candle Border Visibility")), |
|||
this.bindControl(new c(F,n.hollowCandleStyle.borderUpColor,!0,this.model(),"Change Hollow Candle Up Border Color")),this.bindControl(new c(I,n.hollowCandleStyle.borderDownColor,!0,this.model(),"Change Hollow Candle Down Border Color")),W=$("<input type='checkbox'/>"),P=this.addLabeledRow(qe,"Color bars based on previous close",W),$("<td>").append(W).prependTo(P),O=$("<input type='checkbox'/>"),P=this.addLabeledRow(qe,"HLC Bars",O),$("<td>").append(O).prependTo(P),V=this.addColorPickerRow(Ke,"Up Color"),j=this.addColorPickerRow(Ke,"Down Color"),this.bindControl(new c(V,n.barStyle.upColor,!0,this.model(),"Change Bar Up Color")),this.bindControl(new c(j,n.barStyle.downColor,!0,this.model(),"Change Bar Down Color")),this.bindControl(new b(W,n.barStyle.barColorsOnPrevClose,!0,this.model(),"Change Color Bars Based On Previous Close")),this.bindControl(new b(O,n.barStyle.dontDrawOpen,!0,this.model(),"Change HLC Bars")),z=g(),P=this.addLabeledRow(Qe,"Price Source"),$('<td colspan="3">').append(z).appendTo(P),M=this.addLabeledRow(Qe,"Type"),H=$('<td colspan="3">').appendTo(M),H.addClass("property-wide-select"),q=$(document.createElement("select")),$("<option value="+C.STYLE_LINE_TYPE_SIMPLE+">"+$.t("Simple")+"</option>").appendTo(q),$("<option value="+C.STYLE_LINE_TYPE_MARKERS+">"+$.t("With Markers")+"</option>").appendTo(q),$("<option value="+C.STYLE_LINE_TYPE_STEP+">"+$.t("Step")+"</option>").appendTo(q),q.appendTo(H),P=this.addLabeledRow(Qe,"Line"),N=this.createColorPicker(),G=y(),$("<td>").append(N).appendTo(P),$("<td>").append(G).appendTo(P),this.bindControl(new h(z,n.lineStyle.priceSource,null,!0,this.model(),"Change Price Source")),this.bindControl(new h(q,n.lineStyle.styleType,parseInt,!0,this.model(),"Change Line Type")),this.bindControl(new c(N,n.lineStyle.color,!0,this.model(),"Change Line Color")),this.bindControl(new u(G,n.lineStyle.linewidth,!0,this.model(),"Change Line Width")),n.haStyle&&(U=this.createColorPicker(),Y=this.createColorPicker(),K=this.createColorPicker(),Q=this.createColorPicker(),J=this.createColorPicker(),Z=this.createColorPicker(),X=$("<input type='checkbox' class='visibility-switch'/>").data("hides",$(J).add(Z)),ee=$("<input type='checkbox' class='visibility-switch'/>").data("hides",$(K).add(Q)),te=$("<input type='checkbox'/>"),P=this.addLabeledRow(Ne,$.t("Color bars based on previous close"),te),$("<td>").append(te).prependTo(P),P=this.addLabeledRow(Ye,$.t("Candles")),$("<td>").prependTo(P),$("<td>").append(U).appendTo(P),$("<td>").append(Y).appendTo(P),P=this.addLabeledRow(Ye,$.t("Borders"),X),$("<td>").append(X).prependTo(P),$("<td>").append(J).appendTo(P),$("<td>").append(Z).appendTo(P),P=this.addLabeledRow(Ye,$.t("Wick"),ee),$("<td>").append(ee).prependTo(P),$("<td>").append(K).appendTo(P),$("<td>").append(Q).appendTo(P),this.bindControl(new c(U,n.haStyle.upColor,!0,this.model(),"Change Heikin Ashi Up Color")),this.bindControl(new c(Y,n.haStyle.downColor,!0,this.model(),"Change Heikin Ashi Down Color")), |
|||
this.bindControl(new b(ee,n.haStyle.drawWick,!0,this.model(),"Change Heikin Ashi Wick Visibility")),this.bindControl(new c(K,n.haStyle.wickUpColor,!0,this.model(),"Change Heikin Ashi Wick Up Color")),this.bindControl(new c(Q,n.haStyle.wickDownColor,!0,this.model(),"Change Heikin Ashi Wick Down Color")),this.bindControl(new b(X,n.haStyle.drawBorder,!0,this.model(),"Change Heikin Ashi Border Visibility")),this.bindControl(new c(J,n.haStyle.borderUpColor,!0,this.model(),"Change Heikin Ashi Up Border Color")),this.bindControl(new c(Z,n.haStyle.borderDownColor,!0,this.model(),"Change Heikin Ashi Down Border Color")),this.bindControl(new b(te,n.haStyle.barColorsOnPrevClose,!0,this.model(),"Change Color Bars Based On Previous Close"))),this._isJapaneseChartsAvailable()&&t.enabled("japanese_chart_styles")&&($("<option value="+C.STYLE_RENKO+">"+$.t("Renko")+"</option>").appendTo(a),$("<option value="+C.STYLE_PB+">"+$.t("Line Break")+"</option>").appendTo(a),$("<option value="+C.STYLE_KAGI+">"+$.t("Kagi")+"</option>").appendTo(a),$("<option value="+C.STYLE_PNF+">"+$.t("Point & Figure")+"</option>").appendTo(a),oe=this.createColorPicker(),ie=this.createColorPicker(),P=this.addLabeledRow(Ze,"Up bars"),$("<td>").prependTo(P),$('<td class="some-colorpicker">').append(oe).append(ie).appendTo(P),ne=this.createColorPicker(),ae=this.createColorPicker(),P=this.addLabeledRow(Ze,"Down bars"),$("<td>").prependTo(P),$('<td class="some-colorpicker">').append(ne).append(ae).appendTo(P),re=this.createColorPicker(),le=this.createColorPicker(),P=this.addLabeledRow(Ze,"Projection up bars"),$("<td>").prependTo(P),$('<td class="some-colorpicker">').append(re).append(le).appendTo(P),pe=this.createColorPicker(),se=this.createColorPicker(),P=this.addLabeledRow(Ze,"Projection down bars"),$("<td>").prependTo(P),$('<td class="some-colorpicker">').append(pe).append(se).appendTo(P),this.prepareLayoutImpl(this.getMetaInfo("BarSetRenko@tv-prostudies"),Ze,n.renkoStyle,{nameColspan:2}),this.bindControl(new c(oe,n.renkoStyle.upColor,!0,this.model(),"Change Bar Up Color")),this.bindControl(new c(ne,n.renkoStyle.downColor,!0,this.model(),"Change Bar Down Color")),this.bindControl(new c(re,n.renkoStyle.upColorProjection,!0,this.model(),"Change Projection Bar Up Color")),this.bindControl(new c(pe,n.renkoStyle.downColorProjection,!0,this.model(),"Change Projection Bar Down Color")),this.bindControl(new c(ie,n.renkoStyle.borderUpColor,!0,this.model(),"Change Border Bar Up Color")),this.bindControl(new c(ae,n.renkoStyle.borderDownColor,!0,this.model(),"Change Border Bar Down Color")),this.bindControl(new c(le,n.renkoStyle.borderUpColorProjection,!0,this.model(),"Change Projection Border Bar Up Color")),this.bindControl(new c(se,n.renkoStyle.borderDownColorProjection,!0,this.model(),"Change Projection Border Bar Down Color")),de=this.createColorPicker(),he=this.createColorPicker(),P=this.addLabeledRow(Xe,"Up bars"),$('<td class="some-colorpicker">').append(de).append(he).appendTo(P),ce=this.createColorPicker(),be=this.createColorPicker(), |
|||
P=this.addLabeledRow(Xe,"Down bars"),$('<td class="some-colorpicker">').append(ce).append(be).appendTo(P),ue=this.createColorPicker(),Ce=this.createColorPicker(),P=this.addLabeledRow(Xe,"Projection up bars"),$('<td class="some-colorpicker">').append(ue).append(Ce).appendTo(P),ye=this.createColorPicker(),ge=this.createColorPicker(),P=this.addLabeledRow(Xe,"Projection down bars"),$('<td class="some-colorpicker">').append(ye).append(ge).appendTo(P),this.prepareLayoutImpl(this.getMetaInfo("BarSetPriceBreak@tv-prostudies"),Xe,n.pbStyle,{valueColspan:2}),this.bindControl(new c(de,n.pbStyle.upColor,!0,this.model(),"Change Bar Up Color")),this.bindControl(new c(ce,n.pbStyle.downColor,!0,this.model(),"Change Bar Down Color")),this.bindControl(new c(ue,n.pbStyle.upColorProjection,!0,this.model(),"Change Projection Bar Up Color")),this.bindControl(new c(ye,n.pbStyle.downColorProjection,!0,this.model(),"Change Projection Bar Down Color")),this.bindControl(new c(he,n.pbStyle.borderUpColor,!0,this.model(),"Change Border Bar Up Color")),this.bindControl(new c(be,n.pbStyle.borderDownColor,!0,this.model(),"Change Border Bar Down Color")),this.bindControl(new c(Ce,n.pbStyle.borderUpColorProjection,!0,this.model(),"Change Projection Border Bar Up Color")),this.bindControl(new c(ge,n.pbStyle.borderDownColorProjection,!0,this.model(),"Change Projection Border Bar Down Color")),$e=this.addColorPickerRow(et,"Up bars"),we=this.addColorPickerRow(et,"Down bars"),Te=this.addColorPickerRow(et,"Projection up bars"),_e=this.addColorPickerRow(et,"Projection down bars"),this.prepareLayoutImpl(this.getMetaInfo("BarSetKagi@tv-prostudies"),et,n.kagiStyle),this.bindControl(new c($e,n.kagiStyle.upColor,!0,this.model(),"Change Bar Up Color")),this.bindControl(new c(we,n.kagiStyle.downColor,!0,this.model(),"Change Bar Down Color")),this.bindControl(new c(Te,n.kagiStyle.upColorProjection,!0,this.model(),"Change Projection Bar Up Color")),this.bindControl(new c(_e,n.kagiStyle.downColorProjection,!0,this.model(),"Change Projection Bar Down Color")),me=this.addColorPickerRow(tt,"Up bars"),fe=this.addColorPickerRow(tt,"Down bars"),Le=this.addColorPickerRow(tt,"Projection up bars"),ve=this.addColorPickerRow(tt,"Projection down bars"),this.prepareLayoutImpl(this.getMetaInfo("BarSetPnF@tv-prostudies"),tt,n.pnfStyle),this.bindControl(new c(me,n.pnfStyle.upColor,!0,this.model(),"Change Bar Up Color")),this.bindControl(new c(fe,n.pnfStyle.downColor,!0,this.model(),"Change Bar Down Color")),this.bindControl(new c(Le,n.pnfStyle.upColorProjection,!0,this.model(),"Change Projection Bar Up Color")),this.bindControl(new c(ve,n.pnfStyle.downColorProjection,!0,this.model(),"Change Projection Bar Down Color"))),ke=g(),P=this.addLabeledRow(Je,"Price Source"),$('<td colspan="3">').appendTo(P).append(ke),Se=this.createColorPicker(),Pe=y(),P=this.addLabeledRow(Je,"Line"),$("<td>").appendTo(P).append(Se),$('<td colspan="2">').appendTo(P).append(Pe),xe=this.createColorPicker(),Be=this.createColorPicker(),P=this.addLabeledRow(Je,"Fill"),$("<td>").appendTo(P).append(xe), |
|||
$("<td>").appendTo(P).append(Be),this.bindControl(new h(ke,n.areaStyle.priceSource,null,!0,this.model(),"Change Price Source")),this.bindControl(new c(Se,n.areaStyle.linecolor,!0,this.model(),"Change Line Color")),this.bindControl(new u(Pe,n.areaStyle.linewidth,!0,this.model(),"Change Line Width")),this.bindControl(new c(xe,n.areaStyle.color1,!0,this.model(),"Change Line Color",n.areaStyle.transparency)),this.bindControl(new c(Be,n.areaStyle.color2,!0,this.model(),"Change Line Color",n.areaStyle.transparency)),Ee=g(),P=this.addLabeledRow(ot,window.t("Price Source")),$('<td colspan="3">').appendTo(P).append(Ee),this.bindControl(new h(Ee,n.baselineStyle.priceSource,null,!0,this.model(),"Change Price Source")),Re=this.createColorPicker(),Fe=y(),P=this.addLabeledRow(ot,window.t("Top Line")),$("<td>").appendTo(P).append(Re),$("<td>").appendTo(P).append(Fe),this.bindControl(new c(Re,n.baselineStyle.topLineColor,!0,this.model(),"Change Top Line Color")),this.bindControl(new u(Fe,n.baselineStyle.topLineWidth,!0,this.model(),"Change Top Line Width")),Ie=this.createColorPicker(),Ae=y(),P=this.addLabeledRow(ot,window.t("Bottom Line")),$("<td>").appendTo(P).append(Ie),$("<td>").appendTo(P).append(Ae),this.bindControl(new c(Ie,n.baselineStyle.bottomLineColor,!0,this.model(),"Change Bottom Line Color")),this.bindControl(new u(Ae,n.baselineStyle.bottomLineWidth,!0,this.model(),"Change Bottom Line Width")),De=this.createColorPicker(),We=this.createColorPicker(),P=this.addLabeledRow(ot,window.t("Fill Top Area")),$("<td>").appendTo(P).append(De),$("<td>").appendTo(P).append(We),this.bindControl(new c(De,n.baselineStyle.topFillColor1,!0,this.model(),"Change Fill Top Area Color 1"),n.baselineStyle.transparency),this.bindControl(new c(We,n.baselineStyle.topFillColor2,!0,this.model(),"Change Fill Top Area Color 2"),n.baselineStyle.transparency),Oe=this.createColorPicker(),Ve=this.createColorPicker(),P=this.addLabeledRow(ot,window.t("Fill Bottom Area")),$("<td>").appendTo(P).append(Oe),$("<td>").appendTo(P).append(Ve),this.bindControl(new c(Oe,n.baselineStyle.bottomFillColor1,!0,this.model(),"Change Fill Bottom Area Color 1"),n.baselineStyle.transparency),this.bindControl(new c(Ve,n.baselineStyle.bottomFillColor2,!0,this.model(),"Change Fill Bottom Area Color 2"),n.baselineStyle.transparency),P=this.addLabeledRow(ot,window.t("Base Level")),je=$('<input type="text" class="ticker">'),$('<td colspan="2">').appendTo(P).append($("<span></span>").append(je)).append($('<span class="percents-label">%</span>')),ze=[p(n.baselineStyle.baseLevelPercentage.value()),l(100),r(0)],this.bindControl(new d(je,n.baselineStyle.baseLevelPercentage,ze,!0,this.model(),"Change Base Level"))},e.exports=i}).call(t,o(7))},476:function(e,t,o){"use strict";function i(){var e=$("<select />");return $('<option value="'+n.PlotType.Line+'">'+$.t("Line")+"</option>").appendTo(e),$('<option value="'+n.PlotType.LineWithBreaks+'">'+$.t("Line With Breaks")+"</option>").appendTo(e),$('<option value="'+n.PlotType.Histogram+'">'+$.t("Histogram")+"</option>").appendTo(e), |
|||
$('<option value="'+n.PlotType.Cross+'">'+$.t("Cross",{context:"chart_type"})+"</option>").appendTo(e),$('<option value="'+n.PlotType.Area+'">'+$.t("Area")+"</option>").appendTo(e),$('<option value="'+n.PlotType.AreaWithBreaks+'">'+$.t("Area With Breaks")+"</option>").appendTo(e),$('<option value="'+n.PlotType.Columns+'">'+$.t("Columns")+"</option>").appendTo(e),$('<option value="'+n.PlotType.Circles+'">'+$.t("Circles")+"</option>").appendTo(e),e}Object.defineProperty(t,"__esModule",{value:!0}),o(22),o(23);var n=o(106);t.createPlotEditor=i},738:function(e,t,o){"use strict";function i(e){return this.jqObj=null,this.data=e,this.init(),this._prepareValue(),this._prepareCallback(),this._prepareChildren(),this._applyAttributes(),this.jqObj}function n(e,t){this.value=e,this.html=t||"",this.jqItem=this._render()}function a(e){this._value=null,this.items=[],this.width=0,this.jqWrapper=null,this.jqSwitcher=null,this.jqTitle=null,this.jqIcon=null,this.jqItems=null,this.callbacks=[],this._init(),this.addItems(e),this.joinParts()}var r=o(206);i.selectOptions={type:"option",value:null,html:null},i.optionsData={radiogroup:{type:"radio",name:null,value:null,label:null},select:i.selectOptions,"select-one":i.selectOptions,"select-multiple":i.selectOptions},i.customTypes=["radiogroup","fontpicker","colorpicker","combobox"],i.prototype._tagIsInput=function(e){return-1!==jQuery.inArray(this.data.type,["text","radio","checkbox","hidden","reset","image","file"])},i.prototype.init=function(){this._tagIsInput()?this.jqObj=r.create("input",{name:this.data.name,type:this.data.type}):this.jqObj=r.create(this.data.type,{name:this.data.name})},i.prototype._eventIsKeyUp=function(){return-1!==jQuery.inArray(this.data.type,["text","textarea"])},i.prototype._eventIsClick=function(){return-1!==jQuery.inArray(this.data.type,["checkbox","radio","option"])},i.prototype._eventIsChange=function(){return-1!==jQuery.inArray(this.data.type,["select","select-one","select-multiple","radiogroup"])},i.prototype._prepareCallback=function(){this.data.callback&&(this._eventIsKeyUp()?this.jqObj.keyup(this.data.callback):this._eventIsClick()?this.jqObj.click(this.data.callback):this._eventIsChange()&&this.jqObj.bind("change",this.data.callback),delete this.data.callback)},i.prototype._childTag=function(){return{select:"option","select-one":"option","select-multiple":"option",radiogroup:"radio"}[this.data.type]},i.prototype._inheritedProperties=function(){var e={type:this._childTag()};return"radiogroup"===this.data.type&&(e.name=this.data.name),e},i.prototype._extendChildProps=function(e){var t=jQuery.extend(this._inheritedProperties(),e);return this.data.value===e.value&&(t.selected=!0),t},i.prototype._prepareChildren=function(){if(this.data.options){var e=this;jQuery.each(this.data.options,function(t,o){e.jqObj.append(new i(e._extendChildProps(o)))})}},i.prototype.isCustom=function(){return-1!==jQuery.inArray(this.data.type,this.customTypes)},i.prototype._isStoringValue=function(){ |
|||
return-1!==jQuery.inArray(this.data.type,["text","textarea","option","radio","checkbox"])},i.prototype._htmlAsValue=function(){return"textarea"===this.data.type},i.prototype._valAsValue=function(){return jQuery.inArray(this.data.type,["text","checkbox","radio","option","select","select-one","select-multiple"])},i.prototype._getControlValue=function(){return{checkbox:1}[this.data.type]||this.data.value},i.prototype._setControlValue=function(){this._valAsValue()?this.jqObj.val(this._getControlValue()):this._htmlAsValue()&&this.jqObj.html(this.data.value)},i.prototype._getCheckedAttr=function(){return{option:"selected",radio:"checked",checkbox:"checked"}[this.data.type]},i.prototype._setChecked=function(){this.data.selected&&this.jqObj.attr(this._getCheckedAttr(),!0)},i.prototype._setValue=function(){this._setControlValue(),i.isCheckable(this.data.type)&&this._setChecked()},i.prototype._prepareValue=function(){this._isStoringValue()&&this._setValue()},i.prototype._applyAttributes=function(){this.jqObj.attr(r.cleanAttributes(this.data))},i.value=function(e){return i.controlCheckable(e)?e.checked:e.value},i.isCheckable=function(e){return-1!==jQuery.inArray(e,["checkbox","radio","option"])},i.controlType=function(e){var t,o;return"string"==typeof e?e:(t=jQuery(e),o=null,t.attr("type")&&(o=t.attr("type"),jQuery.inArray(o,["textarea","text","select","select-one","select-multiple","submit"]))?o:t.attr("tagName"))},i.controlCheckable=function(e){return i.isCheckable(i.controlType(e))},i.controlToggleChecked=function(e,t){return o(205).setAttr(e,"checked",t)},i.controlSetValue=function(e,t){return i.controlCheckable(e)?i.controlToggleChecked(e,t):o(205).setAttr(e,"value",t)},i.currentOption=function(e){return e.options[e.selectedIndex]},i.currentOptionInnerHTML=function(e){return i.currentOption(e).innerHTML},n.prototype.eq=function(e){return this.value===e},n.prototype.width=function(e){return this.jqItem.width()},n.prototype._render=function(e){var t=$("<span/>").append($(this.html).clone());return $('<div class="item"></div>').append(t)},n.prototype.render=function(e){return this.jqItem},n.prototype.select=function(e){e?this.jqItem.addClass("selected"):this.jqItem.removeClass("selected")},n.prototype.selectAndReturnIfValueMatch=function(e){return this.eq(e)?(this.select(!0),this):(this.select(!1),null)},a.prototype._init=function(){this._initWrapper(),this._initSwitcher(),this._initOptions()},a.prototype._initTitle=function(){this.jqTitle=$('<span class="title" />')},a.prototype._initIcon=function(){this.jqIcon=$('<span class="icon" />')},a.prototype._initOptions=function(){var e=o(205);this.jqItems=e.createPopup({class:"items"})},a.prototype._initWrapper=function(){this.jqWrapper=$('<div class="custom-select" />'),this.jqWrapper.data({disable:this.disable.bind(this),enable:this.enable.bind(this)})},a.prototype._initSwitcher=function(){var e=this;this._initTitle(),this._initIcon(),this.jqSwitcher=$('<div class="switcher" />'),this.jqSwitcher.append(this.jqTitle),this.jqSwitcher.append($(this.jqIcon).clone()),this.opened=!1, |
|||
this.jqSwitcher.click(function(t){e.toggleItems()}),e=this,$(document).click(function(t){$(t.target).closest(e.jqSwitcher).length||(!e.jqSwitcher.is(t.target)&&0===e.jqSwitcher.has(t.target).length||!e.jqItems.is(t.target)&&0===!e.jqItems.has(t.target).length)&&e.opened&&(e.jqItems.hide(),e.opened=!1,e.jqSwitcher.removeClass("open"),t.stopPropagation())})},a.prototype.toggleItems=function(){this.disabled()||(this.opened?(this.jqItems.hide(),this.jqSwitcher.removeClass("open"),this.opened=!1):(this.jqItems.show(),this.jqSwitcher.addClass("open"),this.opened=!0))},a.prototype.setWidth=function(){this.jqWrapper.width(this.width)},a.prototype.joinParts=function(){this.jqWrapper.append(this.jqSwitcher),this.jqWrapper.append(this.jqItems),this.jqWrapper.selectable(!1)},a.prototype.render=function(){return this.jqWrapper},a.prototype.selectItemByValue=function(e){var t=null;return $(this.items).each(function(o,i){var n=i.selectAndReturnIfValueMatch(e);n&&(t=n)}),t},a.prototype.setValue=function(e){if(this._value!==e){var t=this.selectItemByValue(e);this._value=e,this.jqTitle.html(t.html),this.change()}},a.prototype.change=function(e){if(e)return void this.callbacks.push(e);this.callbacks.forEach(function(e){e.call(this)}.bind(this))},a.prototype.value=function(){return this._value},a.prototype.val=function(e){return void 0!==e?void this.setValue(e):this.value()},a.prototype.addItems=function(e){var t=this;$(e).each(function(e,o){t.addItem(o.value,o.html)})},a.prototype.addItem=function(e,t){var o,i=this,a=new n(e,t);this.items.push(a),o=a.render(),o.click(function(){i.setValue(e),i.toggleItems()}),this.jqItems.append(o),null===this.value()&&this.setValue(e)},a.prototype.disable=function(){this._disabled=!0},a.prototype.enable=function(){this._disabled=!1},a.prototype.disabled=function(){return this._disabled},t.Input=i,t.Combobox=a},746:function(e,t,o){(function(t){"use strict";function i(e,t,o){var i,n,a=t.m_model.properties();l.call(this,a,t),i=this._series=t.mainSeries(),this._chart=t.m_model,this._model=t,this._source=o,this._property=a,this._seriesProperty=i.properties(),this._scaleProperty=i.m_priceScale.properties(),this._mainAxisProperty=i.properties().priceAxisProperties,n=null,$.each(t.m_model.panes(),function(e,t){$.each(t.dataSources(),function(e,o){if(o===i)return n=t,!1})}),this._pane=n,this.prepareLayout(),this._themes=[],this.supportThemeSwitcher=!1}var n=o(407),a=(o(76).UndoHistory,o(121)),r=o(10),l=r.PropertyPage,p=r.GreateTransformer,s=r.LessTransformer,d=r.ToIntTransformer,h=r.SimpleStringBinder,c=r.BooleanBinder,b=r.SliderBinder,u=r.ColorBinding,C=r.SimpleComboBinder,y=r.DisabledBinder,g=r.CheckboxWVBinding,w=o(71),T=o(37),_=o(47).addColorPicker,m=o(31).createLineStyleEditor,f=o(15).createLineWidthEditor,L=(o(103).bindPopupMenu,o(11).DefaultProperty),v=o(226).availableTimezones,k=o(309);o(123).createConfirmDialog,o(13).getLogger("Chart.PropertyPage"),o(48).trackEvent;inherit(i,l),inherit(i,n),i.prototype.setScalesOpenTab=function(){ |
|||
this.scalesTab&&this.scalesTab.data("layout-tab-open",a.TabOpenFrom.Override)},i.prototype.setTmzOpenTab=function(){this.tmzSessTable&&this.tmzSessTable.data("layout-tab-open",a.TabOpenFrom.Override)},i.prototype.prepareLayout=function(){var e,o,i,n,r,l,L,S,P,x,B,E,R,F,I,A,D,W,O,V,j,z,M,H,q,N,G,U,Y,K,Q,J,Z,X,ee,te,oe,ie,ne,ae,re,le,pe,se,de,he,ce,be,ue,Ce,ye,ge,$e,we,Te,_e,me,fe,Le,ve,ke,Se,Pe,xe,Be,Ee,Re,Fe,Ie,Ae,De,We,Oe,Ve,je,ze,Me,He,qe,Ne,Ge,Ue,Ye,Ke,Qe,Je,Ze,Xe,et,tt,ot,it,nt,at,rt,lt,pt,st,dt,ht,ct,bt,ut,Ct,yt,gt,$t,wt,Tt,_t,mt,ft,Lt,vt,kt,St,Pt,xt,Bt,Et,Rt,Ft,It,At,Dt,Wt,Ot,Vt=this;if(t.enabled("chart_property_page_style")&&(e=$('<table class="property-page" cellspacing="0" cellpadding="2">').data("layout-tab",a.TabNames.style),o=$('<table class="property-page" cellspacing="0" cellpadding="2">').data("layout-tab",a.TabNames.style),i=$('<table class="property-page" cellspacing="0" cellpadding="2">').data("layout-tab",a.TabNames.style),this._prepareSeriesStyleLayout(e,o,i,this._seriesProperty),this._hasSeriesStyleLayout=!0,l=$('<table class="property-page" cellspacing="0" cellpadding="2">').data("layout-tab",a.TabNames.style),I=$('<input type="checkbox">'),A=this.addLabeledRow(l,$.t("Price Line"),I),$("<td>").append(I).prependTo(A),this.bindControl(new c(I,this._seriesProperty.showPriceLine,!0,this.model(),"Change Price Price Line")),D=_($("<td>").appendTo(A)),this.bindControl(new u(D,this._seriesProperty.priceLineColor,!0,this.model(),"Change Price Line Color")),W=f(),$('<td colspan="2">').append(W).appendTo(A),this.bindControl(new b(W,this._seriesProperty.priceLineWidth,!0,this.model(),"Change Price Line Width")),O=$('<input type="checkbox">'),V=this.addLabeledRow(l,$.t("Previous Close Price Line"),O),$("<td>").append(O).prependTo(V),this.bindControl(new c(O,this._seriesProperty.showPrevClosePriceLine,!0,this.model(),"Change Price Previous Close Price Line")),this.bindControl(new y(O,this._series.isPrevClosePriceAvailable(),!0,this.model(),"Change Price Previous Close Price Line",!0)),j=this.createColorPicker(),$("<td>").append(j).appendTo(V),this.bindControl(new u(j,this._seriesProperty.prevClosePriceLineColor,!0,this.model(),"Change Previous Close Price Line Color")),W=f(),$("<td>").append(W).appendTo(V),this.bindControl(new b(W,this._seriesProperty.prevClosePriceLineWidth,!0,this.model(),"Change Previous Close Price Line Width")),S=$('<table class="property-page" cellspacing="0" cellpadding="2">').data("layout-tab",a.TabNames.style),this._pane&&(-1!==this._pane.leftPriceScale().dataSources().indexOf(this._series)?z="left":-1!==this._pane.rightPriceScale().dataSources().indexOf(this._series)?z="right":this._pane.isOverlay(this._series)&&(z="none")),z&&(M={left:$.t("Scale Left"),right:$.t("Scale Right")},Vt._pane.actionNoScaleIsEnabled(Vt._series)&&(M.none=$.t("Screen (No Scale)")),H=this.createKeyCombo(M).val(z).change(function(){switch(this.value){case"left":Vt._model.move(Vt._series,Vt._pane,Vt._pane.leftPriceScale());break;case"right":Vt._model.move(Vt._series,Vt._pane,Vt._pane.rightPriceScale());break |
|||
;case"none":Vt._model.move(Vt._series,Vt._pane,null)}}),q=this.addRow(S),$("<td>"+$.t("Scale")+"</td>").appendTo(q),$("<td>").appendTo(q).append(H))),t.enabled("chart_property_page_scales")&&(N=$('<table class="property-page" cellspacing="0" cellpadding="2">').data("layout-tab",a.TabNames.scales),G=$('<input type="checkbox">').change(function(){this.checked&&setTimeout(function(){Vt._model.m_model.invalidate(new T(T.LIGHT_UPDATE))},0)}),U=this.addLabeledRow(N,$.t("Auto Scale"),G),Y=function(e){this._undoModel.setAutoScaleProperty(this._property,e,Vt._series.priceScale(),this._undoText)},$("<td>").append(G).prependTo(U),this.bindControl(new c(G,this._scaleProperty.autoScale,!0,this.model(),"Auto Scale",Y)),this.bindControl(new y(G,this._scaleProperty.autoScaleDisabled,!0,this.model(),"Auto Scale")),K=$('<input type="checkbox">'),Q=this.addLabeledRow(N,$.t("Percentage"),K),J=function(e){this._undoModel.setPercentProperty(this._property,e,Vt._series.priceScale(),this._undoText)},$("<td>").append(K).prependTo(Q),this.bindControl(new c(K,this._mainAxisProperty.percentage,!0,this.model(),"Scale Percentage",J)),this.bindControl(new y(K,this._mainAxisProperty.percentageDisabled,!0,this.model(),"Scale Percentage")),Z=$('<input type="checkbox">'),X=this.addLabeledRow(N,$.t("Log Scale"),Z),ee=function(e){this._undoModel.setLogProperty(this._property,e,Vt._series.priceScale(),this._undoText)},$("<td>").append(Z).prependTo(X),this.bindControl(new c(Z,this._mainAxisProperty.log,!0,this.model(),"Log Scale",ee)),this.bindControl(new y(Z,this._mainAxisProperty.logDisabled,!0,this.model(),"Log Scale")),te=$('<input type="checkbox">').change(function(){this.checked&&setTimeout(function(){Vt._model.m_model.invalidate(new T(T.LIGHT_UPDATE))},0)}),oe=this.addLabeledRow(N,$.t("Scale Series Only"),te),$("<td>").append(te).prependTo(oe),this.bindControl(new c(te,this._property.scalesProperties.scaleSeriesOnly,!0,this.model(),"Scale Series Only")),ie=$("<input type='checkbox'/>"),ne=this.addLabeledRow(N,$.t("Lock scale"),ie),ae=function(e){this._undoModel.setLockScaleProperty(this._property,e,Vt._series,this._undoText)},re=function(e){ne.toggle(e.value()===w.STYLE_PNF)},$("<td>").append(ie).prependTo(ne),this.bindControl(new c(ie,this._seriesProperty.lockScale,!0,this.model(),"Change lock scale",ae)),this._seriesProperty.style.listeners().subscribe(this,re),t.enabled("support_multicharts")&&(le=$("<input type='checkbox'/>"),pe=this.addLabeledRow(N,$.t("Track time"),le),$("<td>").append(le).prependTo(pe),this.bindControl(new g(le,this._model.trackTime(),null,"Change track time"))),se=$('<table class="property-page" cellspacing="0" cellpadding="2">').data("layout-tab",a.TabNames.scales),de=$('<input type="text" class="ticker">'),he=this.addLabeledRow(se,$.t("Top Margin"),de),$("<td>").appendTo(he).append(de),$("<td>%</td>").appendTo(he),ce=[d(this._property.paneProperties.topMargin.value())],ce.push(s(25)),ce.push(p(0)),this.bindControl(new h(de,this._property.paneProperties.topMargin,ce,!0,this.model(),"Top Margin")), |
|||
be=$('<input type="text" class="ticker">'),ue=this.addLabeledRow(se,$.t("Bottom Margin"),be),$("<td>").appendTo(ue).append(be),$("<td>%</td>").appendTo(ue),Ce=[d(this._property.paneProperties.bottomMargin.value())],Ce.push(s(25)),Ce.push(p(0)),this.bindControl(new h(be,this._property.paneProperties.bottomMargin,Ce,!0,this.model(),"Bottom Margin")),ye=$('<input type="text" class="ticker">'),ge=this.addLabeledRow(se,$.t("Right Margin"),ye),$("<td>").appendTo(ge).append(ye),$("<td>"+$.t("bars",{context:"margin"})+"</td>").appendTo(ge),$e=[d(this._property.timeScale.rightOffset.value())],$e.push(s(~~this._chart.timeScale().maxRightOffset())),$e.push(p(-200)),this.bindControl(new h(ye,this._property.timeScale.rightOffset,$e,!0,this.model(),"Right Margin")),we=$('<table class="property-page" cellspacing="0" cellpadding="2">').data("layout-tab",a.TabNames.scales),Te=$("<input type='checkbox' />"),_e=this.addLabeledRow(we,$.t("Left Axis"),Te),$("<td>").append(Te).prependTo(_e),setTimeout(function(){this.bindControl(new c(Te,this._property.scalesProperties.showLeftScale,!0,this.model(),"Show Left Axis"))}.bind(this),0),me=$("<input type='checkbox' />"),fe=this.addLabeledRow(we,$.t("Right Axis"),me),$("<td>").append(me).prependTo(fe),setTimeout(function(){this.bindControl(new c(me,this._property.scalesProperties.showRightScale,!0,this.model(),"Show Right Axis"))}.bind(this),0),t.enabled("countdown")&&(Le=$("<input type='checkbox'>"),ve=this.addLabeledRow(we,$.t("Countdown"),Le),$("<td>").append(Le).prependTo(ve),this.bindControl(new c(Le,this._seriesProperty.showCountdown,!0,this.model(),"Change Show Countdown"))),ke=$('<input type="checkbox">'),Se=this.addLabeledRow(we,$.t("Symbol Last Value"),ke),$("<td>").append(ke).prependTo(Se),this.bindControl(new c(ke,this._property.scalesProperties.showSeriesLastValue,!0,this.model(),"Change Symbol Last Value Visibility")),Pe=$('<input type="checkbox">'),xe=this.addLabeledRow(we,$.t("Symbol Prev. Close Value"),Pe),$("<td>").append(Pe).prependTo(xe),this.bindControl(new c(Pe,this._property.scalesProperties.showSeriesPrevCloseValue,!0,this.model(),"Change Symbol Previous Close Value Visibility")),this.bindControl(new y(Pe,this._series.isPrevClosePriceAvailable(),!0,this.model(),"Change Symbol Previous Close Value Visibility",!0)),Be=$('<input type="checkbox">'),Ee=this.addLabeledRow(we,$.t("Indicator Last Value"),Be),$("<td>").append(Be).prependTo(Ee),this.bindControl(new c(Be,this._property.scalesProperties.showStudyLastValue,!0,this.model(),"Change Indicator Last Value Visibility")),Re=$('<input type="checkbox">'),Fe=this.addLabeledRow(we,$.t("Symbol Labels"),Re),$("<td>").append(Re).prependTo(Fe),this.bindControl(new c(Re,this._property.scalesProperties.showSymbolLabels,!0,this.model(),"Show Symbol Labels")),Ie=$('<input type="checkbox">'),Ae=this.addLabeledRow(we,$.t("Indicator Labels"),Ie),$("<td>").append(Ie).prependTo(Ae),this.bindControl(new c(Ie,this._property.scalesProperties.showStudyPlotLabels,!0,this.model(),"Show Study Plots Labels")),De=$("<input type='checkbox' />"), |
|||
We=this.addLabeledRow(we,$.t("No Overlapping Labels"),De),$("<td>").append(De).prependTo(We),this.bindControl(new c(De,this._scaleProperty.alignLabels,!0,this.model(),"No Overlapping Labels")),Oe=$('<div class="property-page-column-2">').append(N).append(se),Ve=$('<div class="property-page-column-2">').append(we),P=$("<div>").css("min-width","520px").data("layout-tab",a.TabNames.scales),P.append(Oe).append(Ve),this.scalesTab=P,L=$('<table class="property-page" cellspacing="0" cellpadding="2">').data("layout-tab",a.TabNames.style),je=this.createSeriesMinTickEditor(),ze=$("<tr>"),Me=$("<tr>").appendTo(we),He=$('<td colspan="2">').appendTo(Me),$("<td>"+$.t("Decimal Places")+"</td>").appendTo(ze),$("<td>").append(je).appendTo(ze),L.append(ze).appendTo(He),this.bindControl(new C(je,this._seriesProperty.minTick,null,!0,this.model(),"Change Decimal Places"))),t.enabled("chart_property_page_background")&&(qe=$('<table class="property-page" cellspacing="0" cellpadding="2">'),Ne=this.createColorPicker({hideTransparency:!0}),Ge=this.addLabeledRow(qe,$.t("Background")),$('<td colspan="2">').append(Ne).appendTo(Ge),this.bindControl(new u(Ne,this._property.paneProperties.background,!0,this.model(),"Change Chart Background Color")),Ue=this.addLabeledRow(qe,$.t("Vert Grid Lines")),Ye=this.createColorPicker(),$("<td>").append(Ye).appendTo(Ue),this.bindControl(new u(Ye,this._property.paneProperties.vertGridProperties.color,!0,this.model(),"Change Vert Grid Lines Color")),Ke=m(),$('<td colspan="2">').append(Ke.render()).appendTo(Ue),this.bindControl(new C(Ke,this._property.paneProperties.vertGridProperties.style,parseInt,!0,this.model(),"Change Vert Grid Lines Style")),Qe=this.addLabeledRow(qe,$.t("Horz Grid Lines")),Je=this.createColorPicker(),$("<td>").append(Je).appendTo(Qe),this.bindControl(new u(Je,this._property.paneProperties.horzGridProperties.color,!0,this.model(),"Change Horz Grid Lines Color")),Ze=m(),$('<td colspan="2">').append(Ze.render()).appendTo(Qe),this.bindControl(new C(Ze,this._property.paneProperties.horzGridProperties.style,parseInt,!0,this.model(),"Change Horz Grid Lines Style")),Xe=this.createColorPicker(),et=this.addLabeledRow(qe,$.t("Scales Text")),$("<td>").append(Xe).appendTo(et),this.bindControl(new u(Xe,this._property.scalesProperties.textColor,!0,this.model(),"Change Scales Text Color")),tt=this.createFontSizeEditor(),$("<td>").append(tt).appendTo(et),this.bindControl(new C(tt,this._property.scalesProperties.fontSize,parseInt,!0,this.model(),"Change Scales Font Size")),ot=this.createColorPicker(),it=this.addLabeledRow(qe,$.t("Scales Lines")),$('<td colspan="2">').append(ot).appendTo(it),this.bindControl(new u(ot,this._property.scalesProperties.lineColor,!0,this.model(),"Change Scales Lines Color")),nt=this.addLabeledRow(qe,$.t("Watermark")),at=this.createColorPicker(),$("<td>").append(at).appendTo(nt),this.bindControl(new u(at,this._property.symbolWatermarkProperties.color,!0,this.model(),"Change Symbol Watermark Color",this._property.symbolWatermarkProperties.transparency)), |
|||
rt=this.addLabeledRow(qe,$.t("Crosshair")),lt=this.createColorPicker(),$("<td>").append(lt).appendTo(rt),this.bindControl(new u(lt,this._property.paneProperties.crossHairProperties.color,!0,this.model(),"Change Crosshair Color",this._property.paneProperties.crossHairProperties.transparency)),pt=m(),$("<td>").append(pt.render()).appendTo(rt),this.bindControl(new C(pt,this._property.paneProperties.crossHairProperties.style,parseInt,!0,this.model(),"Change Crosshair Style")),st=f(),$("<td>").append(st).appendTo(this.addRow(qe).prepend("<td/><td/>")),this.bindControl(new b(st,this._property.paneProperties.crossHairProperties.width,!0,this.model(),"Change Crosshair Width")),dt=$('<table class="property-page">'),ht=this.addLabeledRow(dt,$.t("Navigation Buttons"),null,!0),ct=$(document.createElement("select")),k.availableValues().forEach(function(e){$(document.createElement("option")).attr("value",e.value).text(e.title).appendTo(ct)}),$("<td>").append(ct).appendTo(ht),this.bindControl(new C(ct,k.property(),null,!0,this.model(),"Change Navigation Buttons Visibility")),bt=$('<table class="property-page" cellspacing="0" cellpadding="2">'),ut=$('<input type="checkbox">'),Ct=this.addLabeledRow(bt,$.t("Symbol Description"),ut),$("<td>").append(ut).prependTo(Ct),this.bindControl(new c(ut,this._property.paneProperties.legendProperties.showSeriesTitle,!0,this.model(),"Change Symbol Description Visibility")),yt=$('<input type="checkbox">'),gt=this.addLabeledRow(bt,$.t("OHLC Values"),yt),$("<td>").append(yt).prependTo(gt),this.bindControl(new c(yt,this._property.paneProperties.legendProperties.showSeriesOHLC,!0,this.model(),"Change OHLC Values Visibility")),$t=$('<input type="checkbox">'),wt=this.addLabeledRow(bt,$.t("Indicator Titles"),$t),$("<td>").append($t).prependTo(wt),this.bindControl(new c($t,this._property.paneProperties.legendProperties.showStudyTitles,!0,this.model(),"Change Indicator Titles Visibility")),Tt=$('<input type="checkbox">'),_t=this.addLabeledRow(bt,$.t("Indicator Arguments"),Tt),mt=function(e){Tt.prop("disabled",!e.value())},$("<td>").append(Tt).prependTo(_t),this.bindControl(new c(Tt,this._property.paneProperties.legendProperties.showStudyArguments,!0,this.model(),"Change Indicator Arguments Visibility")),this._property.paneProperties.legendProperties.showStudyTitles.listeners().subscribe(this,mt),mt(this._property.paneProperties.legendProperties.showStudyTitles),ft=$('<input type="checkbox">'),Lt=this.addLabeledRow(bt,$.t("Indicator Values"),ft),$("<td>").append(ft).prependTo(Lt),this.bindControl(new c(ft,this._property.paneProperties.legendProperties.showStudyValues,!0,this.model(),"Change Indicator Values Visibility")),vt=$('<div class="property-page-column-2">').append(qe),kt=$('<div class="property-page-column-2">').append(bt),St=$('<div class="property-page-column-1">').append(dt),x=$("<div>").css("min-width","520px").data("layout-tab",a.TabNames.background),x.append(vt).append(kt).append(St)),t.enabled("chart_property_page_timezone_sessions")){ |
|||
for(E=$('<table class="property-page" cellspacing="0" cellpadding="2">').data("layout-tab",a.TabNames.timezoneSessions),this.tmzSessTable=E,ge=$("<tr>").appendTo(E),Pt=$("<td>").appendTo(ge),xt=$('<table cellspacing="0" cellpadding="0">').appendTo(Pt),Bt=$("<tr>"),Bt.appendTo(xt),Et=$("<td>"),Et.appendTo(Bt),Et.text($.t("Time Zone")),Rt=$('<td colspan="2" class="tzeditor">'),Rt.appendTo(Bt),Ft="",It=0;It<v.length;It++)Ft+='<option value="'+v[It].id+'">'+v[It].title+"</option>";At=$("<select>"+Ft+"</select>"),At.appendTo(Rt),this.bindControl(new C(At,this._property.timezone,null,!0,this.model(),"Change Timezone")),this._series.createSessStudy(),this.createSessTable(E)}Dt=t.enabled("chart_property_page_events_alerts")&&!t.enabled("charting_library_base"),Dt&&(Wt=t.enabled("alerts")?a.TabNames.eventsAndAlerts:a.TabNames.events,F=$('<table class="property-page" cellspacing="0" cellpadding="2">').data("layout-tab",Wt),this.createEventsTable(F)),Ot=t.enabled("trading_options")||t.enabled("chart_property_page_trading"),Ot&&(R=this.createTradingTable()),n=$('<table class="property-page" cellspacing="0" cellpadding="2">'),r=$('<table class="property-page property-page-unpadded" cellspacing="0" cellpadding="0">').css({width:"100%"}).data("layout-separated",!0),B=$('<table class="property-page" cellspacing="0" cellpadding="2">').data("layout-tab",a.TabNames.drawings),this._table=$().add(e).add(o).add(i).add(n).add(r).add(l).add(S).add(P).add(x).add(B).add(E).add(R).add(F),this.loadData()},i.prototype.widget=function(){return this._table},i.prototype.loadData=function(){this.superclass.prototype.loadData.call(this),this.switchStyle()},i.prototype.loadTheme=function(e,t,o){},i.prototype.applyTheme=function(e,t){this._model._chartWidget._chartWidgetCollection.applyTheme(e,t),this.loadData()},i.prototype.createTemplateButton=function(e){return t.enabled("chart_property_page_template_button")?(this,e||(e={}),$('<a href="#" class="_tv-button">'+$.t("Template")+'<span class="icon-dropdown"></span></a>')):$("<span />")},i.prototype.switchStyle=function(){if(this._hasSeriesStyleLayout)switch($(this._barsTbody).add(this._barsColorerTbody).add(this._renkoTbody).add(this._pbTbody).add(this._kagiTbody).add(this._pnfTbody).add(this._candlesTbody).add(this._candlesColorerTbody).add(this._hollowCandlesTbody).add(this._lineTbody).add(this._areaTbody).add(this._haTbody).add(this._haColorerTbody).add(this._baselineTbody).css("display","none"),this._seriesProperty.style.value()){case w.STYLE_BARS:this._barsTbody.css("display","table-row-group"),this._barsColorerTbody.css("display","table-row-group");break;case w.STYLE_CANDLES:this._candlesTbody.css("display","table-row-group"),this._candlesColorerTbody.css("display","table-row-group");break;case w.STYLE_HOLLOW_CANDLES:this._hollowCandlesTbody.css("display","table-row-group");break;case w.STYLE_LINE:this._lineTbody.css("display","table-row-group");break;case w.STYLE_AREA:this._areaTbody.css("display","table-row-group");break;case w.STYLE_RENKO:this._renkoTbody.css("display","table-row-group");break |
|||
;case w.STYLE_PB:this._pbTbody.css("display","table-row-group");break;case w.STYLE_KAGI:this._kagiTbody.css("display","table-row-group");break;case w.STYLE_PNF:this._pnfTbody.css("display","table-row-group");break;case w.STYLE_HEIKEN_ASHI:this._haTbody.css("display","table-row-group"),this._haColorerTbody.css("display","table-row-group");break;case w.STYLE_BASELINE:this._baselineTbody.css("display","table-row-group")}},i.prototype.onResoreDefaults=function(){var e,t=this._model.model().properties().paneProperties.topMargin,o=this._model.model().properties().paneProperties.bottomMargin;t.listeners().fire(t),o.listeners().fire(o),e=this._model.model().properties().timezone,e.listeners().fire(e)},i.prototype.defaultProperties=function(){var e=this,t=[e._seriesProperty.extendedHours,e._property.scalesProperties.showLeftScale,e._property.scalesProperties.showRightScale,e._property.timeScale.rightOffset].map(function(e){return{property:e,previousValue:e.value()}});return setTimeout(function(){t.forEach(function(e){e.property.value()!==e.previousValue&&e.property.listeners().fire(e.property)});var o=new L("chartproperties.paneProperties.rightAxisProperties");$.each(["autoScale","percentage","log"],function(t,i){var n=e._scaleProperty[i],a=o[i].value();a!==n.value()&&n.setValue(a)})},0),[this._property,this._seriesProperty]},i.prototype.createEventsTable=function(e){var o,i,n,a,r,l,p,s,d,h,g,w,T,L,v,k,S,P,x,B,E,R,F,I,A,D,W,O,V=$("<tr>").appendTo(e),j=$('<input type="checkbox" />'),z=this.addLabeledRow(V,$.t("Show Dividends on Chart"),j);$("<td>").append(j).prependTo(z),z.append("<td>"),this.bindControl(new c(j,this._seriesProperty.esdShowDividends,!0,this.model(),"Change Show or Hide Dividends")),o=$('<input type="checkbox" />'),z=this.addLabeledRow(V,$.t("Show Splits on Chart"),o),$("<td>").append(o).prependTo(z),z.append("<td>"),this.bindControl(new c(o,this._seriesProperty.esdShowSplits,!0,this.model(),"Change Show or Hide Splits")),i=$('<input type="checkbox" />'),z=this.addLabeledRow(V,$.t("Show Earnings on Chart"),i),$("<td>").append(i).prependTo(z),z.append("<td>"),this.bindControl(new c(i,this._seriesProperty.esdShowEarnings,!0,this.model(),"Change Show or Hide Earnings")),n=this.createTableInTable(e),a=$('<input type="checkbox" />'),r=m(),l=f(),z=this.addLabeledRow(n,$.t("Earnings breaks"),a),$("<td>").append(a).prependTo(z),p=_($("<td>").appendTo(z)),$("<td>").append(r.render()).appendTo(z),$("<td>").append(l).appendTo(z),z.addClass("offset-row"),z.append("<td>"),this.bindControl(new c(a,this._seriesProperty.esdShowBreaks,!0,this.model(),"Change Show or Hide Earnings")),this.bindControl(new u(p,this._seriesProperty.esdBreaksStyle.color,!0,this.model(),"Change earnings color")),this.bindControl(new C(r,this._seriesProperty.esdBreaksStyle.style,parseInt,!0,this.model(),"Change style")),this.bindControl(new b(l,this._seriesProperty.esdBreaksStyle.width,!0,this.model(),"Change width")),s=function(e){a.prop("disabled",!e.value())},this._seriesProperty.esdShowEarnings.listeners().subscribe(this,s), |
|||
t.enabled("chart_events")&&(d=$('<input type="checkbox">'),h=$('<input type="checkbox">'),g=$('<input type="checkbox" />'),w=m(),T=f(),L=this.createColorPicker(),v=this._property.chartEventsSourceProperties,this.bindControl(new c(d,v.visible,!0,this.model(),"Change Show Economic Events on Chart")),this.bindControl(new c(h,v.futureOnly,!0,this.model(),"Change Show Only Future Events")),this.bindControl(new y(h,v.visible,!0,this.model(),"",!0)),this.bindControl(new y(g,v.visible,!0,this.model(),"",!0)),this.bindControl(new c(g,v.breaks.visible,!0,this.model(),"Change Show or Hide Events Breaks")),this.bindControl(new u(L,v.breaks.color,!0,this.model(),"Change Events Breaks Color")),this.bindControl(new C(w,v.breaks.style,parseInt,!0,this.model(),"Change Events Breaks Style")),this.bindControl(new b(T,v.breaks.width,!0,this.model(),"Change Events Breaks Width")),k=$("<tr>").appendTo(e),z=this.addLabeledRow(k,$.t("Show Economic Events on Chart"),d),$("<td>").append(d).prependTo(z),S=this.createTableInTable(e),z=this.addLabeledRow(S,$.t("Show Only Future Events"),h),$("<td>").append(h).prependTo(z),z.addClass("offset-row"),P=this.createTableInTable(e),z=this.addLabeledRow(P,$.t("Events Breaks"),g),$("<td>").append(g).prependTo(z),$("<td>").append(L).appendTo(z),$("<td>").append(w.render()).appendTo(z),$("<td>").append(T).appendTo(z),z.addClass("offset-row")),t.enabled("alerts")&&(x=$("<tr>").appendTo(e),B=$('<input type="checkbox" />'),z=this.addLabeledRow(x,$.t("Show Alert Labels"),B),$("<td>").append(B).prependTo(z),z.append("<td>"),E=this._property.alertsProperties.labels.visible,this.bindControl(new c(B,E,!0,this.model(),"Change Show or Hide Alert Labels",function(e){this._model.beginUndoMacro("Show Alert Labels"),this._model.setProperty(E,e,"Show Alert Labels"),this._model.endUndoMacro()}.bind(this))),R=this.createTableInTable(e),F=$('<input type="checkbox">'),I=f(),A=m(),D=A.render(),z=this.addLabeledRow(R,$.t("Extended Alert Line"),F),$("<td>").append(F).prependTo(z),W=_($("<td>").appendTo(z)),$("<td>").append(D).appendTo(z),$("<td>").append(I).appendTo(z),z.addClass("offset-row"),z.append("<td>"),this.bindControl(new c(F,this._property.alertsProperties.labels.line.visible,!0,this.model(),"Change Show or Hide Alert Labels Lines")),this.bindControl(new u(W,this._property.alertsProperties.labels.color,!0,this.model(),"Change Alerts Labels color")),this.bindControl(new C(A,this._property.alertsProperties.labels.line.style,parseInt,!0,this.model(),"Change style")),this.bindControl(new b(I,this._property.alertsProperties.labels.line.width,!0,this.model(),"Change width")),O=function(e){F.prop("disabled",!e.value()),D.prop("disabled",!e.value()),I.prop("disabled",!e.value())},E.listeners().subscribe(this,O))},i.prototype.createSessTable=function(e){var t,o=this._series.sessionsStudy().properties(),i=this.createTableInTable(e),n=o.name.value(),a=$("<input type='checkbox' />"),r=this.addLabeledRow(i,$.t("Session Breaks"),a),l=m(),p=this.createColorPicker(),s=f();return $("<td>").append(a).prependTo(r), |
|||
$("<td>").append(p).appendTo(r),$("<td>").append(l.render()).appendTo(r),$("<td>").append(s).appendTo(r),this.bindControl(new c(a,o.graphics.vertlines.sessBreaks.visible,!0,this.model(),"Change "+n+" visibility")),this.bindControl(new u(p,o.graphics.vertlines.sessBreaks.color,!0,this.model(),"Change "+n+" color")),this.bindControl(new C(l,o.graphics.vertlines.sessBreaks.style,parseInt,!0,this.model(),"Change "+n+" style")),this.bindControl(new b(s,o.graphics.vertlines.sessBreaks.width,!0,this.model(),"Change "+n+" width")),t=this._series.isIntradayInterval(),a.prop("disabled",!t),i},i.prototype._createStudySessRow=function(e,t,o){var i,n=$("<input type='checkbox' />"),a=this.addLabeledRow(e,t,n),r=_($("<td>").appendTo(a));return this.bindControl(new c(n,o.visible,!0,this.model(),"Change "+t+" visibility")),this.bindControl(new u(r,o.color,!0,this.model(),t+" color",o.transparency)),i=$("<td>"),i.append(n).prependTo(a),a.addClass("offset-row"),n},i.prototype.createTradingTable=function(){var e,t,o,i,n,r,l,u,y,g,w,T=$('<table class="property-page" cellspacing="0" cellpadding="2">').data("layout-tab",a.TabNames.trading),_=$("<tr>").appendTo(T),L=$("<td>").appendTo(_),v=$('<table cellspacing="0" cellpadding="0">').appendTo(L),k=$('<input type="checkbox">');return _=this.addLabeledRow(v,$.t("Show Positions"),k),$("<td>").append(k).prependTo(_),this.bindControl(new c(k,this._property.tradingProperties.showPositions,!0,this.model(),"Change Positions Visibility")),e=$('<input type="checkbox">'),_=this.addLabeledRow(v,$.t("Show Orders"),e),$("<td>").append(e).prependTo(_),this.bindControl(new c(e,this._property.tradingProperties.showOrders,!0,this.model(),"Change Orders Visibility")),t=$('<input type="checkbox">'),o=this.addLabeledRow(v,$.t("Extend Lines Left"),t),$("<td>").append(t).prependTo(o),this.bindControl(new c(t,this._property.tradingProperties.extendLeft,!0,this.model(),"Extend Lines Left")),i=f(),this.bindControl(new b(i,this._property.tradingProperties.lineWidth,!0,this.model(),"Change Connecting Line Width")),n=m(),this.bindControl(new C(n,this._property.tradingProperties.lineStyle,parseInt,!0,this.model(),"Change Connecting Line Style")),r=$('<input type="text" class="ticker">'),l=[d(this._property.tradingProperties.lineLength.value()),s(100),p(0)],this.bindControl(new h(r,this._property.tradingProperties.lineLength,l,!0,this.model(),"Change Connecting Line Length")),u=$("<tbody>"),y=this.addLabeledRow(v,$.t("Connecting Line"),u),$("<td>").prependTo(y),$("<td>").append(i).appendTo(y),$('<td colspan="3">').append(n.render()).appendTo(y),$('<td colspan="3">').append(r).appendTo(y),$("<td>%</td>").appendTo(y),g=$('<input type="checkbox">'),w=this.addLabeledRow(v,$.t("Show Executions"),g),$("<td>").append(g).prependTo(w),this.bindControl(new c(g,this._property.tradingProperties.showExecutions,!0,this.model(),"Change Executions Visibility")),T},e.exports=i}).call(t,o(7))},750:function(e,t,o){"use strict";function i(e,t){a.call(this,e,t),this.prepareLayout()}var n=o(10),a=n.PropertyPage,r=n.SimpleComboBinder |
|||
;inherit(i,a),i.prototype.prepareLayout=function(){var e,t;this._table=$(document.createElement("table")),this._table.addClass("property-page"),this._table.attr("cellspacing","0"),this._table.attr("cellpadding","2"),e=this.createKeyCombo({open:$.t("Open"),high:$.t("High"),low:$.t("Low"),close:$.t("Close")}),t=this.addLabeledRow(this._table,$.t("Source",{context:"compare"})),$("<td>").appendTo(t).append(e),this.bindControl(new r(e,this._property.inputs.source,null,!0,this.model(),"Change Price Source")),this.loadData()},i.prototype.widget=function(){return this._table},e.exports=i},757:function(e,t,o){"use strict";function i(e,t,o){n.call(this,e,t,o),this.prepareLayout()}var n=o(14),a=o(10),r=a.BooleanBinder,l=a.ColorBinding,p=a.SliderBinder,s=a.SimpleComboBinder,d=o(15).createLineWidthEditor;inherit(i,n),i.prototype.prepareLayout=function(){var e,t,o,i,n,a,h,c,b,u,C;this._table=$(document.createElement("table")),this._table.addClass("property-page"),this._table.attr("cellspacing","0"),this._table.attr("cellpadding","2"),e=d(),t=this.createColorPicker(),o=this.createColorPicker(),i=$('<span class="_tv-button _tv-button-fontstyle"><span class="icon-fontstyle-bold"></span></span>'),n=$('<span class="_tv-button _tv-button-fontstyle"><span class="icon-fontstyle-italic"></span></span>'),a=this.createFontSizeEditor(),h=this.createFontEditor(),c=this.addLabeledRow(this._table,"Border"),c.prepend("<td>"),$("<td>").append(t).appendTo(c),$("<td>").append(e).appendTo(c),b=$('<input type="checkbox" class="visibility-switch">'),u=this.createColorPicker(),h=this.createFontEditor(),c=this.addLabeledRow(this._table,"Background",b),$("<td>").append(b).prependTo(c),$("<td>").append(u).appendTo(c),this.bindControl(new r(b,this._linetool.properties().fillBackground,!0,this.model(),"Change Pattern Filling")),this.bindControl(new l(t,this._linetool.properties().color,!0,this.model(),"Change Pattern Line Color")),this.bindControl(new l(o,this._linetool.properties().textcolor,!0,this.model(),"Change Pattern Text Color")),this.bindControl(new l(u,this._linetool.properties().backgroundColor,!0,this.model(),"Change Pattern Background Color",this._linetool.properties().transparency)),this.bindControl(new p(e,this._linetool.properties().linewidth,!0,this.model(),"Change Pattern Border Width")),this.bindControl(new s(a,this._linetool.properties().fontsize,parseInt,!0,this.model(),"Change Text Font Size")),this.bindControl(new s(h,this._linetool.properties().font,null,!0,this.model(),"Change Text Font")),this.bindControl(new r(i,this._linetool.properties().bold,!0,this.model(),"Change Text Font Bold")),this.bindControl(new r(n,this._linetool.properties().italic,!0,this.model(),"Change Text Font Italic")),C=$('<table class="property-page" cellspacing="0" cellpadding="2"><tr>').append($(document.createElement("td")).attr({width:1}).append(o)).append($(document.createElement("td")).attr({width:1}).append(h)).append($(document.createElement("td")).attr({width:1}).append(a)).append($(document.createElement("td")).css("vertical-align","top").attr({ |
|||
width:1}).append(i)).append($(document.createElement("td")).css("vertical-align","top").append(n)).append($("</tr></table>")),c=this.addLabeledRow(this._table,""),$('<td colspan="5">').append(C).appendTo(c),this.loadData()},i.prototype.widget=function(){return this._table},e.exports=i},758:function(e,t,o){"use strict";function i(e,t,o){n.call(this,e,t,o),this.prepareLayout()}var n=o(14),a=o(10),r=a.ColorBinding,l=a.SliderBinder,p=a.SimpleComboBinder,s=a.BooleanBinder,d=o(15).createLineWidthEditor;inherit(i,n),i.prototype.prepareLayout=function(){var e,t,o,i,n,a,h,c,b;this._table=$(document.createElement("table")),this._table.addClass("property-page"),this._table.attr("cellspacing","0"),this._table.attr("cellpadding","2"),e=d(),t=this.createColorPicker(),o=this.createColorPicker(),i=$('<span class="_tv-button _tv-button-fontstyle"><span class="icon-fontstyle-bold"></span></span>'),n=$('<span class="_tv-button _tv-button-fontstyle"><span class="icon-fontstyle-italic"></span></span>'),a=this.createFontSizeEditor(),h=this.createFontEditor(),c=this.addLabeledRow(this._table,"Border"),c.prepend("<td>"),$("<td>").append(t).appendTo(c),$("<td>").append(e).appendTo(c),h=this.createFontEditor(),this.bindControl(new r(t,this._linetool.properties().color,!0,this.model(),"Change Pattern Line Color")),this.bindControl(new r(o,this._linetool.properties().textcolor,!0,this.model(),"Change Pattern Text Color")),this.bindControl(new l(e,this._linetool.properties().linewidth,!0,this.model(),"Change Pattern Border Width")),this.bindControl(new p(a,this._linetool.properties().fontsize,parseInt,!0,this.model(),"Change Text Font Size")),this.bindControl(new p(h,this._linetool.properties().font,null,!0,this.model(),"Change Text Font")),this.bindControl(new s(i,this._linetool.properties().bold,!0,this.model(),"Change Text Font Bold")),this.bindControl(new s(n,this._linetool.properties().italic,!0,this.model(),"Change Text Font Italic")),b=$('<table class="property-page" cellspacing="0" cellpadding="2"><tr>').append($(document.createElement("td")).attr({width:1}).append(o)).append($(document.createElement("td")).attr({width:1}).append(h)).append($(document.createElement("td")).attr({width:1}).append(a)).append($(document.createElement("td")).css("vertical-align","top").attr({width:1}).append(i)).append($(document.createElement("td")).css("vertical-align","top").append(n)).append($("</tr></table>")),c=this.addLabeledRow(this._table,""),$('<td colspan="5">').append(b).appendTo(c),this.loadData()},i.prototype.widget=function(){return this._table},e.exports=i},759:function(e,t,o){"use strict";function i(e,t,o){n.call(this,e,t,o),this.prepareLayout()}var n=o(14),a=o(10),r=a.BooleanBinder,l=a.ColorBinding,p=a.SliderBinder,s=o(15).createLineWidthEditor;inherit(i,n),i.prototype.prepareLayout=function(){var e,t,o,i,n;this._table=$(document.createElement("table")),this._table.addClass("property-page"),this._table.attr("cellspacing","0"),this._table.attr("cellpadding","2"),e=s(),t=this.createColorPicker(),o=this.addLabeledRow(this._table,"Border"), |
|||
o.prepend("<td>"),$("<td>").append(t).appendTo(o),$("<td>").append(e).appendTo(o),i=$('<input type="checkbox" class="visibility-switch">'),n=this.createColorPicker(),o=this.addLabeledRow(this._table,"Background",i),$("<td>").append(i).prependTo(o),$("<td>").append(n).appendTo(o),this.bindControl(new r(i,this._linetool.properties().fillBackground,!0,this.model(),"Change Arc Filling")),this.bindControl(new l(t,this._linetool.properties().color,!0,this.model(),"Change Arc Line Color")),this.bindControl(new l(n,this._linetool.properties().backgroundColor,!0,this.model(),"Change Arc Background Color",this._linetool.properties().transparency)),this.bindControl(new p(e,this._linetool.properties().linewidth,!0,this.model(),"Change Arc Border Width")),this.loadData()},i.prototype.widget=function(){return this._table},e.exports=i},760:function(e,t,o){"use strict";function i(e,t,o){n.call(this,e,t,o),this.prepareLayout()}var n=o(14),a=o(10),r=a.SimpleStringBinder,l=a.ColorBinding,p=a.SimpleComboBinder;inherit(i,n),i.prototype.prepareLayout=function(){var e,t,o,i,n;this._table=$('<table class="property-page" cellspacing="0" cellpadding="2">').css({width:"100%"}),e=$("<input type='text'>").css({width:"100%"}),t=$('<div class="property-page-fullwidth-wrapper">').append(e),o=this.createColorPicker(),i=this.createFontEditor(),n=$("<tr>").appendTo(this._table),$("<td>").css({width:"0"}).html($.t("Text")).appendTo(n),$('<td colspan="2">').append(t).appendTo(n),n=this.addLabeledRow(this._table,$.t("Text Font")),n.children().css({whiteSpace:"nowrap"}),$("<td>").append(o).appendTo(n).css({width:"0"}),$("<td>").append(i).appendTo(n),this.bindControl(new l(o,this._linetool.properties().color,!0,this.model(),"Change Arrow Mark Text Color")),this.bindControl(new r(e,this._linetool.properties().text,null,!0,this.model(),"Change Arrow Mark Text")),this.bindControl(new p(i,this._linetool.properties().font,null,!0,this.model(),"Change Arrow Mark Font")),this.loadData(),setTimeout(function(){e.select(),e.focus()},20)},i.prototype.widget=function(){return this._table},e.exports=i},761:function(e,t,o){"use strict";function i(e,t,o){n.call(this,e,t,o),this.prepareLayout()}var n=o(14),a=o(10),r=a.SimpleComboBinder,l=a.ColorBinding,p=a.SimpleStringBinder,s=o(121).TabOpenFrom;inherit(i,n),i.prototype.prepareLayout=function(){var e,t,o,i,n,a,d,h,c=$('<table class="property-page" cellspacing="0" cellpadding="0">').css({width:"100%"}).data("layout-tab-open",s.Override),b=$('<table class="property-page" cellspacing="0" cellpadding="0">');this._table=c.add(b),e=$("<input type='text'>").css({width:"100%"}),t=this.createColorPicker(),o=this.createFontSizeEditor(),i=this.createColorPicker(),n=this.createColorPicker(),a=$("<tr>").appendTo(c),d=$('<div class="property-page-fullwidth-wrapper">').append(e),$("<td>").append(d).appendTo(a),h=this.addLabeledRow(b,$.t("Text")),$("<td>").append(t).appendTo(h),$("<td>").append(o).appendTo(h),h=this.addLabeledRow(b,$.t("Background")),$("<td>").appendTo(h).append(i),h=this.addLabeledRow(b,$.t("Border")), |
|||
$("<td>").appendTo(h).append(n),$("<td>"),this.bindControl(new p(e,this._linetool.properties().text,null,!0,this.model(),"Change Balloon Text")),this.bindControl(new l(t,this._linetool.properties().color,!0,this.model(),"Change Baloon Text Color")),this.bindControl(new r(o,this._linetool.properties().fontsize,parseInt,!0,this.model(),"Change Balloon Text Font Size")),this.bindControl(new l(i,this._linetool.properties().backgroundColor,!0,this.model(),"Change Balloon Background Color",this._linetool.properties().transparency)),this.bindControl(new l(n,this._linetool.properties().borderColor,!0,this.model(),"Change Balloon Border Color")),this.loadData(),setTimeout(function(){e.select(),e.focus()},0)},i.prototype.widget=function(){return this._table},e.exports=i},762:function(e,t,o){"use strict";function i(e,t,o){a.call(this,e,t,o),this.prepareLayout()}function n(e,t,o){r.call(this,e,t,o)}var a=o(14),r=o(81),l=o(10),p=l.ToFloatTransformer,s=l.SimpleComboBinder,d=l.ColorBinding,h=l.BooleanBinder,c=l.SimpleStringBinder;inherit(i,a),i.prototype.prepareLayout=function(){var e,t,o,i,n,a;this._table=$(document.createElement("table")),this._table.addClass("property-page"),this._table.attr("cellspacing","0"),this._table.attr("cellpadding","2"),e=$("<tbody>").appendTo(this._table),t=this.createColorPicker(),o=this.addLabeledRow(e,"Color"),$("<td>").append(t).appendTo(o),i=$('<select><option value="0">'+$.t("HL Bars")+'</option><option value="2">'+$.t("OC Bars")+'</option><option value="1">'+$.t("Line - Close")+'</option><option value="3">'+$.t("Line - Open")+'</option><option value="4">'+$.t("Line - High")+'</option><option value="5">'+$.t("Line - Low")+'</option><option value="6">'+$.t("Line - HL/2")+"</option></select>"),o=this.addLabeledRow(e,"Mode"),$("<td>").append(i).appendTo(o),o=$("<tr>").appendTo(e),$("<td>"+$.t("Mirrored")+"</td>").appendTo(o),n=$("<input type='checkbox'>"),$("<td>").append(n).appendTo(o),o=$("<tr>").appendTo(e),$("<td>"+$.t("Flipped")+"</td>").appendTo(o),a=$("<input type='checkbox'>"),$("<td>").append(a).appendTo(o),this.bindControl(new h(n,this._linetool.properties().mirrored,!0,this.model(),"Change Bars Pattern Mirroring")),this.bindControl(new h(a,this._linetool.properties().flipped,!0,this.model(),"Change Bars Pattern Flipping")),this.bindControl(new d(t,this._linetool.properties().color,!0,this.model(),"Change Bars Pattern Color")),this.bindControl(new s(i,this._linetool.properties().mode,null,!0,this.model(),"Change Bars Pattern Mode")),this.loadData()},i.prototype.widget=function(){return this._table},inherit(n,r),n.prototype.prepareLayout=function(){var e,t,o,i,n,a,r,l,s;this._table=$(document.createElement("table")),this._table.addClass("property-page"),this._table.attr("cellspacing","0"),this._table.attr("cellpadding","2"),e=$("<tr>"),e.appendTo(this._table),t=$("<td>"),t.html($.t("Price")),t.appendTo(e),o=$("<td>"),o.appendTo(e),i=$("<input type='text'>"),i.appendTo(o),n=$("<td>"),n.html($.t("Bar #")),n.appendTo(e),a=$("<td>"),a.appendTo(e),r=$("<input type='text'>"),r.appendTo(a), |
|||
r.addClass("ticker"),l=this._linetool.properties().points[0],s=[p(l.price.value())],this.bindControl(new c(i,l.price,s,!1,this.model(),"Change "+this._linetool+" point price")),this.bindBarIndex(l.bar,r,this.model(),"Change "+this._linetool+" point bar index"),this.loadData()},t.LineToolBarsPatternStylesPropertyPage=i,t.LineToolBarsPatternInputsPropertyPage=n},763:function(e,t,o){"use strict";function i(e,t,o){n.call(this,e,t,o),this.prepareLayout()}var n=o(14),a=o(10),r=a.ColorBinding,l=a.SimpleComboBinder,p=a.SliderBinder,s=a.BooleanBinder,d=o(31).createLineStyleEditor,h=o(15).createLineWidthEditor;inherit(i,n),i.prototype.prepareLayout=function(){var e,t,o,i,n,a,c,b,u,C,y,g,w,T,_,m;this._block=$("<div>").addClass("property-page"),e=$('<table cellspacing="0" cellpadding="2">').appendTo(this._block),t=$("<tbody>").appendTo(e),o=h(),i=d(),n=this.createColorPicker(),a=this.addLabeledRow(t,$.t("Line")),$("<td>").append(n).appendTo(a),$("<td>").append(o).appendTo(a),$('<td colspan="3">').append(i.render()).appendTo(a),c=$('<table cellspacing="0" cellpadding="2">').appendTo(this._block),a=this.addLabeledRow(c,$.t("Background"),b),b=$('<input type="checkbox" class="visibility-switch">'),u=this.createColorPicker(),$("<td>").append(b).prependTo(a),$("<td>").append(u).appendTo(a),C=$('<table cellspacing="0" cellpadding="2">').appendTo(this._block),y=$("<select><option value='0'>"+$.t("Normal")+"</option><option value='1'>"+$.t("Arrow")+"</option></select>"),g=$("<select><option value='0'>"+$.t("Normal")+"</option><option value='1'>"+$.t("Arrow")+"</option></select>"),w=$("<label>"+$.t("Extend")+" </label>").css({"margin-left":"8px"}),T=$('<input type="checkbox">').appendTo(w),_=$("<label>"+$.t("Extend")+" </label>").css({"margin-left":"8px"}),m=$('<input type="checkbox">').appendTo(_),a=this.addLabeledRow(C,$.t("Left End")),$('<td colspan="3">').appendTo(a).append(y).append(w),a=this.addLabeledRow(C,$.t("Right End")),$('<td colspan="3">').appendTo(a).append(g).append(_),this.bindControl(new r(n,this._linetool.properties().linecolor,!0,this.model(),"Change Curve Line Color")),this.bindControl(new l(i,this._linetool.properties().linestyle,parseInt,!0,this.model(),"Change Curve Line Style")),this.bindControl(new p(o,this._linetool.properties().linewidth,!0,this.model(),"Change Curve Line Width")),this.bindControl(new s(b,this._linetool.properties().fillBackground,!0,this.model(),"Change Curve Filling")),this.bindControl(new r(u,this._linetool.properties().backgroundColor,!0,this.model(),"Change Curve Background Color",this._linetool.properties().transparency)),this.bindControl(new l(y,this._linetool.properties().leftEnd,parseInt,!0,this.model(),"Change Curve Line Left End")),this.bindControl(new l(g,this._linetool.properties().rightEnd,parseInt,!0,this.model(),"Change Curve Line Right End")),this.bindControl(new s(T,this._linetool.properties().extendLeft,!0,this.model(),"Change Curve Line Extending Left")),this.bindControl(new s(m,this._linetool.properties().extendRight,!0,this.model(),"Change Curve Line Extending Right")), |
|||
this.loadData()},i.prototype.widget=function(){return this._block},e.exports=i},764:function(e,t,o){"use strict";function i(e,t,o){n.call(this,e,t,o),this.prepareLayout()}var n=o(14),a=o(10),r=a.SliderBinder,l=a.BooleanBinder,p=a.ColorBinding,s=a.SimpleComboBinder,d=o(15).createLineWidthEditor;inherit(i,n),i.prototype.prepareLayout=function(){var e,t,o,i,n,a,h,c;this._table=$('<table class="property-page" cellspacing="0" cellpadding="2">'),e=d(),t=this.createColorPicker(),o=$('<input type="checkbox" class="visibility-switch">'),i=this.createColorPicker(),n=this.addLabeledRow(this._table,"Line"),$("<td>").prependTo(n),$("<td>").append(t).appendTo(n),$("<td>").append(e).appendTo(n),n=this.addLabeledRow(this._table,"Background",o),$("<td>").append(o).prependTo(n),$("<td>").append(i).appendTo(n),a=$("<tbody>").appendTo(this._table),h=$("<select><option value='0'>"+$.t("Normal")+"</option><option value='1'>"+$.t("Arrow")+"</option></select>"),c=$("<select><option value='0'>"+$.t("Normal")+"</option><option value='1'>"+$.t("Arrow")+"</option></select>"),n=this.addLabeledRow(a,$.t("Left End")),$("<td>").prependTo(n),$('<td colspan="3">').appendTo(n).append(h),n=this.addLabeledRow(a,$.t("Right End")),$("<td>").prependTo(n),$('<td colspan="3">').appendTo(n).append(c),this.bindControl(new p(t,this._linetool.properties().linecolor,!0,this.model(),"Change Brush Color")),this.bindControl(new r(e,this._linetool.properties().linewidth,!0,this.model(),"Change Brush Line Width")),this.bindControl(new l(o,this._linetool.properties().fillBackground,!0,this.model(),"Change Brush Filling")),this.bindControl(new p(i,this._linetool.properties().backgroundColor,!0,this.model(),"Change Brush Background Color",this._linetool.properties().transparency)),this.bindControl(new s(h,this._linetool.properties().leftEnd,parseInt,!0,this.model(),"Change Trend Line Left End")),this.bindControl(new s(c,this._linetool.properties().rightEnd,parseInt,!0,this.model(),"Change Trend Line Right End")),this.loadData()},i.prototype.widget=function(){return this._table},e.exports=i},765:function(e,t,o){"use strict";function i(e,t,o){n.call(this,e,t,o),this.prepareLayout()}var n=o(14),a=o(10),r=a.BooleanBinder,l=a.ColorBinding,p=a.SimpleComboBinder,s=a.SliderBinder,d=a.SimpleStringBinder,h=o(15).createLineWidthEditor,c=o(121).TabOpenFrom;inherit(i,n),i.prototype.prepareLayout=function(){var e,t,o,i,n=this.createColorPicker(),a=this.createFontSizeEditor(),b=this.createFontEditor(),u=this.createTextEditor(350,200),C=this.createColorPicker(),y=h(),g=this.createColorPicker(),w=$('<input type="checkbox">'),T=$('<span class="_tv-button _tv-button-fontstyle"><span class="icon-fontstyle-bold"></span></span>'),_=$('<span class="_tv-button _tv-button-fontstyle"><span class="icon-fontstyle-italic"></span></span>');this.bindControl(new l(n,this._linetool.properties().color,!0,this.model(),"Change Text Color")),this.bindControl(new p(a,this._linetool.properties().fontsize,parseInt,!0,this.model(),"Change Text Font Size")), |
|||
this.bindControl(new p(b,this._linetool.properties().font,null,!0,this.model(),"Change Text Font")),this.bindControl(new d(u,this._linetool.properties().text,null,!0,this.model(),"Change Text")),this.bindControl(new l(C,this._linetool.properties().backgroundColor,!0,this.model(),"Change Text Background",this._linetool.properties().transparency)),this.bindControl(new l(g,this._linetool.properties().bordercolor,!0,this.model(),"Change Text Color")),this.bindControl(new s(y,this._linetool.properties().linewidth,!0,this.model(),"Change Border Width")),this.bindControl(new r(w,this._linetool.properties().wordWrap,!0,this.model(),"Change Text Wrap")),this.bindControl(new r(T,this._linetool.properties().bold,!0,this.model(),"Change Text Font Bold")),this.bindControl(new r(_,this._linetool.properties().italic,!0,this.model(),"Change Text Font Italic")),e=$('<table class="property-page" cellspacing="0" cellpadding="2">').data("layout-tab-open",c.Override),t=$('<table class="property-page" cellspacing="0" cellpadding="2">'),o=$('<table class="property-page" cellspacing="0" cellpadding="2">'),this._table=e.add(o).add(t),$(document.createElement("tr")).append($(document.createElement("td")).attr({width:1}).append(n)).append($(document.createElement("td")).attr({width:1}).append(b)).append($(document.createElement("td")).attr({width:1}).append(a)).append($(document.createElement("td")).attr({width:1}).append(T)).append($(document.createElement("td")).append(_)).appendTo(e),$(document.createElement("tr")).append($(document.createElement("td")).attr({colspan:5}).append(u)).appendTo(e),i=this.addLabeledRow(t,"Text Wrap",w),$("<td>").append(w).prependTo(i),i=this.addLabeledRow(o,"Background"),$("<td>").append(C).appendTo(i),i=this.addLabeledRow(o,"Border"),$("<td>").append(g).appendTo(i),$("<td>").append(y).appendTo(i),this.loadData(),setTimeout(function(){u.select(),u.focus()},20)},i.prototype.widget=function(){return this._table},e.exports=i},766:function(e,t,o){"use strict";function i(e,t,o){n.call(this,e,t,o),this.prepareLayout()}var n=o(14),a=o(10),r=a.SimpleComboBinder,l=a.ColorBinding,p=a.SliderBinder,s=o(31).createLineStyleEditor,d=o(15).createLineWidthEditor;inherit(i,n),i.prototype.prepareLayout=function(){var e,t,o,i;this._table=$(document.createElement("table")),this._table.addClass("property-page"),this._table.attr("cellspacing","0"),this._table.attr("cellpadding","2"),e=d(),t=s(),o=this.createColorPicker(),i=this.addLabeledRow(this._table,"Lines"),$("<td>").append(o).appendTo(i),$("<td>").append(e).appendTo(i),$("<td>").append(t.render()).appendTo(i),this.bindControl(new l(o,this._linetool.properties().linecolor,!0,this.model(),"Change Circle Lines Color")),this.bindControl(new r(t,this._linetool.properties().linestyle,parseInt,!0,this.model(),"Change Circle Lines Style")),this.bindControl(new p(e,this._linetool.properties().linewidth,!0,this.model(),"Change Circle Lines Width")),this.loadData()},i.prototype.widget=function(){return this._table},e.exports=i},767:function(e,t,o){"use strict";function i(e,t,o){ |
|||
n.call(this,e,t,o),this.prepareLayout()}var n=o(14),a=o(10),r=a.SimpleComboBinder,l=a.ColorBinding,p=a.BooleanBinder,s=a.SliderBinder,d=o(15).createLineWidthEditor;inherit(i,n),i.prototype.prepareLayout=function(){var e,t,o,i,n,a,h,c,b,u,C,y,g,w;this._table=$('<table class="property-page" cellspacing="0" cellpadding="2">'),e=$("<tbody>").appendTo(this._table),t=d(),o=this.createColorPicker(),i=this.addLabeledRow(e,$.t("Line")),$("<td>").prependTo(i),$("<td>").append(o).appendTo(i),$("<td>").append(t).appendTo(i),n=this.createColorPicker(),a=this.createColorPicker(),h=this.createFontSizeEditor(),c=this.createFontEditor(),b=this.createColorPicker(),u=$('<input type="checkbox" class="visibility-switch">'),C=this.createColorPicker(),y=$('<input type="checkbox" class="visibility-switch">'),this.bindControl(new l(n,this._linetool.properties().textcolor,!0,this.model(),"Change Text Color")),this.bindControl(new r(h,this._linetool.properties().fontsize,parseInt,!0,this.model(),"Change Text Font Size")),this.bindControl(new r(c,this._linetool.properties().font,null,!0,this.model(),"Change Text Font")),this.bindControl(new l(b,this._linetool.properties().labelBackgroundColor,!0,this.model(),"Change Text Background",this._linetool.properties().labelBackgroundTransparency)),this.bindControl(new p(u,this._linetool.properties().fillLabelBackground,!0,this.model(),"Change Text Background Fill")),this.bindControl(new l(C,this._linetool.properties().backgroundColor,!0,this.model(),"Change Text Background",this._linetool.properties().backgroundTransparency)),this.bindControl(new p(y,this._linetool.properties().fillBackground,!0,this.model(),"Change Text Background Fill")),this.bindControl(new l(a,this._linetool.properties().borderColor,!0,this.model(),"Change Text Border Color")),g=this.addLabeledRow(e,$.t("Background"),y),$("<td>").append(y).prependTo(g),$("<td>").append(C).appendTo(g),w=this.addLabeledRow(e,$.t("Label")),$("<td>").prependTo(w),$("<td>").append(n).appendTo(w),$("<td>").append(c).appendTo(w),$("<td>").append(h).appendTo(w),g=this.addLabeledRow(e,$.t("Label Background"),u),$("<td>").append(u).prependTo(g),$("<td>").append(b).appendTo(g),this.bindControl(new l(o,this._linetool.properties().linecolor,!0,this.model(),"Change Date Range Color")),this.bindControl(new s(t,this._linetool.properties().linewidth,!0,this.model(),"Change Date Range Line Width")),this.loadData()},i.prototype.widget=function(){return this._table},e.exports=i},768:function(e,t,o){"use strict";function i(e,t,o){n.call(this,e,t,o),this.prepareLayout()}var n=o(14),a=o(10),r=a.SimpleComboBinder,l=a.ColorBinding,p=a.BooleanBinder,s=a.SliderBinder,d=o(15).createLineWidthEditor;inherit(i,n),i.prototype.prepareLayout=function(){var e,t,o,i,n,a,h,c,b,u,C,y,g,w,T,_,m,f,L,v,k,S,P;this._table=$('<table class="property-page" cellspacing="0" cellpadding="2">'),e=$("<tbody>").appendTo(this._table),t=d(),o=this.createColorPicker(),i=this.addLabeledRow(e,$.t("Line")),$("<td>").prependTo(i),$("<td>").append(o).appendTo(i),$("<td>").append(t).appendTo(i), |
|||
n=this.createColorPicker(),a=this.createColorPicker(),h=this.createFontSizeEditor(),c=this.createFontEditor(),b=this.createColorPicker(),u=$('<input type="checkbox" class="visibility-switch">'),C=this.createColorPicker(),y=$('<input type="checkbox" class="visibility-switch">'),this.bindControl(new l(n,this._linetool.properties().textcolor,!0,this.model(),"Change Text Color")),this.bindControl(new r(h,this._linetool.properties().fontsize,parseInt,!0,this.model(),"Change Text Font Size")),this.bindControl(new r(c,this._linetool.properties().font,null,!0,this.model(),"Change Text Font")),this.bindControl(new l(b,this._linetool.properties().labelBackgroundColor,!0,this.model(),"Change Text Background",this._linetool.properties().labelBackgroundTransparency)),this.bindControl(new p(u,this._linetool.properties().fillLabelBackground,!0,this.model(),"Change Text Background Fill")),this.bindControl(new l(C,this._linetool.properties().backgroundColor,!0,this.model(),"Change Text Background",this._linetool.properties().backgroundTransparency)),this.bindControl(new p(y,this._linetool.properties().fillBackground,!0,this.model(),"Change Text Background Fill")),this.bindControl(new l(a,this._linetool.properties().borderColor,!0,this.model(),"Change Text Border Color")),g=this.addLabeledRow(e,$.t("Background"),y),$("<td>").append(y).prependTo(g),$("<td>").append(C).appendTo(g),w=this.addLabeledRow(e,$.t("Label")),$("<td>").prependTo(w),$("<td>").append(n).appendTo(w),$("<td>").append(c).appendTo(w),$("<td>").append(h).appendTo(w),g=this.addLabeledRow(e,$.t("Label Background"),u),$("<td>").append(u).prependTo(g),$("<td>").append(b).appendTo(g),this.bindControl(new l(o,this._linetool.properties().linecolor,!0,this.model(),"Change Date Range Color")),this.bindControl(new s(t,this._linetool.properties().linewidth,!0,this.model(),"Change Date Range Line Width")),T=this._linetool.properties(),void 0!==T.extendTop&&void 0!==T.extendBottom&&(_=$('<input type="checkbox">'),m=$('<input type="checkbox">'),this.bindControl(new p(_,this._linetool.properties().extendTop,!0,this.model(),"Change Extend Top")),this.bindControl(new p(m,this._linetool.properties().extendBottom,!0,this.model(),"Change Extend Bottom")),f=this.addLabeledRow(e,$.t("Extend Top"),_),$("<td>").append(_).prependTo(f),L=this.addLabeledRow(e,$.t("Extend Bottom"),m),$("<td>").append(m).prependTo(L)),void 0!==T.extendLeft&&void 0!==T.extendRight&&(v=$('<input type="checkbox">'),k=$('<input type="checkbox">'),this.bindControl(new p(v,this._linetool.properties().extendLeft,!0,this.model(),"Change Extend Left")),this.bindControl(new p(k,this._linetool.properties().extendRight,!0,this.model(),"Change Extend Right")),S=this.addLabeledRow(e,$.t("Extend Left"),v),$("<td>").append(v).prependTo(S),P=this.addLabeledRow(e,$.t("Extend Right"),k),$("<td>").append(k).prependTo(P)),this.loadData()},i.prototype.widget=function(){return this._table},e.exports=i},769:function(e,t,o){"use strict";function i(e,t,o){n.call(this,e,t,o),this.prepareLayout()} |
|||
var n=o(14),a=o(10),r=a.SimpleComboBinder,l=a.BooleanBinder,p=a.ColorBinding,s=a.SliderBinder,d=o(31).createLineStyleEditor,h=o(15).createLineWidthEditor;inherit(i,n),i.prototype.prepareLayout=function(){var e,t,o,i,n,a,c,b,u,C,y,g,w,T,_,m,f,L,v,k,S,P,x,B;this._table=$('<table class="property-page" cellspacing="0" cellpadding="2">'),e=$("<tbody>").appendTo(this._table),t=h(),o=d(),i=this.createColorPicker(),n=this.addLabeledRow(e,$.t("Line")),$("<td>").append(i).appendTo(n),$("<td>").append(t).appendTo(n),$('<td colspan="3">').append(o.render()).appendTo(n),n=this.addLabeledRow(e,$.t("Text")),a=this.createColorPicker(),c=this.createFontSizeEditor(),b=this.createFontEditor(),u=$('<span class="_tv-button _tv-button-fontstyle"><span class="icon-fontstyle-bold"></span></span>'),C=$('<span class="_tv-button _tv-button-fontstyle"><span class="icon-fontstyle-italic"></span></span>'),$("<td>").append(a).appendTo(n),$("<td>").append(b).appendTo(n),$("<td>").append(c).appendTo(n),$("<td>").append(u).appendTo(n),$("<td>").append(C).appendTo(n),y=$("<tbody>").appendTo(this._table),g=$('<input type="checkbox" class="visibility-switch">'),w=this.createColorPicker(),n=this.addLabeledRow(y,$.t("Background"),g),T=$("<table>"),$('<td colspan="5">').append(T).appendTo(n),n=$("<tr>").appendTo(T),$("<td>").append(g).appendTo(n),$("<td>").append(w).appendTo(n),_=$("<tbody>").appendTo(this._table),m=$("<label>"+$.t("Extend")+" </label>").css({"margin-left":"8px"}),f=$('<input type="checkbox">').appendTo(m),L=$("<label>"+$.t("Extend")+" </label>").css({"margin-left":"8px"}),v=$('<input type="checkbox">').appendTo(L),k=$("<select><option value='0'>"+$.t("Normal")+"</option><option value='1'>"+$.t("Arrow")+"</option></select>"),S=$("<select><option value='0'>"+$.t("Normal")+"</option><option value='1'>"+$.t("Arrow")+"</option></select>"),n=this.addLabeledRow(_,$.t("Left End")),$('<td colspan="3">').appendTo(n).append(k).append(m),n=this.addLabeledRow(_,$.t("Right End")),$('<td colspan="3">').appendTo(n).append(S).append(L),P=$("<tbody>").appendTo(this._table),n=$("<tr>").appendTo(P),x=$("<input type='checkbox'>"),B=$("<label style='display:block'>").append(x).append($.t("Show Prices")),$("<td colspan='2'>").append(B).appendTo(n),this.bindControl(new r(c,this._linetool.properties().fontsize,parseInt,!0,this.model(),"Change Text Font Size")),this.bindControl(new r(b,this._linetool.properties().font,null,!0,this.model(),"Change Text Font")),this.bindControl(new p(a,this._linetool.properties().textcolor,!0,this.model(),"Change Text Color")),this.bindControl(new l(u,this._linetool.properties().bold,!0,this.model(),"Change Text Font Bold")),this.bindControl(new l(C,this._linetool.properties().italic,!0,this.model(),"Change Text Font Italic")),this.bindControl(new l(x,this._linetool.properties().showPrices,!0,this.model(),"Change Disjoint Angle Show Prices")),this.bindControl(new l(f,this._linetool.properties().extendLeft,!0,this.model(),"Change Disjoint Angle Extending Left")), |
|||
this.bindControl(new l(v,this._linetool.properties().extendRight,!0,this.model(),"Change Disjoint Angle Extending Right")),this.bindControl(new p(i,this._linetool.properties().linecolor,!0,this.model(),"Change Disjoint Angle Color")),this.bindControl(new r(o,this._linetool.properties().linestyle,parseInt,!0,this.model(),"Change Disjoint Angle Style")),this.bindControl(new s(t,this._linetool.properties().linewidth,!0,this.model(),"Change Disjoint Angle Width")),this.bindControl(new r(k,this._linetool.properties().leftEnd,parseInt,!0,this.model(),"Change Disjoint Angle Left End")),this.bindControl(new r(S,this._linetool.properties().rightEnd,parseInt,!0,this.model(),"Change Disjoint Angle Right End")),this.bindControl(new l(g,this._linetool.properties().fillBackground,!0,this.model(),"Change Disjoint Angle Filling")),this.bindControl(new p(w,this._linetool.properties().backgroundColor,!0,this.model(),"Change Disjoint Angle Background Color",this._linetool.properties().transparency)),this.loadData()},i.prototype.widget=function(){return this._table},e.exports=i},770:function(e,t,o){"use strict";function i(e,t,o){n.call(this,e,t,o),this.prepareLayout()}var n,a,r,l,p,s,d;o(23),n=o(14),a=o(10),r=a.SimpleComboBinder,l=a.ColorBinding,p=a.SliderBinder,s=a.BooleanBinder,d=o(15).createLineWidthEditor,inherit(i,n),i.prototype.prepareLayout=function(){var e,t,o,i,n,a;this._table=$('<table class="property-page" cellspacing="0" cellpadding="2">'),e=this._linetool.getDegrees(),t=this.createKeyCombo(e),t.width(300),o=this.createColorPicker(),i=$('<input type="checkbox" class="visibility-switch">'),n=this.addLabeledRow(this._table,window.t("Degree")),$("<td>").prependTo(n),$("<td>").append(t).appendTo(n),n=this.addLabeledRow(this._table,window.t("Line Width")),a=d(),$("<td>").prependTo(n),$("<td>").append(a).appendTo(n),n=this.addLabeledRow(this._table,window.t("Color")),$("<td>").prependTo(n),$("<td>").append(o).appendTo(n),n=this.addLabeledRow(this._table,window.t("Show Wave"),i),$("<td>").append(i).prependTo(n),this.bindControl(new l(o,this._linetool.properties().color,!0,this.model(),"Change Elliott Label Color")),this.bindControl(new r(t,this._linetool.properties().degree,parseInt,!0,this.model(),"Change Elliott Wave Size")),this.bindControl(new s(i,this._linetool.properties().showWave,!0,this.model(),"Change Elliott Labels Background")),this.bindControl(new p(a,this._linetool.properties().linewidth,parseInt,this.model(),"Change Elliott Wave Line Width")),this.loadData()},i.prototype.widget=function(){return this._table},e.exports=i},771:function(e,t,o){"use strict";function i(e,t,o){n.call(this,e,t,o),this.prepareLayout()}var n=o(14),a=o(10),r=a.BooleanBinder,l=a.ColorBinding,p=a.SliderBinder,s=o(15).createLineWidthEditor;inherit(i,n),i.prototype.prepareLayout=function(){var e,t,o,i,n;this._table=$(document.createElement("table")),this._table.addClass("property-page"),this._table.attr("cellspacing","0"),this._table.attr("cellpadding","2"),e=s(),t=this.createColorPicker(),o=this.addLabeledRow(this._table,$.t("Border")), |
|||
o.prepend("<td>"),$("<td>").append(t).appendTo(o),$("<td>").append(e).appendTo(o),i=$('<input type="checkbox" class="visibility-switch">'),n=this.createColorPicker(),o=this.addLabeledRow(this._table,$.t("Background"),i),$("<td>").append(i).prependTo(o),$("<td>").append(n).appendTo(o),this.bindControl(new r(i,this._linetool.properties().fillBackground,!0,this.model(),"Change Ellipse Filling")),this.bindControl(new l(t,this._linetool.properties().color,!0,this.model(),"Change Ellipse Line Color")),this.bindControl(new l(n,this._linetool.properties().backgroundColor,!0,this.model(),"Change Ellipse Background Color",this._linetool.properties().transparency)),this.bindControl(new p(e,this._linetool.properties().linewidth,!0,this.model(),"Change Ellipse Border Width")),this.loadData()},i.prototype.widget=function(){return this._table},e.exports=i},772:function(e,t,o){"use strict";function i(e,t,o){n.call(this,e,t,o)}var n=o(267);inherit(i,n),e.exports=i},773:function(e,t,o){"use strict";function i(e,t,o){n.call(this,e,t,o),this.prepareLayout()}var n=o(14),a=o(10),r=a.FloatBinder,l=a.SimpleComboBinder,p=a.BooleanBinder,s=a.ColorBinding,d=a.SliderBinder,h=o(47).addColorPicker,c=o(31).createLineStyleEditor,b=o(15).createLineWidthEditor,u=o(65).createTransparencyEditor;inherit(i,n),i.prototype.addLevelEditor=function(e,t,o){var i,n,a,u,C,y,g,w,T,_,m=$("<tr>");m.appendTo(this._table),i=$("<td>"),i.appendTo(m),n=$("<input type='checkbox' class='visibility-switch'>"),n.appendTo(i),e?(a=$("<td>"),a.appendTo(m),u=$("<input type='text'>"),u.appendTo(a),u.css("width","70px"),this.bindControl(new r(u,t.coeff,!1,this.model(),"Change Pitchfork Line Coeff"))):this.createLabeledCell("Trend Line",n).appendTo(m),C=$("<td class='colorpicker-cell'>"),C.appendTo(m),y=h(C),g=$("<td>"),g.appendTo(m),w=b(),w.appendTo(g),e||(T=$("<td>"),T.appendTo(m),_=c(),_.render().appendTo(T),this.bindControl(new l(_,t.linestyle,parseInt,!0,this.model(),"Change Fib Circle Style"))),this.bindControl(new p(n,t.visible,!0,this.model(),"Change Fib Circle Visibility")),this.bindControl(new s(y,t.color,!0,this.model(),"Change Fib Circle Line Color",0)),this.bindControl(new d(w,t.linewidth,!0,this.model(),"Change Fib Circle Width"))},i.prototype.prepareLayout=function(){var e,t,o,i,n,a,r;for(this._table=$(document.createElement("table")),this._table.addClass("property-page"),this._table.attr("cellspacing","0"),this._table.attr("cellpadding","2"),this.addLevelEditor(null,this._linetool.properties().trendline,!1),e=1;e<=11;e++)t="level"+e,this.addLevelEditor("Level "+e,this._linetool.properties()[t],!1);this.addOneColorPropertyWidget(this._table),o=$("<input type='checkbox' class='visibility-switch'>"),i=this.addLabeledRow(this._table,"Levels",o),$("<td>").append(o).prependTo(i),n=$("<input type='checkbox' class='visibility-switch'>"),i=this.addLabeledRow(this._table,"Coeffs As Percents",n),$("<td>").append(n).prependTo(i),this.bindControl(new p(o,this._linetool.properties().showCoeffs,!0,this.model(),"Change Fib Circle Levels Visibility")),i=$("<tr>"), |
|||
i.appendTo(this._table),a=$("<input type='checkbox' class='visibility-switch'>"),$("<td>").append(a).appendTo(i),this.createLabeledCell("Background",a).appendTo(i),r=u(),$('<td colspan="3">').append(r).appendTo(i),this.bindControl(new p(a,this._linetool.properties().fillBackground,!0,this.model(),"Change Pitchfork Background Visibility")),this.bindControl(new d(r,this._linetool.properties().transparency,!0,this.model(),"Change Pitchfork Background Transparency")),this.bindControl(new p(n,this._linetool.properties().coeffsAsPercents,!0,this.model(),"Change Fib Retracement Coeffs As Percents")),this.loadData()},i.prototype.widget=function(){return this._table},e.exports=i},774:function(e,t,o){"use strict";function i(e,t,o){n.call(this,e,t,o),this.prepareLayout()}var n=o(14),a=o(10),r=a.FloatBinder,l=a.SimpleComboBinder,p=a.BooleanBinder,s=a.ColorBinding,d=a.SliderBinder,h=o(47).addColorPicker,c=o(31).createLineStyleEditor,b=o(15).createLineWidthEditor,u=o(65).createTransparencyEditor;inherit(i,n),i.prototype.addLevelEditor=function(e,t,o){var i,n,a,u,C,y,g,w,T,_,m=$("<tr>");m.appendTo(this._table),i=$("<td>"),i.appendTo(m),n=$("<input type='checkbox' class='visibility-switch'>"),n.appendTo(i),e?(a=$("<td>"),a.appendTo(m),u=$("<input type='text'>"),u.appendTo(a),u.css("width","70px"),this.bindControl(new r(u,t.coeff,!1,this.model(),"Change Pitchfork Line Coeff"))):$("<td>"+$.t("Trend Line")+"</td>").appendTo(m),C=$("<td class='colorpicker-cell'>"),C.appendTo(m),y=h(C),g=$("<td>"),g.appendTo(m),w=b(),w.appendTo(g),e||(T=$("<td>"),T.appendTo(m),_=c(),_.render().appendTo(T),this.bindControl(new l(_,t.linestyle,parseInt,!0,this.model(),"Change Fib Speed Resistance Arcs Style"))),this.bindControl(new p(n,t.visible,!0,this.model(),"Change Fib Speed Resistance Arcs Visibility")),this.bindControl(new s(y,t.color,!0,this.model(),"Change Fib Speed Resistance Arcs Line Color",0)),this.bindControl(new d(w,t.linewidth,!0,this.model(),"Change Fib Speed Resistance Arcs Width"))},i.prototype.prepareLayout=function(){var e,t,o,i,n,a,r;for(this._table=$(document.createElement("table")),this._table.addClass("property-page"),this._table.attr("cellspacing","0"),this._table.attr("cellpadding","2"),this.addLevelEditor(null,this._linetool.properties().trendline,!1),e=1;e<=11;e++)t="level"+e,this.addLevelEditor("Level "+e,this._linetool.properties()[t],!1);this.addOneColorPropertyWidget(this._table),o=$("<input type='checkbox' class='visibility-switch'>"),i=this.addLabeledRow(this._table,$.t("Levels")),$("<td>").append(o).prependTo(i),this.bindControl(new p(o,this._linetool.properties().showCoeffs,!0,this.model(),"Change Fib Speed Resistance Arcs Levels Visibility")),n=$("<input type='checkbox' class='visibility-switch'>"),i=this.addLabeledRow(this._table,$.t("Full Circles")),$("<td>").append(n).prependTo(i),this.bindControl(new p(n,this._linetool.properties().fullCircles,!0,this.model(),"Change Fib Speed Resistance Arcs Full Cirlces Mode")),i=$("<tr>"),i.appendTo(this._table),a=$("<input type='checkbox' class='visibility-switch'>"), |
|||
$("<td>").append(a).appendTo(i),$("<td>"+$.t("Background")+"</td>").appendTo(i),r=u(),$('<td colspan="3">').append(r).appendTo(i),this.bindControl(new p(a,this._linetool.properties().fillBackground,!0,this.model(),"Change Fib Arcs Background Visibility")),this.bindControl(new d(r,this._linetool.properties().transparency,!0,this.model(),"Change Fib Arcs Background Transparency")),this.loadData()},i.prototype.widget=function(){return this._table},e.exports=i},775:function(e,t,o){"use strict";function i(e,t,o){n.call(this,e,t,o),this.prepareLayout()}var n=o(14),a=o(10),r=a.BooleanBinder,l=a.ColorBinding,p=a.FloatBinder,s=a.SimpleComboBinder,d=a.SliderBinder,h=o(47).addColorPicker,c=o(31).createLineStyleEditor,b=o(15).createLineWidthEditor,u=o(65).createTransparencyEditor;inherit(i,n),i.prototype.addLevelEditor=function(e,t,o){var i,n,a,s,d,c,b=$("<tr>");b.appendTo(e),i=$("<td>"),i.appendTo(b),n=$("<input type='checkbox' class='visibility-switch'>"),n.appendTo(i),a=$("<td>"),a.appendTo(b),s=$("<input type='text'>"),s.appendTo(a),s.css("width","70px"),this.bindControl(new r(n,o.visible,!0,this.model(),"Change Gann Square Line Visibility")),this.bindControl(new p(s,o.coeff,!1,this.model(),"Change Pitchfork Line Coeff")),d=$("<td class='colorpicker-cell'>"),d.appendTo(b),c=h(d),this.bindControl(new l(c,o.color,!0,this.model(),"Change Gann Square Line Color",0))},i.prototype.prepareLayout=function(){var e,t,o,i,n,a,p,h,C,y,g,w,T,_,m,f,L,v,k,S,P,x,B;for(this._table=$(document.createElement("table")),this._table.addClass("property-page property-page-unpadded"),this._table.attr("cellspacing","0"),this._table.attr("cellpadding","2"),this._table.css({width:"100%"}),e=$("<tbody>").appendTo(this._table),t=$("<tr>"),t.appendTo(e),o=$('<td width="50%">'),o.appendTo(t),i=$('<td width="50%">'),i.appendTo(t),n=$('<table cellspacing="0" cellpadding="2">'),n.appendTo(o),n.addClass("property-page"),a=$('<table cellspacing="0" cellpadding="2">'),a.appendTo(i),a.addClass("property-page"),$("<tr><td align='center' colspan='4'>"+$.t("Price Levels")+"</td></tr>").appendTo(n),$("<tr><td align='center' colspan='4'>"+$.t("Time Levels")+"</td></tr>").appendTo(a),p=1;p<=7;p++)h="hlevel"+p,this.addLevelEditor(n,"Level "+p,this._linetool.properties()[h]);for(p=1;p<=7;p++)h="vlevel"+p,this.addLevelEditor(a,"Level "+p,this._linetool.properties()[h]);this.addOneColorPropertyWidget(n),i.css({"vertical-align":"top"}),C=$("<input type='checkbox' class='visibility-switch'>"),y=$("<input type='checkbox' class='visibility-switch'>"),g=$("<input type='checkbox' class='visibility-switch'>"),w=$("<input type='checkbox' class='visibility-switch'>"),T=$('<table class="property-page property-page-unpadded" cellspacing="0" cellpadding="0">').css({width:"100%"}),_=$("<tr>").appendTo(T),m=$('<table class="property-page" cellspacing="0" cellpadding="0">').appendTo($("<td>").css({width:"50%"}).appendTo(_)),f=$('<table class="property-page" cellspacing="0" cellpadding="0">').appendTo($("<td>").css({width:"50%"}).appendTo(_)),L=this.addLabeledRow(m,$.t("Left Labels"),C), |
|||
$("<td>").append(C).prependTo(L),L=this.addLabeledRow(f,$.t("Right Labels"),y),$("<td>").append(y).prependTo(L),L=this.addLabeledRow(m,$.t("Top Labels"),g),$("<td>").append(g).prependTo(L),L=this.addLabeledRow(f,$.t("Bottom Labels"),w),$("<td>").append(w).prependTo(L),this.bindControl(new r(C,this._linetool.properties().showLeftLabels,!0,this.model(),"Change Gann Square Left Labels Visibility")),this.bindControl(new r(y,this._linetool.properties().showRightLabels,!0,this.model(),"Change Gann Square Right Labels Visibility")),this.bindControl(new r(g,this._linetool.properties().showTopLabels,!0,this.model(),"Change Gann Square Top Labels Visibility")),this.bindControl(new r(w,this._linetool.properties().showBottomLabels,!0,this.model(),"Change Gann Square Bottom Labels Visibility")),v=$('<table class="property-page" cellspacing="0" cellpadding="2">'),k=b(),S=c(),P=this.createColorPicker(),x=$("<input type='checkbox' class='visibility-switch'>"),L=this.addLabeledRow(v,$.t("Grid"),x),$("<td>").append(x).prependTo(L),$("<td>").append(P).appendTo(L),$("<td>").append(k).appendTo(L),$("<td>").append(S.render()).appendTo(L),this.bindControl(new r(x,this._linetool.properties().grid.visible,!0,this.model(),"Change Fib Speed Resistance Fan Grid Visibility")),this.bindControl(new l(P,this._linetool.properties().grid.color,!0,this.model(),"Change Fib Speed Resistance Fan Grid Line Color",0)),this.bindControl(new s(S,this._linetool.properties().grid.linestyle,parseInt,!0,this.model(),"Change Fib Speed Resistance Fan Grid Line Style")),this.bindControl(new d(k,this._linetool.properties().grid.linewidth,!0,this.model(),"Change Fib Speed Resistance Fan Grid Line Width")),this._table=this._table.add(T).add(v),L=$("<tr>"),L.appendTo(v),x=$("<input type='checkbox' class='visibility-switch'>"),$("<td>").append(x).appendTo(L),this.createLabeledCell("Background",x).appendTo(L),B=u(),$('<td colspan="3">').append(B).appendTo(L),this.bindControl(new r(x,this._linetool.properties().fillBackground,!0,this.model(),"Change Fib Speed/Resistance Fan Background Visibility")),this.bindControl(new d(B,this._linetool.properties().transparency,!0,this.model(),"Change Fib Speed/Resistance Fan Background Transparency")),this.loadData()},i.prototype.widget=function(){return this._table},e.exports=i},776:function(e,t,o){"use strict";function i(e,t,o){n.call(this,e,t,o),this.prepareLayout()}var n=o(14),a=o(10),r=a.SimpleComboBinder,l=a.ColorBinding,p=a.SliderBinder,s=o(31).createLineStyleEditor,d=o(15).createLineWidthEditor;inherit(i,n),i.prototype.prepareLayout=function(){var e,t,o,i,n;this._table=$('<table class="property-page" cellspacing="0" cellpadding="2">'),e=$("<tbody>").appendTo(this._table),t=d(),o=s(),i=this.createColorPicker(),n=this.addLabeledRow(e,"Line"),$("<td>").append(i).appendTo(n),$("<td>").append(t).appendTo(n),$('<td colspan="3">').append(o.render()).appendTo(n),this.bindControl(new l(i,this._linetool.properties().linecolor,!0,this.model(),"Change Fib Spiral Line Color")), |
|||
this.bindControl(new r(o,this._linetool.properties().linestyle,parseInt,!0,this.model(),"Change Fib Spiral Line Style")),this.bindControl(new p(t,this._linetool.properties().linewidth,!0,this.model(),"Change Fib Spiral Line Width")),this.loadData()},i.prototype.widget=function(){return this._table},e.exports=i},777:function(e,t,o){"use strict";function i(e,t,o){n.call(this,e,t,o),this.prepareLayout()}var n=o(14),a=o(10),r=a.FloatBinder,l=a.BooleanBinder,p=a.ColorBinding,s=a.SimpleComboBinder,d=a.SliderBinder,h=o(47).addColorPicker,c=o(31).createLineStyleEditor,b=o(15).createLineWidthEditor,u=o(65).createTransparencyEditor;inherit(i,n),i.prototype.addLevelEditor=function(e,t,o){var i,n,a,u,C,y,g,w,T,_,m=$("<tr>");m.appendTo(this._table),i=$("<td>"),i.appendTo(m),n=$("<input type='checkbox' class='visibility-switch'>"),n.appendTo(i),e?(a=$("<td>"),a.appendTo(m),u=$("<input type='text'>"),u.appendTo(a),u.css("width","70px"),this.bindControl(new r(u,t.coeff,!1,this.model(),"Change Pitchfork Line Coeff"))):this.createLabeledCell($.t("Trend Line"),n).appendTo(m),C=$("<td class='colorpicker-cell'>"),C.appendTo(m),y=h(C),g=$("<td>"),g.appendTo(m),w=b(),w.appendTo(g),T=$("<td>"),T.appendTo(m),_=c(),_.render().appendTo(T),this.bindControl(new l(n,t.visible,!0,this.model(),"Change Pitchfork Line Visibility")),this.bindControl(new p(y,t.color,!0,this.model(),"Change Pitchfork Line Color",0)),this.bindControl(new s(_,t.linestyle,parseInt,!0,this.model(),"Change Pitchfork Line Style")),this.bindControl(new d(w,t.linewidth,parseInt,this.model(),"Change Pitchfork Line Width"))},i.prototype.prepareLayout=function(){var e,t,o,i,n,a,r,p,h;for(this._table=$(document.createElement("table")),this._table.addClass("property-page"),this._table.attr("cellspacing","0"),this._table.attr("cellpadding","2"),e=1;e<=11;e++)t="level"+e,this.addLevelEditor("Level "+e,this._linetool.properties()[t],!1);this.addOneColorPropertyWidget(this._table),o=$("<input type='checkbox' class='visibility-switch'>"),i=this.addLabeledRow(this._table,$.t("Show Labels"),o),$("<td>").append(o).prependTo(i),n=$("<table cellspacing='0' cellpadding='0'>"),a=$("<select><option value='left'>"+$.t("left")+"</option><option value='center'>"+$.t("center")+"</option><option value='right'>"+$.t("right")+"</option></select>"),r=$("<select><option value='top'>"+$.t("top")+"</option><option value='middle'>"+$.t("middle")+"</option><option value='bottom'>"+$.t("bottom")+"</option></select>"),i=$("<tr>"),i.append("<td>"+$.t("Labels")+"</td>").append(a).append("<td> </td>").append(r),i.appendTo(n),i=$("<tr>"),$("<td colspan='5'>").append(n).appendTo(i),i.appendTo(this._table),this.bindControl(new s(a,this._linetool.properties().horzLabelsAlign,null,!0,this.model(),"Change Fib Time Zone Labels Alignment")),this.bindControl(new s(r,this._linetool.properties().vertLabelsAlign,null,!0,this.model(),"Change Fib Time Zone Labels Alignment")),i=$("<tr>"),i.appendTo(this._table),p=$("<input type='checkbox' class='visibility-switch'>"),$("<td>").append(p).appendTo(i), |
|||
this.createLabeledCell($.t("Background"),p).appendTo(i),h=u(),$('<td colspan="3">').append(h).appendTo(i),this.bindControl(new l(o,this._linetool.properties().showLabels,!0,this.model(),"Change Fib Time Zone Labels Visibility")),this.bindControl(new d(h,this._linetool.properties().transparency,!0,this.model(),"Change Fib Retracement Background Transparency")),this.bindControl(new l(p,this._linetool.properties().fillBackground,!0,this.model(),"Change Fib Retracement Background Visibility")),this.loadData()},i.prototype.widget=function(){return this._table},e.exports=i},778:function(e,t,o){"use strict";function i(e,t,o){n.call(this,e,t,o)}var n=o(267);inherit(i,n),e.exports=i},779:function(e,t,o){"use strict";function i(e,t,o){n.call(this,e,t,o),this.prepareLayout()}var n=o(14),a=o(10),r=a.FloatBinder,l=a.BooleanBinder,p=a.SliderBinder,s=a.SimpleComboBinder,d=a.ColorBinding,h=o(47).addColorPicker,c=o(31).createLineStyleEditor,b=o(15).createLineWidthEditor,u=o(65).createTransparencyEditor;inherit(i,n),i.prototype.addLevelEditor=function(e,t,o){var i,n,a,u,C,y,g,w,T,_,m=$("<tr>");m.appendTo(this._table),i=$("<td>"),i.appendTo(m),n=$("<input type='checkbox' class='visibility-switch'>"),n.appendTo(i),e?(a=$("<td>"),a.appendTo(m),u=$("<input type='text'>"),u.appendTo(a),u.css("width","70px"),this.bindControl(new r(u,t.coeff,!1,this.model(),"Change Pitchfork Line Coeff"))):this.createLabeledCell($.t("Trend Line"),n).appendTo(m),C=$("<td class='colorpicker-cell'>"),C.appendTo(m),y=h(C),g=$("<td>"),g.appendTo(m),w=b(),w.appendTo(g),T=$("<td>"),T.appendTo(m),_=c(),_.render().appendTo(T),this.bindControl(new l(n,t.visible,!0,this.model(),"Change Pitchfork Line Visibility")),this.bindControl(new d(y,t.color,!0,this.model(),"Change Pitchfork Line Color",0)),this.bindControl(new s(_,t.linestyle,parseInt,!0,this.model(),"Change Pitchfork Line Style")),this.bindControl(new p(w,t.linewidth,parseInt,this.model(),"Change Pitchfork Line Width"))},i.prototype.prepareLayout=function(){var e,t,o,i,n,a,r,d,h,c,b;for(this._table=$(document.createElement("table")),this._table.addClass("property-page"),this._table.attr("cellspacing","0"),this._table.attr("cellpadding","2"),this.addLevelEditor(null,this._linetool.properties().trendline,!1),e=1;e<=11;e++)t="level"+e,this.addLevelEditor($.t("Level {0}").format(e),this._linetool.properties()[t],!1);this.addOneColorPropertyWidget(this._table),o=$('<table class="property-page property-page-unpadded" cellspacing="0" cellpadding="0">').css({width:"100%"}),i=$("<tr>").appendTo(o),$('<table class="property-page" cellspacing="0" cellpadding="0">').appendTo($("<td>").css({width:"50%"}).appendTo(i)),$('<table class="property-page" cellspacing="0" cellpadding="0">').appendTo($("<td>").css({width:"50%"}).appendTo(i)),n=$("<input type='checkbox' class='visibility-switch'>"),a=this.addLabeledRow(this._table,$.t("Show Labels"),n),$("<td>").append(n).prependTo(a),r=$("<table cellspacing='0' cellpadding='0'>"), |
|||
d=$("<select><option value='left'>"+$.t("left")+"</option><option value='center'>"+$.t("center")+"</option><option value='right'>"+$.t("right")+"</option></select>"),h=$("<select><option value='top'>"+$.t("top")+"</option><option value='middle'>"+$.t("middle")+"</option><option value='bottom'>"+$.t("bottom")+"</option></select>"),a=$("<tr>"),a.append("<td>"+$.t("Labels")+"</td>").append(d).append("<td> </td>").append(h),a.appendTo(r),a=$("<tr>"),$("<td colspan='5'>").append(r).appendTo(a),a.appendTo(this._table),this.bindControl(new s(d,this._linetool.properties().horzLabelsAlign,null,!0,this.model(),"Change Trend-Based Fib Time Labels Alignment")),this.bindControl(new s(h,this._linetool.properties().vertLabelsAlign,null,!0,this.model(),"Change Trend-Based Fib Time Labels Alignment")),a=$("<tr>"),a.appendTo(this._table),c=$("<input type='checkbox' class='visibility-switch'>"),$("<td>").append(c).appendTo(a),this.createLabeledCell($.t("Background"),c).appendTo(a),b=u(),$('<td colspan="3">').append(b).appendTo(a),this.bindControl(new l(c,this._linetool.properties().fillBackground,!0,this.model(),"Change Fib Retracement Background Visibility")),this.bindControl(new p(b,this._linetool.properties().transparency,!0,this.model(),"Change Fib Retracement Background Transparency")),this.bindControl(new l(n,this._linetool.properties().showCoeffs,!0,this.model(),"Change Fib Retracement Extend Lines")),this.loadData()},i.prototype.widget=function(){return this._table},e.exports=i},780:function(e,t,o){"use strict";function i(e,t,o){n.call(this,e,t,o),this.prepareLayout()}var n=o(14),a=o(10),r=a.FloatBinder,l=a.BooleanBinder,p=a.ColorBinding,s=a.SliderBinder,d=o(47).addColorPicker,h=o(15).createLineWidthEditor,c=o(65).createTransparencyEditor;inherit(i,n),i.prototype.addLevelEditor=function(e,t,o){var i,n,a,c,b,u,C,y,g=$("<tr>");g.appendTo(this._table),i=$("<td>"),i.appendTo(g),n=$("<input type='checkbox' class='visibility-switch'>"),n.appendTo(i),e?(a=$("<td>"),a.appendTo(g),c=$("<input type='text'>"),c.appendTo(a),c.css("width","70px"),this.bindControl(new r(c,t.coeff,!1,this.model(),"Change Pitchfork Line Coeff"))):this.createLabeledCell("Trend Line",n).appendTo(g),b=$("<td class='colorpicker-cell'>"),b.appendTo(g),u=d(b),C=$("<td>"),C.appendTo(g),y=h(),y.appendTo(C),this.bindControl(new l(n,t.visible,!0,this.model(),"Change Fib Wedge Visibility")),this.bindControl(new p(u,t.color,!0,this.model(),"Change Fib Wedge Line Color",0)),this.bindControl(new s(y,t.linewidth,!0,this.model(),"Change Fib Wedge Width"))},i.prototype.prepareLayout=function(){var e,t,o,i,n,a;for(this._table=$(document.createElement("table")),this._table.addClass("property-page"),this._table.attr("cellspacing","0"),this._table.attr("cellpadding","2"),this.addLevelEditor(null,this._linetool.properties().trendline,!1),e=1;e<=11;e++)t="level"+e,this.addLevelEditor("Level "+e,this._linetool.properties()[t],!1);this.addOneColorPropertyWidget(this._table),o=$("<input type='checkbox' class='visibility-switch'>"),i=this.addLabeledRow(this._table,"Levels",o), |
|||
$("<td>").append(o).prependTo(i),this.bindControl(new l(o,this._linetool.properties().showCoeffs,!0,this.model(),"Change Fib Wedge Levels Visibility")),i=$("<tr>"),i.appendTo(this._table),n=$("<input type='checkbox' class='visibility-switch'>"),$("<td>").append(n).appendTo(i),this.createLabeledCell("Background",n).appendTo(i),a=c(),$('<td colspan="3">').append(a).appendTo(i),this.bindControl(new l(n,this._linetool.properties().fillBackground,!0,this.model(),"Change Wedge Background Visibility")),this.bindControl(new s(a,this._linetool.properties().transparency,!0,this.model(),"Change Wedge Background Transparency")),this.loadData()},i.prototype.widget=function(){return this._table},e.exports=i},781:function(e,t,o){"use strict";function i(e,t,o){n.call(this,e,t,o),this.prepareLayout()}var n=o(14),a=o(10),r=a.SimpleComboBinder,l=a.ColorBinding,p=a.BooleanBinder,s=a.SliderBinder,d=o(31).createLineStyleEditor,h=o(15).createLineWidthEditor;inherit(i,n),i.prototype.prepareLayout=function(){var e,t,o,i,n,a,c,b,u,C,y,g,w,T,_,m,f,L,v,k,S,P,x,B;this._table=$('<table class="property-page" cellspacing="0" cellpadding="2">'),e=$("<tbody>").appendTo(this._table),t=h(),o=d(),i=this.createColorPicker(),n=this.addLabeledRow(e,$.t("Line")),$("<td>").append(i).appendTo(n),$("<td>").append(t).appendTo(n),$('<td colspan="3">').append(o.render()).appendTo(n),n=this.addLabeledRow(e,$.t("Text")),a=this.createColorPicker(),c=this.createFontSizeEditor(),b=this.createFontEditor(),u=$('<span class="_tv-button _tv-button-fontstyle"><span class="icon-fontstyle-bold"></span></span>'),C=$('<span class="_tv-button _tv-button-fontstyle"><span class="icon-fontstyle-italic"></span></span>'),$("<td>").append(a).appendTo(n),$("<td>").append(b).appendTo(n),$("<td>").append(c).appendTo(n),$("<td>").append(u).appendTo(n),$("<td>").append(C).appendTo(n),y=$("<tbody>").appendTo(this._table),g=$('<input type="checkbox" class="visibility-switch">'),w=this.createColorPicker(),n=this.addLabeledRow(y,$.t("Background"),g),T=$("<table>"),$('<td colspan="5">').append(T).appendTo(n),n=$("<tr>").appendTo(T),$("<td>").append(g).appendTo(n),$("<td>").append(w).appendTo(n),_=$("<tbody>").appendTo(this._table),m=$("<label>"+$.t("Extend")+" </label>").css({"margin-left":"8px"}),f=$('<input type="checkbox">').appendTo(m),L=$("<label>"+$.t("Extend")+" </label>").css({"margin-left":"8px"}),v=$('<input type="checkbox">').appendTo(L),k=$("<select><option value='0'>"+$.t("Normal")+"</option><option value='1'>"+$.t("Arrow")+"</option></select>"),S=$("<select><option value='0'>"+$.t("Normal")+"</option><option value='1'>"+$.t("Arrow")+"</option></select>"),n=this.addLabeledRow(_,$.t("Left End")),$('<td colspan="3">').appendTo(n).append(k).append(m),n=this.addLabeledRow(_,$.t("Right End")),$('<td colspan="3">').appendTo(n).append(S).append(L),P=$("<tbody>").appendTo(this._table),n=$("<tr>").appendTo(P),x=$("<input type='checkbox'>"),B=$("<label style='display:block'>").append(x).append($.t("Show Prices")),$("<td colspan='2'>").append(B).appendTo(n), |
|||
this.bindControl(new r(c,this._linetool.properties().fontsize,parseInt,!0,this.model(),"Change Text Font Size")),this.bindControl(new r(b,this._linetool.properties().font,null,!0,this.model(),"Change Text Font")),this.bindControl(new l(a,this._linetool.properties().textcolor,!0,this.model(),"Change Text Color")),this.bindControl(new p(u,this._linetool.properties().bold,!0,this.model(),"Change Text Font Bold")),this.bindControl(new p(C,this._linetool.properties().italic,!0,this.model(),"Change Text Font Italic")),this.bindControl(new p(x,this._linetool.properties().showPrices,!0,this.model(),"Change Disjoint Angle Show Prices")),this.bindControl(new p(f,this._linetool.properties().extendLeft,!0,this.model(),"Change Disjoint Angle Extending Left")),this.bindControl(new p(v,this._linetool.properties().extendRight,!0,this.model(),"Change Disjoint Angle Extending Right")),this.bindControl(new l(i,this._linetool.properties().linecolor,!0,this.model(),"Change Disjoint Angle Color")),this.bindControl(new r(o,this._linetool.properties().linestyle,parseInt,!0,this.model(),"Change Disjoint Angle Style")),this.bindControl(new s(t,this._linetool.properties().linewidth,!0,this.model(),"Change Disjoint Angle Width")),this.bindControl(new r(k,this._linetool.properties().leftEnd,parseInt,!0,this.model(),"Change Disjoint Angle Left End")),this.bindControl(new r(S,this._linetool.properties().rightEnd,parseInt,!0,this.model(),"Change Disjoint Angle Right End")),this.bindControl(new p(g,this._linetool.properties().fillBackground,!0,this.model(),"Change Disjoint Angle Filling")),this.bindControl(new l(w,this._linetool.properties().backgroundColor,!0,this.model(),"Change Disjoint Angle Background Color",this._linetool.properties().transparency)),this.loadData()},i.prototype.widget=function(){return this._table},e.exports=i},782:function(e,t,o){"use strict";function i(e,t,o){n.call(this,e,t,o),this.prepareLayout()}var n=o(14),a=o(10),r=a.BooleanBinder,l=a.SliderBinder,p=a.ColorBinding,s=o(47).addColorPicker,d=o(15).createLineWidthEditor,h=o(65).createTransparencyEditor;inherit(i,n),i.prototype.addOneColorPropertyWidget=function(e){var t=this.createOneColorForAllLinesWidget(),o=$("<tr>");o.append($("<td>")).append($("<td>")).append(t.editor).append($("<td>").append(t.label)),o.appendTo(e)},i.prototype.prepareLayout=function(){var e,t,o,i,n,a,c,b,u,C,y,g,w,T,_,m,f,L,v,k,S,P,x,B,E,R,F;this._table=$(document.createElement("table")),this._table.addClass("property-page property-page-unpadded"),this._table.attr("cellspacing","0"),this._table.attr("cellpadding","2"),this._table.css({width:"100%"}),e=$("<tr>"),e.appendTo(this._table),t=this._linetool.properties(),o=$("<table>"),$("<td valign='top'>").append(o).appendTo(e),i=$("<tr>"),$("<td colspan='3'>"+$.t("Levels")+"</td>").appendTo(i),i.appendTo(o);for(n in t.levels._childs)a=t.levels[n],c=$("<tr>"),c.appendTo(o),$("<td>"+n+"</td>").appendTo(c),b=$("<input type='checkbox' class='visibility-switch'>"),$("<td>").append(b).appendTo(c),u=$("<td class='colorpicker-cell'>"),u.appendTo(c),C=s(u), |
|||
y=$("<td>"),y.appendTo(c),g=d(),g.appendTo(y),this.bindControl(new r(b,a.visible,!0,this.model(),"Change Gann Line Visibility")),this.bindControl(new p(C,a.color,!0,this.model(),"Change Gann Line Color",0)),this.bindControl(new l(g,a.width,!0,this.model(),"Change Gann Line Width"));w=$("<table>"),$("<td valign='top'>").append(w).appendTo(e),T=$("<tr>"),$("<td colspan='4'>"+$.t("Fans")+"</td>").appendTo(T),T.appendTo(w);for(n in t.fanlines._childs)_=t.fanlines[n],m=$("<tr>"),m.appendTo(w),b=$("<input type='checkbox' class='visibility-switch'>"),$("<td>").append(b).appendTo(m),f=_.x.value()+"x"+_.y.value(),$("<td>"+f+"</td>").appendTo(m),u=$("<td class='colorpicker-cell'>"),u.appendTo(m),C=s(u),y=$("<td>"),y.appendTo(m),g=d(),g.appendTo(y),this.bindControl(new r(b,_.visible,!0,this.model(),"Change Gann Line Visibility")),this.bindControl(new p(C,_.color,!0,this.model(),"Change Gann Fan Color",0)),this.bindControl(new l(g,_.width,!0,this.model(),"Change Gann Line Width"));L=$("<table>"),$("<td valign='top'>").append(L).appendTo(e),v=$("<tr>"),$("<td colspan='4'>"+$.t("Arcs")+"</td>").appendTo(v),v.appendTo(L);for(n in t.arcs._childs)k=t.arcs[n],S=$("<tr>"),S.appendTo(L),b=$("<input type='checkbox' class='visibility-switch'>"),$("<td>").append(b).appendTo(S),f=k.x.value()+"x"+k.y.value(),$("<td>"+f+"</td>").appendTo(S),u=$("<td class='colorpicker-cell'>"),u.appendTo(S),C=s(u),y=$("<td>"),y.appendTo(S),g=d(),g.appendTo(y),this.bindControl(new r(b,k.visible,!0,this.model(),"Change Gann Line Visibility")),this.bindControl(new p(C,k.color,!0,this.model(),"Change Gann Arc Color",0)),this.bindControl(new l(g,k.width,!0,this.model(),"Change Gann Line Width"));this.addOneColorPropertyWidget(L),P=$("<tbody>").appendTo(this._table),x=$('<input type="checkbox" class="visibility-switch">'),B=h(),E=$("<tr>").appendTo(P),R=$("<table>"),$('<td colspan="3">').append(R).appendTo(E),E=$("<tr>").appendTo(R),$("<td>").append(x).appendTo(E),$("<td>"+$.t("Background")+"</td>").appendTo(E),$("<td>").append(B).appendTo(E),this._linetool.properties().reverse&&(F=$("<input type='checkbox' class='visibility-switch'>"),E=this.addLabeledRow(R,$.t("Reverse"),F,!0),$("<td>").append(F).prependTo(E),this.bindControl(new r(F,this._linetool.properties().reverse,!0,this.model(),"Change Gann Square Reverse"))),this.bindControl(new r(x,this._linetool.properties().arcsBackground.fillBackground,!0,this.model(),"Change Gann Square Filling")),this.bindControl(new l(B,this._linetool.properties().arcsBackground.transparency,!0,this.model(),"Change Gann Square Background Transparency"))},i.prototype.widget=function(){return this._table},e.exports=i},783:function(e,t,o){"use strict";function i(e,t,o){n.call(this,e,t,o),this.prepareLayout()}var n=o(14),a=o(10),r=a.BooleanBinder,l=a.ColorBinding,p=a.SimpleComboBinder,s=a.SliderBinder,d=o(47).addColorPicker,h=o(31).createLineStyleEditor,c=o(15).createLineWidthEditor,b=o(65).createTransparencyEditor;inherit(i,n),i.prototype.addLevelEditor=function(e,t,o,i){var n,a,b,u,C,y,g,w,T,_,m=$("<tr>");m.appendTo(this._tbody), |
|||
n="control-level-"+o+"-"+i,a=$("<td>"),a.appendTo(m),b=$("<input type='checkbox' class='visibility-switch' id='"+n+"'>"),b.appendTo(a),u=this.createLabeledCell(e).appendTo(m),u.find("label").attr("for",n),C=$("<td class='colorpicker-cell'>"),C.appendTo(m),y=d(C),g=$("<td>"),g.appendTo(m),w=c(),w.appendTo(g),T=$("<td>"),T.appendTo(m),_=h(),_.render().appendTo(T),this.bindControl(new r(b,t.visible,!0,this.model(),"Change Gann Fan Line Visibility")),this.bindControl(new l(y,t.color,!0,this.model(),"Change Gann Fan Line Color",0)),this.bindControl(new p(_,t.linestyle,parseInt,!0,this.model(),"Change Gann Fan Line Style")),this.bindControl(new s(w,t.linewidth,!0,this.model(),"Change Gann Fan Line Width"))},i.prototype.prepareLayout=function(){var e,t,o,i,n,a,l,p,d,h,c=$('<table class="property-page" cellspacing="0" cellpadding="2">'),u=$('<table class="property-page" cellspacing="0" cellpadding="2">');for(this._tbody=$("<tbody>").appendTo(c),e=1;e<=9;e++)t="level"+e,o=this._linetool.properties()[t],i=o.coeff1.value(),n=o.coeff2.value(),a="<sup>"+i+"</sup>⁄<sub>"+n+"</sub>",this.addLevelEditor(a,o,i,n);this.addOneColorPropertyWidget(this._tbody),l=$("<input type='checkbox' class='visibility-switch'>"),p=this.addLabeledRow(u,$.t("Labels"),l),$("<td>").append(l).prependTo(p),this.bindControl(new r(l,this._linetool.properties().showLabels,!0,this.model(),"Change Gann Fan Labels Visibility")),this._table=c.add(u),p=$("<tr>"),p.appendTo(this._table),d=$("<input type='checkbox' class='visibility-switch'>"),$("<td>").append(d).appendTo(p),this.createLabeledCell($.t("Background"),d).appendTo(p),h=b(),$('<td colspan="3">').append(h).appendTo(p),this.bindControl(new r(d,this._linetool.properties().fillBackground,!0,this.model(),"Change Pitchfan Background Visibility")),this.bindControl(new s(h,this._linetool.properties().transparency,!0,this.model(),"Change Pitchfan Background Transparency")),this.loadData()},i.prototype.widget=function(){return this._table},e.exports=i},784:function(e,t,o){"use strict";function i(e,t,o){n.call(this,e,t,o),this.prepareLayout()}var n=o(14),a=o(10),r=a.BooleanBinder,l=a.FloatBinder,p=a.ColorBinding,s=a.SliderBinder,d=o(47).addColorPicker,h=o(65).createTransparencyEditor;inherit(i,n),i.prototype.addLevelEditor=function(e,t,o){var i,n,a,s,h,c,b=$("<tr>");b.appendTo(e),i=$("<td>"),i.appendTo(b),n=$("<input type='checkbox' class='visibility-switch'>"),n.appendTo(i),a=$("<td>"),a.appendTo(b),s=$("<input type='text'>"),s.appendTo(a),s.css("width","70px"),this.bindControl(new r(n,o.visible,!0,this.model(),"Change Gann Square Line Visibility")),this.bindControl(new l(s,o.coeff,!1,this.model(),"Change Pitchfork Line Coeff")),h=$("<td class='colorpicker-cell'>"),h.appendTo(b),c=d(h),this.bindControl(new p(c,o.color,!0,this.model(),"Change Gann Square Line Color",0))},i.prototype.addFannEditor=function(e){var t,o,i=$("<tr>").appendTo(e),n=$("<input type='checkbox' class='visibility-switch'>");n.appendTo($("<td>").appendTo(i)),$("<td>"+$.t("Angles")+"</td>").appendTo(i), |
|||
t=$("<td class='colorpicker-cell'>").appendTo(i),o=d(t),this.bindControl(new r(n,this._linetool.properties().fans.visible,!0,this.model(),"Change Gann Square Angles Visibility")),this.bindControl(new p(o,this._linetool.properties().fans.color,!0,this.model(),"Change Gann Square Angles Color",0))},i.prototype.prepareLayout=function(){var e,t,o,i,n,a,l,p,d,c,b,u,C,y,g,w,T,_,m,f;for(this._table=$(document.createElement("table")),this._table.addClass("property-page property-page-unpadded"),this._table.attr("cellspacing","0"),this._table.attr("cellpadding","2"),this._table.css({width:"100%"}),e=$("<tbody>").appendTo(this._table),t=$("<tr>"),t.appendTo(e),o=$('<td width="50%">'),o.appendTo(t),i=$('<td width="50%">'),i.appendTo(t),n=$('<table cellspacing="0" cellpadding="2">'),n.appendTo(o),n.addClass("property-page"),a=$('<table cellspacing="0" cellpadding="2">'),a.appendTo(i),a.addClass("property-page"),$("<tr><td align='center' colspan='4'>"+$.t("Price Levels")+"</td></tr>").appendTo(n),$("<tr><td align='center' colspan='4'>"+$.t("Time Levels")+"</td></tr>").appendTo(a),l=1;l<=7;l++)p="hlevel"+l,this.addLevelEditor(n,$.t("Level {0}").format(l),this._linetool.properties()[p]);for(l=1;l<=7;l++)p="vlevel"+l,this.addLevelEditor(a,$.t("Level {0}").format(l),this._linetool.properties()[p]);this.addFannEditor(n),this.addOneColorPropertyWidget(a),i.css({"vertical-align":"top"}),o.css({"vertical-align":"top"}),d=$("<input type='checkbox' class='visibility-switch'>"),c=$("<input type='checkbox' class='visibility-switch'>"),b=$("<input type='checkbox' class='visibility-switch'>"),u=$("<input type='checkbox' class='visibility-switch'>"),C=$('<table class="property-page property-page-unpadded" cellspacing="0" cellpadding="0">').css({width:"100%"}),y=$("<tr>").appendTo(C),g=$('<table class="property-page" cellspacing="0" cellpadding="0">').appendTo($("<td>").css({width:"50%","vertical-align":"top"}).appendTo(y)),w=$('<table class="property-page" cellspacing="0" cellpadding="0">').appendTo($("<td>").css({width:"50%","vertical-align":"top"}).appendTo(y)),T=this.addLabeledRow(g,$.t("Left Labels"),d),$("<td>").append(d).prependTo(T),T=this.addLabeledRow(w,$.t("Right Labels"),c),$("<td>").append(c).prependTo(T),T=this.addLabeledRow(g,$.t("Top Labels"),b),$("<td>").append(b).prependTo(T),T=this.addLabeledRow(w,$.t("Bottom Labels"),u),$("<td>").append(u).prependTo(T),this.bindControl(new r(d,this._linetool.properties().showLeftLabels,!0,this.model(),"Change Gann Square Left Labels Visibility")),this.bindControl(new r(c,this._linetool.properties().showRightLabels,!0,this.model(),"Change Gann Square Right Labels Visibility")),this.bindControl(new r(b,this._linetool.properties().showTopLabels,!0,this.model(),"Change Gann Square Top Labels Visibility")),this.bindControl(new r(u,this._linetool.properties().showBottomLabels,!0,this.model(),"Change Gann Square Bottom Labels Visibility")),this._table=this._table.add(C),T=$("<tr>"),T.appendTo(g),_=$("<input type='checkbox' class='visibility-switch'>"),$("<td>").append(_).appendTo(T),m=h(), |
|||
$("<td>").append(m).appendTo(T),this.bindControl(new r(_,this._linetool.properties().fillHorzBackground,!0,this.model(),"Change Gann Square Background Visibility")),this.bindControl(new s(m,this._linetool.properties().horzTransparency,!0,this.model(),"Change Gann Square Background Transparency")),T=$("<tr>"),T.appendTo(w),_=$("<input type='checkbox' class='visibility-switch'>"),$("<td>").append(_).appendTo(T),m=h(),$("<td>").append(m).appendTo(T),this.bindControl(new r(_,this._linetool.properties().fillVertBackground,!0,this.model(),"Change Gann Square Background Visibility")),this.bindControl(new s(m,this._linetool.properties().vertTransparency,!0,this.model(),"Change Gann Square Background Transparency")),this._linetool.properties().reverse&&(f=$("<input type='checkbox' class='visibility-switch'>"),T=this.addLabeledRow(g,$.t("Reverse"),f),$("<td>").append(f).prependTo(T),this.bindControl(new r(f,this._linetool.properties().reverse,!0,this.model(),"Change Gann Box Reverse"))),this.loadData()},i.prototype.widget=function(){return this._table},e.exports=i},785:function(e,t,o){"use strict";function i(e,t,o){n.call(this,e,t,o),this.prepareLayout()}var n=o(14),a=o(10).ColorBinding;inherit(i,n),i.prototype.prepareLayout=function(){var e,t,o,i;this._table=$(document.createElement("table")),this._table.addClass("property-page"),this._table.attr("cellspacing","0"),this._table.attr("cellpadding","2"),e=this.createColorPicker(),t=$.t("Color")+":",o=this.addLabeledRow(this._table,t),$("<td>").append(e).appendTo(o),i=this._linetool.properties(),this._div=$("<div>").append(this._table),this.bindControl(new a(e,i.color,!0,this.model(),"Change Icon Color")),this.loadData()},i.prototype.widget=function(){return this._div},e.exports=i},786:function(e,t,o){"use strict";function i(e,t,o){a.call(this,e,t,o),this.prepareLayout()}var n=o(1).Point,a=o(14),r=o(10),l=r.ColorBinding,p=r.SimpleComboBinder,s=r.SimpleStringBinder,d=r.BooleanBinder,h=o(97);inherit(i,a),i.prototype.prepareLayout=function(){var e,t,o,i,n=this.createColorPicker(),a=this.createFontSizeEditor(),r=this.createFontEditor(),h=this.createTextEditor(350,200),c=this.createColorPicker(),b=this.createColorPicker(),u=$('<span class="_tv-button _tv-button-fontstyle"><span class="icon-fontstyle-bold"></span></span>'),C=$('<span class="_tv-button _tv-button-fontstyle"><span class="icon-fontstyle-italic"></span></span>');this.bindControl(new l(n,this._linetool.properties().textColor,!0,this.model(),"Change Text Color")),this.bindControl(new p(a,this._linetool.properties().fontSize,parseInt,!0,this.model(),"Change Text Font Size")),this.bindControl(new p(r,this._linetool.properties().font,null,!0,this.model(),"Change Text Font")),this.bindControl(new s(h,this._linetool.properties().text,null,!0,this.model(),"Change Text")),this.bindControl(new l(c,this._linetool.properties().markerColor,!0,this.model(),"Change Marker and Border Color")), |
|||
this.bindControl(new l(b,this._linetool.properties().backgroundColor,!0,this.model(),"Change Background Color",this._linetool.properties().backgroundTransparency)),this.bindControl(new d(u,this._linetool.properties().bold,!0,this.model(),"Change Text Font Bold")),this.bindControl(new d(C,this._linetool.properties().italic,!0,this.model(),"Change Text Font Italic")),e=$('<table class="property-page" cellspacing="0" cellpadding="2">'),t=$('<table class="property-page" cellspacing="0" cellpadding="2">'),o=$('<table class="property-page" cellspacing="0" cellpadding="2">'),this._table=e.add(o).add(t),$(document.createElement("tr")).append($(document.createElement("td")).attr({width:1}).append(n)).append($(document.createElement("td")).attr({width:1}).append(r)).append($(document.createElement("td")).attr({width:1}).append(a)).append($(document.createElement("td")).attr({width:1}).append(u)).append($(document.createElement("td")).append(C)).appendTo(e),$(document.createElement("tr")).append($(document.createElement("td")).attr({colspan:5}).append(h)).appendTo(e),i=this.addLabeledRow(o,$.t("Label")),$("<td>").attr("colspan",2).append(c).appendTo(i),i=this.addLabeledRow(o,$.t("Background")),$("<td>").append(b).appendTo(i),this.loadData(),setTimeout(function(){h.select(),h.focus()},20)},i.prototype.widget=function(){return this._table},i.prototype.dialogPosition=function(e,t){var o,i,a,r,l,p,s,d,c,b;if(e&&t){for(o=0,i=this._linetool._model.paneForSource(this._linetool),a=h.getChartWidget();o<a.paneWidgets().length;o++)if(a.paneWidgets()[o]._state===i){r=$(a.paneWidgets()[o].canvas).offset().left;break}return l=(this._linetool.paneViews()||[])[0],p=new n(0,0),l&&(p=l._floatPoints[0]||this._linetool._fixedPoints[0]||p),s=(r||0)+p.x,d=this._linetool.getTooltipWidth(),c=s-d/2,b=t.outerWidth(),e.left<c&&e.left+b+10>c?(e.left-=e.left+b+10-c,e):e.left>c&&e.left<c+d+10?(e.left+=c+d+10-e.left,e):void 0}},e.exports=i},787:function(e,t,o){"use strict";function i(e,t,o){n.call(this,e,t,o),this.prepareLayout()}var n=o(14),a=o(10),r=a.BooleanBinder,l=a.ColorBinding,p=a.SimpleComboBinder,s=a.SliderBinder,d=o(31).createLineStyleEditor,h=o(15).createLineWidthEditor;inherit(i,n),i.prototype.prepareLayout=function(){var e,t,o,i,n,a,c,b,u,C,y,g,w,T,_,m,f;this._table=$(document.createElement("table")),this._table.addClass("property-page"),this._table.attr("cellspacing","0"),this._table.attr("cellpadding","2"),e=$("<tbody>").appendTo(this._table),t=h(),o=d(),i=this.createColorPicker(),n=$("<tr>").appendTo(e),$("<td></td><td>"+$.t("Channel")+"</td>").appendTo(n),$("<td>").append(i).appendTo(n),$("<td>").append(t).appendTo(n),$("<td>").append(o.render()).appendTo(n),n=$("<tr>").appendTo(e),a=$("<td>").appendTo(n),c=$("<input type='checkbox' class='visibility-switch'>"),c.appendTo(a),this.createLabeledCell("Middle",c).appendTo(n),b=h(),u=d(),C=this.createColorPicker(),$("<td>").append(C).appendTo(n),$("<td>").append(b).appendTo(n),$("<td>").append(u.render()).appendTo(n),n=$("<tr>").appendTo(e),y=$("<td>").appendTo(n), |
|||
g=$("<input type='checkbox' class='visibility-switch'>"),g.appendTo(y),this.createLabeledCell("Background",g).appendTo(n),w=this.createColorPicker(),$("<td>").append(w).appendTo(n),T=$("<tbody>").appendTo(this._table),_=this.addEditorRow(T,"Extend Left",$("<input type='checkbox'>"),2),m=this.addEditorRow(T,"Extend Right",$("<input type='checkbox'>"),2),f=this._linetool.properties(),this.bindControl(new r(g,f.fillBackground,!0,this.model(),"Change Parallel Channel Fill Background")),this.bindControl(new r(c,f.showMidline,!0,this.model(),"Change Parallel Channel Show Center Line")),this.bindControl(new r(_,f.extendLeft,!0,this.model(),"Change Parallel Channel Extending Left")),this.bindControl(new r(m,f.extendRight,!0,this.model(),"Change Parallel Channel Extending Right")),this.bindControl(new l(i,f.linecolor,!0,this.model(),"Change Parallel Channel Color")),this.bindControl(new p(o,f.linestyle,parseInt,!0,this.model(),"Change Parallel Channel Style")),this.bindControl(new s(t,f.linewidth,!0,this.model(),"Change Parallel Channel Width")),this.bindControl(new l(C,f.midlinecolor,!0,this.model(),"Change Parallel Channel Middle Color")),this.bindControl(new p(u,f.midlinestyle,parseInt,!0,this.model(),"Change Parallel Channel Middle Style")),this.bindControl(new s(b,f.midlinewidth,!0,this.model(),"Change Parallel Channel Middle Width")),this.bindControl(new l(w,f.backgroundColor,!0,this.model(),"Change Parallel Channel Back Color",f.transparency)),this.loadData()},i.prototype.widget=function(){return this._table},e.exports=i},788:function(e,t,o){"use strict";function i(e,t,o){n.call(this,e,t,o),this.prepareLayout()}var n=o(14),a=o(10),r=a.BooleanBinder,l=a.FloatBinder,p=a.ColorBinding,s=a.SimpleComboBinder,d=a.SliderBinder,h=o(47).addColorPicker,c=o(31).createLineStyleEditor,b=o(15).createLineWidthEditor,u=o(65).createTransparencyEditor;inherit(i,n),i.prototype.addLevelEditor=function(e,t,o){var i,n,a,u,C,y,g,w,T,_,m=$("<tr>");m.appendTo(this._table),e?(i=$("<td>"),i.appendTo(m),n=$("<input type='checkbox' class='visibility-switch'>"),n.appendTo(i),a=$("<td>"),a.appendTo(m),u=$("<input type='text'>"),u.appendTo(a),u.css("width","70px"),this.bindControl(new r(n,t.visible,!0,this.model(),"Change Pitchfork Line Visibility")),this.bindControl(new l(u,t.coeff,!1,this.model(),"Change Pitchfork Line Coeff"))):$("<td colspan='2'>"+$.t("Median")+"</td>").appendTo(m),C=$("<td class='colorpicker-cell'>"),C.appendTo(m),y=h(C),g=$("<td>"),g.appendTo(m),w=b(),w.appendTo(g),T=$("<td>"),T.appendTo(m),_=c(),_.render().appendTo(T),this.bindControl(new p(y,t.color,!0,this.model(),"Change Pitchfork Line Color"),0),this.bindControl(new s(_,t.linestyle,parseInt,!0,this.model(),"Change Pitchfan Line Style")),this.bindControl(new d(w,t.linewidth,!0,this.model(),"Change Pitchfan Line Width"))},i.prototype.prepareLayout=function(){var e,t,o,i,n;for(this._table=$(document.createElement("table")),this._table.addClass("property-page"),this._table.attr("cellspacing","0"),this._table.attr("cellpadding","2"), |
|||
this.addLevelEditor(null,this._linetool.properties().median,!1),e=0;e<=8;e++)t="level"+e,this.addLevelEditor($.t("Level {0}").format(e+1),this._linetool.properties()[t],!1);this.addOneColorPropertyWidget(this._table),o=$("<tr>"),o.appendTo(this._table),i=$("<input type='checkbox' class='visibility-switch'>"),$("<td>").append(i).appendTo(o),this.createLabeledCell($.t("Background"),i).appendTo(o),n=u(),$('<td colspan="3">').append(n).appendTo(o),this.bindControl(new r(i,this._linetool.properties().fillBackground,!0,this.model(),"Change Pitchfan Background Visibility")),this.bindControl(new d(n,this._linetool.properties().transparency,!0,this.model(),"Change Pitchfan Background Transparency")),this.loadData()},i.prototype.widget=function(){return this._table},e.exports=i},789:function(e,t,o){"use strict";function i(e,t,o){n.call(this,e,t,o),this.prepareLayout()}var n=o(14),a=o(10),r=a.BooleanBinder,l=a.FloatBinder,p=a.ColorBinding,s=a.SimpleComboBinder,d=a.SliderBinder,h=o(47).addColorPicker,c=o(31).createLineStyleEditor,b=o(15).createLineWidthEditor,u=o(65).createTransparencyEditor;inherit(i,n),i.prototype.onResoreDefaults=function(){this._linetool.properties().style.listeners().fire(this._linetool.properties().style)},i.prototype.addLevelEditor=function(e,t,o){var i,n,a,u,C,y,g,w,T,_,m=$("<tr>");m.appendTo(this._table),e?(i=$("<td>"),i.appendTo(m),n=$("<input type='checkbox' class='visibility-switch'>"),n.appendTo(i),a=$("<td>"),a.appendTo(m),u=$("<input type='text'>"),u.appendTo(a),u.css("width","70px"),this.bindControl(new r(n,t.visible,!0,this.model(),"Change Pitchfork Line Visibility")),this.bindControl(new l(u,t.coeff,!1,this.model(),"Change Pitchfork Line Coeff"))):($("<td></td>").appendTo(m),$("<td>"+$.t("Median")+"</td>").appendTo(m)),C=$("<td class='colorpicker-cell'>"),C.appendTo(m),y=h(C),g=$("<td>"),g.appendTo(m),w=b(),w.appendTo(g),T=$("<td>"),T.appendTo(m),_=c(),_.render().appendTo(T),this.bindControl(new p(y,t.color,!0,this.model(),"Change Pitchfork Line Color",0)),this.bindControl(new s(_,t.linestyle,parseInt,!0,this.model(),"Change Pitchfork Line Style")),this.bindControl(new d(w,t.linewidth,!0,this.model(),"Change Pitchfork Line Width"))},i.prototype.prepareLayout=function(){var e,t,o,i,n,a;for(this._table=$(document.createElement("table")),this._table.addClass("property-page"),this._table.attr("cellspacing","0"),this._table.attr("cellpadding","2"),this.addLevelEditor(null,this._linetool.properties().median,!1),e=0;e<=8;e++)t="level"+e,this.addLevelEditor($.t("Level {0}").format(e+1),this._linetool.properties()[t],!1);this.addOneColorPropertyWidget(this._table),o=$("<tr>"),o.appendTo(this._table),i=$("<input type='checkbox' class='visibility-switch'>"),$("<td>").append(i).appendTo(o),this.createLabeledCell("Background",i).appendTo(o),n=u(),$('<td colspan="3">').append(n).appendTo(o),a=$("<select><option value='0'>"+$.t("Original")+"</option><option value='3'>"+$.t("Schiff")+"</option><option value='1'>"+$.t("Modified Schiff")+"</option><option value='2'>"+$.t("Inside")+"</option></select>"), |
|||
o=$("<tr>"),o.appendTo(this._table),$("<td>"+$.t("Style")+"</td>").appendTo(o),$("<td>").append(a).appendTo(o),this.bindControl(new s(a,this._linetool.properties().style,parseInt,!0,this.model(),"Change Pitchfork Style")),this.bindControl(new r(i,this._linetool.properties().fillBackground,!0,this.model(),"Change Pitchfork Background Visibility")),this.bindControl(new d(n,this._linetool.properties().transparency,!0,this.model(),"Change Pitchfork Background Transparency")),this.loadData()},i.prototype.widget=function(){return this._table},e.exports=i},790:function(e,t,o){"use strict";function i(e,t,o){n.call(this,e,t,o),this.prepareLayout()}var n=o(14),a=o(10),r=a.BooleanBinder,l=a.ColorBinding,p=a.SliderBinder,s=o(15).createLineWidthEditor;inherit(i,n),i.prototype.prepareLayout=function(){var e,t,o,i,n;this._table=$(document.createElement("table")),this._table.addClass("property-page"),this._table.attr("cellspacing","0"),this._table.attr("cellpadding","2"),e=s(),t=this.createColorPicker(),o=this.addLabeledRow(this._table,"Border"),o.prepend("<td>"),$("<td>").append(t).appendTo(o),$("<td>").append(e).appendTo(o),i=$('<input type="checkbox" class="visibility-switch">'),n=this.createColorPicker(),o=this.addLabeledRow(this._table,"Background",i),$("<td>").append(i).prependTo(o),$("<td>").append(n).appendTo(o),this.bindControl(new r(i,this._linetool.properties().fillBackground,!0,this.model(),"Change Polyline Filling")),this.bindControl(new l(t,this._linetool.properties().linecolor,!0,this.model(),"Change Polyline Line Color")),this.bindControl(new l(n,this._linetool.properties().backgroundColor,!0,this.model(),"Change Polyline Background Color",this._linetool.properties().transparency)),this.bindControl(new p(e,this._linetool.properties().linewidth,!0,this.model(),"Change Polyline Border Width")),this.loadData()},i.prototype.widget=function(){return this._table},e.exports=i},791:function(e,t,o){"use strict";function i(e,t,o){n.call(this,e,t,o),this.prepareLayout()}var n=o(14),a=o(10),r=a.ColorBinding,l=a.SliderBinder,p=o(15).createLineWidthEditor;inherit(i,n),i.prototype.prepareLayout=function(){var e,t,o,i,n,a,s,d,h,c,b,u,C,y,g,w,T,_,m=$('<table class="property-page" cellspacing="0" cellpadding="2">'),f=$('<table class="property-page property-page-unpadded" cellspacing="0" cellpadding="0">').css({width:"100%"}),L=$('<table class="property-page" cellspacing="0" cellpadding="2">');this._table=m.add(f).add(L),e=this.createColorPicker(),t=p(),o=this.addLabeledRow(m,"Line"),$("<td>").append(e).appendTo(o),$("<td>").append(t).appendTo(o),i=$("<tr>").appendTo(f),n=$("<td>").appendTo(i).css({"vertical-align":"top",width:"50%"}),a=$("<td>").appendTo(i).css({"vertical-align":"top",width:"50%"}),s=$('<table class="property-page" cellspacing="0" cellpadding="0">').appendTo(n),d=$('<table class="property-page" cellspacing="0" cellpadding="0">').appendTo(a),h=this.addColorPickerRow(s,$.t("Source back color")),c=this.addColorPickerRow(s,$.t("Source text color")),b=this.addColorPickerRow(s,$.t("Source border color")), |
|||
u=this.addColorPickerRow(s,$.t("Success back color")),C=this.addColorPickerRow(s,$.t("Success text color")),y=this.addColorPickerRow(d,$.t("Target back color")),g=this.addColorPickerRow(d,$.t("Target text color")),w=this.addColorPickerRow(d,$.t("Target border color")),T=this.addColorPickerRow(d,$.t("Failure back color")),_=this.addColorPickerRow(d,$.t("Failure text color")),this.bindControl(new r(e,this._linetool.properties().linecolor,!0,this.model(),"Forecast Line Color")),this.bindControl(new l(t,this._linetool.properties().linewidth,!0,this.model(),"Forecast Line Width")),this.bindControl(new r(e,this._linetool.properties().linecolor,!0,this.model(),"Forecast Line Color")),this.bindControl(new l(t,this._linetool.properties().linewidth,!0,this.model(),"Forecast Line Width")),this.bindControl(new r(h,this._linetool.properties().sourceBackColor,!0,this.model(),"Forecast Source Background Color",this._linetool.properties().transparency)),this.bindControl(new r(b,this._linetool.properties().sourceStrokeColor,!0,this.model(),"Forecast Source Border Color")),this.bindControl(new r(c,this._linetool.properties().sourceTextColor,!0,this.model(),"Forecast Source Text Color")),this.bindControl(new r(y,this._linetool.properties().targetBackColor,!0,this.model(),"Forecast Target Background Color")),this.bindControl(new r(w,this._linetool.properties().targetStrokeColor,!0,this.model(),"Forecast Target Border Color")),this.bindControl(new r(g,this._linetool.properties().targetTextColor,!0,this.model(),"Forecast Target Text Color")),this.bindControl(new r(u,this._linetool.properties().successBackground,!0,this.model(),"Forecast Success Back Color")),this.bindControl(new r(C,this._linetool.properties().successTextColor,!0,this.model(),"Forecast Success Text Color")),this.bindControl(new r(T,this._linetool.properties().failureBackground,!0,this.model(),"Forecast Failure Back Color")),this.bindControl(new r(_,this._linetool.properties().failureTextColor,!0,this.model(),"Forecast Failure Text Color")),this.loadData()},i.prototype.widget=function(){return this._table},e.exports=i},792:function(e,t,o){"use strict";function i(e,t,o){n.call(this,e,t,o),this.prepareLayout()}var n=o(14),a=o(10),r=a.SimpleComboBinder,l=a.ColorBinding;inherit(i,n),i.prototype.prepareLayout=function(){var e,t,o,i,n;this._table=$(document.createElement("table")),this._table.addClass("property-page"),this._table.attr("cellspacing","0"),this._table.attr("cellpadding","2"),e=this.createColorPicker(),t=this.createFontSizeEditor(),o=this.createColorPicker(),i=this.createColorPicker(),n=this.addLabeledRow(this._table,$.t("Text")),$("<td>").append(e).appendTo(n),$("<td>").append(t).appendTo(n),n=this.addLabeledRow(this._table,$.t("Background")),$("<td>").append(o).appendTo(n),n=this.addLabeledRow(this._table,$.t("Border")),$("<td>").append(i).appendTo(n),this.bindControl(new l(e,this._linetool.properties().color,!0,this.model(),"Change Price Text Color")), |
|||
this.bindControl(new r(t,this._linetool.properties().fontsize,parseInt,!0,this.model(),"Change Price Text Font Size")),this.bindControl(new l(o,this._linetool.properties().backgroundColor,!0,this.model(),"Change Background Color",this._linetool.properties().transparency)),this.bindControl(new l(i,this._linetool.properties().borderColor,!0,this.model(),"Change Border Color")),this.loadData()},i.prototype.widget=function(){return this._table},e.exports=i},793:function(e,t,o){"use strict";function i(e,t,o){n.call(this,e,t,o),this.prepareLayout()}var n=o(14),a=o(10),r=a.SliderBinder,l=a.ColorBinding,p=o(15).createLineWidthEditor;inherit(i,n),i.prototype.prepareLayout=function(){var e,t,o,i,n;this._table=$(document.createElement("table")),this._table.addClass("property-page"),this._table.attr("cellspacing","0"),this._table.attr("cellpadding","2"),e=this.createColorPicker(),t=this.createColorPicker(),o=this.addLabeledRow(this._table,"Background"),$("<td>").append(e).appendTo(o),$("<td>").append(t).appendTo(o),i=p(),n=this.createColorPicker(),o=this.addLabeledRow(this._table,"Border"),$("<td>").append(n).appendTo(o),$("<td>").appendTo(o),$("<td>").append(i).appendTo(o),this.bindControl(new l(n,this._linetool.properties().trendline.color,!0,this.model(),"Change Projection Line Color")),this.bindControl(new l(e,this._linetool.properties().color1,!0,this.model(),"Change Projection Background Color",this._linetool.properties().transparency)),this.bindControl(new l(t,this._linetool.properties().color2,!0,this.model(),"Change Projection Background Color",this._linetool.properties().transparency)),this.bindControl(new r(i,this._linetool.properties().linewidth,!0,this.model(),"Change Projection Border Width")),this.loadData()},i.prototype.widget=function(){return this._table},e.exports=i},795:function(e,t,o){"use strict";function i(e,t,o){n.call(this,e,t,o),this.prepareLayout()}var n=o(14),a=o(10),r=a.ColorBinding,l=a.BooleanBinder,p=a.SliderBinder,s=o(15).createLineWidthEditor;inherit(i,n),i.prototype.prepareLayout=function(){var e,t,o,i,n;this._table=$(document.createElement("table")),this._table.addClass("property-page"),this._table.attr("cellspacing","0"),this._table.attr("cellpadding","2"),e=s(),t=this.createColorPicker(),o=this.addLabeledRow(this._table,"Border"),o.prepend("<td>"),$("<td>").append(t).appendTo(o),$("<td>").append(e).appendTo(o),i=$('<input type="checkbox" class="visibility-switch">'),n=this.createColorPicker(),o=this.addLabeledRow(this._table,"Background",i),$("<td>").append(i).prependTo(o),$("<td>").append(n).appendTo(o),this.bindControl(new l(i,this._linetool.properties().fillBackground,!0,this.model(),"Change Rectangle Filling")),this.bindControl(new r(t,this._linetool.properties().color,!0,this.model(),"Change Rectangle Line Color")),this.bindControl(new r(n,this._linetool.properties().backgroundColor,!0,this.model(),"Change Rectangle Background Color",this._linetool.properties().transparency)),this.bindControl(new p(e,this._linetool.properties().linewidth,!0,this.model(),"Change Rectangle Border Width")), |
|||
this.loadData()},i.prototype.widget=function(){return this._table},e.exports=i},796:function(e,t,o){"use strict";function i(e,t){this._chartWidget=e,this._undoModel=t}function n(e,t,o){a.call(this,e,t,o),this.prepareLayout()}var a=o(14),r=o(10),l=r.SimpleStringBinder,p=r.SimpleComboBinder,s=r.ColorBinding,d=r.BooleanBinder;i.prototype.attachSource=function(e,t){this._source=e,this._edit=$("<textarea>"),this._edit.css("width","300"),this._edit.css("height","150"),this._edit.appendTo(this._chartWidget._jqMainDiv),this._edit.css("position","absolute"),this._edit.css("left",t.x+"px"),this._edit.css("top",t.y+"px"),this._edit.val(e.properties().text.value()),this._edit.focus();var o=this._edit;return o.select(),this._binding=new l(o,e.properties().text,null,!0,this._undoModel,"change line tool text"),this._edit.focusout(function(){e.properties().text.setValue(o.val())}),this._edit.mousedown(function(e){return!0}),o},inherit(n,a),n.prototype.prepareLayout=function(){var e,t,o,i,n=this.createColorPicker(),a=this.createColorPicker(),r=this.createFontSizeEditor(),h=this.createFontEditor(),c=this.createTextEditor(350,200),b=this.createColorPicker(),u=$('<input type="checkbox" class="visibility-switch">'),C=$('<input type="checkbox" class="visibility-switch">'),y=$('<input type="checkbox">'),g=$('<span class="_tv-button _tv-button-fontstyle"><span class="icon-fontstyle-bold"></span></span>'),w=$('<span class="_tv-button _tv-button-fontstyle"><span class="icon-fontstyle-italic"></span></span>');this.bindControl(new s(n,this._linetool.properties().color,!0,this.model(),"Change Text Color")),this.bindControl(new p(r,this._linetool.properties().fontsize,parseInt,!0,this.model(),"Change Text Font Size")),this.bindControl(new p(h,this._linetool.properties().font,null,!0,this.model(),"Change Text Font")),this.bindControl(new l(c,this._linetool.properties().text,null,!0,this.model(),"Change Text")),this.bindControl(new s(b,this._linetool.properties().backgroundColor,!0,this.model(),"Change Text Background",this._linetool.properties().backgroundTransparency)),this.bindControl(new d(u,this._linetool.properties().fillBackground,!0,this.model(),"Change Text Background Fill")),this.bindControl(new d(C,this._linetool.properties().drawBorder,!0,this.model(),"Change Text Border")),this.bindControl(new s(a,this._linetool.properties().borderColor,!0,this.model(),"Change Text Border Color")),this.bindControl(new d(y,this._linetool.properties().wordWrap,!0,this.model(),"Change Text Wrap")),this.bindControl(new d(g,this._linetool.properties().bold,!0,this.model(),"Change Text Font Bold")),this.bindControl(new d(w,this._linetool.properties().italic,!0,this.model(),"Change Text Font Italic")),e=$('<table class="property-page" cellspacing="0" cellpadding="2">'),t=$('<table class="property-page" cellspacing="0" cellpadding="2">'),o=$('<table class="property-page" cellspacing="0" cellpadding="2">'),this._table=e.add(o).add(t),$(document.createElement("tr")).append($(document.createElement("td")).attr({width:1 |
|||
}).append(n)).append($(document.createElement("td")).attr({width:1}).append(h)).append($(document.createElement("td")).attr({width:1}).append(r)).append($(document.createElement("td")).attr({width:1}).append(g)).append($(document.createElement("td")).append(w)).appendTo(e),$(document.createElement("tr")).append($(document.createElement("td")).attr({colspan:5}).append(c)).appendTo(e),i=this.addLabeledRow(t,$.t("Text Wrap"),y),$("<td>").append(y).prependTo(i),i=this.addLabeledRow(o,$.t("Background"),u),$("<td>").append(u).prependTo(i),$("<td>").append(b).appendTo(i),i=this.addLabeledRow(o,$.t("Border"),C),$("<td>").append(C).prependTo(i),$("<td>").append(a).appendTo(i),this.loadData(),setTimeout(function(){c.select(),c.focus()},20)},n.prototype.widget=function(){return this._table},n.prototype.dialogPosition=function(e,t){var o,i,n,a,r,l,p,s=5,d=0,h=this._linetool,c=h._model.paneForSource(h),b=this._model._chartWidget;return $.each(b.paneWidgets(),function(e,t){if(t._state===c)return d=$(t.canvas).offset().top,!1}),e||(e={}),i=e.left,n=e.top,a=(this._linetool.paneViews()||[])[0],a&&(o=a._floatPoints[0]),o&&(i=o.x,n=o.y+d),r=$(t).outerHeight(),l=$(window).height(),p=h.properties().fontsize.value(),n=n+r+p+s<=l?n+p+s:n-r-s,{top:n,left:i}},e.exports=n},797:function(e,t,o){"use strict";function i(e,t,o){n.call(this,e,t,o),this.prepareLayout()}var n=o(14),a=o(10),r=a.SimpleComboBinder,l=a.ColorBinding,p=a.SliderBinder,s=a.BooleanBinder,d=o(31).createLineStyleEditor,h=o(15).createLineWidthEditor;inherit(i,n),i.prototype.prepareLayout=function(){var e,t,o,i,n,a,c,b;this._table=$('<table class="property-page" cellspacing="0" cellpadding="2">'),e=$("<tbody>").appendTo(this._table),t=h(),o=d(),i=this.createColorPicker(),n=this.addLabeledRow(e,$.t("Line")),$("<td>").append(i).appendTo(n),$("<td>").append(t).appendTo(n),$('<td colspan="3">').append(o.render()).appendTo(n),this._linetool.properties().fillBackground&&($("<td>").prependTo(n),a=$('<input type="checkbox" class="visibility-switch">'),c=this.createColorPicker(),b=$("<tbody>").appendTo(this._table),n=$("<tr>").appendTo(b),$("<td>").append(a).appendTo(n),$("<td>").append($.t("Background")).appendTo(n),$("<td>").append(c).appendTo(n)),this.bindControl(new l(i,this._linetool.properties().linecolor,!0,this.model(),"Change Time Cycles Color")),this.bindControl(new r(o,this._linetool.properties().linestyle,parseInt,!0,this.model(),"Change Time Cycles Line Style")),this.bindControl(new p(t,this._linetool.properties().linewidth,!0,this.model(),"Change Time Cycles Line Width")),a&&(this.bindControl(new s(a,this._linetool.properties().fillBackground,!0,this.model(),"Change Time Cycles Filling")),this.bindControl(new l(c,this._linetool.properties().backgroundColor,!0,this.model(),"Change Time Cycles Background Color",this._linetool.properties().transparency)))},i.prototype.widget=function(){return this._table},e.exports=i},798:function(e,t,o){"use strict";function i(e,t,o){n.call(this,e,t,o),this.prepareLayout()} |
|||
var n=o(14),a=o(10),r=a.SimpleComboBinder,l=a.ColorBinding,p=a.BooleanBinder,s=a.SliderBinder,d=o(31).createLineStyleEditor,h=o(15).createLineWidthEditor;inherit(i,n),i.prototype.prepareLayout=function(){var e,t,o,i,n,a,c,b,u,C,y,g,w,T,_,m,f,L,v,k;this._table=$('<table class="property-page" cellspacing="0" cellpadding="2">'),e=$("<tbody>").appendTo(this._table),t=h(),o=d(),i=this.createColorPicker(),n=this.addLabeledRow(e,$.t("Line")),$("<td>").append(i).appendTo(n),$("<td>").append(t).appendTo(n),$('<td colspan="3">').append(o.render()).appendTo(n),a=$("<tbody>").appendTo(this._table),c=$("<label>"+$.t("Extend")+" </label>").css({"margin-left":"8px"}),b=$('<input type="checkbox">').appendTo(c),u=$("<label>"+$.t("Extend")+" </label>").css({"margin-left":"8px"}),C=$('<input type="checkbox">').appendTo(u),y=$("<select><option value='0'>"+$.t("Normal")+"</option><option value='1'>"+$.t("Arrow")+"</option></select>"),g=$("<select><option value='0'>"+$.t("Normal")+"</option><option value='1'>"+$.t("Arrow")+"</option></select>"),n=this.addLabeledRow(a,$.t("Left End")),$('<td colspan="3">').appendTo(n).append(y).append(c),n=this.addLabeledRow(a,$.t("Right End")),$('<td colspan="3">').appendTo(n).append(g).append(u),n=this.addLabeledRow(a,$.t("Stats Text Color")),w=this.createColorPicker(),$("<td>").append(w).appendTo(n),this.bindControl(new l(w,this._linetool.properties().textcolor,!0,this.model(),"Change Text Color")),T=$('<input type="checkbox">'),_=$('<input type="checkbox">'),m=$('<input type="checkbox">'),f=$('<input type="checkbox">'),L=$('<input type="checkbox">'),v=$('<input type="checkbox">'),k=$('<input type="checkbox">'),n=this.addLabeledRow(a,$.t("Show Price Range")),$('<td colspan="3">').appendTo(n).append(T),n=this.addLabeledRow(a,$.t("Show Bars Range")),$('<td colspan="3">').appendTo(n).append(_),n=this.addLabeledRow(a,$.t("Show Date/Time Range")),$('<td colspan="3">').appendTo(n).append(m),n=this.addLabeledRow(a,$.t("Show Distance")),$('<td colspan="3">').appendTo(n).append(f),n=this.addLabeledRow(a,$.t("Show Angle")),$('<td colspan="3">').appendTo(n).append(L),n=this.addLabeledRow(a,$.t("Always Show Stats")),$('<td colspan="3">').appendTo(n).append(v),n=this.addLabeledRow(a,$.t("Show Middle Point")),$('<td colspan="3">').appendTo(n).append(k),this.bindControl(new p(b,this._linetool.properties().extendLeft,!0,this.model(),"Change Trend Line Extending Left")),this.bindControl(new p(C,this._linetool.properties().extendRight,!0,this.model(),"Change Trend Line Extending Right")),this.bindControl(new l(i,this._linetool.properties().linecolor,!0,this.model(),"Change Trend Line Color")),this.bindControl(new r(o,this._linetool.properties().linestyle,parseInt,!0,this.model(),"Change Trend Line Style")),this.bindControl(new s(t,this._linetool.properties().linewidth,!0,this.model(),"Change Trend Line Width")),this.bindControl(new r(y,this._linetool.properties().leftEnd,parseInt,!0,this.model(),"Change Trend Line Left End")), |
|||
this.bindControl(new r(g,this._linetool.properties().rightEnd,parseInt,!0,this.model(),"Change Trend Line Right End")),this.bindControl(new p(T,this._linetool.properties().showPriceRange,!0,this.model(),"Change Trend Line Show Price Range")),this.bindControl(new p(_,this._linetool.properties().showBarsRange,!0,this.model(),"Change Trend Line Show Bars Range")),this.bindControl(new p(m,this._linetool.properties().showDateTimeRange,!0,this.model(),"Change Trend Line Show Date/Time Range")),this.bindControl(new p(f,this._linetool.properties().showDistance,!0,this.model(),"Change Trend Line Show Distance")),this.bindControl(new p(L,this._linetool.properties().showAngle,!0,this.model(),"Change Trend Line Show Angle")),this.bindControl(new p(v,this._linetool.properties().alwaysShowStats,!0,this.model(),"Change Trend Line Always Show Stats")),this.bindControl(new p(k,this._linetool.properties().showMiddlePoint,!0,this.model(),"Change Trend Line Show Middle Point")),this.loadData()},i.prototype.widget=function(){return this._table},e.exports=i},799:function(e,t,o){"use strict";function i(e,t,o){n.call(this,e,t,o),this.prepareLayout()}var n=o(14),a=o(10),r=a.BooleanBinder,l=a.ColorBinding,p=a.SliderBinder,s=a.SimpleComboBinder,d=o(15).createLineWidthEditor;inherit(i,n),i.prototype.prepareLayout=function(){var e,t,o,i,n,a,h,c,b,u,C;this._table=$(document.createElement("table")),this._table.addClass("property-page"),this._table.attr("cellspacing","0"),this._table.attr("cellpadding","2"),e=d(),t=this.createColorPicker(),o=this.createColorPicker(),i=$('<span class="_tv-button _tv-button-fontstyle"><span class="icon-fontstyle-bold"></span></span>'),n=$('<span class="_tv-button _tv-button-fontstyle"><span class="icon-fontstyle-italic"></span></span>'),a=this.createFontSizeEditor(),h=this.createFontEditor(),c=this.addLabeledRow(this._table,"Border"),c.prepend("<td>"),$("<td>").append(t).appendTo(c),$("<td>").append(e).appendTo(c),b=$('<input type="checkbox" class="visibility-switch">'),u=this.createColorPicker(),h=this.createFontEditor(),c=this.addLabeledRow(this._table,"Background",b),$("<td>").append(b).prependTo(c),$("<td>").append(u).appendTo(c),this.bindControl(new r(b,this._linetool.properties().fillBackground,!0,this.model(),"Change Pattern Filling")),this.bindControl(new l(t,this._linetool.properties().color,!0,this.model(),"Change Pattern Line Color")),this.bindControl(new l(o,this._linetool.properties().textcolor,!0,this.model(),"Change Pattern Text Color")),this.bindControl(new l(u,this._linetool.properties().backgroundColor,!0,this.model(),"Change Pattern Background Color",this._linetool.properties().transparency)),this.bindControl(new p(e,this._linetool.properties().linewidth,!0,this.model(),"Change Pattern Border Width")),this.bindControl(new s(a,this._linetool.properties().fontsize,parseInt,!0,this.model(),"Change Text Font Size")),this.bindControl(new s(h,this._linetool.properties().font,null,!0,this.model(),"Change Text Font")), |
|||
this.bindControl(new r(i,this._linetool.properties().bold,!0,this.model(),"Change Text Font Bold")),this.bindControl(new r(n,this._linetool.properties().italic,!0,this.model(),"Change Text Font Italic")),C=$('<table class="property-page" cellspacing="0" cellpadding="2"><tr>').append($(document.createElement("td")).attr({width:1}).append(o)).append($(document.createElement("td")).attr({width:1}).append(h)).append($(document.createElement("td")).attr({width:1}).append(a)).append($(document.createElement("td")).css("vertical-align","top").attr({width:1}).append(i)).append($(document.createElement("td")).css("vertical-align","top").append(n)).append($("</tr></table>")),c=this.addLabeledRow(this._table,""),$('<td colspan="5">').append(C).appendTo(c),this.loadData()},i.prototype.widget=function(){return this._table},e.exports=i},800:function(e,t,o){"use strict";function i(e,t,o){n.call(this,e,t,o),this.prepareLayout()}var n=o(14),a=o(10),r=a.BooleanBinder,l=a.ColorBinding,p=a.SliderBinder,s=o(15).createLineWidthEditor;inherit(i,n),i.prototype.prepareLayout=function(){var e,t,o,i,n;this._table=$(document.createElement("table")),this._table.addClass("property-page"),this._table.attr("cellspacing","0"),this._table.attr("cellpadding","2"),e=s(),t=this.createColorPicker(),o=this.addLabeledRow(this._table,$.t("Border")),o.prepend("<td>"),$("<td>").append(t).appendTo(o),$("<td>").append(e).appendTo(o),i=$('<input type="checkbox" class="visibility-switch">'),n=this.createColorPicker(),o=this.addLabeledRow(this._table,$.t("Background"),i),$("<td>").append(i).prependTo(o),$("<td>").append(n).appendTo(o),this.bindControl(new r(i,this._linetool.properties().fillBackground,!0,this.model(),"Change Triangle Filling")),this.bindControl(new l(t,this._linetool.properties().color,!0,this.model(),"Change Triangle Line Color")),this.bindControl(new l(n,this._linetool.properties().backgroundColor,!0,this.model(),"Change Triangle Background Color",this._linetool.properties().transparency)),this.bindControl(new p(e,this._linetool.properties().linewidth,!0,this.model(),"Change Triangle Border Width")),this.loadData()},i.prototype.widget=function(){return this._table},e.exports=i},801:function(e,t,o){(function(t){"use strict";function i(e,t,o){a.call(this,e,t),this._linetool=o,this.prepareLayout()}var n=o(10),a=n.PropertyPage,r=n.BooleanBinder,l=n.RangeBinder;inherit(i,a),i.prototype.prepareLayout=function(){var e,o,i,n,a,p,s,d,h,c,b,u;this._block=$('<table class="property-page">'),e=this._linetool.properties().intervalsVisibilities,t.enabled("seconds_resolution")&&(o=$("<tr>").appendTo(this._block),i=$("<label>").append($.t("Seconds")),n=$("<input type='checkbox'>").addClass("visibility-checker").prependTo(i),$("<td>").css("padding-right","15px").append(i).appendTo(o),a=$("<input type='text'>").addClass("ticker-text"),$("<td>").append(a).appendTo(o),p=$("<div>").addClass("slider-range ui-slider-horizontal"),$("<td>").append(p).appendTo(o),s=$("<input type='text'>").addClass("ticker-text"),$("<td>").append(s).appendTo(o), |
|||
this.bindControl(new r(n,e.seconds,!0,this.model(),"Change Line Tool Visibility On Seconds")),this.bindControl(new l(p,[e.secondsFrom,e.secondsTo],[1,59],!1,this.model(),[a,s],[$.t("Change Seconds From"),$.t("Change Seconds To")],n))),o=$("<tr>").appendTo(this._block),i=$("<label>").append($.t("Minutes")),d=$("<input type='checkbox'>").addClass("visibility-checker").prependTo(i),$("<td>").css("padding-right","15px").append(i).appendTo(o),a=$("<input type='text'>").addClass("ticker-text"),$("<td>").append(a).appendTo(o),p=$("<div>").addClass("slider-range ui-slider-horizontal"),$("<td>").append(p).appendTo(o),s=$("<input type='text'>").addClass("ticker-text"),$("<td>").append(s).appendTo(o),this.bindControl(new r(d,e.minutes,!0,this.model(),"Change Line Tool Visibility On Minutes")),this.bindControl(new l(p,[e.minutesFrom,e.minutesTo],[1,59],!1,this.model(),[a,s],[$.t("Change Minutes From"),$.t("Change Minutes To")],d)),o=$("<tr>").appendTo(this._block),i=$("<label>").append($.t("Hours")),h=$("<input type='checkbox'>").addClass("visibility-checker").prependTo(i),$("<td>").append(i).appendTo(o),a=$("<input type='text'>").addClass("ticker-text"),$("<td>").append(a).appendTo(o),p=$("<div>").addClass("slider-range ui-slider-horizontal"),$("<td>").append(p).appendTo(o),s=$("<input type='text'>").addClass("ticker-text"),$("<td>").append(s).appendTo(o),this.bindControl(new r(h,e.hours,!0,this.model(),"Change Line Tool Visibility On Hours")),this.bindControl(new l(p,[e.hoursFrom,e.hoursTo],[1,24],!1,this.model(),[a,s],[$.t("Change Minutes From"),$.t("Change Hours To")],h)),o=$("<tr>").appendTo(this._block),i=$("<label>").append($.t("Days")),c=$("<input type='checkbox'>").addClass("visibility-checker").prependTo(i),$("<td>").append(i).appendTo(o),a=$("<input type='text'>").addClass("ticker-text"),$("<td>").append(a).appendTo(o),p=$("<div>").addClass("slider-range ui-slider-horizontal"),$("<td>").append(p).appendTo(o),s=$("<input type='text'>").addClass("ticker-text"),$("<td>").append(s).appendTo(o),this.bindControl(new r(c,e.days,!0,this.model(),"Change Line Tool Visibility On Days")),this.bindControl(new l(p,[e.daysFrom,e.daysTo],[1,366],!1,this.model(),[a,s],[$.t("Change Minutes From"),$.t("Change Days To")],c)),o=$("<tr>").css("height","29px").appendTo(this._block),i=$("<label>").append($.t("Weeks")),b=$("<input type='checkbox'>").prependTo(i),$("<td>").append(i).appendTo(o),this.bindControl(new r(b,e.weeks,!0,this.model(),"Change Line Tool Visibility On Weeks")),o=$("<tr>").css("height","29px").appendTo(this._block),i=$("<label>").append($.t("Months")),u=$("<input type='checkbox'>").prependTo(i),$("<td>").append(i).appendTo(o),this.bindControl(new r(u,e.months,!0,this.model(),"Change Line Tool Visibility On Months")),this.loadData()},i.prototype.widget=function(){return this._block},e.exports=i}).call(t,o(7))},811:function(e,t,o){"use strict";function i(e,t,o){n.call(this,e,t),this._linetool=o,this.prepareLayout()}var n=o(10).PropertyPage,a=o(271).StudyInputsPropertyPage,r=o(81),l=o(45),p=o(121);inherit(i,r), |
|||
i.prototype.prepareLayout=function(){var e,t,o,i,n,r,s,d,h=$('<table class="property-page" cellspacing="0" cellpadding="0">'),c=$('<table class="property-page" cellspacing="0" cellpadding="0">').data({"layout-tab":p.TabNames.inputs,"layout-tab-priority":p.TabPriority.Inputs});for(this._table=h.add(c),e=this._linetool.points(),t=0;t<e.length;t++)o=$("<tr>"),o.appendTo(h),i=$("<td>"),i.html("Point "+(t+1)+" Bar #"),i.appendTo(o),n=$("<td>"),n.appendTo(o),r=$("<input type='text'>"),r.appendTo(n),r.addClass("ticker"),s=this._linetool.properties().points[t],this.bindBarIndex(s.bar,r,this.model(),"Change "+this._linetool+" point bar index");d=l.findStudyMetaInfo(this._model.studiesMetaData(),this._linetool.studyId()),a.prototype.prepareLayoutImpl.call(this,d,c)},i.prototype.widget=function(){return this._table},e.exports=i},813:function(e,t,o){"use strict";function i(e,t,o){r.call(this,e,t),this._study=o,this.prepareLayout()}var n=o(407),a=o(10),r=a.PropertyPage,l=a.BooleanBinder,p=a.SimpleComboBinder,s=o(208).StudyStylesPropertyPage,d=o(71);inherit(i,r),inherit(i,n),i.prototype._isJapaneseChartsAvailable=function(){return!1},i.prototype.prepareLayout=function(){var e,t,o,i,n=$('<table class="property-page" cellspacing="0" cellpadding="2">'),a=$('<table class="property-page" cellspacing="0" cellpadding="2">'),r=$('<table class="property-page" cellspacing="0" cellpadding="2">'),d=$('<table class="property-page" cellspacing="0" cellpadding="2">'),h=$('<table class="property-page" cellspacing="0" cellpadding="2">'),c=this._study.properties();this._prepareSeriesStyleLayout(n,a,r,c),this._table=n.add(a).add(r).add(d).add(h),e=$('<input type="checkbox">'),t=this.addLabeledRow(d,"Price Line",e),$("<td>").append(e).prependTo(t),this.bindControl(new l(e,c.showPriceLine,!0,this.model(),"Change Price Price Line")),o=this.createSeriesMinTickEditor(),i=$("<tr>"),i.appendTo(h),$("<td>"+$.t("Override Min Tick")+"</td>").appendTo(i),$("<td>").append(o).appendTo(i),this.bindControl(new p(o,c.minTick,null,!0,this.model(),"Change MinTick")),s.prototype._putStudyDefaultStyles.call(this,h)},i.prototype.loadData=function(){this.superclass.prototype.loadData.call(this),this.switchStyle()},i.prototype.switchStyle=function(){switch($(this._barsTbody).add(this._barsColorerTbody).add(this._candlesTbody).add(this._candlesColorerTbody).add(this._hollowCandlesTbody).add(this._lineTbody).add(this._areaTbody).add(this._baselineTbody).css("display","none"),this._study.properties().style.value()){case d.STYLE_BARS:this._barsTbody.css("display","table-row-group"),this._barsColorerTbody.css("display","table-row-group");break;case d.STYLE_CANDLES:this._candlesTbody.css("display","table-row-group"),this._candlesColorerTbody.css("display","table-row-group");break;case d.STYLE_HOLLOW_CANDLES:this._hollowCandlesTbody.css("display","table-row-group");break;case d.STYLE_LINE:this._lineTbody.css("display","table-row-group");break;case d.STYLE_AREA:this._areaTbody.css("display","table-row-group");break;case d.STYLE_BASELINE: |
|||
this._baselineTbody.css("display","table-row-group")}},i.prototype.widget=function(){return this._table},e.exports=i},814:function(e,t,o){"use strict";function i(e,t,o){r.call(this,e,t),this._study=o,this.prepareLayout()}var n=o(21).assert,a=o(10),r=a.PropertyPage,l=a.GreateTransformer,p=a.LessTransformer,s=a.ToIntTransformer,d=a.ToFloatTransformer,h=a.BooleanBinder,c=a.SimpleComboBinder,b=a.SimpleStringBinder,u=o(38).NumericFormatter;inherit(i,r),i.prototype._getStrategyInputs=function(){for(var e,t=0,o=this._study.metaInfo(),i={};t<o.inputs.length;t++)e=o.inputs[t],"strategy_props"===e.groupId&&(n(void 0!==e.internalID,"Strategy input id="+e.id+" doesn't have an internalID"),i[e.internalID]=o.inputs[t]);return TradingView.clone(i)},i.prototype._setStdInput=function(e,t,o){var i,n,a,r,C,y,g,w,T,_,m,f;if(e){if(i=e.id,n="study_input-"+i+"-"+Date.now().toString(36)+"-"+Math.random().toString(36),a=$("<tr>").appendTo(this._$table),r="Change "+t,C=$('<label for="'+n+'">'+$.t(t,{context:"input"})+"</label>"),"bool"===e.type)g=$('<td colspan="3">').appendTo(a),y=$('<input id="'+n+'" type="checkbox">').appendTo(g),C.appendTo(g),!0!==o&&this.bindControl(new h(y,this._property.inputs[i],!0,this.model(),r));else if($("<td>").addClass("propertypage-name-label").append(C).appendTo(a),w=$('<td colspan="2">').appendTo(a),e.options){for(y=$('<select id="'+n+'">').appendTo(w),T=0;T<e.options.length;T++)_=e.options[T],_ instanceof jQuery?_.appendTo(y):$('<option value="'+_+'">'+_+"</option>").appendTo(y);!0!==o&&this.bindControl(new c(y,this._property.inputs[i],null,!0,this.model(),r))}else y=$('<input id="'+n+'" type="text">').appendTo(w),!0!==o&&("integer"!==e.type&&"float"!==e.type||(m=["integer"===e.type?s(e.defval):d(e.defval)],(0===e.min||e.min)&&m.push(l(e.min)),(0===e.max||e.max)&&m.push(p(e.max))),f=new b(y,this._property.inputs[i],m,!1,this.model(),r),"float"===e.type&&f.addFormatter(function(e){return(new u).format(e)}),this.bindControl(f)),y.addClass("ticker");return y}},i.prototype._setPyramidingInputs=function(e){var t=e.pyramiding,o=this._property.inputs[t.id],i=this._setStdInput({id:"pyramiding_switch",type:"bool"},$.t("Pyramiding"),!0),a=this._setStdInput(e.pyramiding,$.t("Allow up to")),r=a.closest("tr");n(void 0===this._onAllowUpToChanged),this._onAllowUpToChanged=function(e){e.value()>0?(i.prop("checked",!0),a.removeAttr("disabled"),r.removeClass("disabled")):(i.prop("checked",!1),a.attr("disabled","disabled"),r.addClass("disabled"))},o.subscribe(null,this._onAllowUpToChanged),i.change(function(){var e=!i.prop("checked");o.setValue(e?0:t.defval),e?a.attr("disabled","disabled"):a.removeAttr("disabled"),r.toggleClass("disabled",e)}),o.value()>0?i.prop("checked",!0):(i.prop("checked",!1),a.attr("disabled","disabled"),r.addClass("disabled")),r.children().last().removeAttr("colspan"),$("<td>").text($.t("orders",{context:"up to ... orders"})).appendTo(r)},i.prototype._setQtyInputs=function(e){function t(e){return e=+e,isNaN(e)||e<0?0:("percent_of_equity"!==a.val()?e=parseInt(e):e>100&&(e=100),e)} |
|||
var o,i,n,a,r,l,p=this,s=e.default_qty_value,d=$.extend({},e.default_qty_type),h=this._property.inputs[s.id],c=this._setStdInput(s,$.t("Order size"),!0),u=new b(c,h,t,!1,this.model(),"Change Order Size");this.bindControl(u),o=c.closest("td"),o.removeAttr("colspan"),i=this._study.reportData()&&this._study.reportData().currency||"USD",n=$('<option value="cash_per_order">'+i+"</option>"),d.options=[$('<option value="fixed">'+$.t("Contracts")+"</option>"),n,$('<option value="percent_of_equity">'+$.t("% of equity")+"</option>")],a=this._setStdInput(d,"type"),r=a.closest("td"),l=r.closest("tr"),r.removeAttr("colspan"),r.detach().insertAfter(o),l.remove(),this._study.watchedData.subscribe(function(){p.__updateComboCurrency(n,a,"cash_per_order")})},i.prototype.__updateComboCurrency=function(e,t,o,i){var n,a=this._study.reportData()&&this._study.reportData().currency||"USD";i&&(a+=i),e.text(a),n=t.closest("td"),n.find("a[href=#"+o+"]").text(a),e.prop("selected")&&n.find(".sbSelector").text(a)},i.prototype._setFillLimitsInputs=function(e){var t=this._setStdInput(e.backtest_fill_limits_assumption,$.t("Verify Price for Limit Orders")),o=t.closest("td");o.removeAttr("colSpan"),$("<td>").text($.t("ticks",{context:"slippage ... ticks"})).insertAfter(o)},i.prototype._setSlippageInputs=function(e){var t,o;void 0!==e.slippage&&(t=this._setStdInput(e.slippage,$.t("Slippage")),o=t.closest("td"),o.removeAttr("colSpan"),$("<td>").text($.t("ticks",{context:"slippage ... ticks"})).insertAfter(o))},i.prototype._setCommissionInputs=function(e){function t(e){return e=+e,isNaN(e)||e<0?0:("percent"!==c.val()?e=parseFloat(e):e>100&&(e=100),e)}var o,i,n,a,r,l,p,s,d,h,c,u,C;void 0!==e.commission_value&&void 0!==e.commission_type&&(o=this,i=e.commission_value,n=$.extend({},e.commission_type),a=this._property.inputs[i.id],r=this._setStdInput(i,$.t("Commission"),!0),l=new b(r,a,t,!1,this.model(),"Change Commission value"),this.bindControl(l),p=r.closest("td"),p.removeAttr("colspan"),s=this._study.reportData()&&this._study.reportData().currency||"USD",d=$('<option value="cash_per_order">'+s+$.t(" per order")+"</option>"),h=$('<option value="cash_per_contract">'+s+$.t(" per contract")+"</option>"),n.options=[$('<option value="percent">'+$.t("%")+"</option>"),d,h],c=this._setStdInput(n,"type"),u=c.closest("td"),C=u.closest("tr"),u.removeAttr("colspan"),u.detach().insertAfter(p),C.remove(),this._study.watchedData.subscribe(function(){o.__updateComboCurrency(d,c,"cash_per_order",$.t(" per order")),o.__updateComboCurrency(h,c,"cash_per_contract",$.t(" per contract"))}))},i.prototype.prepareLayout=function(){this._$table=$(document.createElement("table")).addClass("property-page strategy-properties").attr("cellspacing","0").attr("cellpadding","2");var e=this._getStrategyInputs();e.initial_capital.min=1,this._setStdInput(e.initial_capital,$.t("Initial capital")),Array.isArray(e.currency.options)&&"NONE"===e.currency.options[0]&&(e.currency.options[0]=$('<option value="NONE">'+$.t("Default")+"</option>")),this._setStdInput(e.currency,$.t("Base currency")), |
|||
$('<tr class="spacer"><td colspan="3"></td></tr>').appendTo(this._$table),this._setPyramidingInputs(e),$('<tr class="spacer"><td colspan="3"></td></tr>').appendTo(this._$table),this._setQtyInputs(e),$('<tr class="spacer"><td colspan="3"></td></tr>').appendTo(this._$table),this._setStdInput(e.calc_on_order_fills,$.t("Recalculate After Order filled")),$('<tr class="spacer"><td colspan="3"></td></tr>').appendTo(this._$table),this._setStdInput(e.calc_on_every_tick,$.t("Recalculate On Every Tick")),$('<tr class="spacer"><td colspan="3"></td></tr>').appendTo(this._$table),this._setFillLimitsInputs(e),$('<tr class="spacer"><td colspan="3"></td></tr>').appendTo(this._$table),this._setSlippageInputs(e),$('<tr class="spacer"><td colspan="3"></td></tr>').appendTo(this._$table),this._setCommissionInputs(e),this.loadData()},i.prototype.widget=function(){return this._$table},i.prototype.loadData=function(){var e,t,o;r.prototype.loadData.call(this),e=this._getStrategyInputs(),t=e.pyramiding,o=this._property.inputs[t.id],o.setValue(o.value(),!0)},i.prototype.destroy=function(){var e,t,o;r.prototype.destroy.call(this),e=this._getStrategyInputs(),t=e.pyramiding,o=this._property.inputs[t.id],o.unsubscribe(null,this._onAllowUpToChanged)},e.exports=i},820:function(e,t,o){"use strict";function i(e,t,o){a.call(this,e,t),this._study=o,this.prepareLayout()}var n=o(10),a=n.PropertyPage,r=n.BooleanBinder,l=n.SimpleComboBinder,p=n.SliderBinder,s=n.ColorBinding,d=o(15).createLineWidthEditor,h=o(476).createPlotEditor;inherit(i,a),i.prototype.prepareLayout=function(){var e,t,i,n,a,c,b,u,C,y,g,w,T,_,m=this._study.properties();this._table=$('<table class="property-page" cellspacing="0" cellpadding="2">'),e=this.addLabeledRow(this._table,"Volume"),t=h(),$("<td>").append(t).appendTo(e),this.bindControl(new l(t,m.styles.vol.plottype,parseInt,!0,this.model(),"Change Volume Plot Style")),i=this._study.metaInfo().version<=46&&"transparency"in m?m.transparency:m.styles.vol.transparency,n=this.createColorPicker(),$("<td>").append(n).appendTo(e),this.bindControl(new s(n,m.palettes.volumePalette.colors[0].color,!0,this.model(),"Change Up Volume color",i)),a=this.createColorPicker(),$("<td>").append(a).appendTo(e),this.bindControl(new s(a,m.palettes.volumePalette.colors[1].color,!0,this.model(),"Change Down Volume color",i)),c=$("<input type='checkbox'>"),$("<td>").appendTo(e),$("<td>").append(c).appendTo(e),$("<td>"+$.t("Price Line")+"</td>").appendTo(e),this.bindControl(new r(c,m.styles.vol.trackPrice,!0,this.model(),"Change Price Line")),b=m.styles.vol_ma,u=this.addLabeledRow(this._table,"Volume MA"),C=h(),$("<td>").append(C).appendTo(u),this.bindControl(new l(C,b.plottype,parseInt,!0,this.model(),"Change Volume MA Plot Style")),$("<td>").html(" ").appendTo(u),y=this.createColorPicker(),$("<td>").append(y).appendTo(u),this.bindControl(new s(y,b.color,!0,this.model(),"Change Volume MA color",b.transparency)),g=d(),$("<td>").append(g).appendTo(u),this.bindControl(new p(g,b.linewidth,!0,this.model(),"Change Volume MA Line Width")), |
|||
c=$("<input type='checkbox'>"),$("<td>").append(c).appendTo(u),$("<td>"+$.t("Price Line")+"</td>").appendTo(u),this.bindControl(new r(c,b.trackPrice,!0,this.model(),"Change Price Line")),w=this.createPrecisionEditor(),T=$("<tr>"),T.appendTo(this._table),$("<td>"+$.t("Precision")+"</td>").appendTo(T),$("<td>").append(w).appendTo(T),this.bindControl(new l(w,this._study.properties().precision,null,!0,this.model(),"Change Volume Precision")),_=o(208).StudyStylesPropertyPage,_.prototype._putStudyDefaultStyles.call(this,this._table,8)},i.prototype.widget=function(){return this._table},e.exports=i},1120:function(e,t,o){"use strict";function i(){var e=$("<select />");return $('<option value="'+n.HHISTDIR_LEFTTORIGHT+'">'+$.t("Left")+"</option>").appendTo(e),$('<option value="'+n.HHISTDIR_RIGHTTOLEFT+'">'+$.t("Right")+"</option>").appendTo(e),e}Object.defineProperty(t,"__esModule",{value:!0}),o(22),o(23);var n=o(115);t.createHHistDirectionEditor=i},1121:function(e,t,o){"use strict";function i(){var e=$("<select>");return $('<option value="open">'+$.t("Open")+"</option>").appendTo(e),$('<option value="high">'+$.t("High")+"</option>").appendTo(e),$('<option value="low">'+$.t("Low")+"</option>").appendTo(e),$('<option value="close">'+$.t("Close")+"</option>").appendTo(e),$('<option value="hl2">'+$.t("(H + L)/2")+"</option>").appendTo(e),$('<option value="hlc3">'+$.t("(H + L + C)/3")+"</option>").appendTo(e),$('<option value="ohlc4">'+$.t("(O + H + L + C)/4")+"</option>").appendTo(e),e}Object.defineProperty(t,"__esModule",{value:!0}),o(22),o(23),t.createPriceSourceEditor=i},1122:function(e,t,o){"use strict";function i(){return $('<select><option value="'+n.MARKLOC_ABOVEBAR+'">'+$.t("Above Bar")+'</option><option value="'+n.MARKLOC_BELOWBAR+'">'+$.t("Below Bar")+'</option><option value="'+n.MARKLOC_TOP+'">'+$.t("Top")+'</option><option value="'+n.MARKLOC_BOTTOM+'">'+$.t("Bottom")+'</option><option value="'+n.MARKLOC_ABSOLUTE+'">'+$.t("Absolute")+"</option></select>")}Object.defineProperty(t,"__esModule",{value:!0}),o(22),o(23);var n=o(115);t.createShapeLocationEditor=i},1123:function(e,t,o){"use strict";function i(){var e="<select>";return Object.keys(n.plotShapesData).forEach(function(t){var o=n.plotShapesData[t];e+='<option value="'+o.id+'">'+o.guiName+"</option>"}),e+="</select>",$(e)}Object.defineProperty(t,"__esModule",{value:!0}),o(22);var n=o(106);t.createShapeStyleEditor=i},1124:function(e,t,o){"use strict";function i(){return $('<input type="checkbox" class="visibility-switch"/>')}Object.defineProperty(t,"__esModule",{value:!0}),o(22),t.createVisibilityEditor=i}}); |
|||
@ -0,0 +1,6 @@ |
|||
webpackJsonp([9,11],{14:function(e,t,i){"use strict";function a(e){function t(t,i,a){e.call(this,t,i,a),this._linetool=a,this._templateList=new p(this._linetool._constructor,this.applyTemplate.bind(this))}return inherit(t,e),t.prototype.applyTemplate=function(e){this._linetool.restoreTemplate(e),this._model.model().updateSource(this._linetool),this.loadData()},t.prototype.createTemplateButton=function(e){var t=this;return e=$.extend({},e,{getDataForSaveAs:function(){return t._linetool.template()}}),this._templateList.createButton(e)},t}function o(e,t,i){n.call(this,e,t),this._linetool=i}var r=i(10),n=r.PropertyPage,s=r.ColorBinding,l=i(47).addColorPicker,p=i(268);inherit(o,n),o.prototype.createOneColorForAllLinesWidget=function(){var e=$("<td class='colorpicker-cell'>");return this.bindControl(new s(l(e),this._linetool.properties().collectibleColors,!0,this.model(),"Change All Lines Color",0)),{label:$("<td>"+$.t("Use one color")+"</td>"),editor:e}},o.prototype.addOneColorPropertyWidget=function(e){var t=this.createOneColorForAllLinesWidget(),i=$("<tr>");i.append($("<td>")).append(t.label).append(t.editor),i.appendTo(e)},o=a(o),o.createTemplatesPropertyPage=a,e.exports=o},81:function(e,t,i){"use strict";function a(e,t,i){r.call(this,e,t),this._linetool=i,this.prepareLayout()}var o=i(10),r=o.PropertyPage,n=o.GreateTransformer,s=o.LessTransformer,l=o.ToIntTransformer,p=o.SimpleStringBinder;i(142),inherit(a,r),a.BarIndexPastLimit=-5e4,a.BarIndexFutureLimit=15e3,a.prototype.bindBarIndex=function(e,t,i,o){var r=[l(e.value()),n(a.BarIndexPastLimit),s(a.BarIndexFutureLimit)];this.bindControl(new p(t,e,r,!1,i,o))},a.prototype.createPriceEditor=function(e){var t,i=this._linetool.ownerSource().formatter(),a=function(e){return i.format(e)},o=function(e){var t=i.parse(e);if(t.res)return t.price?t.price:t.value},r=$("<input type='text'>");return r.TVTicker({step:i._minMove/i._priceScale||1,formatter:a,parser:o}),e&&(t=[function(t){var i=o(t);return void 0===i?e.value():i}],this.bindControl(new p(r,e,t,!1,this.model(),"Change "+this._linetool+" point price")).addFormatter(function(e){return i.format(e)})),r},a.prototype._createPointRow=function(e,t,i){var a,o,r,n,s,l=$("<tr>"),p=$("<td>");return p.html($.t("Price")+i),p.appendTo(l),a=$("<td>"),a.appendTo(l),o=this.createPriceEditor(t.price),o.appendTo(a),r=$("<td>"),r.html($.t("Bar #")),r.appendTo(l),n=$("<td>"),n.appendTo(l),s=$("<input type='text'>"),s.appendTo(n),s.addClass("ticker"),this.bindBarIndex(t.bar,s,this.model(),"Change "+this._linetool+" point bar index"),l},a.prototype.prepareLayoutForTable=function(e){var t,i,a,o,r,n=this._linetool.points(),s=n.length;for(t=0;t<n.length;t++)i=n[t],(a=this._linetool.properties().points[t])&&(o=t||s>1?" "+(t+1):"",r=this._createPointRow(i,a,o),r.appendTo(e))},a.prototype.prepareLayout=function(){this._table=$(document.createElement("table")),this._table.addClass("property-page"),this._table.attr("cellspacing","0"),this._table.attr("cellpadding","2"),this.prepareLayoutForTable(this._table),this.loadData()}, |
|||
a.prototype.widget=function(){return this._table},e.exports=a},121:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e[e.Coordinates=100]="Coordinates",e[e.Display=100]="Display",e[e.Style=200]="Style",e[e.Inputs=300]="Inputs",e[e.Properties=250]="Properties"}(t.TabPriority||(t.TabPriority={})),function(e){e.background="Background",e.coordinates="Coordinates",e.drawings="Drawings",e.events="Events",e.eventsAndAlerts="Events & Alerts",e.inputs="Inputs",e.properties="Properties",e.scales="Scales",e.sourceCode="Source Code",e.style="Style",e.timezoneSessions="Timezone/Sessions",e.trading="Trading",e.visibility="Visibility"}(t.TabNames||(t.TabNames={})),function(e){e[e.Default=100]="Default",e[e.UserSave=200]="UserSave",e[e.Override=300]="Override"}(t.TabOpenFrom||(t.TabOpenFrom={}))},162:function(e,t){"use strict";t.createInputsPropertyPage=function(e,t){var i=e.getInputsPropertyPage();return null==i?null:new i(e.properties(),t,e)},t.createStudyStrategyPropertyPage=function(e,t){var i=e.getStrategyPropertyPage();return null==i?null:new i(e.properties(),t,e)},t.createStylesPropertyPage=function(e,t){var i=e.getStylesPropertyPage();return null==i?null:new i(e.properties(),t,e)},t.createDisplayPropertyPage=function(e,t){var i=e.getDisplayPropertyPage();return null==i?null:new i(e.properties(),t,e)},t.createVisibilitiesPropertyPage=function(e,t){var i=e.getVisibilitiesPropertyPage();return null==i?null:new i(e.properties(),t,e)},t.hasInputsPropertyPage=function(e){return null!==e.getInputsPropertyPage()},t.hasStylesPropertyPage=function(e){return null!==e.getStylesPropertyPage()}},396:function(e,t,i){(function(t){"use strict";function a(e,t,i){this._source=e,this._model=t,this._undoCheckpoint=i}var o=i(3).LineDataSource,r=i(61).Study,n=i(85),s=i(62).DataSource,l=i(43),p=i(103).bindPopupMenu,c=i(121),d=i(48).trackEvent;i(142),a.prototype.hide=function(e){TVDialogs.destroy(this._dialogTitle,{undoChanges:!!e})},a.prototype._onDestroy=function(e,t){var i,a=(t||{}).undoChanges;$(window).unbind("keyup.hidePropertyDialog"),a?(i=this._undoCheckpoint?this._undoCheckpoint:this._undoCheckpointOnShow)&&this._model.undoToCheckpoint(i):this._source.hasAlert.value()&&this._source.localAndServerAlersMismatch&&this._source.synchronizeAlert(!0),this._undoCheckpointOnShow&&delete this._undoCheckpointOnShow,window.lineToolPropertiesToolbar&&window.lineToolPropertiesToolbar.refresh()},a.prototype.isVisible=function(){return this._dialog&&this._dialog.is(":visible")},a.prototype.focusOnText=function(){this._dialog.find('input[type="text"]').focus().select()},a.prototype.switchTab=function(e,t){var i,a;if(this._tabs)return i=null,e?e=e.valueOf():null===e&&(e=void 0),"string"==typeof e&&$.each(this._tabs,function(t,a){if(a.name===e)return i=a,!1}),"object"==typeof e&&$.each(this._tabs,function(t,a){if(e===a||$(a.labelObject).is(e)||$(a.wrapperObject).is(e))return i=a,!1}),i||(i=this._tabs[~~e]),!!i&&($.each(this._tabs,function(e,t){var a=t===i;$(t.wrapperObject)[a?"show":"hide"](), |
|||
$(t.labelObject)[a?"addClass":"removeClass"]("active")}),t&&(a=this.activeTabSettingsName())&&TVSettings.setValue(a,i.name),this._dialog.height()+100>$(window).height()&&!i.isScrollable&&this.makeScrollable(i),$(":focus").blur(),!0)},a.prototype.makeScrollable=function(e){var t=e.wrapperObject,i=$(e.objects[0]),a=i.width();t.css({height:$(window).height()/1.4,overflow:"auto"}),i.css("width",a+20),e.isScrollable=!0},a.prototype.appendToTab=function(e,t,i,a,o,r){var n,s;$(e).is("table")&&!$(e).find("tr").size()||(this._tabs||(this._tabs=[]),$.each(this._tabs,function(e,i){if(i.name===t)return n=e,!1}),void 0===n&&(this._tabs.push({name:t,localizedName:$.t(t),objects:$(),displayPriority:0,defaultOpen:0,isButton:!!o,callback:o?r||function(){}:null}),n=this._tabs.length-1),s=this._tabs[n],s.objects=s.objects.add(e),s.displayPriority=Math.max(s.displayPriority||0,i||0),s.defaultOpen=Math.max(s.defaultOpen||0,a||0))},a.prototype.insertTabs=function(){function e(e){r&&r===e.name&&(e.defaultOpen=Math.max(~~e.defaultOpen,c.TabOpenFrom.UserSave)),(!a||~~a.defaultOpen<~~e.defaultOpen)&&(a=e),e.labelObject=$('<a href="#" class="properties-tabs-label tv-tabs__tab"></a>').text(e.localizedName).appendTo(i._tabContainer),e.labelObject.bind("click",function(e){e.preventDefault(),i.switchTab(this,!0)});var t=$('<div class="main-properties"></div>');e.wrapperObject=$().add(t),e.objects.each(function(i,a){var o=$(a);o.is("table")?(o.data("layout-separated")&&(e.wrapperObject=e.wrapperObject.add('<div class="properties-separator"></div>').add(t=$('<div class="main-properties"></div>')),o.removeData("layout-separated")),t.append(o),o.children("tbody").each(function(i,o){if(0!==i&&$(o).data("layout-separated")){e.wrapperObject=e.wrapperObject.add('<div class="properties-separator"></div>').add(t=$('<div class="main-properties"></div>'));var r=$(a).clone(!0,!1).appendTo(t);r.children().remove(),r.append(o),$(o).removeData("layout-separated")}})):t.append(o)}),e.wrapperObject.appendTo(i._container)}function t(e){e.labelObject=$('<a href="#" class="properties-tabs-label tv-tabs__tab"></a>').text(e.localizedName).appendTo(i._tabContainer),e.labelObject.bind("click",e.callback)}var i,a,o,r;this._tabs&&(this._tabs.sort(function(e,t){return(t.displayPriority||0)-(e.displayPriority||0)}),i=this,a=null,o=this.activeTabSettingsName(),o&&(r=TVSettings.getValue(o)),$.each(this._tabs,function(i,a){a.isButton?t(a):e(a)}),this.switchTab(a))},a.prototype.activeTabSettingsName=function(){var e=this._source;if(e)return e instanceof n?"properties_dialog.active_tab.chart":e instanceof o?"properties_dialog.active_tab.drawing":e instanceof r?"properties_dialog.active_tab.study":void 0},a.prototype.show=function(e){function a(){v.hide(!0)}var u,h,b,f,y,_,g,v,T,m,P,w,S,C,O,D,k,I,x,j,N,V,L,B,z;if(t.enabled("property_pages")&&(u=i(162),e=e||{},h=e.onWidget||!1,TradingView.isInherited(this._source.constructor,n)&&d("GUI","Series Properties"),TradingView.isInherited(this._source.constructor,r)&&d("GUI","Study Properties"), |
|||
TradingView.isInherited(this._source.constructor,s)&&this._model.setSelectedSource(this._source),b=u.createStudyStrategyPropertyPage(this._source,this._model),f=u.createInputsPropertyPage(this._source,this._model),y=u.createStylesPropertyPage(this._source,this._model),_=u.createVisibilitiesPropertyPage(this._source,this._model),g=u.createDisplayPropertyPage(this._source,this._model),f&&!f.widget().is(":empty")||y||b))return v=this,T=null!==f,m=this._source.title(),P=TVDialogs.createDialog(m,{hideTitle:!0,dragHandle:".properties-tabs"}),w=P.find("._tv-dialog-content"),S=$('<div class="properties-tabs tv-tabs"></div>').appendTo(w),O=[],D=400,this._tabs=O,this._dialog=P,this._dialogTitle=m,this._container=w,this._tabContainer=S,this._undoCheckpointOnShow=this._model.createUndoCheckpoint(),P.on("destroy",function(e,t){var t=t||{};v._onDestroy(e,t),C&&(t.undoChanges?C.restore():C.applyTheme()),f&&f.destroy(),b&&b.destroy(),y&&y.destroy(),g&&g.destroy(),_&&_.destroy(),$("select",w).each(function(){$(this).selectbox("detach")})}),e.selectScales&&y.setScalesOpenTab&&y.setScalesOpenTab(),e.selectTmz&&y.setTmzOpenTab&&y.setTmzOpenTab(),!this._model.readOnly()&&b&&b.widget().each(function(e,t){var i,a,o=+$(t).data("layout-tab-priority");isNaN(o)&&(o=c.TabPriority.Properties),i=~~$(t).data("layout-tab-open"),a=$(t).data("layout-tab"),void 0===a&&(a=c.TabNames.properties),v.appendToTab(t,a,o,i)}),this._model.readOnly()||!T||f.widget().is(":empty")||f.widget().each(function(e,t){var a,o,r=i(81),n=f instanceof r,s=+$(t).data("layout-tab-priority");TradingView.isNaN(s)&&(s=n?c.TabPriority.Coordinates:c.TabPriority.Inputs),a=~~$(t).data("layout-tab-open"),o=$(t).data("layout-tab"),void 0===o&&(o=n?c.TabNames.coordinates:c.TabNames.inputs),v.appendToTab(t,o,s,a)}),y&&y.widget().each(function(e,t){var a,o,r,n=+$(t).data("layout-tab-priority");TradingView.isNaN(n)&&(n=c.TabPriority.Style),a=~~$(t).data("layout-tab-open"),o=i(14),!a&&y instanceof o&&(a=c.TabOpenFrom.Default),r=$(t).data("layout-tab"),void 0===r&&(r=c.TabNames.style),v.appendToTab(t,r,n,a)}),g&&g.widget().each(function(e,t){var i,a,o=+$(t).data("layout-tab-priority");TradingView.isNaN(o)&&(o=c.TabPriority.Display),i=~~$(t).data("layout-tab-open"),a=$(t).data("layout-tab"),void 0===a&&(a=c.TabNames.properties),v.appendToTab(t,a,o,i)}),_&&_.widget().each(function(e,t){v.appendToTab(t,c.TabNames.visibility,c.TabPriority.Display,!1)}),x=this._source instanceof r&&!!this._source.metaInfo().pine,x&&this._source.metaInfo(),this.insertTabs(),this._helpItemRequired()&&this._createHelp(),j=110,$(".js-dialog").each(function(){var e=parseInt($(this).css("z-index"),10);e>j&&(j=e)}),P.css("z-index",j),k=$('<div class="main-properties main-properties-aftertabs"></div>').appendTo(w),I=$('<div class="dialog-buttons">').appendTo(k),N=function(){function e(t){t._childs&&t._childs.length&&$.each(t._childs,function(i,a){"percentage"===a?t.percentage.listeners().fire(t.percentage):e(t[a])})}var t=[];y&&"function"==typeof y.defaultProperties&&(t=t.concat(y.defaultProperties())), |
|||
f&&"function"==typeof f.defaultProperties&&(t=t.concat(f.defaultProperties())),0===t.length&&v._source.properties?t=[v._source.properties()]:v._source._sessionsStudy&&(t=t.concat(v._source._sessionsStudy.properties())),t.length&&($.each(t,function(t,i){"chartproperties"===i._defaultName||v._model.restoreFactoryDefaults(i),v._source.calcIsActualSymbol&&v._source.calcIsActualSymbol(),e(i)}),v._source.properties().minTick&&v._source.properties().minTick.listeners().fire(v._source.properties().minTick),v._source.properties().precision&&v._source.properties().precision.listeners().fire(v._source.properties().precision),f&&f.loadData(),b&&b.loadData(),y.onResoreDefaults&&y.onResoreDefaults(),y&&y.loadData(),_&&_.loadData())},V=function(){_&&_.loadData(),f&&f.loadData()},(!h||window.is_authenticated)&&y&&"function"==typeof y.createTemplateButton&&t.enabled("linetoolpropertieswidget_template_button")?(C&&I[0].appendChild(C.domNode),y.createTemplateButton({popupZIndex:j,defaultsCallback:N,loadTemplateCallback:V}).addClass("tv-left").appendTo(I)):TradingView.isInherited(this._source.constructor,r)?(L=[{title:$.t("Reset Settings"),action:N},{title:$.t("Save As Default"),action:function(){v._source.properties().saveDefaults()}}],B=$('<a href="#" class="_tv-button tv-left">'+$.t("Defaults")+'<span class="icon-dropdown"></span></a>'),B.on("click",function(e){e.preventDefault();var t=$(this);t.is(".active")||t.trigger("button-popup",[L,!0])}).appendTo(I),p(B,null,{direction:"down",event:"button-popup",notCloseOnButtons:!0,zIndex:j})):$('<a class="_tv-button tv-left">'+$.t("Defaults")+"</a>").appendTo(I).click(N),$('<a class="_tv-button ok">'+$.t("OK")+"</a>").appendTo(I).click(function(){v.hide(),window.saver.saveChartSilently()}),$('<a class="_tv-button cancel">'+$.t("Cancel")+"</a>").appendTo(I).on("click",a),P.find("._tv-dialog-title a").on("click",a),$(window).bind("keyup.hidePropertyDialog",function(e){13===e.keyCode&&"textarea"!==e.target.tagName.toLowerCase()&&v.hide()}),$("select",w).each(function(){var e=$(this),t="tv-select-container dialog";e.hasClass("tv-select-container-fontsize")&&(t+=" tv-select-container-fontsize"),e.selectbox({speed:100,classHolder:t})}),$('input[type="text"]',w).addClass("tv-text-input inset dialog"),$("input.ticker",w).TVTicker(),P.css("min-width",D+"px"),TVDialogs.applyHandlers(P,e),z={top:($(window).height()-P.height())/2,left:($(window).width()-P.width())/2},y&&"function"==typeof y.dialogPosition&&(z=y.dialogPosition(z,P)||z),TVDialogs.positionDialog(P,z),window.lineToolPropertiesToolbar&&window.lineToolPropertiesToolbar.hide(),l.emit("edit_object_dialog",{objectType:this._source===this._model.mainSeries()?"mainSeries":this._source instanceof o?"drawing":this._source instanceof r?"study":"other",scriptTitle:this._source.title()}),P},a.prototype._helpItemRequired=function(){return this._source._metaInfo&&!!this._source._metaInfo.helpURL},a.prototype._createHelp=function(){var e=$('<a class="help" href="#" target="_blank" title="'+$.t("Help")+'"></a>') |
|||
;e.attr("href",this._source._metaInfo.helpURL),this._tabContainer.prepend(e)},e.exports=a}).call(t,i(7))}}); |
|||
|
After Width: | Height: | Size: 4.2 KiB |
@ -0,0 +1,14 @@ |
|||
webpackJsonp([6],{108:function(e,t,n){"use strict";function o(e){return t=function(t){function n(e,n){var o=t.call(this,e,n)||this;return o._getWrappedComponent=function(e){o._instance=e},o}return r.__extends(n,t),n.prototype.componentDidMount=function(){this._instance.componentWillEnter&&this.context.lifecycleProvider.registerWillEnterCb(this._instance.componentWillEnter.bind(this._instance)),this._instance.componentDidEnter&&this.context.lifecycleProvider.registerDidEnterCb(this._instance.componentDidEnter.bind(this._instance)),this._instance.componentWillLeave&&this.context.lifecycleProvider.registerWillLeaveCb(this._instance.componentWillLeave.bind(this._instance)),this._instance.componentDidLeave&&this.context.lifecycleProvider.registerDidLeaveCb(this._instance.componentDidLeave.bind(this._instance))},n.prototype.render=function(){return i.createElement(e,r.__assign({},this.props,{ref:this._getWrappedComponent}),this.props.children)},n}(i.PureComponent),t.displayName="Lifecycle Consumer",t.contextTypes={lifecycleProvider:s.object},t;var t}var r,i,s,a;Object.defineProperty(t,"__esModule",{value:!0}),r=n(5),i=n(2),s=n(86),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r.__extends(t,e),t}(i.PureComponent),t.LifecycleConsumer=a,t.makeTransitionGroupLifecycleConsumer=o},153:function(e,t){e.exports={body:"body-1yAIljnK-"}},154:function(e,t){e.exports={footer:"footer-AwxgkLHY-"}},155:function(e,t){e.exports={header:"header-2Hz0Lxou-",close:"close-3H_MMLbw-"}},156:function(e,t){e.exports={message:"message-1CYdTy_T-",error:"error-1u_m-Ehm-"}},157:function(e,t){e.exports={dialog:"dialog-13-QRYuG-",rounded:"rounded-1GLivxii-",shadowed:"shadowed-30OTTAts-"}},182:function(e,t,n){"use strict";function o(e){return r.createElement("div",{className:i.body,ref:e.reference},e.children)}var r,i;Object.defineProperty(t,"__esModule",{value:!0}),r=n(2),i=n(153),t.Body=o},183:function(e,t,n){"use strict";var o,r,i,s;Object.defineProperty(t,"__esModule",{value:!0}),o=n(185),t.Header=o.Header,r=n(184),t.Footer=r.Footer,i=n(182),t.Body=i.Body,s=n(186),t.Message=s.Message},184:function(e,t,n){"use strict";function o(e){return r.createElement("div",{className:i.footer,ref:e.reference},e.children)}var r,i;Object.defineProperty(t,"__esModule",{value:!0}),r=n(2),i=n(154),t.Footer=o},185:function(e,t,n){"use strict";function o(e){return r.createElement("div",{className:i.header,"data-dragg-area":!0,ref:e.reference},e.children,r.createElement(a.Icon,{className:i.close,icon:s,onClick:e.onClose}))}var r,i,s,a;Object.defineProperty(t,"__esModule",{value:!0}),r=n(2),i=n(155),s=n(109),a=n(77),t.Header=o},186:function(e,t,n){"use strict";function o(e){var t,n;return e.text?t=r.createElement("span",null,e.text):e.html&&(t=r.createElement("span",{dangerouslySetInnerHTML:{__html:e.html}})),n=i.message,e.isError&&(n+=" "+i.error),r.createElement(s.CSSTransitionGroup,{transitionName:"message",transitionEnterTimeout:c.dur,transitionLeaveTimeout:c.dur},t?r.createElement("div",{className:n,key:"0" |
|||
},r.createElement(a.OutsideEvent,{mouseDown:!0,touchStart:!0,handler:e.onClickOutside},t)):null)}var r,i,s,a,c;Object.defineProperty(t,"__esModule",{value:!0}),r=n(2),i=n(156),s=n(46),a=n(107),c=n(28),t.Message=o},187:function(e,t,n){"use strict";function o(e){var t,n=e.rounded,o=void 0===n||n,a=e.shadowed,c=void 0===a||a,u=e.className,l=void 0===u?"":u,d=s(i.dialog,(t={},t[l]=!!l,t[i.rounded]=o,t[i.shadowed]=c,t[i.animated]=i.animated,t)),p={bottom:e.bottom,left:e.left,maxWidth:e.width,right:e.right,top:e.top,zIndex:e.zIndex};return r.createElement("div",{className:d,ref:e.reference,style:p,onMouseDown:e.onMouseDown,onMouseUp:e.onMouseUp,onClick:e.onClick},e.children)}var r,i,s;Object.defineProperty(t,"__esModule",{value:!0}),r=n(2),i=n(157),s=n(26),t.Dialog=o},188:function(e,t,n){"use strict";function o(){d=document.createElement("div"),document.body.appendChild(d),i()}function r(e,t){p.getItems().forEach(function(n){n!==t&&m.emitEvent(e+":"+n)})}function i(e){a.render(s.createElement(c.TransitionGroup,{component:"div"},Array.from(f.values())),d,e)}var s,a,c,u,l,d,p,h,m,f;Object.defineProperty(t,"__esModule",{value:!0}),s=n(2),a=n(55),c=n(46),u=n(110),l=function(){function e(){this._storage=[]}return e.prototype.add=function(e){this._storage.push(e)},e.prototype.remove=function(e){this._storage=this._storage.filter(function(t){return e!==t})},e.prototype.getIndex=function(e){return this._storage.findIndex(function(t){return e===t})},e.prototype.toTop=function(e){this.remove(e),this.add(e)},e.prototype.has=function(e){return this._storage.includes(e)},e.prototype.getItems=function(){return this._storage},e}(),t.EVENTS={ZindexUpdate:"ZindexUpdate"},p=new l,h=150,m=new u,f=new Map,function(e){function n(e){p.has(e)||(p.add(e),r(t.EVENTS.ZindexUpdate,e))}function o(e){p.remove(e),f.delete(e)}function s(e){return p.getIndex(e)+h}function a(e,t,n){f.set(e,t),i(n)}function c(e,t){o(e),i(t)}function u(){return m}e.registerWindow=n,e.unregisterWindow=o,e.getZindex=s,e.renderWindow=a,e.removeWindow=c,e.getStream=u}(t.OverlapManager||(t.OverlapManager={})),o()},189:function(e,t,n){"use strict";function o(e){return t=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return i.__extends(n,t),n.prototype.componentWillEnter=function(e){this.props.beforeOpen?this.props.beforeOpen(e):e()},n.prototype.componentDidEnter=function(){this.props.afterOpen&&this.props.afterOpen()},n.prototype.componentWillLeave=function(e){this.props.beforeClose?this.props.beforeClose(e):e()},n.prototype.componentDidLeave=function(){this.props.afterClose&&this.props.afterClose()},n.prototype.render=function(){return s.createElement(e,i.__assign({},this.props))},n}(s.PureComponent),t.displayName="OverlapLifecycle("+(e.displayName||"Component")+")",t;var t}function r(e){var t,n=u.makeTransitionGroupLifecycleProvider(l.makeTransitionGroupLifecycleConsumer(o(e)));return t=function(e){function t(t){var n=e.call(this,t)||this;return n._onZIndexUpdate=function(){ |
|||
n.props.isOpened&&("parent"===n.props.root?n.forceUpdate():n._renderWindow(n.props))},n._uuid=d.guid(),n._zIndexUpdateEvent=c.EVENTS.ZindexUpdate+":"+n._uuid,n}return i.__extends(t,e),t.prototype.componentDidMount=function(){this._subscribe()},t.prototype.componentWillUnmount=function(){this._unsubscribe(),c.OverlapManager.removeWindow(this._uuid)},t.prototype.componentWillReceiveProps=function(e){"parent"!==this.props.root&&this._renderWindow(e)},t.prototype.render=function(){return"parent"===this.props.root?s.createElement(a.TransitionGroup,{component:"div"},this._createContent(this.props)):null},t.prototype._renderWindow=function(e){c.OverlapManager.renderWindow(this._uuid,this._createContent(e))},t.prototype._createContent=function(e){return e.isOpened?(c.OverlapManager.registerWindow(this._uuid),s.createElement(n,i.__assign({},e,{key:this._uuid,zIndex:c.OverlapManager.getZindex(this._uuid)}),e.children)):(c.OverlapManager.unregisterWindow(this._uuid),null)},t.prototype._subscribe=function(){c.OverlapManager.getStream().on(this._zIndexUpdateEvent,this._onZIndexUpdate)},t.prototype._unsubscribe=function(){c.OverlapManager.getStream().off(this._zIndexUpdateEvent,this._onZIndexUpdate)},t}(s.PureComponent),t.displayName="Overlapable("+(e.displayName||"Component")+")",t}var i,s,a,c,u,l,d;Object.defineProperty(t,"__esModule",{value:!0}),i=n(5),s=n(2),a=n(46),c=n(188),u=n(191),l=n(108),d=n(64),t.makeOverlapable=r},191:function(e,t,n){"use strict";function o(e){return t=function(t){function n(e){var n=t.call(this,e)||this;return n._registerWillEnterCb=function(e){n._willEnter.push(e)},n._registerDidEnterCb=function(e){n._didEnter.push(e)},n._registerWillLeaveCb=function(e){n._willLeave.push(e)},n._registerDidLeaveCb=function(e){n._didLeave.push(e)},n._willEnter=[],n._didEnter=[],n._willLeave=[],n._didLeave=[],n}return r.__extends(n,t),n.prototype.getChildContext=function(){return{lifecycleProvider:{registerWillEnterCb:this._registerWillEnterCb,registerDidEnterCb:this._registerDidEnterCb,registerWillLeaveCb:this._registerWillLeaveCb,registerDidLeaveCb:this._registerDidLeaveCb}}},n.prototype.componentWillEnter=function(e){var t=this._willEnter.map(function(e){return new Promise(function(t){e(t)})});Promise.all(t).then(e)},n.prototype.componentDidEnter=function(){this._didEnter.forEach(function(e){e()})},n.prototype.componentWillLeave=function(e){var t=this._willLeave.map(function(e){return new Promise(function(t){e(t)})});Promise.all(t).then(e)},n.prototype.componentDidLeave=function(){this._didLeave.forEach(function(e){e()})},n.prototype.render=function(){return i.createElement(e,r.__assign({},this.props),this.props.children)},n}(i.PureComponent),t.displayName="Lifecycle Provider",t.childContextTypes={lifecycleProvider:s.object},t;var t}var r,i,s;Object.defineProperty(t,"__esModule",{value:!0}),r=n(5),i=n(2),s=n(86),t.makeTransitionGroupLifecycleProvider=o},201:function(e,t){e.exports={inputWrapper:"inputWrapper-23iUt2Ae-",textInput:"textInput-3hvomQp9-",error:"error-2ydrzcvg-",success:"success-2y4Cbw_L-", |
|||
xsmall:"xsmall-2Dz_yiDV-",small:"small-3g0mV7FW-",large:"large-CZ_w52Xn-",iconed:"iconed-2X3rffL9-",inputIcon:"inputIcon-nJhQLYdg-",clearable:"clearable-3HVD9v3B-",clearIcon:"clearIcon-UZyPhrkf-",grouped:"grouped-2xS7_jZ2-"}},255:function(e,t){e.exports={ghost:"ghost-2xkVjo4o-",primary:"primary-nwbhr-QZ-",success:"success-13aJxw0L-",danger:"danger-1jVFBwRj-",warning:"warning-1sksz0Rq-",secondary:"secondary-2H-Jwmir-",button:"button-2jCWN5M1-",withPadding:"withPadding-UPhHkA1c-",hiddenText:"hiddenText-13D-S4nC-",text:"text-1d01iK8L-",loader:"loader-1aihbDEL-",base:"base-2PiGQ3aT-",secondaryScript:"secondaryScript-3pO7_bSM-",link:"link-1v4pOPj2-",xsmall:"xsmall-1XIYvP4K-",small:"small-2fwP8rrU-",large:"large-1a-qmr37-",grouped:"grouped-3T2Y_EXg-",growable:"growable-S0qQuxEB-",active:"active-3Eem2fUt-",disabled:"disabled-2jaDvv_v-"}},256:function(e,t){e.exports={dialog:"dialog-2MaUXXMw-",dragging:"dragging-3oeGgbIQ-"}},257:function(e,t){e.exports={loader:"loader-3q6az1FO-",item:"item-I1y2jPt8-","tv-button-loader":"tv-button-loader-or3q47Bu-",black:"black-29_3FgL9-",white:"white-PhPAMkPg-"}},258:function(e,t){e.exports={calendar:"calendar-31T-f8xW-",header:"header-1IspLgQG-",title:"title-165i_Hrv-",switchBtn:"switchBtn-3TukPHdl-",prev:"prev-x9isN-kp-",next:"next-34HZFkxR-",month:"month-2hQY5F0z-",weekdays:"weekdays-uTDB6j1H-",weeks:"weeks-2XtkuRel-",week:"week-5_tvG-8b-",day:"day-1IQ3pxmF-",disabled:"disabled-3CCvhen1-",selected:"selected-1HN89txM-",currentDay:"currentDay-3Ojny1au-",otherMonth:"otherMonth-3Wqk07bY-"}},259:function(e,t){e.exports={clock:"clock-24NOooZu-",header:"header-2zhGNKci-",number:"number-2B8nA4rf-",active:"active-p8XQNXmZ-",body:"body-1lkcbofs-",clockFace:"clockFace-ratNcUJ8-",face:"face-2S_dz-Lt-",inner:"inner-1O9iOFrM-",hand:"hand-14LdqePA-",knob:"knob-3OZv5WLP-",centerDot:"centerDot-1Fru2d4j-"}},322:function(e,t,n){"use strict";function o(e){switch(e){case"default":return u.base;case"primary":return u.primary;case"secondary":return u.secondary;case"secondary-script":return u.secondaryScript;case"success":return u.success;case"warning":return u.warning;case"danger":return u.danger;case"link":return u.link;default:return""}}function r(e){switch(e){case"xsmall":return u.xsmall;case"small":return u.small;case"large":return u.large;default:return""}}function i(e){switch(e){case"ghost":return u.ghost;default:return""}}function s(e){var t,n=e.active,s=void 0===n||n,h=e.children,m=e.className,f=void 0===m?"":m,_=e.disabled,v=void 0!==_&&_,g=e.grouped,y=void 0!==g&&g,w=e.growable,E=void 0!==w&&w,M=e.id,b=void 0===M?0:M,C=e.onClick,k=e.reference,x=e.size,D=e.theme,S=e.type,P=void 0===S?"default":S,T=e.loading,N=void 0!==T&&T,L=e.withPadding,O=void 0===L||L,H=e.title,I=void 0===H?"":H,W=e.disabledClassName,z=e.tabIndex,j=void 0===z?0:z,F=e.component,V=void 0===F?"button":F,R=e.target,Y=void 0===R?"":R,G=e.href,U=void 0===G?"":G,B=c((t={},t[f]=!!f,t[u.button]=!0,t[u.active]=s&&!v,t[W||u.disabled]=v,t[u.grouped]=y,t[u.growable]=E,t[u.withPadding]=O,t[r(x)]=!!x,t[i(D)]=!!D,t[o(P)]=!0, |
|||
t)),A="default"===P?"black":"white",X=a.createElement("span",{key:"1",className:u.text},h);return N&&(X=a.createElement("span",{key:"2",className:u.loader},a.createElement(d.Loader,{color:A}))),a.createElement(l.CSSTransitionGroup,{component:V,tabIndex:j,transitionEnterTimeout:p.dur,transitionLeaveTimeout:p.dur,transitionName:"body",className:B,disabled:v,key:b,onClick:N?void 0:C,ref:k,title:I,target:Y,href:U},a.createElement("span",{className:u.hiddenText},h),X)}var a,c,u,l,d,p;Object.defineProperty(t,"__esModule",{value:!0}),a=n(2),c=n(26),u=n(255),l=n(46),d=n(327),p=n(28),t.Button=s},323:function(e,t){"use strict";function n(e,t,n){return e+t>n&&(e=n-t),e<0&&(e=0),e}function o(e){return{x:e.pageX,y:e.pageY}}function r(e){return{x:e.touches[0].pageX,y:e.touches[0].pageY}}Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){var n=this;this._drag=null,this._onMouseDragStart=function(e){e.preventDefault(),n._dragStart(o(e))},this._onTouchDragStart=function(e){n._dragStart(r(e))},this._onMouseDragMove=function(e){n._dragMove(o(e))},this._onTouchDragMove=function(e){e.preventDefault(),n._dragMove(r(e))},this._onDragStop=function(){n._drag=null,n._header.classList.remove("dragging")},this._dialog=e,this._header=t,t.addEventListener("mousedown",this._onMouseDragStart),t.addEventListener("touchstart",this._onTouchDragStart),document.addEventListener("mousemove",this._onMouseDragMove),document.addEventListener("touchmove",this._onTouchDragMove),document.addEventListener("mouseup",this._onDragStop),document.addEventListener("touchend",this._onDragStop)}return e.prototype.destroy=function(){this._header.removeEventListener("mousedown",this._onMouseDragStart),this._header.removeEventListener("touchstart",this._onTouchDragStart),document.removeEventListener("mousemove",this._onMouseDragMove),document.removeEventListener("touchmove",this._onTouchDragMove),document.removeEventListener("mouseup",this._onDragStop),document.removeEventListener("touchend",this._onDragStop)},e.prototype._dragStart=function(e){var t=this._dialog.getBoundingClientRect();this._drag={startX:e.x,startY:e.y,dialogX:t.left,dialogY:t.top},this._dialog.style.left=t.left+"px",this._dialog.style.top=t.top+"px",this._header.classList.add("dragging")},e.prototype._dragMove=function(e){var t,n;this._drag&&(t=e.x-this._drag.startX,n=e.y-this._drag.startY,this._moveDialog(this._drag.dialogX+t,this._drag.dialogY+n))},e.prototype._moveDialog=function(e,t){var o=this._dialog.getBoundingClientRect();this._dialog.style.left=n(e,o.width,window.innerWidth)+"px",this._dialog.style.top=n(t,o.height,window.innerHeight)+"px"},e}();t.DragHandler=i},324:function(e,t,n){"use strict";var o,r,i,s,a,c,u,l,d,p,h;Object.defineProperty(t,"__esModule",{value:!0}),o=n(5),r=n(2),i=n(187),s=n(189),a=n(108),c=n(107),u=n(256),l=n(323),d=n(325),p=n(26),h=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._setDialog=function(e){e&&(t._dialog=e)},t}return o.__extends(t,e),t.prototype.render=function(){return r.createElement("span",{ |
|||
style:{zIndex:this.props.zIndex}},r.createElement(c.OutsideEvent,{mouseDown:!0,touchStart:!0,handler:this.props.onClickOutside},r.createElement(i.Dialog,o.__assign({},this.props,{reference:this._setDialog,className:p(u.dialog,this.props.className)}),this.props.children)))},t.prototype.componentDidMount=function(){if(this._dialog){var e=this._dialog.querySelector("[data-dragg-area]");e&&(this._drag=new l.DragHandler(this._dialog,e)),this._resize=new d.ResizeHandler(this._dialog)}},t.prototype.componentWillEnter=function(e){this._resize&&this._resize.position(),e()},t.prototype.componentWillUnmount=function(){this._drag&&this._drag.destroy(),this._resize&&this._resize.destroy()},t}(r.PureComponent),t.PopupDialog=s.makeOverlapable(a.makeTransitionGroupLifecycleConsumer(h))},325:function(e,t){"use strict";function n(e,t,n){return e+t>n&&(e=n-t),e<0&&(e=0),e}Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e){this._onResizeThrottled=requestAnimationFrame.bind(null,this._onResize.bind(this)),this._dialog=e,this._initialHeight=e.style.height,window.addEventListener("resize",this._onResizeThrottled)}return e.prototype.position=function(){var e,t=this._dialog.getBoundingClientRect(),n=window.innerWidth/2-t.width/2;this._dialog.style.left=n+"px",e=window.innerHeight/2-t.height/2,this._dialog.style.top=e+"px"},e.prototype.destroy=function(){window.removeEventListener("resize",this._onResizeThrottled)},e.prototype._onResize=function(){var e,t=this._dialog.getBoundingClientRect(),o=n(t.left,t.width,window.innerWidth);o!==t.left&&(this._dialog.style.left=o+"px"),e=n(t.top,t.height,window.innerHeight),e!==t.top&&(this._dialog.style.top=e+"px"),this._dialog.style.height=window.innerHeight<t.height?window.innerHeight+"px":this._initialHeight},e}();t.ResizeHandler=o},326:function(e,t,n){"use strict";function o(e){var t,n=e.className,o=e.icon,d=e.clearable,p=e.onClear,h=e.size,m=r.__rest(e,["className","icon","clearable","onClear","size"]),f=s(u.inputWrapper,(t={},t[n]=!!n,t[u.iconed]=!!o,t[u.clearable]=d,t));return i.createElement(l,r.__assign({theme:u,className:f,leftComponent:o?i.createElement(a.Icon,{key:"inputIcon",icon:o,className:u.inputIcon}):void 0,rightComponent:d?i.createElement(a.Icon,{className:u.clearIcon,icon:c,key:"clearIcon",onClick:p}):void 0,sizeMode:h},m))}var r,i,s,a,c,u,l;Object.defineProperty(t,"__esModule",{value:!0}),r=n(5),i=n(2),s=n(26),a=n(77),c=n(331),u=n(201),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r.__extends(t,e),t.prototype.render=function(){var e,t,n,o,a=this.props,c=a.theme,u=a.error,l=a.success,d=a.sizeMode,p=a.leftComponent,h=a.rightComponent,m=a.grouped,f=a.fontSize,_=a.reference,v=a.className,g=r.__rest(a,["theme","error","success","sizeMode","leftComponent","rightComponent","grouped","fontSize","reference","className"]),y={fontSize:f},w=s(c.textInput,(n={},n[c.error]=u,n[c.success]=l,n[c[d]]=!!d,n)),E=s(c.inputWrapper,(o={},o[v]=!!v,o[c.grouped]=m,o)),M=[],b=i.createElement("input",r.__assign({ref:_,className:w,key:"textInput", |
|||
style:y},g));return p&&(e={className:s(c.leftComponent,p.props.className),key:"leftComponent"},M.push(i.cloneElement(p,e))),M.push(b),h&&(t={className:s(c.leftComponent,h.props.className),key:"rightComponent"},M.push(i.cloneElement(h,t))),i.createElement("div",{className:E},M)},t}(i.PureComponent),t.CommonTextInput=l,t.TextInput=o},327:function(e,t,n){"use strict";function o(e){var t,n=e.color,o=void 0===n?"black":n,u=s(c.item,(t={},t[c[o]]=!!o,t));return r.createElement(i.CSSTransitionGroup,{transitionName:"loader",transitionAppear:!0,transitionAppearTimeout:2*a.dur,transitionEnter:!1,transitionLeave:!1},r.createElement("span",{className:c.loader},r.createElement("span",{className:u}),r.createElement("span",{className:u}),r.createElement("span",{className:u})))}var r,i,s,a,c;Object.defineProperty(t,"__esModule",{value:!0}),r=n(2),i=n(46),s=n(26),a=n(28),c=n(257),t.Loader=o},500:function(e,t,n){"use strict";function o(e){i({isOpened:!1}),i({isOpened:!0,onClose:function(){i({isOpened:!1}),u=null},dateOnly:e.model().mainSeries().isDWM(),onGoToDate:function(t){r(e,t)}})}function r(e,t){void 0!==e.model().timeScale().tickMarks().minIndex&&(i({isOpened:!0,processing:!0}),e.model().gotoTime(t).done(function(t){e.model().mainSeries().setGotoDateResult(t)}).always(function(){i({isOpened:!1,processing:!1})}))}function i(e){u||(u=document.createElement("div"),document.body.appendChild(u)),a.render(s.createElement(c.GoToDateDialog,e),u)}var s,a,c,u;Object.defineProperty(t,"__esModule",{value:!0}),s=n(2),a=n(55),c=n(1104),t.showGoToDateDialog=o},504:function(e,t,n){"use strict";var o,r,i,s,a,c,u,l,d,p,h;Object.defineProperty(t,"__esModule",{value:!0}),o=n(5),r=n(2),i=n(77),s=n(326),a=n(201),c=n(26),u=n(46),l=n(28),d=n(107),p=n(662),h=function(e){function t(t){var n=e.call(this,t)||this;return n._onShowPicker=function(e){if(e){var t=e.getBoundingClientRect();t.width&&t.right>window.innerWidth?e.style.right="0":e.style.right="auto"}},n._onChange=function(){var e=n._input.value;n.setState({value:e}),n.props.onType(n.props.isValid(e)?e:null)},n._onKeyDown=function(e){n.props.onHidePicker()},n._onKeyPress=function(e){if(e.charCode){var t=String.fromCharCode(e.charCode);n.props.inputRegex.test(t)||e.preventDefault()}},n._onKeyUp=function(e){var t,o;8!==e.keyCode&&(t=n._input.value,(o=n.props.fixValue(t))!==t&&n.setState({value:o}))},n.state={value:t.value},n}return o.__extends(t,e),t.prototype.componentWillReceiveProps=function(e){e.value!==this.props.value&&this.setState({value:e.value})},t.prototype.render=function(){var e,t=this,n=c(p.inputIcon,(e={},e[p.disabled]=this.props.disabled,e));return r.createElement("div",{className:p.pickerInput},r.createElement(s.CommonTextInput,{value:this.state.value,onKeyDown:this._onKeyDown,onKeyPress:this._onKeyPress,onKeyUp:this._onKeyUp,onChange:this._onChange,onFocus:this.props.onShowPicker,onClick:this.props.onShowPicker,reference:function(e){return t._input=e},rightComponent:r.createElement(i.Icon,{icon:this.props.icon,className:n,onClick:this.props.disabled?void 0:this.props.onShowPicker}), |
|||
theme:a,className:a.inputWrapper,disabled:this.props.disabled,error:!this.props.isValid(this.state.value)}),r.createElement(d.OutsideEvent,{mouseDown:!0,handler:this.props.onHidePicker},r.createElement(u.CSSTransitionGroup,{transitionName:"tv-picker",transitionEnterTimeout:l.dur,transitionLeaveTimeout:l.dur},this.props.showPicker?r.createElement("div",{className:p.picker,key:"0",ref:this._onShowPicker},this.props.children):null)))},t}(r.PureComponent),t.PickerInput=h},505:function(e,t,n){"use strict";var o,r,i,s,a;Object.defineProperty(t,"__esModule",{value:!0}),o=n(5),r=n(2),i=n(259),s=n(26),a=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._renderNumber=function(e,n){var o,a=s(i.number,(o={},o[i.active]=e===t.props.activeNumber,o)),c=t.props.format?t.props.format(e):""+e;return r.createElement("span",{key:e,className:a,style:t._numberStyle(t.props.radius-t.props.spacing,n),"data-value":c},r.createElement("span",null,c))},t}return o.__extends(t,e),t.prototype.render=function(){return r.createElement("div",{className:i.face,style:this._faceStyle(),onMouseDown:this.props.onMouseDown,onTouchStart:this.props.onTouchStart},this.props.numbers.map(this._renderNumber))},t.prototype._faceStyle=function(){return{height:2*this.props.radius,width:2*this.props.radius}},t.prototype._numberStyle=function(e,t){var n=Math.PI/180*360/12*t;return{left:e+e*Math.sin(n)+this.props.spacing,top:e-e*Math.cos(n)+this.props.spacing}},t}(r.PureComponent),t.Face=a},506:function(e,t,n){"use strict";function o(e){return{x:e.pageX,y:e.pageY}}function r(e){return{x:e.touches[0].pageX,y:e.touches[0].pageY}}function i(e,t,n,o){var r=s(e,t,n,o);return r<0?360+r:r}function s(e,t,n,o){return 180*(Math.atan2(o-t,n-e)+Math.PI/2)/Math.PI}var a,c,u,l;Object.defineProperty(t,"__esModule",{value:!0}),a=n(5),c=n(2),u=n(259),l=function(e){function t(t){var n=e.call(this,t)||this;return n._onMouseMove=function(e){n._move(o(e))},n._onTouchMove=function(e){n._move(r(e))},n._onMouseUp=function(){document.removeEventListener("mousemove",n._onMouseMove),document.removeEventListener("mouseup",n._onMouseUp),n._endMove()},n._onTouchEnd=function(){document.removeEventListener("touchmove",n._onTouchMove),document.removeEventListener("touchend",n._onTouchEnd),n._endMove()},n}return a.__extends(t,e),t.prototype.render=function(){var e=this,t={height:this.props.length,transform:"rotate("+this.props.angle+"deg)"};return c.createElement("div",{className:u.hand,style:t},c.createElement("span",{ref:function(t){return e._knob=t},className:u.knob}))},t.prototype.mouseStart=function(e){document.addEventListener("mousemove",this._onMouseMove),document.addEventListener("mouseup",this._onMouseUp),this._move(o(e.nativeEvent))},t.prototype.touchStart=function(e){document.addEventListener("touchmove",this._onTouchMove),document.addEventListener("touchend",this._onTouchEnd),this._move(r(e.nativeEvent)),e.preventDefault(),e.stopPropagation()},t.prototype._endMove=function(){this.props.onMoveEnd&&this.props.onMoveEnd()},t.prototype._move=function(e){ |
|||
var t=this._trimAngleToValue(this._positionToAngle(e)),n=this._getPositionRadius(e);!this.props.onMove||isNaN(t)||isNaN(n)||this.props.onMove(360===t?0:t,n)},t.prototype._trimAngleToValue=function(e){return this.props.step*Math.round(e/this.props.step)},t.prototype._positionToAngle=function(e){return i(this.props.center.x,this.props.center.y,e.x,e.y)},t.prototype._getPositionRadius=function(e){var t=this.props.center.x-e.x,n=this.props.center.y-e.y;return Math.sqrt(t*t+n*n)},t}(c.PureComponent),t.Hand=l},507:function(e,t){"use strict";function n(e,t,n){var o,r,i;for(void 0===n&&(n=1),o=Math.max(Math.ceil((t-e)/n),0),r=Array(o),i=0;i<o;i++,e+=n)r[i]=e;return r}function o(e){return("0"+e).slice(-2)}Object.defineProperty(t,"__esModule",{value:!0}),t.range=n,t.twoDigitsFormat=o},658:function(e,t){e.exports={dialog:"dialog-1u03BRLN-",formRow:"formRow-2yaURS6j-",cell:"cell-EVXJGc2w-",input:"input-iWIICkSL-",btn:"btn-2vvoNhxg-",button:"button-3N2pepAa-"}},661:function(e,t){e.exports={calendar:"calendar-3TJkQWuB-"}},662:function(e,t){e.exports={pickerInput:"pickerInput-1KuQJx85-",inputIcon:"inputIcon-2iqNmiTT-",disabled:"disabled-3mdc0fm2-",picker:"picker-145BnyQ1-"}},1104:function(e,t,n){"use strict";var o,r,i,s,a,c,u,l,d,p,h,m,f,_;Object.defineProperty(t,"__esModule",{value:!0}),o=n(5),n(23),r=n(2),i=n(324),s=n(183),a=n(1171),c=n(1175),u=n(77),l=n(1188),d=n(322),p=n(658),h=n(36),m=n(234),f=n(26),_=function(e){function t(t){var n=e.call(this,t)||this;return n._todayMidnight=h("00:00","HH:mm"),n._onDatePick=function(e){n.setState({date:e})},n._onTimePick=function(e){n.setState({time:e})},n._onGoToDate=function(){var e,t;n.props.onGoToDate&&n.state.date&&n.state.time&&(e=n.state.date.clone(),e.hours(n.state.time.hours()),e.minutes(n.state.time.minutes()),t=new Date(e.format("YYYY-MM-DD[T]HH:mm[:00Z]")).valueOf(),n.props.onGoToDate(t))},n._onEscape=function(){n.props.onClose&&n.props.onClose()},n.state={date:h(),time:h("00:00","HH:mm")},n}return o.__extends(t,e),t.prototype.render=function(){return r.createElement(i.PopupDialog,{isOpened:this.props.isOpened,onClickOutside:this.props.onClose,className:p.dialog},r.createElement(s.Header,{onClose:this.props.onClose},window.t("Go to")),r.createElement(s.Body,null,r.createElement(m.KeyboardDocumentListener,{keyCode:27,handler:this._onEscape}),r.createElement(m.KeyboardDocumentListener,{keyCode:13,handler:this._onGoToDate}),r.createElement("div",{className:p.formRow},r.createElement("div",{className:f(p.cell,p.input)},r.createElement(a.DatePicker,{initial:this.state.date||this._todayMidnight,onPick:this._onDatePick,maxDate:this._todayMidnight,disabled:this.props.processing})),r.createElement("div",{className:f(p.cell,p.input)},r.createElement(c.TimePicker,{initial:this.state.time||this._todayMidnight,onPick:this._onTimePick,disabled:this.props.processing||this.props.dateOnly||!this.state.date})),r.createElement("div",{className:f(p.cell,p.btn)},r.createElement(d.Button,{type:"primary",disabled:!this.state.date||!this.state.time||this.props.processing,onClick:this._onGoToDate, |
|||
className:p.button},r.createElement(u.Icon,{icon:l}))))))},t}(r.PureComponent),t.GoToDateDialog=_},1168:function(e,t,n){"use strict";var o,r,i,s,a,c,u,l,d;Object.defineProperty(t,"__esModule",{value:!0}),o=n(5),r=n(2),i=n(1170),s=n(77),a=n(1344),c=n(512),u=n(258),l=n(26),d=function(e){function t(t){var n=e.call(this,t)||this;return n._prevMonth=function(){n.setState({viewDate:n.state.viewDate.clone().subtract(1,"months")})},n._nextMonth=function(){n.setState({viewDate:n.state.viewDate.clone().add(1,"months")})},n._onClickDay=function(e){var t=e.clone();n.setState({viewDate:t}),n.props.onSelect&&n.props.onSelect(t.clone())},n.state={viewDate:t.selectedDate},n}return o.__extends(t,e),t.prototype.render=function(){return r.createElement("div",{className:l(u.calendar,this.props.className)},r.createElement("div",{className:u.header},r.createElement(s.Icon,{icon:a,onClick:this._prevMonth,className:l(u.switchBtn,u.prev)}),r.createElement("div",{className:u.title},this.state.viewDate.format("MMMM YYYY")),r.createElement(s.Icon,{icon:c,onClick:this._nextMonth,className:l(u.switchBtn,u.next)})),r.createElement(i.Month,{viewDate:this.state.viewDate,selectedDate:this.props.selectedDate,maxDate:this.props.maxDate,onClickDay:this._onClickDay}))},t}(r.PureComponent),t.Calendar=d},1169:function(e,t,n){"use strict";var o,r,i,s,a,c;Object.defineProperty(t,"__esModule",{value:!0}),o=n(5),r=n(2),i=n(258),s=n(26),a=n(36),c=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._onClick=function(){t.props.onClick&&!t.props.isDisabled&&t.props.onClick(t.props.day.clone())},t}return o.__extends(t,e),t.prototype.render=function(){var e,t=s(i.day,(e={},e[i.selected]=this.props.isSelected,e[i.disabled]=this.props.isDisabled,e[i.currentDay]=a(new Date).isSame(this.props.day,"day"),e[i.otherMonth]=this.props.isOtherMonth,e));return r.createElement("span",{className:t,onClick:this._onClick,"data-day":this.props.day.format("YYYY-MM-DD")},r.createElement("span",null,this.props.day.date()))},t}(r.PureComponent),t.Day=c},1170:function(e,t,n){"use strict";var o,r,i,s,a,c;Object.defineProperty(t,"__esModule",{value:!0}),o=n(5),r=n(2),i=n(1169),s=n(258),a=n(36),c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o.__extends(t,e),t.prototype.render=function(){return r.createElement("div",{className:s.month},r.createElement("div",{className:s.weekdays},this._renderWeekdays()),r.createElement("div",{className:s.weeks},this._renderWeeks()))},t.prototype._renderWeekdays=function(){var e,t,n=[];for(e=0;e<7;e++)t=a().day(e).format("dd"),n.push(r.createElement("span",{key:e},t));return n},t.prototype._renderWeeks=function(){var e,t=[],n=this.props.viewDate.clone().startOf("month").day(0);for(e=0;e<6;e++)t.push(this._renderWeek(n)),n=n.clone().add(1,"weeks");return t},t.prototype._renderWeek=function(e){var t,n,o=[];for(t=0;t<7;t++)n=e.clone().add(t,"days"),o.push(r.createElement(i.Day,{key:t,day:n,isDisabled:!this._isInRange(n),isSelected:n.isSame(this.props.selectedDate,"day"), |
|||
isOtherMonth:!n.isSame(this.props.viewDate,"month"),onClick:this.props.onClickDay}));return r.createElement("div",{className:s.week,key:e.week()},o)},t.prototype._isInRange=function(e){return!this.props.maxDate||this.props.maxDate.startOf("day").diff(e.startOf("day"),"days")>=0},t}(r.PureComponent),t.Month=c},1171:function(e,t,n){"use strict";var o,r,i,s,a,c,u,l;Object.defineProperty(t,"__esModule",{value:!0}),o=n(5),r=n(2),i=n(1168),s=n(1337),a=n(661),c=n(36),u=n(504),l=function(e){function t(t){var n=e.call(this,t)||this;return n._format="YYYY-MM-DD",n._fixValue=function(e){return e=e.substr(0,10),e=e.replace(/\-+/g,"-"),e.endsWith(".")||4!==e.length&&7!==e.length||(e+="-"),e},n._isValid=function(e){if(/^[0-9]{4}(\-[0-9]{2}){2}/.test(e)){var t=c(e,n._format);return t.isValid()&&n._isInRange(t)}return!1},n._onType=function(e){var t=e?c(e,n._format):null;t&&n.setState({date:t}),n.props.onPick(t)},n._onSelect=function(e){n.setState({date:e,showCalendar:!1}),n.props.onPick(e)},n._showCalendar=function(){n.setState({showCalendar:!0})},n._hideCalendar=function(){n.setState({showCalendar:!1})},n.state={date:t.initial,showCalendar:!1},n}return o.__extends(t,e),t.prototype.render=function(){return r.createElement(u.PickerInput,{value:this.state.date.format(this._format),inputRegex:/[0-9\.]/,fixValue:this._fixValue,isValid:this._isValid,onType:this._onType,onShowPicker:this._showCalendar,onHidePicker:this._hideCalendar,showPicker:this.state.showCalendar,icon:s,disabled:this.props.disabled},r.createElement(i.Calendar,{selectedDate:this.state.date,maxDate:this.props.maxDate,onSelect:this._onSelect,className:a.calendar}))},t.prototype._isInRange=function(e){return!this.props.maxDate||this.props.maxDate.startOf("day").diff(e.startOf("day"),"days")>=0},t}(r.PureComponent),t.DatePicker=l},1172:function(e,t,n){"use strict";var o,r,i,s,a,c,u,l,d,p,h;Object.defineProperty(t,"__esModule",{value:!0}),o=n(5),r=n(2),i=n(259),s=n(1173),a=n(1174),c=n(26),u=n(46),l=n(28),d=.18,function(e){e[e.Hours=0]="Hours",e[e.Minutes=1]="Minutes"}(p=t.ClockFaceType||(t.ClockFaceType={})),h=function(e){function t(t){var n=e.call(this,t)||this;return n._calculateShapeThrottled=requestAnimationFrame.bind(null,n._calculateShape.bind(n)),n._onChangeHours=function(e){n.state.time.hours()!==e&&n._onChange(n.state.time.clone().hours(e))},n._onChangeMinutes=function(e){n.state.time.minutes()!==e&&n._onChange(n.state.time.clone().minutes(e))},n._onSelectHours=function(){n._displayMinutes()},n._onSelectMinutes=function(){n.props.onSelect&&n.props.onSelect(n.state.time.clone())},n._displayHours=function(){n.setState({faceType:p.Hours})},n._displayMinutes=function(){n.setState({faceType:p.Minutes})},n._setClockFace=function(e){e&&(n._clockFace=e)},n.state={center:{x:0,y:0},radius:0,time:n.props.selectedTime,faceType:p.Hours},n}return o.__extends(t,e),t.prototype.render=function(){return r.createElement("div",{className:c(i.clock,this.props.className)},r.createElement("div",{className:i.header},r.createElement("span",{className:c(i.number,(e={}, |
|||
e[i.active]=this.state.faceType===p.Hours,e)),onClick:this._displayHours},this.state.time.format("HH")),r.createElement("span",null,":"),r.createElement("span",{className:c(i.number,(t={},t[i.active]=this.state.faceType===p.Minutes,t)),onClick:this._displayMinutes},this.state.time.format("mm"))),r.createElement("div",{className:i.body},r.createElement("div",{className:i.clockFace,ref:this._setClockFace},r.createElement(u.CSSTransitionGroup,{transitionName:"tv-clock-face-animate",transitionEnter:!0,transitionEnterTimeout:l.dur,transitionLeave:!0,transitionLeaveTimeout:l.dur},this.state.faceType===p.Hours?this._renderHours():null,this.state.faceType===p.Minutes?this._renderMinutes():null),r.createElement("span",{className:i.centerDot}))));var e,t},t.prototype.componentDidMount=function(){this._calculateShape(),setTimeout(this._calculateShape.bind(this),1),window.addEventListener("resize",this._calculateShapeThrottled),window.addEventListener("scroll",this._calculateShapeThrottled,!0)},t.prototype.componentWillUnmount=function(){window.removeEventListener("resize",this._calculateShapeThrottled),window.removeEventListener("scroll",this._calculateShapeThrottled,!0)},t.prototype._renderHours=function(){return r.createElement(s.Hours,{center:this.state.center,radius:this.state.radius,spacing:this.state.radius*d,selected:this.state.time.hours(),onChange:this._onChangeHours,onSelect:this._onSelectHours})},t.prototype._renderMinutes=function(){return r.createElement(a.Minutes,{center:this.state.center,radius:this.state.radius,spacing:this.state.radius*d,selected:this.state.time.minutes(),onChange:this._onChangeMinutes,onSelect:this._onSelectMinutes})},t.prototype._onChange=function(e){this.setState({time:e}),this.props.onChange&&this.props.onChange(e.clone())},t.prototype._calculateShape=function(){var e=this._clockFace.getBoundingClientRect(),t=e.left,n=e.top,o=e.width;this.setState({center:{x:t+o/2,y:n+o/2},radius:o/2})},t}(r.PureComponent),t.Clock=h},1173:function(e,t,n){"use strict";var o,r,i,s,a,c,u,l,d,p;Object.defineProperty(t,"__esModule",{value:!0}),o=n(5),r=n(2),i=n(505),s=n(506),a=n(507),c=[0].concat(a.range(13,24)),u=[12].concat(a.range(1,12)),l=30,d=.46,p=function(e){function t(t){var n=e.call(this,t)||this;return n._onMouseDown=function(e){n._hand.mouseStart(e)},n._onTouchStart=function(e){n._hand.touchStart(e)},n._onHandMove=function(e,t){var o=t<n.props.radius-n.props.spacing;n.state.isInner!==o?n.setState({isInner:o},function(){n.props.onChange(n._valueFromDegrees(e))}):n.props.onChange(n._valueFromDegrees(e))},n._onHandMoveEnd=function(){n.props.onSelect&&n.props.onSelect()},n.state={isInner:n.props.selected>0&&n.props.selected<=12},n}return o.__extends(t,e),t.prototype.render=function(){var e=this,t=this.props,n=t.center,o=t.radius,u=t.spacing,p=t.selected;return r.createElement("div",null,r.createElement(i.Face,{radius:o,spacing:u,numbers:c,activeNumber:p,format:a.twoDigitsFormat,onMouseDown:this._onMouseDown,onTouchStart:this._onTouchStart}),this._renderInnerFace(o*d),r.createElement(s.Hand,{ |
|||
ref:function(t){return e._hand=t},length:o-(this.state.isInner?o*d:u),angle:p*l,step:l,center:n,onMove:this._onHandMove,onMoveEnd:this._onHandMoveEnd}))},t.prototype._renderInnerFace=function(e){return r.createElement(i.Face,{radius:this.props.radius,spacing:e,numbers:u,activeNumber:this.props.selected,onMouseDown:this._onMouseDown,onTouchStart:this._onTouchStart})},t.prototype._valueFromDegrees=function(e){return this.state.isInner?u[e/l]:c[e/l]},t}(r.PureComponent),t.Hours=p},1174:function(e,t,n){"use strict";var o,r,i,s,a,c,u,l;Object.defineProperty(t,"__esModule",{value:!0}),o=n(5),r=n(2),i=n(505),s=n(506),a=n(507),c=a.range(0,60,5),u=6,l=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._onMouseDown=function(e){t._hand.mouseStart(e)},t._onTouchStart=function(e){t._hand.touchStart(e)},t._onHandMove=function(e){t.props.onChange(e/u)},t._onHandMoveEnd=function(){t.props.onSelect&&t.props.onSelect()},t}return o.__extends(t,e),t.prototype.render=function(){var e=this;return r.createElement("div",null,r.createElement(i.Face,{radius:this.props.radius,spacing:this.props.spacing,numbers:c,activeNumber:this.props.selected,format:a.twoDigitsFormat,onMouseDown:this._onMouseDown,onTouchStart:this._onTouchStart}),r.createElement(s.Hand,{ref:function(t){return e._hand=t},length:this.props.radius-this.props.spacing,angle:this.props.selected*u,step:u,center:this.props.center,onMove:this._onHandMove,onMoveEnd:this._onHandMoveEnd}))},t}(r.PureComponent),t.Minutes=l},1175:function(e,t,n){"use strict";var o,r,i,s,a,c,u;Object.defineProperty(t,"__esModule",{value:!0}),o=n(5),r=n(2),i=n(1172),s=n(1335),a=n(36),c=n(504),u=function(e){function t(t){var n=e.call(this,t)||this;return n._format="HH:mm",n._fixValue=function(e){return e=e.substr(0,5),e=e.replace(/:+/g,":"),e.endsWith(":")||2!==e.length||(e+=":"),e},n._isValid=function(e){return/^[0-9]{2}:[0-9]{2}/.test(e)&&a(e,n._format).isValid()},n._onType=function(e){var t=e?a(e,n._format):null;t&&n.setState({time:t}),n.props.onPick(t)},n._onSelect=function(e){n.setState({time:e,showClock:!1}),n.props.onPick(e)},n._showClock=function(){n.setState({showClock:!0})},n._hideClock=function(){n.setState({showClock:!1})},n.state={time:t.initial,showClock:!1},n}return o.__extends(t,e),t.prototype.render=function(){return r.createElement(c.PickerInput,{value:this.state.time.format(this._format),inputRegex:/[0-9:]/,fixValue:this._fixValue,isValid:this._isValid,onType:this._onType,onShowPicker:this._showClock,onHidePicker:this._hideClock,showPicker:this.state.showClock,icon:s,disabled:this.props.disabled},r.createElement(i.Clock,{selectedTime:this.state.time,onSelect:this._onSelect}))},t}(r.PureComponent),t.TimePicker=u},1188:function(e,t){e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16"><path fill="none" d="M0 0h16v16H0z"/><path d="M8 .034l-1.41 1.41 5.58 5.59H0v2h12.17l-5.58 5.59L8 16.034l8-8z"/></svg>'},1335:function(e,t){ |
|||
e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 14 14" width="14px" height="14px"><path fill-rule="evenodd" d="M7 0C3.15 0 0 3.15 0 7s3.15 7 7 7 7-3.15 7-7-3.15-7-7-7zm0 12.25c-2.888 0-5.25-2.363-5.25-5.25 0-2.888 2.362-5.25 5.25-5.25 2.887 0 5.25 2.362 5.25 5.25 0 2.887-2.363 5.25-5.25 5.25zm.25-8H6V8h3.75V6.75h-2.5v-2.5z"/></svg>'},1337:function(e,t){e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16"><path d="M4 0c-.6 0-1 .4-1 1v1H1c-.6 0-1 .4-1 1v12c0 .6.4 1 1 1h14c.6 0 1-.4 1-1V3c0-.6-.4-1-1-1h-2V1c0-.6-.4-1-1-1h-1c-.6 0-1 .4-1 1v1H6V1c0-.6-.4-1-1-1H4zM2 5h12v9H2V5zm5 2v2h2V7H7zm3 0v2h2V7h-2zm-6 3v2h2v-2H4zm3 0v2h2v-2H7zm3 0v2h2v-2h-2z"/></svg>'},1344:function(e,t){e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 10 16" width="10" height="16"><path d="M9.4 1.4l-1.4-1.4-8 8 8 8 1.4-1.4-6.389-6.532 6.389-6.668z"/></svg>'}}); |
|||
|
After Width: | Height: | Size: 4.2 KiB |
|
After Width: | Height: | Size: 4.2 KiB |
@ -0,0 +1 @@ |
|||
webpackJsonp([10],{695:function(A,h,i){"use strict";Object.defineProperty(h,"__esModule",{value:!0}),h.fallbackImages={tvLogoBlack:i(1349),tvLogoWhite:i(1350)},h.logoSizes={benzingapro:{width:135,height:25},bovespa:{width:135,height:50},cme:{width:175,height:26},currencywiki:{width:135,height:25},dailyfx:{width:135,height:25},fxstreet:{width:137,height:33},investopedia:{width:135,height:23},smartlab:{width:135,height:37},lse:{width:135,height:31},arabictrader:{width:135,height:40},goldprice:{width:135,height:27},silverprice:{width:135,height:27},inbestia:{width:195,height:50},immfx:{width:122,height:26},kitco:{width:130,height:35},enbourse:{width:135,height:40},rankia:{width:65,height:17},stockwatch:{width:135,height:19},tradecapitan:{width:121,height:45}}},1349:function(A,h){A.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADgAAAAmCAMAAACmhKjHAAAAXVBMVEUAAAAAAAAAAAAFEhgrg6g4rNsznskLIy0AAAAQMkAdWXIAAAAxlb4UQFEAAAAAAAAAAAAkcI8ujbQgZYEZTWMAAAAAAAAAAAA2pNIAAAAAAAAAAAAoe50AAAA7s+Q2ucaKAAAAHnRSTlMAmU2f2fnspiWswAnms3xCE8zfxrmPhjfybV9W0hyxWOJtAAABrElEQVRIx8WVbbOCIBCFrwmKCpnvlsb//5mXXcrlxcpm7sw9nwx4hrPLgX7+XBchxPdQfU2srlP1BXZLXC1H0WlIfI3HLC+4OC+ZlG1TWnQ6wN0QY/ohzlIYqC+fuBMsa7Qj3lu/71kBa5j2VSZWpzfgmbgd8ly9bKiZ7XUsLrscyVd24dhnva8VujRU+3kxU6V+pbkw07cYE+cE1MKaVql2x7CxO4ZY9YwZcvARkwy81gFnt0sVtkbBt4o5lN8f5MqMLBFInNU1zGcKGHLQBPztKksxi8as286Iy3MzwkMulStsWXnHJ50VKUNnBQ+4TEs/QANURCvy7JEzRQeBHJwlkk6yGXHqsVEPaSD3xUw9miihdlQartNOsStx3OnuSHfQjtnyNjK1Tnrinqd830BuuTwLj4Dh81EShw0SW40SOeXMb9kLkz/DU4LgHV+LbiuPBIPxFUUQNcKrBuVFahBs/AyhVRTcQyovDqiMXDzvxpDYzscqyCl1jG6lIEOhWMN8rtic0jO8Sv1BWQehXbwH/JjiV7IejlHxv1e1jIe2o/pI9+n0XjVQ/6ZfnFlWaxVUZmcAAAAASUVORK5CYII="},1350:function(A,h){A.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADgAAAAmCAMAAACmhKjHAAAAYFBMVEUAAAD////////q9/1ux+tSvOfZ8fr////I6vid2fL///9bwOm45Pb///////////+E0O9jw+mQ1fCq3vT///////9KuOb///////////94y+3///////////////87s+R/+BgSAAAAH3RSTlMAmU2f2eymJazACeazfEITzN/GuY+G8l9WOdJyaRwwr8L7/gAAAaRJREFUSMfFld2SgyAMhZeCP4i11qpV2y7v/5ZLwrgBYls7szN7rhT5hpOQxK8/16kois+h5ia8bnP1AXYVoaa96NyLWMM+y5MA5VoZc261R+cd3BUxZVcpCQvN6R13gG2tDXXxfl+zBexRNpYWXocX4JG4DfJYPU2o+3qxGzJdjuQzu3Dto93WAlnqq+16cZ+0faaxdJ+vHCuOAnSGPee6Pm+gzu6QYtVaZsjBAycVeG0Szh8na0xNDc8151BxfpDTGVkiMOHEPa1PCRgKkoDvoTKJtejMhulkXJ67FcZJs8CRdCV392qCHVKhszLlMmviAuohItqR4+E6DDNHDu4SyaCyFXE1dYUO3Jcj5WimCvWrxnGdDYJdiAuzO1AP+jUMjyS9kwtx6y0/IlBBeGkqVavjCsYEFb8xGuDYpWPtJZwdYZQg+MBp0VF4JLfIWxRB1ABTDcJjagWfQRlaRUEfUni8QA1zsfZGL3zmuUrmNJNBVxZkKJVqVcyV4DQZw4uxb5R1ULRTNMD3iU/Jpt9H8b9XNQ27jqP4SI/vw2s1QP2bfgDhqloD84hV5AAAAABJRU5ErkJggg=="}}); |
|||
@ -0,0 +1,32 @@ |
|||
webpackJsonp([8],{502:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),i(995),i(1e3),i(994),i(999),i(1001)},994:function(module,exports){!function($,undefined){function Datepicker(){this.debug=!1,this._curInst=null,this._keyEvent=!1,this._disabledInputs=[],this._datepickerShowing=!1,this._inDialog=!1,this._mainDivId="ui-datepicker-div",this._inlineClass="ui-datepicker-inline",this._appendClass="ui-datepicker-append",this._triggerClass="ui-datepicker-trigger",this._dialogClass="ui-datepicker-dialog",this._disableClass="ui-datepicker-disabled",this._unselectableClass="ui-datepicker-unselectable",this._currentClass="ui-datepicker-current-day",this._dayOverClass="ui-datepicker-days-cell-over",this.regional=[],this.regional[""]={closeText:"Done",prevText:"Prev",nextText:"Next",currentText:"Today",monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],weekHeader:"Wk",dateFormat:"mm/dd/yy",firstDay:0,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""},this._defaults={showOn:"focus",showAnim:"fadeIn",showOptions:{},defaultDate:null,appendText:"",buttonText:"...",buttonImage:"",buttonImageOnly:!1,hideIfNoPrevNext:!1,navigationAsDateFormat:!1,gotoCurrent:!1,changeMonth:!1,changeYear:!1,yearRange:"c-10:c+10",showOtherMonths:!1,selectOtherMonths:!1,showWeek:!1,calculateWeek:this.iso8601Week,shortYearCutoff:"+10",minDate:null,maxDate:null,duration:"fast",beforeShowDay:null,beforeShow:null,onSelect:null,onChangeMonthYear:null,onClose:null,numberOfMonths:1,showCurrentAtPos:0,stepMonths:1,stepBigMonths:12,altField:"",altFormat:"",constrainInput:!0,showButtonPanel:!1,autoSize:!1},$.extend(this._defaults,this.regional[""]),this.dpDiv=$('<div id="'+this._mainDivId+'" class="ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all"></div>')}function extendRemove(t,e){$.extend(t,e);for(var i in e)null!=e[i]&&e[i]!=undefined||(t[i]=e[i]);return t}function isArray(t){return t&&($.browser.safari&&"object"==typeof t&&t.length||t.constructor&&(""+t.constructor).match(/\Array\(\)/))}var PROP_NAME,dpuuid;$.extend($.ui,{datepicker:{version:"@VERSION"}}),PROP_NAME="datepicker",dpuuid=(new Date).getTime(),$.extend(Datepicker.prototype,{markerClassName:"hasDatepicker",log:function(){this.debug&&console.log.apply("",arguments)},_widgetDatepicker:function(){return this.dpDiv},setDefaults:function(t){return extendRemove(this._defaults,t||{}),this},_attachDatepicker:function(target,settings){var attrName,attrValue,nodeName,inline,inst,inlineSettings=null;for(attrName in this._defaults)if(attrValue=target.getAttribute("date:"+attrName)){inlineSettings=inlineSettings||{};try{inlineSettings[attrName]=eval(attrValue)}catch(t){inlineSettings[attrName]=attrValue}} |
|||
nodeName=target.nodeName.toLowerCase(),inline="div"==nodeName||"span"==nodeName,target.id||(this.uuid+=1,target.id="dp"+this.uuid),inst=this._newInst($(target),inline),inst.settings=$.extend({},settings||{},inlineSettings||{}),"input"==nodeName?this._connectDatepicker(target,inst):inline&&this._inlineDatepicker(target,inst)},_newInst:function(t,e){return{id:t[0].id.replace(/([^A-Za-z0-9_-])/g,"\\\\$1"),input:t,selectedDay:0,selectedMonth:0,selectedYear:0,drawMonth:0,drawYear:0,inline:e,dpDiv:e?$('<div class="'+this._inlineClass+' ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all"></div>'):this.dpDiv}},_connectDatepicker:function(t,e){var i=$(t);e.append=$([]),e.trigger=$([]),i.hasClass(this.markerClassName)||(this._attachments(i,e),i.addClass(this.markerClassName).keydown(this._doKeyDown).keypress(this._doKeyPress).keyup(this._doKeyUp).bind("setData.datepicker",function(t,i,s){e.settings[i]=s}).bind("getData.datepicker",function(t,i){return this._get(e,i)}),this._autoSize(e),$.data(t,PROP_NAME,e))},_attachments:function(t,e){var i,s,n,o=this._get(e,"appendText"),r=this._get(e,"isRTL");e.append&&e.append.remove(),o&&(e.append=$('<span class="'+this._appendClass+'">'+o+"</span>"),t[r?"before":"after"](e.append)),t.unbind("focus",this._showDatepicker),e.trigger&&e.trigger.remove(),i=this._get(e,"showOn"),"focus"!=i&&"both"!=i||t.focus(this._showDatepicker),"button"!=i&&"both"!=i||(s=this._get(e,"buttonText"),n=this._get(e,"buttonImage"),e.trigger=$(this._get(e,"buttonImageOnly")?$("<img/>").addClass(this._triggerClass).attr({src:n,alt:s,title:s}):$('<button type="button"></button>').addClass(this._triggerClass).html(""==n?s:$("<img/>").attr({src:n,alt:s,title:s}))),t[r?"before":"after"](e.trigger),e.trigger.click(function(){return $.datepicker._datepickerShowing&&$.datepicker._lastInput==t[0]?$.datepicker._hideDatepicker():$.datepicker._showDatepicker(t[0]),!1}))},_autoSize:function(t){var e,i,s;this._get(t,"autoSize")&&!t.inline&&(e=new Date(2009,11,20),i=this._get(t,"dateFormat"),i.match(/[DM]/)&&(s=function(t){var e,i=0,s=0;for(e=0;e<t.length;e++)t[e].length>i&&(i=t[e].length,s=e);return s},e.setMonth(s(this._get(t,i.match(/MM/)?"monthNames":"monthNamesShort"))),e.setDate(s(this._get(t,i.match(/DD/)?"dayNames":"dayNamesShort"))+20-e.getDay())),t.input.attr("size",this._formatDate(t,e).length))},_inlineDatepicker:function(t,e){var i=$(t);i.hasClass(this.markerClassName)||(i.addClass(this.markerClassName).append(e.dpDiv).bind("setData.datepicker",function(t,i,s){e.settings[i]=s}).bind("getData.datepicker",function(t,i){return this._get(e,i)}),$.data(t,PROP_NAME,e),this._setDate(e,this._getDefaultDate(e),!0),this._updateDatepicker(e),this._updateAlternate(e),e.dpDiv.show())},_dialogDatepicker:function(t,e,i,s,n){var o,r,a,h,l,c=this._dialogInst;return c||(this.uuid+=1,o="dp"+this.uuid,this._dialogInput=$('<input type="text" id="'+o+'" style="position: absolute; top: -100px; width: 0px; z-index: -10;"/>'),this._dialogInput.keydown(this._doKeyDown),$("body").append(this._dialogInput), |
|||
c=this._dialogInst=this._newInst(this._dialogInput,!1),c.settings={},$.data(this._dialogInput[0],PROP_NAME,c)),extendRemove(c.settings,s||{}),e=e&&e.constructor==Date?this._formatDate(c,e):e,this._dialogInput.val(e),this._pos=n?n.length?n:[n.pageX,n.pageY]:null,this._pos||(r=document.documentElement.clientWidth,a=document.documentElement.clientHeight,h=document.documentElement.scrollLeft||document.body.scrollLeft,l=document.documentElement.scrollTop||document.body.scrollTop,this._pos=[r/2-100+h,a/2-150+l]),this._dialogInput.css("left",this._pos[0]+20+"px").css("top",this._pos[1]+"px"),c.settings.onSelect=i,this._inDialog=!0,this.dpDiv.addClass(this._dialogClass),this._showDatepicker(this._dialogInput[0]),$.blockUI&&$.blockUI(this.dpDiv),$.data(this._dialogInput[0],PROP_NAME,c),this},_destroyDatepicker:function(t){var e,i=$(t),s=$.data(t,PROP_NAME);i.hasClass(this.markerClassName)&&(e=t.nodeName.toLowerCase(),$.removeData(t,PROP_NAME),"input"==e?(s.append.remove(),s.trigger.remove(),i.removeClass(this.markerClassName).unbind("focus",this._showDatepicker).unbind("keydown",this._doKeyDown).unbind("keypress",this._doKeyPress).unbind("keyup",this._doKeyUp)):"div"!=e&&"span"!=e||i.removeClass(this.markerClassName).empty())},_enableDatepicker:function(t){var e,i,s=$(t),n=$.data(t,PROP_NAME);s.hasClass(this.markerClassName)&&(e=t.nodeName.toLowerCase(),"input"==e?(t.disabled=!1,n.trigger.filter("button").each(function(){this.disabled=!1}).end().filter("img").css({opacity:"1.0",cursor:""})):"div"!=e&&"span"!=e||(i=s.children("."+this._inlineClass),i.children().removeClass("ui-state-disabled")),this._disabledInputs=$.map(this._disabledInputs,function(e){return e==t?null:e}))},_disableDatepicker:function(t){var e,i,s=$(t),n=$.data(t,PROP_NAME);s.hasClass(this.markerClassName)&&(e=t.nodeName.toLowerCase(),"input"==e?(t.disabled=!0,n.trigger.filter("button").each(function(){this.disabled=!0}).end().filter("img").css({opacity:"0.5",cursor:"default"})):"div"!=e&&"span"!=e||(i=s.children("."+this._inlineClass),i.children().addClass("ui-state-disabled")),this._disabledInputs=$.map(this._disabledInputs,function(e){return e==t?null:e}),this._disabledInputs[this._disabledInputs.length]=t)},_isDisabledDatepicker:function(t){if(!t)return!1;for(var e=0;e<this._disabledInputs.length;e++)if(this._disabledInputs[e]==t)return!0;return!1},_getInst:function(t){try{return $.data(t,PROP_NAME)}catch(t){throw"Missing instance data for this datepicker"}},_optionDatepicker:function(t,e,i){var s,n,o,r,a=this._getInst(t);if(2==arguments.length&&"string"==typeof e)return"defaults"==e?$.extend({},$.datepicker._defaults):a?"all"==e?$.extend({},a.settings):this._get(a,e):null;s=e||{},"string"==typeof e&&(s={},s[e]=i),a&&(this._curInst==a&&this._hideDatepicker(),n=this._getDateDatepicker(t,!0),o=this._getMinMaxDate(a,"min"),r=this._getMinMaxDate(a,"max"),extendRemove(a.settings,s),null!==o&&s.dateFormat!==undefined&&s.minDate===undefined&&(a.settings.minDate=this._formatDate(a,o)), |
|||
null!==r&&s.dateFormat!==undefined&&s.maxDate===undefined&&(a.settings.maxDate=this._formatDate(a,r)),this._attachments($(t),a),this._autoSize(a),this._setDateDatepicker(t,n),this._updateDatepicker(a))},_changeDatepicker:function(t,e,i){this._optionDatepicker(t,e,i)},_refreshDatepicker:function(t){var e=this._getInst(t);e&&this._updateDatepicker(e)},_setDateDatepicker:function(t,e){var i=this._getInst(t);i&&(this._setDate(i,e),this._updateDatepicker(i),this._updateAlternate(i))},_getDateDatepicker:function(t,e){var i=this._getInst(t);return i&&!i.inline&&this._setDateFromField(i,e),i?this._getDate(i):null},_doKeyDown:function(t){var e,i=$.datepicker._getInst(t.target),s=!0,n=i.dpDiv.is(".ui-datepicker-rtl");if(i._keyEvent=!0,$.datepicker._datepickerShowing)switch(t.keyCode){case 9:$.datepicker._hideDatepicker(),s=!1;break;case 13:return e=$("td."+$.datepicker._dayOverClass+":not(."+$.datepicker._currentClass+")",i.dpDiv),e[0]?$.datepicker._selectDay(t.target,i.selectedMonth,i.selectedYear,e[0]):$.datepicker._hideDatepicker(),!1;case 27:$.datepicker._hideDatepicker();break;case 33:$.datepicker._adjustDate(t.target,t.ctrlKey?-$.datepicker._get(i,"stepBigMonths"):-$.datepicker._get(i,"stepMonths"),"M");break;case 34:$.datepicker._adjustDate(t.target,t.ctrlKey?+$.datepicker._get(i,"stepBigMonths"):+$.datepicker._get(i,"stepMonths"),"M");break;case 35:(t.ctrlKey||t.metaKey)&&$.datepicker._clearDate(t.target),s=t.ctrlKey||t.metaKey;break;case 36:(t.ctrlKey||t.metaKey)&&$.datepicker._gotoToday(t.target),s=t.ctrlKey||t.metaKey;break;case 37:(t.ctrlKey||t.metaKey)&&$.datepicker._adjustDate(t.target,n?1:-1,"D"),s=t.ctrlKey||t.metaKey,t.originalEvent.altKey&&$.datepicker._adjustDate(t.target,t.ctrlKey?-$.datepicker._get(i,"stepBigMonths"):-$.datepicker._get(i,"stepMonths"),"M");break;case 38:(t.ctrlKey||t.metaKey)&&$.datepicker._adjustDate(t.target,-7,"D"),s=t.ctrlKey||t.metaKey;break;case 39:(t.ctrlKey||t.metaKey)&&$.datepicker._adjustDate(t.target,n?-1:1,"D"),s=t.ctrlKey||t.metaKey,t.originalEvent.altKey&&$.datepicker._adjustDate(t.target,t.ctrlKey?+$.datepicker._get(i,"stepBigMonths"):+$.datepicker._get(i,"stepMonths"),"M");break;case 40:(t.ctrlKey||t.metaKey)&&$.datepicker._adjustDate(t.target,7,"D"),s=t.ctrlKey||t.metaKey;break;default:s=!1}else 36==t.keyCode&&t.ctrlKey?$.datepicker._showDatepicker(this):s=!1;s&&(t.preventDefault(),t.stopPropagation())},_doKeyPress:function(t){var e,i,s=$.datepicker._getInst(t.target);if($.datepicker._get(s,"constrainInput"))return e=$.datepicker._possibleChars($.datepicker._get(s,"dateFormat")),i=String.fromCharCode(t.charCode==undefined?t.keyCode:t.charCode),t.ctrlKey||t.metaKey||i<" "||!e||e.indexOf(i)>-1},_doKeyUp:function(t){var e,i=$.datepicker._getInst(t.target);if(i.input.val()!=i.lastVal)try{e=$.datepicker.parseDate($.datepicker._get(i,"dateFormat"),i.input?i.input.val():null,$.datepicker._getFormatConfig(i)),e&&($.datepicker._setDateFromField(i),$.datepicker._updateAlternate(i),$.datepicker._updateDatepicker(i))}catch(t){$.datepicker.log(t)}return!0},_showDatepicker:function(t){ |
|||
var e,i,s,n,o,r,a;t=t.target||t,"input"!=t.nodeName.toLowerCase()&&(t=$("input",t.parentNode)[0]),$.datepicker._isDisabledDatepicker(t)||$.datepicker._lastInput==t||(e=$.datepicker._getInst(t),$.datepicker._curInst&&$.datepicker._curInst!=e&&$.datepicker._curInst.dpDiv.stop(!0,!0),i=$.datepicker._get(e,"beforeShow"),extendRemove(e.settings,i?i.apply(t,[t,e]):{}),e.lastVal=null,$.datepicker._lastInput=t,$.datepicker._setDateFromField(e),$.datepicker._inDialog&&(t.value=""),$.datepicker._pos||($.datepicker._pos=$.datepicker._findPos(t),$.datepicker._pos[1]+=t.offsetHeight),s=!1,$(t).parents().each(function(){return!(s|="fixed"==$(this).css("position"))}),s&&$.browser.opera&&($.datepicker._pos[0]-=document.documentElement.scrollLeft,$.datepicker._pos[1]-=document.documentElement.scrollTop),n={left:$.datepicker._pos[0],top:$.datepicker._pos[1]},$.datepicker._pos=null,e.dpDiv.empty(),e.dpDiv.css({position:"absolute",display:"block",top:"-1000px"}),$.datepicker._updateDatepicker(e),n=$.datepicker._checkOffset(e,n,s),e.dpDiv.css({position:$.datepicker._inDialog&&$.blockUI?"static":s?"fixed":"absolute",display:"none",left:n.left+"px",top:n.top+"px"}),e.inline||(o=$.datepicker._get(e,"showAnim"),r=$.datepicker._get(e,"duration"),a=function(){var t,i;$.datepicker._datepickerShowing=!0,t=e.dpDiv.find("iframe.ui-datepicker-cover"),t.length&&(i=$.datepicker._getBorders(e.dpDiv),t.css({left:-i[0],top:-i[1],width:e.dpDiv.outerWidth(),height:e.dpDiv.outerHeight()}))},e.dpDiv.zIndex($(t).zIndex()+1),$.effects&&$.effects[o]?e.dpDiv.show(o,$.datepicker._get(e,"showOptions"),r,a):e.dpDiv[o||"show"](o?r:null,a),o&&r||a(),e.input.is(":visible")&&!e.input.is(":disabled")&&e.input.focus(),$.datepicker._curInst=e))},_updateDatepicker:function(t){var e,i,s,n,o,r=this,a=$.datepicker._getBorders(t.dpDiv);t.dpDiv.empty().append(this._generateHTML(t)),e=t.dpDiv.find("iframe.ui-datepicker-cover"),e.length&&e.css({left:-a[0],top:-a[1],width:t.dpDiv.outerWidth(),height:t.dpDiv.outerHeight()}),t.dpDiv.find("button, .ui-datepicker-prev, .ui-datepicker-next, .ui-datepicker-calendar td a").bind("mouseout",function(){$(this).removeClass("ui-state-hover"),-1!=this.className.indexOf("ui-datepicker-prev")&&$(this).removeClass("ui-datepicker-prev-hover"),-1!=this.className.indexOf("ui-datepicker-next")&&$(this).removeClass("ui-datepicker-next-hover")}).bind("mouseover",function(){r._isDisabledDatepicker(t.inline?t.dpDiv.parent()[0]:t.input[0])||($(this).parents(".ui-datepicker-calendar").find("a").removeClass("ui-state-hover"),$(this).addClass("ui-state-hover"),-1!=this.className.indexOf("ui-datepicker-prev")&&$(this).addClass("ui-datepicker-prev-hover"),-1!=this.className.indexOf("ui-datepicker-next")&&$(this).addClass("ui-datepicker-next-hover"))}).end().find("."+this._dayOverClass+" a").trigger("mouseover").end(),i=this._getNumberOfMonths(t),s=i[1],n=17,s>1?t.dpDiv.addClass("ui-datepicker-multi-"+s).css("width",n*s+"em"):t.dpDiv.removeClass("ui-datepicker-multi-2 ui-datepicker-multi-3 ui-datepicker-multi-4").width(""), |
|||
t.dpDiv[(1!=i[0]||1!=i[1]?"add":"remove")+"Class"]("ui-datepicker-multi"),t.dpDiv[(this._get(t,"isRTL")?"add":"remove")+"Class"]("ui-datepicker-rtl"),t==$.datepicker._curInst&&$.datepicker._datepickerShowing&&t.input&&t.input.is(":visible")&&!t.input.is(":disabled")&&t.input[0]!=document.activeElement&&t.input.focus(),t.yearshtml&&(o=t.yearshtml,setTimeout(function(){o===t.yearshtml&&t.dpDiv.find("select.ui-datepicker-year:first").replaceWith(t.yearshtml),o=t.yearshtml=null},0))},_getBorders:function(t){var e=function(t){return{thin:1,medium:2,thick:3}[t]||t};return[parseFloat(e(t.css("border-left-width"))),parseFloat(e(t.css("border-top-width")))]},_checkOffset:function(t,e,i){var s=t.dpDiv.outerWidth(),n=t.dpDiv.outerHeight(),o=t.input?t.input.outerWidth():0,r=t.input?t.input.outerHeight():0,a=document.documentElement.clientWidth+$(document).scrollLeft(),h=document.documentElement.clientHeight+$(document).scrollTop();return e.left-=this._get(t,"isRTL")?s-o:0,e.left-=i&&e.left==t.input.offset().left?$(document).scrollLeft():0,e.top-=i&&e.top==t.input.offset().top+r?$(document).scrollTop():0,e.left-=Math.min(e.left,e.left+s>a&&a>s?Math.abs(e.left+s-a):0),e.top-=Math.min(e.top,e.top+n>h&&h>n?Math.abs(n+r):0),e},_findPos:function(t){for(var e,i=this._getInst(t),s=this._get(i,"isRTL");t&&("hidden"==t.type||1!=t.nodeType||$.expr.filters.hidden(t));)t=t[s?"previousSibling":"nextSibling"];return e=$(t).offset(),[e.left,e.top]},_hideDatepicker:function(t){var e,i,s,n,o=this._curInst;!o||t&&o!=$.data(t,PROP_NAME)||this._datepickerShowing&&(e=this._get(o,"showAnim"),i=this._get(o,"duration"),s=function(){$.datepicker._tidyDialog(o),this._curInst=null},$.effects&&$.effects[e]?o.dpDiv.hide(e,$.datepicker._get(o,"showOptions"),i,s):o.dpDiv["slideDown"==e?"slideUp":"fadeIn"==e?"fadeOut":"hide"](e?i:null,s),e||s(),n=this._get(o,"onClose"),n&&n.apply(o.input?o.input[0]:null,[o.input?o.input.val():"",o]),this._datepickerShowing=!1,this._lastInput=null,this._inDialog&&(this._dialogInput.css({position:"absolute",left:"0",top:"-100px"}),$.blockUI&&($.unblockUI(),$("body").append(this.dpDiv))),this._inDialog=!1)},_tidyDialog:function(t){t.dpDiv.removeClass(this._dialogClass).unbind(".ui-datepicker-calendar")},_checkExternalClick:function(t){if($.datepicker._curInst){var e=$(t.target);e[0].id==$.datepicker._mainDivId||0!=e.parents("#"+$.datepicker._mainDivId).length||e.hasClass($.datepicker.markerClassName)||e.hasClass($.datepicker._triggerClass)||!$.datepicker._datepickerShowing||$.datepicker._inDialog&&$.blockUI||$.datepicker._hideDatepicker()}},_adjustDate:function(t,e,i){var s=$(t),n=this._getInst(s[0]);this._isDisabledDatepicker(s[0])||(this._adjustInstDate(n,e+("M"==i?this._get(n,"showCurrentAtPos"):0),i),this._updateDatepicker(n))},_gotoToday:function(t){var e,i=$(t),s=this._getInst(i[0]);this._get(s,"gotoCurrent")&&s.currentDay?(s.selectedDay=s.currentDay,s.drawMonth=s.selectedMonth=s.currentMonth,s.drawYear=s.selectedYear=s.currentYear):(e=new Date,s.selectedDay=e.getDate(),s.drawMonth=s.selectedMonth=e.getMonth(), |
|||
s.drawYear=s.selectedYear=e.getFullYear()),this._notifyChange(s),this._adjustDate(i)},_selectMonthYear:function(t,e,i){var s=$(t),n=this._getInst(s[0]);n._selectingMonthYear=!1,n["selected"+("M"==i?"Month":"Year")]=n["draw"+("M"==i?"Month":"Year")]=parseInt(e.options[e.selectedIndex].value,10),this._notifyChange(n),this._adjustDate(s)},_clickMonthYear:function(t){var e=$(t),i=this._getInst(e[0]);i.input&&i._selectingMonthYear&&setTimeout(function(){i.input.focus()},0),i._selectingMonthYear=!i._selectingMonthYear},_selectDay:function(t,e,i,s){var n,o=$(t);$(s).hasClass(this._unselectableClass)||this._isDisabledDatepicker(o[0])||(n=this._getInst(o[0]),n.selectedDay=n.currentDay=$("a",s).html(),n.selectedMonth=n.currentMonth=e,n.selectedYear=n.currentYear=i,this._selectDate(t,this._formatDate(n,n.currentDay,n.currentMonth,n.currentYear)))},_clearDate:function(t){var e=$(t);this._getInst(e[0]);this._selectDate(e,"")},_selectDate:function(t,e){var i,s=$(t),n=this._getInst(s[0]);e=null!=e?e:this._formatDate(n),n.input&&n.input.val(e),this._updateAlternate(n),i=this._get(n,"onSelect"),i?i.apply(n.input?n.input[0]:null,[e,n]):n.input&&n.input.trigger("change"),n.inline?this._updateDatepicker(n):(this._hideDatepicker(),this._lastInput=n.input[0],"object"!=typeof n.input[0]&&n.input.focus(),this._lastInput=null)},_updateAlternate:function(t){var e,i,s,n=this._get(t,"altField");n&&(e=this._get(t,"altFormat")||this._get(t,"dateFormat"),i=this._getDate(t),s=this.formatDate(e,i,this._getFormatConfig(t)),$(n).each(function(){$(this).val(s)}))},noWeekends:function(t){var e=t.getDay();return[e>0&&e<6,""]},iso8601Week:function(t){var e,i=new Date(t.getTime());return i.setDate(i.getDate()+4-(i.getDay()||7)),e=i.getTime(),i.setMonth(0),i.setDate(1),Math.floor(Math.round((e-i)/864e5)/7)+1},parseDate:function(t,e,i){var s,n,o,r,a,h,l,c,p,d,u,f,g,m,_,v,b,y;if(null==t||null==e)throw"Invalid arguments";if(""==(e="object"==typeof e?""+e:e+""))return null;for(s=(i?i.shortYearCutoff:null)||this._defaults.shortYearCutoff,s="string"!=typeof s?s:(new Date).getFullYear()%100+parseInt(s,10),n=(i?i.dayNamesShort:null)||this._defaults.dayNamesShort,o=(i?i.dayNames:null)||this._defaults.dayNames,r=(i?i.monthNamesShort:null)||this._defaults.monthNamesShort,a=(i?i.monthNames:null)||this._defaults.monthNames,h=-1,l=-1,c=-1,p=-1,d=!1,u=function(e){var i=v+1<t.length&&t.charAt(v+1)==e;return i&&v++,i},f=function(t){var i=u(t),s="@"==t?14:"!"==t?20:"y"==t&&i?4:"o"==t?3:2,n=RegExp("^\\d{1,"+s+"}"),o=e.substring(_).match(n);if(!o)throw"Missing number at position "+_;return _+=o[0].length,parseInt(o[0],10)},g=function(t,i,s){var n,o=u(t)?s:i;for(n=0;n<o.length;n++)if(e.substr(_,o[n].length).toLowerCase()==o[n].toLowerCase())return _+=o[n].length,n+1;throw"Unknown name at position "+_},m=function(){if(e.charAt(_)!=t.charAt(v))throw"Unexpected literal at position "+_;_++},_=0,v=0;v<t.length;v++)if(d)"'"!=t.charAt(v)||u("'")?m():d=!1;else switch(t.charAt(v)){case"d":c=f("d");break;case"D":g("D",n,o);break;case"o":p=f("o");break;case"m":l=f("m");break;case"M": |
|||
l=g("M",r,a);break;case"y":h=f("y");break;case"@":b=new Date(f("@")),h=b.getFullYear(),l=b.getMonth()+1,c=b.getDate();break;case"!":b=new Date((f("!")-this._ticksTo1970)/1e4),h=b.getFullYear(),l=b.getMonth()+1,c=b.getDate();break;case"'":u("'")?m():d=!0;break;default:m()}if(-1==h?h=(new Date).getFullYear():h<100&&(h+=(new Date).getFullYear()-(new Date).getFullYear()%100+(h<=s?0:-100)),p>-1)for(l=1,c=p;;){if(y=this._getDaysInMonth(h,l-1),c<=y)break;l++,c-=y}if(b=this._daylightSavingAdjust(new Date(h,l-1,c)),b.getFullYear()!=h||b.getMonth()+1!=l||b.getDate()!=c)throw"Invalid date";return b},ATOM:"yy-mm-dd",COOKIE:"D, dd M yy",ISO_8601:"yy-mm-dd",RFC_822:"D, d M y",RFC_850:"DD, dd-M-y",RFC_1036:"D, d M y",RFC_1123:"D, d M yy",RFC_2822:"D, d M yy",RSS:"D, d M y",TICKS:"!",TIMESTAMP:"@",W3C:"yy-mm-dd",_ticksTo1970:24*(718685+Math.floor(492.5)-Math.floor(19.7)+Math.floor(4.925))*60*60*1e7,formatDate:function(t,e,i){var s,n,o,r,a,h,l,c,p,d;if(!e)return"";if(s=(i?i.dayNamesShort:null)||this._defaults.dayNamesShort,n=(i?i.dayNames:null)||this._defaults.dayNames,o=(i?i.monthNamesShort:null)||this._defaults.monthNamesShort,r=(i?i.monthNames:null)||this._defaults.monthNames,a=function(e){var i=d+1<t.length&&t.charAt(d+1)==e;return i&&d++,i},h=function(t,e,i){var s=""+e;if(a(t))for(;s.length<i;)s="0"+s;return s},l=function(t,e,i,s){return a(t)?s[e]:i[e]},c="",p=!1,e)for(d=0;d<t.length;d++)if(p)"'"!=t.charAt(d)||a("'")?c+=t.charAt(d):p=!1;else switch(t.charAt(d)){case"d":c+=h("d",e.getDate(),2);break;case"D":c+=l("D",e.getDay(),s,n);break;case"o":c+=h("o",(e.getTime()-new Date(e.getFullYear(),0,0).getTime())/864e5,3);break;case"m":c+=h("m",e.getMonth()+1,2);break;case"M":c+=l("M",e.getMonth(),o,r);break;case"y":c+=a("y")?e.getFullYear():(e.getYear()%100<10?"0":"")+e.getYear()%100;break;case"@":c+=e.getTime();break;case"!":c+=1e4*e.getTime()+this._ticksTo1970;break;case"'":a("'")?c+="'":p=!0;break;default:c+=t.charAt(d)}return c},_possibleChars:function(t){var e,i="",s=!1,n=function(i){var s=e+1<t.length&&t.charAt(e+1)==i;return s&&e++,s};for(e=0;e<t.length;e++)if(s)"'"!=t.charAt(e)||n("'")?i+=t.charAt(e):s=!1;else switch(t.charAt(e)){case"d":case"m":case"y":case"@":i+="0123456789";break;case"D":case"M":return null;case"'":n("'")?i+="'":s=!0;break;default:i+=t.charAt(e)}return i},_get:function(t,e){return t.settings[e]!==undefined?t.settings[e]:this._defaults[e]},_setDateFromField:function(t,e){var i,s,n,o,r;if(t.input.val()!=t.lastVal){i=this._get(t,"dateFormat"),s=t.lastVal=t.input?t.input.val():null,n=o=this._getDefaultDate(t),r=this._getFormatConfig(t);try{n=this.parseDate(i,s,r)||o}catch(t){this.log(t),s=e?"":s}t.selectedDay=n.getDate(),t.drawMonth=t.selectedMonth=n.getMonth(),t.drawYear=t.selectedYear=n.getFullYear(),t.currentDay=s?n.getDate():0,t.currentMonth=s?n.getMonth():0,t.currentYear=s?n.getFullYear():0,this._adjustInstDate(t)}},_getDefaultDate:function(t){return this._restrictMinMax(t,this._determineDate(t,this._get(t,"defaultDate"),new Date))},_determineDate:function(t,e,i){var s=function(t){var e=new Date |
|||
;return e.setDate(e.getDate()+t),e},n=function(e){var i,s,n,o,r,a;try{return $.datepicker.parseDate($.datepicker._get(t,"dateFormat"),e,$.datepicker._getFormatConfig(t))}catch(t){}for(i=(e.toLowerCase().match(/^c/)?$.datepicker._getDate(t):null)||new Date,s=i.getFullYear(),n=i.getMonth(),o=i.getDate(),r=/([+-]?[0-9]+)\s*(d|D|w|W|m|M|y|Y)?/g,a=r.exec(e);a;){switch(a[2]||"d"){case"d":case"D":o+=parseInt(a[1],10);break;case"w":case"W":o+=7*parseInt(a[1],10);break;case"m":case"M":n+=parseInt(a[1],10),o=Math.min(o,$.datepicker._getDaysInMonth(s,n));break;case"y":case"Y":s+=parseInt(a[1],10),o=Math.min(o,$.datepicker._getDaysInMonth(s,n))}a=r.exec(e)}return new Date(s,n,o)},o=null==e||""===e?i:"string"==typeof e?n(e):"number"==typeof e?isNaN(e)?i:s(e):new Date(e.getTime());return o=o&&""+o=="Invalid Date"?i:o,o&&(o.setHours(0),o.setMinutes(0),o.setSeconds(0),o.setMilliseconds(0)),this._daylightSavingAdjust(o)},_daylightSavingAdjust:function(t){return t?(t.setHours(t.getHours()>12?t.getHours()+2:0),t):null},_setDate:function(t,e,i){var s=!e,n=t.selectedMonth,o=t.selectedYear,r=this._restrictMinMax(t,this._determineDate(t,e,new Date));t.selectedDay=t.currentDay=r.getDate(),t.drawMonth=t.selectedMonth=t.currentMonth=r.getMonth(),t.drawYear=t.selectedYear=t.currentYear=r.getFullYear(),n==t.selectedMonth&&o==t.selectedYear||i||this._notifyChange(t),this._adjustInstDate(t),t.input&&t.input.val(s?"":this._formatDate(t))},_getDate:function(t){return!t.currentYear||t.input&&""==t.input.val()?null:this._daylightSavingAdjust(new Date(t.currentYear,t.currentMonth,t.currentDay))},_generateHTML:function(t){var e,i,s,n,o,r,a,h,l,c,p,d,u,f,g,m,_,v,b,y,k,w,D,P,I,M,x,z,C,S,T,N,R,A,H,Y,O,E,F,W,L,j,K,X,B,Q,V,U,J,Z,q,G=new Date;if(G=this._daylightSavingAdjust(new Date(G.getFullYear(),G.getMonth(),G.getDate())),e=this._get(t,"isRTL"),i=this._get(t,"showButtonPanel"),s=this._get(t,"hideIfNoPrevNext"),n=this._get(t,"navigationAsDateFormat"),o=this._getNumberOfMonths(t),r=this._get(t,"showCurrentAtPos"),a=this._get(t,"stepMonths"),h=1!=o[0]||1!=o[1],l=this._daylightSavingAdjust(t.currentDay?new Date(t.currentYear,t.currentMonth,t.currentDay):new Date(9999,9,9)),c=this._getMinMaxDate(t,"min"),p=this._getMinMaxDate(t,"max"),d=t.drawMonth-r,u=t.drawYear,d<0&&(d+=12,u--),p)for(f=this._daylightSavingAdjust(new Date(p.getFullYear(),p.getMonth()-o[0]*o[1]+1,p.getDate())),f=c&&f<c?c:f;this._daylightSavingAdjust(new Date(u,d,1))>f;)--d<0&&(d=11,u--);for(t.drawMonth=d,t.drawYear=u,g=this._get(t,"prevText"),g=n?this.formatDate(g,this._daylightSavingAdjust(new Date(u,d-a,1)),this._getFormatConfig(t)):g,m=this._canAdjustMonth(t,-1,u,d)?'<a class="ui-datepicker-prev ui-corner-all" onclick="DP_jQuery_'+dpuuid+".datepicker._adjustDate('#"+t.id+"', -"+a+", 'M');\" title=\""+g+'"><span class="ui-icon ui-icon-circle-triangle-'+(e?"e":"w")+'">'+g+"</span></a>":s?"":'<a class="ui-datepicker-prev ui-corner-all ui-state-disabled" title="'+g+'"><span class="ui-icon ui-icon-circle-triangle-'+(e?"e":"w")+'">'+g+"</span></a>",_=this._get(t,"nextText"), |
|||
_=n?this.formatDate(_,this._daylightSavingAdjust(new Date(u,d+a,1)),this._getFormatConfig(t)):_,v=this._canAdjustMonth(t,1,u,d)?'<a class="ui-datepicker-next ui-corner-all" onclick="DP_jQuery_'+dpuuid+".datepicker._adjustDate('#"+t.id+"', +"+a+", 'M');\" title=\""+_+'"><span class="ui-icon ui-icon-circle-triangle-'+(e?"w":"e")+'">'+_+"</span></a>":s?"":'<a class="ui-datepicker-next ui-corner-all ui-state-disabled" title="'+_+'"><span class="ui-icon ui-icon-circle-triangle-'+(e?"w":"e")+'">'+_+"</span></a>",b=this._get(t,"currentText"),y=this._get(t,"gotoCurrent")&&t.currentDay?l:G,b=n?this.formatDate(b,y,this._getFormatConfig(t)):b,k=t.inline?"":'<button type="button" class="ui-datepicker-close ui-state-default ui-priority-primary ui-corner-all" onclick="DP_jQuery_'+dpuuid+'.datepicker._hideDatepicker();">'+this._get(t,"closeText")+"</button>",w=i?'<div class="ui-datepicker-buttonpane ui-widget-content">'+(e?k:"")+(this._isInRange(t,y)?'<button type="button" class="ui-datepicker-current ui-state-default ui-priority-secondary ui-corner-all" onclick="DP_jQuery_'+dpuuid+".datepicker._gotoToday('#"+t.id+"');\">"+b+"</button>":"")+(e?"":k)+"</div>":"",D=parseInt(this._get(t,"firstDay"),10),D=isNaN(D)?0:D,P=this._get(t,"showWeek"),I=this._get(t,"dayNames"),this._get(t,"dayNamesShort"),M=this._get(t,"dayNamesMin"),x=this._get(t,"monthNames"),z=this._get(t,"monthNamesShort"),C=this._get(t,"beforeShowDay"),S=this._get(t,"showOtherMonths"),T=this._get(t,"selectOtherMonths"),this._get(t,"calculateWeek")||this.iso8601Week,N=this._getDefaultDate(t),R="",A=0;A<o[0];A++){for(H="",Y=0;Y<o[1];Y++){if(O=this._daylightSavingAdjust(new Date(u,d,t.selectedDay)),E=" ui-corner-all",F="",h){if(F+='<div class="ui-datepicker-group',o[1]>1)switch(Y){case 0:F+=" ui-datepicker-group-first",E=" ui-corner-"+(e?"right":"left");break;case o[1]-1:F+=" ui-datepicker-group-last",E=" ui-corner-"+(e?"left":"right");break;default:F+=" ui-datepicker-group-middle",E=""}F+='">'}for(F+='<div class="ui-datepicker-header ui-widget-header ui-helper-clearfix'+E+'">'+(/all|left/.test(E)&&0==A?e?v:m:"")+(/all|right/.test(E)&&0==A?e?m:v:"")+this._generateMonthYearHeader(t,d,u,c,p,A>0||Y>0,x,z)+'</div><table class="ui-datepicker-calendar"><thead><tr>',W=P?'<th class="ui-datepicker-week-col">'+this._get(t,"weekHeader")+"</th>":"",L=0;L<7;L++)j=(L+D)%7,W+="<th"+((L+D+6)%7>=5?' class="ui-datepicker-week-end"':"")+'><span title="'+I[j]+'">'+M[j]+"</span></th>";for(F+=W+"</tr></thead><tbody>",K=this._getDaysInMonth(u,d),u==t.selectedYear&&d==t.selectedMonth&&(t.selectedDay=Math.min(t.selectedDay,K)),X=(this._getFirstDayOfMonth(u,d)-D+7)%7,B=h?6:Math.ceil((X+K)/7),Q=this._daylightSavingAdjust(new Date(u,d,1-X)),V=0;V<B;V++){for(F+="<tr>",U=P?'<td class="ui-datepicker-week-col">'+this._get(t,"calculateWeek")(Q)+"</td>":"",L=0;L<7;L++)J=C?C.apply(t.input?t.input[0]:null,[Q]):[!0,""],Z=Q.getMonth()!=d,q=Z&&!T||!J[0]||c&&Q<c||p&&Q>p, |
|||
U+='<td class="'+((L+D+6)%7>=5?" ui-datepicker-week-end":"")+(Z?" ui-datepicker-other-month":"")+(Q.getTime()==O.getTime()&&d==t.selectedMonth&&t._keyEvent||N.getTime()==Q.getTime()&&N.getTime()==O.getTime()?" "+this._dayOverClass:"")+(q?" "+this._unselectableClass+" ui-state-disabled":"")+(Z&&!S?"":" "+J[1]+(Q.getTime()==l.getTime()?" "+this._currentClass:"")+(Q.getTime()==G.getTime()?" ui-datepicker-today":""))+'"'+(Z&&!S||!J[2]?"":' title="'+J[2]+'"')+(q?"":' onclick="DP_jQuery_'+dpuuid+".datepicker._selectDay('#"+t.id+"',"+Q.getMonth()+","+Q.getFullYear()+', this);return false;"')+">"+(Z&&!S?" ":q?'<span class="ui-state-default">'+Q.getDate()+"</span>":'<a class="ui-state-default'+(Q.getTime()==G.getTime()?" ui-state-highlight":"")+(Q.getTime()==l.getTime()?" ui-state-active":"")+(Z?" ui-priority-secondary":"")+'" href="#">'+Q.getDate()+"</a>")+"</td>",Q.setDate(Q.getDate()+1),Q=this._daylightSavingAdjust(Q);F+=U+"</tr>"}d++,d>11&&(d=0,u++),F+="</tbody></table>"+(h?"</div>"+(o[0]>0&&Y==o[1]-1?'<div class="ui-datepicker-row-break"></div>':""):""),H+=F}R+=H}return R+=w+($.browser.msie&&parseInt($.browser.version,10)<7&&!t.inline?'<iframe src="javascript:false;" class="ui-datepicker-cover" frameborder="0"></iframe>':""),t._keyEvent=!1,R},_generateMonthYearHeader:function(t,e,i,s,n,o,r,a){var h,l,c,p,d,u,f,g,m=this._get(t,"changeMonth"),_=this._get(t,"changeYear"),v=this._get(t,"showMonthAfterYear"),b='<div class="ui-datepicker-title">',y="";if(o||!m)y+='<span class="ui-datepicker-month">'+r[e]+"</span>";else{for(h=s&&s.getFullYear()==i,l=n&&n.getFullYear()==i,y+='<select class="ui-datepicker-month" onchange="DP_jQuery_'+dpuuid+".datepicker._selectMonthYear('#"+t.id+"', this, 'M');\" onclick=\"DP_jQuery_"+dpuuid+".datepicker._clickMonthYear('#"+t.id+"');\">",c=0;c<12;c++)(!h||c>=s.getMonth())&&(!l||c<=n.getMonth())&&(y+='<option value="'+c+'"'+(c==e?' selected="selected"':"")+">"+a[c]+"</option>");y+="</select>"}if(v||(b+=y+(!o&&m&&_?"":" ")),t.yearshtml="",o||!_)b+='<span class="ui-datepicker-year">'+i+"</span>";else{for(p=this._get(t,"yearRange").split(":"),d=(new Date).getFullYear(),u=function(t){var e=t.match(/c[+-].*/)?i+parseInt(t.substring(1),10):t.match(/[+-].*/)?d+parseInt(t,10):parseInt(t,10);return isNaN(e)?d:e},f=u(p[0]),g=Math.max(f,u(p[1]||"")),f=s?Math.max(f,s.getFullYear()):f,g=n?Math.min(g,n.getFullYear()):g,t.yearshtml+='<select class="ui-datepicker-year" onchange="DP_jQuery_'+dpuuid+".datepicker._selectMonthYear('#"+t.id+"', this, 'Y');\" onclick=\"DP_jQuery_"+dpuuid+".datepicker._clickMonthYear('#"+t.id+"');\">";f<=g;f++)t.yearshtml+='<option value="'+f+'"'+(f==i?' selected="selected"':"")+">"+f+"</option>";t.yearshtml+="</select>",$.browser.mozilla?b+='<select class="ui-datepicker-year"><option value="'+i+'" selected="selected">'+i+"</option></select>":(b+=t.yearshtml,t.yearshtml=null)}return b+=this._get(t,"yearSuffix"),v&&(b+=(!o&&m&&_?"":" ")+y),b+="</div>"},_adjustInstDate:function(t,e,i){ |
|||
var s=t.drawYear+("Y"==i?e:0),n=t.drawMonth+("M"==i?e:0),o=Math.min(t.selectedDay,this._getDaysInMonth(s,n))+("D"==i?e:0),r=this._restrictMinMax(t,this._daylightSavingAdjust(new Date(s,n,o)));t.selectedDay=r.getDate(),t.drawMonth=t.selectedMonth=r.getMonth(),t.drawYear=t.selectedYear=r.getFullYear(),"M"!=i&&"Y"!=i||this._notifyChange(t)},_restrictMinMax:function(t,e){var i=this._getMinMaxDate(t,"min"),s=this._getMinMaxDate(t,"max"),n=i&&e<i?i:e;return n=s&&n>s?s:n},_notifyChange:function(t){var e=this._get(t,"onChangeMonthYear");e&&e.apply(t.input?t.input[0]:null,[t.selectedYear,t.selectedMonth+1,t])},_getNumberOfMonths:function(t){var e=this._get(t,"numberOfMonths");return null==e?[1,1]:"number"==typeof e?[1,e]:e},_getMinMaxDate:function(t,e){return this._determineDate(t,this._get(t,e+"Date"),null)},_getDaysInMonth:function(t,e){return 32-this._daylightSavingAdjust(new Date(t,e,32)).getDate()},_getFirstDayOfMonth:function(t,e){return new Date(t,e,1).getDay()},_canAdjustMonth:function(t,e,i,s){var n=this._getNumberOfMonths(t),o=this._daylightSavingAdjust(new Date(i,s+(e<0?e:n[0]*n[1]),1));return e<0&&o.setDate(this._getDaysInMonth(o.getFullYear(),o.getMonth())),this._isInRange(t,o)},_isInRange:function(t,e){var i=this._getMinMaxDate(t,"min"),s=this._getMinMaxDate(t,"max");return(!i||e.getTime()>=i.getTime())&&(!s||e.getTime()<=s.getTime())},_getFormatConfig:function(t){var e=this._get(t,"shortYearCutoff");return e="string"!=typeof e?e:(new Date).getFullYear()%100+parseInt(e,10),{shortYearCutoff:e,dayNamesShort:this._get(t,"dayNamesShort"),dayNames:this._get(t,"dayNames"),monthNamesShort:this._get(t,"monthNamesShort"),monthNames:this._get(t,"monthNames")}},_formatDate:function(t,e,i,s){e||(t.currentDay=t.selectedDay,t.currentMonth=t.selectedMonth,t.currentYear=t.selectedYear);var n=e?"object"==typeof e?e:this._daylightSavingAdjust(new Date(s,i,e)):this._daylightSavingAdjust(new Date(t.currentYear,t.currentMonth,t.currentDay));return this.formatDate(this._get(t,"dateFormat"),n,this._getFormatConfig(t))}}),$.fn.datepicker=function(t){if(!this.length)return this;$.datepicker.initialized||($(document).mousedown($.datepicker._checkExternalClick).find("body").append($.datepicker.dpDiv),$.datepicker.initialized=!0);var e=Array.prototype.slice.call(arguments,1);return"string"!=typeof t||"isDisabled"!=t&&"getDate"!=t&&"widget"!=t?"option"==t&&2==arguments.length&&"string"==typeof arguments[1]?$.datepicker["_"+t+"Datepicker"].apply($.datepicker,[this[0]].concat(e)):this.each(function(){"string"==typeof t?$.datepicker["_"+t+"Datepicker"].apply($.datepicker,[this].concat(e)):$.datepicker._attachDatepicker(this,t)}):$.datepicker["_"+t+"Datepicker"].apply($.datepicker,[this[0]].concat(e))},$.datepicker=new Datepicker,$.datepicker.initialized=!1,$.datepicker.uuid=(new Date).getTime(),$.datepicker.version="@VERSION",window["DP_jQuery_"+dpuuid]=$}(jQuery)},995:function(t,e){!function(t,e){t.widget("ui.draggable",t.ui.mouse,{widgetEventPrefix:"drag",options:{addClasses:!0,appendTo:"parent",axis:!1,connectToSortable:!1,containment:!1, |
|||
cursor:"auto",cursorAt:!1,grid:!1,handle:!1,helper:"original",iframeFix:!1,opacity:!1,refreshPositions:!1,revert:!1,revertDuration:500,scope:"default",scroll:!0,scrollSensitivity:20,scrollSpeed:20,snap:!1,snapMode:"both",snapTolerance:20,stack:!1,zIndex:!1},_create:function(){"original"!=this.options.helper||/^(?:r|a|f)/.test(this.element.css("position"))||(this.element[0].style.position="relative"),this.options.addClasses&&this.element.addClass("ui-draggable"),this.options.disabled&&this.element.addClass("ui-draggable-disabled"),this._mouseInit()},destroy:function(){if(this.element.data("draggable"))return this.element.removeData("draggable").unbind(".draggable").removeClass("ui-draggable ui-draggable-dragging ui-draggable-disabled"),this._mouseDestroy(),this},_mouseCapture:function(e){var i=this.options;return!(this.helper||i.disabled||t(e.target).is(".ui-resizable-handle"))&&(this.handle=this._getHandle(e),!!this.handle)},_mouseStart:function(e){var i=this.options;return this.helper=this._createHelper(e),this._cacheHelperProportions(),t.ui.ddmanager&&(t.ui.ddmanager.current=this),this._cacheMargins(),this.cssPosition=this.helper.css("position"),this.scrollParent=this.helper.scrollParent(),this.offset=this.positionAbs=this.element.offset(),this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-this.margins.left},t.extend(this.offset,{click:{left:e.pageX-this.offset.left,top:e.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()}),this.originalPosition=this.position=this._generatePosition(e),this.originalPageX=e.pageX,this.originalPageY=e.pageY,i.cursorAt&&this._adjustOffsetFromHelper(i.cursorAt),i.containment&&this._setContainment(),!1===this._trigger("start",e)?(this._clear(),!1):(this._cacheHelperProportions(),t.ui.ddmanager&&!i.dropBehaviour&&t.ui.ddmanager.prepareOffsets(this,e),this.helper.addClass("ui-draggable-dragging"),this._mouseDrag(e,!0),!0)},_mouseDrag:function(e,i){if(this.position=this._generatePosition(e),this.positionAbs=this._convertPositionTo("absolute"),!i){var s=this._uiHash();if(!1===this._trigger("drag",e,s))return this._mouseUp({}),!1;this.position=s.position}return this.options.axis&&"y"==this.options.axis||(this.helper[0].style.left=this.position.left+"px"),this.options.axis&&"x"==this.options.axis||(this.helper[0].style.top=this.position.top+"px"),t.ui.ddmanager&&t.ui.ddmanager.drag(this,e),!1},_mouseStop:function(e){var i,s=!1;return t.ui.ddmanager&&!this.options.dropBehaviour&&(s=t.ui.ddmanager.drop(this,e)),this.dropped&&(s=this.dropped,this.dropped=!1),!!(this.element[0]&&this.element[0].parentNode||"original"!=this.options.helper)&&("invalid"==this.options.revert&&!s||"valid"==this.options.revert&&s||!0===this.options.revert||t.isFunction(this.options.revert)&&this.options.revert.call(this.element,s)?(i=this,t(this.helper).animate(this.originalPosition,parseInt(this.options.revertDuration,10),function(){!1!==i._trigger("stop",e)&&i._clear()})):!1!==this._trigger("stop",e)&&this._clear(),!1)},cancel:function(){ |
|||
return this.helper.is(".ui-draggable-dragging")?this._mouseUp({}):this._clear(),this},_getHandle:function(e){var i=!this.options.handle||!t(this.options.handle,this.element).length;return t(this.options.handle,this.element).find("*").andSelf().each(function(){this==e.target&&(i=!0)}),i},_createHelper:function(e){var i=this.options,s=t.isFunction(i.helper)?t(i.helper.apply(this.element[0],[e])):"clone"==i.helper?this.element.clone():this.element;return s.parents("body").length||s.appendTo("parent"==i.appendTo?this.element[0].parentNode:i.appendTo),s[0]==this.element[0]||/(fixed|absolute)/.test(s.css("position"))||s.css("position","absolute"),s},_adjustOffsetFromHelper:function(e){"string"==typeof e&&(e=e.split(" ")),t.isArray(e)&&(e={left:+e[0],top:+e[1]||0}),"left"in e&&(this.offset.click.left=e.left+this.margins.left),"right"in e&&(this.offset.click.left=this.helperProportions.width-e.right+this.margins.left),"top"in e&&(this.offset.click.top=e.top+this.margins.top),"bottom"in e&&(this.offset.click.top=this.helperProportions.height-e.bottom+this.margins.top)},_getParentOffset:function(){this.offsetParent=this.helper.offsetParent();var e=this.offsetParent.offset();return"absolute"==this.cssPosition&&this.scrollParent[0]!=document&&t.ui.contains(this.scrollParent[0],this.offsetParent[0])&&(e.left+=this.scrollParent.scrollLeft(),e.top+=this.scrollParent.scrollTop()),(this.offsetParent[0]==document.body||this.offsetParent[0].tagName&&"html"==this.offsetParent[0].tagName.toLowerCase()&&t.browser.msie)&&(e={top:0,left:0}),{top:e.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:e.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if("relative"==this.cssPosition){var t=this.element.position();return{top:t.top-(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:t.left-(parseInt(this.helper.css("left"),10)||0)+this.scrollParent.scrollLeft()}}return{top:0,left:0}},_cacheMargins:function(){this.margins={left:parseInt(this.element.css("marginLeft"),10)||0,top:parseInt(this.element.css("marginTop"),10)||0,right:parseInt(this.element.css("marginRight"),10)||0,bottom:parseInt(this.element.css("marginBottom"),10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var e,i,s,n=this.options;if("parent"==n.containment&&(n.containment=this.helper[0].parentNode), |
|||
"document"!=n.containment&&"window"!=n.containment||(this.containment=[("document"==n.containment?0:t(window).scrollLeft())-this.offset.relative.left-this.offset.parent.left,("document"==n.containment?0:t(window).scrollTop())-this.offset.relative.top-this.offset.parent.top,("document"==n.containment?0:t(window).scrollLeft())+t("document"==n.containment?document:window).width()-this.helperProportions.width-this.margins.left,("document"==n.containment?0:t(window).scrollTop())+(t("document"==n.containment?document:window).height()||document.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]),/^(document|window|parent)$/.test(n.containment)||n.containment.constructor==Array)n.containment.constructor==Array&&(this.containment=n.containment);else{if(!(e=t(n.containment)[0]))return;i=t(n.containment).offset(),s="hidden"!=t(e).css("overflow"),this.containment=[i.left+(parseInt(t(e).css("borderLeftWidth"),10)||0)+(parseInt(t(e).css("paddingLeft"),10)||0),i.top+(parseInt(t(e).css("borderTopWidth"),10)||0)+(parseInt(t(e).css("paddingTop"),10)||0),i.left+(s?Math.max(e.scrollWidth,e.offsetWidth):e.offsetWidth)-(parseInt(t(e).css("borderLeftWidth"),10)||0)-(parseInt(t(e).css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left-this.margins.right,i.top+(s?Math.max(e.scrollHeight,e.offsetHeight):e.offsetHeight)-(parseInt(t(e).css("borderTopWidth"),10)||0)-(parseInt(t(e).css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top-this.margins.bottom]}},_convertPositionTo:function(e,i){var s,n,o;return i||(i=this.position),s="absolute"==e?1:-1,this.options,n="absolute"!=this.cssPosition||this.scrollParent[0]!=document&&t.ui.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent,o=/(html|body)/i.test(n[0].tagName),{top:i.top+this.offset.relative.top*s+this.offset.parent.top*s-(t.browser.safari&&t.browser.version<526&&"fixed"==this.cssPosition?0:("fixed"==this.cssPosition?-this.scrollParent.scrollTop():o?0:n.scrollTop())*s),left:i.left+this.offset.relative.left*s+this.offset.parent.left*s-(t.browser.safari&&t.browser.version<526&&"fixed"==this.cssPosition?0:("fixed"==this.cssPosition?-this.scrollParent.scrollLeft():o?0:n.scrollLeft())*s)}},_generatePosition:function(e){var i,s,n=this.options,o="absolute"!=this.cssPosition||this.scrollParent[0]!=document&&t.ui.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent,r=/(html|body)/i.test(o[0].tagName),a=e.pageX,h=e.pageY;return this.originalPosition&&(this.containment&&(e.pageX-this.offset.click.left<this.containment[0]&&(a=this.containment[0]+this.offset.click.left),e.pageY-this.offset.click.top<this.containment[1]&&(h=this.containment[1]+this.offset.click.top),e.pageX-this.offset.click.left>this.containment[2]&&(a=this.containment[2]+this.offset.click.left),e.pageY-this.offset.click.top>this.containment[3]&&(h=this.containment[3]+this.offset.click.top)),n.grid&&(i=this.originalPageY+Math.round((h-this.originalPageY)/n.grid[1])*n.grid[1], |
|||
h=this.containment&&(i-this.offset.click.top<this.containment[1]||i-this.offset.click.top>this.containment[3])?i-this.offset.click.top<this.containment[1]?i+n.grid[1]:i-n.grid[1]:i,s=this.originalPageX+Math.round((a-this.originalPageX)/n.grid[0])*n.grid[0],a=this.containment&&(s-this.offset.click.left<this.containment[0]||s-this.offset.click.left>this.containment[2])?s-this.offset.click.left<this.containment[0]?s+n.grid[0]:s-n.grid[0]:s)),{top:h-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+(t.browser.safari&&t.browser.version<526&&"fixed"==this.cssPosition?0:"fixed"==this.cssPosition?-this.scrollParent.scrollTop():r?0:o.scrollTop()),left:a-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+(t.browser.safari&&t.browser.version<526&&"fixed"==this.cssPosition?0:"fixed"==this.cssPosition?-this.scrollParent.scrollLeft():r?0:o.scrollLeft())}},_clear:function(){this.helper.removeClass("ui-draggable-dragging"),this.helper[0]==this.element[0]||this.cancelHelperRemoval||this.helper.remove(),this.helper=null,this.cancelHelperRemoval=!1},_trigger:function(e,i,s){return s=s||this._uiHash(),t.ui.plugin.call(this,e,[i,s]),"drag"==e&&(this.positionAbs=this._convertPositionTo("absolute")),t.Widget.prototype._trigger.call(this,e,i,s)},plugins:{},_uiHash:function(t){return{helper:this.helper,position:this.position,originalPosition:this.originalPosition,offset:this.positionAbs}}}),t.extend(t.ui.draggable,{version:"@VERSION"}),t.ui.plugin.add("draggable","connectToSortable",{start:function(e,i){var s=t(this).data("draggable"),n=s.options,o=t.extend({},i,{item:s.element});s.sortables=[],t(n.connectToSortable).each(function(){var i=t.data(this,"sortable");i&&!i.options.disabled&&(s.sortables.push({instance:i,shouldRevert:i.options.revert}),i.refreshPositions(),i._trigger("activate",e,o))})},stop:function(e,i){var s=t(this).data("draggable"),n=t.extend({},i,{item:s.element});t.each(s.sortables,function(){this.instance.isOver?(this.instance.isOver=0,s.cancelHelperRemoval=!0,this.instance.cancelHelperRemoval=!1,this.shouldRevert&&(this.instance.options.revert=!0),this.instance._mouseStop(e),this.instance.options.helper=this.instance.options._helper,"original"==s.options.helper&&this.instance.currentItem.css({top:"auto",left:"auto"})):(this.instance.cancelHelperRemoval=!1,this.instance._trigger("deactivate",e,n))})},drag:function(e,i){var s=t(this).data("draggable"),n=this;t.each(s.sortables,function(o){this.instance.positionAbs=s.positionAbs,this.instance.helperProportions=s.helperProportions,this.instance.offset.click=s.offset.click,this.instance._intersectsWith(this.instance.containerCache)?(this.instance.isOver||(this.instance.isOver=1,this.instance.currentItem=t(n).clone().appendTo(this.instance.element).data("sortable-item",!0),this.instance.options._helper=this.instance.options.helper,this.instance.options.helper=function(){return i.helper[0]},e.target=this.instance.currentItem[0],this.instance._mouseCapture(e,!0),this.instance._mouseStart(e,!0,!0), |
|||
this.instance.offset.click.top=s.offset.click.top,this.instance.offset.click.left=s.offset.click.left,this.instance.offset.parent.left-=s.offset.parent.left-this.instance.offset.parent.left,this.instance.offset.parent.top-=s.offset.parent.top-this.instance.offset.parent.top,s._trigger("toSortable",e),s.dropped=this.instance.element,s.currentItem=s.element,this.instance.fromOutside=s),this.instance.currentItem&&this.instance._mouseDrag(e)):this.instance.isOver&&(this.instance.isOver=0,this.instance.cancelHelperRemoval=!0,this.instance.options.revert=!1,this.instance._trigger("out",e,this.instance._uiHash(this.instance)),this.instance._mouseStop(e,!0),this.instance.options.helper=this.instance.options._helper,this.instance.currentItem.remove(),this.instance.placeholder&&this.instance.placeholder.remove(),s._trigger("fromSortable",e),s.dropped=!1)})}}),t.ui.plugin.add("draggable","cursor",{start:function(e,i){var s=t("body"),n=t(this).data("draggable").options;s.css("cursor")&&(n._cursor=s.css("cursor")),s.css("cursor",n.cursor)},stop:function(e,i){var s=t(this).data("draggable").options;s._cursor&&t("body").css("cursor",s._cursor)}}),t.ui.plugin.add("draggable","iframeFix",{start:function(e,i){var s=t(this).data("draggable").options;t(!0===s.iframeFix?"iframe":s.iframeFix).each(function(){t('<div class="ui-draggable-iframeFix" style="background: #fff;"></div>').css({width:this.offsetWidth+"px",height:this.offsetHeight+"px",position:"absolute",opacity:"0.001",zIndex:1e3}).css(t(this).offset()).appendTo("body")})},stop:function(e,i){t("div.ui-draggable-iframeFix").each(function(){this.parentNode.removeChild(this)})}}),t.ui.plugin.add("draggable","opacity",{start:function(e,i){var s=t(i.helper),n=t(this).data("draggable").options;s.css("opacity")&&(n._opacity=s.css("opacity")),s.css("opacity",n.opacity)},stop:function(e,i){var s=t(this).data("draggable").options;s._opacity&&t(i.helper).css("opacity",s._opacity)}}),t.ui.plugin.add("draggable","scroll",{start:function(e,i){var s=t(this).data("draggable");s.scrollParent[0]!=document&&"HTML"!=s.scrollParent[0].tagName&&(s.overflowOffset=s.scrollParent.offset())},drag:function(e,i){var s=t(this).data("draggable"),n=s.options,o=!1;s.scrollParent[0]!=document&&"HTML"!=s.scrollParent[0].tagName?(n.axis&&"x"==n.axis||(s.overflowOffset.top+s.scrollParent[0].offsetHeight-e.pageY<n.scrollSensitivity?s.scrollParent[0].scrollTop=o=s.scrollParent[0].scrollTop+n.scrollSpeed:e.pageY-s.overflowOffset.top<n.scrollSensitivity&&(s.scrollParent[0].scrollTop=o=s.scrollParent[0].scrollTop-n.scrollSpeed)), |
|||
n.axis&&"y"==n.axis||(s.overflowOffset.left+s.scrollParent[0].offsetWidth-e.pageX<n.scrollSensitivity?s.scrollParent[0].scrollLeft=o=s.scrollParent[0].scrollLeft+n.scrollSpeed:e.pageX-s.overflowOffset.left<n.scrollSensitivity&&(s.scrollParent[0].scrollLeft=o=s.scrollParent[0].scrollLeft-n.scrollSpeed))):(n.axis&&"x"==n.axis||(e.pageY-t(document).scrollTop()<n.scrollSensitivity?o=t(document).scrollTop(t(document).scrollTop()-n.scrollSpeed):t(window).height()-(e.pageY-t(document).scrollTop())<n.scrollSensitivity&&(o=t(document).scrollTop(t(document).scrollTop()+n.scrollSpeed))),n.axis&&"y"==n.axis||(e.pageX-t(document).scrollLeft()<n.scrollSensitivity?o=t(document).scrollLeft(t(document).scrollLeft()-n.scrollSpeed):t(window).width()-(e.pageX-t(document).scrollLeft())<n.scrollSensitivity&&(o=t(document).scrollLeft(t(document).scrollLeft()+n.scrollSpeed)))),!1!==o&&t.ui.ddmanager&&!n.dropBehaviour&&t.ui.ddmanager.prepareOffsets(s,e)}}),t.ui.plugin.add("draggable","snap",{start:function(e,i){var s=t(this).data("draggable"),n=s.options;s.snapElements=[],t(n.snap.constructor!=String?n.snap.items||":data(draggable)":n.snap).each(function(){var e=t(this),i=e.offset();this!=s.element[0]&&s.snapElements.push({item:this,width:e.outerWidth(),height:e.outerHeight(),top:i.top,left:i.left})})},drag:function(e,i){var s,n,o,r,a,h,l,c,p,d,u=t(this).data("draggable"),f=u.options,g=f.snapTolerance,m=i.offset.left,_=m+u.helperProportions.width,v=i.offset.top,b=v+u.helperProportions.height;for(s=u.snapElements.length-1;s>=0;s--)n=u.snapElements[s].left,o=n+u.snapElements[s].width,r=u.snapElements[s].top,a=r+u.snapElements[s].height,n-g<m&&m<o+g&&r-g<v&&v<a+g||n-g<m&&m<o+g&&r-g<b&&b<a+g||n-g<_&&_<o+g&&r-g<v&&v<a+g||n-g<_&&_<o+g&&r-g<b&&b<a+g?("inner"!=f.snapMode&&(h=Math.abs(r-b)<=g,l=Math.abs(a-v)<=g,c=Math.abs(n-_)<=g,p=Math.abs(o-m)<=g,h&&(i.position.top=u._convertPositionTo("relative",{top:r-u.helperProportions.height,left:0}).top-u.margins.top),l&&(i.position.top=u._convertPositionTo("relative",{top:a,left:0}).top-u.margins.top),c&&(i.position.left=u._convertPositionTo("relative",{top:0,left:n-u.helperProportions.width}).left-u.margins.left),p&&(i.position.left=u._convertPositionTo("relative",{top:0,left:o}).left-u.margins.left)),d=h||l||c||p,"outer"!=f.snapMode&&(h=Math.abs(r-v)<=g,l=Math.abs(a-b)<=g,c=Math.abs(n-m)<=g,p=Math.abs(o-_)<=g,h&&(i.position.top=u._convertPositionTo("relative",{top:r,left:0}).top-u.margins.top),l&&(i.position.top=u._convertPositionTo("relative",{top:a-u.helperProportions.height,left:0}).top-u.margins.top),c&&(i.position.left=u._convertPositionTo("relative",{top:0,left:n}).left-u.margins.left),p&&(i.position.left=u._convertPositionTo("relative",{top:0,left:o-u.helperProportions.width}).left-u.margins.left)),!u.snapElements[s].snapping&&(h||l||c||p||d)&&u.options.snap.snap&&u.options.snap.snap.call(u.element,e,t.extend(u._uiHash(),{snapItem:u.snapElements[s].item})), |
|||
u.snapElements[s].snapping=h||l||c||p||d):(u.snapElements[s].snapping&&u.options.snap.release&&u.options.snap.release.call(u.element,e,t.extend(u._uiHash(),{snapItem:u.snapElements[s].item})),u.snapElements[s].snapping=!1)}}),t.ui.plugin.add("draggable","stack",{start:function(e,i){var s,n=t(this).data("draggable").options,o=t.makeArray(t(n.stack)).sort(function(e,i){return(parseInt(t(e).css("zIndex"),10)||0)-(parseInt(t(i).css("zIndex"),10)||0)});o.length&&(s=parseInt(o[0].style.zIndex)||0,t(o).each(function(t){this.style.zIndex=s+t}),this[0].style.zIndex=s+o.length)}}),t.ui.plugin.add("draggable","zIndex",{start:function(e,i){var s=t(i.helper),n=t(this).data("draggable").options;s.css("zIndex")&&(n._zIndex=s.css("zIndex")),s.css("zIndex",n.zIndex)},stop:function(e,i){var s=t(this).data("draggable").options;s._zIndex&&t(i.helper).css("zIndex",s._zIndex)}})}(jQuery)},999:function(t,e){!function(t,e){var i,s;t.widget("ui.resizable",t.ui.mouse,{widgetEventPrefix:"resize",options:{alsoResize:!1,animate:!1,animateDuration:"slow",animateEasing:"swing",aspectRatio:!1,autoHide:!1,containment:!1,ghost:!1,grid:!1,handles:"e,s,se",helper:!1,maxHeight:null,maxWidth:null,minHeight:10,minWidth:10,zIndex:1e3},_create:function(){var e,i,s,n,o,r=this,a=this.options;if(this.element.addClass("ui-resizable"),t.extend(this,{_aspectRatio:!!a.aspectRatio,aspectRatio:a.aspectRatio,originalElement:this.element,_proportionallyResizeElements:[],_helper:a.helper||a.ghost||a.animate?a.helper||"ui-resizable-helper":null}),this.element[0].nodeName.match(/canvas|textarea|input|select|button|img/i)&&(/relative/.test(this.element.css("position"))&&t.browser.opera&&this.element.css({position:"relative",top:"auto",left:"auto"}),this.element.wrap(t('<div class="ui-wrapper" style="overflow: hidden;"></div>').css({position:this.element.css("position"),width:this.element.outerWidth(),height:this.element.outerHeight(),top:this.element.css("top"),left:this.element.css("left")})),this.element=this.element.parent().data("resizable",this.element.data("resizable")),this.elementIsWrapper=!0,this.element.css({marginLeft:this.originalElement.css("marginLeft"),marginTop:this.originalElement.css("marginTop"),marginRight:this.originalElement.css("marginRight"),marginBottom:this.originalElement.css("marginBottom")}),this.originalElement.css({marginLeft:0,marginTop:0,marginRight:0,marginBottom:0}),this.originalResizeStyle=this.originalElement.css("resize"),this.originalElement.css("resize","none"),this._proportionallyResizeElements.push(this.originalElement.css({position:"static",zoom:1,display:"block"})),this.originalElement.css({margin:this.originalElement.css("margin")}),this._proportionallyResize()),this.handles=a.handles||(t(".ui-resizable-handle",this.element).length?{n:".ui-resizable-n",e:".ui-resizable-e",s:".ui-resizable-s",w:".ui-resizable-w",se:".ui-resizable-se",sw:".ui-resizable-sw",ne:".ui-resizable-ne",nw:".ui-resizable-nw"}:"e,s,se"),this.handles.constructor==String)for("all"==this.handles&&(this.handles="n,e,s,w,se,sw,ne,nw"),e=this.handles.split(","), |
|||
this.handles={},i=0;i<e.length;i++)s=t.trim(e[i]),n="ui-resizable-"+s,o=t('<div class="ui-resizable-handle '+n+'"></div>'),/sw|se|ne|nw/.test(s)&&o.css({zIndex:++a.zIndex}),"se"==s&&o.addClass("ui-icon ui-icon-gripsmall-diagonal-se"),this.handles[s]=".ui-resizable-"+s,this.element.append(o);this._renderAxis=function(e){var i,s,n,o;e=e||this.element;for(i in this.handles)this.handles[i].constructor==String&&(this.handles[i]=t(this.handles[i],this.element).show()),this.elementIsWrapper&&this.originalElement[0].nodeName.match(/textarea|input|select|button/i)&&(s=t(this.handles[i],this.element),n=0,n=/sw|ne|nw|se|n|s/.test(i)?s.outerHeight():s.outerWidth(),o="padding"+(/ne|nw|n/.test(i)?"Top":/se|sw|s/.test(i)?"Bottom":/^e$/.test(i)?"Right":"Left"),e.css(o,n),this._proportionallyResize()),t(this.handles[i]).length},this._renderAxis(this.element),this._handles=t(".ui-resizable-handle",this.element).disableSelection(),this._handles.mouseover(function(){if(!r.resizing){if(this.className)var t=this.className.match(/ui-resizable-(se|sw|ne|nw|n|e|s|w)/i);r.axis=t&&t[1]?t[1]:"se"}}),a.autoHide&&(this._handles.hide(),t(this.element).addClass("ui-resizable-autohide").hover(function(){t(this).removeClass("ui-resizable-autohide"),r._handles.show()},function(){r.resizing||(t(this).addClass("ui-resizable-autohide"),r._handles.hide())})),this._mouseInit()},destroy:function(){var e,i;return this._mouseDestroy(),e=function(e){t(e).removeClass("ui-resizable ui-resizable-disabled ui-resizable-resizing").removeData("resizable").unbind(".resizable").find(".ui-resizable-handle").remove()},this.elementIsWrapper&&(e(this.element),i=this.element,i.after(this.originalElement.css({position:i.css("position"),width:i.outerWidth(),height:i.outerHeight(),top:i.css("top"),left:i.css("left")})).remove()),this.originalElement.css("resize",this.originalResizeStyle),e(this.originalElement),this},_mouseCapture:function(e){var i,s=!1;for(i in this.handles)t(this.handles[i])[0]==e.target&&(s=!0);return!this.options.disabled&&s},_mouseStart:function(e){var s,n,o,r=this.options,a=this.element.position(),h=this.element;return this.resizing=!0,this.documentScroll={top:t(document).scrollTop(),left:t(document).scrollLeft()},(h.is(".ui-draggable")||/absolute/.test(h.css("position")))&&h.css({position:"absolute",top:a.top,left:a.left}),t.browser.opera&&/relative/.test(h.css("position"))&&h.css({position:"relative",top:"auto",left:"auto"}),this._renderProxy(),s=i(this.helper.css("left")),n=i(this.helper.css("top")),r.containment&&(s+=t(r.containment).scrollLeft()||0,n+=t(r.containment).scrollTop()||0),this.offset=this.helper.offset(),this.position={left:s,top:n},this.size=this._helper?{width:h.outerWidth(),height:h.outerHeight()}:{width:h.width(),height:h.height()},this.originalSize=this._helper?{width:h.outerWidth(),height:h.outerHeight()}:{width:h.width(),height:h.height()},this.originalPosition={left:s,top:n},this.sizeDiff={width:h.outerWidth()-h.width(),height:h.outerHeight()-h.height()},this.originalMousePosition={left:e.pageX,top:e.pageY}, |
|||
this.aspectRatio="number"==typeof r.aspectRatio?r.aspectRatio:this.originalSize.width/this.originalSize.height||1,o=t(".ui-resizable-"+this.axis).css("cursor"),t("body").css("cursor","auto"==o?this.axis+"-resize":o),h.addClass("ui-resizable-resizing"),this._propagate("start",e),!0},_mouseDrag:function(e){var i,s=this.helper,n=(this.options,this.originalMousePosition),o=this.axis,r=e.pageX-n.left||0,a=e.pageY-n.top||0,h=this._change[o];return!!h&&(i=h.apply(this,[e,r,a]),t.browser.msie&&t.browser.version<7,this.sizeDiff,(this._aspectRatio||e.shiftKey)&&(i=this._updateRatio(i,e)),i=this._respectSize(i,e),this._propagate("resize",e),s.css({top:this.position.top+"px",left:this.position.left+"px",width:this.size.width+"px",height:this.size.height+"px"}),!this._helper&&this._proportionallyResizeElements.length&&this._proportionallyResize(),this._updateCache(i),this._trigger("resize",e,this.ui()),!1)},_mouseStop:function(e){var i,s,n,o,r,a,h,l,c;return this.resizing=!1,i=this.options,s=this,this._helper&&(n=this._proportionallyResizeElements,o=n.length&&/textarea/i.test(n[0].nodeName),r=o&&t.ui.hasScroll(n[0],"left")?0:s.sizeDiff.height,a=o?0:s.sizeDiff.width,h={width:s.helper.width()-a,height:s.helper.height()-r},l=parseInt(s.element.css("left"),10)+(s.position.left-s.originalPosition.left)||null,c=parseInt(s.element.css("top"),10)+(s.position.top-s.originalPosition.top)||null,i.animate||this.element.css(t.extend(h,{top:c,left:l})),s.helper.height(s.size.height),s.helper.width(s.size.width),this._helper&&!i.animate&&this._proportionallyResize()),t("body").css("cursor","auto"),this.element.removeClass("ui-resizable-resizing"),this._propagate("stop",e),this._helper&&this.helper.remove(),!1},_updateCache:function(t){this.options;this.offset=this.helper.offset(),s(t.left)&&(this.position.left=t.left),s(t.top)&&(this.position.top=t.top),s(t.height)&&(this.size.height=t.height),s(t.width)&&(this.size.width=t.width)},_updateRatio:function(t,e){var i=(this.options,this.position),s=this.size,n=this.axis;return t.height?t.width=s.height*this.aspectRatio:t.width&&(t.height=s.width/this.aspectRatio),"sw"==n&&(t.left=i.left+(s.width-t.width),t.top=null),"nw"==n&&(t.top=i.top+(s.height-t.height),t.left=i.left+(s.width-t.width)),t},_respectSize:function(t,e){var i,n,o,r,a,h=(this.helper,this.options),l=(this._aspectRatio||e.shiftKey,this.axis),c=s(t.width)&&h.maxWidth&&h.maxWidth<t.width,p=s(t.height)&&h.maxHeight&&h.maxHeight<t.height,d=s(t.width)&&h.minWidth&&h.minWidth>t.width,u=s(t.height)&&h.minHeight&&h.minHeight>t.height;return d&&(t.width=h.minWidth),u&&(t.height=h.minHeight),c&&(t.width=h.maxWidth),p&&(t.height=h.maxHeight),i=this.originalPosition.left+this.originalSize.width,n=this.position.top+this.size.height,o=/sw|nw|w/.test(l),r=/nw|ne|n/.test(l),d&&o&&(t.left=i-h.minWidth),c&&o&&(t.left=i-h.maxWidth),u&&r&&(t.top=n-h.minHeight),p&&r&&(t.top=n-h.maxHeight),a=!t.width&&!t.height,a&&!t.left&&t.top?t.top=null:a&&!t.top&&t.left&&(t.left=null),t},_proportionallyResize:function(){var e,i,s,n,o;this.options |
|||
;if(this._proportionallyResizeElements.length)for(e=this.helper||this.element,i=0;i<this._proportionallyResizeElements.length;i++)s=this._proportionallyResizeElements[i],this.borderDif||(n=[s.css("borderTopWidth"),s.css("borderRightWidth"),s.css("borderBottomWidth"),s.css("borderLeftWidth")],o=[s.css("paddingTop"),s.css("paddingRight"),s.css("paddingBottom"),s.css("paddingLeft")],this.borderDif=t.map(n,function(t,e){return(parseInt(t,10)||0)+(parseInt(o[e],10)||0)})),t.browser.msie&&(t(e).is(":hidden")||t(e).parents(":hidden").length)||s.css({height:e.height()-this.borderDif[0]-this.borderDif[2]||0,width:e.width()-this.borderDif[1]-this.borderDif[3]||0})},_renderProxy:function(){var e,i,s,n=this.element,o=this.options;this.elementOffset=n.offset(),this._helper?(this.helper=this.helper||t('<div style="overflow:hidden;"></div>'),e=t.browser.msie&&t.browser.version<7,i=e?1:0,s=e?2:-1,this.helper.addClass(this._helper).css({width:this.element.outerWidth()+s,height:this.element.outerHeight()+s,position:"absolute",left:this.elementOffset.left-i+"px",top:this.elementOffset.top-i+"px",zIndex:++o.zIndex}),this.helper.appendTo("body").disableSelection()):this.helper=this.element},_change:{e:function(t,e,i){return{width:this.originalSize.width+e}},w:function(t,e,i){var s=(this.options,this.originalSize);return{left:this.originalPosition.left+e,width:s.width-e}},n:function(t,e,i){var s=(this.options,this.originalSize);return{top:this.originalPosition.top+i,height:s.height-i}},s:function(t,e,i){return{height:this.originalSize.height+i}},se:function(e,i,s){return t.extend(this._change.s.apply(this,arguments),this._change.e.apply(this,[e,i,s]))},sw:function(e,i,s){return t.extend(this._change.s.apply(this,arguments),this._change.w.apply(this,[e,i,s]))},ne:function(e,i,s){return t.extend(this._change.n.apply(this,arguments),this._change.e.apply(this,[e,i,s]))},nw:function(e,i,s){return t.extend(this._change.n.apply(this,arguments),this._change.w.apply(this,[e,i,s]))}},_propagate:function(e,i){t.ui.plugin.call(this,e,[i,this.ui()]),"resize"!=e&&this._trigger(e,i,this.ui())},plugins:{},ui:function(){return{originalElement:this.originalElement,element:this.element,helper:this.helper,position:this.position,size:this.size,originalSize:this.originalSize,originalPosition:this.originalPosition}}}),t.extend(t.ui.resizable,{version:"@VERSION"}),t.ui.plugin.add("resizable","alsoResize",{start:function(e,i){var s=t(this).data("resizable"),n=s.options,o=function(e){t(e).each(function(){var e=t(this);e.data("resizable-alsoresize",{width:parseInt(e.width(),10),height:parseInt(e.height(),10),left:parseInt(e.css("left"),10),top:parseInt(e.css("top"),10),position:e.css("position")})})};"object"!=typeof n.alsoResize||n.alsoResize.parentNode?o(n.alsoResize):n.alsoResize.length?(n.alsoResize=n.alsoResize[0],o(n.alsoResize)):t.each(n.alsoResize,function(t){o(t)})},resize:function(e,i){var s=t(this).data("resizable"),n=s.options,o=s.originalSize,r=s.originalPosition,a={height:s.size.height-o.height||0,width:s.size.width-o.width||0, |
|||
top:s.position.top-r.top||0,left:s.position.left-r.left||0},h=function(e,n){t(e).each(function(){var e=t(this),o=t(this).data("resizable-alsoresize"),r={},h=n&&n.length?n:e.parents(i.originalElement[0]).length?["width","height"]:["width","height","top","left"];t.each(h,function(t,e){var i=(o[e]||0)+(a[e]||0);i&&i>=0&&(r[e]=i||null)}),t.browser.opera&&/relative/.test(e.css("position"))&&(s._revertToRelativePosition=!0,e.css({position:"absolute",top:"auto",left:"auto"})),e.css(r)})};"object"!=typeof n.alsoResize||n.alsoResize.nodeType?h(n.alsoResize):t.each(n.alsoResize,function(t,e){h(t,e)})},stop:function(e,i){var s=t(this).data("resizable"),n=s.options,o=function(e){t(e).each(function(){var e=t(this);e.css({position:e.data("resizable-alsoresize").position})})};s._revertToRelativePosition&&(s._revertToRelativePosition=!1,"object"!=typeof n.alsoResize||n.alsoResize.nodeType?o(n.alsoResize):t.each(n.alsoResize,function(t){o(t)})),t(this).removeData("resizable-alsoresize")}}),t.ui.plugin.add("resizable","animate",{stop:function(e,i){var s=t(this).data("resizable"),n=s.options,o=s._proportionallyResizeElements,r=o.length&&/textarea/i.test(o[0].nodeName),a=r&&t.ui.hasScroll(o[0],"left")?0:s.sizeDiff.height,h=r?0:s.sizeDiff.width,l={width:s.size.width-h,height:s.size.height-a},c=parseInt(s.element.css("left"),10)+(s.position.left-s.originalPosition.left)||null,p=parseInt(s.element.css("top"),10)+(s.position.top-s.originalPosition.top)||null;s.element.animate(t.extend(l,p&&c?{top:p,left:c}:{}),{duration:n.animateDuration,easing:n.animateEasing,step:function(){var i={width:parseInt(s.element.css("width"),10),height:parseInt(s.element.css("height"),10),top:parseInt(s.element.css("top"),10),left:parseInt(s.element.css("left"),10)};o&&o.length&&t(o[0]).css({width:i.width,height:i.height}),s._updateCache(i),s._propagate("resize",e)}})}}),t.ui.plugin.add("resizable","containment",{start:function(e,s){var n,o,r,a,h,l,c,p=t(this).data("resizable"),d=p.options,u=p.element,f=d.containment,g=f instanceof t?f.get(0):/parent/.test(f)?u.parent().get(0):f;g&&(p.containerElement=t(g),/document/.test(f)||f==document?(p.containerOffset={left:0,top:0},p.containerPosition={left:0,top:0},p.parentData={element:t(document),left:0,top:0,width:t(document).width(),height:t(document).height()||document.body.parentNode.scrollHeight}):(n=t(g),o=[],t(["Top","Right","Left","Bottom"]).each(function(t,e){o[t]=i(n.css("padding"+e))}),p.containerOffset=n.offset(),p.containerPosition=n.position(),p.containerSize={height:n.innerHeight()-o[3],width:n.innerWidth()-o[1]},r=p.containerOffset,a=p.containerSize.height,h=p.containerSize.width,l=t.ui.hasScroll(g,"left")?g.scrollWidth:h,c=t.ui.hasScroll(g)?g.scrollHeight:a,p.parentData={element:g,left:r.left,top:r.top,width:l,height:c}))},resize:function(e,i){var s,n,o,r,a=t(this).data("resizable"),h=a.options,l=(a.containerSize,a.containerOffset),c=(a.size,a.position),p=a._aspectRatio||e.shiftKey,d={top:0,left:0},u=a.containerElement,f=/^static$/.test(u.css("position"));u[0]!=document&&f&&(d=l), |
|||
c.left<(a._helper?l.left:0)&&(a.size.width=a.size.width+(a._helper?a.position.left-l.left:a.position.left-d.left),p&&(a.size.height=a.size.width/h.aspectRatio),a.position.left=h.helper?l.left:0),c.top<(a._helper?l.top:0)&&(a.size.height=a.size.height+(a._helper?a.position.top-l.top:a.position.top),p&&(a.size.width=a.size.height*h.aspectRatio),a.position.top=a._helper?l.top:0),a.offset.left=a.parentData.left+a.position.left,a.offset.top=a.parentData.top+a.position.top,s=Math.abs((a._helper,a.offset.left-d.left+a.sizeDiff.width)),n=Math.abs((a._helper?a.offset.top-d.top:a.offset.top-l.top)+a.sizeDiff.height),o=a.containerElement.get(0)==a.element.parent().get(0),r=/relative|absolute/.test(a.containerElement.css("position")),o&&r&&(s-=a.parentData.left),s+a.size.width>=a.parentData.width&&(a.size.width=a.parentData.width-s,p&&(a.size.height=a.size.width/a.aspectRatio)),n+a.size.height>=a.parentData.height&&(a.size.height=a.parentData.height-n,p&&(a.size.width=a.size.height*a.aspectRatio))},stop:function(e,i){var s=t(this).data("resizable"),n=s.options,o=(s.position,s.containerOffset),r=s.containerPosition,a=s.containerElement,h=t(s.helper),l=h.offset(),c=h.outerWidth()-s.sizeDiff.width,p=h.outerHeight()-s.sizeDiff.height;s._helper&&!n.animate&&/relative/.test(a.css("position"))&&t(this).css({left:l.left-r.left-o.left,width:c,height:p}),s._helper&&!n.animate&&/^static$/.test(a.css("position"))&&t(this).css({left:l.left-r.left-o.left,width:c,height:p})}}),t.ui.plugin.add("resizable","ghost",{start:function(e,i){var s=t(this).data("resizable"),n=s.options,o=s.size;s.ghost=s.originalElement.clone(),s.ghost.css({opacity:.25,display:"block",position:"relative",height:o.height,width:o.width,margin:0,left:0,top:0}).addClass("ui-resizable-ghost").addClass("string"==typeof n.ghost?n.ghost:""),s.ghost.appendTo(s.helper)},resize:function(e,i){var s=t(this).data("resizable");s.options;s.ghost&&s.ghost.css({position:"relative",height:s.size.height,width:s.size.width})},stop:function(e,i){var s=t(this).data("resizable");s.options;s.ghost&&s.helper&&s.helper.get(0).removeChild(s.ghost.get(0))}}),t.ui.plugin.add("resizable","grid",{resize:function(e,i){var s,n,o=t(this).data("resizable"),r=o.options,a=o.size,h=o.originalSize,l=o.originalPosition,c=o.axis;r._aspectRatio||e.shiftKey;r.grid="number"==typeof r.grid?[r.grid,r.grid]:r.grid,s=Math.round((a.width-h.width)/(r.grid[0]||1))*(r.grid[0]||1),n=Math.round((a.height-h.height)/(r.grid[1]||1))*(r.grid[1]||1),/^(se|s|e)$/.test(c)?(o.size.width=h.width+s,o.size.height=h.height+n):/^(ne)$/.test(c)?(o.size.width=h.width+s,o.size.height=h.height+n,o.position.top=l.top-n):/^(sw)$/.test(c)?(o.size.width=h.width+s,o.size.height=h.height+n,o.position.left=l.left-s):(o.size.width=h.width+s,o.size.height=h.height+n,o.position.top=l.top-n,o.position.left=l.left-s)}}),i=function(t){return parseInt(t,10)||0},s=function(t){return!isNaN(parseInt(t,10))}}(jQuery)},1e3:function(t,e){!function(t,e){t.widget("ui.sortable",t.ui.mouse,{widgetEventPrefix:"sort",options:{appendTo:"parent",axis:!1, |
|||
connectWith:!1,containment:!1,cursor:"auto",cursorAt:!1,dropOnEmpty:!0,forcePlaceholderSize:!1,forceHelperSize:!1,grid:!1,handle:!1,helper:"original",items:"> *",opacity:!1,placeholder:!1,revert:!1,scroll:!0,scrollSensitivity:20,scrollSpeed:20,scope:"default",tolerance:"intersect",zIndex:1e3},_create:function(){this.options;this.containerCache={},this.element.addClass("ui-sortable"),this.refresh(),this.floating=!!this.items.length&&(/left|right/.test(this.items[0].item.css("float"))||/inline|table-cell/.test(this.items[0].item.css("display"))),this.offset=this.element.offset(),this._mouseInit()},destroy:function(){this.element.removeClass("ui-sortable ui-sortable-disabled").removeData("sortable").unbind(".sortable"),this._mouseDestroy();for(var t=this.items.length-1;t>=0;t--)this.items[t].item.removeData("sortable-item");return this},_setOption:function(e,i){"disabled"===e?(this.options[e]=i,this.widget()[i?"addClass":"removeClass"]("ui-sortable-disabled")):t.Widget.prototype._setOption.apply(this,arguments)},_mouseCapture:function(e,i){var s,n,o;return!this.reverting&&(!this.options.disabled&&"static"!=this.options.type&&(this._refreshItems(e),s=null,n=this,t(e.target).parents().each(function(){if(t.data(this,"sortable-item")==n)return s=t(this),!1}),t.data(e.target,"sortable-item")==n&&(s=t(e.target)),!!s&&(!(this.options.handle&&!i&&(o=!1,t(this.options.handle,s).find("*").andSelf().each(function(){this==e.target&&(o=!0)}),!o))&&(this.currentItem=s,this._removeCurrentsFromItems(),!0))))},_mouseStart:function(e,i,s){var n,o=this.options,r=this;if(this.currentContainer=this,this.refreshPositions(),this.helper=this._createHelper(e),this._cacheHelperProportions(),this._cacheMargins(),this.scrollParent=this.helper.scrollParent(),this.offset=this.currentItem.offset(),this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-this.margins.left},this.helper.css("position","absolute"),this.cssPosition=this.helper.css("position"),t.extend(this.offset,{click:{left:e.pageX-this.offset.left,top:e.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()}),this.originalPosition=this._generatePosition(e),this.originalPageX=e.pageX,this.originalPageY=e.pageY,o.cursorAt&&this._adjustOffsetFromHelper(o.cursorAt),this.domPosition={prev:this.currentItem.prev()[0],parent:this.currentItem.parent()[0]},this.helper[0]!=this.currentItem[0]&&this.currentItem.hide(),this._createPlaceholder(),o.containment&&this._setContainment(),o.cursor&&(t("body").css("cursor")&&(this._storedCursor=t("body").css("cursor")),t("body").css("cursor",o.cursor)),o.opacity&&(this.helper.css("opacity")&&(this._storedOpacity=this.helper.css("opacity")),this.helper.css("opacity",o.opacity)),o.zIndex&&(this.helper.css("zIndex")&&(this._storedZIndex=this.helper.css("zIndex")),this.helper.css("zIndex",o.zIndex)),this.scrollParent[0]!=document&&"HTML"!=this.scrollParent[0].tagName&&(this.overflowOffset=this.scrollParent.offset()),this._trigger("start",e,this._uiHash()), |
|||
this._preserveHelperProportions||this._cacheHelperProportions(),!s)for(n=this.containers.length-1;n>=0;n--)this.containers[n]._trigger("activate",e,r._uiHash(this));return t.ui.ddmanager&&(t.ui.ddmanager.current=this),t.ui.ddmanager&&!o.dropBehaviour&&t.ui.ddmanager.prepareOffsets(this,e),this.dragging=!0,this.helper.addClass("ui-sortable-helper"),this._mouseDrag(e),!0},_mouseDrag:function(e){var i,s,n,o,r,a;for(this.position=this._generatePosition(e),this.positionAbs=this._convertPositionTo("absolute"),this.lastPositionAbs||(this.lastPositionAbs=this.positionAbs),this.options.scroll&&(i=this.options,s=!1,this.scrollParent[0]!=document&&"HTML"!=this.scrollParent[0].tagName?(this.overflowOffset.top+this.scrollParent[0].offsetHeight-e.pageY<i.scrollSensitivity?this.scrollParent[0].scrollTop=s=this.scrollParent[0].scrollTop+i.scrollSpeed:e.pageY-this.overflowOffset.top<i.scrollSensitivity&&(this.scrollParent[0].scrollTop=s=this.scrollParent[0].scrollTop-i.scrollSpeed),this.overflowOffset.left+this.scrollParent[0].offsetWidth-e.pageX<i.scrollSensitivity?this.scrollParent[0].scrollLeft=s=this.scrollParent[0].scrollLeft+i.scrollSpeed:e.pageX-this.overflowOffset.left<i.scrollSensitivity&&(this.scrollParent[0].scrollLeft=s=this.scrollParent[0].scrollLeft-i.scrollSpeed)):(e.pageY-t(document).scrollTop()<i.scrollSensitivity?s=t(document).scrollTop(t(document).scrollTop()-i.scrollSpeed):t(window).height()-(e.pageY-t(document).scrollTop())<i.scrollSensitivity&&(s=t(document).scrollTop(t(document).scrollTop()+i.scrollSpeed)),e.pageX-t(document).scrollLeft()<i.scrollSensitivity?s=t(document).scrollLeft(t(document).scrollLeft()-i.scrollSpeed):t(window).width()-(e.pageX-t(document).scrollLeft())<i.scrollSensitivity&&(s=t(document).scrollLeft(t(document).scrollLeft()+i.scrollSpeed))),!1!==s&&t.ui.ddmanager&&!i.dropBehaviour&&t.ui.ddmanager.prepareOffsets(this,e)),this.positionAbs=this._convertPositionTo("absolute"),this.options.axis&&"y"==this.options.axis||(this.helper[0].style.left=this.position.left+"px"),this.options.axis&&"x"==this.options.axis||(this.helper[0].style.top=this.position.top+"px"),n=this.items.length-1;n>=0;n--)if(o=this.items[n],r=o.item[0],a=this._intersectsWithPointer(o),a&&!(r==this.currentItem[0]||this.placeholder[1==a?"next":"prev"]()[0]==r||t.ui.contains(this.placeholder[0],r)||"semi-dynamic"==this.options.type&&t.ui.contains(this.element[0],r))){if(this.direction=1==a?"down":"up","pointer"!=this.options.tolerance&&!this._intersectsWithSides(o))break;this._rearrange(e,o),this._trigger("change",e,this._uiHash());break}return this._contactContainers(e),t.ui.ddmanager&&t.ui.ddmanager.drag(this,e),this._trigger("sort",e,this._uiHash()),this.lastPositionAbs=this.positionAbs,!1},_mouseStop:function(e,i){var s,n;if(e)return t.ui.ddmanager&&!this.options.dropBehaviour&&t.ui.ddmanager.drop(this,e),this.options.revert?(s=this,n=s.placeholder.offset(),s.reverting=!0,t(this.helper).animate({left:n.left-this.offset.parent.left-s.margins.left+(this.offsetParent[0]==document.body?0:this.offsetParent[0].scrollLeft), |
|||
top:n.top-this.offset.parent.top-s.margins.top+(this.offsetParent[0]==document.body?0:this.offsetParent[0].scrollTop)},parseInt(this.options.revert,10)||500,function(){s._clear(e)})):this._clear(e,i),!1},cancel:function(){var e,i=this;if(this.dragging)for(this._mouseUp({target:null}),"original"==this.options.helper?this.currentItem.css(this._storedCSS).removeClass("ui-sortable-helper"):this.currentItem.show(),e=this.containers.length-1;e>=0;e--)this.containers[e]._trigger("deactivate",null,i._uiHash(this)),this.containers[e].containerCache.over&&(this.containers[e]._trigger("out",null,i._uiHash(this)),this.containers[e].containerCache.over=0);return this.placeholder&&(this.placeholder[0].parentNode&&this.placeholder[0].parentNode.removeChild(this.placeholder[0]),"original"!=this.options.helper&&this.helper&&this.helper[0].parentNode&&this.helper.remove(),t.extend(this,{helper:null,dragging:!1,reverting:!1,_noFinalSort:null}),this.domPosition.prev?t(this.domPosition.prev).after(this.currentItem):t(this.domPosition.parent).prepend(this.currentItem)),this},serialize:function(e){var i=this._getItemsAsjQuery(e&&e.connected),s=[];return e=e||{},t(i).each(function(){var i=(t(e.item||this).attr(e.attribute||"id")||"").match(e.expression||/(.+)[-=_](.+)/);i&&s.push((e.key||i[1]+"[]")+"="+(e.key&&e.expression?i[1]:i[2]))}),!s.length&&e.key&&s.push(e.key+"="),s.join("&")},toArray:function(e){var i=this._getItemsAsjQuery(e&&e.connected),s=[];return e=e||{},i.each(function(){s.push(t(e.item||this).attr(e.attribute||"id")||"")}),s},_intersectsWith:function(t){var e=this.positionAbs.left,i=e+this.helperProportions.width,s=this.positionAbs.top,n=s+this.helperProportions.height,o=t.left,r=o+t.width,a=t.top,h=a+t.height,l=this.offset.click.top,c=this.offset.click.left,p=s+l>a&&s+l<h&&e+c>o&&e+c<r;return"pointer"==this.options.tolerance||this.options.forcePointerForContainers||"pointer"!=this.options.tolerance&&this.helperProportions[this.floating?"width":"height"]>t[this.floating?"width":"height"]?p:o<e+this.helperProportions.width/2&&i-this.helperProportions.width/2<r&&a<s+this.helperProportions.height/2&&n-this.helperProportions.height/2<h},_intersectsWithPointer:function(e){var i=t.ui.isOverAxis(this.positionAbs.top+this.offset.click.top,e.top,e.height),s=t.ui.isOverAxis(this.positionAbs.left+this.offset.click.left,e.left,e.width),n=i&&s,o=this._getDragVerticalDirection(),r=this._getDragHorizontalDirection();return!!n&&(this.floating?r&&"right"==r||"down"==o?2:1:o&&("down"==o?2:1))},_intersectsWithSides:function(e){var i=t.ui.isOverAxis(this.positionAbs.top+this.offset.click.top,e.top+e.height/2,e.height),s=t.ui.isOverAxis(this.positionAbs.left+this.offset.click.left,e.left+e.width/2,e.width),n=this._getDragVerticalDirection(),o=this._getDragHorizontalDirection();return this.floating&&o?"right"==o&&s||"left"==o&&!s:n&&("down"==n&&i||"up"==n&&!i)},_getDragVerticalDirection:function(){var t=this.positionAbs.top-this.lastPositionAbs.top;return 0!=t&&(t>0?"down":"up")},_getDragHorizontalDirection:function(){ |
|||
var t=this.positionAbs.left-this.lastPositionAbs.left;return 0!=t&&(t>0?"right":"left")},refresh:function(t){return this._refreshItems(t),this.refreshPositions(),this},_connectWith:function(){var t=this.options;return t.connectWith.constructor==String?[t.connectWith]:t.connectWith},_getItemsAsjQuery:function(e){var i,s,n,o,r=[],a=[],h=this._connectWith();if(h&&e)for(i=h.length-1;i>=0;i--)for(s=t(h[i]),n=s.length-1;n>=0;n--)(o=t.data(s[n],"sortable"))&&o!=this&&!o.options.disabled&&a.push([t.isFunction(o.options.items)?o.options.items.call(o.element):t(o.options.items,o.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),o]);for(a.push([t.isFunction(this.options.items)?this.options.items.call(this.element,null,{options:this.options,item:this.currentItem}):t(this.options.items,this.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),this]),i=a.length-1;i>=0;i--)a[i][0].each(function(){r.push(this)});return t(r)},_removeCurrentsFromItems:function(){var t,e,i=this.currentItem.find(":data(sortable-item)");for(t=0;t<this.items.length;t++)for(e=0;e<i.length;e++)i[e]==this.items[t].item[0]&&this.items.splice(t,1)},_refreshItems:function(e){var i,s,n,o,r,a,h,l,c,p,d;if(this.items=[],this.containers=[this],i=this.items,this,s=[[t.isFunction(this.options.items)?this.options.items.call(this.element[0],e,{item:this.currentItem}):t(this.options.items,this.element),this]],n=this._connectWith())for(o=n.length-1;o>=0;o--)for(r=t(n[o]),a=r.length-1;a>=0;a--)(h=t.data(r[a],"sortable"))&&h!=this&&!h.options.disabled&&(s.push([t.isFunction(h.options.items)?h.options.items.call(h.element[0],e,{item:this.currentItem}):t(h.options.items,h.element),h]),this.containers.push(h));for(o=s.length-1;o>=0;o--)for(l=s[o][1],c=s[o][0],a=0,p=c.length;a<p;a++)d=t(c[a]),d.data("sortable-item",l),i.push({item:d,instance:l,width:0,height:0,left:0,top:0})},refreshPositions:function(e){var i,s,n,o;for(this.offsetParent&&this.helper&&(this.offset.parent=this._getParentOffset()),i=this.items.length-1;i>=0;i--)s=this.items[i],n=this.options.toleranceElement?t(this.options.toleranceElement,s.item):s.item,e||(s.width=n.outerWidth(),s.height=n.outerHeight()),o=n.offset(),s.left=o.left,s.top=o.top;if(this.options.custom&&this.options.custom.refreshContainers)this.options.custom.refreshContainers.call(this);else for(i=this.containers.length-1;i>=0;i--)o=this.containers[i].element.offset(),this.containers[i].containerCache.left=o.left,this.containers[i].containerCache.top=o.top,this.containers[i].containerCache.width=this.containers[i].element.outerWidth(),this.containers[i].containerCache.height=this.containers[i].element.outerHeight();return this},_createPlaceholder:function(e){var i,s=e||this,n=s.options;n.placeholder&&n.placeholder.constructor!=String||(i=n.placeholder,n.placeholder={element:function(){var e=t(document.createElement(s.currentItem[0].nodeName)).addClass(i||s.currentItem[0].className+" ui-sortable-placeholder").removeClass("ui-sortable-helper")[0];return i||(e.style.visibility="hidden"),e},update:function(t,e){ |
|||
i&&!n.forcePlaceholderSize||(e.height()||e.height(s.currentItem.innerHeight()-parseInt(s.currentItem.css("paddingTop")||0,10)-parseInt(s.currentItem.css("paddingBottom")||0,10)),e.width()||e.width(s.currentItem.innerWidth()-parseInt(s.currentItem.css("paddingLeft")||0,10)-parseInt(s.currentItem.css("paddingRight")||0,10)))}}),s.placeholder=t(n.placeholder.element.call(s.element,s.currentItem)),s.currentItem.after(s.placeholder),n.placeholder.update(s,s.placeholder)},_contactContainers:function(e){var i,s,n,o,r,a,h=null,l=null;for(i=this.containers.length-1;i>=0;i--)if(!t.ui.contains(this.currentItem[0],this.containers[i].element[0]))if(this._intersectsWith(this.containers[i].containerCache)){if(h&&t.ui.contains(this.containers[i].element[0],h.element[0]))continue;h=this.containers[i],l=i}else this.containers[i].containerCache.over&&(this.containers[i]._trigger("out",e,this._uiHash(this)),this.containers[i].containerCache.over=0);if(h)if(1===this.containers.length)this.containers[l]._trigger("over",e,this._uiHash(this)),this.containers[l].containerCache.over=1;else if(this.currentContainer!=this.containers[l]){for(s=1e4,n=null,o=this.positionAbs[this.containers[l].floating?"left":"top"],r=this.items.length-1;r>=0;r--)t.ui.contains(this.containers[l].element[0],this.items[r].item[0])&&(a=this.items[r][this.containers[l].floating?"left":"top"],Math.abs(a-o)<s&&(s=Math.abs(a-o),n=this.items[r]));if(!n&&!this.options.dropOnEmpty)return;this.currentContainer=this.containers[l],n?this._rearrange(e,n,null,!0):this._rearrange(e,null,this.containers[l].element,!0),this._trigger("change",e,this._uiHash()),this.containers[l]._trigger("change",e,this._uiHash(this)),this.options.placeholder.update(this.currentContainer,this.placeholder),this.containers[l]._trigger("over",e,this._uiHash(this)),this.containers[l].containerCache.over=1}},_createHelper:function(e){var i=this.options,s=t.isFunction(i.helper)?t(i.helper.apply(this.element[0],[e,this.currentItem])):"clone"==i.helper?this.currentItem.clone():this.currentItem;return s.parents("body").length||t("parent"!=i.appendTo?i.appendTo:this.currentItem[0].parentNode)[0].appendChild(s[0]),s[0]==this.currentItem[0]&&(this._storedCSS={width:this.currentItem[0].style.width,height:this.currentItem[0].style.height,position:this.currentItem.css("position"),top:this.currentItem.css("top"),left:this.currentItem.css("left")}),(""==s[0].style.width||i.forceHelperSize)&&s.width(this.currentItem.width()),(""==s[0].style.height||i.forceHelperSize)&&s.height(this.currentItem.height()),s},_adjustOffsetFromHelper:function(e){"string"==typeof e&&(e=e.split(" ")),t.isArray(e)&&(e={left:+e[0],top:+e[1]||0}),"left"in e&&(this.offset.click.left=e.left+this.margins.left),"right"in e&&(this.offset.click.left=this.helperProportions.width-e.right+this.margins.left),"top"in e&&(this.offset.click.top=e.top+this.margins.top),"bottom"in e&&(this.offset.click.top=this.helperProportions.height-e.bottom+this.margins.top)},_getParentOffset:function(){this.offsetParent=this.helper.offsetParent() |
|||
;var e=this.offsetParent.offset();return"absolute"==this.cssPosition&&this.scrollParent[0]!=document&&t.ui.contains(this.scrollParent[0],this.offsetParent[0])&&(e.left+=this.scrollParent.scrollLeft(),e.top+=this.scrollParent.scrollTop()),(this.offsetParent[0]==document.body||this.offsetParent[0].tagName&&"html"==this.offsetParent[0].tagName.toLowerCase()&&t.browser.msie)&&(e={top:0,left:0}),{top:e.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:e.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if("relative"==this.cssPosition){var t=this.currentItem.position();return{top:t.top-(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:t.left-(parseInt(this.helper.css("left"),10)||0)+this.scrollParent.scrollLeft()}}return{top:0,left:0}},_cacheMargins:function(){this.margins={left:parseInt(this.currentItem.css("marginLeft"),10)||0,top:parseInt(this.currentItem.css("marginTop"),10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var e,i,s,n=this.options;"parent"==n.containment&&(n.containment=this.helper[0].parentNode),"document"!=n.containment&&"window"!=n.containment||(this.containment=[0-this.offset.relative.left-this.offset.parent.left,0-this.offset.relative.top-this.offset.parent.top,t("document"==n.containment?document:window).width()-this.helperProportions.width-this.margins.left,(t("document"==n.containment?document:window).height()||document.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]),/^(document|window|parent)$/.test(n.containment)||(e=t(n.containment)[0],i=t(n.containment).offset(),s="hidden"!=t(e).css("overflow"),this.containment=[i.left+(parseInt(t(e).css("borderLeftWidth"),10)||0)+(parseInt(t(e).css("paddingLeft"),10)||0)-this.margins.left,i.top+(parseInt(t(e).css("borderTopWidth"),10)||0)+(parseInt(t(e).css("paddingTop"),10)||0)-this.margins.top,i.left+(s?Math.max(e.scrollWidth,e.offsetWidth):e.offsetWidth)-(parseInt(t(e).css("borderLeftWidth"),10)||0)-(parseInt(t(e).css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left,i.top+(s?Math.max(e.scrollHeight,e.offsetHeight):e.offsetHeight)-(parseInt(t(e).css("borderTopWidth"),10)||0)-(parseInt(t(e).css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top])},_convertPositionTo:function(e,i){var s,n,o;return i||(i=this.position),s="absolute"==e?1:-1,this.options,n="absolute"!=this.cssPosition||this.scrollParent[0]!=document&&t.ui.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent,o=/(html|body)/i.test(n[0].tagName),{top:i.top+this.offset.relative.top*s+this.offset.parent.top*s-(t.browser.safari&&"fixed"==this.cssPosition?0:("fixed"==this.cssPosition?-this.scrollParent.scrollTop():o?0:n.scrollTop())*s), |
|||
left:i.left+this.offset.relative.left*s+this.offset.parent.left*s-(t.browser.safari&&"fixed"==this.cssPosition?0:("fixed"==this.cssPosition?-this.scrollParent.scrollLeft():o?0:n.scrollLeft())*s)}},_generatePosition:function(e){var i,s,n,o,r=this.options,a="absolute"!=this.cssPosition||this.scrollParent[0]!=document&&t.ui.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent,h=/(html|body)/i.test(a[0].tagName);return"relative"!=this.cssPosition||this.scrollParent[0]!=document&&this.scrollParent[0]!=this.offsetParent[0]||(this.offset.relative=this._getRelativeOffset()),i=e.pageX,s=e.pageY,this.originalPosition&&(this.containment&&(e.pageX-this.offset.click.left<this.containment[0]&&(i=this.containment[0]+this.offset.click.left),e.pageY-this.offset.click.top<this.containment[1]&&(s=this.containment[1]+this.offset.click.top),e.pageX-this.offset.click.left>this.containment[2]&&(i=this.containment[2]+this.offset.click.left),e.pageY-this.offset.click.top>this.containment[3]&&(s=this.containment[3]+this.offset.click.top)),r.grid&&(n=this.originalPageY+Math.round((s-this.originalPageY)/r.grid[1])*r.grid[1],s=this.containment&&(n-this.offset.click.top<this.containment[1]||n-this.offset.click.top>this.containment[3])?n-this.offset.click.top<this.containment[1]?n+r.grid[1]:n-r.grid[1]:n,o=this.originalPageX+Math.round((i-this.originalPageX)/r.grid[0])*r.grid[0],i=this.containment&&(o-this.offset.click.left<this.containment[0]||o-this.offset.click.left>this.containment[2])?o-this.offset.click.left<this.containment[0]?o+r.grid[0]:o-r.grid[0]:o)),{top:s-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+(t.browser.safari&&"fixed"==this.cssPosition?0:"fixed"==this.cssPosition?-this.scrollParent.scrollTop():h?0:a.scrollTop()),left:i-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+(t.browser.safari&&"fixed"==this.cssPosition?0:"fixed"==this.cssPosition?-this.scrollParent.scrollLeft():h?0:a.scrollLeft())}},_rearrange:function(t,e,i,s){i?i[0].appendChild(this.placeholder[0]):e.item[0].parentNode.insertBefore(this.placeholder[0],"down"==this.direction?e.item[0]:e.item[0].nextSibling),this.counter=this.counter?++this.counter:1;var n=this,o=this.counter;window.setTimeout(function(){o==n.counter&&n.refreshPositions(!s)},0)},_clear:function(e,i){var s,n;if(this.reverting=!1,s=[],this,!this._noFinalSort&&this.currentItem[0].parentNode&&this.placeholder.before(this.currentItem),this._noFinalSort=null,this.helper[0]==this.currentItem[0]){for(n in this._storedCSS)"auto"!=this._storedCSS[n]&&"static"!=this._storedCSS[n]||(this._storedCSS[n]="");this.currentItem.css(this._storedCSS).removeClass("ui-sortable-helper")}else this.currentItem.show();if(this.fromOutside&&!i&&s.push(function(t){this._trigger("receive",t,this._uiHash(this.fromOutside))}),!this.fromOutside&&this.domPosition.prev==this.currentItem.prev().not(".ui-sortable-helper")[0]&&this.domPosition.parent==this.currentItem.parent()[0]||i||s.push(function(t){this._trigger("update",t,this._uiHash())}), |
|||
!t.ui.contains(this.element[0],this.currentItem[0]))for(i||s.push(function(t){this._trigger("remove",t,this._uiHash())}),n=this.containers.length-1;n>=0;n--)t.ui.contains(this.containers[n].element[0],this.currentItem[0])&&!i&&(s.push(function(t){return function(e){t._trigger("receive",e,this._uiHash(this))}}.call(this,this.containers[n])),s.push(function(t){return function(e){t._trigger("update",e,this._uiHash(this))}}.call(this,this.containers[n])));for(n=this.containers.length-1;n>=0;n--)i||s.push(function(t){return function(e){t._trigger("deactivate",e,this._uiHash(this))}}.call(this,this.containers[n])),this.containers[n].containerCache.over&&(s.push(function(t){return function(e){t._trigger("out",e,this._uiHash(this))}}.call(this,this.containers[n])),this.containers[n].containerCache.over=0);if(this._storedCursor&&t("body").css("cursor",this._storedCursor),this._storedOpacity&&this.helper.css("opacity",this._storedOpacity),this._storedZIndex&&this.helper.css("zIndex","auto"==this._storedZIndex?"":this._storedZIndex),this.dragging=!1,this.cancelHelperRemoval){if(!i){for(this._trigger("beforeStop",e,this._uiHash()),n=0;n<s.length;n++)s[n].call(this,e);this._trigger("stop",e,this._uiHash())}return!1}if(i||this._trigger("beforeStop",e,this._uiHash()),this.placeholder[0].parentNode.removeChild(this.placeholder[0]),this.helper[0]!=this.currentItem[0]&&this.helper.remove(),this.helper=null,!i){for(n=0;n<s.length;n++)s[n].call(this,e);this._trigger("stop",e,this._uiHash())}return this.fromOutside=!1,!0},_trigger:function(){!1===t.Widget.prototype._trigger.apply(this,arguments)&&this.cancel()},_uiHash:function(e){var i=e||this;return{helper:i.helper,placeholder:i.placeholder||t([]),position:i.position,originalPosition:i.originalPosition,offset:i.positionAbs,item:i.currentItem,sender:e?e.element:null}}}),t.extend(t.ui.sortable,{version:"@VERSION"})}(jQuery)},1001:function(t,e){"use strict";!function(t){function e(t,e){if(!(t.originalEvent.touches.length>1)){t.preventDefault();var i=t.originalEvent.changedTouches[0],s=document.createEvent("MouseEvents");s.initMouseEvent(e,!0,!0,window,1,i.screenX,i.screenY,i.clientX,i.clientY,!1,!1,!1,!1,0,null),t.target.dispatchEvent(s)}}if(t.support.touch="ontouchend"in document,t.support.touch){var i,s=t.ui.mouse.prototype,n=s._mouseInit,o=s._mouseDestroy;s._touchStart=function(t){var s=this;!i&&s._mouseCapture(t.originalEvent.changedTouches[0])&&(i=!0,s._touchMoved=!1,e(t,"mouseover"),e(t,"mousemove"),e(t,"mousedown"))},s._touchMove=function(t){i&&(this._touchMoved=!0,e(t,"mousemove"))},s._touchEnd=function(t){i&&(e(t,"mouseup"),e(t,"mouseout"),this._touchMoved||e(t,"click"),i=!1)},s._mouseInit=function(){var e=this;e.element.bind({touchstart:t.proxy(e,"_touchStart"),touchmove:t.proxy(e,"_touchMove"),touchend:t.proxy(e,"_touchEnd")}),n.call(e)},s._mouseDestroy=function(){var e=this;e.element.unbind({touchstart:t.proxy(e,"_touchStart"),touchmove:t.proxy(e,"_touchMove"),touchend:t.proxy(e,"_touchEnd")}),o.call(e)}}}(jQuery)}}); |
|||
@ -0,0 +1,15 @@ |
|||
webpackJsonp([0],{514:function(e,t,r){var n,a;!function(e){"use strict";function t(e){var t=e.length,n=r.type(e);return"function"!==n&&!r.isWindow(e)&&(!(1!==e.nodeType||!t)||("array"===n||0===t||"number"==typeof t&&t>0&&t-1 in e))}var r,n,a,i,o,s,l;if(!e.jQuery){r=function(e,t){return new r.fn.init(e,t)},r.isWindow=function(e){return e&&e===e.window},r.type=function(e){return e?"object"==typeof e||"function"==typeof e?a[o.call(e)]||"object":typeof e:e+""},r.isArray=Array.isArray||function(e){return"array"===r.type(e)},r.isPlainObject=function(e){var t;if(!e||"object"!==r.type(e)||e.nodeType||r.isWindow(e))return!1;try{if(e.constructor&&!i.call(e,"constructor")&&!i.call(e.constructor.prototype,"isPrototypeOf"))return!1}catch(e){return!1}for(t in e);return void 0===t||i.call(e,t)},r.each=function(e,r,n){var a=0,i=e.length,o=t(e);if(n){if(o)for(;a<i&&!1!==r.apply(e[a],n);a++);else for(a in e)if(e.hasOwnProperty(a)&&!1===r.apply(e[a],n))break}else if(o)for(;a<i&&!1!==r.call(e[a],a,e[a]);a++);else for(a in e)if(e.hasOwnProperty(a)&&!1===r.call(e[a],a,e[a]))break;return e},r.data=function(e,t,a){var i,o,s;if(void 0===a){if(i=e[r.expando],o=i&&n[i],void 0===t)return o;if(o&&t in o)return o[t]}else if(void 0!==t)return s=e[r.expando]||(e[r.expando]=++r.uuid),n[s]=n[s]||{},n[s][t]=a,a},r.removeData=function(e,t){var a=e[r.expando],i=a&&n[a];i&&(t?r.each(t,function(e,t){delete i[t]}):delete n[a])},r.extend=function(){var e,t,n,a,i,o,s=arguments[0]||{},l=1,u=arguments.length,c=!1;for("boolean"==typeof s&&(c=s,s=arguments[l]||{},l++),"object"!=typeof s&&"function"!==r.type(s)&&(s={}),l===u&&(s=this,l--);l<u;l++)if(i=arguments[l])for(a in i)i.hasOwnProperty(a)&&(e=s[a],n=i[a],s!==n&&(c&&n&&(r.isPlainObject(n)||(t=r.isArray(n)))?(t?(t=!1,o=e&&r.isArray(e)?e:[]):o=e&&r.isPlainObject(e)?e:{},s[a]=r.extend(c,o,n)):void 0!==n&&(s[a]=n)));return s},r.queue=function(e,n,a){function i(e,r){var n=r||[];return e&&(t(Object(e))?function(e,t){for(var r=+t.length,n=0,a=e.length;n<r;)e[a++]=t[n++];if(r!==r)for(;void 0!==t[n];)e[a++]=t[n++];e.length=a}(n,"string"==typeof e?[e]:e):[].push.call(n,e)),n}if(e){n=(n||"fx")+"queue";var o=r.data(e,n);return a?(!o||r.isArray(a)?o=r.data(e,n,i(a)):o.push(a),o):o||[]}},r.dequeue=function(e,t){r.each(e.nodeType?[e]:e,function(e,n){t=t||"fx";var a=r.queue(n,t),i=a.shift();"inprogress"===i&&(i=a.shift()),i&&("fx"===t&&a.unshift("inprogress"),i.call(n,function(){r.dequeue(n,t)}))})},r.fn=r.prototype={init:function(e){if(e.nodeType)return this[0]=e,this;throw Error("Not a DOM node.")},offset:function(){var t=this[0].getBoundingClientRect?this[0].getBoundingClientRect():{top:0,left:0};return{top:t.top+(e.pageYOffset||document.scrollTop||0)-(document.clientTop||0),left:t.left+(e.pageXOffset||document.scrollLeft||0)-(document.clientLeft||0)}},position:function(){function e(e){for(var t=e.offsetParent;t&&"html"!==t.nodeName.toLowerCase()&&t.style&&"static"===t.style.position;)t=t.offsetParent;return t||document}var t=this[0],n=e(t),a=this.offset(),i=/^(?:body|html)$/i.test(n.nodeName)?{top:0,left:0 |
|||
}:r(n).offset();return a.top-=parseFloat(t.style.marginTop)||0,a.left-=parseFloat(t.style.marginLeft)||0,n.style&&(i.top+=parseFloat(n.style.borderTopWidth)||0,i.left+=parseFloat(n.style.borderLeftWidth)||0),{top:a.top-i.top,left:a.left-i.left}}},n={},r.expando="velocity"+(new Date).getTime(),r.uuid=0,a={},i=a.hasOwnProperty,o=a.toString,s="Boolean Number String Function Array Date RegExp Object Error".split(" ");for(l=0;l<s.length;l++)a["[object "+s[l]+"]"]=s[l].toLowerCase();r.fn.init.prototype=r.fn,e.Velocity={Utilities:r}}}(window),function(i){"use strict";"object"==typeof e&&"object"==typeof e.exports?e.exports=i():(n=i,void 0!==(a="function"==typeof n?n.call(t,r,t,e):n)&&(e.exports=a))}(function(){"use strict";return function(e,t,r,n){function a(e){for(var t,r=-1,n=e?e.length:0,a=[];++r<n;)(t=e[r])&&a.push(t);return a}function i(e){return A.isWrapped(e)?e=T.call(e):A.isNode(e)&&(e=[e]),e}function o(e){var t=g.data(e,"velocity");return null===t?n:t}function s(e,t){var r=o(e);r&&r.delayTimer&&!r.delayPaused&&(r.delayRemaining=r.delay-t+r.delayBegin,r.delayPaused=!0,clearTimeout(r.delayTimer.setTimeout))}function l(e,t){var r=o(e);r&&r.delayTimer&&r.delayPaused&&(r.delayPaused=!1,r.delayTimer.setTimeout=setTimeout(r.delayTimer.next,r.delayRemaining))}function u(e){return function(t){return Math.round(t*e)*(1/e)}}function c(e,r,n,a){function i(e,t){return 1-3*t+3*e}function o(e,t){return 3*t-6*e}function s(e){return 3*e}function l(e,t,r){return((i(t,r)*e+o(t,r))*e+s(t))*e}function u(e,t,r){return 3*i(t,r)*e*e+2*o(t,r)*e+s(t)}function c(t,r){var a,i,o;for(a=0;a<x;++a){if(0===(i=u(r,e,n)))return r;o=l(r,e,n)-t,r-=o/i}return r}function p(){for(var t=0;t<k;++t)h[t]=l(t*V,e,n)}function d(t,r,a){var i,o,s=0;do{o=r+(a-r)/2,i=l(o,e,n)-t,i>0?a=o:r=o}while(Math.abs(i)>S&&++s<P);return o}function f(t){for(var r,a,i,o=0,s=1,l=k-1;s!==l&&h[s]<=t;++s)o+=V;return--s,r=(t-h[s])/(h[s+1]-h[s]),a=o+r*V,i=u(a,e,n),i>=w?c(t,a):0===i?a:d(t,o,o+V)}function g(){y=!0,e===r&&n===a||p()}var m,h,y,b,v,x=4,w=.001,S=1e-7,P=10,k=11,V=1/(k-1),T="Float32Array"in t;if(4!==arguments.length)return!1;for(m=0;m<4;++m)if("number"!=typeof arguments[m]||isNaN(arguments[m])||!isFinite(arguments[m]))return!1;return e=Math.min(e,1),n=Math.min(n,1),e=Math.max(e,0),n=Math.max(n,0),h=T?new Float32Array(k):Array(k),y=!1,b=function(t){return y||g(),e===r&&n===a?t:0===t?0:1===t?1:l(f(t),r,a)},b.getControlPoints=function(){return[{x:e,y:r},{x:n,y:a}]},v="generateBezier("+[e,r,n,a]+")",b.toString=function(){return v},b}function p(e,t){var r=e;return A.isString(e)?y.Easings[e]||(r=!1):r=A.isArray(e)&&1===e.length?u.apply(null,e):A.isArray(e)&&2===e.length?b.apply(null,e.concat([t])):!(!A.isArray(e)||4!==e.length)&&c.apply(null,e),!1===r&&(r=y.Easings[y.defaults.easing]?y.defaults.easing:h),r}function d(e){var t,r,i,s,l,u,c,p,m,h,b,x,S,k,T,C,F,E,N,H,O,j,q,L,z,R,M;if(e)for(t=y.timestamp&&!0!==e?e:V.now(),r=y.State.calls.length,r>1e4&&(y.State.calls=a(y.State.calls),r=y.State.calls.length),i=0;i<r;i++)if(y.State.calls[i]){if(s=y.State.calls[i],l=s[0],u=s[2],c=s[3], |
|||
p=!!c,m=null,h=s[5],b=s[6],c||(c=y.State.calls[i][3]=t-16),h){if(!0!==h.resume)continue;c=s[3]=Math.round(t-b-16),s[5]=null}for(b=s[6]=t-c,x=Math.min(b/u.duration,1),S=0,k=l.length;S<k;S++)if(T=l[S],C=T.element,o(C)){F=!1,u.display!==n&&null!==u.display&&"none"!==u.display&&("flex"===u.display&&(E=["-webkit-box","-moz-box","-ms-flexbox","-webkit-flex"],g.each(E,function(e,t){v.setPropertyValue(C,"display",t)})),v.setPropertyValue(C,"display",u.display)),u.visibility!==n&&"hidden"!==u.visibility&&v.setPropertyValue(C,"visibility",u.visibility);for(N in T)if(T.hasOwnProperty(N)&&"element"!==N){if(H=T[N],j=A.isString(H.easing)?y.Easings[H.easing]:H.easing,A.isString(H.pattern)?(q=1===x?function(e,t,r){var n=H.endValue[t];return r?Math.round(n):n}:function(e,t,r){var n=H.startValue[t],a=H.endValue[t]-n,i=n+a*j(x,u,a);return r?Math.round(i):i},O=H.pattern.replace(/{(\d+)(!)?}/g,q)):1===x?O=H.endValue:(L=H.endValue-H.startValue,O=H.startValue+L*j(x,u,L)),!p&&O===H.currentValue)continue;H.currentValue=O,"tween"===N?m=O:(v.Hooks.registered[N]&&(z=v.Hooks.getRoot(N),(R=o(C).rootPropertyValueCache[z])&&(H.rootPropertyValue=R)),M=v.setPropertyValue(C,N,H.currentValue+(P<9&&0===parseFloat(O)?"":H.unitType),H.rootPropertyValue,H.scrollData),v.Hooks.registered[N]&&(v.Normalizations.registered[z]?o(C).rootPropertyValueCache[z]=v.Normalizations.registered[z]("extract",null,M[1]):o(C).rootPropertyValueCache[z]=M[1]),"transform"===M[0]&&(F=!0))}u.mobileHA&&o(C).transformCache.translate3d===n&&(o(C).transformCache.translate3d="(0px, 0px, 0px)",F=!0),F&&v.flushTransformCache(C)}u.display!==n&&"none"!==u.display&&(y.State.calls[i][2].display=!1),u.visibility!==n&&"hidden"!==u.visibility&&(y.State.calls[i][2].visibility=!1),u.progress&&u.progress.call(s[1],s[1],x,Math.max(0,c+u.duration-t),c,m),1===x&&f(i)}y.State.isTicking&&w(d)}function f(e,t){var r,a,i,s,l,u,c,p,d,f,m,h;if(!y.State.calls[e])return!1;for(r=y.State.calls[e][0],a=y.State.calls[e][1],i=y.State.calls[e][2],s=y.State.calls[e][4],l=!1,u=0,c=r.length;u<c;u++){if(p=r[u].element,t||i.loop||("none"===i.display&&v.setPropertyValue(p,"display",i.display),"hidden"===i.visibility&&v.setPropertyValue(p,"visibility",i.visibility)),d=o(p),!0===i.loop||g.queue(p)[1]!==n&&/\.velocityQueueEntryFlag/i.test(g.queue(p)[1])||d&&(d.isAnimating=!1,d.rootPropertyValueCache={},f=!1,g.each(v.Lists.transforms3D,function(e,t){var r=/^scale/.test(t)?1:0,a=d.transformCache[t];d.transformCache[t]!==n&&RegExp("^\\("+r+"[^.]").test(a)&&(f=!0,delete d.transformCache[t])}),i.mobileHA&&(f=!0,delete d.transformCache.translate3d),f&&v.flushTransformCache(p),v.Values.removeClass(p,"velocity-animating")),!t&&i.complete&&!i.loop&&u===c-1)try{i.complete.call(a,a)}catch(e){setTimeout(function(){throw e},1)}s&&!0!==i.loop&&s(a),d&&!0===i.loop&&!t&&(g.each(d.tweensContainer,function(e,t){if(/^rotate/.test(e)&&(parseFloat(t.startValue)-parseFloat(t.endValue))%360==0){var r=t.startValue;t.startValue=t.endValue,t.endValue=r}/^backgroundPosition/.test(e)&&100===parseFloat(t.endValue)&&"%"===t.unitType&&(t.endValue=0, |
|||
t.startValue=100)}),y(p,"reverse",{loop:!0,delay:i.delay})),!1!==i.queue&&g.dequeue(p,i.queue)}for(y.State.calls[e]=!1,m=0,h=y.State.calls.length;m<h;m++)if(!1!==y.State.calls[m]){l=!0;break}!1===l&&(y.State.isTicking=!1,delete y.State.calls,y.State.calls=[])}var g,m,h,y,b,v,x,w,S,P=function(){var e,t;if(r.documentMode)return r.documentMode;for(e=7;e>4;e--)if(t=r.createElement("div"),t.innerHTML="\x3c!--[if IE "+e+"]><span></span><![endif]--\x3e",t.getElementsByTagName("span").length)return t=null,e;return n}(),k=function(){var e=0;return t.webkitRequestAnimationFrame||t.mozRequestAnimationFrame||function(t){var r,n=(new Date).getTime();return r=Math.max(0,16-(n-e)),e=n+r,setTimeout(function(){t(n+r)},r)}}(),V=function(){var e,r=t.performance||{};return"function"!=typeof r.now&&(e=r.timing&&r.timing.navigationStart?r.timing.navigationStart:(new Date).getTime(),r.now=function(){return(new Date).getTime()-e}),r}(),T=function(){var e=Array.prototype.slice;try{return e.call(r.documentElement),e}catch(t){return function(t,r){var n,a,i,o,s,l=this.length;if("number"!=typeof t&&(t=0),"number"!=typeof r&&(r=l),this.slice)return e.call(this,t,r);if(a=[],i=t>=0?t:Math.max(0,l+t),o=r<0?l+r:Math.min(r,l),s=o-i,s>0)if(a=Array(s),this.charAt)for(n=0;n<s;n++)a[n]=this.charAt(i+n);else for(n=0;n<s;n++)a[n]=this[i+n];return a}}}(),C=function(){return Array.prototype.includes?function(e,t){return e.includes(t)}:Array.prototype.indexOf?function(e,t){return e.indexOf(t)>=0}:function(e,t){for(var r=0;r<e.length;r++)if(e[r]===t)return!0;return!1}},A={isNumber:function(e){return"number"==typeof e},isString:function(e){return"string"==typeof e},isArray:Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)},isFunction:function(e){return"[object Function]"===Object.prototype.toString.call(e)},isNode:function(e){return e&&e.nodeType},isWrapped:function(e){return e&&e!==t&&A.isNumber(e.length)&&!A.isString(e)&&!A.isFunction(e)&&!A.isNode(e)&&(0===e.length||A.isNode(e[0]))},isSVG:function(e){return t.SVGElement&&e instanceof t.SVGElement},isEmptyObject:function(e){for(var t in e)if(e.hasOwnProperty(t))return!1;return!0}},F=!1;if(e.fn&&e.fn.jquery?(g=e,F=!0):g=t.Velocity.Utilities,P<=8&&!F)throw Error("Velocity: IE8 and below require jQuery to be loaded before Velocity.");return P<=7?void(jQuery.fn.velocity=jQuery.fn.animate):(m=400,h="swing",y={State:{isMobile:/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent),isAndroid:/Android/i.test(navigator.userAgent),isGingerbread:/Android 2\.3\.[3-7]/i.test(navigator.userAgent),isChrome:t.chrome,isFirefox:/Firefox/i.test(navigator.userAgent),prefixElement:r.createElement("div"),prefixMatches:{},scrollAnchor:null,scrollPropertyLeft:null,scrollPropertyTop:null,isTicking:!1,calls:[],delayedElements:{count:0}},CSS:{},Utilities:g,Redirects:{},Easings:{},Promise:t.Promise,defaults:{queue:"",duration:m,easing:h,begin:n,complete:n,progress:n,display:n,visibility:n,loop:!1,delay:!1,mobileHA:!0,_cacheValues:!0,promiseRejectEmpty:!0}, |
|||
init:function(e){g.data(e,"velocity",{isSVG:A.isSVG(e),isAnimating:!1,computedStyle:null,tweensContainer:null,rootPropertyValueCache:{},transformCache:{}})},hook:null,mock:!1,version:{major:1,minor:5,patch:0},debug:!1,timestamp:!0,pauseAll:function(e){var t=(new Date).getTime();g.each(y.State.calls,function(t,r){if(r){if(e!==n&&(r[2].queue!==e||!1===r[2].queue))return!0;r[5]={resume:!1}}}),g.each(y.State.delayedElements,function(e,r){r&&s(r,t)})},resumeAll:function(e){var t=(new Date).getTime();g.each(y.State.calls,function(t,r){if(r){if(e!==n&&(r[2].queue!==e||!1===r[2].queue))return!0;r[5]&&(r[5].resume=!0)}}),g.each(y.State.delayedElements,function(e,r){r&&l(r,t)})}},t.pageYOffset!==n?(y.State.scrollAnchor=t,y.State.scrollPropertyLeft="pageXOffset",y.State.scrollPropertyTop="pageYOffset"):(y.State.scrollAnchor=r.documentElement||r.body.parentNode||r.body,y.State.scrollPropertyLeft="scrollLeft",y.State.scrollPropertyTop="scrollTop"),b=function(){function e(e){return-e.tension*e.x-e.friction*e.v}function t(t,r,n){var a={x:t.x+n.dx*r,v:t.v+n.dv*r,tension:t.tension,friction:t.friction};return{dx:a.v,dv:e(a)}}function r(r,n){var a={dx:r.v,dv:e(r)},i=t(r,.5*n,a),o=t(r,.5*n,i),s=t(r,n,o),l=1/6*(a.dx+2*(i.dx+o.dx)+s.dx),u=1/6*(a.dv+2*(i.dv+o.dv)+s.dv);return r.x=r.x+l*n,r.v=r.v+u*n,r}return function e(t,n,a){var i,o,s,l={x:-1,v:0,tension:null,friction:null},u=[0],c=0,p=1e-4,d=.016;for(t=parseFloat(t)||500,n=parseFloat(n)||20,a=a||null,l.tension=t,l.friction=n,i=null!==a,i?(c=e(t,n),o=c/a*d):o=d;;)if(s=r(s||l,o),u.push(1+s.x),c+=16,!(Math.abs(s.x)>p&&Math.abs(s.v)>p))break;return i?function(e){return u[e*(u.length-1)|0]}:c}}(),y.Easings={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},spring:function(e){return 1-Math.cos(4.5*e*Math.PI)*Math.exp(6*-e)}},g.each([["ease",[.25,.1,.25,1]],["ease-in",[.42,0,1,1]],["ease-out",[0,0,.58,1]],["ease-in-out",[.42,0,.58,1]],["easeInSine",[.47,0,.745,.715]],["easeOutSine",[.39,.575,.565,1]],["easeInOutSine",[.445,.05,.55,.95]],["easeInQuad",[.55,.085,.68,.53]],["easeOutQuad",[.25,.46,.45,.94]],["easeInOutQuad",[.455,.03,.515,.955]],["easeInCubic",[.55,.055,.675,.19]],["easeOutCubic",[.215,.61,.355,1]],["easeInOutCubic",[.645,.045,.355,1]],["easeInQuart",[.895,.03,.685,.22]],["easeOutQuart",[.165,.84,.44,1]],["easeInOutQuart",[.77,0,.175,1]],["easeInQuint",[.755,.05,.855,.06]],["easeOutQuint",[.23,1,.32,1]],["easeInOutQuint",[.86,0,.07,1]],["easeInExpo",[.95,.05,.795,.035]],["easeOutExpo",[.19,1,.22,1]],["easeInOutExpo",[1,0,0,1]],["easeInCirc",[.6,.04,.98,.335]],["easeOutCirc",[.075,.82,.165,1]],["easeInOutCirc",[.785,.135,.15,.86]]],function(e,t){y.Easings[t[0]]=c.apply(null,t[1])}),v=y.CSS={RegEx:{isHex:/^#([A-f\d]{3}){1,2}$/i,valueUnwrap:/^[A-z]+\((.*)\)$/i,wrappedValueAlreadyExtracted:/[0-9.]+ [0-9.]+ [0-9.]+( [0-9.]+)?/,valueSplit:/([A-z]+\(.+\))|(([A-z0-9#-.]+?)(?=\s|$))/gi},Lists:{colors:["fill","stroke","stopColor","color","backgroundColor","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor","outlineColor"], |
|||
transformsBase:["translateX","translateY","scale","scaleX","scaleY","skewX","skewY","rotateZ"],transforms3D:["transformPerspective","translateZ","scaleZ","rotateX","rotateY"],units:["%","em","ex","ch","rem","vw","vh","vmin","vmax","cm","mm","Q","in","pc","pt","px","deg","grad","rad","turn","s","ms"],colorNames:{aliceblue:"240,248,255",antiquewhite:"250,235,215",aquamarine:"127,255,212",aqua:"0,255,255",azure:"240,255,255",beige:"245,245,220",bisque:"255,228,196",black:"0,0,0",blanchedalmond:"255,235,205",blueviolet:"138,43,226",blue:"0,0,255",brown:"165,42,42",burlywood:"222,184,135",cadetblue:"95,158,160",chartreuse:"127,255,0",chocolate:"210,105,30",coral:"255,127,80",cornflowerblue:"100,149,237",cornsilk:"255,248,220",crimson:"220,20,60",cyan:"0,255,255",darkblue:"0,0,139",darkcyan:"0,139,139",darkgoldenrod:"184,134,11",darkgray:"169,169,169",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",darkseagreen:"143,188,143",darkslateblue:"72,61,139",darkslategray:"47,79,79",darkturquoise:"0,206,209",darkviolet:"148,0,211",deeppink:"255,20,147",deepskyblue:"0,191,255",dimgray:"105,105,105",dimgrey:"105,105,105",dodgerblue:"30,144,255",firebrick:"178,34,34",floralwhite:"255,250,240",forestgreen:"34,139,34",fuchsia:"255,0,255",gainsboro:"220,220,220",ghostwhite:"248,248,255",gold:"255,215,0",goldenrod:"218,165,32",gray:"128,128,128",grey:"128,128,128",greenyellow:"173,255,47",green:"0,128,0",honeydew:"240,255,240",hotpink:"255,105,180",indianred:"205,92,92",indigo:"75,0,130",ivory:"255,255,240",khaki:"240,230,140",lavenderblush:"255,240,245",lavender:"230,230,250",lawngreen:"124,252,0",lemonchiffon:"255,250,205",lightblue:"173,216,230",lightcoral:"240,128,128",lightcyan:"224,255,255",lightgoldenrodyellow:"250,250,210",lightgray:"211,211,211",lightgrey:"211,211,211",lightgreen:"144,238,144",lightpink:"255,182,193",lightsalmon:"255,160,122",lightseagreen:"32,178,170",lightskyblue:"135,206,250",lightslategray:"119,136,153",lightsteelblue:"176,196,222",lightyellow:"255,255,224",limegreen:"50,205,50",lime:"0,255,0",linen:"250,240,230",magenta:"255,0,255",maroon:"128,0,0",mediumaquamarine:"102,205,170",mediumblue:"0,0,205",mediumorchid:"186,85,211",mediumpurple:"147,112,219",mediumseagreen:"60,179,113",mediumslateblue:"123,104,238",mediumspringgreen:"0,250,154",mediumturquoise:"72,209,204",mediumvioletred:"199,21,133",midnightblue:"25,25,112",mintcream:"245,255,250",mistyrose:"255,228,225",moccasin:"255,228,181",navajowhite:"255,222,173",navy:"0,0,128",oldlace:"253,245,230",olivedrab:"107,142,35",olive:"128,128,0",orangered:"255,69,0",orange:"255,165,0",orchid:"218,112,214",palegoldenrod:"238,232,170",palegreen:"152,251,152",paleturquoise:"175,238,238",palevioletred:"219,112,147",papayawhip:"255,239,213",peachpuff:"255,218,185",peru:"205,133,63",pink:"255,192,203",plum:"221,160,221",powderblue:"176,224,230",purple:"128,0,128",red:"255,0,0",rosybrown:"188,143,143", |
|||
royalblue:"65,105,225",saddlebrown:"139,69,19",salmon:"250,128,114",sandybrown:"244,164,96",seagreen:"46,139,87",seashell:"255,245,238",sienna:"160,82,45",silver:"192,192,192",skyblue:"135,206,235",slateblue:"106,90,205",slategray:"112,128,144",snow:"255,250,250",springgreen:"0,255,127",steelblue:"70,130,180",tan:"210,180,140",teal:"0,128,128",thistle:"216,191,216",tomato:"255,99,71",turquoise:"64,224,208",violet:"238,130,238",wheat:"245,222,179",whitesmoke:"245,245,245",white:"255,255,255",yellowgreen:"154,205,50",yellow:"255,255,0"}},Hooks:{templates:{textShadow:["Color X Y Blur","black 0px 0px 0px"],boxShadow:["Color X Y Blur Spread","black 0px 0px 0px 0px"],clip:["Top Right Bottom Left","0px 0px 0px 0px"],backgroundPosition:["X Y","0% 0%"],transformOrigin:["X Y Z","50% 50% 0px"],perspectiveOrigin:["X Y","50% 50%"]},registered:{},register:function(){var e,t,r,n,a,i,o,s,l;for(e=0;e<v.Lists.colors.length;e++)t="color"===v.Lists.colors[e]?"0 0 0 1":"255 255 255 1",v.Hooks.templates[v.Lists.colors[e]]=["Red Green Blue Alpha",t];if(P)for(r in v.Hooks.templates)v.Hooks.templates.hasOwnProperty(r)&&(n=v.Hooks.templates[r],a=n[0].split(" "),i=n[1].match(v.RegEx.valueSplit),"Color"===a[0]&&(a.push(a.shift()),i.push(i.shift()),v.Hooks.templates[r]=[a.join(" "),i.join(" ")]));for(r in v.Hooks.templates)if(v.Hooks.templates.hasOwnProperty(r)){n=v.Hooks.templates[r],a=n[0].split(" ");for(o in a)a.hasOwnProperty(o)&&(s=r+a[o],l=o,v.Hooks.registered[s]=[r,l])}},getRoot:function(e){var t=v.Hooks.registered[e];return t?t[0]:e},getUnit:function(e,t){var r=(e.substr(t||0,5).match(/^[a-z%]+/)||[])[0]||"";return r&&C(v.Lists.units,r)?r:""},fixColors:function(e){return e.replace(/(rgba?\(\s*)?(\b[a-z]+\b)/g,function(e,t,r){return v.Lists.colorNames.hasOwnProperty(r)?(t||"rgba(")+v.Lists.colorNames[r]+(t?"":",1)"):t+r})},cleanRootPropertyValue:function(e,t){return v.RegEx.valueUnwrap.test(t)&&(t=t.match(v.RegEx.valueUnwrap)[1]),v.Values.isCSSNullValue(t)&&(t=v.Hooks.templates[e][1]),t},extractValue:function(e,t){var r,n,a=v.Hooks.registered[e];return a?(r=a[0],n=a[1],t=v.Hooks.cleanRootPropertyValue(r,t),(""+t).match(v.RegEx.valueSplit)[n]):t},injectValue:function(e,t,r){var n,a,i,o=v.Hooks.registered[e];return o?(n=o[0],a=o[1],r=v.Hooks.cleanRootPropertyValue(n,r),i=(""+r).match(v.RegEx.valueSplit),i[a]=t,i.join(" ")):r}},Normalizations:{registered:{clip:function(e,t,r){switch(e){case"name":return"clip";case"extract":var n;return v.RegEx.wrappedValueAlreadyExtracted.test(r)?n=r:(n=(""+r).match(v.RegEx.valueUnwrap),n=n?n[1].replace(/,(\s+)?/g," "):r),n;case"inject":return"rect("+r+")"}},blur:function(e,t,r){var n,a;switch(e){case"name":return y.State.isFirefox?"filter":"-webkit-filter";case"extract":return n=parseFloat(r),n||0===n||(a=(""+r).match(/blur\(([0-9]+[A-z]+)\)/i),n=a?a[1]:0),n;case"inject":return parseFloat(r)?"blur("+r+")":"none"}},opacity:function(e,t,r){if(P<=8)switch(e){case"name":return"filter";case"extract":var n=(""+r).match(/alpha\(opacity=(.*)\)/i);return r=n?n[1]/100:1;case"inject":return t.style.zoom=1, |
|||
parseFloat(r)>=1?"":"alpha(opacity="+parseInt(100*parseFloat(r),10)+")"}else switch(e){case"name":return"opacity";case"extract":case"inject":return r}}},register:function(){function e(e,t,r){var n,a,i,o,s;if("border-box"===(""+v.getPropertyValue(t,"boxSizing")).toLowerCase()===(r||!1)){for(i=0,o="width"===e?["Left","Right"]:["Top","Bottom"],s=["padding"+o[0],"padding"+o[1],"border"+o[0]+"Width","border"+o[1]+"Width"],n=0;n<s.length;n++)a=parseFloat(v.getPropertyValue(t,s[n])),isNaN(a)||(i+=a);return r?-i:i}return 0}function t(t,r){return function(n,a,i){switch(n){case"name":return t;case"extract":return parseFloat(i)+e(t,a,r);case"inject":return parseFloat(i)-e(t,a,r)+"px"}}}var r,a;for(P&&!(P>9)||y.State.isGingerbread||(v.Lists.transformsBase=v.Lists.transformsBase.concat(v.Lists.transforms3D)),r=0;r<v.Lists.transformsBase.length;r++)!function(){var e=v.Lists.transformsBase[r];v.Normalizations.registered[e]=function(t,r,a){switch(t){case"name":return"transform";case"extract":return o(r)===n||o(r).transformCache[e]===n?/^scale/i.test(e)?1:0:o(r).transformCache[e].replace(/[()]/g,"");case"inject":var i=!1;switch(e.substr(0,e.length-1)){case"translate":i=!/(%|px|em|rem|vw|vh|\d)$/i.test(a);break;case"scal":case"scale":y.State.isAndroid&&o(r).transformCache[e]===n&&a<1&&(a=1),i=!/(\d)$/i.test(a);break;case"skew":case"rotate":i=!/(deg|\d)$/i.test(a)}return i||(o(r).transformCache[e]="("+a+")"),o(r).transformCache[e]}}}();for(a=0;a<v.Lists.colors.length;a++)!function(){var e=v.Lists.colors[a];v.Normalizations.registered[e]=function(t,r,a){var i,o,s;switch(t){case"name":return e;case"extract":return v.RegEx.wrappedValueAlreadyExtracted.test(a)?i=a:(s={black:"rgb(0, 0, 0)",blue:"rgb(0, 0, 255)",gray:"rgb(128, 128, 128)",green:"rgb(0, 128, 0)",red:"rgb(255, 0, 0)",white:"rgb(255, 255, 255)"},/^[A-z]+$/i.test(a)?o=s[a]!==n?s[a]:s.black:v.RegEx.isHex.test(a)?o="rgb("+v.Values.hexToRgb(a).join(" ")+")":/^rgba?\(/i.test(a)||(o=s.black),i=(""+(o||a)).match(v.RegEx.valueUnwrap)[1].replace(/,(\s+)?/g," ")),(!P||P>8)&&3===i.split(" ").length&&(i+=" 1"),i;case"inject":return/^rgb/.test(a)?a:(P<=8?4===a.split(" ").length&&(a=a.split(/\s+/).slice(0,3).join(" ")):3===a.split(" ").length&&(a+=" 1"),(P<=8?"rgb":"rgba")+"("+a.replace(/\s+/g,",").replace(/\.(\d)+(?=,)/g,"")+")")}}}();v.Normalizations.registered.innerWidth=t("width",!0),v.Normalizations.registered.innerHeight=t("height",!0),v.Normalizations.registered.outerWidth=t("width"),v.Normalizations.registered.outerHeight=t("height")}},Names:{camelCase:function(e){return e.replace(/-(\w)/g,function(e,t){return t.toUpperCase()})},SVGAttribute:function(e){var t="width|height|x|y|cx|cy|r|rx|ry|x1|x2|y1|y2";return(P||y.State.isAndroid&&!y.State.isChrome)&&(t+="|transform"),RegExp("^("+t+")$","i").test(e)},prefixCheck:function(e){var t,r,n,a;if(y.State.prefixMatches[e])return[y.State.prefixMatches[e],!0];for(t=["","Webkit","Moz","ms","O"],r=0,n=t.length;r<n;r++)if(a=0===r?e:t[r]+e.replace(/^\w/,function(e){return e.toUpperCase()}), |
|||
A.isString(y.State.prefixElement.style[a]))return y.State.prefixMatches[e]=a,[a,!0];return[e,!1]}},Values:{hexToRgb:function(e){var t,r=/^#?([a-f\d])([a-f\d])([a-f\d])$/i,n=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i;return e=e.replace(r,function(e,t,r,n){return t+t+r+r+n+n}),t=n.exec(e),t?[parseInt(t[1],16),parseInt(t[2],16),parseInt(t[3],16)]:[0,0,0]},isCSSNullValue:function(e){return!e||/^(none|auto|transparent|(rgba\(0, ?0, ?0, ?0\)))$/i.test(e)},getUnitType:function(e){return/^(rotate|skew)/i.test(e)?"deg":/(^(scale|scaleX|scaleY|scaleZ|alpha|flexGrow|flexHeight|zIndex|fontWeight)$)|((opacity|red|green|blue|alpha)$)/i.test(e)?"":"px"},getDisplayType:function(e){var t=e&&(""+e.tagName).toLowerCase();return/^(b|big|i|small|tt|abbr|acronym|cite|code|dfn|em|kbd|strong|samp|var|a|bdo|br|img|map|object|q|script|span|sub|sup|button|input|label|select|textarea)$/i.test(t)?"inline":/^(li)$/i.test(t)?"list-item":/^(tr)$/i.test(t)?"table-row":/^(table)$/i.test(t)?"table":/^(tbody)$/i.test(t)?"table-row-group":"block"},addClass:function(e,t){if(e)if(e.classList)e.classList.add(t);else if(A.isString(e.className))e.className+=(e.className.length?" ":"")+t;else{var r=e.getAttribute(P<=7?"className":"class")||"";e.setAttribute("class",r+(r?" ":"")+t)}},removeClass:function(e,t){if(e)if(e.classList)e.classList.remove(t);else if(A.isString(e.className))e.className=(""+e.className).replace(RegExp("(^|\\s)"+t.split(" ").join("|")+"(\\s|$)","gi")," ");else{var r=e.getAttribute(P<=7?"className":"class")||"";e.setAttribute("class",r.replace(RegExp("(^|s)"+t.split(" ").join("|")+"(s|$)","gi")," "))}}},getPropertyValue:function(e,r,a,i){function s(e,r){var a,l,u,c,p,d,f=0;if(P<=8)f=g.css(e,r);else{if(a=!1,/^(width|height)$/.test(r)&&0===v.getPropertyValue(e,"display")&&(a=!0,v.setPropertyValue(e,"display",v.Values.getDisplayType(e))),l=function(){a&&v.setPropertyValue(e,"display","none")},!i){if("height"===r&&"border-box"!==(""+v.getPropertyValue(e,"boxSizing")).toLowerCase())return u=e.offsetHeight-(parseFloat(v.getPropertyValue(e,"borderTopWidth"))||0)-(parseFloat(v.getPropertyValue(e,"borderBottomWidth"))||0)-(parseFloat(v.getPropertyValue(e,"paddingTop"))||0)-(parseFloat(v.getPropertyValue(e,"paddingBottom"))||0),l(),u;if("width"===r&&"border-box"!==(""+v.getPropertyValue(e,"boxSizing")).toLowerCase())return c=e.offsetWidth-(parseFloat(v.getPropertyValue(e,"borderLeftWidth"))||0)-(parseFloat(v.getPropertyValue(e,"borderRightWidth"))||0)-(parseFloat(v.getPropertyValue(e,"paddingLeft"))||0)-(parseFloat(v.getPropertyValue(e,"paddingRight"))||0),l(),c}p=o(e)===n?t.getComputedStyle(e,null):o(e).computedStyle?o(e).computedStyle:o(e).computedStyle=t.getComputedStyle(e,null),"borderColor"===r&&(r="borderTopColor"),f=9===P&&"filter"===r?p.getPropertyValue(r):p[r],""!==f&&null!==f||(f=e.style[r]),l()}return"auto"===f&&/^(top|right|bottom|left)$/i.test(r)&&("fixed"===(d=s(e,"position"))||"absolute"===d&&/top|left/i.test(r))&&(f=g(e).position()[r]+"px"),f}var l,u,c,p,d,f;if(v.Hooks.registered[r]?(u=r,c=v.Hooks.getRoot(u), |
|||
a===n&&(a=v.getPropertyValue(e,v.Names.prefixCheck(c)[0])),v.Normalizations.registered[c]&&(a=v.Normalizations.registered[c]("extract",e,a)),l=v.Hooks.extractValue(u,a)):v.Normalizations.registered[r]&&(p=v.Normalizations.registered[r]("name",e),"transform"!==p&&(d=s(e,v.Names.prefixCheck(p)[0]),v.Values.isCSSNullValue(d)&&v.Hooks.templates[r]&&(d=v.Hooks.templates[r][1])),l=v.Normalizations.registered[r]("extract",e,d)),!/^[\d-]/.test(l))if((f=o(e))&&f.isSVG&&v.Names.SVGAttribute(r))if(/^(height|width)$/i.test(r))try{l=e.getBBox()[r]}catch(e){l=0}else l=e.getAttribute(r);else l=s(e,v.Names.prefixCheck(r)[0]);return v.Values.isCSSNullValue(l)&&(l=0),y.debug>=2&&console.log("Get "+r+": "+l),l},setPropertyValue:function(e,r,n,a,i){var s,l,u,c=r;if("scroll"===r)i.container?i.container["scroll"+i.direction]=n:"Left"===i.direction?t.scrollTo(n,i.alternateValue):t.scrollTo(i.alternateValue,n);else if(v.Normalizations.registered[r]&&"transform"===v.Normalizations.registered[r]("name",e))v.Normalizations.registered[r]("inject",e,n),c="transform",n=o(e).transformCache[r];else{if(v.Hooks.registered[r]&&(s=r,l=v.Hooks.getRoot(r),a=a||v.getPropertyValue(e,l),n=v.Hooks.injectValue(s,n,a),r=l),v.Normalizations.registered[r]&&(n=v.Normalizations.registered[r]("inject",e,n),r=v.Normalizations.registered[r]("name",e)),c=v.Names.prefixCheck(r)[0],P<=8)try{e.style[c]=n}catch(e){y.debug&&console.log("Browser does not support ["+n+"] for ["+c+"]")}else u=o(e),u&&u.isSVG&&v.Names.SVGAttribute(r)?e.setAttribute(r,n):e.style[c]=n;y.debug>=2&&console.log("Set "+r+" ("+c+"): "+n)}return[c,n]},flushTransformCache:function(e){var t,r,n,a,i="",s=o(e);(P||y.State.isAndroid&&!y.State.isChrome)&&s&&s.isSVG?(t=function(t){return parseFloat(v.getPropertyValue(e,t))},r={translate:[t("translateX"),t("translateY")],skewX:[t("skewX")],skewY:[t("skewY")],scale:1!==t("scale")?[t("scale"),t("scale")]:[t("scaleX"),t("scaleY")],rotate:[t("rotateZ"),0,0]},g.each(o(e).transformCache,function(e){/^translate/i.test(e)?e="translate":/^scale/i.test(e)?e="scale":/^rotate/i.test(e)&&(e="rotate"),r[e]&&(i+=e+"("+r[e].join(" ")+") ",delete r[e])})):(g.each(o(e).transformCache,function(t){if(n=o(e).transformCache[t],"transformPerspective"===t)return a=n,!0;9===P&&"rotateZ"===t&&(t="rotate"),i+=t+n+" "}),a&&(i="perspective"+a+" "+i)),v.setPropertyValue(e,"transform",i)}},v.Hooks.register(),v.Normalizations.register(),y.hook=function(e,t,r){var a;return e=i(e),g.each(e,function(e,i){if(o(i)===n&&y.init(i),r===n)a===n&&(a=v.getPropertyValue(i,t));else{var s=v.setPropertyValue(i,t,r);"transform"===s[0]&&y.CSS.flushTransformCache(i),a=s}}),a},x=function(){function e(){return c?k.promise||null:h}function a(e,a){function i(i){var l,u,m,h,b,x,F,E,H,O,j,q,L,M,$,B,W,I,D,G,Q,X;if(c.begin&&0===T)try{c.begin.call(w,w)}catch(e){setTimeout(function(){throw e},1)}if("scroll"===N)m=/^x$/i.test(c.axis)?"Left":"Top",h=parseFloat(c.offset)||0,c.container?A.isWrapped(c.container)||A.isNode(c.container)?(c.container=c.container[0]||c.container,b=c.container["scroll"+m], |
|||
F=b+g(e).position()[m.toLowerCase()]+h):c.container=null:(b=y.State.scrollAnchor[y.State["scrollProperty"+m]],x=y.State.scrollAnchor[y.State["scrollProperty"+("Left"===m?"Top":"Left")]],F=g(e).offset()[m.toLowerCase()]+h),f={scroll:{rootPropertyValue:!1,startValue:b,currentValue:b,endValue:F,unitType:"",easing:c.easing,scrollData:{container:c.container,direction:m,alternateValue:x}},element:e},y.debug&&console.log("tweensContainer (scroll): ",f.scroll,e);else if("reverse"===N){if(!(l=o(e)))return;if(!l.tweensContainer)return void g.dequeue(e,c.queue);"none"===l.opts.display&&(l.opts.display="auto"),"hidden"===l.opts.visibility&&(l.opts.visibility="visible"),l.opts.loop=!1,l.opts.begin=null,l.opts.complete=null,P.easing||delete c.easing,P.duration||delete c.duration,c=g.extend({},l.opts,c),u=g.extend(!0,{},l?l.tweensContainer:null);for(E in u)u.hasOwnProperty(E)&&"element"!==E&&(H=u[E].startValue,u[E].startValue=u[E].currentValue=u[E].endValue,u[E].endValue=H,A.isEmptyObject(P)||(u[E].easing=c.easing),y.debug&&console.log("reverse tweensContainer ("+E+"): "+JSON.stringify(u[E]),e));f=u}else if("start"===N){l=o(e),l&&l.tweensContainer&&!0===l.isAnimating&&(u=l.tweensContainer),O=function(t,r){var n,i,o;return A.isFunction(t)&&(t=t.call(e,a,V)),A.isArray(t)?(n=t[0],!A.isArray(t[1])&&/^[\d-]/.test(t[1])||A.isFunction(t[1])||v.RegEx.isHex.test(t[1])?o=t[1]:A.isString(t[1])&&!v.RegEx.isHex.test(t[1])&&y.Easings[t[1]]||A.isArray(t[1])?(i=r?t[1]:p(t[1],c.duration),o=t[2]):o=t[1]||t[2]):n=t,r||(i=i||c.easing),A.isFunction(n)&&(n=n.call(e,a,V)),A.isFunction(o)&&(o=o.call(e,a,V)),[n||0,i,o]},j=function(a,i){var o,p,d,m,h,b,x,w,S,P,k,V,T,C,F,E,N,H,O,j,q,L,R,M,$,B=v.Hooks.getRoot(a),W=!1,I=i[0],D=i[1],G=i[2];if(!(l&&l.isSVG||"tween"===B||!1!==v.Names.prefixCheck(B)[1]||v.Normalizations.registered[B]!==n))return void(y.debug&&console.log("Skipping ["+B+"] due to a lack of browser support."));if((c.display!==n&&null!==c.display&&"none"!==c.display||c.visibility!==n&&"hidden"!==c.visibility)&&/opacity|filter/.test(a)&&!G&&0!==I&&(G=0),c._cacheValues&&u&&u[a]?(G===n&&(G=u[a].endValue+u[a].unitType),W=l.rootPropertyValueCache[B]):v.Hooks.registered[a]?G===n?(W=v.getPropertyValue(e,B),G=v.getPropertyValue(e,a,W)):W=v.Hooks.templates[B][1]:G===n&&(G=v.getPropertyValue(e,a)),h=!1,b=function(e,t){var r,n;return n=(""+(t||"0")).toLowerCase().replace(/[%A-z]+$/,function(e){return r=e,""}),r||(r=v.Values.getUnitType(e)),[n,r]},G!==I&&A.isString(G)&&A.isString(I)){for(o="",x=0,w=0,S=[],P=[],k=0,V=0,T=0,G=v.Hooks.fixColors(G),I=v.Hooks.fixColors(I);x<G.length&&w<I.length;)if(C=G[x],F=I[w],/[\d\.-]/.test(C)&&/[\d\.-]/.test(F)){for(E=C,N=F,H=".",O=".";++x<G.length;){if((C=G[x])===H)H="..";else if(!/\d/.test(C))break;E+=C}for(;++w<I.length;){if((F=I[w])===O)O="..";else if(!/\d/.test(F))break;N+=F}j=v.Hooks.getUnit(G,x),q=v.Hooks.getUnit(I,w),x+=j.length,w+=q.length,j===q?E===N?o+=E+j:(o+="{"+S.length+(V?"!":"")+"}"+j,S.push(parseFloat(E)),P.push(parseFloat(N))):(L=parseFloat(E),R=parseFloat(N), |
|||
o+=(k<5?"calc":"")+"("+(L?"{"+S.length+(V?"!":"")+"}":"0")+j+" + "+(R?"{"+(S.length+(L?1:0))+(V?"!":"")+"}":"0")+q+")",L&&(S.push(L),P.push(0)),R&&(S.push(0),P.push(R)))}else{if(C!==F){k=0;break}o+=C,x++,w++,0===k&&"c"===C||1===k&&"a"===C||2===k&&"l"===C||3===k&&"c"===C||k>=4&&"("===C?k++:(k&&k<5||k>=4&&")"===C&&--k<5)&&(k=0),0===V&&"r"===C||1===V&&"g"===C||2===V&&"b"===C||3===V&&"a"===C||V>=3&&"("===C?(3===V&&"a"===C&&(T=1),V++):T&&","===C?++T>3&&(V=T=0):(T&&V<(T?5:4)||V>=(T?4:3)&&")"===C&&--V<(T?5:4))&&(V=T=0)}x===G.length&&w===I.length||(y.debug&&console.error('Trying to pattern match mis-matched strings ["'+I+'", "'+G+'"]'),o=n),o&&(S.length?(y.debug&&console.log('Pattern found "'+o+'" -> ',S,P,"["+G+","+I+"]"),G=S,I=P,d=m=""):o=n)}if(o||(p=b(a,G),G=p[0],m=p[1],p=b(a,I),I=p[0].replace(/^([+-\/*])=/,function(e,t){return h=t,""}),d=p[1],G=parseFloat(G)||0,I=parseFloat(I)||0,"%"===d&&(/^(fontSize|lineHeight)$/.test(a)?(I/=100,d="em"):/^scale/.test(a)?(I/=100,d=""):/(Red|Green|Blue)$/i.test(a)&&(I=I/100*255,d=""))),M=function(){var n,a,i,o={myParent:e.parentNode||r.body,position:v.getPropertyValue(e,"position"),fontSize:v.getPropertyValue(e,"fontSize")},s=o.position===z.lastPosition&&o.myParent===z.lastParent,u=o.fontSize===z.lastFontSize;return z.lastParent=o.myParent,z.lastPosition=o.position,z.lastFontSize=o.fontSize,n=100,a={},u&&s?(a.emToPx=z.lastEmToPx,a.percentToPxWidth=z.lastPercentToPxWidth,a.percentToPxHeight=z.lastPercentToPxHeight):(i=l&&l.isSVG?r.createElementNS("http://www.w3.org/2000/svg","rect"):r.createElement("div"),y.init(i),o.myParent.appendChild(i),g.each(["overflow","overflowX","overflowY"],function(e,t){y.CSS.setPropertyValue(i,t,"hidden")}),y.CSS.setPropertyValue(i,"position",o.position),y.CSS.setPropertyValue(i,"fontSize",o.fontSize),y.CSS.setPropertyValue(i,"boxSizing","content-box"),g.each(["minWidth","maxWidth","width","minHeight","maxHeight","height"],function(e,t){y.CSS.setPropertyValue(i,t,n+"%")}),y.CSS.setPropertyValue(i,"paddingLeft",n+"em"),a.percentToPxWidth=z.lastPercentToPxWidth=(parseFloat(v.getPropertyValue(i,"width",null,!0))||1)/n,a.percentToPxHeight=z.lastPercentToPxHeight=(parseFloat(v.getPropertyValue(i,"height",null,!0))||1)/n,a.emToPx=z.lastEmToPx=(parseFloat(v.getPropertyValue(i,"paddingLeft"))||1)/n,o.myParent.removeChild(i)),null===z.remToPx&&(z.remToPx=parseFloat(v.getPropertyValue(r.body,"fontSize"))||16),null===z.vwToPx&&(z.vwToPx=parseFloat(t.innerWidth)/100,z.vhToPx=parseFloat(t.innerHeight)/100),a.remToPx=z.remToPx,a.vwToPx=z.vwToPx,a.vhToPx=z.vhToPx,y.debug>=1&&console.log("Unit ratios: "+JSON.stringify(a),e),a},/[\/*]/.test(h))d=m;else if(m!==d&&0!==G)if(0===I)d=m;else{switch(s=s||M(),$=/margin|padding|left|right|width|text|word|letter/i.test(a)||/X$/.test(a)||"x"===a?"x":"y",m){case"%":G*="x"===$?s.percentToPxWidth:s.percentToPxHeight;break;case"px":break;default:G*=s[m+"ToPx"]}switch(d){case"%":G*=1/("x"===$?s.percentToPxWidth:s.percentToPxHeight);break;case"px":break;default:G*=1/s[d+"ToPx"]}}switch(h){case"+":I=G+I;break;case"-":I=G-I;break;case"*":I*=G |
|||
;break;case"/":I=G/I}f[a]={rootPropertyValue:W,startValue:G,currentValue:G,endValue:I,unitType:d,easing:D},o&&(f[a].pattern=o),y.debug&&console.log("tweensContainer ("+a+"): "+JSON.stringify(f[a]),e)};for(q in S)if(S.hasOwnProperty(q))if(L=v.Names.camelCase(q),M=O(S[q]),C(v.Lists.colors,L)&&($=M[0],B=M[1],W=M[2],v.RegEx.isHex.test($)))for(I=["Red","Green","Blue"],D=v.Values.hexToRgb($),G=W?v.Values.hexToRgb(W):n,Q=0;Q<I.length;Q++)X=[D[Q]],B&&X.push(B),G!==n&&X.push(G[Q]),j(L+I[Q],X);else j(L,M);f.element=e}f.element&&(v.Values.addClass(e,"velocity-animating"),R.push(f),l=o(e),l&&(""===c.queue&&(l.tweensContainer=f,l.opts=c),l.isAnimating=!0),T===V-1?(y.State.calls.push([R,w,c,null,k.resolver,null,0]),!1===y.State.isTicking&&(y.State.isTicking=!0,d())):T++)}var s,l,u,c=g.extend({},y.defaults,P),f={};switch(o(e)===n&&y.init(e),parseFloat(c.delay)&&!1!==c.queue&&g.queue(e,c.queue,function(t){var r,n;y.velocityQueueEntryFlag=!0,r=y.State.delayedElements.count++,y.State.delayedElements[r]=e,n=function(e){return function(){y.State.delayedElements[e]=!1,t()}}(r),o(e).delayBegin=(new Date).getTime(),o(e).delay=parseFloat(c.delay),o(e).delayTimer={setTimeout:setTimeout(t,parseFloat(c.delay)),next:n}}),(""+c.duration).toLowerCase()){case"fast":c.duration=200;break;case"normal":c.duration=m;break;case"slow":c.duration=600;break;default:c.duration=parseFloat(c.duration)||1}!1!==y.mock&&(!0===y.mock?c.duration=c.delay=1:(c.duration*=parseFloat(y.mock)||1,c.delay*=parseFloat(y.mock)||1)),c.easing=p(c.easing,c.duration),c.begin&&!A.isFunction(c.begin)&&(c.begin=null),c.progress&&!A.isFunction(c.progress)&&(c.progress=null),c.complete&&!A.isFunction(c.complete)&&(c.complete=null),c.display!==n&&null!==c.display&&(c.display=(""+c.display).toLowerCase(),"auto"===c.display&&(c.display=y.CSS.Values.getDisplayType(e))),c.visibility!==n&&null!==c.visibility&&(c.visibility=(""+c.visibility).toLowerCase()),c.mobileHA=c.mobileHA&&y.State.isMobile&&!y.State.isGingerbread,!1===c.queue?c.delay?(l=y.State.delayedElements.count++,y.State.delayedElements[l]=e,u=function(e){return function(){y.State.delayedElements[e]=!1,i()}}(l),o(e).delayBegin=(new Date).getTime(),o(e).delay=parseFloat(c.delay),o(e).delayTimer={setTimeout:setTimeout(i,parseFloat(c.delay)),next:u}):i():g.queue(e,c.queue,function(e,t){if(!0===t)return k.promise&&k.resolver(w),!0;y.velocityQueueEntryFlag=!0,i(e)}),""!==c.queue&&"fx"!==c.queue||"inprogress"===g.queue(e)[0]||g.dequeue(e)}var u,c,h,b,w,S,P,k,V,T,F,E,N,H,O,j,q,L,z,R,M,$,B,W=arguments[0]&&(arguments[0].p||g.isPlainObject(arguments[0].properties)&&!arguments[0].properties.names||A.isString(arguments[0].properties));if(A.isWrapped(this)?(c=!1,b=0,w=this,h=this):(c=!0,b=1,w=W?arguments[0].elements||arguments[0].e:arguments[0]),k={promise:null,resolver:null,rejecter:null},c&&y.Promise&&(k.promise=new y.Promise(function(e,t){k.resolver=e,k.rejecter=t})),W?(S=arguments[0].properties||arguments[0].p,P=arguments[0].options||arguments[0].o):(S=arguments[b],P=arguments[b+1]), |
|||
!(w=i(w)))return void(k.promise&&(S&&P&&!1===P.promiseRejectEmpty?k.resolver():k.rejecter()));if(V=w.length,T=0,!/^(stop|finish|finishAll|pause|resume)$/i.test(S)&&!g.isPlainObject(P))for(F=b+1,P={},E=F;E<arguments.length;E++)A.isArray(arguments[E])||!/^(fast|normal|slow)$/i.test(arguments[E])&&!/^\d/.test(arguments[E])?A.isString(arguments[E])||A.isArray(arguments[E])?P.easing=arguments[E]:A.isFunction(arguments[E])&&(P.complete=arguments[E]):P.duration=arguments[E];switch(S){case"scroll":N="scroll";break;case"reverse":N="reverse";break;case"pause":return H=(new Date).getTime(),g.each(w,function(e,t){s(t,H)}),g.each(y.State.calls,function(e,t){var r=!1;t&&g.each(t[1],function(e,a){var i=P===n?"":P;return!0!==i&&t[2].queue!==i&&(P!==n||!1!==t[2].queue)||(g.each(w,function(e,n){if(n===a)return t[5]={resume:!1},r=!0,!1}),!r&&n)})}),e();case"resume":return g.each(w,function(e,t){l(t,H)}),g.each(y.State.calls,function(e,t){var r=!1;t&&g.each(t[1],function(e,a){var i=P===n?"":P;return!0!==i&&t[2].queue!==i&&(P!==n||!1!==t[2].queue)||(!t[5]||(g.each(w,function(e,n){if(n===a)return t[5].resume=!0,r=!0,!1}),!r&&n))})}),e();case"finish":case"finishAll":case"stop":return g.each(w,function(e,t){o(t)&&o(t).delayTimer&&(clearTimeout(o(t).delayTimer.setTimeout),o(t).delayTimer.next&&o(t).delayTimer.next(),delete o(t).delayTimer),"finishAll"!==S||!0!==P&&!A.isString(P)||(g.each(g.queue(t,A.isString(P)?P:""),function(e,t){A.isFunction(t)&&t()}),g.queue(t,A.isString(P)?P:"",[]))}),O=[],g.each(y.State.calls,function(e,t){t&&g.each(t[1],function(r,a){var i=P===n?"":P;if(!0!==i&&t[2].queue!==i&&(P!==n||!1!==t[2].queue))return!0;g.each(w,function(r,n){if(n===a)if((!0===P||A.isString(P))&&(g.each(g.queue(n,A.isString(P)?P:""),function(e,t){A.isFunction(t)&&t(null,!0)}),g.queue(n,A.isString(P)?P:"",[])),"stop"===S){var s=o(n);s&&s.tweensContainer&&!1!==i&&g.each(s.tweensContainer,function(e,t){t.endValue=t.currentValue}),O.push(e)}else"finish"!==S&&"finishAll"!==S||(t[2].duration=1)})})}),"stop"===S&&(g.each(O,function(e,t){f(t,!0)}),k.promise&&k.resolver(w)),e();default:if(!g.isPlainObject(S)||A.isEmptyObject(S))return A.isString(S)&&y.Redirects[S]?(u=g.extend({},P),j=u.duration,q=u.delay||0,!0===u.backwards&&(w=g.extend(!0,[],w).reverse()),g.each(w,function(e,t){parseFloat(u.stagger)?u.delay=q+parseFloat(u.stagger)*e:A.isFunction(u.stagger)&&(u.delay=q+u.stagger.call(t,e,V)),u.drag&&(u.duration=parseFloat(j)||(/^(callout|transition)/.test(S)?1e3:m),u.duration=Math.max(u.duration*(u.backwards?1-e/V:(e+1)/V),.75*u.duration,200)),y.Redirects[S].call(t,t,u||{},e,V,w,k.promise?k:n)}),e()):(L="Velocity: First argument ("+S+") was not a property map, a known action, or a registered redirect. Aborting.",k.promise?k.rejecter(Error(L)):t.console&&console.log(L),e());N="start"}if(z={lastParent:null,lastPosition:null,lastFontSize:null,lastPercentToPxWidth:null,lastPercentToPxHeight:null,lastEmToPx:null,remToPx:null,vwToPx:null,vhToPx:null},R=[],g.each(w,function(e,t){A.isNode(t)&&a(t,e)}),u=g.extend({},y.defaults,P),u.loop=parseInt(u.loop,10), |
|||
M=2*u.loop-1,u.loop)for($=0;$<M;$++)B={delay:u.delay,progress:u.progress},$===M-1&&(B.display=u.display,B.visibility=u.visibility,B.complete=u.complete),x(w,"reverse",B);return e()},y=g.extend(x,y),y.animate=x,w=t.requestAnimationFrame||k,y.State.isMobile||r.hidden===n||(S=function(){r.hidden?(w=function(e){return setTimeout(function(){e(!0)},16)},d()):w=t.requestAnimationFrame||k},S(),r.addEventListener("visibilitychange",S)),e.Velocity=y,e!==t&&(e.fn.velocity=x,e.fn.velocity.defaults=y.defaults),g.each(["Down","Up"],function(e,t){y.Redirects["slide"+t]=function(e,r,a,i,o,s){var l=g.extend({},r),u=l.begin,c=l.complete,p={},d={height:"",marginTop:"",marginBottom:"",paddingTop:"",paddingBottom:""};l.display===n&&(l.display="Down"===t?"inline"===y.CSS.Values.getDisplayType(e)?"inline-block":"block":"none"),l.begin=function(){var r,n;0===a&&u&&u.call(o,o);for(r in d)d.hasOwnProperty(r)&&(p[r]=e.style[r],n=v.getPropertyValue(e,r),d[r]="Down"===t?[n,0]:[0,n]);p.overflow=e.style.overflow,e.style.overflow="hidden"},l.complete=function(){for(var t in p)p.hasOwnProperty(t)&&(e.style[t]=p[t]);a===i-1&&(c&&c.call(o,o),s&&s.resolver(o))},y(e,d,l)}}),g.each(["In","Out"],function(e,t){y.Redirects["fade"+t]=function(e,r,a,i,o,s){var l=g.extend({},r),u=l.complete,c={opacity:"In"===t?1:0};0!==a&&(l.begin=null),l.complete=a!==i-1?null:function(){u&&u.call(o,o),s&&s.resolver(o)},l.display===n&&(l.display="In"===t?"auto":"none"),y(this,c,l)}}),y)}(window.jQuery||window.Zepto||window,window,window?window.document:void 0)})}}); |
|||
@ -0,0 +1,77 @@ |
|||
webpackJsonp([1],{105:function(e,t,i){"use strict";function n(e){var t,i,n,a,o,l,h,d,c,p;e.point2||(e.point2=e.point1),t=e.point1.x,i=e.point1.y,n=e.point2.x,a=e.point2.y,o=16,l=o-6,h=o-6,d=t<=n?t-l:t+l,c=i<=a?i+h:i-h,d-=1,c-=3,p={items:[new r(d,c)],char:[String.fromCharCode("0xF017").toUpperCase()],color:e.color,vertOffset:0,height:o,fontFamily:"FontAwesome"},s.call(this,p)}var r=i(1).Point,s=i(422).PaneRendererUnicodeChar;inherit(n,s),t.PaneRendererClockIcon=TradingView.PaneRendererClockIcon=n},117:function(e,t,i){"use strict";function n(e,t,i){this._cache=e,this._cacheRect=t,this._targetRect=i}var r=i(1).Point,s=i(49).pointInRectangle,a=i(4);n.prototype.draw=function(e){e.translate(.5,.5),e.drawImage(this._cache,this._cacheRect.left,this._cacheRect.top,this._cacheRect.width,this._cacheRect.height,this._targetRect.left,this._targetRect.top,this._targetRect.width,this._targetRect.height),e.translate(-.5,-.5)},n.prototype.hitTest=function(e){var t=new r(this._targetRect.left,this._targetRect.top),i=t.add(new r(this._targetRect.width,this._targetRect.height));return s(e,t,i)?new a(a.REGULAR):null},e.exports=n},229:function(e,t,i){"use strict";function n(e,t,i,n){var r=s.equalPoints(i,n[0])?s.equalPoints(i,n[1])?null:n[1]:n[0];return null!==e&&null!==r?l.intersectPolygonAndHalfplane(e,s.halfplaneThroughPoint(s.lineThroughPoints(t,i),r)):null}var r,s,a,o,l,h,d,c;Object.defineProperty(t,"__esModule",{value:!0}),r=i(21),s=i(1),a=i(49),o=i(33),l=i(98),h=i(4),d=i(19),c=function(){function e(){this._data=null}return e.prototype.setData=function(e){this._data=e},e.prototype.draw=function(e){var t,i;if(null!==this._data&&null!==(t=this._visiblePolygon())){for(e.beginPath(),e.moveTo(t[0].x,t[0].y),i=1;i<t.length;i++)e.lineTo(t[i].x,t[i].y);e.fillStyle=d.generateColor(this._data.color,this._data.transparency,!0),e.fill()}},e.prototype.hitTest=function(e){if(null===this._data||!this._data.hittestOnBackground)return null;var t=this._visiblePolygon();return null!==t&&a.pointInPolygon(e,t)?new h(h.MOVEPOINT_BACKGROUND):null},e.prototype._visiblePolygon=function(){var e,t,i=r.ensureNotNull(this._data),a=i.p1,l=i.p2,h=i.p3,d=i.p4;return s.equalPoints(a,l)||s.equalPoints(h,d)||o.distanceToLine(a,l,h).distance<1e-6&&o.distanceToLine(a,l,d).distance<1e-6?null:i.width<=0||i.height<=0?null:(e=[new s.Point(0,0),new s.Point(i.width,0),new s.Point(i.width,i.height),new s.Point(0,i.height)],t=e,t=n(t,a,l,[d,h]),t=n(t,d,h,[a,l]),s.equalPoints(h,a)||(t=n(t,h,a,[l,d])),t)},e}(),t.ChannelRenderer=c},230:function(e,t,i){"use strict";var n,r,s,a,o,l;Object.defineProperty(t,"__esModule",{value:!0}),n=i(4),r=i(33),s=i(49),a=i(19),o=i(101),l=function(){function e(){this._data=null}return e.prototype.setData=function(e){this._data=e},e.prototype.draw=function(e){var t,i,n,r;null===this._data||this._data.points.length<2||(e.lineCap="butt",e.strokeStyle=this._data.color,e.lineWidth=this._data.linewidth,void 0!==this._data.linestyle&&o.setLineStyle(e,this._data.linestyle),t=this._data.points,i=t[0],n=t[1], |
|||
r=2===this._data.points.length?n:this._data.points[2],e.beginPath(),e.moveTo(i.x,i.y),e.lineTo(n.x,n.y),e.lineTo(r.x,r.y),e.lineTo(i.x,i.y),this._data.fillBackground&&(e.fillStyle=a.generateColor(this._data.backcolor,this._data.transparency),e.fill()),e.stroke())},e.prototype.hitTest=function(e){var t,i,a,o,l;return null===this._data||this._data.points.length<2?null:(t=this._data.points,i=t[0],a=t[1],o=r.distanceToSegment(i,a,e),o.distance<=3?new n(n.MOVEPOINT):this._data.points.length<3?null:(l=this._data.points[2],o=r.distanceToSegment(a,l,e),o.distance<=3?new n(n.MOVEPOINT):(o=r.distanceToSegment(l,i,e),o.distance<=3?new n(n.MOVEPOINT):this._data.fillBackground&&s.pointInTriangle(i,a,l,e)?new n(n.MOVEPOINT_BACKGROUND):null)))},e}(),t.TriangleRenderer=l},274:function(e,t,i){"use strict";function n(e,t){p.call(this,e,t),this._invalidated=!0}var r=i(1).Point,s=i(53),a=s.parseRgb,o=s.darkenRgb,l=s.rgbToHexString,h=s.rgbToBlackWhiteString,d=i(494).EllipseRendererSimple,c=i(27).TextRenderer,p=i(12).LineSourcePaneView,_=i(16).TrendLineRenderer,u=i(4),f=i(8).CompositeRenderer,g=i(56),v=i(19),w=i(18).LineEnd;inherit(n,p),n.prototype.renderer=function(){var e,t,i,n,s,p,v,w,y,m,x,b,S,P,R,T,L,C,k,I,B,M,A;if(this._invalidated&&(this.updateImpl(),this._invalidated=!1),!this._wave)return null;for(e=this.isAnchorsRequired()?0:1,t=new f,i=this._source.properties(),n=0;n<this._wave.length;n++)s=new _,s.setData(this._wave[n]),t.append(s);for(p=1,this._points.length>2&&(v=this._points[2],w=this._points[1],p=g.sign(v.y-w.y)),y=[],m=0,this._model.lineBeingCreated()===this._source&&(m=1),x=h(a(this._model.backgroundColor()),150),b="black"===x?"white":"black",S=i.color.value(),n=0;n<this._points.length-m;n++,p=-p)n<e||(P=this._source.label(n),R=P.label,"circle"===P.decoration&&(T=this._points[n].clone(),1===p?T.y+=13+P.fontIncrease/2:T.y-=14+P.fontIncrease/2,L=(12+P.fontIncrease)/2+2,v=T.subtract(new r(L,L)),w=T.add(new r(L,L)),C={points:[v,w],color:l(o(a(S),"black"===b?15:-15)),linewidth:1,fillBackground:!1},k=new d(C),t.append(k)),"brackets"===P.decoration&&(R="("+R+")"),I={points:[this._points[n]],text:R,color:l(o(a(S),"black"===b?15:-15)),vertAlign:1===p?"top":"bottom",horzAlign:"center",font:"Arial",offsetX:0,offsetY:1===p?5:-10,fontsize:12+P.fontIncrease,bold:P.bold},y.push(I),""!==P&&t.append(new c(I,new u(u.CHANGEPOINT,n))));if(this.isAnchorsRequired()){for(B=[],M=0;M<y.length;M++)A=this._points[M].clone(),A.y=y[M].points[0].y,A.data=M,B.push(A);this._model.lineBeingCreated()===this._source&&B.pop(),t.append(this.createLineAnchor({points:B}))}return t},n.prototype.update=function(){this._invalidated=!0},n.prototype.updateImpl=function(){var e,t,i,n,s,a,o,l,h,d,c,_,u,f,g,y;if(p.prototype._updateImpl.call(this),this._wave=[],e=this._source.properties(),t=this._source.priceScale(),i=this._model.timeScale(),t&&!t.isEmpty()&&!i.isEmpty()&&(this._source.priceScale().isPercent()&&(n=this._source.ownerSource().firstValue()),s=e.color.value(),e.showWave.value()))for(a=this._source.points(),o=1;o<a.length;o++)l=a[o-1],h=a[o], |
|||
d=i.indexToCoordinate(l.index),c=i.indexToCoordinate(h.index),_=l.price,u=h.price,this._source.priceScale().isPercent()&&(_=this._source.priceScale().priceRange().convertToPercent(_,n),u=this._source.priceScale().priceRange().convertToPercent(u,n)),f=t.priceToCoordinate(_),g=t.priceToCoordinate(u),y={points:[new r(d,f),new r(c,g)],width:i.width(),height:t.height(),color:v.generateColor(s,0),linewidth:e.linewidth.value(),linestyle:CanvasEx.LINESTYLE_SOLID,extendleft:!1,extendright:!1,leftend:w.Circle,rightend:w.Circle,endstyle:{strokeWidth:1,fillStyle:this._model.backgroundColor()},overlayLineEndings:!0},this._wave.push(y)},t.ElliottLabelsPaneView=n},314:function(e,t,i){"use strict";function n(e,t,i,n){return null!==e?l.intersectPolygonAndHalfplane(e,a.halfplaneThroughPoint(a.lineThroughPoints(t,i),n)):null}function r(e,t){return e.length===t}var s,a,o,l,h,d,c,p,_;Object.defineProperty(t,"__esModule",{value:!0}),s=i(21),a=i(1),o=i(33),l=i(98),h=i(101),d=i(4),c=i(69),p=i(19),_=function(){function e(e,t){this._data=null,this._hittestResult=e||new d(d.MOVEPOINT),this._backHittestResult=t||new d(d.MOVEPOINT_BACKGROUND)}return e.prototype.setData=function(e){this._data=e},e.prototype.draw=function(e){var t,i,n,s,a,o,l,d;null===this._data||this._data.points.length<2||(e.lineCap="butt",e.strokeStyle=this._data.color,e.lineWidth=this._data.linewidth,h.setLineStyle(e,this._data.linestyle),t=this._data.points,i=t[0],n=t[1],this._data.skipLines||this._extendAndDrawLineSegment(e,i,n),r(this._data.points,4)&&(s=this._data.points,a=s[2],o=s[3],this._data.skipLines||this._data.skipTopLine||this._extendAndDrawLineSegment(e,a,o),this._data.fillBackground&&this._drawBackground(e,this._data.points),this._data.showMidline&&!this._data.skipLines&&(e.strokeStyle=this._data.midcolor,e.lineWidth=this._data.midlinewidth,h.setLineStyle(e,this._data.midlinestyle),l=i.add(a).scaled(.5),d=n.add(o).scaled(.5),this._extendAndDrawLineSegment(e,l,d))))},e.prototype.hitTest=function(e){var t,i,n,s,a,o,l,h,d,c,p;if(null===this._data||this._data.points.length<2)return null;if(t=this._data.points,i=t[0],n=t[1],null!==(s=this._extendAndHitTestLineSegment(e,i,n)))return s;if(r(this._data.points,4)&&!this._data.skipTopLine){if(a=this._data.points,o=a[2],l=a[3],null!==(h=this._extendAndHitTestLineSegment(e,o,l)))return h;if(this._data.showMidline&&!this._data.skipLines&&(d=i.add(o).scaled(.5),c=n.add(l).scaled(.5),null!==(p=this._extendAndHitTestLineSegment(e,d,c))))return p}return this._data.hittestOnBackground&&this._data.fillBackground?this._hitTestBackground(e):null},e.prototype._getColor=function(){var e=s.ensureNotNull(this._data);return p.generateColor(e.backcolor,e.transparency)},e.prototype._extendAndDrawLineSegment=function(e,t,i){var n=this._extendAndClipLineSegment(t,i);null!==n&&h.drawLine(e,n[0].x,n[0].y,n[1].x,n[1].y)},e.prototype._extendAndHitTestLineSegment=function(e,t,i){var n,r=this._extendAndClipLineSegment(t,i);return null!==r&&(n=o.distanceToSegment(r[0],r[1],e),n.distance<=3)?this._hittestResult:null}, |
|||
e.prototype._extendAndClipLineSegment=function(e,t){var i=s.ensureNotNull(this._data);return c.extendAndClipLineSegment(e,t,i.width,i.height,i.extendleft,i.extendright)},e.prototype._drawBackground=function(e,t){var i,r,l,h=s.ensureNotNull(this._data),d=t[0],c=t[1],p=t[2],_=t[3];if(!(a.equalPoints(d,c)||a.equalPoints(p,_)||o.distanceToLine(d,c,p).distance<1e-6||o.distanceToLine(d,c,_).distance<1e-6||h.width<=0||h.height<=0||(i=[new a.Point(0,0),new a.Point(h.width,0),new a.Point(h.width,h.height),new a.Point(0,h.height)],r=i,r=n(r,d,c,_),h.extendright||(r=n(r,c,_,p)),r=n(r,_,p,d),h.extendleft||(r=n(r,p,d,c)),null===r))){for(e.beginPath(),e.moveTo(r[0].x,r[0].y),l=1;l<r.length;l++)e.lineTo(r[l].x,r[l].y);e.fillStyle=this._getColor(),e.fill()}},e.prototype._hitTestBackground=function(e){var t,i,n,a,o,l,h,d,c,p,_,u=s.ensureNotNull(this._data);return r(u.points,4)?(t=u.points,i=t[0],n=t[1],a=t[2],o=(n.y-i.y)/(n.x-i.x),l=i.y+o*(e.x-i.x),h=a.y+o*(e.x-a.x),d=Math.max(l,h),c=Math.min(l,h),p=Math.min(i.x,n.x),_=Math.max(i.x,n.x),!u.extendleft&&e.x<p?null:!u.extendright&&e.x>_?null:e.y>=c&&e.y<=d?this._backHittestResult:null):null},e}(),t.ParallelChannelRenderer=_},392:function(e,t){"use strict";e.exports=function(e,t){var i=document.body,n=i[e];return n||(n=document.createElement("img"),n.src=t,i[e]=n),n}},412:function(e,t,i){"use strict";function n(e,t){r.call(this,e,t),this._numericFormatter=new h,this._invalidated=!0,this._bcRetracementTrend=new s,this._xdRetracementTrend=new s,this._mainTriangleRenderer=new a,this._triangleRendererPoints234=new a,this._abLabelRenderer=new o({}),this._bcLabelRenderer=new o({}),this._cdLabelRenderer=new o({}),this._xdLabelRenderer=new o({}),this._textRendererALabel=new o({}),this._textRendererBLabel=new o({}),this._textRendererCLabel=new o({}),this._textRendererDLabel=new o({}),this._textRendererXLabel=new o({})}var r=i(12).LineSourcePaneView,s=i(16).TrendLineRenderer,a=i(230).TriangleRenderer,o=i(27).TextRenderer,l=i(8).CompositeRenderer,h=i(38).NumericFormatter,d=i(18).LineEnd;inherit(n,r),n.prototype.renderer=function(){var e,t,i,n,r,s,a,o,h,c;return this._invalidated&&(this.updateImpl(),this._invalidated=!1),this._points.length<2?null:(e=this._source.properties(),t=new l,i=[this._points[0],this._points[1],this._points.length<3?this._points[1]:this._points[2]],n=this,r=function(t,i){return{points:[t],text:i,color:e.textcolor.value(),vertAlign:"middle",horzAlign:"center",font:e.font.value(),offsetX:0,offsetY:0,bold:e.bold&&e.bold.value(),italic:e.italic&&e.italic.value(),fontsize:e.fontsize.value(),backgroundColor:n._source.properties().color.value(),backgroundRoundRect:4}},s=function(e,t){return{points:[e,t],width:n._model.timeScale().width(),height:n._source.priceScale().height(),color:n._source.properties().color.value(),linewidth:1,linestyle:CanvasEx.LINESTYLE_SOLID,extendleft:!1,extendright:!1,leftend:d.Normal,rightend:d.Normal}},a={},a.points=i,a.color=e.color.value(),a.linewidth=e.linewidth.value(),a.backcolor=e.backgroundColor.value(),a.fillBackground=e.fillBackground.value(), |
|||
a.transparency=e.transparency.value(),this._mainTriangleRenderer.setData(a),t.append(this._mainTriangleRenderer),this._points.length>3&&(i=[this._points[2],this._points[3],5===this._points.length?this._points[4]:this._points[3]],a={},a.points=i,a.color=e.color.value(),a.linewidth=e.linewidth.value(),a.backcolor=e.backgroundColor.value(),a.fillBackground=e.fillBackground.value(),a.transparency=e.transparency.value(),this._triangleRendererPoints234.setData(a),t.append(this._triangleRendererPoints234)),this._points.length>=3&&(o=this._points[0].add(this._points[2]).scaled(.5),h=r(o,this._numericFormatter.format(this._ABRetracement)),this._abLabelRenderer.setData(h),t.append(this._abLabelRenderer)),this._points.length>=4&&(o=this._points[1].add(this._points[3]).scaled(.5),c=s(this._points[1],this._points[3]),this._bcRetracementTrend.setData(c),t.append(this._bcRetracementTrend),h=r(o,this._numericFormatter.format(this._BCRetracement)),this._bcLabelRenderer.setData(h),t.append(this._bcLabelRenderer)),this._points.length>=5&&(o=this._points[2].add(this._points[4]).scaled(.5),h=r(o,this._numericFormatter.format(this._CDRetracement)),this._cdLabelRenderer.setData(h),t.append(this._cdLabelRenderer),c=s(this._points[0],this._points[4]),this._xdRetracementTrend.setData(c),t.append(this._xdRetracementTrend),o=this._points[0].add(this._points[4]).scaled(.5),h=r(o,this._numericFormatter.format(this._XDRetracement)),this._xdLabelRenderer.setData(h),t.append(this._xdLabelRenderer)),h=r(this._points[0],"X"),this._points[1].y>this._points[0].y?(h.vertAlign="bottom",h.offsetY=-10):(h.vertAlign="top",h.offsetY=5),this._textRendererXLabel.setData(h),t.append(this._textRendererXLabel),h=r(this._points[1],"A"),this._points[1].y<this._points[0].y?(h.vertAlign="bottom",h.offsetY=-10):(h.vertAlign="top",h.offsetY=5),this._textRendererALabel.setData(h),t.append(this._textRendererALabel),this._points.length>2&&(h=r(this._points[2],"B"),this._points[2].y<this._points[1].y?(h.vertAlign="bottom",h.offsetY=-10):(h.vertAlign="top",h.offsetY=5),this._textRendererBLabel.setData(h),t.append(this._textRendererBLabel)),this._points.length>3&&(h=r(this._points[3],"C"),this._points[3].y<this._points[2].y?(h.vertAlign="bottom",h.offsetY=-10):(h.vertAlign="top",h.offsetY=5),this._textRendererCLabel.setData(h),t.append(this._textRendererCLabel)),this._points.length>4&&(h=r(this._points[4],"D"),this._points[4].y<this._points[3].y?(h.vertAlign="bottom",h.offsetY=-10):(h.vertAlign="top",h.offsetY=5),this._textRendererDLabel.setData(h),t.append(this._textRendererDLabel)),this.addAnchors(t),t)},n.prototype.update=function(){this._invalidated=!0},n.prototype.updateImpl=function(){var e,t,i,n,s;r.prototype._updateImpl.call(this),this._source.points().length>=3&&(e=this._source.points()[0],t=this._source.points()[1],i=this._source.points()[2],this._ABRetracement=Math.round(1e3*Math.abs((i.price-t.price)/(t.price-e.price)))/1e3),this._source.points().length>=4&&(n=this._source.points()[3], |
|||
this._BCRetracement=Math.round(1e3*Math.abs((n.price-i.price)/(i.price-t.price)))/1e3),this._source.points().length>=5&&(s=this._source.points()[4],this._CDRetracement=Math.round(1e3*Math.abs((s.price-n.price)/(n.price-i.price)))/1e3,this._XDRetracement=Math.round(1e3*Math.abs((s.price-t.price)/(t.price-e.price)))/1e3)},t.Pattern5PaneView=n},414:function(e,t,i){"use strict";function n(e,t){s.call(this,e,t),this._levels=[],this._invalidated=!0,this._baseTrendRenderer=new a,this._edgeTrendRenderer=new a}var r=i(1).Point,s=i(12).LineSourcePaneView,a=i(16).TrendLineRenderer,o=i(117),l=i(4),h=i(8).CompositeRenderer,d=i(491).ArcWedgeRenderer,c=i(18).LineEnd;inherit(n,s),n.prototype.update=function(){this._invalidated=!0},n.prototype._updateImpl=function(){var e,t,i,n,a,o,l,h,d,c,p,_,u,f,g,v,w,y,m;if(s.prototype._updateImpl.call(this),this._cacheState=this._source.getCache().updateSource(this._source),this._levels=[],!(this._points.length<3))for(e=this._points,t=e[0],i=e[1],n=e[2],a=i.subtract(t).normalized(),o=n.subtract(t).normalized(),l=new r(1,0),h=new r(0,1),d=Math.acos(a.dotProduct(l)),a.dotProduct(h)<0&&(d=2*Math.PI-d),this._edge1=d,c=Math.acos(o.dotProduct(l)),o.dotProduct(h)<0&&(c=2*Math.PI-c),this._edge2=c,d<c&&(this._edge1=Math.max(d,c),this._edge2=Math.min(d,c)+2*Math.PI),Math.abs(d-c)>Math.PI&&(this._edge1=Math.min(d,c),this._edge2=Math.max(d,c)-2*Math.PI),p=this._source.properties(),_=1;_<=this._source.getCache().levelsCount();_++)u="level"+_,f=p[u],f.visible.value()&&(g=f.coeff.value(),v=f.color.value(),w=i.subtract(t).length()*g,y=a.add(o).scaled(.5).normalized().scaled(w),m=t.add(y),this._levels.push({coeff:g,color:v,radius:w,labelPoint:m,p1:t.add(a.scaled(w)),p2:t.add(o.scaled(w)),linewidth:f.linewidth.value(),linestyle:f.linestyle.value(),index:_}))},n.prototype.renderer=function(){var e,t,i,n,r,s,a,p,_,u,f,g,v,w,y,m,x,b,S,P;if(this._invalidated&&(this._updateImpl(),this._invalidated=!1),e=new h,this._points.length<2)return e;if(t=this._source.properties(),i=this._points,n=i[0],r=i[1],s={points:[n,r],width:this._model.timeScale().width(),height:this._source.priceScale().height(),color:t.trendline.color.value(),linewidth:t.trendline.visible.value()?t.trendline.linewidth.value():0,linestyle:t.trendline.linestyle.value(),extendleft:!1,extendright:!1,leftend:c.Normal,rightend:c.Normal},this._baseTrendRenderer.setData(s),e.append(this._baseTrendRenderer),this._points.length<3)return this.addAnchors(e),e;for(a=i[2],p=a.data,_=r.subtract(n).length(),u=a.subtract(n).normalized(),a=n.add(u.scaled(_)),a.data=p,s={points:[n,a],width:this._model.timeScale().width(),height:this._source.priceScale().height(),color:t.trendline.color.value(),linewidth:t.trendline.visible.value()?t.trendline.linewidth.value():0,linestyle:t.trendline.linestyle.value(),extendleft:!1,extendright:!1,leftend:c.Normal,rightend:c.Normal},this._edgeTrendRenderer.setData(s),e.append(this._edgeTrendRenderer),f=this._model._fibWedgeLabelsCache,g=f.canvas().get(0),v=this._levels.length-1;v>=0;v--)if(w=this._levels[v],y={},y.center=this._points[0], |
|||
y.radius=w.radius,y.prevRadius=v>0?this._levels[v-1].radius:0,y.edge=this._edge,y.color=w.color,y.linewidth=w.linewidth,y.edge1=this._edge1,y.edge2=this._edge2,y.p1=w.p1,y.p2=w.p2,y.fillBackground=t.fillBackground.value(),y.transparency=t.transparency.value(),m=new d,m.setData(y),m.setHitTest(new l(l.MOVEPOINT,null,w.index)),e.append(m),t.showCoeffs.value()){if(!(x=this._cacheState.preparedCells.cells[this._levels[v].index-1]))continue;b={left:x.left,top:f.topByRow(this._cacheState.row),width:x.width,height:f.rowHeight(this._cacheState.row)},S={left:Math.round(w.labelPoint.x-b.width),top:Math.round(w.labelPoint.y-b.height/2),width:x.width,height:b.height},P=new o(g,b,S),e.append(P)}return this.isAnchorsRequired()&&(i=[n,r],this._model.lineBeingCreated()!==this._source&&i.push(a),e.append(this.createLineAnchor({points:i}))),e},t.FibWedgePaneView=n},416:function(e,t,i){"use strict";function n(){this._data=null}function r(e,t,i,r,s,a,l){o.call(this,e,t),this._image=i,this._offsetX=a||0,this._offsetY=l||0,this._width=r,this._height=s,this._invalidated=!0,this._marksRenderer=new n}var s=i(1).Point,a=i(49).pointInRectangle,o=i(12).LineSourcePaneView,l=i(4),h=i(74).SelectionRenderer,d=i(8).CompositeRenderer;n.prototype.setData=function(e){this._data=e},n.prototype.draw=function(e){var t,i;null!==this._data&&0!==this._data.points.length&&(t=this._data.points[0].x+this._data.offsetX,i=this._data.points[0].y+this._data.offsetY,e.translate(-.5,-.5),e.drawImage(this._data.image,t,i,this._data.width,this._data.height))},n.prototype.hitTest=function(e){if(null===this._data||0===this._data.points.length)return null;var t=this._data.points[0].clone();return this._data.offsetX&&(t.x+=this._data.offsetX),this._data.offsetY&&(t.y+=this._data.offsetY),a(e,t,t.add(new s(this._data.width,this._data.height)))?new l(l.MOVEPOINT):null},inherit(r,o),r.prototype.setAnchors=function(e){this._anchorsOffset=e},r.prototype.renderer=function(){var e,t,i,n;if(this._invalidated&&this.updateImpl(),e={},e.points=this._points,e.color=this._source.properties().color.value(),e.image=this._image,e.offsetX=this._offsetX,e.offsetY=this._offsetY,e.width=this._width,e.height=this._height,this._marksRenderer.setData(e),this.isAnchorsRequired()&&1===e.points.length){if(t=new d,t.append(this._marksRenderer),this._anchorsOffset){for(i=[],n=0;n<e.points.length;n++)i.push(e.points[n].clone().add(this._anchorsOffset));t.append(new h({points:i}))}else t.append(new h({points:e.points}));return t}return this._marksRenderer},r.prototype.update=function(){this._invalidated=!0},r.prototype.updateImpl=function(){o.prototype._updateImpl.call(this),this._invalidated=!1},t.MarkPaneView=r},418:function(e,t,i){"use strict";function n(e,t,i,n,r,a){s.call(this,e,t),this._offsetX=i,this._offsetY=n,this._vertAlign=r,this._horzAlign=a,this._renderer=null,this._invalidated=!0,this._noSelection=!1,this._renderer=new o({})}var r=i(1).Point,s=i(12).LineSourcePaneView,a=i(8).CompositeRenderer,o=i(27).TextRenderer;inherit(n,s),n.prototype.disableSelection=function(){this._noSelection=!0}, |
|||
n.prototype.update=function(){this._invalidated=!0},n.prototype.updateImpl=function(){s.prototype._updateImpl.call(this),this._invalidated=!1},n.prototype.renderer=function(){var e,t,i,n,s,o,l,h,d,c,p;return this._invalidated&&this.updateImpl(),!(e=this._source.priceScale())||e.isEmpty()?null:(t={},i=this._source.properties(),n=i.locked&&i.locked.value(),t.points=n?this._source.fixedPoints():this._points,t.text=i.text.value(),t.color=i.color.value(),t.font=i.font.value(),t.offsetX=this._offsetX?this._offsetX:0,t.offsetY=this._offsetY?this._offsetY:0,t.vertAlign=this._vertAlign?this._vertAlign:"top",t.horzAlign=this._horzAlign?this._horzAlign:"left",t.fontsize=i.fontsize.value(),i.fillBackground&&i.fillBackground.value()&&(t.backgroundColor=i.backgroundColor.value(),t.backgroundTransparency=1-i.backgroundTransparency.value()/100||0),i.drawBorder&&i.drawBorder.value()&&(t.borderColor=i.borderColor.value()),i.wordWrap&&i.wordWrap.value()&&(t.wordWrapWidth=i.wordWrapWidth.value()),t.bold=i.bold&&i.bold.value(),t.italic=i.italic&&i.italic.value(),t.highlightBorder=this._model.selectedSource()===this._source,n||!i.fixedSize||i.fixedSize.value()||(t.scaleX=this._source._model.timeScale().barSpacing()/this._source._barSpacing,s=e.height()/e.priceRange().length(),this._source._isPriceDencityLog&&!e.isLog()&&(o=e.priceRange().minValue(),l=e.priceRange().maxValue(),o=e._toLog(o),l=e._toLog(l),h=l-o,s=e.height()/h),!this._source._isPriceDencityLog&&e.isLog()&&(o=e.priceRange().minValue(),l=e.priceRange().maxValue(),o=e._fromLog(o),l=e._fromLog(l),h=l-o,s=e.height()/h),t.scaleY=s/this._source._priceDencity,(!isFinite(t.scaleY)||t.scaleY<=0)&&delete t.scaleY),this._renderer.setData(t),this.isAnchorsRequired()&&1===t.points.length&&!this._noSelection&&t.wordWrapWidth?(d=new a,d.append(this._renderer),c=t.points[0],p=new r(c.x+t.wordWrapWidth+~~(t.fontsize/6),c.y+(t.lines?t.lines.length*t.fontsize/2+~~(t.fontsize/6):0)),p.data=0,d.append(this.createLineAnchor({points:[p]})),d):this._renderer)},t.TextPaneView=n},481:function(e,t){"use strict";function i(e,t){void 0===t&&(t=" ");var i=(e+"").split(".");return i[0].replace(/\B(?=(\d{3})+(?!\d))/g,t)+(i[1]?"."+i[1]:"")}Object.defineProperty(t,"__esModule",{value:!0}),t.splitThousands=i},491:function(e,t,i){"use strict";var n,r,s;Object.defineProperty(t,"__esModule",{value:!0}),n=i(4),r=i(19),s=function(){function e(){this._data=null,this._hitTest=new n(n.MOVEPOINT),this._backHitTest=new n(n.MOVEPOINT_BACKGROUND)}return e.prototype.setData=function(e){this._data=e},e.prototype.setHitTest=function(e){this._hitTest=e},e.prototype.draw=function(e){if(null!==this._data&&(e.strokeStyle=this._data.color,e.lineWidth=this._data.linewidth,e.beginPath(),e.arc(this._data.center.x,this._data.center.y,this._data.radius,this._data.edge1,this._data.edge2,!0),e.stroke(),this._data.fillBackground)){if(e.arc(this._data.center.x,this._data.center.y,this._data.prevRadius,this._data.edge2,this._data.edge1,!1),this._data.gradient){ |
|||
var t=e.createRadialGradient(this._data.center.x,this._data.center.y,this._data.prevRadius,this._data.center.x,this._data.center.y,this._data.radius);t.addColorStop(0,r.generateColor(this._data.color1,this._data.transparency)),t.addColorStop(1,r.generateColor(this._data.color2,this._data.transparency)),e.fillStyle=t}else e.fillStyle=r.generateColor(this._data.color,this._data.transparency,!0);e.fill()}},e.prototype.hitTest=function(e){var t,i,n,r,s,a,o,l,h,d,c,p;return null===this._data?null:(t=e.subtract(this._data.center),i=t.length(),Math.abs(i-this._data.radius)<=4&&(n=e.subtract(this._data.p1).length(),r=e.subtract(this._data.p2).length(),s=Math.max(n,r),a=this._data.p1.subtract(this._data.p2).length(),s<=a)?this._hitTest:this._data.fillBackground&&i<=this._data.radius&&(o=this._data.p1.subtract(this._data.center).normalized(),l=this._data.p2.subtract(this._data.center).normalized(),h=t.normalized(),d=o.dotProduct(l),c=h.dotProduct(o),p=h.dotProduct(l),c>=d&&p>=d)?this._backHitTest:null)},e}(),t.ArcWedgeRenderer=s},492:function(e,t){"use strict";function i(e,t,i,n){var r,s,a,o,l,h=i.subtract(e).length()+i.subtract(t).length(),d=3/h;for(r=0;r<=1;r+=d)if(s=e.scaled((1-r)*(1-r)),a=i.scaled(2*r*(1-r)),o=t.scaled(r*r),l=s.add(a).add(o),l.subtract(n).length()<5)return!0;return!1}function n(e,t,i,n,r){var s,a,o,l,h,d,c=i.subtract(e).length()+n.subtract(i).length()+t.subtract(n).length(),p=3/c;for(s=0;s<=1;s+=p)if(a=e.scaled((1-s)*(1-s)*(1-s)),o=i.scaled(3*(1-s)*(1-s)*s),l=n.scaled(3*(1-s)*s*s),h=t.scaled(s*s*s),d=a.add(o).add(l).add(h),d.subtract(r).length()<5)return!0;return!1}function r(e,t,i,n,r){var s,a,o,l,h,d,c,p,_,u=i.subtract(e).length()+i.subtract(t).length();if(!u)return[];for(s=3/u,a=500,o=[],l=1;l<=a*s;l+=s)h=e.scaled((1-l)*(1-l)),d=i.scaled(2*l*(1-l)),c=t.scaled(l*l),p=h.add(d).add(c),o.length>0&&(_=o[o.length-1],_.subtract(p).length()<2&&(s*=2)),o.push(p);return o}Object.defineProperty(t,"__esModule",{value:!0}),t.quadroBezierHitTest=i,t.cubicBezierHitTest=n,t.extendQuadroBezier=r},493:function(e,t,i){"use strict";function n(e,t,i,n){var r=l.equalPoints(i,n[0])?l.equalPoints(i,n[1])?null:n[1]:n[0];return null!==e&&null!==r?c.intersectPolygonAndHalfplane(e,l.halfplaneThroughPoint(l.lineThroughPoints(t,i),r)):null}function r(e){return l.line(1,0,-e)}function s(e,t,i){return null!==e?c.intersectPolygonAndHalfplane(e,l.halfplaneThroughPoint(r(t),new l.Point(i,0))):null}function a(e,t){var i=t.points,n=i[0],r=i[1];return t.extendleft||(e=s(e,n.x,r.x)),t.extendright||(e=s(e,r.x,n.x)),e}var o,l,h,d,c,p,_,u,f,g,v;Object.defineProperty(t,"__esModule",{value:!0}),o=i(21),l=i(1),h=i(49),d=i(33),c=i(98),p=i(115),_=i(4),u=i(314),f=i(19),g=function(){function e(){this._parallelChannelRenderer=new u.ParallelChannelRenderer,this._disjointAngleIntersectionRenderer=new v,this._selectedRenderer=this._disjointAngleIntersectionRenderer}return e.prototype.setData=function(e){var t,i,n,r,s,a,o;e.points.length<4||(t=e.points,i=t[0],n=t[1],r=t[2],s=t[3], |
|||
a=l.equalPoints(i,n)||l.equalPoints(r,s)||d.distanceToLine(i,n,r).distance<1e-6&&d.distanceToLine(i,n,s).distance<1e-6,a?this._selectedRenderer=null:(o=c.intersectLines(l.lineThroughPoints(i,n),l.lineThroughPoints(r,s)),null!==o?(this._disjointAngleIntersectionRenderer.setData(e),this._selectedRenderer=this._disjointAngleIntersectionRenderer):(this._parallelChannelRenderer.setData({width:e.width,height:e.height,extendleft:e.extendleft,extendright:e.extendright,points:[i,n,s,r],fillBackground:!0,backcolor:e.backcolor,transparency:e.transparency,color:"rgba(0,0,0,0)",linestyle:p.LINESTYLE_SOLID,linewidth:0,showMidline:!1,midcolor:"rgba(0,0,0,0)",midlinestyle:0,midlinewidth:0,hittestOnBackground:e.hittestOnBackground}),this._selectedRenderer=this._parallelChannelRenderer)))},e.prototype.draw=function(e){null!==this._selectedRenderer&&this._selectedRenderer.draw(e)},e.prototype.hitTest=function(e){return null!==this._selectedRenderer?this._selectedRenderer.hitTest(e):null},e}(),t.DisjointAngleRenderer=g,v=function(){function e(){this._data=null}return e.prototype.setData=function(e){this._data=e},e.prototype.draw=function(e){var t,i,n,r;if(!(null===this._data||this._data.points.length<4))for(e.fillStyle=f.generateColor(this._data.backcolor,this._data.transparency),t=0,i=this._visiblePolygons();t<i.length;t++){for(n=i[t],e.beginPath(),e.moveTo(n[0].x,n[0].y),r=1;r<n.length;r++)e.lineTo(n[r].x,n[r].y);e.fill()}},e.prototype.hitTest=function(e){var t,i,n;if(null===this._data||!this._data.hittestOnBackground)return null;for(t=0,i=this._visiblePolygons();t<i.length;t++)if(n=i[t],h.pointInPolygon(e,n))return new _(_.MOVEPOINT_BACKGROUND);return null},e.prototype._visiblePolygons=function(){var e,t,i,r,s,h,d,p,_=o.ensureNotNull(this._data),u=_.points,f=u[0],g=u[1],v=u[2],w=u[3];return _.width<=0||_.height<=0?[]:null===(e=c.intersectLines(l.lineThroughPoints(f,g),l.lineThroughPoints(v,w)))?[]:(t=[new l.Point(0,0),new l.Point(_.width,0),new l.Point(_.width,_.height),new l.Point(0,_.height)],i=[],r=t,s=f.subtract(g).add(e),h=w.subtract(v).add(e),r=n(r,e,s,[h,h]),r=a(r,_),null!==(r=n(r,h,e,[s,s]))&&i.push(r),r=t,d=g.subtract(f).add(e),p=v.subtract(w).add(e),r=n(r,e,d,[p,p]),r=a(r,_),null!==(r=n(r,p,e,[d,d]))&&i.push(r),i)},e}()},494:function(e,t,i){"use strict";var n,r,s,a,o,l;Object.defineProperty(t,"__esModule",{value:!0}),n=i(4),r=i(56),s=i(1),a=i(19),o=i(101),l=function(){function e(e,t,i){this._data=e,this._hitTest=t||new n(n.MOVEPOINT),this._backgroundHitTest=i||new n(n.MOVEPOINT_BACKGROUND)}return e.prototype.draw=function(e){var t,i,n,r,s,l,h,d;e.lineCap="butt",e.strokeStyle=this._data.color,e.lineWidth=this._data.linewidth,void 0!==this._data.linestyle&&o.setLineStyle(e,this._data.linestyle),t=this._data.points[0],i=this._data.points[1],n=Math.abs(t.x-i.x),r=Math.abs(t.y-i.y),s=t.add(i).scaled(.5),n<1||r<1||(l=0,this._data.wholePoints&&(h=this._data.wholePoints[0],d=this._data.wholePoints[1],l=Math.abs(h.x-d.x)),e.save(),e.translate(s.x,s.y),e.scale(1,r/n),e.beginPath(),e.arc(0,0,n/2,0,2*Math.PI,!1),e.restore(),e.stroke(), |
|||
this._data.fillBackground&&(this._data.wholePoints&&(e.translate(s.x,s.y),e.scale(1,r/n),e.arc(0,0,l/2,0,2*Math.PI,!0)),e.fillStyle=a.generateColor(this._data.backcolor,this._data.transparency,!0),e.fill()))},e.prototype.hitTest=function(e){var t,i,n,a,o,l,h,d,c,p;return this._data.points.length<2?null:(t=this._data.points[0],i=this._data.points[1],n=.5*Math.abs(t.x-i.x),a=Math.abs(t.x-i.x),o=Math.abs(t.y-i.y),l=t.add(i).scaled(.5),h=e.subtract(l),a<1||o<1?null:(d=(i.y-t.y)/(i.x-t.x),h=new s.Point(h.x,h.y/d),c=h.x*h.x+h.y*h.y,p=c-n*n,p=r.sign(p)*Math.sqrt(Math.abs(p/n)),Math.abs(p)<3?this._hitTest:this._data.fillBackground&&!this._data.noHitTestOnBackground&&p<3?this._backgroundHitTest:null))},e}(),t.EllipseRendererSimple=l},834:function(e,t,i){"use strict";function n(e,t){r.call(this,e,t),this._numericFormatter=new l,this._invalidated=!0,this._lineRendererPoints01=new s,this._lineRendererPoints12=new s,this._lineRendererPoints23=new s,this._abRetracementTrend=new s,this._cdRetracementTrend=new s,this._abLabelRenderer=new a({}),this._cdLabelRenderer=new a({}),this._textRendererALabel=new a({}),this._textRendererBLabel=new a({}),this._textRendererCLabel=new a({}),this._textRendererDLabel=new a({})}var r=i(12).LineSourcePaneView,s=i(16).TrendLineRenderer,a=i(27).TextRenderer,o=i(8).CompositeRenderer,l=i(38).NumericFormatter,h=i(19),d=i(18).LineEnd;inherit(n,r),n.prototype.renderer=function(){var e,t,i,n,r,s,a,l,c;return this._invalidated&&(this.updateImpl(),this._invalidated=!1),this._points.length<2?null:(e=this._source.properties(),t=new o,i=this._points,n=this,r=function(t,i){return{points:[t],text:i,color:e.textcolor.value(),vertAlign:"middle",horzAlign:"center",font:e.font.value(),offsetX:0,offsetY:0,bold:e.bold&&e.bold.value(),italic:e.italic&&e.italic.value(),fontsize:e.fontsize.value(),backgroundColor:n._source.properties().color.value(),backgroundRoundRect:4}},s=function(t,i,r,s){return{points:[t,i],width:n._model.timeScale().width(),height:n._source.priceScale().height(),color:h.generateColor(n._source.properties().color.value(),r),linewidth:s||e.linewidth.value(),linestyle:CanvasEx.LINESTYLE_SOLID,extendleft:!1,extendright:!1,leftend:d.Normal,rightend:d.Normal}},a=s(i[0],i[1],0),this._lineRendererPoints01.setData(a),t.append(this._lineRendererPoints01),i.length>=3&&(a=s(i[1],i[2],0),this._lineRendererPoints12.setData(a),t.append(this._lineRendererPoints12)),4===i.length&&(a=s(i[2],i[3],0),this._lineRendererPoints23.setData(a),t.append(this._lineRendererPoints23)),l=r(this._points[0],"A"),this._points[1].y>this._points[0].y?(l.vertAlign="bottom",l.offsetY=-10):(l.vertAlign="top",l.offsetY=5),this._textRendererALabel.setData(l),t.append(this._textRendererALabel),l=r(this._points[1],"B"),this._points[1].y<this._points[0].y?(l.vertAlign="bottom",l.offsetY=-10):(l.vertAlign="top",l.offsetY=5),this._textRendererBLabel.setData(l),t.append(this._textRendererBLabel),this._points.length>2&&(l=r(this._points[2],"C"),this._points[2].y<this._points[1].y?(l.vertAlign="bottom",l.offsetY=-10):(l.vertAlign="top", |
|||
l.offsetY=5),this._textRendererCLabel.setData(l),t.append(this._textRendererCLabel)),this._points.length>3&&(l=r(this._points[3],"D"),this._points[3].y<this._points[2].y?(l.vertAlign="bottom",l.offsetY=-10):(l.vertAlign="top",l.offsetY=5),this._textRendererDLabel.setData(l),t.append(this._textRendererDLabel)),this._points.length>=3&&(c=this._points[0].add(this._points[2]).scaled(.5),a=s(this._points[0],this._points[2],70,1),this._abRetracementTrend.setData(a),t.append(this._abRetracementTrend),l=r(c,this._numericFormatter.format(this._ABRetracement)),this._abLabelRenderer.setData(l),t.append(this._abLabelRenderer)),this._points.length>=4&&(c=this._points[1].add(this._points[3]).scaled(.5),a=s(this._points[1],this._points[3],70,1),this._cdRetracementTrend.setData(a),t.append(this._cdRetracementTrend),l=r(c,this._numericFormatter.format(this._CDRetracement)),this._cdLabelRenderer.setData(l),t.append(this._cdLabelRenderer)),this.addAnchors(t),t)},n.prototype.update=function(){this._invalidated=!0},n.prototype.updateImpl=function(){var e,t,i,n;r.prototype._updateImpl.call(this),this._source.points().length>=3&&(e=this._source.points()[0],t=this._source.points()[1],i=this._source.points()[2],this._ABRetracement=Math.round(1e3*Math.abs((i.price-t.price)/(t.price-e.price)))/1e3),4===this._source.points().length&&(n=this._source.points()[3],this._CDRetracement=Math.round(1e3*Math.abs((n.price-i.price)/(i.price-t.price)))/1e3)},t.ABCDPaneView=n},836:function(e,t,i){"use strict";function n(){this._data=null}function r(e,t){p.call(this,e,t),this._invalidated=!0,this._renderer=new n}var s=i(1).Point,a=i(33).distanceToLine,o=i(193),l=o.rotationMatrix,h=o.scalingMatrix,d=o.translationMatrix,c=o.transformPoint,p=i(12).LineSourcePaneView,_=i(4),u=i(8).CompositeRenderer,f=i(19);n.prototype.setData=function(e){this._data=e,this._data.angleFrom=0,this._data.angleTo=Math.PI,this._data.clockwise=!1},n.prototype.draw=function(e){var t,i,n,r,o,p,_,u,g,v,w,y,m,x;if(!(null===this._data||this._data.points.length<2)){if(t=this._data.points[0],i=this._data.points[1],this._data.points.length<3)return e.strokeStyle=this._data.color,e.lineWidth=this._data.linewidth,e.beginPath(),e.moveTo(t.x,t.y),e.lineTo(i.x,i.y),void e.stroke();if(n=this._data.points[2],(r=a(t,i,n).distance)<1)return e.strokeStyle=this._data.color,e.lineWidth=this._data.linewidth,e.beginPath(),e.moveTo(t.x,t.y),e.lineTo(i.x,i.y),void e.stroke();o=i.subtract(t),p=t.add(i).scaled(.5),_=new s(-o.y,o.x),_=_.normalized(),n=p.add(_.scaled(r)),e.strokeStyle=this._data.color,e.lineWidth=this._data.linewidth,u=o.length(),g=o.x/u,v=o.y/u,w=Math.acos(g),v<0&&(w=-w),y=this._data.points[2],m=d(-p.x,-p.y),y=c(m,y),m=l(-w),y=c(m,y),m=h(1,u/(2*r)),y=c(m,y),y.y<0?this._data.clockwise=!0:this._data.clockwise=!1,e.save(),e.beginPath(),e.translate(t.x,t.y),e.rotate(w),x=1-Math.sqrt(3)/2,e.scale(1,r/(u*x)),this._data.clockwise?e.arc(.5*u,u*Math.sqrt(3)/2,u,-2*Math.PI/3,-Math.PI/3,!1):e.arc(.5*u,-u*Math.sqrt(3)/2,u,Math.PI/3,2*Math.PI/3,!1),e.restore(),e.stroke(), |
|||
this._data.fillBackground&&(e.fillStyle=f.generateColor(this._data.backcolor,this._data.transparency),e.fill())}},n.prototype.hitTest=function(e){var t,i,n,r,o,p,u,f,g,v,w,y,m,x,b,S,P;return null===this._data||this._data.points.length<3?null:(t=5,i=this._data.points[0],n=this._data.points[1],r=this._data.points[2],(o=a(i,n,r).distance)<1?(o=a(i,n,e).distance,o<t?new _(_.MOVEPOINT):null):(p=n.subtract(i),u=p.length(),f=i.add(n).scaled(.5),g=r.subtract(f),g=g.normalized(),r=f.add(g.scaled(o)),v=p.x/u,w=p.y/u,y=Math.acos(v),w<0&&(y=-y),m=d(-i.x,-i.y),e=c(m,e),m=l(-y),e=c(m,e),g=c(m,g),x=1-Math.sqrt(3)/2,m=h(1,u*x/o),e=c(m,e),g=c(m,g),e.y*g.y<0?null:(b=e.y<0?new s(.5*u,u*Math.sqrt(3)/2):new s(.5*u,-u*Math.sqrt(3)/2),S=e.subtract(b),P=S.length(),Math.abs(P-u)<=t?new _(_.MOVEPOINT):null)))},inherit(r,p),r.prototype.update=function(){this._invalidated=!0},r.prototype.updateImpl=function(){p.prototype._updateImpl.call(this),this._invalidated=!1},r.prototype.renderer=function(){var e,t,i,n,r,o,p,_,f,g,v,w,y,m,x,b,S,P,R,T;return this._invalidated&&this.updateImpl(),e={},e.points=this._points,e.color=this._source.properties().color.value(),e.linewidth=this._source.properties().linewidth.value(),e.backcolor=this._source.properties().backgroundColor.value(),e.fillBackground=this._source.properties().fillBackground.value(),e.transparency=this._source.properties().transparency.value(),this._renderer.setData(e),this.isAnchorsRequired()?(t=new u,t.append(this._renderer),i=[],n=e.points[0],r=new s(n.x,n.y),r.data=0,i.push(r),1===e.points.length?t:(o=e.points[1],p=new s(o.x,o.y),p.data=1,2===e.points.length?(this.addAnchors(t),t):(i.push(p),_=e.points[2],f=a(n,o,_).distance,g=o.subtract(n),v=n.add(o).scaled(.5),w=new s(-g.y,g.x),w=w.normalized(),_=v.add(w.scaled(f)),y=v.add(w.scaled(-f)),m=g.length(),x=g.x/m,b=g.y/m,S=Math.acos(x),b<0&&(S=-S),P=e.points[2],R=d(-v.x,-v.y),P=c(R,P),R=l(-S),P=c(R,P),R=h(1,m/(2*f)),P=c(R,P),T=P.y>=0?new s(_.x,_.y):new s(y.x,y.y),T.data=2,i.push(T),t.append(this.createLineAnchor({points:i})),t))):this._renderer},t.ArcPaneView=r},839:function(e,t,i){"use strict";function n(e){this._measureCache=e,this._data=null}function r(e,t){o.call(this,e,t),this._rendererCache={},this._invalidated=!0,this._renderer=new n(this._rendererCache)}var s=i(1).Point,a=i(49).pointInRectangle,o=i(12).LineSourcePaneView,l=i(74).SelectionRenderer,h=i(4),d=i(8).CompositeRenderer,c=i(19);n.prototype.setData=function(e){this._data=e},n.prototype.draw=function(e){var t,i,n,r,s,a,o;null!==this._data&&0!==this._data.points.length&&(e.font=[this._data.fontWeight,this._data.fontSize+"px",this._data.fontFamily].join(" "),t=e.measureText(this._data.label),t.height=this._data.fontSize,i=15,n={left:i,top:(2*i-t.height)/2},r=t.width+2*n.left,s=2*i,a=this._data.points[0].x-(n.left+20),o=this._data.points[0].y-(s+9),this._measureCache&&$.extend(this._measureCache,{innerWidth:r,innerHeight:s,padding:n}),e.translate(.5+a,.5+o),e.beginPath(),e.moveTo(i+9,s),e.lineTo(i,s),e.arcTo(-1e3,0,1e3,0,i),e.lineTo(r-i,0),e.arcTo(1e3,s,-1e3,s,i), |
|||
e.lineTo(i+18,s),e.quadraticCurveTo(i+18,s+4,i+20,s+9),e.quadraticCurveTo(i+12,s+6,i+9,s),e.fillStyle=c.generateColor(this._data.backgroundColor,this._data.transparency),e.fill(),e.strokeStyle=this._data.borderColor,e.lineWidth=2,e.stroke(),e.closePath(),e.textBaseline="top",e.fillStyle=this._data.color,e.fillText(this._data.label,n.left,n.top-1))},n.prototype.hitTest=function(e){var t,i;return null!==this._data&&0!==this._data.points.length&&this._measureCache.padding?(t=this._data.points[0].x-(this._measureCache.padding.left+20),i=this._data.points[0].y-(this._measureCache.innerHeight+9),a(e,new s(t,i),new s(t+this._measureCache.innerWidth,i+this._measureCache.innerHeight))?new h(h.MOVEPOINT):null):null},inherit(r,o),r.prototype.update=function(){this._invalidated=!0},r.prototype.updateImpl=function(){o.prototype._updateImpl.call(this),this._invalidated=!1},r.prototype.renderer=function(){var e,t;return this._invalidated&&this.updateImpl(),e={},e.points=this._points,e.color=this._source.properties().color.value(),e.borderColor=this._source.properties().borderColor.value(),e.backgroundColor=this._source.properties().backgroundColor.value(),e.transparency=this._source.properties().transparency.value(),e.fontWeight=this._source.properties().fontWeight.value(),e.fontSize=this._source.properties().fontsize.value(),e.fontFamily=this._source.properties().font.value(),e.label=this._source.properties().text.value(),this._renderer.setData(e),this.isAnchorsRequired()&&1===e.points.length?(t=new d,t.append(this._renderer),t.append(new l({points:e.points})),t):this._renderer},t.BalloonPaneView=r},842:function(e,t,i){"use strict";function n(e,t){s.call(this,e,t),this._invalidated=!0,this._vertLineRenderer1=new a,this._vertLineRenderer2=new a,this._medianRenderer=new l}var r=i(1).Point,s=i(12).LineSourcePaneView,a=i(146).VerticalLineRenderer,o=i(70).RectangleRenderer,l=i(16).TrendLineRenderer,h=i(4),d=i(212).PaneRendererLine,c=i(8).CompositeRenderer,p=i(19),_=i(311).LineToolBarsPatternMode,u=i(18).LineEnd;inherit(n,s),n.prototype.renderer=function(){var e,t,i,n,s,a,l,f,g,v,w,y,m,x,b,S,P,R,T,L,C,k;if(this._invalidated&&(this.updateImpl(),this._invalidated=!1),this._pattern&&2===this._source.points().length){if(e=this._source.points()[0].index,t=this._source.points()[1].index,!(i=e<t?this._points[0]:this._points[1]))return new c;if(n=parseInt(this._source.properties().mode.value(),10),s=Math.abs((this._points[0].x-this._points[1].x)/(this._pattern.length-1)),n===_.Bars||n===_.OpenClose){for(a=new c,l=n===_.Bars?["high","low"]:["open","close"],f=l[0],g=l[1],v=0;v<this._pattern.length;v++)w=Math.round(i.x+v*s+.5),y=i.y+Math.round(this._pattern[v][f]),m=i.y+Math.round(this._pattern[v][g]),x={},x.points=[new r(w-1,y),new r(w+1,m)],x.color=this._source.properties().color.value(),x.linewidth=1,x.backcolor=this._source.properties().color.value(),x.fillBackground=!0,x.transparency=10,b=new o,b.setData(x),a.append(b);return this.isAnchorsRequired()&&a.append(this.createLineAnchor({points:this._points})),a}return a=new c,x={},x.barSpacing=s, |
|||
x.items=this._pattern,x.histogramBase=0,x.lineIndex=0,x.lineColor=p.generateColor(this._source.properties().color.value(),10),x.lineStyle=CanvasEx.LINESTYLE_SOLID,x.lineWidth=2,x.hittest=new h(h.MOVEPOINT),a.append(new d(x)),this.isAnchorsRequired()&&a.append(this.createLineAnchor({points:this._points})),a}return a=new c,this._points.length<2?a:(S=this._model.timeScale().width(),P=this._source.priceScale().height(),R=this._points[0],T=this._points[1],L={},L.width=S,L.height=P,L.points=[R],L.color="#808080",L.linewidth=1,L.linestyle=CanvasEx.LINESTYLE_SOLID,this._vertLineRenderer1.setData(L),a.append(this._vertLineRenderer1),C={},C.width=S,C.height=P,C.points=[T],C.color="#808080",C.linewidth=1,C.linestyle=CanvasEx.LINESTYLE_SOLID,this._vertLineRenderer2.setData(C),a.append(this._vertLineRenderer2),k={points:[R,T],width:this._model.timeScale().width(),height:this._source.priceScale().height(),color:"#808080",linewidth:1,linestyle:CanvasEx.LINESTYLE_SOLID,extendleft:!1,extendright:!1,leftend:u.Normal,rightend:u.Normal},this._medianRenderer.setData(k),a.append(this._medianRenderer),a)},n.prototype.update=function(){s.prototype._updateImpl.call(this),this._invalidated=!0},n.prototype.updateImpl=function(){var e,t,i,n,s,a,o,l,h,d,c,p,_,u,f,g;!this._source.priceScale()||this._source.priceScale().isEmpty()||this._points.length<2||(this._source._pattern&&this._source._pattern.length>0&&2===this._source.points().length?(e=this._source.priceScale(),t=this._source.firstPatternPrice(),i=this._source.pressCoeff(),e=this._source.priceScale(),n=this._source.ownerSource().firstValue(),s=e.priceRange(),e.isPercent()?(o=s.convertToPercent(t,n),a=e.priceToCoordinate(o)):a=e.priceToCoordinate(t),l=function(r){var o=(r-t)*i+t;return e.isPercent()&&(o=s.convertToPercent(o,n)),e.priceToCoordinate(o)-a},h=parseInt(this._source.properties().mode.value()),d=this._source.points()[0].index,c=this._source.points()[1].index,p=d>c?1:0,_=this._points[p],u=_.x,f=Math.abs((this._points[0].x-this._points[1].x)/(this._source._pattern.length-1)),g={0:function(e){return{high:l(e[TradingView.HIGH_PLOT]),low:l(e[TradingView.LOW_PLOT])}},1:function(e,t){return new r(u+t*f,l(e[TradingView.CLOSE_PLOT])+_.y)},2:function(e){return{open:l(e[TradingView.OPEN_PLOT]),close:l(e[TradingView.CLOSE_PLOT])}},3:function(e,t){return new r(u+t*f,l(e[TradingView.OPEN_PLOT])+_.y)},4:function(e,t){return new r(u+t*f,l(e[TradingView.HIGH_PLOT])+_.y)},5:function(e,t){return new r(u+t*f,l(e[TradingView.LOW_PLOT])+_.y)},6:function(e,t){return new r(u+t*f,l((e[TradingView.HIGH_PLOT]+e[TradingView.LOW_PLOT])/2)+_.y)}},this._pattern=this._source._pattern.map(g[h])):delete this._pattern)},t.BarsPatternPaneView=n},844:function(e,t,i){"use strict";function n(){this._data=null}function r(e,t){a.call(this,e,t),this._invalidated=!0,this._renderer=new n}var s=i(33).distanceToSegment,a=i(12).LineSourcePaneView,o=i(16).TrendLineRenderer,l=i(4),h=i(8).CompositeRenderer,d=i(19),c=i(18).LineEnd,p=i(492);n.prototype.setData=function(e){this._data=e},n.prototype.draw=function(e){ |
|||
var t,i,n,r,s,a,l,h,p,_,u,f,g;if(null!==this._data)if(e.lineCap="butt",e.strokeStyle=this._data.color,e.lineWidth=this._data.linewidth,CanvasEx.setLineStyle(e,this._data.linestyle),t=this._data.points[0],i=this._data.points[1],2===this._data.points.length)e.beginPath(),e.moveTo(t.x,t.y),e.lineTo(i.x,i.y),e.stroke(),this._data.leftend===c.Arrow&&o.prototype.drawArrow(i,t,e,e.lineWidth),this._data.rightend===c.Arrow&&o.prototype.drawArrow(t,i,e,e.lineWidth);else{if(n=this._data.points[2],r=this._data.points[3],s=r.subtract(t),a=n.subtract(s.scaled(.25)),l=n.add(s.scaled(.25)),h=i.subtract(n),p=r.subtract(h.scaled(.25)),_=r.add(h.scaled(.25)),this._data.fillBack&&this._data.points.length>2&&(e.fillStyle=d.generateColor(this._data.backcolor,this._data.transparency),e.beginPath(),e.moveTo(t.x,t.y),e.quadraticCurveTo(a.x,a.y,n.x,n.y),e.bezierCurveTo(l.x,l.y,p.x,p.y,r.x,r.y),e.quadraticCurveTo(_.x,_.y,i.x,i.y),e.fill()),e.beginPath(),this._data.extendLeftPoints.length>0)for(u=this._data.extendLeftPoints[this._data.extendLeftPoints.length-1],e.moveTo(u.x,u.y),f=this._data.extendLeftPoints.length-2;f>=0;f--)g=this._data.extendLeftPoints[f],e.lineTo(g.x,g.y);for(e.moveTo(t.x,t.y),e.quadraticCurveTo(a.x,a.y,n.x,n.y),e.bezierCurveTo(l.x,l.y,p.x,p.y,r.x,r.y),e.quadraticCurveTo(_.x,_.y,i.x,i.y),f=0;f<this._data.extendRightPoints.length;f++)g=this._data.extendRightPoints[f],e.lineTo(g.x,g.y);e.stroke(),this._data.leftend===c.Arrow&&o.prototype.drawArrow(a,t,e,e.lineWidth),this._data.rightend===c.Arrow&&o.prototype.drawArrow(_,i,e,e.lineWidth)}},n.prototype.hitTest=function(e){var t,i,n,r,a,o,h,d,c,_,u,f;if(4===this._data.points.length){if(t=this._data.points[0],i=this._data.points[1],n=this._data.points[2],r=this._data.points[3],a=r.subtract(t),o=n.subtract(a.scaled(.25)),h=n.add(a.scaled(.25)),d=i.subtract(n),c=r.subtract(d.scaled(.25)),_=r.add(d.scaled(.25)),p.quadroBezierHitTest(n,t,o,e)||p.cubicBezierHitTest(n,r,h,c,e)||p.quadroBezierHitTest(r,i,_,e))return new l(l.MOVEPOINT);for(u=3,f=1;f<this._data.extendLeftPoints.length;f++)if(t=this._data.extendLeftPoints[f-1],i=this._data.extendLeftPoints[f],s(t,i,e).distance<u)return new l(l.MOVEPOINT);for(f=1;f<this._data.extendRightPoints.length;f++)if(t=this._data.extendRightPoints[f-1],i=this._data.extendRightPoints[f],s(t,i,e).distance<u)return new l(l.MOVEPOINT)}return null},inherit(r,a),r.prototype.update=function(){a.prototype._updateImpl.call(this),this._invalidated=!0},r.prototype.updateImpl=function(){var e,t,i,n,r,s,a,o,l,h;this._extendLeftPoints=[],this._extendRightPoints=[],this._source.points().length<4||(e=this._source.pointToScreenPoint(this._source.points()[0])[1],t=this._source.pointToScreenPoint(this._source.points()[1])[1],i=this._source.pointToScreenPoint(this._source.points()[2])[1],n=this._source.pointToScreenPoint(this._source.points()[3])[1],r=n.subtract(e),s=i.subtract(r.scaled(.25)),a=t.subtract(i),o=n.add(a.scaled(.25)),l=this._model.timeScale().width(),h=this._source.priceScale().height(), |
|||
this._source.properties().extendLeft.value()&&(this._extendLeftPoints=p.extendQuadroBezier(i,e,s,l,h)),this._source.properties().extendRight.value()&&(this._extendRightPoints=p.extendQuadroBezier(n,t,o,l,h)))},r.prototype.renderer=function(){var e,t,i,n;return this._points.length<2?new h:(this._invalidated&&(this.updateImpl(),this._invalidated=!1),e=[].concat(this._points),this._source._controlPoints&&(e.push(this._source.pointToScreenPoint(this._source._controlPoints[0])[0]),e.push(this._source.pointToScreenPoint(this._source._controlPoints[1])[0])),t={},i=this._source.properties(),t.points=e,t.color=i.linecolor.value(),t.linewidth=i.linewidth.value(),t.linestyle=i.linestyle.value(),t.leftend=i.leftEnd.value(),t.rightend=i.rightEnd.value(),t.fillBack=i.fillBackground.value(),t.backcolor=i.backgroundColor.value(),t.transparency=i.transparency.value(),t.extendLeftPoints=this._extendLeftPoints,t.extendRightPoints=this._extendRightPoints,this._renderer.setData(t),n=new h,n.append(this._renderer),this.addAnchors(n),n)},t.BezierCubicPaneView=r},846:function(e,t,i){"use strict";function n(){this._data=null}function r(e,t){a.call(this,e,t),this._invalidated=!0,this._renderer=new n}var s=i(33).distanceToSegment,a=i(12).LineSourcePaneView,o=i(16).TrendLineRenderer,l=i(4),h=i(8).CompositeRenderer,d=i(19),c=i(18).LineEnd,p=i(492);n.prototype.setData=function(e){this._data=e},n.prototype.draw=function(e){var t,i,n,r,s,a,l,h,p;if(null!==this._data)if(t=this._data.points[0],i=this._data.points[1],e.lineCap="butt",e.strokeStyle=this._data.color,e.lineWidth=this._data.linewidth,CanvasEx.setLineStyle(e,this._data.linestyle),2===this._data.points.length)e.beginPath(),e.moveTo(t.x,t.y),e.lineTo(i.x,i.y),e.stroke();else{if(n=this._data.points[2],r=i.subtract(t),s=n.subtract(r.scaled(.25)),a=n.add(r.scaled(.25)),this._data.fillBack&&this._data.points.length>2&&(e.fillStyle=d.generateColor(this._data.backcolor,this._data.transparency),e.beginPath(),e.moveTo(t.x,t.y),e.quadraticCurveTo(s.x,s.y,n.x,n.y),e.quadraticCurveTo(a.x,a.y,i.x,i.y),e.fill()),e.beginPath(),e.moveTo(t.x,t.y),this._data.extendLeftPoints.length>0)for(l=this._data.extendLeftPoints[this._data.extendLeftPoints.length-1],e.moveTo(l.x,l.y),h=this._data.extendLeftPoints.length-2;h>=0;h--)p=this._data.extendLeftPoints[h],e.lineTo(p.x,p.y);for(e.quadraticCurveTo(s.x,s.y,n.x,n.y),e.quadraticCurveTo(a.x,a.y,i.x,i.y),h=0;h<this._data.extendRightPoints.length;h++)p=this._data.extendRightPoints[h],e.lineTo(p.x,p.y);e.stroke(),this._data.leftend===c.Arrow&&o.prototype.drawArrow(s,t,e,e.lineWidth),this._data.rightend===c.Arrow&&o.prototype.drawArrow(a,i,e,e.lineWidth)}},n.prototype.hitTest=function(e){var t,i,n,r,a,o,h,d;if(null!==this._data&&3===this._data.points.length){if(t=this._data.points[0],i=this._data.points[1],n=this._data.points[2],r=i.subtract(t),a=n.subtract(r.scaled(.25)),o=n.add(r.scaled(.25)),p.quadroBezierHitTest(n,t,a,e)||p.quadroBezierHitTest(n,i,o,e))return new l(l.MOVEPOINT);for(h=3,d=1;d<this._data.extendLeftPoints.length;d++)if(t=this._data.extendLeftPoints[d-1], |
|||
i=this._data.extendLeftPoints[d],s(t,i,e).distance<h)return new l(l.MOVEPOINT);for(d=1;d<this._data.extendRightPoints.length;d++)if(t=this._data.extendRightPoints[d-1],i=this._data.extendRightPoints[d],s(t,i,e).distance<h)return new l(l.MOVEPOINT)}return null},inherit(r,a),r.prototype.update=function(){a.prototype._updateImpl.call(this),this._invalidated=!0},r.prototype.updateImpl=function(){var e,t,i,n,r,s,a,o;this._extendLeftPoints=[],this._extendRightPoints=[],this._source.points().length<3||(e=this._source.pointToScreenPoint(this._source.points()[0])[1],t=this._source.pointToScreenPoint(this._source.points()[1])[1],i=this._source.pointToScreenPoint(this._source.points()[2])[1],n=t.subtract(e),r=i.subtract(n.scaled(.25)),s=i.add(n.scaled(.25)),a=this._model.timeScale().width(),o=this._source.priceScale().height(),this._source.properties().extendLeft.value()&&(this._extendLeftPoints=p.extendQuadroBezier(i,e,r,a,o)),this._source.properties().extendRight.value()&&(this._extendRightPoints=p.extendQuadroBezier(i,t,s,a,o)))},r.prototype.renderer=function(){var e,t,i,n;return this._points.length<2?new h:(this._invalidated&&(this.updateImpl(),this._invalidated=!1),e=[].concat(this._points),this._source._controlPoint&&e.push(this._source.pointToScreenPoint(this._source._controlPoint)[0]),t={},i=this._source.properties(),t.points=e,t.color=i.linecolor.value(),t.linewidth=i.linewidth.value(),t.linestyle=i.linestyle.value(),t.leftend=i.leftEnd.value(),t.rightend=i.rightEnd.value(),t.fillBack=i.fillBackground.value(),t.backcolor=i.backgroundColor.value(),t.transparency=i.transparency.value(),t.extendLeftPoints=this._extendLeftPoints,t.extendRightPoints=this._extendRightPoints,this._renderer.setData(t),n=new h,n.append(this._renderer),this.addAnchors(n),n)},t.BezierQuadroPaneView=r},848:function(e,t,i){"use strict";function n(e,t){s.call(this,e,t),this._invalidated=!0,this._model=t,this._source=e,this._poligonRenderer=new a}var r=i(1).Point,s=i(12).LineSourcePaneView,a=i(164),o=i(74).SelectionRenderer,l=i(8).CompositeRenderer;inherit(n,s),n.prototype.update=function(){this._invalidated=!0},n.prototype._smoothArray=function(e,t){var i,n,s,a,o,l=Array(e.length);for(i=0;i<e.length;i++){for(n=new r(0,0),s=0;s<t;s++)a=Math.max(i-s,0),o=Math.min(i+s,e.length-1),n=n.add(e[a]),n=n.add(e[o]);l[i]=n.scaled(.5/t)}return l.push(e[e.length-1]),l},n.prototype._updateInternal=function(){var e,t,i,n,r,a,o,l,h;if(s.prototype._updateImpl.call(this),e=Math.max(1,this._source.properties().smooth.value()),t=this._points,0!==t.length){for(i=[t[0]],n=1;n<t.length;n++){for(r=t[n].subtract(t[n-1]),a=r.length(),o=Math.min(5,Math.floor(a/e)),l=r.normalized().scaled(a/o),h=0;h<o-1;h++)i.push(t[n-1].add(l.scaled(h)));i.push(t[n])}this._points=this._smoothArray(i,e)}},n.prototype.renderer=function(){var e,t,i,n;return this._invalidated&&(this._updateInternal(),this._invalidated=!1),e={},t=this._source.properties(),e.points=this._points,e.color=t.linecolor.value(),e.linewidth=t.linewidth.value(),e.linestyle=t.linestyle.value(),e.skipClosePath=!0, |
|||
e.leftend=this._source.properties().leftEnd.value(),e.rightend=this._source.properties().rightEnd.value(),t.fillBackground.value()&&this._model.lineBeingCreated()!==this._source&&(e.filled=!0,e.fillBackground=!0,e.backcolor=t.backgroundColor.value(),e.transparency=t.transparency.value()),this._poligonRenderer.setData(e),this.isAnchorsRequired()&&this._source.finished()?(i=new l,i.append(this._poligonRenderer),e.points.length>0&&(n=[e.points[0],e.points[e.points.length-1]],i.append(new o({points:n}))),i):this._poligonRenderer},t.BrushPaneView=n},850:function(e,t,i){"use strict";function n(e){this._data=null,this._textSizeCache=e}function r(e,t){a.call(this,e,t),this._textSizeCache={},this._invalidated=!0,this._renderer=new n(this._textSizeCache)}var s=i(1).Point,a=i(12).LineSourcePaneView,o=i(4),l=i(8).CompositeRenderer,h=i(19),d=i(483).CalloutConsts;!function(){function e(){var e=document.createElement("canvas");e.width=0,e.height=0,t=e.getContext("2d"),e=null}var t;n.prototype.wordWrap=function(i,n){var r,s,a,o,l,h,d,c,p;if(t||e(),n=+n,i+="",r=i.split(/[^\S\r\n]*(?:\r\n|\r|\n|$)/),r[r.length-1]||r.pop(),!isFinite(n)||n<=0)return r;for(t.font=this.fontStyle(),s=[],a=0;a<r.length;a++)if(o=r[a],(l=t.measureText(o).width)<=n)s.push(o);else for(h=o.split(/([-\)\]\},.!?:;])|(\s+)/);h.length;){if((d=~~(n/l*(h.length+2)/3))<=0||t.measureText(h.slice(0,3*d-1).join("")).width<=n)for(;t.measureText(h.slice(0,3*(d+1)-1).join("")).width<=n;)d++;else for(;d>0&&t.measureText(h.slice(0,3*--d-1).join("")).width>n;);if(d>0)s.push(h.slice(0,3*d-1).join("")),h.splice(0,3*d);else{if(c=h[0]+(h[1]||""),p=1===p?1:~~(n/t.measureText(c)*c.length),t.measureText(c.substr(0,p)).width<=n)for(;t.measureText(c.substr(0,p+1)).width<=n;)p++;else for(;p>1&&t.measureText(c.substr(0,--p)).width>n;);p<1&&(p=1),s.push(c.substr(0,p)),h[0]=c.substr(p),h[1]=""}if((l=t.measureText(h.join("")).width)<=n){s.push(h.join(""));break}}return s}}(),n.prototype.setData=function(e){this._data=e,this._data.lines=this.wordWrap(e.text,e.wordWrapWidth)},n.prototype.hitTest=function(e){var t,i,n,r,s;return null===this._data||this._data.points.length<2?null:(t=this._data.points[0],i=this._data.points[1],n=3,t.subtract(e).length()<n?new o(o.CHANGEPOINT,0):(r=i.x-this._textSizeCache.totalWidth/2,s=i.y-this._textSizeCache.totalHeight/2,e.x>=r&&e.x<=r+this._textSizeCache.totalWidth&&e.y>=s&&e.y<=s+this._textSizeCache.totalHeight?new o(o.MOVEPOINT):null))},n.prototype.fontStyle=function(){return(this._data.bold?"bold ":"")+(this._data.italic?"italic ":"")+this._data.fontSize+"px "+this._data.font},n.prototype.draw=function(e){var t,i,n,r,s,a,o,l,c,p,_,u,f,g;if(!(null===this._data||this._data.points.length<2)){for(t=this._data.points[0].clone(),i=this._data.points[1].clone(),e.lineCap="butt",e.strokeStyle=this._data.bordercolor,e.lineWidth=this._data.linewidth,e.textBaseline="bottom",e.font=this.fontStyle(),n=this._data.fontSize*this._data.lines.length,r=this._data.wordWrapWidth||this._data.lines.reduce(function(t,i){return Math.max(t,e.measureText(i).width)},0), |
|||
this._textSizeCache.textHeight=n,this._textSizeCache.textHeight=r,s=d.RoundRadius,a=d.TextMargins,o=r+2*a+2*s,l=n+2*a+2*s,this._textSizeCache.totalWidth=o,this._textSizeCache.totalHeight=l,c=i.x-o/2,p=i.y-l/2,_=0,u=r+2*a>2*s,f=n+2*a>2*s,t.x>c+o?_=20:t.x>c&&(_=10),t.y>p+l?_+=2:t.y>p&&(_+=1),e.save(),e.translate(c,p),t.x-=c,t.y-=p,i.x-=c,i.y-=p,e.beginPath(),e.moveTo(s,0),10===_?u?(e.lineTo(i.x-s,0),e.lineTo(t.x,t.y),e.lineTo(i.x+s,0),e.lineTo(o-s,0)):(e.lineTo(t.x,t.y),e.lineTo(o-s,0)):e.lineTo(o-s,0),20===_?(e.lineTo(t.x,t.y),e.lineTo(o,s)):e.arcTo(o,0,o,s,s),21===_?f?(e.lineTo(o,i.y-s),e.lineTo(t.x,t.y),e.lineTo(o,i.y+s),e.lineTo(o,l-s)):(e.lineTo(t.x,t.y),e.lineTo(o,l-s)):e.lineTo(o,l-s),22===_?(e.lineTo(t.x,t.y),e.lineTo(o-s,l)):e.arcTo(o,l,o-s,l,s),12===_?u?(e.lineTo(i.x+s,l),e.lineTo(t.x,t.y),e.lineTo(i.x-s,l),e.lineTo(s,l)):(e.lineTo(t.x,t.y),e.lineTo(s,l)):e.lineTo(s,l),2===_?(e.lineTo(t.x,t.y),e.lineTo(0,l-s)):e.arcTo(0,l,0,l-s,s),1===_?f?(e.lineTo(0,i.y+s),e.lineTo(t.x,t.y),e.lineTo(0,i.y-s),e.lineTo(0,s)):(e.lineTo(t.x,t.y),e.lineTo(0,s)):e.lineTo(0,s),0===_?(e.lineTo(t.x,t.y),e.lineTo(s,0)):e.arcTo(0,0,s,0,s),e.stroke(),e.fillStyle=h.generateColor(this._data.backcolor,this._data.transparency),e.fill(),e.fillStyle=this._data.color,p=s+a+this._data.fontSize,c=s+a,g=0;g<this._data.lines.length;g++)e.fillText(this._data.lines[g],c,p),p+=this._data.fontSize;e.restore()}},inherit(r,a),r.prototype.update=function(){this._invalidated=!0},r.prototype.updateImpl=function(){a.prototype._updateImpl.call(this),this._source._calculatePoint2()},r.prototype.renderer=function(){var e,t,i,n,r,a,o;return this._invalidated&&(this.updateImpl(),this._invalidated=!1),this._points[0]?this._points.length<2?void 0:(e=this._source.properties(),t={},t.points=[],t.points.push(this._points[0]),i=this._points[1].clone(),i.x=this._points[0].x+this._source._barOffset*this._model.timeScale().barSpacing(),t.points.push(i),t.color=e.color.value(),t.linewidth=e.linewidth.value(),t.backcolor=e.backgroundColor.value(),t.transparency=e.transparency.value(),t.text=e.text.value(),t.font=e.font.value(),t.fontSize=e.fontsize.value(),t.bordercolor=e.bordercolor.value(),e.wordWrap&&e.wordWrap.value()&&(t.wordWrapWidth=e.wordWrapWidth.value()),t.bold=e.bold&&e.bold.value(),t.italic=e.italic&&e.italic.value(),this._renderer.setData(t),this.isAnchorsRequired()?(n=new l,n.append(this._renderer),r=t.points[1],a=[].concat(t.points),a.splice(a.length-1,1),n.append(this.createLineAnchor({points:a})),t.wordWrapWidth&&(o=new s(r.x+(t.wordWrapWidth>>1)+d.RoundRadius+d.TextMargins,r.y),o.data=1,n.append(this.createLineAnchor({points:[o]}))),n):this._renderer):new l},t.CalloutPaneView=r},852:function(e,t,i){"use strict";function n(e,t){s.call(this,e,t),this._lines=[],this._invalidated=!0,this._trendRenderer=new o}var r=i(1).Point,s=i(12).LineSourcePaneView,a=i(146).VerticalLineRenderer,o=i(16).TrendLineRenderer,l=i(4),h=i(8).CompositeRenderer,d=i(18).LineEnd;inherit(n,s),n.prototype.update=function(){this._invalidated=!0},n.prototype.updateImpl=function(){ |
|||
var e,t,i,n,r,a,o;if(s.prototype._updateImpl.call(this),!(this._source.points().length<2)&&(e=this._model.timeScale(),this._source.priceScale()&&!this._source.priceScale().isEmpty()&&!e.isEmpty()&&(t=this._source.points()[0],i=this._source.points()[1],n=i?i.index-t.index:1,this._lines=[],0!==n)))if(r=e.visibleBars(),n>0)for(a=t.index,o=a;o<=r.lastBar();o+=n)this._lines.push({x:e.indexToCoordinate(o)});else for(a=t.index,o=a;o>=r.firstBar();o+=n)this._lines.push({x:e.indexToCoordinate(o)})},n.prototype.renderer=function(){var e,t,i,n,s,o,c,p,_,u,f;if(this._invalidated&&(this.updateImpl(),this._invalidated=!1),e=new h,this._points.length<2)return e;for(t=this._points[0],i=this._points[1],n=this._source.properties(),s={points:[t,i],width:this._model.timeScale().width(),height:this._source.priceScale().height(),color:n.trendline.color.value(),linewidth:n.trendline.linewidth.value(),linestyle:n.trendline.linestyle.value(),extendleft:!1,extendright:!1,leftend:d.Normal,rightend:d.Normal},this._trendRenderer.setData(s),e.append(this._trendRenderer),o=this._model.timeScale().width(),c=this._source.priceScale().height(),n=this._source.properties(),p=0;p<this._lines.length;p++)_={width:o,height:c,points:[new r(this._lines[p].x,0)],color:n.linecolor.value(),linewidth:n.linewidth.value(),linestyle:n.linestyle.value()},u=new a,u.setData(_),e.append(u);return this.isAnchorsRequired()&&(2===this._source.points().length?(f=[].concat(this._points),e.append(this.createLineAnchor({points:f}))):e.append(this.createLineAnchor({points:[new r(this._points[0].x,this._source.priceScale().height()/2)],hittestResult:l.MOVEPOINT}))),e},t.LineToolCircleLinesPaneView=n},854:function(e,t,i){"use strict";function n(e,t){s.call(this,e,t),this._invalidated=!0}var r=i(12).LineSourcePaneView,s=i(412).Pattern5PaneView;inherit(n,s),n.prototype.update=function(){this._invalidated=!0},n.prototype.updateImpl=function(){var e,t,i,n,s;r.prototype._updateImpl.call(this),this._source.points().length>=3&&(e=this._source.points()[0],t=this._source.points()[1],i=this._source.points()[2],this._ABRetracement=Math.round(1e3*Math.abs((i.price-t.price)/(t.price-e.price)))/1e3),this._source.points().length>=4&&(n=this._source.points()[3],this._BCRetracement=Math.round(1e3*Math.abs((n.price-e.price)/(t.price-e.price)))/1e3),this._source.points().length>=5&&(s=this._source.points()[4],this._CDRetracement=Math.round(1e3*Math.abs((s.price-n.price)/(n.price-i.price)))/1e3,this._XDRetracement=Math.round(1e3*Math.abs((s.price-n.price)/(e.price-n.price)))/1e3)},t.CypherPaneView=n},856:function(e,t,i){"use strict";function n(e,t){s.call(this,e,t),this._invalidated=!0,this._percentageFormatter=new d,this._pipFormatter=null,this._lastSymbolInfo=null,this._topBorderRenderer=new l,this._bottomBorderRenderer=new l,this._leftBorderRenderer=new l,this._rightBorderRenderer=new l,this._distanceLineRenderer=new l,this._distancePriceRenderer=new l,this._backgroundRenderer=new o,this._textRenderer=new a({})} |
|||
var r=i(1).Point,s=i(12).LineSourcePaneView,a=i(27).TextRenderer,o=i(70).RectangleRenderer,l=i(16).TrendLineRenderer,h=i(8).CompositeRenderer,d=i(94).PercentageFormatter,c=i(175).TimeSpanFormatter,p=i(145).PipFormatter,_=i(18).LineEnd;inherit(n,s),n.prototype.update=function(){this._invalidated=!0},n.prototype.updateImpl=function(){s.prototype._updateImpl.call(this),this._invalidated=!1},n.prototype.renderer=function(){var e,t,i,n,s,a,o,l,d,u,f,g,v,w,y,m,x,b,S,P,R,T,L,C,k,I,B,M,A,D,E;return this._invalidated&&this.updateImpl(),e=new h,this._points.length<2||this._source.points().length<2?e:(t=this._source.properties(),t.fillBackground&&t.fillBackground.value()&&(i={},i.points=this._points,i.color="white",i.linewidth=0,i.backcolor=t.backgroundColor.value(),i.fillBackground=!0,i.transparency=t.backgroundTransparency.value(),this._backgroundRenderer.setData(i),e.append(this._backgroundRenderer)),n=this,s=function(t,i,r){var s={};s.points=[i,r],s.width=n._model.timeScale().width(),s.height=n._source.priceScale().height(),s.color=n._source.properties().linecolor.value(),s.linewidth=n._source.properties().linewidth.value(),s.linestyle=CanvasEx.LINESTYLE_SOLID,s.extendleft=!1,s.extendright=!1,s.leftend=_.Normal,s.rightend=_.Normal,t.setData(s),e.append(t)},a=this._points[0],o=this._points[1],s(this._topBorderRenderer,a,new r(o.x,a.y)),s(this._bottomBorderRenderer,new r(a.x,o.y),o),s(this._leftBorderRenderer,a,new r(a.x,o.y)),s(this._rightBorderRenderer,new r(o.x,a.y),o),l=(a.y+o.y)/2,d=new r(a.x,l),u=new r(o.x,l),i={},i.points=[d,u],i.width=n._model.timeScale().width(),i.height=n._source.priceScale().height(),i.color=n._source.properties().linecolor.value(),i.linewidth=n._source.properties().linewidth.value(),i.linestyle=CanvasEx.LINESTYLE_DASHED,i.extendleft=!1,i.extendright=!1,i.leftend=_.Normal,i.rightend=_.Arrow,this._distanceLineRenderer.setData(i),e.append(this._distanceLineRenderer),a=this._points[0],o=this._points[1],f=(a.x+o.x)/2,d=new r(f,a.y),u=new r(f,o.y),i={},i.points=[d,u],i.width=n._model.timeScale().width(),i.height=n._source.priceScale().height(),i.color=n._source.properties().linecolor.value(),i.linewidth=n._source.properties().linewidth.value(),i.linestyle=CanvasEx.LINESTYLE_DASHED,i.extendleft=!1,i.extendright=!1,i.leftend=_.Normal,i.rightend=_.Arrow,this._distancePriceRenderer.setData(i),e.append(this._distancePriceRenderer),g=this._source.points()[0].price,v=this._source.points()[1].price,w=v-g,y=100*w/g,m=this._source.points()[0].index,x=this._source.points()[1].index,b=x-m,S=this._model.timeScale().indexToUserTime(m),P=this._model.timeScale().indexToUserTime(x),R="",S&&P&&(T=(P.valueOf()-S.valueOf())/1e3,R=", "+(new c).format(T)),L=this._model.mainSeries().symbolInfo(),L&&L!==this._lastSymbolInfo&&(this._pipFormatter=new p(L.pricescale,L.minmov,L.type,L.minmove2),this._lastSymbolInfo=L),C=this._source.priceScale().formatter().format(w)+" ("+this._percentageFormatter.format(Math.round(100*y)/100)+") "+(this._pipFormatter?this._pipFormatter.format(w):"")+"\n"+$.t("{0} bars").format(b)+R,i={}, |
|||
v>g?(k=o.clone(),k.y-=2*t.fontsize.value(),k.x=.5*(a.x+o.x),i.points=[k]):(k=o.clone(),k.x=.5*(a.x+o.x),k.y+=.7*t.fontsize.value(),i.points=[k]),I={x:0,y:10},i.text=C,i.color=t.textcolor.value(),i.height=n._source.priceScale().height(),i.font=t.font.value(),i.offsetX=I.x,i.offsetY=I.y,i.padding=5,i.vertAlign="middle",i.horzAlign="center",i.fontsize=t.fontsize.value(),i.backgroundRoundRect=4,i.backgroundHorzInflate=.4*t.fontsize.value(),i.backgroundVertInflate=.2*t.fontsize.value(),t.fillLabelBackground&&t.fillLabelBackground.value()&&(i.backgroundColor=t.labelBackgroundColor.value(),i.backgroundTransparency=1-t.labelBackgroundTransparency.value()/100||0),t.drawBorder&&t.drawBorder.value()&&(i.borderColor=t.borderColor.value()),B=.5*(a.x+o.x),M=o.y,A=new r(B,M),this._textRenderer.setData(i),D=this._textRenderer.measure(),E={x:B+i.backgroundHorzInflate+D.textBgPadding-D.width/D.textBgPadding,y:a.y>o.y?A.y-D.height-2*D.textBgPadding-I.y>0?M-D.height-I.y+D.textBgPadding:I.y-2*D.textBgPadding:A.y+D.height+D.textBgPadding+I.y>i.height?i.height-D.height-I.y:M+D.textBgPadding},this._textRenderer.setPoints([new r(B,E.y)]),e.append(this._textRenderer),this.addAnchors(e),e)},t.DateAndPriceRangePaneView=n},858:function(e,t,i){"use strict";function n(e,t){s.call(this,e,t),this._invalidated=!0,this._leftBorderRenderer=new l,this._rightBorderRenderer=new l,this._distancePriceRenderer=new l,this._backgroundRenderer=new o,this._textRenderer=new a({})}var r=i(1).Point,s=i(12).LineSourcePaneView,a=i(27).TextRenderer,o=i(70).RectangleRenderer,l=i(16).TrendLineRenderer,h=i(8).CompositeRenderer,d=i(175).TimeSpanFormatter,c=i(18).LineEnd;inherit(n,s),n.prototype.update=function(){this._invalidated=!0},n.prototype.updateImpl=function(){s.prototype._updateImpl.call(this),this._invalidated=!1},n.prototype.renderer=function(e){var t,i,n,s,a,o,l,p,_,u,f,g,v,w,y,m,x,b,S,P,R,T,L,C,k,I,B,M;return this._invalidated&&this.updateImpl(),t=new h,this._points.length<2||this._source.points().length<2?t:(i=this._source.properties(),n=i.extendTop.value(),s=i.extendBottom.value(),a=this._points[0],o=this._points[1],l=n?0:Math.min(a.y,o.y),p=s?e:Math.max(a.y,o.y),i.fillBackground&&i.fillBackground.value()&&(_={},_.points=[new r(a.x,l),new r(o.x,p)],_.color="white",_.linewidth=0,_.backcolor=i.backgroundColor.value(),_.fillBackground=!0,_.transparency=i.backgroundTransparency.value(),this._backgroundRenderer.setData(_),t.append(this._backgroundRenderer)),u=this,f=function(e,i,n){var r={};r.points=[i,n],r.width=u._model.timeScale().width(),r.height=u._source.priceScale().height(),r.color=u._source.properties().linecolor.value(),r.linewidth=u._source.properties().linewidth.value(),r.linestyle=CanvasEx.LINESTYLE_SOLID,r.extendleft=!1,r.extendright=!1,r.leftend=c.Normal,r.rightend=c.Normal,e.setData(r),t.append(e)},f(this._leftBorderRenderer,new r(a.x,l),new r(a.x,p)),f(this._rightBorderRenderer,new r(o.x,l),new r(o.x,p)),g=(a.y+o.y)/2,v=new r(a.x,g),w=new r(o.x,g),_={},_.points=[v,w],_.width=u._model.timeScale().width(),_.height=u._source.priceScale().height(), |
|||
_.color=u._source.properties().linecolor.value(),_.linewidth=u._source.properties().linewidth.value(),_.linestyle=CanvasEx.LINESTYLE_DASHED,_.extendleft=!1,_.extendright=!1,_.leftend=c.Normal,_.rightend=c.Arrow,this._distancePriceRenderer.setData(_),t.append(this._distancePriceRenderer),y=this._source.points()[0].index,m=this._source.points()[1].index,x=m-y,b=this._model.timeScale().indexToUserTime(y),S=this._model.timeScale().indexToUserTime(m),P="",b&&S&&(R=(S.valueOf()-b.valueOf())/1e3,P=", "+(new d).format(R)),T=$.t("{0} bars").format(x)+P,_={},L={x:0,y:10},_.text=T,_.color=i.textcolor.value(),_.height=u._source.priceScale().height(),_.font=i.font.value(),_.offsetX=L.x,_.offsetY=L.y,_.vertAlign="middle",_.horzAlign="center",_.fontsize=i.fontsize.value(),_.backgroundRoundRect=4,_.backgroundHorzInflate=.4*i.fontsize.value(),_.backgroundVertInflate=.2*i.fontsize.value(),i.fillLabelBackground&&i.fillLabelBackground.value()&&(_.backgroundColor=i.labelBackgroundColor.value(),_.backgroundTransparency=1-i.labelBackgroundTransparency.value()/100||0),i.drawBorder&&i.drawBorder.value()&&(_.borderColor=i.borderColor.value()),C=.5*(a.x+o.x),k=o.y,I=new r(C,k),this._textRenderer.setData(_),B=this._textRenderer.measure(),M={x:C+_.backgroundHorzInflate+B.textBgPadding-B.width/B.textBgPadding,y:a.y>o.y?I.y-B.height-2*B.textBgPadding-L.y>0?k-B.height-L.y-2*B.textBgPadding:L.y-2*B.textBgPadding:I.y+B.height+B.textBgPadding+L.y>_.height?_.height-B.height-L.y:k+B.textBgPadding},this._textRenderer.setPoints([new r(C,M.y)]),t.append(this._textRenderer),this.addAnchors(t),t)},t.DateRangePaneView=n},860:function(e,t,i){"use strict";function n(e,t){r.call(this,e,t),this._label=null,this._invalidated=!0,this._trendLineRendererPoints12=new a,this._trendLineRendererPoints43=new a,this._disjointAngleRenderer=new s,this._p1LabelRenderer=new o({}),this._p2LabelRenderer=new o({}),this._p3LabelRenderer=new o({}),this._p4LabelRenderer=new o({})}var r=i(12).LineSourcePaneView,s=i(493).DisjointAngleRenderer,a=i(16).TrendLineRenderer,o=i(27).TextRenderer,l=i(8).CompositeRenderer,h=i(105).PaneRendererClockIcon;inherit(n,r),n.prototype.update=function(){this._invalidated=!0},n.prototype.updateImpl=function(){var e,t,i,n;r.prototype._updateImpl.call(this),this._label=null,this._source.points().length<2||this._source.priceScale()&&(e=this._source.points()[0],t=this._source.points()[1],this._price1=this._source.priceScale().formatter().format(e.price),this._price2=this._source.priceScale().formatter().format(t.price),3===this._source.points().length&&(i=this._source.points()[2],this._price3=this._source.priceScale().formatter().format(i.price),n=t.price-e.price,this._price4=this._source.priceScale().formatter().format(i.price+n)))},n.prototype.renderer=function(){var e,t,i,n,r,s,a,o,d,c,p,_,u,f,g,v,w;return this._invalidated&&(this.updateImpl(),this._invalidated=!1),e=new l,this._points.length<2?e:(t=this._points[0],i=this._points[1],s=this._source.properties(),a=this._model,o=this._source,this._points.length>=3&&(n=this._points[2],n.x=i.x,d=i.y-t.y, |
|||
r=t.clone(),r.y=n.y+d,r.data=3,s.fillBackground.value()&&(c=a.timeScale().width(),p=o.priceScale().height(),_=s.extendLeft.value(),u=s.extendRight.value(),this._disjointAngleRenderer.setData({width:c,height:p,extendleft:_,extendright:u,points:[t,i,n,r],backcolor:s.backgroundColor.value(),transparency:s.transparency.value(),hittestOnBackground:TradingView.isMobile.any()}),e.append(this._disjointAngleRenderer))),f=function(e,t){return{points:[e,t],width:a.timeScale().width(),height:o.priceScale().height(),color:s.linecolor.value(),linewidth:s.linewidth.value(),linestyle:s.linestyle.value(),extendleft:s.extendLeft.value(),extendright:s.extendRight.value(),leftend:s.leftEnd.value(),rightend:s.rightEnd.value()}},g=this,v=function(t,i,n,r,s,a){var o;g._source.properties().showPrices.value()&&(o={points:[n],text:s,color:g._source.properties().textcolor.value(),horzAlign:n.x>r.x?"left":"right",vertAlign:"middle",font:g._source.properties().font.value(),offsetX:n.x>r.x?-5:5,offsetY:-5,bold:g._source.properties().bold.value(),italic:g._source.properties().italic.value(),fontsize:g._source.properties().fontsize.value()},t.setData(o),e.append(t),o={points:[r],text:a,color:g._source.properties().textcolor.value(),horzAlign:n.x<r.x?"left":"right",vertAlign:"middle",font:g._source.properties().font.value(),offsetX:n.x>r.x?-5:5,offsetY:-5,bold:g._source.properties().bold.value(),italic:g._source.properties().italic.value(),fontsize:g._source.properties().fontsize.value()},i.setData(o),e.append(i))},this._trendLineRendererPoints12.setData(f(t,i)),e.append(this._trendLineRendererPoints12),v(this._p1LabelRenderer,this._p2LabelRenderer,t,i,this._price1,this._price2),2===this._points.length?(this.addAnchors(e),e):(this._trendLineRendererPoints43.setData(f(r,n)),e.append(this._trendLineRendererPoints43),v(this._p3LabelRenderer,this._p4LabelRenderer,n,r,this._price3,this._price4),this.isAnchorsRequired()&&(w=[t,i,n,r],this._model.lineBeingCreated()===this._source&&w.pop(),e.append(this.createLineAnchor({points:w}))),!TradingView.printing&&this._source.hasAlert.value()&&!this._model.readOnly()&&t&&i&&this._source.getAlertIsActive(function(n){e.append(new h({point1:t,point2:i,color:n?s.linecolor.value():defaults("chartproperties.alertsProperties.drawingIcon.color")}))}),e))},t.DisjointAnglePaneView=n},862:function(e,t,i){"use strict";function n(){this._data=null}function r(e,t){p.call(this,e,t),this._invalidated=!0,this._renderer=new n}var s=i(1).Point,a=i(33).distanceToLine,o=i(193),l=o.rotationMatrix,h=o.scalingMatrix,d=o.translationMatrix,c=o.transformPoint,p=i(12).LineSourcePaneView,_=i(4),u=i(8).CompositeRenderer,f=i(19);n.prototype.setData=function(e){this._data=e,this._data.angleFrom=0,this._data.angleTo=2*Math.PI,this._data.clockwise=!1},n.prototype.draw=function(e){var t,i,n,r,o,p,_,u,g,v,w,y,m;if(!(null===this._data||this._data.points.length<2)){if(t=this._data.points[0],i=this._data.points[1],this._data.points.length<3)return e.strokeStyle=this._data.color,e.lineWidth=this._data.linewidth,e.beginPath(),e.moveTo(t.x,t.y), |
|||
e.lineTo(i.x,i.y),void e.stroke();if(n=this._data.points[2],(r=a(t,i,n).distance)<1)return e.strokeStyle=this._data.color,e.lineWidth=this._data.linewidth,e.beginPath(),e.moveTo(t.x,t.y),e.lineTo(i.x,i.y),void e.stroke();o=i.subtract(t),p=t.add(i).scaled(.5),_=new s(-o.y,o.x),_=_.normalized(),n=p.add(_.scaled(r)),e.strokeStyle=this._data.color,e.lineWidth=this._data.linewidth,u=o.length(),g=o.x/u,v=o.y/u,w=Math.acos(g),v<0&&(w=-w),y=this._data.points[2],m=d(-p.x,-p.y),y=c(m,y),m=l(-w),y=c(m,y),m=h(1,u/(2*r)),y=c(m,y),y.y<0?this._data.clockwise=!0:this._data.clockwise=!1,e.save(),e.beginPath(),e.translate(p.x,p.y),e.rotate(w),e.scale(1,2*r/u),e.arc(0,0,.5*u,this._data.angleFrom,this._data.angleTo,this._data.clockwise),e.restore(),e.stroke(),this._data.fillBackground&&(e.fillStyle=f.generateColor(this._data.backcolor,this._data.transparency),e.fill())}},n.prototype._additionalPointTest=function(e,t){return!0},n.prototype.hitTest=function(e){var t,i,n,r,o,p,u,f,g,v,w,y,m,x,b;return null===this._data||this._data.points.length<3?null:(t=this._data.points[0],i=this._data.points[1],n=this._data.points[2],r=a(t,i,n).distance,o=i.subtract(t),p=t.add(i).scaled(.5),u=new s(-o.y,o.x),u=u.normalized(),n=p.add(u.scaled(r)),f=o.length(),g=o.x/f,v=o.y/f,w=Math.acos(g),v<0&&(w=-w),y=d(-p.x,-p.y),e=c(y,e),m=c(y,this._data.points[2]),y=l(-w),e=c(y,e),m=c(y,m),y=h(1,f/(2*r)),e=c(y,e),m=c(y,m),x=e.length(),b=3,this._additionalPointTest(e,m)?Math.abs(x-.5*f)<=b?new _(_.MOVEPOINT):this._data.fillBackground&&!this._data.noHitTestOnBackground&&x<=.5*f?new _(_.MOVEPOINT_BACKGROUND):null:null)},inherit(r,p),r.prototype.update=function(){this._invalidated=!0},r.prototype.updateImpl=function(){p.prototype._updateImpl.call(this),this._invalidated=!1},r.prototype.renderer=function(){var e,t,i,n,r,o,l,h,d,c,p,_,f,g;return this._invalidated&&this.updateImpl(),this._points.length<2?t:(e={},e.points=this._points,e.color=this._source.properties().color.value(),e.linewidth=this._source.properties().linewidth.value(),e.backcolor=this._source.properties().backgroundColor.value(),e.fillBackground=this._source.properties().fillBackground.value(),e.transparency=this._source.properties().transparency.value(),this._renderer.setData(e),this.isAnchorsRequired()?(t=new u,t.append(this._renderer),i=e.points[0],n=e.points[1],2===this._points.length?(this.addAnchors(t),t):(r=e.points[2],o=a(i,n,r).distance,l=n.subtract(i),h=i.add(n).scaled(.5),d=new s(-l.y,l.x),d=d.normalized(),r=h.add(d.scaled(o)),c=h.add(d.scaled(-o)),p=new s(i.x,i.y),p.data=0,_=new s(n.x,n.y),_.data=1,f=new s(r.x,r.y),f.data=2,g=new s(c.x,c.y),g.data=3,t.append(this.createLineAnchor({points:[p,_,f,g]})),t)):this._renderer)},t.EllipsePaneView=r},864:function(e,t,i){"use strict";function n(e,t){this._data=e,this._adapter=t}function r(e,t){a.call(this,e,t),this._invalidated=!0}var s=i(1).Point,a=i(12).LineSourcePaneView,o=i(132),l=i(4);n.prototype._textWidth=function(e){var t,i;return 0===this._adapter.getText().length?0:(e.save(),e.font=this._adapter.getFont(),t=5, |
|||
i=e.measureText(this._adapter.getText()).width,e.restore(),t+i)},n.prototype._drawArrow=function(e,t,i){var n,r;e.save(),e.strokeStyle=this._adapter.getArrowColor(),e.fillStyle=this._adapter.getArrowColor(),n=this._adapter.getArrowHeight(),r=this._adapter.getDirection(),e.translate(t,i),"buy"!==r&&e.rotate(Math.PI),CanvasEx.drawArrow(e,0,0,0,n),e.restore()},n.prototype._drawText=function(e,t,i){var n,r,s=this._adapter.getText();s&&(e.save(),e.textAlign="center",e.textBaseline="middle",e.font=this._adapter.getFont(),e.fillStyle=this._adapter.getTextColor(),n=t+this._textWidth(e)/2,r=i+o.fontHeight(this._adapter.getFont())/2,e.fillText(s,n,r-1),e.restore())},n.prototype.draw=function(e){var t,i,n,r,s,a,l=Math.round(this._data.points[0].x+.5),h=Math.round(this._data.points[0].y);this._drawArrow(e,l,h),0!==(t=this._textWidth(e))&&(i=this._adapter.getArrowHeight(),n=this._adapter.getArrowSpacing(),r=o.fontHeight(this._adapter.getFont()),s=this._adapter.getDirection(),a="buy"===s?h+i+n:h-i-n-r,this._drawText(e,Math.round(l-t/2),a))},n.prototype.hitTest=function(e){var t,i,n,r=Math.round(this._data.points[0].x),s=Math.round(this._data.points[0].y),a=this._adapter.getArrowHeight();return"buy"===this._adapter.getDirection()?(t=s,i=s+a):(t=s-a,i=s),e.x>=r-2&&e.x<=r+2&&e.y>=t&&e.y<=i?(n=this._adapter.getTooltip(),new l(l.CUSTOM,{mouseDownHandler:function(){TradingView.TradingWidget&&TradingView.TradingWidget.journalDialog()},tooltip:""!==n?{text:n,rect:{x:r,y:t,w:2,h:i-t}}:null})):null},inherit(r,a),r.prototype._renderer=null,r.prototype._rendererCached=!1,r.prototype.update=function(){this._invalidated=!0},r.prototype.updateImpl=function(){a.prototype._updateImpl.call(this),this._renderer=null,this._rendererCached=!1,this._invalidated=!1},r.prototype.renderer=function(e){var t,i,r,a,o,l,h,d;return this._invalidated&&this.updateImpl(),this._rendererCached?this._renderer:(this._rendererCached=!0,t=this._source,i=t.points(),0===i.length?null:(r=t._adapter,a=t._model.timeScale(),o=this._source._model.paneForSource(this._source).executionsPositionController(),l=o.getXYCoordinate(r,a,i[0].index),!isFinite(l.y)||l.y<0||l.y>e||l.x<0?(this._renderer=null,null):(h=[new s(l.x,l.y)],d={points:h},this._renderer=new n(d,r),this._renderer)))},t.ExecutionPaneView=r},866:function(e,t,i){"use strict";function n(e,t){s.call(this,e,t)}function r(e,t){a.call(this,e,t),this._rendererCache={},this._invalidated=!0,this._baseLineRenderer=new o,this._lastLevelTrendRenderer=new o}var s=i(314).ParallelChannelRenderer,a=i(12).LineSourcePaneView,o=i(16).TrendLineRenderer,l=i(117),h=i(8).CompositeRenderer,d=i(19),c=i(18).LineEnd;inherit(n,s),n.prototype._getColor=function(){return d.generateColor(this._data.backcolor,this._data.transparency,!0)},inherit(r,a),r.prototype.update=function(){this._invalidated=!0},r.prototype._updateImpl=function(){a.prototype._updateImpl.call(this),this._cacheState=this._model._fibChannelLabelsCache.updateSource(this._source), |
|||
this._floatPoints.length<3||this._source.points().length<3||(this.norm=this._floatPoints[2].subtract(this._floatPoints[0]))},r.prototype.renderer=function(){function e(e,n,r){var s,a,h,c,_;switch(i.horzLabelsAlign.value()){case"left":s=e;break;case"center":s=e.add(n).scaled(.5),s.x+=r.width/2,s.x=Math.round(s.x);break;case"right":s=n.clone(),s.x+=r.width,s.x=Math.round(s.x)}a={left:r.left,top:o.topByRow(p._cacheState.row),width:r.width,height:o.rowHeight(p._cacheState.row)},h={left:Math.round(s.x-a.width),top:Math.round(s.y),width:r.width,height:a.height},c=i.vertLabelsAlign.value(),"middle"===c&&(h.top-=h.height/2),"bottom"===c&&(h.top-=h.height),_=new l(d,a,h),t.append(_)}var t,i,r,s,a,o,d,p,_,u,f,g,v,w,y,m,x,b,S,P,R,T,L,C;if(this._invalidated&&(this._updateImpl(),this._invalidated=!1),t=new h,this._floatPoints.length<2)return this.addAnchors(t),t;if(i=this._source.properties(),r=this._floatPoints[0],s=this._floatPoints[1],this._floatPoints.length<3)return a={points:[r,s],width:this._model.timeScale().width(),height:this._source.priceScale().height(),color:i.level1.color.value(),linewidth:i.levelsStyle.linewidth.value(),linestyle:i.levelsStyle.linestyle.value(),extendleft:i.extendLeft.value(),extendright:i.extendRight.value(),leftend:c.Normal,rightend:c.Normal},this._baseLineRenderer.setData(a),t.append(this._baseLineRenderer),this.addAnchors(t),t;for(o=this._model._fibChannelLabelsCache,d=o.canvas().get(0),p=this,_=this._source.levelsCount(),u=1;u<_;u++)if(f=i["level"+u],f.visible.value()){for(g=null,v=u+1;v<=_;v++)if(w=i["level"+v],w.visible.value()){g=w;break}if(!g)break;y=this.norm.scaled(f.coeff.value()),m=r.add(y),x=s.add(y),b=this.norm.scaled(g.coeff.value()),S=r.add(b),P=s.add(b),R={},R.points=[m,x,S,P],R.color=f.color.value(),R.width=this._model.timeScale().width(),R.height=this._source.priceScale().height(),R.linewidth=i.levelsStyle.linewidth.value(),R.linestyle=i.levelsStyle.linestyle.value(),R.extendleft=i.extendLeft.value(),R.extendright=i.extendRight.value(),R.backcolor=f.color.value(),R.transparency=i.transparency.value(),R.skipTopLine=!0,R.fillBackground=i.fillBackground.value(),R.hittestOnBackground=!0,T=new n,T.setData(R),t.append(T),(i.showCoeffs.value()||i.showPrices.value())&&(L=this._cacheState.preparedCells.cells[u-1],e(m,x,L))}for(C=null,u=_;u>=1;u--)if(f=i["level"+u],f.visible.value()){C=u;break}return null!=C&&(f=i["level"+C],f.visible.value()&&(y=this.norm.scaled(f.coeff.value()),m=r.add(y),x=s.add(y),a={points:[m,x],width:this._model.timeScale().width(),height:this._source.priceScale().height(),color:f.color.value(),linewidth:i.levelsStyle.linewidth.value(),linestyle:i.levelsStyle.linestyle.value(),extendleft:i.extendLeft.value(),extendright:i.extendRight.value(),leftend:c.Normal,rightend:c.Normal},this._lastLevelTrendRenderer.setData(a),t.append(this._lastLevelTrendRenderer),(i.showCoeffs.value()||i.showPrices.value())&&e(m,x,this._cacheState.preparedCells.cells[C-1]))),this.addAnchors(t),t},t.FibChannelPaneView=r},868:function(e,t,i){"use strict";function n(e,t){s.call(this,e,t), |
|||
this._rendererCache={},this._invalidated=!0,this._numericFormatter=new d,this._trendLineRenderer=new a}var r=i(1).Point,s=i(12).LineSourcePaneView,a=i(16).TrendLineRenderer,o=i(117),l=i(4),h=i(8).CompositeRenderer,d=i(38).NumericFormatter,c=i(494).EllipseRendererSimple,p=i(18).LineEnd;inherit(n,s),n.prototype.update=function(){this._invalidated=!0},n.prototype._updateImpl=function(){var e,t,i,n,a,o,l,h,d,c,p,_,u;if(s.prototype._updateImpl.call(this),this._cacheState=this._model._fibCirclesLabelsCache.updateSource(this._source),!(this._source.points().length<2)&&this._source.priceScale()&&!this._source.priceScale().isEmpty()&&!this._model.timeScale().isEmpty())for(e=this._points[0],t=this._points[1],this._center=e.add(t).scaled(.5),i=Math.abs(t.x-e.x),n=Math.abs(t.y-e.y),this._levels=[],a=this._source.properties(),o=this._source.levelsCount(),l=1;l<=o;l++)h="level"+l,d=a[h],d.visible.value()&&(c=d.coeff.value(),p=d.color.value(),_=[],_.push(new r(this._center.x-.5*i*c,this._center.y-.5*n*c)),_.push(new r(this._center.x+.5*i*c,this._center.y+.5*n*c)),u=new r(this._center.x,this._center.y+.5*n*c),this._levels.push({color:p,points:_,labelPoint:u,linewidth:d.linewidth.value(),linestyle:d.linestyle.value(),index:l}))},n.prototype.renderer=function(){var e,t,i,n,r,s,a,d,_,u,f,g,v,w,y;if(this._invalidated&&(this._updateImpl(),this._invalidated=!1),e=new h,this._points.length<2)return e;for(t=this._source.properties(),i=t.fillBackground.value(),n=t.transparency.value(),r=this._model._fibCirclesLabelsCache,s=r.canvas().get(0),a=0;a<this._levels.length;a++)if(d=this._levels[a],_={},_.points=d.points,_.color=d.color,_.linewidth=d.linewidth,_.backcolor=d.color,a>0&&(_.wholePoints=this._levels[a-1].points),_.fillBackground=i,_.transparency=n,u=new l(l.MOVEPOINT,null,d.index),e.append(new c(_,u)),t.showCoeffs.value()){if(!(f=this._cacheState.preparedCells.cells[this._levels[a].index-1]))continue;g={left:f.left,top:r.topByRow(this._cacheState.row),width:f.width,height:r.rowHeight(this._cacheState.row)},v={left:Math.round(d.labelPoint.x-g.width),top:Math.round(d.labelPoint.y-g.height/2),width:f.width,height:g.height},w=new o(s,g,v),e.append(w)}return t.trendline.visible.value()&&(y={points:[this._points[0],this._points[1]],width:this._model.timeScale().width(),height:this._source.priceScale().height(),color:t.trendline.color.value(),linewidth:t.trendline.linewidth.value(),linestyle:t.trendline.linestyle.value(),extendleft:!1,extendright:!1,leftend:p.Normal,rightend:p.Normal},this._trendLineRenderer.setData(y),e.append(this._trendLineRenderer)),this.addAnchors(e),e},t.FibCirclesPaneView=n},870:function(e,t,i){"use strict";function n(e,t){a.call(this,e,t),this._rendererCache={},this._invalidated=!0,this._trendLineRenderer=new o}var r=i(1).Point,s=i(70).RectangleRenderer,a=i(12).LineSourcePaneView,o=i(16).TrendLineRenderer,l=i(117),h=i(4),d=i(8).CompositeRenderer,c=i(18).LineEnd;inherit(n,a),n.prototype.update=function(){this._invalidated=!0},n.prototype._updateImpl=function(){var e,t,i,n,r,s,o,l,h,d,c,p,_,u,f |
|||
;if(a.prototype._updateImpl.call(this),this._cacheState=this._model._fibRetracementLabelsCache.updateSource(this._source),!(this._source.points().length<2)&&this._source.priceScale()&&!this._source.priceScale().isEmpty()&&!this._model.timeScale().isEmpty()&&(e=this._source.points()[0],t=this._source.points()[1],i=!1,n=this._source.properties(),n.reverse&&n.reverse.value()&&(i=n.reverse.value()),this._levels=[],r=i?t.price-e.price:e.price-t.price,s=i?e.price:t.price,!this._source.priceScale().isPercent()||null!==(o=this._source.ownerSource().firstValue())))for(l=this._source.levelsCount(),h=1;h<=l;h++)d="level"+h,c=n[d],c.visible.value()&&(p=c.coeff.value(),_=c.color.value(),u=s+p*r,this._source.priceScale().isPercent()&&(u=this._source.priceScale().priceRange().convertToPercent(u,o)),f=this._source.priceScale().priceToCoordinate(u),this._levels.push({color:_,y:f,linewidth:n.levelsStyle.linewidth.value(),linestyle:n.levelsStyle.linestyle.value(),index:h}))},n.prototype.renderer=function(){var e,t,i,n,a,p,_,u,f,g,v,w,y,m,x,b,S,P,R,T,L,C;if(this._invalidated&&(this._updateImpl(),this._invalidated=!1),e=new d,this._points.length<2)return e;for(t=this._points[0],i=this._points[1],n=Math.min(t.x,i.x),a=Math.max(t.x,i.x),p=this._source.properties(),_=p.fillBackground.value(),u=p.transparency.value(),f=p.extendLines.value()?this._model.timeScale().width():a,g=this._model._fibRetracementLabelsCache,v=g.canvas().get(0),w=0;w<this._levels.length;w++)if(w>0&&_&&(y=this._levels[w-1],t=new r(n,this._levels[w].y),i=new r(f,y.y),m={},m.points=[t,i],m.color=this._levels[w].color,m.linewidth=0,m.backcolor=this._levels[w].color,m.fillBackground=!0,m.transparency=u,x=new s(void 0,void 0,!0),x.setData(m),e.append(x)),t=new r(n,this._levels[w].y),i=new r(a,this._levels[w].y),b={points:[t,i],width:this._model.timeScale().width(),height:this._source.priceScale().height(),color:this._levels[w].color,linewidth:this._levels[w].linewidth,linestyle:this._levels[w].linestyle,extendleft:!1,extendright:p.extendLines.value(),leftend:c.Normal,rightend:c.Normal},x=new o,x.setData(b),x.setHitTest(new h(h.MOVEPOINT,null,this._levels[w].index)),e.append(x),p.showCoeffs.value()||p.showPrices.value()){if(!this._cacheState.preparedCells)continue;if(!(S=this._cacheState.preparedCells.cells[this._levels[w].index-1]))continue;switch(p.horzLabelsAlign.value()){case"left":P=t;break;case"center":P=t.add(i).scaled(.5),P.x+=S.width/2,P.x=Math.round(P.x);break;case"right":p.extendLines.value()?P=new r(f-4,this._levels[w].y):(P=new r(f+4,this._levels[w].y),P.x+=S.width,P.x=Math.round(P.x))}R={left:S.left,top:g.topByRow(this._cacheState.row),width:S.width,height:g.rowHeight(this._cacheState.row)},T={left:P.x-R.width,top:P.y,width:S.width,height:R.height},L=p.vertLabelsAlign.value(),"middle"===L&&(T.top-=T.height/2),"bottom"===L&&(T.top-=T.height),C=new l(v,R,T),e.append(C)}return p.trendline.visible.value()&&(b={points:[this._points[0],this._points[1]],width:this._model.timeScale().width(),height:this._source.priceScale().height(),color:p.trendline.color.value(), |
|||
linewidth:p.trendline.linewidth.value(),linestyle:p.trendline.linestyle.value(),extendleft:!1,extendright:!1,leftend:c.Normal,rightend:c.Normal},this._trendLineRenderer.setData(b),e.append(this._trendLineRenderer)),this.addAnchors(e),e},t.FibRetracementPaneView=n},872:function(e,t,i){"use strict";function n(e,t,i){this._data=e,this._hittest=t||new d(d.MOVEPOINT),this._backHittest=i||new d(d.MOVEPOINT_BACKGROUND)}function r(e,t){o.call(this,e,t),this._rendererCache={},this._invalidated=!0,this._trendLineRenderer=new l}var s=i(1).Point,a=i(56),o=i(12).LineSourcePaneView,l=i(16).TrendLineRenderer,h=i(117),d=i(4),c=i(8).CompositeRenderer,p=i(19),_=i(18).LineEnd;n.prototype.draw=function(e){e.lineCap="butt",e.strokeStyle=this._data.color,e.lineWidth=this._data.linewidth,e.translate(this._data.center.x,this._data.center.y),e.beginPath(),this._data.fullCircles?e.arc(0,0,this._data.radius,2*Math.PI,0,!1):this._data.dir>0?e.arc(0,0,this._data.radius,0,Math.PI,!1):e.arc(0,0,this._data.radius,Math.PI,0,!1),e.stroke(),this._data.fillBackground&&(this._data.radius2&&(this._data.fullCircles?e.arc(0,0,this._data.radius2,2*Math.PI,0,!0):this._data.dir>0?e.arc(0,0,this._data.radius2,Math.PI,0,!0):e.arc(0,0,this._data.radius2,0,Math.PI,!0)),e.fillStyle=p.generateColor(this._data.color,this._data.transparency,!0),e.fill())},n.prototype.hitTest=function(e){var t,i,n;return a.sign(e.y-this._data.center.y)===this._data.dir||this._data.fullCircles?(t=e.subtract(this._data.center),i=t.length(),n=3,Math.abs(i-this._data.radius)<n?this._hittest:this._data.hittestOnBackground&&Math.abs(i)<=this._data.radius+n?this._backHittest:null):null},inherit(r,o),r.prototype.update=function(){this._invalidated=!0},r.prototype._updateImpl=function(){var e,t,i,n,r,l,h,d,c,p,_,u,f;if(o.prototype._updateImpl.call(this),this._cacheState=this._model._fibSpeedResistanceArcsLabelsCache.updateSource(this._source),!(this._floatPoints.length<2)&&this._source.priceScale()&&!this._source.priceScale().isEmpty()&&!this._model.timeScale().isEmpty())for(e=this._floatPoints[0],t=this._floatPoints[1],i=e.subtract(t).length(),this._levels=[],n=this._source.properties(),r=this._source.levelsCount(),l=1;l<=r;l++)h="level"+l,d=n[h],d.visible.value()&&(c=d.coeff.value(),p=d.color.value(),_=t.subtract(e).length()*c,u=a.sign(t.y-e.y),f=new s(e.x,e.y+u*i*c),this._levels.push({color:p,radius:_,dir:u,labelPoint:f,linewidth:d.linewidth.value(),linestyle:d.linestyle.value(),index:l}))},r.prototype.renderer=function(){var e,t,i,r,s,a,o,l,p,u,f,g,v,w,y,m;if(this._invalidated&&(this._updateImpl(),this._invalidated=!1),e=new c,this._floatPoints.length<2)return e;for(t=this._floatPoints[0],i=this._source.properties(),r=i.fillBackground.value(),s=i.transparency.value(),a=this._model._fibSpeedResistanceArcsLabelsCache,o=a.canvas().get(0),l=0;l<this._levels.length;l++)if(p=this._levels[l],u={},u.center=t,u.color=p.color,u.linewidth=p.linewidth,u.radius=p.radius,u.dir=p.dir,u.transparency=s,u.fillBackground=r,u.hittestOnBackground=!0,u.fullCircles=i.fullCircles.value(), |
|||
l>0&&(u.radius2=this._levels[l-1].radius),f=new d(d.MOVEPOINT,null,p.index),e.append(new n(u,f)),i.showCoeffs.value()){if(!(g=this._cacheState.preparedCells.cells[this._levels[l].index-1]))continue;v={left:g.left,top:a.topByRow(this._cacheState.row),width:g.width,height:a.rowHeight(this._cacheState.row)},w={left:Math.round(p.labelPoint.x-v.width),top:Math.round(p.labelPoint.y-v.height/2),width:g.width,height:v.height},y=new h(o,v,w),e.append(y)}return i.trendline.visible.value()&&(m={points:[this._floatPoints[0],this._floatPoints[1]],width:this._model.timeScale().width(),height:this._source.priceScale().height(),color:i.trendline.color.value(),linewidth:i.trendline.linewidth.value(),linestyle:i.trendline.linestyle.value(),extendleft:!1,extendright:!1,leftend:_.Normal,rightend:_.Normal},this._trendLineRenderer.setData(m),e.append(this._trendLineRenderer)),this.addAnchors(e),e},t.FibSpeedResistanceArcsPaneView=r},874:function(e,t,i){"use strict";function n(e,t){s.call(this,e,t),this._numericFormatter=new c,this._invalidated=!0}var r=i(1).Point,s=i(12).LineSourcePaneView,a=i(229).ChannelRenderer,o=i(27).TextRenderer,l=i(16).TrendLineRenderer,h=i(4),d=i(8).CompositeRenderer,c=i(38).NumericFormatter,p=i(18).LineEnd;inherit(n,s),n.prototype.update=function(){this._invalidated=!0},n.prototype.updateImpl=function(){var e,t,i,n,r,a,o,l,h,d,c,p,_,u;if(s.prototype._updateImpl.call(this),!(this._source.points().length<2)&&this._source.priceScale()&&!this._source.priceScale().isEmpty()&&!this._model.timeScale().isEmpty()){for(e=this._source.points()[0],t=this._source.points()[1],this._hlevels=[],i=t.price-e.price,this._source.priceScale().isPercent()&&(n=this._source.ownerSource().firstValue()),r=1;r<=7;r++)a="hlevel"+r,o=this._source.properties()[a],o.visible.value()&&(l=o.coeff.value(),h=o.color.value(),d=e.price+l*i,this._source.priceScale().isPercent()&&(d=this._source.priceScale().priceRange().convertToPercent(d,n)),c=this._source.priceScale().priceToCoordinate(d,!0),this._hlevels.push({coeff:l,color:h,y:c,index:r}));for(this._vlevels=[],p=t.index-e.index,r=1;r<=7;r++)a="vlevel"+r,o=this._source.properties()[a],o.visible.value()&&(l=o.coeff.value(),h=o.color.value(),_=Math.round(e.index+l*p),u=this._model.timeScale().indexToCoordinate(_,!0),this._vlevels.push({coeff:l,color:h,x:u,index:r}))}},n.prototype.renderer=function(){var e,t,i,n,s,c,_,u,f,g,v,w,y,m,x,b,S,P,R,T,L,C,k,I;if(this._invalidated&&(this.updateImpl(),this._invalidated=!1),e=new d,this._floatPoints.length<2)return e;for(t=this._floatPoints[0],i=this._floatPoints[1],n=Math.min(t.x,i.x),s=Math.min(t.y,i.y),c=Math.max(t.x,i.x),_=Math.max(t.y,i.y),u=this._source.properties(),f=u.grid.color.value(),g=u.grid.linewidth.value(),v=u.grid.linestyle.value(),w=0;w<this._hlevels.length;w++)t=new r(n,this._hlevels[w].y),i=new r(c,this._hlevels[w].y),u.grid.visible.value()&&(y={points:[t,i],width:this._model.timeScale().width(),height:this._source.priceScale().height(),color:f,linewidth:g,linestyle:v,extendleft:!1,extendright:!1,leftend:p.Normal,rightend:p.Normal},m=new l, |
|||
m.setData(y),e.append(m)),u.showLeftLabels.value()&&(x={points:[t],text:this._numericFormatter.format(this._hlevels[w].coeff),color:this._hlevels[w].color,vertAlign:"middle",horzAlign:"right",font:u.font.value(),offsetX:-5,offsetY:0,fontsize:12},e.append(new o(x))),u.showRightLabels.value()&&(b={points:[i],text:this._numericFormatter.format(this._hlevels[w].coeff),color:this._hlevels[w].color,vertAlign:"middle",horzAlign:"left",font:u.font.value(),offsetX:5,offsetY:0,fontsize:12},e.append(new o(b)));for(w=0;w<this._vlevels.length;w++)t=new r(this._vlevels[w].x,s),i=new r(this._vlevels[w].x,_),u.grid.visible.value()&&(y={points:[t,i],width:this._model.timeScale().width(),height:this._source.priceScale().height(),color:f,linewidth:g,linestyle:v,extendleft:!1,extendright:!1,leftend:p.Normal,rightend:p.Normal},m=new l,m.setData(y),e.append(m)),u.showTopLabels.value()&&(S={points:[t],text:this._numericFormatter.format(this._vlevels[w].coeff),color:this._vlevels[w].color,vertAlign:"bottom",horzAlign:"center",font:u.font.value(),offsetX:0,offsetY:-5,fontsize:12},e.append(new o(S))),u.showBottomLabels.value()&&(P={points:[i],text:this._numericFormatter.format(this._vlevels[w].coeff),color:this._vlevels[w].color,vertAlign:"top",horzAlign:"center",font:u.font.value(),offsetX:0,offsetY:5,fontsize:12},e.append(new o(P)));for(R=u.fillBackground.value(),T=u.transparency.value(),t=this._floatPoints[0],i=this._floatPoints[1],w=0;w<this._hlevels.length;w++)L=new r(i.x,this._hlevels[w].y),w>0&&R&&(C=new r(i.x,this._hlevels[w-1].y),k={},k.width=this._model.timeScale().width(),k.height=this._source.priceScale().height(),k.p1=t,k.p2=L,k.p3=t,k.p4=C,k.color=this._hlevels[w].color,k.transparency=T,k.hittestOnBackground=!0,m=new a,m.setData(k),e.append(m)),y={points:[t,L],width:this._model.timeScale().width(),height:this._source.priceScale().height(),color:this._hlevels[w].color,linewidth:u.linewidth.value(),linestyle:u.linestyle.value(),extendleft:!1,extendright:!0,leftend:p.Normal,rightend:p.Normal},m=new l,m.setData(y),m.setHitTest(new h(h.MOVEPOINT,null,{type:"h",index:this._hlevels[w].index})),e.append(m);for(w=0;w<this._vlevels.length;w++)I=new r(this._vlevels[w].x,i.y),w>0&&R&&(C=new r(this._vlevels[w-1].x,i.y),k={},k.width=this._model.timeScale().width(),k.height=this._source.priceScale().height(),k.p1=t,k.p2=I,k.p3=t,k.p4=C,k.color=this._vlevels[w].color,k.transparency=T,k.hittestOnBackground=!0,m=new a,m.setData(k),e.append(m)),y={points:[t,I],width:this._model.timeScale().width(),height:this._source.priceScale().height(),color:this._vlevels[w].color,linewidth:u.linewidth.value(),linestyle:u.linestyle.value(),extendleft:!1,extendright:!0,leftend:p.Normal,rightend:p.Normal},m=new l,m.setData(y),m.setHitTest(new h(h.MOVEPOINT,null,{type:"v",index:this._vlevels[w].index})),e.append(m);return this.addAnchors(e),e},t.FibSpeedResistanceFanPaneView=n},876:function(e,t,i){"use strict";function n(){this._data=null}function r(e,t){s.call(this,e,t),this._invalidated=!0,this._trendLineRenderer=new a,this._spiralRenderer=new n} |
|||
var s=i(12).LineSourcePaneView,a=i(16).TrendLineRenderer,o=i(4),l=i(8).CompositeRenderer,h=i(18).LineEnd;n.prototype.setData=function(e){this._data=e},n.prototype._fibNumbers=function(){return[0,1,2,3,5,8,13,21,34,55,89]},n.prototype._continiusFib=function(e){var t,i,n=this._fibNumbers(),r=Math.floor(e),s=Math.ceil(e);return s>=n.length?null:(t=e-r,t=Math.pow(t,1.15),i=n[s]-n[r],n[r]+i*t)},n.prototype.hitTest=function(e){var t,i,n,r,s,a,l,h,d,c,p,_,u;if(null===this._data)return null;for(t=this._data.points[0],i=this._data.points[1],n=i.subtract(t),r=e.subtract(t),s=n.normalized(),a=s.transposed(),l=r.normalized(),h=Math.acos(s.dotProduct(l)),d=Math.asin(a.dotProduct(l)),d<0&&(h=2*Math.PI-h),c=r.length(),p=0;p<4;p++)if(_=h/(.5*Math.PI),u=this._continiusFib(_+4*p),null!==(u=u*n.length()/5)&&Math.abs(u-c)<5)return new o(o.MOVEPOINT);return null},n.prototype.draw=function(e){var t,i,n,r,s,a,o,l,h,d,c,p;if(null!==this._data){for(e.lineCap="round",e.strokeStyle=this._data.color,t=this._data.points[0],i=this._data.points[1],e.translate(t.x,t.y),n=i.subtract(t),r=n.length(),n=n.normalized(),s=Math.acos(n.x),Math.asin(n.y)<0&&(s=2*Math.PI-s),e.rotate(s),e.scale(r/5,r/5),e.lineWidth=this._data.linewidth,CanvasEx.setLineStyle(e,this._data.linestyle),a=50,o=Math.PI/(2*a),e.moveTo(0,0),l=0;l<(this._fibNumbers().length-1)*a;l++)h=l*o,d=this._continiusFib(l/a),c=Math.cos(h)*d,p=Math.sin(h)*d,e.lineTo(c,p);e.scale(5/r,5/r),e.rotate(-s),e.stroke()}},inherit(r,s),r.prototype.update=function(){this._invalidated=!0},r.prototype.updateImpl=function(){s.prototype._updateImpl.call(this),this._invalidated=!1},r.prototype.renderer=function(){var e,t;return this._invalidated&&this.updateImpl(),e=new l,this._floatPoints.length<2?e:(t={},t.points=this._floatPoints,t.width=this._model.timeScale().width(),t.height=this._source.priceScale().height(),t.color=this._source.properties().linecolor.value(),t.linewidth=this._source.properties().linewidth.value(),t.linestyle=this._source.properties().linestyle.value(),t.extendleft=!1,t.extendright=!0,t.leftend=h.Normal,t.rightend=h.Normal,this._trendLineRenderer.setData(t),e.append(this._trendLineRenderer),t={},t.points=this._floatPoints,t.width=this._model.timeScale().width(),t.height=this._source.priceScale().height(),t.color=this._source.properties().linecolor.value(),t.linewidth=this._source.properties().linewidth.value(),t.linestyle=this._source.properties().linestyle.value(),this._spiralRenderer.setData(t),e.append(this._spiralRenderer),this.isAnchorsRequired()&&this.addAnchors(e),e)},t.FibSpiralPaneView=r},878:function(e,t,i){"use strict";function n(e,t){s.call(this,e,t),this._levels=[],this._invalidated=!0,this._trendRenderer=new h}var r=i(1).Point,s=i(12).LineSourcePaneView,a=i(146).VerticalLineRenderer,o=i(27).TextRenderer,l=i(70).RectangleRenderer,h=i(16).TrendLineRenderer,d=i(4),c=i(8).CompositeRenderer,p=i(18).LineEnd;inherit(n,s),n.prototype.update=function(){this._invalidated=!0},n.prototype.updateImpl=function(){var e,t,i,n,r,a,o,l,h,d;if(s.prototype._updateImpl.call(this), |
|||
!(this._source.points().length<1)&&this._source.priceScale()&&!this._source.priceScale().isEmpty()&&!this._model.timeScale().isEmpty()&&(e=this._source.points()[0],2===this._source.points().length&&(t=this._source.points()[1]),i=this._source.properties(),n=this._source.points()[0].index,null!==this._model.timeScale().visibleBars()))for(this._levels=[],r=t?t.index-e.index:1,a=1;a<=11;a++)o=i["level"+a],o.visible.value()&&(l=Math.round(n+o.coeff.value()*r),h=this._model.timeScale().indexToCoordinate(l),d={index:a,x:h,color:o.color.value(),width:o.linewidth.value(),style:o.linestyle.value()},i.showLabels.value()&&(d.text=o.coeff.value(),d.y=this._source.priceScale().height()),this._levels.push(d))},n.prototype.renderer=function(){var e,t,i,n,s,h,_,u,f,g,v,w,y,m,x,b,S,P;for(this._invalidated&&(this.updateImpl(),this._invalidated=!1),e=this._model.timeScale().width(),t=this._source.priceScale().height(),i=new c,n=this._source.properties(),s=0;s<this._levels.length;s++)if(h={},h.width=e,h.height=t,h.points=[new r(this._levels[s].x,0)],h.color=this._levels[s].color,h.linewidth=this._levels[s].width,h.linestyle=this._levels[s].style,_=new d(d.MOVEPOINT,null,this._levels[s].index),u=new a,u.setData(h),u.setHitTest(_),i.append(u),s>0&&n.fillBackground.value()&&(f=this._levels[s-1],g=new r(this._levels[s].x,0),v=new r(f.x,this._source.priceScale().height()),w={},w.points=[g,v],w.color=this._levels[s].color,w.linewidth=0,w.backcolor=this._levels[s].color,w.fillBackground=!0,w.transparency=n.transparency.value(),u=new l(void 0,void 0,!0),u.setData(w),i.append(u)),void 0!==this._levels[s].text){switch(b=n.horzLabelsAlign.value(),b="left"===b?"right":"right"===b?"left":"center"){case"left":m=3;break;case"center":m=0;break;case"right":m=-3}switch(n.vertLabelsAlign.value()){case"top":y=new r(this._levels[s].x,0),x=5;break;case"middle":y=new r(this._levels[s].x,.5*this._levels[s].y),x=0;break;case"bottom":y=new r(this._levels[s].x,this._levels[s].y),x=-10}S={points:[y],text:""+this._levels[s].text,color:h.color,vertAlign:"middle",horzAlign:b,font:n.font.value(),offsetX:m,offsetY:x,fontsize:12},i.append(new o(S))}return 2===this._points.length&&(P={points:[this._points[0],this._points[1]],width:this._model.timeScale().width(),height:this._source.priceScale().height(),color:n.trendline.color.value(),linewidth:n.trendline.linewidth.value(),linestyle:n.trendline.linestyle.value(),extendleft:!1,extendright:!1,leftend:p.Normal,rightend:p.Normal},this._trendRenderer.setData(P),i.append(this._trendRenderer)),this.isAnchorsRequired()&&(2===this._source.points().length?i.append(this.createLineAnchor({points:this._points})):this._points.length>0&&i.append(this.createLineAnchor({points:[new r(this._points[0].x,this._source.priceScale().height()/2)],hittestResult:d.MOVEPOINT}))),i},t.FibTimeZonePaneView=n},881:function(e,t,i){"use strict";function n(e,t){r.call(this,e,t),this._label1=null,this._label2=null,this._invalidated=!0,this._trendLineRendererPoints12=new a,this._trendLineRendererPoints43=new a,this._disjointAngleRenderer=new s, |
|||
this._p1LabelRenderer=new o({}),this._p2LabelRenderer=new o({}),this._p3LabelRenderer=new o({}),this._p4LabelRenderer=new o({})}var r=i(12).LineSourcePaneView,s=i(493).DisjointAngleRenderer,a=i(16).TrendLineRenderer,o=i(27).TextRenderer,l=i(8).CompositeRenderer,h=i(105).PaneRendererClockIcon;inherit(n,r),n.prototype.update=function(){this._invalidated=!0},n.prototype.updateImpl=function(){var e,t,i;r.prototype._updateImpl.call(this),this._label1=null,this._label2=null,this._source.points().length<2||this._source.priceScale()&&(e=this._source.points()[0],t=this._source.points()[1],this._price1=this._source.priceScale().formatter().format(e.price),this._price2=this._source.priceScale().formatter().format(t.price),3===this._source.points().length&&(i=this._source.points()[2],this._price3=this._source.priceScale().formatter().format(i.price)))},n.prototype.renderer=function(){var e,t,i,n,r,s,a,o,d,c,p,_,u,f,g,v;return this._invalidated&&(this.updateImpl(),this._invalidated=!1),e=new l,this._points.length<2?e:(t=this._points[0],i=this._points[1],s=this._source.properties(),a=this._model,o=this._source,3===this._points.length&&(n=this._points[2],n.x=i.x,r=t.clone(),r.y=n.y,r.data=3,s.fillBackground.value()&&(d=a.timeScale().width(),c=o.priceScale().height(),p=s.extendLeft.value(),_=s.extendRight.value(),this._disjointAngleRenderer.setData({width:d,height:c,extendleft:p,extendright:_,points:[t,i,n,r],backcolor:s.backgroundColor.value(),transparency:s.transparency.value(),hittestOnBackground:TradingView.isMobile.any()}),e.append(this._disjointAngleRenderer))),u=function(e,t){return{points:[e,t],width:a.timeScale().width(),height:o.priceScale().height(),color:s.linecolor.value(),linewidth:s.linewidth.value(),linestyle:s.linestyle.value(),extendleft:s.extendLeft.value(),extendright:s.extendRight.value(),leftend:s.leftEnd.value(),rightend:s.rightEnd.value()}},this._trendLineRendererPoints12.setData(u(t,i)),e.append(this._trendLineRendererPoints12),2===this._points.length?(this.addAnchors(e),e):(f=this,g=function(t,i,n,r,s,a){var o;f._source.properties().showPrices.value()&&(o={points:[n],text:s,color:f._source.properties().textcolor.value(),horzAlign:n.x>r.x?"left":"right",vertAlign:"middle",font:f._source.properties().font.value(),offsetX:n.x>r.x?-5:5,offsetY:-5,bold:f._source.properties().bold.value(),italic:f._source.properties().italic.value(),fontsize:f._source.properties().fontsize.value()},t.setData(o),e.append(t),o={points:[r],text:a,color:f._source.properties().textcolor.value(),horzAlign:n.x<r.x?"left":"right",vertAlign:"middle",font:f._source.properties().font.value(),offsetX:n.x>r.x?-5:5,offsetY:-5,bold:f._source.properties().bold.value(),italic:f._source.properties().italic.value(),fontsize:f._source.properties().fontsize.value()},i.setData(o),e.append(i))},g(this._p1LabelRenderer,this._p2LabelRenderer,t,i,this._price1,this._price2),this._trendLineRendererPoints43.setData(u(r,n)),e.append(this._trendLineRendererPoints43),g(this._p3LabelRenderer,this._p4LabelRenderer,n,r,this._price3,this._price3), |
|||
this.isAnchorsRequired()&&(v=[t,i,n,r],this._model.lineBeingCreated()===this._source&&v.pop(),e.append(this.createLineAnchor({points:v}))),!TradingView.printing&&this._source.hasAlert.value()&&!this._model.readOnly()&&t&&i&&this._source.getAlertIsActive(function(n){e.append(new h({point1:t,point2:i,color:n?s.linecolor.value():defaults("chartproperties.alertsProperties.drawingIcon.color")}))}),e))},t.FlatBottomPaneView=n},883:function(e,t,i){"use strict";function n(e,t){s.call(this,e,t),this._invalidated=!0}var r=i(1).Point,s=i(12).LineSourcePaneView,a=i(229).ChannelRenderer,o=i(27).TextRenderer,l=i(16).TrendLineRenderer,h=i(4),d=i(8).CompositeRenderer,c=i(18).LineEnd;inherit(n,s),n.prototype.update=function(){this._invalidated=!0},n.prototype.updateImpl=function(){var e,t,i,n,r,a,o,l,h,d,c,p,_,u;if(s.prototype._updateImpl.call(this),!(this._source.points().length<2)&&this._source.priceScale()&&!this._source.priceScale().isEmpty()&&!this._model.timeScale().isEmpty())for(e=this._floatPoints[0],t=this._floatPoints[1],this._fans=[],i=t.x-e.x,n=t.y-e.y,o=1;o<=9;o++)l="level"+o,h=this._source.properties()[l],h.visible.value()&&(d=h.coeff1.value(),c=h.coeff2.value(),p=d/c,_=h.color.value(),u=d+"/"+c,d>c?(r=t.x,a=e.y+n/p):(r=e.x+i*p,a=t.y),this._fans.push({label:u,color:_,x:r,y:a,linewidth:h.linewidth.value(),linestyle:h.linestyle.value(),index:o}))},n.prototype.renderer=function(){var e,t,i,n,s,p,_,u,f,g,v,w;if(this._invalidated&&(this.updateImpl(),this._invalidated=!1),e=new d,this._floatPoints.length<2)return e;for(t=this._floatPoints[0],i=this._source.properties(),n=this._source.properties().fillBackground.value(),s=this._source.properties().transparency.value(),p=0;p<this._fans.length;p++)_=new r(this._fans[p].x,this._fans[p].y),n&&(this._fans[p].index<4?(u=new r(this._fans[p+1].x,this._fans[p+1].y),f={},f.width=this._model.timeScale().width(),f.height=this._source.priceScale().height(),f.p1=t,f.p2=_,f.p3=t,f.p4=u,f.color=this._fans[p].color,f.transparency=s,f.hittestOnBackground=!0,g=new a,g.setData(f),e.append(g)):this._fans[p].index>4&&p>0&&(u=new r(this._fans[p-1].x,this._fans[p-1].y),f={},f.width=this._model.timeScale().width(),f.height=this._source.priceScale().height(),f.p1=t,f.p2=_,f.p3=t,f.p4=u,f.color=this._fans[p].color,f.transparency=s,f.hittestOnBackground=!0,g=new a,g.setData(f),e.append(g))),v={points:[t,_],width:this._model.timeScale().width(),height:this._source.priceScale().height(),color:this._fans[p].color,linewidth:this._fans[p].linewidth,linestyle:this._fans[p].linestyle,extendleft:!1,extendright:!0,leftend:c.Normal,rightend:c.Normal},g=new l,g.setData(v),g.setHitTest(new h(h.MOVEPOINT,null,this._fans[p].index)),e.append(g),i.showLabels.value()&&(w={points:[_],text:this._fans[p].label,color:this._fans[p].color,vertAlign:"middle",horzAlign:"left",font:i.font.value(),offsetX:0,offsetY:-5,fontsize:12},e.append(new o(w)));return this.addAnchors(e),e},t.GannFanPaneView=n},885:function(e,t,i){"use strict";function n(e,t){s.call(this,e,t),this._numericFormatter=new d,this._invalidated=!0} |
|||
var r=i(1).Point,s=i(12).LineSourcePaneView,a=i(27).TextRenderer,o=i(70).RectangleRenderer,l=i(16).TrendLineRenderer,h=i(8).CompositeRenderer,d=i(38).NumericFormatter,c=i(18).LineEnd;inherit(n,s),n.prototype.renderer=function(){function e(e,t,i){function n(t){var i=new l;i.setData(Object.assign({},R,{points:t})),e.append(i)}var a,o,h,f,g,v,w,y,m,x=new r(s,d),b=new r(p,d),S=new r(s,_),P=new r(p,_),R={width:k._model.timeScale().width(),height:k._source.priceScale().height(),color:u.fans.color.value(),linewidth:u.linewidth.value(),linestyle:u.linestyle.value(),extendleft:!1,extendright:!1,leftend:c.Normal,rightend:c.Normal};for(a=0;a<t.length;++a)o=i?_:t[a],h=i?d:t[a],f=i?t[a]:s,g=i?t[a]:p,v=new r(g,o),w=new r(f,o),y=new r(g,h),m=new r(f,h),n([S,y]),n([P,m]),n([x,v]),n([b,w])}var t,i,n,s,d,p,_,u,f,g,v,w,y,m,x,b,S,P,R,T,L,C,k;if(this._invalidated&&(this.updateImpl(),this._invalidated=!1),t=new h,this._points.length<2)return this.addAnchors(t),t;for(i=this._points[0],n=this._points[1],s=Math.min(i.x,n.x),d=Math.min(i.y,n.y),p=Math.max(i.x,n.x),_=Math.max(i.y,n.y),u=this._source.properties(),f=this._source.properties().fillHorzBackground.value(),g=this._source.properties().horzTransparency.value(),v=this._source.properties().fillVertBackground.value(),w=this._source.properties().vertTransparency.value(),y=0;y<this._hlevels.length;y++)y>0&&f&&(m=this._hlevels[y-1],i=new r(s,this._hlevels[y].y),n=new r(p,m.y),x={},x.points=[i,n],x.color=this._hlevels[y].color,x.linewidth=0,x.backcolor=this._hlevels[y].color,x.fillBackground=!0,x.transparency=g,b=new o(void 0,void 0,!0),b.setData(x),t.append(b)),i=new r(s,this._hlevels[y].y),n=new r(p,this._hlevels[y].y),S={points:[i,n],width:this._model.timeScale().width(),height:this._source.priceScale().height(),color:this._hlevels[y].color,linewidth:u.linewidth.value(),linestyle:u.linestyle.value(),extendleft:!1,extendright:!1,leftend:c.Normal,rightend:c.Normal},b=new l,b.setData(S),t.append(b),u.showLeftLabels.value()&&(P={points:[i],text:this._numericFormatter.format(this._hlevels[y].coeff),color:this._hlevels[y].color,vertAlign:"middle",horzAlign:"right",font:u.font.value(),offsetX:-5,offsetY:0,fontsize:12},t.append(new a(P))),u.showRightLabels.value()&&(R={points:[n],text:this._numericFormatter.format(this._hlevels[y].coeff),color:this._hlevels[y].color,vertAlign:"middle",horzAlign:"left",font:u.font.value(),offsetX:5,offsetY:0,fontsize:12},t.append(new a(R)));for(y=0;y<this._vlevels.length;y++)i=new r(this._vlevels[y].x,d),n=new r(this._vlevels[y].x,_),y>0&&v&&(m=this._vlevels[y-1],T=new r(m.x,d),x={},x.points=[T,n],x.color=this._vlevels[y].color,x.linewidth=0,x.backcolor=this._vlevels[y].color,x.fillBackground=!0,x.transparency=w,b=new o(void 0,void 0,!0),b.setData(x),t.append(b)),S={points:[i,n],width:this._model.timeScale().width(),height:this._source.priceScale().height(),color:this._vlevels[y].color,linewidth:u.linewidth.value(),linestyle:u.linestyle.value(),extendleft:!1,extendright:!1,leftend:c.Normal,rightend:c.Normal},b=new l,b.setData(S),t.append(b), |
|||
u.showTopLabels.value()&&(L={points:[i],text:this._numericFormatter.format(this._vlevels[y].coeff),color:this._vlevels[y].color,vertAlign:"bottom",horzAlign:"center",font:u.font.value(),offsetX:0,offsetY:-5,fontsize:12},t.append(new a(L))),u.showBottomLabels.value()&&(C={points:[n],text:this._numericFormatter.format(this._vlevels[y].coeff),color:this._vlevels[y].color,vertAlign:"top",horzAlign:"center",font:u.font.value(),offsetX:0,offsetY:5,fontsize:12},t.append(new a(C)));return k=this,e(t,this._hfans,!0),e(t,this._vfans,!1),this.addAnchors(t),t},n.prototype.update=function(){this._invalidated=!0},n.prototype.updateImpl=function(){var e,t,i,n,r,a,o,l,h,d,c,p,_,u,f,g,v,w;if(s.prototype._updateImpl.call(this),!(this._source.points().length<2)&&this._source.priceScale()&&!this._source.priceScale().isEmpty()&&!this._model.timeScale().isEmpty()){for(e=this._source.points()[0],t=this._source.points()[1],i=this._source.properties(),n=i.reverse&&i.reverse.value(),this._hlevels=[],r=n?e.price-t.price:t.price-e.price,a=n?t.price:e.price,this._source.priceScale().isPercent()&&(o=this._source.ownerSource().firstValue()),l=1;l<=7;l++)h="hlevel"+l,d=i[h],d.visible.value()&&(c=d.coeff.value(),p=d.color.value(),_=a+c*r,this._source.priceScale().isPercent()&&(_=this._source.priceScale().priceRange().convertToPercent(_,o)),u=this._source.priceScale().priceToCoordinate(_),this._hlevels.push({coeff:c,color:p,y:u}));for(this._vlevels=[],f=n?e.index-t.index:t.index-e.index,g=n?t.index:e.index,l=1;l<=7;l++)h="vlevel"+l,d=i[h],d.visible.value()&&(c=d.coeff.value(),p=d.color.value(),v=Math.round(g+c*f),w=this._model.timeScale().indexToCoordinate(v),this._vlevels.push({coeff:c,color:p,x:w}));if(this._hfans=[],this._vfans=[],i.fans.visible.value())for(l=1;l<=7;l++)v=Math.round(g+i["hlevel"+l].coeff.value()*f),_=a+i["vlevel"+l].coeff.value()*r,this._source.priceScale().isPercent()&&(_=this._source.priceScale().priceRange().convertToPercent(_,o)),this._hfans.push(this._model.timeScale().indexToCoordinate(v)),this._vfans.push(this._source.priceScale().priceToCoordinate(_))}},t.GannSquarePaneView=n},887:function(e,t,i){"use strict";function n(e,t){s.call(this,e,t),this._invalidated=!0}var r=i(56),s=i(12).LineSourcePaneView,a=i(16).TrendLineRenderer,o=i(4),l=i(279).PaneRendererCandles,h=i(8).CompositeRenderer,d=i(18).LineEnd;inherit(n,s),n.prototype.update=function(){s.prototype._updateImpl.call(this),this._invalidated=!0},n.prototype.udpateImpl=function(){var e=this;this._segments=[],e._points.length<2||(this._segments=this._source.segments().map(function(t,i){var n,s,a,o,l,h,d,c,p,_,u,f=e._source.points();return i>=e._points.length-1?null:(n=e._points[i].x,s=f[i].price,a=f[i+1].price,o=f[i+1].index-f[i].index,l=e._model.timeScale().barSpacing()*r.sign(o),h=(a-s)/(t.bars().length-1),d=e._source.properties(),c=d.candleStyle.upColor.value(),p=d.candleStyle.downColor.value(),_=d.candleStyle.borderUpColor.value(),u=d.candleStyle.borderDownColor.value(),{bars:t.bars().map(function(t,i){var r=t.c>=t.o;return{time:n+i*l, |
|||
open:e.priceToCoordinate(t.o+s+i*h),high:e.priceToCoordinate(t.h+s+i*h),low:e.priceToCoordinate(t.l+s+i*h),close:e.priceToCoordinate(t.c+s+i*h),color:r?c:p,borderColor:r?_:u,hollow:!1}})})}).filter(function(e){return!!e}))},n.prototype.renderer=function(){var e,t,i,n,r,s,c,p,_,u,f,g,v;for(this._invalidated&&(this.udpateImpl(),this._invalidated=!1),e=new h,t=1;t<this._points.length;t++)i=this._points[t-1],n=this._points[t],r={points:[i,n],width:this._model.timeScale().width(),height:this._source.priceScale().height(),color:"#808080",linewidth:1,linestyle:CanvasEx.LINESTYLE_SOLID,extendleft:!1,extendright:!1,leftend:d.Normal,rightend:d.Normal},s=new a,s.setData(r),s.setHitTest(new o(o.MOVEPOINT,null)),e.append(s);for(c=this._source.properties(),p=c.candleStyle.drawWick.value(),_=c.candleStyle.drawBorder.value(),u=c.candleStyle.borderColor.value(),f=c.candleStyle.wickColor.value(),g=new h,g.setGlobalAlpha(1-c.transparency.value()/100),t=0;t<this._segments.length;t++)v={bars:this._segments[t].bars,barSpacing:this._model.timeScale().barSpacing(),drawWick:p,drawBorder:_,borderColor:u,wickColor:f,hittest:new o(o.MOVEPOINT,null)},g.append(new l(v));return e.append(g),this.addAnchors(e),e},t.GhostFeedPaneView=n},889:function(e,t,i){"use strict";function n(e,t){s.call(this,e,t),this._invalidated=!0,this._trendLineRenderer=new a,this._triangleRendererPoints234=new o,this._intersect1Renderer=new o,this._intersect2Renderer=new o,this._leftShoulderLabelRenderer=new l({}),this._headLabelRenderer=new l({}),this._rightShoulderLabelRenderer=new l({})}var r=i(98).intersectLineSegments,s=i(12).LineSourcePaneView,a=i(16).TrendLineRenderer,o=i(230).TriangleRenderer,l=i(27).TextRenderer,h=i(8).CompositeRenderer,d=i(19),c=i(18).LineEnd;inherit(n,s),n.prototype._i18nCache=function(){return{leftShoulder:$.t("Left Shoulder"),rightShoulder:$.t("Right Shoulder"),head:$.t("Head")}},n.prototype.renderer=function(){var e,t,i,n,r,s,o,l,p,_,u,f,g,v,w,y,m;if(this._invalidated&&(this.updateImpl(),this._invalidated=!1),this._points.length<2)return null;for(e=this._source.properties(),t=new h,i=this,n=function(t,n){return{points:[t],text:$.t(n),color:e.textcolor.value(),horzAlign:"center",font:e.font.value(),offsetX:0,offsetY:0,bold:e.bold&&e.bold.value(),italic:e.italic&&e.italic.value(),fontsize:e.fontsize.value(),backgroundColor:i._source.properties().color.value(),backgroundRoundRect:4}},r=function(t,n,r,s){return{points:[t,n],width:i._model.timeScale().width(),height:i._source.priceScale().height(),color:d.generateColor(i._source.properties().color.value(),r),linewidth:s||e.linewidth.value(),linestyle:CanvasEx.LINESTYLE_SOLID,extendleft:!1,extendright:!1,leftend:c.Normal,rightend:c.Normal}},s=function(t,i,n){var r=[t,i,n],s={};return s.points=r,s.color=e.color.value(),s.linewidth=0,s.backcolor=e.backgroundColor.value(),s.fillBackground=e.fillBackground.value(),s.transparency=e.transparency.value(),s},o=1;o<this._points.length;o++)l=r(this._points[o-1],this._points[o],0),p=new a,p.setData(l),t.append(p);return this._points.length>=5&&(f=!1,g=!1, |
|||
this._intersect1?_=this._intersect1:(_=this._points[2],f=!0),this._intersect2?u=this._intersect2:(u=this._points[4],g=!0),l=r(_,u,0),l.extendleft=f,l.extendright=g,this._trendLineRenderer.setData(l),t.append(this._trendLineRenderer),v=s(this._points[2],this._points[3],this._points[4]),this._triangleRendererPoints234.setData(v),t.append(this._triangleRendererPoints234)),this._intersect1&&(v=s(this._intersect1,this._points[1],this._points[2]),this._intersect1Renderer.setData(v),t.append(this._intersect1Renderer)),this._intersect2&&(v=s(this._points[4],this._points[5],this._intersect2),this._intersect2Renderer.setData(v),t.append(this._intersect2Renderer)),w=this._i18nCache(),this._points.length>=2&&(y=this._points[1],m=n(y,w.leftShoulder),this._points[1].y<this._points[0].y?(m.vertAlign="bottom",m.offsetY=-10):(m.vertAlign="top",m.offsetY=5),this._leftShoulderLabelRenderer.setData(m),t.append(this._leftShoulderLabelRenderer)),this._points.length>=4&&(y=this._points[3],m=n(y,w.head),this._points[3].y<this._points[2].y?(m.vertAlign="bottom",m.offsetY=-10):(m.vertAlign="top",m.offsetY=5),this._headLabelRenderer.setData(m),t.append(this._headLabelRenderer)),this._points.length>=6&&(y=this._points[5],m=n(y,w.rightShoulder),this._points[5].y<this._points[4].y?(m.vertAlign="bottom",m.offsetY=-10):(m.vertAlign="top",m.offsetY=5),this._rightShoulderLabelRenderer.setData(m),t.append(this._rightShoulderLabelRenderer)),this.addAnchors(t),t},n.prototype.update=function(){this._invalidated=!0},n.prototype.updateImpl=function(){var e,t,i,n,a,o,l,h;s.prototype._updateImpl.call(this),delete this._intersect1,delete this._intersect2,this._points.length>=5&&(e=this._points[0],t=this._points[1],i=this._points[2],n=this._points[4],a=r(i,n,e,t),null!==a&&(o=n.subtract(i),this._intersect1=i.add(o.scaled(a))),7===this._points.length&&(l=this._points[5],h=this._points[6],null!==(a=r(i,n,l,h))&&(o=n.subtract(i),this._intersect2=i.add(o.scaled(a)))))},t.LineToolHeadAndShouldersPaneView=n},891:function(e,t,i){"use strict";function n(e,t){s.call(this,e,t),this._rendererCache={},this._labelRenderer=new a({}),this._lineRenderer=new h,this._lineRenderer.setHitTest(new o(o.MOVEPOINT))}var r=i(1).Point,s=i(12).LineSourcePaneView,a=i(27).TextRenderer,o=i(4),l=i(8).CompositeRenderer,h=i(122).HorizontalLineRenderer,d=i(105).PaneRendererClockIcon;inherit(n,s),n.prototype.update=function(){this._invalidated=!0},n.prototype.updateImpl=function(){s.prototype._updateImpl.call(this)},n.prototype.renderer=function(){var e,t,i,n,s,a,o,h,c,p,_;return this._invalidated&&(this.updateImpl(),this._invalidated=!1),e=new l,t={},t.width=this._model.timeScale().width(),t.height=this._source.priceScale().height(),t.points=this._points,t.color=this._source.properties().linecolor.value(),t.linewidth=this._source.properties().linewidth.value(),t.linestyle=this._source.properties().linestyle.value(),this._lineRenderer.setData(t),i=this._source.properties(),e.append(this._lineRenderer), |
|||
this._source.properties().showLabel.value()&&1===this._points.length&&(n=i.vertLabelsAlign.value(),s=i.horzLabelsAlign.value(),a=this._points[0],o=0,h=0,"left"===s?a.x=3:"right"===s?(a.x=this._model.timeScale().width(),h=-5):a.x=this._model.timeScale().width()/2,"middle"===n?o=-this._source.properties().fontsize.value()/6:"bottom"===n&&(o=-4),c={points:[a],text:i.text.value(),color:i.textcolor.value(),vertAlign:n,horzAlign:s,font:i.font.value(),offsetX:h,offsetY:o,bold:this._source.properties().bold.value(),italic:this._source.properties().italic.value(),fontsize:this._source.properties().fontsize.value()},this._labelRenderer.setData(c),e.append(this._labelRenderer)),1===this._points.length&&this.isAnchorsRequired()&&(p=new r(this._model.timeScale().width()/2,this._points[0].y),p.data=0,e.append(this.createLineAnchor({points:[p]}))),TradingView.printing||!this._source.hasAlert.value()||this._model.readOnly()||1!==this._points.length||(_=new r(this._model.timeScale().width()/2,this._points[0].y),this._source.getAlertIsActive(function(i){e.append(new d({point1:_,color:i?t.color:defaults("chartproperties.alertsProperties.drawingIcon.color")}))})),e},t.HorzLinePaneView=n},893:function(e,t,i){"use strict";function n(){this._data=null}function r(e,t){s.call(this,e,t),this._invalidated=!0,this._renderer=new n,this._labelRenderer=new a({})}var s=i(12).LineSourcePaneView,a=i(27).TextRenderer,o=i(4),l=i(8).CompositeRenderer,h=i(105).PaneRendererClockIcon;n.prototype.setData=function(e){this._data=e},n.prototype.draw=function(e){var t,i,n,r;if(null===this._data||0===this._data.points.length)return null;t=e.canvas.width,i=this._data.points[0].y,n=Math.max(0,this._data.points[0].x),r=Math.max(t,this._data.points[0].x),e.lineCap="square",e.strokeStyle=this._data.color,e.lineWidth=this._data.linewidth,e.lineStyle=this._data.linestyle,CanvasEx.drawLine(e,n,i,r,i)},n.prototype.hitTest=function(e){return null===this._data||0===this._data.points.length?null:e.x<this._data.points[0].x?null:Math.abs(e.y-this._data.points[0].y)<=3?new o(this._data.hitTestResult):null},inherit(r,s),r.prototype.update=function(){this._invalidated=!0},r.prototype.updateImpl=function(){s.prototype._updateImpl.call(this)},r.prototype.renderer=function(){var e,t,i,n,r,s,a,d,c;return this._invalidated&&(this.updateImpl(),this._invalidated=!1),e=new l,t={},t.points=this._points,t.color=this._source.properties().linecolor.value(),t.linewidth=this._source.properties().linewidth.value(),t.linestyle=this._source.properties().linestyle.value(),t.hitTestResult=o.MOVEPOINT,i=this._source.properties(),this._renderer.setData(t),e.append(this._renderer),this._source.properties().showLabel.value()&&1===this._points.length&&(n=i.vertLabelsAlign.value(),r=i.horzLabelsAlign.value(),s=this._points[0].clone(),a=0,d=0,"right"===r?(s.x=this._model.timeScale().width(),d=-5):"center"===r&&(s.x=(s.x+this._model.timeScale().width())/2),"middle"===n?a=-this._source.properties().fontsize.value()/6:"bottom"===n&&(a=-4),c={points:[s],text:i.text.value(),color:i.textcolor.value(), |
|||
vertAlign:n,horzAlign:r,font:i.font.value(),offsetX:d,offsetY:a,bold:this._source.properties().bold.value(),italic:this._source.properties().italic.value(),fontsize:this._source.properties().fontsize.value()},this._labelRenderer.setData(c),e.append(this._labelRenderer)),this.addAnchors(e),TradingView.printing||!this._source.hasAlert.value()||this._model.readOnly()||1!==this._points.length||this._source.getAlertIsActive(function(i){e.append(new h({point1:t.points[0],color:i?t.color:defaults("chartproperties.alertsProperties.drawingIcon.color")}))}),e},t.HorzRayPaneView=r},895:function(e,t,i){"use strict";function n(e){this._data=null,this._cache=e}function r(e,t){h.call(this,e,t),this._cache={},this._invalidated=!0,this._dashRenderer=new d,this._dashRenderer.setHitTest(null),this._iconRenderer=new n(this._cache)}var s=i(1).Point,a=i(193),o=a.rotationMatrix,l=a.transformPoint,h=i(12).LineSourcePaneView,d=i(16).TrendLineRenderer,c=i(4),p=i(8).CompositeRenderer,_=i(18).LineEnd;n.prototype.setData=function(e){this._data=e},n.prototype.draw=function(e){var t,i,n,r;null!=this._data&&(t=String.fromCharCode(this._data.icon),e.font=this._data.size+"px FontAwesome",i=e.measureText(t).width,e.textBaseline="middle",n=this._data.point,e.translate(n.x,n.y),e.rotate(this._data.angle-Math.PI/2),e.scale(this._data.scale,1),r=65536*this._data.icon+this._data.size,this._cache[r]=i,this._data.selected&&(e.fillStyle="rgba(80, 80, 80, 0.2)",e.fillRect(-this._cache[r]/2,-this._data.size/2,this._cache[r],this._data.size)),e.fillStyle=this._data.color,e.fillText(t,-this._cache[r]/2,0))},n.prototype.hitTest=function(e){var t,i,n,r;return null===this._data?null:(t=65536*this._data.icon+this._data.size,i=this._cache[t]*this._data.scale,n=o(-this._data.angle),r=e.subtract(this._data.point),r=l(n,r),Math.abs(r.y)<=i/2&&Math.abs(r.x)<=this._data.size/2?new c(c.MOVEPOINT):null)},inherit(r,h),r.prototype.update=function(){this._invalidated=!0},r.prototype.updateImpl=function(){h.prototype._updateImpl.call(this),this._invalidated=!1},r.prototype.renderer=function(){var e,t,i,n,r,a,h,d,c,u,f,g,v,w,y,m,x,b;return this._invalidated&&this.updateImpl(),e=new p,this._points.length<1?e:(t=this._source.properties(),i={point:this._points[0],color:t.color.value(),size:t.size.value(),icon:t.icon.value(),angle:t.angle.value(),scale:t.scale.value(),selected:this.isAnchorsRequired()},n=this._model,r=this._source,this._iconRenderer.setData(i),e.append(this._iconRenderer),this.isAnchorsRequired()&&(a=65536*i.icon+i.size,h=this._cache[a],d=i.size,c=this._points[0],u=t.scale.value(),f=this._source.getAnchorLimit(),g=new s(Math.max(f,d)/2,0),v=new s(0,Math.max(f,u*h)/2),w=o(t.angle.value()),g=l(w,g),v=l(w,v),y=c.add(g),y.data=0,m=c.subtract(g),m.data=1,x=c.add(v),x.data=2,x.square=!0,b=c.subtract(v),b.data=3,b.square=!0,i={points:[y,m],width:n.timeScale().width(),height:r.priceScale().height(),color:"#808080",linewidth:1,linestyle:CanvasEx.LINESTYLE_DASHED,extendleft:!1,extendright:!1,leftend:_.Normal,rightend:_.Normal},this._dashRenderer.setData(i), |
|||
e.append(this._dashRenderer),e.append(this.createLineAnchor({points:[y,m,x,b]}))),e)},t.IconPaneView=r},899:function(e,t,i){"use strict";function n(){}function r(e){this._source=e,this._data=null}function s(e,t){l.call(this,e,t),this._rendererSource=new n,this._invalidated=!0,this._renderer=new r(this._rendererSource)}var a=i(1).Point,o=i(49).pointInRectangle,l=i(12).LineSourcePaneView,h=i(27).TextRenderer,d=i(74).SelectionRenderer,c=i(4),p=i(8).CompositeRenderer,_=i(19);n.prototype.update=function(e){this._data&&(!this._data||e.markerColor===this._data.markerColor&&e.width===this._data.width&&e.height===this._data.height)||this._createSource(e.width,e.height,e.markerColor),this._data=e},n.prototype._createSource=function(e,t,i){var n,r;this._sourceCanvas=document.createElement("canvas"),this._sourceCanvas.width=e,this._sourceCanvas.height=t,this._translate=new a(-e/2,.5-t),this._translate.x%1==0&&(this._translate.x+=.5),n=this._sourceCanvas.getContext("2d"),r=.6*e,n.fillStyle=i,n.beginPath(),n.moveTo(e/2,t),n.quadraticCurveTo(e,e/1.15,e,e/2),n.arc(e/2,e/2,e/2,0,Math.PI,!0),n.quadraticCurveTo(0,e/1.15,e/2,t),n.fill(),n.globalCompositeOperation="destination-out",n.beginPath(),n.moveTo((e-r)/2,e/2),n.arc(e/2,e/2,r/2,0,2*Math.PI),n.fill()},n.prototype.drawOn=function(e){var t=new a(Math.round(this._data.point.x),Math.round(this._data.point.y)).add(this._translate);e.drawImage(this._sourceCanvas,t.x,t.y)},n.prototype.hasPoint=function(e){var t=this._data.point.add(this._translate),i=new a(this._data.point.x-this._translate.x,this._data.point.y);return o(e,t,i)},r.prototype.setData=function(e){this._data=e},r.prototype.draw=function(e){null!==this._data&&(this._source.drawOn(e),this._data.tooltipVisible&&this.drawTooltipOn(e))},r.prototype.drawTooltipOn=function(e){var t,i,n,r,s,a,o,l,d,c,p,u,f,g,v;for(e.save(),t=(this._data.text+"").replace(/^\s+|\s+$/g,"").replace(/[\r\n]+/g,"\n"),e.font=(this._data.bold?"bold ":"")+(this._data.italic?"italic ":"")+this._data.fontSize+"px "+this._data.font,i=this._data.tooltipWidth-2*this._data.tooltipPadding,n=h.prototype.wordWrap(t,i,e.font),r=this._data.point,s=this._data.tooltipLineSpacing,a=this._data.tooltipWidth,o=n.length*this._data.fontSize+2*this._data.tooltipPadding,n.length>1&&(o+=(n.length-1)*s),l=Math.round(r.x-a/2),d=Math.round(r.y-this._data.height-o-8),c=r.x<20||r.x+20>this._data.vpWidth,p=c?null:"top",u=c?null:Math.round(r.x),d<10?d=r.y+13:p="bottom",l<10?l+=Math.abs(l-10):l+a+10>this._data.vpWidth&&(l-=l+a+10-this._data.vpWidth),e.fillStyle=_.generateColor(this._data.backgroundColor,this._data.backgroundTransparency),e.strokeStyle=this._data.markerColor,e.lineWidth=1,e.beginPath(),e.moveTo(l,d),c||"top"!==p||(e.lineTo(u-7,d),e.lineTo(u,d-7),e.lineTo(u+7,d)),e.lineTo(l+a,d),e.lineTo(l+a,d+o),c||"bottom"!==p||(e.lineTo(u+7,d+o),e.lineTo(u,d+o+7),e.lineTo(u-7,d+o)),e.lineTo(l,d+o),e.closePath(),e.fill(),e.stroke(),e.textBaseline="middle",e.fillStyle=this._data.textColor,f=l+this._data.tooltipPadding,g=d+this._data.tooltipPadding+this._data.fontSize/2, |
|||
v=0;v<n.length;v++)e.fillText(n[v].replace(/^\s+/,""),f,g),g+=this._data.fontSize+s;e.restore()},r.prototype.hitTest=function(e){return null!==this._data&&this._source.hasPoint(e)?new c(c.MOVEPOINT):null},inherit(s,l),s.prototype.update=function(){this._invalidated=!0},s.prototype.updateImpl=function(){l.prototype._updateImpl.call(this),this._invalidated=!1},s.prototype.isLabelVisible=function(){return this.isHoveredSource()||this.isSelectedSource()},s.prototype.renderer=function(){var e,t,i,n,r,s,a;return this._invalidated&&this.updateImpl(),e=new p,t=this._source.properties(),i=t.locked&&t.locked.value(),n=i?this._source.fixedPoints():this._points,n.length<1?e:(r=this.isLabelVisible(),s=r,a=$.extend(t.state(),{point:n[0],width:24,height:32,tooltipVisible:s,vpWidth:this._model.m_timeScale.m_width,vpHeight:this._source.m_priceScale.m_height,tooltipWidth:this._source.getTooltipWidth(),tooltipPadding:this._source.getTooltipPadding(),tooltipLineSpacing:this._source.getTooltipLineSpacing()}),this._rendererSource.update(a),this._renderer.setData(a),e.append(this._renderer),r&&e.append(new d({points:n})),e)},t.NotePaneView=s},900:function(e,t,i){"use strict";function n(e,t){this._data=null,this._cache=e,this._adapter=t}function r(e,t){a.call(this,e,t),this._rendererCache={},this._renderer=new n(this._rendererCache,e._adapter)}var s=i(132),a=i(12).LineSourcePaneView,o=i(4),l=i(481).splitThousands;n.prototype.setData=function(e){this._data=e},n.prototype._height=function(){return Math.max(20,1+Math.max(s.fontHeight(this._adapter.getBodyFont()),s.fontHeight(this._adapter.getQuantityFont())))},n.prototype._bodyWidth=function(e){var t,i,n;return 0===this._adapter.getText().length?0:(e.save(),e.font=this._adapter.getBodyFont(),t=10,i=10,n=e.measureText(this._adapter.getText()).width,e.restore(),Math.round(t+i+n))},n.prototype._getQuantity=function(){return l(this._adapter.getQuantity()," ")},n.prototype._quantityWidth=function(e){var t,i;return 0===this._getQuantity().length?0:(e.save(),e.font=this._adapter.getQuantityFont(),t=10,i=e.measureText(this._getQuantity()).width,e.restore(),Math.round(Math.max(this._height(),t+i)))},n.prototype._cancelButtonWidth=function(){return this._adapter.isOnCancelCallbackPresent()?this._height():0},n.prototype._drawLines=function(e,t,i,n,r){e.save(),e.strokeStyle=this._adapter.getLineColor(),e.lineStyle=this._adapter.getLineStyle(),e.lineWidth=this._adapter.getLineWidth(),CanvasEx.drawLine(e,i,n,r,n),this._adapter.getExtendLeft()&&CanvasEx.drawLine(e,0,n,t,n),e.restore()},n.prototype._drawMovePoints=function(e,t,i){var n,r,s,a,o,l,h,d;for(e.save(),e.strokeStyle=this._adapter.getBodyBorderColor(),e.fillStyle=this._adapter.getBodyBorderColor(),n=2,r=4,s=5,a=t+r,o=a+n,l=Math.floor((this._height()-2*s)/2)+1,h=0;h<l;++h)d=i+s+2*h,CanvasEx.drawLine(e,a,d,o,d);e.restore()},n.prototype._drawBody=function(e,t,i){var n,r;e.strokeStyle=this._adapter.getBodyBorderColor(),e.fillStyle=this._adapter.getBodyBackgroundColor(),n=this._bodyWidth(e),r=this._height(),e.fillRect(t+.5,i+.5,n-1,r-1), |
|||
e.strokeRect(t,i,n,r)},n.prototype._drawBodyText=function(e,t,i){var n,r,s;e.textAlign="center",e.textBaseline="middle",e.font=this._adapter.getBodyFont(),e.fillStyle=this._adapter.getBodyTextColor(),n=5,r=t+this._bodyWidth(e)/2,s=i+this._height()/2,e.fillText(this._adapter.getText(),n+r-2,s)},n.prototype._drawQuantity=function(e,t,i,n){var r,s;e.save(),e.strokeStyle=this._adapter.getQuantityBorderColor(),e.fillStyle=this._adapter.getQuantityBackgroundColor(),r=this._quantityWidth(e),s=this._height(),e.fillRect(t+.5,i+.5,r-1,s-1),n&&e.clip&&(e.beginPath(),e.rect(t+.5,i-.5,r+1,s+1),e.clip()),e.strokeRect(t,i,r,s),e.restore()},n.prototype._drawQuantityText=function(e,t,i){var n,r;e.save(),e.textAlign="center",e.textBaseline="middle",e.font=this._adapter.getQuantityFont(),e.fillStyle=this._adapter.getQuantityTextColor(),n=t+this._quantityWidth(e)/2,r=i+this._height()/2,e.fillText(this._getQuantity(),n,r),e.restore()},n.prototype._drawCancelButton=function(e,t,i,n){var r,s,a,o,l,h,d;e.strokeStyle=this._adapter.getCancelButtonBorderColor(),e.fillStyle=this._adapter.getCancelButtonBackgroundColor(),r=this._cancelButtonWidth(),s=this._height(),e.fillRect(t+.5,i+.5,r-1,s-1),this._adapter._blocked&&(e.fillStyle="rgba(140, 140, 140, 0.75)",e.fillRect(t+.5,i+.5,r-1,s-1)),e.save(),n&&e.clip&&(e.beginPath(),e.rect(t+.5,i-.5,r+1,s+1),e.clip()),e.strokeRect(t,i,r,s),e.restore(),a=t+r,o=i+s,e.strokeStyle=this._adapter.getCancelButtonIconColor(),l=8,h=(this._cancelButtonWidth()-l)/2,d=(this._height()-l)/2,CanvasEx.drawPoly(e,[{x:t+h,y:i+d},{x:a-h,y:o-d}],!0),CanvasEx.drawPoly(e,[{x:a-h,y:i+d},{x:t+h,y:o-d}],!0)},n.prototype.draw=function(e){var t,i,n,r,s,a,o,l,h,d,c;null===this._data||!this._data.points||this._data.points.length<1||(t=this._data.width,i=this._bodyWidth(e),n=this._quantityWidth(e),r=i+n+this._cancelButtonWidth(),s=t-r,a=Math.max(this._adapter.getLineLength()/100*t,1),o=Math.round(t-Math.min(s,a)),l=o-r,h=Math.round(this._data.points[0].y),d=Math.round(h-(this._height()+1)/2),this._cache.bodyRight=l+i,this._cache.quantityRight=l+i+n,this._cache.top=d,this._cache.bottom=d+this._height(),this._cache.left=l,this._cache.right=o,this._drawLines(e,l,o,h,t),c=!1,0!==i&&(this._drawBody(e,l,d),this._drawMovePoints(e,l,d),this._drawBodyText(e,l,d),c=!0),0!==n&&(this._drawQuantity(e,l+i,d,c),this._drawQuantityText(e,l+i,d),c=!0),0!==this._cancelButtonWidth()&&this._drawCancelButton(e,l+i+n,d,c))},n.prototype.hitTest=function(e){return null===this._data||0===this._data.points.length?null:e.y<this._cache.top||e.y>this._cache.bottom?null:this._adapter._blocked&&e.x>=this._cache.left&&e.x<this._cache.right?new o(o.CUSTOM,{}):this._adapter._editable&&e.x>=this._cache.left&&e.x<this._cache.bodyRight?0===this._adapter.getTooltip().length?new o(o.MOVEPOINT):new o(o.MOVEPOINT,{tooltip:{text:this._adapter.getTooltip(),rect:{x:this._cache.left,y:this._cache.top,w:this._cache.bodyRight-this._cache.left,h:this._cache.bottom-this._cache.top}}}):this._adapter._editable&&e.x>=this._cache.bodyRight&&e.x<this._cache.quantityRight?new o(o.CUSTOM,{ |
|||
mouseDownHandler:this._adapter.callOnModify.bind(this._adapter),tooltip:{text:$.t("Edit Order"),rect:{x:this._cache.bodyRight,y:this._cache.top,w:this._cache.quantityRight-this._cache.bodyRight,h:this._cache.bottom-this._cache.top}}}):this._adapter._editable&&e.x>=this._cache.quantityRight&&e.x<this._cache.right?new o(o.CUSTOM,{mouseDownHandler:this._adapter.callOnCancel.bind(this._adapter),tooltip:{text:$.t("Cancel Order"),rect:{x:this._cache.quantityRight,y:this._cache.top,w:this._cache.right-this._cache.quantityRight,h:this._cache.bottom-this._cache.top}}}):null},inherit(r,a),r.prototype.renderer=function(){return this._invalidated&&(this._updateImpl(),this._invalidated=!1),this._renderer.setData({points:this._points,width:this._model.timeScale().width()}),this._renderer},t.OrderPaneView=r},902:function(e,t,i){"use strict";function n(e,t){r.call(this,e,t),this._invalidated=!0,this._renderer=new s,this._p3=null,this._p4=null}var r=i(12).LineSourcePaneView,s=i(314).ParallelChannelRenderer,a=i(105).PaneRendererClockIcon,o=i(8).CompositeRenderer;inherit(n,r),n.prototype.update=function(){this._invalidated=!0},n.prototype.updateImpl=function(){var e,t,i,n,s,a,o,l,h,d,c;r.prototype._updateImpl.call(this),this._source.priceScale()&&!this._source.priceScale().isEmpty()&&0!==this._source.points().length&&(this._source._priceOffset||this._source.calculatePriceDiff(),3===this._points.length&&this._source._priceOffset&&(e=this._points[0],t=this._points[1],i=this._source._priceOffset+this._source.points()[0].price,n=this._source._priceOffset+this._source.points()[1].price,this._p3=e.clone(),this._p4=t.clone(),s=this._source.priceScale(),s.isLog()?(a=.5*(i+n)-this._source._priceOffset,o=.5*(i+n),l=this._source.priceScale().priceToCoordinate(a),h=this._source.priceScale().priceToCoordinate(o),d=h-l,this._p3.y+=d,this._p4.y+=d):(s.isPercent()&&(c=this._source.ownerSource().firstValue(),i=s.priceRange().convertToPercent(i,c),n=s.priceRange().convertToPercent(n,c)),this._p3.y=this._source.priceScale().priceToCoordinate(i),this._p4.y=this._source.priceScale().priceToCoordinate(n))))},n.prototype.renderer=function(){var e,t,i,n,r,s;return this._invalidated&&(this.updateImpl(),this._invalidated=!1),e={},e.points=[],this._points.length>1&&(e.points.push(this._points[0]),e.points.push(this._points[1])),this._points.length>2&&null!==this._p3&&null!==this._p4&&(e.points.push(this._p3),e.points.push(this._p4)),e.color=this._source.properties().linecolor.value(),e.width=this._model.timeScale().width(),e.height=this._source.priceScale().height(),t=this._source.properties(),e.linewidth=t.linewidth.value(),e.linestyle=t.linestyle.value(),e.extendleft=t.extendLeft.value(),e.extendright=t.extendRight.value(),e.fillBackground=t.fillBackground.value(),e.backcolor=t.backgroundColor.value(),e.transparency=t.transparency.value(),e.showMidline=t.showMidline.value(),e.midlinewidth=t.midlinewidth.value(),e.midlinestyle=t.midlinestyle.value(),e.midcolor=t.midlinecolor.value(),e.fillBackground=t.fillBackground.value(),e.hittestOnBackground=!0, |
|||
this._renderer.setData(e),i=new o,i.append(this._renderer),this.isAnchorsRequired()&&(n=[],this._points[0]&&n.push(this._points[0]),this._points[1]&&n.push(this._points[1]),this._p3&&(n.push(this._p3.add(this._p4).scaled(.5)),n[n.length-1].data=n.length-1),r=3===this._points.length&&!this._p3,this._model.lineBeingCreated()!==this._source||r||n.pop(),i.append(this.createLineAnchor({points:n}))),!TradingView.printing&&this._source.hasAlert.value()&&!this._model.readOnly()&&this._points.length>=2&&(s=this._points,this._source.getAlertIsActive(function(e){i.append(new a({point1:s[0],point2:s[1],color:e?t.linecolor.value():defaults("chartproperties.alertsProperties.drawingIcon.color")}))})),i},t.ParallelChannelPaneView=n},904:function(e,t,i){"use strict";function n(e,t){r.call(this,e,t),this._invalidated=!0,this._medianRenderer=new a,this._sideRenderer=new a}var r=i(12).LineSourcePaneView,s=i(229).ChannelRenderer,a=i(16).TrendLineRenderer,o=i(4),l=i(8).CompositeRenderer,h=i(18).LineEnd;inherit(n,r),n.prototype.update=function(){this._invalidated=!0},n.prototype.updateImpl=function(){r.prototype._updateImpl.call(this),0!==this._floatPoints.length&&(3===this._floatPoints.length?(this._medianPoint=this._floatPoints[1].add(this._floatPoints[2]).scaled(.5),this._medianPoint.data=3):2===this._floatPoints.length?(this._medianPoint=this._floatPoints[1],this._medianPoint.data=3):(this._medianPoint=this._floatPoints[0],this._medianPoint.data=3))},n.prototype.renderer=function(){var e,t,i,n,r,d,c,p,_,u,f,g,v,w,y,m;if(this._invalidated&&(this.updateImpl(),this._invalidated=!1),e=new l,this._floatPoints.length<2)return e;if(!this._medianPoint)return e;if(t={points:[this._floatPoints[0],this._medianPoint],width:this._model.timeScale().width(),height:this._source.priceScale().height(),color:this._source.properties().median.color.value(),linewidth:this._source.properties().median.linewidth.value(),linestyle:this._source.properties().median.linestyle.value(),extendleft:!1,extendright:!0,leftend:h.Normal,rightend:h.Normal},this._medianRenderer.setData(t),e.append(this._medianRenderer),this._floatPoints.length<3)return this.addAnchors(e),e;for(i={points:[this._floatPoints[1],this._floatPoints[2]],width:this._model.timeScale().width(),height:this._source.priceScale().height(),color:this._source.properties().median.color.value(),linewidth:this._source.properties().median.linewidth.value(),linestyle:this._source.properties().median.linestyle.value(),extendleft:!1,extendright:!1,leftend:h.Normal,rightend:h.Normal},this._sideRenderer.setData(i),e.append(this._sideRenderer),n=0,r=this._floatPoints[2].subtract(this._floatPoints[1]).scaled(.5),d=this._source.properties().fillBackground.value(),c=this._source.properties().transparency.value(),p=0;p<=8;p++)_="level"+p,u=this._source.properties()[_],u.visible.value()&&(f=this._medianPoint.addScaled(r,u.coeff.value()),g=this._medianPoint.addScaled(r,-u.coeff.value()),d&&(v={},v.width=this._model.timeScale().width(),v.height=this._source.priceScale().height(),v.p1=this._floatPoints[0],v.p2=f, |
|||
v.p3=this._floatPoints[0],v.p4=this._medianPoint.addScaled(r,n),v.color=u.color.value(),v.transparency=c,v.hittestOnBackground=!0,w=new s,w.setData(v),e.append(w),v={},v.width=this._model.timeScale().width(),v.height=this._source.priceScale().height(),v.p1=this._floatPoints[0],v.p2=g,v.p3=this._floatPoints[0],v.p4=this._medianPoint.addScaled(r,-n),v.color=u.color.value(),v.transparency=c,v.hittestOnBackground=!0,w=new s,w.setData(v),e.append(w)),n=u.coeff.value(),y={points:[this._floatPoints[0],f],width:this._model.timeScale().width(),height:this._source.priceScale().height(),color:u.color.value(),linewidth:u.linewidth.value(),linestyle:u.linestyle.value(),extendleft:!1,extendright:!0,leftend:h.Normal,rightend:h.Normal},w=new a,w.setData(y),w.setHitTest(new o(o.MOVEPOINT,null,p)),e.append(w),m={points:[this._floatPoints[0],g],width:this._model.timeScale().width(),height:this._source.priceScale().height(),color:u.color.value(),linewidth:u.linewidth.value(),linestyle:u.linestyle.value(),extendleft:!1,extendright:!0,leftend:h.Normal,rightend:h.Normal},w=new a,w.setData(m),w.setHitTest(new o(o.MOVEPOINT,null,p)),e.append(w));return this.addAnchors(e),e},t.PitchfanLinePaneView=n},906:function(e,t,i){"use strict";function n(e,t){l.call(this,e,t),this._invalidated=!0,this._medianRenderer=new h,this._sideRenderer=new h}function r(e,t){n.call(this,e,t),this._invalidated=!0,this._backSideRenderer=new h}function s(e,t){r.call(this,e,t),this._invalidated=!0}function a(e,t){n.call(this,e,t),this._invalidated=!0,this._backSideRenderer=new h,this._centerRenderer=new h}var o=i(1).Point,l=i(12).LineSourcePaneView,h=i(16).TrendLineRenderer,d=i(229).ChannelRenderer,c=i(4),p=i(8).CompositeRenderer,_=i(18).LineEnd;inherit(n,l),n.prototype.update=function(){this._invalidated=!0},n.prototype.updateImpl=function(){l.prototype._updateImpl.call(this),0!==this._floatPoints.length&&(3===this._floatPoints.length?(this._medianPoint=this._floatPoints[1].add(this._floatPoints[2]).scaled(.5),this._medianPoint.data=3):2===this._floatPoints.length?(this._medianPoint=this._floatPoints[1],this._medianPoint.data=3):(this._medianPoint=this._floatPoints[0],this._medianPoint.data=3))},n.prototype.renderer=function(){var e,t,i,n,r,s,a,o,l,u,f,g,v,w,y,m,x,b,S,P,R;if(this._invalidated&&(this.updateImpl(),this._invalidated=!1),e=new p,this._floatPoints.length<2)return e;if(!this._medianPoint)return e;if(t={points:[this._floatPoints[0],this._medianPoint],width:this._model.timeScale().width(),height:this._source.priceScale().height(),color:this._source.properties().median.color.value(),linewidth:this._source.properties().median.linewidth.value(),linestyle:this._source.properties().median.linestyle.value(),extendleft:!1,extendright:!0,leftend:_.Normal,rightend:_.Normal},this._medianRenderer.setData(t),e.append(this._medianRenderer),this._floatPoints.length<3)return this.addAnchors(e),e;for(i={points:[this._floatPoints[1],this._floatPoints[2]],width:this._model.timeScale().width(),height:this._source.priceScale().height(), |
|||
color:this._source.properties().median.color.value(),linewidth:this._source.properties().median.linewidth.value(),linestyle:this._source.properties().median.linestyle.value(),extendleft:!1,extendright:!1,leftend:_.Normal,rightend:_.Normal},this._sideRenderer.setData(i),e.append(this._sideRenderer),n=this._floatPoints[2].subtract(this._floatPoints[1]).scaled(.5),r=this._medianPoint.subtract(this._floatPoints[0]),s=0,a=this._source.properties().fillBackground.value(),o=this._source.properties().transparency.value(),l=0;l<=8;l++)u="level"+l,f=this._source.properties()[u],f.visible.value()&&(g=this._medianPoint.addScaled(n,f.coeff.value()),v=g.add(r),w=this._medianPoint.addScaled(n,-f.coeff.value()),y=w.add(r),a&&(m={},m.p1=g,m.p2=v,m.p3=this._medianPoint.addScaled(n,s),m.p4=m.p3.add(r),m.color=f.color.value(),m.width=this._model.timeScale().width(),m.height=this._source.priceScale().height(),m.transparency=o,m.hittestOnBackground=!0,x=new d,x.setData(m),e.append(x),m={},m.p1=w,m.p2=y,m.p3=this._medianPoint.addScaled(n,-s),m.p4=m.p3.add(r),m.color=f.color.value(),m.width=this._model.timeScale().width(),m.height=this._source.priceScale().height(),m.transparency=o,m.hittestOnBackground=!0,x=new d,x.setData(m),e.append(x)),s=f.coeff.value(),b={points:[g,v],width:this._model.timeScale().width(),height:this._source.priceScale().height(),color:f.color.value(),linewidth:f.linewidth.value(),linestyle:f.linestyle.value(),extendleft:!1,extendright:!0,leftend:_.Normal,rightend:_.Normal},S=new h,S.setData(b),S.setHitTest(new c(c.MOVEPOINT,null,l)),e.append(S),P={points:[w,y],width:this._model.timeScale().width(),height:this._source.priceScale().height(),color:f.color.value(),linewidth:f.linewidth.value(),linestyle:f.linestyle.value(),extendleft:!1,extendright:!0,leftend:_.Normal,rightend:_.Normal},R=new h,R.setData(P),R.setHitTest(new c(c.MOVEPOINT,null,l)),e.append(R));return this.addAnchors(e),e},inherit(r,n),r.prototype.renderer=function(){var e,t,i,n,r,s,a,o,l,u,f,g,v,w,y,m,x,b,S,P;if(this._invalidated&&(this.updateImpl(),this._invalidated=!1),e=new p,this._floatPoints.length<2)return e;if(t={points:[this._floatPoints[0],this._floatPoints[1]],width:this._model.timeScale().width(),height:this._source.priceScale().height(),color:this._source.properties().median.color.value(),linewidth:this._source.properties().median.linewidth.value(),linestyle:this._source.properties().median.linestyle.value(),extendleft:!1,extendright:!1,leftend:_.Normal,rightend:_.Normal},this._backSideRenderer.setData(t),e.append(this._backSideRenderer),!this._medianPoint||!this._modifiedBase)return this.addAnchors(e),e;if(i={points:[this._modifiedBase,this._medianPoint],width:this._model.timeScale().width(),height:this._source.priceScale().height(),color:this._source.properties().median.color.value(),linewidth:this._source.properties().median.linewidth.value(),linestyle:this._source.properties().median.linestyle.value(),extendleft:!1,extendright:!0,leftend:_.Normal,rightend:_.Normal},this._medianRenderer.setData(i),e.append(this._medianRenderer), |
|||
this._floatPoints.length<3)return this.addAnchors(e),e;for(n={points:[this._floatPoints[1],this._floatPoints[2]],width:this._model.timeScale().width(),height:this._source.priceScale().height(),color:this._source.properties().median.color.value(),linewidth:this._source.properties().median.linewidth.value(),linestyle:this._source.properties().median.linestyle.value(),extendleft:!1,extendright:!1,leftend:_.Normal,rightend:_.Normal},this._sideRenderer.setData(n),e.append(this._sideRenderer),r=this._floatPoints[2].subtract(this._floatPoints[1]).scaled(.5),s=this._medianPoint.subtract(this._modifiedBase),a=0,o=this._source.properties().fillBackground.value(),l=this._source.properties().transparency.value(),u=0;u<=8;u++)f="level"+u,g=this._source.properties()[f],g.visible.value()&&(v=this._medianPoint.addScaled(r,g.coeff.value()),w=v.add(s),y=this._medianPoint.addScaled(r,-g.coeff.value()),m=y.add(s),o&&(t={},t.p1=v,t.p2=w,t.p3=this._medianPoint.addScaled(r,a),t.p4=t.p3.add(s),t.color=g.color.value(),t.width=this._model.timeScale().width(),t.height=this._source.priceScale().height(),t.transparency=l,t.hittestOnBackground=!0,x=new d,x.setData(t),e.append(x),t={},t.p1=y,t.p2=m,t.p3=this._medianPoint.addScaled(r,-a),t.p4=t.p3.add(s),t.color=g.color.value(),t.width=this._model.timeScale().width(),t.height=this._source.priceScale().height(),t.transparency=l,t.hittestOnBackground=!0,x=new d,x.setData(t),e.append(x)),a=g.coeff.value(),b={points:[v,w],width:this._model.timeScale().width(),height:this._source.priceScale().height(),color:g.color.value(),linewidth:g.linewidth.value(),linestyle:g.linestyle.value(),extendleft:!1,extendright:!0,leftend:_.Normal,rightend:_.Normal},S=new h,S.setData(b),S.setHitTest(new c(c.MOVEPOINT,null,u)),e.append(S),P={points:[y,m],width:this._model.timeScale().width(),height:this._source.priceScale().height(),color:g.color.value(),linewidth:g.linewidth.value(),linestyle:g.linestyle.value(),extendleft:!1,extendright:!0,leftend:_.Normal,rightend:_.Normal},x=new h,x.setData(P),x.setHitTest(new c(c.MOVEPOINT,null,u)),e.append(x));return this.addAnchors(e),e},r.prototype.update=function(){this._invalidated=!0},r.prototype.updateImpl=function(){n.prototype.updateImpl.call(this),this._floatPoints.length>1&&(this._modifiedBase=this._floatPoints[0].add(this._floatPoints[1]).scaled(.5))},inherit(s,r),s.prototype.update=function(){this._invalidated=!0},s.prototype.updateImpl=function(){var e,t,i;n.prototype.updateImpl.call(this),this._floatPoints.length>2&&(e=this._floatPoints[0].x,t=.5*(this._floatPoints[0].y+this._floatPoints[1].y),i=new o(e,t),this._modifiedBase=i)},inherit(a,n),a.prototype.update=function(){this._invalidated=!0},a.prototype.updateImpl=function(){n.prototype.updateImpl.call(this),this._floatPoints.length>1&&(this._modifiedBase=this._floatPoints[0].add(this._floatPoints[1]).scaled(.5))},a.prototype.renderer=function(){var e,t,i,n,r,s,a,o,l,u,f,g,v,w,y,m,x,b,S,P,R;if(this._invalidated&&(this.updateImpl(),this._invalidated=!1),e=new p,this._floatPoints.length<2)return e |
|||
;if(!this._medianPoint||!this._modifiedBase)return this.addAnchors(e),e;if(3===this._floatPoints.length&&(t={points:[this._modifiedBase,this._floatPoints[2]],width:this._model.timeScale().width(),height:this._source.priceScale().height(),color:this._source.properties().median.color.value(),linewidth:this._source.properties().median.linewidth.value(),linestyle:this._source.properties().median.linestyle.value(),extendleft:!1,extendright:!1,leftend:_.Normal,rightend:_.Normal},this._medianRenderer.setData(t),e.append(this._medianRenderer)),i={points:[this._floatPoints[0],this._floatPoints[1]],width:this._model.timeScale().width(),height:this._source.priceScale().height(),color:this._source.properties().median.color.value(),linewidth:this._source.properties().median.linewidth.value(),linestyle:this._source.properties().median.linestyle.value(),extendleft:!1,extendright:!1,leftend:_.Normal,rightend:_.Normal},this._backSideRenderer.setData(i),e.append(this._backSideRenderer),this._floatPoints.length<3)return this.addAnchors(e),e;for(n={points:[this._floatPoints[1],this._floatPoints[2]],width:this._model.timeScale().width(),height:this._source.priceScale().height(),color:this._source.properties().median.color.value(),linewidth:this._source.properties().median.linewidth.value(),linestyle:this._source.properties().median.linestyle.value(),extendleft:!1,extendright:!1,leftend:_.Normal,rightend:_.Normal},this._sideRenderer.setData(n),e.append(this._sideRenderer),r=this._floatPoints[2].subtract(this._floatPoints[1]).scaled(.5),s=this._floatPoints[2].subtract(this._modifiedBase),a=0,o=this._source.properties().fillBackground.value(),l=this._source.properties().transparency.value(),u={points:[this._medianPoint,this._medianPoint.add(s)],width:this._model.timeScale().width(),height:this._source.priceScale().height(),color:this._source.properties().median.color.value(),linewidth:this._source.properties().median.linewidth.value(),linestyle:this._source.properties().median.linestyle.value(),extendleft:!1,extendright:!0,leftend:_.Normal,rightend:_.Normal},this._centerRenderer.setData(u),e.append(this._centerRenderer),f=0;f<=8;f++)g="level"+f,v=this._source.properties()[g],v.visible.value()&&(w=this._medianPoint.addScaled(r,v.coeff.value()),y=w.add(s),m=this._medianPoint.addScaled(r,-v.coeff.value()),x=m.add(s),o&&(i={},i.p1=w,i.p2=y,i.p3=this._medianPoint.addScaled(r,a),i.p4=i.p3.add(s),i.color=v.color.value(),i.width=this._model.timeScale().width(),i.height=this._source.priceScale().height(),i.transparency=l,i.hittestOnBackground=!0,b=new d,b.setData(i),e.append(b),i={},i.p1=m,i.p2=x,i.p3=this._medianPoint.addScaled(r,-a),i.p4=i.p3.add(s),i.color=v.color.value(),i.width=this._model.timeScale().width(),i.height=this._source.priceScale().height(),i.transparency=l,i.hittestOnBackground=!0,b=new d,b.setData(i),e.append(b)),a=v.coeff.value(),S={points:[w,y],width:this._model.timeScale().width(),height:this._source.priceScale().height(),color:v.color.value(),linewidth:v.linewidth.value(),linestyle:v.linestyle.value(),extendleft:!1, |
|||
extendright:!0,leftend:_.Normal,rightend:_.Normal},P=new h,P.setData(S),P.setHitTest(new c(c.MOVEPOINT,null,f)),e.append(P),R={points:[m,x],width:this._model.timeScale().width(),height:this._source.priceScale().height(),color:v.color.value(),linewidth:v.linewidth.value(),linestyle:v.linestyle.value(),extendleft:!1,extendright:!0,leftend:_.Normal,rightend:_.Normal},b=new h,b.setData(R),b.setHitTest(new c(c.MOVEPOINT,null,f)),e.append(b));return this.addAnchors(e),e},t.PitchforkLinePaneView=n,t.SchiffPitchforkLinePaneView=r,t.SchiffPitchfork2LinePaneView=s,t.InsidePitchforkLinePaneView=a},907:function(e,t,i){"use strict";function n(e,t){r.call(this,e,t),this._invalidated=!0,this._renderer=new s}var r=i(12).LineSourcePaneView,s=i(164),a=i(8).CompositeRenderer;inherit(n,r),n.prototype.update=function(){this._invalidated=!0},n.prototype.updateImpl=function(){r.prototype._updateImpl.call(this),this._invalidated=!1},n.prototype.renderer=function(){var e,t;return this._invalidated&&this.updateImpl(),e={},e.points=this._points,e.color=this._source.properties().linecolor.value(),e.linewidth=this._source.properties().linewidth.value(),e.linestyle=this._source.properties().linestyle.value(),e.filled=this._source.properties().filled.value(),e.backcolor=this._source.properties().backgroundColor.value(),e.fillBackground=this._source.properties().fillBackground.value(),e.transparency=this._source.properties().transparency.value(),this._renderer.setData(e),this.isAnchorsRequired()?(t=new a,t.append(this._renderer),this.addAnchors(t),t):this._renderer},t.PolylinePaneView=n},909:function(e,t,i){"use strict";function n(e,t){this._data=null,this._cache=e,this._adapter=t}function r(e,t){s.call(this,e,t),this._rendererCache={},this._renderer=new n(this._rendererCache,e._adapter)}var s=i(12).LineSourcePaneView,a=i(132),o=i(4),l=i(481).splitThousands;n.prototype.setData=function(e){this._data=e},n.prototype._height=function(){return Math.max(20,1+Math.max(a.fontHeight(this._adapter.getBodyFont()),a.fontHeight(this._adapter.getQuantityFont())))},n.prototype._bodyWidth=function(e){var t,i;return 0===this._adapter.getText().length?0:(e.save(),e.font=this._adapter.getBodyFont(),t=10,i=e.measureText(this._adapter.getText()).width,e.restore(),Math.round(t+i))},n.prototype._getQuantity=function(){return l(this._adapter.getQuantity()," ")},n.prototype._quantityWidth=function(e){var t,i;return 0===this._getQuantity().length?0:(e.save(),e.font=this._adapter.getQuantityFont(),t=10,i=e.measureText(this._getQuantity()).width,e.restore(),Math.round(Math.max(this._height(),t+i)))},n.prototype._reverseButtonWidth=function(){return this._adapter.isOnReverseCallbackPresent()?this._height():0},n.prototype._closeButtonWidth=function(){return this._adapter.isOnCloseCallbackPresent()?this._height():0},n.prototype._drawLines=function(e,t,i,n,r){e.save(),e.strokeStyle=this._adapter.getLineColor(),e.lineStyle=this._adapter.getLineStyle(),e.lineWidth=this._adapter.getLineWidth(),CanvasEx.drawLine(e,i,n,r,n),this._adapter.getExtendLeft()&&CanvasEx.drawLine(e,0,n,t,n), |
|||
e.restore()},n.prototype._drawBody=function(e,t,i){var n,r;e.strokeStyle=this._adapter.getBodyBorderColor(),e.fillStyle=this._adapter.getBodyBackgroundColor(),n=this._bodyWidth(e),r=this._height(),e.fillRect(t+.5,i+.5,n-1,r-1),e.strokeRect(t,i,n,r)},n.prototype._drawBodyText=function(e,t,i){var n,r;e.save(),e.textAlign="center",e.textBaseline="middle",e.font=this._adapter.getBodyFont(),e.fillStyle=this._adapter.getBodyTextColor(),n=t+this._bodyWidth(e)/2,r=i+this._height()/2,e.fillText(this._adapter.getText(),n,r),e.restore()},n.prototype._drawQuantity=function(e,t,i){var n,r;e.strokeStyle=this._adapter.getQuantityBorderColor(),e.fillStyle=this._adapter.getQuantityBackgroundColor(),n=this._quantityWidth(e),r=this._height(),e.fillRect(t+.5,i+.5,n-1,r-1),e.strokeRect(t,i,n,r)},n.prototype._drawQuantityText=function(e,t,i){var n,r;e.save(),e.textAlign="center",e.textBaseline="middle",e.font=this._adapter.getQuantityFont(),e.fillStyle=this._adapter.getQuantityTextColor(),n=t+this._quantityWidth(e)/2,r=i+this._height()/2,e.fillText(this._getQuantity(),n,r),e.restore()},n.prototype._drawReverseButton=function(e,t,i){var n,r,s,a,o,l,h;e.save(),e.strokeStyle=this._adapter.getReverseButtonBorderColor(),e.fillStyle=this._adapter.getReverseButtonBackgroundColor(),n=this._reverseButtonWidth(),r=this._height(),e.fillRect(t+.5,i+.5,n-1,r-1),e.strokeRect(t,i,n,r),e.strokeStyle=this._adapter.getReverseButtonIconColor(),s=function(e,t){CanvasEx.drawLine(e,0,0,0,t),CanvasEx.drawLine(e,-1,1,1,1),CanvasEx.drawLine(e,-2,2,2,2)},a=6,o=10,l=t+Math.round((this._reverseButtonWidth()-a)/2),h=i+5,e.save(),e.translate(l,h),s(e,o),e.translate(a,o),e.rotate(Math.PI),s(e,o),e.restore(),this._adapter._blocked&&(e.fillStyle="rgba(140, 140, 140, 0.75)",e.fillRect(t+.5,i+.5,n-1,r-1)),e.restore()},n.prototype._drawCloseButton=function(e,t,i){var n,r,s,a,o,l,h;e.save(),e.strokeStyle=this._adapter.getCloseButtonBorderColor(),e.fillStyle=this._adapter.getCloseButtonBackgroundColor(),n=this._closeButtonWidth(),r=this._height(),e.fillRect(t+.5,i+.5,n-1,r-1),e.strokeRect(t,i,n,r),s=t+n,a=i+r,e.strokeStyle=this._adapter.getCloseButtonIconColor(),o=8,l=(this._closeButtonWidth()-o)/2,h=(this._height()-o)/2,CanvasEx.drawPoly(e,[{x:t+l,y:i+h},{x:s-l,y:a-h}],!0),CanvasEx.drawPoly(e,[{x:s-l,y:i+h},{x:t+l,y:a-h}],!0),this._adapter._blocked&&(e.fillStyle="rgba(140, 140, 140, 0.75)",e.fillRect(t+.5,i+.5,n-1,r-1)),e.restore()},n.prototype.draw=function(e){var t,i,n,r,s,a,o,l,h,d,c;null===this._data||!this._data.points||this._data.points.length<1||(t=this._data.width,i=this._bodyWidth(e),n=this._quantityWidth(e),r=this._reverseButtonWidth(e),s=i+n+r+this._closeButtonWidth(),a=t-s,o=Math.max(this._adapter.getLineLength()/100*t,1),l=Math.round(t-Math.min(a,o)),h=l-s,d=Math.round(this._data.points[0].y),c=Math.round(d-(this._height()+1)/2),this._cache.bodyRight=h+i,this._cache.quantityRight=this._cache.bodyRight+n,this._cache.reverseButtonRight=this._cache.quantityRight+r,this._cache.top=c,this._cache.bottom=c+this._height(),this._cache.left=h,this._cache.right=l, |
|||
this._drawLines(e,h,l,d,t),0!==i&&(this._drawBody(e,h,c),this._drawBodyText(e,h,c)),0!==n&&(this._drawQuantity(e,this._cache.bodyRight,c),this._drawQuantityText(e,this._cache.bodyRight,c)),0!==r&&this._drawReverseButton(e,this._cache.quantityRight,c),0!==this._closeButtonWidth()&&this._drawCloseButton(e,this._cache.reverseButtonRight,c))},n.prototype.hitTest=function(e){return null===this._data||0===this._data.points.length?null:e.y<this._cache.top||e.y>this._cache.bottom||e.x<this._cache.left||this._cache.right<e.x?null:this._adapter._blocked?new o(o.CUSTOM,{}):e.x>=this._cache.bodyRight&&e.x<this._cache.quantityRight&&this._adapter._onModifyCallback?new o(o.CUSTOM,{mouseDownHandler:this._adapter.callOnModify.bind(this._adapter),tooltip:{text:$.t("Edit Position"),rect:{x:this._cache.bodyRight,y:this._cache.top,w:this._cache.quantityRight-this._cache.bodyRight,h:this._cache.bottom-this._cache.top}}}):e.x>=this._cache.quantityRight&&e.x<this._cache.reverseButtonRight?new o(o.CUSTOM,{mouseDownHandler:this._adapter.callOnReverse.bind(this._adapter),tooltip:{text:$.t("Reverse Position"),rect:{x:this._cache.quantityRight,y:this._cache.top,w:this._cache.reverseButtonRight-this._cache.quantityRight,h:this._cache.bottom-this._cache.top}}}):e.x>=this._cache.reverseButtonRight&&e.x<this._cache.right?new o(o.CUSTOM,{mouseDownHandler:this._adapter.callOnClose.bind(this._adapter),tooltip:{text:$.t("Close Position"),rect:{x:this._cache.reverseButtonRight,y:this._cache.top,w:this._cache.right-this._cache.reverseButtonRight,h:this._cache.bottom-this._cache.top}}}):new o(o.REGULAR,{mouseDownHandler:function(){}})},inherit(r,s),r.prototype.renderer=function(){return this._invalidated&&(this._updateImpl(),this._invalidated=!1),this._renderer.setData({points:this._points,width:this._model.timeScale().width()}),this._renderer},t.PositionPaneView=r},911:function(e,t,i){"use strict";function n(){this._data=null,this._targetFontSize1=11,this._targetFontSize2=11,this._targetFontSize3=14,this._font="Arial",this._sourceFontSize1=12,this._sourceFontSize2=10}function r(e,t){h.call(this,e,t),this._clockWhite=_("prediction-clock-white",TradingView.wrapUrl("images/prediction-clock-white.png")),this._clockBlack=_("prediction-clock-black",TradingView.wrapUrl("images/prediction-clock-black.png")),this._successIcon=_("prediction-success-white",TradingView.wrapUrl("images/prediction-success-white.png")),this._failureIcon=_("prediction-failure-white",TradingView.wrapUrl("images/prediction-failure-white.png")),this._percentageFormatter=new f,this._invalidated=!0,this._renderer=new n}var s=i(1).Point,a=i(53),o=a.parseRgb,l=a.rgbToBlackWhiteString,h=i(12).LineSourcePaneView,d=i(57).Interval,c=i(4),p=i(8).CompositeRenderer,_=i(392),u=i(56),f=i(94).PercentageFormatter,g=i(228).DateFormatter,v=i(174).TimeFormatter,w=i(175).TimeSpanFormatter,y=i(19),m=i(487);n.prototype.setData=function(e){this._data=e},n.prototype.drawBalloon=function(e,t,i,n,r,a){var o,l,h=6,d=5,c=5,p=a||20,_=3;return e.beginPath(), |
|||
"down"===r?(o=new s(t.x-p,t.y-h-c-n),e.moveTo(o.x+_,o.y),e.lineTo(o.x+i-_,o.y),e.arcTo(o.x+i,o.y,o.x+i,o.y+_,_),e.lineTo(o.x+i,o.y+n-_),e.arcTo(o.x+i,o.y+n,o.x+i-_,o.y+n,_),e.lineTo(o.x+p+d,o.y+n),e.lineTo(o.x+p,o.y+n+c),e.lineTo(o.x+p-d,o.y+n),e.lineTo(o.x+_,o.y+n),e.arcTo(o.x,o.y+n,o.x,o.y+n-_,_),e.lineTo(o.x,o.y+_),e.arcTo(o.x,o.y,o.x+_,o.y,_),o):(l=new s(t.x-p,t.y+h+c+n),e.moveTo(l.x+_,l.y),e.lineTo(l.x+i-_,l.y),e.arcTo(l.x+i,l.y,l.x+i,l.y-_,_),e.lineTo(l.x+i,l.y-n+_),e.arcTo(l.x+i,l.y-n,l.x+i-_,l.y-n,_),e.lineTo(l.x+p+d,l.y-n),e.lineTo(l.x+p,l.y-n-c),e.lineTo(l.x+p-d,l.y-n),e.lineTo(l.x+_,l.y-n),e.arcTo(l.x,l.y-n,l.x,l.y-n+_,_),e.lineTo(l.x,l.y-_),e.arcTo(l.x,l.y,l.x+_,l.y,_),new s(l.x,l.y-n))},n.prototype.drawTargetLabel=function(e){var t,i,n,r,s,a,o,l,h,d,c,p,_,u,f,g,v,w,x,b,S,P,R=this._data.points[1];if(e.save(),e.translate(.5,.5),e.font="normal "+this._targetFontSize3+"px "+this._font,t=1.5*this._targetFontSize1+1.5*this._targetFontSize2+3,i=e.measureText(this._data.targetLine1).width,n=e.measureText(this._data.targetLine2).width,e.font="normal "+this._targetFontSize2+"px "+this._font,r=e.measureText(this._data.targetLine3).width,s=e.measureText(this._data.targetLine4).width,a=Math.max(i+n,r+s+10)+20,o="up"===this._data.direction?"down":"up",l=R.x+a-e.canvas.width+5,l=Math.max(20,Math.min(a-15,l)),h=this.drawBalloon(e,R,a,t,o,l),e.save(),e.fillStyle=y.generateColor(this._data.targetBackColor,this._data.transparency),e.fill(),e.restore(),e.save(),e.lineWidth=2,e.strokeStyle=y.generateColor(this._data.targetStrokeColor,this._data.transparency),e.stroke(),e.restore(),d=3,e.beginPath(),e.arc(R.x,R.y,d,0,2*Math.PI,!1),e.fillStyle=this._data.centersColor,e.fill(),e.textAlign="left",c=6,p=4,e.fillStyle=this._data.targetTextColor,e.font="normal "+this._targetFontSize3+"px "+this._font,e.fillText(this._data.targetLine1,h.x+c,h.y+this._targetFontSize1+p),_=13,u=5,e.fillText(this._data.targetLine2,h.x+c+i+u,h.y+this._targetFontSize1+p),e.font="normal "+this._targetFontSize2+"px "+this._font,f=h.y+this._targetFontSize1+2*p+this._targetFontSize2,e.fillText(this._data.targetLine3,h.x+c,f),e.drawImage(this._data.clockWhite,h.x+c+r+6,f-this._targetFontSize2+3),e.fillText(this._data.targetLine4,h.x+c+r+_+5,f),!this._data.status)return void e.restore();switch(g=this._targetFontSize1+4,e.font="bold "+this._targetFontSize1+"px "+this._font,this._data.status){case m.AlertStatus.Success:v=$.t("SUCCESS"),w=y.generateColor(this._data.successBackground,this._data.transparency),x=this._data.successTextColor,b=this._data.successIcon;break;case m.AlertStatus.Failure:v=$.t("FAILURE"),w=y.generateColor(this._data.failureBackground,this._data.transparency),x=this._data.failureTextColor,b=this._data.failureIcon}S=e.measureText(v).width,P=Math.round((a-S)/2),e.fillStyle=w,"up"===this._data.direction?(e.roundRect(h.x-1,h.y-g-2,a+2,g,5),e.fill(),e.fillStyle=x,e.fillText(v,h.x+P,h.y-5),e.drawImage(b,h.x+P-13,h.y-14)):(e.roundRect(h.x-1,h.y+t+3,a+2,g,5),e.fill(),e.fillStyle=x,e.fillText(v,h.x+P,h.y+t+g-1),e.drawImage(b,h.x+P-13,h.y+t+5)), |
|||
e.restore()},n.prototype.drawStartLabel=function(e){var t,i,n,r,s,a,o,l,h;e.save(),e.translate(.5,.5),e.font="normal "+this._sourceFontSize1+"px "+this._font,t=1.5*this._sourceFontSize1+1.5*this._sourceFontSize2,i=e.measureText(this._data.sourceLine1).width,e.font="normal "+this._fontsize2+"px "+this._font,n=e.measureText(this._data.sourceLine2).width,r=Math.max(i,n)-5,s=this._data.points[0],a=this.drawBalloon(e,s,r,t,this._data.direction),e.fillStyle=y.generateColor(this._data.sourceBackColor,this._data.transparency),e.fill(),e.lineWidth=2,e.strokeStyle=y.generateColor(this._data.sourceStrokeColor,this._data.transparency),e.stroke(),o=3,e.beginPath(),e.arc(s.x,s.y,o,0,2*Math.PI,!1),e.fillStyle=this._data.centersColor,e.fill(),e.textAlign="left",l=3,h=2,e.fillStyle=this._data.sourceTextColor,e.font="normal "+this._sourceFontSize1+"px "+this._font,e.fillText(this._data.sourceLine1,a.x+l,a.y+this._sourceFontSize1+h),e.font="normal "+this._sourceFontSize2+"px "+this._font,e.fillText(this._data.sourceLine2,a.x+l,a.y+this._sourceFontSize1+2*h+this._sourceFontSize2),e.restore()},n.prototype.draw=function(e){var t,i,n,r,s,a,o,l,h,d,c,p,_,u;if(!(null===this._data||this._data.points.length<2)){if(e.lineCap="butt",e.strokeStyle=this._data.color,e.lineWidth=this._data.linewidth,e.lineStyle=this._data.linestyle,t=this._data.points[0],i=this._data.points[1],n=i.subtract(t),Math.abs(n.x)<1||Math.abs(n.y)<1?(e.beginPath(),e.moveTo(t.x,t.y),e.lineTo(i.x,i.y),e.stroke()):(e.save(),e.beginPath(),e.translate(t.x,t.y),e.scale(1,n.y/n.x),e.moveTo(0,0),e.arcTo(n.x,0,n.x,n.x,Math.abs(n.x)),e.lineTo(n.x,n.x),e.restore(),e.stroke()),this.drawTargetLabel(e),this.drawStartLabel(e),r=Math.max(8,4*this._data.linewidth),e.fillStyle=this._data.color,s=n.y<0?1:-1,Math.abs(n.x)<1||Math.abs(n.y)<1)a=Math.atan(n.x/n.y);else{if(o=Math.abs(n.x),l=Math.abs(n.y),h=0,d=Math.PI/2,c=(h+d)/2,n.length()>r)for(;;){if(p=o*Math.sin(c),_=l*(1-Math.cos(c)),u=Math.sqrt((p-o)*(p-o)+(_-l)*(_-l)),Math.abs(u-r)<1)break;u>r?h=c:d=c,c=(h+d)/2}a=Math.atan((o-p)/(l-_)),n.x*n.y<0&&(a=-a)}e.save(),e.beginPath(),e.translate(i.x,i.y),e.rotate(-a),e.moveTo(0,0),e.lineTo(-r/2,s*r),e.lineTo(r/2,s*r),e.lineTo(0,0),e.restore(),e.fill()}},n.prototype.targetLabelHitTest=function(e){var t,i,n,r,s,a,o,l,h,d=this._data.points[1],p=1.5*this._targetFontSize1+1.5*this._targetFontSize2,_=this._targetFontSize1*this._data.targetLine1.length,u=this._targetFontSize1*this._data.targetLine2.length,f=this._targetFontSize2*this._data.targetLine3.length,g=this._targetFontSize2*this._data.targetLine4.length;return this._data.status&&(p+=1.5*this._targetFontSize1),t=Math.max(_+u,f+g)-20,i=20,n=5,r="up"===this._data.direction?-1:1,s=d.x-i,a=d.y+n*r,o=d.y+(n+p)*r,l=Math.min(a,o),h=Math.max(a,o),e.x>=s&&e.x<=s+t&&e.y>=l&&e.y<=h?new c(c.MOVEPOINT):null},n.prototype.sourceLabelHitTest=function(e){ |
|||
var t=1.5*this._sourceFontSize1+1.5*this._sourceFontSize2,i=this._sourceFontSize1*this._data.sourceLine1.length,n=this._sourceFontSize2*this._data.sourceLine2.length,r=Math.max(i,n),s=this._data.points[0],a=20,o=5,l="up"===this._data.direction?1:-1,h=s.x-a,d=s.y+o*l,p=s.y+(o+t)*l,_=Math.min(d,p),u=Math.max(d,p);return e.x>=h&&e.x<=h+r&&e.y>=_&&e.y<=u?new c(c.MOVEPOINT):null},n.prototype.hitTest=function(e){var t,i,n,r,s,a,o,l;return null===this._data||this._data.points.length<2?null:(t=this._data.points[0],i=this._data.points[1],n=i.subtract(t),n=i.subtract(t),r=e.subtract(t),s=Math.abs(n.x),a=Math.abs(n.y),o=u.sign(n.y)*(a-a*Math.sqrt(1-r.x*r.x/(s*s))),l=3,Math.abs(o-r.y)<l?new c(c.MOVEPOINT):this.targetLabelHitTest(e)||this.sourceLabelHitTest(e))},inherit(r,h),r.prototype.renderer=function(){var e,t,i;return this._invalidated&&(this.updateImpl(),this._invalidated=!1),e={},e.points=this._points,e.color=this._source.properties().linecolor.value(),e.linewidth=this._source.properties().linewidth.value(),e.targetLine1=this._targetLine1,e.targetLine2=this._targetLine2,e.targetLine3=this._targetLine3,e.targetLine4=this._targetLine4,e.status=this._source.properties().status.value(),e.transparency=this._source.properties().transparency.value(),e.targetBackColor=this._source.properties().targetBackColor.value(),e.targetStrokeColor=this._source.properties().targetStrokeColor.value(),e.targetTextColor=this._source.properties().targetTextColor.value(),e.sourceBackColor=this._source.properties().sourceBackColor.value(),e.sourceStrokeColor=this._source.properties().sourceStrokeColor.value(),e.sourceTextColor=this._source.properties().sourceTextColor.value(),e.successBackground=this._source.properties().successBackground.value(),e.successTextColor=this._source.properties().successTextColor.value(),e.failureBackground=this._source.properties().failureBackground.value(),e.failureTextColor=this._source.properties().failureTextColor.value(),e.intermediateBackColor=this._source.properties().intermediateBackColor.value(),e.intermediateTextColor=this._source.properties().intermediateTextColor.value(),e.sourceLine1=this._sourceLine1,e.sourceLine2=this._sourceLine2,e.direction=this._direction,e.clockWhite=this._clockWhite,e.clockBlack=this._clockBlack,e.successIcon=this._successIcon,e.failureIcon=this._failureIcon,e.finished=this._finished,t=l(o(this._model._properties.paneProperties.background.value()),150),e.centersColor="black"===t?"white":"black",this._renderer.setData(e),this.isAnchorsRequired()?(i=new p,i.append(this._renderer),this.addAnchors(i),i):this._renderer},r.prototype.update=function(){this._invalidated=!0},r.prototype.updateImpl=function(){var e,t,i,n,r,s,a,o,l,c,p,_;h.prototype._updateImpl.call(this),this._targetLine1="",this._targetLine2="",this._targetLine3="",this._targetLine4="",this._source.points().length<2||this._source.priceScale()&&(e=this._source.points()[1],t=this._source.points()[0],this._targetLine3=this._source.priceScale().formatter().format(e.price),i=e.price-t.price,n=i<0?"-":"+", |
|||
this._targetLine1=this._source.priceScale().formatter().format(Math.abs(i)),r=Math.abs(Math.round(i/t.price*1e4)/100),this._targetLine1=n+this._targetLine1+" ("+n+this._percentageFormatter.format(r)+")",s=this._model.timeScale().indexToUserTime(t.index),a=this._model.timeScale().indexToUserTime(e.index),o=t.time&&e.time,o&&(s=TradingView.isString(t.time)?new Date(Date.parse(t.time)):t.time,a=TradingView.isString(e.time)?new Date(Date.parse(e.time)):e.time),l=this._model.mainSeries().isDWM(),c=d.kind(this._model.mainSeries().interval())===d.SECONDS,a&&s&&(this._targetLine4=(new g).format(a),l||(this._targetLine4=this._targetLine4+" "+new v(c?"%h:%m:%s":"%h:%m").format(a)),p=(a.valueOf()-s.valueOf())/1e3,this._targetLine2=$.t("in",{context:"dates"})+" "+(new w).format(p)),this._sourceLine1=this._source.priceScale().formatter().format(t.price),this._sourceLine2="",_=this._model.timeScale().indexToUserTime(t.index),_&&(this._sourceLine2=(new g).format(_),l||(this._sourceLine2=this._sourceLine2+" "+new v(c?"%h:%m:%s":"%h:%m").format(_))),this._direction=this._source.direction()===m.Direction.Up?"up":"down",this._finished=this._model.lineBeingCreated()!==this._source&&this._model.lineBeingEdited()!==this._source&&this._model.sourceBeingMoved()!==this._source)},t.PredictionPaneView=r},913:function(e,t,i){"use strict";function n(e,t){this._data=null,this._measureCache=e,this._chartModel=t,this._points=null}function r(e,t,i){o.call(this,e,t),this._image=c("price_label",TradingView.wrapUrl("images/price_label.png")),this._rendererCache={},this._invalidated=!0,this._renderer=new n(this._rendererCache,t)}var s=i(1).Point,a=i(49).pointInRectangle,o=i(12).LineSourcePaneView,l=i(74).SelectionRenderer,h=i(4),d=i(8).CompositeRenderer,c=i(392),p=i(19);n.prototype.setData=function(e){this._data=e,this._points=e.points},n.prototype.draw=function(e){var t,i,n,r,s,a,o,l,h;null!==this._data&&null!==this._points&&0!==this._points.length&&(e.font=[this._data.fontWeight,this._data.fontSize+"px",this._data.fontFamily].join(" "),t=e.measureText(this._data.label),t.height=this._data.fontSize,i=3,n=15,r=-9,s={left:10,top:5},a=t.width+2*s.left,o=t.height+2*s.top,l=this._points[0].x-r,h=this._points[0].y-(o+n),this._measureCache&&$.extend(this._measureCache,{innerWidth:a,innerHeight:o,tailLeft:r,tailHeight:n}),e.translate(.5+l,.5+h),e.beginPath(),e.moveTo(12,o),e.lineTo(r,o+n),e.lineTo(r-1,o+n-1),e.lineTo(5,o),e.lineTo(i,o),e.arcTo(0,o,0,0,i),e.lineTo(0,i),e.arcTo(0,0,a,0,i),e.lineTo(a-i,0),e.arcTo(a,0,a,o,i),e.lineTo(a,o-i),e.arcTo(a,o,0,o,i),e.lineTo(12,o),e.fillStyle=p.generateColor(this._data.backgroundColor,this._data.transparency),e.fill(),e.strokeStyle=this._data.borderColor,e.lineWidth=2,e.stroke(),e.closePath(),e.textBaseline="top",e.fillStyle=this._data.color,e.fillText(this._data.label,s.left,s.top-1),e.translate(-.5,-.5),e.beginPath(),e.arc(r,o+n,2.5,0,2*Math.PI,!1),e.fillStyle=p.generateColor(this._data.borderColor,this._data.transparency),e.fill(),e.strokeStyle=this._chartModel.backgroundColor(),e.lineWidth=1,e.stroke(), |
|||
e.closePath())},n.prototype.hitTest=function(e){var t,i;return null===this._data||null===this._points||0===this._points.length?null:(t=this._points[0].x-this._measureCache.tailLeft,i=this._points[0].y-(this._measureCache.innerHeight+this._measureCache.tailHeight),a(e,new s(t,i),new s(t+this._measureCache.innerWidth,i+this._measureCache.innerHeight))?new h(h.MOVEPOINT):null)},inherit(r,o),r.prototype.update=function(){this._invalidated=!0},r.prototype.updateImpl=function(){var e,t,i;if(o.prototype._updateImpl.call(this),this._source.points().length>0){if(e=this._source.points()[0].price,!(t=this._source.priceScale())||t.isEmpty())return;t.isPercent()&&(i=this._source.ownerSource().firstValue(),e=t.priceRange().convertToPercent(e,i)),this._priceLabel=t.formatter().format(e)}},r.prototype.renderer=function(){var e,t;return this._invalidated&&(this.updateImpl(),this._invalidated=!1),e={},e.points=this._points,e.borderColor=this._source.properties().borderColor.value(),e.backgroundColor=this._source.properties().backgroundColor.value(),e.color=this._source.properties().color.value(),e.fontWeight=this._source.properties().fontWeight.value(),e.fontSize=this._source.properties().fontsize.value(),e.fontFamily=this._source.properties().font.value(),e.transparency=this._source.properties().transparency.value(),e.label=this._priceLabel,e.image=this._image,this._renderer.setData(e),this.isAnchorsRequired()&&1===e.points.length?(t=new d,t.append(this._renderer),t.append(new l({points:e.points})),t):this._renderer},t.PriceLabelPaneView=r},915:function(e,t,i){"use strict";function n(e,t){s.call(this,e,t),this._invalidated=!0,this._percentageFormatter=new d,this._pipFormatter=null,this._lastSymbolInfo=null,this._topBorderRenderer=new l,this._bottomBorderRenderer=new l,this._distanceRenderer=new l,this._backgroundRenderer=new o,this._labelRenderer=new a({})}var r=i(1).Point,s=i(12).LineSourcePaneView,a=i(27).TextRenderer,o=i(70).RectangleRenderer,l=i(16).TrendLineRenderer,h=i(8).CompositeRenderer,d=i(94).PercentageFormatter,c=i(145).PipFormatter,p=i(18).LineEnd;inherit(n,s),n.prototype.update=function(){this._invalidated=!0},n.prototype.updateImpl=function(){s.prototype._updateImpl.call(this)},n.prototype.renderer=function(){var e,t,i,n,s,a,o,l,d,_,u,f,g,v,w,y,m,x,b,S,P,R,T,L,C,k,I,B;return this._invalidated&&(this.updateImpl(),this._invalidated=!1),e=new h,this._points.length<2||this._source.points().length<2?e:(t=this._source.properties(),i=t.extendLeft.value(),n=t.extendRight.value(),s=this._model.timeScale().width(),a=this._points[0],o=this._points[1],l=i?0:Math.min(a.x,o.x),d=n?s:Math.max(a.x,o.x),t.fillBackground&&t.fillBackground.value()&&(_={},_.points=[new r(l,a.y),new r(d,o.y)],_.color="white",_.linewidth=0,_.backcolor=t.backgroundColor.value(),_.fillBackground=!0,_.transparency=t.backgroundTransparency.value(),this._backgroundRenderer.setData(_),e.append(this._backgroundRenderer)),u=this,f=function(t,i,n){var r={};r.points=[i,n],r.width=u._model.timeScale().width(),r.height=u._source.priceScale().height(), |
|||
r.color=u._source.properties().linecolor.value(),r.linewidth=u._source.properties().linewidth.value(),r.linestyle=CanvasEx.LINESTYLE_SOLID,r.extendleft=!1,r.extendright=!1,r.leftend=p.Normal,r.rightend=p.Normal,t.setData(r),e.append(t)},f(this._topBorderRenderer,new r(l,a.y),new r(d,a.y)),f(this._bottomBorderRenderer,new r(l,o.y),new r(d,o.y)),a=this._points[0],o=this._points[1],g=(a.x+o.x)/2,v=new r(g,a.y),w=new r(g,o.y),_={},_.points=[v,w],_.width=u._model.timeScale().width(),_.height=u._source.priceScale().height(),_.color=u._source.properties().linecolor.value(),_.linewidth=u._source.properties().linewidth.value(),_.linestyle=CanvasEx.LINESTYLE_DASHED,_.extendleft=!1,_.extendright=!1,_.leftend=p.Normal,_.rightend=p.Arrow,this._distanceRenderer.setData(_),e.append(this._distanceRenderer),y=this._source.points()[0].price,m=this._source.points()[1].price,x=m-y,b=100*x/y,S=this._model.mainSeries().symbolInfo(),S&&S!==this._lastSymbolInfo&&(this._pipFormatter=new c(S.pricescale,S.minmov,S.type,S.minmove2),this._lastSymbolInfo=S),P=this._source.priceScale().formatter().format(x)+" ("+this._percentageFormatter.format(b)+") "+(this._pipFormatter?this._pipFormatter.format(x):""),_={},m>y?(R=o.clone(),R.y-=2*t.fontsize.value(),R.x=.5*(a.x+o.x),_.points=[R]):(R=o.clone(),R.x=.5*(a.x+o.x),R.y+=.7*t.fontsize.value(),_.points=[R]),T={x:0,y:10},_.text=P,_.color=t.textcolor.value(),_.height=u._source.priceScale().height(),_.font=t.font.value(),_.offsetX=T.x,_.offsetY=T.y,_.vertAlign="middle",_.horzAlign="center",_.fontsize=t.fontsize.value(),_.backgroundRoundRect=4,_.backgroundHorzInflate=.4*t.fontsize.value(),_.backgroundVertInflate=.2*t.fontsize.value(),t.fillLabelBackground&&t.fillLabelBackground.value()&&(_.backgroundColor=t.labelBackgroundColor.value(),_.backgroundTransparency=1-t.labelBackgroundTransparency.value()/100||0),t.drawBorder&&t.drawBorder.value()&&(_.borderColor=t.borderColor.value()),L=.5*(a.x+o.x),C=o.y,k=new r(L,C),this._labelRenderer.setData(_),I=this._labelRenderer.measure(),B={x:L+_.backgroundHorzInflate+I.textBgPadding-I.width/I.textBgPadding,y:a.y>o.y?k.y-I.height-2*I.textBgPadding-T.y>0?C-I.height-T.y-2*I.textBgPadding:T.y-2*I.textBgPadding:k.y+I.height+I.textBgPadding+T.y>_.height?_.height-I.height-T.y:C+I.textBgPadding},this._labelRenderer.setPoints([new r(L,B.y)]),e.append(this._labelRenderer),this.addAnchors(e),e)},t.PriceRangePaneView=n},917:function(e,t,i){"use strict";function n(e,t){s.call(this,e,t),this._baseTrendRenderer=new a,this._edgeTrendRenderer=new a,this._arcWedgeRenderer=new r}var r=i(491).ArcWedgeRenderer,s=i(414).FibWedgePaneView,a=i(16).TrendLineRenderer,o=i(8).CompositeRenderer,l=i(18).LineEnd;inherit(n,s),n.prototype.update=function(){s.prototype.update.call(this)},n.prototype.renderer=function(){var e,t,i,n,r,s,a,h,d,c,p,_;return this._invalidated&&(this._updateImpl(),this._invalidated=!1),e=new o,this._points.length<2?e:(t=this._source.properties(),i=this._points,n=i[0],r=i[1],s={points:[n,r],width:this._model.timeScale().width(),height:this._source.priceScale().height(), |
|||
color:t.trendline.color.value(),linewidth:t.linewidth.value(),linestyle:t.trendline.linestyle.value(),extendleft:!1,extendright:!1,leftend:l.Normal,rightend:l.Normal},this._baseTrendRenderer.setData(s),e.append(this._baseTrendRenderer),this._points.length<3?(this.addAnchors(e),e):(a=i[2],h=a.data,d=r.subtract(n).length(),c=a.subtract(n).normalized(),a=n.add(c.scaled(d)),a.data=h,s={points:[n,a],width:this._model.timeScale().width(),height:this._source.priceScale().height(),color:t.trendline.color.value(),linewidth:t.linewidth.value(),linestyle:t.trendline.linestyle.value(),extendleft:!1,extendright:!1,leftend:l.Normal,rightend:l.Normal},this._edgeTrendRenderer.setData(s),e.append(this._edgeTrendRenderer),p=this._levels[0],_={},_.center=this._points[0],_.radius=p.radius,_.prevRadius=0,_.edge=this._edge,_.color=t.trendline.color.value(),_.color1=t.color1.value(),_.color2=t.color2.value(),_.linewidth=t.linewidth.value(),_.edge1=this._edge1,_.edge2=this._edge2,_.p1=p.p1,_.p2=p.p2,_.fillBackground=t.fillBackground.value(),_.transparency=t.transparency.value(),_.gradient=!0,this._arcWedgeRenderer.setData(_),e.append(this._arcWedgeRenderer),this.addAnchors(e),e))},t.ProjectionLinePaneView=n},920:function(e,t,i){"use strict";function n(e,t){s.call(this,e,t),this._invalidated=!0,this._renderer=new o}var r=i(1).Point,s=i(12).LineSourcePaneView,a=i(8).CompositeRenderer,o=i(70).RectangleRenderer;inherit(n,s),n.prototype.update=function(){this._invalidated=!0},n.prototype.updateImpl=function(){s.prototype._updateImpl.call(this),this._invalidated=!1},n.prototype.renderer=function(){var e,t,i,n,s,o;return this._invalidated&&this.updateImpl(),e={},e.points=this._points,e.color=this._source.properties().color.value(),e.linewidth=this._source.properties().linewidth.value(),e.backcolor=this._source.properties().backgroundColor.value(),e.fillBackground=this._source.properties().fillBackground.value(),e.transparency=this._source.properties().transparency.value(),this._renderer.setData(e),this.isAnchorsRequired()?(t=new a,t.append(this._renderer),i=this._points[0],n=this._points[1],s=new r(i.x,n.y),s.data=2,o=new r(n.x,i.y),o.data=3,t.append(this.createLineAnchor({points:[i,n,s,o]})),t):this._renderer},t.RectanglePaneView=n},922:function(e,t,i){"use strict";function n(e,t){s.call(this,e,t),this._invalidated=!0,this._percentageFormatter=new c,this._numericFormatter=new p,this._pipFormatter=null,this._lastSymbolInfo=null,this._entryLineRenderer=new a,this._stopLineRenderer=new a,this._targetLineRenderer=new a,this._positionLineRenderer=new a,this._fullStopBgRenderer=new l(new h(h.MOVEPOINT),new h(h.MOVEPOINT)),this._stopBgRenderer=new l(new h(h.MOVEPOINT),new h(h.MOVEPOINT)),this._fullTargetBgRenderer=new l(new h(h.MOVEPOINT),new h(h.MOVEPOINT)),this._targetBgRenderer=new l(new h(h.MOVEPOINT),new h(h.MOVEPOINT)),this._stopLabelRenderer=new o({}),this._middleLabelRenderer=new o({}),this._profitLabelRenderer=new o({})} |
|||
var r=i(1).Point,s=i(12).LineSourcePaneView,a=i(16).TrendLineRenderer,o=i(27).TextRenderer,l=i(70).RectangleRenderer,h=i(4),d=i(8).CompositeRenderer,c=i(94).PercentageFormatter,p=i(38).NumericFormatter,_=i(145).PipFormatter,u=i(19),f=i(18).LineEnd,g=i(488).RiskRewardPointIndex;inherit(n,s),n.prototype.i18nCache={pnl:$.t("{0} P&L: {1}"),open:$.t("Open",{context:"line_tool_position"}),closed:$.t("Closed",{context:"line_tool_position"}),ratio:$.t("Risk/Reward Ratio: {0}"),stop:$.t("Stop: {0} ({1}) {2}, Amount: {3}"),target:$.t("Target: {0} ({1}) {2}, Amount: {3}"),qty:$.t("Qty: {0}")},n.prototype._formatInTicks=function(e){var t=this._model.mainSeries().base();return Math.round(e*t)},n.prototype.isLabelVisible=function(){return this.isHoveredSource()||this.isSelectedSource()},n.prototype.update=function(){this._invalidated=!0},n.prototype._updateImpl=function(){var e,t,i,n,r,a,o;s.prototype._updateImpl.call(this),this._stopLevel=null,this._profitLevel=null,e=this._model.timeScale(),!(t=this._source.priceScale())||t.isEmpty()||e.isEmpty()||0!==this._source.points().length&&0!==this._points.length&&null!==this._model.mainSeries().bars().last()&&(this._source.points().length<2||0!==this._model.mainSeries().bars().length&&(this._isClosed=4===this._source.points().length,(i=this._source.lastBarData())&&(n=this._source.priceScale(),r=this._source.stopPrice(),a=this._source.profitPrice(),this._pl=this._source.points().length>1?this._source.calculatePL(i.closePrice):0,n.isPercent()&&(o=this._source.ownerSource().firstValue(),r=n.priceRange().convertToPercent(r,o),a=n.priceRange().convertToPercent(a,o),i.closePrice=n.priceRange().convertToPercent(i.closePrice,o)),this._entryLevel=this._points[g.Entry].y,this._stopLevel=t.priceToCoordinate(r),this._profitLevel=t.priceToCoordinate(a),this._closeLevel=t.priceToCoordinate(i.closePrice),this._closeBar=this._source._model.timeScale().indexToCoordinate(i.index))))},n.prototype.renderer=function(){var e,t,i,n,s,a,o,l,h,c,p,v,w,y,m,x,b,S,P,R,T,L,C,k,I,B,M,A,D,E,O,N,V,z,F,W,H,Y;return this._invalidated&&(this._updateImpl(),this._invalidated=!1),e=new d,this._points.length<2||this._source.points().length<2?e:(t=this,i=this._source.properties(),n=this._points[g.Entry].x,s=this._points[g.ActualEntry]?this._points[g.ActualEntry].x:this._points[g.Close].x,a=this._points[g.ActualClose]?this._points[g.ActualClose].x:this._points[g.Close].x,o=this._points[g.Close].x,l=new r(n,this._entryLevel),h=new r(o,this._stopLevel),c={},c.points=[l,h],c.color="white",c.linewidth=0,c.backcolor=i.stopBackground.value(),c.fillBackground=!0,c.transparency=i.stopBackgroundTransparency.value(),this._fullStopBgRenderer.setData(c),e.append(this._fullStopBgRenderer),this._pl<0&&(l=new r(s,this._entryLevel),h=new r(a,this._closeLevel),c={},c.points=[l,h],c.color="white",c.linewidth=0,c.backcolor=i.stopBackground.value(),c.fillBackground=!0,p=.01*i.stopBackgroundTransparency.value(),v=100*(1-p*p*p),w=100-v,c.transparency=w,this._stopBgRenderer.setData(c),e.append(this._stopBgRenderer)),l=new r(n,this._entryLevel), |
|||
h=new r(o,this._profitLevel),c={},c.points=[l,h],c.color="white",c.linewidth=0,c.backcolor=i.profitBackground.value(),c.fillBackground=!0,c.transparency=i.profitBackgroundTransparency.value(),this._fullTargetBgRenderer.setData(c),e.append(this._fullTargetBgRenderer),this._pl>0&&(l=new r(s,this._entryLevel),h=new r(a,this._closeLevel),c={},c.points=[l,h],c.color="white",c.linewidth=0,c.backcolor=i.profitBackground.value(),c.fillBackground=!0,p=.01*i.profitBackgroundTransparency.value(),y=100*(1-p*p*p),m=100-y,c.transparency=m,this._targetBgRenderer.setData(c),e.append(this._targetBgRenderer)),x=function(i,n,r,s){var a={};a.points=[n,r],a.width=t._model.timeScale().width(),a.height=t._source.priceScale().height(),a.color=s||t._source.properties().linecolor.value(),a.linewidth=t._source.properties().linewidth.value(),a.linestyle=CanvasEx.LINESTYLE_SOLID,a.extendleft=!1,a.extendright=!1,a.leftend=f.Normal,a.rightend=f.Normal,i.setData(a),e.append(i)},this._points[g.ActualEntry]&&(l=this._points[g.ActualEntry],h=this._isClosed?this._points[g.ActualClose]:new r(this._closeBar,this._closeLevel),c={},c.points=[l,h],c.width=t._model.timeScale().width(),c.height=t._source.priceScale().height(),c.color=t._source.properties().linecolor.value(),c.linewidth=1,c.linestyle=CanvasEx.LINESTYLE_DASHED,c.extendleft=!1,c.extendright=!1,c.leftend=f.Normal,c.rightend=f.Arrow,this._positionLineRenderer.setData(c),e.append(this._positionLineRenderer)),t=this,b=function(n,r,s,a,o,l,h){if(t.isLabelVisible()||TradingView.printing){var d={};d.points=[r],d.text=s,d.color=i.textcolor.value(),d.font=i.font.value(),d.offsetX=3,d.offsetY=l,d.vertAlign=o,d.horzAlign="center",d.backgroundRoundRect=4,d.backgroundColor=u.resetTransparency(a),d.fontsize=i.fontsize.value(),d.backgroundHorzInflate=4,d.backgroundVertInflate=2,h&&(d.borderColor=h),n.setData(d),e.append(n)}},S=this._source.entryPrice(),P=this._source.stopPrice(),R=this._source.profitPrice(),T=Math.abs(P-S),L=Math.round(1e4*T/S)/100,C=Math.abs(R-S),k=Math.round(1e4*C/S)/100,I=Math.abs(S-R)/Math.abs(S-P),l=new r(n,this._points[g.Entry].y),h=new r(o,this._points[g.Entry].y),x(this._entryLineRenderer,l,h),B=new r((n+o)/2,Math.round(this._points[0].y)+.5),M="",A="",D=this._numericFormatter.format(Math.round(100*I)/100),this._points[1]&&void 0!==this._pl&&(A=this._source.priceScale().formatter().format(this._pl)),i.compact.value()?(M+=A?A+" ~ ":"",M+=i.qty.value()+"\n",M+=D):(E=this._isClosed?this.i18nCache.closed:this.i18nCache.open,M+=A?this.i18nCache.pnl.format(E,A)+", ":"",M+=this.i18nCache.qty.format(i.qty.value())+"\n",M+=this.i18nCache.ratio.format(D)+" "),O=i.linecolor.value(),this._pl<0?O=i.stopBackground.value():this._pl>0&&(O=i.profitBackground.value()),b(this._middleLabelRenderer,B,M,O,"middle",0,"white"),l=new r(n,this._stopLevel),h=new r(o,this._stopLevel),x(this._stopLineRenderer,l,h,i.stopBackground.value()),N=this._model.mainSeries().symbolInfo(),N&&N!==this._lastSymbolInfo&&(this._pipFormatter=new _(N.pricescale,N.minmov,N.type,N.minmove2),this._lastSymbolInfo=N), |
|||
B=new r((n+o)/2,this._stopLevel),M="",V=this._source.priceScale().formatter().format(T),z=this._percentageFormatter.format(L),M=i.compact.value()?V+" ("+z+") "+i.amountStop.value():this.i18nCache.stop.format(this._source.priceScale().formatter().format(T),this._percentageFormatter.format(L),this._pipFormatter?this._pipFormatter.format(T):"",i.amountStop.value()),b(this._stopLabelRenderer,B,M,i.stopBackground.value(),S<P?"bottom":"top",S<P?-12:-1),l=new r(n,this._profitLevel),h=new r(o,this._profitLevel),x(this._targetLineRenderer,l,h,i.profitBackground.value()),B=new r((n+o)/2,this._profitLevel),M="",V=this._source.priceScale().formatter().format(C),z=this._percentageFormatter.format(k),M=i.compact.value()?V+" ("+z+") "+i.amountTarget.value():this.i18nCache.target.format(this._source.priceScale().formatter().format(C),this._percentageFormatter.format(k),this._pipFormatter?this._pipFormatter.format(C):"",i.amountTarget.value()),b(this._profitLabelRenderer,B,M,i.profitBackground.value(),S<P?"top":"bottom",S<P?-1:-12),this.isAnchorsRequired()&&(F=this._points[0].clone(),F.data=0,W=new r(n,this._stopLevel),W.data=1,H=new r(n,this._profitLevel),H.data=2,Y=new r(o,F.y),Y.data=3,e.append(this.createLineAnchor({points:[F,W,H,Y]}))),e)},t.RiskRewardPaneView=n},923:function(e,t,i){"use strict";function n(e,t){a.call(this,e,t),this._invalidated=!0,this._poligonRenderer=new l}var r=i(1).Point,s=i(33).distanceToLine,a=i(12).LineSourcePaneView,o=i(16).TrendLineRenderer,l=i(164),h=i(8).CompositeRenderer,d=i(18).LineEnd;inherit(n,a),n.prototype.update=function(){this._invalidated=!0},n.prototype.updateImpl=function(){a.prototype._updateImpl.call(this),this._distance=0,3===this._points.length&&(this._distance=s(this._points[0],this._points[1],this._points[2]).distance)},n.prototype.renderer=function(){var e,t,i,n,s,a,l,c,p,_,u,f,g,v;return this._invalidated&&(this.updateImpl(),this._invalidated=!1),e=new h,t=this._source.properties(),i=this._points[0],n=this._points[1],2===this._points.length?(p={},p.points=this._points,p.floatPoints=this._floatPoints,p.width=this._model.timeScale().width(),p.height=this._source.priceScale().height(),p.color=t.color.value(),p.linewidth=1,p.linestyle=CanvasEx.LINESTYLE_SOLID,p.extendleft=!1,p.extendright=!1,p.leftend=d.Normal,p.rightend=d.Normal,_=new o,_.setData(p),e.append(_)):3===this._points.length&&(u=n.subtract(i),f=new r(u.y,-u.x).normalized().scaled(this._distance),g=f.scaled(-1),s=i.add(f),a=n.add(f),l=i.add(g),c=n.add(g),p={},p.points=[s,a,c,l],p.color=t.color.value(),p.linewidth=this._source.properties().linewidth.value(),p.linestyle=CanvasEx.LINESTYLE_SOLID,p.filled=!0,p.backcolor=t.backgroundColor.value(),p.fillBackground=t.fillBackground.value(),p.transparency=t.transparency.value(),this._poligonRenderer.setData(p),e.append(this._poligonRenderer)),this.isAnchorsRequired()&&(v=[],v.push(i),this._points.length>=2&&v.push(n),3===this._points.length&&(s.data=2,l.data=2,a.data=2,c.data=2,v.push(s),v.push(l),v.push(a),v.push(c)),e.append(this.createLineAnchor({points:v}))),e}, |
|||
t.RotatedRectanglePaneView=n},927:function(e,t,i){"use strict";function n(e){this._data=e}function r(e,t){a.call(this,e,t),this._invalidated=!0}var s=i(1).Point,a=i(12).LineSourcePaneView,o=i(4),l=i(8).CompositeRenderer;n.prototype.draw=function(e){var t,i,n;for(e.strokeStyle=this._data.color,e.lineWidth=this._data.linewidth,CanvasEx.setLineStyle(e,this._data.linestyle),e.beginPath(),e.moveTo(this._data.point.x,this._data.point.y),t=1;t<=2*this._data.width;t++)i=t*Math.PI/this._data.width,n=Math.sin(i-Math.PI/2)*this._data.height/2,e.lineTo(this._data.point.x+t,this._data.point.y+n+this._data.height/2);e.stroke()},n.prototype.hitTest=function(e){var t,i,n,r;return e.x<this._data.point.x||e.x>this._data.point.x+2*this._data.width?null:(t=e.x-this._data.point.x,i=t*Math.PI/this._data.width,n=Math.sin(i-Math.PI/2)*this._data.height/2,n=this._data.point.y+n+this._data.height/2,r=3,Math.abs(n-e.y)<=r?new o(o.MOVEPOINT):null)},inherit(r,a),r.prototype.update=function(){this._invalidated=!0},r.prototype.updateImpl=function(){a.prototype._updateImpl.call(this),this._invalidated=!1},r.prototype.renderer=function(){var e,t,i,r,a,o,h,d,c,p,_,u,f,g,v,w,y,m,x,b;if(this._invalidated&&this.updateImpl(),this._points.length<2)return null;if(e=this._source.points(),t=e[0],i=e[1],r=Math.min(t.index,i.index),a=Math.max(t.index,i.index),o=2*(a-r),h=this._points[0],d=this._points[1],c=Math.abs(h.x-d.x),p=d.y-h.y,_=new l,u=this._source.properties(),f=this._model.timeScale(),0===o)return null;for(g=f.indexToCoordinate(r),v=[],w=r;g>-c;w-=o)g=f.indexToCoordinate(w),v.push(g);for(g=g=f.indexToCoordinate(r+o),w=r+o;g<f.width();w+=o)g=f.indexToCoordinate(w),v.push(g);for(y=0;y<v.length;y++)m=new s(v[y],h.y),x={point:m,width:c,height:p,color:u.linecolor.value(),linewidth:u.linewidth.value(),linestyle:u.linestyle.value()},b=new n(x),_.append(b);return this.addAnchors(_),_},t.SineLinePaneView=r},929:function(e,t,i){"use strict";function n(e,t){r.call(this,e,t),this._numericFormatter=new l,this._invalidated=!0,this._retrace1LabelRenderer=new a({}),this._retrace12LabelRenderer=new a({})}var r=i(12).LineSourcePaneView,s=i(16).TrendLineRenderer,a=i(27).TextRenderer,o=i(8).CompositeRenderer,l=i(38).NumericFormatter,h=i(19),d=i(18).LineEnd;inherit(n,r),n.prototype.renderer=function(){var e,t,i,n,r,a,l,c,p,_;if(this._invalidated&&(this.updateImpl(),this._invalidated=!1),this._points.length<2)return null;for(e=this._source.properties(),t=new o,i=this,n=function(t,n){return{points:[t],text:n,color:e.textcolor.value(),vertAlign:"middle",horzAlign:"center",font:e.font.value(),offsetX:0,offsetY:0,bold:e.bold&&e.bold.value(),italic:e.italic&&e.italic.value(),fontsize:e.fontsize.value(),backgroundColor:i._source.properties().color.value(),backgroundRoundRect:4}},r=function(t,n,r,s){return{points:[t,n],width:i._model.timeScale().width(),height:i._source.priceScale().height(),color:h.generateColor(i._source.properties().color.value(),r),linewidth:s||e.linewidth.value(),linestyle:CanvasEx.LINESTYLE_SOLID,extendleft:!1,extendright:!1,leftend:d.Normal, |
|||
rightend:d.Normal}},a=1;a<this._points.length;a++)l=r(this._points[a-1],this._points[a],0),c=new s,c.setData(l),t.append(c);return this._retrace1&&(l=r(this._points[1],this._points[3],70,1),c=new s,c.setData(l),t.append(c),p=this._points[1].add(this._points[3]).scaled(.5),_=n(p,this._numericFormatter.format(this._retrace1)),this._retrace1LabelRenderer.setData(_),t.append(this._retrace1LabelRenderer)),this._retrace2&&(l=r(this._points[3],this._points[5],70,1),c=new s,c.setData(l),t.append(c),p=this._points[5].add(this._points[3]).scaled(.5),_=n(p,this._numericFormatter.format(this._retrace2)),this._retrace12LabelRenderer.setData(_),t.append(this._retrace12LabelRenderer)),this.addAnchors(t),t},n.prototype.update=function(){this._invalidated=!0},n.prototype.updateImpl=function(){var e,t,i,n,s;r.prototype._updateImpl.call(this),delete this._retrace1,delete this._retrace2,this._source.points().length>=4&&(e=this._source.points()[1],t=this._source.points()[2],i=this._source.points()[3],this._retrace1=Math.round(100*Math.abs((i.price-t.price)/(t.price-e.price)))/100),this._source.points().length>=6&&(i=this._source.points()[3],n=this._source.points()[4],s=this._source.points()[5],this._retrace2=Math.round(100*Math.abs((s.price-n.price)/(n.price-i.price)))/100)},t.LineToolThreeDrivesPaneView=n},931:function(e,t,i){"use strict";function n(){this._data=null}function r(e,t){a.call(this,e,t),this._invalidated=!0}var s=i(1).Point,a=i(12).LineSourcePaneView,o=i(4),l=i(8).CompositeRenderer,h=i(19);n.prototype.setData=function(e){this._data=e},n.prototype.draw=function(e){null!==this._data&&(e.strokeStyle=this._data.color,e.lineWidth=this._data.linewidth,CanvasEx.setLineStyle(e,this._data.linestyle),e.save(),e.translate(this._data.point.x+1,this._data.point.y),e.scale(this._data.width,this._data.height),e.beginPath(),e.arc(.5,0,.5,Math.PI,0,!1),e.restore(),e.stroke(),this._data.fillBackground&&(e.fillStyle=h.generateColor(this._data.backcolor,this._data.transparency),e.fill()))},n.prototype.hitTest=function(e){var t,i,n,r,a;return null===this._data||e.y>this._data.point.y?null:e.x<this._data.point.x||e.x>this._data.point.x+this._data.width?null:(t=new s(this._data.point.x+this._data.width/2,this._data.point.y),i=e.subtract(t),n=this._data.height/this._data.width,i.y/=n,r=i.length(),a=3,Math.abs(r-this._data.width/2)<a?new o(o.MOVEPOINT):null)},inherit(r,a),r.prototype.update=function(){this._invalidated=!0},r.prototype.updateImpl=function(){a.prototype._updateImpl.call(this),this._invalidated=!1},r.prototype.renderer=function(){var e,t,i,r,a,o,h,d,c,p,_,u,f,g,v,w,y,m,x;if(this._invalidated&&this.updateImpl(),this._points.length<2)return null;if(e=this._source.points(),t=e[0],i=e[1],r=Math.min(t.index,i.index),a=Math.max(t.index,i.index),o=a-r,h=this._points[0],d=this._points[1],c=Math.abs(h.x-d.x),p=new l,_=this._source.properties(),u=this._model.timeScale(),0===o)return null;for(f=Math.min(h.x,d.x),g=[],v=r;f>-c;v-=o)f=u.indexToCoordinate(v),g.push(f);for(f=Math.max(h.x,d.x),v=a;f<u.width();v+=o)f=u.indexToCoordinate(v),g.push(f) |
|||
;for(w=0;w<g.length;w++)y=new s(g[w],h.y),m={point:y,width:c,height:c,color:_.linecolor.value(),linewidth:_.linewidth.value(),linestyle:_.linestyle.value(),fillBackground:_.fillBackground.value(),backcolor:_.backgroundColor.value(),transparency:_.transparency.value()},x=new n,x.setData(m),p.append(x);return this.addAnchors(p),p},t.TimeCyclesPaneView=r},933:function(e,t,i){"use strict";function n(){this._data=null}function r(e,t){a.call(this,e,t),this._label=null,this._rendererCache={},this._invalidated=!0,this._pipFormatter=null,this._lastSymbolInfo=null,this._trendLineRenderer=new h,this._angleRenderer=new n,this._angleLabelRenderer=new l({})}var s=i(1).Point,a=i(12).LineSourcePaneView,o=i(423).TrendLineStatsRenderer,l=i(27).TextRenderer,h=i(16).TrendLineRenderer,d=i(8).CompositeRenderer,c=i(94).PercentageFormatter,p=i(74).SelectionRenderer,_=i(145).PipFormatter,u=i(18).LineEnd,f=i(313).LabelSettings,g=i(105).PaneRendererClockIcon;n.prototype.setData=function(e){this._data=e},n.prototype.hitTest=function(){return null},n.prototype.draw=function(e){var t,i;null!==this._data&&(e.save(),e.translate(this._data.point.x,this._data.point.y),e.strokeStyle=this._data.color,t=[1,2],"function"==typeof e.setLineDash?e.setLineDash(t):void 0!==e.mozDash?e.mozDash=t:void 0!==e.webkitLineDash&&(e.webkitLineDash=t),i=this._data.size,e.beginPath(),e.moveTo(0,0),e.lineTo(i,0),e.arc(0,0,i,0,-this._data.angle,this._data.angle>0),e.stroke(),e.restore())},inherit(r,a),r.prototype.update=function(){this._invalidated=!0},r.prototype.updateImpl=function(){var e,t,i,n,r,o,l,h,d,p,u,f,g;a.prototype._updateImpl.call(this),this._points.length>0&&void 0!==this._source._angle&&(e=this._points[0],t=Math.cos(this._source._angle),i=-Math.sin(this._source._angle),n=new s(t,i),this._secondPoint=e.addScaled(n,this._source._distance),this._secondPoint.data=1,this._middlePoint=this._source.calcMiddlePoint(this._points[0],this._secondPoint)),this._label=null,this._source.points().length<2||(e=this._source.points()[0],r=this._source.points()[1],o=[],this._source.properties().showPriceRange.value()&&this._source.priceScale()&&(d=r.price-e.price,p=d/e.price,l=this._source.priceScale().formatter().format(d)+" ("+(new c).format(100*p)+")",u=this._model.mainSeries().symbolInfo(),u&&u!==this._lastSymbolInfo&&(this._pipFormatter=new _(u.pricescale,u.minmov,u.type,u.minmove2),this._lastSymbolInfo=u),l+=this._pipFormatter?", "+this._pipFormatter.format(d):"",o.push("priceRange")),f=this._source.properties().showBarsRange.value(),f&&(h="",g=r.index-e.index,h+=$.t("{0} bars").format(g),o.push("barsRange")),this._label=[l,h].filter(function(e){return e}).join("\n")||null,this._icons=o)},r.prototype.renderer=function(){var e,t,i,n,r,s,a,l,h,c,_;return this._invalidated&&(this.updateImpl(),this._invalidated=!1),e=new d,t={},i=this.isAnchorsRequired(),n=i||this._source.properties().alwaysShowStats.value(),r=(this.isHoveredSource()||this.isSelectedSource())&&this._source.properties().showMiddlePoint.value(), |
|||
this._secondPoint&&this._points.length>0&&(t.points=[this._points[0],this._secondPoint],t.width=this._model.timeScale().width(),t.height=this._source.priceScale().height(),t.color=this._source.properties().linecolor.value(),t.linewidth=this._source.properties().linewidth.value(),t.linestyle=this._source.properties().linestyle.value(),t.extendleft=this._source.properties().extendLeft.value(),t.extendright=this._source.properties().extendRight.value(),t.leftend=u.Normal,t.rightend=u.Normal,this._trendLineRenderer.setData(t),e.append(this._trendLineRenderer),n&&this._label&&2===this._points.length&&(s={points:[this._secondPoint],text:this._label,color:this._source.properties().textcolor.value(),font:f.font,fontsize:f.fontSize,lineSpacing:f.lineSpacing,backgroundColor:f.bgColor,borderColor:f.borderColor,borderWidth:1,padding:f.padding,paddingLeft:30,doNotAlignText:!0,icons:this._icons},a=f.offset,this._points[1].y<this._points[0].y?(s.vertAlign="bottom",s.offsetY=-a):s.offsetY=a,this._points[1].x<this._points[0].x?(s.horzAlign="right",s.offsetX=-a):s.offsetX=a,e.append(new o(s,this._rendererCache))),r&&this._middlePoint&&e.append(new p({points:[this._middlePoint]})),l={},l.point=this._points[0],l.angle=this._source._angle,l.color=this._source.properties().linecolor.value(),l.size=50,this._angleRenderer.setData(l),e.append(this._angleRenderer),h=Math.round(180*l.angle/Math.PI)+"º",c=this._points[0].clone(),c.x=c.x+50,_={points:[c],text:h,color:this._source.properties().textcolor.value(),horzAlign:"left",font:this._source.properties().font.value(),offsetX:5,offsetY:0,bold:this._source.properties().bold.value(),italic:this._source.properties().italic.value(),fontsize:this._source.properties().fontsize.value(),vertAlign:"middle"},this._angleLabelRenderer.setData(_),e.append(this._angleLabelRenderer)),!TradingView.printing&&this._source.hasAlert.value()&&!this._model.readOnly()&&t&&t.points&&t.points.length>=2&&this._source.getAlertIsActive(function(i){e.append(new g({point1:t.points[0],point2:t.points[1],color:i?t.color:defaults("chartproperties.alertsProperties.drawingIcon.color")}))}),this._secondPoint&&this._points.length>0&&i&&e.append(this.createLineAnchor({points:[this._points[0],this._secondPoint]})),e},t.TrendAnglePaneView=r},935:function(e,t,i){"use strict";function n(e,t){s.call(this,e,t),this._rendererCache={},this._trendLineRendererPoints12=new o,this._trendLineRendererPoints23=new o}var r=i(1).Point,s=i(12).LineSourcePaneView,a=i(70).RectangleRenderer,o=i(16).TrendLineRenderer,l=i(117),h=i(4),d=i(8).CompositeRenderer,c=i(18).LineEnd;inherit(n,s),n.prototype.update=function(){this._invalidated=!0},n.prototype._updateImpl=function(){var e,t,i,n,r,a,o,l,h,d,c,p,_,u,f;if(s.prototype._updateImpl.call(this),this._cacheState=this._model._trendBasedFibExtensionLabelsCache.updateSource(this._source),!(this._source.points().length<3)&&this._source.priceScale()&&!this._source.priceScale().isEmpty()&&!this._model.timeScale().isEmpty())for(e=this._source.points()[0],t=this._source.points()[1],i=this._source.points()[2],n=!1, |
|||
r=this._source.properties(),r.reverse&&r.reverse.value()&&(n=r.reverse.value()),this._levels=[],a=n?e.price-t.price:t.price-e.price,this._source.priceScale().isPercent()&&(o=this._source.ownerSource().firstValue()),l=this._source.levelsCount(),h=1;h<=l;h++)d="level"+h,c=r[d],c.visible.value()&&(p=c.coeff.value(),_=c.color.value(),u=i.price+p*a,this._source.priceScale().isPercent()&&(u=this._source.priceScale().priceRange().convertToPercent(u,o)),f=this._source.priceScale().priceToCoordinate(u),this._levels.push({color:_,y:f,linewidth:r.levelsStyle.linewidth.value(),linestyle:r.levelsStyle.linestyle.value(),index:h}))},n.prototype.renderer=function(){var e,t,i,n,s,p,_,u,f,g,v,w,y,m,x,b,S,P,R,T,L,C,k,I;if(this._invalidated&&(this._updateImpl(),this._invalidated=!1),e=new d,this._points.length<2)return e;if(t=this._points[0],i=this._points[1],n=this._source.properties(),n.trendline.visible.value()&&(s={points:[t,i],width:this._model.timeScale().width(),height:this._source.priceScale().height(),color:n.trendline.color.value(),linewidth:n.trendline.linewidth.value(),linestyle:n.trendline.linestyle.value(),extendleft:!1,extendright:!1,leftend:c.Normal,rightend:c.Normal},this._trendLineRendererPoints12.setData(s),e.append(this._trendLineRendererPoints12)),this._points.length<3)return this.addAnchors(e),e;for(p=this._points[2],n.trendline.visible.value()&&(s={points:[i,p],width:this._model.timeScale().width(),height:this._source.priceScale().height(),color:n.trendline.color.value(),linewidth:n.trendline.linewidth.value(),linestyle:n.trendline.linestyle.value(),extendleft:!1,extendright:!1,leftend:c.Normal,rightend:c.Normal},this._trendLineRendererPoints23.setData(s),e.append(this._trendLineRendererPoints23)),_=Math.min(p.x,i.x),u=Math.max(p.x,i.x),f=n.fillBackground.value(),g=n.transparency.value(),v=n.extendLines.value()?this._model.timeScale().width():u,w=this._model._trendBasedFibExtensionLabelsCache,y=w.canvas().get(0),m=0;m<this._levels.length;m++)if(m>0&&f&&(x=this._levels[m-1],t=new r(_,this._levels[m].y),i=new r(v,x.y),b={},b.points=[t,i],b.color=this._levels[m].color,b.linewidth=0,b.backcolor=this._levels[m].color,b.fillBackground=!0,b.transparency=g,S=new a(void 0,void 0,!0),S.setData(b),e.append(S)),t=new r(_,this._levels[m].y),i=new r(u,this._levels[m].y),s={points:[t,i],width:this._model.timeScale().width(),height:this._source.priceScale().height(),color:this._levels[m].color,linewidth:this._levels[m].linewidth,linestyle:this._levels[m].linestyle,extendleft:!1,extendright:n.extendLines.value(),leftend:c.Normal,rightend:c.Normal},P=new o,P.setData(s),P.setHitTest(new h(h.MOVEPOINT,null,this._levels[m].index)),e.append(P),n.showCoeffs.value()||n.showPrices.value()){if(!(R=this._cacheState.preparedCells.cells[this._levels[m].index-1]))continue;switch(n.horzLabelsAlign.value()){case"left":T=t;break;case"center":T=t.add(i).scaled(.5),T.x+=R.width/2,T.x=Math.round(T.x);break;case"right":n.extendLines.value()?T=new r(v-4,this._levels[m].y):(T=new r(v+4,this._levels[m].y),T.x+=R.width,T.x=Math.round(T.x))}L={ |
|||
left:R.left,top:w.topByRow(this._cacheState.row),width:R.width,height:w.rowHeight(this._cacheState.row)},C={left:T.x-L.width,top:T.y,width:R.width,height:L.height},k=n.vertLabelsAlign.value(),"middle"===k&&(C.top-=C.height/2),"bottom"===k&&(C.top-=C.height),I=new l(y,L,C),e.append(I)}return this.addAnchors(e),e},t.TrendBasedFibExtensionPaneView=n},937:function(e,t,i){"use strict";function n(e,t){a.call(this,e,t),this._invalidated=!0,this._trendLineRendererPoints12=new h,this._trendLineRendererPoints23=new h}var r=i(1).Point,s=i(146).VerticalLineRenderer,a=i(12).LineSourcePaneView,o=i(27).TextRenderer,l=i(70).RectangleRenderer,h=i(16).TrendLineRenderer,d=i(4),c=i(8).CompositeRenderer,p=i(18).LineEnd;inherit(n,a),n.prototype.update=function(){this._invalidated=!0},n.prototype.updateImpl=function(){var e,t,i,n,r,s,o,l,h,d,c,p,_,u;if(a.prototype._updateImpl.call(this),!(this._source.points().length<3)&&this._source.priceScale()&&!this._source.priceScale().isEmpty()&&!this._model.timeScale().isEmpty()&&(e=this._source.points()[0],t=this._source.points()[1],i=this._source.points()[2],this._levels=[],t.index!==e.index&&(n=t.index-e.index,r=this._source.properties(),s=i.index,null!==this._model.timeScale().visibleBars())))for(o=1;o<=11;o++)l="level"+o,h=r[l],h.visible.value()&&(d=h.coeff.value(),c=h.color.value(),p=Math.round(s+d*n),_=this._model.timeScale().indexToCoordinate(p),u={x:_,coeff:d,color:c,linewidth:h.linewidth.value(),linestyle:h.linestyle.value(),index:o},r.showCoeffs.value()&&(u.text=d,u.y=this._source.priceScale().height()),this._levels.push(u))},n.prototype.renderer=function(){var e,t,i,n,a,h,_,u,f,g,v,w,y,m,x,b,S,P,R,T,L;if(this._invalidated&&(this.updateImpl(),this._invalidated=!1),e=new c,this._points.length<2)return e;if(t=this._points[0],i=this._points[1],n=this._source.properties(),n.trendline.visible.value()&&(a={points:[t,i],width:this._model.timeScale().width(),height:this._source.priceScale().height(),color:n.trendline.color.value(),linewidth:n.trendline.linewidth.value(),linestyle:n.trendline.linestyle.value(),extendleft:!1,extendright:!1,leftend:p.Normal,rightend:p.Normal},this._trendLineRendererPoints12.setData(a),e.append(this._trendLineRendererPoints12)),this._points.length<3)return this.addAnchors(e),e;for(h=this._points[2],n.trendline.visible.value()&&(a={points:[i,h],width:this._model.timeScale().width(),height:this._source.priceScale().height(),color:n.trendline.color.value(),linewidth:n.trendline.linewidth.value(),linestyle:n.trendline.linestyle.value(),extendleft:!1,extendright:!1,leftend:p.Normal,rightend:p.Normal},this._trendLineRendererPoints23.setData(a),e.append(this._trendLineRendererPoints23)),_=n.fillBackground.value(),u=n.transparency.value(),f=this._model.timeScale().width(),g=this._source.priceScale().height(),v=0;v<this._levels.length;v++){if(v>0&&_&&(w=this._levels[v-1],t=new r(w.x,0),i=new r(this._levels[v].x,this._source.priceScale().height()),y={},y.points=[t,i],y.color=this._levels[v].color,y.linewidth=0,y.backcolor=this._levels[v].color,y.fillBackground=!0, |
|||
y.transparency=u,m=new l(void 0,void 0,!0),m.setData(y),e.append(m)),void 0!==this._levels[v].text){switch(P=n.horzLabelsAlign.value(),P="left"===P?"right":"right"===P?"left":"center"){case"left":b=3;break;case"center":b=0;break;case"right":b=-3}switch(n.vertLabelsAlign.value()){case"top":x=new r(this._levels[v].x,0),S=5;break;case"middle":x=new r(this._levels[v].x,.5*this._levels[v].y),S=0;break;case"bottom":x=new r(this._levels[v].x,this._levels[v].y),S=-10}R={points:[x],text:""+this._levels[v].text,color:this._levels[v].color,vertAlign:"middle",horzAlign:P,font:n.font.value(),offsetX:b,offsetY:S,fontsize:12},e.append(new o(R))}T={},T.width=f,T.height=g,T.points=[new r(this._levels[v].x,0)],T.color=this._levels[v].color,T.linewidth=this._levels[v].linewidth,T.linestyle=this._levels[v].linestyle,L=new d(d.MOVEPOINT,null,this._levels[v].index),m=new s,m.setData(T),m.setHitTest(L),e.append(m)}return this.addAnchors(e),e},t.TrendBasedFibTimePaneView=n},939:function(e,t,i){"use strict";function n(e,t){s.call(this,e,t),this._label=null,this._rendererCache={},this._invalidated=!0,this._labelDataInvalidated=!0,this._percentageFormatter=new h,this._numericFormatter=new d,this._pipFormatter=null,this._lastSymbolInfo=null,this._trendRenderer=new u}var r=i(1).Point,s=i(12).LineSourcePaneView,a=i(117),o=i(105).PaneRendererClockIcon,l=i(8).CompositeRenderer,h=i(94).PercentageFormatter,d=i(38).NumericFormatter,c=i(175).TimeSpanFormatter,p=i(145).PipFormatter,_=i(74).SelectionRenderer,u=i(16).TrendLineRenderer,f=i(313).LabelSettings;inherit(n,s),n.prototype.update=function(){this._invalidated=!0,this._labelDataInvalidated=!0},n.prototype.updateImpl=function(){var e,t,i,n,r,a,o,l,h,d,c=this._source.points();c.length<2||(e=c[0],t=c[1],null!==(i=this._model.timeScale().visibleBars())&&(n=this._source.properties(),e.index<i.firstBar()&&t.index<i.firstBar()&&!n.extendLeft.value()&&!n.extendRight.value()||(s.prototype._updateImpl.call(this),this._points.length<2||(r=n.showBarsRange.value(),a=n.showDateTimeRange.value(),o=n.showDistance.value(),l=n.showPriceRange.value(),h=n.showAngle.value(),l||r||a||o||h?(d=this,this._statCache=this._model._trendLineStatsCache.updateSource(this._source,function(){return d._statLabelData()})):(this._model._trendLineStatsCache.removeSource(this._source.id()),this._label=null,this._labelData&&(this._labelData.text="",this._labelData.lines=[])),this._invalidated=!1))))},n.prototype._statLabelData=function(){var e,t,i,n,s,a,o,l,h,d,_,u,g,v,w,y,m,x,b,S,P,R,T,L,C,k,I;return this._labelDataInvalidated&&(e=this._source.points(),t=e[0],i=e[1],n=this._source.properties(),s=[],_=n.showPriceRange.value(),_&&this._source.priceScale()&&(h=i.price-t.price,u=h/t.price,a=this._source.priceScale().formatter().format(h)+" ("+this._percentageFormatter.format(100*u)+")",g=this._model.mainSeries().symbolInfo(),g&&g!==this._lastSymbolInfo&&(this._pipFormatter=new p(g.pricescale,g.minmov,g.type,g.minmove2),this._lastSymbolInfo=g),a+=this._pipFormatter?", "+this._pipFormatter.format(h):"",s.push("priceRange")), |
|||
v=n.showBarsRange.value(),w=n.showDateTimeRange.value(),y=n.showDistance.value(),(v||w||y)&&(o="",v&&(d=i.index-t.index,o+=$.t("{0} bars").format(d)),w&&(m=this._model.timeScale().indexToUserTime(t.index),x=this._model.timeScale().indexToUserTime(i.index),m&&x&&(b=(x.valueOf()-m.valueOf())/1e3,(S=(new c).format(b))&&(o+=v?" ("+S+")":S))),y&&(o&&(o+=", "),void 0===h&&(h=i.price-t.price),void 0===d&&(d=i.index-t.index),P=Math.round(1e5*Math.sqrt(h*h+d*d))/1e5,o+=$.t("distance: {0}").format(this._numericFormatter.format(P))),o&&s.push("barsRange")),R=n.showAngle.value(),R&&(T=this._source.pointToScreenPoint(t),L=this._source.pointToScreenPoint(i),T=T instanceof Array?T[0]:T instanceof r?T:null,L=L instanceof Array?L[0]:L instanceof r?L:null,T instanceof r&&L instanceof r&&(k=L.subtract(T),k.length()>0&&(k=k.normalized(),C=Math.acos(k.x),k.y>0&&(C=-C))),"number"!=typeof C||TradingView.isNaN(C)||(l=Math.round(180*C/Math.PI)+"º",s.push("angle"))),this._label=[a,o,l].filter(function(e){return e}).join("\n")||null,this._icons=s,this._labelDataInvalidated=!1),I={points:[this._points[1]],text:this._label,color:this._source.properties().textcolor.value(),font:f.font,fontsize:f.fontSize,lineSpacing:f.lineSpacing,backgroundColor:f.bgColor,borderColor:f.borderColor,borderWidth:1,padding:f.padding,paddingLeft:30,doNotAlignText:!0,icons:this._icons},this._points[1].y<this._points[0].y&&(I.vertAlign="bottom"),this._points[1].x<this._points[0].x&&(I.horzAlign="right"),this._labelData=I,I},n.prototype.renderer=function(){var e,t,i,n,r,s,h,d,c,p;return this._invalidated&&this.updateImpl(),e=new l,this._invalidated?e:this._source.priceScale()?(t={},t.points=this._points,t.floatPoints=this._floatPoints,t.width=this._model.timeScale().width(),t.height=this._source.priceScale().height(),t.color=this._source.properties().linecolor.value(),t.linewidth=this._source.properties().linewidth.value(),t.linestyle=this._source.properties().linestyle.value(),t.extendleft=this._source.properties().extendLeft.value(),t.extendright=this._source.properties().extendRight.value(),t.leftend=this._source.properties().leftEnd.value(),t.rightend=this._source.properties().rightEnd.value(),this._trendRenderer.setData(t),e.append(this._trendRenderer),i=this.isAnchorsRequired(),n=i||this._source.properties().alwaysShowStats.value(),r=(this.isHoveredSource()||this.isSelectedSource())&&this._source.properties().showMiddlePoint.value(),n&&this._label&&2===this._points.length&&(s=this._points[1],h={left:0,top:this._model._trendLineStatsCache.topByRow(this._statCache.row),width:this._model._trendLineStatsCache.rowWidth(this._statCache.row),height:this._model._trendLineStatsCache.rowHeight(this._statCache.row)},d={left:s.x,top:s.y,width:h.width,height:h.height},"right"===this._labelData.horzAlign?d.left-=f.padding+d.width:d.left+=f.padding,"bottom"===this._labelData.vertAlign?d.top-=f.padding+d.height:d.top+=f.padding,c=this._model._trendLineStatsCache.canvas(),p=new a(c.get(0),h,d),e.append(p)),r&&this._middlePoint&&e.append(new _({points:[this._middlePoint]})), |
|||
this.addAnchors(e),!TradingView.printing&&this._source.hasAlert.value()&&!this._model.readOnly()&&t.points.length>=2&&this._source.getAlertIsActive(function(i){e.append(new o({point1:t.points[0],point2:t.points[1],color:i?t.color:defaults("chartproperties.alertsProperties.drawingIcon.color")}))}),e):e},t.TrendLinePaneView=n},940:function(e,t,i){"use strict";function n(e,t){s.call(this,e,t),this._invalidated=!0,this._trendLineRendererPoints01=new o,this._trendLineRendererPoints12=new o,this._trendLineRendererPoints23=new o,this._intersectionRenderer=new a,this._poligonRenderer=new h,this._aLabelRenderer=new l({}),this._bLabelRenderer=new l({}),this._cLabelRenderer=new l({}),this._dLabelRenderer=new l({})}var r=i(1).Point,s=i(12).LineSourcePaneView,a=i(230).TriangleRenderer,o=i(16).TrendLineRenderer,l=i(27).TextRenderer,h=i(164),d=i(8).CompositeRenderer,c=i(18).LineEnd;inherit(n,s),n.prototype.renderer=function(){var e,t,i,n,r,s,a,o,l;return this._invalidated&&(this.updateImpl(),this._invalidated=!1),this._points.length<2?null:(e=this._source.properties(),t=new d,i=this,n=function(t,n){return{points:[t],text:n,color:e.textcolor.value(),vertAlign:"middle",horzAlign:"center",font:e.font.value(),offsetX:0,offsetY:0,bold:e.bold&&e.bold.value(),italic:e.italic&&e.italic.value(),fontsize:e.fontsize.value(),backgroundColor:i._source.properties().color.value(),backgroundRoundRect:4}},r=function(t,n){return{points:[t,n],width:i._model.timeScale().width(),height:i._source.priceScale().height(),color:i._source.properties().color.value(),linewidth:e.linewidth.value(),linestyle:CanvasEx.LINESTYLE_SOLID,extendleft:!1,extendright:!1,leftend:c.Normal,rightend:c.Normal}},s=r(this._points[0],this._points[1]),this._trendLineRendererPoints01.setData(s),t.append(this._trendLineRendererPoints01),this._points.length>=3&&(s=r(this._points[1],this._points[2]),this._trendLineRendererPoints12.setData(s),t.append(this._trendLineRendererPoints12)),4===this._points.length&&(s=r(this._points[2],this._points[3]),this._trendLineRendererPoints23.setData(s),t.append(this._trendLineRendererPoints23),this._intersectPoint?(a=[this._startPoint1,this._startPoint2,this._intersectPoint],o={},o.points=a,o.color=e.color.value(),o.linewidth=e.linewidth.value(),o.backcolor=e.backgroundColor.value(),o.fillBackground=e.fillBackground.value(),o.transparency=e.transparency.value(),this._intersectionRenderer.setData(o),t.append(this._intersectionRenderer)):this._intersectPoint1&&this._intersectPoint2&&(a=[this._startPoint1,this._startPoint2,this._intersectPoint2,this._intersectPoint1],o={},o.filled=!0,o.fillBackground=!0,o.points=a,o.color=e.color.value(),o.linewidth=e.linewidth.value(),o.backcolor=e.backgroundColor.value(),o.transparency=e.transparency.value(),this._poligonRenderer.setData(o),t.append(this._poligonRenderer))),l=n(this._points[0],"A"),this._points[1].y>this._points[0].y?(l.vertAlign="bottom",l.offsetY=-10):(l.vertAlign="top",l.offsetY=5),this._aLabelRenderer.setData(l),t.append(this._aLabelRenderer),l=n(this._points[1],"B"), |
|||
this._points[1].y<this._points[0].y?(l.vertAlign="bottom",l.offsetY=-10):(l.vertAlign="top",l.offsetY=5),this._bLabelRenderer.setData(l),t.append(this._bLabelRenderer),this._points.length>2&&(l=n(this._points[2],"C"),this._points[2].y<this._points[1].y?(l.vertAlign="bottom",l.offsetY=-10):(l.vertAlign="top",l.offsetY=5),this._cLabelRenderer.setData(l),t.append(this._cLabelRenderer)),this._points.length>3&&(l=n(this._points[3],"D"),this._points[3].y<this._points[2].y?(l.vertAlign="bottom",l.offsetY=-10):(l.vertAlign="top",l.offsetY=5),this._dLabelRenderer.setData(l),t.append(this._dLabelRenderer)),this.addAnchors(t),t)},n.prototype.update=function(){this._invalidated=!0},n.prototype.updateImpl=function(){var e,t,i,n,a,o,l,h,d,c,p,_;if(s.prototype._updateImpl.call(this),this._valid=!1,delete this._intersectPoint,delete this._intersectPoint1,delete this._intersectPoint2,4===this._points.length){if(e=this._points[0],t=this._points[1],i=this._points[2],n=this._points[3],Math.abs(i.x-e.x)<1||Math.abs(n.x-t.x)<1)return;if(a=Math.min(e.x,t.x),a=Math.min(a,i.x),a=Math.min(a,n.x),o=(i.y-e.y)/(i.x-e.x),l=e.y+(a-e.x)*o,h=(n.y-t.y)/(n.x-t.x),d=t.y+(a-t.x)*h,Math.abs(o-h)<1e-6)return;this._startPoint1=new r(a,l),this._startPoint2=new r(a,d),c=(t.y-e.y+(e.x*o-t.x*h))/(o-h),this._valid=!0,c<a&&(p=Math.max(e.x,t.x),p=Math.max(p,i.x),p=Math.max(p,n.x),l=e.y+(p-e.x)*o,d=t.y+(p-t.x)*h,this._startPoint1=new r(p,l),this._startPoint2=new r(p,d)),_=e.y+(c-e.x)*o,this._intersectPoint=new r(c,_)}},t.LineToolTrianglePatternPaneView=n},942:function(e,t,i){"use strict";function n(e,t){r.call(this,e,t),this._invalidated=!0,this._renderer=new a}var r=i(12).LineSourcePaneView,s=i(8).CompositeRenderer,a=i(230).TriangleRenderer;inherit(n,r),n.prototype.update=function(){this._invalidated=!0},n.prototype.updateImpl=function(){r.prototype._updateImpl.call(this),this._invalidated=!1},n.prototype.renderer=function(){var e,t;return this._invalidated&&this.updateImpl(),e={},e.points=this._points,e.color=this._source.properties().color.value(),e.linewidth=this._source.properties().linewidth.value(),e.backcolor=this._source.properties().backgroundColor.value(),e.fillBackground=this._source.properties().fillBackground.value(),e.transparency=this._source.properties().transparency.value(),this._renderer.setData(e),this.isAnchorsRequired()?(t=new s,t.append(this._renderer),this.addAnchors(t),t):this._renderer},t.TrianglePaneView=n},944:function(e,t,i){"use strict";function n(e,t){s.call(this,e,t),this._invalidated=!0,this._lineRenderer=new l}var r=i(1).Point,s=i(12).LineSourcePaneView,a=i(105).PaneRendererClockIcon,o=i(8).CompositeRenderer,l=i(146).VerticalLineRenderer;inherit(n,s),n.prototype.update=function(){this._invalidated=!0},n.prototype.updateImpl=function(){s.prototype._updateImpl.call(this),this._invalidated=!1},n.prototype.renderer=function(){var e,t,i;return this._invalidated&&this.updateImpl(),e={},e.width=this._model.timeScale().width(),e.height=this._source.priceScale().height(),e.points=this._points, |
|||
e.color=this._source.properties().linecolor.value(),e.linewidth=this._source.properties().linewidth.value(),e.linestyle=this._source.properties().linestyle.value(),this._lineRenderer.setData(e),t=new o,t.append(this._lineRenderer),this.addAnchors(t),TradingView.printing||!this._source.hasAlert.value()||this._model.readOnly()||1!==e.points.length||(i=new r(this._points[0].x,this._source.priceScale().height()/2),this._source.getAlertIsActive(function(n){t.append(new a({point1:i,color:n?e.color:defaults("chartproperties.alertsProperties.drawingIcon.color")}))})),t},t.VertLinePaneView=n},1133:function(e,t,i){"use strict";var n,r,s,a;Object.defineProperty(t,"__esModule",{value:!0}),n=i(1),r=i(19),s=i(4),a=function(){function e(){this._data=null}return e.prototype.setData=function(e){this._data=e},e.prototype.draw=function(e){var t,i,s,a,o,l;null!==this._data&&(e.lineCap="butt",e.strokeStyle=this._data.color,e.lineWidth=this._data.linewidth,e.translate(this._data.center.x,this._data.center.y),t=this._data.edge.subtract(this._data.center),i=t.y/t.x,s=this._data.point.subtract(this._data.center),s=new n.Point(s.x,s.y/i),a=s.length(),o=this._data.prevPoint.subtract(this._data.center),o=new n.Point(o.x,o.y/i),l=o.length(),e.scale(1,i),this._data.fillBack&&(this._data.point.x<this._data.center.x&&(a=-a,l=-l),e.beginPath(),e.moveTo(l,0),e.lineTo(a,0),e.arcTo(a,a,0,a,Math.abs(a)),e.lineTo(0,l),e.arcTo(l,l,l,0,Math.abs(l)),e.fillStyle=r.generateColor(this._data.color,this._data.transparency,!0),e.fill()),e.beginPath(),this._data.point.x>this._data.center.x?e.arc(0,0,Math.abs(a),0,Math.PI/2,!1):e.arc(0,0,Math.abs(a),-Math.PI/2,-Math.PI,!0),e.scale(1,1/i),e.stroke())},e.prototype.hitTest=function(e){var t,i,r,a,o,l,h;return null===this._data?null:(e=e.subtract(this._data.center),t=this._data.edge.subtract(this._data.center),i=t.y/t.x,e=new n.Point(e.x,e.y/i),r=this._data.point.subtract(this._data.center),r=new n.Point(r.x,r.y/i),a=r.length(),o=e.length(),l=this._data.prevPoint.subtract(this._data.center),l=new n.Point(l.x,l.y/i),h=l.length(),Math.abs(o-a)<5&&t.x*e.x>=0&&t.y*e.y>=0?new s(s.MOVEPOINT):this._data.fillBack&&o>=h&&o<=a&&t.x*e.x>=0&&t.y*e.y>=0?new s(s.MOVEPOINT_BACKGROUND):null)},e}(),t.GannArcRenderer=a},1134:function(e,t,i){"use strict";var n,r,s,a,o,l,h,d,c;Object.defineProperty(t,"__esModule",{value:!0}),n=i(5),r=i(1),s=i(12),a=i(16),o=i(8),l=i(18),h=i(115),d=i(1133),c=function(e){function t(t,i){var n=e.call(this,t,i)||this;return n._verticalLevelsRenderers=[],n._horizontalLevelsRenderers=[],n._fanRenderers=[],n._arcRenderers=[],n._initRenderers(),n}return n.__extends(t,e),t.prototype.renderer=function(e){var t,i,n,r,s,a,l,h,d,c,p,_,u,f;return this._invalidated&&(this._updateImpl(),this._invalidated=!1),t=this._getSource(),i=this._getPoints(),n=new o.CompositeRenderer,i.length<2?(this.addAnchors(n),n):(r=i[0],s=3===i.length?i[2]:i[1],a=s.x-r.x,l=s.y-r.y,h=r,d=s,c=this._getModel(),p=c.timeScale(),_=p.width(),u={paneHeight:e,paneWidth:_,barsCoordsRange:a,priceCoordsRange:l,startPoint:h,endPoint:d,p1:r,p2:s}, |
|||
this._prepareLevels(n,u),this._prepareFanLines(n,u),this._prepareArcs(n,u),this.isAnchorsRequired()&&(f=[r,i[1]],c.lineBeingCreated()===t&&f.pop(),n.append(this.createLineAnchor({points:f}))),n)},t.prototype._updateImpl=function(){var t,i,n,r,s;e.prototype._updateImpl.call(this),t=this._getSource(),i=this._getPoints(),n=t.getScreenPoints(),i.length<2||n.length<2||(r=n[0],s=n[1],i[1]=r,i[1].data=1,i[2]=s)},t.prototype._initRenderers=function(){var e,t,i,n=this._getSource(),r=n.levelsCount();for(e=0;e<r;e++)this._verticalLevelsRenderers.push(new a.TrendLineRenderer),this._horizontalLevelsRenderers.push(new a.TrendLineRenderer);for(t=n.fanLinesCount(),e=0;e<t;e++)this._fanRenderers.push(new a.TrendLineRenderer);for(i=n.arcsCount(),e=0;e<i;e++)this._arcRenderers.push(new d.GannArcRenderer)},t.prototype._prepareLevels=function(e,t){var i,n,s,a,o,d,c,p,_,u,f=t.startPoint,g=t.endPoint,v=t.paneHeight,w=t.paneWidth,y=t.barsCoordsRange,m=t.priceCoordsRange,x=this._getSource(),b=x.levels();for(i=0,n=b;i<n.length;i++)s=n[i],s.visible&&(a=s.index/5,o=f.x+a*y,d={points:[new r.Point(o,f.y),new r.Point(o,g.y)],width:w,height:v,color:s.color,linewidth:s.width,linestyle:h.LINESTYLE_SOLID,extendleft:!1,extendright:!1,leftend:l.LineEnd.Normal,rightend:l.LineEnd.Normal},c=this._verticalLevelsRenderers[s.index],c.setData(d),e.append(c),p=f.y+a*m,_={points:[new r.Point(f.x,p),new r.Point(g.x,p)],width:w,height:v,color:s.color,linewidth:s.width,linestyle:h.LINESTYLE_SOLID,extendleft:!1,extendright:!1,leftend:l.LineEnd.Normal,rightend:l.LineEnd.Normal},u=this._horizontalLevelsRenderers[s.index],u.setData(_),e.append(u))},t.prototype._prepareFanLines=function(e,t){var i,n,s,a,o,d,c,p,_,u,f=t.p1,g=t.startPoint,v=t.endPoint,w=t.paneHeight,y=t.paneWidth,m=t.barsCoordsRange,x=t.priceCoordsRange,b=this._getSource(),S=b.fanLines();for(i=0,n=S;i<n.length;i++)s=n[i],s.visible&&(a=s.x,o=s.y,d=void 0,c=void 0,a>o?(d=v.x,p=o/a,c=g.y+p*x):(c=v.y,p=a/o,d=g.x+p*m),_={points:[f,new r.Point(d,c)],width:y,height:w,color:s.color,linewidth:s.width,linestyle:h.LINESTYLE_SOLID,extendleft:!1,extendright:!1,leftend:l.LineEnd.Normal,rightend:l.LineEnd.Normal},u=this._fanRenderers[s.index],u.setData(_),e.append(u))},t.prototype._prepareArcs=function(e,t){var i,n,s,a,o,l,h,d,c,p=t.p1,_=t.startPoint,u=t.endPoint,f=t.barsCoordsRange,g=t.priceCoordsRange,v=p,w=this._getSource(),y=w.isArcsBackgroundFilled(),m=w.arcsBackgroundTransparency(),x=w.arcs();for(i=0,n=x;i<n.length;i++)s=n[i],s.visible&&(a=s.x/5,o=s.y/5,l=_.x+a*f,h=_.y+o*g,d={center:_,point:new r.Point(l,h),edge:u,color:s.color,linewidth:s.width,fillBack:y,transparency:m,prevPoint:v},c=this._arcRenderers[s.index],c.setData(d),e.append(c),v=d.point)},t}(s.LineSourcePaneView),t.GannComplexPaneView=c}}); |
|||
@ -0,0 +1,9 @@ |
|||
webpackJsonp([3,11],{162:function(t,e){"use strict";e.createInputsPropertyPage=function(t,e){var o=t.getInputsPropertyPage();return null==o?null:new o(t.properties(),e,t)},e.createStudyStrategyPropertyPage=function(t,e){var o=t.getStrategyPropertyPage();return null==o?null:new o(t.properties(),e,t)},e.createStylesPropertyPage=function(t,e){var o=t.getStylesPropertyPage();return null==o?null:new o(t.properties(),e,t)},e.createDisplayPropertyPage=function(t,e){var o=t.getDisplayPropertyPage();return null==o?null:new o(t.properties(),e,t)},e.createVisibilitiesPropertyPage=function(t,e){var o=t.getVisibilitiesPropertyPage();return null==o?null:new o(t.properties(),e,t)},e.hasInputsPropertyPage=function(t){return null!==t.getInputsPropertyPage()},e.hasStylesPropertyPage=function(t){return null!==t.getStylesPropertyPage()}},404:function(t,e,o){"use strict";function i(t,e,o,i){this._sourcesPropertiesGetter=t,this._chartModel=o,this._items={},this._scroll=null,this._selectedItemId="",this._$tabContainer=i.addClass("tv-objects-tree-dialog-tab"),this._$contentWrapper=$('<div class="tv-objects-tree-dialog-tab__content">').appendTo(this._$tabContainer),this._list=new s(this._chartModel,e),this._list.setItemActivateListener(this._onActiveSourceChanged.bind(this)),this._sourceRemovedHandler=this._onSourceRemoved.bind(this),this._sourcesRemovedHandler=this._onSourcesRemoved.bind(this)}var r=o(207).SidebarCustomScroll,s=o(804).ObjectTreeItemsController,n=o(37),a=o(232).unifiedSpinner;o(640),i.prototype._removeSourceFromView=function(t){},i.prototype._removeSourcesFromView=function(t){},i.prototype._renderViewInternal=function(t){},i.prototype.destroy=function(){this._unsubscribeListeners()},i.prototype.initView=function(){this._chartModel.selectedSource()&&(this._selectedItemId=this._chartModel.selectedSource().id()),this._subscribeListeners(),this._renderView(null),this._addScroll()},i.prototype._sourceForId=function(t){return this._chartModel.dataSourceForId(t)},i.prototype._selectedSourceId=function(){return this._selectedItemId},i.prototype._onActiveSourceChanged=function(t){if(!t)return void(this._selectedItemId="");this._selectedItemId=t.id(),this._chartModel.setSelectedSource(t),this._chartModel.invalidate(new n(n.LIGHT_UPDATE))},i.prototype._getItemForSourceId=function(t){return this._$contentWrapper.find("#"+t)},i.prototype._markItemForSource=function(t,e){t.attr("id",e.id())},i.prototype._getSourceIdForItem=function(t){return t.attr("id")},i.prototype._getSourceForItem=function(t){return this._sourceForId(this._getSourceIdForItem(t))},i.prototype._listAccessor=function(){return this._list},i.prototype._showSpinner=function(){this.spinner=a().spin(this._$tabContainer.get(0)),this._$contentWrapper.css("visibility","hidden")},i.prototype._hideSpinner=function(){this.spinner&&(this.spinner.stop(),this._$contentWrapper.css("visibility","visible"))},i.prototype._onSourceRemoved=function(t){t&&(this._removeSourceFromView(t),this._scroll.updateScrollBar())},i.prototype._onSourcesRemoved=function(t){ |
|||
Array.isArray(t)&&(this._removeSourcesFromView(t),this._scroll.updateScrollBar())},i.prototype._subscribeListeners=function(){this._chartModel.on("removeSource",this._sourceRemovedHandler),this._chartModel.on("removeSources",this._sourcesRemovedHandler)},i.prototype._unsubscribeListeners=function(){this._chartModel.removeListener("removeSource",this._sourceRemovedHandler),this._chartModel.removeListener("removeSources",this._sourcesRemovedHandler)},i.prototype._getItems=function(){return this._items},i.prototype._reloadItems=function(){this._items=this._sourcesPropertiesGetter()},i.prototype._renderView=function(t){this._$contentWrapper.empty(),this._hideSpinner(),this._showSpinner(),this._reloadItems(),this._renderViewInternal(function(){this._hideSpinner(),t&&t()}.bind(this))},i.prototype._addScroll=function(){this._scroll=new r(this._$tabContainer,this._$contentWrapper,{showTopShadow:!1,showBottomShadow:!1,scrollMarginTop:0})},t.exports=i},405:function(t,e,o){(function(e){"use strict";function i(t,e){this.options=t||{},this._chartWidget=t.chartWidget,this._model=e}function r(t,e){e.__init||(t.initView(),e.__init=!0)}var s,n=o(806),a=o(803),l=o(3).LineDataSource,c=o(373).createTabbedDialog,d=o(48).trackEvent;o(641),s=null,i.prototype.getSourceProperties=function(){var t,e,o,i,r,s,n,a={groups:[],drawings:[],currentSymbol:this._model.mainSeries().symbol()};for(t=0;t<this._model.panes().length;t++){for(e=this._model.panes()[t],o=[],i=e.orderedSources(),r=0;r<i.length;r++)s=i[r],s.showInObjectTree()&&o.push({datasource:s,name:s.title()});for(n=e.dataSources(),r=0;r<n.length;r++)(s=n[r])instanceof l&&s.showInObjectTree()&&a.drawings.push({datasource:s,name:s.title(),symbol:s.symbol()});o.length&&a.groups.push({children:o})}return a},i.prototype.show=function(){var t,o,i,l,h,u,p,_,v,m;d("GUI","Objects Tree"),t=[],o=$(),i=$("<div>"),l=this.getSourceProperties.bind(this),h=$("<div>"),u=new n(l,this._chartWidget,this._model,h,i),o=o.add(i),t.push({customControl:i,name:$.t("Objects Tree"),page:h,onActivate:r.bind(null,u)}),p=null,e.enabled("support_manage_drawings")&&(_=$("<div>"),v=$("<div>"),p=new a(l,this._chartWidget,this._model,v,_),o=o.add(_),t.push({customControl:_,name:$.t("Manage Drawings"),page:v,onActivate:r.bind(null,p)})),m=c({tabs:t,width:520,tabStateSaveKey:"ObjectsTreeDialog.tab",activeTab:this.options.activeTab,customControlsContainerAddClass:"tv-objects-tree-dialog__custom-controls-container",customControls:o,destroyOnClose:!0,height:480,withScroll:!1,contentAddClass:"js-dialog__scroll-wrap",isClickOutFn:function(t){if($(t.target).parents().andSelf().is("._tv-dialog, .properties-toolbar, .colorpicker, .tvcolorpicker-popup, .symbol-edit-popup, .context-menu, .js-dialog"))return!1}}),m.tabs.tabChanged.subscribe(null,function(e){t[e].onActivate(t[e]);for(var o=0;o<t.length;++o)t[o].customControl.toggleClass("i-hidden",e!==o);m.tabs.checkScrollArrows(!0)}),t[m.tabs.index()].onActivate(t[m.tabs.index()]),m.dialog.on("beforeClose",function(){u.destroy(),p&&p.destroy(),s=null}),s&&s.close(),s=m.dialog, |
|||
m.dialog.open()},t.exports.ObjectTreeDialog=i}).call(e,o(7))},639:function(t,e){},640:function(t,e){},641:function(t,e){},642:function(t,e){},643:function(t,e){},644:function(t,e){},652:function(t,e){},803:function(t,e,o){"use strict";function i(t,e,o,i,s){r.call(this,t,e,o,i),this._clearRemoveNodeTimerId=null,this._$emptyListMessage=$('<div class="tv-manage-drawings-tab__empty-drawings">').text($.t("No drawings yet")),this._$emptyListMessage.appendTo(this._$tabContainer),this._$totalValueContainer=$("<div>").appendTo(s)}var r=o(404);o(639),inherit(i,r),i.prototype.destroy=function(){this._clearRemoveNodeTimer(),r.prototype.destroy.call(this)},i.prototype.initView=function(){this._listAccessor().setNodeExpandCollapseCallback(this._renderViewForSymbol.bind(this)),this._listAccessor().setNodeRemoveCallback(this._onNodeRemoveClick.bind(this)),r.prototype.initView.call(this)},i.prototype._clearRemoveNodeTimer=function(){clearInterval(this._clearRemoveNodeTimerId),this._clearRemoveNodeTimerId=null},i.prototype._renderViewForSymbol=function(t,e,o){var i,r,s,n,a,l="tv-manage-drawings-tab__symbol-drawings";if(t.next().hasClass(l))return t.next().toggleClass("i-expanded",o),void this._scroll.updateScrollBar();for(i=$('<div class="i-expanded '+l+'">'),r=this._symbolDrawingsMap[e],s=0;s<r.length;++s)n=r[s],a=this._listAccessor().createItem(n,{showHide:!1,lockUnlock:!1,draggable:!1,largeLeftPadding:!0,addContextMenu:!1}),this._markItemForSource(a,n.datasource),i.append(a);i.insertAfter(t),this._scroll.updateScrollBar()},i.prototype._createSymbolItem=function(t){var e=this._list.createTreeNodeItem(t,this._symbolDrawingsMap[t],{isCurrent:this._getItems().currentSymbol===t});e.attr("data-symbol",t),this._$contentWrapper.append(e)},i.prototype._renderViewInternal=function(t){var e,o,i;for(this._symbolDrawingsMap={},e=this._getItems().drawings,o=0;o<e.length;o++)i=e[o],this._symbolDrawingsMap[i.symbol]=this._symbolDrawingsMap[i.symbol]||[],this._symbolDrawingsMap[i.symbol].push(i);Object.keys(this._symbolDrawingsMap).sort(function(t,e){return this._symbolDrawingsMap[t].length<this._symbolDrawingsMap[e].length?1:-1}.bind(this)).forEach(this._createSymbolItem.bind(this)),this._renderEmptyListMessageIfNeeded(),this._updateTotalCounter(),t()},i.prototype._updateTotalCounter=function(){var t=0;Object.keys(this._symbolDrawingsMap).forEach(function(e){t+=0|this._symbolDrawingsMap[e].length}.bind(this)),this._$totalValueContainer.text($.t("Total")+": "+t),this._$totalValueContainer.toggleClass("i-hidden",0===t)},i.prototype._renderEmptyListMessageIfNeeded=function(){this._$emptyListMessage.toggleClass("js-hidden",0!==Object.keys(this._symbolDrawingsMap).length)},i.prototype._removeSourceFromView=function(t){var e,o,i,r=this._getItemForSourceId(t.id());if(0===r.length)return void this._renderView(null);t.id()===this._selectedSourceId()&&this._listAccessor().activateItem(null,null),e=r.parent(),o=e.prev(),i=o.attr("data-symbol"),this._symbolDrawingsMap[i]=this._symbolDrawingsMap[i].filter(function(e){return e.datasource!==t}), |
|||
0===this._symbolDrawingsMap[i].length?(e.remove(),o.remove(),delete this._symbolDrawingsMap[i],this._renderEmptyListMessageIfNeeded()):(r.remove(),this._listAccessor().updateNodeItem(o,i,this._symbolDrawingsMap[i],{isCurrent:this._getItems().currentSymbol===i})),this._updateTotalCounter()},i.prototype._onNodeRemoveClick=function(t,e){if(!this._clearRemoveNodeTimerId){var e=t.attr("data-symbol");this._chartModel.beginUndoMacro($.t("Remove all line tools for ")+e),this._clearRemoveNodeTimerId=setInterval(function(){var t=this._symbolDrawingsMap[e],o=t.splice(0,200).map(function(t){return t.datasource});this._chartModel.removeLineTools(o),0===t.length&&(this._chartModel.endUndoMacro(),this._clearRemoveNodeTimer())}.bind(this),50)}},i.prototype._removeSourcesFromView=function(t){this._renderView(function(){this._scroll.scrollToStart()}.bind(this))},t.exports=i},804:function(t,e,o){(function(e,i){"use strict";function r(t,e){this._chartWidget=e,this._chartModel=t,this._$activeItem=null,this._nodeExpandCollapseCallback=null,this._nodeRemoveCallback=null,this._itemActivateCallback=null}var s,n,a,l,c,d,h,u,p=o(3).LineDataSource,_=o(162),v=o(172).showEditObjectDialog,m=o(179).lazyJqueryUI;o(642),s=o(511),n=o(1197),a=o(1196),l=o(509),c=o(1194),d=o(1195),h=o(1193),u='<div class="tv-objects-tree-item {{#largeLeftPadding}}tv-objects-tree-item--large-left-padding{{/largeLeftPadding}}">{{#draggable}}<div class="tv-objects-tree-item__drag-icon js-drag-icon">'+s+'</div>{{/draggable}}{{#treeNode}}<div class="tv-objects-tree-item__control-buttons tv-objects-tree-item__control-buttons--left"><span class="tv-objects-tree-item__button tv-objects-tree-item__button--expand">'+n+'</span><span class="tv-objects-tree-item__button tv-objects-tree-item__button--collapse">'+a+'</span></div>{{/treeNode}}{{^treeNode}}<div class="tv-objects-tree-item__icon js-icon-container"></div>{{/treeNode}}<div class="tv-objects-tree-item__title {{#wideTitle}}tv-objects-tree-item__title--wide{{/wideTitle}} js-title-container"></div><div class="tv-objects-tree-item__control-buttons">{{#lockUnlockIcon}}<span class="tv-objects-tree-item__button tv-objects-tree-item__button--lock js-lock-unlock-btn">'+l+'</span>{{/lockUnlockIcon}}{{#showHideIcon}}<span class="tv-objects-tree-item__button js-show-hide-btn">'+c+"</span>{{/showHideIcon}}{{^treeNode}}"+(e.enabled("property_pages")?'<span class="tv-objects-tree-item__button js-format-btn">'+d+"</span>":"")+'{{/treeNode}}<span class="tv-objects-tree-item__button js-remove-btn">'+h+"</span></div></div>",r.prototype.setItemActivateListener=function(t){this._itemActivateCallback=t},r.prototype.setNodeExpandCollapseCallback=function(t){this._nodeExpandCollapseCallback=t},r.prototype.setNodeRemoveCallback=function(t){this._nodeRemoveCallback=t},r.prototype.activateItem=function(t,e,o){o&&o.originalEvent.defaultPrevented||(this._$activeItem&&0!==this._$activeItem.length&&this._$activeItem.removeClass("i-active"),this._$activeItem=t,this._$activeItem&&0!==this._$activeItem.length&&this._$activeItem.addClass("i-active"), |
|||
this._itemActivateCallback&&this._itemActivateCallback(e))},r.prototype.createSortableForItemsList=function(t,e,o){m(t).sortable({scroll:!0,scrollSensitivity:100,scrollSpeed:100,axis:"y",handle:".js-drag-icon",placeholder:"tv-objects-tree-item tv-objects-tree-item--placeholder",start:e,stop:o})},r.prototype.createTreeNodeItem=function(t,e,o){var r,s=$(i.render(u,{draggable:!1,lockUnlockIcon:!1,formatIcon:!1,showHideIcon:!1,treeNode:!0,title:t,wideTitle:!0}));return this.updateNodeItem(s,t,e,o),s.click(this._onNodeToggleExpandCollapse.bind(this,s,t)),r=s.find(".js-remove-btn").attr("title",$.t("Delete all drawing for this symbol")),r.click(function(e){e.preventDefault(),this._nodeRemoveCallback&&this._nodeRemoveCallback(s,t)}.bind(this)),s},r.prototype.createItem=function(t,e){var o,r,s;return e=e||{},o=t.datasource,r=!1,s=$(i.render(u,{draggable:e.draggable,lockUnlockIcon:e.lockUnlock,showHideIcon:e.showHide,editAlert:r,treeNode:!1,largeLeftPadding:e.largeLeftPadding})),this.updateItem(s,t),s.click(this.activateItem.bind(this,s,o)),o.userEditEnabled()&&(e.lockUnlock&&this._setupLockUnlockButton(s.find(".js-lock-unlock-btn"),o),e.showHide&&this._setupItemPropertyButton(s.find(".js-show-hide-btn"),o,"visible",$.t("Show/Hide"),"Show/Hide ",!0),r&&this._setupEditAlertButton(s.find(".js-edit-alert-btn"),o),this._setupFormatButton(s.find(".js-format-btn"),o),this._canShowEditObjectDialog(o)&&(s.dblclick(function(){v(o,this._chartModel)}.bind(this)),e.addContextMenu&&s.on("contextmenu",function(t){this._showContextMenu(t,o),t.preventDefault()}.bind(this))),this._setupItemRemoveButton(s.find(".js-remove-btn"),o)),s},r.prototype.updateNodeItem=function(t,e,o,i){var r=t.find(".js-title-container");r.toggleClass("i-bold",i.isCurrent),r[0].innerHTML=e+" ("+o.length+")"},r.prototype.updateItem=function(t,e){t.find(".js-title-container")[0].innerHTML=TradingView.clean($.t(e.name)),this._setDataSourceIcon(t,e.datasource),this._setItemVisible(t,e.datasource)},r.prototype._showContextMenu=function(t,o){if(e.enabled("objects_tree_context_menu")){this._chartWidget.paneByState(this._chartModel.paneForSource(o)).showContextMenuForSource(o,t)}},r.prototype._canShowEditObjectDialog=function(t){return!(t instanceof p&&!t.isActualSymbol())&&((t!==this._chartModel.mainSeries()||!this._chartWidget||!this._chartWidget.onWidget())&&(_.hasStylesPropertyPage(t)||_.hasInputsPropertyPage(t)))},r.prototype._setupLockUnlockButton=function(t,e){TradingView.isInherited(e.constructor,p)?this._setupItemPropertyButton(t,e,"frozen",$.t("Lock/Unlock"),"Lock/Unlock ",!1):t.addClass("i-hidden")},r.prototype._setupEditAlertButton=function(t,e){},r.prototype._setupFormatButton=function(t,e){if(!this._canShowEditObjectDialog(e))return void t.addClass("i-hidden");t.attr("title",$.t("Format")).click(function(){v(e,this._chartModel)}.bind(this))},r.prototype._setItemVisible=function(t,e){var o=e.properties().visible.value();t.toggleClass("i-prop-hidden",!o)},r.prototype._setDataSourceIcon=function(t,e){var o,i=t.find(".js-icon-container").empty() |
|||
;i.removeClass("i-text-icon i-empty"),o=e.getSourceIcon(),null===o?i.addClass("i-empty"):"svg"===o.type?$(o.svgCode).attr({width:20,height:20}).appendTo(i):"text"===o.type&&(i.addClass("i-text-icon"),i.text(o.text)),t.prepend(i)},r.prototype._onItemPropertyButtonClicked=function(t,e){this._chartModel.setProperty(t,!t.value(),e)},r.prototype._onItemPropertyChanged=function(t,e,o){t.toggleClass("i-active",e?!o.value():o.value())},r.prototype._syncStateAndSubscribe=function(t,e,o){e.subscribe(null,this._onItemPropertyChanged.bind(this,t,o)),this._onItemPropertyChanged(t,o,e)},r.prototype._setupItemPropertyButton=function(t,e,o,i,r,s){t.attr("title",i).click(function(t){this._onItemPropertyButtonClicked(e.properties()[o],r+e.title())}.bind(this)),this._syncStateAndSubscribe(t,e.properties()[o],s)},r.prototype._setupItemRemoveButton=function(t,e){e!==this._chartModel.mainSeries()&&e.isUserDeletable()?t.attr("title",$.t("Delete")).click(function(t){t.preventDefault(),this._chartModel.removeSource(e)}.bind(this)):t.addClass("i-transparent")},r.prototype._onNodeToggleExpandCollapse=function(t,e){var o="i-expanded",i=t.hasClass(o);t.toggleClass(o,!i),this._nodeExpandCollapseCallback&&this._nodeExpandCollapseCallback(t,e,!i)},t.exports.ObjectTreeItemsController=r}).call(e,o(7),o(54))},805:function(t,e,o){(function(e,i){"use strict";function r(t){this._$filter=$(e.render(s,{filters:this._getActions()})).appendTo(t).tvDropdown();var o=this;this._$filter.on(Modernizr.touch?"touchend":"click",".js-dropdown-item",function(t){o._$filter.tvDropdown("close"),o._$filter.find(".js-dropdown-item.i-active").removeClass("i-active"),$(this).addClass("i-active")}),this._$filter.on("afterCloseMenu",function(){o.setValue(o._$filter.find(".js-dropdown-item.i-active").attr("data-name"))}),this._$filter.on("beforeOpenMenu",function(){o._$filter.find(".js-dropdown-item").each(function(){var t=$(this);t.toggleClass("i-active",t.attr("data-name")===o._value)})}),this.onChange=new i,this.setValue("all"),this._$filter.find('.js-dropdown-item[data-name="'+this._value+'"]').addClass("i-active")}var s,n=o(61).Study,a=o(85),l=o(3).LineDataSource;o(200),o(652),o(643),o(371),s='<div class="tv-dropdown tv-dropdown-behavior"><div class="tv-dropdown-behavior__button js-dropdown-toggle tv-objects-tree-tab-filter__button"><span class="js-filter-title"></span><span class="tv-caret"></span></div><div class="tv-dropdown__body tv-dropdown-behavior__body i-hidden">{{#filters}}<div class="tv-dropdown-behavior__item"><div class="tv-dropdown__item js-dropdown-item" data-name="{{name}}">{{title}}</div></div>{{/filters}}</div></div>',r.prototype.value=function(){return this._value},r.prototype.setValue=function(t){if(t!==this._value){this._value=t;var e=this._getActions().filter(function(e){return e.name===t})[0];this._$filter.find(".js-filter-title").text(e.title),this.onChange.fire(t)}},r.prototype.applyToGroup=function(t){var e,o,i,r,s;if("all"===this._value)return t;for(e=[],o=0;o<t.length;o++)i=t[o],r=TradingView.isInherited(i.datasource.constructor,a), |
|||
s=TradingView.isInherited(i.datasource.constructor,"drawings"===this._value?n:l),!r&&s||e.push(i);return e},r.prototype._getActions=function(){return[{name:"all",title:$.t("All")},{name:"drawings",title:$.t("Drawings")},{name:"studies",title:$.t("Studies")}]},t.exports.ObjectsTreeTabFilter=r}).call(e,o(54),o(20))},806:function(t,e,o){"use strict";function i(t,e,o,i,r){s.call(this,t,e,o,i),this._delayedRenderIntervals={},this._$filterContainer=r,this._boundUpdateView=this._updateView.bind(this),this._boundRenderView=this._renderView.bind(this,null),this._zorderChangedHandler=this._onZorderChanged.bind(this)}var r=o(805).ObjectsTreeTabFilter,s=o(404);o(644),inherit(i,s),i.prototype.destroy=function(){Object.keys(this._delayedRenderIntervals).forEach(function(t){clearInterval(t)}),this._delayedRenderIntervals=null,s.prototype.destroy.call(this)},i.prototype.initView=function(){this._filter=new r(this._$filterContainer),this._filter.onChange.subscribe(this,function(){this._renderView(this._scroll.scrollToStart.bind(this._scroll))}.bind(this)),s.prototype.initView.call(this)},i.prototype._addSortableToList=function(t,e){var o=0;this._listAccessor().createSortableForItemsList(t,function(t,e){o=e.item.index()},function(t,i){var r,s,n,a,l,c,d,h,u,p=i.item.index();if(o!==p){for(r=o>p?i.item.next():i.item.prev(),s=this._getSourceIdForItem(i.item),n=this._getSourceIdForItem(r),a=-1,l=-1,c=0;c<e.length;++c)d=e[c],d.datasource.id()===s?a=c:d.datasource.id()===n&&(l=c);for(h=this._chartModel.dataSourceForId(s),this._chartModel.removeListener("changeZOrder",this._zorderChangedHandler),this._chartModel.beginUndoMacro("Change "+h.title()+" Z order"),u=a>l?1:-1,c=0;c<Math.abs(a-l);c++)this._chartModel.changeZOrder(h,u);this._chartModel.endUndoMacro(),this._chartModel.on("changeZOrder",this._zorderChangedHandler)}}.bind(this))},i.prototype._getNewSelectedIdOnRemoval=function(t){var e=t.next();0===e.length&&(e=t.prev()),this._listAccessor().activateItem(e,this._getSourceForItem(e))},i.prototype._moveItemUp=function(t){var e=t.prev();e.length&&(t.insertBefore(e),this._scroll.scrollTo(t))},i.prototype._moveItemDown=function(t){var e=t.next();e.length&&(t.insertAfter(e),this._scroll.scrollTo(t))},i.prototype._removeSourceFromView=function(t){var e,o=this._getItemForSourceId(t.id()),i=t.id()===this._selectedSourceId();i&&this._getNewSelectedIdOnRemoval(o),e=o.parent(),1===e.children().length?e.remove():o.remove(),this._selectedSourceId()&&i&&this._scroll.scrollTo(this._getItemForSourceId(this._selectedSourceId()))},i.prototype._removeSourcesFromView=function(t){this._renderView(function(){this._scroll.scrollToStart()}.bind(this))},i.prototype._onZorderChanged=function(t,e){if(t)if(e){var o=this._getItemForSourceId(t.id());1===e?this._moveItemUp(o):this._moveItemDown(o)}else this._renderView(function(){this._scroll.scrollTo(this._getItemForSourceId(t.id()))}.bind(this))},i.prototype._subscribeListeners=function(){s.prototype._subscribeListeners.call(this),this._chartModel.on("setProperty",this._boundUpdateView), |
|||
this._chartModel.on("cloneLineTool",this._boundRenderView),this._chartModel.on("setChartStyleProperty",this._boundUpdateView),this._chartModel.on("changeZOrder",this._zorderChangedHandler),this._chartModel.on("moveSource",this._boundRenderView)},i.prototype._unsubscribeListeners=function(){s.prototype._unsubscribeListeners.call(this),this._chartModel.removeListener("setProperty",this._boundUpdateView),this._chartModel.removeListener("cloneLineTool",this._boundRenderView),this._chartModel.removeListener("setChartStyleProperty",this._boundUpdateView),this._chartModel.removeListener("changeZOrder",this._zorderChangedHandler),this._chartModel.removeListener("moveSource",this._boundRenderView)},i.prototype._updateView=function(){var t,e,o,i,r,s;for(this._reloadItems(),t=this._getItems().groups,e=0;e<t.length;++e)if(o=t[e],o.children.length)for(i=o.children.length-1;i>=0;--i)r=o.children[i],s=this._getItemForSourceId(r.datasource.id()),0!==s.length&&this._listAccessor().updateItem(s,r)},i._groupRenderSize=50,i.prototype._renderGroup=function(t){var e,o;t=t||{},e=0,o=setInterval(function(){var r=t.items.slice(e,e+i._groupRenderSize);r.forEach(function(e){var o=this._list.createItem(e,{lockUnlock:t.showLocks,showHide:!0,draggable:!0,addContextMenu:!0});this._markItemForSource(o,e.datasource),e.datasource.id()===this._selectedSourceId()&&this._listAccessor().activateItem(o,e.datasource),t.$group.append(o)}.bind(this)),e+=i._groupRenderSize,r.length||(clearInterval(o),delete this._delayedRenderIntervals[o],0===--this._fillListGroupsCount&&t.callback())}.bind(this),100),this._delayedRenderIntervals[o]=!0},i.prototype._renderViewInternal=function(t){var e,o,i,r,s="studies"!==this._filter.value()&&this._items.drawings.length;for(this._fillListGroupsCount=0,e=this._getItems().groups,o=0;o<e.length;o++)i=this._filter.applyToGroup(e[o].children),i.length&&(r=$('<div class="tv-objects-tree-tab__group">').appendTo(this._$contentWrapper),this._addSortableToList(r,e[o].children),i.reverse(),this._renderGroup({showLocks:s,callback:t,items:i,$group:r}),this._fillListGroupsCount++)},t.exports=i},1193:function(t,e){t.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 14 14"><path fill-rule="evenodd" d="M0 2.006C0 .898.897 0 2.006 0h9.988C13.102 0 14 .897 14 2.006v9.988A2.005 2.005 0 0 1 11.994 14H2.006A2.005 2.005 0 0 1 0 11.994V2.006zM5.586 7L3.293 4.707 2.586 4 4 2.586l.707.707L7 5.586l2.293-2.293.707-.707L11.414 4l-.707.707L8.414 7l2.293 2.293.707.707L10 11.414l-.707-.707L7 8.414l-2.293 2.293-.707.707L2.586 10l.707-.707L5.586 7z"/></svg>'},1194:function(t,e){t.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 14 14"><path fill-rule="evenodd" d="M0 2.006C0 .898.897 0 2.006 0h9.988C13.102 0 14 .897 14 2.006v9.988A2.005 2.005 0 0 1 11.994 14H2.006A2.005 2.005 0 0 1 0 11.994V2.006zM7 11c3.314 0 6-4 6-4s-2.686-4-6-4-6 4-6 4 2.686 4 6 4zm0-2c-1.111 0-2-.889-2-2s.889-2 2-2 2 .889 2 2-.906 2-2 2z"/></svg>'},1195:function(t,e){ |
|||
t.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 14 14"><path fill-rule="evenodd" d="M0 2.006C0 .898.897 0 2.006 0h9.988C13.102 0 14 .897 14 2.006v9.988A2.005 2.005 0 0 1 11.994 14H2.006A2.005 2.005 0 0 1 0 11.994V2.006zm11.119 4.28s-.357 0-.452-.334a3.415 3.415 0 0 0-.334-.81c-.143-.309.096-.547.096-.547l.357-.357c.143-.143.143-.38 0-.548l-.476-.476c-.143-.143-.381-.143-.548 0l-.357.357s-.238.239-.548.096a3.415 3.415 0 0 0-.81-.334c-.333-.095-.333-.452-.333-.452v-.5A.376.376 0 0 0 7.334 2h-.667a.376.376 0 0 0-.381.381v.5s0 .357-.334.452c-.285.072-.547.19-.81.334-.309.143-.547-.096-.547-.096l-.357-.357c-.143-.143-.38-.143-.548 0l-.476.476c-.143.143-.143.381 0 .548l.357.357s.239.238.096.548a3.415 3.415 0 0 0-.334.81c-.095.309-.452.333-.452.333h-.5a.376.376 0 0 0-.381.38v.667c0 .215.167.381.381.381h.5s.357 0 .452.334c.072.285.19.547.334.81.143.309-.096.547-.096.547l-.357.357c-.143.143-.143.38 0 .548l.476.476c.143.143.381.143.548 0l.357-.357s.238-.239.548-.096c.262.143.524.262.81.334.309.095.333.452.333.452v.5c0 .214.166.381.38.381h.667a.376.376 0 0 0 .381-.381v-.5s0-.357.334-.452c.285-.072.547-.19.81-.334.309-.143.547.096.547.096l.357.357c.143.143.38.143.548 0l.476-.476c.143-.143.143-.381 0-.548l-.357-.357s-.239-.238-.096-.548c.143-.262.262-.524.334-.81.095-.309.452-.333.452-.333h.5a.376.376 0 0 0 .381-.38v-.667a.376.376 0 0 0-.381-.381h-.5zM7 9c-1.111 0-2-.889-2-2s.889-2 2-2 2 .889 2 2-.906 2-2 2z"/></svg>'},1196:function(t,e){t.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 14 14"><path fill-rule="evenodd" d="M0 2.006C0 .898.897 0 2.006 0h9.988C13.102 0 14 .897 14 2.006v9.988A2.005 2.005 0 0 1 11.994 14H2.006A2.005 2.005 0 0 1 0 11.994V2.006zM6 6H3v2h8V6H6z"/></svg>'},1197:function(t,e){t.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 14 14"><path fill-rule="evenodd" d="M0 2.006C0 .898.897 0 2.006 0h9.988C13.102 0 14 .897 14 2.006v9.988A2.005 2.005 0 0 1 11.994 14H2.006A2.005 2.005 0 0 1 0 11.994V2.006zm8 1.19H6v3H3v2h3v3h2v-3h3v-2H8v-3z"/></svg>'}}); |
|||
@ -0,0 +1 @@ |
|||
webpackJsonp([11],{162:function(e,r){"use strict";r.createInputsPropertyPage=function(e,r){var t=e.getInputsPropertyPage();return null==t?null:new t(e.properties(),r,e)},r.createStudyStrategyPropertyPage=function(e,r){var t=e.getStrategyPropertyPage();return null==t?null:new t(e.properties(),r,e)},r.createStylesPropertyPage=function(e,r){var t=e.getStylesPropertyPage();return null==t?null:new t(e.properties(),r,e)},r.createDisplayPropertyPage=function(e,r){var t=e.getDisplayPropertyPage();return null==t?null:new t(e.properties(),r,e)},r.createVisibilitiesPropertyPage=function(e,r){var t=e.getVisibilitiesPropertyPage();return null==t?null:new t(e.properties(),r,e)},r.hasInputsPropertyPage=function(e){return null!==e.getInputsPropertyPage()},r.hasStylesPropertyPage=function(e){return null!==e.getStylesPropertyPage()}}}); |
|||
@ -0,0 +1,6 @@ |
|||
webpackJsonp([7],{108:function(e,t,n){"use strict";function o(e){return t=function(t){function n(e,n){var o=t.call(this,e,n)||this;return o._getWrappedComponent=function(e){o._instance=e},o}return i.__extends(n,t),n.prototype.componentDidMount=function(){this._instance.componentWillEnter&&this.context.lifecycleProvider.registerWillEnterCb(this._instance.componentWillEnter.bind(this._instance)),this._instance.componentDidEnter&&this.context.lifecycleProvider.registerDidEnterCb(this._instance.componentDidEnter.bind(this._instance)),this._instance.componentWillLeave&&this.context.lifecycleProvider.registerWillLeaveCb(this._instance.componentWillLeave.bind(this._instance)),this._instance.componentDidLeave&&this.context.lifecycleProvider.registerDidLeaveCb(this._instance.componentDidLeave.bind(this._instance))},n.prototype.render=function(){return r.createElement(e,i.__assign({},this.props,{ref:this._getWrappedComponent}),this.props.children)},n}(r.PureComponent),t.displayName="Lifecycle Consumer",t.contextTypes={lifecycleProvider:s.object},t;var t}var i,r,s,a;Object.defineProperty(t,"__esModule",{value:!0}),i=n(5),r=n(2),s=n(86),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t}(r.PureComponent),t.LifecycleConsumer=a,t.makeTransitionGroupLifecycleConsumer=o},153:function(e,t){e.exports={body:"body-1yAIljnK-"}},154:function(e,t){e.exports={footer:"footer-AwxgkLHY-"}},155:function(e,t){e.exports={header:"header-2Hz0Lxou-",close:"close-3H_MMLbw-"}},156:function(e,t){e.exports={message:"message-1CYdTy_T-",error:"error-1u_m-Ehm-"}},157:function(e,t){e.exports={dialog:"dialog-13-QRYuG-",rounded:"rounded-1GLivxii-",shadowed:"shadowed-30OTTAts-"}},182:function(e,t,n){"use strict";function o(e){return i.createElement("div",{className:r.body,ref:e.reference},e.children)}var i,r;Object.defineProperty(t,"__esModule",{value:!0}),i=n(2),r=n(153),t.Body=o},183:function(e,t,n){"use strict";var o,i,r,s;Object.defineProperty(t,"__esModule",{value:!0}),o=n(185),t.Header=o.Header,i=n(184),t.Footer=i.Footer,r=n(182),t.Body=r.Body,s=n(186),t.Message=s.Message},184:function(e,t,n){"use strict";function o(e){return i.createElement("div",{className:r.footer,ref:e.reference},e.children)}var i,r;Object.defineProperty(t,"__esModule",{value:!0}),i=n(2),r=n(154),t.Footer=o},185:function(e,t,n){"use strict";function o(e){return i.createElement("div",{className:r.header,"data-dragg-area":!0,ref:e.reference},e.children,i.createElement(a.Icon,{className:r.close,icon:s,onClick:e.onClose}))}var i,r,s,a;Object.defineProperty(t,"__esModule",{value:!0}),i=n(2),r=n(155),s=n(109),a=n(77),t.Header=o},186:function(e,t,n){"use strict";function o(e){var t,n;return e.text?t=i.createElement("span",null,e.text):e.html&&(t=i.createElement("span",{dangerouslySetInnerHTML:{__html:e.html}})),n=r.message,e.isError&&(n+=" "+r.error),i.createElement(s.CSSTransitionGroup,{transitionName:"message",transitionEnterTimeout:u.dur,transitionLeaveTimeout:u.dur},t?i.createElement("div",{className:n,key:"0" |
|||
},i.createElement(a.OutsideEvent,{mouseDown:!0,touchStart:!0,handler:e.onClickOutside},t)):null)}var i,r,s,a,u;Object.defineProperty(t,"__esModule",{value:!0}),i=n(2),r=n(156),s=n(46),a=n(107),u=n(28),t.Message=o},187:function(e,t,n){"use strict";function o(e){var t,n=e.rounded,o=void 0===n||n,a=e.shadowed,u=void 0===a||a,l=e.className,c=void 0===l?"":l,d=s(r.dialog,(t={},t[c]=!!c,t[r.rounded]=o,t[r.shadowed]=u,t[r.animated]=r.animated,t)),p={bottom:e.bottom,left:e.left,maxWidth:e.width,right:e.right,top:e.top,zIndex:e.zIndex};return i.createElement("div",{className:d,ref:e.reference,style:p,onMouseDown:e.onMouseDown,onMouseUp:e.onMouseUp,onClick:e.onClick},e.children)}var i,r,s;Object.defineProperty(t,"__esModule",{value:!0}),i=n(2),r=n(157),s=n(26),t.Dialog=o},188:function(e,t,n){"use strict";function o(){d=document.createElement("div"),document.body.appendChild(d),r()}function i(e,t){p.getItems().forEach(function(n){n!==t&&f.emitEvent(e+":"+n)})}function r(e){a.render(s.createElement(u.TransitionGroup,{component:"div"},Array.from(m.values())),d,e)}var s,a,u,l,c,d,p,h,f,m;Object.defineProperty(t,"__esModule",{value:!0}),s=n(2),a=n(55),u=n(46),l=n(110),c=function(){function e(){this._storage=[]}return e.prototype.add=function(e){this._storage.push(e)},e.prototype.remove=function(e){this._storage=this._storage.filter(function(t){return e!==t})},e.prototype.getIndex=function(e){return this._storage.findIndex(function(t){return e===t})},e.prototype.toTop=function(e){this.remove(e),this.add(e)},e.prototype.has=function(e){return this._storage.includes(e)},e.prototype.getItems=function(){return this._storage},e}(),t.EVENTS={ZindexUpdate:"ZindexUpdate"},p=new c,h=150,f=new l,m=new Map,function(e){function n(e){p.has(e)||(p.add(e),i(t.EVENTS.ZindexUpdate,e))}function o(e){p.remove(e),m.delete(e)}function s(e){return p.getIndex(e)+h}function a(e,t,n){m.set(e,t),r(n)}function u(e,t){o(e),r(t)}function l(){return f}e.registerWindow=n,e.unregisterWindow=o,e.getZindex=s,e.renderWindow=a,e.removeWindow=u,e.getStream=l}(t.OverlapManager||(t.OverlapManager={})),o()},189:function(e,t,n){"use strict";function o(e){return t=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return r.__extends(n,t),n.prototype.componentWillEnter=function(e){this.props.beforeOpen?this.props.beforeOpen(e):e()},n.prototype.componentDidEnter=function(){this.props.afterOpen&&this.props.afterOpen()},n.prototype.componentWillLeave=function(e){this.props.beforeClose?this.props.beforeClose(e):e()},n.prototype.componentDidLeave=function(){this.props.afterClose&&this.props.afterClose()},n.prototype.render=function(){return s.createElement(e,r.__assign({},this.props))},n}(s.PureComponent),t.displayName="OverlapLifecycle("+(e.displayName||"Component")+")",t;var t}function i(e){var t,n=l.makeTransitionGroupLifecycleProvider(c.makeTransitionGroupLifecycleConsumer(o(e)));return t=function(e){function t(t){var n=e.call(this,t)||this;return n._onZIndexUpdate=function(){ |
|||
n.props.isOpened&&("parent"===n.props.root?n.forceUpdate():n._renderWindow(n.props))},n._uuid=d.guid(),n._zIndexUpdateEvent=u.EVENTS.ZindexUpdate+":"+n._uuid,n}return r.__extends(t,e),t.prototype.componentDidMount=function(){this._subscribe()},t.prototype.componentWillUnmount=function(){this._unsubscribe(),u.OverlapManager.removeWindow(this._uuid)},t.prototype.componentWillReceiveProps=function(e){"parent"!==this.props.root&&this._renderWindow(e)},t.prototype.render=function(){return"parent"===this.props.root?s.createElement(a.TransitionGroup,{component:"div"},this._createContent(this.props)):null},t.prototype._renderWindow=function(e){u.OverlapManager.renderWindow(this._uuid,this._createContent(e))},t.prototype._createContent=function(e){return e.isOpened?(u.OverlapManager.registerWindow(this._uuid),s.createElement(n,r.__assign({},e,{key:this._uuid,zIndex:u.OverlapManager.getZindex(this._uuid)}),e.children)):(u.OverlapManager.unregisterWindow(this._uuid),null)},t.prototype._subscribe=function(){u.OverlapManager.getStream().on(this._zIndexUpdateEvent,this._onZIndexUpdate)},t.prototype._unsubscribe=function(){u.OverlapManager.getStream().off(this._zIndexUpdateEvent,this._onZIndexUpdate)},t}(s.PureComponent),t.displayName="Overlapable("+(e.displayName||"Component")+")",t}var r,s,a,u,l,c,d;Object.defineProperty(t,"__esModule",{value:!0}),r=n(5),s=n(2),a=n(46),u=n(188),l=n(191),c=n(108),d=n(64),t.makeOverlapable=i},191:function(e,t,n){"use strict";function o(e){return t=function(t){function n(e){var n=t.call(this,e)||this;return n._registerWillEnterCb=function(e){n._willEnter.push(e)},n._registerDidEnterCb=function(e){n._didEnter.push(e)},n._registerWillLeaveCb=function(e){n._willLeave.push(e)},n._registerDidLeaveCb=function(e){n._didLeave.push(e)},n._willEnter=[],n._didEnter=[],n._willLeave=[],n._didLeave=[],n}return i.__extends(n,t),n.prototype.getChildContext=function(){return{lifecycleProvider:{registerWillEnterCb:this._registerWillEnterCb,registerDidEnterCb:this._registerDidEnterCb,registerWillLeaveCb:this._registerWillLeaveCb,registerDidLeaveCb:this._registerDidLeaveCb}}},n.prototype.componentWillEnter=function(e){var t=this._willEnter.map(function(e){return new Promise(function(t){e(t)})});Promise.all(t).then(e)},n.prototype.componentDidEnter=function(){this._didEnter.forEach(function(e){e()})},n.prototype.componentWillLeave=function(e){var t=this._willLeave.map(function(e){return new Promise(function(t){e(t)})});Promise.all(t).then(e)},n.prototype.componentDidLeave=function(){this._didLeave.forEach(function(e){e()})},n.prototype.render=function(){return r.createElement(e,i.__assign({},this.props),this.props.children)},n}(r.PureComponent),t.displayName="Lifecycle Provider",t.childContextTypes={lifecycleProvider:s.object},t;var t}var i,r,s;Object.defineProperty(t,"__esModule",{value:!0}),i=n(5),r=n(2),s=n(86),t.makeTransitionGroupLifecycleProvider=o},256:function(e,t){e.exports={dialog:"dialog-2MaUXXMw-",dragging:"dragging-3oeGgbIQ-"}},323:function(e,t){"use strict";function n(e,t,n){return e+t>n&&(e=n-t), |
|||
e<0&&(e=0),e}function o(e){return{x:e.pageX,y:e.pageY}}function i(e){return{x:e.touches[0].pageX,y:e.touches[0].pageY}}Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){var n=this;this._drag=null,this._onMouseDragStart=function(e){e.preventDefault(),n._dragStart(o(e))},this._onTouchDragStart=function(e){n._dragStart(i(e))},this._onMouseDragMove=function(e){n._dragMove(o(e))},this._onTouchDragMove=function(e){e.preventDefault(),n._dragMove(i(e))},this._onDragStop=function(){n._drag=null,n._header.classList.remove("dragging")},this._dialog=e,this._header=t,t.addEventListener("mousedown",this._onMouseDragStart),t.addEventListener("touchstart",this._onTouchDragStart),document.addEventListener("mousemove",this._onMouseDragMove),document.addEventListener("touchmove",this._onTouchDragMove),document.addEventListener("mouseup",this._onDragStop),document.addEventListener("touchend",this._onDragStop)}return e.prototype.destroy=function(){this._header.removeEventListener("mousedown",this._onMouseDragStart),this._header.removeEventListener("touchstart",this._onTouchDragStart),document.removeEventListener("mousemove",this._onMouseDragMove),document.removeEventListener("touchmove",this._onTouchDragMove),document.removeEventListener("mouseup",this._onDragStop),document.removeEventListener("touchend",this._onDragStop)},e.prototype._dragStart=function(e){var t=this._dialog.getBoundingClientRect();this._drag={startX:e.x,startY:e.y,dialogX:t.left,dialogY:t.top},this._dialog.style.left=t.left+"px",this._dialog.style.top=t.top+"px",this._header.classList.add("dragging")},e.prototype._dragMove=function(e){var t,n;this._drag&&(t=e.x-this._drag.startX,n=e.y-this._drag.startY,this._moveDialog(this._drag.dialogX+t,this._drag.dialogY+n))},e.prototype._moveDialog=function(e,t){var o=this._dialog.getBoundingClientRect();this._dialog.style.left=n(e,o.width,window.innerWidth)+"px",this._dialog.style.top=n(t,o.height,window.innerHeight)+"px"},e}();t.DragHandler=r},324:function(e,t,n){"use strict";var o,i,r,s,a,u,l,c,d,p,h;Object.defineProperty(t,"__esModule",{value:!0}),o=n(5),i=n(2),r=n(187),s=n(189),a=n(108),u=n(107),l=n(256),c=n(323),d=n(325),p=n(26),h=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._setDialog=function(e){e&&(t._dialog=e)},t}return o.__extends(t,e),t.prototype.render=function(){return i.createElement("span",{style:{zIndex:this.props.zIndex}},i.createElement(u.OutsideEvent,{mouseDown:!0,touchStart:!0,handler:this.props.onClickOutside},i.createElement(r.Dialog,o.__assign({},this.props,{reference:this._setDialog,className:p(l.dialog,this.props.className)}),this.props.children)))},t.prototype.componentDidMount=function(){if(this._dialog){var e=this._dialog.querySelector("[data-dragg-area]");e&&(this._drag=new c.DragHandler(this._dialog,e)),this._resize=new d.ResizeHandler(this._dialog)}},t.prototype.componentWillEnter=function(e){this._resize&&this._resize.position(),e()},t.prototype.componentWillUnmount=function(){this._drag&&this._drag.destroy(), |
|||
this._resize&&this._resize.destroy()},t}(i.PureComponent),t.PopupDialog=s.makeOverlapable(a.makeTransitionGroupLifecycleConsumer(h))},325:function(e,t){"use strict";function n(e,t,n){return e+t>n&&(e=n-t),e<0&&(e=0),e}Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e){this._onResizeThrottled=requestAnimationFrame.bind(null,this._onResize.bind(this)),this._dialog=e,this._initialHeight=e.style.height,window.addEventListener("resize",this._onResizeThrottled)}return e.prototype.position=function(){var e,t=this._dialog.getBoundingClientRect(),n=window.innerWidth/2-t.width/2;this._dialog.style.left=n+"px",e=window.innerHeight/2-t.height/2,this._dialog.style.top=e+"px"},e.prototype.destroy=function(){window.removeEventListener("resize",this._onResizeThrottled)},e.prototype._onResize=function(){var e,t=this._dialog.getBoundingClientRect(),o=n(t.left,t.width,window.innerWidth);o!==t.left&&(this._dialog.style.left=o+"px"),e=n(t.top,t.height,window.innerHeight),e!==t.top&&(this._dialog.style.top=e+"px"),this._dialog.style.height=window.innerHeight<t.height?window.innerHeight+"px":this._initialHeight},e}();t.ResizeHandler=o},431:function(e,t,n){(function(e,o){"use strict";function i(e,t){var n,i,u,c,d;r({isOpened:!1}),null==e&&(e=b.symbol.value()),null!=e&&(e+="",n=t&&t.symbolInfo,i=[{title:$.t("Symbol Name"),propName:o.enabled("charting_library_base")?"name":"pro_name"},{title:$.t("Symbol Description"),propName:"description"},{title:$.t("Symbol Type"),propName:"type"},{title:$.t("Point Value"),propName:"pointvalue"},{title:$.t("Exchange"),propName:"exchange"},{title:$.t("Listed Exchange"),propName:"listed_exchange"},{title:$.t("Currency"),propName:"currency_code",formatter:function(e){return e||"USD"},defValue:"USD"},{title:$.t("Price Scale"),propName:"pricescale"},{title:$.t("Min Move"),propName:"minmov"},{title:$.t("Min Move 2"),propName:"minmove2"},{title:$.t("Sector"),propName:"sector"},{title:$.t("Industry"),propName:"industry"},{title:$.t("Timezone"),propName:"timezone",formatter:s,optional:!0},{title:$.t("Session"),propName:"session",formatter:a,optional:!0,setHtml:!0}],u=0,n&&(u=l(n,i)),u<i.length&&window.quoteSessionMultiplexerInstance&&(c="symbolinfodialog."+M.guid(),quoteSessionMultiplexerInstance.full.subscribe(c,e,function(t,n){l(n.values,i),quoteSessionMultiplexerInstance.full.unsubscribe(c,e),r(d)})),d={isOpened:!0,onClose:function(){r({isOpened:!1}),E=null},fields:i},r(d))}function r(e){E||(E=document.createElement("div"),document.body.appendChild(E)),C.render(D.createElement(L,e),E)}function s(e){var t,n=w;for(t=0;t<n.length;t++)if(n[t].id===e)return n[t].title;return e}function a(e){return y(new S(e).entries()).join("<br>")}function u(e){return e||"-"}function l(e,t){var n,o,i,r,s=0;for(n=0;n<t.length;n++)(o=t[n].propName)in e&&(i=e[o],"minmove2"===o&&e.minmove2>0&&!e.fractional&&e.pricescale?(t[n].value=new x(e.pricescale/i).format(i/e.pricescale),t[n].title=$.t("Pip Size")):t[n].value=(t[n].formatter||u)(i),s++) |
|||
;return r=e.type&&"economic"===e.type||e.listed_exchange&&["QUANDL","BSE_EOD","NSE_EOD","LSE_EOD"].indexOf(e.listed_exchange)>=0,r&&c(t),s}function c(e){for(var t=0;t<e.length;t++)e[t].optional&&(e.splice(t,1),t--)}function d(e){var t,n;return e>O.minutesPerDay&&(e-=O.minutesPerDay),t=e%60,n=(e-t)/60,P(n,2)+":"+P(t,2)}function p(e){return e.reduce(function(e,t){var n=d(t.alignedStart())+"-"+d(t.alignedStart()+t.length()),o=t.dayOfWeek();return e.hasOwnProperty(n)?e[n].push(o):e[n]=[o],e},{})}function h(e){return e.match(W)[0]}function f(e,t){var n=h(e),o=h(t);return T[n]>T[o]}function m(t,n,o){return void 0===o?e.weekdaysMin(n-1)+" "+t:e.weekdaysMin(n-1)+"-"+e.weekdaysMin(o-1)+" "+t}function _(e){return 1===e?7:e-1}function g(e,t,n){return n?m(e,_(t),t):m(e,t)}function v(e,t){if(t){var n=e[0];e.unshift(_(n))}}function y(e){var t=p(e);return Object.keys(t).reduce(function(e,n){var o,i=t[n].sort(),r=n.split("-"),s=O.get_minutes_from_hhmm(r[0]),a=O.get_minutes_from_hhmm(r[1]),u=s>=a;return 1===i.length?(v(i,u),e.push(m(n,i[0]))):(o=[],i.forEach(function(t,r){var s=i[r+1];s&&t===s-1?o.push(t):t!==o[o.length-1]+1?e.push(g(n,t,u)):(o.push(t),v(o,u),e.push(m(n,o[0],o[o.length-1])),o.splice(0,o.length))})),e},[]).sort(f)}var E,b=n(97),w=n(226).availableTimezones,x=n(41).PriceFormatter,M=n(64),D=n(2),C=n(55),L=n(1105).SymbolInfoDialog,S=n(480).ExchangeSession,O=n(67),P=n(41).numberToStringWithLeadingZero,N=[2,3,4,5,6,7,1].map(function(t){return e.weekdaysMin(t-1)}),W=RegExp(N.join("|")),T=N.reduce(function(e,t,n){return e[t]=n+1,e},{});t.showSymbolInfoDialog=i}).call(t,n(36),n(7))},659:function(e,t){e.exports={content:"content-2c3hRn22-",row:"row-2r-bcyH5-",column:"column-2wM_iSMS-",title:"title-2kFlsSZg-",value:"value-lS6fGKoI-",columnTitle:"columnTitle-3tZ4a3rW-",columnValue:"columnValue-2hg99RGl-"}},1105:function(e,t,n){"use strict";function o(e){var t=e.value||e.defValue||"-";return e.setHtml?r.createElement("span",{dangerouslySetInnerHTML:{__html:t}}):t}var i,r,s,a,u,l,c,d;Object.defineProperty(t,"__esModule",{value:!0}),i=n(5),n(23),r=n(2),s=n(324),a=n(183),u=n(659),l=n(26),c=n(234),d=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.render=function(){return r.createElement(s.PopupDialog,{isOpened:this.props.isOpened,onClickOutside:this.props.onClose},r.createElement(a.Header,{onClose:this.props.onClose},window.t("Symbol Info")),r.createElement(a.Body,null,r.createElement(c.KeyboardDocumentListener,{keyCode:27,handler:this.props.onClose}),r.createElement("div",{className:u.content},this._renderFields())))},t.prototype._renderFields=function(){return this.props.fields?this.props.fields.map(function(e){return r.createElement("div",{key:e.propName,className:u.row},r.createElement("div",{className:l(u.column,u.columnTitle)},r.createElement("span",{className:u.title},e.title)),r.createElement("div",{className:l(u.column,u.columnValue)},r.createElement("span",{className:u.value},o(e))))}):[]},t}(r.PureComponent),t.SymbolInfoDialog=d}}); |
|||
@ -0,0 +1,9 @@ |
|||
webpackJsonp([2],{108:function(e,t,n){"use strict";function o(e){return t=function(t){function n(e,n){var o=t.call(this,e,n)||this;return o._getWrappedComponent=function(e){o._instance=e},o}return r.__extends(n,t),n.prototype.componentDidMount=function(){this._instance.componentWillEnter&&this.context.lifecycleProvider.registerWillEnterCb(this._instance.componentWillEnter.bind(this._instance)),this._instance.componentDidEnter&&this.context.lifecycleProvider.registerDidEnterCb(this._instance.componentDidEnter.bind(this._instance)),this._instance.componentWillLeave&&this.context.lifecycleProvider.registerWillLeaveCb(this._instance.componentWillLeave.bind(this._instance)),this._instance.componentDidLeave&&this.context.lifecycleProvider.registerDidLeaveCb(this._instance.componentDidLeave.bind(this._instance))},n.prototype.render=function(){return i.createElement(e,r.__assign({},this.props,{ref:this._getWrappedComponent}),this.props.children)},n}(i.PureComponent),t.displayName="Lifecycle Consumer",t.contextTypes={lifecycleProvider:a.object},t;var t}var r,i,a,s;Object.defineProperty(t,"__esModule",{value:!0}),r=n(5),i=n(2),a=n(86),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r.__extends(t,e),t}(i.PureComponent),t.LifecycleConsumer=s,t.makeTransitionGroupLifecycleConsumer=o},153:function(e,t){e.exports={body:"body-1yAIljnK-"}},154:function(e,t){e.exports={footer:"footer-AwxgkLHY-"}},155:function(e,t){e.exports={header:"header-2Hz0Lxou-",close:"close-3H_MMLbw-"}},156:function(e,t){e.exports={message:"message-1CYdTy_T-",error:"error-1u_m-Ehm-"}},157:function(e,t){e.exports={dialog:"dialog-13-QRYuG-",rounded:"rounded-1GLivxii-",shadowed:"shadowed-30OTTAts-"}},182:function(e,t,n){"use strict";function o(e){return r.createElement("div",{className:i.body,ref:e.reference},e.children)}var r,i;Object.defineProperty(t,"__esModule",{value:!0}),r=n(2),i=n(153),t.Body=o},183:function(e,t,n){"use strict";var o,r,i,a;Object.defineProperty(t,"__esModule",{value:!0}),o=n(185),t.Header=o.Header,r=n(184),t.Footer=r.Footer,i=n(182),t.Body=i.Body,a=n(186),t.Message=a.Message},184:function(e,t,n){"use strict";function o(e){return r.createElement("div",{className:i.footer,ref:e.reference},e.children)}var r,i;Object.defineProperty(t,"__esModule",{value:!0}),r=n(2),i=n(154),t.Footer=o},185:function(e,t,n){"use strict";function o(e){return r.createElement("div",{className:i.header,"data-dragg-area":!0,ref:e.reference},e.children,r.createElement(s.Icon,{className:i.close,icon:a,onClick:e.onClose}))}var r,i,a,s;Object.defineProperty(t,"__esModule",{value:!0}),r=n(2),i=n(155),a=n(109),s=n(77),t.Header=o},186:function(e,t,n){"use strict";function o(e){var t,n;return e.text?t=r.createElement("span",null,e.text):e.html&&(t=r.createElement("span",{dangerouslySetInnerHTML:{__html:e.html}})),n=i.message,e.isError&&(n+=" "+i.error),r.createElement(a.CSSTransitionGroup,{transitionName:"message",transitionEnterTimeout:c.dur,transitionLeaveTimeout:c.dur},t?r.createElement("div",{className:n,key:"0" |
|||
},r.createElement(s.OutsideEvent,{mouseDown:!0,touchStart:!0,handler:e.onClickOutside},t)):null)}var r,i,a,s,c;Object.defineProperty(t,"__esModule",{value:!0}),r=n(2),i=n(156),a=n(46),s=n(107),c=n(28),t.Message=o},187:function(e,t,n){"use strict";function o(e){var t,n=e.rounded,o=void 0===n||n,s=e.shadowed,c=void 0===s||s,l=e.className,u=void 0===l?"":l,p=a(i.dialog,(t={},t[u]=!!u,t[i.rounded]=o,t[i.shadowed]=c,t[i.animated]=i.animated,t)),d={bottom:e.bottom,left:e.left,maxWidth:e.width,right:e.right,top:e.top,zIndex:e.zIndex};return r.createElement("div",{className:p,ref:e.reference,style:d,onMouseDown:e.onMouseDown,onMouseUp:e.onMouseUp,onClick:e.onClick},e.children)}var r,i,a;Object.defineProperty(t,"__esModule",{value:!0}),r=n(2),i=n(157),a=n(26),t.Dialog=o},188:function(e,t,n){"use strict";function o(){p=document.createElement("div"),document.body.appendChild(p),i()}function r(e,t){d.getItems().forEach(function(n){n!==t&&f.emitEvent(e+":"+n)})}function i(e){s.render(a.createElement(c.TransitionGroup,{component:"div"},Array.from(h.values())),p,e)}var a,s,c,l,u,p,d,m,f,h;Object.defineProperty(t,"__esModule",{value:!0}),a=n(2),s=n(55),c=n(46),l=n(110),u=function(){function e(){this._storage=[]}return e.prototype.add=function(e){this._storage.push(e)},e.prototype.remove=function(e){this._storage=this._storage.filter(function(t){return e!==t})},e.prototype.getIndex=function(e){return this._storage.findIndex(function(t){return e===t})},e.prototype.toTop=function(e){this.remove(e),this.add(e)},e.prototype.has=function(e){return this._storage.includes(e)},e.prototype.getItems=function(){return this._storage},e}(),t.EVENTS={ZindexUpdate:"ZindexUpdate"},d=new u,m=150,f=new l,h=new Map,function(e){function n(e){d.has(e)||(d.add(e),r(t.EVENTS.ZindexUpdate,e))}function o(e){d.remove(e),h.delete(e)}function a(e){return d.getIndex(e)+m}function s(e,t,n){h.set(e,t),i(n)}function c(e,t){o(e),i(t)}function l(){return f}e.registerWindow=n,e.unregisterWindow=o,e.getZindex=a,e.renderWindow=s,e.removeWindow=c,e.getStream=l}(t.OverlapManager||(t.OverlapManager={})),o()},189:function(e,t,n){"use strict";function o(e){return t=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return i.__extends(n,t),n.prototype.componentWillEnter=function(e){this.props.beforeOpen?this.props.beforeOpen(e):e()},n.prototype.componentDidEnter=function(){this.props.afterOpen&&this.props.afterOpen()},n.prototype.componentWillLeave=function(e){this.props.beforeClose?this.props.beforeClose(e):e()},n.prototype.componentDidLeave=function(){this.props.afterClose&&this.props.afterClose()},n.prototype.render=function(){return a.createElement(e,i.__assign({},this.props))},n}(a.PureComponent),t.displayName="OverlapLifecycle("+(e.displayName||"Component")+")",t;var t}function r(e){var t,n=l.makeTransitionGroupLifecycleProvider(u.makeTransitionGroupLifecycleConsumer(o(e)));return t=function(e){function t(t){var n=e.call(this,t)||this;return n._onZIndexUpdate=function(){ |
|||
n.props.isOpened&&("parent"===n.props.root?n.forceUpdate():n._renderWindow(n.props))},n._uuid=p.guid(),n._zIndexUpdateEvent=c.EVENTS.ZindexUpdate+":"+n._uuid,n}return i.__extends(t,e),t.prototype.componentDidMount=function(){this._subscribe()},t.prototype.componentWillUnmount=function(){this._unsubscribe(),c.OverlapManager.removeWindow(this._uuid)},t.prototype.componentWillReceiveProps=function(e){"parent"!==this.props.root&&this._renderWindow(e)},t.prototype.render=function(){return"parent"===this.props.root?a.createElement(s.TransitionGroup,{component:"div"},this._createContent(this.props)):null},t.prototype._renderWindow=function(e){c.OverlapManager.renderWindow(this._uuid,this._createContent(e))},t.prototype._createContent=function(e){return e.isOpened?(c.OverlapManager.registerWindow(this._uuid),a.createElement(n,i.__assign({},e,{key:this._uuid,zIndex:c.OverlapManager.getZindex(this._uuid)}),e.children)):(c.OverlapManager.unregisterWindow(this._uuid),null)},t.prototype._subscribe=function(){c.OverlapManager.getStream().on(this._zIndexUpdateEvent,this._onZIndexUpdate)},t.prototype._unsubscribe=function(){c.OverlapManager.getStream().off(this._zIndexUpdateEvent,this._onZIndexUpdate)},t}(a.PureComponent),t.displayName="Overlapable("+(e.displayName||"Component")+")",t}var i,a,s,c,l,u,p;Object.defineProperty(t,"__esModule",{value:!0}),i=n(5),a=n(2),s=n(46),c=n(188),l=n(191),u=n(108),p=n(64),t.makeOverlapable=r},191:function(e,t,n){"use strict";function o(e){return t=function(t){function n(e){var n=t.call(this,e)||this;return n._registerWillEnterCb=function(e){n._willEnter.push(e)},n._registerDidEnterCb=function(e){n._didEnter.push(e)},n._registerWillLeaveCb=function(e){n._willLeave.push(e)},n._registerDidLeaveCb=function(e){n._didLeave.push(e)},n._willEnter=[],n._didEnter=[],n._willLeave=[],n._didLeave=[],n}return r.__extends(n,t),n.prototype.getChildContext=function(){return{lifecycleProvider:{registerWillEnterCb:this._registerWillEnterCb,registerDidEnterCb:this._registerDidEnterCb,registerWillLeaveCb:this._registerWillLeaveCb,registerDidLeaveCb:this._registerDidLeaveCb}}},n.prototype.componentWillEnter=function(e){var t=this._willEnter.map(function(e){return new Promise(function(t){e(t)})});Promise.all(t).then(e)},n.prototype.componentDidEnter=function(){this._didEnter.forEach(function(e){e()})},n.prototype.componentWillLeave=function(e){var t=this._willLeave.map(function(e){return new Promise(function(t){e(t)})});Promise.all(t).then(e)},n.prototype.componentDidLeave=function(){this._didLeave.forEach(function(e){e()})},n.prototype.render=function(){return i.createElement(e,r.__assign({},this.props),this.props.children)},n}(i.PureComponent),t.displayName="Lifecycle Provider",t.childContextTypes={lifecycleProvider:a.object},t;var t}var r,i,a;Object.defineProperty(t,"__esModule",{value:!0}),r=n(5),i=n(2),a=n(86),t.makeTransitionGroupLifecycleProvider=o},201:function(e,t){e.exports={inputWrapper:"inputWrapper-23iUt2Ae-",textInput:"textInput-3hvomQp9-",error:"error-2ydrzcvg-",success:"success-2y4Cbw_L-", |
|||
xsmall:"xsmall-2Dz_yiDV-",small:"small-3g0mV7FW-",large:"large-CZ_w52Xn-",iconed:"iconed-2X3rffL9-",inputIcon:"inputIcon-nJhQLYdg-",clearable:"clearable-3HVD9v3B-",clearIcon:"clearIcon-UZyPhrkf-",grouped:"grouped-2xS7_jZ2-"}},233:function(e,t,n){"use strict";function o(e,t,n){function o(e){p||(p=document.createElement("div"),document.body.appendChild(p)),l.render(c.createElement(u.TakeSnapshotModal,e),p)}function r(){o({isOpened:!1})}void 0===t&&(t={}),a.trackEvent("GUI","Get image button");var p;o({isOpened:!1}),i.takeSnapshot(e,function(i){var a,c;n&&n(i),a="",a=s.enabled("charting_library_base")?(t.snapshotUrl?"":"https://www.tradingview.com/x/")+i:window.location.protocol+"//"+window.location.host+"/x/"+i+"/",c=e.activeChartWidget.value().symbolProperty().value(),o({isOpened:!0,onClose:r,imageUrl:a,symbol:c})},function(){o({isOpened:!0,onClose:r,error:window.t("URL cannot be received")})},{onWidget:e.onWidget,snapshotUrl:t.snapshotUrl}),o({isOpened:!0,onClose:r})}function r(e,t,n){i.takeSnapshot(e,function(e){n&&n(e)},function(){console.warn(window.t("Error while trying to create snapshot."))},{snapshotUrl:t.snapshotUrl})}var i,a,s,c,l,u;Object.defineProperty(t,"__esModule",{value:!0}),n(23),i=n(435),a=n(48),s=n(7),c=n(2),l=n(55),u=n(1106),t.getImageOfChart=o,t.getImageOfChartSilently=r},255:function(e,t){e.exports={ghost:"ghost-2xkVjo4o-",primary:"primary-nwbhr-QZ-",success:"success-13aJxw0L-",danger:"danger-1jVFBwRj-",warning:"warning-1sksz0Rq-",secondary:"secondary-2H-Jwmir-",button:"button-2jCWN5M1-",withPadding:"withPadding-UPhHkA1c-",hiddenText:"hiddenText-13D-S4nC-",text:"text-1d01iK8L-",loader:"loader-1aihbDEL-",base:"base-2PiGQ3aT-",secondaryScript:"secondaryScript-3pO7_bSM-",link:"link-1v4pOPj2-",xsmall:"xsmall-1XIYvP4K-",small:"small-2fwP8rrU-",large:"large-1a-qmr37-",grouped:"grouped-3T2Y_EXg-",growable:"growable-S0qQuxEB-",active:"active-3Eem2fUt-",disabled:"disabled-2jaDvv_v-"}},257:function(e,t){e.exports={loader:"loader-3q6az1FO-",item:"item-I1y2jPt8-","tv-button-loader":"tv-button-loader-or3q47Bu-",black:"black-29_3FgL9-",white:"white-PhPAMkPg-"}},322:function(e,t,n){"use strict";function o(e){switch(e){case"default":return l.base;case"primary":return l.primary;case"secondary":return l.secondary;case"secondary-script":return l.secondaryScript;case"success":return l.success;case"warning":return l.warning;case"danger":return l.danger;case"link":return l.link;default:return""}}function r(e){switch(e){case"xsmall":return l.xsmall;case"small":return l.small;case"large":return l.large;default:return""}}function i(e){switch(e){case"ghost":return l.ghost;default:return""}}function a(e){ |
|||
var t,n=e.active,a=void 0===n||n,m=e.children,f=e.className,h=void 0===f?"":f,v=e.disabled,g=void 0!==v&&v,y=e.grouped,_=void 0!==y&&y,b=e.growable,w=void 0!==b&&b,E=e.id,C=void 0===E?0:E,x=e.onClick,k=e.reference,O=e.size,P=e.theme,M=e.type,L=void 0===M?"default":M,N=e.loading,I=void 0!==N&&N,T=e.withPadding,W=void 0===T||T,U=e.title,j=void 0===U?"":U,S=e.disabledClassName,D=e.tabIndex,A=void 0===D?0:D,z=e.component,V=void 0===z?"button":z,B=e.target,G=void 0===B?"":B,H=e.href,Z=void 0===H?"":H,F=c((t={},t[h]=!!h,t[l.button]=!0,t[l.active]=a&&!g,t[S||l.disabled]=g,t[l.grouped]=_,t[l.growable]=w,t[l.withPadding]=W,t[r(O)]=!!O,t[i(P)]=!!P,t[o(L)]=!0,t)),R="default"===L?"black":"white",Y=s.createElement("span",{key:"1",className:l.text},m);return I&&(Y=s.createElement("span",{key:"2",className:l.loader},s.createElement(p.Loader,{color:R}))),s.createElement(u.CSSTransitionGroup,{component:V,tabIndex:A,transitionEnterTimeout:d.dur,transitionLeaveTimeout:d.dur,transitionName:"body",className:F,disabled:g,key:C,onClick:I?void 0:x,ref:k,title:j,target:G,href:Z},s.createElement("span",{className:l.hiddenText},m),Y)}var s,c,l,u,p,d;Object.defineProperty(t,"__esModule",{value:!0}),s=n(2),c=n(26),l=n(255),u=n(46),p=n(327),d=n(28),t.Button=a},326:function(e,t,n){"use strict";function o(e){var t,n=e.className,o=e.icon,p=e.clearable,d=e.onClear,m=e.size,f=r.__rest(e,["className","icon","clearable","onClear","size"]),h=a(l.inputWrapper,(t={},t[n]=!!n,t[l.iconed]=!!o,t[l.clearable]=p,t));return i.createElement(u,r.__assign({theme:l,className:h,leftComponent:o?i.createElement(s.Icon,{key:"inputIcon",icon:o,className:l.inputIcon}):void 0,rightComponent:p?i.createElement(s.Icon,{className:l.clearIcon,icon:c,key:"clearIcon",onClick:d}):void 0,sizeMode:m},f))}var r,i,a,s,c,l,u;Object.defineProperty(t,"__esModule",{value:!0}),r=n(5),i=n(2),a=n(26),s=n(77),c=n(331),l=n(201),u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r.__extends(t,e),t.prototype.render=function(){var e,t,n,o,s=this.props,c=s.theme,l=s.error,u=s.success,p=s.sizeMode,d=s.leftComponent,m=s.rightComponent,f=s.grouped,h=s.fontSize,v=s.reference,g=s.className,y=r.__rest(s,["theme","error","success","sizeMode","leftComponent","rightComponent","grouped","fontSize","reference","className"]),_={fontSize:h},b=a(c.textInput,(n={},n[c.error]=l,n[c.success]=u,n[c[p]]=!!p,n)),w=a(c.inputWrapper,(o={},o[g]=!!g,o[c.grouped]=f,o)),E=[],C=i.createElement("input",r.__assign({ref:v,className:b,key:"textInput",style:_},y));return d&&(e={className:a(c.leftComponent,d.props.className),key:"leftComponent"},E.push(i.cloneElement(d,e))),E.push(C),m&&(t={className:a(c.leftComponent,m.props.className),key:"rightComponent"},E.push(i.cloneElement(m,t))),i.createElement("div",{className:w},E)},t}(i.PureComponent),t.CommonTextInput=u,t.TextInput=o},327:function(e,t,n){"use strict";function o(e){var t,n=e.color,o=void 0===n?"black":n,l=a(c.item,(t={},t[c[o]]=!!o,t));return r.createElement(i.CSSTransitionGroup,{transitionName:"loader",transitionAppear:!0, |
|||
transitionAppearTimeout:2*s.dur,transitionEnter:!1,transitionLeave:!1},r.createElement("span",{className:c.loader},r.createElement("span",{className:l}),r.createElement("span",{className:l}),r.createElement("span",{className:l})))}var r,i,a,s,c;Object.defineProperty(t,"__esModule",{value:!0}),r=n(2),i=n(46),a=n(26),s=n(28),c=n(257),t.Loader=o},660:function(e,t){e.exports={modal:"modal-2zD2ALtD-",content:"content-2CGvrzwk-",form:"form-bYALUAA--",copyForm:"copyForm-11zYGUUD-",copyBtn:"copyBtn-15A10th9-",actions:"actions-3V3KnGhD-",link:"link-2LhR6WUZ-",socials:"socials-3Rpn-Ob0-"}},663:function(e,t){e.exports={modal:"modal-3RDUwmY4-",backdrop:"backdrop-21zUnyPe-",animated:"animated-1bktBs9g-",notAnimated:"notAnimated-1-OJgr7K-"}},1074:function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s,c,l,u,p,d,m;Object.defineProperty(t,"__esModule",{value:!0}),a=Object.assign||function(e){var t,n,o;for(t=1;t<arguments.length;t++){n=arguments[t];for(o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},s=function(){function e(e,t){var n,o;for(n=0;n<t.length;n++)o=t[n],o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),c=function(e,t,n){for(var o,r,i,a,s,c,l=!0;l;){if(o=e,r=t,i=n,l=!1,null===o&&(o=Function.prototype),void 0!==(a=Object.getOwnPropertyDescriptor(o,r))){if("value"in a)return a.value;if(void 0===(c=a.get))return;return c.call(i)}if(null===(s=Object.getPrototypeOf(o)))return;e=s,t=r,n=i,l=!0,a=s=void 0}},l=n(2),u=o(l),p=n(305),d=o(p),m=function(e){function t(){r(this,t),c(Object.getPrototypeOf(t.prototype),"constructor",this).apply(this,arguments)}return i(t,e),s(t,[{key:"componentDidMount",value:function(){var e=this.props,t=e.color,n=e.config,o=a({width:2,radius:10,length:7,color:t},n);this.spinner=new d.default(o),this.spinner.spin(this.refs.container)}},{key:"componentWillUnmount",value:function(){this.spinner.stop()}},{key:"render",value:function(){return u.default.createElement("span",{ref:"container"})}}],[{key:"propTypes",value:{config:l.PropTypes.object,color:l.PropTypes.string.isRequired},enumerable:!0},{key:"defaultProps",value:{config:{},color:"black"},enumerable:!0}]),t}(u.default.Component),t.default=m,e.exports=t.default},1106:function(e,t,n){"use strict";var o,r,i,a,s,c,l,u,p,d,m,f,h,v;Object.defineProperty(t,"__esModule",{value:!0}),o=n(5),n(23),r=n(2),i=n(1177),a=n(183),s=n(77),c=n(326),l=n(322),u=n(1184),p=n(1150),d=n(234),m=n(660),f=n(1341),h=n(1186),v=function(e){function t(t){var n=e.call(this,t)||this |
|||
;return n._hideMessages=function(){n.setState({message:"",error:""})},n._setInput=function(e){n._input=e,setTimeout(function(){e.focus(),e.select()})},n._select=function(){n._input.select()},n._shareTwitter=function(){p.Twitter.shareSnapshotInstantly(n.props.symbol||"",n.props.imageUrl||"")},n._onClose=function(){n.props.onClose&&n.props.onClose(),n._copyBtn=null},n.state={message:t.message,error:t.error},n}return o.__extends(t,e),t.prototype.componentWillReceiveProps=function(e){this.setState({message:e.message,error:e.error})},t.prototype.render=function(){var e=this,t=!this.props.imageUrl&&!this.props.message&&!this.props.error;return r.createElement(i.Modal,{isOpened:this.props.isOpened,className:m.modal,onClickOutside:this._onClose,animated:!1},r.createElement(a.Header,{onClose:this._onClose},window.t("Image URL")),r.createElement(a.Message,{text:this.state.message,isError:!1,onClickOutside:this._hideMessages}),r.createElement(a.Message,{text:this.state.error,isError:!0,onClickOutside:this._hideMessages}),r.createElement(a.Body,null,r.createElement(d.KeyboardDocumentListener,{keyCode:27,handler:this._onClose}),r.createElement("div",{className:m.content},t&&r.createElement(u.Spinner,{presetName:"mini"}),r.createElement("div",{className:m.form,style:{visibility:this.props.imageUrl?"visible":"hidden"}},r.createElement("div",{className:m.copyForm},r.createElement(c.TextInput,{reference:function(t){return t&&e._setInput(t)},readOnly:!0,value:this.props.imageUrl||"",onClick:this._select,onFocus:this._select}),r.createElement("div",{ref:function(t){return t&&e._setupClipboard(t)},"data-clipboard-text":this.props.imageUrl,className:m.copyBtn},r.createElement(l.Button,{type:"primary",theme:"ghost"},window.t("Copy")))),r.createElement("div",{className:m.actions},r.createElement("a",{className:m.link,href:this.props.imageUrl,target:"_blank"},r.createElement(s.Icon,{icon:h}),r.createElement("span",null,window.t("Save image"))),r.createElement("span",{className:m.socials,onClick:this._shareTwitter},r.createElement(s.Icon,{icon:f}),r.createElement("span",null,window.t("Tweet"))))))))},t.prototype._setupClipboard=function(e){var t=this;this._copyBtn||(this._copyBtn=e,n.e(13,function(o){var r=n(334),i=new r(e);i.on("success",function(){TradingView.trackEvent("GUI","Copied Image Link"),t.setState({message:window.t("Copied to clipboard")})}),i.on("error",function(){t.setState({message:window.t("Sorry, the Copy Link button doesn't work in your browser. Please select the link and copy it manually.")})})}))},t}(r.Component),t.TakeSnapshotModal=v},1150:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(1151);t.Twitter=o.Twitter},1151:function(e,t,n){"use strict";var o;Object.defineProperty(t,"__esModule",{value:!0}),o=n(1152),function(e){function t(e,t){return TradingView.isCmeWidget?t+" from cmegroup.com via @tradingview $"+e:"$"+e+" chart "+t+" via https://www.tradingview.com"}function n(e){var t=i();return{onFailure:function(){t.close()},onSuccess:function(n){t.location.href=a(e,n)}}} |
|||
function r(e,t){i(s(e,t))}function i(e,t){var n,o,r,i;return void 0===e&&(e="about:blank"),void 0===t&&(t="snapshot_tweet"),n=550,o=420,r=Math.round(screen.width/2-n/2),i=Math.round(screen.height/2-o/2),window.open(e,t,"scrollbars=yes,resizable=yes,toolbar=no,location=yes,\n\t\t\t\twidth="+n+",height="+o+",\n\t\t\t\tleft="+r+",top="+i)}function a(e,n){return"https://twitter.com/intent/tweet?&status="+encodeURIComponent(t(e,o.getImageUrl(n)))}function s(e,n){return"https://twitter.com/intent/tweet?&status="+encodeURIComponent(t(e,n))}e.getStatus=t,e.shareSnapshot=n,e.shareSnapshotInstantly=r}(t.Twitter||(t.Twitter={}))},1152:function(e,t){"use strict";function n(e){return window.location.protocol+"//"+window.location.host+"/x/"+e+"/"}Object.defineProperty(t,"__esModule",{value:!0}),t.getImageUrl=n},1176:function(e,t,n){"use strict";var o,r;Object.defineProperty(t,"__esModule",{value:!0}),o=n(28),r=n(321),t.backdropAnimations={enter:{opacity:function(e,t){r.lazyVelocity().then(function(){$.Velocity.animate(e,{opacity:[.5,0]},{duration:.75*o.dur,easing:"ease-out-cubic",visibility:"visible"}).then(t)})}},leave:{opacity:function(e,t){r.lazyVelocity().then(function(){$.Velocity.animate(e,{opacity:0},{duration:.5*o.dur,easing:"ease-in-cubic",visibility:"hidden"}).then(t)})}}},t.dialogAnimations={enter:{fromTop:function(e,t){r.lazyVelocity().then(function(){$.Velocity.animate(e,{opacity:[1,0],translateY:[0,-20]},{duration:.75*o.dur,easing:"ease-out-cubic",visibility:"visible"}).then(t)})}},leave:{fromTop:function(e,t){r.lazyVelocity().then(function(){$.Velocity.animate(e,{opacity:[0],translateY:["-20px",0]},{duration:.5*o.dur,easing:"ease-in-cubic",visibility:"hidden"}).then(t)})}}}},1177:function(e,t,n){"use strict";var o,r,i,a,s,c,l,u,p,d;Object.defineProperty(t,"__esModule",{value:!0}),o=n(5),r=n(2),i=n(26),a=n(187),s=n(1176),c=n(189),l=n(108),u=n(107),p=n(663),d=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._setBackdropElem=function(e){e&&(t._backdrop=e)},t._setDialogElem=function(e){t._dialog=e},t}return o.__extends(t,e),t.prototype.componentWillEnter=function(e){var t,n;this.props.animated&&this.props.backdropEnterAnimation&&this.props.dialogEnterAnimation?(t=s.backdropAnimations.enter[this.props.backdropEnterAnimation],n=s.dialogAnimations.enter[this.props.dialogEnterAnimation],t&&this._backdrop&&t(this._backdrop),n&&n(this._dialog,e)):e()},t.prototype.componentWillLeave=function(e){var t,n;this.props.animated&&this.props.backdropLeaveAnimation&&this.props.dialogLeaveAnimation?(t=s.backdropAnimations.leave[this.props.backdropLeaveAnimation],n=s.dialogAnimations.leave[this.props.dialogLeaveAnimation],t&&this._backdrop&&t(this._backdrop),n&&n(this._dialog,e)):e()},t.prototype.render=function(){var e,t,n=this.props,s=n.zIndex,c=n.animated,l=n.onClickOutside,d=n.children,m=n.className;return r.createElement("div",{className:p.modal,style:{zIndex:s}},r.createElement("div",{className:i(p.backdrop,(e={},e[p.animated]=c,e[p.notAnimated]=!c,e)),ref:this._setBackdropElem |
|||
}),r.createElement(u.OutsideEvent,{mouseDown:!0,touchStart:!0,handler:l},r.createElement(a.Dialog,o.__assign({},this.props,{className:i(m,(t={},t[p.notAnimated]=!c,t)),reference:this._setDialogElem}),d)))},t.defaultProps={backdropEnterAnimation:"opacity",backdropLeaveAnimation:"opacity",dialogEnterAnimation:"fromTop",dialogLeaveAnimation:"fromTop",animated:!0,width:500},t}(r.PureComponent),t.ModalDialog=d,t.Modal=c.makeOverlapable(l.makeTransitionGroupLifecycleConsumer(d))},1184:function(e,t,n){"use strict";function o(e){var t,n={className:"spinner",color:a.color.spinner,corners:1,direction:1,fps:20,hwaccel:!1,left:"50%",length:0,lines:17,opacity:0,radius:20,rotate:0,scale:1,shadow:!1,speed:1.5,top:"50%",trail:60,width:3},o=e.presetName?s[e.presetName]:null;return o&&(n=Object.assign(n,o)),t=Object.assign({},n,e.options),r.createElement(i,{config:t})}var r,i,a,s;Object.defineProperty(t,"__esModule",{value:!0}),r=n(2),i=n(1074),a=n(28),s={medium:{lines:14,scale:.8},micro:{lines:12,scale:.2},mini:{lines:14,scale:.4},xlarge:{lines:16,scale:1.6}},t.Spinner=o},1186:function(e,t){e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 22 15" width="22" height="15"><g fill="none" fill-rule="evenodd" stroke-width="2"><path stroke="#757575" d="M6.25 5.812L11 10.087l4.75-4.275M11 9.868V.315"/><path stroke="#ADAEB0" d="M21 10v4H1v-4"/></g><path d="M.008 12.47V9.994H1.96v3.003h18.095V9.988l.958.021.957.021.02 2.46.02 2.458H.008v-2.477z"/><path d="M8.642 9.27a673.518 673.518 0 0 0-2.658-2.396l-.369-.325.657-.716.658-.716 1.49 1.35c.819.741 1.525 1.348 1.57 1.348.054 0 .079-1.143.079-3.716V.382H11.946v3.717c0 2.129.029 3.716.067 3.716.037 0 .738-.607 1.558-1.349l1.491-1.35.508.543c.28.298.57.626.647.73l.14.187-2.632 2.366c-1.447 1.3-2.668 2.372-2.712 2.381-.044.01-1.111-.915-2.37-2.054z"/></svg>'},1341:function(e,t){e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 15 11.6" width="15px" height="11.6px"><path d="M15 1.4c-.3.1-1 .4-1.7.5.4-.2 1.1-1 1.3-1.6-.4.3-1.4.7-1.9.7-.6-.7-1.4-1-2.3-1-1.7 0-3.1 1.3-3.1 3 0 .2 0 .4.1.7C5.1 3.6 2.4 2.5.9.6 0 2.1.8 3.9 1.8 4.5c-.4 0-1 0-1.3-.3 0 1 .5 2.4 2.4 2.9-.4.2-1 .1-1.3.1.1.9 1.4 2 2.8 2-.6.5-2.3 1.4-4.4 1.1 1.4.8 3.1 1.3 4.8 1.3 5 0 8.8-3.9 8.6-8.6.5-.4 1.1-.9 1.6-1.6z"/></svg>'}}); |
|||
@ -0,0 +1 @@ |
|||
@keyframes highlight-animation{0%{background:transparent}to{background:#fff2cf}}@keyframes highlight-animation-theme-dark{0%{background:transparent}to{background:#194453}} |
|||
@ -0,0 +1,169 @@ |
|||
!function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={exports:{},id:r,loaded:!1};return e[r].call(o.exports,o,o.exports,t),o.loaded=!0,o.exports}var n,r,o=window.webpackJsonp;window.webpackJsonp=function(i,a){for(var s,u,c=0,l=[];c<i.length;c++)u=i[c],r[u]&&l.push.apply(l,r[u]),r[u]=0;for(s in a)Object.prototype.hasOwnProperty.call(a,s)&&(e[s]=a[s]);for(o&&o(i,a);l.length;)l.shift().call(null,t);if(a[0])return n[0]=0,t(0)},n={},r={4:0},t.e=function(e,n){var o,i;if(0===r[e])return n.call(null,t);void 0!==r[e]?r[e].push(n):(r[e]=[n],o=document.getElementsByTagName("head")[0],i=document.createElement("script"),i.type="text/javascript",i.charset="utf-8",i.async=!0,i.src=t.p+""+({0:"lazy-velocity",1:"lt-pane-views",2:"take-chart-image-dialog-impl",3:"objecttreedialog",5:"ds-property-pages",6:"go-to-date-dialog-impl",7:"symbol-info-dialog-impl",8:"lazy-jquery-ui",9:"editobjectdialog",10:"ie-fallback-logos",11:"propertypagesfactory",12:"library"}[e]||e)+"."+{0:"97588d47c84409f2bc4b",1:"96fd54d9b7bad567d490",2:"5ae42a6bc17c617b055f",3:"3f22589e98a1cedf9028",5:"1a3d233b8aa4552a7048",6:"5faeb6b7a961fd527d9b",7:"f6bc55c14cd39967110a",8:"1803178846ddad426aeb",9:"25fa62e6b4f8125e697e",10:"b27f679ee44b7d0992e1",11:"54b21a18753b2d8c83c2",12:"19c99ed5d0307c67f071",13:"280894673316ad6ac6f2"}[e]+".js",o.appendChild(i))},t.m=e,t.c=n,t.p="bundles/",t.p=window.WEBPACK_PUBLIC_PATH||t.p,t(0)}([function(e,t,n){n(1352),n(1005),n(22),n(1161),n(741),n(192),n(54),n(36),n(1006),n(722),n(433),n(990),n(991),n(90),n(434),n(987),n(988),n(321),n(989),n(992),n(1003),n(377),n(26),n(2),n(55),n(288),e.exports=n(46)},,function(e,t,n){"use strict";e.exports=n(140)},,,,function(e,t,n){var r=n(35),o=n(126),i=n(113),a=n(129),s=n(99),u="prototype",c=function(e,t,n){var l,f,p,d,h=e&c.F,m=e&c.G,g=e&c.S,y=e&c.P,v=e&c.B,b=m?r:g?r[t]||(r[t]={}):(r[t]||{})[u],_=m?o:o[t]||(o[t]={}),w=_[u]||(_[u]={});m&&(n=t);for(l in n)f=!h&&b&&void 0!==b[l],p=(f?b:n)[l],d=v&&f?s(p,r):y&&"function"==typeof p?s(Function.call,p):p,b&&a(b,l,p,e&c.U),_[l]!=p&&i(_,l,d),y&&w[l]!=p&&(w[l]=p)};r.core=o,c.F=1,c.G=2,c.S=4,c.P=8,c.B=16,c.W=32,c.U=64,c.R=128,e.exports=c},,,,,,,,,,,function(e,t,n){"use strict";function r(e,t,n,r,i,a,s,u){var c,l,f;if(o(t),!e)throw void 0===t?c=Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings."):(l=[n,r,i,a,s,u],f=0,c=Error(t.replace(/%s/g,function(){return l[f++]})),c.name="Invariant Violation"),c.framesToPop=1,c}var o=function(e){};e.exports=r},,,,,function(e,t){function n(e){var t,n,r=Ct[e]={};for(e=e.split(/\s+/),t=0,n=e.length;t<n;t++)r[e[t]]=!0;return r}function r(e,t,n){if(void 0===n&&1===e.nodeType){var r="data-"+t.replace(L,"-$1").toLowerCase();if("string"==typeof(n=e.getAttribute(r))){try{n="true"===n||"false"!==n&&("null"===n?null:xt.isNumeric(n)?+n:A.test(n)?xt.parseJSON(n):n)}catch(e){}xt.data(e,t,n)}else n=void 0}return n}function o(e){for(var t in e)if(("data"!==t||!xt.isEmptyObject(e[t]))&&"toJSON"!==t)return!1;return!0}function i(e,t,n){ |
|||
var r=t+"defer",o=t+"queue",i=t+"mark",a=xt._data(e,r);!a||"queue"!==n&&xt._data(e,o)||"mark"!==n&&xt._data(e,i)||setTimeout(function(){xt._data(e,o)||xt._data(e,i)||(xt.removeData(e,r,!0),a.fire())},0)}function a(){return!1}function s(){return!0}function u(e){return!e||!e.parentNode||11===e.parentNode.nodeType}function c(e,t,n){if(t=t||0,xt.isFunction(t))return xt.grep(e,function(e,r){return!!t.call(e,r,e)===n});if(t.nodeType)return xt.grep(e,function(e,r){return e===t===n});if("string"==typeof t){var r=xt.grep(e,function(e){return 1===e.nodeType});if(ie.test(t))return xt.filter(t,r,!n);t=xt.filter(t,r)}return xt.grep(e,function(e,r){return xt.inArray(e,t)>=0===n})}function l(e){var t=ce.split("|"),n=e.createDocumentFragment();if(n.createElement)for(;t.length;)n.createElement(t.pop());return n}function f(e,t){return xt.nodeName(e,"table")?e.getElementsByTagName("tbody")[0]||e.appendChild(e.ownerDocument.createElement("tbody")):e}function p(e,t){if(1===t.nodeType&&xt.hasData(e)){var n,r,o,i=xt._data(e),a=xt._data(t,i),s=i.events;if(s){delete a.handle,a.events={};for(n in s)for(r=0,o=s[n].length;r<o;r++)xt.event.add(t,n,s[n][r])}a.data&&(a.data=xt.extend({},a.data))}}function d(e,t){var n;1===t.nodeType&&(t.clearAttributes&&t.clearAttributes(),t.mergeAttributes&&t.mergeAttributes(e),n=t.nodeName.toLowerCase(),"object"===n?t.outerHTML=e.outerHTML:"input"!==n||"checkbox"!==e.type&&"radio"!==e.type?"option"===n?t.selected=e.defaultSelected:"input"===n||"textarea"===n?t.defaultValue=e.defaultValue:"script"===n&&t.text!==e.text&&(t.text=e.text):(e.checked&&(t.defaultChecked=t.checked=e.checked),t.value!==e.value&&(t.value=e.value)),t.removeAttribute(xt.expando),t.removeAttribute("_submit_attached"),t.removeAttribute("_change_attached"))}function h(e){return void 0!==e.getElementsByTagName?e.getElementsByTagName("*"):void 0!==e.querySelectorAll?e.querySelectorAll("*"):[]}function m(e){"checkbox"!==e.type&&"radio"!==e.type||(e.defaultChecked=e.checked)}function g(e){var t=(e.nodeName||"").toLowerCase();"input"===t?m(e):"script"!==t&&void 0!==e.getElementsByTagName&&xt.grep(e.getElementsByTagName("input"),m)}function y(e){var t=bt.createElement("div");return Ce.appendChild(t),t.innerHTML=e.outerHTML,t.firstChild}function v(e,t,n){var r="width"===t?e.offsetWidth:e.offsetHeight,o="width"===t?1:0,i=4;if(r>0){if("border"!==n)for(;o<i;o+=2)n||(r-=parseFloat(xt.css(e,"padding"+Pe[o]))||0),"margin"===n?r+=parseFloat(xt.css(e,n+Pe[o]))||0:r-=parseFloat(xt.css(e,"border"+Pe[o]+"Width"))||0;return r+"px"}if(r=Ae(e,t),(r<0||null==r)&&(r=e.style[t]),Me.test(r))return r;if(r=parseFloat(r)||0,n)for(;o<i;o+=2)r+=parseFloat(xt.css(e,"padding"+Pe[o]))||0,"padding"!==n&&(r+=parseFloat(xt.css(e,"border"+Pe[o]+"Width"))||0),"margin"===n&&(r+=parseFloat(xt.css(e,n+Pe[o]))||0);return r+"px"}function b(e){return function(t,n){if("string"!=typeof t&&(n=t,t="*"),xt.isFunction(n))for(var r,o,i,a=t.toLowerCase().split(Ge),s=0,u=a.length;s<u;s++)r=a[s],i=/^\+/.test(r),i&&(r=r.substr(1)||"*"),o=e[r]=e[r]||[],o[i?"unshift":"push"](n)}} |
|||
function _(e,t,n,r,o,i){o=o||t.dataTypes[0],i=i||{},i[o]=!0;for(var a,s=e[o],u=0,c=s?s.length:0,l=e===Je;u<c&&(l||!a);u++)"string"==typeof(a=s[u](t,n,r))&&(!l||i[a]?a=void 0:(t.dataTypes.unshift(a),a=_(e,t,n,r,a,i)));return!l&&a||i["*"]||(a=_(e,t,n,r,"*",i)),a}function w(e,t){var n,r,o=xt.ajaxSettings.flatOptions||{};for(n in t)void 0!==t[n]&&((o[n]?e:r||(r={}))[n]=t[n]);r&&xt.extend(!0,e,r)}function x(e,t,n,r){if(xt.isArray(t))xt.each(t,function(t,o){n||Re.test(e)?r(e,o):x(e+"["+("object"==typeof o?t:"")+"]",o,n,r)});else if(n||"object"!==xt.type(t))r(e,t);else for(var o in t)x(e+"["+o+"]",t[o],n,r)}function C(e,t,n){var r,o,i,a,s=e.contents,u=e.dataTypes,c=e.responseFields;for(o in c)o in n&&(t[c[o]]=n[o]);for(;"*"===u[0];)u.shift(),void 0===r&&(r=e.mimeType||t.getResponseHeader("content-type"));if(r)for(o in s)if(s[o]&&s[o].test(r)){u.unshift(o);break}if(u[0]in n)i=u[0];else{for(o in n){if(!u[0]||e.converters[o+" "+u[0]]){i=o;break}a||(a=o)}i=i||a}if(i)return i!==u[0]&&u.unshift(i),n[i]}function T(e,t){e.dataFilter&&(t=e.dataFilter(t,e.dataType));var n,r,o,i,a,s,u,c,l=e.dataTypes,f={},p=l.length,d=l[0];for(n=1;n<p;n++){if(1===n)for(r in e.converters)"string"==typeof r&&(f[r.toLowerCase()]=e.converters[r]);if(i=d,"*"===(d=l[n]))d=i;else if("*"!==i&&i!==d){if(a=i+" "+d,!(s=f[a]||f["* "+d])){c=void 0;for(u in f)if(o=u.split(" "),(o[0]===i||"*"===o[0])&&(c=f[o[1]+" "+d])){u=f[u],!0===u?s=c:!0===c&&(s=u);break}}s||c||xt.error("No conversion from "+a.replace(" "," to ")),!0!==s&&(t=s?s(t):c(u(t)))}}return t}function k(){try{return new window.XMLHttpRequest}catch(e){}}function E(){try{return new window.ActiveXObject("Microsoft.XMLHTTP")}catch(e){}}function S(){return setTimeout(M,0),mt=xt.now()}function M(){mt=void 0}function O(e,t){var n={};return xt.each(ht.concat.apply([],ht.slice(0,t)),function(){n[this]=e}),n}function N(e){if(!ut[e]){var t=bt.body,n=xt("<"+e+">").appendTo(t),r=n.css("display");n.remove(),"none"!==r&&""!==r||(ct||(ct=bt.createElement("iframe"),ct.frameBorder=ct.width=ct.height=0),t.appendChild(ct),lt&&ct.createElement||(lt=(ct.contentWindow||ct.contentDocument).document,lt.write((xt.support.boxModel?"<!doctype html>":"")+"<html><body>"),lt.close()),n=lt.createElement(e),lt.body.appendChild(n),r=xt.css(n,"display"),t.removeChild(ct)),ut[e]=r}return ut[e]}function D(e){return xt.isWindow(e)?e:9===e.nodeType&&(e.defaultView||e.parentWindow)}var P,A,L,I,j,R,F,U,H,Y,W,B,V,q,z,$,G,K,X,Q,J,Z,ee,te,ne,re,oe,ie,ae,se,ue,ce,le,fe,pe,de,he,me,ge,ye,ve,be,_e,we,xe,Ce,Te,ke,Ee,Se,Me,Oe,Ne,De,Pe,Ae,Le,Ie,je,Re,Fe,Ue,He,Ye,We,Be,Ve,qe,ze,$e,Ge,Ke,Xe,Qe,Je,Ze,et,tt,nt,rt,ot,it,at,st,ut,ct,lt,ft,pt,dt,ht,mt,gt,yt,vt,bt=window.document,_t=window.navigator,wt=window.location,xt=function(){function e(){if(!i.isReady){try{bt.documentElement.doScroll("left")}catch(t){return void setTimeout(e,1)}i.ready()}}var t,n,r,o,i=function(e,n){return new i.fn.init(e,n,t) |
|||
},a=window.jQuery,s=window.$,u=/^(?:[^#<]*(<[\w\W]+>)[^>]*$|#([\w\-]*)$)/,c=/\S/,l=/^\s+/,f=/\s+$/,p=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,d=/^[\],:{}\s]*$/,h=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,m=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,g=/(?:^|:|,)(?:\s*\[)+/g,y=/(webkit)[ \/]([\w.]+)/,v=/(opera)(?:.*version)?[ \/]([\w.]+)/,b=/(msie) ([\w.]+)/,_=/(mozilla)(?:.*? rv:([\w.]+))?/,w=/-([a-z]|[0-9])/gi,x=/^-ms-/,C=function(e,t){return(t+"").toUpperCase()},T=_t.userAgent,k=Object.prototype.toString,E=Object.prototype.hasOwnProperty,S=Array.prototype.push,M=Array.prototype.slice,O=String.prototype.trim,N=Array.prototype.indexOf,D={};return i.fn=i.prototype={constructor:i,init:function(e,t,n){var r,o,a,s;if(!e)return this;if(e.nodeType)return this.context=this[0]=e,this.length=1,this;if("body"===e&&!t&&bt.body)return this.context=bt,this[0]=bt.body,this.selector=e,this.length=1,this;if("string"==typeof e){if(!(r="<"===e.charAt(0)&&">"===e.charAt(e.length-1)&&e.length>=3?[null,e,null]:u.exec(e))||!r[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(r[1])return t=t instanceof i?t[0]:t,s=t?t.ownerDocument||t:bt,a=p.exec(e),a?i.isPlainObject(t)?(e=[bt.createElement(a[1])],i.fn.attr.call(e,t,!0)):e=[s.createElement(a[1])]:(a=i.buildFragment([r[1]],[s]),e=(a.cacheable?i.clone(a.fragment):a.fragment).childNodes),i.merge(this,e);if((o=bt.getElementById(r[2]))&&o.parentNode){if(o.id!==r[2])return n.find(e);this.length=1,this[0]=o}return this.context=bt,this.selector=e,this}return i.isFunction(e)?n.ready(e):(void 0!==e.selector&&(this.selector=e.selector,this.context=e.context),i.makeArray(e,this))},selector:"",jquery:"1.7.2",length:0,size:function(){return this.length},toArray:function(){return M.call(this,0)},get:function(e){return null==e?this.toArray():e<0?this[this.length+e]:this[e]},pushStack:function(e,t,n){var r=this.constructor();return i.isArray(e)?S.apply(r,e):i.merge(r,e),r.prevObject=this,r.context=this.context,"find"===t?r.selector=this.selector+(this.selector?" ":"")+n:t&&(r.selector=this.selector+"."+t+"("+n+")"),r},each:function(e,t){return i.each(this,e,t)},ready:function(e){return i.bindReady(),r.add(e),this},eq:function(e){return e=+e,-1===e?this.slice(e):this.slice(e,e+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(M.apply(this,arguments),"slice",M.call(arguments).join(","))},map:function(e){return this.pushStack(i.map(this,function(t,n){return e.call(t,n,t)}))},end:function(){return this.prevObject||this.constructor(null)},push:S,sort:[].sort,splice:[].splice},i.fn.init.prototype=i.fn,i.extend=i.fn.extend=function(){var e,t,n,r,o,a,s=arguments[0]||{},u=1,c=arguments.length,l=!1;for("boolean"==typeof s&&(l=s,s=arguments[1]||{},u=2),"object"==typeof s||i.isFunction(s)||(s={}),c===u&&(s=this,--u);u<c;u++)if(null!=(e=arguments[u]))for(t in e)n=s[t],r=e[t],s!==r&&(l&&r&&(i.isPlainObject(r)||(o=i.isArray(r)))?(o?(o=!1,a=n&&i.isArray(n)?n:[]):a=n&&i.isPlainObject(n)?n:{}, |
|||
s[t]=i.extend(l,a,r)):void 0!==r&&(s[t]=r));return s},i.extend({noConflict:function(e){return window.$===i&&(window.$=s),e&&window.jQuery===i&&(window.jQuery=a),i},isReady:!1,readyWait:1,holdReady:function(e){e?i.readyWait++:i.ready(!0)},ready:function(e){if(!0===e&&!--i.readyWait||!0!==e&&!i.isReady){if(!bt.body)return setTimeout(i.ready,1);if(i.isReady=!0,!0!==e&&--i.readyWait>0)return;r.fireWith(bt,[i]),i.fn.trigger&&i(bt).trigger("ready").off("ready")}},bindReady:function(){if(!r){if(r=i.Callbacks("once memory"),"complete"===bt.readyState)return setTimeout(i.ready,1);if(bt.addEventListener)bt.addEventListener("DOMContentLoaded",o,!1),window.addEventListener("load",i.ready,!1);else if(bt.attachEvent){bt.attachEvent("onreadystatechange",o),window.attachEvent("onload",i.ready);var t=!1;try{t=null==window.frameElement}catch(e){}bt.documentElement.doScroll&&t&&e()}}},isFunction:function(e){return"function"===i.type(e)},isArray:Array.isArray||function(e){return"array"===i.type(e)},isWindow:function(e){return null!=e&&e==e.window},isNumeric:function(e){return!isNaN(parseFloat(e))&&isFinite(e)},type:function(e){return null==e?e+"":D[k.call(e)]||"object"},isPlainObject:function(e){if(!e||"object"!==i.type(e)||e.nodeType||i.isWindow(e))return!1;try{if(e.constructor&&!E.call(e,"constructor")&&!E.call(e.constructor.prototype,"isPrototypeOf"))return!1}catch(e){return!1}var t;for(t in e);return void 0===t||E.call(e,t)},isEmptyObject:function(e){for(var t in e)return!1;return!0},error:function(e){throw Error(e)},parseJSON:function(e){return"string"==typeof e&&e?(e=i.trim(e),window.JSON&&window.JSON.parse?window.JSON.parse(e):d.test(e.replace(h,"@").replace(m,"]").replace(g,""))?Function("return "+e)():void i.error("Invalid JSON: "+e)):null},parseXML:function(e){if("string"!=typeof e||!e)return null;var t,n;try{window.DOMParser?(n=new DOMParser,t=n.parseFromString(e,"text/xml")):(t=new ActiveXObject("Microsoft.XMLDOM"),t.async="false",t.loadXML(e))}catch(e){t=void 0}return t&&t.documentElement&&!t.getElementsByTagName("parsererror").length||i.error("Invalid XML: "+e),t},noop:function(){},globalEval:function(e){e&&c.test(e)&&(window.execScript||function(e){window.eval.call(window,e)})(e)},camelCase:function(e){return e.replace(x,"ms-").replace(w,C)},nodeName:function(e,t){return e.nodeName&&e.nodeName.toUpperCase()===t.toUpperCase()},each:function(e,t,n){var r,o=0,a=e.length,s=void 0===a||i.isFunction(e);if(n)if(s){for(r in e)if(!1===t.apply(e[r],n))break}else for(;o<a&&!1!==t.apply(e[o++],n););else if(s){for(r in e)if(!1===t.call(e[r],r,e[r]))break}else for(;o<a&&!1!==t.call(e[o],o,e[o++]););return e},trim:O?function(e){return null==e?"":O.call(e)}:function(e){return null==e?"":(""+e).replace(l,"").replace(f,"")},makeArray:function(e,t){var n,r=t||[];return null!=e&&(n=i.type(e),null==e.length||"string"===n||"function"===n||"regexp"===n||i.isWindow(e)?S.call(r,e):i.merge(r,e)),r},inArray:function(e,t,n){var r;if(t){if(N)return N.call(t,e,n);for(r=t.length,n=n?n<0?Math.max(0,r+n):n:0;n<r;n++)if(n in t&&t[n]===e)return n}return-1 |
|||
},merge:function(e,t){var n,r=e.length,o=0;if("number"==typeof t.length)for(n=t.length;o<n;o++)e[r++]=t[o];else for(;void 0!==t[o];)e[r++]=t[o++];return e.length=r,e},grep:function(e,t,n){var r,o,i,a=[];for(n=!!n,o=0,i=e.length;o<i;o++)r=!!t(e[o],o),n!==r&&a.push(e[o]);return a},map:function(e,t,n){var r,o,a=[],s=0,u=e.length;if(e instanceof i||void 0!==u&&"number"==typeof u&&(u>0&&e[0]&&e[u-1]||0===u||i.isArray(e)))for(;s<u;s++)null!=(r=t(e[s],s,n))&&(a[a.length]=r);else for(o in e)null!=(r=t(e[o],o,n))&&(a[a.length]=r);return a.concat.apply([],a)},guid:1,proxy:function(e,t){var n,r,o;if("string"==typeof t&&(n=e[t],t=e,e=n),i.isFunction(e))return r=M.call(arguments,2),o=function(){return e.apply(t,r.concat(M.call(arguments)))},o.guid=e.guid=e.guid||o.guid||i.guid++,o},access:function(e,t,n,r,o,a,s){var u,c=null==n,l=0,f=e.length;if(n&&"object"==typeof n){for(l in n)i.access(e,t,l,n[l],1,a,r);o=1}else if(void 0!==r){if(u=void 0===s&&i.isFunction(r),c&&(u?(u=t,t=function(e,t,n){return u.call(i(e),n)}):(t.call(e,r),t=null)),t)for(;l<f;l++)t(e[l],n,u?r.call(e[l],l,t(e[l],n)):r,s);o=1}return o?e:c?t.call(e):f?t(e[0],n):a},now:function(){return(new Date).getTime()},uaMatch:function(e){e=e.toLowerCase();var t=y.exec(e)||v.exec(e)||b.exec(e)||e.indexOf("compatible")<0&&_.exec(e)||[];return{browser:t[1]||"",version:t[2]||"0"}},sub:function(){function e(t,n){return new e.fn.init(t,n)}i.extend(!0,e,this),e.superclass=this,e.fn=e.prototype=this(),e.fn.constructor=e,e.sub=this.sub,e.fn.init=function(n,r){return r&&r instanceof i&&!(r instanceof e)&&(r=e(r)),i.fn.init.call(this,n,r,t)},e.fn.init.prototype=e.fn;var t=e(bt);return e},browser:{}}),i.each("Boolean Number String Function Array Date RegExp Object".split(" "),function(e,t){D["[object "+t+"]"]=t.toLowerCase()}),n=i.uaMatch(T),n.browser&&(i.browser[n.browser]=!0,i.browser.version=n.version),i.browser.webkit&&(i.browser.safari=!0),c.test(" ")&&(l=/^[\s\xA0]+/,f=/[\s\xA0]+$/),t=i(bt),bt.addEventListener?o=function(){bt.removeEventListener("DOMContentLoaded",o,!1),i.ready()}:bt.attachEvent&&(o=function(){"complete"===bt.readyState&&(bt.detachEvent("onreadystatechange",o),i.ready())}),i}(),Ct={};xt.Callbacks=function(e){e=e?Ct[e]||n(e):{};var t,r,o,i,a,s,u=[],c=[],l=function(t){var n,r,o,i;for(n=0,r=t.length;n<r;n++)o=t[n],i=xt.type(o),"array"===i?l(o):"function"===i&&(e.unique&&p.has(o)||u.push(o))},f=function(n,l){for(l=l||[],t=!e.memory||[n,l],r=!0,o=!0,s=i||0,i=0,a=u.length;u&&s<a;s++)if(!1===u[s].apply(n,l)&&e.stopOnFalse){t=!0;break}o=!1,u&&(e.once?!0===t?p.disable():u=[]:c&&c.length&&(t=c.shift(),p.fireWith(t[0],t[1])))},p={add:function(){if(u){var e=u.length;l(arguments),o?a=u.length:t&&!0!==t&&(i=e,f(t[0],t[1]))}return this},remove:function(){var t,n,r,i;if(u)for(t=arguments,n=0,r=t.length;n<r;n++)for(i=0;i<u.length&&(t[n]!==u[i]||(o&&i<=a&&(a--,i<=s&&s--),u.splice(i--,1),!e.unique));i++);return this},has:function(e){if(u)for(var t=0,n=u.length;t<n;t++)if(e===u[t])return!0;return!1},empty:function(){return u=[],this},disable:function(){return u=c=t=void 0,this}, |
|||
disabled:function(){return!u},lock:function(){return c=void 0,t&&!0!==t||p.disable(),this},locked:function(){return!c},fireWith:function(n,r){return c&&(o?e.once||c.push([n,r]):e.once&&t||f(n,r)),this},fire:function(){return p.fireWith(this,arguments),this},fired:function(){return!!r}};return p},P=[].slice,xt.extend({Deferred:function(e){var t,n=xt.Callbacks("once memory"),r=xt.Callbacks("once memory"),o=xt.Callbacks("memory"),i="pending",a={resolve:n,reject:r,notify:o},s={done:n.add,fail:r.add,progress:o.add,state:function(){return i},isResolved:n.fired,isRejected:r.fired,then:function(e,t,n){return u.done(e).fail(t).progress(n),this},always:function(){return u.done.apply(u,arguments).fail.apply(u,arguments),this},pipe:function(e,t,n){return xt.Deferred(function(r){xt.each({done:[e,"resolve"],fail:[t,"reject"],progress:[n,"notify"]},function(e,t){var n,o=t[0],i=t[1];xt.isFunction(o)?u[e](function(){n=o.apply(this,arguments),n&&xt.isFunction(n.promise)?n.promise().then(r.resolve,r.reject,r.notify):r[i+"With"](this===u?r:this,[n])}):u[e](r[i])})}).promise()},promise:function(e){if(null==e)e=s;else for(var t in s)e[t]=s[t];return e}},u=s.promise({});for(t in a)u[t]=a[t].fire,u[t+"With"]=a[t].fireWith;return u.done(function(){i="resolved"},r.disable,o.lock).fail(function(){i="rejected"},n.disable,o.lock),e&&e.call(u,u),u},when:function(e){function t(e){return function(t){r[e]=arguments.length>1?P.call(arguments,0):t,--s||u.resolveWith(u,r)}}function n(e){return function(t){a[e]=arguments.length>1?P.call(arguments,0):t,u.notifyWith(c,a)}}var r=P.call(arguments,0),o=0,i=r.length,a=Array(i),s=i,u=i<=1&&e&&xt.isFunction(e.promise)?e:xt.Deferred(),c=u.promise();if(i>1){for(;o<i;o++)r[o]&&r[o].promise&&xt.isFunction(r[o].promise)?r[o].promise().then(t(o),u.reject,n(o)):--s;s||u.resolveWith(u,r)}else u!==e&&u.resolveWith(u,i?[e]:[]);return c}}),xt.support=function(){var e,t,n,r,o,i,a,s,u,c,l,f=bt.createElement("div");bt.documentElement;if(f.setAttribute("className","t"),f.innerHTML=" <link/><table></table><a href='/a' style='top:1px;float:left;opacity:.55;'>a</a><input type='checkbox'/>",t=f.getElementsByTagName("*"),n=f.getElementsByTagName("a")[0],!t||!t.length||!n)return{};r=bt.createElement("select"),o=r.appendChild(bt.createElement("option")),i=f.getElementsByTagName("input")[0],e={leadingWhitespace:3===f.firstChild.nodeType,tbody:!f.getElementsByTagName("tbody").length,htmlSerialize:!!f.getElementsByTagName("link").length,style:/top/.test(n.getAttribute("style")),hrefNormalized:"/a"===n.getAttribute("href"),opacity:/^0.55/.test(n.style.opacity),cssFloat:!!n.style.cssFloat,checkOn:"on"===i.value,optSelected:o.selected,getSetAttribute:"t"!==f.className,enctype:!!bt.createElement("form").enctype,html5Clone:"<:nav></:nav>"!==bt.createElement("nav").cloneNode(!0).outerHTML,submitBubbles:!0,changeBubbles:!0,focusinBubbles:!1,deleteExpando:!0,noCloneEvent:!0,inlineBlockNeedsLayout:!1,shrinkWrapBlocks:!1,reliableMarginRight:!0,pixelMargin:!0},xt.boxModel=e.boxModel="CSS1Compat"===bt.compatMode,i.checked=!0, |
|||
e.noCloneChecked=i.cloneNode(!0).checked,r.disabled=!0,e.optDisabled=!o.disabled;try{delete f.test}catch(t){e.deleteExpando=!1}if(!f.addEventListener&&f.attachEvent&&f.fireEvent&&(f.attachEvent("onclick",function(){e.noCloneEvent=!1}),f.cloneNode(!0).fireEvent("onclick")),i=bt.createElement("input"),i.value="t",i.setAttribute("type","radio"),e.radioValue="t"===i.value,i.setAttribute("checked","checked"),i.setAttribute("name","t"),f.appendChild(i),a=bt.createDocumentFragment(),a.appendChild(f.lastChild),e.checkClone=a.cloneNode(!0).cloneNode(!0).lastChild.checked,e.appendChecked=i.checked,a.removeChild(i),a.appendChild(f),f.attachEvent)for(c in{submit:1,change:1,focusin:1})u="on"+c,l=u in f,l||(f.setAttribute(u,"return;"),l="function"==typeof f[u]),e[c+"Bubbles"]=l;return a.removeChild(f),a=r=o=f=i=null,xt(function(){var t,n,r,o,i,a,u,c,p,d,h,m,g=bt.getElementsByTagName("body")[0];g&&(u=1,m="padding:0;margin:0;border:",d="position:absolute;top:0;left:0;width:1px;height:1px;",h=m+"0;visibility:hidden;",c="style='"+d+m+"5px solid #000;",p="<div "+c+"display:block;'><div style='"+m+"0;display:block;overflow:hidden;'></div></div><table "+c+"' cellpadding='0' cellspacing='0'><tr><td></td></tr></table>",t=bt.createElement("div"),t.style.cssText=h+"width:0;height:0;position:static;top:0;margin-top:"+u+"px",g.insertBefore(t,g.firstChild),f=bt.createElement("div"),t.appendChild(f),f.innerHTML="<table><tr><td style='"+m+"0;display:none'></td><td>t</td></tr></table>",s=f.getElementsByTagName("td"),l=0===s[0].offsetHeight,s[0].style.display="",s[1].style.display="none",e.reliableHiddenOffsets=l&&0===s[0].offsetHeight,window.getComputedStyle&&(f.innerHTML="",a=bt.createElement("div"),a.style.width="0",a.style.marginRight="0",f.style.width="2px",f.appendChild(a),e.reliableMarginRight=0===(parseInt((window.getComputedStyle(a,null)||{marginRight:0}).marginRight,10)||0)),void 0!==f.style.zoom&&(f.innerHTML="",f.style.width=f.style.padding="1px",f.style.border=0,f.style.overflow="hidden",f.style.display="inline",f.style.zoom=1,e.inlineBlockNeedsLayout=3===f.offsetWidth,f.style.display="block",f.style.overflow="visible",f.innerHTML="<div style='width:5px;'></div>",e.shrinkWrapBlocks=3!==f.offsetWidth),f.style.cssText=d+h,f.innerHTML=p,n=f.firstChild,r=n.firstChild,o=n.nextSibling.firstChild.firstChild,i={doesNotAddBorder:5!==r.offsetTop,doesAddBorderForTableAndCells:5===o.offsetTop},r.style.position="fixed",r.style.top="20px",i.fixedPosition=20===r.offsetTop||15===r.offsetTop,r.style.position=r.style.top="",n.style.overflow="hidden",n.style.position="relative",i.subtractsBorderForOverflowNotVisible=-5===r.offsetTop,i.doesNotIncludeMarginInBodyOffset=g.offsetTop!==u,window.getComputedStyle&&(f.style.marginTop="1%",e.pixelMargin="1%"!==(window.getComputedStyle(f,null)||{marginTop:0}).marginTop),void 0!==t.style.zoom&&(t.style.zoom=1),g.removeChild(t),a=f=t=null,xt.extend(e,i))}),e}(),A=/^(?:\{.*\}|\[.*\])$/,L=/([A-Z])/g,xt.extend({cache:{},uuid:0,expando:"jQuery"+(xt.fn.jquery+Math.random()).replace(/\D/g,""),noData:{embed:!0, |
|||
object:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",applet:!0},hasData:function(e){return!!(e=e.nodeType?xt.cache[e[xt.expando]]:e[xt.expando])&&!o(e)},data:function(e,t,n,r){if(xt.acceptData(e)){var o,i,a,s=xt.expando,u="string"==typeof t,c=e.nodeType,l=c?xt.cache:e,f=c?e[s]:e[s]&&s,p="events"===t;if(f&&l[f]&&(p||r||l[f].data)||!u||void 0!==n)return f||(c?e[s]=f=++xt.uuid:f=s),l[f]||(l[f]={},c||(l[f].toJSON=xt.noop)),"object"!=typeof t&&"function"!=typeof t||(r?l[f]=xt.extend(l[f],t):l[f].data=xt.extend(l[f].data,t)),o=i=l[f],r||(i.data||(i.data={}),i=i.data),void 0!==n&&(i[xt.camelCase(t)]=n),p&&!i[t]?o.events:(u?null==(a=i[t])&&(a=i[xt.camelCase(t)]):a=i,a)}},removeData:function(e,t,n){if(xt.acceptData(e)){var r,i,a,s=xt.expando,u=e.nodeType,c=u?xt.cache:e,l=u?e[s]:s;if(c[l]){if(t&&(r=n?c[l]:c[l].data)){xt.isArray(t)||(t in r?t=[t]:(t=xt.camelCase(t),t=t in r?[t]:t.split(" ")));for(i=0,a=t.length;i<a;i++)delete r[t[i]];if(!(n?o:xt.isEmptyObject)(r))return}(n||(delete c[l].data,o(c[l])))&&(xt.support.deleteExpando||!c.setInterval?delete c[l]:c[l]=null,u&&(xt.support.deleteExpando?delete e[s]:e.removeAttribute?e.removeAttribute(s):e[s]=null))}}},_data:function(e,t,n){return xt.data(e,t,n,!0)},acceptData:function(e){if(e.nodeName){var t=xt.noData[e.nodeName.toLowerCase()];if(t)return!(!0===t||e.getAttribute("classid")!==t)}return!0}}),xt.fn.extend({data:function(e,t){var n,o,i,a,s,u=this[0],c=0,l=null;if(void 0===e){if(this.length&&(l=xt.data(u),1===u.nodeType&&!xt._data(u,"parsedAttrs"))){for(i=u.attributes,s=i.length;c<s;c++)a=i[c].name,0===a.indexOf("data-")&&(a=xt.camelCase(a.substring(5)),r(u,a,l[a]));xt._data(u,"parsedAttrs",!0)}return l}return"object"==typeof e?this.each(function(){xt.data(this,e)}):(n=e.split(".",2),n[1]=n[1]?"."+n[1]:"",o=n[1]+"!",xt.access(this,function(t){if(void 0===t)return l=this.triggerHandler("getData"+o,[n[0]]),void 0===l&&u&&(l=xt.data(u,e),l=r(u,e,l)),void 0===l&&n[1]?this.data(n[0]):l;n[1]=t,this.each(function(){var r=xt(this);r.triggerHandler("setData"+o,n),xt.data(this,e,t),r.triggerHandler("changeData"+o,n)})},null,t,arguments.length>1,null,!1))},removeData:function(e){return this.each(function(){xt.removeData(this,e)})}}),xt.extend({_mark:function(e,t){e&&(t=(t||"fx")+"mark",xt._data(e,t,(xt._data(e,t)||0)+1))},_unmark:function(e,t,n){if(!0!==e&&(n=t,t=e,e=!1),t){n=n||"fx";var r=n+"mark",o=e?0:(xt._data(t,r)||1)-1;o?xt._data(t,r,o):(xt.removeData(t,r,!0),i(t,n,"mark"))}},queue:function(e,t,n){var r;if(e)return t=(t||"fx")+"queue",r=xt._data(e,t),n&&(!r||xt.isArray(n)?r=xt._data(e,t,xt.makeArray(n)):r.push(n)),r||[]},dequeue:function(e,t){t=t||"fx";var n=xt.queue(e,t),r=n.shift(),o={};"inprogress"===r&&(r=n.shift()),r&&("fx"===t&&n.unshift("inprogress"),xt._data(e,t+".run",o),r.call(e,function(){xt.dequeue(e,t)},o)),n.length||(xt.removeData(e,t+"queue "+t+".run",!0),i(e,t,"queue"))}}),xt.fn.extend({queue:function(e,t){var n=2;return"string"!=typeof e&&(t=e,e="fx",n--),arguments.length<n?xt.queue(this[0],e):void 0===t?this:this.each(function(){var n=xt.queue(this,e,t) |
|||
;"fx"===e&&"inprogress"!==n[0]&&xt.dequeue(this,e)})},dequeue:function(e){return this.each(function(){xt.dequeue(this,e)})},delay:function(e,t){return e=xt.fx?xt.fx.speeds[e]||e:e,t=t||"fx",this.queue(t,function(t,n){var r=setTimeout(t,e);n.stop=function(){clearTimeout(r)}})},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){function n(){--s||o.resolveWith(i,[i])}"string"!=typeof e&&(t=e,e=void 0),e=e||"fx";for(var r,o=xt.Deferred(),i=this,a=i.length,s=1,u=e+"defer",c=e+"queue",l=e+"mark";a--;)(r=xt.data(i[a],u,void 0,!0)||(xt.data(i[a],c,void 0,!0)||xt.data(i[a],l,void 0,!0))&&xt.data(i[a],u,xt.Callbacks("once memory"),!0))&&(s++,r.add(n));return n(),o.promise(t)}}),I=/[\n\t\r]/g,j=/\s+/,R=/\r/g,F=/^(?:button|input)$/i,U=/^(?:button|input|object|select|textarea)$/i,H=/^a(?:rea)?$/i,Y=/^(?:autofocus|autoplay|async|checked|controls|defer|disabled|hidden|loop|multiple|open|readonly|required|scoped|selected)$/i,W=xt.support.getSetAttribute,xt.fn.extend({attr:function(e,t){return xt.access(this,xt.attr,e,t,arguments.length>1)},removeAttr:function(e){return this.each(function(){xt.removeAttr(this,e)})},prop:function(e,t){return xt.access(this,xt.prop,e,t,arguments.length>1)},removeProp:function(e){return e=xt.propFix[e]||e,this.each(function(){try{this[e]=void 0,delete this[e]}catch(e){}})},addClass:function(e){var t,n,r,o,i,a,s;if(xt.isFunction(e))return this.each(function(t){xt(this).addClass(e.call(this,t,this.className))});if(e&&"string"==typeof e)for(t=e.split(j),n=0,r=this.length;n<r;n++)if(o=this[n],1===o.nodeType)if(o.className||1!==t.length){for(i=" "+o.className+" ",a=0,s=t.length;a<s;a++)~i.indexOf(" "+t[a]+" ")||(i+=t[a]+" ");o.className=xt.trim(i)}else o.className=e;return this},removeClass:function(e){var t,n,r,o,i,a,s;if(xt.isFunction(e))return this.each(function(t){xt(this).removeClass(e.call(this,t,this.className))});if(e&&"string"==typeof e||void 0===e)for(t=(e||"").split(j),n=0,r=this.length;n<r;n++)if(o=this[n],1===o.nodeType&&o.className)if(e){for(i=(" "+o.className+" ").replace(I," "),a=0,s=t.length;a<s;a++)i=i.replace(" "+t[a]+" "," ");o.className=xt.trim(i)}else o.className="";return this},toggleClass:function(e,t){var n=typeof e,r="boolean"==typeof t;return xt.isFunction(e)?this.each(function(n){xt(this).toggleClass(e.call(this,n,this.className,t),t)}):this.each(function(){if("string"===n)for(var o,i=0,a=xt(this),s=t,u=e.split(j);o=u[i++];)s=r?s:!a.hasClass(o),a[s?"addClass":"removeClass"](o);else"undefined"!==n&&"boolean"!==n||(this.className&&xt._data(this,"__className__",this.className),this.className=this.className||!1===e?"":xt._data(this,"__className__")||"")})},hasClass:function(e){for(var t=" "+e+" ",n=0,r=this.length;n<r;n++)if(1===this[n].nodeType&&(" "+this[n].className+" ").replace(I," ").indexOf(t)>-1)return!0;return!1},val:function(e){var t,n,r,o=this[0];{if(arguments.length)return r=xt.isFunction(e),this.each(function(n){var o,i=xt(this);1===this.nodeType&&(o=r?e.call(this,n,i.val()):e, |
|||
null==o?o="":"number"==typeof o?o+="":xt.isArray(o)&&(o=xt.map(o,function(e){return null==e?"":e+""})),(t=xt.valHooks[this.type]||xt.valHooks[this.nodeName.toLowerCase()])&&"set"in t&&void 0!==t.set(this,o,"value")||(this.value=o))});if(o)return(t=xt.valHooks[o.type]||xt.valHooks[o.nodeName.toLowerCase()])&&"get"in t&&void 0!==(n=t.get(o,"value"))?n:(n=o.value,"string"==typeof n?n.replace(R,""):null==n?"":n)}}}),xt.extend({valHooks:{option:{get:function(e){var t=e.attributes.value;return!t||t.specified?e.value:e.text}},select:{get:function(e){var t,n,r,o,i=e.selectedIndex,a=[],s=e.options,u="select-one"===e.type;if(i<0)return null;for(n=u?i:0,r=u?i+1:s.length;n<r;n++)if(o=s[n],o.selected&&(xt.support.optDisabled?!o.disabled:null===o.getAttribute("disabled"))&&(!o.parentNode.disabled||!xt.nodeName(o.parentNode,"optgroup"))){if(t=xt(o).val(),u)return t;a.push(t)}return u&&!a.length&&s.length?xt(s[i]).val():a},set:function(e,t){var n=xt.makeArray(t);return xt(e).find("option").each(function(){this.selected=xt.inArray(xt(this).val(),n)>=0}),n.length||(e.selectedIndex=-1),n}}},attrFn:{val:!0,css:!0,html:!0,text:!0,data:!0,width:!0,height:!0,offset:!0},attr:function(e,t,n,r){var o,i,a,s=e.nodeType;if(e&&3!==s&&8!==s&&2!==s)return r&&t in xt.attrFn?xt(e)[t](n):void 0===e.getAttribute?xt.prop(e,t,n):(a=1!==s||!xt.isXMLDoc(e),a&&(t=t.toLowerCase(),i=xt.attrHooks[t]||(Y.test(t)?V:B)),void 0!==n?null===n?void xt.removeAttr(e,t):i&&"set"in i&&a&&void 0!==(o=i.set(e,n,t))?o:(e.setAttribute(t,""+n),n):i&&"get"in i&&a&&null!==(o=i.get(e,t))?o:(o=e.getAttribute(t),null===o?void 0:o))},removeAttr:function(e,t){var n,r,o,i,a,s=0;if(t&&1===e.nodeType)for(r=t.toLowerCase().split(j),i=r.length;s<i;s++)(o=r[s])&&(n=xt.propFix[o]||o,a=Y.test(o),a||xt.attr(e,o,""),e.removeAttribute(W?o:n),a&&n in e&&(e[n]=!1))},attrHooks:{type:{set:function(e,t){if(F.test(e.nodeName)&&e.parentNode)xt.error("type property can't be changed");else if(!xt.support.radioValue&&"radio"===t&&xt.nodeName(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}},value:{get:function(e,t){return B&&xt.nodeName(e,"button")?B.get(e,t):t in e?e.value:null},set:function(e,t,n){if(B&&xt.nodeName(e,"button"))return B.set(e,t,n);e.value=t}}},propFix:{tabindex:"tabIndex",readonly:"readOnly",for:"htmlFor",class:"className",maxlength:"maxLength",cellspacing:"cellSpacing",cellpadding:"cellPadding",rowspan:"rowSpan",colspan:"colSpan",usemap:"useMap",frameborder:"frameBorder",contenteditable:"contentEditable"},prop:function(e,t,n){var r,o,i,a=e.nodeType;if(e&&3!==a&&8!==a&&2!==a)return i=1!==a||!xt.isXMLDoc(e),i&&(t=xt.propFix[t]||t,o=xt.propHooks[t]),void 0!==n?o&&"set"in o&&void 0!==(r=o.set(e,n,t))?r:e[t]=n:o&&"get"in o&&null!==(r=o.get(e,t))?r:e[t]},propHooks:{tabIndex:{get:function(e){var t=e.getAttributeNode("tabindex");return t&&t.specified?parseInt(t.value,10):U.test(e.nodeName)||H.test(e.nodeName)&&e.href?0:void 0}}}}),xt.attrHooks.tabindex=xt.propHooks.tabIndex,V={get:function(e,t){var n,r=xt.prop(e,t) |
|||
;return!0===r||"boolean"!=typeof r&&(n=e.getAttributeNode(t))&&!1!==n.nodeValue?t.toLowerCase():void 0},set:function(e,t,n){var r;return!1===t?xt.removeAttr(e,n):(r=xt.propFix[n]||n,r in e&&(e[r]=!0),e.setAttribute(n,n.toLowerCase())),n}},W||(q={name:!0,id:!0,coords:!0},B=xt.valHooks.button={get:function(e,t){var n;return n=e.getAttributeNode(t),n&&(q[t]?""!==n.nodeValue:n.specified)?n.nodeValue:void 0},set:function(e,t,n){var r=e.getAttributeNode(n);return r||(r=bt.createAttribute(n),e.setAttributeNode(r)),r.nodeValue=t+""}},xt.attrHooks.tabindex.set=B.set,xt.each(["width","height"],function(e,t){xt.attrHooks[t]=xt.extend(xt.attrHooks[t],{set:function(e,n){if(""===n)return e.setAttribute(t,"auto"),n}})}),xt.attrHooks.contenteditable={get:B.get,set:function(e,t,n){""===t&&(t="false"),B.set(e,t,n)}}),xt.support.hrefNormalized||xt.each(["href","src","width","height"],function(e,t){xt.attrHooks[t]=xt.extend(xt.attrHooks[t],{get:function(e){var n=e.getAttribute(t,2);return null===n?void 0:n}})}),xt.support.style||(xt.attrHooks.style={get:function(e){return e.style.cssText.toLowerCase()||void 0},set:function(e,t){return e.style.cssText=""+t}}),xt.support.optSelected||(xt.propHooks.selected=xt.extend(xt.propHooks.selected,{get:function(e){var t=e.parentNode;return t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex),null}})),xt.support.enctype||(xt.propFix.enctype="encoding"),xt.support.checkOn||xt.each(["radio","checkbox"],function(){xt.valHooks[this]={get:function(e){return null===e.getAttribute("value")?"on":e.value}}}),xt.each(["radio","checkbox"],function(){xt.valHooks[this]=xt.extend(xt.valHooks[this],{set:function(e,t){if(xt.isArray(t))return e.checked=xt.inArray(xt(e).val(),t)>=0}})}),z=/^(?:textarea|input|select)$/i,$=/^([^\.]*)?(?:\.(.+))?$/,G=/(?:^|\s)hover(\.\S+)?\b/,K=/^key/,X=/^(?:mouse|contextmenu)|click/,Q=/^(?:focusinfocus|focusoutblur)$/,J=/^(\w*)(?:#([\w\-]+))?(?:\.([\w\-]+))?$/,Z=function(e){var t=J.exec(e);return t&&(t[1]=(t[1]||"").toLowerCase(),t[3]=t[3]&&RegExp("(?:^|\\s)"+t[3]+"(?:\\s|$)")),t},ee=function(e,t){var n=e.attributes||{};return(!t[1]||e.nodeName.toLowerCase()===t[1])&&(!t[2]||(n.id||{}).value===t[2])&&(!t[3]||t[3].test((n.class||{}).value))},te=function(e){return xt.event.special.hover?e:e.replace(G,"mouseenter$1 mouseleave$1")},xt.event={add:function(e,t,n,r,o){var i,a,s,u,c,l,f,p,d,h,m;if(3!==e.nodeType&&8!==e.nodeType&&t&&n&&(i=xt._data(e))){for(n.handler&&(d=n,n=d.handler,o=d.selector),n.guid||(n.guid=xt.guid++),s=i.events,s||(i.events=s={}),a=i.handle,a||(i.handle=a=function(e){return void 0===xt||e&&xt.event.triggered===e.type?void 0:xt.event.dispatch.apply(a.elem,arguments)},a.elem=e),t=xt.trim(te(t)).split(" "),u=0;u<t.length;u++)c=$.exec(t[u])||[],l=c[1],f=(c[2]||"").split(".").sort(),m=xt.event.special[l]||{},l=(o?m.delegateType:m.bindType)||l,m=xt.event.special[l]||{},p=xt.extend({type:l,origType:c[1],data:r,handler:n,guid:n.guid,selector:o,quick:o&&Z(o),namespace:f.join(".")},d),h=s[l],h||(h=s[l]=[],h.delegateCount=0, |
|||
m.setup&&!1!==m.setup.call(e,r,f,a)||(e.addEventListener?e.addEventListener(l,a,!1):e.attachEvent&&e.attachEvent("on"+l,a))),m.add&&(m.add.call(e,p),p.handler.guid||(p.handler.guid=n.guid)),o?h.splice(h.delegateCount++,0,p):h.push(p),xt.event.global[l]=!0;e=null}},global:{},remove:function(e,t,n,r,o){var i,a,s,u,c,l,f,p,d,h,m,g,y=xt.hasData(e)&&xt._data(e);if(y&&(p=y.events)){for(t=xt.trim(te(t||"")).split(" "),i=0;i<t.length;i++)if(a=$.exec(t[i])||[],s=u=a[1],c=a[2],s){for(d=xt.event.special[s]||{},s=(r?d.delegateType:d.bindType)||s,m=p[s]||[],l=m.length,c=c?RegExp("(^|\\.)"+c.split(".").sort().join("\\.(?:.*\\.)?")+"(\\.|$)"):null,f=0;f<m.length;f++)g=m[f],!o&&u!==g.origType||n&&n.guid!==g.guid||c&&!c.test(g.namespace)||r&&r!==g.selector&&("**"!==r||!g.selector)||(m.splice(f--,1),g.selector&&m.delegateCount--,d.remove&&d.remove.call(e,g));0===m.length&&l!==m.length&&(d.teardown&&!1!==d.teardown.call(e,c)||xt.removeEvent(e,s,y.handle),delete p[s])}else for(s in p)xt.event.remove(e,s+t[i],n,r,!0);xt.isEmptyObject(p)&&(h=y.handle,h&&(h.elem=null),xt.removeData(e,["events","handle"],!0))}},customEvent:{getData:!0,setData:!0,changeData:!0},trigger:function(e,t,n,r){if(!n||3!==n.nodeType&&8!==n.nodeType){var o,i,a,s,u,c,l,f,p,d,h=e.type||e,m=[];if(!Q.test(h+xt.event.triggered)&&(h.indexOf("!")>=0&&(h=h.slice(0,-1),i=!0),h.indexOf(".")>=0&&(m=h.split("."),h=m.shift(),m.sort()),n&&!xt.event.customEvent[h]||xt.event.global[h]))if(e="object"==typeof e?e[xt.expando]?e:new xt.Event(h,e):new xt.Event(h),e.type=h,e.isTrigger=!0,e.exclusive=i,e.namespace=m.join("."),e.namespace_re=e.namespace?RegExp("(^|\\.)"+m.join("\\.(?:.*\\.)?")+"(\\.|$)"):null,c=h.indexOf(":")<0?"on"+h:"",n){if(e.result=void 0,e.target||(e.target=n),t=null!=t?xt.makeArray(t):[],t.unshift(e),l=xt.event.special[h]||{},!l.trigger||!1!==l.trigger.apply(n,t)){if(p=[[n,l.bindType||h]],!r&&!l.noBubble&&!xt.isWindow(n)){for(d=l.delegateType||h,s=Q.test(d+h)?n:n.parentNode,u=null;s;s=s.parentNode)p.push([s,d]),u=s;u&&u===n.ownerDocument&&p.push([u.defaultView||u.parentWindow||window,d])}for(a=0;a<p.length&&!e.isPropagationStopped();a++)s=p[a][0],e.type=p[a][1],f=(xt._data(s,"events")||{})[e.type]&&xt._data(s,"handle"),f&&f.apply(s,t),(f=c&&s[c])&&xt.acceptData(s)&&!1===f.apply(s,t)&&e.preventDefault();return e.type=h,r||e.isDefaultPrevented()||l._default&&!1!==l._default.apply(n.ownerDocument,t)||"click"===h&&xt.nodeName(n,"a")||!xt.acceptData(n)||c&&n[h]&&("focus"!==h&&"blur"!==h||0!==e.target.offsetWidth)&&!xt.isWindow(n)&&(u=n[c],u&&(n[c]=null),xt.event.triggered=h,n[h](),xt.event.triggered=void 0,u&&(n[c]=u)),e.result}}else{o=xt.cache;for(a in o)o[a].events&&o[a].events[h]&&xt.event.trigger(e,t,o[a].handle.elem,!0)}}},dispatch:function(e){e=xt.event.fix(e||window.event);var t,n,r,o,i,a,s,u,c,l,f=(xt._data(this,"events")||{})[e.type]||[],p=f.delegateCount,d=[].slice.call(arguments,0),h=!e.exclusive&&!e.namespace,m=xt.event.special[e.type]||{},g=[];if(d[0]=e,e.delegateTarget=this,!m.preDispatch||!1!==m.preDispatch.call(this,e)){ |
|||
if(p&&(!e.button||"click"!==e.type))for(o=xt(this),o.context=this.ownerDocument||this,r=e.target;r!=this;r=r.parentNode||this)if(!0!==r.disabled){for(a={},u=[],o[0]=r,t=0;t<p;t++)c=f[t],l=c.selector,void 0===a[l]&&(a[l]=c.quick?ee(r,c.quick):o.is(l)),a[l]&&u.push(c);u.length&&g.push({elem:r,matches:u})}for(f.length>p&&g.push({elem:this,matches:f.slice(p)}),t=0;t<g.length&&!e.isPropagationStopped();t++)for(s=g[t],e.currentTarget=s.elem,n=0;n<s.matches.length&&!e.isImmediatePropagationStopped();n++)c=s.matches[n],(h||!e.namespace&&!c.namespace||e.namespace_re&&e.namespace_re.test(c.namespace))&&(e.data=c.data,e.handleObj=c,void 0!==(i=((xt.event.special[c.origType]||{}).handle||c.handler).apply(s.elem,d))&&(e.result=i,!1===i&&(e.preventDefault(),e.stopPropagation())));return m.postDispatch&&m.postDispatch.call(this,e),e.result}},props:"attrChange attrName relatedNode srcElement altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{},keyHooks:{props:"char charCode key keyCode".split(" "),filter:function(e,t){return null==e.which&&(e.which=null!=t.charCode?t.charCode:t.keyCode),e}},mouseHooks:{props:"button buttons clientX clientY fromElement offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(e,t){var n,r,o,i=t.button,a=t.fromElement;return null==e.pageX&&null!=t.clientX&&(n=e.target.ownerDocument||bt,r=n.documentElement,o=n.body,e.pageX=t.clientX+(r&&r.scrollLeft||o&&o.scrollLeft||0)-(r&&r.clientLeft||o&&o.clientLeft||0),e.pageY=t.clientY+(r&&r.scrollTop||o&&o.scrollTop||0)-(r&&r.clientTop||o&&o.clientTop||0)),!e.relatedTarget&&a&&(e.relatedTarget=a===e.target?t.toElement:a),e.which||void 0===i||(e.which=1&i?1:2&i?3:4&i?2:0),e}},fix:function(e){if(e[xt.expando])return e;var t,n,r=e,o=xt.event.fixHooks[e.type]||{},i=o.props?this.props.concat(o.props):this.props;for(e=xt.Event(r),t=i.length;t;)n=i[--t],e[n]=r[n];return e.target||(e.target=r.srcElement||bt),3===e.target.nodeType&&(e.target=e.target.parentNode),void 0===e.metaKey&&(e.metaKey=e.ctrlKey),o.filter?o.filter(e,r):e},special:{ready:{setup:xt.bindReady},load:{noBubble:!0},focus:{delegateType:"focusin"},blur:{delegateType:"focusout"},beforeunload:{setup:function(e,t,n){xt.isWindow(this)&&(this.onbeforeunload=n)},teardown:function(e,t){this.onbeforeunload===t&&(this.onbeforeunload=null)}}},simulate:function(e,t,n,r){var o=xt.extend(new xt.Event,n,{type:e,isSimulated:!0,originalEvent:{}});r?xt.event.trigger(o,null,t):xt.event.dispatch.call(t,o),o.isDefaultPrevented()&&n.preventDefault()}},xt.event.handle=xt.event.dispatch,xt.removeEvent=bt.removeEventListener?function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n,!1)}:function(e,t,n){e.detachEvent&&e.detachEvent("on"+t,n)},xt.Event=function(e,t){if(!(this instanceof xt.Event))return new xt.Event(e,t);e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||!1===e.returnValue||e.getPreventDefault&&e.getPreventDefault()?s:a):this.type=e,t&&xt.extend(this,t), |
|||
this.timeStamp=e&&e.timeStamp||xt.now(),this[xt.expando]=!0},xt.Event.prototype={preventDefault:function(){this.isDefaultPrevented=s;var e=this.originalEvent;e&&(e.preventDefault?e.preventDefault():e.returnValue=!1)},stopPropagation:function(){this.isPropagationStopped=s;var e=this.originalEvent;e&&(e.stopPropagation&&e.stopPropagation(),e.cancelBubble=!0)},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=s,this.stopPropagation()},isDefaultPrevented:a,isPropagationStopped:a,isImmediatePropagationStopped:a},xt.each({mouseenter:"mouseover",mouseleave:"mouseout"},function(e,t){xt.event.special[e]={delegateType:t,bindType:t,handle:function(e){var n,r=this,o=e.relatedTarget,i=e.handleObj;i.selector;return o&&(o===r||xt.contains(r,o))||(e.type=i.origType,n=i.handler.apply(this,arguments),e.type=t),n}}}),xt.support.submitBubbles||(xt.event.special.submit={setup:function(){if(xt.nodeName(this,"form"))return!1;xt.event.add(this,"click._submit keypress._submit",function(e){var t=e.target,n=xt.nodeName(t,"input")||xt.nodeName(t,"button")?t.form:void 0;n&&!n._submit_attached&&(xt.event.add(n,"submit._submit",function(e){e._submit_bubble=!0}),n._submit_attached=!0)})},postDispatch:function(e){e._submit_bubble&&(delete e._submit_bubble,this.parentNode&&!e.isTrigger&&xt.event.simulate("submit",this.parentNode,e,!0))},teardown:function(){if(xt.nodeName(this,"form"))return!1;xt.event.remove(this,"._submit")}}),xt.support.changeBubbles||(xt.event.special.change={setup:function(){if(z.test(this.nodeName))return"checkbox"!==this.type&&"radio"!==this.type||(xt.event.add(this,"propertychange._change",function(e){"checked"===e.originalEvent.propertyName&&(this._just_changed=!0)}),xt.event.add(this,"click._change",function(e){this._just_changed&&!e.isTrigger&&(this._just_changed=!1,xt.event.simulate("change",this,e,!0))})),!1;xt.event.add(this,"beforeactivate._change",function(e){var t=e.target;z.test(t.nodeName)&&!t._change_attached&&(xt.event.add(t,"change._change",function(e){!this.parentNode||e.isSimulated||e.isTrigger||xt.event.simulate("change",this.parentNode,e,!0)}),t._change_attached=!0)})},handle:function(e){var t=e.target;if(this!==t||e.isSimulated||e.isTrigger||"radio"!==t.type&&"checkbox"!==t.type)return e.handleObj.handler.apply(this,arguments)},teardown:function(){return xt.event.remove(this,"._change"),z.test(this.nodeName)}}),xt.support.focusinBubbles||xt.each({focus:"focusin",blur:"focusout"},function(e,t){var n=0,r=function(e){xt.event.simulate(t,e.target,xt.event.fix(e),!0)};xt.event.special[t]={setup:function(){0==n++&&bt.addEventListener(e,r,!0)},teardown:function(){0==--n&&bt.removeEventListener(e,r,!0)}}}),xt.fn.extend({on:function(e,t,n,r,o){var i,s;if("object"==typeof e){"string"!=typeof t&&(n=n||t,t=void 0);for(s in e)this.on(s,t,n,e[s],o);return this}if(null==n&&null==r?(r=t,n=t=void 0):null==r&&("string"==typeof t?(r=n,n=void 0):(r=n,n=t,t=void 0)),!1===r)r=a;else if(!r)return this;return 1===o&&(i=r,r=function(e){return xt().off(e),i.apply(this,arguments)}, |
|||
r.guid=i.guid||(i.guid=xt.guid++)),this.each(function(){xt.event.add(this,e,r,n,t)})},one:function(e,t,n,r){return this.on(e,t,n,r,1)},off:function(e,t,n){var r,o;if(e&&e.preventDefault&&e.handleObj)return r=e.handleObj,xt(e.delegateTarget).off(r.namespace?r.origType+"."+r.namespace:r.origType,r.selector,r.handler),this;if("object"==typeof e){for(o in e)this.off(o,t,e[o]);return this}return!1!==t&&"function"!=typeof t||(n=t,t=void 0),!1===n&&(n=a),this.each(function(){xt.event.remove(this,e,n,t)})},bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},live:function(e,t,n){return xt(this.context).on(e,this.selector,t,n),this},die:function(e,t){return xt(this.context).off(e,this.selector||"**",t),this},delegate:function(e,t,n,r){return this.on(t,e,n,r)},undelegate:function(e,t,n){return 1==arguments.length?this.off(e,"**"):this.off(t,e,n)},trigger:function(e,t){return this.each(function(){xt.event.trigger(e,t,this)})},triggerHandler:function(e,t){if(this[0])return xt.event.trigger(e,t,this[0],!0)},toggle:function(e){var t=arguments,n=e.guid||xt.guid++,r=0,o=function(n){var o=(xt._data(this,"lastToggle"+e.guid)||0)%r;return xt._data(this,"lastToggle"+e.guid,o+1),n.preventDefault(),t[o].apply(this,arguments)||!1};for(o.guid=n;r<t.length;)t[r++].guid=n;return this.click(o)},hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)}}),xt.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(e,t){xt.fn[t]=function(e,n){return null==n&&(n=e,e=null),arguments.length>0?this.on(t,null,e,n):this.trigger(t)},xt.attrFn&&(xt.attrFn[t]=!0),K.test(t)&&(xt.event.fixHooks[t]=xt.event.keyHooks),X.test(t)&&(xt.event.fixHooks[t]=xt.event.mouseHooks)}),function(){function e(e,t,n,r,o,i){var a,s,u,c;for(a=0,s=r.length;a<s;a++)if(u=r[a]){for(c=!1,u=u[e];u;){if(u[d]===n){c=r[u.sizset];break}if(1!==u.nodeType||i||(u[d]=n,u.sizset=a),u.nodeName.toLowerCase()===t){c=u;break}u=u[e]}r[a]=c}}function t(e,t,r,o,i,a){var s,u,c,l;for(s=0,u=o.length;s<u;s++)if(c=o[s]){for(l=!1,c=c[e];c;){if(c[d]===r){l=o[c.sizset];break}if(1===c.nodeType)if(a||(c[d]=r,c.sizset=s),"string"!=typeof t){if(c===t){l=!0;break}}else if(n.filter(t,[c]).length>0){l=c;break}c=c[e]}o[s]=l}}var n,r,o,i,a,s,u,c,l,f,p=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^\[\]]*\]|['"][^'"]*['"]|[^\[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,d="sizcache"+(Math.random()+"").replace(".",""),h=0,m=Object.prototype.toString,g=!1,y=!0,v=/\\/g,b=/\r\n/g,_=/\W/;[0,0].sort(function(){return y=!1,0}),n=function(e,t,r,a){var s,c,l,d,h,g,y,v,b,_,w,x,C;if(r=r||[],t=t||bt,s=t,1!==t.nodeType&&9!==t.nodeType)return[];if(!e||"string"!=typeof e)return r;_=!0,w=n.isXML(t),x=[],C=e;do{if(p.exec(""),(c=p.exec(C))&&(C=c[3],x.push(c[1]),c[2])){h=c[3];break}}while(c) |
|||
;if(x.length>1&&i.exec(e))if(2===x.length&&o.relative[x[0]])l=f(x[0]+x[1],t,a);else for(l=o.relative[x[0]]?[t]:n(x.shift(),t);x.length;)e=x.shift(),o.relative[e]&&(e+=x.shift()),l=f(e,l,a);else if(!a&&x.length>1&&9===t.nodeType&&!w&&o.match.ID.test(x[0])&&!o.match.ID.test(x[x.length-1])&&(g=n.find(x.shift(),t,w),t=g.expr?n.filter(g.expr,g.set)[0]:g.set[0]),t)for(g=a?{expr:x.pop(),set:u(a)}:n.find(x.pop(),1!==x.length||"~"!==x[0]&&"+"!==x[0]||!t.parentNode?t:t.parentNode,w),l=g.expr?n.filter(g.expr,g.set):g.set,x.length>0?d=u(l):_=!1;x.length;)y=x.pop(),v=y,o.relative[y]?v=x.pop():y="",null==v&&(v=t),o.relative[y](d,v,w);else d=x=[];if(d||(d=l),d||n.error(y||e),"[object Array]"===m.call(d))if(_)if(t&&1===t.nodeType)for(b=0;null!=d[b];b++)d[b]&&(!0===d[b]||1===d[b].nodeType&&n.contains(t,d[b]))&&r.push(l[b]);else for(b=0;null!=d[b];b++)d[b]&&1===d[b].nodeType&&r.push(l[b]);else r.push.apply(r,d);else u(d,r);return h&&(n(h,s,r,a),n.uniqueSort(r)),r},n.uniqueSort=function(e){if(c&&(g=y,e.sort(c),g))for(var t=1;t<e.length;t++)e[t]===e[t-1]&&e.splice(t--,1);return e},n.matches=function(e,t){return n(e,null,null,t)},n.matchesSelector=function(e,t){return n(t,null,null,[e]).length>0},n.find=function(e,t,n){var r,i,a,s,u,c;if(!e)return[];for(i=0,a=o.order.length;i<a;i++)if(u=o.order[i],(s=o.leftMatch[u].exec(e))&&(c=s[1],s.splice(1,1),"\\"!==c.substr(c.length-1)&&(s[1]=(s[1]||"").replace(v,""),null!=(r=o.find[u](s,t,n))))){e=e.replace(o.match[u],"");break}return r||(r=void 0!==t.getElementsByTagName?t.getElementsByTagName("*"):[]),{set:r,expr:e}},n.filter=function(e,t,r,i){for(var a,s,u,c,l,f,p,d,h,m=e,g=[],y=t,v=t&&t[0]&&n.isXML(t[0]);e&&t.length;){for(u in o.filter)if(null!=(a=o.leftMatch[u].exec(e))&&a[2]){if(f=o.filter[u],p=a[1],s=!1,a.splice(1,1),"\\"===p.substr(p.length-1))continue;if(y===g&&(g=[]),o.preFilter[u])if(a=o.preFilter[u](a,y,r,g,i,v)){if(!0===a)continue}else s=c=!0;if(a)for(d=0;null!=(l=y[d]);d++)l&&(c=f(l,a,d,y),h=i^c,r&&null!=c?h?s=!0:y[d]=!1:h&&(g.push(l),s=!0));if(void 0!==c){if(r||(y=g),e=e.replace(o.match[u],""),!s)return[];break}}if(e===m){if(null!=s)break;n.error(e)}m=e}return y},n.error=function(e){throw Error("Syntax error, unrecognized expression: "+e)},r=n.getText=function(e){var t,n,o=e.nodeType,i="";if(o){if(1===o||9===o||11===o){if("string"==typeof e.textContent)return e.textContent;if("string"==typeof e.innerText)return e.innerText.replace(b,"");for(e=e.firstChild;e;e=e.nextSibling)i+=r(e)}else if(3===o||4===o)return e.nodeValue}else for(t=0;n=e[t];t++)8!==n.nodeType&&(i+=r(n));return i},o=n.selectors={order:["ID","NAME","TAG"],match:{ID:/#((?:[\w\u00c0-\uFFFF\-]|\\.)+)/,CLASS:/\.((?:[\w\u00c0-\uFFFF\-]|\\.)+)/,NAME:/\[name=['"]*((?:[\w\u00c0-\uFFFF\-]|\\.)+)['"]*\]/,ATTR:/\[\s*((?:[\w\u00c0-\uFFFF\-]|\\.)+)\s*(?:(\S?=)\s*(?:(['"])(.*?)\3|(#?(?:[\w\u00c0-\uFFFF\-]|\\.)*)|)|)\s*\]/,TAG:/^((?:[\w\u00c0-\uFFFF\*\-]|\\.)+)/,CHILD:/:(only|nth|last|first)-child(?:\(\s*(even|odd|(?:[+\-]?\d+|(?:[+\-]?\d*)?n\s*(?:[+\-]\s*\d+)?))\s*\))?/, |
|||
POS:/:(nth|eq|gt|lt|first|last|even|odd)(?:\((\d*)\))?(?=[^\-]|$)/,PSEUDO:/:((?:[\w\u00c0-\uFFFF\-]|\\.)+)(?:\((['"]?)((?:\([^\)]+\)|[^\(\)]*)+)\2\))?/},leftMatch:{},attrMap:{class:"className",for:"htmlFor"},attrHandle:{href:function(e){return e.getAttribute("href")},type:function(e){return e.getAttribute("type")}},relative:{"+":function(e,t){var r,o,i,a="string"==typeof t,s=a&&!_.test(t),u=a&&!s;for(s&&(t=t.toLowerCase()),r=0,o=e.length;r<o;r++)if(i=e[r]){for(;(i=i.previousSibling)&&1!==i.nodeType;);e[r]=u||i&&i.nodeName.toLowerCase()===t?i||!1:i===t}u&&n.filter(t,e,!0)},">":function(e,t){var r,o,i="string"==typeof t,a=0,s=e.length;if(i&&!_.test(t))for(t=t.toLowerCase();a<s;a++)(r=e[a])&&(o=r.parentNode,e[a]=o.nodeName.toLowerCase()===t&&o);else{for(;a<s;a++)(r=e[a])&&(e[a]=i?r.parentNode:r.parentNode===t);i&&n.filter(t,e,!0)}},"":function(n,r,o){var i,a=h++,s=t;"string"!=typeof r||_.test(r)||(r=r.toLowerCase(),i=r,s=e),s("parentNode",r,a,n,i,o)},"~":function(n,r,o){var i,a=h++,s=t;"string"!=typeof r||_.test(r)||(r=r.toLowerCase(),i=r,s=e),s("previousSibling",r,a,n,i,o)}},find:{ID:function(e,t,n){if(void 0!==t.getElementById&&!n){var r=t.getElementById(e[1]);return r&&r.parentNode?[r]:[]}},NAME:function(e,t){var n,r,o,i;if(void 0!==t.getElementsByName){for(n=[],r=t.getElementsByName(e[1]),o=0,i=r.length;o<i;o++)r[o].getAttribute("name")===e[1]&&n.push(r[o]);return 0===n.length?null:n}},TAG:function(e,t){if(void 0!==t.getElementsByTagName)return t.getElementsByTagName(e[1])}},preFilter:{CLASS:function(e,t,n,r,o,i){if(e=" "+e[1].replace(v,"")+" ",i)return e;for(var a,s=0;null!=(a=t[s]);s++)a&&(o^(a.className&&(" "+a.className+" ").replace(/[\t\n\r]/g," ").indexOf(e)>=0)?n||r.push(a):n&&(t[s]=!1));return!1},ID:function(e){return e[1].replace(v,"")},TAG:function(e,t){return e[1].replace(v,"").toLowerCase()},CHILD:function(e){if("nth"===e[1]){e[2]||n.error(e[0]),e[2]=e[2].replace(/^\+|\s*/g,"");var t=/(-?)(\d*)(?:n([+\-]?\d*))?/.exec("even"===e[2]&&"2n"||"odd"===e[2]&&"2n+1"||!/\D/.test(e[2])&&"0n+"+e[2]||e[2]);e[2]=t[1]+(t[2]||1)-0,e[3]=t[3]-0}else e[2]&&n.error(e[0]);return e[0]=h++,e},ATTR:function(e,t,n,r,i,a){var s=e[1]=e[1].replace(v,"");return!a&&o.attrMap[s]&&(e[1]=o.attrMap[s]),e[4]=(e[4]||e[5]||"").replace(v,""),"~="===e[2]&&(e[4]=" "+e[4]+" "),e},PSEUDO:function(e,t,r,i,a){if("not"===e[1]){if(!((p.exec(e[3])||"").length>1||/^\w/.test(e[3]))){var s=n.filter(e[3],t,r,!0^a);return r||i.push.apply(i,s),!1}e[3]=n(e[3],null,null,t)}else if(o.match.POS.test(e[0])||o.match.CHILD.test(e[0]))return!0;return e},POS:function(e){return e.unshift(!0),e}},filters:{enabled:function(e){return!1===e.disabled&&"hidden"!==e.type},disabled:function(e){return!0===e.disabled},checked:function(e){return!0===e.checked},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,!0===e.selected},parent:function(e){return!!e.firstChild},empty:function(e){return!e.firstChild},has:function(e,t,r){return!!n(r[3],e).length},header:function(e){return/h\d/i.test(e.nodeName)},text:function(e){var t=e.getAttribute("type"),n=e.type |
|||
;return"input"===e.nodeName.toLowerCase()&&"text"===n&&(t===n||null===t)},radio:function(e){return"input"===e.nodeName.toLowerCase()&&"radio"===e.type},checkbox:function(e){return"input"===e.nodeName.toLowerCase()&&"checkbox"===e.type},file:function(e){return"input"===e.nodeName.toLowerCase()&&"file"===e.type},password:function(e){return"input"===e.nodeName.toLowerCase()&&"password"===e.type},submit:function(e){var t=e.nodeName.toLowerCase();return("input"===t||"button"===t)&&"submit"===e.type},image:function(e){return"input"===e.nodeName.toLowerCase()&&"image"===e.type},reset:function(e){var t=e.nodeName.toLowerCase();return("input"===t||"button"===t)&&"reset"===e.type},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},input:function(e){return/input|select|textarea|button/i.test(e.nodeName)},focus:function(e){return e===e.ownerDocument.activeElement}},setFilters:{first:function(e,t){return 0===t},last:function(e,t,n,r){return t===r.length-1},even:function(e,t){return t%2==0},odd:function(e,t){return t%2==1},lt:function(e,t,n){return t<n[3]-0},gt:function(e,t,n){return t>n[3]-0},nth:function(e,t,n){return n[3]-0===t},eq:function(e,t,n){return n[3]-0===t}},filter:{PSEUDO:function(e,t,i,a){var s,u,c,l=t[1],f=o.filters[l];if(f)return f(e,i,t,a);if("contains"===l)return(e.textContent||e.innerText||r([e])||"").indexOf(t[3])>=0;if("not"===l){for(s=t[3],u=0,c=s.length;u<c;u++)if(s[u]===e)return!1;return!0}n.error(l)},CHILD:function(e,t){var n,r,o,i,a,s,u=t[1],c=e;switch(u){case"only":case"first":for(;c=c.previousSibling;)if(1===c.nodeType)return!1;if("first"===u)return!0;c=e;case"last":for(;c=c.nextSibling;)if(1===c.nodeType)return!1;return!0;case"nth":if(n=t[2],r=t[3],1===n&&0===r)return!0;if(o=t[0],(i=e.parentNode)&&(i[d]!==o||!e.nodeIndex)){for(a=0,c=i.firstChild;c;c=c.nextSibling)1===c.nodeType&&(c.nodeIndex=++a);i[d]=o}return s=e.nodeIndex-r,0===n?0===s:s%n==0&&s/n>=0}},ID:function(e,t){return 1===e.nodeType&&e.getAttribute("id")===t},TAG:function(e,t){return"*"===t&&1===e.nodeType||!!e.nodeName&&e.nodeName.toLowerCase()===t},CLASS:function(e,t){return(" "+(e.className||e.getAttribute("class"))+" ").indexOf(t)>-1},ATTR:function(e,t){var r=t[1],i=n.attr?n.attr(e,r):o.attrHandle[r]?o.attrHandle[r](e):null!=e[r]?e[r]:e.getAttribute(r),a=i+"",s=t[2],u=t[4];return null==i?"!="===s:!s&&n.attr?null!=i:"="===s?a===u:"*="===s?a.indexOf(u)>=0:"~="===s?(" "+a+" ").indexOf(u)>=0:u?"!="===s?a!==u:"^="===s?0===a.indexOf(u):"$="===s?a.substr(a.length-u.length)===u:"|="===s&&(a===u||a.substr(0,u.length+1)===u+"-"):a&&!1!==i},POS:function(e,t,n,r){var i=t[2],a=o.setFilters[i];if(a)return a(e,n,t,r)}}},i=o.match.POS,a=function(e,t){return"\\"+(t-0+1)};for(s in o.match)o.match[s]=RegExp(o.match[s].source+/(?![^\[]*\])(?![^\(]*\))/.source),o.leftMatch[s]=RegExp(/(^(?:.|\r|\n)*?)/.source+o.match[s].source.replace(/\\(\d+)/g,a));o.match.globalPOS=i,u=function(e,t){return e=Array.prototype.slice.call(e,0),t?(t.push.apply(t,e),t):e};try{ |
|||
Array.prototype.slice.call(bt.documentElement.childNodes,0)[0].nodeType}catch(e){u=function(e,t){var n,r=0,o=t||[];if("[object Array]"===m.call(e))Array.prototype.push.apply(o,e);else if("number"==typeof e.length)for(n=e.length;r<n;r++)o.push(e[r]);else for(;e[r];r++)o.push(e[r]);return o}}bt.documentElement.compareDocumentPosition?c=function(e,t){return e===t?(g=!0,0):e.compareDocumentPosition&&t.compareDocumentPosition?4&e.compareDocumentPosition(t)?-1:1:e.compareDocumentPosition?-1:1}:(c=function(e,t){var n,r,o,i,a,s,u,c;if(e===t)return g=!0,0;if(e.sourceIndex&&t.sourceIndex)return e.sourceIndex-t.sourceIndex;if(o=[],i=[],a=e.parentNode,s=t.parentNode,u=a,a===s)return l(e,t);if(!a)return-1;if(!s)return 1;for(;u;)o.unshift(u),u=u.parentNode;for(u=s;u;)i.unshift(u),u=u.parentNode;for(n=o.length,r=i.length,c=0;c<n&&c<r;c++)if(o[c]!==i[c])return l(o[c],i[c]);return c===n?l(e,i[c],-1):l(o[c],t,1)},l=function(e,t,n){if(e===t)return n;for(var r=e.nextSibling;r;){if(r===t)return-1;r=r.nextSibling}return 1}),function(){var e=bt.createElement("div"),t="script"+(new Date).getTime(),n=bt.documentElement;e.innerHTML="<a name='"+t+"'/>",n.insertBefore(e,n.firstChild),bt.getElementById(t)&&(o.find.ID=function(e,t,n){if(void 0!==t.getElementById&&!n){var r=t.getElementById(e[1]);return r?r.id===e[1]||void 0!==r.getAttributeNode&&r.getAttributeNode("id").nodeValue===e[1]?[r]:void 0:[]}},o.filter.ID=function(e,t){var n=void 0!==e.getAttributeNode&&e.getAttributeNode("id");return 1===e.nodeType&&n&&n.nodeValue===t}),n.removeChild(e),n=e=null}(),function(){var e=bt.createElement("div");e.appendChild(bt.createComment("")),e.getElementsByTagName("*").length>0&&(o.find.TAG=function(e,t){var n,r,o=t.getElementsByTagName(e[1]);if("*"===e[1]){for(n=[],r=0;o[r];r++)1===o[r].nodeType&&n.push(o[r]);o=n}return o}),e.innerHTML="<a href='#'></a>",e.firstChild&&void 0!==e.firstChild.getAttribute&&"#"!==e.firstChild.getAttribute("href")&&(o.attrHandle.href=function(e){return e.getAttribute("href",2)}),e=null}(),bt.querySelectorAll&&function(){var e,t=n,r=bt.createElement("div");if(r.innerHTML="<p class='TEST'></p>",!r.querySelectorAll||0!==r.querySelectorAll(".TEST").length){n=function(e,r,i,a){var s,c,l,f,p,d,h;if(r=r||bt,!a&&!n.isXML(r)){if((s=/^(\w+$)|^\.([\w\-]+$)|^#([\w\-]+$)/.exec(e))&&(1===r.nodeType||9===r.nodeType)){if(s[1])return u(r.getElementsByTagName(e),i);if(s[2]&&o.find.CLASS&&r.getElementsByClassName)return u(r.getElementsByClassName(s[2]),i)}if(9===r.nodeType){if("body"===e&&r.body)return u([r.body],i);if(s&&s[3]){if(!(c=r.getElementById(s[3]))||!c.parentNode)return u([],i);if(c.id===s[3])return u([c],i)}try{return u(r.querySelectorAll(e),i)}catch(e){}}else if(1===r.nodeType&&"object"!==r.nodeName.toLowerCase()){l=r,f=r.getAttribute("id"),p=f||"__sizzle__",d=r.parentNode,h=/^\s*[+~]/.test(e),f?p=p.replace(/'/g,"\\$&"):r.setAttribute("id",p),h&&d&&(r=r.parentNode);try{if(!h||d)return u(r.querySelectorAll("[id='"+p+"'] "+e),i)}catch(e){}finally{f||l.removeAttribute("id")}}}return t(e,r,i,a)};for(e in t)n[e]=t[e];r=null}}(), |
|||
function(){var e,t,r=bt.documentElement,i=r.matchesSelector||r.mozMatchesSelector||r.webkitMatchesSelector||r.msMatchesSelector;if(i){e=!i.call(bt.createElement("div"),"div"),t=!1;try{i.call(bt.documentElement,"[test!='']:sizzle")}catch(e){t=!0}n.matchesSelector=function(r,a){if(a=a.replace(/\=\s*([^'"\]]*)\s*\]/g,"='$1']"),!n.isXML(r))try{if(t||!o.match.PSEUDO.test(a)&&!/!=/.test(a)){var s=i.call(r,a);if(s||!e||r.document&&11!==r.document.nodeType)return s}}catch(e){}return n(a,null,null,[r]).length>0}}}(),function(){var e=bt.createElement("div");e.innerHTML="<div class='test e'></div><div class='test'></div>",e.getElementsByClassName&&0!==e.getElementsByClassName("e").length&&(e.lastChild.className="e",1!==e.getElementsByClassName("e").length&&(o.order.splice(1,0,"CLASS"),o.find.CLASS=function(e,t,n){if(void 0!==t.getElementsByClassName&&!n)return t.getElementsByClassName(e[1])},e=null))}(),bt.documentElement.contains?n.contains=function(e,t){return e!==t&&(!e.contains||e.contains(t))}:bt.documentElement.compareDocumentPosition?n.contains=function(e,t){return!!(16&e.compareDocumentPosition(t))}:n.contains=function(){return!1},n.isXML=function(e){var t=(e?e.ownerDocument||e:0).documentElement;return!!t&&"HTML"!==t.nodeName},f=function(e,t,r){for(var i,a,s,u=[],c="",l=t.nodeType?[t]:t;i=o.match.PSEUDO.exec(e);)c+=i[0],e=e.replace(o.match.PSEUDO,"");for(e=o.relative[e]?e+"*":e,a=0,s=l.length;a<s;a++)n(e,l[a],u,r);return n.filter(c,u)},n.attr=xt.attr,n.selectors.attrMap={},xt.find=n,xt.expr=n.selectors,xt.expr[":"]=xt.expr.filters,xt.unique=n.uniqueSort,xt.text=n.getText,xt.isXMLDoc=n.isXML,xt.contains=n.contains}(),ne=/Until$/,re=/^(?:parents|prevUntil|prevAll)/,oe=/,/,ie=/^.[^:#\[\.,]*$/,ae=Array.prototype.slice,se=xt.expr.match.globalPOS,ue={children:!0,contents:!0,next:!0,prev:!0},xt.fn.extend({find:function(e){var t,n,r,o,i,a,s=this;if("string"!=typeof e)return xt(e).filter(function(){for(t=0,n=s.length;t<n;t++)if(xt.contains(s[t],this))return!0});for(r=this.pushStack("","find",e),t=0,n=this.length;t<n;t++)if(o=r.length,xt.find(e,this[t],r),t>0)for(i=o;i<r.length;i++)for(a=0;a<o;a++)if(r[a]===r[i]){r.splice(i--,1);break}return r},has:function(e){var t=xt(e);return this.filter(function(){for(var e=0,n=t.length;e<n;e++)if(xt.contains(this,t[e]))return!0})},not:function(e){return this.pushStack(c(this,e,!1),"not",e)},filter:function(e){return this.pushStack(c(this,e,!0),"filter",e)},is:function(e){return!!e&&("string"==typeof e?se.test(e)?xt(e,this.context).index(this[0])>=0:xt.filter(e,this).length>0:this.filter(e).length>0)},closest:function(e,t){var n,r,o,i,a=[],s=this[0];if(xt.isArray(e)){for(o=1;s&&s.ownerDocument&&s!==t;){for(n=0;n<e.length;n++)xt(s).is(e[n])&&a.push({selector:e[n],elem:s,level:o});s=s.parentNode,o++}return a}for(i=se.test(e)||"string"!=typeof e?xt(e,t||this.context):0,n=0,r=this.length;n<r;n++)for(s=this[n];s;){if(i?i.index(s)>-1:xt.find.matchesSelector(s,e)){a.push(s);break}if(!(s=s.parentNode)||!s.ownerDocument||s===t||11===s.nodeType)break}return a=a.length>1?xt.unique(a):a, |
|||
this.pushStack(a,"closest",e)},index:function(e){return e?"string"==typeof e?xt.inArray(this[0],xt(e)):xt.inArray(e.jquery?e[0]:e,this):this[0]&&this[0].parentNode?this.prevAll().length:-1},add:function(e,t){var n="string"==typeof e?xt(e,t):xt.makeArray(e&&e.nodeType?[e]:e),r=xt.merge(this.get(),n);return this.pushStack(u(n[0])||u(r[0])?r:xt.unique(r))},andSelf:function(){return this.add(this.prevObject)}}),xt.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return xt.dir(e,"parentNode")},parentsUntil:function(e,t,n){return xt.dir(e,"parentNode",n)},next:function(e){return xt.nth(e,2,"nextSibling")},prev:function(e){return xt.nth(e,2,"previousSibling")},nextAll:function(e){return xt.dir(e,"nextSibling")},prevAll:function(e){return xt.dir(e,"previousSibling")},nextUntil:function(e,t,n){return xt.dir(e,"nextSibling",n)},prevUntil:function(e,t,n){return xt.dir(e,"previousSibling",n)},siblings:function(e){return xt.sibling((e.parentNode||{}).firstChild,e)},children:function(e){return xt.sibling(e.firstChild)},contents:function(e){return xt.nodeName(e,"iframe")?e.contentDocument||e.contentWindow.document:xt.makeArray(e.childNodes)}},function(e,t){xt.fn[e]=function(n,r){var o=xt.map(this,t,n);return ne.test(e)||(r=n),r&&"string"==typeof r&&(o=xt.filter(r,o)),o=this.length>1&&!ue[e]?xt.unique(o):o,(this.length>1||oe.test(r))&&re.test(e)&&(o=o.reverse()),this.pushStack(o,e,ae.call(arguments).join(","))}}),xt.extend({filter:function(e,t,n){return n&&(e=":not("+e+")"),1===t.length?xt.find.matchesSelector(t[0],e)?[t[0]]:[]:xt.find.matches(e,t)},dir:function(e,t,n){for(var r=[],o=e[t];o&&9!==o.nodeType&&(void 0===n||1!==o.nodeType||!xt(o).is(n));)1===o.nodeType&&r.push(o),o=o[t];return r},nth:function(e,t,n,r){t=t||1;for(var o=0;e&&(1!==e.nodeType||++o!==t);e=e[n]);return e},sibling:function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n}}),ce="abbr|article|aside|audio|bdi|canvas|data|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",le=/ jQuery\d+="(?:\d+|null)"/g,fe=/^\s+/,pe=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,de=/<([\w:]+)/,he=/<tbody/i,me=/<|&#?\w+;/,ge=/<(?:script|style)/i,ye=/<(?:script|object|embed|option|style)/i,ve=RegExp("<(?:"+ce+")[\\s/>]","i"),be=/checked\s*(?:[^=]|=\s*.checked.)/i,_e=/\/(java|ecma)script/i,we=/^\s*<!(?:\[CDATA\[|\-\-)/,xe={option:[1,"<select multiple='multiple'>","</select>"],legend:[1,"<fieldset>","</fieldset>"],thead:[1,"<table>","</table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],area:[1,"<map>","</map>"],_default:[0,"",""]},Ce=l(bt),xe.optgroup=xe.option,xe.tbody=xe.tfoot=xe.colgroup=xe.caption=xe.thead,xe.th=xe.td,xt.support.htmlSerialize||(xe._default=[1,"div<div>","</div>"]),xt.fn.extend({text:function(e){return xt.access(this,function(e){ |
|||
return void 0===e?xt.text(this):this.empty().append((this[0]&&this[0].ownerDocument||bt).createTextNode(e))},null,e,arguments.length)},wrapAll:function(e){if(xt.isFunction(e))return this.each(function(t){xt(this).wrapAll(e.call(this,t))});if(this[0]){var t=xt(e,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){for(var e=this;e.firstChild&&1===e.firstChild.nodeType;)e=e.firstChild;return e}).append(this)}return this},wrapInner:function(e){return xt.isFunction(e)?this.each(function(t){xt(this).wrapInner(e.call(this,t))}):this.each(function(){var t=xt(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)})},wrap:function(e){var t=xt.isFunction(e);return this.each(function(n){xt(this).wrapAll(t?e.call(this,n):e)})},unwrap:function(){return this.parent().each(function(){xt.nodeName(this,"body")||xt(this).replaceWith(this.childNodes)}).end()},append:function(){return this.domManip(arguments,!0,function(e){1===this.nodeType&&this.appendChild(e)})},prepend:function(){return this.domManip(arguments,!0,function(e){1===this.nodeType&&this.insertBefore(e,this.firstChild)})},before:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,!1,function(e){this.parentNode.insertBefore(e,this)});if(arguments.length){var e=xt.clean(arguments);return e.push.apply(e,this.toArray()),this.pushStack(e,"before",arguments)}},after:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,!1,function(e){this.parentNode.insertBefore(e,this.nextSibling)});if(arguments.length){var e=this.pushStack(this,"after",arguments);return e.push.apply(e,xt.clean(arguments)),e}},remove:function(e,t){for(var n,r=0;null!=(n=this[r]);r++)e&&!xt.filter(e,[n]).length||(t||1!==n.nodeType||(xt.cleanData(n.getElementsByTagName("*")),xt.cleanData([n])),n.parentNode&&n.parentNode.removeChild(n));return this},empty:function(){for(var e,t=0;null!=(e=this[t]);t++)for(1===e.nodeType&&xt.cleanData(e.getElementsByTagName("*"));e.firstChild;)e.removeChild(e.firstChild);return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map(function(){return xt.clone(this,e,t)})},html:function(e){return xt.access(this,function(e){var t=this[0]||{},n=0,r=this.length;if(void 0===e)return 1===t.nodeType?t.innerHTML.replace(le,""):null;if("string"==typeof e&&!ge.test(e)&&(xt.support.leadingWhitespace||!fe.test(e))&&!xe[(de.exec(e)||["",""])[1].toLowerCase()]){e=e.replace(pe,"<$1></$2>");try{for(;n<r;n++)t=this[n]||{},1===t.nodeType&&(xt.cleanData(t.getElementsByTagName("*")),t.innerHTML=e);t=0}catch(e){}}t&&this.empty().append(e)},null,e,arguments.length)},replaceWith:function(e){return this[0]&&this[0].parentNode?xt.isFunction(e)?this.each(function(t){var n=xt(this),r=n.html();n.replaceWith(e.call(this,t,r))}):("string"!=typeof e&&(e=xt(e).detach()),this.each(function(){var t=this.nextSibling,n=this.parentNode;xt(this).remove(),t?xt(t).before(e):xt(n).append(e)})):this.length?this.pushStack(xt(xt.isFunction(e)?e():e),"replaceWith",e):this},detach:function(e){return this.remove(e,!0)}, |
|||
domManip:function(e,t,n){var r,o,i,a,s,u,c,l=e[0],p=[];if(!xt.support.checkClone&&3===arguments.length&&"string"==typeof l&&be.test(l))return this.each(function(){xt(this).domManip(e,t,n,!0)});if(xt.isFunction(l))return this.each(function(r){var o=xt(this);e[0]=l.call(this,r,t?o.html():void 0),o.domManip(e,t,n)});if(this[0]){if(a=l&&l.parentNode,r=xt.support.parentNode&&a&&11===a.nodeType&&a.childNodes.length===this.length?{fragment:a}:xt.buildFragment(e,this,p),i=r.fragment,o=1===i.childNodes.length?i=i.firstChild:i.firstChild)for(t=t&&xt.nodeName(o,"tr"),s=0,u=this.length,c=u-1;s<u;s++)n.call(t?f(this[s],o):this[s],r.cacheable||u>1&&s<c?xt.clone(i,!0,!0):i);p.length&&xt.each(p,function(e,t){t.src?xt.ajax({type:"GET",global:!1,url:t.src,async:!1,dataType:"script"}):xt.globalEval((t.text||t.textContent||t.innerHTML||"").replace(we,"/*$0*/")),t.parentNode&&t.parentNode.removeChild(t)})}return this}}),xt.buildFragment=function(e,t,n){var r,o,i,a,s=e[0];return t&&t[0]&&(a=t[0].ownerDocument||t[0]),a.createDocumentFragment||(a=bt),!(1===e.length&&"string"==typeof s&&s.length<512&&a===bt&&"<"===s.charAt(0))||ye.test(s)||!xt.support.checkClone&&be.test(s)||!xt.support.html5Clone&&ve.test(s)||(o=!0,(i=xt.fragments[s])&&1!==i&&(r=i)),r||(r=a.createDocumentFragment(),xt.clean(e,a,r,n)),o&&(xt.fragments[s]=i?r:1),{fragment:r,cacheable:o}},xt.fragments={},xt.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,t){xt.fn[e]=function(n){var r,o,i,a=[],s=xt(n),u=1===this.length&&this[0].parentNode;if(u&&11===u.nodeType&&1===u.childNodes.length&&1===s.length)return s[t](this[0]),this;for(r=0,o=s.length;r<o;r++)i=(r>0?this.clone(!0):this).get(),xt(s[r])[t](i),a=a.concat(i);return this.pushStack(a,e,s.selector)}}),xt.extend({clone:function(e,t,n){var r,o,i,a=xt.support.html5Clone||xt.isXMLDoc(e)||!ve.test("<"+e.nodeName+">")?e.cloneNode(!0):y(e);if(!(xt.support.noCloneEvent&&xt.support.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||xt.isXMLDoc(e)))for(d(e,a),r=h(e),o=h(a),i=0;r[i];++i)o[i]&&d(r[i],o[i]);if(t&&(p(e,a),n))for(r=h(e),o=h(a),i=0;r[i];++i)p(r[i],o[i]);return r=o=null,a},clean:function(e,t,n,r){var o,i,a,s,u,c,f,p,d,h,m,y,v,b,_,w=[];for(t=t||bt,void 0===t.createElement&&(t=t.ownerDocument||t[0]&&t[0].ownerDocument||bt),s=0;null!=(u=e[s]);s++)if("number"==typeof u&&(u+=""),u){if("string"==typeof u)if(me.test(u)){for(u=u.replace(pe,"<$1></$2>"),c=(de.exec(u)||["",""])[1].toLowerCase(),f=xe[c]||xe._default,p=f[0],d=t.createElement("div"),h=Ce.childNodes,t===bt?Ce.appendChild(d):l(t).appendChild(d),d.innerHTML=f[1]+u+f[2];p--;)d=d.lastChild;if(!xt.support.tbody)for(y=he.test(u),v="table"!==c||y?"<table>"!==f[1]||y?[]:d.childNodes:d.firstChild&&d.firstChild.childNodes,a=v.length-1;a>=0;--a)xt.nodeName(v[a],"tbody")&&!v[a].childNodes.length&&v[a].parentNode.removeChild(v[a]);!xt.support.leadingWhitespace&&fe.test(u)&&d.insertBefore(t.createTextNode(fe.exec(u)[0]),d.firstChild),u=d.childNodes,d&&(d.parentNode.removeChild(d), |
|||
h.length>0&&(m=h[h.length-1])&&m.parentNode&&m.parentNode.removeChild(m))}else u=t.createTextNode(u);if(!xt.support.appendChecked)if(u[0]&&"number"==typeof(b=u.length))for(a=0;a<b;a++)g(u[a]);else g(u);u.nodeType?w.push(u):w=xt.merge(w,u)}if(n)for(o=function(e){return!e.type||_e.test(e.type)},s=0;w[s];s++)i=w[s],r&&xt.nodeName(i,"script")&&(!i.type||_e.test(i.type))?r.push(i.parentNode?i.parentNode.removeChild(i):i):(1===i.nodeType&&(_=xt.grep(i.getElementsByTagName("script"),o),w.splice.apply(w,[s+1,0].concat(_))),n.appendChild(i));return w},cleanData:function(e){var t,n,r,o,i,a=xt.cache,s=xt.event.special,u=xt.support.deleteExpando;for(r=0;null!=(o=e[r]);r++)if((!o.nodeName||!xt.noData[o.nodeName.toLowerCase()])&&(n=o[xt.expando])){if((t=a[n])&&t.events){for(i in t.events)s[i]?xt.event.remove(o,i):xt.removeEvent(o,i,t.handle);t.handle&&(t.handle.elem=null)}u?delete o[xt.expando]:o.removeAttribute&&o.removeAttribute(xt.expando),delete a[n]}}}),Te=/alpha\([^)]*\)/i,ke=/opacity=([^)]*)/,Ee=/([A-Z]|^ms)/g,Se=/^[\-+]?(?:\d*\.)?\d+$/i,Me=/^-?(?:\d*\.)?\d+(?!px)[^\d\s]+$/i,Oe=/^([\-+])=([\-+.\de]+)/,Ne=/^margin/,De={position:"absolute",visibility:"hidden",display:"block"},Pe=["Top","Right","Bottom","Left"],xt.fn.css=function(e,t){return xt.access(this,function(e,t,n){return void 0!==n?xt.style(e,t,n):xt.css(e,t)},e,t,arguments.length>1)},xt.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=Ae(e,"opacity");return""===n?"1":n}return e.style.opacity}}},cssNumber:{fillOpacity:!0,fontWeight:!0,lineHeight:!0,opacity:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{float:xt.support.cssFloat?"cssFloat":"styleFloat"},style:function(e,t,n,r){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var o,i,a=xt.camelCase(t),s=e.style,u=xt.cssHooks[a];if(t=xt.cssProps[a]||a,void 0===n)return u&&"get"in u&&void 0!==(o=u.get(e,!1,r))?o:s[t];if(!(i=typeof n,"string"===i&&(o=Oe.exec(n))&&(n=+(o[1]+1)*+o[2]+parseFloat(xt.css(e,t)),i="number"),null==n||"number"===i&&isNaN(n)||("number"!==i||xt.cssNumber[a]||(n+="px"),u&&"set"in u&&void 0===(n=u.set(e,n)))))try{s[t]=n}catch(e){}}},css:function(e,t,n){var r,o;return t=xt.camelCase(t),o=xt.cssHooks[t],t=xt.cssProps[t]||t,"cssFloat"===t&&(t="float"),o&&"get"in o&&void 0!==(r=o.get(e,!0,n))?r:Ae?Ae(e,t):void 0},swap:function(e,t,n){var r,o,i={};for(o in t)i[o]=e.style[o],e.style[o]=t[o];r=n.call(e);for(o in t)e.style[o]=i[o];return r}}),xt.curCSS=xt.css,bt.defaultView&&bt.defaultView.getComputedStyle&&(Le=function(e,t){var n,r,o,i,a=e.style;return t=t.replace(Ee,"-$1").toLowerCase(),(r=e.ownerDocument.defaultView)&&(o=r.getComputedStyle(e,null))&&(""!==(n=o.getPropertyValue(t))||xt.contains(e.ownerDocument.documentElement,e)||(n=xt.style(e,t))),!xt.support.pixelMargin&&o&&Ne.test(t)&&Me.test(n)&&(i=a.width,a.width=n,n=o.width,a.width=i),n}),bt.documentElement.currentStyle&&(Ie=function(e,t){var n,r,o,i=e.currentStyle&&e.currentStyle[t],a=e.style;return null==i&&a&&(o=a[t])&&(i=o),Me.test(i)&&(n=a.left,r=e.runtimeStyle&&e.runtimeStyle.left,r&&(e.runtimeStyle.left=e.currentStyle.left), |
|||
a.left="fontSize"===t?"1em":i,i=a.pixelLeft+"px",a.left=n,r&&(e.runtimeStyle.left=r)),""===i?"auto":i}),Ae=Le||Ie,xt.each(["height","width"],function(e,t){xt.cssHooks[t]={get:function(e,n,r){if(n)return 0!==e.offsetWidth?v(e,t,r):xt.swap(e,De,function(){return v(e,t,r)})},set:function(e,t){return Se.test(t)?t+"px":t}}}),xt.support.opacity||(xt.cssHooks.opacity={get:function(e,t){return ke.test((t&&e.currentStyle?e.currentStyle.filter:e.style.filter)||"")?parseFloat(RegExp.$1)/100+"":t?"1":""},set:function(e,t){var n=e.style,r=e.currentStyle,o=xt.isNumeric(t)?"alpha(opacity="+100*t+")":"",i=r&&r.filter||n.filter||"";n.zoom=1,t>=1&&""===xt.trim(i.replace(Te,""))&&(n.removeAttribute("filter"),r&&!r.filter)||(n.filter=Te.test(i)?i.replace(Te,o):i+" "+o)}}),xt(function(){xt.support.reliableMarginRight||(xt.cssHooks.marginRight={get:function(e,t){return xt.swap(e,{display:"inline-block"},function(){return t?Ae(e,"margin-right"):e.style.marginRight})}})}),xt.expr&&xt.expr.filters&&(xt.expr.filters.hidden=function(e){var t=e.offsetWidth,n=e.offsetHeight;return 0===t&&0===n||!xt.support.reliableHiddenOffsets&&"none"===(e.style&&e.style.display||xt.css(e,"display"))},xt.expr.filters.visible=function(e){return!xt.expr.filters.hidden(e)}),xt.each({margin:"",padding:"",border:"Width"},function(e,t){xt.cssHooks[e+t]={expand:function(n){var r,o="string"==typeof n?n.split(" "):[n],i={};for(r=0;r<4;r++)i[e+Pe[r]+t]=o[r]||o[r-2]||o[0];return i}}}),je=/%20/g,Re=/\[\]$/,Fe=/\r?\n/g,Ue=/#.*$/,He=/^(.*?):[ \t]*([^\r\n]*)\r?$/gm,Ye=/^(?:color|date|datetime|datetime-local|email|hidden|month|number|password|range|search|tel|text|time|url|week)$/i,We=/^(?:about|app|app\-storage|.+\-extension|file|res|widget):$/,Be=/^(?:GET|HEAD)$/,Ve=/^\/\//,qe=/\?/,ze=/<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi,$e=/^(?:select|textarea)/i,Ge=/\s+/,Ke=/([?&])_=[^&]*/,Xe=/^([\w\+\.\-]+:)(?:\/\/([^\/?#:]*)(?::(\d+))?)?/,Qe=xt.fn.load,Je={},Ze={},nt="*/*";try{et=wt.href}catch(e){et=bt.createElement("a"),et.href="",et=et.href}tt=Xe.exec(et.toLowerCase())||[],xt.fn.extend({load:function(e,t,n){var r,o,i,a;return"string"!=typeof e&&Qe?Qe.apply(this,arguments):this.length?(r=e.indexOf(" "),r>=0&&(o=e.slice(r,e.length),e=e.slice(0,r)),i="GET",t&&(xt.isFunction(t)?(n=t,t=void 0):"object"==typeof t&&(t=xt.param(t,xt.ajaxSettings.traditional),i="POST")),a=this,xt.ajax({url:e,type:i,dataType:"html",data:t,complete:function(e,t,r){r=e.responseText,e.isResolved()&&(e.done(function(e){r=e}),a.html(o?xt("<div>").append(r.replace(ze,"")).find(o):r)),n&&a.each(n,[r,t,e])}}),this):this},serialize:function(){return xt.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?xt.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||$e.test(this.nodeName)||Ye.test(this.type))}).map(function(e,t){var n=xt(this).val();return null==n?null:xt.isArray(n)?xt.map(n,function(e,n){return{name:t.name,value:e.replace(Fe,"\r\n")}}):{name:t.name,value:n.replace(Fe,"\r\n")}}).get()}}), |
|||
xt.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(e,t){xt.fn[t]=function(e){return this.on(t,e)}}),xt.each(["get","post"],function(e,t){xt[t]=function(e,n,r,o){return xt.isFunction(n)&&(o=o||r,r=n,n=void 0),xt.ajax({type:t,url:e,data:n,success:r,dataType:o})}}),xt.extend({getScript:function(e,t){return xt.get(e,void 0,t,"script")},getJSON:function(e,t,n){return xt.get(e,t,n,"json")},ajaxSetup:function(e,t){return t?w(e,xt.ajaxSettings):(t=e,e=xt.ajaxSettings),w(e,t),e},ajaxSettings:{url:et,isLocal:We.test(tt[1]),global:!0,type:"GET",contentType:"application/x-www-form-urlencoded; charset=UTF-8",processData:!0,async:!0,accepts:{xml:"application/xml, text/xml",html:"text/html",text:"text/plain",json:"application/json, text/javascript","*":nt},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText"},converters:{"* text":window.String,"text html":!0,"text json":xt.parseJSON,"text xml":xt.parseXML},flatOptions:{context:!0,url:!0}},ajaxPrefilter:b(Je),ajaxTransport:b(Ze),ajax:function(e,t){function n(e,t,n,l){if(2!==y){y=2,m&&clearTimeout(m),h=void 0,p=l||"",w.readyState=e>0?4:0;var f,d,g,b,_,x=t,k=n?C(r,w,n):void 0;if(e>=200&&e<300||304===e)if(r.ifModified&&((b=w.getResponseHeader("Last-Modified"))&&(xt.lastModified[c]=b),(_=w.getResponseHeader("Etag"))&&(xt.etag[c]=_)),304===e)x="notmodified",f=!0;else try{d=T(r,k),x="success",f=!0}catch(e){x="parsererror",g=e}else g=x,x&&!e||(x="error",e<0&&(e=0));w.status=e,w.statusText=""+(t||x),f?a.resolveWith(o,[d,x,w]):a.rejectWith(o,[w,x,g]),w.statusCode(u),u=void 0,v&&i.trigger("ajax"+(f?"Success":"Error"),[w,r,f?d:g]),s.fireWith(o,[w,x]),v&&(i.trigger("ajaxComplete",[w,r]),--xt.active||xt.event.trigger("ajaxStop"))}}var r,o,i,a,s,u,c,l,f,p,d,h,m,g,y,v,b,w,x,k;if("object"==typeof e&&(t=e,e=void 0),t=t||{},r=xt.ajaxSetup({},t),o=r.context||r,i=o!==r&&(o.nodeType||o instanceof xt)?xt(o):xt.event,a=xt.Deferred(),s=xt.Callbacks("once memory"),u=r.statusCode||{},l={},f={},y=0,w={readyState:0,setRequestHeader:function(e,t){if(!y){var n=e.toLowerCase();e=f[n]=f[n]||e,l[e]=t}return this},getAllResponseHeaders:function(){return 2===y?p:null},getResponseHeader:function(e){var t;if(2===y){if(!d)for(d={};t=He.exec(p);)d[t[1].toLowerCase()]=t[2];t=d[e.toLowerCase()]}return void 0===t?null:t},overrideMimeType:function(e){return y||(r.mimeType=e),this},abort:function(e){return e=e||"abort",h&&h.abort(e),n(0,e),this}},a.promise(w),w.success=w.done,w.error=w.fail,w.complete=s.add,w.statusCode=function(e){if(e){var t;if(y<2)for(t in e)u[t]=[u[t],e[t]];else t=e[w.status],w.then(t,t)}return this},r.url=((e||r.url)+"").replace(Ue,"").replace(Ve,tt[1]+"//"),r.dataTypes=xt.trim(r.dataType||"*").toLowerCase().split(Ge),null==r.crossDomain&&(g=Xe.exec(r.url.toLowerCase()),r.crossDomain=!(!g||g[1]==tt[1]&&g[2]==tt[2]&&(g[3]||("http:"===g[1]?80:443))==(tt[3]||("http:"===tt[1]?80:443)))),r.data&&r.processData&&"string"!=typeof r.data&&(r.data=xt.param(r.data,r.traditional)),_(Je,r,t,w),2===y)return!1;v=r.global, |
|||
r.type=r.type.toUpperCase(),r.hasContent=!Be.test(r.type),v&&0==xt.active++&&xt.event.trigger("ajaxStart"),r.hasContent||(r.data&&(r.url+=(qe.test(r.url)?"&":"?")+r.data,delete r.data),c=r.url,!1===r.cache&&(x=xt.now(),k=r.url.replace(Ke,"$1_="+x),r.url=k+(k===r.url?(qe.test(r.url)?"&":"?")+"_="+x:""))),(r.data&&r.hasContent&&!1!==r.contentType||t.contentType)&&w.setRequestHeader("Content-Type",r.contentType),r.ifModified&&(c=c||r.url,xt.lastModified[c]&&w.setRequestHeader("If-Modified-Since",xt.lastModified[c]),xt.etag[c]&&w.setRequestHeader("If-None-Match",xt.etag[c])),w.setRequestHeader("Accept",r.dataTypes[0]&&r.accepts[r.dataTypes[0]]?r.accepts[r.dataTypes[0]]+("*"!==r.dataTypes[0]?", "+nt+"; q=0.01":""):r.accepts["*"]);for(b in r.headers)w.setRequestHeader(b,r.headers[b]);if(r.beforeSend&&(!1===r.beforeSend.call(o,w,r)||2===y))return w.abort(),!1;for(b in{success:1,error:1,complete:1})w[b](r[b]);if(h=_(Ze,r,t,w)){w.readyState=1,v&&i.trigger("ajaxSend",[w,r]),r.async&&r.timeout>0&&(m=setTimeout(function(){w.abort("timeout")},r.timeout));try{y=1,h.send(l,n)}catch(e){if(!(y<2))throw e;n(-1,e)}}else n(-1,"No Transport");return w},param:function(e,t){var n,r=[],o=function(e,t){t=xt.isFunction(t)?t():t,r[r.length]=encodeURIComponent(e)+"="+encodeURIComponent(t)};if(void 0===t&&(t=xt.ajaxSettings.traditional),xt.isArray(e)||e.jquery&&!xt.isPlainObject(e))xt.each(e,function(){o(this.name,this.value)});else for(n in e)x(n,e[n],t,o);return r.join("&").replace(je,"+")}}),xt.extend({active:0,lastModified:{},etag:{}}),rt=xt.now(),ot=/(\=)\?(&|$)|\?\?/i,xt.ajaxSetup({jsonp:"callback",jsonpCallback:function(){return xt.expando+"_"+rt++}}),xt.ajaxPrefilter("json jsonp",function(e,t,n){var r,o,i,a,s,u,c="string"==typeof e.data&&/^application\/x\-www\-form\-urlencoded/.test(e.contentType);if("jsonp"===e.dataTypes[0]||!1!==e.jsonp&&(ot.test(e.url)||c&&ot.test(e.data)))return o=e.jsonpCallback=xt.isFunction(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,i=window[o],a=e.url,s=e.data,u="$1"+o+"$2",!1!==e.jsonp&&(a=a.replace(ot,u),e.url===a&&(c&&(s=s.replace(ot,u)),e.data===s&&(a+=(/\?/.test(a)?"&":"?")+e.jsonp+"="+o))),e.url=a,e.data=s,window[o]=function(e){r=[e]},n.always(function(){window[o]=i,r&&xt.isFunction(i)&&window[o](r[0])}),e.converters["script json"]=function(){return r||xt.error(o+" was not called"),r[0]},e.dataTypes[0]="json","script"}),xt.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/javascript|ecmascript/},converters:{"text script":function(e){return xt.globalEval(e),e}}}),xt.ajaxPrefilter("script",function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET",e.global=!1)}),xt.ajaxTransport("script",function(e){if(e.crossDomain){var t,n=bt.head||bt.getElementsByTagName("head")[0]||bt.documentElement;return{send:function(r,o){t=bt.createElement("script"),t.async="async",e.scriptCharset&&(t.charset=e.scriptCharset),t.src=e.url,t.onload=t.onreadystatechange=function(e,r){ |
|||
(r||!t.readyState||/loaded|complete/.test(t.readyState))&&(t.onload=t.onreadystatechange=null,n&&t.parentNode&&n.removeChild(t),t=void 0,r||o(200,"success"))},n.insertBefore(t,n.firstChild)},abort:function(){t&&t.onload(0,1)}}}}),it=!!window.ActiveXObject&&function(){for(var e in st)st[e](0,1)},at=0,xt.ajaxSettings.xhr=window.ActiveXObject?function(){return!this.isLocal&&k()||E()}:k,function(e){xt.extend(xt.support,{ajax:!!e,cors:!!e&&"withCredentials"in e})}(xt.ajaxSettings.xhr()),xt.support.ajax&&xt.ajaxTransport(function(e){if(!e.crossDomain||xt.support.cors){var t;return{send:function(n,r){var o,i,a=e.xhr();if(e.username?a.open(e.type,e.url,e.async,e.username,e.password):a.open(e.type,e.url,e.async),e.xhrFields)for(i in e.xhrFields)a[i]=e.xhrFields[i];e.mimeType&&a.overrideMimeType&&a.overrideMimeType(e.mimeType),e.crossDomain||n["X-Requested-With"]||(n["X-Requested-With"]="XMLHttpRequest");try{for(i in n)a.setRequestHeader(i,n[i])}catch(e){}a.send(e.hasContent&&e.data||null),t=function(n,i){var s,u,c,l,f;try{if(t&&(i||4===a.readyState))if(t=void 0,o&&(a.onreadystatechange=xt.noop,it&&delete st[o]),i)4!==a.readyState&&a.abort();else{s=a.status,c=a.getAllResponseHeaders(),l={},f=a.responseXML,f&&f.documentElement&&(l.xml=f);try{l.text=a.responseText}catch(n){}try{u=a.statusText}catch(e){u=""}s||!e.isLocal||e.crossDomain?1223===s&&(s=204):s=l.text?200:404}}catch(e){i||r(-1,e)}l&&r(s,u,l,c)},e.async&&4!==a.readyState?(o=++at,it&&(st||(st={},xt(window).unload(it)),st[o]=t),a.onreadystatechange=t):t()},abort:function(){t&&t(0,1)}}}}),ut={},ft=/^(?:toggle|show|hide)$/,pt=/^([+\-]=)?([\d+.\-]+)([a-z%]*)$/i,ht=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]],xt.fn.extend({show:function(e,t,n){var r,o,i,a;if(e||0===e)return this.animate(O("show",3),e,t,n);for(i=0,a=this.length;i<a;i++)r=this[i],r.style&&(o=r.style.display,xt._data(r,"olddisplay")||"none"!==o||(o=r.style.display=""),(""===o&&"none"===xt.css(r,"display")||!xt.contains(r.ownerDocument.documentElement,r))&&xt._data(r,"olddisplay",N(r.nodeName)));for(i=0;i<a;i++)r=this[i],r.style&&(""!==(o=r.style.display)&&"none"!==o||(r.style.display=xt._data(r,"olddisplay")||""));return this},hide:function(e,t,n){if(e||0===e)return this.animate(O("hide",3),e,t,n);for(var r,o,i=0,a=this.length;i<a;i++)r=this[i],r.style&&("none"===(o=xt.css(r,"display"))||xt._data(r,"olddisplay")||xt._data(r,"olddisplay",o));for(i=0;i<a;i++)this[i].style&&(this[i].style.display="none");return this},_toggle:xt.fn.toggle,toggle:function(e,t,n){var r="boolean"==typeof e;return xt.isFunction(e)&&xt.isFunction(t)?this._toggle.apply(this,arguments):null==e||r?this.each(function(){var t=r?e:xt(this).is(":hidden");xt(this)[t?"show":"hide"]()}):this.animate(O("toggle",3),e,t,n),this},fadeTo:function(e,t,n,r){return this.filter(":hidden").css("opacity",0).show().end().animate({opacity:t},e,n,r)},animate:function(e,t,n,r){function o(){!1===i.queue&&xt._mark(this) |
|||
;var t,n,r,o,a,s,u,c,l,f,p,d=xt.extend({},i),h=1===this.nodeType,m=h&&xt(this).is(":hidden");d.animatedProperties={};for(r in e)if(t=xt.camelCase(r),r!==t&&(e[t]=e[r],delete e[r]),(a=xt.cssHooks[t])&&"expand"in a){s=a.expand(e[t]),delete e[t];for(r in s)r in e||(e[r]=s[r])}for(t in e){if(n=e[t],xt.isArray(n)?(d.animatedProperties[t]=n[1],n=e[t]=n[0]):d.animatedProperties[t]=d.specialEasing&&d.specialEasing[t]||d.easing||"swing","hide"===n&&m||"show"===n&&!m)return d.complete.call(this);!h||"height"!==t&&"width"!==t||(d.overflow=[this.style.overflow,this.style.overflowX,this.style.overflowY],"inline"===xt.css(this,"display")&&"none"===xt.css(this,"float")&&(xt.support.inlineBlockNeedsLayout&&"inline"!==N(this.nodeName)?this.style.zoom=1:this.style.display="inline-block"))}null!=d.overflow&&(this.style.overflow="hidden");for(r in e)o=new xt.fx(this,d,r),n=e[r],ft.test(n)?(p=xt._data(this,"toggle"+r)||("toggle"===n?m?"show":"hide":0),p?(xt._data(this,"toggle"+r,"show"===p?"hide":"show"),o[p]()):o[n]()):(u=pt.exec(n),c=o.cur(),u?(l=parseFloat(u[2]),f=u[3]||(xt.cssNumber[r]?"":"px"),"px"!==f&&(xt.style(this,r,(l||1)+f),c=(l||1)/o.cur()*c,xt.style(this,r,c+f)),u[1]&&(l=("-="===u[1]?-1:1)*l+c),o.custom(c,l,f)):o.custom(c,n,""));return!0}var i=xt.speed(t,n,r);return xt.isEmptyObject(e)?this.each(i.complete,[!1]):(e=xt.extend({},e),!1===i.queue?this.each(o):this.queue(i.queue,o))},stop:function(e,t,n){return"string"!=typeof e&&(n=t,t=e,e=void 0),t&&!1!==e&&this.queue(e||"fx",[]),this.each(function(){function t(e,t,r){var o=t[r];xt.removeData(e,r,!0),o.stop(n)}var r,o=!1,i=xt.timers,a=xt._data(this);if(n||xt._unmark(!0,this),null==e)for(r in a)a[r]&&a[r].stop&&r.indexOf(".run")===r.length-4&&t(this,a,r);else a[r=e+".run"]&&a[r].stop&&t(this,a,r);for(r=i.length;r--;)i[r].elem!==this||null!=e&&i[r].queue!==e||(n?i[r](!0):i[r].saveState(),o=!0,i.splice(r,1));n&&o||xt.dequeue(this,e)})}}),xt.each({slideDown:O("show",1),slideUp:O("hide",1),slideToggle:O("toggle",1),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(e,t){xt.fn[e]=function(e,n,r){return this.animate(t,e,n,r)}}),xt.extend({speed:function(e,t,n){var r=e&&"object"==typeof e?xt.extend({},e):{complete:n||!n&&t||xt.isFunction(e)&&e,duration:e,easing:n&&t||t&&!xt.isFunction(t)&&t};return r.duration=xt.fx.off?0:"number"==typeof r.duration?r.duration:r.duration in xt.fx.speeds?xt.fx.speeds[r.duration]:xt.fx.speeds._default,null!=r.queue&&!0!==r.queue||(r.queue="fx"),r.old=r.complete,r.complete=function(e){xt.isFunction(r.old)&&r.old.call(this),r.queue?xt.dequeue(this,r.queue):!1!==e&&xt._unmark(this)},r},easing:{linear:function(e){return e},swing:function(e){return-Math.cos(e*Math.PI)/2+.5}},timers:[],fx:function(e,t,n){this.options=t,this.elem=e,this.prop=n,t.orig=t.orig||{}}}),xt.fx.prototype={update:function(){this.options.step&&this.options.step.call(this.elem,this.now,this),(xt.fx.step[this.prop]||xt.fx.step._default)(this)},cur:function(){ |
|||
if(null!=this.elem[this.prop]&&(!this.elem.style||null==this.elem.style[this.prop]))return this.elem[this.prop];var e,t=xt.css(this.elem,this.prop);return isNaN(e=parseFloat(t))?t&&"auto"!==t?t:0:e},custom:function(e,t,n){function r(e){return o.step(e)}var o=this,i=xt.fx;this.startTime=mt||S(),this.end=t,this.now=this.start=e,this.pos=this.state=0,this.unit=n||this.unit||(xt.cssNumber[this.prop]?"":"px"),r.queue=this.options.queue,r.elem=this.elem,r.saveState=function(){void 0===xt._data(o.elem,"fxshow"+o.prop)&&(o.options.hide?xt._data(o.elem,"fxshow"+o.prop,o.start):o.options.show&&xt._data(o.elem,"fxshow"+o.prop,o.end))},r()&&xt.timers.push(r)&&!dt&&(dt=setInterval(i.tick,i.interval))},show:function(){var e=xt._data(this.elem,"fxshow"+this.prop);this.options.orig[this.prop]=e||xt.style(this.elem,this.prop),this.options.show=!0,void 0!==e?this.custom(this.cur(),e):this.custom("width"===this.prop||"height"===this.prop?1:0,this.cur()),xt(this.elem).show()},hide:function(){this.options.orig[this.prop]=xt._data(this.elem,"fxshow"+this.prop)||xt.style(this.elem,this.prop),this.options.hide=!0,this.custom(this.cur(),0)},step:function(e){var t,n,r,o=mt||S(),i=!0,a=this.elem,s=this.options;if(e||o>=s.duration+this.startTime){this.now=this.end,this.pos=this.state=1,this.update(),s.animatedProperties[this.prop]=!0;for(t in s.animatedProperties)!0!==s.animatedProperties[t]&&(i=!1);if(i){if(null==s.overflow||xt.support.shrinkWrapBlocks||xt.each(["","X","Y"],function(e,t){a.style["overflow"+t]=s.overflow[e]}),s.hide&&xt(a).hide(),s.hide||s.show)for(t in s.animatedProperties)xt.style(a,t,s.orig[t]),xt.removeData(a,"fxshow"+t,!0),xt.removeData(a,"toggle"+t,!0);r=s.complete,r&&(s.complete=!1,r.call(a))}return!1}return s.duration==1/0?this.now=o:(n=o-this.startTime,this.state=n/s.duration,this.pos=xt.easing[s.animatedProperties[this.prop]](this.state,n,0,1,s.duration),this.now=this.start+(this.end-this.start)*this.pos),this.update(),!0}},xt.extend(xt.fx,{tick:function(){for(var e,t=xt.timers,n=0;n<t.length;n++)(e=t[n])()||t[n]!==e||t.splice(n--,1);t.length||xt.fx.stop()},interval:13,stop:function(){clearInterval(dt),dt=null},speeds:{slow:600,fast:200,_default:400},step:{opacity:function(e){xt.style(e.elem,"opacity",e.now)},_default:function(e){e.elem.style&&null!=e.elem.style[e.prop]?e.elem.style[e.prop]=e.now+e.unit:e.elem[e.prop]=e.now}}}),xt.each(ht.concat.apply([],ht),function(e,t){t.indexOf("margin")&&(xt.fx.step[t]=function(e){xt.style(e.elem,t,Math.max(0,e.now)+e.unit)})}),xt.expr&&xt.expr.filters&&(xt.expr.filters.animated=function(e){return xt.grep(xt.timers,function(t){return e===t.elem}).length}),yt=/^t(?:able|d|h)$/i,vt=/^(?:body|html)$/i,gt="getBoundingClientRect"in bt.documentElement?function(e,t,n,r){try{r=e.getBoundingClientRect()}catch(e){}if(!r||!xt.contains(n,e))return r?{top:r.top,left:r.left}:{top:0,left:0} |
|||
;var o=t.body,i=D(t),a=n.clientTop||o.clientTop||0,s=n.clientLeft||o.clientLeft||0,u=i.pageYOffset||xt.support.boxModel&&n.scrollTop||o.scrollTop,c=i.pageXOffset||xt.support.boxModel&&n.scrollLeft||o.scrollLeft;return{top:r.top+u-a,left:r.left+c-s}}:function(e,t,n){for(var r,o=e.offsetParent,i=t.body,a=t.defaultView,s=a?a.getComputedStyle(e,null):e.currentStyle,u=e.offsetTop,c=e.offsetLeft;(e=e.parentNode)&&e!==i&&e!==n&&(!xt.support.fixedPosition||"fixed"!==s.position);)r=a?a.getComputedStyle(e,null):e.currentStyle,u-=e.scrollTop,c-=e.scrollLeft,e===o&&(u+=e.offsetTop,c+=e.offsetLeft,!xt.support.doesNotAddBorder||xt.support.doesAddBorderForTableAndCells&&yt.test(e.nodeName)||(u+=parseFloat(r.borderTopWidth)||0,c+=parseFloat(r.borderLeftWidth)||0),o,o=e.offsetParent),xt.support.subtractsBorderForOverflowNotVisible&&"visible"!==r.overflow&&(u+=parseFloat(r.borderTopWidth)||0,c+=parseFloat(r.borderLeftWidth)||0),s=r;return"relative"!==s.position&&"static"!==s.position||(u+=i.offsetTop,c+=i.offsetLeft),xt.support.fixedPosition&&"fixed"===s.position&&(u+=Math.max(n.scrollTop,i.scrollTop),c+=Math.max(n.scrollLeft,i.scrollLeft)),{top:u,left:c}},xt.fn.offset=function(e){if(arguments.length)return void 0===e?this:this.each(function(t){xt.offset.setOffset(this,e,t)});var t=this[0],n=t&&t.ownerDocument;return n?t===n.body?xt.offset.bodyOffset(t):gt(t,n,n.documentElement):null},xt.offset={bodyOffset:function(e){var t=e.offsetTop,n=e.offsetLeft;return xt.support.doesNotIncludeMarginInBodyOffset&&(t+=parseFloat(xt.css(e,"marginTop"))||0,n+=parseFloat(xt.css(e,"marginLeft"))||0),{top:t,left:n}},setOffset:function(e,t,n){var r,o,i,a,s,u,c,l,f,p=xt.css(e,"position");"static"===p&&(e.style.position="relative"),r=xt(e),o=r.offset(),i=xt.css(e,"top"),a=xt.css(e,"left"),s=("absolute"===p||"fixed"===p)&&xt.inArray("auto",[i,a])>-1,u={},c={},s?(c=r.position(),l=c.top,f=c.left):(l=parseFloat(i)||0,f=parseFloat(a)||0),xt.isFunction(t)&&(t=t.call(e,n,o)),null!=t.top&&(u.top=t.top-o.top+l),null!=t.left&&(u.left=t.left-o.left+f),"using"in t?t.using.call(e,u):r.css(u)}},xt.fn.extend({position:function(){if(!this[0])return null;var e=this[0],t=this.offsetParent(),n=this.offset(),r=vt.test(t[0].nodeName)?{top:0,left:0}:t.offset();return n.top-=parseFloat(xt.css(e,"marginTop"))||0,n.left-=parseFloat(xt.css(e,"marginLeft"))||0,r.top+=parseFloat(xt.css(t[0],"borderTopWidth"))||0,r.left+=parseFloat(xt.css(t[0],"borderLeftWidth"))||0,{top:n.top-r.top,left:n.left-r.left}},offsetParent:function(){return this.map(function(){for(var e=this.offsetParent||bt.body;e&&!vt.test(e.nodeName)&&"static"===xt.css(e,"position");)e=e.offsetParent;return e})}}),xt.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(e,t){var n=/Y/.test(t);xt.fn[e]=function(r){return xt.access(this,function(e,r,o){var i=D(e);if(void 0===o)return i?t in i?i[t]:xt.support.boxModel&&i.document.documentElement[r]||i.document.body[r]:e[r];i?i.scrollTo(n?xt(i).scrollLeft():o,n?o:xt(i).scrollTop()):e[r]=o},e,r,arguments.length,null)}}),xt.each({Height:"height",Width:"width" |
|||
},function(e,t){var n="client"+e,r="scroll"+e,o="offset"+e;xt.fn["inner"+e]=function(){var e=this[0];return e?e.style?parseFloat(xt.css(e,t,"padding")):this[t]():null},xt.fn["outer"+e]=function(e){var n=this[0];return n?n.style?parseFloat(xt.css(n,t,e?"margin":"border")):this[t]():null},xt.fn[t]=function(e){return xt.access(this,function(e,t,i){var a,s,u,c;return xt.isWindow(e)?(a=e.document,s=a.documentElement[n],xt.support.boxModel&&s||a.body&&a.body[n]||s):9===e.nodeType?(a=e.documentElement,a[n]>=a[r]?a[n]:Math.max(e.body[r],a[r],e.body[o],a[o])):void 0===i?(u=xt.css(e,t),c=parseFloat(u),xt.isNumeric(c)?c:u):void xt(e).css(t,i)},t,e,arguments.length,null)}}),e.exports=window.jQuery=window.$=xt},,function(e,t,n){"use strict";var r=n(66),o=r;e.exports=o},function(e,t){"use strict";function n(e){var t,n,r=arguments.length-1,o="Minified React error #"+e+"; visit http://facebook.github.io/react/docs/error-decoder.html?invariant="+e;for(t=0;t<r;t++)o+="&args[]="+encodeURIComponent(arguments[t+1]);throw o+=" for the full message or use the non-minified dev environment for full errors and additional helpful warnings.",n=Error(o),n.name="Invariant Violation",n.framesToPop=1,n}e.exports=n},function(e,t,n){var r,o;!function(){"use strict";function n(){var e,t,r,o,a=[];for(e=0;e<arguments.length;e++)if(t=arguments[e])if("string"===(r=typeof t)||"number"===r)a.push(t);else if(Array.isArray(t))a.push(n.apply(null,t));else if("object"===r)for(o in t)i.call(t,o)&&t[o]&&a.push(o);return a.join(" ")}var i={}.hasOwnProperty;void 0!==e&&e.exports?e.exports=n:(r=[],void 0!==(o=function(){return n}.apply(t,r))&&(e.exports=o))}()},,,function(e,t,n){var r=n(50);e.exports=function(e){if(!r(e))throw TypeError(e+" is not an object!");return e}},function(e,t){"use strict";function n(e){if(null===e||void 0===e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function r(){var e,t,n,r,o;try{if(!Object.assign)return!1;if(e=new String("abc"),e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;return r=Object.getOwnPropertyNames(t).map(function(e){return t[e]}),"0123456789"!==r.join("")?!1:(o={},"abcdefghijklmnopqrst".split("").forEach(function(e){o[e]=e}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},o)).join(""))}catch(e){return!1}}var o=Object.getOwnPropertySymbols,i=Object.prototype.hasOwnProperty,a=Object.prototype.propertyIsEnumerable;e.exports=r()?Object.assign:function(e,t){var r,s,u,c,l,f=n(e);for(u=1;u<arguments.length;u++){r=Object(arguments[u]);for(c in r)i.call(r,c)&&(f[c]=r[c]);if(o)for(s=o(r),l=0;l<s.length;l++)a.call(r,s[l])&&(f[s[l]]=r[s[l]])}return f}},,function(e,t,n){"use strict";function r(e,t){return 1===e.nodeType&&e.getAttribute(h)===t+""||8===e.nodeType&&e.nodeValue===" react-text: "+t+" "||8===e.nodeType&&e.nodeValue===" react-empty: "+t+" "}function o(e){for(var t;t=e._renderedComponent;)e=t;return e}function i(e,t){var n=o(e);n._hostNode=t,t[g]=n}function a(e){var t=e._hostNode;t&&(delete t[g], |
|||
e._hostNode=null)}function s(e,t){var n,a,s,u,c;if(!(e._flags&m.hasCachedChildNodes)){n=e._renderedChildren,a=t.firstChild;e:for(s in n)if(n.hasOwnProperty(s)&&(u=n[s],0!==(c=o(u)._domID))){for(;null!==a;a=a.nextSibling)if(r(a,c)){i(u,a);continue e}f("32",c)}e._flags|=m.hasCachedChildNodes}}function u(e){var t,n,r;if(e[g])return e[g];for(t=[];!e[g];){if(t.push(e),!e.parentNode)return null;e=e.parentNode}for(;e&&(r=e[g]);e=t.pop())n=r,t.length&&s(r,e);return n}function c(e){var t=u(e);return null!=t&&t._hostNode===e?t:null}function l(e){if(void 0===e._hostNode&&f("33"),e._hostNode)return e._hostNode;for(var t=[];!e._hostNode;)t.push(e),e._hostParent||f("34"),e=e._hostParent;for(;t.length;e=t.pop())s(e,e._hostNode);return e._hostNode}var f=n(25),p=n(138),d=n(442),h=(n(17),p.ID_ATTRIBUTE_NAME),m=d,g="__reactInternalInstance$"+Math.random().toString(36).slice(2),y={getClosestInstanceFromNode:u,getInstanceFromNode:c,getNodeFromInstance:l,precacheChildNodes:s,precacheNode:i,uncacheNode:a};e.exports=y},,,function(e,t){var n=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(e,t,n){(function(e){!function(t,n){e.exports=n()}(0,function(){"use strict";function t(){return jn.apply(null,arguments)}function r(e){jn=e}function o(e){return"[object Array]"===Object.prototype.toString.call(e)}function i(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function a(e,t){var n,r=[];for(n=0;n<e.length;++n)r.push(t(e[n],n));return r}function s(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function u(e,t){for(var n in t)s(t,n)&&(e[n]=t[n]);return s(t,"toString")&&(e.toString=t.toString),s(t,"valueOf")&&(e.valueOf=t.valueOf),e}function c(e,t,n,r){return Ne(e,t,n,r,!0).utc()}function l(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1}}function f(e){return null==e._pf&&(e._pf=l()),e._pf}function p(e){if(null==e._isValid){var t=f(e);e._isValid=!(isNaN(e._d.getTime())||!(t.overflow<0)||t.empty||t.invalidMonth||t.invalidWeekday||t.nullInput||t.invalidFormat||t.userInvalidated),e._strict&&(e._isValid=e._isValid&&0===t.charsLeftOver&&0===t.unusedTokens.length&&void 0===t.bigHour)}return e._isValid}function d(e){var t=c(NaN);return null!=e?u(f(t),e):f(t).userInvalidated=!0,t}function h(e,t){var n,r,o;if(void 0!==t._isAMomentObject&&(e._isAMomentObject=t._isAMomentObject),void 0!==t._i&&(e._i=t._i),void 0!==t._f&&(e._f=t._f),void 0!==t._l&&(e._l=t._l),void 0!==t._strict&&(e._strict=t._strict),void 0!==t._tzm&&(e._tzm=t._tzm),void 0!==t._isUTC&&(e._isUTC=t._isUTC),void 0!==t._offset&&(e._offset=t._offset),void 0!==t._pf&&(e._pf=f(t)),void 0!==t._locale&&(e._locale=t._locale),Hr.length>0)for(n in Hr)r=Hr[n],void 0!==(o=t[r])&&(e[r]=o);return e}function m(e){h(this,e),this._d=new Date(null!=e._d?e._d.getTime():NaN),!1===Yr&&(Yr=!0,t.updateOffset(this),Yr=!1)}function g(e){ |
|||
return e instanceof m||null!=e&&null!=e._isAMomentObject}function y(e){return e<0?Math.ceil(e):Math.floor(e)}function v(e){var t=+e,n=0;return 0!==t&&isFinite(t)&&(n=y(t)),n}function b(e,t,n){var r,o=Math.min(e.length,t.length),i=Math.abs(e.length-t.length),a=0;for(r=0;r<o;r++)(n&&e[r]!==t[r]||!n&&v(e[r])!==v(t[r]))&&a++;return a+i}function _(){}function w(e){return e?e.toLowerCase().replace("_","-"):e}function x(e){for(var t,n,r,o,i=0;i<e.length;){for(o=w(e[i]).split("-"),t=o.length,n=w(e[i+1]),n=n?n.split("-"):null;t>0;){if(r=C(o.slice(0,t).join("-")))return r;if(n&&n.length>=t&&b(o,n,!0)>=t-1)break;t--}i++}return null}function C(t){var r=null;if(!Wr[t]&&void 0!==e&&e&&e.exports)try{r=Rn._abbr,n(724)("./"+t),T(r)}catch(e){}return Wr[t]}function T(e,t){var n;return e&&(n=void 0===t?E(e):k(e,t))&&(Rn=n),Rn._abbr}function k(e,t){return null!==t?(t.abbr=e,Wr[e]=Wr[e]||new _,Wr[e].set(t),T(e),Wr[e]):(delete Wr[e],null)}function E(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return Rn;if(!o(e)){if(t=C(e))return t;e=[e]}return x(e)}function S(e,t){var n=e.toLowerCase();Br[n]=Br[n+"s"]=Br[t]=e}function M(e){return"string"==typeof e?Br[e]||Br[e.toLowerCase()]:void 0}function O(e){var t,n,r={};for(n in e)s(e,n)&&(t=M(n))&&(r[t]=e[n]);return r}function N(e,n){return function(r){return null!=r?(P(this,e,r),t.updateOffset(this,n),this):D(this,e)}}function D(e,t){return e._d["get"+(e._isUTC?"UTC":"")+t]()}function P(e,t,n){return e._d["set"+(e._isUTC?"UTC":"")+t](n)}function A(e,t){var n;if("object"==typeof e)for(n in e)this.set(n,e[n]);else if(e=M(e),"function"==typeof this[e])return this[e](t);return this}function L(e,t,n){var r=""+Math.abs(e),o=t-r.length;return(e>=0?n?"+":"":"-")+(""+Math.pow(10,Math.max(0,o))).substr(1)+r}function I(e,t,n,r){var o=r;"string"==typeof r&&(o=function(){return this[r]()}),e&&($r[e]=o),t&&($r[t[0]]=function(){return L(o.apply(this,arguments),t[1],t[2])}),n&&($r[n]=function(){return this.localeData().ordinal(o.apply(this,arguments),e)})}function j(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function R(e){var t,n,r=e.match(Vr);for(t=0,n=r.length;t<n;t++)$r[r[t]]?r[t]=$r[r[t]]:r[t]=j(r[t]);return function(o){var i="";for(t=0;t<n;t++)i+=r[t]instanceof Function?r[t].call(o,e):r[t];return i}}function F(e,t){return e.isValid()?(t=U(t,e.localeData()),zr[t]=zr[t]||R(t),zr[t](e)):e.localeData().invalidDate()}function U(e,t){function n(e){return t.longDateFormat(e)||e}var r=5;for(qr.lastIndex=0;r>=0&&qr.test(e);)e=e.replace(qr,n),qr.lastIndex=0,r-=1;return e}function H(e){return"function"==typeof e&&"[object Function]"===Object.prototype.toString.call(e)}function Y(e,t,n){uo[e]=H(t)?t:function(e){return e&&n?n:t}}function W(e,t){return s(uo,e)?uo[e](t._strict,t._locale):RegExp(B(e))}function B(e){return e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(e,t,n,r,o){return t||n||r||o}).replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function V(e,t){var n,r=t;for("string"==typeof e&&(e=[e]),"number"==typeof t&&(r=function(e,n){n[t]=v(e)}), |
|||
n=0;n<e.length;n++)co[e[n]]=r}function q(e,t){V(e,function(e,n,r,o){r._w=r._w||{},t(e,r._w,r,o)})}function z(e,t,n){null!=t&&s(co,e)&&co[e](t,n._a,n,e)}function $(e,t){return new Date(Date.UTC(e,t+1,0)).getUTCDate()}function G(e){return this._months[e.month()]}function K(e){return this._monthsShort[e.month()]}function X(e,t,n){var r,o,i;for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),r=0;r<12;r++){if(o=c([2e3,r]),n&&!this._longMonthsParse[r]&&(this._longMonthsParse[r]=RegExp("^"+this.months(o,"").replace(".","")+"$","i"),this._shortMonthsParse[r]=RegExp("^"+this.monthsShort(o,"").replace(".","")+"$","i")),n||this._monthsParse[r]||(i="^"+this.months(o,"")+"|^"+this.monthsShort(o,""),this._monthsParse[r]=RegExp(i.replace(".",""),"i")),n&&"MMMM"===t&&this._longMonthsParse[r].test(e))return r;if(n&&"MMM"===t&&this._shortMonthsParse[r].test(e))return r;if(!n&&this._monthsParse[r].test(e))return r}}function Q(e,t){var n;return"string"==typeof t&&"number"!=typeof(t=e.localeData().monthsParse(t))?e:(n=Math.min(e.date(),$(e.year(),t)),e._d["set"+(e._isUTC?"UTC":"")+"Month"](t,n),e)}function J(e){return null!=e?(Q(this,e),t.updateOffset(this,!0),this):D(this,"Month")}function Z(){return $(this.year(),this.month())}function ee(e){var t,n=e._a;return n&&-2===f(e).overflow&&(t=n[fo]<0||n[fo]>11?fo:n[po]<1||n[po]>$(n[lo],n[fo])?po:n[ho]<0||n[ho]>24||24===n[ho]&&(0!==n[mo]||0!==n[go]||0!==n[yo])?ho:n[mo]<0||n[mo]>59?mo:n[go]<0||n[go]>59?go:n[yo]<0||n[yo]>999?yo:-1,f(e)._overflowDayOfYear&&(t<lo||t>po)&&(t=po),f(e).overflow=t),e}function te(e){!1===t.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+e)}function ne(e,t){var n=!0;return u(function(){return n&&(te(e+"\n"+Error().stack),n=!1),t.apply(this,arguments)},t)}function re(e,t){Hn[e]||(te(t),Hn[e]=!0)}function oe(e){var t,n,r=e._i,o=Yn.exec(r);if(o){for(f(e).iso=!0,t=0,n=Wn.length;t<n;t++)if(Wn[t][1].exec(r)){e._f=Wn[t][0];break}for(t=0,n=Bn.length;t<n;t++)if(Bn[t][1].exec(r)){e._f+=(o[6]||" ")+Bn[t][0];break}r.match(io)&&(e._f+="Z"),Ce(e)}else e._isValid=!1}function ie(e){var n=Vn.exec(e._i);if(null!==n)return void(e._d=new Date(+n[1]));oe(e),!1===e._isValid&&(delete e._isValid,t.createFromInputFallback(e))}function ae(e,t,n,r,o,i,a){var s=new Date(e,t,n,r,o,i,a);return e<1970&&s.setFullYear(e),s}function se(e){var t=new Date(Date.UTC.apply(null,arguments));return e<1970&&t.setUTCFullYear(e),t}function ue(e){return ce(e)?366:365}function ce(e){return e%4==0&&e%100!=0||e%400==0}function le(){return ce(this.year())}function fe(e,t,n){var r,o=n-t,i=n-e.day();return i>o&&(i-=7),i<o-7&&(i+=7),r=De(e).add(i,"d"),{week:Math.ceil(r.dayOfYear()/7),year:r.year()}}function pe(e){return fe(e,this._week.dow,this._week.doy).week}function de(){return this._week.dow}function he(){return this._week.doy}function me(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")}function ge(e){var t=fe(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")} |
|||
function ye(e,t,n,r,o){var i,a=6+o-r,s=se(e,0,1+a),u=s.getUTCDay();return u<o&&(u+=7),n=null!=n?1*n:o,i=1+a+7*(t-1)-u+n,{year:i>0?e:e-1,dayOfYear:i>0?i:ue(e-1)+i}}function ve(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==e?t:this.add(e-t,"d")}function be(e,t,n){return null!=e?e:null!=t?t:n}function _e(e){var t=new Date;return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}function we(e){var t,n,r,o,i=[];if(!e._d){for(r=_e(e),e._w&&null==e._a[po]&&null==e._a[fo]&&xe(e),e._dayOfYear&&(o=be(e._a[lo],r[lo]),e._dayOfYear>ue(o)&&(f(e)._overflowDayOfYear=!0),n=se(o,0,e._dayOfYear),e._a[fo]=n.getUTCMonth(),e._a[po]=n.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=i[t]=r[t];for(;t<7;t++)e._a[t]=i[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[ho]&&0===e._a[mo]&&0===e._a[go]&&0===e._a[yo]&&(e._nextDay=!0,e._a[ho]=0),e._d=(e._useUTC?se:ae).apply(null,i),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[ho]=24)}}function xe(e){var t,n,r,o,i,a,s;t=e._w,null!=t.GG||null!=t.W||null!=t.E?(i=1,a=4,n=be(t.GG,e._a[lo],fe(De(),1,4).year),r=be(t.W,1),o=be(t.E,1)):(i=e._locale._week.dow,a=e._locale._week.doy,n=be(t.gg,e._a[lo],fe(De(),i,a).year),r=be(t.w,1),null!=t.d?(o=t.d)<i&&++r:o=null!=t.e?t.e+i:i),s=ye(n,r,o,a,i),e._a[lo]=s.year,e._dayOfYear=s.dayOfYear}function Ce(e){if(e._f===t.ISO_8601)return void oe(e);e._a=[],f(e).empty=!0;var n,r,o,i,a,s=""+e._i,u=s.length,c=0;for(o=U(e._f,e._locale).match(Vr)||[],n=0;n<o.length;n++)i=o[n],r=(s.match(W(i,e))||[])[0],r&&(a=s.substr(0,s.indexOf(r)),a.length>0&&f(e).unusedInput.push(a),s=s.slice(s.indexOf(r)+r.length),c+=r.length),$r[i]?(r?f(e).empty=!1:f(e).unusedTokens.push(i),z(i,r,e)):e._strict&&!r&&f(e).unusedTokens.push(i);f(e).charsLeftOver=u-c,s.length>0&&f(e).unusedInput.push(s),!0===f(e).bigHour&&e._a[ho]<=12&&e._a[ho]>0&&(f(e).bigHour=void 0),e._a[ho]=Te(e._locale,e._a[ho],e._meridiem),we(e),ee(e)}function Te(e,t,n){var r;return null==n?t:null!=e.meridiemHour?e.meridiemHour(t,n):null!=e.isPM?(r=e.isPM(n),r&&t<12&&(t+=12),r||12!==t||(t=0),t):t}function ke(e){var t,n,r,o,i;if(0===e._f.length)return f(e).invalidFormat=!0,void(e._d=new Date(NaN));for(o=0;o<e._f.length;o++)i=0,t=h({},e),null!=e._useUTC&&(t._useUTC=e._useUTC),t._f=e._f[o],Ce(t),p(t)&&(i+=f(t).charsLeftOver,i+=10*f(t).unusedTokens.length,f(t).score=i,(null==r||i<r)&&(r=i,n=t));u(e,n||t)}function Ee(e){if(!e._d){var t=O(e._i);e._a=[t.year,t.month,t.day||t.date,t.hour,t.minute,t.second,t.millisecond],we(e)}}function Se(e){var t=new m(ee(Me(e)));return t._nextDay&&(t.add(1,"d"),t._nextDay=void 0),t}function Me(e){var t=e._i,n=e._f;return e._locale=e._locale||E(e._l),null===t||void 0===n&&""===t?d({nullInput:!0}):("string"==typeof t&&(e._i=t=e._locale.preparse(t)),g(t)?new m(ee(t)):(o(n)?ke(e):n?Ce(e):i(t)?e._d=t:Oe(e),e))}function Oe(e){var n=e._i;void 0===n?e._d=new Date:i(n)?e._d=new Date(+n):"string"==typeof n?ie(e):o(n)?(e._a=a(n.slice(0),function(e){return parseInt(e,10)}), |
|||
we(e)):"object"==typeof n?Ee(e):"number"==typeof n?e._d=new Date(n):t.createFromInputFallback(e)}function Ne(e,t,n,r,o){var i={};return"boolean"==typeof n&&(r=n,n=void 0),i._isAMomentObject=!0,i._useUTC=i._isUTC=o,i._l=n,i._i=e,i._f=t,i._strict=r,Se(i)}function De(e,t,n,r){return Ne(e,t,n,r,!1)}function Pe(e,t){var n,r;if(1===t.length&&o(t[0])&&(t=t[0]),!t.length)return De();for(n=t[0],r=1;r<t.length;++r)t[r].isValid()&&!t[r][e](n)||(n=t[r]);return n}function Ae(){return Pe("isBefore",[].slice.call(arguments,0))}function Le(){return Pe("isAfter",[].slice.call(arguments,0))}function Ie(e){var t=O(e),n=t.year||0,r=t.quarter||0,o=t.month||0,i=t.week||0,a=t.day||0,s=t.hour||0,u=t.minute||0,c=t.second||0,l=t.millisecond||0;this._milliseconds=+l+1e3*c+6e4*u+36e5*s,this._days=+a+7*i,this._months=+o+3*r+12*n,this._data={},this._locale=E(),this._bubble()}function je(e){return e instanceof Ie}function Re(e,t){I(e,0,0,function(){var e=this.utcOffset(),n="+";return e<0&&(e=-e,n="-"),n+L(~~(e/60),2)+t+L(~~e%60,2)})}function Fe(e){var t=(e||"").match(io)||[],n=t[t.length-1]||[],r=(n+"").match(Kn)||["-",0,0],o=60*r[1]+v(r[2]);return"+"===r[0]?o:-o}function Ue(e,n){var r,o;return n._isUTC?(r=n.clone(),o=(g(e)||i(e)?+e:+De(e))-+r,r._d.setTime(+r._d+o),t.updateOffset(r,!1),r):De(e).local()}function He(e){return 15*-Math.round(e._d.getTimezoneOffset()/15)}function Ye(e,n){var r,o=this._offset||0;return null!=e?("string"==typeof e&&(e=Fe(e)),Math.abs(e)<16&&(e*=60),!this._isUTC&&n&&(r=He(this)),this._offset=e,this._isUTC=!0,null!=r&&this.add(r,"m"),o!==e&&(!n||this._changeInProgress?rt(this,Je(e-o,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,t.updateOffset(this,!0),this._changeInProgress=null)),this):this._isUTC?o:He(this)}function We(e,t){return null!=e?("string"!=typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}function Be(e){return this.utcOffset(0,e)}function Ve(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(He(this),"m")),this}function qe(){return this._tzm?this.utcOffset(this._tzm):"string"==typeof this._i&&this.utcOffset(Fe(this._i)),this}function ze(e){return e=e?De(e).utcOffset():0,(this.utcOffset()-e)%60==0}function $e(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function Ge(){var e,t;return void 0!==this._isDSTShifted?this._isDSTShifted:(e={},h(e,this),e=Me(e),e._a?(t=e._isUTC?c(e._a):De(e._a),this._isDSTShifted=this.isValid()&&b(e._a,t.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted)}function Ke(){return!this._isUTC}function Xe(){return this._isUTC}function Qe(){return this._isUTC&&0===this._offset}function Je(e,t){var n,r,o,i=e,a=null;return je(e)?i={ms:e._milliseconds,d:e._days,M:e._months}:"number"==typeof e?(i={},t?i[t]=e:i.milliseconds=e):(a=Xn.exec(e))?(n="-"===a[1]?-1:1,i={y:0,d:v(a[po])*n,h:v(a[ho])*n,m:v(a[mo])*n,s:v(a[go])*n,ms:v(a[yo])*n}):(a=Qn.exec(e))?(n="-"===a[1]?-1:1,i={y:Ze(a[2],n),M:Ze(a[3],n),d:Ze(a[4],n),h:Ze(a[5],n),m:Ze(a[6],n),s:Ze(a[7],n),w:Ze(a[8],n) |
|||
}):null==i?i={}:"object"==typeof i&&("from"in i||"to"in i)&&(o=tt(De(i.from),De(i.to)),i={},i.ms=o.milliseconds,i.M=o.months),r=new Ie(i),je(e)&&s(e,"_locale")&&(r._locale=e._locale),r}function Ze(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function et(e,t){var n={milliseconds:0,months:0};return n.months=t.month()-e.month()+12*(t.year()-e.year()),e.clone().add(n.months,"M").isAfter(t)&&--n.months,n.milliseconds=+t-+e.clone().add(n.months,"M"),n}function tt(e,t){var n;return t=Ue(t,e),e.isBefore(t)?n=et(e,t):(n=et(t,e),n.milliseconds=-n.milliseconds,n.months=-n.months),n}function nt(e,t){return function(n,r){var o,i;return null===r||isNaN(+r)||(re(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period)."),i=n,n=r,r=i),n="string"==typeof n?+n:n,o=Je(n,r),rt(this,o,e),this}}function rt(e,n,r,o){var i=n._milliseconds,a=n._days,s=n._months;o=null==o||o,i&&e._d.setTime(+e._d+i*r),a&&P(e,"Date",D(e,"Date")+a*r),s&&Q(e,D(e,"Month")+s*r),o&&t.updateOffset(e,a||s)}function ot(e,t){var n=e||De(),r=Ue(n,this).startOf("day"),o=this.diff(r,"days",!0),i=o<-6?"sameElse":o<-1?"lastWeek":o<0?"lastDay":o<1?"sameDay":o<2?"nextDay":o<7?"nextWeek":"sameElse";return this.format(t&&t[i]||this.localeData().calendar(i,this,De(n)))}function it(){return new m(this)}function at(e,t){return t=M(void 0!==t?t:"millisecond"),"millisecond"===t?(e=g(e)?e:De(e),+this>+e):(g(e)?+e:+De(e))<+this.clone().startOf(t)}function st(e,t){var n;return t=M(void 0!==t?t:"millisecond"),"millisecond"===t?(e=g(e)?e:De(e),+this<+e):(n=g(e)?+e:+De(e),+this.clone().endOf(t)<n)}function ut(e,t,n){return this.isAfter(e,n)&&this.isBefore(t,n)}function ct(e,t){var n;return t=M(t||"millisecond"),"millisecond"===t?(e=g(e)?e:De(e),+this==+e):(n=+De(e),+this.clone().startOf(t)<=n&&n<=+this.clone().endOf(t))}function lt(e,t,n){var r,o,i=Ue(e,this),a=6e4*(i.utcOffset()-this.utcOffset());return t=M(t),"year"===t||"month"===t||"quarter"===t?(o=ft(this,i),"quarter"===t?o/=3:"year"===t&&(o/=12)):(r=this-i,o="second"===t?r/1e3:"minute"===t?r/6e4:"hour"===t?r/36e5:"day"===t?(r-a)/864e5:"week"===t?(r-a)/6048e5:r),n?o:y(o)}function ft(e,t){var n,r,o=12*(t.year()-e.year())+(t.month()-e.month()),i=e.clone().add(o,"months");return t-i<0?(n=e.clone().add(o-1,"months"),r=(t-i)/(i-n)):(n=e.clone().add(o+1,"months"),r=(t-i)/(n-i)),-(o+r)}function pt(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function dt(){var e=this.clone().utc();return 0<e.year()&&e.year()<=9999?"function"==typeof Date.prototype.toISOString?this.toDate().toISOString():F(e,"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]"):F(e,"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]")}function ht(e){var n=F(this,e||t.defaultFormat);return this.localeData().postformat(n)}function mt(e,t){return this.isValid()?Je({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function gt(e){return this.from(De(),e)}function yt(e,t){return this.isValid()?Je({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function vt(e){ |
|||
return this.to(De(),e)}function bt(e){var t;return void 0===e?this._locale._abbr:(t=E(e),null!=t&&(this._locale=t),this)}function _t(){return this._locale}function wt(e){switch(e=M(e)){case"year":this.month(0);case"quarter":case"month":this.date(1);case"week":case"isoWeek":case"day":this.hours(0);case"hour":this.minutes(0);case"minute":this.seconds(0);case"second":this.milliseconds(0)}return"week"===e&&this.weekday(0),"isoWeek"===e&&this.isoWeekday(1),"quarter"===e&&this.month(3*Math.floor(this.month()/3)),this}function xt(e){return e=M(e),void 0===e||"millisecond"===e?this:this.startOf(e).add(1,"isoWeek"===e?"week":e).subtract(1,"ms")}function Ct(){return+this._d-6e4*(this._offset||0)}function Tt(){return Math.floor(+this/1e3)}function kt(){return this._offset?new Date(+this):this._d}function Et(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function St(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}}function Mt(){return p(this)}function Ot(){return u({},f(this))}function Nt(){return f(this).overflow}function Dt(e,t){I(0,[e,e.length],0,t)}function Pt(e,t,n){return fe(De([e,11,31+t-n]),t,n).week}function At(e){var t=fe(this,this.localeData()._week.dow,this.localeData()._week.doy).year;return null==e?t:this.add(e-t,"y")}function Lt(e){var t=fe(this,1,4).year;return null==e?t:this.add(e-t,"y")}function It(){return Pt(this.year(),1,4)}function jt(){var e=this.localeData()._week;return Pt(this.year(),e.dow,e.doy)}function Rt(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)}function Ft(e,t){return"string"!=typeof e?e:isNaN(e)?(e=t.weekdaysParse(e),"number"==typeof e?e:null):parseInt(e,10)}function Ut(e){return this._weekdays[e.day()]}function Ht(e){return this._weekdaysShort[e.day()]}function Yt(e){return this._weekdaysMin[e.day()]}function Wt(e){var t,n,r;for(this._weekdaysParse=this._weekdaysParse||[],t=0;t<7;t++)if(this._weekdaysParse[t]||(n=De([2e3,1]).day(t),r="^"+this.weekdays(n,"")+"|^"+this.weekdaysShort(n,"")+"|^"+this.weekdaysMin(n,""),this._weekdaysParse[t]=RegExp(r.replace(".",""),"i")),this._weekdaysParse[t].test(e))return t}function Bt(e){var t=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=e?(e=Ft(e,this.localeData()),this.add(e-t,"d")):t}function Vt(e){var t=(this.day()+7-this.localeData()._week.dow)%7;return null==e?t:this.add(e-t,"d")}function qt(e){return null==e?this.day()||7:this.day(this.day()%7?e:e-7)}function zt(e,t){I(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}function $t(e,t){return t._meridiemParse}function Gt(e){return"p"===(e+"").toLowerCase().charAt(0)}function Kt(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"}function Xt(e,t){t[yo]=v(1e3*("0."+e))}function Qt(){return this._isUTC?"UTC":""}function Jt(){return this._isUTC?"Coordinated Universal Time":""}function Zt(e){return De(1e3*e)}function en(){return De.apply(null,arguments).parseZone()} |
|||
function tn(e,t,n){var r=this._calendar[e];return"function"==typeof r?r.call(t,n):r}function nn(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.replace(/MMMM|MM|DD|dddd/g,function(e){return e.slice(1)}),this._longDateFormat[e])}function rn(){return this._invalidDate}function on(e){return this._ordinal.replace("%d",e)}function an(e){return e}function sn(e,t,n,r){var o=this._relativeTime[n];return"function"==typeof o?o(e,t,n,r):o.replace(/%d/i,e)}function un(e,t){var n=this._relativeTime[e>0?"future":"past"];return"function"==typeof n?n(t):n.replace(/%s/i,t)}function cn(e){var t,n;for(n in e)t=e[n],"function"==typeof t?this[n]=t:this["_"+n]=t;this._ordinalParseLenient=RegExp(this._ordinalParse.source+"|"+/\d{1,2}/.source)}function ln(e,t,n,r){var o=E(),i=c().set(r,t);return o[n](i,e)}function fn(e,t,n,r,o){var i,a;if("number"==typeof e&&(t=e,e=void 0),e=e||"",null!=t)return ln(e,t,n,o);for(a=[],i=0;i<r;i++)a[i]=ln(e,i,n,o);return a}function pn(e,t){return fn(e,t,"months",12,"month")}function dn(e,t){return fn(e,t,"monthsShort",12,"month")}function hn(e,t){return fn(e,t,"weekdays",7,"day")}function mn(e,t){return fn(e,t,"weekdaysShort",7,"day")}function gn(e,t){return fn(e,t,"weekdaysMin",7,"day")}function yn(){var e=this._data;return this._milliseconds=_r(this._milliseconds),this._days=_r(this._days),this._months=_r(this._months),e.milliseconds=_r(e.milliseconds),e.seconds=_r(e.seconds),e.minutes=_r(e.minutes),e.hours=_r(e.hours),e.months=_r(e.months),e.years=_r(e.years),this}function vn(e,t,n,r){var o=Je(t,n);return e._milliseconds+=r*o._milliseconds,e._days+=r*o._days,e._months+=r*o._months,e._bubble()}function bn(e,t){return vn(this,e,t,1)}function _n(e,t){return vn(this,e,t,-1)}function wn(e){return e<0?Math.floor(e):Math.ceil(e)}function xn(){var e,t,n,r,o,i=this._milliseconds,a=this._days,s=this._months,u=this._data;return i>=0&&a>=0&&s>=0||i<=0&&a<=0&&s<=0||(i+=864e5*wn(Tn(s)+a),a=0,s=0),u.milliseconds=i%1e3,e=y(i/1e3),u.seconds=e%60,t=y(e/60),u.minutes=t%60,n=y(t/60),u.hours=n%24,a+=y(n/24),o=y(Cn(a)),s+=o,a-=wn(Tn(o)),r=y(s/12),s%=12,u.days=a,u.months=s,u.years=r,this}function Cn(e){return 4800*e/146097}function Tn(e){return 146097*e/4800}function kn(e){var t,n,r=this._milliseconds;if("month"===(e=M(e))||"year"===e)return t=this._days+r/864e5,n=this._months+Cn(t),"month"===e?n:n/12;switch(t=this._days+Math.round(Tn(this._months)),e){case"week":return t/7+r/6048e5;case"day":return t+r/864e5;case"hour":return 24*t+r/36e5;case"minute":return 1440*t+r/6e4;case"second":return 86400*t+r/1e3;case"millisecond":return Math.floor(864e5*t)+r;default:throw Error("Unknown unit "+e)}}function En(){return this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*v(this._months/12)}function Sn(e){return function(){return this.as(e)}}function Mn(e){return e=M(e),this[e+"s"]()}function On(e){return function(){return this._data[e]}}function Nn(){return y(this.days()/7)}function Dn(e,t,n,r,o){return o.relativeTime(t||1,!!n,e,r)}function Pn(e,t,n){ |
|||
var r=Je(e).abs(),o=jr(r.as("s")),i=jr(r.as("m")),a=jr(r.as("h")),s=jr(r.as("d")),u=jr(r.as("M")),c=jr(r.as("y")),l=o<Rr.s&&["s",o]||1===i&&["m"]||i<Rr.m&&["mm",i]||1===a&&["h"]||a<Rr.h&&["hh",a]||1===s&&["d"]||s<Rr.d&&["dd",s]||1===u&&["M"]||u<Rr.M&&["MM",u]||1===c&&["y"]||["yy",c];return l[2]=t,l[3]=+e>0,l[4]=n,Dn.apply(null,l)}function An(e,t){return void 0!==Rr[e]&&(void 0===t?Rr[e]:(Rr[e]=t,!0))}function Ln(e){var t=this.localeData(),n=Pn(this,!e,t);return e&&(n=t.pastFuture(+this,n)),t.postformat(n)}function In(){var e,t,n,r,o,i,a,s,u=Fr(this._milliseconds)/1e3,c=Fr(this._days),l=Fr(this._months),f=y(u/60),p=y(f/60);return u%=60,f%=60,e=y(l/12),l%=12,t=e,n=l,r=c,o=p,i=f,a=u,s=this.asSeconds(),s?(s<0?"-":"")+"P"+(t?t+"Y":"")+(n?n+"M":"")+(r?r+"D":"")+(o||i||a?"T":"")+(o?o+"H":"")+(i?i+"M":"")+(a?a+"S":""):"P0D"}var jn,Rn,Fn,Un,Hn,Yn,Wn,Bn,Vn,qn,zn,$n,Gn,Kn,Xn,Qn,Jn,Zn,er,tr,nr,rr,or,ir,ar,sr,ur,cr,lr,fr,pr,dr,hr,mr,gr,yr,vr,br,_r,wr,xr,Cr,Tr,kr,Er,Sr,Mr,Or,Nr,Dr,Pr,Ar,Lr,Ir,jr,Rr,Fr,Ur,Hr=t.momentProperties=[],Yr=!1,Wr={},Br={},Vr=/(\[[^\[]*\])|(\\)?(Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Q|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,qr=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,zr={},$r={},Gr=/\d/,Kr=/\d\d/,Xr=/\d{3}/,Qr=/\d{4}/,Jr=/[+-]?\d{6}/,Zr=/\d\d?/,eo=/\d{1,3}/,to=/\d{1,4}/,no=/[+-]?\d{1,6}/,ro=/\d+/,oo=/[+-]?\d+/,io=/Z|[+-]\d\d:?\d\d/gi,ao=/[+-]?\d+(\.\d{1,3})?/,so=/[0-9]*['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+|[\u0600-\u06FF\/]+(\s*?[\u0600-\u06FF]+){1,2}/i,uo={},co={},lo=0,fo=1,po=2,ho=3,mo=4,go=5,yo=6;for(I("M",["MM",2],"Mo",function(){return this.month()+1}),I("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)}),I("MMMM",0,0,function(e){return this.localeData().months(this,e)}),S("month","M"),Y("M",Zr),Y("MM",Zr,Kr),Y("MMM",so),Y("MMMM",so),V(["M","MM"],function(e,t){t[fo]=v(e)-1}),V(["MMM","MMMM"],function(e,t,n,r){var o=n._locale.monthsParse(e,r,n._strict);null!=o?t[fo]=o:f(n).invalidMonth=e}),Fn="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),Un="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),Hn={},t.suppressDeprecationWarnings=!1,Yn=/^\s*(?:[+-]\d{6}|\d{4})-(?:(\d\d-\d\d)|(W\d\d$)|(W\d\d-\d)|(\d\d\d))((T| )(\d\d(:\d\d(:\d\d(\.\d+)?)?)?)?([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Wn=[["YYYYYY-MM-DD",/[+-]\d{6}-\d{2}-\d{2}/],["YYYY-MM-DD",/\d{4}-\d{2}-\d{2}/],["GGGG-[W]WW-E",/\d{4}-W\d{2}-\d/],["GGGG-[W]WW",/\d{4}-W\d{2}/],["YYYY-DDD",/\d{4}-\d{3}/]],Bn=[["HH:mm:ss.SSSS",/(T| )\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss",/(T| )\d\d:\d\d:\d\d/],["HH:mm",/(T| )\d\d:\d\d/],["HH",/(T| )\d\d/]],Vn=/^\/?Date\((\-?\d+)/i,t.createFromInputFallback=ne("moment construction falls back to js Date. This is discouraged and will be removed in upcoming major release. Please refer to https://github.com/moment/moment/issues/1407 for more info.",function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))}),I(0,["YY",2],0,function(){return this.year()%100}),I(0,["YYYY",4],0,"year"), |
|||
I(0,["YYYYY",5],0,"year"),I(0,["YYYYYY",6,!0],0,"year"),S("year","y"),Y("Y",oo),Y("YY",Zr,Kr),Y("YYYY",to,Qr),Y("YYYYY",no,Jr),Y("YYYYYY",no,Jr),V(["YYYYY","YYYYYY"],lo),V("YYYY",function(e,n){n[lo]=2===e.length?t.parseTwoDigitYear(e):v(e)}),V("YY",function(e,n){n[lo]=t.parseTwoDigitYear(e)}),t.parseTwoDigitYear=function(e){return v(e)+(v(e)>68?1900:2e3)},qn=N("FullYear",!1),I("w",["ww",2],"wo","week"),I("W",["WW",2],"Wo","isoWeek"),S("week","w"),S("isoWeek","W"),Y("w",Zr),Y("ww",Zr,Kr),Y("W",Zr),Y("WW",Zr,Kr),q(["w","ww","W","WW"],function(e,t,n,r){t[r.substr(0,1)]=v(e)}),zn={dow:0,doy:6},I("DDD",["DDDD",3],"DDDo","dayOfYear"),S("dayOfYear","DDD"),Y("DDD",eo),Y("DDDD",Xr),V(["DDD","DDDD"],function(e,t,n){n._dayOfYear=v(e)}),t.ISO_8601=function(){},$n=ne("moment().min is deprecated, use moment.min instead. https://github.com/moment/moment/issues/1548",function(){var e=De.apply(null,arguments);return e<this?this:e}),Gn=ne("moment().max is deprecated, use moment.max instead. https://github.com/moment/moment/issues/1548",function(){var e=De.apply(null,arguments);return e>this?this:e}),Re("Z",":"),Re("ZZ",""),Y("Z",io),Y("ZZ",io),V(["Z","ZZ"],function(e,t,n){n._useUTC=!0,n._tzm=Fe(e)}),Kn=/([\+\-]|\d\d)/gi,t.updateOffset=function(){},Xn=/(\-)?(?:(\d*)\.)?(\d+)\:(\d+)(?:\:(\d+)\.?(\d{3})?)?/,Qn=/^(-)?P(?:(?:([0-9,.]*)Y)?(?:([0-9,.]*)M)?(?:([0-9,.]*)D)?(?:T(?:([0-9,.]*)H)?(?:([0-9,.]*)M)?(?:([0-9,.]*)S)?)?|([0-9,.]*)W)$/,Je.fn=Ie.prototype,Jn=nt(1,"add"),Zn=nt(-1,"subtract"),t.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",er=ne("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return void 0===e?this.localeData():this.locale(e)}),I(0,["gg",2],0,function(){return this.weekYear()%100}),I(0,["GG",2],0,function(){return this.isoWeekYear()%100}),Dt("gggg","weekYear"),Dt("ggggg","weekYear"),Dt("GGGG","isoWeekYear"),Dt("GGGGG","isoWeekYear"),S("weekYear","gg"),S("isoWeekYear","GG"),Y("G",oo),Y("g",oo),Y("GG",Zr,Kr),Y("gg",Zr,Kr),Y("GGGG",to,Qr),Y("gggg",to,Qr),Y("GGGGG",no,Jr),Y("ggggg",no,Jr),q(["gggg","ggggg","GGGG","GGGGG"],function(e,t,n,r){t[r.substr(0,2)]=v(e)}),q(["gg","GG"],function(e,n,r,o){n[o]=t.parseTwoDigitYear(e)}),I("Q",0,0,"quarter"),S("quarter","Q"),Y("Q",Gr),V("Q",function(e,t){t[fo]=3*(v(e)-1)}),I("D",["DD",2],"Do","date"),S("date","D"),Y("D",Zr),Y("DD",Zr,Kr),Y("Do",function(e,t){return e?t._ordinalParse:t._ordinalParseLenient}),V(["D","DD"],po),V("Do",function(e,t){t[po]=v(e.match(Zr)[0],10)}),tr=N("Date",!0),I("d",0,"do","day"),I("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),I("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),I("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),I("e",0,0,"weekday"),I("E",0,0,"isoWeekday"),S("day","d"),S("weekday","e"),S("isoWeekday","E"),Y("d",Zr),Y("e",Zr),Y("E",Zr),Y("dd",so),Y("ddd",so),Y("dddd",so),q(["dd","ddd","dddd"],function(e,t,n){var r=n._locale.weekdaysParse(e);null!=r?t.d=r:f(n).invalidWeekday=e}), |
|||
q(["d","e","E"],function(e,t,n,r){t[r]=v(e)}),nr="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),rr="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),or="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),I("H",["HH",2],0,"hour"),I("h",["hh",2],0,function(){return this.hours()%12||12}),zt("a",!0),zt("A",!1),S("hour","h"),Y("a",$t),Y("A",$t),Y("H",Zr),Y("h",Zr),Y("HH",Zr,Kr),Y("hh",Zr,Kr),V(["H","HH"],ho),V(["a","A"],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e}),V(["h","hh"],function(e,t,n){t[ho]=v(e),f(n).bigHour=!0}),ir=/[ap]\.?m?\.?/i,ar=N("Hours",!0),I("m",["mm",2],0,"minute"),S("minute","m"),Y("m",Zr),Y("mm",Zr,Kr),V(["m","mm"],mo),sr=N("Minutes",!1),I("s",["ss",2],0,"second"),S("second","s"),Y("s",Zr),Y("ss",Zr,Kr),V(["s","ss"],go),ur=N("Seconds",!1),I("S",0,0,function(){return~~(this.millisecond()/100)}),I(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),I(0,["SSS",3],0,"millisecond"),I(0,["SSSS",4],0,function(){return 10*this.millisecond()}),I(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),I(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),I(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),I(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),I(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),S("millisecond","ms"),Y("S",eo,Gr),Y("SS",eo,Kr),Y("SSS",eo,Xr),cr="SSSS";cr.length<=9;cr+="S")Y(cr,ro);for(cr="S";cr.length<=9;cr+="S")V(cr,Xt);return lr=N("Milliseconds",!1),I("z",0,0,"zoneAbbr"),I("zz",0,0,"zoneName"),fr=m.prototype,fr.add=Jn,fr.calendar=ot,fr.clone=it,fr.diff=lt,fr.endOf=xt,fr.format=ht,fr.from=mt,fr.fromNow=gt,fr.to=yt,fr.toNow=vt,fr.get=A,fr.invalidAt=Nt,fr.isAfter=at,fr.isBefore=st,fr.isBetween=ut,fr.isSame=ct,fr.isValid=Mt,fr.lang=er,fr.locale=bt,fr.localeData=_t,fr.max=Gn,fr.min=$n,fr.parsingFlags=Ot,fr.set=A,fr.startOf=wt,fr.subtract=Zn,fr.toArray=Et,fr.toObject=St,fr.toDate=kt,fr.toISOString=dt,fr.toJSON=dt,fr.toString=pt,fr.unix=Tt,fr.valueOf=Ct,fr.year=qn,fr.isLeapYear=le,fr.weekYear=At,fr.isoWeekYear=Lt,fr.quarter=fr.quarters=Rt,fr.month=J,fr.daysInMonth=Z,fr.week=fr.weeks=me,fr.isoWeek=fr.isoWeeks=ge,fr.weeksInYear=jt,fr.isoWeeksInYear=It,fr.date=tr,fr.day=fr.days=Bt,fr.weekday=Vt,fr.isoWeekday=qt,fr.dayOfYear=ve,fr.hour=fr.hours=ar,fr.minute=fr.minutes=sr,fr.second=fr.seconds=ur,fr.millisecond=fr.milliseconds=lr,fr.utcOffset=Ye,fr.utc=Be,fr.local=Ve,fr.parseZone=qe,fr.hasAlignedHourOffset=ze,fr.isDST=$e,fr.isDSTShifted=Ge,fr.isLocal=Ke,fr.isUtcOffset=Xe,fr.isUtc=Qe,fr.isUTC=Qe,fr.zoneAbbr=Qt,fr.zoneName=Jt,fr.dates=ne("dates accessor is deprecated. Use date instead.",tr),fr.months=ne("months accessor is deprecated. Use month instead",J),fr.years=ne("years accessor is deprecated. Use year instead",qn),fr.zone=ne("moment().zone is deprecated, use moment().utcOffset instead. https://github.com/moment/moment/issues/1779",We),pr=fr,dr={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},hr={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"},mr="Invalid date",gr="%d",yr=/\d{1,2}/,vr={future:"in %s",past:"%s ago",s:"a few 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"},br=_.prototype,br._calendar=dr,br.calendar=tn,br._longDateFormat=hr,br.longDateFormat=nn,br._invalidDate=mr,br.invalidDate=rn,br._ordinal=gr,br.ordinal=on,br._ordinalParse=yr,br.preparse=an,br.postformat=an,br._relativeTime=vr,br.relativeTime=sn,br.pastFuture=un,br.set=cn,br.months=G,br._months=Fn,br.monthsShort=K,br._monthsShort=Un,br.monthsParse=X,br.week=pe,br._week=zn,br.firstDayOfYear=he,br.firstDayOfWeek=de,br.weekdays=Ut,br._weekdays=nr,br.weekdaysMin=Yt,br._weekdaysMin=or,br.weekdaysShort=Ht,br._weekdaysShort=rr,br.weekdaysParse=Wt,br.isPM=Gt,br._meridiemParse=ir,br.meridiem=Kt,T("en",{ordinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(1===v(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}}),t.lang=ne("moment.lang is deprecated. Use moment.locale instead.",T),t.langData=ne("moment.langData is deprecated. Use moment.localeData instead.",E),_r=Math.abs,wr=Sn("ms"),xr=Sn("s"),Cr=Sn("m"),Tr=Sn("h"),kr=Sn("d"),Er=Sn("w"),Sr=Sn("M"),Mr=Sn("y"),Or=On("milliseconds"),Nr=On("seconds"),Dr=On("minutes"),Pr=On("hours"),Ar=On("days"),Lr=On("months"),Ir=On("years"),jr=Math.round,Rr={s:45,m:45,h:22,d:26,M:11},Fr=Math.abs,Ur=Ie.prototype,Ur.abs=yn,Ur.add=bn,Ur.subtract=_n,Ur.as=kn,Ur.asMilliseconds=wr,Ur.asSeconds=xr,Ur.asMinutes=Cr,Ur.asHours=Tr,Ur.asDays=kr,Ur.asWeeks=Er,Ur.asMonths=Sr,Ur.asYears=Mr,Ur.valueOf=En,Ur._bubble=xn,Ur.get=Mn,Ur.milliseconds=Or,Ur.seconds=Nr,Ur.minutes=Dr,Ur.hours=Pr,Ur.days=Ar,Ur.weeks=Nn,Ur.months=Lr,Ur.years=Ir,Ur.humanize=Ln,Ur.toISOString=In,Ur.toString=In,Ur.toJSON=In,Ur.locale=bt,Ur.localeData=_t,Ur.toIsoString=ne("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",In),Ur.lang=er,I("X",0,0,"unix"),I("x",0,0,"valueOf"),Y("x",oo),Y("X",ao),V("X",function(e,t,n){n._d=new Date(1e3*parseFloat(e,10))}),V("x",function(e,t,n){n._d=new Date(v(e))}),t.version="2.10.6",r(De),t.fn=pr,t.min=Ae,t.max=Le,t.utc=c,t.unix=Zt,t.months=pn,t.isDate=i,t.locale=T,t.invalid=d,t.duration=Je,t.isMoment=g,t.weekdays=hn,t.parseZone=en,t.localeData=E,t.isDuration=je,t.monthsShort=dn,t.weekdaysMin=gn,t.defineLocale=k,t.weekdaysShort=mn,t.normalizeUnits=M,t.relativeTimeThreshold=An,t})}).call(t,n(78)(e))},,,function(e,t,n){var r=n(252)("wks"),o=n(152),i=n(35).Symbol,a="function"==typeof i;(e.exports=function(e){return r[e]||(r[e]=a&&i[e]||(a?i:o)("Symbol."+e))}).store=r},,,,,,,function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var o=n(1075),i=r(o),a=n(460),s=r(a);e.exports={TransitionGroup:s.default,CSSTransitionGroup:i.default}},,,,function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},,,function(e,t,n){"use strict";function r(e,t,n){return $.isNaN(t)?e:t<e?e:t>n?n:Math.round(t)} |
|||
function o(e,t,n){return $.isNaN(t)?e:t<e?e:t>n?n:Math.round(1e4*t)/1e4}function i(e){return r(0,e,255)}function a(e){return r(0,e,255)}function s(e){return r(0,e,255)}function u(e){return o(0,e,1)}function c(e,t,n){return[i(e),a(t),s(n)]}function l(e,t){return e[0]===t[0]&&e[1]===t[1]&&e[2]===t[2]}function f(e,t,n,r){var o,c,l;return Array.isArray(e)?(o=e,r=t,[o[0],o[1],o[2],u(r)]):(c=e,l=t,n=n||0,r=r||0,[i(c),a(l),s(n),u(r)])}function p(e,t){return e[0]===t[0]&&e[1]===t[1]&&e[2]===t[2]&&e[3]===t[3]}function d(e){return o(0,e,1)}function h(e){return o(0,e,1)}function m(e){return o(0,e,1)}function g(e){return o(0,e,1)}function y(e){return o(0,e,1)}function v(e,t,n){return[d(e),h(t),g(n)]}function b(e,t){return e[0]===t[0]&&e[1]===t[1]&&e[2]===t[2]}function _(e,t,n){return[d(e),m(t),y(n)]}function w(e,t){return e[0]===t[0]&&e[1]===t[1]&&e[2]===t[2]}function x(e){var t,n=e[0],r=e[1],o=e[2],i=n/255,a=r/255,s=o/255,u=Math.min(i,a,s),c=Math.max(i,a,s),l=0,f=0,p=(u+c)/2;if(u===c)l=0,f=0;else switch(t=c-u,f=p>.5?t/(2-c-u):t/(c+u),c){case i:l=((a-s)/t+(a<s?6:0))/6;break;case a:l=((s-i)/t+2)/6;break;case s:l=((i-a)/t+4)/6}return[l,f,p]}function C(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function T(e){var t,n,r,o,u,c=e[0],l=e[1],f=e[2];return 0===l?t=n=r=f:(o=f<.5?f*(1+l):f+l-f*l,u=2*f-o,t=C(u,o,c+1/3),n=C(u,o,c),r=C(u,o,c-1/3)),[i(255*t),a(255*n),s(255*r)]}function k(e){var t=e[0],n=e[1],r=e[2],o=t/255,i=n/255,a=r/255,s=Math.min(o,i,a),u=Math.max(o,i,a),c=u-s,l=0,f=0===u?0:c/u,p=u;if(u===s)l=0;else switch(u){case t:l=((i-a)/c+(i<a?6:0))/6;break;case n:l=((a-o)/c+2)/6;break;case r:l=((o-i)/c+4)/6}return[l,f,p]}function E(e){var t=e[0],n=e[1],r=e[2],o=Math.floor(6*t),u=6*t-o,c=r*(1-n),l=r*(1-u*n),f=r*(1-(1-u)*n),p=0,d=0,h=0;switch(o%6){case 0:p=r,d=f,h=c;break;case 1:p=l,d=r,h=c;break;case 2:p=c,d=r,h=f;break;case 3:p=c,d=l,h=r;break;case 4:p=f,d=c,h=r;break;case 5:p=r,d=c,h=l}return[i(255*p),a(255*d),s(255*h)]}function S(e){return G[0]*e[0]+G[1]*e[1]+G[2]*e[2]}function M(e,t){var n=e[0],r=e[1],o=e[2],i=t[0],a=t[1],s=t[2],u=i-n,c=a-r,l=s-o;return Math.sqrt(u*u+c*c+l*l)}function O(e){return[255-e[0],255-e[1],255-e[2]]}function N(e,t){var n=x(e);return T([n[0],n[1],g(n[2]-t/100)])}function D(e,t){var n=e[0],r=e[1],o=e[2],c=e[3],l=t[0],f=t[1],p=t[2],d=t[3],h=u(1-(1-d)*(1-c));return[i(l*d/h+n*c*(1-d)/h),a(f*d/h+r*c*(1-d)/h),s(p*d/h+o*c*(1-d)/h),h]}function P(e,t,n){var r,o;return void 0===n&&(n=.05),r=x(e),o=r[0]+t*n,r[0]=d(o-Math.floor(o)),T(r)}function A(e,t,n){return void 0===n&&(n=.05),F(P(V(e),t,n))}function L(e,t){return t in e}function I(e){var t=X.re.exec(e);return null!==t?X.parse(t):null}function j(e){return"rgb("+e[0]+", "+e[1]+", "+e[2]+")"}function R(e){var t=Q.re.exec(e);return null!==t?Q.parse(t):null}function F(e){var t=e[0],n=e[1],r=e[2],o=t.toString(16),i=n.toString(16),a=r.toString(16);return"#"+(1===o.length?"0":"")+o+(1===i.length?"0":"")+i+(1===a.length?"0":"")+a}function U(e){var t=J.re.exec(e);return null!==t?J.parse(t):null}function H(e){var t=Z.re.exec(e) |
|||
;return null!==t?Z.parse(t):null}function Y(e){return"rgba("+e[0]+", "+e[1]+", "+e[2]+", "+e[3]+")"}function W(e,t){if(t<0||t>255)throw Error("invalid threshold value, valid values are [0, 255]");return S(e)>=t?"white":"black"}function B(e){var t,n,r,o,i;if(e=e.toLowerCase(),L(K,e)){if(null!==(t=R(K[e])))return t;throw Error("Invalid named color definition")}return null!==(n=I(e))?n:null!==(r=R(e))?r:null!==(o=U(e))?o:(i=H(e),null!==i?i:null)}function V(e){var t=B(e);if(null!==t)return t;throw Error("Passed color string does not match any of the known color representations")}function q(e){var t,n,r,o,i,a,s,u;if(e=e.toLowerCase(),L(K,e)){if(null!==(t=R(K[e])))return n=t[0],r=t[1],o=t[2],[n,r,o,1];throw Error("Invalid named color definition")}return null!==(i=I(e))?(n=i[0],r=i[1],o=i[2],[n,r,o,1]):null!==(a=R(e))?(n=a[0],r=a[1],o=a[2],[n,r,o,1]):null!==(s=U(e))?(n=s[0],r=s[1],o=s[2],[n,r,o,1]):(u=H(e),null!==u?u:null)}function z(e){var t=q(e);if(null!==t)return t;throw Error("Passed color string does not match any of the known color representations")}var $,G,K,X,Q,J,Z;Object.defineProperty(t,"__esModule",{value:!0}),$=n(333),t.normalizeRedComponent=i,t.normalizeGreenComponent=a,t.normalizeBlueComponent=s,t.normalizeAlphaComponent=u,t.rgb=c,t.areEqualRgb=l,t.rgba=f,t.areEqualRgba=p,t.normalizeHue=d,t.normalizeHslSaturation=h,t.normalizeHsvSaturation=m,t.normalizeLightness=g,t.normalizeValue=y,t.hsl=v,t.areEqualHsl=b,t.hsv=_,t.areEqualHsv=w,t.rgbToHsl=x,t.hslToRgb=T,t.rgbToHsv=k,t.hsvToRgb=E,G=[.199,.687,.114],t.rgbToGrayscale=S,t.distanceRgb=M,t.invertRgb=O,t.darkenRgb=N,t.blendRgba=D,t.shiftRgb=P,t.shiftColor=A,K={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dodgerblue:"#1e90ff",feldspar:"#d19275",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1", |
|||
lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslateblue:"#8470ff",lightslategray:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370d8",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#d87093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",violetred:"#d02090",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"},function(e){function t(e){return[i(parseInt(e[1],10)),a(parseInt(e[2],10)),s(parseInt(e[3],10))]}e.re=/^rgb\(\s*(-?\d{1,10})\s*,\s*(-?\d{1,10})\s*,\s*(-?\d{1,10})\s*\)$/,e.parse=t}(X||(X={})),t.rgbToString=j,function(e){function t(e){return[i(parseInt(e[1],16)),a(parseInt(e[2],16)),s(parseInt(e[3],16))]}e.re=/^#([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,e.parse=t}(Q||(Q={})),t.rgbToHexString=F,function(e){function t(e){return[i(parseInt(e[1]+e[1],16)),a(parseInt(e[2]+e[2],16)),s(parseInt(e[3]+e[3],16))]}e.re=/^#([0-9a-fA-F])([0-9a-fA-F])([0-9a-fA-F])$/,e.parse=t}(J||(J={})),function(e){function t(e){return[i(parseInt(e[1],10)),a(parseInt(e[2],10)),s(parseInt(e[3],10)),u(parseFloat(e[4]))]}e.re=/^rgba\(\s*(-?\d{1,10})\s*,\s*(-?\d{1,10})\s*,\s*(-?\d{1,10})\s*,\s*(-?[\d]{0,10}(?:\.\d+)?)\s*\)$/,e.parse=t}(Z||(Z={})),t.rgbaToString=Y,t.rgbToBlackWhiteString=W,t.tryParseRgb=B,t.parseRgb=V,t.tryParseRgba=q,t.parseRgba=z},function(e,t,n){(function(t){e.exports=t.Mustache=n(725)}).call(t,function(){return this}())},function(e,t,n){"use strict";e.exports=n(1024)},,,function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t,n){var r=n(29),o=n(342),i=n(151),a=Object.defineProperty;t.f=n(79)?Object.defineProperty:function(e,t,n){if(r(e),t=i(t,!0),r(n),o)try{return a(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},function(e,t){"use strict";var n=!("undefined"==typeof window||!window.document||!window.document.createElement),r={canUseDOM:n,canUseWorkers:"undefined"!=typeof Worker, |
|||
canUseEventListeners:n&&!(!window.addEventListener&&!window.attachEvent),canUseViewport:n&&!!window.screen,isInWorker:!n};e.exports=r},,,,,,function(e,t){"use strict";function n(e){return function(){return e}}var r=function(){};r.thatReturns=n,r.thatReturnsFalse=n(!1),r.thatReturnsTrue=n(!0),r.thatReturnsNull=n(null),r.thatReturnsThis=function(){return this},r.thatReturnsArgument=function(e){return e},e.exports=r},,,,,,function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},,,function(e,t,n){"use strict";var r=null;e.exports={debugTool:r}},,,function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children=[],e.webpackPolyfill=1),e}},function(e,t,n){e.exports=!n(58)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},,,,,,,function(e,t,n){e.exports=n(1008)()},function(e,t,n){"use strict";function r(){p.ReactReconcileTransaction&&T||d("123")}function o(){this.reinitializeTransaction(),this.dirtyComponentsLength=null,this.callbackQueue=m.getPooled(),this.reconcileTransaction=p.ReactReconcileTransaction.getPooled(!0)}function i(e,t,n,o,i,a){return r(),T.batchedUpdates(e,t,n,o,i,a)}function a(e,t){return e._mountOrder-t._mountOrder}function s(e){var t,n,r,o,i,s,u=e.dirtyComponentsLength;for(u!==_.length&&d("124",u,_.length),_.sort(a),w++,t=0;t<u;t++)if(n=_[t],r=n._pendingCallbacks,n._pendingCallbacks=null,y.logTopLevelRenders&&(i=n,n._currentElement.type.isReactTopLevelWrapper&&(i=n._renderedComponent),o="React update: "+i.getName(),console.time(o)),v.performUpdateIfNecessary(n,e.reconcileTransaction,w),o&&console.timeEnd(o),r)for(s=0;s<r.length;s++)e.callbackQueue.enqueue(r[s],n.getPublicInstance())}function u(e){if(r(),!T.isBatchingUpdates)return void T.batchedUpdates(u,e);_.push(e),null==e._updateBatchNumber&&(e._updateBatchNumber=w+1)}function c(e,t){T.isBatchingUpdates||d("125"),x.enqueue(e,t),C=!0}var l,f,p,d=n(25),h=n(30),m=n(440),g=n(120),y=n(445),v=n(139),b=n(223),_=(n(17),[]),w=0,x=m.getPooled(),C=!1,T=null,k={initialize:function(){this.dirtyComponentsLength=_.length},close:function(){this.dirtyComponentsLength!==_.length?(_.splice(0,this.dirtyComponentsLength),l()):_.length=0}},E={initialize:function(){this.callbackQueue.reset()},close:function(){this.callbackQueue.notifyAll()}},S=[k,E];h(o.prototype,b,{getTransactionWrappers:function(){return S},destructor:function(){this.dirtyComponentsLength=null,m.release(this.callbackQueue),this.callbackQueue=null,p.ReactReconcileTransaction.release(this.reconcileTransaction),this.reconcileTransaction=null},perform:function(e,t,n){return b.perform.call(this,this.reconcileTransaction.perform,this.reconcileTransaction,e,t,n)}}),g.addPoolingTo(o),l=function(){for(var e,t;_.length||C;)_.length&&(e=o.getPooled(),e.perform(s,null,e),o.release(e)),C&&(C=!1,t=x,x=m.getPooled(),t.notifyAll(),m.release(t))},f={injectReconcileTransaction:function(e){e||d("126"),p.ReactReconcileTransaction=e},injectBatchingStrategy:function(e){e||d("127"), |
|||
"function"!=typeof e.batchedUpdates&&d("128"),"boolean"!=typeof e.isBatchingUpdates&&d("129"),T=e}},p={ReactReconcileTransaction:null,batchedUpdates:i,enqueueUpdate:u,flushBatchedUpdates:l,injection:f,asap:c},e.exports=p},function(e,t,n){var r=n(241),o=n(112);e.exports=function(e){return r(o(e))}},function(e,t,n){var r=n(199),o=Math.min;e.exports=function(e){return e>0?o(r(e),9007199254740991):0}},function(e,t){"use strict";var n=window.Modernizr=function(e,t,n){function r(e){v.cssText=e}function o(e,t){return typeof e===t}function i(e,t){return!!~(""+e).indexOf(t)}function a(e,t){var r,o;for(r in e)if(o=e[r],!i(o,"-")&&v[o]!==n)return"pfx"!=t||o;return!1}function s(e,t,r){var i,a;for(i in e)if((a=t[e[i]])!==n)return!1===r?e[i]:o(a,"function")?a.bind(r||t):a;return!1}function u(e,t,n){var r=e.charAt(0).toUpperCase()+e.slice(1),i=(e+" "+w.join(r+" ")+r).split(" ");return o(t,"string")||o(t,"undefined")?a(i,t):(i=(e+" "+x.join(r+" ")+r).split(" "),s(i,t,n))}var c,l,f,p="2.8.3",d={},h=!0,m=t.documentElement,g="modernizr",y=t.createElement(g),v=y.style,b=" -webkit- -moz- -o- -ms- ".split(" "),_="Webkit Moz O ms",w=_.split(" "),x=_.toLowerCase().split(" "),C={},T=[],k=T.slice,E=function(e,n,r,o){var i,a,s,u,c=t.createElement("div"),l=t.body,f=l||t.createElement("body");if(parseInt(r,10))for(;r--;)s=t.createElement("div"),s.id=o?o[r]:g+(r+1),c.appendChild(s);return i='­<style id="s'+g+'">'+e+"</style>",c.id=g,(l?c:f).innerHTML+=i,f.appendChild(c),l||(f.style.background="",f.style.overflow="hidden",u=m.style.overflow,m.style.overflow="hidden",m.appendChild(f)),a=n(c,e),l?c.parentNode.removeChild(c):(f.parentNode.removeChild(f),m.style.overflow=u),!!a},S=function(){function e(e,i){i=i||t.createElement(r[e]||"div"),e="on"+e;var a=e in i;return a||(i.setAttribute||(i=t.createElement("div")),i.setAttribute&&i.removeAttribute&&(i.setAttribute(e,""),a=o(i[e],"function"),o(i[e],"undefined")||(i[e]=n),i.removeAttribute(e))),i=null,a}var r={select:"input",change:"input",submit:"form",reset:"form",error:"img",load:"img",abort:"img"};return e}(),M={}.hasOwnProperty;l=o(M,"undefined")||o(M.call,"undefined")?function(e,t){return t in e&&o(e.constructor.prototype[t],"undefined")}:function(e,t){return M.call(e,t)},Function.prototype.bind||(Function.prototype.bind=function(e){var t,n,r=this;if("function"!=typeof r)throw new TypeError;return t=k.call(arguments,1),n=function(){var o,i,a;return this instanceof n?(o=function(){},o.prototype=r.prototype,i=new o,a=r.apply(i,t.concat(k.call(arguments))),Object(a)===a?a:i):r.apply(e,t.concat(k.call(arguments)))}}),C.flexbox=function(){return u("flexWrap")},C.canvas=function(){var e=t.createElement("canvas");return!!e.getContext&&!!e.getContext("2d")},C.canvastext=function(){return!!d.canvas&&!!o(t.createElement("canvas").getContext("2d").fillText,"function")},C.touch=function(){var n;return"ontouchstart"in e||e.DocumentTouch&&t instanceof DocumentTouch?n=!0:E("@media ("+b.join("touch-enabled),(")+g+"){#modernizr{top:9px;position:absolute}}",function(e){n=9===e.offsetTop}),n}, |
|||
C.history=function(){return!!e.history&&!!history.pushState},C.draganddrop=function(){var e=t.createElement("div");return"draggable"in e||"ondragstart"in e&&"ondrop"in e},C.websockets=function(){return"WebSocket"in e||"MozWebSocket"in e},C.multiplebgs=function(){return r("background:url(https://),url(https://),red url(https://)"),/(url\s*\(.*?){3}/.test(v.background)},C.csscolumns=function(){return u("columnCount")},C.csstransitions=function(){return u("transition")},C.localstorage=function(){try{return localStorage.setItem(g,g),localStorage.removeItem(g),!0}catch(e){return!1}};for(f in C)l(C,f)&&(c=f.toLowerCase(),d[c]=C[f](),T.push((d[c]?"":"no-")+c));return d.addTest=function(e,t){if("object"==typeof e)for(var r in e)l(e,r)&&d.addTest(r,e[r]);else{if(e=e.toLowerCase(),d[e]!==n)return d;t="function"==typeof t?t():t,void 0!==h&&h&&(m.className+=" feature-"+(t?"":"no-")+e),d[e]=t}return d},r(""),y=null,d._version=p,d._prefixes=b,d._domPrefixes=x,d._cssomPrefixes=w,d.hasEvent=S,d.testProp=function(e){return a([e])},d.testAllProps=u,d.testStyles=E,m.className=m.className.replace(/(^|\s)no-js(\s|$)/,"$1$2")+(h?" feature-js feature-"+T.join(" feature-"):""),d}(window,document);!n.touch||"onorientationchange"in window||(n.touch=!1,document.documentElement.className=document.documentElement.className.replace("feature-touch","feature-no-touch")),n.addTest("pointerevents",function(){var e,t=document.createElement("x"),n=document.documentElement,r=window.getComputedStyle,o=!1;return"pointerEvents"in t.style&&(t.style.pointerEvents="auto",t.style.pointerEvents="x",n.appendChild(t),r&&(e=r(t,""),o=!!e&&"auto"===e.pointerEvents),n.removeChild(t),!!o)}),n.addTest("flexbox",n.testAllProps("flexBasis","1px",!0))},function(e,t,n){"use strict";function r(e,t,n,r){var o,i,s,u;this.dispatchConfig=e,this._targetInst=t,this.nativeEvent=n,o=this.constructor.Interface;for(i in o)o.hasOwnProperty(i)&&(s=o[i],s?this[i]=s(n):"target"===i?this.target=r:this[i]=n[i]);return u=null!=n.defaultPrevented?n.defaultPrevented:!1===n.returnValue,this.isDefaultPrevented=u?a.thatReturnsTrue:a.thatReturnsFalse,this.isPropagationStopped=a.thatReturnsFalse,this}var o=n(30),i=n(120),a=n(66),s=(n(24),["dispatchConfig","_targetInst","nativeEvent","isDefaultPrevented","isPropagationStopped","_dispatchListeners","_dispatchInstances"]),u={type:null,target:null,currentTarget:a.thatReturnsNull,eventPhase:null,bubbles:null,cancelable:null,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:null,isTrusted:null};o(r.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=a.thatReturnsTrue)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=a.thatReturnsTrue)},persist:function(){this.isPersistent=a.thatReturnsTrue},isPersistent:a.thatReturnsFalse,destructor:function(){ |
|||
var e,t,n=this.constructor.Interface;for(e in n)this[e]=null;for(t=0;t<s.length;t++)this[s[t]]=null}}),r.Interface=u,r.augmentClass=function(e,t){var n,r=this,a=function(){};a.prototype=r.prototype,n=new a,o(n,e.prototype),e.prototype=n,e.prototype.constructor=e,e.Interface=o({},r.Interface,t),e.augmentClass=r.augmentClass,i.addPoolingTo(e,i.fourArgumentPooler)},i.addPoolingTo(r,i.fourArgumentPooler),e.exports=r},function(e,t){"use strict";var n={current:null};e.exports=n},,,,,,,function(e,t,n){var r=n(124);e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,o){return e.call(t,n,r,o)}}return function(){return e.apply(t,arguments)}}},function(e,t){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var r,o,i;Object.defineProperty(t,"__esModule",{value:!0}),r=Object.assign||function(e){var t,n,r;for(t=1;t<arguments.length;t++){n=arguments[t];for(r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o={type:"logger",log:function(e){this._output("log",e)},warn:function(e){this._output("warn",e)},error:function(e){this._output("error",e)},_output:function(e,t){console&&console[e]&&console[e].apply(console,Array.prototype.slice.call(t))}},i=function(){function e(t){var r=arguments.length<=1||void 0===arguments[1]?{}:arguments[1];n(this,e),this.subs=[],this.init(t,r)}return e.prototype.init=function(e){var t=arguments.length<=1||void 0===arguments[1]?{}:arguments[1];this.prefix=t.prefix||"i18next:",this.logger=e||o,this.options=t,this.debug=!1!==t.debug},e.prototype.setDebug=function(e){this.debug=e,this.subs.forEach(function(t){t.setDebug(e)})},e.prototype.log=function(){this.forward(arguments,"log","",!0)},e.prototype.warn=function(){this.forward(arguments,"warn","",!0)},e.prototype.error=function(){this.forward(arguments,"error","")},e.prototype.deprecate=function(){this.forward(arguments,"warn","WARNING DEPRECATED: ",!0)},e.prototype.forward=function(e,t,n,r){r&&!this.debug||("string"==typeof e[0]&&(e[0]=n+this.prefix+" "+e[0]),this.logger[t](e))},e.prototype.create=function(t){var n=new e(this.logger,r({prefix:this.prefix+":"+t+":"},this.options));return this.subs.push(n),n},e}(),t.default=new i},,,,,,,,,,,function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},function(e,t){e.exports=function(e){if(void 0==e)throw TypeError("Can't call method on "+e);return e}},function(e,t,n){var r=n(59),o=n(114);e.exports=n(79)?function(e,t,n){return r.f(e,t,o(1,n))}:function(e,t,n){return e[t]=n,e}},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},,,,,,function(e,t,n){"use strict";var r=n(25),o=(n(17),function(e){var t,n=this;return n.instancePool.length?(t=n.instancePool.pop(),n.call(t,e),t):new n(e)}),i=function(e,t){var n,r=this;return r.instancePool.length?(n=r.instancePool.pop(),r.call(n,e,t),n):new r(e,t)},a=function(e,t,n){ |
|||
var r,o=this;return o.instancePool.length?(r=o.instancePool.pop(),o.call(r,e,t,n),r):new o(e,t,n)},s=function(e,t,n,r){var o,i=this;return i.instancePool.length?(o=i.instancePool.pop(),i.call(o,e,t,n,r),o):new i(e,t,n,r)},u=function(e){var t=this;e instanceof t||r("25"),e.destructor(),t.instancePool.length<t.poolSize&&t.instancePool.push(e)},c=10,l=o,f=function(e,t){var n=e;return n.instancePool=[],n.getPooled=t||l,n.poolSize||(n.poolSize=c),n.release=u,n},p={addPoolingTo:f,oneArgumentPooler:o,twoArgumentPooler:i,threeArgumentPooler:a,fourArgumentPooler:s};e.exports=p},,,,function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},function(e,t,n){var r=n(39)("unscopables"),o=Array.prototype;void 0==o[r]&&n(113)(o,r,{}),e.exports=function(e){o[r][e]=!0}},function(e,t){var n=e.exports={version:"2.4.0"};"number"==typeof __e&&(__e=n)},function(e,t,n){var r=n(149),o=n(114),i=n(88),a=n(151),s=n(72),u=n(342),c=Object.getOwnPropertyDescriptor;t.f=n(79)?c:function(e,t){if(e=i(e),t=a(t,!0),u)try{return c(e,t)}catch(e){}if(s(e,t))return o(!r.f.call(e,t),e[t])}},function(e,t,n){var r=n(351),o=n(238);e.exports=Object.keys||function(e){return r(e,o)}},function(e,t,n){var r=n(35),o=n(113),i=n(72),a=n(152)("src"),s="toString",u=Function[s],c=(""+u).split(s);n(126).inspectSource=function(e){return u.call(e)},(e.exports=function(e,t,n,s){var u="function"==typeof n;u&&(i(n,"name")||o(n,"name",t)),e[t]!==n&&(u&&(i(n,a)||o(n,a,e[t]?""+e[t]:c.join(t+""))),e===r?e[t]=n:s?e[t]?e[t]=n:o(e,t,n):(delete e[t],o(e,t,n)))})(Function.prototype,s,function(){return"function"==typeof this&&this[a]||u.call(this)})},function(e,t,n){var r=n(112);e.exports=function(e){return Object(r(e))}},,,,,,,function(e,t,n){"use strict";function r(e){var t,n,r;if(g)if(t=e.node,n=e.children,n.length)for(r=0;r<n.length;r++)y(t,n[r],null);else null!=e.html?f(t,e.html):null!=e.text&&d(t,e.text)}function o(e,t){e.parentNode.replaceChild(t.node,e),r(t)}function i(e,t){g?e.children.push(t):e.node.appendChild(t.node)}function a(e,t){g?e.html=t:f(e.node,t)}function s(e,t){g?e.text=t:d(e.node,t)}function u(){return this.node.nodeName}function c(e){return{node:e,children:[],html:null,text:null,toString:u}}var l=n(290),f=n(225),p=n(298),d=n(458),h=1,m=11,g="undefined"!=typeof document&&"number"==typeof document.documentMode||"undefined"!=typeof navigator&&"string"==typeof navigator.userAgent&&/\bEdge\/\d/.test(navigator.userAgent),y=p(function(e,t,n){t.node.nodeType===m||t.node.nodeType===h&&"object"===t.node.nodeName.toLowerCase()&&(null==t.node.namespaceURI||t.node.namespaceURI===l.html)?(r(t),e.insertBefore(t.node,n)):(e.insertBefore(t.node,n),r(t))});c.insertTreeBefore=y,c.replaceChildWithTree=o,c.queueChild=i,c.queueHTML=a,c.queueText=s,e.exports=c},function(e,t,n){"use strict";function r(e,t){return(e&t)===t}var o=n(25),i=(n(17),{MUST_USE_PROPERTY:1,HAS_BOOLEAN_VALUE:4,HAS_NUMERIC_VALUE:8,HAS_POSITIVE_NUMERIC_VALUE:24,HAS_OVERLOADED_BOOLEAN_VALUE:32,injectDOMPropertyConfig:function(e){ |
|||
var t,n,a,u,c,l=i,f=e.Properties||{},p=e.DOMAttributeNamespaces||{},d=e.DOMAttributeNames||{},h=e.DOMPropertyNames||{},m=e.DOMMutationMethods||{};e.isCustomAttribute&&s._isCustomAttributeFunctions.push(e.isCustomAttribute);for(t in f)s.properties.hasOwnProperty(t)&&o("48",t),n=t.toLowerCase(),a=f[t],u={attributeName:n,attributeNamespace:null,propertyName:t,mutationMethod:null,mustUseProperty:r(a,l.MUST_USE_PROPERTY),hasBooleanValue:r(a,l.HAS_BOOLEAN_VALUE),hasNumericValue:r(a,l.HAS_NUMERIC_VALUE),hasPositiveNumericValue:r(a,l.HAS_POSITIVE_NUMERIC_VALUE),hasOverloadedBooleanValue:r(a,l.HAS_OVERLOADED_BOOLEAN_VALUE)},u.hasBooleanValue+u.hasNumericValue+u.hasOverloadedBooleanValue<=1||o("50",t),d.hasOwnProperty(t)&&(c=d[t],u.attributeName=c),p.hasOwnProperty(t)&&(u.attributeNamespace=p[t]),h.hasOwnProperty(t)&&(u.propertyName=h[t]),m.hasOwnProperty(t)&&(u.mutationMethod=m[t]),s.properties[t]=u}}),a=":A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",s={ID_ATTRIBUTE_NAME:"data-reactid",ROOT_ATTRIBUTE_NAME:"data-reactroot",ATTRIBUTE_NAME_START_CHAR:a,ATTRIBUTE_NAME_CHAR:a+"\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",properties:{},getPossibleStandardName:null,_isCustomAttributeFunctions:[],isCustomAttribute:function(e){var t;for(t=0;t<s._isCustomAttributeFunctions.length;t++)if((0,s._isCustomAttributeFunctions[t])(e))return!0;return!1},injection:i};e.exports=s},function(e,t,n){"use strict";function r(){o.attachRefs(this,this._currentElement)}var o=n(1047),i=(n(75),n(24),{mountComponent:function(e,t,n,o,i,a){var s=e.mountComponent(t,n,o,i,a);return e._currentElement&&null!=e._currentElement.ref&&t.getReactMountReady().enqueue(r,e),s},getHostNode:function(e){return e.getHostNode()},unmountComponent:function(e,t){o.detachRefs(e,e._currentElement),e.unmountComponent(t)},receiveComponent:function(e,t,n,i){var a,s=e._currentElement;t===s&&i===e._context||(a=o.shouldUpdateRefs(s,t),a&&o.detachRefs(e,s),e.receiveComponent(t,n,i),a&&e._currentElement&&null!=e._currentElement.ref&&n.getReactMountReady().enqueue(r,e))},performUpdateIfNecessary:function(e,t,n){e._updateBatchNumber===n&&e.performUpdateIfNecessary(t)}});e.exports=i},function(e,t,n){"use strict";var r,o,i,a=n(30),s=n(462),u=n(1080),c=n(1081),l=n(141),f=n(1082),p=n(1083),d=n(1084),h=n(1088),m=l.createElement,g=l.createFactory,y=l.cloneElement;r=a,o=function(e){return e},i={Children:{map:u.map,forEach:u.forEach,count:u.count,toArray:u.toArray,only:h},Component:s.Component,PureComponent:s.PureComponent,createElement:m,cloneElement:y,isValidElement:l.isValidElement,PropTypes:f,createClass:d,createFactory:g,createMixin:o,DOM:c,version:p,__spread:r},e.exports=i},function(e,t,n){"use strict";function r(e){return void 0!==e.ref}function o(e){return void 0!==e.key}var i=n(30),a=n(92),s=(n(24),n(466),Object.prototype.hasOwnProperty),u=n(464),c={key:!0,ref:!0,__self:!0,__source:!0},l=function(e,t,n,r,o,i,a){var s={$$typeof:u,type:e,key:t,ref:n,props:a, |
|||
_owner:i};return s};l.createElement=function(e,t,n){var i,u,f,p,d,h={},m=null,g=null,y=null,v=null;if(null!=t){r(t)&&(g=t.ref),o(t)&&(m=""+t.key),y=void 0===t.__self?null:t.__self,v=void 0===t.__source?null:t.__source;for(i in t)s.call(t,i)&&!c.hasOwnProperty(i)&&(h[i]=t[i])}if(1===(u=arguments.length-2))h.children=n;else if(u>1){for(f=Array(u),p=0;p<u;p++)f[p]=arguments[p+2];h.children=f}if(e&&e.defaultProps){d=e.defaultProps;for(i in d)void 0===h[i]&&(h[i]=d[i])}return l(e,m,g,y,v,a.current,h)},l.createFactory=function(e){var t=l.createElement.bind(null,e);return t.type=e,t},l.cloneAndReplaceKey=function(e,t){return l(e.type,t,e.ref,e._self,e._source,e._owner,e.props)},l.cloneElement=function(e,t,n){var u,f,p,d,h,m=i({},e.props),g=e.key,y=e.ref,v=e._self,b=e._source,_=e._owner;if(null!=t){r(t)&&(y=t.ref,_=a.current),o(t)&&(g=""+t.key),e.type&&e.type.defaultProps&&(f=e.type.defaultProps);for(u in t)s.call(t,u)&&!c.hasOwnProperty(u)&&(void 0===t[u]&&void 0!==f?m[u]=f[u]:m[u]=t[u])}if(1===(p=arguments.length-2))m.children=n;else if(p>1){for(d=Array(p),h=0;h<p;h++)d[h]=arguments[h+2];m.children=d}return l(e.type,g,y,v,b,_,m)},l.isValidElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===u},e.exports=l},,,,,,,function(e,t,n){var r=n(72),o=n(130),i=n(251)("IE_PROTO"),a=Object.prototype;e.exports=Object.getPrototypeOf||function(e){return e=o(e),r(e,i)?e[i]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?a:null}},function(e,t){t.f={}.propertyIsEnumerable},function(e,t,n){var r=n(59).f,o=n(72),i=n(39)("toStringTag");e.exports=function(e,t,n){e&&!o(e=n?e:e.prototype,i)&&r(e,i,{configurable:!0,value:t})}},function(e,t,n){var r=n(50);e.exports=function(e,t){if(!r(e))return e;var n,o;if(t&&"function"==typeof(n=e.toString)&&!r(o=n.call(e)))return o;if("function"==typeof(n=e.valueOf)&&!r(o=n.call(e)))return o;if(!t&&"function"==typeof(n=e.toString)&&!r(o=n.call(e)))return o;throw TypeError("Can't convert object to primitive value")}},function(e,t){var n=0,r=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++n+r).toString(36))}},,,,,,,function(e,t){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(){n(this,e),this.observers={}}return e.prototype.on=function(e,t){var n=this;e.split(" ").forEach(function(e){n.observers[e]=n.observers[e]||[],n.observers[e].push(t)})},e.prototype.off=function(e,t){var n=this;this.observers[e]&&this.observers[e].forEach(function(){if(t){var r=n.observers[e].indexOf(t);r>-1&&n.observers[e].splice(r,1)}else delete n.observers[e]})},e.prototype.emit=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];this.observers[e]&&this.observers[e].forEach(function(e){e.apply(void 0,n)}),this.observers["*"]&&this.observers["*"].forEach(function(t){var r;t.apply(t,(r=[e]).concat.apply(r,n))})},e}();t.default=r},function(e,t){"use strict" |
|||
;function n(e){return null==e?"":""+e}function r(e,t,n){e.forEach(function(e){t[e]&&(n[e]=t[e])})}function o(e,t,n){function r(e){return e&&e.indexOf("###")>-1?e.replace(/###/g,"."):e}for(var o,i="string"!=typeof t?[].concat(t):t.split(".");i.length>1;){if(!e)return{};o=r(i.shift()),!e[o]&&n&&(e[o]=new n),e=e[o]}return e?{obj:e,k:r(i.shift())}:{}}function i(e,t,n){var r=o(e,t,Object);r.obj[r.k]=n}function a(e,t,n,r){var i=o(e,t,Object),a=i.obj,s=i.k;a[s]=a[s]||[],r&&(a[s]=a[s].concat(n)),r||a[s].push(n)}function s(e,t){var n=o(e,t),r=n.obj,i=n.k;if(r)return r[i]}function u(e,t,n){for(var r in t)r in e?"string"==typeof e[r]||e[r]instanceof String||"string"==typeof t[r]||t[r]instanceof String?n&&(e[r]=t[r]):u(e[r],t[r],n):e[r]=t[r];return e}function c(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}function l(e){return"string"==typeof e?e.replace(/[&<>"'\/]/g,function(e){return f[e]}):e}Object.defineProperty(t,"__esModule",{value:!0}),t.makeString=n,t.copy=r,t.setPath=i,t.pushPath=a,t.getPath=s,t.deepExtend=u,t.regexEscape=c,t.escape=l;var f={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"}},,,,,function(e,t,n){"use strict";function r(e){return"button"===e||"input"===e||"select"===e||"textarea"===e}function o(e,t,n){switch(e){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":return!(!n.disabled||!r(t));default:return!1}}var i=n(25),a=n(291),s=n(292),u=n(296),c=n(451),l=n(452),f=(n(17),{}),p=null,d=function(e,t){e&&(s.executeDispatchesInOrder(e,t),e.isPersistent()||e.constructor.release(e))},h=function(e){return d(e,!0)},m=function(e){return d(e,!1)},g=function(e){return"."+e._rootNodeID},y={injection:{injectEventPluginOrder:a.injectEventPluginOrder,injectEventPluginsByName:a.injectEventPluginsByName},putListener:function(e,t,n){var r,o,s;"function"!=typeof n&&i("94",t,typeof n),r=g(e),o=f[t]||(f[t]={}),o[r]=n,(s=a.registrationNameModules[t])&&s.didPutListener&&s.didPutListener(e,t,n)},getListener:function(e,t){var n,r=f[t];return o(t,e._currentElement.type,e._currentElement.props)?null:(n=g(e),r&&r[n])},deleteListener:function(e,t){var n,r,o=a.registrationNameModules[t];o&&o.willDeleteListener&&o.willDeleteListener(e,t),(n=f[t])&&(r=g(e),delete n[r])},deleteAllListeners:function(e){var t,n,r=g(e);for(t in f)f.hasOwnProperty(t)&&f[t][r]&&(n=a.registrationNameModules[t],n&&n.willDeleteListener&&n.willDeleteListener(e,t),delete f[t][r])},extractEvents:function(e,t,n,r){var o,i,s,u,l=a.plugins;for(i=0;i<l.length;i++)(s=l[i])&&(u=s.extractEvents(e,t,n,r))&&(o=c(o,u));return o},enqueueEvents:function(e){e&&(p=c(p,e))},processEventQueue:function(e){var t=p;p=null,e?l(t,h):l(t,m),p&&i("95"),u.rethrowCaughtError()},__purge:function(){f={}},__getListenerBank:function(){return f}};e.exports=y},function(e,t,n){"use strict";function r(e,t,n){var r=t.dispatchConfig.phasedRegistrationNames[n];return y(e,r)}function o(e,t,n){var o=r(e,n,t) |
|||
;o&&(n._dispatchListeners=m(n._dispatchListeners,o),n._dispatchInstances=m(n._dispatchInstances,e))}function i(e){e&&e.dispatchConfig.phasedRegistrationNames&&h.traverseTwoPhase(e._targetInst,o,e)}function a(e){var t,n;e&&e.dispatchConfig.phasedRegistrationNames&&(t=e._targetInst,n=t?h.getParentInstance(t):null,h.traverseTwoPhase(n,o,e))}function s(e,t,n){var r,o;n&&n.dispatchConfig.registrationName&&(r=n.dispatchConfig.registrationName,(o=y(e,r))&&(n._dispatchListeners=m(n._dispatchListeners,o),n._dispatchInstances=m(n._dispatchInstances,e)))}function u(e){e&&e.dispatchConfig.registrationName&&s(e._targetInst,null,e)}function c(e){g(e,i)}function l(e){g(e,a)}function f(e,t,n,r){h.traverseEnterLeave(n,r,s,e,t)}function p(e){g(e,u)}var d=n(165),h=n(292),m=n(451),g=n(452),y=(n(24),d.getListener),v={accumulateTwoPhaseDispatches:c,accumulateTwoPhaseDispatchesSkipTarget:l,accumulateDirectDispatches:p,accumulateEnterLeaveDispatches:f};e.exports=v},function(e,t){"use strict";var n={remove:function(e){e._reactInternalInstance=void 0},get:function(e){return e._reactInternalInstance},has:function(e){return void 0!==e._reactInternalInstance},set:function(e,t){e._reactInternalInstance=t}};e.exports=n},function(e,t,n){"use strict";function r(e,t,n,r){return o.call(this,e,t,n,r)}var o=n(91),i=n(301),a={view:function(e){var t,n;return e.view?e.view:(t=i(e),t.window===t?t:(n=t.ownerDocument,n?n.defaultView||n.parentWindow:window))},detail:function(e){return e.detail||0}};o.augmentClass(r,a),e.exports=r},function(e,t){"use strict";function n(e){var t,n,r=arguments.length-1,o="Minified React error #"+e+"; visit http://facebook.github.io/react/docs/error-decoder.html?invariant="+e;for(t=0;t<r;t++)o+="&args[]="+encodeURIComponent(arguments[t+1]);throw o+=" for the full message or use the non-minified dev environment for full errors and additional helpful warnings.",n=Error(o),n.name="Invariant Violation",n.framesToPop=1,n}e.exports=n},,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){var r,o;(function(){function n(e){function t(t,n,r,o,i,a){for(;i>=0&&i<a;i+=e){var s=o?o[i]:i;r=n(r,t[s],s,t)}return r}return function(n,r,o,i){r=u(r,i,4);var a=!m(n)&&q.keys(n),s=(a||n).length,c=e>0?0:s-1;return arguments.length<3&&(o=n[a?a[c]:c],c+=e),t(n,r,o,a,c,s)}}function i(e){return function(t,n,r){var o,i;for(n=c(n,r),o=h(t),i=e>0?0:o-1;i>=0&&i<o;i+=e)if(n(t[i],i,t))return i;return-1}}function a(e,t,n){return function(r,o,i){var a=0,s=h(r);if("number"==typeof i)e>0?a=i>=0?i:Math.max(i+s,a):s=i>=0?Math.min(i+1,s):i+s+1;else if(n&&i&&s)return i=n(r,o),r[i]===o?i:-1;if(o!==o)return i=t(R.call(r,a,s),q.isNaN),i>=0?i+a:-1;for(i=e>0?a:s-1;i>=0&&i<s;i+=e)if(r[i]===o)return i;return-1}}function s(e,t){var n=_.length,r=e.constructor,o=q.isFunction(r)&&r.prototype||L,i="constructor";for(q.has(e,i)&&!q.contains(t,i)&&t.push(i);n--;)(i=_[n])in e&&e[i]!==o[i]&&!q.contains(t,i)&&t.push(i)} |
|||
var u,c,l,f,p,d,h,m,g,y,v,b,_,w,x,C,T,k,E,S,M,O,N,D=this,P=D._,A=Array.prototype,L=Object.prototype,I=Function.prototype,j=A.push,R=A.slice,F=L.toString,U=L.hasOwnProperty,H=Array.isArray,Y=Object.keys,W=I.bind,B=Object.create,V=function(){},q=function(e){return e instanceof q?e:this instanceof q?void(this._wrapped=e):new q(e)};void 0!==e&&e.exports&&(t=e.exports=q),t._=q,q.VERSION="1.8.3",u=function(e,t,n){if(void 0===t)return e;switch(null==n?3:n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,o){return e.call(t,n,r,o)};case 4:return function(n,r,o,i){return e.call(t,n,r,o,i)}}return function(){return e.apply(t,arguments)}},c=function(e,t,n){return null==e?q.identity:q.isFunction(e)?u(e,t,n):q.isObject(e)?q.matcher(e):q.property(e)},q.iteratee=function(e,t){return c(e,t,1/0)},l=function(e,t){return function(n){var r,o,i,a,s,u,c=arguments.length;if(c<2||null==n)return n;for(r=1;r<c;r++)for(o=arguments[r],i=e(o),a=i.length,s=0;s<a;s++)u=i[s],t&&void 0!==n[u]||(n[u]=o[u]);return n}},f=function(e){if(!q.isObject(e))return{};if(B)return B(e);V.prototype=e;var t=new V;return V.prototype=null,t},p=function(e){return function(t){return null==t?void 0:t[e]}},d=Math.pow(2,53)-1,h=p("length"),m=function(e){var t=h(e);return"number"==typeof t&&t>=0&&t<=d},q.each=q.forEach=function(e,t,n){var r,o,i;if(t=u(t,n),m(e))for(r=0,o=e.length;r<o;r++)t(e[r],r,e);else for(i=q.keys(e),r=0,o=i.length;r<o;r++)t(e[i[r]],i[r],e);return e},q.map=q.collect=function(e,t,n){var r,o,i,a,s;for(t=c(t,n),r=!m(e)&&q.keys(e),o=(r||e).length,i=Array(o),a=0;a<o;a++)s=r?r[a]:a,i[a]=t(e[s],s,e);return i},q.reduce=q.foldl=q.inject=n(1),q.reduceRight=q.foldr=n(-1),q.find=q.detect=function(e,t,n){var r;if(void 0!==(r=m(e)?q.findIndex(e,t,n):q.findKey(e,t,n))&&-1!==r)return e[r]},q.filter=q.select=function(e,t,n){var r=[];return t=c(t,n),q.each(e,function(e,n,o){t(e,n,o)&&r.push(e)}),r},q.reject=function(e,t,n){return q.filter(e,q.negate(c(t)),n)},q.every=q.all=function(e,t,n){var r,o,i,a;for(t=c(t,n),r=!m(e)&&q.keys(e),o=(r||e).length,i=0;i<o;i++)if(a=r?r[i]:i,!t(e[a],a,e))return!1;return!0},q.some=q.any=function(e,t,n){var r,o,i,a;for(t=c(t,n),r=!m(e)&&q.keys(e),o=(r||e).length,i=0;i<o;i++)if(a=r?r[i]:i,t(e[a],a,e))return!0;return!1},q.contains=q.includes=q.include=function(e,t,n,r){return m(e)||(e=q.values(e)),("number"!=typeof n||r)&&(n=0),q.indexOf(e,t,n)>=0},q.invoke=function(e,t){var n=R.call(arguments,2),r=q.isFunction(t);return q.map(e,function(e){var o=r?t:e[t];return null==o?o:o.apply(e,n)})},q.pluck=function(e,t){return q.map(e,q.property(t))},q.where=function(e,t){return q.filter(e,q.matcher(t))},q.findWhere=function(e,t){return q.find(e,q.matcher(t))},q.max=function(e,t,n){var r,o,i,a,s=-1/0,u=-1/0;if(null==t&&null!=e)for(e=m(e)?e:q.values(e),i=0,a=e.length;i<a;i++)(r=e[i])>s&&(s=r);else t=c(t,n),q.each(e,function(e,n,r){((o=t(e,n,r))>u||o===-1/0&&s===-1/0)&&(s=e,u=o)});return s},q.min=function(e,t,n){var r,o,i,a,s=1/0,u=1/0;if(null==t&&null!=e)for(e=m(e)?e:q.values(e), |
|||
i=0,a=e.length;i<a;i++)(r=e[i])<s&&(s=r);else t=c(t,n),q.each(e,function(e,n,r){((o=t(e,n,r))<u||o===1/0&&s===1/0)&&(s=e,u=o)});return s},q.shuffle=function(e){var t,n,r=m(e)?e:q.values(e),o=r.length,i=Array(o);for(t=0;t<o;t++)n=q.random(0,t),n!==t&&(i[t]=i[n]),i[n]=r[t];return i},q.sample=function(e,t,n){return null==t||n?(m(e)||(e=q.values(e)),e[q.random(e.length-1)]):q.shuffle(e).slice(0,Math.max(0,t))},q.sortBy=function(e,t,n){return t=c(t,n),q.pluck(q.map(e,function(e,n,r){return{value:e,index:n,criteria:t(e,n,r)}}).sort(function(e,t){var n=e.criteria,r=t.criteria;if(n!==r){if(n>r||void 0===n)return 1;if(n<r||void 0===r)return-1}return e.index-t.index}),"value")},g=function(e){return function(t,n,r){var o={};return n=c(n,r),q.each(t,function(r,i){var a=n(r,i,t);e(o,r,a)}),o}},q.groupBy=g(function(e,t,n){q.has(e,n)?e[n].push(t):e[n]=[t]}),q.indexBy=g(function(e,t,n){e[n]=t}),q.countBy=g(function(e,t,n){q.has(e,n)?e[n]++:e[n]=1}),q.toArray=function(e){return e?q.isArray(e)?R.call(e):m(e)?q.map(e,q.identity):q.values(e):[]},q.size=function(e){return null==e?0:m(e)?e.length:q.keys(e).length},q.partition=function(e,t,n){t=c(t,n);var r=[],o=[];return q.each(e,function(e,n,i){(t(e,n,i)?r:o).push(e)}),[r,o]},q.first=q.head=q.take=function(e,t,n){if(null!=e)return null==t||n?e[0]:q.initial(e,e.length-t)},q.initial=function(e,t,n){return R.call(e,0,Math.max(0,e.length-(null==t||n?1:t)))},q.last=function(e,t,n){if(null!=e)return null==t||n?e[e.length-1]:q.rest(e,Math.max(0,e.length-t))},q.rest=q.tail=q.drop=function(e,t,n){return R.call(e,null==t||n?1:t)},q.compact=function(e){return q.filter(e,q.identity)},y=function(e,t,n,r){var o,i,a,s,u,c=[],l=0;for(o=r||0,i=h(e);o<i;o++)if(a=e[o],m(a)&&(q.isArray(a)||q.isArguments(a)))for(t||(a=y(a,t,n)),s=0,u=a.length,c.length+=u;s<u;)c[l++]=a[s++];else n||(c[l++]=a);return c},q.flatten=function(e,t){return y(e,t,!1)},q.without=function(e){return q.difference(e,R.call(arguments,1))},q.uniq=q.unique=function(e,t,n,r){var o,i,a,s,u,l;for(q.isBoolean(t)||(r=n,n=t,t=!1),null!=n&&(n=c(n,r)),o=[],i=[],a=0,s=h(e);a<s;a++)u=e[a],l=n?n(u,a,e):u,t?(a&&i===l||o.push(u),i=l):n?q.contains(i,l)||(i.push(l),o.push(u)):q.contains(o,u)||o.push(u);return o},q.union=function(){return q.uniq(y(arguments,!0,!0))},q.intersection=function(e){var t,n,r,o,i=[],a=arguments.length;for(t=0,n=h(e);t<n;t++)if(r=e[t],!q.contains(i,r)){for(o=1;o<a&&q.contains(arguments[o],r);o++);o===a&&i.push(r)}return i},q.difference=function(e){var t=y(arguments,!0,!0,1);return q.filter(e,function(e){return!q.contains(t,e)})},q.zip=function(){return q.unzip(arguments)},q.unzip=function(e){var t,n=e&&q.max(e,h).length||0,r=Array(n);for(t=0;t<n;t++)r[t]=q.pluck(e,t);return r},q.object=function(e,t){var n,r,o={};for(n=0,r=h(e);n<r;n++)t?o[e[n]]=t[n]:o[e[n][0]]=e[n][1];return o},q.findIndex=i(1),q.findLastIndex=i(-1),q.sortedIndex=function(e,t,n,r){var o,i,a,s;for(n=c(n,r,1),o=n(t),i=0,a=h(e);i<a;)s=Math.floor((i+a)/2),n(e[s])<o?i=s+1:a=s;return i},q.indexOf=a(1,q.findIndex,q.sortedIndex),q.lastIndexOf=a(-1,q.findLastIndex), |
|||
q.range=function(e,t,n){var r,o,i;for(null==t&&(t=e||0,e=0),n=n||1,r=Math.max(Math.ceil((t-e)/n),0),o=Array(r),i=0;i<r;i++,e+=n)o[i]=e;return o},v=function(e,t,n,r,o){var i,a;return r instanceof t?(i=f(e.prototype),a=e.apply(i,o),q.isObject(a)?a:i):e.apply(n,o)},q.bind=function(e,t){var n,r;if(W&&e.bind===W)return W.apply(e,R.call(arguments,1));if(!q.isFunction(e))throw new TypeError("Bind must be called on a function");return n=R.call(arguments,2),r=function(){return v(e,r,t,this,n.concat(R.call(arguments)))}},q.partial=function(e){var t=R.call(arguments,1),n=function(){var r,o=0,i=t.length,a=Array(i);for(r=0;r<i;r++)a[r]=t[r]===q?arguments[o++]:t[r];for(;o<arguments.length;)a.push(arguments[o++]);return v(e,n,this,this,a)};return n},q.bindAll=function(e){var t,n,r=arguments.length;if(r<=1)throw Error("bindAll must be passed function names");for(t=1;t<r;t++)n=arguments[t],e[n]=q.bind(e[n],e);return e},q.memoize=function(e,t){var n=function(r){var o=n.cache,i=""+(t?t.apply(this,arguments):r);return q.has(o,i)||(o[i]=e.apply(this,arguments)),o[i]};return n.cache={},n},q.delay=function(e,t){var n=R.call(arguments,2);return setTimeout(function(){return e.apply(null,n)},t)},q.defer=q.partial(q.delay,q,1),q.throttle=function(e,t,n){var r,o,i,a,s=null,u=0;return n||(n={}),a=function(){u=!1===n.leading?0:q.now(),s=null,i=e.apply(r,o),s||(r=o=null)},function(){var c,l=q.now();return u||!1!==n.leading||(u=l),c=t-(l-u),r=this,o=arguments,c<=0||c>t?(s&&(clearTimeout(s),s=null),u=l,i=e.apply(r,o),s||(r=o=null)):s||!1===n.trailing||(s=setTimeout(a,c)),i}},q.debounce=function(e,t,n){var r,o,i,a,s,u=function(){var c=q.now()-a;c<t&&c>=0?r=setTimeout(u,t-c):(r=null,n||(s=e.apply(i,o),r||(i=o=null)))};return function(){i=this,o=arguments,a=q.now();var c=n&&!r;return r||(r=setTimeout(u,t)),c&&(s=e.apply(i,o),i=o=null),s}},q.wrap=function(e,t){return q.partial(t,e)},q.negate=function(e){return function(){return!e.apply(this,arguments)}},q.compose=function(){var e=arguments,t=e.length-1;return function(){for(var n=t,r=e[t].apply(this,arguments);n--;)r=e[n].call(this,r);return r}},q.after=function(e,t){return function(){if(--e<1)return t.apply(this,arguments)}},q.before=function(e,t){var n;return function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=null),n}},q.once=q.partial(q.before,2),b=!{toString:null}.propertyIsEnumerable("toString"),_=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],q.keys=function(e){var t,n;if(!q.isObject(e))return[];if(Y)return Y(e);t=[];for(n in e)q.has(e,n)&&t.push(n);return b&&s(e,t),t},q.allKeys=function(e){var t,n;if(!q.isObject(e))return[];t=[];for(n in e)t.push(n);return b&&s(e,t),t},q.values=function(e){var t,n=q.keys(e),r=n.length,o=Array(r);for(t=0;t<r;t++)o[t]=e[n[t]];return o},q.mapObject=function(e,t,n){var r,o,i,a,s;for(t=c(t,n),r=q.keys(e),o=r.length,i={},s=0;s<o;s++)a=r[s],i[a]=t(e[a],a,e);return i},q.pairs=function(e){var t,n=q.keys(e),r=n.length,o=Array(r);for(t=0;t<r;t++)o[t]=[n[t],e[n[t]]];return o},q.invert=function(e){ |
|||
var t,n,r={},o=q.keys(e);for(t=0,n=o.length;t<n;t++)r[e[o[t]]]=o[t];return r},q.functions=q.methods=function(e){var t,n=[];for(t in e)q.isFunction(e[t])&&n.push(t);return n.sort()},q.extend=l(q.allKeys),q.extendOwn=q.assign=l(q.keys),q.findKey=function(e,t,n){var r,o,i,a;for(t=c(t,n),r=q.keys(e),i=0,a=r.length;i<a;i++)if(o=r[i],t(e[o],o,e))return o},q.pick=function(e,t,n){var r,o,i,a,s,c,l={},f=e;if(null==f)return l;q.isFunction(t)?(o=q.allKeys(f),r=u(t,n)):(o=y(arguments,!1,!1,1),r=function(e,t,n){return t in n},f=Object(f));for(i=0,a=o.length;i<a;i++)s=o[i],c=f[s],r(c,s,f)&&(l[s]=c);return l},q.omit=function(e,t,n){if(q.isFunction(t))t=q.negate(t);else{var r=q.map(y(arguments,!1,!1,1),String);t=function(e,t){return!q.contains(r,t)}}return q.pick(e,t,n)},q.defaults=l(q.allKeys,!0),q.create=function(e,t){var n=f(e);return t&&q.extendOwn(n,t),n},q.clone=function(e){return q.isObject(e)?q.isArray(e)?e.slice():q.extend({},e):e},q.tap=function(e,t){return t(e),e},q.isMatch=function(e,t){var n,r,o,i=q.keys(t),a=i.length;if(null==e)return!a;for(n=Object(e),r=0;r<a;r++)if(o=i[r],t[o]!==n[o]||!(o in n))return!1;return!0},w=function(e,t,n,r){var o,i,a,s,u,c,l;if(e===t)return 0!==e||1/e==1/t;if(null==e||null==t)return e===t;if(e instanceof q&&(e=e._wrapped),t instanceof q&&(t=t._wrapped),(o=F.call(e))!==F.call(t))return!1;switch(o){case"[object RegExp]":case"[object String]":return""+e==""+t;case"[object Number]":return+e!=+e?+t!=+t:0==+e?1/+e==1/t:+e==+t;case"[object Date]":case"[object Boolean]":return+e==+t}if(!(i="[object Array]"===o)){if("object"!=typeof e||"object"!=typeof t)return!1;if(a=e.constructor,s=t.constructor,a!==s&&!(q.isFunction(a)&&a instanceof a&&q.isFunction(s)&&s instanceof s)&&"constructor"in e&&"constructor"in t)return!1}for(n=n||[],r=r||[],u=n.length;u--;)if(n[u]===e)return r[u]===t;if(n.push(e),r.push(t),i){if((u=e.length)!==t.length)return!1;for(;u--;)if(!w(e[u],t[u],n,r))return!1}else{if(c=q.keys(e),u=c.length,q.keys(t).length!==u)return!1;for(;u--;)if(l=c[u],!q.has(t,l)||!w(e[l],t[l],n,r))return!1}return n.pop(),r.pop(),!0},q.isEqual=function(e,t){return w(e,t)},q.isEmpty=function(e){return null==e||(m(e)&&(q.isArray(e)||q.isString(e)||q.isArguments(e))?0===e.length:0===q.keys(e).length)},q.isElement=function(e){return!(!e||1!==e.nodeType)},q.isArray=H||function(e){return"[object Array]"===F.call(e)},q.isObject=function(e){var t=typeof e;return"function"===t||"object"===t&&!!e},q.each(["Arguments","Function","String","Number","Date","RegExp","Error"],function(e){q["is"+e]=function(t){return F.call(t)==="[object "+e+"]"}}),q.isArguments(arguments)||(q.isArguments=function(e){return q.has(e,"callee")}),"function"!=typeof/./&&"object"!=typeof Int8Array&&(q.isFunction=function(e){return"function"==typeof e||!1}),q.isFinite=function(e){return isFinite(e)&&!isNaN(parseFloat(e))},q.isNaN=function(e){return q.isNumber(e)&&e!==+e},q.isBoolean=function(e){return!0===e||!1===e||"[object Boolean]"===F.call(e)},q.isNull=function(e){return null===e},q.isUndefined=function(e){return void 0===e}, |
|||
q.has=function(e,t){return null!=e&&U.call(e,t)},q.noConflict=function(){return D._=P,this},q.identity=function(e){return e},q.constant=function(e){return function(){return e}},q.noop=function(){},q.property=p,q.propertyOf=function(e){return null==e?function(){}:function(t){return e[t]}},q.matcher=q.matches=function(e){return e=q.extendOwn({},e),function(t){return q.isMatch(t,e)}},q.times=function(e,t,n){var r,o=Array(Math.max(0,e));for(t=u(t,n,1),r=0;r<e;r++)o[r]=t(r);return o},q.random=function(e,t){return null==t&&(t=e,e=0),e+Math.floor(Math.random()*(t-e+1))},q.now=Date.now||function(){return(new Date).getTime()},x={"&":"&","<":"<",">":">",'"':""","'":"'","`":"`"},C=q.invert(x),T=function(e){var t=function(t){return e[t]},n="(?:"+q.keys(e).join("|")+")",r=RegExp(n),o=RegExp(n,"g");return function(e){return e=null==e?"":""+e,r.test(e)?e.replace(o,t):e}},q.escape=T(x),q.unescape=T(C),q.result=function(e,t,n){var r=null==e?void 0:e[t];return void 0===r&&(r=n),q.isFunction(r)?r.call(e):r},k=0,q.uniqueId=function(e){var t=++k+"";return e?e+t:t},q.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g},E=/(.)^/,S={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},M=/\\|'|\r|\n|\u2028|\u2029/g,O=function(e){return"\\"+S[e]},q.template=function(e,t,n){var r,o,i,a,s,u;!t&&n&&(t=n),t=q.defaults({},t,q.templateSettings),r=RegExp([(t.escape||E).source,(t.interpolate||E).source,(t.evaluate||E).source].join("|")+"|$","g"),o=0,i="__p+='",e.replace(r,function(t,n,r,a,s){return i+=e.slice(o,s).replace(M,O),o=s+t.length,n?i+="'+\n((__t=("+n+"))==null?'':_.escape(__t))+\n'":r?i+="'+\n((__t=("+r+"))==null?'':__t)+\n'":a&&(i+="';\n"+a+"\n__p+='"),t}),i+="';\n",t.variable||(i="with(obj||{}){\n"+i+"}\n"),i="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+i+"return __p;\n";try{a=Function(t.variable||"obj","_",i)}catch(e){throw e.source=i,e}return s=function(e){return a.call(this,e,q)},u=t.variable||"obj",s.source="function("+u+"){\n"+i+"}",s},q.chain=function(e){var t=q(e);return t._chain=!0,t},N=function(e,t){return e._chain?q(t).chain():t},q.mixin=function(e){q.each(q.functions(e),function(t){var n=q[t]=e[t];q.prototype[t]=function(){var e=[this._wrapped];return j.apply(e,arguments),N(this,n.apply(q,e))}})},q.mixin(q),q.each(["pop","push","reverse","shift","sort","splice","unshift"],function(e){var t=A[e];q.prototype[e]=function(){var n=this._wrapped;return t.apply(n,arguments),"shift"!==e&&"splice"!==e||0!==n.length||delete n[0],N(this,n)}}),q.each(["concat","join","slice"],function(e){var t=A[e];q.prototype[e]=function(){return N(this,t.apply(this._wrapped,arguments))}}),q.prototype.value=function(){return this._wrapped},q.prototype.valueOf=q.prototype.toJSON=q.prototype.value,q.prototype.toString=function(){return""+this._wrapped},r=[],void 0!==(o=function(){return q}.apply(t,r))&&(e.exports=o)}).call(this)},,function(e,t){e.exports={}},function(e,t){e.exports=!1},function(e,t,n){ |
|||
var r=n(29),o=n(531),i=n(238),a=n(251)("IE_PROTO"),s=function(){},u="prototype",c=function(){var e,t=n(237)("iframe"),r=i.length,o="<",a=">";for(t.style.display="none",n(341).appendChild(t),t.src="javascript:",e=t.contentWindow.document,e.open(),e.write(o+"script"+a+"document.F=Object"+o+"/script"+a),e.close(),c=e.F;r--;)delete c[u][i[r]];return c()};e.exports=Object.create||function(e,t){var n;return null!==e?(s[u]=r(e),n=new s,s[u]=null,n[a]=e):n=c(),void 0===t?n:o(n,t)}},function(e,t){t.f=Object.getOwnPropertySymbols},function(e,t,n){var r=n(199),o=Math.max,i=Math.min;e.exports=function(e,t){return e=r(e),e<0?o(e+t,0):i(e,t)}},function(e,t){var n=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?r:n)(e)}},,,function(e,t,n){"use strict";var r={};e.exports=r},,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";function r(e){return Object.prototype.hasOwnProperty.call(e,m)||(e[m]=d++,f[e[m]]={}),f[e[m]]}var o,i=n(30),a=n(291),s=n(1039),u=n(450),c=n(1071),l=n(302),f={},p=!1,d=0,h={topAbort:"abort",topAnimationEnd:c("animationend")||"animationend",topAnimationIteration:c("animationiteration")||"animationiteration",topAnimationStart:c("animationstart")||"animationstart",topBlur:"blur",topCanPlay:"canplay",topCanPlayThrough:"canplaythrough",topChange:"change",topClick:"click",topCompositionEnd:"compositionend",topCompositionStart:"compositionstart",topCompositionUpdate:"compositionupdate",topContextMenu:"contextmenu",topCopy:"copy",topCut:"cut",topDoubleClick:"dblclick",topDrag:"drag",topDragEnd:"dragend",topDragEnter:"dragenter",topDragExit:"dragexit",topDragLeave:"dragleave",topDragOver:"dragover",topDragStart:"dragstart",topDrop:"drop",topDurationChange:"durationchange",topEmptied:"emptied",topEncrypted:"encrypted",topEnded:"ended",topError:"error",topFocus:"focus",topInput:"input",topKeyDown:"keydown",topKeyPress:"keypress",topKeyUp:"keyup",topLoadedData:"loadeddata",topLoadedMetadata:"loadedmetadata",topLoadStart:"loadstart",topMouseDown:"mousedown",topMouseMove:"mousemove",topMouseOut:"mouseout",topMouseOver:"mouseover",topMouseUp:"mouseup",topPaste:"paste",topPause:"pause",topPlay:"play",topPlaying:"playing",topProgress:"progress",topRateChange:"ratechange",topScroll:"scroll",topSeeked:"seeked",topSeeking:"seeking",topSelectionChange:"selectionchange",topStalled:"stalled",topSuspend:"suspend",topTextInput:"textInput",topTimeUpdate:"timeupdate",topTouchCancel:"touchcancel",topTouchEnd:"touchend",topTouchMove:"touchmove",topTouchStart:"touchstart",topTransitionEnd:c("transitionend")||"transitionend",topVolumeChange:"volumechange",topWaiting:"waiting",topWheel:"wheel"},m="_reactListenersID"+(Math.random()+"").slice(2),g=i({},s,{ReactEventListener:null,injection:{injectReactEventListener:function(e){e.setHandleTopLevel(g.handleTopLevel),g.ReactEventListener=e}},setEnabled:function(e){g.ReactEventListener&&g.ReactEventListener.setEnabled(e)},isEnabled:function(){return!(!g.ReactEventListener||!g.ReactEventListener.isEnabled())},listenTo:function(e,t){ |
|||
var n,o,i=t,s=r(i),u=a.registrationNameDependencies[e];for(n=0;n<u.length;n++)o=u[n],s.hasOwnProperty(o)&&s[o]||("topWheel"===o?l("wheel")?g.ReactEventListener.trapBubbledEvent("topWheel","wheel",i):l("mousewheel")?g.ReactEventListener.trapBubbledEvent("topWheel","mousewheel",i):g.ReactEventListener.trapBubbledEvent("topWheel","DOMMouseScroll",i):"topScroll"===o?l("scroll",!0)?g.ReactEventListener.trapCapturedEvent("topScroll","scroll",i):g.ReactEventListener.trapBubbledEvent("topScroll","scroll",g.ReactEventListener.WINDOW_HANDLE):"topFocus"===o||"topBlur"===o?(l("focus",!0)?(g.ReactEventListener.trapCapturedEvent("topFocus","focus",i),g.ReactEventListener.trapCapturedEvent("topBlur","blur",i)):l("focusin")&&(g.ReactEventListener.trapBubbledEvent("topFocus","focusin",i),g.ReactEventListener.trapBubbledEvent("topBlur","focusout",i)),s.topBlur=!0,s.topFocus=!0):h.hasOwnProperty(o)&&g.ReactEventListener.trapBubbledEvent(o,h[o],i),s[o]=!0)},trapBubbledEvent:function(e,t,n){return g.ReactEventListener.trapBubbledEvent(e,t,n)},trapCapturedEvent:function(e,t,n){return g.ReactEventListener.trapCapturedEvent(e,t,n)},supportsEventPageXY:function(){if(!document.createEvent)return!1;var e=document.createEvent("MouseEvent");return null!=e&&"pageX"in e},ensureScrollValueMonitoring:function(){if(void 0===o&&(o=g.supportsEventPageXY()),!o&&!p){var e=u.refreshScrollValues;g.ReactEventListener.monitorScrollValue(e),p=!0}}});e.exports=g},function(e,t,n){"use strict";function r(e,t,n,r){return o.call(this,e,t,n,r)}var o=n(168),i=n(450),a=n(300),s={screenX:null,screenY:null,clientX:null,clientY:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,getModifierState:a,button:function(e){var t=e.button;return"which"in e?t:2===t?2:4===t?1:0},buttons:null,relatedTarget:function(e){return e.relatedTarget||(e.fromElement===e.srcElement?e.toElement:e.fromElement)},pageX:function(e){return"pageX"in e?e.pageX:e.clientX+i.currentScrollLeft},pageY:function(e){return"pageY"in e?e.pageY:e.clientY+i.currentScrollTop}};o.augmentClass(r,s),e.exports=r},function(e,t,n){"use strict";var r=n(25),o=(n(17),{}),i={reinitializeTransaction:function(){this.transactionWrappers=this.getTransactionWrappers(),this.wrapperInitData?this.wrapperInitData.length=0:this.wrapperInitData=[],this._isInTransaction=!1},_isInTransaction:!1,getTransactionWrappers:null,isInTransaction:function(){return!!this._isInTransaction},perform:function(e,t,n,o,i,a,s,u){var c,l;this.isInTransaction()&&r("27");try{this._isInTransaction=!0,c=!0,this.initializeAll(0),l=e.call(t,n,o,i,a,s,u),c=!1}finally{try{if(c)try{this.closeAll(0)}catch(e){}else this.closeAll(0)}finally{this._isInTransaction=!1}}return l},initializeAll:function(e){var t,n,r=this.transactionWrappers;for(t=e;t<r.length;t++){n=r[t];try{this.wrapperInitData[t]=o,this.wrapperInitData[t]=n.initialize?n.initialize.call(this):null}finally{if(this.wrapperInitData[t]===o)try{this.initializeAll(t+1)}catch(e){}}}},closeAll:function(e){var t,n,i,a,s;for(this.isInTransaction()||r("28"),t=this.transactionWrappers,n=e;n<t.length;n++){ |
|||
i=t[n],a=this.wrapperInitData[n];try{s=!0,a!==o&&i.close&&i.close.call(this,a),s=!1}finally{if(s)try{this.closeAll(n+1)}catch(e){}}}this.wrapperInitData.length=0}};e.exports=i},function(e,t){"use strict";function n(e){var t,n,r,i,a=""+e,s=o.exec(a);if(!s)return a;for(n="",r=0,i=0,r=s.index;r<a.length;r++){switch(a.charCodeAt(r)){case 34:t=""";break;case 38:t="&";break;case 39:t="'";break;case 60:t="<";break;case 62:t=">";break;default:continue}i!==r&&(n+=a.substring(i,r)),i=r+1,n+=t}return i!==r?n+a.substring(i,r):n}function r(e){return"boolean"==typeof e||"number"==typeof e?""+e:n(e)}var o=/["'&<>]/;e.exports=r},function(e,t,n){"use strict";var r,o,i=n(60),a=n(290),s=/^[ \r\n\t\f]/,u=/<(!--|link|noscript|meta|script|style)[ \r\n\t\f\/>]/,c=n(298),l=c(function(e,t){if(e.namespaceURI!==a.svg||"innerHTML"in e)e.innerHTML=t;else{r=r||document.createElement("div"),r.innerHTML="<svg>"+t+"</svg>";for(var n=r.firstChild;n.firstChild;)e.appendChild(n.firstChild)}});i.canUseDOM&&(o=document.createElement("div"),o.innerHTML=" ",""===o.innerHTML&&(l=function(e,t){if(e.parentNode&&e.parentNode.replaceChild(e,e),s.test(t)||"<"===t[0]&&u.test(t)){e.innerHTML=String.fromCharCode(65279)+t;var n=e.firstChild;1===n.data.length?e.removeChild(n):n.deleteData(0,1)}else e.innerHTML=t}),o=null),e.exports=l},,,,,,,,,,,function(e,t){e.exports=function(e,t,n,r){if(!(e instanceof t)||void 0!==r&&r in e)throw TypeError(n+": incorrect invocation!");return e}},function(e,t,n){var r=n(50),o=n(35).document,i=r(o)&&r(o.createElement);e.exports=function(e){return i?o.createElement(e):{}}},function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(e,t,n){var r=n(39)("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[r]=!1,!"/./"[e](t)}catch(e){}}return!0}},function(e,t,n){var r=n(99),o=n(347),i=n(344),a=n(29),s=n(89),u=n(357),c={},l={};t=e.exports=function(e,t,n,f,p){var d,h,m,g,y=p?function(){return e}:u(e),v=r(n,f,t?2:1),b=0;if("function"!=typeof y)throw TypeError(e+" is not iterable!");if(i(y)){for(d=s(e.length);d>b;b++)if((g=t?v(a(h=e[b])[0],h[1]):v(e[b]))===c||g===l)return g}else for(m=y.call(e);!(h=m.next()).done;)if((g=o(m,v,h.value,t))===c||g===l)return g},t.BREAK=c,t.RETURN=l},function(e,t,n){var r=n(111);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==r(e)?e.split(""):Object(e)}},function(e,t,n){"use strict";var r=n(195),o=n(6),i=n(129),a=n(113),s=n(72),u=n(194),c=n(348),l=n(150),f=n(148),p=n(39)("iterator"),d=!([].keys&&"next"in[].keys()),h="keys",m="values",g=function(){return this};e.exports=function(e,t,n,y,v,b,_){var w,x,C,T,k,E,S,M,O,N,D,P;if(c(n,t,y),w=function(e){if(!d&&e in k)return k[e];switch(e){case h:case m:return function(){return new n(this,e)}}return function(){return new n(this,e)}},x=t+" Iterator",C=v==m,T=!1,k=e.prototype,E=k[p]||k["@@iterator"]||v&&k[v],S=E||w(v),M=v?C?w("entries"):S:void 0,O="Array"==t?k.entries||E:E, |
|||
O&&(P=f(O.call(new e)))!==Object.prototype&&(l(P,x,!0),r||s(P,p)||a(P,p,g)),C&&E&&E.name!==m&&(T=!0,S=function(){return E.call(this)}),r&&!_||!d&&!T&&k[p]||a(k,p,S),u[t]=S,u[x]=g,v)if(N={values:C?S:w(m),keys:b?S:w(h),entries:M},_)for(D in N)D in k||i(k,D,N[D]);else o(o.P+o.F*(d||T),t,N);return N}},function(e,t,n){var r,o=n(39)("iterator"),i=!1;try{r=[7][o](),r.return=function(){i=!0},Array.from(r,function(){throw 2})}catch(e){}e.exports=function(e,t){var n,r,a;if(!t&&!i)return!1;n=!1;try{r=[7],a=r[o](),a.next=function(){return{done:n=!0}},r[o]=function(){return a},e(r)}catch(e){}return n}},function(e,t){var n=Math.expm1;e.exports=!n||n(10)>22025.465794806718||n(10)<22025.465794806718||-2e-17!=n(-2e-17)?function(e){return 0==(e=+e)?e:e>-1e-6&&e<1e-6?e+e*e/2:Math.exp(e)-1}:n},function(e,t){e.exports=Math.sign||function(e){return 0==(e=+e)||e!=e?e:e<0?-1:1}},function(e,t,n){var r=n(152)("meta"),o=n(50),i=n(72),a=n(59).f,s=0,u=Object.isExtensible||function(){return!0},c=!n(58)(function(){return u(Object.preventExtensions({}))}),l=function(e){a(e,r,{value:{i:"O"+ ++s,w:{}}})},f=function(e,t){if(!o(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!i(e,r)){if(!u(e))return"F";if(!t)return"E";l(e)}return e[r].i},p=function(e,t){if(!i(e,r)){if(!u(e))return!0;if(!t)return!1;l(e)}return e[r].w},d=function(e){return c&&h.NEED&&u(e)&&!i(e,r)&&l(e),e},h=e.exports={KEY:r,NEED:!1,fastKey:f,getWeak:p,onFreeze:d}},function(e,t,n){var r=n(351),o=n(238).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,o)}},function(e,t,n){var r=n(129);e.exports=function(e,t,n){for(var o in t)r(e,o,t[o],n);return e}},function(e,t,n){var r=n(50),o=n(29),i=function(e,t){if(o(e),!r(t)&&null!==t)throw TypeError(t+": can't set as prototype!")};e.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(e,t,r){try{r=n(99)(Function.call,n(127).f(Object.prototype,"__proto__").set,2),r(e,[]),t=!(e instanceof Array)}catch(e){t=!0}return function(e,n){return i(e,n),t?e.__proto__=n:r(e,n),e}}({},!1):void 0),check:i}},function(e,t,n){"use strict";var r=n(35),o=n(59),i=n(79),a=n(39)("species");e.exports=function(e){var t=r[e];i&&t&&!t[a]&&o.f(t,a,{configurable:!0,get:function(){return this}})}},function(e,t,n){var r=n(252)("keys"),o=n(152);e.exports=function(e){return r[e]||(r[e]=o(e))}},function(e,t,n){var r=n(35),o="__core-js_shared__",i=r[o]||(r[o]={});e.exports=function(e){return i[e]||(i[e]={})}},function(e,t,n){var r=n(527),o=n(112);e.exports=function(e,t,n){if(r(t))throw TypeError("String#"+n+" doesn't accept regex!");return o(e)+""}},function(e,t){e.exports="\t\n\v\f\r \u2028\u2029\ufeff"},,,,,,function(e,t){"use strict";function n(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!==e&&t!==t}function r(e,t){var r,i,a;if(n(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;if(r=Object.keys(e),i=Object.keys(t),r.length!==i.length)return!1;for(a=0;a<r.length;a++)if(!o.call(t,r[a])||!n(e[r[a]],t[r[a]]))return!1;return!0}var o=Object.prototype.hasOwnProperty;e.exports=r |
|||
},,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){!function(t,r){e.exports=r(n(2),n(55),n(1090))}(0,function(e,t,n){return function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={exports:{},id:r,loaded:!1};return e[r].call(o.exports,o,o.exports,t),o.loaded=!0,o.exports}var n={};return t.m=e,t.c=n,t.p="dist/",t(0)}([function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=n(1),i=r(o);t.default=i.default,e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=function(){function e(e,t){var n,r;for(n=0;n<t.length;n++)r=t[n],r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),u=n(2),c=(r(u),n(3)),l=r(c),f=n(13),p=r(f),d=n(14),h=r(d),m=n(15),g=r(m),y=function(e){function t(e){o(this,t);var n=i(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.measure=function(){var e,t,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:n.props.includeMargin;n.props.shouldMeasure&&(n._node.parentNode||n._setDOMNode(),e=n.getDimensions(n._node,r),t="function"==typeof n.props.children,n._propsToMeasure.some(function(r){if(e[r]!==n._lastDimensions[r])return n.props.onMeasure(e),t&&void 0!==n&&n.setState({dimensions:e}),n._lastDimensions=e,!0}))},n.state={dimensions:{width:0,height:0,top:0,right:0,bottom:0,left:0}},n._node=null,n._propsToMeasure=n._getPropsToMeasure(e),n._lastDimensions={},n}return a(t,e),s(t,[{key:"componentDidMount",value:function(){var e=this;this._setDOMNode(),this.measure(),this.resizeObserver=new h.default(function(){return e.measure()}),this.resizeObserver.observe(this._node)}},{key:"componentWillReceiveProps",value:function(e){var t=(e.config,e.whitelist),n=e.blacklist;this.props.whitelist===t&&this.props.blacklist===n||(this._propsToMeasure=this._getPropsToMeasure({whitelist:t,blacklist:n}))}},{key:"componentWillUnmount",value:function(){this.resizeObserver.disconnect(this._node),this._node=null}},{key:"_setDOMNode",value:function(){this._node=p.default.findDOMNode(this)}},{key:"getDimensions",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this._node,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.props.includeMargin;return(0,g.default)(e,{margin:t})}},{ |
|||
key:"_getPropsToMeasure",value:function(e){var t=e.whitelist,n=e.blacklist;return t.filter(function(e){return n.indexOf(e)<0})}},{key:"render",value:function(){var e=this.props.children;return u.Children.only("function"==typeof e?e(this.state.dimensions):e)}}]),t}(u.Component);y.propTypes={whitelist:l.default.array,blacklist:l.default.array,includeMargin:l.default.bool,useClone:l.default.bool,cloneOptions:l.default.object,shouldMeasure:l.default.bool,onMeasure:l.default.func},y.defaultProps={whitelist:["width","height","top","right","bottom","left"],blacklist:[],includeMargin:!0,useClone:!1,cloneOptions:{},shouldMeasure:!0,onMeasure:function(){return null}},t.default=y,e.exports=t.default},function(t,n){t.exports=e},function(e,t,n){(function(t){"use strict";var r,o,i,a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};"production"!==t.env.NODE_ENV?(r="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,o=function(e){return"object"===(void 0===e?"undefined":a(e))&&null!==e&&e.$$typeof===r},i=!0,e.exports=n(5)(o,i)):e.exports=n(12)()}).call(t,n(4))},function(e,t){"use strict";function n(){throw Error("setTimeout has not been defined")}function r(){throw Error("clearTimeout has not been defined")}function o(e){if(l===setTimeout)return setTimeout(e,0);if((l===n||!l)&&setTimeout)return l=setTimeout,setTimeout(e,0);try{return l(e,0)}catch(t){try{return l.call(null,e,0)}catch(t){return l.call(this,e,0)}}}function i(e){if(f===clearTimeout)return clearTimeout(e);if((f===r||!f)&&clearTimeout)return f=clearTimeout,clearTimeout(e);try{return f(e)}catch(t){try{return f.call(null,e)}catch(t){return f.call(this,e)}}}function a(){h&&p&&(h=!1,p.length?d=p.concat(d):m=-1,d.length&&s())}function s(){var e,t;if(!h){for(e=o(a),h=!0,t=d.length;t;){for(p=d,d=[];++m<t;)p&&p[m].run();m=-1,t=d.length}p=null,h=!1,i(e)}}function u(e,t){this.fun=e,this.array=t}function c(){}var l,f,p,d,h,m,g=e.exports={};!function(){try{l="function"==typeof setTimeout?setTimeout:n}catch(e){l=n}try{f="function"==typeof clearTimeout?clearTimeout:r}catch(e){f=r}}(),d=[],h=!1,m=-1,g.nextTick=function(e){var t,n=Array(arguments.length-1);if(arguments.length>1)for(t=1;t<arguments.length;t++)n[t-1]=arguments[t];d.push(new u(e,n)),1!==d.length||h||o(s)},u.prototype.run=function(){this.fun.apply(null,this.array)},g.title="browser",g.browser=!0,g.env={},g.argv=[],g.version="",g.versions={},g.on=c,g.addListener=c,g.once=c,g.off=c,g.removeListener=c,g.removeAllListeners=c,g.emit=c,g.prependListener=c,g.prependOnceListener=c,g.listeners=function(e){return[]},g.binding=function(e){throw Error("process.binding is not supported")},g.cwd=function(){return"/"},g.chdir=function(e){throw Error("process.chdir is not supported")},g.umask=function(){return 0}},function(e,t,n){(function(t){"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){ |
|||
return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o=n(6),i=n(7),a=n(8),s=n(9),u=n(10),c=n(11);e.exports=function(e,n){function l(e){var t=e&&(D&&e[D]||e[P]);if("function"==typeof t)return t}function f(e,t){return e===t?0!==e||1/e==1/t:e!==e&&t!==t}function p(e){this.message=e,this.stack=""}function d(e){function r(r,c,l,f,d,h,m){if(f=f||A,h=h||l,m!==u)if(n)i(!1,"Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");else if("production"!==t.env.NODE_ENV&&"undefined"!=typeof console){var g=f+":"+l;!o[g]&&s<3&&(a(!1,"You are manually calling a React.PropTypes validation function for the `%s` prop on `%s`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details.",h,f),o[g]=!0,s++)}return null==c[l]?r?new p(null===c[l]?"The "+d+" `"+h+"` is marked as required in `"+f+"`, but its value is `null`.":"The "+d+" `"+h+"` is marked as required in `"+f+"`, but its value is `undefined`."):null:e(c,l,f,d,h)}var o,s,c;return"production"!==t.env.NODE_ENV&&(o={},s=0),c=r.bind(null,!1),c.isRequired=r.bind(null,!0),c}function h(e){function t(t,n,r,o,i,a){var s,u=t[n];return S(u)!==e?(s=M(u),new p("Invalid "+o+" `"+i+"` of type `"+s+"` supplied to `"+r+"`, expected `"+e+"`.")):null}return d(t)}function m(){return d(o.thatReturnsNull)}function g(e){function t(t,n,r,o,i){var a,s,c,l;if("function"!=typeof e)return new p("Property `"+i+"` of component `"+r+"` has invalid PropType notation inside arrayOf.");if(a=t[n],!Array.isArray(a))return s=S(a),new p("Invalid "+o+" `"+i+"` of type `"+s+"` supplied to `"+r+"`, expected an array.");for(c=0;c<a.length;c++)if((l=e(a,c,r,o,i+"["+c+"]",u))instanceof Error)return l;return null}return d(t)}function y(){function t(t,n,r,o,i){var a,s=t[n];return e(s)?null:(a=S(s),new p("Invalid "+o+" `"+i+"` of type `"+a+"` supplied to `"+r+"`, expected a single ReactElement."))}return d(t)}function v(e){function t(t,n,r,o,i){if(!(t[n]instanceof e)){var a=e.name||A;return new p("Invalid "+o+" `"+i+"` of type `"+N(t[n])+"` supplied to `"+r+"`, expected instance of `"+a+"`.")}return null}return d(t)}function b(e){function n(t,n,r,o,i){var a,s,u;for(a=t[n],s=0;s<e.length;s++)if(f(a,e[s]))return null;return u=JSON.stringify(e),new p("Invalid "+o+" `"+i+"` of value `"+a+"` supplied to `"+r+"`, expected one of "+u+".")}return Array.isArray(e)?d(n):("production"!==t.env.NODE_ENV&&a(!1,"Invalid argument supplied to oneOf, expected an instance of array."),o.thatReturnsNull)}function _(e){function t(t,n,r,o,i){var a,s,c,l;if("function"!=typeof e)return new p("Property `"+i+"` of component `"+r+"` has invalid PropType notation inside objectOf.");if(a=t[n],"object"!==(s=S(a)))return new p("Invalid "+o+" `"+i+"` of type `"+s+"` supplied to `"+r+"`, expected an object.") |
|||
;for(c in a)if(a.hasOwnProperty(c)&&(l=e(a,c,r,o,i+"."+c,u))instanceof Error)return l;return null}return d(t)}function w(e){function n(t,n,r,o,i){var a;for(a=0;a<e.length;a++)if(null==(0,e[a])(t,n,r,o,i,u))return null;return new p("Invalid "+o+" `"+i+"` supplied to `"+r+"`.")}var r,i;if(!Array.isArray(e))return"production"!==t.env.NODE_ENV&&a(!1,"Invalid argument supplied to oneOfType, expected an instance of array."),o.thatReturnsNull;for(r=0;r<e.length;r++)if("function"!=typeof(i=e[r]))return a(!1,"Invalid argument supplied to oneOfType. Expected an array of check functions, but received %s at index %s.",O(i),r),o.thatReturnsNull;return d(n)}function x(){function e(e,t,n,r,o){return k(e[t])?null:new p("Invalid "+r+" `"+o+"` supplied to `"+n+"`, expected a ReactNode.")}return d(e)}function C(e){function t(t,n,r,o,i){var a,s,c,l=t[n],f=S(l);if("object"!==f)return new p("Invalid "+o+" `"+i+"` of type `"+f+"` supplied to `"+r+"`, expected `object`.");for(a in e)if((s=e[a])&&(c=s(l,a,r,o,i+"."+a,u)))return c;return null}return d(t)}function T(e){function t(t,n,r,o,i){var a,c,l,f,d=t[n],h=S(d);if("object"!==h)return new p("Invalid "+o+" `"+i+"` of type `"+h+"` supplied to `"+r+"`, expected `object`.");a=s({},t[n],e);for(c in a){if(!(l=e[c]))return new p("Invalid "+o+" `"+i+"` key `"+c+"` supplied to `"+r+"`.\nBad object: "+JSON.stringify(t[n],null," ")+"\nValid keys: "+JSON.stringify(Object.keys(e),null," "));if(f=l(d,c,r,o,i+"."+c,u))return f}return null}return d(t)}function k(t){var n,o,i,a;switch(void 0===t?"undefined":r(t)){case"number":case"string":case"undefined":return!0;case"boolean":return!t;case"object":if(Array.isArray(t))return t.every(k);if(null===t||e(t))return!0;if(!(n=l(t)))return!1;if(i=n.call(t),n!==t.entries){for(;!(o=i.next()).done;)if(!k(o.value))return!1}else for(;!(o=i.next()).done;)if((a=o.value)&&!k(a[1]))return!1;return!0;default:return!1}}function E(e,t){return"symbol"===e||"Symbol"===t["@@toStringTag"]||"function"==typeof Symbol&&t instanceof Symbol}function S(e){var t=void 0===e?"undefined":r(e);return Array.isArray(e)?"array":e instanceof RegExp?"object":E(t,e)?"symbol":t}function M(e){if(void 0===e||null===e)return""+e;var t=S(e);if("object"===t){if(e instanceof Date)return"date";if(e instanceof RegExp)return"regexp"}return t}function O(e){var t=M(e);switch(t){case"array":case"object":return"an "+t;case"boolean":case"date":case"regexp":return"a "+t;default:return t}}function N(e){return e.constructor&&e.constructor.name?e.constructor.name:A}var D="function"==typeof Symbol&&Symbol.iterator,P="@@iterator",A="<<anonymous>>",L={array:h("array"),bool:h("boolean"),func:h("function"),number:h("number"),object:h("object"),string:h("string"),symbol:h("symbol"),any:m(),arrayOf:g,element:y(),instanceOf:v,node:x(),objectOf:_,oneOf:b,oneOfType:w,shape:C,exact:T};return p.prototype=Error.prototype,L.checkPropTypes=c,L.PropTypes=L,L}}).call(t,n(4))},function(e,t){"use strict";function n(e){return function(){return e}}var r=function(){};r.thatReturns=n,r.thatReturnsFalse=n(!1),r.thatReturnsTrue=n(!0), |
|||
r.thatReturnsNull=n(null),r.thatReturnsThis=function(){return this},r.thatReturnsArgument=function(e){return e},e.exports=r},function(e,t,n){(function(t){"use strict";function n(e,t,n,o,i,a,s,u){var c,l,f;if(r(t),!e)throw void 0===t?c=Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings."):(l=[n,o,i,a,s,u],f=0,c=Error(t.replace(/%s/g,function(){return l[f++]})),c.name="Invariant Violation"),c.framesToPop=1,c}var r=function(e){};"production"!==t.env.NODE_ENV&&(r=function(e){if(void 0===e)throw Error("invariant requires an error message argument")}),e.exports=n}).call(t,n(4))},function(e,t,n){(function(t){"use strict";var r,o=n(6),i=o;"production"!==t.env.NODE_ENV&&(r=function(e){var t,n,r,o,i;for(t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];o=0,i="Warning: "+e.replace(/%s/g,function(){return n[o++]}),"undefined"!=typeof console&&console.error(i);try{throw Error(i)}catch(e){}},i=function(e,t){if(void 0===t)throw Error("`warning(condition, format, ...args)` requires a warning message argument");if(0!==t.indexOf("Failed Composite propType: ")&&!e){for(var n=arguments.length,o=Array(n>2?n-2:0),i=2;i<n;i++)o[i-2]=arguments[i];r.apply(void 0,[t].concat(o))}}),e.exports=i}).call(t,n(4))},function(e,t){"use strict";function n(e){if(null===e||void 0===e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function r(){var e,t,n,r,o;try{if(!Object.assign)return!1;if(e=new String("abc"),e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;return r=Object.getOwnPropertyNames(t).map(function(e){return t[e]}),"0123456789"!==r.join("")?!1:(o={},"abcdefghijklmnopqrst".split("").forEach(function(e){o[e]=e}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},o)).join(""))}catch(e){return!1}}var o=Object.getOwnPropertySymbols,i=Object.prototype.hasOwnProperty,a=Object.prototype.propertyIsEnumerable;e.exports=r()?Object.assign:function(e,t){var r,s,u,c,l,f;for(u=n(e),c=1;c<arguments.length;c++){r=Object(arguments[c]);for(l in r)i.call(r,l)&&(u[l]=r[l]);if(o)for(s=o(r),f=0;f<s.length;f++)a.call(r,s[f])&&(u[s[f]]=r[s[f]])}return u}},function(e,t){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,n){(function(t){"use strict";function r(e,n,r,c,l){var f,p,d;if("production"!==t.env.NODE_ENV)for(f in e)if(e.hasOwnProperty(f)){try{o("function"==typeof e[f],"%s: %s type `%s` is invalid; it must be a function, usually from the `prop-types` package, but received `%s`.",c||"React class",r,f,u(e[f])),p=e[f](n,f,c,r,null,a)}catch(e){p=e}i(!p||p instanceof Error,"%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",c||"React class",r,f,void 0===p?"undefined":u(p)), |
|||
p instanceof Error&&!(p.message in s)&&(s[p.message]=!0,d=l?l():"",i(!1,"Failed %s type: %s%s",r,p.message,null!=d?d:""))}}var o,i,a,s,u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};"production"!==t.env.NODE_ENV&&(o=n(7),i=n(8),a=n(10),s={}),e.exports=r}).call(t,n(4))},function(e,t,n){"use strict";var r=n(6),o=n(7),i=n(10);e.exports=function(){function e(e,t,n,r,a,s){s!==i&&o(!1,"Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types")}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t};return n.checkPropTypes=r,n.PropTypes=n,n}},function(e,n){e.exports=t},function(e,t){e.exports=n},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.getBoundingClientRect(),r=void 0,o=void 0,i=void 0;return t.margin&&(i=(0,a.default)(getComputedStyle(e))),t.margin?(r=i.left+n.width+i.right,o=i.top+n.height+i.bottom):(r=n.width,o=n.height),{width:r,height:o,top:n.top,right:n.right,bottom:n.bottom,left:n.left}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=o;var i=n(16),a=r(i);e.exports=t.default},function(e,t){"use strict";function n(e){return e=e||{},{top:r(e.marginTop),right:r(e.marginRight),bottom:r(e.marginBottom),left:r(e.marginLeft)}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=n;var r=function(e){return parseInt(e)||0};e.exports=t.default}])})},function(e,t,n){"use strict";function r(e,t){return Array.isArray(t)&&(t=t[1]),t?t.nextSibling:e.firstChild}function o(e,t,n){f.insertTreeBefore(e,t,n)}function i(e,t,n){Array.isArray(t)?s(e,t[0],t[1],n):g(e,t,n)}function a(e,t){if(Array.isArray(t)){var n=t[1];t=t[0],u(e,t,n),e.removeChild(n)}e.removeChild(t)}function s(e,t,n,r){for(var o,i=t;;){if(o=i.nextSibling,g(e,i,r),i===n)break;i=o}}function u(e,t,n){for(;;){var r=t.nextSibling;if(r===n)break;e.removeChild(r)}}function c(e,t,n){var r=e.parentNode,o=e.nextSibling;o===t?n&&g(r,document.createTextNode(n),o):n?(m(o,n),u(r,o,t)):u(r,e,t)}var l,f=n(137),p=n(1016),d=(n(32),n(75),n(298)),h=n(225),m=n(458),g=d(function(e,t,n){e.insertBefore(t,n)}),y=p.dangerouslyReplaceNodeWithMarkup;l={dangerouslyReplaceNodeWithMarkup:y,replaceDelimitedText:c,processUpdates:function(e,t){var n,s;for(n=0;n<t.length;n++)switch(s=t[n],s.type){case"INSERT_MARKUP":o(e,s.content,r(e,s.afterNode));break;case"MOVE_EXISTING":i(e,s.fromNode,r(e,s.afterNode));break;case"SET_MARKUP":h(e,s.content);break;case"TEXT_CONTENT":m(e,s.content);break;case"REMOVE_NODE":a(e,s.fromNode)}}},e.exports=l},function(e,t){"use strict";var n={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML", |
|||
svg:"http://www.w3.org/2000/svg"};e.exports=n},function(e,t,n){"use strict";function r(){var e,t,n,r,i;if(s)for(e in u)if(t=u[e],n=s.indexOf(e),n>-1||a("96",e),!c.plugins[n]){t.extractEvents||a("97",e),c.plugins[n]=t,r=t.eventTypes;for(i in r)o(r[i],t,i)||a("98",i,e)}}function o(e,t,n){var r,o,s;if(c.eventNameDispatchConfigs.hasOwnProperty(n)&&a("99",n),c.eventNameDispatchConfigs[n]=e,r=e.phasedRegistrationNames){for(o in r)r.hasOwnProperty(o)&&(s=r[o],i(s,t,n));return!0}return!!e.registrationName&&(i(e.registrationName,t,n),!0)}function i(e,t,n){c.registrationNameModules[e]&&a("100",e),c.registrationNameModules[e]=t,c.registrationNameDependencies[e]=t.eventTypes[n].dependencies}var a=n(25),s=(n(17),null),u={},c={plugins:[],eventNameDispatchConfigs:{},registrationNameModules:{},registrationNameDependencies:{},possibleRegistrationNames:null,injectEventPluginOrder:function(e){s&&a("101"),s=Array.prototype.slice.call(e),r()},injectEventPluginsByName:function(e){var t,n,o=!1;for(t in e)e.hasOwnProperty(t)&&(n=e[t],u.hasOwnProperty(t)&&u[t]===n||(u[t]&&a("102",t),u[t]=n,o=!0));o&&r()},getPluginModuleForEvent:function(e){var t,n,r,o=e.dispatchConfig;if(o.registrationName)return c.registrationNameModules[o.registrationName]||null;if(void 0!==o.phasedRegistrationNames){t=o.phasedRegistrationNames;for(n in t)if(t.hasOwnProperty(n)&&(r=c.registrationNameModules[t[n]]))return r}return null},_resetEventPlugins:function(){var e,t,n,r,o;s=null;for(e in u)u.hasOwnProperty(e)&&delete u[e];c.plugins.length=0,t=c.eventNameDispatchConfigs;for(n in t)t.hasOwnProperty(n)&&delete t[n];r=c.registrationNameModules;for(o in r)r.hasOwnProperty(o)&&delete r[o]}};e.exports=c},function(e,t,n){"use strict";function r(e){return"topMouseUp"===e||"topTouchEnd"===e||"topTouchCancel"===e}function o(e){return"topMouseMove"===e||"topTouchMove"===e}function i(e){return"topMouseDown"===e||"topTouchStart"===e}function a(e,t,n,r){var o=e.type||"unknown-event";e.currentTarget=h.getNodeFromInstance(r),t?g.invokeGuardedCallbackWithCatch(o,n,e):g.invokeGuardedCallback(o,n,e),e.currentTarget=null}function s(e,t){var n,r=e._dispatchListeners,o=e._dispatchInstances;if(Array.isArray(r))for(n=0;n<r.length&&!e.isPropagationStopped();n++)a(e,t,r[n],o[n]);else r&&a(e,t,r,o);e._dispatchListeners=null,e._dispatchInstances=null}function u(e){var t,n=e._dispatchListeners,r=e._dispatchInstances;if(Array.isArray(n)){for(t=0;t<n.length&&!e.isPropagationStopped();t++)if(n[t](e,r[t]))return r[t]}else if(n&&n(e,r))return r;return null}function c(e){var t=u(e);return e._dispatchInstances=null,e._dispatchListeners=null,t}function l(e){var t,n,r;return t=e._dispatchListeners,n=e._dispatchInstances,Array.isArray(t)&&m("103"),e.currentTarget=t?h.getNodeFromInstance(n):null,r=t?t(e):null,e.currentTarget=null,e._dispatchListeners=null,e._dispatchInstances=null,r}function f(e){return!!e._dispatchListeners}var p,d,h,m=n(25),g=n(296),y=(n(17),n(24),{injectComponentTree:function(e){p=e},injectTreeTraversal:function(e){d=e}});h={isEndish:r,isMoveish:o,isStartish:i,executeDirectDispatch:l, |
|||
executeDispatchesInOrder:s,executeDispatchesInOrderStopAtTrue:c,hasDispatches:f,getInstanceFromNode:function(e){return p.getInstanceFromNode(e)},getNodeFromInstance:function(e){return p.getNodeFromInstance(e)},isAncestor:function(e,t){return d.isAncestor(e,t)},getLowestCommonAncestor:function(e,t){return d.getLowestCommonAncestor(e,t)},getParentInstance:function(e){return d.getParentInstance(e)},traverseTwoPhase:function(e,t,n){return d.traverseTwoPhase(e,t,n)},traverseEnterLeave:function(e,t,n,r,o){return d.traverseEnterLeave(e,t,n,r,o)},injection:y},e.exports=h},function(e,t){"use strict";function n(e){var t={"=":"=0",":":"=2"};return"$"+(""+e).replace(/[=:]/g,function(e){return t[e]})}function r(e){var t=/(=0|=2)/g,n={"=0":"=","=2":":"};return(""+("."===e[0]&&"$"===e[1]?e.substring(2):e.substring(1))).replace(t,function(e){return n[e]})}var o={escape:n,unescape:r};e.exports=o},function(e,t,n){"use strict";function r(e){null!=e.checkedLink&&null!=e.valueLink&&s("87")}function o(e){r(e),(null!=e.value||null!=e.onChange)&&s("88")}function i(e){r(e),(null!=e.checked||null!=e.onChange)&&s("89")}function a(e){if(e){var t=e.getName();if(t)return" Check the render method of `"+t+"`."}return""}var s=n(25),u=n(1045),c=n(437),l=n(140),f=c(l.isValidElement),p=(n(17),n(24),{button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0}),d={value:function(e,t,n){return!e[t]||p[e.type]||e.onChange||e.readOnly||e.disabled?null:Error("You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set either `onChange` or `readOnly`.")},checked:function(e,t,n){return!e[t]||e.onChange||e.readOnly||e.disabled?null:Error("You provided a `checked` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultChecked`. Otherwise, set either `onChange` or `readOnly`.")},onChange:f.func},h={},m={checkPropTypes:function(e,t,n){var r,o;for(r in d)d.hasOwnProperty(r)&&(o=d[r](t,r,e,"prop",null,u)),o instanceof Error&&!(o.message in h)&&(h[o.message]=!0,a(n))},getValue:function(e){return e.valueLink?(o(e),e.valueLink.value):e.value},getChecked:function(e){return e.checkedLink?(i(e),e.checkedLink.value):e.checked},executeOnChange:function(e,t){return e.valueLink?(o(e),e.valueLink.requestChange(t.target.value)):e.checkedLink?(i(e),e.checkedLink.requestChange(t.target.checked)):e.onChange?e.onChange.call(void 0,t):void 0}};e.exports=m},function(e,t,n){"use strict";var r=n(25),o=(n(17),!1),i={replaceNodeWithMarkup:null,processChildrenUpdates:null,injection:{injectEnvironment:function(e){o&&r("104"),i.replaceNodeWithMarkup=e.replaceNodeWithMarkup,i.processChildrenUpdates=e.processChildrenUpdates,o=!0}}};e.exports=i},function(e,t,n){"use strict";function r(e,t,n){try{t(n)}catch(e){null===o&&(o=e)}}var o=null,i={invokeGuardedCallback:r,invokeGuardedCallbackWithCatch:r,rethrowCaughtError:function(){if(o){var e=o;throw o=null,e}}};e.exports=i},function(e,t,n){ |
|||
"use strict";function r(e){u.enqueueUpdate(e)}function o(e){var t,n,r=typeof e;return"object"!==r?r:(t=e.constructor&&e.constructor.name||r,n=Object.keys(e),n.length>0&&n.length<20?t+" (keys: "+n.join(", ")+")":t)}function i(e,t){var n=s.get(e);return n||null}var a=n(25),s=(n(92),n(167)),u=(n(75),n(87)),c=(n(17),n(24),{isMounted:function(e){var t;return!!(t=s.get(e))&&!!t._renderedComponent},enqueueCallback:function(e,t,n){c.validateCallback(t,n);var o=i(e);if(!o)return null;o._pendingCallbacks?o._pendingCallbacks.push(t):o._pendingCallbacks=[t],r(o)},enqueueCallbackInternal:function(e,t){e._pendingCallbacks?e._pendingCallbacks.push(t):e._pendingCallbacks=[t],r(e)},enqueueForceUpdate:function(e){var t=i(e,"forceUpdate");t&&(t._pendingForceUpdate=!0,r(t))},enqueueReplaceState:function(e,t,n){var o=i(e,"replaceState");o&&(o._pendingStateQueue=[t],o._pendingReplaceState=!0,void 0!==n&&null!==n&&(c.validateCallback(n,"replaceState"),o._pendingCallbacks?o._pendingCallbacks.push(n):o._pendingCallbacks=[n]),r(o))},enqueueSetState:function(e,t){var n,o;(n=i(e,"setState"))&&(o=n._pendingStateQueue||(n._pendingStateQueue=[]),o.push(t),r(n))},enqueueElementInternal:function(e,t,n){e._pendingElement=t,e._context=n,r(e)},validateCallback:function(e,t){e&&"function"!=typeof e&&a("122",t,o(e))}});e.exports=c},function(e,t){"use strict";var n=function(e){return"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(t,n,r,o){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,o)})}:e};e.exports=n},function(e,t){"use strict";function n(e){var t,n=e.keyCode;return"charCode"in e?0===(t=e.charCode)&&13===n&&(t=13):t=n,t>=32||13===t?t:0}e.exports=n},function(e,t){"use strict";function n(e){var t,n=this,r=n.nativeEvent;return r.getModifierState?r.getModifierState(e):!!(t=o[e])&&!!r[t]}function r(e){return n}var o={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};e.exports=r},function(e,t){"use strict";function n(e){var t=e.target||e.srcElement||window;return t.correspondingUseElement&&(t=t.correspondingUseElement),3===t.nodeType?t.parentNode:t}e.exports=n},function(e,t,n){"use strict";function r(e,t){var n,r,a;return!(!i.canUseDOM||t&&!("addEventListener"in document))&&(n="on"+e,r=n in document,r||(a=document.createElement("div"),a.setAttribute(n,"return;"),r="function"==typeof a[n]),!r&&o&&"wheel"===e&&(r=document.implementation.hasFeature("Events.wheel","3.0")),r)}var o,i=n(60);i.canUseDOM&&(o=document.implementation&&document.implementation.hasFeature&&!0!==document.implementation.hasFeature("","")),e.exports=r},function(e,t){"use strict";function n(e,t){var n,r,o=null===e||!1===e,i=null===t||!1===t;return o||i?o===i:(n=typeof e,r=typeof t,"string"===n||"number"===n?"string"===r||"number"===r:"object"===r&&e.type===t.type&&e.key===t.key)}e.exports=n},function(e,t,n){"use strict";var r=(n(30),n(66)),o=(n(24),r);e.exports=o},,,,,,,,,,,,,,,,,function(e,t,n){"use strict";function r(){return new Promise(function(e){n.e(0,function(t){n(514),e()})})}Object.defineProperty(t,"__esModule",{value:!0}),n(22), |
|||
t.lazyVelocity=r,$.fn.velocity=function(){var e,t=this,n=[];for(e=0;e<arguments.length;e++)n[e]=arguments[e];return r().then(function(){$.fn.velocity.apply(t,n)}),this}},,,,,,,,,,,,function(e,t){"use strict";function n(e){return"number"==typeof e&&isFinite(e)}function r(e){return"number"==typeof e&&e%1==0}function o(e){return!(e<=0||e>0)}function i(e){return Math.round(1e10*e)/1e10}function a(e,t){var n=e/t,r=Math.floor(n),o=n-r;return o>2e-10?i(o>.5?(r+1)*t:r*t):e}Object.defineProperty(t,"__esModule",{value:!0}),t.isNumber=n,t.isInteger=r,t.isNaN=o,t.fixComputationError=i,t.alignTo=a},,function(e,t,n){var r=n(88),o=n(89),i=n(198);e.exports=function(e){return function(t,n,a){var s,u=r(t),c=o(u.length),l=i(a,c);if(e&&n!=n){for(;c>l;)if((s=u[l++])!=s)return!0}else for(;c>l;l++)if((e||l in u)&&u[l]===n)return e||l||0;return!e&&-1}}},function(e,t,n){var r=n(99),o=n(241),i=n(130),a=n(89),s=n(521);e.exports=function(e,t){var n=1==e,u=2==e,c=3==e,l=4==e,f=6==e,p=5==e||f,d=t||s;return function(t,s,h){for(var m,g,y=i(t),v=o(y),b=r(s,h,3),_=a(v.length),w=0,x=n?d(t,_):u?d(t,0):void 0;_>w;w++)if((p||w in v)&&(m=v[w],g=b(m,w,y),e))if(n)x[w]=g;else if(g)switch(e){case 3:return!0;case 5:return m;case 6:return w;case 2:x.push(m)}else if(l)return!1;return f?-1:c||l?l:x}}},function(e,t,n){var r=n(111),o=n(39)("toStringTag"),i="Arguments"==r(function(){return arguments}()),a=function(e,t){try{return e[t]}catch(e){}};e.exports=function(e){var t,n,s;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=a(t=Object(e),o))?n:i?r(t):"Object"==(s=r(t))&&"function"==typeof t.callee?"Arguments":s}},function(e,t,n){"use strict";var r=n(59).f,o=n(196),i=n(248),a=n(99),s=n(236),u=n(112),c=n(240),l=n(242),f=n(349),p=n(250),d=n(79),h=n(246).fastKey,m=d?"_s":"size",g=function(e,t){var n,r=h(t);if("F"!==r)return e._i[r];for(n=e._f;n;n=n.n)if(n.k==t)return n};e.exports={getConstructor:function(e,t,n,l){var f=e(function(e,r){s(e,f,t,"_i"),e._i=o(null),e._f=void 0,e._l=void 0,e[m]=0,void 0!=r&&c(r,n,e[l],e)});return i(f.prototype,{clear:function(){for(var e=this,t=e._i,n=e._f;n;n=n.n)n.r=!0,n.p&&(n.p=n.p.n=void 0),delete t[n.i];e._f=e._l=void 0,e[m]=0},delete:function(e){var t,n,r=this,o=g(r,e);return o&&(t=o.n,n=o.p,delete r._i[o.i],o.r=!0,n&&(n.n=t),t&&(t.p=n),r._f==o&&(r._f=t),r._l==o&&(r._l=n),r[m]--),!!o},forEach:function(e){s(this,f,"forEach");for(var t,n=a(e,arguments.length>1?arguments[1]:void 0,3);t=t?t.n:this._f;)for(n(t.v,t.k,this);t&&t.r;)t=t.p},has:function(e){return!!g(this,e)}}),d&&r(f.prototype,"size",{get:function(){return u(this[m])}}),f},def:function(e,t,n){var r,o,i=g(e,t);return i?i.v=n:(e._l=i={i:o=h(t,!0),k:t,v:n,p:r=e._l,n:void 0,r:!1},e._f||(e._f=i),r&&(r.n=i),e[m]++,"F"!==o&&(e._i[o]=i)),e},getEntry:g,setStrong:function(e,t,n){l(e,t,function(e,t){this._t=e,this._k=t,this._l=void 0},function(){for(var e=this,t=e._k,n=e._l;n&&n.r;)n=n.p;return e._t&&(e._l=n=n?n.n:e._t._f)?"keys"==t?f(0,n.k):"values"==t?f(0,n.v):f(0,[n.k,n.v]):(e._t=void 0,f(1))},n?"entries":"values",!n,!0),p(t)}}},function(e,t,n){"use strict" |
|||
;var r=n(35),o=n(6),i=n(129),a=n(248),s=n(246),u=n(240),c=n(236),l=n(50),f=n(58),p=n(243),d=n(150),h=n(526);e.exports=function(e,t,n,m,g,y){var v,b,_,w,x,C=r[e],T=C,k=g?"set":"add",E=T&&T.prototype,S={},M=function(e){var t=E[e];i(E,e,"delete"==e?function(e){return!(y&&!l(e))&&t.call(this,0===e?0:e)}:"has"==e?function(e){return!(y&&!l(e))&&t.call(this,0===e?0:e)}:"get"==e?function(e){return y&&!l(e)?void 0:t.call(this,0===e?0:e)}:"add"==e?function(e){return t.call(this,0===e?0:e),this}:function(e,n){return t.call(this,0===e?0:e,n),this})};return"function"==typeof T&&(y||E.forEach&&!f(function(){(new T).entries().next()}))?(v=new T,b=v[k](y?{}:-0,1)!=v,_=f(function(){v.has(1)}),w=p(function(e){new T(e)}),x=!y&&f(function(){for(var e=new T,t=5;t--;)e[k](t,t);return!e.has(-0)}),w||(T=t(function(t,n){c(t,T,e);var r=h(new C,t,T);return void 0!=n&&u(n,g,r[k],r),r}),T.prototype=E,E.constructor=T),(_||x)&&(M("delete"),M("has"),g&&M("get")),(x||b)&&M(k),y&&E.clear&&delete E.clear):(T=m.getConstructor(t,e,g,k),a(T.prototype,n),s.NEED=!0),d(T,e),S[e]=T,o(o.G+o.W+o.F*(T!=C),S),y||m.setStrong(T,e,g),T}},function(e,t,n){"use strict";var r=n(59),o=n(114);e.exports=function(e,t,n){t in e?r.f(e,t,o(0,n)):e[t]=n}},function(e,t,n){e.exports=n(35).document&&document.documentElement},function(e,t,n){e.exports=!n(79)&&!n(58)(function(){return 7!=Object.defineProperty(n(237)("div"),"a",{get:function(){return 7}}).a})},function(e,t){e.exports=function(e,t,n){var r=void 0===n;switch(t.length){case 0:return r?e():e.call(n);case 1:return r?e(t[0]):e.call(n,t[0]);case 2:return r?e(t[0],t[1]):e.call(n,t[0],t[1]);case 3:return r?e(t[0],t[1],t[2]):e.call(n,t[0],t[1],t[2]);case 4:return r?e(t[0],t[1],t[2],t[3]):e.call(n,t[0],t[1],t[2],t[3])}return e.apply(n,t)}},function(e,t,n){var r=n(194),o=n(39)("iterator"),i=Array.prototype;e.exports=function(e){return void 0!==e&&(r.Array===e||i[o]===e)}},function(e,t,n){var r=n(111);e.exports=Array.isArray||function(e){return"Array"==r(e)}},function(e,t,n){var r=n(50),o=Math.floor;e.exports=function(e){return!r(e)&&isFinite(e)&&o(e)===e}},function(e,t,n){var r=n(29);e.exports=function(e,t,n,o){try{return o?t(r(n)[0],n[1]):t(n)}catch(t){var i=e.return;throw void 0!==i&&r(i.call(e)),t}}},function(e,t,n){"use strict";var r=n(196),o=n(114),i=n(150),a={};n(113)(a,n(39)("iterator"),function(){return this}),e.exports=function(e,t,n){e.prototype=r(a,{next:o(1,n)}),i(e,t+" Iterator")}},function(e,t){e.exports=function(e,t){return{value:t,done:!!e}}},function(e,t){e.exports=Math.log1p||function(e){return(e=+e)>-1e-8&&e<1e-8?e-e*e/2:Math.log(1+e)}},function(e,t,n){var r=n(72),o=n(88),i=n(335)(!1),a=n(251)("IE_PROTO");e.exports=function(e,t){var n,s=o(e),u=0,c=[];for(n in s)n!=a&&r(s,n)&&c.push(n);for(;t.length>u;)r(s,n=t[u++])&&(~i(c,n)||c.push(n));return c}},function(e,t,n){var r=n(128),o=n(88),i=n(149).f;e.exports=function(e){return function(t){for(var n,a=o(t),s=r(a),u=s.length,c=0,l=[];u>c;)i.call(a,n=s[c++])&&l.push(e?[n,a[n]]:a[n]);return l}}},function(e,t,n){var r=n(199),o=n(112);e.exports=function(e){ |
|||
return function(t,n){var i,a,s=o(t)+"",u=r(n),c=s.length;return u<0||u>=c?e?"":void 0:(i=s.charCodeAt(u),i<55296||i>56319||u+1===c||(a=s.charCodeAt(u+1))<56320||a>57343?e?s.charAt(u):i:e?s.slice(u,u+2):a-56320+(i-55296<<10)+65536)}}},function(e,t,n){var r=n(6),o=n(112),i=n(58),a=n(254),s="["+a+"]",u="
",c=RegExp("^"+s+s+"*"),l=RegExp(s+s+"*$"),f=function(e,t,n){var o={},s=i(function(){return!!a[e]()||u[e]()!=u}),c=o[e]=s?t(p):a[e];n&&(o[n]=c),r(r.P+r.F*s,"String",o)},p=f.trim=function(e,t){return e=o(e)+"",1&t&&(e=e.replace(c,"")),2&t&&(e=e.replace(l,"")),e};e.exports=f},function(e,t,n){var r,o,i,a=n(99),s=n(343),u=n(341),c=n(237),l=n(35),f=l.process,p=l.setImmediate,d=l.clearImmediate,h=l.MessageChannel,m=0,g={},y="onreadystatechange",v=function(){var e,t=+this;g.hasOwnProperty(t)&&(e=g[t],delete g[t],e())},b=function(e){v.call(e.data)};p&&d||(p=function(e){for(var t=[],n=1;arguments.length>n;)t.push(arguments[n++]);return g[++m]=function(){s("function"==typeof e?e:Function(e),t)},r(m),m},d=function(e){delete g[e]},"process"==n(111)(f)?r=function(e){f.nextTick(a(v,e,1))}:h?(o=new h,i=o.port2,o.port1.onmessage=b,r=a(i.postMessage,i,1)):l.addEventListener&&"function"==typeof postMessage&&!l.importScripts?(r=function(e){l.postMessage(e+"","*")},l.addEventListener("message",b,!1)):r=y in c("script")?function(e){u.appendChild(c("script"))[y]=function(){u.removeChild(this),v.call(e)}}:function(e){setTimeout(a(v,e,1),0)}),e.exports={set:p,clear:d}},function(e,t,n){t.f=n(39)},function(e,t,n){var r=n(337),o=n(39)("iterator"),i=n(194);e.exports=n(126).getIteratorMethod=function(e){if(void 0!=e)return e[o]||e["@@iterator"]||i[r(e)]}},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=!("undefined"==typeof window||!window.document||!window.document.createElement),e.exports=t.default},,,function(e,t,n){"use strict";var r=n(66),o={listen:function(e,t,n){return e.addEventListener?(e.addEventListener(t,n,!1),{remove:function(){e.removeEventListener(t,n,!1)}}):e.attachEvent?(e.attachEvent("on"+t,n),{remove:function(){e.detachEvent("on"+t,n)}}):void 0},capture:function(e,t,n){return e.addEventListener?(e.addEventListener(t,n,!0),{remove:function(){e.removeEventListener(t,n,!0)}}):{remove:r}},registerDefault:function(){}};e.exports=o},function(e,t){"use strict";function n(e){try{e.focus()}catch(e){}}e.exports=n},function(e,t){"use strict";function n(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}e.exports=n},,,,,,,,,,,,function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e){return e.interpolation={unescapeSuffix:"HTML"},e.interpolation.prefix=e.interpolationPrefix||"__",e.interpolation.suffix=e.interpolationSuffix||"__",e.interpolation.escapeValue=e.escapeInterpolation||!1,e.interpolation.nestingPrefix=e.reusePrefix||"$t(",e.interpolation.nestingSuffix=e.reuseSuffix||")",e}function i(e){return e.resStore&&(e.resources=e.resStore), |
|||
e.ns&&e.ns.defaultNs?(e.defaultNS=e.ns.defaultNs,e.ns=e.ns.namespaces):e.defaultNS=e.ns||"translation",e.fallbackToDefaultNS&&e.defaultNS&&(e.fallbackNS=e.defaultNS),e.saveMissing=e.sendMissing,e.saveMissingTo=e.sendMissingTo||"current",e.returnNull=!e.fallbackOnNull,e.returnEmptyString=!e.fallbackOnEmpty,e.returnObjects=e.returnObjectTrees,e.joinArrays="\n",e.returnedObjectHandler=e.objectTreeKeyHandler,e.parseMissingKeyHandler=e.parseMissingKey,e.appendNamespaceToMissingKey=!0,e.nsSeparator=e.nsseparator,e.keySeparator=e.keyseparator,"sprintf"===e.shortcutFunction&&(e.overloadTranslationOptionHandler=function(e){var t,n=[];for(t=1;t<e.length;t++)n.push(e[t]);return{postProcess:"sprintf",sprintf:n}}),e.whitelist=e.lngWhitelist,e.preload=e.preload,"current"===e.load&&(e.load="currentOnly"),"unspecific"===e.load&&(e.load="languageOnly"),e.backend=e.backend||{},e.backend.loadPath=e.resGetPath||"locales/__lng__/__ns__.json",e.backend.addPath=e.resPostPath||"locales/add/__lng__/__ns__",e.backend.allowMultiLoading=e.dynamicLoad,e.cache=e.cache||{},e.cache.prefix="res_",e.cache.expirationTime=6048e5,e.cache.enabled=!!e.useLocalStorage,e=o(e),e.defaultVariables&&(e.interpolation.defaultVariables=e.defaultVariables),e}function a(e){return e=o(e),e.joinArrays="\n",e}function s(e){return(e.interpolationPrefix||e.interpolationSuffix||e.escapeInterpolation)&&(e=o(e)),e.nsSeparator=e.nsseparator,e.keySeparator=e.keyseparator,e.returnObjects=e.returnObjectTrees,e}function u(e){e.lng=function(){return l.default.deprecate("i18next.lng() can be replaced by i18next.language for detected language or i18next.languages for languages ordered by translation lookup."),e.services.languageUtils.toResolveHierarchy(e.language)[0]},e.preload=function(t,n){l.default.deprecate("i18next.preload() can be replaced with i18next.loadLanguages()"),e.loadLanguages(t,n)},e.setLng=function(t,n,r){if(l.default.deprecate("i18next.setLng() can be replaced with i18next.changeLanguage() or i18next.getFixedT() to get a translation function with fixed language or namespace."),"function"==typeof n&&(r=n,n={}),n||(n={}),!0===n.fixLng&&r)return r(null,e.getFixedT(t));e.changeLanguage(t,r)},e.addPostProcessor=function(t,n){l.default.deprecate("i18next.addPostProcessor() can be replaced by i18next.use({ type: 'postProcessor', name: 'name', process: fc })"),e.use({type:"postProcessor",name:t,process:n})}}var c,l;Object.defineProperty(t,"__esModule",{value:!0}),t.convertAPIOptions=i,t.convertJSONOptions=a,t.convertTOptions=s,t.appendBackwardsAPI=u,c=n(100),l=r(c)},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={processors:{},addPostProcessor:function(e){this.processors[e.name]=e},handle:function(e,t,n,r,o){var i=this;return e.forEach(function(e){i.processors[e]&&(t=i.processors[e].process(t,n,r,o))}),t}}},function(e,t,n){e.exports=n(721).default},function(e,t,n){!function(e,t){t(n(36))}(0,function(e){"use strict";return e.defineLocale("en-gb",{ |
|||
months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few 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"},ordinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}})})},function(e,t,n){!function(e,t){t(n(36))}(0,function(e){"use strict";var t="Ene._Feb._Mar._Abr._May._Jun._Jul._Ago._Sep._Oct._Nov._Dic.".split("_"),n="Ene_Feb_Mar_Abr_May_Jun_Jul_Ago_Sep_Oct_Nov_Dic".split("_");return e.defineLocale("es",{months:"Enero_Febrero_Marzo_Abril_Mayo_Junio_Julio_Agosto_Septiembre_Octubre_Noviembre_Diciembre".split("_"),monthsShort:function(e,r){return/-MMM-/.test(r)?n[e.month()]:t[e.month()]},weekdays:"Domingo_Lunes_Martes_Miércoles_Jueves_Viernes_Sábado".split("_"),weekdaysShort:"Dom._Lun._Mar._Mié._Jue._Vie._Sáb.".split("_"),weekdaysMin:"Do_Lu_Ma_Mi_Ju_Vi_Sá".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[mañana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},ordinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})})},function(e,t,n){!function(e,t){t(n(36))}(0,function(e){"use strict";return e.defineLocale("it",{months:"gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"),monthsShort:"gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"),weekdays:"Domenica_Lunedì_Martedì_Mercoledì_Giovedì_Venerdì_Sabato".split("_"),weekdaysShort:"Dom_Lun_Mar_Mer_Gio_Ven_Sab".split("_"),weekdaysMin:"D_L_Ma_Me_G_V_S".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Oggi alle] LT",nextDay:"[Domani alle] LT", |
|||
nextWeek:"dddd [alle] LT",lastDay:"[Ieri alle] LT",lastWeek:function(){switch(this.day()){case 0:return"[la scorsa] dddd [alle] LT";default:return"[lo scorso] dddd [alle] LT"}},sameElse:"L"},relativeTime:{future:function(e){return(/^[0-9].+$/.test(e)?"tra":"in")+" "+e},past:"%s fa",s:"alcuni secondi",m:"un minuto",mm:"%d minuti",h:"un'ora",hh:"%d ore",d:"un giorno",dd:"%d giorni",M:"un mese",MM:"%d mesi",y:"un anno",yy:"%d anni"},ordinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})})},function(e,t,n){!function(e,t){t(n(36))}(0,function(e){"use strict";return e.defineLocale("ja",{months:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"日曜日_月曜日_火曜日_水曜日_木曜日_金曜日_土曜日".split("_"),weekdaysShort:"日_月_火_水_木_金_土".split("_"),weekdaysMin:"日_月_火_水_木_金_土".split("_"),longDateFormat:{LT:"Ah時m分",LTS:"Ah時m分s秒",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日Ah時m分",LLLL:"YYYY年M月D日Ah時m分 dddd"},meridiemParse:/午前|午後/i,isPM:function(e){return"午後"===e},meridiem:function(e,t,n){return e<12?"午前":"午後"},calendar:{sameDay:"[今日] LT",nextDay:"[明日] LT",nextWeek:"[来週]dddd LT",lastDay:"[昨日] LT",lastWeek:"[前週]dddd LT",sameElse:"L"},relativeTime:{future:"%s後",past:"%s前",s:"数秒",m:"1分",mm:"%d分",h:"1時間",hh:"%d時間",d:"1日",dd:"%d日",M:"1ヶ月",MM:"%dヶ月",y:"1年",yy:"%d年"}})})},function(e,t,n){!function(e,t){t(n(36))}(0,function(e){"use strict";return e.defineLocale("ko",{months:"1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월".split("_"),monthsShort:"1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월".split("_"),weekdays:"일요일_월요일_화요일_수요일_목요일_금요일_토요일".split("_"),weekdaysShort:"일_월_화_수_목_금_토".split("_"),weekdaysMin:"일_월_화_수_목_금_토".split("_"),longDateFormat:{LT:"A h시 m분",LTS:"A h시 m분 s초",L:"YYYY.MM.DD",LL:"YYYY년 MMMM D일",LLL:"YYYY년 MMMM D일 A h시 m분",LLLL:"YYYY년 MMMM D일 dddd A h시 m분"},calendar:{sameDay:"오늘 LT",nextDay:"내일 LT",nextWeek:"dddd LT",lastDay:"어제 LT",lastWeek:"지난주 dddd LT",sameElse:"L"},relativeTime:{future:"%s 후",past:"%s 전",s:"몇초",ss:"%d초",m:"일분",mm:"%d분",h:"한시간",hh:"%d시간",d:"하루",dd:"%d일",M:"한달",MM:"%d달",y:"일년",yy:"%d년"},ordinalParse:/\d{1,2}일/,ordinal:"%d일",meridiemParse:/오전|오후/,isPM:function(e){return"오후"===e},meridiem:function(e,t,n){return e<12?"오전":"오후"}})})},function(e,t,n){!function(e,t){t(n(36))}(0,function(e){"use strict";function t(e){return e%10<5&&e%10>1&&~~(e/10)%10!=1}function n(e,n,r){var o=e+" ";switch(r){case"m":return n?"minuta":"minutę";case"mm":return o+(t(e)?"minuty":"minut");case"h":return n?"godzina":"godzinę";case"hh":return o+(t(e)?"godziny":"godzin");case"MM":return o+(t(e)?"miesiące":"miesięcy");case"yy":return o+(t(e)?"lata":"lat")}}var r="styczeń_luty_marzec_kwiecień_maj_czerwiec_lipiec_sierpień_wrzesień_październik_listopad_grudzień".split("_"),o="stycznia_lutego_marca_kwietnia_maja_czerwca_lipca_sierpnia_września_października_listopada_grudnia".split("_");return e.defineLocale("pl",{months:function(e,t){return""===t?"("+o[e.month()]+"|"+r[e.month()]+")":/D MMMM/.test(t)?o[e.month()]:r[e.month()]},monthsShort:"sty_lut_mar_kwi_maj_cze_lip_sie_wrz_paź_lis_gru".split("_"), |
|||
weekdays:"niedziela_poniedziałek_wtorek_środa_czwartek_piątek_sobota".split("_"),weekdaysShort:"nie_pon_wt_śr_czw_pt_sb".split("_"),weekdaysMin:"N_Pn_Wt_Śr_Cz_Pt_So".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Dziś o] LT",nextDay:"[Jutro o] LT",nextWeek:"[W] dddd [o] LT",lastDay:"[Wczoraj o] LT",lastWeek:function(){switch(this.day()){case 0:return"[W zeszłą niedzielę o] LT";case 3:return"[W zeszłą środę o] LT";case 6:return"[W zeszłą sobotę o] LT";default:return"[W zeszły] dddd [o] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"%s temu",s:"kilka sekund",m:n,mm:n,h:n,hh:n,d:"1 dzień",dd:"%d dni",M:"miesiąc",MM:n,y:"rok",yy:n},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})})},function(e,t,n){!function(e,t){t(n(36))}(0,function(e){"use strict";return e.defineLocale("pt-br",{months:"Janeiro_Fevereiro_Março_Abril_Maio_Junho_Julho_Agosto_Setembro_Outubro_Novembro_Dezembro".split("_"),monthsShort:"Jan_Fev_Mar_Abr_Mai_Jun_Jul_Ago_Set_Out_Nov_Dez".split("_"),weekdays:"Domingo_Segunda-Feira_Terça-Feira_Quarta-Feira_Quinta-Feira_Sexta-Feira_Sábado".split("_"),weekdaysShort:"Dom_Seg_Ter_Qua_Qui_Sex_Sáb".split("_"),weekdaysMin:"Dom_2ª_3ª_4ª_5ª_6ª_Sáb".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY [às] HH:mm",LLLL:"dddd, D [de] MMMM [de] YYYY [às] HH:mm"},calendar:{sameDay:"[Hoje às] LT",nextDay:"[Amanhã às] LT",nextWeek:"dddd [às] LT",lastDay:"[Ontem às] LT",lastWeek:function(){return 0===this.day()||6===this.day()?"[Último] dddd [às] LT":"[Última] dddd [às] LT"},sameElse:"L"},relativeTime:{future:"em %s",past:"%s atrás",s:"poucos segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%d horas",d:"um dia",dd:"%d dias",M:"um mês",MM:"%d meses",y:"um ano",yy:"%d anos"},ordinalParse:/\d{1,2}º/,ordinal:"%dº"})})},function(e,t,n){!function(e,t){t(n(36))}(0,function(e){"use strict";return e.defineLocale("pt",{months:"Janeiro_Fevereiro_Março_Abril_Maio_Junho_Julho_Agosto_Setembro_Outubro_Novembro_Dezembro".split("_"),monthsShort:"Jan_Fev_Mar_Abr_Mai_Jun_Jul_Ago_Set_Out_Nov_Dez".split("_"),weekdays:"Domingo_Segunda-Feira_Terça-Feira_Quarta-Feira_Quinta-Feira_Sexta-Feira_Sábado".split("_"),weekdaysShort:"Dom_Seg_Ter_Qua_Qui_Sex_Sáb".split("_"),weekdaysMin:"Dom_2ª_3ª_4ª_5ª_6ª_Sáb".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY HH:mm",LLLL:"dddd, D [de] MMMM [de] YYYY HH:mm"},calendar:{sameDay:"[Hoje às] LT",nextDay:"[Amanhã às] LT",nextWeek:"dddd [às] LT",lastDay:"[Ontem às] LT",lastWeek:function(){return 0===this.day()||6===this.day()?"[Último] dddd [às] LT":"[Última] dddd [às] LT"},sameElse:"L"},relativeTime:{future:"em %s",past:"há %s",s:"segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%d horas",d:"um dia",dd:"%d dias",M:"um mês",MM:"%d meses",y:"um ano",yy:"%d anos"},ordinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})}) |
|||
},function(e,t,n){!function(e,t){t(n(36))}(0,function(e){"use strict";function t(e,t){var n=e.split("_");return t%10==1&&t%100!=11?n[0]:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?n[1]:n[2]}function n(e,n,r){var o={mm:n?"минута_минуты_минут":"минуту_минуты_минут",hh:"час_часа_часов",dd:"день_дня_дней",MM:"месяц_месяца_месяцев",yy:"год_года_лет"};return"m"===r?n?"минута":"минуту":e+" "+t(o[r],+e)}function r(e,t){return{nominative:"январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь".split("_"),accusative:"января_февраля_марта_апреля_мая_июня_июля_августа_сентября_октября_ноября_декабря".split("_")}[/D[oD]?(\[[^\[\]]*\]|\s+)+MMMM?/.test(t)?"accusative":"nominative"][e.month()]}function o(e,t){return{nominative:"янв_фев_март_апр_май_июнь_июль_авг_сен_окт_ноя_дек".split("_"),accusative:"янв_фев_мар_апр_мая_июня_июля_авг_сен_окт_ноя_дек".split("_")}[/D[oD]?(\[[^\[\]]*\]|\s+)+MMMM?/.test(t)?"accusative":"nominative"][e.month()]}function i(e,t){return{nominative:"воскресенье_понедельник_вторник_среда_четверг_пятница_суббота".split("_"),accusative:"воскресенье_понедельник_вторник_среду_четверг_пятницу_субботу".split("_")}[/\[ ?[Вв] ?(?:прошлую|следующую|эту)? ?\] ?dddd/.test(t)?"accusative":"nominative"][e.day()]}return e.defineLocale("ru",{months:r,monthsShort:o,weekdays:i,weekdaysShort:"вс_пн_вт_ср_чт_пт_сб".split("_"),weekdaysMin:"вс_пн_вт_ср_чт_пт_сб".split("_"),monthsParse:[/^янв/i,/^фев/i,/^мар/i,/^апр/i,/^ма[й|я]/i,/^июн/i,/^июл/i,/^авг/i,/^сен/i,/^окт/i,/^ноя/i,/^дек/i],longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY г.",LLL:"D MMMM YYYY г., HH:mm",LLLL:"dddd, D MMMM YYYY г., HH:mm"},calendar:{sameDay:"[Сегодня в] LT",nextDay:"[Завтра в] LT",lastDay:"[Вчера в] LT",nextWeek:function(){return 2===this.day()?"[Во] dddd [в] LT":"[В] dddd [в] LT"},lastWeek:function(e){if(e.week()===this.week())return 2===this.day()?"[Во] dddd [в] LT":"[В] dddd [в] LT";switch(this.day()){case 0:return"[В прошлое] dddd [в] LT";case 1:case 2:case 4:return"[В прошлый] dddd [в] LT";case 3:case 5:case 6:return"[В прошлую] dddd [в] LT"}},sameElse:"L"},relativeTime:{future:"через %s",past:"%s назад",s:"несколько секунд",m:n,mm:n,h:"час",hh:n,d:"день",dd:n,M:"месяц",MM:n,y:"год",yy:n},meridiemParse:/ночи|утра|дня|вечера/i,isPM:function(e){return/^(дня|вечера)$/.test(e)},meridiem:function(e,t,n){return e<4?"ночи":e<12?"утра":e<17?"дня":"вечера"},ordinalParse:/\d{1,2}-(й|го|я)/,ordinal:function(e,t){switch(t){case"M":case"d":case"DDD":return e+"-й";case"D":return e+"-го";case"w":case"W":return e+"-я";default:return e}},week:{dow:1,doy:7}})})},function(e,t,n){!function(e,t){t(n(36))}(0,function(e){"use strict";var t={1:"'inci",5:"'inci",8:"'inci",70:"'inci",80:"'inci",2:"'nci",7:"'nci",20:"'nci",50:"'nci",3:"'üncü",4:"'üncü",100:"'üncü",6:"'ncı",9:"'uncu",10:"'uncu",30:"'uncu",60:"'ıncı",90:"'ıncı"};return e.defineLocale("tr",{months:"Ocak_Şubat_Mart_Nisan_Mayıs_Haziran_Temmuz_Ağustos_Eylül_Ekim_Kasım_Aralık".split("_"),monthsShort:"Oca_Şub_Mar_Nis_May_Haz_Tem_Ağu_Eyl_Eki_Kas_Ara".split("_"), |
|||
weekdays:"Pazar_Pazartesi_Salı_Çarşamba_Perşembe_Cuma_Cumartesi".split("_"),weekdaysShort:"Paz_Pts_Sal_Çar_Per_Cum_Cts".split("_"),weekdaysMin:"Pz_Pt_Sa_Ça_Pe_Cu_Ct".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[bugün saat] LT",nextDay:"[yarın saat] LT",nextWeek:"[haftaya] dddd [saat] LT",lastDay:"[dün] LT",lastWeek:"[geçen hafta] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s sonra",past:"%s önce",s:"birkaç saniye",m:"bir dakika",mm:"%d dakika",h:"bir saat",hh:"%d saat",d:"bir gün",dd:"%d gün",M:"bir ay",MM:"%d ay",y:"bir yıl",yy:"%d yıl"},ordinalParse:/\d{1,2}'(inci|nci|üncü|ncı|uncu|ıncı)/,ordinal:function(e){if(0===e)return e+"'ıncı";var n=e%10,r=e%100-n,o=e>=100?100:null;return e+(t[n]||t[r]||t[o])},week:{dow:1,doy:7}})})},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t){"use strict";!function(e){function t(t){var n=t||window.event,r=[].slice.call(arguments,1),o=0,i=0,a=0;return t=e.event.fix(n),t.type="mousewheel",n.wheelDelta&&(o=n.wheelDelta/120),n.detail&&(o=-n.detail/3),a=o,void 0!==n.axis&&n.axis===n.HORIZONTAL_AXIS&&(a=0,i=-1*o),void 0!==n.wheelDeltaY&&(a=n.wheelDeltaY/120),void 0!==n.wheelDeltaX&&(i=-1*n.wheelDeltaX/120),r.unshift(t,o,i,a),(e.event.dispatch||e.event.handle).apply(this,r)}var n,r=["wheel","mousewheel","DOMMouseScroll","MozMousePixelScroll"],o=["mousewheel","DomMouseScroll","MozMousePixelScroll"];if(e.event.fixHooks)for(n=r.length;n;)e.event.fixHooks[r[--n]]=e.event.mouseHooks;e.event.special.mousewheel={setup:function(){if(this.addEventListener)for(var e=o.length;e;)this.addEventListener(o[--e],t,!1);else this.onmousewheel=t},teardown:function(){if(this.removeEventListener)for(var e=o.length;e;)this.removeEventListener(o[--e],t,!1);else this.onmousewheel=null}},e.fn.extend({mousewheel:function(e){return e?this.bind("mousewheel",e):this.trigger("mousewheel")},unmousewheel:function(e){return this.unbind("mousewheel",e)}})}(jQuery)},function(e,t,n){"use strict";var r=n(53),o=r.rgba,i=r.areEqualRgb,a=r.areEqualRgba,s=r.normalizeHue,u=r.normalizeHsvSaturation,c=r.normalizeValue,l=r.hsv,f=r.rgbToHsv,p=r.hsvToRgb,d=r.rgbToString,h=r.rgbaToString,m=r.parseRgb,g=r.parseRgba,y=n(708);!function(e){function t(e){return""===e?e:h(g(e))}function n(e){e&&(e.join||(e=e?(""+e).split(","):[]),b=e)}function r(w){function x(t){var n=!1,r=m(t);return e.each(b,function(e,t){if(i(m(t),r))return n=!0,!1}),!n&&(b=[d(r)].concat(b.slice(0,v-1)),!0)}function C(t,n,r){var i=e(this);t=h(o(m(t),n)),T.call(this,t),i.removeData("tvcolorpicker").removeData("tvcolorpicker-custom-color"),r&&(O(),i.blur())}function T(t){var n=e(this);n.val(t),n.change(),t?n.trigger("pick-color",t):n.trigger("pick-transparent"),k.call(this,t)}function k(t){if(""===t)return void e(this).addClass("tvcolorpicker-gradient-widget");e(this).removeClass("tvcolorpicker-gradient-widget"),e(this).css({backgroundColor:t,color:t})}function E(t,n){var r,o,a,s,u,c;return n=n||{},r=this,o=e(r).val().toLowerCase(), |
|||
a=document.createElement("table"),s=document.createElement("tbody"),a.appendChild(s),c=0,e.each(t,function(t,a){var l,f;c++,t%v==0&&(u=e("<tr></tr>").appendTo(s)),l=e('<td class="tvcolorpicker-cell"></td>').appendTo(u),f=e('<div class="tvcolorpicker-transparency"><div class="tvcolorpicker-swatch"></div></div>').appendTo(l).find(".tvcolorpicker-swatch").data("color",a),n.addClass&&f.addClass(n.addClass),a&&(a=a.toLowerCase(),o&&i(m(o),m(a))&&f.addClass("active"),f.css({backgroundColor:a}).data("color",a),f.bind("click",function(){C.call(r,a,N.val(),!0)}))}),e(a).addClass("tvcolorpicker-table"),c?a:e()}function S(t,n,r){var o,i=e(t).offset(),a={left:e(document).scrollLeft(),top:e(document).scrollTop()},s={width:e(t).outerWidth(),height:e(t).outerHeight()},u={width:e(window).width(),height:e(window).height()},c={width:e(n).outerWidth(),height:e(n).outerHeight()};switch("function"==typeof r.direction?r.direction():r.direction){default:case"down":o={top:i.top+s.height+r.offset,left:i.left+r.drift};break;case"right":o={top:i.top+r.drift,left:i.left+s.width+r.offset}}o.top+c.height>u.height+a.top&&(o.top=u.height-c.height+a.top),i.left+c.width>u.width&&(o.left=u.width-c.width),o.left+="px",o.top+="px",n.css(o)}function M(t){function n(e){var t=e.originalEvent,n=e.offsetX||e.layerX||t&&(t.offsetX||t.layerX)||0,r=e.offsetY||e.layerY||t&&(t.offsetY||t.layerY)||0;D.css({left:n+"px",top:r+"px"}),W[0]=s(n/F),W[1]=u(1-r/R),L.css({backgroundColor:d(p(l(W[0],W[1],1)))}),x()}function r(t){1==t.which&&(U=!1,q.is(".opened")&&e(V).get(0).focus())}function i(t){var n=t.pageY,r=e(j),o=r.offset().top,i=n-o;return i>r.height()?r.height():i<0?0:i}function v(e){var t=i(e);I.css({top:t+"px"}),W[2]=c(1-Math.max(0,Math.min(t,R))/R),x()}function w(t){1==t.which&&(H=!1,e(document).unbind("mouseup",w),q.is(".opened")&&e(V).get(0).focus())}function x(){var e,t;Y&&(Y=!1,q.find(".tvcolorpicker-swatch.active").removeClass("active")),e=o(p(W),N.val()),a(g(V.val().toUpperCase()),e)||(t=h(e),V.data("tvcolorpicker-custom-color",t),T.call(V,t))}var k,M,O,D,P,A,L,I,j,R,F,U,H,Y,W,B=!1,V=e(this),q=e('<div class="tvcolorpicker-popup opened">'),z=e('<div class="tvcolorpicker-swatches-area"></div>').appendTo(q);return z.append(E.call(this,["rgb(0, 0, 0)","rgb(66, 66, 66)","rgb(101, 101, 101)","rgb(152, 152, 152)","rgb(182, 182, 182)","rgb(203, 203, 203)","rgb(216, 216, 216)","rgb(238, 238, 238)","rgb(242, 242, 242)","rgb(255, 255, 255)"])),z.append(E.call(this,["rgb(151, 0, 0)","rgb(255, 0, 0)","rgb(255, 152, 0)","rgb(255, 255, 0)","rgb(0, 255, 0)","rgb(0, 255, 255)","rgb(73, 133, 231)","rgb(0, 0, 255)","rgb(152, 0, 255)","rgb(255, 0, 255)"])), |
|||
z.append(E.call(this,["rgb(230, 184, 175)","rgb(244, 204, 204)","rgb(252, 229, 205)","rgb(255, 242, 204)","rgb(217, 234, 211)","rgb(208, 224, 227)","rgb(201, 218, 248)","rgb(207, 226, 243)","rgb(217, 210, 233)","rgb(234, 209, 220)","rgb(221, 126, 107)","rgb(234, 153, 153)","rgb(249, 203, 156)","rgb(255, 229, 153)","rgb(182, 215, 168)","rgb(162, 196, 201)","rgb(164, 194, 244)","rgb(159, 197, 232)","rgb(180, 167, 214)","rgb(213, 166, 189)","rgb(204, 65, 37)","rgb(224, 102, 102)","rgb(246, 178, 107)","rgb(255, 217, 102)","rgb(147, 196, 125)","rgb(118, 165, 175)","rgb(109, 158, 235)","rgb(111, 168, 220)","rgb(142, 124, 195)","rgb(194, 123, 160)","rgb(166, 28, 0)","rgb(204, 0, 0)","rgb(230, 145, 56)","rgb(241, 194, 50)","rgb(106, 168, 79)","rgb(69, 129, 142)","rgb(60, 120, 216)","rgb(61, 133, 198)","rgb(103, 78, 167)","rgb(166, 77, 121)","rgb(133, 32, 12)","rgb(153, 0, 0)","rgb(180, 95, 6)","rgb(191, 144, 0)","rgb(56, 118, 29)","rgb(19, 79, 92)","rgb(17, 85, 204)","rgb(11, 83, 148)","rgb(53, 28, 117)","rgb(116, 27, 71)","rgb(91, 15, 0)","rgb(102, 0, 0)","rgb(120, 63, 4)","rgb(127, 96, 0)","rgb(39, 78, 19)","rgb(12, 52, 61)","rgb(28, 69, 135)","rgb(7, 55, 99)","rgb(32, 18, 77)","rgb(76, 17, 48)"])),k=e('<div class="tvcolorpicker-custom-area"></div>').css({display:"none"}).appendTo(q),M=e('<div class="tvcolorpicker-hsv"></div>').appendTo(k),O=e('<div class="tvcolorpicker-hs"></div>').appendTo(M),D=e('<div class="tvcolorpicker-hs-handle"></div>').appendTo(O),P=e('<div class="tvcolorpicker-hs-area"></div>').appendTo(O),A=e('<div class="tvcolorpicker-vv">').appendTo(M),L=e('<div class="tvcolorpicker-v"></div>').appendTo(A),I=e('<div class="tvcolorpicker-v-handle"></div>').appendTo(L),j=e('<div class="tvcolorpicker-v-area"></div>').appendTo(L),N=y(e(this),t.hideTransparency),N.initEvents(),N.updateColor(),N.$el.appendTo(q),N.val(g(V.val()||_)[3]),R=O.height(),F=O.width(),U=!1,H=!1,Y=!0,W=[0,0,.5],P.bind("mousedown",function(t){1==t.which&&(U=!0,e(document).bind("mouseup",r),n(t),t.preventDefault())}),P.bind("mousemove",function(e){U&&(n(e),e.preventDefault())}),e(N).on("change",function(){if(B)return void x();C.call(this,e(this).val()||_,N.val())}.bind(this)),e(N).on("afterChange",function(){e(this).focus()}.bind(this)),A.bind("mousedown",function(t){1==t.which&&(H=!0,e(document).bind("mouseup",w),v(t),t.preventDefault())}),e(document).bind("mousemove",function(e){H&&(v(e),e.preventDefault())}),e('<a class="tvcolorpicker-custom-button _tv-button">'+window.t("Custom color...")+"</a>").appendTo(q).bind("click",function(){var t,n=e(this).is(".active");n||k.css({minWidth:z.width()+"px",minHeight:z.height()+"px"}),e(this)[n?"removeClass":"addClass"]("active"),B=e(this).is(".active"),k.css({display:n?"none":"block"}),z.css({display:n?"block":"none"}),n?V.removeData("tvcolorpicker-custom-color"):(R=O.height(),F=O.width(),t=m(V.val()||_),W=f(t),D.css({left:~~(W[0]*F)+"px",top:~~((1-W[1])*R)+"px"}),I.css({top:~~((1-W[2])*R)+"px"}),L.css({backgroundColor:d(p(l(W[0],W[1],1)))}))}),q.append(e(E.call(this,b,{addClass:"tvcolorpicker-user" |
|||
})).addClass("tvcolorpicker-user-swatches")),e(document.body).append(q),S(V,q,t),q}function O(){e(".tvcolorpicker-popup").removeClass("opened").remove(),e(N).off("change"),e(N).off("afterChange"),e(D).data("tvcolorpicker",null),e(D).each(function(){var t,n=e(this).data("tvcolorpicker-custom-color");n&&(x(n)&&e(this).trigger("customcolorchange",[b]),e(this).data("tvcolorpicker-custom-color",null)),t=e(this).data("tvcolorpicker-previous-color"),t&&t!=e(this).val()&&e(this).trigger("change"),e(this).removeData("tvcolorpicker-previous-color")})}var N,D;return w=e.extend({},r.options,w||{}),D=this,w&&"customColors"in w&&n(w.customColors),this.each(function(){function n(){var e=t(a.val());k.call(a,e)}var r,o,i,a=e(this);a.val(t(a.val())),r=null,o=!1,a.addClass("tvcolorpicker-widget").attr("autocomplete","off").attr("readonly",!0),i=function(){a.data("tvcolorpicker")||(O.call(a),r=M.call(a,w),a.data("tvcolorpicker-custom-color",null),a.data("tvcolorpicker",r),a.data("tvcolorpicker-previous-color",a.val()),r.bind("mousedown click",function(t){e(t.target).parents().andSelf().is(r)&&(a.focus(),o=!0,setTimeout(function(){o=!1},0))}))},a.on("touchstart",i),a.focus(i),O.call(a),a.bind("blur",function(e){o?e.stopPropagation():O.call(a)}),a.change(function(e){n()}),n()})}var v,b,_;if(!e)throw Error("This program cannot be run in DOS mode");r.setCustomColors=n,e.fn.tvcolorpicker=r,v=10,b=[],_="rgb(14, 15, 16)",r.options={direction:"down",offset:0,drift:0}}(window.jQuery)},,function(e,t){function n(){throw Error("setTimeout has not been defined")}function r(){throw Error("clearTimeout has not been defined")}function o(e){if(l===setTimeout)return setTimeout(e,0);if((l===n||!l)&&setTimeout)return l=setTimeout,setTimeout(e,0);try{return l(e,0)}catch(t){try{return l.call(null,e,0)}catch(t){return l.call(this,e,0)}}}function i(e){if(f===clearTimeout)return clearTimeout(e);if((f===r||!f)&&clearTimeout)return f=clearTimeout,clearTimeout(e);try{return f(e)}catch(t){try{return f.call(null,e)}catch(t){return f.call(this,e)}}}function a(){d&&h&&(d=!1,h.length?p=h.concat(p):m=-1,p.length&&s())}function s(){var e,t;if(!d){for(e=o(a),d=!0,t=p.length;t;){for(h=p,p=[];++m<t;)h&&h[m].run();m=-1,t=p.length}h=null,d=!1,i(e)}}function u(e,t){this.fun=e,this.array=t}function c(){}var l,f,p,d,h,m,g=e.exports={};!function(){try{l="function"==typeof setTimeout?setTimeout:n}catch(e){l=n}try{f="function"==typeof clearTimeout?clearTimeout:r}catch(e){f=r}}(),p=[],d=!1,m=-1,g.nextTick=function(e){var t,n=Array(arguments.length-1);if(arguments.length>1)for(t=1;t<arguments.length;t++)n[t-1]=arguments[t];p.push(new u(e,n)),1!==p.length||d||o(s)},u.prototype.run=function(){this.fun.apply(null,this.array)},g.title="browser",g.browser=!0,g.env={},g.argv=[],g.version="",g.versions={},g.on=c,g.addListener=c,g.once=c,g.off=c,g.removeListener=c,g.removeAllListeners=c,g.emit=c,g.prependListener=c,g.prependOnceListener=c,g.listeners=function(e){return[]},g.binding=function(e){throw Error("process.binding is not supported")},g.cwd=function(){return"/"},g.chdir=function(e){ |
|||
throw Error("process.chdir is not supported")},g.umask=function(){return 0}},function(e,t,n){"use strict";var r=n(1009);e.exports=function(e){return r(e,!1)}},function(e,t){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t){"use strict";function n(e,t){return e+t.charAt(0).toUpperCase()+t.substring(1)}var r,o,i={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},a=["Webkit","ms","Moz","O"];Object.keys(i).forEach(function(e){a.forEach(function(t){i[n(t,e)]=i[e]})}),r={background:{backgroundAttachment:!0,backgroundColor:!0,backgroundImage:!0,backgroundPositionX:!0,backgroundPositionY:!0,backgroundRepeat:!0},backgroundPosition:{backgroundPositionX:!0,backgroundPositionY:!0},border:{borderWidth:!0,borderStyle:!0,borderColor:!0},borderBottom:{borderBottomWidth:!0,borderBottomStyle:!0,borderBottomColor:!0},borderLeft:{borderLeftWidth:!0,borderLeftStyle:!0,borderLeftColor:!0},borderRight:{borderRightWidth:!0,borderRightStyle:!0,borderRightColor:!0},borderTop:{borderTopWidth:!0,borderTopStyle:!0,borderTopColor:!0},font:{fontStyle:!0,fontVariant:!0,fontWeight:!0,fontSize:!0,lineHeight:!0,fontFamily:!0},outline:{outlineWidth:!0,outlineStyle:!0,outlineColor:!0}},o={isUnitlessNumber:i,shorthandPropertyExpansions:r},e.exports=o},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var o=n(25),i=n(120),a=(n(17),function(){function e(t){r(this,e),this._callbacks=null,this._contexts=null,this._arg=t}return e.prototype.enqueue=function(e,t){this._callbacks=this._callbacks||[],this._callbacks.push(e),this._contexts=this._contexts||[],this._contexts.push(t)},e.prototype.notifyAll=function(){var e,t=this._callbacks,n=this._contexts,r=this._arg;if(t&&n){for(t.length!==n.length&&o("24"),this._callbacks=null,this._contexts=null,e=0;e<t.length;e++)t[e].call(n[e],r);t.length=0,n.length=0}},e.prototype.checkpoint=function(){return this._callbacks?this._callbacks.length:0},e.prototype.rollback=function(e){this._callbacks&&this._contexts&&(this._callbacks.length=e,this._contexts.length=e)},e.prototype.reset=function(){this._callbacks=null,this._contexts=null},e.prototype.destructor=function(){this.reset()},e}());e.exports=i.addPoolingTo(a)},function(e,t,n){"use strict";function r(e){return!!c.hasOwnProperty(e)||!u.hasOwnProperty(e)&&(s.test(e)?(c[e]=!0,!0):(u[e]=!0,!1))}function o(e,t){ |
|||
return null==t||e.hasBooleanValue&&!t||e.hasNumericValue&&isNaN(t)||e.hasPositiveNumericValue&&t<1||e.hasOverloadedBooleanValue&&!1===t}var i=n(138),a=(n(32),n(75),n(1072)),s=(n(24),RegExp("^["+i.ATTRIBUTE_NAME_START_CHAR+"]["+i.ATTRIBUTE_NAME_CHAR+"]*$")),u={},c={},l={createMarkupForID:function(e){return i.ID_ATTRIBUTE_NAME+"="+a(e)},setAttributeForID:function(e,t){e.setAttribute(i.ID_ATTRIBUTE_NAME,t)},createMarkupForRoot:function(){return i.ROOT_ATTRIBUTE_NAME+'=""'},setAttributeForRoot:function(e){e.setAttribute(i.ROOT_ATTRIBUTE_NAME,"")},createMarkupForProperty:function(e,t){var n,r=i.properties.hasOwnProperty(e)?i.properties[e]:null;return r?o(r,t)?"":(n=r.attributeName,r.hasBooleanValue||r.hasOverloadedBooleanValue&&!0===t?n+'=""':n+"="+a(t)):i.isCustomAttribute(e)?null==t?"":e+"="+a(t):null},createMarkupForCustomAttribute:function(e,t){return r(e)&&null!=t?e+"="+a(t):""},setValueForProperty:function(e,t,n){var r,a,s,u=i.properties.hasOwnProperty(t)?i.properties[t]:null;if(u)if(r=u.mutationMethod)r(e,n);else{if(o(u,n))return void this.deleteValueForProperty(e,t);u.mustUseProperty?e[u.propertyName]=n:(a=u.attributeName,s=u.attributeNamespace,s?e.setAttributeNS(s,a,""+n):u.hasBooleanValue||u.hasOverloadedBooleanValue&&!0===n?e.setAttribute(a,""):e.setAttribute(a,""+n))}else if(i.isCustomAttribute(t))return void l.setValueForAttribute(e,t,n)},setValueForAttribute:function(e,t,n){if(r(t)){null==n?e.removeAttribute(t):e.setAttribute(t,""+n)}},deleteValueForAttribute:function(e,t){e.removeAttribute(t)},deleteValueForProperty:function(e,t){var n,r,o=i.properties.hasOwnProperty(t)?i.properties[t]:null;o?(n=o.mutationMethod,n?n(e,void 0):o.mustUseProperty?(r=o.propertyName,o.hasBooleanValue?e[r]=!1:e[r]=""):e.removeAttribute(o.attributeName)):i.isCustomAttribute(t)&&e.removeAttribute(t)}};e.exports=l},function(e,t){"use strict";var n={hasCachedChildNodes:1};e.exports=n},function(e,t,n){"use strict";function r(){var e,t;this._rootNodeID&&this._wrapperState.pendingUpdate&&(this._wrapperState.pendingUpdate=!1,e=this._currentElement.props,null!=(t=s.getValue(e))&&o(this,!!e.multiple,t))}function o(e,t,n){var r,o,i,a=u.getNodeFromInstance(e).options;if(t){for(r={},o=0;o<n.length;o++)r[""+n[o]]=!0;for(o=0;o<a.length;o++)i=r.hasOwnProperty(a[o].value),a[o].selected!==i&&(a[o].selected=i)}else{for(r=""+n,o=0;o<a.length;o++)if(a[o].value===r)return void(a[o].selected=!0);a.length&&(a[0].selected=!0)}}function i(e){var t=this._currentElement.props,n=s.executeOnChange(t,e);return this._rootNodeID&&(this._wrapperState.pendingUpdate=!0),c.asap(r,this),n}var a=n(30),s=n(294),u=n(32),c=n(87),l=(n(24),!1),f={getHostProps:function(e,t){return a({},t,{onChange:e._wrapperState.onChange,value:void 0})},mountWrapper:function(e,t){var n=s.getValue(t);e._wrapperState={pendingUpdate:!1,initialValue:null!=n?n:t.defaultValue,listeners:null,onChange:i.bind(e),wasMultiple:!!t.multiple},void 0===t.value||void 0===t.defaultValue||l||(l=!0)},getSelectValueContext:function(e){return e._wrapperState.initialValue},postUpdateWrapper:function(e){ |
|||
var t,n,r=e._currentElement.props;e._wrapperState.initialValue=void 0,t=e._wrapperState.wasMultiple,e._wrapperState.wasMultiple=!!r.multiple,n=s.getValue(r),null!=n?(e._wrapperState.pendingUpdate=!1,o(e,!!r.multiple,n)):t!==!!r.multiple&&(null!=r.defaultValue?o(e,!!r.multiple,r.defaultValue):o(e,!!r.multiple,r.multiple?[]:""))}};e.exports=f},function(e,t){"use strict";var n,r={injectEmptyComponentFactory:function(e){n=e}},o={create:function(e){return n(e)}};o.injection=r,e.exports=o},function(e,t){"use strict";var n={logTopLevelRenders:!1};e.exports=n},function(e,t,n){"use strict";function r(e){return s||a("111",e.type),new s(e)}function o(e){return new u(e)}function i(e){return e instanceof u}var a=n(25),s=(n(17),null),u=null,c={injectGenericComponentClass:function(e){s=e},injectTextComponentClass:function(e){u=e}},l={createInternalComponent:r,createInstanceForText:o,isTextComponent:i,injection:c};e.exports=l},function(e,t,n){"use strict";function r(e){return i(document.documentElement,e)}var o=n(1032),i=n(676),a=n(362),s=n(363),u={hasSelectionCapabilities:function(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&"text"===e.type||"textarea"===t||"true"===e.contentEditable)},getSelectionInformation:function(){var e=s();return{focusedElem:e,selectionRange:u.hasSelectionCapabilities(e)?u.getSelection(e):null}},restoreSelection:function(e){var t=s(),n=e.focusedElem,o=e.selectionRange;t!==n&&r(n)&&(u.hasSelectionCapabilities(n)&&u.setSelection(n,o),a(n))},getSelection:function(e){var t,n;return"selectionStart"in e?t={start:e.selectionStart,end:e.selectionEnd}:document.selection&&e.nodeName&&"input"===e.nodeName.toLowerCase()?(n=document.selection.createRange(),n.parentElement()===e&&(t={start:-n.moveStart("character",-e.value.length),end:-n.moveEnd("character",-e.value.length)})):t=o.getOffsets(e),t||{start:0,end:0}},setSelection:function(e,t){var n,r=t.start,i=t.end;void 0===i&&(i=r),"selectionStart"in e?(e.selectionStart=r,e.selectionEnd=Math.min(i,e.value.length)):document.selection&&e.nodeName&&"input"===e.nodeName.toLowerCase()?(n=e.createTextRange(),n.collapse(!0),n.moveStart("character",r),n.moveEnd("character",i-r),n.select()):o.setOffsets(e,t)}};e.exports=u},function(e,t,n){"use strict";function r(e,t){var n,r=Math.min(e.length,t.length);for(n=0;n<r;n++)if(e.charAt(n)!==t.charAt(n))return n;return e.length===t.length?-1:r}function o(e){return e?e.nodeType===I?e.documentElement:e.firstChild:null}function i(e){return e.getAttribute&&e.getAttribute(P)||""}function a(e,t,n,r,o){var i,a,s,u;x.logTopLevelRenders&&(a=e._currentElement.props.child,s=a.type,i="React mount: "+("string"==typeof s?s:s.displayName||s.name),console.time(i)),u=k.mountComponent(e,n,null,_(e,t),o,0),i&&console.timeEnd(i),e._renderedComponent._topLevelWrapper=e,d._mountImageIntoNode(u,t,e,r,n)}function s(e,t,n,r){var o=S.ReactReconcileTransaction.getPooled(!n&&w.useCreateElement);o.perform(a,null,e,t,o,n,r),S.ReactReconcileTransaction.release(o)}function u(e,t,n){for(k.unmountComponent(e,n), |
|||
t.nodeType===I&&(t=t.documentElement);t.lastChild;)t.removeChild(t.lastChild)}function c(e){var t,n=o(e);if(n)return!(!(t=b.getInstanceFromNode(n))||!t._hostParent)}function l(e){return!(!e||e.nodeType!==L&&e.nodeType!==I&&e.nodeType!==j)}function f(e){var t=o(e),n=t&&b.getInstanceFromNode(t);return n&&!n._hostParent?n:null}function p(e){var t=f(e);return t?t._hostContainerInfo._topLevelWrapper:null}var d,h=n(25),m=n(137),g=n(138),y=n(140),v=n(221),b=(n(92),n(32)),_=n(1026),w=n(1028),x=n(445),C=n(167),T=(n(75),n(1042)),k=n(139),E=n(297),S=n(87),M=n(202),O=n(456),N=(n(17),n(225)),D=n(303),P=(n(24),g.ID_ATTRIBUTE_NAME),A=g.ROOT_ATTRIBUTE_NAME,L=1,I=9,j=11,R={},F=1,U=function(){this.rootID=F++};U.prototype.isReactComponent={},U.prototype.render=function(){return this.props.child},U.isReactTopLevelWrapper=!0,d={TopLevelWrapper:U,_instancesByReactRootID:R,scrollMonitor:function(e,t){t()},_updateRootComponent:function(e,t,n,r,o){return d.scrollMonitor(r,function(){E.enqueueElementInternal(e,t,n),o&&E.enqueueCallbackInternal(e,o)}),e},_renderNewRootComponent:function(e,t,n,r){var o,i;return l(t)||h("37"),v.ensureScrollValueMonitoring(),o=O(e,!1),S.batchedUpdates(s,o,t,n,r),i=o._instance.rootID,R[i]=o,o},renderSubtreeIntoContainer:function(e,t,n,r){return null!=e&&C.has(e)||h("38"),d._renderSubtreeIntoContainer(e,t,n,r)},_renderSubtreeIntoContainer:function(e,t,n,r){var a,s,u,l,f,m,g,v,b,_,w,x,T;if(E.validateCallback(r,"ReactDOM.render"),y.isValidElement(t)||h("39","string"==typeof t?" Instead of passing a string like 'div', pass React.createElement('div') or <div />.":"function"==typeof t?" Instead of passing a class like Foo, pass React.createElement(Foo) or <Foo />.":null!=t&&void 0!==t.props?" This may be caused by unintentionally loading two independent copies of React.":""),a=y.createElement(U,{child:t}),e?(u=C.get(e),s=u._processChildContext(u._context)):s=M,l=p(n)){if(f=l._currentElement,m=f.props.child,D(m,t))return g=l._renderedComponent.getPublicInstance(),v=r&&function(){r.call(g)},d._updateRootComponent(l,a,s,n,v),g;d.unmountComponentAtNode(n)}return b=o(n),_=b&&!!i(b),w=c(n),x=_&&!l&&!w,T=d._renderNewRootComponent(a,n,x,s)._renderedComponent.getPublicInstance(),r&&r.call(T),T},render:function(e,t,n){return d._renderSubtreeIntoContainer(null,e,t,n)},unmountComponentAtNode:function(e){var t;return l(e)||h("40"),(t=p(e))?(delete R[t._instance.rootID],S.batchedUpdates(u,t,e,!1),!0):(c(e),1===e.nodeType&&e.hasAttribute(A),!1)},_mountImageIntoNode:function(e,t,n,i,a){var s,u,c,f,p,d;if(l(t)||h("41"),i){if(s=o(t),T.canReuseMarkup(e,s))return void b.precacheNode(n,s);u=s.getAttribute(T.CHECKSUM_ATTR_NAME),s.removeAttribute(T.CHECKSUM_ATTR_NAME),c=s.outerHTML,s.setAttribute(T.CHECKSUM_ATTR_NAME,u),f=e,p=r(f,c),d=" (client) "+f.substring(p-20,p+20)+"\n (server) "+c.substring(p-20,p+20),t.nodeType===I&&h("42",d)}if(t.nodeType===I&&h("43"),a.useCreateElement){for(;t.lastChild;)t.removeChild(t.lastChild);m.insertTreeBefore(t,e,null)}else N(t,e),b.precacheNode(n,t.firstChild)}},e.exports=d},function(e,t,n){"use strict" |
|||
;var r=n(25),o=n(140),i=(n(17),{HOST:0,COMPOSITE:1,EMPTY:2,getType:function(e){return null===e||!1===e?i.EMPTY:o.isValidElement(e)?"function"==typeof e.type?i.COMPOSITE:i.HOST:void r("26",e)}});e.exports=i},function(e,t){"use strict";var n={currentScrollLeft:0,currentScrollTop:0,refreshScrollValues:function(e){n.currentScrollLeft=e.x,n.currentScrollTop=e.y}};e.exports=n},function(e,t,n){"use strict";function r(e,t){return null==t&&o("30"),null==e?t:Array.isArray(e)?Array.isArray(t)?(e.push.apply(e,t),e):(e.push(t),e):Array.isArray(t)?[e].concat(t):[e,t]}var o=n(25);n(17);e.exports=r},function(e,t){"use strict";function n(e,t,n){Array.isArray(e)?e.forEach(t,n):e&&t.call(n,e)}e.exports=n},function(e,t,n){"use strict";function r(e){for(var t;(t=e._renderedNodeType)===o.COMPOSITE;)e=e._renderedComponent;return t===o.HOST?e._renderedComponent:t===o.EMPTY?null:void 0}var o=n(449);e.exports=r},function(e,t,n){"use strict";function r(){return!i&&o.canUseDOM&&(i="textContent"in document.documentElement?"textContent":"innerText"),i}var o=n(60),i=null;e.exports=r},function(e,t,n){"use strict";function r(e){var t=e.type,n=e.nodeName;return n&&"input"===n.toLowerCase()&&("checkbox"===t||"radio"===t)}function o(e){return e._wrapperState.valueTracker}function i(e,t){e._wrapperState.valueTracker=t}function a(e){delete e._wrapperState.valueTracker}function s(e){var t;return e&&(t=r(e)?""+e.checked:e.value),t}var u=n(32),c={_getTrackerFromNode:function(e){return o(u.getInstanceFromNode(e))},track:function(e){var t,n,s,c;o(e)||(t=u.getNodeFromInstance(e),n=r(t)?"checked":"value",s=Object.getOwnPropertyDescriptor(t.constructor.prototype,n),c=""+t[n],t.hasOwnProperty(n)||"function"!=typeof s.get||"function"!=typeof s.set||(Object.defineProperty(t,n,{enumerable:s.enumerable,configurable:!0,get:function(){return s.get.call(this)},set:function(e){c=""+e,s.set.call(this,e)}}),i(e,{getValue:function(){return c},setValue:function(e){c=""+e},stopTracking:function(){a(e),delete t[n]}})))},updateValueIfChanged:function(e){var t,n,r;return!!e&&((t=o(e))?(n=t.getValue(),(r=s(u.getNodeFromInstance(e)))!==n&&(t.setValue(r),!0)):(c.track(e),!0))},stopTracking:function(e){var t=o(e);t&&t.stopTracking()}};e.exports=c},function(e,t,n){"use strict";function r(e){if(e){var t=e.getName();if(t)return" Check the render method of `"+t+"`."}return""}function o(e){return"function"==typeof e&&void 0!==e.prototype&&"function"==typeof e.prototype.mountComponent&&"function"==typeof e.prototype.receiveComponent}function i(e,t){var n,s,u,p;return null===e||!1===e?n=c.create(i):"object"==typeof e?(s=e,u=s.type,"function"!=typeof u&&"string"!=typeof u&&(p="",p+=r(s._owner),a("130",null==u?u:typeof u,p)),"string"==typeof s.type?n=l.createInternalComponent(s):o(s.type)?(n=new s.type(s),n.getHostNode||(n.getHostNode=n.getNativeNode)):n=new f(s)):"string"==typeof e||"number"==typeof e?n=l.createInstanceForText(e):a("131",typeof e),n._mountIndex=0,n._mountImage=null,n}var a=n(25),s=n(30),u=n(1023),c=n(444),l=n(446),f=(n(1086),n(17),n(24),function(e){this.construct(e)}) |
|||
;s(f.prototype,u,{_instantiateReactComponent:i}),e.exports=i},function(e,t){"use strict";function n(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!r[e.type]:"textarea"===t}var r={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};e.exports=n},function(e,t,n){"use strict";var r=n(60),o=n(224),i=n(225),a=function(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t};r.canUseDOM&&("textContent"in document.documentElement||(a=function(e,t){if(3===e.nodeType)return void(e.nodeValue=t);i(e,o(t))})),e.exports=a},function(e,t,n){"use strict";function r(e,t){return e&&"object"==typeof e&&null!=e.key?c.escape(e.key):t.toString(36)}function o(e,t,n,i){var p,d,h,m,g,y,v,b,_,w,x,C,T=typeof e;if("undefined"!==T&&"boolean"!==T||(e=null),null===e||"string"===T||"number"===T||"object"===T&&e.$$typeof===s)return n(i,e,""===t?l+r(e,0):t),1;if(h=0,m=""===t?l:t+f,Array.isArray(e))for(g=0;g<e.length;g++)p=e[g],d=m+r(p,g),h+=o(p,d,n,i);else if(y=u(e))if(v=y.call(e),y!==e.entries)for(_=0;!(b=v.next()).done;)p=b.value,d=m+r(p,_++),h+=o(p,d,n,i);else for(;!(b=v.next()).done;)(w=b.value)&&(p=w[1],d=m+c.escape(w[0])+f+r(p,0),h+=o(p,d,n,i));else"object"===T&&(x="",C=e+"",a("31","[object Object]"===C?"object with keys {"+Object.keys(e).join(", ")+"}":C,x));return h}function i(e,t,n){return null==e?0:o(e,"",t,n)}var a=n(25),s=(n(92),n(1038)),u=n(1069),c=(n(17),n(293)),l=(n(24),"."),f=":";e.exports=i},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var s,u,c,l,f,p,d,h,m,g,y;t.__esModule=!0,s=Object.assign||function(e){var t,n,r;for(t=1;t<arguments.length;t++){n=arguments[t];for(r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},u=n(515),c=r(u),l=n(2),f=r(l),p=n(86),d=r(p),h=n(1351),r(h),m=n(1077),d.default.any,d.default.func,d.default.node,g={component:"span",childFactory:function(e){return e}},y=function(e){function t(n,r){o(this,t);var a=i(this,e.call(this,n,r));return a.performAppear=function(e,t){a.currentlyTransitioningKeys[e]=!0,t.componentWillAppear?t.componentWillAppear(a._handleDoneAppearing.bind(a,e,t)):a._handleDoneAppearing(e,t)},a._handleDoneAppearing=function(e,t){t.componentDidAppear&&t.componentDidAppear(),delete a.currentlyTransitioningKeys[e];var n=(0,m.getChildMapping)(a.props.children);n&&n.hasOwnProperty(e)||a.performLeave(e,t)}, |
|||
a.performEnter=function(e,t){a.currentlyTransitioningKeys[e]=!0,t.componentWillEnter?t.componentWillEnter(a._handleDoneEntering.bind(a,e,t)):a._handleDoneEntering(e,t)},a._handleDoneEntering=function(e,t){t.componentDidEnter&&t.componentDidEnter(),delete a.currentlyTransitioningKeys[e];var n=(0,m.getChildMapping)(a.props.children);n&&n.hasOwnProperty(e)||a.performLeave(e,t)},a.performLeave=function(e,t){a.currentlyTransitioningKeys[e]=!0,t.componentWillLeave?t.componentWillLeave(a._handleDoneLeaving.bind(a,e,t)):a._handleDoneLeaving(e,t)},a._handleDoneLeaving=function(e,t){t.componentDidLeave&&t.componentDidLeave(),delete a.currentlyTransitioningKeys[e];var n=(0,m.getChildMapping)(a.props.children);n&&n.hasOwnProperty(e)?a.keysToEnter.push(e):a.setState(function(t){var n=s({},t.children);return delete n[e],{children:n}})},a.childRefs=Object.create(null),a.state={children:(0,m.getChildMapping)(n.children)},a}return a(t,e),t.prototype.componentWillMount=function(){this.currentlyTransitioningKeys={},this.keysToEnter=[],this.keysToLeave=[]},t.prototype.componentDidMount=function(){var e,t=this.state.children;for(e in t)t[e]&&this.performAppear(e,this.childRefs[e])},t.prototype.componentWillReceiveProps=function(e){var t,n,r,o,i=(0,m.getChildMapping)(e.children),a=this.state.children;this.setState({children:(0,m.mergeChildMappings)(a,i)});for(t in i)n=a&&a.hasOwnProperty(t),!i[t]||n||this.currentlyTransitioningKeys[t]||this.keysToEnter.push(t);for(r in a)o=i&&i.hasOwnProperty(r),!a[r]||o||this.currentlyTransitioningKeys[r]||this.keysToLeave.push(r)},t.prototype.componentDidUpdate=function(){var e,t=this,n=this.keysToEnter;this.keysToEnter=[],n.forEach(function(e){return t.performEnter(e,t.childRefs[e])}),e=this.keysToLeave,this.keysToLeave=[],e.forEach(function(e){return t.performLeave(e,t.childRefs[e])})},t.prototype.render=function(){var e,t,n=this,r=[],o=function(e){var t,o,i,a=n.state.children[e];a&&(t="string"!=typeof a.ref,o=n.props.childFactory(a),i=function(t){n.childRefs[e]=t},o===a&&t&&(i=(0,c.default)(a.ref,i)),r.push(f.default.cloneElement(o,{key:e,ref:i})))};for(e in this.state.children)o(e);return t=s({},this.props),delete t.transitionLeave,delete t.transitionName,delete t.transitionAppear,delete t.transitionEnter,delete t.childFactory,delete t.transitionLeaveTimeout,delete t.transitionEnterTimeout,delete t.transitionAppearTimeout,delete t.component,f.default.createElement(this.props.component,t,r)},t}(f.default.Component),y.displayName="TransitionGroup",y.propTypes={},y.defaultProps=g,t.default=y,e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e){var t="transition"+e+"Timeout",n="transition"+e;return function(e){if(e[n]){if(null==e[t])return Error(t+" wasn't supplied to CSSTransitionGroup: this can cause unreliable animations and won't be supported in a future version of React. See https://fb.me/react-animation-transition-group-timeout for more information.");if("number"!=typeof e[t])return Error(t+" must be a number (in milliseconds)")} |
|||
return null}}var i,a,s;t.__esModule=!0,t.nameShape=void 0,t.transitionTimeout=o,i=n(2),r(i),a=n(86),s=r(a),t.nameShape=s.default.oneOfType([s.default.string,s.default.shape({enter:s.default.string,leave:s.default.string,active:s.default.string}),s.default.shape({enter:s.default.string,enterActive:s.default.string,leave:s.default.string,leaveActive:s.default.string,appear:s.default.string,appearActive:s.default.string})])},function(e,t,n){"use strict";function r(e,t,n){this.props=e,this.context=t,this.refs=c,this.updater=n||u}function o(e,t,n){this.props=e,this.context=t,this.refs=c,this.updater=n||u}function i(){}var a=n(169),s=n(30),u=n(465),c=(n(466),n(202));n(17),n(1087);r.prototype.isReactComponent={},r.prototype.setState=function(e,t){"object"!=typeof e&&"function"!=typeof e&&null!=e&&a("85"),this.updater.enqueueSetState(this,e),t&&this.updater.enqueueCallback(this,t,"setState")},r.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this),e&&this.updater.enqueueCallback(this,e,"forceUpdate")},i.prototype=r.prototype,o.prototype=new i,o.prototype.constructor=o,s(o.prototype,r.prototype),o.prototype.isPureReactComponent=!0,e.exports={Component:r,PureComponent:o}},function(e,t,n){"use strict";function r(e){var t,n=Function.prototype.toString,r=Object.prototype.hasOwnProperty,o=RegExp("^"+n.call(r).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");try{return t=n.call(e),o.test(t)}catch(e){return!1}}function o(e){var t,n=c(e);n&&(t=n.childIDs,l(e),t.forEach(o))}function i(e,t,n){return"\n in "+(e||"Unknown")+(t?" (at "+t.fileName.replace(/^.*[\\\/]/,"")+":"+t.lineNumber+")":n?" (created by "+n+")":"")}function a(e){return null==e?"#empty":"string"==typeof e||"number"==typeof e?"#text":"string"==typeof e.type?e.type:e.type.displayName||e.type.name||"Unknown"}function s(e){var t,n=x.getDisplayName(e),r=x.getElement(e),o=x.getOwnerID(e);return o&&(t=x.getDisplayName(o)),i(n,r&&r._source,t)}var u,c,l,f,p,d,h,m,g,y,v,b,_,w,x,C=n(169),T=n(92);n(17),n(24);"function"==typeof Array.from&&"function"==typeof Map&&r(Map)&&null!=Map.prototype&&"function"==typeof Map.prototype.keys&&r(Map.prototype.keys)&&"function"==typeof Set&&r(Set)&&null!=Set.prototype&&"function"==typeof Set.prototype.keys&&r(Set.prototype.keys)?(m=new Map,g=new Set,u=function(e,t){m.set(e,t)},c=function(e){return m.get(e)},l=function(e){m.delete(e)},f=function(){return Array.from(m.keys())},p=function(e){g.add(e)},d=function(e){g.delete(e)},h=function(){return Array.from(g.keys())}):(y={},v={},b=function(e){return"."+e},_=function(e){return parseInt(e.substr(1),10)},u=function(e,t){var n=b(e);y[n]=t},c=function(e){var t=b(e);return y[t]},l=function(e){var t=b(e);delete y[t]},f=function(){return Object.keys(y).map(_)},p=function(e){var t=b(e);v[t]=!0},d=function(e){var t=b(e);delete v[t]},h=function(){return Object.keys(v).map(_)}),w=[],x={onSetChildren:function(e,t){var n,r,o,i=c(e);for(i||C("144"),i.childIDs=t,n=0;n<t.length;n++)r=t[n],o=c(r),o||C("140"), |
|||
null==o.childIDs&&"object"==typeof o.element&&null!=o.element&&C("141"),o.isMounted||C("71"),null==o.parentID&&(o.parentID=e),o.parentID!==e&&C("142",r,o.parentID,e)},onBeforeMountComponent:function(e,t,n){u(e,{element:t,parentID:n,text:null,childIDs:[],isMounted:!1,updateCount:0})},onBeforeUpdateComponent:function(e,t){var n=c(e);n&&n.isMounted&&(n.element=t)},onMountComponent:function(e){var t=c(e);t||C("144"),t.isMounted=!0,0===t.parentID&&p(e)},onUpdateComponent:function(e){var t=c(e);t&&t.isMounted&&t.updateCount++},onUnmountComponent:function(e){var t=c(e);t&&(t.isMounted=!1,0===t.parentID&&d(e)),w.push(e)},purgeUnmountedComponents:function(){var e,t;if(!x._preventPurging){for(e=0;e<w.length;e++)t=w[e],o(t);w.length=0}},isMounted:function(e){var t=c(e);return!!t&&t.isMounted},getCurrentStackAddendum:function(e){var t,n,r,o,s="";return e&&(t=a(e),n=e._owner,s+=i(t,e._source,n&&n.getName())),r=T.current,o=r&&r._debugID,s+=x.getStackAddendumByID(o)},getStackAddendumByID:function(e){for(var t="";e;)t+=s(e),e=x.getParentID(e);return t},getChildIDs:function(e){var t=c(e);return t?t.childIDs:[]},getDisplayName:function(e){var t=x.getElement(e);return t?a(t):null},getElement:function(e){var t=c(e);return t?t.element:null},getOwnerID:function(e){var t=x.getElement(e);return t&&t._owner?t._owner._debugID:null},getParentID:function(e){var t=c(e);return t?t.parentID:null},getSource:function(e){var t=c(e),n=t?t.element:null;return null!=n?n._source:null},getText:function(e){var t=x.getElement(e);return"string"==typeof t?t:"number"==typeof t?""+t:null},getUpdateCount:function(e){var t=c(e);return t?t.updateCount:0},getRootIDs:h,getRegisteredIDs:f,pushNonStandardWarningStack:function(e,t){var n,r,o,i,a,s,u,c;if("function"==typeof console.reactStack){n=[],r=T.current,o=r&&r._debugID;try{for(e&&n.push({name:o?x.getDisplayName(o):null,fileName:t?t.fileName:null,lineNumber:t?t.lineNumber:null});o;)i=x.getElement(o),a=x.getParentID(o),s=x.getOwnerID(o),u=s?x.getDisplayName(s):null,c=i&&i._source,n.push({name:u,fileName:c?c.fileName:null,lineNumber:c?c.lineNumber:null}),o=a}catch(e){}console.reactStack(n)}},popNonStandardWarningStack:function(){"function"==typeof console.reactStackEnd&&console.reactStackEnd()}},e.exports=x},function(e,t){"use strict";var n="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;e.exports=n},function(e,t,n){"use strict";function r(e,t){}var o=(n(24),{isMounted:function(e){return!1},enqueueCallback:function(e,t){},enqueueForceUpdate:function(e){r(e,"forceUpdate")},enqueueReplaceState:function(e,t){r(e,"replaceState")},enqueueSetState:function(e,t){r(e,"setState")}});e.exports=o},function(e,t,n){"use strict";var r=!1;e.exports=r},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t){e.exports=function(){var e,t=arguments.length,n=[];for(e=0;e<t;e++)n[e]=arguments[e];if(n=n.filter(function(e){return null!=e}),0!==n.length)return 1===n.length?n[0]:n.reduce(function(e,t){return function(){e.apply(this,arguments),t.apply(this,arguments)}})}},,function(e,t,n){var r=n(111) |
|||
;e.exports=function(e,t){if("number"!=typeof e&&"Number"!=r(e))throw TypeError(t);return+e}},function(e,t,n){"use strict";var r=n(130),o=n(198),i=n(89);e.exports=[].copyWithin||function(e,t){var n=r(this),a=i(n.length),s=o(e,a),u=o(t,a),c=arguments.length>2?arguments[2]:void 0,l=Math.min((void 0===c?a:o(c,a))-u,a-s),f=1;for(u<s&&s<u+l&&(f=-1,u+=l-1,s+=l-1);l-- >0;)u in n?n[s]=n[u]:delete n[s],s+=f,u+=f;return n}},function(e,t,n){"use strict";var r=n(130),o=n(198),i=n(89);e.exports=function(e){for(var t=r(this),n=i(t.length),a=arguments.length,s=o(a>1?arguments[1]:void 0,n),u=a>2?arguments[2]:void 0,c=void 0===u?n:o(u,n);c>s;)t[s++]=e;return t}},function(e,t,n){var r=n(50),o=n(345),i=n(39)("species");e.exports=function(e){var t;return o(e)&&(t=e.constructor,"function"!=typeof t||t!==Array&&!o(t.prototype)||(t=void 0),r(t)&&null===(t=t[i])&&(t=void 0)),void 0===t?Array:t}},function(e,t,n){var r=n(520);e.exports=function(e,t){return new(r(e))(t)}},function(e,t,n){"use strict";var r=n(124),o=n(50),i=n(343),a=[].slice,s={},u=function(e,t,n){if(!(t in s)){for(var r=[],o=0;o<t;o++)r[o]="a["+o+"]";s[t]=Function("F,a","return new F("+r.join(",")+")")}return s[t](e,n)};e.exports=Function.bind||function(e){var t=r(this),n=a.call(arguments,1),s=function(){var r=n.concat(a.call(arguments));return this instanceof s?u(t,r.length,r):i(t,r,e)};return o(t.prototype)&&(s.prototype=t.prototype),s}},function(e,t,n){"use strict";var r=n(29),o=n(151),i="number";e.exports=function(e){if("string"!==e&&e!==i&&"default"!==e)throw TypeError("Incorrect hint");return o(r(this),e!=i)}},function(e,t,n){var r=n(128),o=n(197),i=n(149);e.exports=function(e){var t,n,a,s,u=r(e),c=o.f;if(c)for(t=c(e),n=i.f,a=0;t.length>a;)n.call(e,s=t[a++])&&u.push(s);return u}},function(e,t,n){"use strict";var r=n(29);e.exports=function(){var e=r(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t}},function(e,t,n){var r=n(50),o=n(249).set;e.exports=function(e,t,n){var i,a=t.constructor;return a!==n&&"function"==typeof a&&(i=a.prototype)!==n.prototype&&r(i)&&o&&o(e,i),e}},function(e,t,n){var r=n(50),o=n(111),i=n(39)("match");e.exports=function(e){var t;return r(e)&&(void 0!==(t=e[i])?!!t:"RegExp"==o(e))}},function(e,t,n){var r=n(128),o=n(88);e.exports=function(e,t){for(var n,i=o(e),a=r(i),s=a.length,u=0;s>u;)if(i[n=a[u++]]===t)return n}},function(e,t,n){var r=n(35),o=n(355).set,i=r.MutationObserver||r.WebKitMutationObserver,a=r.process,s=r.Promise,u="process"==n(111)(a);e.exports=function(){var e,t,n,c,l,f,p=function(){var r,o;for(u&&(r=a.domain)&&r.exit();e;){o=e.fn,e=e.next;try{o()}catch(r){throw e?n():t=void 0,r}}t=void 0,r&&r.enter()};return u?n=function(){a.nextTick(p)}:i?(c=!0,l=document.createTextNode(""),new i(p).observe(l,{characterData:!0}),n=function(){l.data=c=!c}):s&&s.resolve?(f=s.resolve(),n=function(){f.then(p)}):n=function(){o.call(r,p)},function(r){var o={fn:r,next:void 0};t&&(t.next=o),e||(e=o,n()),t=o}}},function(e,t,n){"use strict" |
|||
;var r=n(128),o=n(197),i=n(149),a=n(130),s=n(241),u=Object.assign;e.exports=!u||n(58)(function(){var e={},t={},n=Symbol(),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach(function(e){t[e]=e}),7!=u({},e)[n]||Object.keys(u({},t)).join("")!=r})?function(e,t){for(var n,u,c,l,f,p=a(e),d=arguments.length,h=1,m=o.f,g=i.f;d>h;)for(n=s(arguments[h++]),u=m?r(n).concat(m(n)):r(n),c=u.length,l=0;c>l;)g.call(n,f=u[l++])&&(p[f]=n[f]);return p}:u},function(e,t,n){var r=n(59),o=n(29),i=n(128);e.exports=n(79)?Object.defineProperties:function(e,t){o(e);for(var n,a=i(t),s=a.length,u=0;s>u;)r.f(e,n=a[u++],t[n]);return e}},function(e,t,n){var r=n(88),o=n(247).f,i={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],s=function(e){try{return o(e)}catch(e){return a.slice()}};e.exports.f=function(e){return a&&"[object Window]"==i.call(e)?s(e):o(r(e))}},function(e,t,n){var r=n(247),o=n(197),i=n(29),a=n(35).Reflect;e.exports=a&&a.ownKeys||function(e){var t=r.f(i(e)),n=o.f;return n?t.concat(n(e)):t}},function(e,t,n){var r=n(35).parseFloat,o=n(354).trim;e.exports=1/r(n(254)+"-0")!=-1/0?function(e){var t=o(e+"",3),n=r(t);return 0===n&&"-"==t.charAt(0)?-0:n}:r},function(e,t,n){var r=n(35).parseInt,o=n(354).trim,i=n(254),a=/^[\-+]?0[xX]/;e.exports=8!==r(i+"08")||22!==r(i+"0x16")?function(e,t){var n=o(e+"",3);return r(n,t>>>0||(a.test(n)?16:10))}:r},function(e,t){e.exports=Object.is||function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}},function(e,t,n){var r=n(29),o=n(124),i=n(39)("species");e.exports=function(e,t){var n,a=r(e).constructor;return void 0===a||void 0==(n=r(a)[i])?t:o(n)}},function(e,t,n){"use strict";var r=n(199),o=n(112);e.exports=function(e){var t=o(this)+"",n="",i=r(e);if(i<0||i==1/0)throw RangeError("Count can't be negative");for(;i>0;(i>>>=1)&&(t+=t))1&i&&(n+=t);return n}},function(e,t,n){var r=n(35),o=n(126),i=n(195),a=n(356),s=n(59).f;e.exports=function(e){var t=o.Symbol||(o.Symbol=i?{}:r.Symbol||{});"_"==e.charAt(0)||e in t||s(t,e,{value:a.f(e)})}},function(e,t,n){var r=n(6);r(r.P,"Array",{copyWithin:n(518)}),n(125)("copyWithin")},function(e,t,n){var r=n(6);r(r.P,"Array",{fill:n(519)}),n(125)("fill")},function(e,t,n){"use strict";var r=n(6),o=n(336)(6),i="findIndex",a=!0;i in[]&&Array(1)[i](function(){a=!1}),r(r.P+r.F*a,"Array",{findIndex:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}}),n(125)(i)},function(e,t,n){"use strict";var r=n(6),o=n(336)(5),i="find",a=!0;i in[]&&Array(1)[i](function(){a=!1}),r(r.P+r.F*a,"Array",{find:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}}),n(125)(i)},function(e,t,n){"use strict";var r=n(99),o=n(6),i=n(130),a=n(347),s=n(344),u=n(89),c=n(340),l=n(357);o(o.S+o.F*!n(243)(function(e){Array.from(e)}),"Array",{from:function(e){var t,n,o,f,p=i(e),d="function"==typeof this?this:Array,h=arguments.length,m=h>1?arguments[1]:void 0,g=void 0!==m,y=0,v=l(p);if(g&&(m=r(m,h>2?arguments[2]:void 0,2)),void 0==v||d==Array&&s(v))for(t=u(p.length), |
|||
n=new d(t);t>y;y++)c(n,y,g?m(p[y],y):p[y]);else for(f=v.call(p),n=new d;!(o=f.next()).done;y++)c(n,y,g?a(f,m,[o.value,y],!0):o.value);return n.length=y,n}})},function(e,t,n){"use strict";var r=n(125),o=n(349),i=n(194),a=n(88);e.exports=n(242)(Array,"Array",function(e,t){this._t=a(e),this._i=0,this._k=t},function(){var e=this._t,t=this._k,n=this._i++;return!e||n>=e.length?(this._t=void 0,o(1)):"keys"==t?o(0,n):"values"==t?o(0,e[n]):o(0,[n,e[n]])},"values"),i.Arguments=i.Array,r("keys"),r("values"),r("entries")},function(e,t,n){"use strict";var r=n(6),o=n(340);r(r.S+r.F*n(58)(function(){function e(){}return!(Array.of.call(e)instanceof e)}),"Array",{of:function(){for(var e=0,t=arguments.length,n=new("function"==typeof this?this:Array)(t);t>e;)o(n,e,arguments[e++]);return n.length=t,n}})},function(e,t,n){n(250)("Array")},function(e,t,n){var r=n(39)("toPrimitive"),o=Date.prototype;r in o||n(113)(o,r,n(523))},function(e,t,n){var r=Date.prototype,o="Invalid Date",i="toString",a=r[i],s=r.getTime;new Date(NaN)+""!=o&&n(129)(r,i,function(){var e=s.call(this);return e===e?a.call(this):o})},function(e,t,n){"use strict";var r=n(50),o=n(148),i=n(39)("hasInstance"),a=Function.prototype;i in a||n(59).f(a,i,{value:function(e){if("function"!=typeof this||!r(e))return!1;if(!r(this.prototype))return e instanceof this;for(;e=o(e);)if(this.prototype===e)return!0;return!1}})},function(e,t,n){var r=n(59).f,o=n(114),i=n(72),a=Function.prototype,s=/^\s*function ([^ (]*)/,u="name",c=Object.isExtensible||function(){return!0};u in a||n(79)&&r(a,u,{configurable:!0,get:function(){try{var e=this,t=(""+e).match(s)[1];return i(e,u)||!c(e)||r(e,u,o(5,t)),t}catch(e){return""}}})},function(e,t,n){"use strict";var r=n(338);e.exports=n(339)("Map",function(e){return function(){return e(this,arguments.length>0?arguments[0]:void 0)}},{get:function(e){var t=r.getEntry(this,e);return t&&t.v},set:function(e,t){return r.def(this,0===e?0:e,t)}},r,!0)},function(e,t,n){var r=n(6),o=n(350),i=Math.sqrt,a=Math.acosh;r(r.S+r.F*!(a&&710==Math.floor(a(Number.MAX_VALUE))&&a(1/0)==1/0),"Math",{acosh:function(e){return(e=+e)<1?NaN:e>94906265.62425156?Math.log(e)+Math.LN2:o(e-1+i(e-1)*i(e+1))}})},function(e,t,n){function r(e){return isFinite(e=+e)&&0!=e?e<0?-r(-e):Math.log(e+Math.sqrt(e*e+1)):e}var o=n(6),i=Math.asinh;o(o.S+o.F*!(i&&1/i(0)>0),"Math",{asinh:r})},function(e,t,n){var r=n(6),o=Math.atanh;r(r.S+r.F*!(o&&1/o(-0)<0),"Math",{atanh:function(e){return 0==(e=+e)?e:Math.log((1+e)/(1-e))/2}})},function(e,t,n){var r=n(6),o=n(245);r(r.S,"Math",{cbrt:function(e){return o(e=+e)*Math.pow(Math.abs(e),1/3)}})},function(e,t,n){var r=n(6);r(r.S,"Math",{clz32:function(e){return(e>>>=0)?31-Math.floor(Math.log(e+.5)*Math.LOG2E):32}})},function(e,t,n){var r=n(6),o=Math.exp;r(r.S,"Math",{cosh:function(e){return(o(e=+e)+o(-e))/2}})},function(e,t,n){var r=n(6),o=n(244);r(r.S+r.F*(o!=Math.expm1),"Math",{expm1:o})},function(e,t,n){var r=n(6),o=n(245),i=Math.pow,a=i(2,-52),s=i(2,-23),u=i(2,127)*(2-s),c=i(2,-126),l=function(e){return e+1/a-1/a};r(r.S,"Math",{fround:function(e){ |
|||
var t,n,r=Math.abs(e),i=o(e);return r<c?i*l(r/c/s)*c*s:(t=(1+s/a)*r,n=t-(t-r),n>u||n!=n?i*(1/0):i*n)}})},function(e,t,n){var r=n(6),o=Math.abs;r(r.S,"Math",{hypot:function(e,t){for(var n,r,i=0,a=0,s=arguments.length,u=0;a<s;)n=o(arguments[a++]),u<n?(r=u/n,i=i*r*r+1,u=n):n>0?(r=n/u,i+=r*r):i+=n;return u===1/0?1/0:u*Math.sqrt(i)}})},function(e,t,n){var r=n(6),o=Math.imul;r(r.S+r.F*n(58)(function(){return-5!=o(4294967295,5)||2!=o.length}),"Math",{imul:function(e,t){var n=65535,r=+e,o=+t,i=n&r,a=n&o;return 0|i*a+((n&r>>>16)*a+i*(n&o>>>16)<<16>>>0)}})},function(e,t,n){var r=n(6);r(r.S,"Math",{log10:function(e){return Math.log(e)/Math.LN10}})},function(e,t,n){var r=n(6);r(r.S,"Math",{log1p:n(350)})},function(e,t,n){var r=n(6);r(r.S,"Math",{log2:function(e){return Math.log(e)/Math.LN2}})},function(e,t,n){var r=n(6);r(r.S,"Math",{sign:n(245)})},function(e,t,n){var r=n(6),o=n(244),i=Math.exp;r(r.S+r.F*n(58)(function(){return-2e-17!=!Math.sinh(-2e-17)}),"Math",{sinh:function(e){return Math.abs(e=+e)<1?(o(e)-o(-e))/2:(i(e-1)-i(-e-1))*(Math.E/2)}})},function(e,t,n){var r=n(6),o=n(244),i=Math.exp;r(r.S,"Math",{tanh:function(e){var t=o(e=+e),n=o(-e);return t==1/0?1:n==1/0?-1:(t-n)/(i(e)+i(-e))}})},function(e,t,n){var r=n(6);r(r.S,"Math",{trunc:function(e){return(e>0?Math.floor:Math.ceil)(e)}})},function(e,t,n){var r=n(6);r(r.S,"Number",{EPSILON:Math.pow(2,-52)})},function(e,t,n){var r=n(6),o=n(35).isFinite;r(r.S,"Number",{isFinite:function(e){return"number"==typeof e&&o(e)}})},function(e,t,n){var r=n(6);r(r.S,"Number",{isInteger:n(346)})},function(e,t,n){var r=n(6);r(r.S,"Number",{isNaN:function(e){return e!=e}})},function(e,t,n){var r=n(6),o=n(346),i=Math.abs;r(r.S,"Number",{isSafeInteger:function(e){return o(e)&&i(e)<=9007199254740991}})},function(e,t,n){var r=n(6);r(r.S,"Number",{MAX_SAFE_INTEGER:9007199254740991})},function(e,t,n){var r=n(6);r(r.S,"Number",{MIN_SAFE_INTEGER:-9007199254740991})},function(e,t,n){var r=n(6),o=n(534);r(r.S+r.F*(Number.parseFloat!=o),"Number",{parseFloat:o})},function(e,t,n){var r=n(6),o=n(535);r(r.S+r.F*(Number.parseInt!=o),"Number",{parseInt:o})},function(e,t,n){"use strict";var r=n(6),o=n(58),i=n(517),a=1..toPrecision;r(r.P+r.F*(o(function(){return"1"!==a.call(1,void 0)})||!o(function(){a.call({})})),"Number",{toPrecision:function(e){var t=i(this,"Number#toPrecision: incorrect invocation!");return void 0===e?a.call(t):a.call(t,e)}})},function(e,t,n){var r=n(6);r(r.S+r.F,"Object",{assign:n(530)})},function(e,t,n){var r=n(6);r(r.S,"Object",{is:n(536)})},function(e,t,n){var r=n(6);r(r.S,"Object",{setPrototypeOf:n(249).set})},function(e,t,n){"use strict";var r,o,i,a,s,u,c,l,f,p,d,h,m,g,y,v,b,_=n(195),w=n(35),x=n(99),C=n(337),T=n(6),k=n(50),E=n(124),S=n(236),M=n(240),O=n(537),N=n(355).set,D=n(529)(),P="Promise",A=w.TypeError,L=w.process,I=w[P];L=w.process,r="process"==C(L),o=function(){},u=!!function(){try{var e=I.resolve(1),t=(e.constructor={})[n(39)("species")]=function(e){e(o,o)};return(r||"function"==typeof PromiseRejectionEvent)&&e.then(o)instanceof t}catch(e){}}(),c=function(e,t){ |
|||
return e===t||e===I&&t===s},l=function(e){var t;return!(!k(e)||"function"!=typeof(t=e.then))&&t},f=function(e){return c(I,e)?new p(e):new a(e)},p=a=function(e){var t,n;this.promise=new e(function(e,r){if(void 0!==t||void 0!==n)throw A("Bad Promise constructor");t=e,n=r}),this.resolve=E(t),this.reject=E(n)},d=function(e){try{e()}catch(e){return{error:e}}},h=function(e,t){if(!e._n){e._n=!0;var n=e._c;D(function(){for(var r=e._v,o=1==e._s,i=0,a=function(t){var n,i,a=o?t.ok:t.fail,s=t.resolve,u=t.reject,c=t.domain;try{a?(o||(2==e._h&&y(e),e._h=1),!0===a?n=r:(c&&c.enter(),n=a(r),c&&c.exit()),n===t.promise?u(A("Promise-chain cycle")):(i=l(n))?i.call(n,s,u):s(n)):u(r)}catch(e){u(e)}};n.length>i;)a(n[i++]);e._c=[],e._n=!1,t&&!e._h&&m(e)})}},m=function(e){N.call(w,function(){var t,n,o,i=e._v;if(g(e)&&(t=d(function(){r?L.emit("unhandledRejection",i,e):(n=w.onunhandledrejection)?n({promise:e,reason:i}):(o=w.console)&&o.error&&o.error("Unhandled promise rejection",i)}),e._h=r||g(e)?2:1),e._a=void 0,t)throw t.error})},g=function(e){if(1==e._h)return!1;for(var t,n=e._a||e._c,r=0;n.length>r;)if(t=n[r++],t.fail||!g(t.promise))return!1;return!0},y=function(e){N.call(w,function(){var t;r?L.emit("rejectionHandled",e):(t=w.onrejectionhandled)&&t({promise:e,reason:e._v})})},v=function(e){var t=this;t._d||(t._d=!0,t=t._w||t,t._v=e,t._s=2,t._a||(t._a=t._c.slice()),h(t,!0))},b=function(e){var t,n=this;if(!n._d){n._d=!0,n=n._w||n;try{if(n===e)throw A("Promise can't be resolved itself");(t=l(e))?D(function(){var r={_w:n,_d:!1};try{t.call(e,x(b,r,1),x(v,r,1))}catch(e){v.call(r,e)}}):(n._v=e,n._s=1,h(n,!1))}catch(e){v.call({_w:n,_d:!1},e)}}},u||(I=function(e){S(this,I,P,"_h"),E(e),i.call(this);try{e(x(b,this,1),x(v,this,1))}catch(e){v.call(this,e)}},i=function(e){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1},i.prototype=n(248)(I.prototype,{then:function(e,t){var n=f(O(this,I));return n.ok="function"!=typeof e||e,n.fail="function"==typeof t&&t,n.domain=r?L.domain:void 0,this._c.push(n),this._a&&this._a.push(n),this._s&&h(this,!1),n.promise},catch:function(e){return this.then(void 0,e)}}),p=function(){var e=new i;this.promise=e,this.resolve=x(b,e,1),this.reject=x(v,e,1)}),T(T.G+T.W+T.F*!u,{Promise:I}),n(150)(I,P),n(250)(P),s=n(126)[P],T(T.S+T.F*!u,P,{reject:function(e){var t=f(this);return(0,t.reject)(e),t.promise}}),T(T.S+T.F*(_||!u),P,{resolve:function(e){if(e instanceof I&&c(e.constructor,this))return e;var t=f(this);return(0,t.resolve)(e),t.promise}}),T(T.S+T.F*!(u&&n(243)(function(e){I.all(e).catch(o)})),P,{all:function(e){var t=this,n=f(t),r=n.resolve,o=n.reject,i=d(function(){var n=[],i=0,a=1;M(e,!1,function(e){var s=i++,u=!1;n.push(void 0),a++,t.resolve(e).then(function(e){u||(u=!0,n[s]=e,--a||r(n))},o)}),--a||r(n)});return i&&o(i.error),n.promise},race:function(e){var t=this,n=f(t),r=n.reject,o=d(function(){M(e,!1,function(e){t.resolve(e).then(n.resolve,r)})});return o&&r(o.error),n.promise}})},function(e,t,n){var r=n(6),o=n(124),i=n(29),a=(n(35).Reflect||{}).apply,s=Function.apply |
|||
;r(r.S+r.F*!n(58)(function(){a(function(){})}),"Reflect",{apply:function(e,t,n){var r=o(e),u=i(n);return a?a(r,t,u):s.call(r,t,u)}})},function(e,t,n){var r=n(6),o=n(196),i=n(124),a=n(29),s=n(50),u=n(58),c=n(522),l=(n(35).Reflect||{}).construct,f=u(function(){function e(){}return!(l(function(){},[],e)instanceof e)}),p=!u(function(){l(function(){})});r(r.S+r.F*(f||p),"Reflect",{construct:function(e,t){var n,r,u,d,h;if(i(e),a(t),n=arguments.length<3?e:i(arguments[2]),p&&!f)return l(e,t,n);if(e==n){switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3])}return r=[null],r.push.apply(r,t),new(c.apply(e,r))}return u=n.prototype,d=o(s(u)?u:Object.prototype),h=Function.apply.call(e,d,t),s(h)?h:d}})},function(e,t,n){var r=n(59),o=n(6),i=n(29),a=n(151);o(o.S+o.F*n(58)(function(){Reflect.defineProperty(r.f({},1,{value:1}),1,{value:2})}),"Reflect",{defineProperty:function(e,t,n){i(e),t=a(t,!0),i(n);try{return r.f(e,t,n),!0}catch(e){return!1}}})},function(e,t,n){var r=n(6),o=n(127).f,i=n(29);r(r.S,"Reflect",{deleteProperty:function(e,t){var n=o(i(e),t);return!(n&&!n.configurable)&&delete e[t]}})},function(e,t,n){"use strict";var r=n(6),o=n(29),i=function(e){this._t=o(e),this._i=0;var t,n=this._k=[];for(t in e)n.push(t)};n(348)(i,"Object",function(){var e,t=this,n=t._k;do{if(t._i>=n.length)return{value:void 0,done:!0}}while(!((e=n[t._i++])in t._t));return{value:e,done:!1}}),r(r.S,"Reflect",{enumerate:function(e){return new i(e)}})},function(e,t,n){var r=n(127),o=n(6),i=n(29);o(o.S,"Reflect",{getOwnPropertyDescriptor:function(e,t){return r.f(i(e),t)}})},function(e,t,n){var r=n(6),o=n(148),i=n(29);r(r.S,"Reflect",{getPrototypeOf:function(e){return o(i(e))}})},function(e,t,n){function r(e,t){var n,s,l=arguments.length<3?e:arguments[2];return c(e)===l?e[t]:(n=o.f(e,t))?a(n,"value")?n.value:void 0!==n.get?n.get.call(l):void 0:u(s=i(e))?r(s,t,l):void 0}var o=n(127),i=n(148),a=n(72),s=n(6),u=n(50),c=n(29);s(s.S,"Reflect",{get:r})},function(e,t,n){var r=n(6);r(r.S,"Reflect",{has:function(e,t){return t in e}})},function(e,t,n){var r=n(6),o=n(29),i=Object.isExtensible;r(r.S,"Reflect",{isExtensible:function(e){return o(e),!i||i(e)}})},function(e,t,n){var r=n(6);r(r.S,"Reflect",{ownKeys:n(533)})},function(e,t,n){var r=n(6),o=n(29),i=Object.preventExtensions;r(r.S,"Reflect",{preventExtensions:function(e){o(e);try{return i&&i(e),!0}catch(e){return!1}}})},function(e,t,n){var r=n(6),o=n(249);o&&r(r.S,"Reflect",{setPrototypeOf:function(e,t){o.check(e,t);try{return o.set(e,t),!0}catch(e){return!1}}})},function(e,t,n){function r(e,t,n){var u,p,d=arguments.length<4?e:arguments[3],h=i.f(l(e),t);if(!h){if(f(p=a(e)))return r(p,t,n,d);h=c(0)}return s(h,"value")?!(!1===h.writable||!f(d))&&(u=i.f(d,t)||c(0),u.value=n,o.f(d,t,u),!0):void 0!==h.set&&(h.set.call(d,n),!0)}var o=n(59),i=n(127),a=n(148),s=n(72),u=n(6),c=n(114),l=n(29),f=n(50);u(u.S,"Reflect",{set:r})},function(e,t,n){n(79)&&"g"!=/./g.flags&&n(59).f(RegExp.prototype,"flags",{ |
|||
configurable:!0,get:n(525)})},function(e,t,n){"use strict";var r=n(338);e.exports=n(339)("Set",function(e){return function(){return e(this,arguments.length>0?arguments[0]:void 0)}},{add:function(e){return r.def(this,e=0===e?0:e,e)}},r)},function(e,t,n){"use strict";var r=n(6),o=n(353)(!1);r(r.P,"String",{codePointAt:function(e){return o(this,e)}})},function(e,t,n){"use strict";var r=n(6),o=n(89),i=n(253),a="endsWith",s=""[a];r(r.P+r.F*n(239)(a),"String",{endsWith:function(e){var t=i(this,e,a),n=arguments.length>1?arguments[1]:void 0,r=o(t.length),u=void 0===n?r:Math.min(o(n),r),c=e+"";return s?s.call(t,c,u):t.slice(u-c.length,u)===c}})},function(e,t,n){var r=n(6),o=n(198),i=String.fromCharCode,a=String.fromCodePoint;r(r.S+r.F*(!!a&&1!=a.length),"String",{fromCodePoint:function(e){for(var t,n=[],r=arguments.length,a=0;r>a;){if(t=+arguments[a++],o(t,1114111)!==t)throw RangeError(t+" is not a valid code point");n.push(t<65536?i(t):i(55296+((t-=65536)>>10),t%1024+56320))}return n.join("")}})},function(e,t,n){"use strict";var r=n(6),o=n(253),i="includes";r(r.P+r.F*n(239)(i),"String",{includes:function(e){return!!~o(this,e,i).indexOf(e,arguments.length>1?arguments[1]:void 0)}})},function(e,t,n){"use strict";var r=n(353)(!0);n(242)(String,"String",function(e){this._t=e+"",this._i=0},function(){var e,t=this._t,n=this._i;return n>=t.length?{value:void 0,done:!0}:(e=r(t,n),this._i+=e.length,{value:e,done:!1})})},function(e,t,n){var r=n(6),o=n(88),i=n(89);r(r.S,"String",{raw:function(e){for(var t=o(e.raw),n=i(t.length),r=arguments.length,a=[],s=0;n>s;)a.push(t[s++]+""),s<r&&a.push(arguments[s]+"");return a.join("")}})},function(e,t,n){var r=n(6);r(r.P,"String",{repeat:n(538)})},function(e,t,n){"use strict";var r=n(6),o=n(89),i=n(253),a="startsWith",s=""[a];r(r.P+r.F*n(239)(a),"String",{startsWith:function(e){var t=i(this,e,a),n=o(Math.min(arguments.length>1?arguments[1]:void 0,t.length)),r=e+"";return s?s.call(t,r,n):t.slice(n,n+r.length)===r}})},function(e,t,n){"use strict";var r,o,i=n(35),a=n(72),s=n(79),u=n(6),c=n(129),l=n(246).KEY,f=n(58),p=n(252),d=n(150),h=n(152),m=n(39),g=n(356),y=n(539),v=n(528),b=n(524),_=n(345),w=n(29),x=n(88),C=n(151),T=n(114),k=n(196),E=n(532),S=n(127),M=n(59),O=n(128),N=S.f,D=M.f,P=E.f,A=i.Symbol,L=i.JSON,I=L&&L.stringify,j="prototype",R=m("_hidden"),F=m("toPrimitive"),U={}.propertyIsEnumerable,H=p("symbol-registry"),Y=p("symbols"),W=p("op-symbols"),B=Object[j],V="function"==typeof A,q=i.QObject,z=!q||!q[j]||!q[j].findChild,$=s&&f(function(){return 7!=k(D({},"a",{get:function(){return D(this,"a",{value:7}).a}})).a})?function(e,t,n){var r=N(B,t);r&&delete B[t],D(e,t,n),r&&e!==B&&D(B,t,r)}:D,G=function(e){var t=Y[e]=k(A[j]);return t._k=e,t},K=V&&"symbol"==typeof A.iterator?function(e){return"symbol"==typeof e}:function(e){return e instanceof A},X=function(e,t,n){return e===B&&X(W,t,n),w(e),t=C(t,!0),w(n),a(Y,t)?(n.enumerable?(a(e,R)&&e[R][t]&&(e[R][t]=!1),n=k(n,{enumerable:T(0,!1)})):(a(e,R)||D(e,R,T(1,{})),e[R][t]=!0),$(e,t,n)):D(e,t,n)},Q=function(e,t){w(e) |
|||
;for(var n,r=b(t=x(t)),o=0,i=r.length;i>o;)X(e,n=r[o++],t[n]);return e},J=function(e,t){return void 0===t?k(e):Q(k(e),t)},Z=function(e){var t=U.call(this,e=C(e,!0));return!(this===B&&a(Y,e)&&!a(W,e))&&(!(t||!a(this,e)||!a(Y,e)||a(this,R)&&this[R][e])||t)},ee=function(e,t){if(e=x(e),t=C(t,!0),e!==B||!a(Y,t)||a(W,t)){var n=N(e,t);return!n||!a(Y,t)||a(e,R)&&e[R][t]||(n.enumerable=!0),n}},te=function(e){for(var t,n=P(x(e)),r=[],o=0;n.length>o;)a(Y,t=n[o++])||t==R||t==l||r.push(t);return r},ne=function(e){for(var t,n=e===B,r=P(n?W:x(e)),o=[],i=0;r.length>i;)!a(Y,t=r[i++])||n&&!a(B,t)||o.push(Y[t]);return o};for(V||(A=function(){var e,t;if(this instanceof A)throw TypeError("Symbol is not a constructor!");return e=h(arguments.length>0?arguments[0]:void 0),t=function(n){this===B&&t.call(W,n),a(this,R)&&a(this[R],e)&&(this[R][e]=!1),$(this,e,T(1,n))},s&&z&&$(B,e,{configurable:!0,set:t}),G(e)},c(A[j],"toString",function(){return this._k}),S.f=ee,M.f=X,n(247).f=E.f=te,n(149).f=Z,n(197).f=ne,s&&!n(195)&&c(B,"propertyIsEnumerable",Z,!0),g.f=function(e){return G(m(e))}),u(u.G+u.W+u.F*!V,{Symbol:A}),r="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),o=0;r.length>o;)m(r[o++]);for(r=O(m.store),o=0;r.length>o;)y(r[o++]);u(u.S+u.F*!V,"Symbol",{for:function(e){return a(H,e+="")?H[e]:H[e]=A(e)},keyFor:function(e){if(K(e))return v(H,e);throw TypeError(e+" is not a symbol!")},useSetter:function(){z=!0},useSimple:function(){z=!1}}),u(u.S+u.F*!V,"Object",{create:J,defineProperty:X,defineProperties:Q,getOwnPropertyDescriptor:ee,getOwnPropertyNames:te,getOwnPropertySymbols:ne}),L&&u(u.S+u.F*(!V||f(function(){var e=A();return"[null]"!=I([e])||"{}"!=I({a:e})||"{}"!=I(Object(e))})),"JSON",{stringify:function(e){if(void 0!==e&&!K(e)){for(var t,n,r=[e],o=1;arguments.length>o;)r.push(arguments[o++]);return t=r[1],"function"==typeof t&&(n=t),!n&&_(t)||(t=function(e,t){if(n&&(t=n.call(this,e,t)),!K(t))return t}),r[1]=t,I.apply(L,r)}}}),A[j][F]||n(113)(A[j],F,A[j].valueOf),d(A,"Symbol"),d(Math,"Math",!0),d(i.JSON,"JSON",!0)},function(e,t,n){"use strict";var r=n(6),o=n(335)(!0);r(r.P,"Array",{includes:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}}),n(125)("includes")},function(e,t,n){var r=n(6),o=n(352)(!0);r(r.S,"Object",{entries:function(e){return o(e)}})},function(e,t,n){var r=n(6),o=n(352)(!1);r(r.S,"Object",{values:function(e){return o(e)}})},function(e,t,n){"use strict";function r(e){return e}function o(e,t,n){function o(e,t){var n=v.hasOwnProperty(t)?v[t]:null;C.hasOwnProperty(t)&&u("OVERRIDE_BASE"===n,"ReactClassInterface: You are attempting to override `%s` from your class specification. Ensure that your method names do not overlap with React methods.",t),e&&u("DEFINE_MANY"===n||"DEFINE_MANY_MERGED"===n,"ReactClassInterface: You are attempting to define `%s` on your component more than once. This conflict may be due to a mixin.",t)}function c(e,n){var r,a,s,c,l,f,h,m,g;if(n){ |
|||
u("function"!=typeof n,"ReactClass: You're attempting to use a component class or function as a mixin. Instead, just use a regular object."),u(!t(n),"ReactClass: You're attempting to use a component as a mixin. Instead, just use a regular object."),r=e.prototype,a=r.__reactAutoBindPairs,n.hasOwnProperty(i)&&_.mixins(e,n.mixins);for(s in n)n.hasOwnProperty(s)&&s!==i&&(c=n[s],l=r.hasOwnProperty(s),o(l,s),_.hasOwnProperty(s)?_[s](e,c):(f=v.hasOwnProperty(s),h="function"==typeof c,m=h&&!f&&!l&&!1!==n.autobind,m?(a.push(s,c),r[s]=c):l?(g=v[s],u(f&&("DEFINE_MANY_MERGED"===g||"DEFINE_MANY"===g),"ReactClass: Unexpected spec policy %s for key %s when mixing in component specs.",g,s),"DEFINE_MANY_MERGED"===g?r[s]=p(r[s],c):"DEFINE_MANY"===g&&(r[s]=d(r[s],c))):r[s]=c))}}function l(e,t){var n,r,o,i;if(t)for(n in t)if(r=t[n],t.hasOwnProperty(n)){if(o=n in _,u(!o,'ReactClass: You are attempting to define a reserved property, `%s`, that shouldn\'t be on the "statics" key. Define it as an instance property instead; it will still be accessible on the constructor.',n),n in e)return i=b.hasOwnProperty(n)?b[n]:null,u("DEFINE_MANY_MERGED"===i,"ReactClass: You are attempting to define `%s` on your component more than once. This conflict may be due to a mixin.",n),void(e[n]=p(e[n],r));e[n]=r}}function f(e,t){u(e&&t&&"object"==typeof e&&"object"==typeof t,"mergeIntoWithNoDuplicateKeys(): Cannot merge non-objects.");for(var n in t)t.hasOwnProperty(n)&&(u(void 0===e[n],"mergeIntoWithNoDuplicateKeys(): Tried to merge two objects with the same key: `%s`. This conflict may be due to a mixin; in particular, this may be caused by two getInitialState() or getDefaultProps() methods returning objects with clashing keys.",n),e[n]=t[n]);return e}function p(e,t){return function(){var n,r=e.apply(this,arguments),o=t.apply(this,arguments);return null==r?o:null==o?r:(n={},f(n,r),f(n,o),n)}}function d(e,t){return function(){e.apply(this,arguments),t.apply(this,arguments)}}function h(e,t){var n=t.bind(e);return n}function m(e){var t,n,r,o=e.__reactAutoBindPairs;for(t=0;t<o.length;t+=2)n=o[t],r=o[t+1],e[n]=h(e,r)}function g(e){var t,o=r(function(e,t,r){this.__reactAutoBindPairs.length&&m(this),this.props=e,this.context=t,this.refs=s,this.updater=r||n,this.state=null;var i=this.getInitialState?this.getInitialState():null;u("object"==typeof i&&!Array.isArray(i),"%s.getInitialState(): must return an object or null",o.displayName||"ReactCompositeComponent"),this.state=i});o.prototype=new T,o.prototype.constructor=o,o.prototype.__reactAutoBindPairs=[],y.forEach(c.bind(null,o)),c(o,w),c(o,e),c(o,x),o.getDefaultProps&&(o.defaultProps=o.getDefaultProps()),u(o.prototype.render,"createClass(...): Class specification must implement a `render` method.");for(t in v)o.prototype[t]||(o.prototype[t]=null);return o}var y=[],v={mixins:"DEFINE_MANY",statics:"DEFINE_MANY",propTypes:"DEFINE_MANY",contextTypes:"DEFINE_MANY",childContextTypes:"DEFINE_MANY",getDefaultProps:"DEFINE_MANY_MERGED",getInitialState:"DEFINE_MANY_MERGED",getChildContext:"DEFINE_MANY_MERGED", |
|||
render:"DEFINE_ONCE",componentWillMount:"DEFINE_MANY",componentDidMount:"DEFINE_MANY",componentWillReceiveProps:"DEFINE_MANY",shouldComponentUpdate:"DEFINE_ONCE",componentWillUpdate:"DEFINE_MANY",componentDidUpdate:"DEFINE_MANY",componentWillUnmount:"DEFINE_MANY",UNSAFE_componentWillMount:"DEFINE_MANY",UNSAFE_componentWillReceiveProps:"DEFINE_MANY",UNSAFE_componentWillUpdate:"DEFINE_MANY",updateComponent:"OVERRIDE_BASE"},b={getDerivedStateFromProps:"DEFINE_MANY_MERGED"},_={displayName:function(e,t){e.displayName=t},mixins:function(e,t){if(t)for(var n=0;n<t.length;n++)c(e,t[n])},childContextTypes:function(e,t){e.childContextTypes=a({},e.childContextTypes,t)},contextTypes:function(e,t){e.contextTypes=a({},e.contextTypes,t)},getDefaultProps:function(e,t){e.getDefaultProps?e.getDefaultProps=p(e.getDefaultProps,t):e.getDefaultProps=t},propTypes:function(e,t){e.propTypes=a({},e.propTypes,t)},statics:function(e,t){l(e,t)},autobind:function(){}},w={componentDidMount:function(){this.__isMounted=!0}},x={componentWillUnmount:function(){this.__isMounted=!1}},C={replaceState:function(e,t){this.updater.enqueueReplaceState(this,e,t)},isMounted:function(){return!!this.__isMounted}},T=function(){};return a(T.prototype,e.prototype,C),g}var i,a=n(30),s=n(202),u=n(17);i="mixins",e.exports=o},,,function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){e.classList?e.classList.add(t):(0,a.default)(e,t)||("string"==typeof e.className?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))}var i,a;Object.defineProperty(t,"__esModule",{value:!0}),t.default=o,i=n(616),a=r(i),e.exports=t.default},function(e,t){"use strict";function n(e,t){return e.classList?!!t&&e.classList.contains(t):-1!==(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")}Object.defineProperty(t,"__esModule",{value:!0}),t.default=n,e.exports=t.default},function(e,t){"use strict";function n(e,t){return e.replace(RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}e.exports=function(e,t){e.classList?e.classList.remove(t):"string"==typeof e.className?e.className=n(e.className,t):e.setAttribute("class",n(e.className&&e.className.baseVal||"",t))}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(){var e,t,n=document.createElement("div").style,r={O:function(e){return"o"+e.toLowerCase()},Moz:function(e){return e.toLowerCase()},Webkit:function(e){return"webkit"+e},ms:function(e){return"MS"+e}},o=Object.keys(r),i=void 0,a=void 0,s="";for(e=0;e<o.length;e++)if((t=o[e])+"TransitionProperty"in n){s="-"+t.toLowerCase(),i=r[t]("TransitionEnd"),a=r[t]("AnimationEnd");break}return!i&&"transitionProperty"in n&&(i="transitionend"),!a&&"animationName"in n&&(a="animationend"),n=null,{animationEnd:a,transitionEnd:i,prefix:s}}var i,a,s,u,c,l,f,p,d,h,m,g,y,v,b;Object.defineProperty(t,"__esModule",{value:!0}), |
|||
t.animationEnd=t.animationDelay=t.animationTiming=t.animationDuration=t.animationName=t.transitionEnd=t.transitionDuration=t.transitionDelay=t.transitionTiming=t.transitionProperty=t.transform=void 0,i=n(358),a=r(i),s="transform",u=void 0,c=void 0,l=void 0,f=void 0,p=void 0,d=void 0,h=void 0,m=void 0,g=void 0,y=void 0,v=void 0,a.default&&(b=o(),u=b.prefix,t.transitionEnd=c=b.transitionEnd,t.animationEnd=l=b.animationEnd,t.transform=s=u+"-"+s,t.transitionProperty=f=u+"-transition-property",t.transitionDuration=p=u+"-transition-duration",t.transitionDelay=h=u+"-transition-delay",t.transitionTiming=d=u+"-transition-timing-function",t.animationName=m=u+"-animation-name",t.animationDuration=g=u+"-animation-duration",t.animationTiming=y=u+"-animation-delay",t.animationDelay=v=u+"-animation-timing-function"),t.transform=s,t.transitionProperty=f,t.transitionTiming=d,t.transitionDelay=h,t.transitionDuration=p,t.transitionEnd=c,t.animationName=m,t.animationDuration=g,t.animationTiming=y,t.animationDelay=v,t.animationEnd=l,t.default={transform:s,end:c,property:f,timing:d,delay:h,duration:p}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e){var t=(new Date).getTime(),n=Math.max(0,16-(t-p)),r=setTimeout(e,n);return p=t,r}var i,a,s,u,c,l,f,p;Object.defineProperty(t,"__esModule",{value:!0}),i=n(358),a=r(i),s=["","webkit","moz","o","ms"],u="clearTimeout",c=o,l=void 0,f=function(e,t){return e+(e?t[0].toUpperCase()+t.substr(1):t)+"AnimationFrame"},a.default&&s.some(function(e){var t=f(e,"request");if(t in window)return u=f(e,"cancel"),c=function(e){return window[t](e)}}),p=(new Date).getTime(),l=function(e){return c(e)},l.cancel=function(e){window[u]&&"function"==typeof window[u]&&window[u](e)},t.default=l,e.exports=t.default},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t){},,,,,,,,,,,,,,,,,,,function(e,t){"use strict";function n(e){return e.replace(r,function(e,t){return t.toUpperCase()})}var r=/-(.)/g;e.exports=n},function(e,t,n){"use strict";function r(e){return o(e.replace(i,"ms-"))}var o=n(674),i=/^-ms-/;e.exports=r},function(e,t,n){"use strict";function r(e,t){return!(!e||!t)&&(e===t||!o(e)&&(o(t)?r(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}var o=n(684);e.exports=r},function(e,t,n){"use strict";function r(e){var t,n,r=e.length;if((Array.isArray(e)||"object"!=typeof e&&"function"!=typeof e)&&a(!1),"number"!=typeof r&&a(!1),0===r||r-1 in e||a(!1),"function"==typeof e.callee&&a(!1),e.hasOwnProperty)try{return Array.prototype.slice.call(e)}catch(e){}for(t=Array(r),n=0;n<r;n++)t[n]=e[n];return t}function o(e){return!!e&&("object"==typeof e||"function"==typeof e)&&"length"in e&&!("setInterval"in e)&&"number"!=typeof e.nodeType&&(Array.isArray(e)||"callee"in e||"item"in e)}function i(e){return o(e)?Array.isArray(e)?e.slice():r(e):[e]}var a=n(17);e.exports=i},function(e,t,n){"use strict";function r(e){var t=e.match(l);return t&&t[1].toLowerCase()}function o(e,t){var n,o,i,l,f,p=c;if(c||u(!1),n=r(e), |
|||
o=n&&s(n))for(p.innerHTML=o[1]+e+o[2],i=o[0];i--;)p=p.lastChild;else p.innerHTML=e;for(l=p.getElementsByTagName("script"),l.length&&(t||u(!1),a(l).forEach(t)),f=Array.from(p.childNodes);p.lastChild;)p.removeChild(p.lastChild);return f}var i=n(60),a=n(677),s=n(679),u=n(17),c=i.canUseDOM?document.createElement("div"):null,l=/^\s*<(\w+)/;e.exports=o},function(e,t,n){"use strict";function r(e){return a||i(!1),p.hasOwnProperty(e)||(e="*"),s.hasOwnProperty(e)||(a.innerHTML="*"===e?"<link />":"<"+e+"></"+e+">",s[e]=!a.firstChild),s[e]?p[e]:null}var o=n(60),i=n(17),a=o.canUseDOM?document.createElement("div"):null,s={},u=[1,'<select multiple="true">',"</select>"],c=[1,"<table>","</table>"],l=[3,"<table><tbody><tr>","</tr></tbody></table>"],f=[1,'<svg xmlns="http://www.w3.org/2000/svg">',"</svg>"],p={"*":[1,"?<div>","</div>"],area:[1,"<map>","</map>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],legend:[1,"<fieldset>","</fieldset>"],param:[1,"<object>","</object>"],tr:[2,"<table><tbody>","</tbody></table>"],optgroup:u,option:u,caption:c,colgroup:c,tbody:c,tfoot:c,thead:c,td:l,th:l};["circle","clipPath","defs","ellipse","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","text","tspan"].forEach(function(e){p[e]=f,s[e]=!0}),e.exports=r},function(e,t){"use strict";function n(e){return e.Window&&e instanceof e.Window?{x:e.pageXOffset||e.document.documentElement.scrollLeft,y:e.pageYOffset||e.document.documentElement.scrollTop}:{x:e.scrollLeft,y:e.scrollTop}}e.exports=n},function(e,t){"use strict";function n(e){return e.replace(r,"-$1").toLowerCase()}var r=/([A-Z])/g;e.exports=n},function(e,t,n){"use strict";function r(e){return o(e).replace(i,"-ms-")}var o=n(681),i=/^ms-/;e.exports=r},function(e,t){"use strict";function n(e){var t=e?e.ownerDocument||e:document,n=t.defaultView||window;return!(!e||!("function"==typeof n.Node?e instanceof n.Node:"object"==typeof e&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName))}e.exports=n},function(e,t,n){"use strict";function r(e){return o(e)&&3==e.nodeType}var o=n(683);e.exports=r},function(e,t){"use strict";function n(e){var t={};return function(n){return t.hasOwnProperty(n)||(t[n]=e.call(this,n)),t[n]}}e.exports=n},,,,,,,,,,,,,,,,,,,,,,,function(e,t){"use strict";var n=function(){function e(e,t){this.mouseFlag=!1,this.accuracy=2,this.value=1,this.colorInput=e,this.$el=$('<div class="transparency-slider wide-slider ui-slider ui-slider-horizontal ui-widget ui-widget-content ui-corner-all">'),t&&this.$el.hide(),this.$gradient=$('<div class="gradient">').appendTo(this.$el),this.$roller=$('<a href="#" class="ui-slider-handle ui-state-default ui-corner-all without-shift-handle-left">').appendTo(this.$gradient)}return e.prototype.calculateRollerPosition=function(e){var t=e.pageX,n=this.$gradient.offset().left,r=t-n,o=this.$gradient.width();return r>o?100:r<0?0:~~(r/o*100)},e.prototype.toRgb=function(e){var t;return~e.indexOf("#")?e:(t=e.match(/[0-9.]+/g),t?"rgb("+t.slice(0,3).join(", ")+")":"rgb(127, 127, 127)") |
|||
},e.prototype.setValue=function(e){if(1===e)return void(this.value=e);this.value=e.toFixed(this.accuracy)},e.prototype.updateRoller=function(){this.$roller.css("left",100-100*this.value+"%")},e.prototype.rollerMoveHandler=function(e){if(this.mouseFlag){var t=this.calculateRollerPosition(e);this.setValue((100-t)/100),$(this).trigger("change",[this.val()]),this.$roller.css("left",t+"%")}e.preventDefault()},e.prototype.mouseupHandler=function(e){this.mouseFlag&&(this.mouseFlag=!1,$(this).trigger("afterChange",[this.val()]))},e.prototype.initEvents=function(){var e=function(e){return this.rollerMoveHandler(e)}.bind(this),t=function(n){return $(document).off("mousemove mouseup",e),$(document).off("mouseup",t),this.mouseupHandler(n)}.bind(this);this.$el.on("mousedown",function(n){this.mouseFlag=!0,$(document).on("mousemove mouseup",e),$(document).on("mouseup",t),n.preventDefault()}.bind(this)),this.colorInput.on("change",function(e){this.updateColor()}.bind(this))},e.prototype.removeEvents=function(){},e.prototype.updateColor=function(){var e=this.colorInput.val()||"black",t=this.toRgb(e),n=["-moz-linear-gradient(left, %COLOR 0%, transparent 100%)","-webkit-gradient(linear, left top, right top, color-stop(0%,%COLOR), color-stop(100%,transparent))","-webkit-linear-gradient(left, %COLOR 0%,transparent 100%)","-o-linear-gradient(left, %COLOR 0%,transparent 100%)","linear-gradient(to right, %COLOR 0%,transparent 100%)"];$.browser.msie?this.$gradient.css("filter","progid:DXImageTransform.Microsoft.gradient(startColorstr='"+t+"', EndColor=0, GradientType=1)"):n.forEach(function(e){this.$gradient.css("background-image",e.replace(/%COLOR/,t))}.bind(this))},e.prototype.val=function(e){return void 0!==e&&(this.setValue(+e),this.updateRoller()),this.value},function(t,n){return new e(t,n)}}();e.exports=n},,,,function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e){var t,n;if(e&&e.__esModule)return e;if(t={},null!=e)for(n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function i(e,t){var n,r,o,i=Object.getOwnPropertyNames(t);for(n=0;n<i.length;n++)r=i[n],(o=Object.getOwnPropertyDescriptor(t,r))&&o.configurable&&void 0===e[r]&&Object.defineProperty(e,r,o);return e}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function u(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):i(e,t))}function c(e,t){for(var n=e.indexOf(t);-1!==n;)e.splice(n,1),n=e.indexOf(t)}var l,f,p,d,h,m,g,y,v;Object.defineProperty(t,"__esModule",{value:!0}),l=Object.assign||function(e){var t,n,r;for(t=1;t<arguments.length;t++){n=arguments[t] |
|||
;for(r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},f=function(){function e(e,t){var n,r,o=[],i=!0,a=!1,s=void 0;try{for(n=e[Symbol.iterator]();!(i=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);i=!0);}catch(e){a=!0,s=e}finally{try{!i&&n.return&&n.return()}finally{if(a)throw s}}return o}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),p=n(160),d=o(p),h=n(100),m=r(h),g=n(159),y=r(g),v=function(e){function t(n,r,o){var i,u=arguments.length<=3||void 0===arguments[3]?{}:arguments[3];return a(this,t),i=s(this,e.call(this)),i.backend=n,i.store=r,i.services=o,i.options=u,i.logger=m.default.create("backendConnector"),i.state={},i.queue=[],i.backend&&i.backend.init&&i.backend.init(o,u.backend,u),i}return u(t,e),t.prototype.queueLoad=function(e,t,n){var r=this,o=[],i=[],a=[],s=[];return e.forEach(function(e){var n=!0;t.forEach(function(t){var a=e+"|"+t;r.store.hasResourceBundle(e,t)?r.state[a]=2:r.state[a]<0||(1===r.state[a]?i.indexOf(a)<0&&i.push(a):(r.state[a]=1,n=!1,i.indexOf(a)<0&&i.push(a),o.indexOf(a)<0&&o.push(a),s.indexOf(t)<0&&s.push(t)))}),n||a.push(e)}),(o.length||i.length)&&this.queue.push({pending:i,loaded:{},errors:[],callback:n}),{toLoad:o,pending:i,toLoadLanguages:a,toLoadNamespaces:s}},t.prototype.loaded=function(e,t,n){var r=this,o=e.split("|"),i=f(o,2),a=i[0],s=i[1];t&&this.emit("failedLoading",a,s,t),n&&this.store.addResourceBundle(a,s,n),this.state[e]=t?-1:2,this.queue.forEach(function(n){d.pushPath(n.loaded,[a],s),c(n.pending,e),t&&n.errors.push(t),0!==n.pending.length||n.done||(n.errors.length?n.callback(n.errors):n.callback(),r.emit("loaded",n.loaded),n.done=!0)}),this.queue=this.queue.filter(function(e){return!e.done})},t.prototype.read=function(e,t,n,r,o,i){var a=this;if(r||(r=0),o||(o=250),!e.length)return i(null,{});this.backend[n](e,t,function(s,u){if(s&&u&&r<5)return void setTimeout(function(){a.read.call(a,e,t,n,++r,2*o,i)},o);i(s,u)})},t.prototype.load=function(e,t,n){var r,o,i=this;return this.backend?(r=l({},this.backend.options,this.options.backend),"string"==typeof e&&(e=this.services.languageUtils.toResolveHierarchy(e)),"string"==typeof t&&(t=[t]),o=this.queueLoad(e,t,n),o.toLoad.length?void(r.allowMultiLoading&&this.backend.readMulti?this.read(o.toLoadLanguages,o.toLoadNamespaces,"readMulti",null,null,function(e,t){e&&i.logger.warn("loading namespaces "+o.toLoadNamespaces.join(", ")+" for languages "+o.toLoadLanguages.join(", ")+" via multiloading failed",e),!e&&t&&i.logger.log("loaded namespaces "+o.toLoadNamespaces.join(", ")+" for languages "+o.toLoadLanguages.join(", ")+" via multiloading",t),o.toLoad.forEach(function(n){var r,o=n.split("|"),a=f(o,2),s=a[0],u=a[1],c=d.getPath(t,[s,u]);c?i.loaded(n,e,c):(r="loading namespace "+u+" for language "+s+" via multiloading failed",i.loaded(n,r),i.logger.error(r))})}):function(){var e=function(e){var t=this,n=e.split("|"),r=f(n,2),o=r[0],i=r[1] |
|||
;this.read(o,i,"read",null,null,function(n,r){n&&t.logger.warn("loading namespace "+i+" for language "+o+" failed",n),!n&&r&&t.logger.log("loaded namespace "+i+" for language "+o,r),t.loaded(e,n,r)})};o.toLoad.forEach(function(t){e.call(i,t)})}()):void(o.pending.length||n())):(this.logger.warn("No backend was added via i18next.use. Will not load resources."),n&&n())},t.prototype.reload=function(e,t){var n,r=this;this.backend||this.logger.warn("No backend was added via i18next.use. Will not load resources."),n=l({},this.backend.options,this.options.backend),"string"==typeof e&&(e=this.services.languageUtils.toResolveHierarchy(e)),"string"==typeof t&&(t=[t]),n.allowMultiLoading&&this.backend.readMulti?this.read(e,t,"readMulti",null,null,function(n,o){n&&r.logger.warn("reloading namespaces "+t.join(", ")+" for languages "+e.join(", ")+" via multiloading failed",n),!n&&o&&r.logger.log("reloaded namespaces "+t.join(", ")+" for languages "+e.join(", ")+" via multiloading",o),e.forEach(function(e){t.forEach(function(t){var i,a=d.getPath(o,[e,t]);a?r.loaded(e+"|"+t,n,a):(i="reloading namespace "+t+" for language "+e+" via multiloading failed",r.loaded(e+"|"+t,i),r.logger.error(i))})})}):function(){var n=function(e){var t=this,n=e.split("|"),r=f(n,2),o=r[0],i=r[1];this.read(o,i,"read",null,null,function(n,r){n&&t.logger.warn("reloading namespace "+i+" for language "+o+" failed",n),!n&&r&&t.logger.log("reloaded namespace "+i+" for language "+o,r),t.loaded(e,n,r)})};e.forEach(function(e){t.forEach(function(t){n.call(r,e+"|"+t)})})}()},t.prototype.saveMissing=function(e,t,n,r){this.backend&&this.backend.create&&this.backend.create(e,t,n,r),e&&e[0]&&this.store.addResource(e[0],t,n,r)},t}(y.default),t.default=v},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e){var t,n;if(e&&e.__esModule)return e;if(t={},null!=e)for(n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function i(e,t){var n,r,o,i=Object.getOwnPropertyNames(t);for(n=0;n<i.length;n++)r=i[n],(o=Object.getOwnPropertyDescriptor(t,r))&&o.configurable&&void 0===e[r]&&Object.defineProperty(e,r,o);return e}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function u(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):i(e,t))}var c,l,f,p,d,h,m;Object.defineProperty(t,"__esModule",{value:!0}),c=Object.assign||function(e){var t,n,r;for(t=1;t<arguments.length;t++){n=arguments[t];for(r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},l=n(160),o(l),f=n(100),p=r(f),d=n(159),h=r(d),m=function(e){function t(n,r,o){ |
|||
var i,u=arguments.length<=3||void 0===arguments[3]?{}:arguments[3];return a(this,t),i=s(this,e.call(this)),i.cache=n,i.store=r,i.services=o,i.options=u,i.logger=p.default.create("cacheConnector"),i.cache&&i.cache.init&&i.cache.init(o,u.cache,u),i}return u(t,e),t.prototype.load=function(e,t,n){var r,o=this;if(!this.cache)return n&&n();r=c({},this.cache.options,this.options.cache),"string"==typeof e&&(e=this.services.languageUtils.toResolveHierarchy(e)),"string"==typeof t&&(t=[t]),r.enabled?this.cache.load(e,function(t,r){var i,a,s;if(t&&o.logger.error("loading languages "+e.join(", ")+" from cache failed",t),r)for(i in r)for(a in r[i])"i18nStamp"!==a&&(s=r[i][a])&&o.store.addResourceBundle(i,a,s);n&&n()}):n&&n()},t.prototype.save=function(){this.cache&&this.options.cache&&this.options.cache.enabled&&this.cache.save(this.store.data)},t}(h.default),t.default=m},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e){var t,n;if(e&&e.__esModule)return e;if(t={},null!=e)for(n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var a,s,u,c,l;Object.defineProperty(t,"__esModule",{value:!0}),a=n(160),s=o(a),u=n(100),c=r(u),l=function(){function e(){var t=arguments.length<=0||void 0===arguments[0]?{}:arguments[0];i(this,e),this.logger=c.default.create("interpolator"),this.init(t,!0)}return e.prototype.init=function(){var e,t=arguments.length<=0||void 0===arguments[0]?{}:arguments[0];arguments[1]&&(this.options=t,this.format=t.interpolation&&t.interpolation.format||function(e){return e}),t.interpolation||(t.interpolation={escapeValue:!0}),e=t.interpolation,this.escapeValue=e.escapeValue,this.prefix=e.prefix?s.regexEscape(e.prefix):e.prefixEscaped||"{{",this.suffix=e.suffix?s.regexEscape(e.suffix):e.suffixEscaped||"}}",this.formatSeparator=e.formatSeparator?s.regexEscape(e.formatSeparator):e.formatSeparator||",",this.unescapePrefix=e.unescapeSuffix?"":e.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":e.unescapeSuffix||"",this.nestingPrefix=e.nestingPrefix?s.regexEscape(e.nestingPrefix):e.nestingPrefixEscaped||s.regexEscape("$t("),this.nestingSuffix=e.nestingSuffix?s.regexEscape(e.nestingSuffix):e.nestingSuffixEscaped||s.regexEscape(")"),this.resetRegExp()},e.prototype.reset=function(){this.options&&this.init(this.options)},e.prototype.resetRegExp=function(){var e,t,n=this.prefix+"(.+?)"+this.suffix;this.regexp=RegExp(n,"g"),e=this.prefix+this.unescapePrefix+"(.+?)"+this.unescapeSuffix+this.suffix,this.regexpUnescape=RegExp(e,"g"),t=this.nestingPrefix+"(.+?)"+this.nestingSuffix,this.nestingRegexp=RegExp(t,"g")},e.prototype.interpolate=function(e,t,n){function r(e){return e.replace(/\$/g,"$$$$")}var o,i=this,a=void 0,u=void 0,c=function(e){var r,o,a;return e.indexOf(i.formatSeparator)<0?s.getPath(t,e):(r=e.split(i.formatSeparator),o=r.shift().trim(),a=r.join(i.formatSeparator).trim(),i.format(s.getPath(t,o),a,n))} |
|||
;for(this.resetRegExp();a=this.regexpUnescape.exec(e);)o=c(a[1].trim()),e=e.replace(a[0],o),this.regexpUnescape.lastIndex=0;for(;a=this.regexp.exec(e);)u=c(a[1].trim()),"string"!=typeof u&&(u=s.makeString(u)),u||(this.logger.warn("missed to pass in variable "+a[1]+" for interpolating "+e),u=""),u=r(this.escapeValue?s.escape(u):u),e=e.replace(a[0],u),this.regexp.lastIndex=0;return e},e.prototype.nest=function(e,t){function n(e){return e.replace(/\$/g,"$$$$")}function r(e){var t,n;if(e.indexOf(",")<0)return e;t=e.split(","),e=t.shift(),n=t.join(","),n=this.interpolate(n,u);try{u=JSON.parse(n)}catch(t){this.logger.error("failed parsing options string in nesting for key "+e,t)}return e}var o=arguments.length<=2||void 0===arguments[2]?{}:arguments[2],i=void 0,a=void 0,u=JSON.parse(JSON.stringify(o));for(u.applyPostProcessor=!1;i=this.nestingRegexp.exec(e);)a=t(r.call(this,i[1].trim()),u),"string"!=typeof a&&(a=s.makeString(a)),a||(this.logger.warn("missed to pass in variable "+i[1]+" for interpolating "+e),a=""),a=n(this.escapeValue?s.escape(a):a),e=e.replace(i[0],a),this.regexp.lastIndex=0;return e},e}(),t.default=l},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e){return e.charAt(0).toUpperCase()+e.slice(1)}var a,s,u;Object.defineProperty(t,"__esModule",{value:!0}),a=n(100),s=r(a),u=function(){function e(t){o(this,e),this.options=t,this.whitelist=this.options.whitelist||!1,this.logger=s.default.create("languageUtils")}return e.prototype.getLanguagePartFromCode=function(e){var t,n;return e.indexOf("-")<0?e:(t=["NB-NO","NN-NO","nb-NO","nn-NO","nb-no","nn-no"],n=e.split("-"),this.formatLanguageCode(t.indexOf(e)>-1?n[1].toLowerCase():n[0]))},e.prototype.formatLanguageCode=function(e){var t,n;return"string"==typeof e&&e.indexOf("-")>-1?(t=["hans","hant","latn","cyrl","cans","mong","arab"],n=e.split("-"),this.options.lowerCaseLng?n=n.map(function(e){return e.toLowerCase()}):2===n.length?(n[0]=n[0].toLowerCase(),n[1]=n[1].toUpperCase(),t.indexOf(n[1].toLowerCase())>-1&&(n[1]=i(n[1].toLowerCase()))):3===n.length&&(n[0]=n[0].toLowerCase(),2===n[1].length&&(n[1]=n[1].toUpperCase()),"sgn"!==n[0]&&2===n[2].length&&(n[2]=n[2].toUpperCase()),t.indexOf(n[1].toLowerCase())>-1&&(n[1]=i(n[1].toLowerCase())),t.indexOf(n[2].toLowerCase())>-1&&(n[2]=i(n[2].toLowerCase()))),n.join("-")):this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e},e.prototype.isWhitelisted=function(e,t){return("languageOnly"===this.options.load||this.options.nonExplicitWhitelist&&!t)&&(e=this.getLanguagePartFromCode(e)),!this.whitelist||!this.whitelist.length||this.whitelist.indexOf(e)>-1},e.prototype.toResolveHierarchy=function(e,t){var n,r,o=this;return t=t||this.options.fallbackLng||[],"string"==typeof t&&(t=[t]),n=[],r=function(e){var t=!(arguments.length<=1||void 0===arguments[1])&&arguments[1];o.isWhitelisted(e,t)?n.push(e):o.logger.warn("rejecting non-whitelisted language code: "+e)}, |
|||
"string"==typeof e&&e.indexOf("-")>-1?("languageOnly"!==this.options.load&&r(this.formatLanguageCode(e),!0),"currentOnly"!==this.options.load&&r(this.getLanguagePartFromCode(e))):"string"==typeof e&&r(this.formatLanguageCode(e)),t.forEach(function(e){n.indexOf(e)<0&&r(o.formatLanguageCode(e))}),n},e}(),t.default=u},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(){var e={};return c.forEach(function(t){t.lngs.forEach(function(n){return e[n]={numbers:t.nr,plurals:l[t.fc]}})}),e}var a,s,u,c,l,f;Object.defineProperty(t,"__esModule",{value:!0}),a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e},s=n(100),u=r(s),c=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","tg","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","es_ar","et","eu","fi","fo","fur","fy","gl","gu","ha","he","hi","hu","hy","ia","it","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt","pt_br","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","id","ja","jbo","ka","kk","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21}],l={1:function(e){return+(e>1)},2:function(e){return+(1!=e)},3:function(e){return 0},4:function(e){return+(e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},5:function(e){return+(0===e?0:1==e?1:2==e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5)},6:function(e){return+(1==e?0:e>=2&&e<=4?1:2)},7:function(e){return+(1==e?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},8:function(e){return+(1==e?0:2==e?1:8!=e&&11!=e?2:3)},9:function(e){return+(e>=2)},10:function(e){return+(1==e?0:2==e?1:e<7?2:e<11?3:4)},11:function(e){return+(1==e||11==e?0:2==e||12==e?1:e>2&&e<20?2:3)},12:function(e){return+(e%10!=1||e%100==11)},13:function(e){return+(0!==e)},14:function(e){return+(1==e?0:2==e?1:3==e?2:3)},15:function(e){return+(e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2)},16:function(e){return+(e%10==1&&e%100!=11?0:0!==e?1:2)},17:function(e){return+(1==e||e%10==1?0:1)},18:function(e){return+(0==e?0:1==e?1:2)}, |
|||
19:function(e){return+(1==e?0:0===e||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3)},20:function(e){return+(1==e?0:0===e||e%100>0&&e%100<20?1:2)},21:function(e){return+(e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0)}},f=function(){function e(t){var n=arguments.length<=1||void 0===arguments[1]?{}:arguments[1];o(this,e),this.languageUtils=t,this.options=n,this.logger=u.default.create("pluralResolver"),this.rules=i()}return e.prototype.addRule=function(e,t){this.rules[e]=t},e.prototype.getRule=function(e){return this.rules[this.languageUtils.getLanguagePartFromCode(e)]},e.prototype.needsPlural=function(e){var t=this.getRule(e);return!(t&&t.numbers.length<=1)},e.prototype.getSuffix=function(e,t){var n,r=this,o=this.getRule(e);return o?(n=function(){var e,n,i;return 1===o.numbers.length?{v:""}:(e=o.noAbs?o.plurals(t):o.plurals(Math.abs(t)),n=o.numbers[e],2===o.numbers.length&&1===o.numbers[0]&&(2===n?n="plural":1===n&&(n="")),i=function(){return r.options.prepend&&""+n?r.options.prepend+""+n:""+n},"v1"===r.options.compatibilityJSON?1===n?{v:""}:"number"==typeof n?{v:"_plural_"+n}:{v:i()}:"v2"===r.options.compatibilityJSON||2===o.numbers.length&&1===o.numbers[0]?{v:i()}:2===o.numbers.length&&1===o.numbers[0]?{v:i()}:{v:r.options.prepend&&""+e?r.options.prepend+""+e:""+e})}(),"object"===(void 0===n?"undefined":a(n))?n.v:void 0):(this.logger.warn("no plural rule found for: "+e),"")},e}(),t.default=f},function(e,t,n){"use strict";function r(e){var t,n;if(e&&e.__esModule)return e;if(t={},null!=e)for(n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function o(e){return e&&e.__esModule?e:{default:e}}function i(e,t){var n,r,o,i=Object.getOwnPropertyNames(t);for(n=0;n<i.length;n++)r=i[n],(o=Object.getOwnPropertyDescriptor(t,r))&&o.configurable&&void 0===e[r]&&Object.defineProperty(e,r,o);return e}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function u(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):i(e,t))}var c,l,f,p,d,h;Object.defineProperty(t,"__esModule",{value:!0}),c=Object.assign||function(e){var t,n,r;for(t=1;t<arguments.length;t++){n=arguments[t];for(r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},l=n(159),f=o(l),p=n(160),d=r(p),h=function(e){function t(){var n,r=arguments.length<=0||void 0===arguments[0]?{}:arguments[0],o=arguments.length<=1||void 0===arguments[1]?{ns:["translation"],defaultNS:"translation"}:arguments[1];return a(this,t),n=s(this,e.call(this)),n.data=r,n.options=o,n}return u(t,e),t.prototype.addNamespaces=function(e){this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}, |
|||
t.prototype.removeNamespaces=function(e){var t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)},t.prototype.getResource=function(e,t,n){var r,o=arguments.length<=3||void 0===arguments[3]?{}:arguments[3],i=o.keySeparator||this.options.keySeparator;return void 0===i&&(i="."),r=[e,t],n&&"string"!=typeof n&&(r=r.concat(n)),n&&"string"==typeof n&&(r=r.concat(i?n.split(i):n)),e.indexOf(".")>-1&&(r=e.split(".")),d.getPath(this.data,r)},t.prototype.addResource=function(e,t,n,r){var o,i=arguments.length<=4||void 0===arguments[4]?{silent:!1}:arguments[4],a=this.options.keySeparator;void 0===a&&(a="."),o=[e,t],n&&(o=o.concat(a?n.split(a):n)),e.indexOf(".")>-1&&(o=e.split("."),r=t,t=o[1]),this.addNamespaces(t),d.setPath(this.data,o,r),i.silent||this.emit("added",e,t,n,r)},t.prototype.addResources=function(e,t,n){for(var r in n)"string"==typeof n[r]&&this.addResource(e,t,r,n[r],{silent:!0});this.emit("added",e,t,n)},t.prototype.addResourceBundle=function(e,t,n,r,o){var i,a=[e,t];e.indexOf(".")>-1&&(a=e.split("."),r=n,n=t,t=a[1]),this.addNamespaces(t),i=d.getPath(this.data,a)||{},r?d.deepExtend(i,n,o):i=c({},i,n),d.setPath(this.data,a,i),this.emit("added",e,t,n)},t.prototype.removeResourceBundle=function(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit("removed",e,t)},t.prototype.hasResourceBundle=function(e,t){return void 0!==this.getResource(e,t)},t.prototype.getResourceBundle=function(e,t){return t||(t=this.options.defaultNS),"v1"===this.options.compatibilityAPI?c({},this.getResource(e,t)):this.getResource(e,t)},t.prototype.toJSON=function(){return this.data},t}(f.default),t.default=h},function(e,t,n){"use strict";function r(e){var t,n;if(e&&e.__esModule)return e;if(t={},null!=e)for(n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function o(e){return e&&e.__esModule?e:{default:e}}function i(e,t){var n,r,o,i=Object.getOwnPropertyNames(t);for(n=0;n<i.length;n++)r=i[n],(o=Object.getOwnPropertyDescriptor(t,r))&&o.configurable&&void 0===e[r]&&Object.defineProperty(e,r,o);return e}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function u(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):i(e,t))}var c,l,f,p,d,h,m,g,y,v,b,_,w;Object.defineProperty(t,"__esModule",{value:!0}),c=Object.assign||function(e){var t,n,r;for(t=1;t<arguments.length;t++){n=arguments[t];for(r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){ |
|||
return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e},f=n(100),p=o(f),d=n(159),h=o(d),m=n(376),g=o(m),y=n(375),v=r(y),b=n(160),_=r(b),w=function(e){function t(n){var r,o=arguments.length<=1||void 0===arguments[1]?{}:arguments[1];return a(this,t),r=s(this,e.call(this)),_.copy(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector"],n,r),r.options=o,r.logger=p.default.create("translator"),r}return u(t,e),t.prototype.changeLanguage=function(e){e&&(this.language=e)},t.prototype.exists=function(e){var t=arguments.length<=1||void 0===arguments[1]?{interpolation:{}}:arguments[1];return"v1"===this.options.compatibilityAPI&&(t=v.convertTOptions(t)),void 0!==this.resolve(e,t)},t.prototype.extractFromKey=function(e,t){var n,r,o=t.nsSeparator||this.options.nsSeparator;return void 0===o&&(o=":"),n=t.ns||this.options.defaultNS,o&&e.indexOf(o)>-1&&(r=e.split(o),n=r[0],e=r[1]),"string"==typeof n&&(n=[n]),{key:e,namespaces:n}},t.prototype.translate=function(e){var t,n,r,o,i,a,s,u,f,p,d,h,m,g,y,b,_=arguments.length<=1||void 0===arguments[1]?{}:arguments[1];if("object"!==(void 0===_?"undefined":l(_))?_=this.options.overloadTranslationOptionHandler(arguments):"v1"===this.options.compatibilityAPI&&(_=v.convertTOptions(_)),void 0===e||null===e||""===e)return"";if("number"==typeof e&&(e+=""),"string"==typeof e&&(e=[e]),(t=_.lng||this.language)&&"cimode"===t.toLowerCase())return e[e.length-1];if(n=_.keySeparator||this.options.keySeparator||".",r=this.extractFromKey(e[e.length-1],_),o=r.key,i=r.namespaces,a=i[i.length-1],s=this.resolve(e,_),u=Object.prototype.toString.apply(s),f=["[object Number]","[object Function]","[object RegExp]"],p=void 0!==_.joinArrays?_.joinArrays:this.options.joinArrays,s&&"string"!=typeof s&&f.indexOf(u)<0&&(!p||"[object Array]"!==u)){if(!_.returnObjects&&!this.options.returnObjects)return this.logger.warn("accessing an object - but returnObjects options is not enabled!"),this.options.returnedObjectHandler?this.options.returnedObjectHandler(o,s,_):"key '"+o+" ("+this.language+")' returned an object instead of string.";d="[object Array]"===u?[]:{};for(h in s)d[h]=this.translate(""+o+n+h,c({joinArrays:!1,ns:i},_));s=d}else if(p&&"[object Array]"===u)(s=s.join(p))&&(s=this.extendTranslation(s,o,_));else{if(m=!1,g=!1,this.isValidLookup(s)||void 0===_.defaultValue||(m=!0,s=_.defaultValue),this.isValidLookup(s)||(g=!0,s=o),g||m){if(this.logger.log("missingKey",t,a,o,s),y=[],"fallback"===this.options.saveMissingTo&&this.options.fallbackLng&&this.options.fallbackLng[0])for(b=0;b<this.options.fallbackLng.length;b++)y.push(this.options.fallbackLng[b]);else"all"===this.options.saveMissingTo?y=this.languageUtils.toResolveHierarchy(_.lng||this.language):y.push(_.lng||this.language);this.options.saveMissing&&(this.options.missingKeyHandler?this.options.missingKeyHandler(y,a,o,s):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(y,a,o,s)),this.emit("missingKey",y,a,o,s)}s=this.extendTranslation(s,o,_), |
|||
g&&s===o&&this.options.appendNamespaceToMissingKey&&(s=a+":"+o),g&&this.options.parseMissingKeyHandler&&(s=this.options.parseMissingKeyHandler(s))}return s},t.prototype.extendTranslation=function(e,t,n){var r,o,i,a=this;return n.interpolation&&this.interpolator.init(n),r=n.replace&&"string"!=typeof n.replace?n.replace:n,this.options.interpolation.defaultVariables&&(r=c({},this.options.interpolation.defaultVariables,r)),e=this.interpolator.interpolate(e,r,this.language),e=this.interpolator.nest(e,function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return a.translate.apply(a,t)},n),n.interpolation&&this.interpolator.reset(),o=n.postProcess||this.options.postProcess,i="string"==typeof o?[o]:o,void 0!==e&&i&&i.length&&!1!==n.applyPostProcessor&&(e=g.default.handle(i,e,t,n,this)),e},t.prototype.resolve=function(e){var t=this,n=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],r=void 0;return"string"==typeof e&&(e=[e]),e.forEach(function(e){var o,i,a,s,u,c;t.isValidLookup(r)||(o=t.extractFromKey(e,n),i=o.key,a=o.namespaces,t.options.fallbackNS&&(a=a.concat(t.options.fallbackNS)),s=void 0!==n.count&&"string"!=typeof n.count,u=void 0!==n.context&&"string"==typeof n.context&&""!==n.context,c=n.lngs?n.lngs:t.languageUtils.toResolveHierarchy(n.lng||t.language),a.forEach(function(e){t.isValidLookup(r)||c.forEach(function(o){var a,c,l,f;if(!t.isValidLookup(r))for(a=i,c=[a],l=void 0,s&&(l=t.pluralResolver.getSuffix(o,n.count)),s&&u&&c.push(a+l),u&&c.push(a+=""+t.options.contextSeparator+n.context),s&&c.push(a+=l),f=void 0;f=c.pop();)t.isValidLookup(r)||(r=t.getResource(o,e,f,n))})}))}),r},t.prototype.isValidLookup=function(e){return!(void 0===e||!this.options.returnNull&&null===e||!this.options.returnEmptyString&&""===e)},t.prototype.getResource=function(e,t,n){var r=arguments.length<=3||void 0===arguments[3]?{}:arguments[3];return this.resourceStore.getResource(e,t,n,r)},t}(h.default),t.default=w},function(e,t){"use strict";function n(){return{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,whitelist:!1,nonExplicitWhitelist:!1,load:"all",preload:!1,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",saveMissing:!1,saveMissingTo:"fallback",missingKeyHandler:!1,postProcess:!1,returnNull:!0,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:function(){},parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,overloadTranslationOptionHandler:function(e){return{defaultValue:e[1]}},interpolation:{escapeValue:!0,format:function(e,t,n){return e},prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",defaultVariables:void 0}}}function r(e){return"string"==typeof e.ns&&(e.ns=[e.ns]),"string"==typeof e.fallbackLng&&(e.fallbackLng=[e.fallbackLng]),"string"==typeof e.fallbackNS&&(e.fallbackNS=[e.fallbackNS]),e.whitelist&&e.whitelist.indexOf("cimode")<0&&e.whitelist.push("cimode"),e}Object.defineProperty(t,"__esModule",{value:!0}),t.get=n,t.transformOptions=r |
|||
},function(e,t,n){"use strict";function r(e){var t,n;if(e&&e.__esModule)return e;if(t={},null!=e)for(n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function o(e){return e&&e.__esModule?e:{default:e}}function i(e,t){var n,r,o,i=Object.getOwnPropertyNames(t);for(n=0;n<i.length;n++)r=i[n],(o=Object.getOwnPropertyDescriptor(t,r))&&o.configurable&&void 0===e[r]&&Object.defineProperty(e,r,o);return e}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function u(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):i(e,t))}var c,l,f,p,d,h,m,g,y,v,b,_,w,x,C,T,k,E,S,M,O,N,D,P,A,L;Object.defineProperty(t,"__esModule",{value:!0}),c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e},l=Object.assign||function(e){var t,n,r;for(t=1;t<arguments.length;t++){n=arguments[t];for(r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},f=n(100),p=o(f),d=n(159),h=o(d),m=n(717),g=o(m),y=n(718),v=o(y),b=n(715),_=o(b),w=n(716),x=o(w),C=n(714),T=o(C),k=n(712),E=o(k),S=n(713),M=o(S),O=n(719),N=n(376),D=o(N),P=n(375),A=r(P),L=function(e){function t(){var n,r=arguments.length<=0||void 0===arguments[0]?{}:arguments[0],o=arguments[1];return a(this,t),n=s(this,e.call(this)),n.options=(0,O.transformOptions)(r),n.services={},n.logger=p.default,n.modules={},o&&!n.isInitialized&&n.init(r,o),n}return u(t,e),t.prototype.init=function(e,t){function n(e){if(e)return"function"==typeof e?new e:e}var r,o,i,a,s=this;return"function"==typeof e&&(t=e,e={}),e||(e={}),"v1"===e.compatibilityAPI?this.options=l({},(0,O.get)(),(0,O.transformOptions)(A.convertAPIOptions(e)),{}):"v1"===e.compatibilityJSON?this.options=l({},(0,O.get)(),(0,O.transformOptions)(A.convertJSONOptions(e)),{}):this.options=l({},(0,O.get)(),this.options,(0,O.transformOptions)(e)),t||(t=function(){}),this.options.isClone||(this.modules.logger?p.default.init(n(this.modules.logger),this.options):p.default.init(null,this.options),r=new _.default(this.options),this.store=new g.default(this.options.resources,this.options),o=this.services,o.logger=p.default,o.resourceStore=this.store,o.resourceStore.on("added removed",function(e,t){o.cacheConnector.save()}),o.languageUtils=r,o.pluralResolver=new x.default(r,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON}),o.interpolator=new T.default(this.options),o.backendConnector=new E.default(n(this.modules.backend),o.resourceStore,o,this.options),o.backendConnector.on("*",function(e){ |
|||
for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];s.emit.apply(s,[e].concat(n))}),o.backendConnector.on("loaded",function(e){o.cacheConnector.save()}),o.cacheConnector=new M.default(n(this.modules.cache),o.resourceStore,o,this.options),o.cacheConnector.on("*",function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];s.emit.apply(s,[e].concat(n))}),this.modules.languageDetector&&(o.languageDetector=n(this.modules.languageDetector),o.languageDetector.init(o,this.options.detection,this.options)),this.translator=new v.default(this.services,this.options),this.translator.on("*",function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];s.emit.apply(s,[e].concat(n))})),i=["getResource","addResource","addResources","addResourceBundle","removeResourceBundle","hasResourceBundle","getResourceBundle"],i.forEach(function(e){s[e]=function(){return this.store[e].apply(this.store,arguments)}}),"v1"===this.options.compatibilityAPI&&A.appendBackwardsAPI(this),a=function(){s.changeLanguage(s.options.lng,function(e,n){s.emit("initialized",s.options),s.logger.log("initialized",s.options),t(e,n)})},this.options.resources||!this.options.initImmediate?a():setTimeout(a,0),this},t.prototype.loadResources=function(e){var t,n=this;if(e||(e=function(){}),this.options.resources)e(null);else if(t=function(){var t,r;if(n.language&&"cimode"===n.language.toLowerCase())return{v:e()};t=[],r=function(e){n.services.languageUtils.toResolveHierarchy(e).forEach(function(e){t.indexOf(e)<0&&t.push(e)})},r(n.language),n.options.preload&&n.options.preload.forEach(function(e){r(e)}),n.services.cacheConnector.load(t,n.options.ns,function(){n.services.backendConnector.load(t,n.options.ns,e)})}(),"object"===(void 0===t?"undefined":c(t)))return t.v},t.prototype.reloadResources=function(e,t){e||(e=this.languages),t||(t=this.options.ns),this.services.backendConnector.reload(e,t)},t.prototype.use=function(e){return"backend"===e.type&&(this.modules.backend=e),"cache"===e.type&&(this.modules.cache=e),("logger"===e.type||e.log&&e.warn&&e.warn)&&(this.modules.logger=e),"languageDetector"===e.type&&(this.modules.languageDetector=e),"postProcessor"===e.type&&D.default.addPostProcessor(e),this},t.prototype.changeLanguage=function(e,t){var n=this,r=function(r){e&&(n.emit("languageChanged",e),n.logger.log("languageChanged",e)),t&&t(r,function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return n.t.apply(n,t)})};!e&&this.services.languageDetector&&(e=this.services.languageDetector.detect()),e&&(this.language=e,this.languages=this.services.languageUtils.toResolveHierarchy(e),this.translator.changeLanguage(e),this.services.languageDetector&&this.services.languageDetector.cacheUserLanguage(e)),this.loadResources(function(e){r(e)})},t.prototype.getFixedT=function(e,t){var n=this,r=function e(t,r){return r=r||{},r.lng=r.lng||e.lng,r.ns=r.ns||e.ns,n.t(t,r)};return r.lng=e,r.ns=t,r},t.prototype.t=function(){ |
|||
return this.translator&&this.translator.translate.apply(this.translator,arguments)},t.prototype.exists=function(){return this.translator&&this.translator.exists.apply(this.translator,arguments)},t.prototype.setDefaultNamespace=function(e){this.options.defaultNS=e},t.prototype.loadNamespaces=function(e,t){var n=this;if(!this.options.ns)return t&&t();"string"==typeof e&&(e=[e]),e.forEach(function(e){n.options.ns.indexOf(e)<0&&n.options.ns.push(e)}),this.loadResources(t)},t.prototype.loadLanguages=function(e,t){var n,r;if("string"==typeof e&&(e=[e]),n=this.options.preload||[],r=e.filter(function(e){return n.indexOf(e)<0}),!r.length)return t();this.options.preload=n.concat(r),this.loadResources(t)},t.prototype.dir=function(e){return e||(e=this.language),e?["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam"].indexOf(this.services.languageUtils.getLanguagePartFromCode(e))>=0?"rtl":"ltr":"rtl"},t.prototype.createInstance=function(){return new t(arguments.length<=0||void 0===arguments[0]?{}:arguments[0],arguments[1])},t.prototype.cloneInstance=function(){var e=this,n=arguments.length<=0||void 0===arguments[0]?{}:arguments[0],r=arguments[1],o=new t(l({},n,this.options,{isClone:!0}),r);return["store","translator","services","language"].forEach(function(t){o[t]=e[t]}),o},t}(h.default),t.default=new L},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var o,i;Object.defineProperty(t,"__esModule",{value:!0}),o=n(720),i=r(o),t.default=i.default},function(e,t,n){var r,o,i;!function(a){o=[n(22)],r=a,void 0!==(i="function"==typeof r?r.apply(t,o):r)&&(e.exports=i)}(function(e){function t(e){return s.raw?e:encodeURIComponent(e)}function n(e){return s.raw?e:decodeURIComponent(e)}function r(e){return t(s.json?JSON.stringify(e):e+"")}function o(e){0===e.indexOf('"')&&(e=e.slice(1,-1).replace(/\\"/g,'"').replace(/\\\\/g,"\\"));try{return e=decodeURIComponent(e.replace(a," ")),s.json?JSON.parse(e):e}catch(e){}}function i(t,n){var r=s.raw?t:o(t);return e.isFunction(n)?n(r):r}var a=/\+/g,s=e.cookie=function(o,a,u){var c,l,f,p,d,h,m,g,y;if(void 0!==a&&!e.isFunction(a))return u=e.extend({},s.defaults,u),"number"==typeof u.expires&&(c=u.expires,l=u.expires=new Date,l.setTime(+l+864e5*c)),document.cookie=t(o)+"="+r(a)+(u.expires?"; expires="+u.expires.toUTCString():"")+(u.path?"; path="+u.path:"")+(u.domain?"; domain="+u.domain:"")+(u.secure?"; secure":"");for(f=o?void 0:{},p=document.cookie?document.cookie.split("; "):[],d=0,h=p.length;d<h;d++){if(m=p[d].split("="),g=n(m.shift()),y=m.join("="),o&&o===g){f=i(y,a);break}o||void 0===(y=i(y))||(f[g]=y)}return f};s.defaults={},e.removeCookie=function(t,n){return void 0!==e.cookie(t)&&(e.cookie(t,"",e.extend({},n,{expires:-1})),!e.cookie(t))}})},,function(e,t,n){function r(e){ |
|||
return n(o(e))}function o(e){return i[e]||function(){throw Error("Cannot find module '"+e+"'.")}()}var i={"./en-gb":378,"./en-gb.js":378,"./es":379,"./es.js":379,"./it":380,"./it.js":380,"./ja":381,"./ja.js":381,"./ko":382,"./ko.js":382,"./pl":383,"./pl.js":383,"./pt":385,"./pt-br":384,"./pt-br.js":384,"./pt.js":385,"./ru":386,"./ru.js":386,"./tr":387,"./tr.js":387};r.keys=function(){return Object.keys(i)},r.resolve=o,e.exports=r,r.id=724},function(e,t,n){var r,o,i;!function(n,a){"object"==typeof t&&t&&"string"!=typeof t.nodeName?a(t):(o=[t],r=a,void 0!==(i="function"==typeof r?r.apply(t,o):r)&&(e.exports=i))}(0,function(e){function t(e){return"function"==typeof e}function n(e){return g(e)?"array":typeof e}function r(e){return e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function o(e,t){return null!=e&&"object"==typeof e&&t in e}function i(e,t){return y.call(e,t)}function a(e){return!i(v,e)}function s(e){return(e+"").replace(/[&<>"'`=\/]/g,function(e){return b[e]})}function u(t,n){function o(){if(d&&!h)for(;p.length;)delete u[p.pop()];else p=[];d=!1,h=!1}function i(e){if("string"==typeof e&&(e=e.split(w,2)),!g(e)||2!==e.length)throw Error("Invalid tags: "+e);m=RegExp(r(e[0])+"\\s*"),y=RegExp("\\s*"+r(e[1])),v=RegExp("\\s*"+r("}"+e[1]))}var s,u,p,d,h,m,y,v,b,k,E,S,M,O,N,D,P;if(!t)return[];for(s=[],u=[],p=[],d=!1,h=!1,i(n||e.tags),b=new f(t);!b.eos();){if(k=b.pos,S=b.scanUntil(m))for(D=0,P=S.length;D<P;++D)M=S.charAt(D),a(M)?p.push(u.length):h=!0,u.push(["text",M,k,k+1]),k+=1,"\n"===M&&o();if(!b.scan(m))break;if(d=!0,E=b.scan(T)||"name",b.scan(_),"="===E?(S=b.scanUntil(x),b.scan(x),b.scanUntil(y)):"{"===E?(S=b.scanUntil(v),b.scan(C),b.scanUntil(y),E="&"):S=b.scanUntil(y),!b.scan(y))throw Error("Unclosed tag at "+b.pos);if(O=[E,S,k,b.pos],u.push(O),"#"===E||"^"===E)s.push(O);else if("/"===E){if(!(N=s.pop()))throw Error('Unopened section "'+S+'" at '+k);if(N[1]!==S)throw Error('Unclosed section "'+N[1]+'" at '+k)}else"name"===E||"{"===E||"&"===E?h=!0:"="===E&&i(S)}if(N=s.pop())throw Error('Unclosed section "'+N[1]+'" at '+b.pos);return l(c(u))}function c(e){var t,n,r,o,i=[];for(r=0,o=e.length;r<o;++r)(t=e[r])&&("text"===t[0]&&n&&"text"===n[0]?(n[1]+=t[1],n[3]=t[3]):(i.push(t),n=t));return i}function l(e){var t,n,r,o,i=[],a=i,s=[];for(r=0,o=e.length;r<o;++r)switch(t=e[r],t[0]){case"#":case"^":a.push(t),s.push(t),a=t[4]=[];break;case"/":n=s.pop(),n[5]=t[2],a=s.length>0?s[s.length-1][4]:i;break;default:a.push(t)}return i}function f(e){this.string=e,this.tail=e,this.pos=0}function p(e,t){this.view=e,this.cache={".":this.view},this.parent=t}function d(){this.cache={}}var h,m=Object.prototype.toString,g=Array.isArray||function(e){return"[object Array]"===m.call(e)},y=RegExp.prototype.test,v=/\S/,b={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/","`":"`","=":"="},_=/\s*/,w=/\s+/,x=/\s*=/,C=/\s*\}/,T=/#|\^|\/|>|\{|&|=|!/;f.prototype.eos=function(){return""===this.tail},f.prototype.scan=function(e){var t,n=this.tail.match(e);return n&&0===n.index?(t=n[0], |
|||
this.tail=this.tail.substring(t.length),this.pos+=t.length,t):""},f.prototype.scanUntil=function(e){var t,n=this.tail.search(e);switch(n){case-1:t=this.tail,this.tail="";break;case 0:t="";break;default:t=this.tail.substring(0,n),this.tail=this.tail.substring(n)}return this.pos+=t.length,t},p.prototype.push=function(e){return new p(e,this)},p.prototype.lookup=function(e){var n,r,i,a,s,u=this.cache;if(u.hasOwnProperty(e))n=u[e];else{for(r=this,s=!1;r;){if(e.indexOf(".")>0)for(n=r.view,i=e.split("."),a=0;null!=n&&a<i.length;)a===i.length-1&&(s=o(n,i[a])),n=n[i[a++]];else n=r.view[e],s=o(r.view,e);if(s)break;r=r.parent}u[e]=n}return t(n)&&(n=n.call(this.view)),n},d.prototype.clearCache=function(){this.cache={}},d.prototype.parse=function(e,t){var n=this.cache,r=n[e];return null==r&&(r=n[e]=u(e,t)),r},d.prototype.render=function(e,t,n){var r=this.parse(e),o=t instanceof p?t:new p(t);return this.renderTokens(r,o,n,e)},d.prototype.renderTokens=function(e,t,n,r){var o,i,a,s,u,c="";for(s=0,u=e.length;s<u;++s)a=void 0,o=e[s],i=o[0],"#"===i?a=this.renderSection(o,t,n,r):"^"===i?a=this.renderInverted(o,t,n,r):">"===i?a=this.renderPartial(o,t,n,r):"&"===i?a=this.unescapedValue(o,t):"name"===i?a=this.escapedValue(o,t):"text"===i&&(a=this.rawValue(o)),void 0!==a&&(c+=a);return c},d.prototype.renderSection=function(e,n,r,o){function i(e){return u.render(e,n,r)}var a,s,u=this,c="",l=n.lookup(e[1]);if(l){if(g(l))for(a=0,s=l.length;a<s;++a)c+=this.renderTokens(e[4],n.push(l[a]),r,o);else if("object"==typeof l||"string"==typeof l||"number"==typeof l)c+=this.renderTokens(e[4],n.push(l),r,o);else if(t(l)){if("string"!=typeof o)throw Error("Cannot use higher-order sections without the original template");l=l.call(n.view,o.slice(e[3],e[5]),i),null!=l&&(c+=l)}else c+=this.renderTokens(e[4],n,r,o);return c}},d.prototype.renderInverted=function(e,t,n,r){var o=t.lookup(e[1]);if(!o||g(o)&&0===o.length)return this.renderTokens(e[4],t,n,r)},d.prototype.renderPartial=function(e,n,r){if(r){var o=t(r)?r(e[1]):r[e[1]];return null!=o?this.renderTokens(this.parse(o),n,r,o):void 0}},d.prototype.unescapedValue=function(e,t){var n=t.lookup(e[1]);if(null!=n)return n},d.prototype.escapedValue=function(t,n){var r=n.lookup(t[1]);if(null!=r)return e.escape(r)},d.prototype.rawValue=function(e){return e[1]},e.name="mustache.js",e.version="2.2.1",e.tags=["{{","}}"],h=new d,e.clearCache=function(){return h.clearCache()},e.parse=function(e,t){return h.parse(e,t)},e.render=function(e,t,r){if("string"!=typeof e)throw new TypeError('Invalid template! Template should be a "string" but "'+n(e)+'" was given as the first argument for mustache#render(template, view, partials)');return h.render(e,t,r)},e.to_html=function(n,r,o,i){var a=e.render(n,r,o);if(!t(i))return a;i(a)},e.escape=s,e.Scanner=f,e.Context=p,e.Writer=d})},,,,,,,,,,,,,,,,function(e,t){"use strict";!function(e){function t(t){var n,r;"string"==typeof t.data&&(n=t.handler,r=t.data.toLowerCase().split(" "),t.handler=function(t){var o,i,a,s,u,c |
|||
;if(this===t.target||!/textarea|select/i.test(t.target.nodeName)&&"text"!==t.target.type)for(o="keypress"!==t.type&&e.hotkeys.specialKeys[t.which],i=String.fromCharCode(t.which).toLowerCase(),a="",s={},t.ctrlKey&&"ctrl"!==o&&(a+="ctrl+"),t.altKey&&"alt"!==o&&(a+="alt+"),t.metaKey&&!t.ctrlKey&&"meta"!==o&&(a+="meta+"),t.shiftKey&&"shift"!==o&&(a+="shift+"),o?s[a+o]=!0:(s[a+i]=!0,s[a+e.hotkeys.shiftNums[i]]=!0,"shift+"===a&&(s[e.hotkeys.shiftNums[i]]=!0)),u=0,c=r.length;u<c;u++)if(s[r[u]])return n.apply(this,arguments)})}e.hotkeys={version:"0.8",specialKeys:{8:/mac/i.test(navigator.platform)?"del":"backspace",9:"tab",13:"return",16:"shift",17:"ctrl",18:"alt",19:"pause",20:"capslock",27:"esc",32:"space",33:"pageup",34:"pagedown",35:"end",36:"home",37:"left",38:"up",39:"right",40:"down",45:"insert",46:"del",96:"0",97:"1",98:"2",99:"3",100:"4",101:"5",102:"6",103:"7",104:"8",105:"9",106:"*",107:"+",109:"-",110:".",111:"/",112:"f1",113:"f2",114:"f3",115:"f4",116:"f5",117:"f6",118:"f7",119:"f8",120:"f9",121:"f10",122:"f11",123:"f12",144:"numlock",145:"scroll",191:"/",224:"meta"},shiftNums:{"`":"~",1:"!",2:"@",3:"#",4:"$",5:"%",6:"^",7:"&",8:"*",9:"(",0:")","-":"_","=":"+",";":": ","'":'"',",":"<",".":">","/":"?","\\":"|"}},e.each(["keydown","keyup","keypress"],function(){e.event.special[this]={add:t}})}(jQuery)},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t){"use strict";!function(){var e,t,n,r,o,i;window.parent!==window&&window.CanvasRenderingContext2D&&window.TextMetrics&&(t=window.CanvasRenderingContext2D.prototype)&&t.hasOwnProperty("font")&&t.hasOwnProperty("mozTextStyle")&&"function"==typeof t.__lookupSetter__&&(n=t.__lookupSetter__("font"))&&(t.__defineSetter__("font",function(e){try{return n.call(this,e)}catch(e){if("NS_ERROR_FAILURE"!==e.name)throw e}}),r=t.measureText,e=function(){this.width=0,this.isFake=!0,this.__proto__=window.TextMetrics.prototype},t.measureText=function(t){try{return r.apply(this,arguments)}catch(t){if("NS_ERROR_FAILURE"!==t.name)throw t;return new e}},o=t.fillText,t.fillText=function(e,t,n,r){try{o.apply(this,arguments)}catch(e){if("NS_ERROR_FAILURE"!==e.name)throw e}},i=t.strokeText,t.strokeText=function(e,t,n,r){try{i.apply(this,arguments)}catch(e){if("NS_ERROR_FAILURE"!==e.name)throw e}})}()},function(e,t){!function(){var e,t,n,r,o=document.createElement("a").classList;o&&(e=Object.getPrototypeOf(o),t=e.add,n=e.remove,r=e.toggle,o.add("a","b"),o.toggle("a",!0),o.contains("b")||(e.add=function(e){for(var n=0;n<arguments.length;n++)t.call(this,arguments[n])},e.remove=function(e){for(var t=0;t<arguments.length;t++)n.call(this,arguments[t])}),o.contains("a")||(e.toggle=function(e,o){void 0===o?r.call(this,e):o?t.call(this,e):n.call(this,e)}))}()},function(e,t,n){"use strict";n(655),function(e){function t(e,t,n){for(var r=0;r<s.length;r++)s[r]||(t=t.toLowerCase()), |
|||
e.addEventListener(s[r]+t,n,!1)}function n(t){var n=t.data(l).complete;r(t),n&&e.isFunction(n)&&n()}function r(e){e.stop(!0),e.css("background-color",""),e.removeData(c),e.removeData(l)}function o(e){var t=e.data(c);t&&(!0!==t?(t--,t?(i(e),e.data(c,t)):n(e)):i(e))}function i(e){var t=e.css("background-color"),n=e.data(l),r=n.highlightColor||f,i=n.duration||p,a=n.easing||d;e.animate({"background-color":r},i,a).animate({"background-color":t},i,a,o.bind(e,e))}var a,s,u,c,l,f,p,d,h=!1,m=document.body||document.documentElement,g="animation",y="Webkit Moz O ms Khtml".split(" "),v="";if(void 0!==m.style.animationName&&(h=!0),!1===h)for(a=0;a<y.length;a++)if(void 0!==m.style[y[a]+"AnimationName"]){v=y[a],g=v+"Animation","-"+v.toLowerCase()+"-",h=!0;break}s=["webkit","moz","MS","o",""],u="flicker-",c=u+"enable",l=u+"options",f="#fbf8e9",p=400,d="swing",e.fn.highlight=function(n,o){switch(n){default:return n=void 0===n||n,this.each(function(){var r,a;h?(n=!0===n?"infinite":n,t(this,"AnimationEnd",function(){this.style[g]=""}),r=document.getElementsByTagName("html")[0].classList,r.contains("theme-dark")?this.style[g]="highlight-animation-theme-dark 0.4s ease-in-out "+n+" alternate":this.style[g]="highlight-animation 0.4s ease-in-out "+n+" alternate"):(a=e(this),a.data(c,n),a.data(l,e.extend({},o||{})),a.is(":animated")||i(a))});case!1:return this.each(function(){h?this.style[g]="":r(e(this))})}}}(jQuery)},function(e,t){!function(e){"use strict";e.fn.pixelSnap=function(){var t=.01,n=1-t;return e(this).each(function(){var r,o,i,a,s,u,c=this,l=e(c);c.getBoundingClientRect&&(r=c.getBoundingClientRect(),(r.left%1<t||r.left%1>n)&&(r.top%1<t||r.top%1>n)||(o=Math.round(parseFloat(l.css("margin-left")))||0,i=Math.round(parseFloat(l.css("margin-top")))||0,l.css({"margin-left":o+"px","margin-top":i+"px"}),a=c.getBoundingClientRect(),s=-a.left%1,s>0&&(s-=1),s<-.5&&(s+=1),u=-a.top%1,u>0&&(u-=1),u<-.5&&(u+=1),l.css({"margin-left":o+s+"px","margin-top":i+u+"px"})))}),this}}(jQuery)},function(e,t){"use strict";!function(e,t){function n(){this._state=[],this._defaults={classHolder:"sbHolder",classHolderDisabled:"sbHolderDisabled",classHolderOpen:"sbHolderOpen",classSelector:"sbSelector",classOptions:"sbOptions",classGroup:"sbGroup",classSub:"sbSub",classDisabled:"sbDisabled",classToggleOpen:"sbToggleOpen",classToggle:"sbToggle",classSeparator:"sbSeparator",useCustomPrependWithSelector:"",customPrependSelectorClass:"",speed:200,slidesUp:!1,effect:"slide",onChange:null,beforeOpen:null,onOpen:null,onClose:null}}function r(t,n,r,o){function i(){n.removeClass(t.settings.customPrependSelectorClass),t._lastSelectorPrepend&&(t._lastSelectorPrepend.remove(),delete t._lastSelectorPrepend),r.data("custom-option-prepend")&&(t.settings.customPrependSelectorClass&&n.addClass(t.settings.customPrependSelectorClass),t._lastSelectorPrepend=e(r.data("custom-option-prepend")).clone(),n[t.settings.useCustomPrependWithSelector](t._lastSelectorPrepend))}t.settings.useCustomPrependWithSelector&&(o?t._onAttachCallback=i:i())}var o="selectbox",i=!1,a=!0 |
|||
;e.extend(n.prototype,{_refreshSelectbox:function(e,t){if(!e)return i;var n=this._getInst(e);return null==n?i:(this._fillList(e,n,t),a)},_isOpenSelectbox:function(e){return e?this._getInst(e).isOpen:i},_isDisabledSelectbox:function(e){return e?this._getInst(e).isDisabled:i},_attachSelectbox:function(t,n){function r(){var t,n=this.attr("id").split("_")[1];for(t in u._state)t!==n&&u._state.hasOwnProperty(t)&&e(":input[sb='"+t+"']")[0]&&u._closeSelectbox(e(":input[sb='"+t+"']")[0])}function a(n){s.children().each(function(r){var o,i=e(this);if(i.is(":selected")){if(38==n&&r>0)return o=e(s.children()[r-1]),u._changeSelectbox(t,o.val(),o.text()),!1;if(40==n&&r<s.children().length-1)return o=e(s.children()[r+1]),u._changeSelectbox(t,o.val(),o.text()),!1}})}var s,u,c,l,f,p,d,h,m;if(this._getInst(t))return i;s=e(t),u=this,c=u._newInst(s),i,s.find("optgroup"),h=s.find("option"),h.length,s.attr("sb",c.uid),e.extend(c.settings,u._defaults,n),u._state[c.uid]=i,s.hide(),l=e("<div>",{id:"sbHolder_"+c.uid,class:c.settings.classHolder}),m=s.data("selectbox-css"),m&&l.css(m),f=e("<a>",{id:"sbSelector_"+c.uid,href:"#",class:c.settings.classSelector,click:function(n){n.preventDefault(),n.stopPropagation(),r.apply(e(this),[]);var o=e(this).attr("id").split("_")[1];u._state[o]?u._closeSelectbox(t):(u._openSelectbox(t),p.focus())},keyup:function(e){a(e.keyCode)}}),p=e("<a>",{id:"sbToggle_"+c.uid,href:"#",class:c.settings.classToggle,click:function(n){n.preventDefault(),n.stopPropagation(),r.apply(e(this),[]);var o=e(this).attr("id").split("_")[1];u._state[o]?u._closeSelectbox(t):(u._openSelectbox(t),p.focus())},keyup:function(e){a(e.keyCode)}}),e('<div class="tv-caret"></div>').appendTo(p),p.appendTo(l),d=e("<ul>",{id:"sbOptions_"+c.uid,class:c.settings.classOptions,css:{display:"none"}}),c.sbOptions=d,c.sbToggle=p,c.sbSelector=f,this._fillList(t,c),e.data(t,o,c),f.appendTo(l),d.appendTo(l),l.insertAfter(s),c._onAttachCallback&&(c._onAttachCallback(),delete c._onAttachCallback),s.is(":disabled")&&e.selectbox._disableSelectbox(t),s.change(function(){var n=e(this).val(),r=s.find("option[value='"+n+"']").text();u._changeSelectbox(t,n,r)})},_detachSelectbox:function(t){var n=this._getInst(t);if(!n)return i;e("#sbHolder_"+n.uid).remove(),delete this._state[n.uid],e.data(t,o,null),e(t).show()},_changeSelectbox:function(t,n,o){var s,u,c=this._getInst(t),l=this._get(c,"onChange");e("#sbSelector_"+c.uid).text()===o&&e("#sbOptions_"+c.uid).find('a[rel="'+n+'"]').hasClass("active")||(s=e(t).find("option[value='"+n+"']"),u=e("#sbSelector_"+c.uid),u.text(o),r(c,u,s),e("#sbOptions_"+c.uid).find(".active").removeClass("active"),e("#sbOptions_"+c.uid).find('a[rel="'+n+'"]').addClass("active"),e(t).find("option").attr("selected",i),s.attr("selected",a),l?l.apply(c.input?c.input[0]:null,[n,c]):c.input&&c.input.trigger("change"))},_enableSelectbox:function(t){var n=this._getInst(t);if(!n||!n.isDisabled)return i;e("#sbHolder_"+n.uid).removeClass(n.settings.classHolderDisabled),n.isDisabled=i,e.data(t,o,n)},_disableSelectbox:function(t){var n=this._getInst(t) |
|||
;if(!n||n.isDisabled)return i;e("#sbHolder_"+n.uid).addClass(n.settings.classHolderDisabled),n.isDisabled=a,e.data(t,o,n)},_optionSelectbox:function(t,n,r){var a=this._getInst(t);return a?null==r?a[n]:(a[n]=r,void e.data(t,o,a)):i},_openSelectbox:function(t){var n,r,i,s,u,c,l,f,p,d,h=this._getInst(t),m=this;!h||h.isOpen||h.isDisabled||(n=e("#sbOptions_"+h.uid),r=parseInt(e(window).height(),10),i=parseInt(e(window).width(),10),s=e("#sbHolder_"+h.uid).offset(),u=e(window).scrollTop(),c=n.prev().height(),l=r-(s.top-u)-c/2,f=this._get(h,"onOpen"),p=this._get(h,"beforeOpen"),d=null,p&&(d=p()),"object"==typeof d&&null!==d?n.css(d):(l>50&&!h.settings.slidesUp?n.css({bottom:"auto",top:c+2+"px",maxHeight:l-c+"px"}):n.css({top:"auto",bottom:c+2+"px",maxHeight:s.top-u-c/2+"px"}),s.left+n.width()>i?n.css("left","-"+(n.width()-n.parent().width()+3)+"px"):n.css("left","-1px")),"fade"===h.settings.effect?n.fadeIn(h.settings.speed):n.slideDown(h.settings.speed),e("#sbToggle_"+h.uid).addClass(h.settings.classToggleOpen),e("#sbHolder_"+h.uid).addClass(h.settings.classHolderOpen),this._state[h.uid]=a,h.isOpen=a,f&&f.apply(h.input?h.input[0]:null,[h]),e.data(t,o,h),e("html").unbind("click.sbClose").one("click.sbClose",function(){m._closeSelectbox(t)}))},_closeSelectbox:function(t){var n,r=this._getInst(t);r&&r.isOpen&&(n=this._get(r,"onClose"),e("#sbOptions_"+r.uid).hide(),e("#sbToggle_"+r.uid).removeClass(r.settings.classToggleOpen),e("#sbHolder_"+r.uid).removeClass(r.settings.classHolderOpen),this._state[r.uid]=i,r.isOpen=i,n&&n.apply(r.input?r.input[0]:null,[r]),e.data(t,o,r),e("html").unbind("click.sbClose"))},_newInst:function(e){return{id:e[0].id.replace(/([^A-Za-z0-9_-])/g,"\\\\$1"),input:e,uid:Math.floor(99999999*Math.random()),isOpen:i,isDisabled:i,isSelected:i,settings:{}}},_getInst:function(t){try{return e.data(t,o)}catch(e){throw"Missing instance data for this selectbox"}},_get:function(e,n){return e.settings[n]!==t?e.settings[n]:this._defaults[n]},_getOptions:function(n,o,i,s,u){var c=!(!arguments[1]||!arguments[1].sub),l=!(!arguments[1]||!arguments[1].disabled),f=this;arguments[0].each(function(n){var o,p=e(this),d=e("<li>");p.is(":selected")&&(i.sbSelector.text(p.text()),r(i,i.sbSelector,p,!0),i.isSelected=a),n===s-1&&d.addClass("last"),function(){var n,r=p.text(),a=p.data("custom-option-text"),s=a!==t?a:r;"__separator__"===p.val()?(o=e("<span>").addClass(i.settings.classSeparator),o.appendTo(d)):p.is(":disabled")||l?(o=e("<span>",{text:s}).addClass(i.settings.classDisabled),c&&o.addClass(i.settings.classSub),o.appendTo(d)):(o=e("<a>",{href:"#"+p.val(),rel:p.val(),text:s,class:"filter",click:function(t){t.preventDefault();var n=i.sbToggle;n.attr("id").split("_")[1];f._closeSelectbox(u),f._changeSelectbox(u,e(this).attr("rel"),r),n.focus()}}),p.is(":selected")&&o.addClass("active"),c&&o.addClass(i.settings.classSub),o.appendTo(d)),(n=p.data("custom-option-prepend"))&&o.prepend(n)}(),d.addClass(p.attr("class")),d.appendTo(i.sbOptions)})},_fillList:function(t,n,o){var i=this,s=e(t),u=(s.find("optgroup"), |
|||
s.find("option")),c=u.length;o||(o=0),s.children().slice(o).each(function(r){var o,a=e(this),s={};a.is("option")?i._getOptions(a,null,n,c,t):a.is("optgroup")&&(o=e("<li>"),e("<span>",{text:a.attr("label")}).addClass(n.settings.classGroup).appendTo(o),o.appendTo(n.sbOptions),a.is(":disabled")&&(s.disabled=!0),s.sub=!0,i._getOptions(a.find("option"),s,n,c,t))}),n.isSelected||(n.sbSelector.text(u.first().text()),r(n,n.sbSelector,u.first(),!0),n.isSelected=a)}}),e.fn.selectbox=function(t){var n=Array.prototype.slice.call(arguments,1);return"string"==typeof t&&"isDisabled"==t?e.selectbox["_"+t+"Selectbox"].apply(e.selectbox,[this[0]].concat(n)):"option"==t&&2==arguments.length&&"string"==typeof arguments[1]?e.selectbox["_"+t+"Selectbox"].apply(e.selectbox,[this[0]].concat(n)):this.each(function(){"string"==typeof t?e.selectbox["_"+t+"Selectbox"].apply(e.selectbox,[this].concat(n)):e.selectbox._attachSelectbox(this,t)})},e.selectbox=new n,e.selectbox.version="0.1.3"}(jQuery)},function(e,t){"use strict";!function(e){var t,n;void 0!==document.hidden?(t="hidden",n="visibilitychange"):void 0!==document.mozHidden?(t="mozHidden",n="mozvisibilitychange"):void 0!==document.msHidden?(t="msHidden",n="msvisibilitychange"):void 0!==document.webkitHidden&&(t="webkitHidden",n="webkitvisibilitychange"),e.tabvisible=!0,n&&(e(document).on(n,function(n){e.tabvisible=!document[t],e(window).trigger("visibilitychange",!document[t])}),e(document).trigger(n)),e.whenTabVisible=function(t){!n||e.tabvisible?t():e(window).one("visibilitychange",t)}}(jQuery)},function(e,t){!function(e,t){function n(t){return!e(t).parents().andSelf().filter(function(){return"hidden"===e.curCSS(this,"visibility")||e.expr.filters.hidden(this)}).length}e.ui=e.ui||{},e.ui.version||(e.extend(e.ui,{version:"@VERSION",keyCode:{ALT:18,BACKSPACE:8,CAPS_LOCK:20,COMMA:188,COMMAND:91,COMMAND_LEFT:91,COMMAND_RIGHT:93,CONTROL:17,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,INSERT:45,LEFT:37,MENU:93,NUMPAD_ADD:107,NUMPAD_DECIMAL:110,NUMPAD_DIVIDE:111,NUMPAD_ENTER:108,NUMPAD_MULTIPLY:106,NUMPAD_SUBTRACT:109,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SHIFT:16,SPACE:32,TAB:9,UP:38,WINDOWS:91}}),e.fn.extend({_focus:e.fn.focus,focus:function(t,n){return"number"==typeof t?this.each(function(){var r=this;setTimeout(function(){e(r).focus(),n&&n.call(r)},t)}):this._focus.apply(this,arguments)},scrollParent:function(){var t;return t=e.browser.msie&&/(static|relative)/.test(this.css("position"))||/absolute/.test(this.css("position"))?this.parents().filter(function(){return/(relative|absolute|fixed)/.test(e.curCSS(this,"position",1))&&/(auto|scroll)/.test(e.curCSS(this,"overflow",1)+e.curCSS(this,"overflow-y",1)+e.curCSS(this,"overflow-x",1))}).eq(0):this.parents().filter(function(){return/(auto|scroll)/.test(e.curCSS(this,"overflow",1)+e.curCSS(this,"overflow-y",1)+e.curCSS(this,"overflow-x",1))}).eq(0),/fixed/.test(this.css("position"))||!t.length?e(document):t},zIndex:function(n){if(n!==t)return this.css("zIndex",n);if(this.length)for(var r,o,i=e(this[0]);i.length&&i[0]!==document;){ |
|||
if(("absolute"===(r=i.css("position"))||"relative"===r||"fixed"===r)&&(o=parseInt(i.css("zIndex"),10),!isNaN(o)&&0!==o))return o;i=i.parent()}return 0},disableSelection:function(){return this.bind((e.support.selectstart?"selectstart":"mousedown")+".ui-disableSelection",function(e){e.preventDefault()})},enableSelection:function(){return this.unbind(".ui-disableSelection")}}),e.each(["Width","Height"],function(n,r){function o(t,n,r,o){return e.each(i,function(){n-=parseFloat(e.curCSS(t,"padding"+this,!0))||0,r&&(n-=parseFloat(e.curCSS(t,"border"+this+"Width",!0))||0),o&&(n-=parseFloat(e.curCSS(t,"margin"+this,!0))||0)}),n}var i="Width"===r?["Left","Right"]:["Top","Bottom"],a=r.toLowerCase(),s={innerWidth:e.fn.innerWidth,innerHeight:e.fn.innerHeight,outerWidth:e.fn.outerWidth,outerHeight:e.fn.outerHeight};e.fn["inner"+r]=function(n){return n===t?s["inner"+r].call(this):this.each(function(){e(this).css(a,o(this,n)+"px")})},e.fn["outer"+r]=function(t,n){return"number"!=typeof t?s["outer"+r].call(this,t):this.each(function(){e(this).css(a,o(this,t,!0,n)+"px")})}}),e.extend(e.expr[":"],{data:function(t,n,r){return!!e.data(t,r[3])},focusable:function(t){var r,o,i,a=t.nodeName.toLowerCase(),s=e.attr(t,"tabindex");return"area"===a?(r=t.parentNode,o=r.name,!(!t.href||!o||"map"!==r.nodeName.toLowerCase())&&(!!(i=e("img[usemap=#"+o+"]")[0])&&n(i))):(/input|select|textarea|button|object/.test(a)?!t.disabled:"a"==a?t.href||!isNaN(s):!isNaN(s))&&n(t)},tabbable:function(t){var n=e.attr(t,"tabindex");return(isNaN(n)||n>=0)&&e(t).is(":focusable")}}),e(function(){var t=document.body,n=t.appendChild(n=document.createElement("div"));e.extend(n.style,{minHeight:"100px",height:"auto",padding:0,borderWidth:0}),e.support.minHeight=100===n.offsetHeight,e.support.selectstart="onselectstart"in n,t.removeChild(n).style.display="none"}),e.extend(e.ui,{plugin:{add:function(t,n,r){var o,i=e.ui[t].prototype;for(o in r)i.plugins[o]=i.plugins[o]||[],i.plugins[o].push([n,r[o]])},call:function(e,t,n){var r,o=e.plugins[t];if(o&&e.element[0].parentNode)for(r=0;r<o.length;r++)e.options[o[r][0]]&&o[r][1].apply(e.element,n)}},contains:function(e,t){return document.compareDocumentPosition?16&e.compareDocumentPosition(t):e!==t&&e.contains(t)},hasScroll:function(t,n){if("hidden"===e(t).css("overflow"))return!1;var r=n&&"left"===n?"scrollLeft":"scrollTop",o=!1;return t[r]>0||(t[r]=1,o=t[r]>0,t[r]=0,o)},isOverAxis:function(e,t,n){return e>t&&e<t+n},isOver:function(t,n,r,o,i,a){return e.ui.isOverAxis(t,r,i)&&e.ui.isOverAxis(n,o,a)}}))}(jQuery)},,,function(e,t){jQuery.effects||function(e,t){function n(t){var n |
|||
;return t&&t.constructor==Array&&3==t.length?t:(n=/rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/.exec(t))?[parseInt(n[1],10),parseInt(n[2],10),parseInt(n[3],10)]:(n=/rgb\(\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*\)/.exec(t))?[2.55*parseFloat(n[1]),2.55*parseFloat(n[2]),2.55*parseFloat(n[3])]:(n=/#([a-fA-F0-9]{2})([a-fA-F0-9]{2})([a-fA-F0-9]{2})/.exec(t))?[parseInt(n[1],16),parseInt(n[2],16),parseInt(n[3],16)]:(n=/#([a-fA-F0-9])([a-fA-F0-9])([a-fA-F0-9])/.exec(t))?[parseInt(n[1]+n[1],16),parseInt(n[2]+n[2],16),parseInt(n[3]+n[3],16)]:(n=/rgba\(0, 0, 0, 0\)/.exec(t))?c.transparent:c[e.trim(t).toLowerCase()]}function r(t,r){var o;do{if(""!=(o=e.curCSS(t,r))&&"transparent"!=o||e.nodeName(t,"body"))break;r="backgroundColor"}while(t=t.parentNode);return n(o)}function o(){var e,t,n,r=document.defaultView?document.defaultView.getComputedStyle(this,null):this.currentStyle,o={};if(r&&r.length&&r[0]&&r[r[0]])for(n=r.length;n--;)e=r[n],"string"==typeof r[e]&&(t=e.replace(/\-(\w)/g,function(e,t){return t.toUpperCase()}),o[t]=r[e]);else for(e in r)"string"==typeof r[e]&&(o[e]=r[e]);return o}function i(t){var n,r;for(n in t)(null==(r=t[n])||e.isFunction(r)||n in f||/scrollbar/.test(n)||!/color/i.test(n)&&isNaN(parseFloat(r)))&&delete t[n];return t}function a(e,t){var n,r={_:0};for(n in t)e[n]!=t[n]&&(r[n]=t[n]);return r}function s(t,n,r,o){return"object"==typeof t&&(o=n,r=null,n=t,t=n.effect),e.isFunction(n)&&(o=n,r=null,n={}),("number"==typeof n||e.fx.speeds[n])&&(o=r,r=n,n={}),e.isFunction(r)&&(o=r,r=null),n=n||{},r=r||n.duration,r=e.fx.off?0:"number"==typeof r?r:r in e.fx.speeds?e.fx.speeds[r]:e.fx.speeds._default,o=o||n.complete,[t,n,r,o]}function u(t){return!(t&&"number"!=typeof t&&!e.fx.speeds[t])||"string"==typeof t&&!e.effects[t]}var c,l,f;e.effects={},e.each(["backgroundColor","borderBottomColor","borderLeftColor","borderRightColor","borderTopColor","borderColor","color","outlineColor"],function(t,o){e.fx.step[o]=function(e){e.colorInit||(e.start=r(e.elem,o),e.end=n(e.end),e.colorInit=!0),e.elem.style[o]="rgb("+Math.max(Math.min(parseInt(e.pos*(e.end[0]-e.start[0])+e.start[0],10),255),0)+","+Math.max(Math.min(parseInt(e.pos*(e.end[1]-e.start[1])+e.start[1],10),255),0)+","+Math.max(Math.min(parseInt(e.pos*(e.end[2]-e.start[2])+e.start[2],10),255),0)+")"}}),c={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],transparent:[255,255,255]},l=["add","remove","toggle"],f={border:1,borderBottom:1,borderColor:1,borderLeft:1,borderRight:1,borderTop:1,borderWidth:1,margin:1,padding:1},e.effects.animateClass=function(t,n,r,s){return e.isFunction(r)&&(s=r,r=null),this.queue("fx",function(){var u,c,f,p=e(this),d=p.attr("style")||" ",h=i(o.call(this)),m=p.attr("className");e.each(l,function(e,n){t[n]&&p[n+"Class"](t[n])}),u=i(o.call(this)),p.attr("className",m),p.animate(a(h,u),n,r,function(){e.each(l,function(e,n){t[n]&&p[n+"Class"](t[n])}),"object"==typeof p.attr("style")?(p.attr("style").cssText="",p.attr("style").cssText=d):p.attr("style",d),s&&s.apply(this,arguments)}),c=e.queue(this),f=c.splice(c.length-1,1)[0],c.splice(1,0,f),e.dequeue(this)})},e.fn.extend({_addClass:e.fn.addClass,addClass:function(t,n,r,o){return n?e.effects.animateClass.apply(this,[{add:t},n,r,o]):this._addClass(t)},_removeClass:e.fn.removeClass,removeClass:function(t,n,r,o){return n?e.effects.animateClass.apply(this,[{remove:t},n,r,o]):this._removeClass(t)},_toggleClass:e.fn.toggleClass,toggleClass:function(n,r,o,i,a){return"boolean"==typeof r||r===t?o?e.effects.animateClass.apply(this,[r?{add:n}:{remove:n},o,i,a]):this._toggleClass(n,r):e.effects.animateClass.apply(this,[{toggle:n},r,o,i])},switchClass:function(t,n,r,o,i){return e.effects.animateClass.apply(this,[{add:n,remove:t},r,o,i])}}),e.extend(e.effects,{version:"@VERSION",save:function(e,t){for(var n=0;n<t.length;n++)null!==t[n]&&e.data("ec.storage."+t[n],e[0].style[t[n]])},restore:function(e,t){for(var n=0;n<t.length;n++)null!==t[n]&&e.css(t[n],e.data("ec.storage."+t[n]))},setMode:function(e,t){return"toggle"==t&&(t=e.is(":hidden")?"show":"hide"),t},getBaseline:function(e,t){var n,r;switch(e[0]){case"top":n=0;break;case"middle":n=.5;break;case"bottom":n=1;break;default:n=e[0]/t.height}switch(e[1]){case"left":r=0;break;case"center":r=.5;break;case"right":r=1;break;default:r=e[1]/t.width}return{x:r,y:n}},createWrapper:function(t){if(t.parent().is(".ui-effects-wrapper"))return t.parent();var n={width:t.outerWidth(!0),height:t.outerHeight(!0),float:t.css("float")},r=e("<div></div>").addClass("ui-effects-wrapper").css({fontSize:"100%",background:"transparent",border:"none",margin:0,padding:0});return t.wrap(r),r=t.parent(),"static"==t.css("position")?(r.css({position:"relative"}),t.css({position:"relative"})):(e.extend(n,{position:t.css("position"),zIndex:t.css("z-index")}),e.each(["top","left","bottom","right"],function(e,r){n[r]=t.css(r),isNaN(parseInt(n[r],10))&&(n[r]="auto")}),t.css({position:"relative",top:0,left:0,right:"auto",bottom:"auto"})),r.css(n).show()},removeWrapper:function(e){return e.parent().is(".ui-effects-wrapper")?e.parent().replaceWith(e):e},setTransition:function(t,n,r,o){return o=o||{},e.each(n,function(e,n){unit=t.cssUnit(n),unit[0]>0&&(o[n]=unit[0]*r+unit[1])}),o}}),e.fn.extend({effect:function(t,n,r,o){ |
|||
var i=s.apply(this,arguments),a={options:i[1],duration:i[2],callback:i[3]},u=a.options.mode,c=e.effects[t];return e.fx.off||!c?u?this[u](a.duration,a.callback):this.each(function(){a.callback&&a.callback.call(this)}):c.call(this,a)},_show:e.fn.show,show:function(e){if(u(e))return this._show.apply(this,arguments);var t=s.apply(this,arguments);return t[1].mode="show",this.effect.apply(this,t)},_hide:e.fn.hide,hide:function(e){if(u(e))return this._hide.apply(this,arguments);var t=s.apply(this,arguments);return t[1].mode="hide",this.effect.apply(this,t)},__toggle:e.fn.toggle,toggle:function(t){if(u(t)||"boolean"==typeof t||e.isFunction(t))return this.__toggle.apply(this,arguments);var n=s.apply(this,arguments);return n[1].mode="toggle",this.effect.apply(this,n)},cssUnit:function(t){var n=this.css(t),r=[];return e.each(["em","px","%","pt"],function(e,t){n.indexOf(t)>0&&(r=[parseFloat(n),t])}),r}}),e.easing.jswing=e.easing.swing,e.extend(e.easing,{def:"easeOutQuad",swing:function(t,n,r,o,i){return e.easing[e.easing.def](t,n,r,o,i)},easeInQuad:function(e,t,n,r,o){return r*(t/=o)*t+n},easeOutQuad:function(e,t,n,r,o){return-r*(t/=o)*(t-2)+n},easeInOutQuad:function(e,t,n,r,o){return(t/=o/2)<1?r/2*t*t+n:-r/2*(--t*(t-2)-1)+n},easeInCubic:function(e,t,n,r,o){return r*(t/=o)*t*t+n},easeOutCubic:function(e,t,n,r,o){return r*((t=t/o-1)*t*t+1)+n},easeInOutCubic:function(e,t,n,r,o){return(t/=o/2)<1?r/2*t*t*t+n:r/2*((t-=2)*t*t+2)+n},easeInQuart:function(e,t,n,r,o){return r*(t/=o)*t*t*t+n},easeOutQuart:function(e,t,n,r,o){return-r*((t=t/o-1)*t*t*t-1)+n},easeInOutQuart:function(e,t,n,r,o){return(t/=o/2)<1?r/2*t*t*t*t+n:-r/2*((t-=2)*t*t*t-2)+n},easeInQuint:function(e,t,n,r,o){return r*(t/=o)*t*t*t*t+n},easeOutQuint:function(e,t,n,r,o){return r*((t=t/o-1)*t*t*t*t+1)+n},easeInOutQuint:function(e,t,n,r,o){return(t/=o/2)<1?r/2*t*t*t*t*t+n:r/2*((t-=2)*t*t*t*t+2)+n},easeInSine:function(e,t,n,r,o){return-r*Math.cos(t/o*(Math.PI/2))+r+n},easeOutSine:function(e,t,n,r,o){return r*Math.sin(t/o*(Math.PI/2))+n},easeInOutSine:function(e,t,n,r,o){return-r/2*(Math.cos(Math.PI*t/o)-1)+n},easeInExpo:function(e,t,n,r,o){return 0==t?n:r*Math.pow(2,10*(t/o-1))+n},easeOutExpo:function(e,t,n,r,o){return t==o?n+r:r*(1-Math.pow(2,-10*t/o))+n},easeInOutExpo:function(e,t,n,r,o){return 0==t?n:t==o?n+r:(t/=o/2)<1?r/2*Math.pow(2,10*(t-1))+n:r/2*(2-Math.pow(2,-10*--t))+n},easeInCirc:function(e,t,n,r,o){return-r*(Math.sqrt(1-(t/=o)*t)-1)+n},easeOutCirc:function(e,t,n,r,o){return r*Math.sqrt(1-(t=t/o-1)*t)+n},easeInOutCirc:function(e,t,n,r,o){return(t/=o/2)<1?-r/2*(Math.sqrt(1-t*t)-1)+n:r/2*(Math.sqrt(1-(t-=2)*t)+1)+n},easeInElastic:function(e,t,n,r,o){var i=0,a=r;return 0==t?n:1==(t/=o)?n+r:(i||(i=.3*o),a<Math.abs(r)?a=r:(Math.PI,Math.asin(r/a)),-a*Math.pow(2,10*(t-=1))*Math.sin((t*o-1.70158)*(2*Math.PI)/i)+n)},easeOutElastic:function(e,t,n,r,o){var i=0,a=r;return 0==t?n:1==(t/=o)?n+r:(i||(i=.3*o),a<Math.abs(r)?a=r:(Math.PI,Math.asin(r/a)),a*Math.pow(2,-10*t)*Math.sin((t*o-1.70158)*(2*Math.PI)/i)+r+n)},easeInOutElastic:function(e,t,n,r,o){var i=1.70158,a=0,s=r |
|||
;return 0==t?n:2==(t/=o/2)?n+r:(a||(a=o*(.3*1.5)),s<Math.abs(r)?(s=r,i=a/4):i=a/(2*Math.PI)*Math.asin(r/s),t<1?s*Math.pow(2,10*(t-=1))*Math.sin((t*o-i)*(2*Math.PI)/a)*-.5+n:s*Math.pow(2,-10*(t-=1))*Math.sin((t*o-i)*(2*Math.PI)/a)*.5+r+n)},easeInBack:function(e,n,r,o,i,a){return a==t&&(a=1.70158),o*(n/=i)*n*((a+1)*n-a)+r},easeOutBack:function(e,n,r,o,i,a){return a==t&&(a=1.70158),o*((n=n/i-1)*n*((a+1)*n+a)+1)+r},easeInOutBack:function(e,n,r,o,i,a){return a==t&&(a=1.70158),(n/=i/2)<1?o/2*(n*n*((1+(a*=1.525))*n-a))+r:o/2*((n-=2)*n*((1+(a*=1.525))*n+a)+2)+r},easeInBounce:function(t,n,r,o,i){return o-e.easing.easeOutBounce(t,i-n,0,o,i)+r},easeOutBounce:function(e,t,n,r,o){return(t/=o)<1/2.75?r*(7.5625*t*t)+n:t<2/2.75?r*(7.5625*(t-=1.5/2.75)*t+.75)+n:t<2.5/2.75?r*(7.5625*(t-=2.25/2.75)*t+.9375)+n:r*(7.5625*(t-=2.625/2.75)*t+.984375)+n},easeInOutBounce:function(t,n,r,o,i){return n<i/2?.5*e.easing.easeInBounce(t,2*n,0,o,i)+r:.5*e.easing.easeOutBounce(t,2*n-i,0,o,i)+.5*o+r}})}(jQuery)},function(e,t){!function(e,t){e.widget("ui.mouse",{options:{cancel:":input,option",distance:1,delay:0},_mouseInit:function(){var t=this;this.element.bind("mousedown."+this.widgetName,function(e){return t._mouseDown(e)}).bind("click."+this.widgetName,function(n){if(!0===e.data(n.target,t.widgetName+".preventClickEvent"))return e.removeData(n.target,t.widgetName+".preventClickEvent"),n.stopImmediatePropagation(),!1}),this.started=!1},_mouseDestroy:function(){this.element.unbind("."+this.widgetName)},_mouseDown:function(t){if(t.originalEvent=t.originalEvent||{},!t.originalEvent.mouseHandled){this._mouseStarted&&this._mouseUp(t),this._mouseDownEvent=t;var n=this,r=1==t.which,o="string"==typeof this.options.cancel&&e(t.target).parents().add(t.target).filter(this.options.cancel).length;return!(r&&!o&&this._mouseCapture(t))||(this.mouseDelayMet=!this.options.delay,this.mouseDelayMet||(this._mouseDelayTimer=setTimeout(function(){n.mouseDelayMet=!0},this.options.delay)),this._mouseDistanceMet(t)&&this._mouseDelayMet(t)&&(this._mouseStarted=!1!==this._mouseStart(t),!this._mouseStarted)?(t.preventDefault(),!0):(!0===e.data(t.target,this.widgetName+".preventClickEvent")&&e.removeData(t.target,this.widgetName+".preventClickEvent"),this._mouseMoveDelegate=function(e){return n._mouseMove(e)},this._mouseUpDelegate=function(e){return n._mouseUp(e)},e(document).bind("mousemove."+this.widgetName,this._mouseMoveDelegate).bind("mouseup."+this.widgetName,this._mouseUpDelegate),t.preventDefault(),t.originalEvent.mouseHandled=!0,!0))}},_mouseMove:function(t){return!e.browser.msie||document.documentMode>=9||t.button?this._mouseStarted?(this._mouseDrag(t),t.preventDefault()):(this._mouseDistanceMet(t)&&this._mouseDelayMet(t)&&(this._mouseStarted=!1!==this._mouseStart(this._mouseDownEvent,t),this._mouseStarted?this._mouseDrag(t):this._mouseUp(t)),!this._mouseStarted):this._mouseUp(t)},_mouseUp:function(t){return e(document).unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate), |
|||
this._mouseStarted&&(this._mouseStarted=!1,t.target==this._mouseDownEvent.target&&e.data(t.target,this.widgetName+".preventClickEvent",!0),this._mouseStop(t)),!1},_mouseDistanceMet:function(e){return Math.max(Math.abs(this._mouseDownEvent.pageX-e.pageX),Math.abs(this._mouseDownEvent.pageY-e.pageY))>=this.options.distance},_mouseDelayMet:function(e){return this.mouseDelayMet},_mouseStart:function(e){},_mouseDrag:function(e){},_mouseStop:function(e){},_mouseCapture:function(e){return!0}})}(jQuery)},function(e,t){!function(e,t){e.ui=e.ui||{};var n=/left|center|right/,r=/top|center|bottom/,o="center",i=e.fn.position,a=e.fn.offset;e.fn.position=function(t){if(!t||!t.of)return i.apply(this,arguments);t=e.extend({},t);var a,s,u,c=e(t.of),l=c[0],f=(t.collision||"flip").split(" "),p=t.offset?t.offset.split(" "):[0,0];return 9===l.nodeType?(a=c.width(),s=c.height(),u={top:0,left:0}):l.setTimeout?(a=c.width(),s=c.height(),u={top:c.scrollTop(),left:c.scrollLeft()}):l.preventDefault?(t.at="left top",a=s=0,u={top:t.of.pageY,left:t.of.pageX}):(a=c.outerWidth(),s=c.outerHeight(),u=c.offset()),e.each(["my","at"],function(){var e=(t[this]||"").split(" ");1===e.length&&(e=n.test(e[0])?e.concat([o]):r.test(e[0])?[o].concat(e):[o,o]),e[0]=n.test(e[0])?e[0]:o,e[1]=r.test(e[1])?e[1]:o,t[this]=e}),1===f.length&&(f[1]=f[0]),p[0]=parseInt(p[0],10)||0,1===p.length&&(p[1]=p[0]),p[1]=parseInt(p[1],10)||0,"right"===t.at[0]?u.left+=a:t.at[0]===o&&(u.left+=a/2),"bottom"===t.at[1]?u.top+=s:t.at[1]===o&&(u.top+=s/2),u.left+=p[0],u.top+=p[1],this.each(function(){var n,r=e(this),i=r.outerWidth(),c=r.outerHeight(),l=parseInt(e.curCSS(this,"marginLeft",!0))||0,d=parseInt(e.curCSS(this,"marginTop",!0))||0,h=i+l+(parseInt(e.curCSS(this,"marginRight",!0))||0),m=c+d+(parseInt(e.curCSS(this,"marginBottom",!0))||0),g=e.extend({},u);"right"===t.my[0]?g.left-=i:t.my[0]===o&&(g.left-=i/2),"bottom"===t.my[1]?g.top-=c:t.my[1]===o&&(g.top-=c/2),g.left=Math.round(g.left),g.top=Math.round(g.top),n={left:g.left-l,top:g.top-d},e.each(["left","top"],function(r,o){e.ui.position[f[r]]&&e.ui.position[f[r]][o](g,{targetWidth:a,targetHeight:s,elemWidth:i,elemHeight:c,collisionPosition:n,collisionWidth:h,collisionHeight:m,offset:p,my:t.my,at:t.at})}),e.fn.bgiframe&&r.bgiframe(),r.offset(e.extend(g,{using:t.using}))})},e.ui.position={fit:{left:function(t,n){var r=e(window),o=n.collisionPosition.left+n.collisionWidth-r.width()-r.scrollLeft();t.left=o>0?t.left-o:Math.max(t.left-n.collisionPosition.left,t.left)},top:function(t,n){var r=e(window),o=n.collisionPosition.top+n.collisionHeight-r.height()-r.scrollTop();t.top=o>0?t.top-o:Math.max(t.top-n.collisionPosition.top,t.top)}},flip:{left:function(t,n){if(n.at[0]!==o){var r=e(window),i=n.collisionPosition.left+n.collisionWidth-r.width()-r.scrollLeft(),a="left"===n.my[0]?-n.elemWidth:"right"===n.my[0]?n.elemWidth:0,s="left"===n.at[0]?n.targetWidth:-n.targetWidth,u=-2*n.offset[0];t.left+=n.collisionPosition.left<0?a+s+u:i>0?a+s+u:0}},top:function(t,n){if(n.at[1]!==o){ |
|||
var r=e(window),i=n.collisionPosition.top+n.collisionHeight-r.height()-r.scrollTop(),a="top"===n.my[1]?-n.elemHeight:"bottom"===n.my[1]?n.elemHeight:0,s="top"===n.at[1]?n.targetHeight:-n.targetHeight,u=-2*n.offset[1];t.top+=n.collisionPosition.top<0?a+s+u:i>0?a+s+u:0}}}},e.offset.setOffset||(e.offset.setOffset=function(t,n){/static/.test(e.curCSS(t,"position"))&&(t.style.position="relative");var r=e(t),o=r.offset(),i=parseInt(e.curCSS(t,"top",!0),10)||0,a=parseInt(e.curCSS(t,"left",!0),10)||0,s={top:n.top-o.top+i,left:n.left-o.left+a};"using"in n?n.using.call(t,s):r.css(s)},e.fn.offset=function(t){var n=this[0];return n&&n.ownerDocument?t?this.each(function(){e.offset.setOffset(this,t)}):a.call(this):null})}(jQuery)},,,,function(e,t){!function(e,t){var n,r;e.cleanData?(n=e.cleanData,e.cleanData=function(t){for(var r,o=0;null!=(r=t[o]);o++)e(r).triggerHandler("remove");n(t)}):(r=e.fn.remove,e.fn.remove=function(t,n){return this.each(function(){return n||t&&!e.filter(t,[this]).length||e("*",this).add([this]).each(function(){e(this).triggerHandler("remove")}),r.call(e(this),t,n)})}),e.widget=function(t,n,r){var o,i,a=t.split(".")[0];t=t.split(".")[1],o=a+"-"+t,r||(r=n,n=e.Widget),e.expr[":"][o]=function(n){return!!e.data(n,t)},e[a]=e[a]||{},e[a][t]=function(e,t){arguments.length&&this._createWidget(e,t)},i=new n,i.options=e.extend(!0,{},i.options),e[a][t].prototype=e.extend(!0,i,{namespace:a,widgetName:t,widgetEventPrefix:e[a][t].prototype.widgetEventPrefix||t,widgetBaseClass:o},r),e.widget.bridge(t,e[a][t])},e.widget.bridge=function(n,r){e.fn[n]=function(o){var i="string"==typeof o,a=Array.prototype.slice.call(arguments,1),s=this;return o=!i&&a.length?e.extend.apply(null,[!0,o].concat(a)):o,i&&"_"===o.charAt(0)?s:(i?this.each(function(){var r=e.data(this,n),i=r&&e.isFunction(r[o])?r[o].apply(r,a):r;if(i!==r&&i!==t)return s=i,!1}):this.each(function(){var t=e.data(this,n);t?t.option(o||{})._init():e.data(this,n,new r(o,this))}),s)}},e.Widget=function(e,t){arguments.length&&this._createWidget(e,t)},e.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",options:{disabled:!1},_createWidget:function(t,n){e.data(n,this.widgetName,this),this.element=e(n),this.options=e.extend(!0,{},this.options,this._getCreateOptions(),t);var r=this;this.element.bind("remove."+this.widgetName,function(){r.destroy()}),this._create(),this._trigger("create"),this._init()},_getCreateOptions:function(){return e.metadata&&e.metadata.get(this.element[0])[this.widgetName]},_create:function(){},_init:function(){},destroy:function(){this.element.unbind("."+this.widgetName).removeData(this.widgetName),this.widget().unbind("."+this.widgetName).removeAttr("aria-disabled").removeClass(this.widgetBaseClass+"-disabled ui-state-disabled")},widget:function(){return this.element},option:function(n,r){var o=n;if(0===arguments.length)return e.extend({},this.options);if("string"==typeof n){if(r===t)return this.options[n];o={},o[n]=r}return this._setOptions(o),this},_setOptions:function(t){var n=this;return e.each(t,function(e,t){n._setOption(e,t)}),this}, |
|||
_setOption:function(e,t){return this.options[e]=t,"disabled"===e&&this.widget()[t?"addClass":"removeClass"](this.widgetBaseClass+"-disabled ui-state-disabled").attr("aria-disabled",t),this},enable:function(){return this._setOption("disabled",!1)},disable:function(){return this._setOption("disabled",!0)},_trigger:function(t,n,r){var o,i,a=this.options[t];if(n=e.Event(n),n.type=(t===this.widgetEventPrefix?t:this.widgetEventPrefix+t).toLowerCase(),r=r||{},n.originalEvent)for(o=e.event.props.length;o;)i=e.event.props[--o],n[i]=n.originalEvent[i];return this.element.trigger(n,r),!(e.isFunction(a)&&!1===a.call(this.element[0],n,r)||n.isDefaultPrevented())}}}(jQuery)},function(e,t){"use strict";!function(e){var t=e(window),n=e(document),r=190,o=function(o){var i=jQuery.data(o.target);i.localScroll?o.target.scrollTop>o.target.scrollHeight-e(o.target).height()-(i.tolerance||r)&&e(this).trigger("scrolltoend"):t.scrollTop()>n.height()-t.innerHeight()-(i.tolerance||r)&&e(this).trigger("scrolltoend")};e.event.special.scrolltoend={setup:function(t,n){e(this).bind("scroll.scrolltoend",o)},teardown:function(t){e(this).unbind("scroll.scrolltoend",o)}},jQuery.event.special.scrollto={bindType:"scroll",handle:function(e){var r,o,i=e.handleObj;if(e.scrollData||(e.scrollData={scrollTop:t.scrollTop()}),r=null,"number"==typeof e.data.to)r=e.scrollData.scrollTop>e.data.to-(e.data.tolerance||0);else{if("bottom"!==e.data.to)throw Error('Special event scrollto: property "to" has unexpected value');e.scrollData.bottomOffset||(e.scrollData.bottomOffset=n.height()-t.innerHeight()),r=e.scrollData.scrollTop>e.scrollData.bottomOffset-(e.data.tolerance||0)}return o=Array.prototype.slice.apply(arguments),r?(o.push(!0),i.handler.apply(this,o)):e.data.twoway?(o.push(!1),i.handler.apply(this,o)):void 0}}}(jQuery)},,function(e,t,n){(function(t){"use strict";if(t._babelPolyfill)throw Error("only one instance of babel/polyfill is allowed");t._babelPolyfill=!0,n(608),n(580),n(581),n(582),n(551),n(550),n(579),n(570),n(571),n(572),n(573),n(574),n(575),n(576),n(577),n(578),n(553),n(554),n(555),n(556),n(557),n(558),n(559),n(560),n(561),n(562),n(563),n(564),n(565),n(566),n(567),n(568),n(569),n(602),n(605),n(604),n(600),n(601),n(603),n(606),n(607),n(549),n(548),n(544),n(546),n(540),n(541),n(543),n(542),n(547),n(545),n(598),n(583),n(552),n(599),n(584),n(585),n(586),n(587),n(588),n(591),n(589),n(590),n(592),n(593),n(594),n(595),n(597),n(596),n(609),n(611),n(610),e.exports=n(126)}).call(t,function(){return this}())},function(e,t){"use strict";!function(){var e,t,n,r,o,i,a=function(){};for(void 0===window.console&&(window.console={}),e=window.console,t=["dir","log","time","info","warn","count","clear","debug","error","group","trace","assert","dirxml","profile","timeEnd","groupEnd","profileEnd","timeStamp","exception","table","notifyFirebug","groupCollapsed","getFirebugElement","firebug","userObjects","someMethodForAssetHashChange"],n=0,r=t.length;n<r;n++)if(o=t[n],void 0===e[o])try{e[o]=a}catch(e){}i=window.onerror,window.__tv_js_errors=[], |
|||
window.onerror=function(e,t,n,r,o){var a=new Date;if(a=a.getHours()+":"+a.getMinutes()+":"+a.getSeconds()+"."+a.getMilliseconds(),null!=o?window.__tv_js_errors.push(e+" (found at "+t+", line "+n+" at time "+a+", stack:<br> "+o.stack+")<br><br>"):window.__tv_js_errors.push(e+" (found at "+t+", line "+n+" at time "+a+")"),i)try{i.apply(window,arguments)}catch(e){}}}()},function(e,t,n){"use strict";function r(e,t,n,r,o){}e.exports=r},function(e,t,n){"use strict";var r=n(66),o=n(17),i=n(438);e.exports=function(){function e(e,t,n,r,a,s){s!==i&&o(!1,"Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types")}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t};return n.checkPropTypes=r,n.PropTypes=n,n}},function(e,t,n){"use strict";var r=n(66),o=n(17),i=n(24),a=n(438),s=n(1007);e.exports=function(e,t){function n(e){var t=e&&(S&&e[S]||e[M]);if("function"==typeof t)return t}function u(e,t){return e===t?0!==e||1/e==1/t:e!==e&&t!==t}function c(e){this.message=e,this.stack=""}function l(e){function n(n,r,i,s,u,l,f){if(s=s||O,l=l||i,f!==a)if(t)o(!1,"Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");else;return null==r[i]?n?new c(null===r[i]?"The "+u+" `"+l+"` is marked as required in `"+s+"`, but its value is `null`.":"The "+u+" `"+l+"` is marked as required in `"+s+"`, but its value is `undefined`."):null:e(r,i,s,u,l)}var r;return r=n.bind(null,!1),r.isRequired=n.bind(null,!0),r}function f(e){function t(t,n,r,o,i,a){var s,u=t[n];return C(u)!==e?(s=T(u),new c("Invalid "+o+" `"+i+"` of type `"+s+"` supplied to `"+r+"`, expected `"+e+"`.")):null}return l(t)}function p(){return l(r.thatReturnsNull)}function d(e){function t(t,n,r,o,i){var s,u,l,f;if("function"!=typeof e)return new c("Property `"+i+"` of component `"+r+"` has invalid PropType notation inside arrayOf.");if(s=t[n],!Array.isArray(s))return u=C(s),new c("Invalid "+o+" `"+i+"` of type `"+u+"` supplied to `"+r+"`, expected an array.");for(l=0;l<s.length;l++)if((f=e(s,l,r,o,i+"["+l+"]",a))instanceof Error)return f;return null}return l(t)}function h(){function t(t,n,r,o,i){var a,s=t[n];return e(s)?null:(a=C(s),new c("Invalid "+o+" `"+i+"` of type `"+a+"` supplied to `"+r+"`, expected a single ReactElement."))}return l(t)}function m(e){function t(t,n,r,o,i){var a,s;return t[n]instanceof e?null:(a=e.name||O,s=E(t[n]),new c("Invalid "+o+" `"+i+"` of type `"+s+"` supplied to `"+r+"`, expected instance of `"+a+"`."))}return l(t)}function g(e){function t(t,n,r,o,i){var a,s,l=t[n];for(a=0;a<e.length;a++)if(u(l,e[a]))return null;return s=JSON.stringify(e),new c("Invalid "+o+" `"+i+"` of value `"+l+"` supplied to `"+r+"`, expected one of "+s+".")}return Array.isArray(e)?l(t):r.thatReturnsNull}function y(e){ |
|||
function t(t,n,r,o,i){var s,u,l,f;if("function"!=typeof e)return new c("Property `"+i+"` of component `"+r+"` has invalid PropType notation inside objectOf.");if(s=t[n],"object"!==(u=C(s)))return new c("Invalid "+o+" `"+i+"` of type `"+u+"` supplied to `"+r+"`, expected an object.");for(l in s)if(s.hasOwnProperty(l)&&(f=e(s,l,r,o,i+"."+l,a))instanceof Error)return f;return null}return l(t)}function v(e){function t(t,n,r,o,i){var s;for(s=0;s<e.length;s++)if(null==(0,e[s])(t,n,r,o,i,a))return null;return new c("Invalid "+o+" `"+i+"` supplied to `"+r+"`.")}var n,o;if(!Array.isArray(e))return r.thatReturnsNull;for(n=0;n<e.length;n++)if("function"!=typeof(o=e[n]))return i(!1,"Invalid argument supplid to oneOfType. Expected an array of check functions, but received %s at index %s.",k(o),n),r.thatReturnsNull;return l(t)}function b(){function e(e,t,n,r,o){return w(e[t])?null:new c("Invalid "+r+" `"+o+"` supplied to `"+n+"`, expected a ReactNode.")}return l(e)}function _(e){function t(t,n,r,o,i){var s,u,l,f=t[n],p=C(f);if("object"!==p)return new c("Invalid "+o+" `"+i+"` of type `"+p+"` supplied to `"+r+"`, expected `object`.");for(s in e)if((u=e[s])&&(l=u(f,s,r,o,i+"."+s,a)))return l;return null}return l(t)}function w(t){var r,o,i,a;switch(typeof t){case"number":case"string":case"undefined":return!0;case"boolean":return!t;case"object":if(Array.isArray(t))return t.every(w);if(null===t||e(t))return!0;if(!(r=n(t)))return!1;if(o=r.call(t),r!==t.entries){for(;!(i=o.next()).done;)if(!w(i.value))return!1}else for(;!(i=o.next()).done;)if((a=i.value)&&!w(a[1]))return!1;return!0;default:return!1}}function x(e,t){return"symbol"===e||("Symbol"===t["@@toStringTag"]||"function"==typeof Symbol&&t instanceof Symbol)}function C(e){var t=typeof e;return Array.isArray(e)?"array":e instanceof RegExp?"object":x(t,e)?"symbol":t}function T(e){if(void 0===e||null===e)return""+e;var t=C(e);if("object"===t){if(e instanceof Date)return"date";if(e instanceof RegExp)return"regexp"}return t}function k(e){var t=T(e);switch(t){case"array":case"object":return"an "+t;case"boolean":case"date":case"regexp":return"a "+t;default:return t}}function E(e){return e.constructor&&e.constructor.name?e.constructor.name:O}var S="function"==typeof Symbol&&Symbol.iterator,M="@@iterator",O="<<anonymous>>",N={array:f("array"),bool:f("boolean"),func:f("function"),number:f("number"),object:f("object"),string:f("string"),symbol:f("symbol"),any:p(),arrayOf:d,element:h(),instanceOf:m,node:b(),objectOf:y,oneOf:g,oneOfType:v,shape:_};return c.prototype=Error.prototype,N.checkPropTypes=s,N.PropTypes=N,N}},,function(e,t){"use strict";var n={Properties:{"aria-current":0,"aria-details":0,"aria-disabled":0,"aria-hidden":0,"aria-invalid":0,"aria-keyshortcuts":0,"aria-label":0,"aria-roledescription":0,"aria-autocomplete":0,"aria-checked":0,"aria-expanded":0,"aria-haspopup":0,"aria-level":0,"aria-modal":0,"aria-multiline":0,"aria-multiselectable":0,"aria-orientation":0,"aria-placeholder":0,"aria-pressed":0,"aria-readonly":0,"aria-required":0,"aria-selected":0,"aria-sort":0, |
|||
"aria-valuemax":0,"aria-valuemin":0,"aria-valuenow":0,"aria-valuetext":0,"aria-atomic":0,"aria-busy":0,"aria-live":0,"aria-relevant":0,"aria-dropeffect":0,"aria-grabbed":0,"aria-activedescendant":0,"aria-colcount":0,"aria-colindex":0,"aria-colspan":0,"aria-controls":0,"aria-describedby":0,"aria-errormessage":0,"aria-flowto":0,"aria-labelledby":0,"aria-owns":0,"aria-posinset":0,"aria-rowcount":0,"aria-rowindex":0,"aria-rowspan":0,"aria-setsize":0},DOMAttributeNames:{},DOMPropertyNames:{}};e.exports=n},function(e,t,n){"use strict";var r=n(32),o=n(362),i={focusDOMComponent:function(){o(r.getNodeFromInstance(this))}};e.exports=i},function(e,t,n){"use strict";function r(){var e=window.opera;return"object"==typeof e&&"function"==typeof e.version&&parseInt(e.version(),10)<=12}function o(e){return(e.ctrlKey||e.altKey||e.metaKey)&&!(e.ctrlKey&&e.altKey)}function i(e){switch(e){case"topCompositionStart":return y.compositionStart;case"topCompositionEnd":return y.compositionEnd;case"topCompositionUpdate":return y.compositionUpdate}}function a(e,t){return"topKeyDown"===e&&t.keyCode===S}function s(e,t){switch(e){case"topKeyUp":return-1!==E.indexOf(t.keyCode);case"topKeyDown":return t.keyCode!==S;case"topKeyPress":case"topMouseDown":case"topBlur":return!0;default:return!1}}function u(e){var t=e.detail;return"object"==typeof t&&"data"in t?t.data:null}function c(e,t,n,r){var o,c,l,f;return M?o=i(e):b?s(e,n)&&(o=y.compositionEnd):a(e,n)&&(o=y.compositionStart),o?(h&&(b||o!==y.compositionStart?o===y.compositionEnd&&b&&(c=b.getData()):b=C.getPooled(r)),l=T.getPooled(o,t,n,r),c?l.data=c:null!==(f=u(n))&&(l.data=f),w.accumulateTwoPhaseDispatches(l),l):null}function l(e,t){var n;switch(e){case"topCompositionEnd":return u(t);case"topKeyPress":return t.which!==m?null:(v=!0,g);case"topTextInput":return n=t.data,n===g&&v?null:n;default:return null}}function f(e,t){if(b){if("topCompositionEnd"===e||!M&&s(e,t)){var n=b.getData();return C.release(b),b=null,n}return null}switch(e){case"topPaste":return null;case"topKeyPress":return t.which&&!o(t)?String.fromCharCode(t.which):null;case"topCompositionEnd":return h?null:t.data;default:return null}}function p(e,t,n,r){var o,i;return(o=d?l(e,n):f(e,n))?(i=k.getPooled(y.beforeInput,t,n,r),i.data=o,w.accumulateTwoPhaseDispatches(i),i):null}var d,h,m,g,y,v,b,_,w=n(166),x=n(60),C=n(1019),T=n(1056),k=n(1059),E=[9,13,27,32],S=229,M=x.canUseDOM&&"CompositionEvent"in window,O=null;x.canUseDOM&&"documentMode"in document&&(O=document.documentMode),d=x.canUseDOM&&"TextEvent"in window&&!O&&!r(),h=x.canUseDOM&&(!M||O&&O>8&&O<=11),m=32,g=String.fromCharCode(m),y={beforeInput:{phasedRegistrationNames:{bubbled:"onBeforeInput",captured:"onBeforeInputCapture"},dependencies:["topCompositionEnd","topKeyPress","topTextInput","topPaste"]},compositionEnd:{phasedRegistrationNames:{bubbled:"onCompositionEnd",captured:"onCompositionEndCapture"},dependencies:["topBlur","topCompositionEnd","topKeyDown","topKeyPress","topKeyUp","topMouseDown"]},compositionStart:{phasedRegistrationNames:{bubbled:"onCompositionStart", |
|||
captured:"onCompositionStartCapture"},dependencies:["topBlur","topCompositionStart","topKeyDown","topKeyPress","topKeyUp","topMouseDown"]},compositionUpdate:{phasedRegistrationNames:{bubbled:"onCompositionUpdate",captured:"onCompositionUpdateCapture"},dependencies:["topBlur","topCompositionUpdate","topKeyDown","topKeyPress","topKeyUp","topMouseDown"]}},v=!1,b=null,_={eventTypes:y,extractEvents:function(e,t,n,r){return[c(e,t,n,r),p(e,t,n,r)]}},e.exports=_},function(e,t,n){"use strict";var r,o,i=n(439),a=n(60),s=(n(75),n(675),n(1065)),u=n(682),c=n(685),l=(n(24),c(function(e){return u(e)})),f=!1,p="cssFloat";if(a.canUseDOM){r=document.createElement("div").style;try{r.font=""}catch(e){f=!0}void 0===document.documentElement.style.cssFloat&&(p="styleFloat")}o={createMarkupForStyles:function(e,t){var n,r,o,i="";for(n in e)e.hasOwnProperty(n)&&(r=0===n.indexOf("--"),null!=(o=e[n])&&(i+=l(n)+":",i+=s(n,o,t,r)+";"));return i||null},setValueForStyles:function(e,t,n){var r,o,a,u,c,l;r=e.style;for(o in t)if(t.hasOwnProperty(o))if(a=0===o.indexOf("--"),u=s(o,t[o],n,a),"float"!==o&&"cssFloat"!==o||(o=p),a)r.setProperty(o,u);else if(u)r[o]=u;else if(c=f&&i.shorthandPropertyExpansions[o])for(l in c)r[l]="";else r[o]=""}},e.exports=o},function(e,t,n){"use strict";function r(e,t,n){var r=M.getPooled(A.change,e,t,n);return r.type="change",T.accumulateTwoPhaseDispatches(r),r}function o(e){var t=e.nodeName&&e.nodeName.toLowerCase();return"select"===t||"input"===t&&"file"===e.type}function i(e){var t=r(I,e,N(e));S.batchedUpdates(a,t)}function a(e){C.enqueueEvents(e),C.processEventQueue(!1)}function s(e,t){L=e,I=t,L.attachEvent("onchange",i)}function u(){L&&(L.detachEvent("onchange",i),L=null,I=null)}function c(e,t){var n=O.updateValueIfChanged(e),r=!0===t.simulated&&x._allowSimulatedPassThrough;if(n||r)return e}function l(e,t){if("topChange"===e)return t}function f(e,t,n){"topFocus"===e?(u(),s(t,n)):"topBlur"===e&&u()}function p(e,t){L=e,I=t,L.attachEvent("onpropertychange",h)}function d(){L&&(L.detachEvent("onpropertychange",h),L=null,I=null)}function h(e){"value"===e.propertyName&&c(I,e)&&i(e)}function m(e,t,n){"topFocus"===e?(d(),p(t,n)):"topBlur"===e&&d()}function g(e,t,n){if("topSelectionChange"===e||"topKeyUp"===e||"topKeyDown"===e)return c(I,n)}function y(e){var t=e.nodeName;return t&&"input"===t.toLowerCase()&&("checkbox"===e.type||"radio"===e.type)}function v(e,t,n){if("topClick"===e)return c(t,n)}function b(e,t,n){if("topInput"===e||"topChange"===e)return c(t,n)}function _(e,t){var n,r;null!=e&&(n=e._wrapperState||t._wrapperState)&&n.controlled&&"number"===t.type&&(r=""+t.value,t.getAttribute("value")!==r&&t.setAttribute("value",r))}var w,x,C=n(165),T=n(166),k=n(60),E=n(32),S=n(87),M=n(91),O=n(455),N=n(301),D=n(302),P=n(457),A={change:{phasedRegistrationNames:{bubbled:"onChange",captured:"onChangeCapture"},dependencies:["topBlur","topChange","topClick","topFocus","topInput","topKeyDown","topKeyUp","topSelectionChange"]}},L=null,I=null,j=!1;k.canUseDOM&&(j=D("change")&&(!document.documentMode||document.documentMode>8)),w=!1, |
|||
k.canUseDOM&&(w=D("input")&&(!("documentMode"in document)||document.documentMode>9)),x={eventTypes:A,_allowSimulatedPassThrough:!0,_isInputEventSupported:w,extractEvents:function(e,t,n,i){var a,s,u,c=t?E.getNodeFromInstance(t):window;if(o(c)?j?a=l:s=f:P(c)?w?a=b:(a=g,s=m):y(c)&&(a=v),a&&(u=a(e,t,n)))return r(u,n,i);s&&s(e,c,t),"topBlur"===e&&_(t,c)}},e.exports=x},function(e,t,n){"use strict";var r=n(25),o=n(137),i=n(60),a=n(678),s=n(66),u=(n(17),{dangerouslyReplaceNodeWithMarkup:function(e,t){if(i.canUseDOM||r("56"),t||r("57"),"HTML"===e.nodeName&&r("58"),"string"==typeof t){var n=a(t,s)[0];e.parentNode.replaceChild(n,e)}else o.replaceChildWithTree(e,t)}});e.exports=u},function(e,t){"use strict";var n=["ResponderEventPlugin","SimpleEventPlugin","TapEventPlugin","EnterLeaveEventPlugin","ChangeEventPlugin","SelectEventPlugin","BeforeInputEventPlugin"];e.exports=n},function(e,t,n){"use strict";var r=n(166),o=n(32),i=n(222),a={mouseEnter:{registrationName:"onMouseEnter",dependencies:["topMouseOut","topMouseOver"]},mouseLeave:{registrationName:"onMouseLeave",dependencies:["topMouseOut","topMouseOver"]}},s={eventTypes:a,extractEvents:function(e,t,n,s){var u,c,l,f,p,d,h,m,g;return"topMouseOver"===e&&(n.relatedTarget||n.fromElement)?null:"topMouseOut"!==e&&"topMouseOver"!==e?null:(s.window===s?u=s:(c=s.ownerDocument,u=c?c.defaultView||c.parentWindow:window),"topMouseOut"===e?(l=t,p=n.relatedTarget||n.toElement,f=p?o.getClosestInstanceFromNode(p):null):(l=null,f=t),l===f?null:(d=null==l?u:o.getNodeFromInstance(l),h=null==f?u:o.getNodeFromInstance(f),m=i.getPooled(a.mouseLeave,l,n,s),m.type="mouseleave",m.target=d,m.relatedTarget=h,g=i.getPooled(a.mouseEnter,f,n,s),g.type="mouseenter",g.target=h,g.relatedTarget=d,r.accumulateEnterLeaveDispatches(m,g,l,f),[m,g]))}};e.exports=s},function(e,t,n){"use strict";function r(e){this._root=e,this._startText=this.getText(),this._fallbackText=null}var o=n(30),i=n(120),a=n(454);o(r.prototype,{destructor:function(){this._root=null,this._startText=null,this._fallbackText=null},getText:function(){return"value"in this._root?this._root.value:this._root[a()]},getData:function(){var e,t,n,r,o,i,a,s;if(this._fallbackText)return this._fallbackText;for(t=this._startText,n=t.length,o=this.getText(),i=o.length,e=0;e<n&&t[e]===o[e];e++);for(a=n-e,r=1;r<=a&&t[n-r]===o[i-r];r++);return s=r>1?1-r:void 0,this._fallbackText=o.slice(e,s),this._fallbackText}}),i.addPoolingTo(r),e.exports=r},function(e,t,n){"use strict";var r=n(138),o=r.injection.MUST_USE_PROPERTY,i=r.injection.HAS_BOOLEAN_VALUE,a=r.injection.HAS_NUMERIC_VALUE,s=r.injection.HAS_POSITIVE_NUMERIC_VALUE,u=r.injection.HAS_OVERLOADED_BOOLEAN_VALUE,c={isCustomAttribute:RegExp.prototype.test.bind(RegExp("^(data|aria)-["+r.ATTRIBUTE_NAME_CHAR+"]*$")),Properties:{accept:0,acceptCharset:0,accessKey:0,action:0,allowFullScreen:i,allowTransparency:0,alt:0,as:0,async:i,autoComplete:0,autoPlay:i,capture:i,cellPadding:0,cellSpacing:0,charSet:0,challenge:0,checked:o|i,cite:0,classID:0,className:0,cols:s,colSpan:0,content:0,contentEditable:0,contextMenu:0, |
|||
controls:i,coords:0,crossOrigin:0,data:0,dateTime:0,default:i,defer:i,dir:0,disabled:i,download:u,draggable:0,encType:0,form:0,formAction:0,formEncType:0,formMethod:0,formNoValidate:i,formTarget:0,frameBorder:0,headers:0,height:0,hidden:i,high:0,href:0,hrefLang:0,htmlFor:0,httpEquiv:0,icon:0,id:0,inputMode:0,integrity:0,is:0,keyParams:0,keyType:0,kind:0,label:0,lang:0,list:0,loop:i,low:0,manifest:0,marginHeight:0,marginWidth:0,max:0,maxLength:0,media:0,mediaGroup:0,method:0,min:0,minLength:0,multiple:o|i,muted:o|i,name:0,nonce:0,noValidate:i,open:i,optimum:0,pattern:0,placeholder:0,playsInline:i,poster:0,preload:0,profile:0,radioGroup:0,readOnly:i,referrerPolicy:0,rel:0,required:i,reversed:i,role:0,rows:s,rowSpan:a,sandbox:0,scope:0,scoped:i,scrolling:0,seamless:i,selected:o|i,shape:0,size:s,sizes:0,span:s,spellCheck:0,src:0,srcDoc:0,srcLang:0,srcSet:0,start:a,step:0,style:0,summary:0,tabIndex:0,target:0,title:0,type:0,useMap:0,value:0,width:0,wmode:0,wrap:0,about:0,datatype:0,inlist:0,prefix:0,property:0,resource:0,typeof:0,vocab:0,autoCapitalize:0,autoCorrect:0,autoSave:0,color:0,itemProp:0,itemScope:i,itemType:0,itemID:0,itemRef:0,results:0,security:0,unselectable:0},DOMAttributeNames:{acceptCharset:"accept-charset",className:"class",htmlFor:"for",httpEquiv:"http-equiv"},DOMPropertyNames:{},DOMMutationMethods:{value:function(e,t){if(null==t)return e.removeAttribute("value");"number"!==e.type||!1===e.hasAttribute("value")?e.setAttribute("value",""+t):e.validity&&!e.validity.badInput&&e.ownerDocument.activeElement!==e&&e.setAttribute("value",""+t)}}};e.exports=c},function(e,t,n){(function(t){"use strict";function r(e,t,n,r){var o=void 0===e[n];null!=t&&o&&(e[n]=a(t,!0))}var o,i=n(139),a=n(456),s=(n(293),n(303)),u=n(459);n(24);o={instantiateChildren:function(e,t,n,o){if(null==e)return null;var i={};return u(e,r,i),i},updateChildren:function(e,t,n,r,o,u,c,l,f){var p,d,h,m,g,y;if(t||e){for(p in t)t.hasOwnProperty(p)&&(d=e&&e[p],h=d&&d._currentElement,m=t[p],null!=d&&s(h,m)?(i.receiveComponent(d,m,o,l),t[p]=d):(d&&(r[p]=i.getHostNode(d),i.unmountComponent(d,!1)),g=a(m,!0),t[p]=g,y=i.mountComponent(g,o,u,c,l,f),n.push(y)));for(p in e)!e.hasOwnProperty(p)||t&&t.hasOwnProperty(p)||(d=e[p],r[p]=i.getHostNode(d),i.unmountComponent(d,!1))}},unmountChildren:function(e,t){var n,r;for(n in e)e.hasOwnProperty(n)&&(r=e[n],i.unmountComponent(r,t))}},e.exports=o}).call(t,n(436))},function(e,t,n){"use strict";var r=n(289),o=n(1029),i={processChildrenUpdates:o.dangerouslyProcessChildrenUpdates,replaceNodeWithMarkup:r.dangerouslyReplaceNodeWithMarkup};e.exports=i},function(e,t,n){"use strict";function r(e){}function o(e,t){}function i(e){return!(!e.prototype||!e.prototype.isReactComponent)}function a(e){return!(!e.prototype||!e.prototype.isPureReactComponent)}var s,u,c,l,f,p,d=n(25),h=n(30),m=n(140),g=n(295),y=n(92),v=n(296),b=n(167),_=(n(75),n(449)),w=n(139);s=n(202),n(17),u=n(260),c=n(303),n(24),l={ImpureClass:0,PureClass:1,StatelessFunctional:2},r.prototype.render=function(){ |
|||
var e=b.get(this)._currentElement.type,t=e(this.props,this.context,this.updater);return o(e,t),t},f=1,p={construct:function(e){this._currentElement=e,this._rootNodeID=0,this._compositeType=null,this._instance=null,this._hostParent=null,this._hostContainerInfo=null,this._updateBatchNumber=null,this._pendingElement=null,this._pendingStateQueue=null,this._pendingReplaceState=!1,this._pendingForceUpdate=!1,this._renderedNodeType=null,this._renderedComponent=null,this._context=null,this._mountOrder=0,this._topLevelWrapper=null,this._pendingCallbacks=null,this._calledComponentWillUnmount=!1},mountComponent:function(e,t,n,u){var c,p,h,g,y,v,_,w,x;return this._context=u,this._mountOrder=f++,this._hostParent=t,this._hostContainerInfo=n,c=this._currentElement.props,p=this._processContext(u),h=this._currentElement.type,g=e.getUpdateQueue(),y=i(h),v=this._constructComponent(y,c,p,g),y||null!=v&&null!=v.render?a(h)?this._compositeType=l.PureClass:this._compositeType=l.ImpureClass:(_=v,o(h,_),null===v||!1===v||m.isValidElement(v)||d("105",h.displayName||h.name||"Component"),v=new r(h),this._compositeType=l.StatelessFunctional),v.props=c,v.context=p,v.refs=s,v.updater=g,this._instance=v,b.set(v,this),w=v.state,void 0===w&&(v.state=w=null),("object"!=typeof w||Array.isArray(w))&&d("106",this.getName()||"ReactCompositeComponent"),this._pendingStateQueue=null,this._pendingReplaceState=!1,this._pendingForceUpdate=!1,x=v.unstable_handleError?this.performInitialMountWithErrorHandling(_,t,n,e,u):this.performInitialMount(_,t,n,e,u),v.componentDidMount&&e.getReactMountReady().enqueue(v.componentDidMount,v),x},_constructComponent:function(e,t,n,r){return this._constructComponentWithoutOwner(e,t,n,r)},_constructComponentWithoutOwner:function(e,t,n,r){var o=this._currentElement.type;return e?new o(t,n,r):o(t,n,r)},performInitialMountWithErrorHandling:function(e,t,n,r,o){var i,a=r.checkpoint();try{i=this.performInitialMount(e,t,n,r,o)}catch(s){r.rollback(a),this._instance.unstable_handleError(s),this._pendingStateQueue&&(this._instance.state=this._processPendingState(this._instance.props,this._instance.context)),a=r.checkpoint(),this._renderedComponent.unmountComponent(!0),r.rollback(a),i=this.performInitialMount(e,t,n,r,o)}return i},performInitialMount:function(e,t,n,r,o){var i,a,s=this._instance,u=0;return s.componentWillMount&&(s.componentWillMount(),this._pendingStateQueue&&(s.state=this._processPendingState(s.props,s.context))),void 0===e&&(e=this._renderValidatedComponent()),i=_.getType(e),this._renderedNodeType=i,a=this._instantiateReactComponent(e,i!==_.EMPTY),this._renderedComponent=a,w.mountComponent(a,r,t,n,this._processChildContext(o),u)},getHostNode:function(){return w.getHostNode(this._renderedComponent)},unmountComponent:function(e){var t,n;this._renderedComponent&&(t=this._instance,t.componentWillUnmount&&!t._calledComponentWillUnmount&&(t._calledComponentWillUnmount=!0,e?(n=this.getName()+".componentWillUnmount()",v.invokeGuardedCallback(n,t.componentWillUnmount.bind(t))):t.componentWillUnmount()), |
|||
this._renderedComponent&&(w.unmountComponent(this._renderedComponent,e),this._renderedNodeType=null,this._renderedComponent=null,this._instance=null),this._pendingStateQueue=null,this._pendingReplaceState=!1,this._pendingForceUpdate=!1,this._pendingCallbacks=null,this._pendingElement=null,this._context=null,this._rootNodeID=0,this._topLevelWrapper=null,b.remove(t))},_maskContext:function(e){var t,n,r=this._currentElement.type,o=r.contextTypes;if(!o)return s;t={};for(n in o)t[n]=e[n];return t},_processContext:function(e){var t=this._maskContext(e);return t},_processChildContext:function(e){var t,n,r=this._currentElement.type,o=this._instance;if(o.getChildContext&&(t=o.getChildContext()),t){"object"!=typeof r.childContextTypes&&d("107",this.getName()||"ReactCompositeComponent");for(n in t)n in r.childContextTypes||d("108",this.getName()||"ReactCompositeComponent",n);return h({},e,t)}return e},_checkContextTypes:function(e,t,n){},receiveComponent:function(e,t,n){var r=this._currentElement,o=this._context;this._pendingElement=null,this.updateComponent(t,r,e,o,n)},performUpdateIfNecessary:function(e){null!=this._pendingElement?w.receiveComponent(this,this._pendingElement,e,this._context):null!==this._pendingStateQueue||this._pendingForceUpdate?this.updateComponent(e,this._currentElement,this._currentElement,this._context,this._context):this._updateBatchNumber=null},updateComponent:function(e,t,n,r,o){var i,a,s,c,f,p,h=this._instance;null==h&&d("136",this.getName()||"ReactCompositeComponent"),i=!1,this._context===o?a=h.context:(a=this._processContext(o),i=!0),s=t.props,c=n.props,t!==n&&(i=!0),i&&h.componentWillReceiveProps&&h.componentWillReceiveProps(c,a),f=this._processPendingState(c,a),p=!0,this._pendingForceUpdate||(h.shouldComponentUpdate?p=h.shouldComponentUpdate(c,f,a):this._compositeType===l.PureClass&&(p=!u(s,c)||!u(h.state,f))),this._updateBatchNumber=null,p?(this._pendingForceUpdate=!1,this._performComponentUpdate(n,c,f,a,e,o)):(this._currentElement=n,this._context=o,h.props=c,h.state=f,h.context=a)},_processPendingState:function(e,t){var n,r,o,i=this._instance,a=this._pendingStateQueue,s=this._pendingReplaceState;if(this._pendingReplaceState=!1,this._pendingStateQueue=null,!a)return i.state;if(s&&1===a.length)return a[0];for(n=h({},s?a[0]:i.state),r=s?1:0;r<a.length;r++)o=a[r],h(n,"function"==typeof o?o.call(i,n,e,t):o);return n},_performComponentUpdate:function(e,t,n,r,o,i){var a,s,u,c=this._instance,l=!!c.componentDidUpdate;l&&(a=c.props,s=c.state,u=c.context),c.componentWillUpdate&&c.componentWillUpdate(t,n,r),this._currentElement=e,this._context=i,c.props=t,c.state=n,c.context=r,this._updateRenderedComponent(o,i),l&&o.getReactMountReady().enqueue(c.componentDidUpdate.bind(c,a,s,u),c)},_updateRenderedComponent:function(e,t){var n,r,o,i,a=this._renderedComponent,s=a._currentElement,u=this._renderValidatedComponent(),l=0;c(s,u)?w.receiveComponent(a,u,e,this._processChildContext(t)):(n=w.getHostNode(a),w.unmountComponent(a,!1),r=_.getType(u),this._renderedNodeType=r, |
|||
o=this._instantiateReactComponent(u,r!==_.EMPTY),this._renderedComponent=o,i=w.mountComponent(o,e,this._hostParent,this._hostContainerInfo,this._processChildContext(t),l),this._replaceNodeWithMarkup(n,i,a))},_replaceNodeWithMarkup:function(e,t,n){g.replaceNodeWithMarkup(e,t,n)},_renderValidatedComponentWithoutOwnerOrContext:function(){var e=this._instance;return e.render()},_renderValidatedComponent:function(){var e;if(this._compositeType!==l.StatelessFunctional){y.current=this;try{e=this._renderValidatedComponentWithoutOwnerOrContext()}finally{y.current=null}}else e=this._renderValidatedComponentWithoutOwnerOrContext();return null===e||!1===e||m.isValidElement(e)||d("109",this.getName()||"ReactCompositeComponent"),e},attachRef:function(e,t){var n,r,o=this.getPublicInstance();null==o&&d("110"),n=t.getPublicInstance(),r=o.refs===s?o.refs={}:o.refs,r[e]=n},detachRef:function(e){delete this.getPublicInstance().refs[e]},getName:function(){var e=this._currentElement.type,t=this._instance&&this._instance.constructor;return e.displayName||t&&t.displayName||e.name||t&&t.name||null},getPublicInstance:function(){var e=this._instance;return this._compositeType===l.StatelessFunctional?null:e},_instantiateReactComponent:null},e.exports=p},function(e,t,n){"use strict";var r,o=n(32),i=n(1037),a=n(448),s=n(139),u=n(87),c=n(1050),l=n(1066),f=n(453),p=n(1073);n(24);i.inject(),r={findDOMNode:l,render:a.render,unmountComponentAtNode:a.unmountComponentAtNode,version:c,unstable_batchedUpdates:u.batchedUpdates,unstable_renderSubtreeIntoContainer:p},"undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.inject&&__REACT_DEVTOOLS_GLOBAL_HOOK__.inject({ComponentTree:{getClosestInstanceFromNode:o.getClosestInstanceFromNode,getNodeFromInstance:function(e){return e._renderedComponent&&(e=f(e)),e?o.getNodeFromInstance(e):null}},Mount:a,Reconciler:s}),e.exports=r},function(e,t,n){"use strict";function r(e){var t,n;return e&&(t=e._currentElement._owner||null)&&(n=t.getName())?" This DOM node was rendered by `"+n+"`.":""}function o(e,t){t&&(b[e._tag]&&(null!=t.children||null!=t.dangerouslySetInnerHTML)&&T("137",e._tag,e._currentElement._owner?" Check the render method of "+e._currentElement._owner.getName()+".":""),null!=t.dangerouslySetInnerHTML&&(null!=t.children&&T("60"),"object"==typeof t.dangerouslySetInnerHTML&&J in t.dangerouslySetInnerHTML||T("61")),null!=t.style&&"object"!=typeof t.style&&T("62",r(e)))}function i(e,t,n,r){var o,i,s;r instanceof W||(o=e._hostContainerInfo,i=o._node&&o._node.nodeType===ee,s=i?o._node:o._ownerDocument,G(t,s),r.getReactMountReady().enqueue(a,{inst:e,registrationName:t,listener:n}))}function a(){var e=this;P.putListener(e.inst,e.registrationName,e.listener)}function s(){var e=this;R.postMountWrapper(e)}function u(){var e=this;H.postMountWrapper(e)}function c(){var e=this;F.postMountWrapper(e)}function l(){V.track(this)}function f(){var e,t,n=this;switch(n._rootNodeID||T("63"),e=$(n),e||T("64"),n._tag){case"iframe":case"object": |
|||
n._wrapperState.listeners=[L.trapBubbledEvent("topLoad","load",e)];break;case"video":case"audio":n._wrapperState.listeners=[];for(t in g)g.hasOwnProperty(t)&&n._wrapperState.listeners.push(L.trapBubbledEvent(t,g[t],e));break;case"source":n._wrapperState.listeners=[L.trapBubbledEvent("topError","error",e)];break;case"img":n._wrapperState.listeners=[L.trapBubbledEvent("topError","error",e),L.trapBubbledEvent("topLoad","load",e)];break;case"form":n._wrapperState.listeners=[L.trapBubbledEvent("topReset","reset",e),L.trapBubbledEvent("topSubmit","submit",e)];break;case"input":case"select":case"textarea":n._wrapperState.listeners=[L.trapBubbledEvent("topInvalid","invalid",e)]}}function p(){U.postUpdateWrapper(this)}function d(e){x.call(w,e)||(_.test(e)||T("65",e),w[e]=!0)}function h(e,t){return e.indexOf("-")>=0||null!=t.is}function m(e){var t=e.type;d(t),this._currentElement=e,this._tag=t.toLowerCase(),this._namespaceURI=null,this._renderedChildren=null,this._previousStyle=null,this._previousStyleCopy=null,this._hostNode=null,this._hostParent=null,this._rootNodeID=0,this._domID=0,this._hostContainerInfo=null,this._wrapperState=null,this._topLevelWrapper=null,this._flags=0}var g,y,v,b,_,w,x,C,T=n(25),k=n(30),E=n(1012),S=n(1014),M=n(137),O=n(290),N=n(138),D=n(441),P=n(165),A=n(291),L=n(221),I=n(442),j=n(32),R=n(1030),F=n(1031),U=n(443),H=n(1034),Y=(n(75),n(1043)),W=n(1048),B=(n(66),n(224)),V=(n(17),n(302),n(260),n(455)),q=(n(304),n(24),I),z=P.deleteListener,$=j.getNodeFromInstance,G=L.listenTo,K=A.registrationNameModules,X={string:!0,number:!0},Q="style",J="__html",Z={children:null,dangerouslySetInnerHTML:null,suppressContentEditableWarning:null},ee=11;g={topAbort:"abort",topCanPlay:"canplay",topCanPlayThrough:"canplaythrough",topDurationChange:"durationchange",topEmptied:"emptied",topEncrypted:"encrypted",topEnded:"ended",topError:"error",topLoadedData:"loadeddata",topLoadedMetadata:"loadedmetadata",topLoadStart:"loadstart",topPause:"pause",topPlay:"play",topPlaying:"playing",topProgress:"progress",topRateChange:"ratechange",topSeeked:"seeked",topSeeking:"seeking",topStalled:"stalled",topSuspend:"suspend",topTimeUpdate:"timeupdate",topVolumeChange:"volumechange",topWaiting:"waiting"},y={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0},v={listing:!0,pre:!0,textarea:!0},b=k({menuitem:!0},y),_=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,w={},x={}.hasOwnProperty,C=1,m.displayName="ReactDOMComponent",m.Mixin={mountComponent:function(e,t,n,r){var i,a,p,d,h,m,g,v,b,_,w;switch(this._rootNodeID=C++,this._domID=n._idCounter++,this._hostParent=t,this._hostContainerInfo=n,i=this._currentElement.props,this._tag){case"audio":case"form":case"iframe":case"img":case"link":case"object":case"source":case"video":this._wrapperState={listeners:null},e.getReactMountReady().enqueue(f,this);break;case"input":R.mountWrapper(this,i,t),i=R.getHostProps(this,i),e.getReactMountReady().enqueue(l,this),e.getReactMountReady().enqueue(f,this);break;case"option":F.mountWrapper(this,i,t), |
|||
i=F.getHostProps(this,i);break;case"select":U.mountWrapper(this,i,t),i=U.getHostProps(this,i),e.getReactMountReady().enqueue(f,this);break;case"textarea":H.mountWrapper(this,i,t),i=H.getHostProps(this,i),e.getReactMountReady().enqueue(l,this),e.getReactMountReady().enqueue(f,this)}switch(o(this,i),null!=t?(a=t._namespaceURI,p=t._tag):n._tag&&(a=n._namespaceURI,p=n._tag),(null==a||a===O.svg&&"foreignobject"===p)&&(a=O.html),a===O.html&&("svg"===this._tag?a=O.svg:"math"===this._tag&&(a=O.mathml)),this._namespaceURI=a,e.useCreateElement?(h=n._ownerDocument,a===O.html?"script"===this._tag?(g=h.createElement("div"),v=this._currentElement.type,g.innerHTML="<"+v+"></"+v+">",m=g.removeChild(g.firstChild)):m=i.is?h.createElement(this._currentElement.type,i.is):h.createElement(this._currentElement.type):m=h.createElementNS(a,this._currentElement.type),j.precacheNode(this,m),this._flags|=q.hasCachedChildNodes,this._hostParent||D.setAttributeForRoot(m),this._updateDOMProperties(null,i,e),b=M(m),this._createInitialChildren(e,i,r,b),d=b):(_=this._createOpenTagMarkupAndPutListeners(e,i),w=this._createContentMarkup(e,i,r),d=!w&&y[this._tag]?_+"/>":_+">"+w+"</"+this._currentElement.type+">"),this._tag){case"input":e.getReactMountReady().enqueue(s,this),i.autoFocus&&e.getReactMountReady().enqueue(E.focusDOMComponent,this);break;case"textarea":e.getReactMountReady().enqueue(u,this),i.autoFocus&&e.getReactMountReady().enqueue(E.focusDOMComponent,this);break;case"select":case"button":i.autoFocus&&e.getReactMountReady().enqueue(E.focusDOMComponent,this);break;case"option":e.getReactMountReady().enqueue(c,this)}return d},_createOpenTagMarkupAndPutListeners:function(e,t){var n,r,o,a="<"+this._currentElement.type;for(n in t)t.hasOwnProperty(n)&&null!=(r=t[n])&&(K.hasOwnProperty(n)?r&&i(this,n,r,e):(n===Q&&(r&&(r=this._previousStyleCopy=k({},t.style)),r=S.createMarkupForStyles(r,this)),o=null,null!=this._tag&&h(this._tag,t)?Z.hasOwnProperty(n)||(o=D.createMarkupForCustomAttribute(n,r)):o=D.createMarkupForProperty(n,r),o&&(a+=" "+o)));return e.renderToStaticMarkup?a:(this._hostParent||(a+=" "+D.createMarkupForRoot()),a+=" "+D.createMarkupForID(this._domID))},_createContentMarkup:function(e,t,n){var r,o,i,a="",s=t.dangerouslySetInnerHTML;return null!=s?null!=s.__html&&(a=s.__html):(r=X[typeof t.children]?t.children:null,o=null!=r?null:t.children,null!=r?a=B(r):null!=o&&(i=this.mountChildren(o,e,n),a=i.join(""))),v[this._tag]&&"\n"===a.charAt(0)?"\n"+a:a},_createInitialChildren:function(e,t,n,r){var o,i,a,s,u=t.dangerouslySetInnerHTML;if(null!=u)null!=u.__html&&M.queueHTML(r,u.__html);else if(o=X[typeof t.children]?t.children:null,i=null!=o?null:t.children,null!=o)""!==o&&M.queueText(r,o);else if(null!=i)for(a=this.mountChildren(i,e,n),s=0;s<a.length;s++)M.queueChild(r,a[s])},receiveComponent:function(e,t,n){var r=this._currentElement;this._currentElement=e,this.updateComponent(t,r,e,n)},updateComponent:function(e,t,n,r){var i=t.props,a=this._currentElement.props;switch(this._tag){case"input":i=R.getHostProps(this,i),a=R.getHostProps(this,a) |
|||
;break;case"option":i=F.getHostProps(this,i),a=F.getHostProps(this,a);break;case"select":i=U.getHostProps(this,i),a=U.getHostProps(this,a);break;case"textarea":i=H.getHostProps(this,i),a=H.getHostProps(this,a)}switch(o(this,a),this._updateDOMProperties(i,a,e),this._updateDOMChildren(i,a,e,r),this._tag){case"input":R.updateWrapper(this);break;case"textarea":H.updateWrapper(this);break;case"select":e.getReactMountReady().enqueue(p,this)}},_updateDOMProperties:function(e,t,n){var r,o,a,s,u,c,l;for(r in e)if(!t.hasOwnProperty(r)&&e.hasOwnProperty(r)&&null!=e[r])if(r===Q){s=this._previousStyleCopy;for(o in s)s.hasOwnProperty(o)&&(a=a||{},a[o]="");this._previousStyleCopy=null}else K.hasOwnProperty(r)?e[r]&&z(this,r):h(this._tag,e)?Z.hasOwnProperty(r)||D.deleteValueForAttribute($(this),r):(N.properties[r]||N.isCustomAttribute(r))&&D.deleteValueForProperty($(this),r);for(r in t)if(u=t[r],c=r===Q?this._previousStyleCopy:null!=e?e[r]:void 0,t.hasOwnProperty(r)&&u!==c&&(null!=u||null!=c))if(r===Q)if(u?u=this._previousStyleCopy=k({},u):this._previousStyleCopy=null,c){for(o in c)!c.hasOwnProperty(o)||u&&u.hasOwnProperty(o)||(a=a||{},a[o]="");for(o in u)u.hasOwnProperty(o)&&c[o]!==u[o]&&(a=a||{},a[o]=u[o])}else a=u;else K.hasOwnProperty(r)?u?i(this,r,u,n):c&&z(this,r):h(this._tag,t)?Z.hasOwnProperty(r)||D.setValueForAttribute($(this),r,u):(N.properties[r]||N.isCustomAttribute(r))&&(l=$(this),null!=u?D.setValueForProperty(l,r,u):D.deleteValueForProperty(l,r));a&&S.setValueForStyles($(this),a,this)},_updateDOMChildren:function(e,t,n,r){var o=X[typeof e.children]?e.children:null,i=X[typeof t.children]?t.children:null,a=e.dangerouslySetInnerHTML&&e.dangerouslySetInnerHTML.__html,s=t.dangerouslySetInnerHTML&&t.dangerouslySetInnerHTML.__html,u=null!=o?null:e.children,c=null!=i?null:t.children,l=null!=o||null!=a,f=null!=i||null!=s;null!=u&&null==c?this.updateChildren(null,n,r):l&&!f&&this.updateTextContent(""),null!=i?o!==i&&this.updateTextContent(""+i):null!=s?a!==s&&this.updateMarkup(""+s):null!=c&&this.updateChildren(c,n,r)},getHostNode:function(){return $(this)},unmountComponent:function(e){var t,n;switch(this._tag){case"audio":case"form":case"iframe":case"img":case"link":case"object":case"source":case"video":if(t=this._wrapperState.listeners)for(n=0;n<t.length;n++)t[n].remove();break;case"input":case"textarea":V.stopTracking(this);break;case"html":case"head":case"body":T("66",this._tag)}this.unmountChildren(e),j.uncacheNode(this),P.deleteAllListeners(this),this._rootNodeID=0,this._domID=0,this._wrapperState=null},getPublicInstance:function(){return $(this)}},k(m.prototype,m.Mixin,Y.Mixin),e.exports=m},function(e,t,n){"use strict";function r(e,t){var n={_topLevelWrapper:e,_idCounter:1,_ownerDocument:t?t.nodeType===o?t:t.ownerDocument:null,_node:t,_tag:t?t.nodeName.toLowerCase():null,_namespaceURI:t?t.namespaceURI:null};return n}var o=(n(304),9);e.exports=r},function(e,t,n){"use strict";var r=n(30),o=n(137),i=n(32),a=function(e){this._currentElement=null,this._hostNode=null,this._hostParent=null,this._hostContainerInfo=null, |
|||
this._domID=0};r(a.prototype,{mountComponent:function(e,t,n,r){var a,s,u,c=n._idCounter++;return this._domID=c,this._hostParent=t,this._hostContainerInfo=n,a=" react-empty: "+this._domID+" ",e.useCreateElement?(s=n._ownerDocument,u=s.createComment(a),i.precacheNode(this,u),o(u)):e.renderToStaticMarkup?"":"\x3c!--"+a+"--\x3e"},receiveComponent:function(){},getHostNode:function(){return i.getNodeFromInstance(this)},unmountComponent:function(){i.uncacheNode(this)}}),e.exports=a},function(e,t){"use strict";var n={useCreateElement:!0,useFiber:!1};e.exports=n},function(e,t,n){"use strict";var r=n(289),o=n(32),i={dangerouslyProcessChildrenUpdates:function(e,t){var n=o.getNodeFromInstance(e);r.processUpdates(n,t)}};e.exports=i},function(e,t,n){"use strict";function r(){this._rootNodeID&&p.updateWrapper(this)}function o(e){return"checkbox"===e.type||"radio"===e.type?null!=e.checked:null!=e.value}function i(e){var t,n,o,i,s,u,p,d=this._currentElement.props,h=c.executeOnChange(d,e);if(f.asap(r,this),t=d.name,"radio"===d.type&&null!=t){for(n=l.getNodeFromInstance(this),o=n;o.parentNode;)o=o.parentNode;for(i=o.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),s=0;s<i.length;s++)(u=i[s])!==n&&u.form===n.form&&(p=l.getInstanceFromNode(u),p||a("90"),f.asap(r,p))}return h}var a=n(25),s=n(30),u=n(441),c=n(294),l=n(32),f=n(87),p=(n(17),n(24),{getHostProps:function(e,t){var n=c.getValue(t),r=c.getChecked(t);return s({type:void 0,step:void 0,min:void 0,max:void 0},t,{defaultChecked:void 0,defaultValue:void 0,value:null!=n?n:e._wrapperState.initialValue,checked:null!=r?r:e._wrapperState.initialChecked,onChange:e._wrapperState.onChange})},mountWrapper:function(e,t){var n;n=t.defaultValue,e._wrapperState={initialChecked:null!=t.checked?t.checked:t.defaultChecked,initialValue:null!=t.value?t.value:n,listeners:null,onChange:i.bind(e),controlled:o(t)}},updateWrapper:function(e){var t,n,r,o,i=e._currentElement.props;t=i.checked,null!=t&&u.setValueForProperty(l.getNodeFromInstance(e),"checked",t||!1),n=l.getNodeFromInstance(e),r=c.getValue(i),null!=r?0===r&&""===n.value?n.value="0":"number"===i.type?(o=parseFloat(n.value,10)||0,(r!=o||r==o&&n.value!=r)&&(n.value=""+r)):n.value!==""+r&&(n.value=""+r):(null==i.value&&null!=i.defaultValue&&n.defaultValue!==""+i.defaultValue&&(n.defaultValue=""+i.defaultValue),null==i.checked&&null!=i.defaultChecked&&(n.defaultChecked=!!i.defaultChecked))},postMountWrapper:function(e){var t,n=e._currentElement.props,r=l.getNodeFromInstance(e);switch(n.type){case"submit":case"reset":break;case"color":case"date":case"datetime":case"datetime-local":case"month":case"time":case"week":r.value="",r.value=r.defaultValue;break;default:r.value=r.value}t=r.name,""!==t&&(r.name=""),r.defaultChecked=!r.defaultChecked,r.defaultChecked=!r.defaultChecked,""!==t&&(r.name=t)}});e.exports=p},function(e,t,n){"use strict";function r(e){var t="";return i.Children.forEach(e,function(e){null!=e&&("string"==typeof e||"number"==typeof e?t+=e:u||(u=!0))}),t}var o=n(30),i=n(140),a=n(32),s=n(443),u=(n(24),!1),c={ |
|||
mountWrapper:function(e,t,n){var o,i,a,u,c;if(o=null,null!=n&&(i=n,"optgroup"===i._tag&&(i=i._hostParent),null!=i&&"select"===i._tag&&(o=s.getSelectValueContext(i))),a=null,null!=o)if(u=null!=t.value?t.value+"":r(t.children),a=!1,Array.isArray(o)){for(c=0;c<o.length;c++)if(""+o[c]===u){a=!0;break}}else a=""+o===u;e._wrapperState={selected:a}},postMountWrapper:function(e){var t,n=e._currentElement.props;null!=n.value&&(t=a.getNodeFromInstance(e),t.setAttribute("value",n.value))},getHostProps:function(e,t){var n,i=o({selected:void 0,children:void 0},t);return null!=e._wrapperState.selected&&(i.selected=e._wrapperState.selected),n=r(t.children),n&&(i.children=n),i}};e.exports=c},function(e,t,n){"use strict";function r(e,t,n,r){return e===n&&t===r}function o(e){var t,n,r=document.selection,o=r.createRange(),i=o.text.length,a=o.duplicate();return a.moveToElementText(e),a.setEndPoint("EndToStart",o),t=a.text.length,n=t+i,{start:t,end:n}}function i(e){var t,n,o,i,a,s,u,c,l,f,p,d,h,m=window.getSelection&&window.getSelection();if(!m||0===m.rangeCount)return null;t=m.anchorNode,n=m.anchorOffset,o=m.focusNode,i=m.focusOffset,a=m.getRangeAt(0);try{a.startContainer.nodeType,a.endContainer.nodeType}catch(e){return null}return s=r(m.anchorNode,m.anchorOffset,m.focusNode,m.focusOffset),u=s?0:(""+a).length,c=a.cloneRange(),c.selectNodeContents(e),c.setEnd(a.startContainer,a.startOffset),l=r(c.startContainer,c.startOffset,c.endContainer,c.endOffset),f=l?0:(""+c).length,p=f+u,d=document.createRange(),d.setStart(t,n),d.setEnd(o,i),h=d.collapsed,{start:h?p:f,end:h?f:p}}function a(e,t){var n,r,o=document.selection.createRange().duplicate();void 0===t.end?(n=t.start,r=n):t.start>t.end?(n=t.end,r=t.start):(n=t.start,r=t.end),o.moveToElementText(e),o.moveStart("character",n),o.setEndPoint("EndToStart",o),o.moveEnd("character",r-n),o.select()}function s(e,t){var n,r,o,i,a,s,u,f;window.getSelection&&(n=window.getSelection(),r=e[l()].length,o=Math.min(t.start,r),i=void 0===t.end?o:Math.min(t.end,r),!n.extend&&o>i&&(a=i,i=o,o=a),s=c(e,o),u=c(e,i),s&&u&&(f=document.createRange(),f.setStart(s.node,s.offset),n.removeAllRanges(),o>i?(n.addRange(f),n.extend(u.node,u.offset)):(f.setEnd(u.node,u.offset),n.addRange(f))))}var u=n(60),c=n(1070),l=n(454),f=u.canUseDOM&&"selection"in document&&!("getSelection"in window),p={getOffsets:f?o:i,setOffsets:f?a:s};e.exports=p},function(e,t,n){"use strict";var r=n(25),o=n(30),i=n(289),a=n(137),s=n(32),u=n(224),c=(n(17),n(304),function(e){this._currentElement=e,this._stringText=""+e,this._hostNode=null,this._hostParent=null,this._domID=0,this._mountIndex=0,this._closingComment=null,this._commentNodes=null});o(c.prototype,{mountComponent:function(e,t,n,r){var o,i,c,l,f,p,d,h;return o=n._idCounter++,i=" react-text: "+o+" ",c=" /react-text ",this._domID=o,this._hostParent=t,e.useCreateElement?(l=n._ownerDocument,f=l.createComment(i),p=l.createComment(c),d=a(l.createDocumentFragment()),a.queueChild(d,a(f)),this._stringText&&a.queueChild(d,a(l.createTextNode(this._stringText))),a.queueChild(d,a(p)), |
|||
s.precacheNode(this,f),this._closingComment=p,d):(h=u(this._stringText),e.renderToStaticMarkup?h:"\x3c!--"+i+"--\x3e"+h+"\x3c!--"+c+"--\x3e")},receiveComponent:function(e,t){var n,r;e!==this._currentElement&&(this._currentElement=e,(n=""+e)!==this._stringText&&(this._stringText=n,r=this.getHostNode(),i.replaceDelimitedText(r[0],r[1],n)))},getHostNode:function(){var e,t,n=this._commentNodes;if(n)return n;if(!this._closingComment)for(e=s.getNodeFromInstance(this),t=e.nextSibling;;){if(null==t&&r("67",this._domID),8===t.nodeType&&" /react-text "===t.nodeValue){this._closingComment=t;break}t=t.nextSibling}return n=[this._hostNode,this._closingComment],this._commentNodes=n,n},unmountComponent:function(){this._closingComment=null,this._commentNodes=null,s.uncacheNode(this)}}),e.exports=c},function(e,t,n){"use strict";function r(){this._rootNodeID&&l.updateWrapper(this)}function o(e){var t=this._currentElement.props,n=s.executeOnChange(t,e);return c.asap(r,this),n}var i=n(25),a=n(30),s=n(294),u=n(32),c=n(87),l=(n(17),n(24),{getHostProps:function(e,t){return null!=t.dangerouslySetInnerHTML&&i("91"),a({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue,onChange:e._wrapperState.onChange})},mountWrapper:function(e,t){var n,r,a,u;n=s.getValue(t),r=n,null==n&&(a=t.defaultValue,u=t.children,null!=u&&(null!=a&&i("92"),Array.isArray(u)&&(u.length<=1||i("93"),u=u[0]),a=""+u),null==a&&(a=""),r=a),e._wrapperState={initialValue:""+r,listeners:null,onChange:o.bind(e)}},updateWrapper:function(e){var t,n=e._currentElement.props,r=u.getNodeFromInstance(e),o=s.getValue(n);null!=o&&(t=""+o,t!==r.value&&(r.value=t),null==n.defaultValue&&(r.defaultValue=t)),null!=n.defaultValue&&(r.defaultValue=n.defaultValue)},postMountWrapper:function(e){var t=u.getNodeFromInstance(e),n=t.textContent;n===e._wrapperState.initialValue&&(t.value=n)}});e.exports=l},function(e,t,n){"use strict";function r(e,t){var n,r,o,i,a;"_hostNode"in e||u("33"),"_hostNode"in t||u("33"),n=0;for(r=e;r;r=r._hostParent)n++;for(o=0,i=t;i;i=i._hostParent)o++;for(;n-o>0;)e=e._hostParent,n--;for(;o-n>0;)t=t._hostParent,o--;for(a=n;a--;){if(e===t)return e;e=e._hostParent,t=t._hostParent}return null}function o(e,t){"_hostNode"in e||u("35"),"_hostNode"in t||u("35");for(;t;){if(t===e)return!0;t=t._hostParent}return!1}function i(e){return"_hostNode"in e||u("36"),e._hostParent}function a(e,t,n){for(var r,o=[];e;)o.push(e),e=e._hostParent;for(r=o.length;r-- >0;)t(o[r],"captured",n);for(r=0;r<o.length;r++)t(o[r],"bubbled",n)}function s(e,t,n,o,i){for(var a,s,u=e&&t?r(e,t):null,c=[];e&&e!==u;)c.push(e),e=e._hostParent;for(a=[];t&&t!==u;)a.push(t),t=t._hostParent;for(s=0;s<c.length;s++)n(c[s],"bubbled",o);for(s=a.length;s-- >0;)n(a[s],"captured",i)}var u=n(25);n(17);e.exports={isAncestor:o,getLowestCommonAncestor:r,getParentInstance:i,traverseTwoPhase:a,traverseEnterLeave:s}},function(e,t,n){"use strict";function r(){this.reinitializeTransaction()}var o,i,a=n(30),s=n(87),u=n(223),c=n(66),l={initialize:c,close:function(){i.isBatchingUpdates=!1}},f={initialize:c, |
|||
close:s.flushBatchedUpdates.bind(s)},p=[f,l];a(r.prototype,u,{getTransactionWrappers:function(){return p}}),o=new r,i={isBatchingUpdates:!1,batchedUpdates:function(e,t,n,r,a,s){var u=i.isBatchingUpdates;return i.isBatchingUpdates=!0,u?e(t,n,r,a,s):o.perform(e,null,t,n,r,a,s)}},e.exports=i},function(e,t,n){"use strict";function r(){C||(C=!0,v.EventEmitter.injectReactEventListener(y),v.EventPluginHub.injectEventPluginOrder(s),v.EventPluginUtils.injectComponentTree(p),v.EventPluginUtils.injectTreeTraversal(h),v.EventPluginHub.injectEventPluginsByName({SimpleEventPlugin:x,EnterLeaveEventPlugin:u,ChangeEventPlugin:a,SelectEventPlugin:w,BeforeInputEventPlugin:i}),v.HostComponent.injectGenericComponentClass(f),v.HostComponent.injectTextComponentClass(m),v.DOMProperty.injectDOMPropertyConfig(o),v.DOMProperty.injectDOMPropertyConfig(c),v.DOMProperty.injectDOMPropertyConfig(_),v.EmptyComponent.injectEmptyComponentFactory(function(e){return new d(e)}),v.Updates.injectReconcileTransaction(b),v.Updates.injectBatchingStrategy(g),v.Component.injectEnvironment(l))}var o=n(1011),i=n(1013),a=n(1015),s=n(1017),u=n(1018),c=n(1020),l=n(1022),f=n(1025),p=n(32),d=n(1027),h=n(1035),m=n(1033),g=n(1036),y=n(1040),v=n(1041),b=n(1046),_=n(1051),w=n(1052),x=n(1053),C=!1;e.exports={inject:r}},function(e,t){"use strict";var n="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;e.exports=n},function(e,t,n){"use strict";function r(e){o.enqueueEvents(e),o.processEventQueue(!1)}var o=n(165),i={handleTopLevel:function(e,t,n,i){r(o.extractEvents(e,t,n,i))}};e.exports=i},function(e,t,n){"use strict";function r(e){for(var t,n;e._hostParent;)e=e._hostParent;return t=p.getNodeFromInstance(e),n=t.parentNode,p.getClosestInstanceFromNode(n)}function o(e,t){this.topLevelType=e,this.nativeEvent=t,this.ancestors=[]}function i(e){var t,n=h(e.nativeEvent),o=p.getClosestInstanceFromNode(n),i=o;do{e.ancestors.push(i),i=i&&r(i)}while(i);for(t=0;t<e.ancestors.length;t++)o=e.ancestors[t],s._handleTopLevel(e.topLevelType,o,e.nativeEvent,h(e.nativeEvent))}function a(e){e(m(window))}var s,u=n(30),c=n(361),l=n(60),f=n(120),p=n(32),d=n(87),h=n(301),m=n(680);u(o.prototype,{destructor:function(){this.topLevelType=null,this.nativeEvent=null,this.ancestors.length=0}}),f.addPoolingTo(o,f.twoArgumentPooler),s={_enabled:!0,_handleTopLevel:null,WINDOW_HANDLE:l.canUseDOM?window:null,setHandleTopLevel:function(e){s._handleTopLevel=e},setEnabled:function(e){s._enabled=!!e},isEnabled:function(){return s._enabled},trapBubbledEvent:function(e,t,n){return n?c.listen(n,t,s.dispatchEvent.bind(null,e)):null},trapCapturedEvent:function(e,t,n){return n?c.capture(n,t,s.dispatchEvent.bind(null,e)):null},monitorScrollValue:function(e){var t=a.bind(null,e);c.listen(window,"scroll",t)},dispatchEvent:function(e,t){if(s._enabled){var n=o.getPooled(e,t);try{d.batchedUpdates(i,n)}finally{o.release(n)}}}},e.exports=s},function(e,t,n){"use strict";var r=n(138),o=n(165),i=n(292),a=n(295),s=n(444),u=n(221),c=n(446),l=n(87),f={Component:a.injection,DOMProperty:r.injection, |
|||
EmptyComponent:s.injection,EventPluginHub:o.injection,EventPluginUtils:i.injection,EventEmitter:u.injection,HostComponent:c.injection,Updates:l.injection};e.exports=f},function(e,t,n){"use strict";var r=n(1064),o=/\/?>/,i=/^<\!\-\-/,a={CHECKSUM_ATTR_NAME:"data-react-checksum",addChecksumToMarkup:function(e){var t=r(e);return i.test(e)?e:e.replace(o," "+a.CHECKSUM_ATTR_NAME+'="'+t+'"$&')},canReuseMarkup:function(e,t){var n=t.getAttribute(a.CHECKSUM_ATTR_NAME);return n=n&&parseInt(n,10),r(e)===n}};e.exports=a},function(e,t,n){"use strict";function r(e,t,n){return{type:"INSERT_MARKUP",content:e,fromIndex:null,fromNode:null,toIndex:n,afterNode:t}}function o(e,t,n){return{type:"MOVE_EXISTING",content:null,fromIndex:e._mountIndex,fromNode:d.getHostNode(e),toIndex:n,afterNode:t}}function i(e,t){return{type:"REMOVE_NODE",content:null,fromIndex:e._mountIndex,fromNode:t,toIndex:null,afterNode:null}}function a(e){return{type:"SET_MARKUP",content:e,fromIndex:null,fromNode:null,toIndex:null,afterNode:null}}function s(e){return{type:"TEXT_CONTENT",content:e,fromIndex:null,fromNode:null,toIndex:null,afterNode:null}}function u(e,t){return t&&(e=e||[],e.push(t)),e}function c(e,t){p.processChildrenUpdates(e,t)}var l,f=n(25),p=n(295),d=(n(167),n(75),n(92),n(139)),h=n(1021),m=(n(66),n(1067));n(17);l={Mixin:{_reconcilerInstantiateChildren:function(e,t,n){return h.instantiateChildren(e,t,n)},_reconcilerUpdateChildren:function(e,t,n,r,o,i){var a,s=0;return a=m(t,s),h.updateChildren(e,a,n,r,o,this,this._hostContainerInfo,i,s),a},mountChildren:function(e,t,n){var r,o,i,a,s,u,c=this._reconcilerInstantiateChildren(e,t,n);this._renderedChildren=c,r=[],o=0;for(i in c)c.hasOwnProperty(i)&&(a=c[i],s=0,u=d.mountComponent(a,t,this,this._hostContainerInfo,n,s),a._mountIndex=o++,r.push(u));return r},updateTextContent:function(e){var t,n,r=this._renderedChildren;h.unmountChildren(r,!1);for(t in r)r.hasOwnProperty(t)&&f("118");n=[s(e)],c(this,n)},updateMarkup:function(e){var t,n,r=this._renderedChildren;h.unmountChildren(r,!1);for(t in r)r.hasOwnProperty(t)&&f("118");n=[a(e)],c(this,n)},updateChildren:function(e,t,n){this._updateChildren(e,t,n)},_updateChildren:function(e,t,n){var r,o,i,a,s,l,f,p,h=this._renderedChildren,m={},g=[],y=this._reconcilerUpdateChildren(h,e,g,m,t,n);if(y||h){r=null,i=0,a=0,s=0,l=null;for(o in y)y.hasOwnProperty(o)&&(f=h&&h[o],p=y[o],f===p?(r=u(r,this.moveChild(f,l,i,a)),a=Math.max(f._mountIndex,a),f._mountIndex=i):(f&&(a=Math.max(f._mountIndex,a)),r=u(r,this._mountChildAtIndex(p,g[s],l,i,t,n)),s++),i++,l=d.getHostNode(p));for(o in m)m.hasOwnProperty(o)&&(r=u(r,this._unmountChild(h[o],m[o])));r&&c(this,r),this._renderedChildren=y}},unmountChildren:function(e){var t=this._renderedChildren;h.unmountChildren(t,e),this._renderedChildren=null},moveChild:function(e,t,n,r){if(e._mountIndex<r)return o(e,t,n)},createChild:function(e,t,n){return r(n,t,e._mountIndex)},removeChild:function(e,t){return i(e,t)},_mountChildAtIndex:function(e,t,n,r,o,i){return e._mountIndex=r,this.createChild(e,n,t)},_unmountChild:function(e,t){ |
|||
var n=this.removeChild(e,t);return e._mountIndex=null,n}}},e.exports=l},function(e,t,n){"use strict";function r(e){return!(!e||"function"!=typeof e.attachRef||"function"!=typeof e.detachRef)}var o=n(25),i=(n(17),{addComponentAsRefTo:function(e,t,n){r(n)||o("119"),n.attachRef(t,e)},removeComponentAsRefFrom:function(e,t,n){r(n)||o("120");var i=n.getPublicInstance();i&&i.refs[t]===e.getPublicInstance()&&n.detachRef(t)}});e.exports=i},function(e,t){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,n){"use strict";function r(e){this.reinitializeTransaction(),this.renderToStaticMarkup=!1,this.reactMountReady=a.getPooled(null),this.useCreateElement=e}var o,i=n(30),a=n(440),s=n(120),u=n(221),c=n(447),l=(n(75),n(223)),f=n(297),p={initialize:c.getSelectionInformation,close:c.restoreSelection},d={initialize:function(){var e=u.isEnabled();return u.setEnabled(!1),e},close:function(e){u.setEnabled(e)}},h={initialize:function(){this.reactMountReady.reset()},close:function(){this.reactMountReady.notifyAll()}},m=[p,d,h];o={getTransactionWrappers:function(){return m},getReactMountReady:function(){return this.reactMountReady},getUpdateQueue:function(){return f},checkpoint:function(){return this.reactMountReady.checkpoint()},rollback:function(e){this.reactMountReady.rollback(e)},destructor:function(){a.release(this.reactMountReady),this.reactMountReady=null}},i(r.prototype,l,o),s.addPoolingTo(r),e.exports=r},function(e,t,n){"use strict";function r(e,t,n){"function"==typeof e?e(t.getPublicInstance()):i.addComponentAsRefTo(t,e,n)}function o(e,t,n){"function"==typeof e?e(null):i.removeComponentAsRefFrom(t,e,n)}var i=n(1044),a={};a.attachRefs=function(e,t){if(null!==t&&"object"==typeof t){var n=t.ref;null!=n&&r(n,e,t._owner)}},a.shouldUpdateRefs=function(e,t){var n,r,o=null,i=null;return null!==e&&"object"==typeof e&&(o=e.ref,i=e._owner),n=null,r=null,null!==t&&"object"==typeof t&&(n=t.ref,r=t._owner),o!==n||"string"==typeof n&&r!==i},a.detachRefs=function(e,t){if(null!==t&&"object"==typeof t){var n=t.ref;null!=n&&o(n,e,t._owner)}},e.exports=a},function(e,t,n){"use strict";function r(e){this.reinitializeTransaction(),this.renderToStaticMarkup=e,this.useCreateElement=!1,this.updateQueue=new c(this)}var o,i,a=n(30),s=n(120),u=n(223),c=(n(75),n(1049)),l=[];o={enqueue:function(){}},i={getTransactionWrappers:function(){return l},getReactMountReady:function(){return o},getUpdateQueue:function(){return this.updateQueue},destructor:function(){},checkpoint:function(){},rollback:function(){}},a(r.prototype,u,i),s.addPoolingTo(r),e.exports=r},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){}var i=n(297),a=(n(24),function(){function e(t){r(this,e),this.transaction=t}return e.prototype.isMounted=function(e){return!1},e.prototype.enqueueCallback=function(e,t,n){this.transaction.isInTransaction()&&i.enqueueCallback(e,t,n)},e.prototype.enqueueForceUpdate=function(e){ |
|||
this.transaction.isInTransaction()?i.enqueueForceUpdate(e):o(e,"forceUpdate")},e.prototype.enqueueReplaceState=function(e,t){this.transaction.isInTransaction()?i.enqueueReplaceState(e,t):o(e,"replaceState")},e.prototype.enqueueSetState=function(e,t){this.transaction.isInTransaction()?i.enqueueSetState(e,t):o(e,"setState")},e}());e.exports=a},function(e,t){"use strict";e.exports="15.6.1"},function(e,t){"use strict";var n={xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace"},r={accentHeight:"accent-height",accumulate:0,additive:0,alignmentBaseline:"alignment-baseline",allowReorder:"allowReorder",alphabetic:0,amplitude:0,arabicForm:"arabic-form",ascent:0,attributeName:"attributeName",attributeType:"attributeType",autoReverse:"autoReverse",azimuth:0,baseFrequency:"baseFrequency",baseProfile:"baseProfile",baselineShift:"baseline-shift",bbox:0,begin:0,bias:0,by:0,calcMode:"calcMode",capHeight:"cap-height",clip:0,clipPath:"clip-path",clipRule:"clip-rule",clipPathUnits:"clipPathUnits",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",contentScriptType:"contentScriptType",contentStyleType:"contentStyleType",cursor:0,cx:0,cy:0,d:0,decelerate:0,descent:0,diffuseConstant:"diffuseConstant",direction:0,display:0,divisor:0,dominantBaseline:"dominant-baseline",dur:0,dx:0,dy:0,edgeMode:"edgeMode",elevation:0,enableBackground:"enable-background",end:0,exponent:0,externalResourcesRequired:"externalResourcesRequired",fill:0,fillOpacity:"fill-opacity",fillRule:"fill-rule",filter:0,filterRes:"filterRes",filterUnits:"filterUnits",floodColor:"flood-color",floodOpacity:"flood-opacity",focusable:0,fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",format:0,from:0,fx:0,fy:0,g1:0,g2:0,glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",glyphRef:"glyphRef",gradientTransform:"gradientTransform",gradientUnits:"gradientUnits",hanging:0,horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",ideographic:0,imageRendering:"image-rendering",in:0,in2:0,intercept:0,k:0,k1:0,k2:0,k3:0,k4:0,kernelMatrix:"kernelMatrix",kernelUnitLength:"kernelUnitLength",kerning:0,keyPoints:"keyPoints",keySplines:"keySplines",keyTimes:"keyTimes",lengthAdjust:"lengthAdjust",letterSpacing:"letter-spacing",lightingColor:"lighting-color",limitingConeAngle:"limitingConeAngle",local:0,markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",markerHeight:"markerHeight",markerUnits:"markerUnits",markerWidth:"markerWidth",mask:0,maskContentUnits:"maskContentUnits",maskUnits:"maskUnits",mathematical:0,mode:0,numOctaves:"numOctaves",offset:0,opacity:0,operator:0,order:0,orient:0,orientation:0,origin:0,overflow:0,overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order", |
|||
panose1:"panose-1",pathLength:"pathLength",patternContentUnits:"patternContentUnits",patternTransform:"patternTransform",patternUnits:"patternUnits",pointerEvents:"pointer-events",points:0,pointsAtX:"pointsAtX",pointsAtY:"pointsAtY",pointsAtZ:"pointsAtZ",preserveAlpha:"preserveAlpha",preserveAspectRatio:"preserveAspectRatio",primitiveUnits:"primitiveUnits",r:0,radius:0,refX:"refX",refY:"refY",renderingIntent:"rendering-intent",repeatCount:"repeatCount",repeatDur:"repeatDur",requiredExtensions:"requiredExtensions",requiredFeatures:"requiredFeatures",restart:0,result:0,rotate:0,rx:0,ry:0,scale:0,seed:0,shapeRendering:"shape-rendering",slope:0,spacing:0,specularConstant:"specularConstant",specularExponent:"specularExponent",speed:0,spreadMethod:"spreadMethod",startOffset:"startOffset",stdDeviation:"stdDeviation",stemh:0,stemv:0,stitchTiles:"stitchTiles",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",string:0,stroke:0,strokeDasharray:"stroke-dasharray",strokeDashoffset:"stroke-dashoffset",strokeLinecap:"stroke-linecap",strokeLinejoin:"stroke-linejoin",strokeMiterlimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",surfaceScale:"surfaceScale",systemLanguage:"systemLanguage",tableValues:"tableValues",targetX:"targetX",targetY:"targetY",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",textLength:"textLength",to:0,transform:0,u1:0,u2:0,underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicode:0,unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",values:0,vectorEffect:"vector-effect",version:0,vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",viewBox:"viewBox",viewTarget:"viewTarget",visibility:0,widths:0,wordSpacing:"word-spacing",writingMode:"writing-mode",x:0,xHeight:"x-height",x1:0,x2:0,xChannelSelector:"xChannelSelector",xlinkActuate:"xlink:actuate",xlinkArcrole:"xlink:arcrole",xlinkHref:"xlink:href",xlinkRole:"xlink:role",xlinkShow:"xlink:show",xlinkTitle:"xlink:title",xlinkType:"xlink:type",xmlBase:"xml:base",xmlns:0,xmlnsXlink:"xmlns:xlink",xmlLang:"xml:lang",xmlSpace:"xml:space",y:0,y1:0,y2:0,yChannelSelector:"yChannelSelector",z:0,zoomAndPan:"zoomAndPan"},o={Properties:{},DOMAttributeNamespaces:{xlinkActuate:n.xlink,xlinkArcrole:n.xlink,xlinkHref:n.xlink,xlinkRole:n.xlink,xlinkShow:n.xlink,xlinkTitle:n.xlink,xlinkType:n.xlink,xmlBase:n.xml,xmlLang:n.xml,xmlSpace:n.xml},DOMAttributeNames:{}};Object.keys(r).forEach(function(e){o.Properties[e]=0,r[e]&&(o.DOMAttributeNames[e]=r[e])}),e.exports=o},function(e,t,n){"use strict";function r(e){var t,n;return"selectionStart"in e&&u.hasSelectionCapabilities(e)?{start:e.selectionStart,end:e.selectionEnd}:window.getSelection?(t=window.getSelection(),{anchorNode:t.anchorNode,anchorOffset:t.anchorOffset, |
|||
focusNode:t.focusNode,focusOffset:t.focusOffset}):document.selection?(n=document.selection.createRange(),{parentElement:n.parentElement(),text:n.text,top:n.boundingTop,left:n.boundingLeft}):void 0}function o(e,t){var n,o;return v||null==m||m!==l()?null:(n=r(m),y&&p(y,n)?null:(y=n,o=c.getPooled(h.select,g,e,t),o.type="select",o.target=m,i.accumulateTwoPhaseDispatches(o),o))}var i=n(166),a=n(60),s=n(32),u=n(447),c=n(91),l=n(363),f=n(457),p=n(260),d=a.canUseDOM&&"documentMode"in document&&document.documentMode<=11,h={select:{phasedRegistrationNames:{bubbled:"onSelect",captured:"onSelectCapture"},dependencies:["topBlur","topContextMenu","topFocus","topKeyDown","topKeyUp","topMouseDown","topMouseUp","topSelectionChange"]}},m=null,g=null,y=null,v=!1,b=!1,_={eventTypes:h,extractEvents:function(e,t,n,r){if(!b)return null;var i=t?s.getNodeFromInstance(t):window;switch(e){case"topFocus":(f(i)||"true"===i.contentEditable)&&(m=i,g=t,y=null);break;case"topBlur":m=null,g=null,y=null;break;case"topMouseDown":v=!0;break;case"topContextMenu":case"topMouseUp":return v=!1,o(n,r);case"topSelectionChange":if(d)break;case"topKeyDown":case"topKeyUp":return o(n,r)}return null},didPutListener:function(e,t,n){"onSelect"===t&&(b=!0)}};e.exports=_},function(e,t,n){"use strict";function r(e){return"."+e._rootNodeID}function o(e){return"button"===e||"input"===e||"select"===e||"textarea"===e}var i,a,s=n(25),u=n(361),c=n(166),l=n(32),f=n(1054),p=n(1055),d=n(91),h=n(1058),m=n(1060),g=n(222),y=n(1057),v=n(1061),b=n(1062),_=n(168),w=n(1063),x=n(66),C=n(299),T=(n(17),{}),k={};["abort","animationEnd","animationIteration","animationStart","blur","canPlay","canPlayThrough","click","contextMenu","copy","cut","doubleClick","drag","dragEnd","dragEnter","dragExit","dragLeave","dragOver","dragStart","drop","durationChange","emptied","encrypted","ended","error","focus","input","invalid","keyDown","keyPress","keyUp","load","loadedData","loadedMetadata","loadStart","mouseDown","mouseMove","mouseOut","mouseOver","mouseUp","paste","pause","play","playing","progress","rateChange","reset","scroll","seeked","seeking","stalled","submit","suspend","timeUpdate","touchCancel","touchEnd","touchMove","touchStart","transitionEnd","volumeChange","waiting","wheel"].forEach(function(e){var t=e[0].toUpperCase()+e.slice(1),n="on"+t,r="top"+t,o={phasedRegistrationNames:{bubbled:n,captured:n+"Capture"},dependencies:[r]};T[e]=o,k[r]=o}),i={},a={eventTypes:T,extractEvents:function(e,t,n,r){var o,i,a=k[e];if(!a)return null;switch(e){case"topAbort":case"topCanPlay":case"topCanPlayThrough":case"topDurationChange":case"topEmptied":case"topEncrypted":case"topEnded":case"topError":case"topInput":case"topInvalid":case"topLoad":case"topLoadedData":case"topLoadedMetadata":case"topLoadStart":case"topPause":case"topPlay":case"topPlaying":case"topProgress":case"topRateChange":case"topReset":case"topSeeked":case"topSeeking":case"topStalled":case"topSubmit":case"topSuspend":case"topTimeUpdate":case"topVolumeChange":case"topWaiting":o=d;break;case"topKeyPress":if(0===C(n))return null |
|||
;case"topKeyDown":case"topKeyUp":o=m;break;case"topBlur":case"topFocus":o=h;break;case"topClick":if(2===n.button)return null;case"topDoubleClick":case"topMouseDown":case"topMouseMove":case"topMouseUp":case"topMouseOut":case"topMouseOver":case"topContextMenu":o=g;break;case"topDrag":case"topDragEnd":case"topDragEnter":case"topDragExit":case"topDragLeave":case"topDragOver":case"topDragStart":case"topDrop":o=y;break;case"topTouchCancel":case"topTouchEnd":case"topTouchMove":case"topTouchStart":o=v;break;case"topAnimationEnd":case"topAnimationIteration":case"topAnimationStart":o=f;break;case"topTransitionEnd":o=b;break;case"topScroll":o=_;break;case"topWheel":o=w;break;case"topCopy":case"topCut":case"topPaste":o=p}return o||s("86",e),i=o.getPooled(a,t,n,r),c.accumulateTwoPhaseDispatches(i),i},didPutListener:function(e,t,n){var a,s;"onClick"!==t||o(e._tag)||(a=r(e),s=l.getNodeFromInstance(e),i[a]||(i[a]=u.listen(s,"click",x)))},willDeleteListener:function(e,t){if("onClick"===t&&!o(e._tag)){var n=r(e);i[n].remove(),delete i[n]}}},e.exports=a},function(e,t,n){"use strict";function r(e,t,n,r){return o.call(this,e,t,n,r)}var o=n(91),i={animationName:null,elapsedTime:null,pseudoElement:null};o.augmentClass(r,i),e.exports=r},function(e,t,n){"use strict";function r(e,t,n,r){return o.call(this,e,t,n,r)}var o=n(91),i={clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}};o.augmentClass(r,i),e.exports=r},function(e,t,n){"use strict";function r(e,t,n,r){return o.call(this,e,t,n,r)}var o=n(91),i={data:null};o.augmentClass(r,i),e.exports=r},function(e,t,n){"use strict";function r(e,t,n,r){return o.call(this,e,t,n,r)}var o=n(222),i={dataTransfer:null};o.augmentClass(r,i),e.exports=r},function(e,t,n){"use strict";function r(e,t,n,r){return o.call(this,e,t,n,r)}var o=n(168),i={relatedTarget:null};o.augmentClass(r,i),e.exports=r},function(e,t,n){"use strict";function r(e,t,n,r){return o.call(this,e,t,n,r)}var o=n(91),i={data:null};o.augmentClass(r,i),e.exports=r},function(e,t,n){"use strict";function r(e,t,n,r){return o.call(this,e,t,n,r)}var o=n(168),i=n(299),a=n(1068),s=n(300),u={key:a,location:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,repeat:null,locale:null,getModifierState:s,charCode:function(e){return"keypress"===e.type?i(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?i(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}};o.augmentClass(r,u),e.exports=r},function(e,t,n){"use strict";function r(e,t,n,r){return o.call(this,e,t,n,r)}var o=n(168),i=n(300),a={touches:null,targetTouches:null,changedTouches:null,altKey:null,metaKey:null,ctrlKey:null,shiftKey:null,getModifierState:i};o.augmentClass(r,a),e.exports=r},function(e,t,n){"use strict";function r(e,t,n,r){return o.call(this,e,t,n,r)}var o=n(91),i={propertyName:null,elapsedTime:null,pseudoElement:null};o.augmentClass(r,i),e.exports=r},function(e,t,n){"use strict";function r(e,t,n,r){return o.call(this,e,t,n,r)}var o=n(222),i={deltaX:function(e){ |
|||
return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:null,deltaMode:null};o.augmentClass(r,i),e.exports=r},function(e,t){"use strict";function n(e){for(var t,n=1,o=0,i=0,a=e.length,s=-4&a;i<s;){for(t=Math.min(i+4096,s);i<t;i+=4)o+=(n+=e.charCodeAt(i))+(n+=e.charCodeAt(i+1))+(n+=e.charCodeAt(i+2))+(n+=e.charCodeAt(i+3));n%=r,o%=r}for(;i<a;i++)o+=n+=e.charCodeAt(i);return n%=r,o%=r,n|o<<16}var r=65521;e.exports=n},function(e,t,n){"use strict";function r(e,t,n,r){var o;return null==t||"boolean"==typeof t||""===t?"":(o=isNaN(t),r||o||0===t||i.hasOwnProperty(e)&&i[e]?""+t:("string"==typeof t&&(t=t.trim()),t+"px"))}var o=n(439),i=(n(24),o.isUnitlessNumber);e.exports=r},function(e,t,n){"use strict";function r(e){var t;return null==e?null:1===e.nodeType?e:(t=a.get(e))?(t=s(t),t?i.getNodeFromInstance(t):null):void("function"==typeof e.render?o("44"):o("45",Object.keys(e)))}var o=n(25),i=(n(92),n(32)),a=n(167),s=n(453);n(17),n(24);e.exports=r},function(e,t,n){(function(t){"use strict";function r(e,t,n,r){var o;e&&"object"==typeof e&&(o=e,void 0===o[n]&&null!=t&&(o[n]=t))}function o(e,t){if(null==e)return e;var n={};return i(e,r,n),n}var i=(n(293),n(459));n(24);e.exports=o}).call(t,n(436))},function(e,t,n){"use strict";function r(e){var t,n;return e.key&&"Unidentified"!==(t=i[e.key]||e.key)?t:"keypress"===e.type?(n=o(e),13===n?"Enter":String.fromCharCode(n)):"keydown"===e.type||"keyup"===e.type?a[e.keyCode]||"Unidentified":""}var o=n(299),i={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},a={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"};e.exports=r},function(e,t){"use strict";function n(e){var t=e&&(r&&e[r]||e[o]);if("function"==typeof t)return t}var r="function"==typeof Symbol&&Symbol.iterator,o="@@iterator";e.exports=n},function(e,t){"use strict";function n(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function r(e){for(;e;){if(e.nextSibling)return e.nextSibling;e=e.parentNode}}function o(e,t){for(var o=n(e),i=0,a=0;o;){if(3===o.nodeType){if(a=i+o.textContent.length,i<=t&&a>=t)return{node:o,offset:t-i};i=a}o=n(r(o))}}e.exports=o},function(e,t,n){"use strict";function r(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n["ms"+e]="MS"+t,n["O"+e]="o"+t.toLowerCase(),n}function o(e){var t,n;if(s[e])return s[e];if(!a[e])return e;t=a[e];for(n in t)if(t.hasOwnProperty(n)&&n in u)return s[e]=t[n];return""}var i=n(60),a={ |
|||
animationend:r("Animation","AnimationEnd"),animationiteration:r("Animation","AnimationIteration"),animationstart:r("Animation","AnimationStart"),transitionend:r("Transition","TransitionEnd")},s={},u={};i.canUseDOM&&(u=document.createElement("div").style,"AnimationEvent"in window||(delete a.animationend.animation,delete a.animationiteration.animation,delete a.animationstart.animation),"TransitionEvent"in window||delete a.transitionend.transition),e.exports=o},function(e,t,n){"use strict";function r(e){return'"'+o(e)+'"'}var o=n(224);e.exports=r},function(e,t,n){"use strict";var r=n(448);e.exports=r.renderSubtreeIntoContainer},,function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var s,u,c,l,f,p,d,h,m,g,y,v;t.__esModule=!0,s=Object.assign||function(e){var t,n,r;for(t=1;t<arguments.length;t++){n=arguments[t];for(r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},u=n(2),c=r(u),l=n(86),f=r(l),p=n(460),d=r(p),h=n(1076),m=r(h),g=n(461),g.nameShape.isRequired,f.default.bool,f.default.bool,f.default.bool,(0,g.transitionTimeout)("Appear"),(0,g.transitionTimeout)("Enter"),(0,g.transitionTimeout)("Leave"),y={transitionAppear:!1,transitionEnter:!0,transitionLeave:!0},v=function(e){function t(){var n,r,a,s,u,l;for(o(this,t),s=arguments.length,u=Array(s),l=0;l<s;l++)u[l]=arguments[l];return n=r=i(this,e.call.apply(e,[this].concat(u))),r._wrapChild=function(e){return c.default.createElement(m.default,{name:r.props.transitionName,appear:r.props.transitionAppear,enter:r.props.transitionEnter,leave:r.props.transitionLeave,appearTimeout:r.props.transitionAppearTimeout,enterTimeout:r.props.transitionEnterTimeout,leaveTimeout:r.props.transitionLeaveTimeout},e)},a=n,i(r,a)}return a(t,e),t.prototype.render=function(){return c.default.createElement(d.default,s({},this.props,{childFactory:this._wrapChild}))},t}(c.default.Component),v.displayName="CSSTransitionGroup",v.propTypes={},v.defaultProps=y,t.default=v,e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t) |
|||
;e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function s(e,t){return x.length?x.forEach(function(n){return e.addEventListener(n,t,!1)}):setTimeout(t,0),function(){x.length&&x.forEach(function(n){return e.removeEventListener(n,t,!1)})}}var u,c,l,f,p,d,h,m,g,y,v,b,_,w,x,C;t.__esModule=!0,u=Object.assign||function(e){var t,n,r;for(t=1;t<arguments.length;t++){n=arguments[t];for(r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},c=n(615),l=r(c),f=n(617),p=r(f),d=n(619),h=r(d),m=n(618),g=n(2),y=r(g),v=n(86),b=r(v),_=n(55),w=n(461),x=[],m.transitionEnd&&x.push(m.transitionEnd),m.animationEnd&&x.push(m.animationEnd),b.default.node,w.nameShape.isRequired,b.default.bool,b.default.bool,b.default.bool,b.default.number,b.default.number,b.default.number,C=function(e){function t(){var n,r,a,s,u,c;for(o(this,t),s=arguments.length,u=Array(s),c=0;c<s;c++)u[c]=arguments[c];return n=r=i(this,e.call.apply(e,[this].concat(u))),r.componentWillAppear=function(e){r.props.appear?r.transition("appear",e,r.props.appearTimeout):e()},r.componentWillEnter=function(e){r.props.enter?r.transition("enter",e,r.props.enterTimeout):e()},r.componentWillLeave=function(e){r.props.leave?r.transition("leave",e,r.props.leaveTimeout):e()},a=n,i(r,a)}return a(t,e),t.prototype.componentWillMount=function(){this.classNameAndNodeQueue=[],this.transitionTimeouts=[]},t.prototype.componentWillUnmount=function(){this.unmounted=!0,this.timeout&&clearTimeout(this.timeout),this.transitionTimeouts.forEach(function(e){clearTimeout(e)}),this.classNameAndNodeQueue.length=0},t.prototype.transition=function(e,t,n){var r,o,i,a,u,c=(0,_.findDOMNode)(this);if(!c)return void(t&&t());r=this.props.name[e]||this.props.name+"-"+e,o=this.props.name[e+"Active"]||r+"-active",i=null,a=void 0,(0,l.default)(c,r),this.queueClassAndNode(o,c),u=function(e){e&&e.target!==c||(clearTimeout(i),a&&a(),(0,p.default)(c,r),(0,p.default)(c,o),a&&a(),t&&t())},n?(i=setTimeout(u,n),this.transitionTimeouts.push(i)):m.transitionEnd&&(a=s(c,u))},t.prototype.queueClassAndNode=function(e,t){var n=this;this.classNameAndNodeQueue.push({className:e,node:t}),this.rafHandle||(this.rafHandle=(0,h.default)(function(){return n.flushClassNameAndNodeQueue()}))},t.prototype.flushClassNameAndNodeQueue=function(){this.unmounted||this.classNameAndNodeQueue.forEach(function(e){e.node.scrollTop,(0,l.default)(e.node,e.className)}),this.classNameAndNodeQueue.length=0,this.rafHandle=null},t.prototype.render=function(){var e=u({},this.props);return delete e.name,delete e.appear,delete e.enter,delete e.leave,delete e.appearTimeout,delete e.enterTimeout,delete e.leaveTimeout,delete e.children,y.default.cloneElement(y.default.Children.only(this.props.children),e)},t}(y.default.Component),C.displayName="CSSTransitionGroupChild",C.propTypes={},t.default=C,e.exports=t.default},function(e,t,n){"use strict";function r(e){if(!e)return e;var t={};return i.Children.map(e,function(e){return e |
|||
}).forEach(function(e){t[e.key]=e}),t}function o(e,t){function n(n){return t.hasOwnProperty(n)?t[n]:e[n]}var r,o,i,a,s,u,c;e=e||{},t=t||{},r={},o=[];for(i in e)t.hasOwnProperty(i)?o.length&&(r[i]=o,o=[]):o.push(i);a=void 0,s={};for(u in t){if(r.hasOwnProperty(u))for(a=0;a<r[u].length;a++)c=r[u][a],s[r[u][a]]=n(c);s[u]=n(u)}for(a=0;a<o.length;a++)s[o[a]]=n(o[a]);return s}t.__esModule=!0,t.getChildMapping=r,t.mergeChildMappings=o;var i=n(2)},function(e,t){"use strict";function n(e){var t={"=":"=0",":":"=2"};return"$"+(""+e).replace(/[=:]/g,function(e){return t[e]})}function r(e){var t=/(=0|=2)/g,n={"=0":"=","=2":":"};return(""+("."===e[0]&&"$"===e[1]?e.substring(2):e.substring(1))).replace(t,function(e){return n[e]})}var o={escape:n,unescape:r};e.exports=o},function(e,t,n){"use strict";var r=n(169),o=(n(17),function(e){var t,n=this;return n.instancePool.length?(t=n.instancePool.pop(),n.call(t,e),t):new n(e)}),i=function(e,t){var n,r=this;return r.instancePool.length?(n=r.instancePool.pop(),r.call(n,e,t),n):new r(e,t)},a=function(e,t,n){var r,o=this;return o.instancePool.length?(r=o.instancePool.pop(),o.call(r,e,t,n),r):new o(e,t,n)},s=function(e,t,n,r){var o,i=this;return i.instancePool.length?(o=i.instancePool.pop(),i.call(o,e,t,n,r),o):new i(e,t,n,r)},u=function(e){var t=this;e instanceof t||r("25"),e.destructor(),t.instancePool.length<t.poolSize&&t.instancePool.push(e)},c=10,l=o,f=function(e,t){var n=e;return n.instancePool=[],n.getPooled=t||l,n.poolSize||(n.poolSize=c),n.release=u,n},p={addPoolingTo:f,oneArgumentPooler:o,twoArgumentPooler:i,threeArgumentPooler:a,fourArgumentPooler:s};e.exports=p},function(e,t,n){"use strict";function r(e){return(""+e).replace(w,"$&/")}function o(e,t){this.func=e,this.context=t,this.count=0}function i(e,t,n){var r=e.func,o=e.context;r.call(o,t,e.count++)}function a(e,t,n){if(null==e)return e;var r=o.getPooled(t,n);v(e,i,r),o.release(r)}function s(e,t,n,r){this.result=e,this.keyPrefix=t,this.func=n,this.context=r,this.count=0}function u(e,t,n){var o=e.result,i=e.keyPrefix,a=e.func,s=e.context,u=a.call(s,t,e.count++);Array.isArray(u)?c(u,o,n,y.thatReturnsArgument):null!=u&&(g.isValidElement(u)&&(u=g.cloneAndReplaceKey(u,i+(!u.key||t&&t.key===u.key?"":r(u.key)+"/")+n)),o.push(u))}function c(e,t,n,o,i){var a,c="";null!=n&&(c=r(n)+"/"),a=s.getPooled(t,c,o,i),v(e,u,a),s.release(a)}function l(e,t,n){if(null==e)return e;var r=[];return c(e,r,null,t,n),r}function f(e,t,n){return null}function p(e,t){return v(e,f,null)}function d(e){var t=[];return c(e,t,null,y.thatReturnsArgument),t}var h,m=n(1079),g=n(141),y=n(66),v=n(1089),b=m.twoArgumentPooler,_=m.fourArgumentPooler,w=/\/+/g;o.prototype.destructor=function(){this.func=null,this.context=null,this.count=0},m.addPoolingTo(o,b),s.prototype.destructor=function(){this.result=null,this.keyPrefix=null,this.func=null,this.context=null,this.count=0},m.addPoolingTo(s,_),h={forEach:a,map:l,mapIntoWithKeyPrefixInternal:c,count:p,toArray:d},e.exports=h},function(e,t,n){"use strict";var r,o=n(141),i=o.createFactory;r={a:i("a"),abbr:i("abbr"), |
|||
address:i("address"),area:i("area"),article:i("article"),aside:i("aside"),audio:i("audio"),b:i("b"),base:i("base"),bdi:i("bdi"),bdo:i("bdo"),big:i("big"),blockquote:i("blockquote"),body:i("body"),br:i("br"),button:i("button"),canvas:i("canvas"),caption:i("caption"),cite:i("cite"),code:i("code"),col:i("col"),colgroup:i("colgroup"),data:i("data"),datalist:i("datalist"),dd:i("dd"),del:i("del"),details:i("details"),dfn:i("dfn"),dialog:i("dialog"),div:i("div"),dl:i("dl"),dt:i("dt"),em:i("em"),embed:i("embed"),fieldset:i("fieldset"),figcaption:i("figcaption"),figure:i("figure"),footer:i("footer"),form:i("form"),h1:i("h1"),h2:i("h2"),h3:i("h3"),h4:i("h4"),h5:i("h5"),h6:i("h6"),head:i("head"),header:i("header"),hgroup:i("hgroup"),hr:i("hr"),html:i("html"),i:i("i"),iframe:i("iframe"),img:i("img"),input:i("input"),ins:i("ins"),kbd:i("kbd"),keygen:i("keygen"),label:i("label"),legend:i("legend"),li:i("li"),link:i("link"),main:i("main"),map:i("map"),mark:i("mark"),menu:i("menu"),menuitem:i("menuitem"),meta:i("meta"),meter:i("meter"),nav:i("nav"),noscript:i("noscript"),object:i("object"),ol:i("ol"),optgroup:i("optgroup"),option:i("option"),output:i("output"),p:i("p"),param:i("param"),picture:i("picture"),pre:i("pre"),progress:i("progress"),q:i("q"),rp:i("rp"),rt:i("rt"),ruby:i("ruby"),s:i("s"),samp:i("samp"),script:i("script"),section:i("section"),select:i("select"),small:i("small"),source:i("source"),span:i("span"),strong:i("strong"),style:i("style"),sub:i("sub"),summary:i("summary"),sup:i("sup"),table:i("table"),tbody:i("tbody"),td:i("td"),textarea:i("textarea"),tfoot:i("tfoot"),th:i("th"),thead:i("thead"),time:i("time"),title:i("title"),tr:i("tr"),track:i("track"),u:i("u"),ul:i("ul"),var:i("var"),video:i("video"),wbr:i("wbr"),circle:i("circle"),clipPath:i("clipPath"),defs:i("defs"),ellipse:i("ellipse"),g:i("g"),image:i("image"),line:i("line"),linearGradient:i("linearGradient"),mask:i("mask"),path:i("path"),pattern:i("pattern"),polygon:i("polygon"),polyline:i("polyline"),radialGradient:i("radialGradient"),rect:i("rect"),stop:i("stop"),svg:i("svg"),text:i("text"),tspan:i("tspan")},e.exports=r},function(e,t,n){"use strict";var r=n(141),o=r.isValidElement,i=n(437);e.exports=i(o)},function(e,t){"use strict";e.exports="15.6.1"},function(e,t,n){"use strict";var r=n(462),o=r.Component,i=n(141),a=i.isValidElement,s=n(465),u=n(612);e.exports=u(o,a,s)},function(e,t){"use strict";function n(e){var t=e&&(r&&e[r]||e[o]);if("function"==typeof t)return t}var r="function"==typeof Symbol&&Symbol.iterator,o="@@iterator";e.exports=n},function(e,t){"use strict";function n(){return r++}var r=1;e.exports=n},function(e,t,n){"use strict";var r=function(){};e.exports=r},function(e,t,n){"use strict";function r(e){return i.isValidElement(e)||o("143"),e}var o=n(169),i=n(141);n(17);e.exports=r},function(e,t,n){"use strict";function r(e,t){return e&&"object"==typeof e&&null!=e.key?c.escape(e.key):t.toString(36)}function o(e,t,n,i){var p,d,h,m,g,y,v,b,_,w,x,C,T=typeof e;if("undefined"!==T&&"boolean"!==T||(e=null), |
|||
null===e||"string"===T||"number"===T||"object"===T&&e.$$typeof===s)return n(i,e,""===t?l+r(e,0):t),1;if(h=0,m=""===t?l:t+f,Array.isArray(e))for(g=0;g<e.length;g++)p=e[g],d=m+r(p,g),h+=o(p,d,n,i);else if(y=u(e))if(v=y.call(e),y!==e.entries)for(_=0;!(b=v.next()).done;)p=b.value,d=m+r(p,_++),h+=o(p,d,n,i);else for(;!(b=v.next()).done;)(w=b.value)&&(p=w[1],d=m+c.escape(w[0])+f+r(p,0),h+=o(p,d,n,i));else"object"===T&&(x="",C=e+"",a("31","[object Object]"===C?"object with keys {"+Object.keys(e).join(", ")+"}":C,x));return h}function i(e,t,n){return null==e?0:o(e,"",t,n)}var a=n(169),s=(n(92),n(464)),u=n(1085),c=(n(17),n(1078)),l=(n(24),"."),f=":";e.exports=i},function(e,t,n){(function(t){!function(t,n){e.exports=n()}(0,function(){"use strict";function e(e){return parseFloat(e)||0}function n(t){for(var n=[],r=arguments.length-1;r-- >0;)n[r]=arguments[r+1];return n.reduce(function(n,r){return n+e(t["border-"+r+"-width"])},0)}function r(t){var n,r,o,i,a=["top","right","bottom","left"],s={};for(n=0,r=a;n<r.length;n+=1)o=r[n],i=t["padding-"+o],s[o]=e(i);return s}function o(e){var t=e.getBBox();return c(0,0,t.width,t.height)}function i(t){var o,i,s,u,l,d,h,m,g=t.clientWidth,y=t.clientHeight;return g||y?(o=f(t).getComputedStyle(t),i=r(o),s=i.left+i.right,u=i.top+i.bottom,l=e(o.width),d=e(o.height),"border-box"===o.boxSizing&&(Math.round(l+s)!==g&&(l-=n(o,"left","right")+s),Math.round(d+u)!==y&&(d-=n(o,"top","bottom")+u)),a(t)||(h=Math.round(l+s)-g,m=Math.round(d+u)-y,1!==Math.abs(h)&&(l-=h),1!==Math.abs(m)&&(d-=m)),c(i.left,i.top,l,d)):p}function a(e){return e===f(e).document.documentElement}function s(e){return _?d(e)?o(e):i(e):p}function u(e){var t=e.x,n=e.y,r=e.width,o=e.height,i="undefined"!=typeof DOMRectReadOnly?DOMRectReadOnly:Object,a=Object.create(i.prototype);return l(a,{x:t,y:n,width:r,height:o,top:n,right:t+r,bottom:o+n,left:t}),a}function c(e,t,n,r){return{x:e,y:t,width:n,height:r}}var l,f,p,d,h,m,g,y,v,b=function(){function e(e,t){var n=-1;return e.some(function(e,r){return e[0]===t&&(n=r,!0)}),n}return"undefined"!=typeof Map?Map:function(){function t(){this.__entries__=[]}var n={size:{configurable:!0}};return n.size.get=function(){return this.__entries__.length},t.prototype.get=function(t){var n=e(this.__entries__,t),r=this.__entries__[n];return r&&r[1]},t.prototype.set=function(t,n){var r=e(this.__entries__,t);~r?this.__entries__[r][1]=n:this.__entries__.push([t,n])},t.prototype.delete=function(t){var n=this.__entries__,r=e(n,t);~r&&n.splice(r,1)},t.prototype.has=function(t){return!!~e(this.__entries__,t)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(e,t){var n,r,o,i=this;for(void 0===t&&(t=null),n=0,r=i.__entries__;n<r.length;n+=1)o=r[n],e.call(t,o[1],o[0])},Object.defineProperties(t.prototype,n),t}()}(),_="undefined"!=typeof window&&"undefined"!=typeof document&&window.document===document,w=function(){return void 0!==t&&t.Math===Math?t:"undefined"!=typeof self&&self.Math===Math?self:"undefined"!=typeof window&&window.Math===Math?window:Function("return this")() |
|||
}(),x=function(){return"function"==typeof requestAnimationFrame?requestAnimationFrame.bind(w):function(e){return setTimeout(function(){return e(Date.now())},1e3/60)}}(),C=2,T=function(e,t){function n(){i&&(i=!1,e()),a&&o()}function r(){x(n)}function o(){var e=Date.now();if(i){if(e-s<C)return;a=!0}else i=!0,a=!1,setTimeout(r,t);s=e}var i=!1,a=!1,s=0;return o},k=20,E=["top","right","bottom","left","width","height","size","weight"],S="undefined"!=typeof MutationObserver,M=function(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=T(this.refresh.bind(this),k)};return M.prototype.addObserver=function(e){~this.observers_.indexOf(e)||this.observers_.push(e),this.connected_||this.connect_()},M.prototype.removeObserver=function(e){var t=this.observers_,n=t.indexOf(e);~n&&t.splice(n,1),!t.length&&this.connected_&&this.disconnect_()},M.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},M.prototype.updateObservers_=function(){var e=this.observers_.filter(function(e){return e.gatherActive(),e.hasActive()});return e.forEach(function(e){return e.broadcastActive()}),e.length>0},M.prototype.connect_=function(){_&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),S?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},M.prototype.disconnect_=function(){_&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},M.prototype.onTransitionEnd_=function(e){var t,n=e.propertyName;void 0===n&&(n=""),(t=E.some(function(e){return!!~n.indexOf(e)}))&&this.refresh()},M.getInstance=function(){return this.instance_||(this.instance_=new M),this.instance_},M.instance_=null,l=function(e,t){var n,r,o;for(n=0,r=Object.keys(t);n<r.length;n+=1)o=r[n],Object.defineProperty(e,o,{value:t[o],enumerable:!1,writable:!1,configurable:!0});return e},f=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||w},p=c(0,0,0,0),d=function(){return"undefined"!=typeof SVGGraphicsElement?function(e){return e instanceof f(e).SVGGraphicsElement}:function(e){return e instanceof f(e).SVGElement&&"function"==typeof e.getBBox}}(),h=function(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=c(0,0,0,0),this.target=e},h.prototype.isActive=function(){var e=s(this.target);return this.contentRect_=e,e.width!==this.broadcastWidth||e.height!==this.broadcastHeight},h.prototype.broadcastRect=function(){var e=this.contentRect_ |
|||
;return this.broadcastWidth=e.width,this.broadcastHeight=e.height,e},m=function(e,t){var n=u(t);l(this,{target:e,contentRect:n})},g=function(e,t,n){if(this.activeObservations_=[],this.observations_=new b,"function"!=typeof e)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=e,this.controller_=t,this.callbackCtx_=n},g.prototype.observe=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof f(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)||(t.set(e,new h(e)),this.controller_.addObserver(this),this.controller_.refresh())}},g.prototype.unobserve=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof f(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)&&(t.delete(e),t.size||this.controller_.removeObserver(this))}},g.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},g.prototype.gatherActive=function(){var e=this;this.clearActive(),this.observations_.forEach(function(t){t.isActive()&&e.activeObservations_.push(t)})},g.prototype.broadcastActive=function(){var e,t;this.hasActive()&&(e=this.callbackCtx_,t=this.activeObservations_.map(function(e){return new m(e.target,e.broadcastRect())}),this.callback_.call(e,t,e),this.clearActive())},g.prototype.clearActive=function(){this.activeObservations_.splice(0)},g.prototype.hasActive=function(){return this.activeObservations_.length>0},y="undefined"!=typeof WeakMap?new WeakMap:new b,v=function(e){var t,n;if(!(this instanceof v))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");t=M.getInstance(),n=new g(e,t,this),y.set(this,n)},["observe","unobserve","disconnect"].forEach(function(e){v.prototype[e]=function(){return(t=y.get(this))[e].apply(t,arguments);var t}}),function(){return void 0!==w.ResizeObserver?w.ResizeObserver:v}()})}).call(t,function(){return this}())},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),n(993),n(1002),n(997),n(998),n(996)},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";var r=function(){};e.exports=r},function(e,t){!function(e){"use strict";function t(e){if("string"!=typeof e&&(e+=""),/[^a-z0-9\-#$%&'*+.\^_`|~]/i.test(e))throw new TypeError("Invalid character in header field name");return e.toLowerCase()}function n(e){return"string"!=typeof e&&(e+=""),e}function r(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}} |
|||
;return y.iterable&&(t[Symbol.iterator]=function(){return t}),t}function o(e){this.map={},e instanceof o?e.forEach(function(e,t){this.append(t,e)},this):e&&Object.getOwnPropertyNames(e).forEach(function(t){this.append(t,e[t])},this)}function i(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function a(e){return new Promise(function(t,n){e.onload=function(){t(e.result)},e.onerror=function(){n(e.error)}})}function s(e){var t=new FileReader,n=a(t);return t.readAsArrayBuffer(e),n}function u(e){var t=new FileReader,n=a(t);return t.readAsText(e),n}function c(e){var t,n=new Uint8Array(e),r=Array(n.length);for(t=0;t<n.length;t++)r[t]=String.fromCharCode(n[t]);return r.join("")}function l(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function f(){return this.bodyUsed=!1,this._initBody=function(e){if(this._bodyInit=e,e)if("string"==typeof e)this._bodyText=e;else if(y.blob&&Blob.prototype.isPrototypeOf(e))this._bodyBlob=e;else if(y.formData&&FormData.prototype.isPrototypeOf(e))this._bodyFormData=e;else if(y.searchParams&&URLSearchParams.prototype.isPrototypeOf(e))this._bodyText=""+e;else if(y.arrayBuffer&&y.blob&&b(e))this._bodyArrayBuffer=l(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer]);else{if(!y.arrayBuffer||!ArrayBuffer.prototype.isPrototypeOf(e)&&!_(e))throw Error("unsupported BodyInit type");this._bodyArrayBuffer=l(e)}else this._bodyText="";this.headers.get("content-type")||("string"==typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):y.searchParams&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},y.blob&&(this.blob=function(){var e=i(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?i(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(s)}),this.text=function(){var e=i(this);if(e)return e;if(this._bodyBlob)return u(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(c(this._bodyArrayBuffer));if(this._bodyFormData)throw Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},y.formData&&(this.formData=function(){return this.text().then(h)}),this.json=function(){return this.text().then(JSON.parse)},this}function p(e){var t=e.toUpperCase();return w.indexOf(t)>-1?t:e}function d(e,t){t=t||{};var n=t.body;if("string"==typeof e)this.url=e;else{if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new o(e.headers)),this.method=e.method,this.mode=e.mode,n||null==e._bodyInit||(n=e._bodyInit,e.bodyUsed=!0)} |
|||
if(this.credentials=t.credentials||this.credentials||"omit",!t.headers&&this.headers||(this.headers=new o(t.headers)),this.method=p(t.method||this.method||"GET"),this.mode=t.mode||this.mode||null,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&n)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(n)}function h(e){var t=new FormData;return e.trim().split("&").forEach(function(e){var n,r,o;e&&(n=e.split("="),r=n.shift().replace(/\+/g," "),o=n.join("=").replace(/\+/g," "),t.append(decodeURIComponent(r),decodeURIComponent(o)))}),t}function m(e){var t=new o;return e.split("\r\n").forEach(function(e){var n,r=e.split(":"),o=r.shift().trim();o&&(n=r.join(":").trim(),t.append(o,n))}),t}function g(e,t){t||(t={}),this.type="default",this.status="status"in t?t.status:200,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in t?t.statusText:"OK",this.headers=new o(t.headers),this.url=t.url||"",this._initBody(e)}var y,v,b,_,w,x;e.fetch||(y={searchParams:"URLSearchParams"in e,iterable:"Symbol"in e&&"iterator"in Symbol,blob:"FileReader"in e&&"Blob"in e&&function(){try{return new Blob,!0}catch(e){return!1}}(),formData:"FormData"in e,arrayBuffer:"ArrayBuffer"in e},y.arrayBuffer&&(v=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],b=function(e){return e&&DataView.prototype.isPrototypeOf(e)},_=ArrayBuffer.isView||function(e){return e&&v.indexOf(Object.prototype.toString.call(e))>-1}),o.prototype.append=function(e,r){e=t(e),r=n(r);var o=this.map[e];o||(o=[],this.map[e]=o),o.push(r)},o.prototype.delete=function(e){delete this.map[t(e)]},o.prototype.get=function(e){var n=this.map[t(e)];return n?n[0]:null},o.prototype.getAll=function(e){return this.map[t(e)]||[]},o.prototype.has=function(e){return this.map.hasOwnProperty(t(e))},o.prototype.set=function(e,r){this.map[t(e)]=[n(r)]},o.prototype.forEach=function(e,t){Object.getOwnPropertyNames(this.map).forEach(function(n){this.map[n].forEach(function(r){e.call(t,r,n,this)},this)},this)},o.prototype.keys=function(){var e=[];return this.forEach(function(t,n){e.push(n)}),r(e)},o.prototype.values=function(){var e=[];return this.forEach(function(t){e.push(t)}),r(e)},o.prototype.entries=function(){var e=[];return this.forEach(function(t,n){e.push([n,t])}),r(e)},y.iterable&&(o.prototype[Symbol.iterator]=o.prototype.entries),w=["DELETE","GET","HEAD","OPTIONS","POST","PUT"],d.prototype.clone=function(){return new d(this,{body:this._bodyInit})},f.call(d.prototype),f.call(g.prototype),g.prototype.clone=function(){return new g(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new o(this.headers),url:this.url})},g.error=function(){var e=new g(null,{status:0,statusText:""});return e.type="error",e},x=[301,302,303,307,308],g.redirect=function(e,t){if(-1===x.indexOf(t))throw new RangeError("Invalid status code");return new g(null,{status:t,headers:{location:e}})}, |
|||
e.Headers=o,e.Request=d,e.Response=g,e.fetch=function(e,t){return new Promise(function(n,r){var o=new d(e,t),i=new XMLHttpRequest;i.onload=function(){var e,t={status:i.status,statusText:i.statusText,headers:m(i.getAllResponseHeaders()||"")};t.url="responseURL"in i?i.responseURL:t.headers.get("X-Request-URL"),e="response"in i?i.response:i.responseText,n(new g(e,t))},i.onerror=function(){r(new TypeError("Network request failed"))},i.ontimeout=function(){r(new TypeError("Network request failed"))},i.open(o.method,o.url,!0),"include"===o.credentials&&(i.withCredentials=!0),"responseType"in i&&y.blob&&(i.responseType="blob"),o.headers.forEach(function(e,t){i.setRequestHeader(t,e)}),i.send(void 0===o._bodyInit?null:o._bodyInit)})},e.fetch.polyfill=!0)}("undefined"!=typeof self?self:this)}]); |
|||
|
After Width: | Height: | Size: 4.2 KiB |
@ -0,0 +1,29 @@ |
|||
.header-group-fullscreen{float: right;} |
|||
.header-group-intervals > .intervals-container > .quick span{padding-left: 15px; padding-right: 15px;} |
|||
.chart-page .header-chart-panel .my-group{float: left;} |
|||
.separator-3cgsM4c1-{background-color: #2c303b;} |
|||
.chart-page .header-chart-panel .my-group.active .mydate, |
|||
.feature-no-touch .chart-controls-bar-buttons a:not(.disabled):hover{background-color: #2c3b59; color: #01A6D5 !important;} |
|||
.header-chart-panel .button, |
|||
.feature-no-touch .header-chart-panel .button:active, |
|||
.favored-list-container span{background-color: #121C31; color: #4e5b85; border-color: transparent;} |
|||
.chart-controls-bar-buttons a:before{border-color: #2c303b;} |
|||
.button.indicators svg, |
|||
.button.fullscreen svg, |
|||
.button.properties svg{fill: #4e5b85;} |
|||
.feature-no-touch .header-chart-panel .button:hover, |
|||
.favored-list-container span.selected{background: #2c3b59; color: #58c3e5;} |
|||
.feature-no-touch .favored-list-container span:hover{background: #2c3b59; color: #58c3e5;} |
|||
.favored-list-container span.disabled{background: #171820; color: #4e5b85!important;} |
|||
|
|||
.chart-page .chart-container{border-color: transparent;} |
|||
|
|||
.charting-mask{display: block; position: absolute; top: 38px; width: 100%; left: 0; bottom: 0;} |
|||
|
|||
.chart-page .layout__area--left [class^="drawingToolbar-"]{background: #171820!important;} |
|||
.feature-no-touch ._tv-dialog .button:not(.disabled):not(.selected):hover:before, .feature-no-touch ._tv-dialog .custom-select .switcher:not(.disabled):not(.selected):hover:before, .feature-no-touch ._tv-dialog .favored-list-container span:not(.disabled):not(.selected):hover:before, .feature-no-touch ._tv-dialog .submenu:not(.disabled):not(.selected):hover:before, .feature-no-touch .bottom-widgetbar-content.backtesting .button:not(.disabled):not(.selected):hover:before, .feature-no-touch .bottom-widgetbar-content.backtesting .custom-select .switcher:not(.disabled):not(.selected):hover:before, .feature-no-touch .bottom-widgetbar-content.backtesting .favored-list-container span:not(.disabled):not(.selected):hover:before, .feature-no-touch .bottom-widgetbar-content.backtesting .submenu:not(.disabled):not(.selected):hover:before, .feature-no-touch .header-chart-panel .button:not(.disabled):not(.selected):hover:before, .feature-no-touch .header-chart-panel .custom-select .switcher:not(.disabled):not(.selected):hover:before, .feature-no-touch .header-chart-panel .favored-list-container span:not(.disabled):not(.selected):hover:before, .feature-no-touch .header-chart-panel .submenu:not(.disabled):not(.selected):hover:before, .feature-no-touch .properties-toolbar .button:not(.disabled):not(.selected):hover:before, .feature-no-touch .properties-toolbar .custom-select .switcher:not(.disabled):not(.selected):hover:before, .feature-no-touch .properties-toolbar .favored-list-container span:not(.disabled):not(.selected):hover:before, .feature-no-touch .properties-toolbar .submenu:not(.disabled):not(.selected):hover:before, .feature-no-touch .widgetbar-widgetheader .button:not(.disabled):not(.selected):hover:before, .feature-no-touch .widgetbar-widgetheader .custom-select .switcher:not(.disabled):not(.selected):hover:before, .feature-no-touch .widgetbar-widgetheader .favored-list-container span:not(.disabled):not(.selected):hover:before, .feature-no-touch .widgetbar-widgetheader .submenu:not(.disabled):not(.selected):hover:before { |
|||
border: none |
|||
} |
|||
.feature-no-touch .header-chart-panel .button:hover:not(.disabled), .feature-no-touch .symbol-edit-widget .button:hover:not(.disabled){ |
|||
color: #4e5b85; |
|||
} |
|||
@ -0,0 +1,23 @@ |
|||
.header-group-fullscreen{float: right;} |
|||
.header-group-intervals > .intervals-container > .quick span{padding-left: 15px; padding-right: 15px;} |
|||
.chart-page .header-chart-panel .my-group{float: left;} |
|||
.separator-3cgsM4c1-{background-color: #d1d4db;} |
|||
.chart-page .header-chart-panel .my-group.active .mydate, |
|||
.feature-no-touch .chart-controls-bar-buttons a:not(.disabled):hover{background-color: #e1ecf2; color: #8b8c8e;} |
|||
.header-chart-panel .button, |
|||
.feature-no-touch .header-chart-panel .button:active, |
|||
.favored-list-container span{background-color: #f6f7fb; color: #4e5b85; border-color: #d1d4db;} |
|||
.chart-controls-bar-buttons a:before{border-color: #d1d4db;} |
|||
.button.indicators svg, |
|||
.button.fullscreen svg, |
|||
.button.properties svg{fill: #4e5b85;} |
|||
.feature-no-touch .header-chart-panel .button:hover, |
|||
.favored-list-container span.selected{background: #e1ecf2; color: #58c3e5;} |
|||
.feature-no-touch .favored-list-container span:hover{background: #e1ecf2; color: #58c3e5;} |
|||
.favored-list-container span.disabled{background: #fff; color: #4e5b85!important;} |
|||
|
|||
.chart-page .chart-container{border-color: #d1d4db;} |
|||
|
|||
.charting-mask{display: block; position: absolute; top: 38px; width: 100%; left: 0; bottom: 0;} |
|||
|
|||
.chart-page .layout__area--left [class^="drawingToolbar-"]{background: #ebecf1!important;} |
|||
|
After Width: | Height: | Size: 197 KiB |
|
After Width: | Height: | Size: 1.1 KiB |
|
After Width: | Height: | Size: 1.9 KiB |
|
After Width: | Height: | Size: 92 B |
|
After Width: | Height: | Size: 932 B |
|
After Width: | Height: | Size: 516 B |
|
After Width: | Height: | Size: 3.1 KiB |
|
After Width: | Height: | Size: 82 B |
|
After Width: | Height: | Size: 227 B |
|
After Width: | Height: | Size: 137 B |
|
After Width: | Height: | Size: 501 B |
|
After Width: | Height: | Size: 126 B |
|
After Width: | Height: | Size: 84 B |
|
After Width: | Height: | Size: 41 KiB |
|
After Width: | Height: | Size: 144 B |
|
After Width: | Height: | Size: 160 B |
|
After Width: | Height: | Size: 125 B |
|
After Width: | Height: | Size: 168 B |
|
After Width: | Height: | Size: 318 B |
|
After Width: | Height: | Size: 80 KiB |
|
After Width: | Height: | Size: 100 B |
|
After Width: | Height: | Size: 401 B |
|
After Width: | Height: | Size: 262 B |
|
After Width: | Height: | Size: 470 B |
|
After Width: | Height: | Size: 292 B |
|
After Width: | Height: | Size: 652 B |
|
After Width: | Height: | Size: 309 B |
|
After Width: | Height: | Size: 86 B |
|
After Width: | Height: | Size: 268 B |
|
After Width: | Height: | Size: 27 KiB |
|
After Width: | Height: | Size: 294 B |
@ -0,0 +1,3 @@ |
|||
"use strict"; |
|||
//fgnass.github.com/spin.js#v2.0.1
|
|||
!function(a,b){"object"==typeof exports?module.exports=b():"function"==typeof define&&define.amd?define(b):a.Spinner=b()}(this,function(){"use strict";function a(a,b){var c,d=document.createElement(a||"div");for(c in b)d[c]=b[c];return d}function b(a){for(var b=1,c=arguments.length;c>b;b++)a.appendChild(arguments[b]);return a}function c(a,b,c,d){var e=["opacity",b,~~(100*a),c,d].join("-"),f=.01+c/d*100,g=Math.max(1-(1-a)/b*(100-f),a),h=j.substring(0,j.indexOf("Animation")).toLowerCase(),i=h&&"-"+h+"-"||"";return l[e]||(m.insertRule("@"+i+"keyframes "+e+"{0%{opacity:"+g+"}"+f+"%{opacity:"+a+"}"+(f+.01)+"%{opacity:1}"+(f+b)%100+"%{opacity:"+a+"}100%{opacity:"+g+"}}",m.cssRules.length),l[e]=1),e}function d(a,b){var c,d,e=a.style;for(b=b.charAt(0).toUpperCase()+b.slice(1),d=0;d<k.length;d++)if(c=k[d]+b,void 0!==e[c])return c;return void 0!==e[b]?b:void 0}function e(a,b){for(var c in b)a.style[d(a,c)||c]=b[c];return a}function f(a){for(var b=1;b<arguments.length;b++){var c=arguments[b];for(var d in c)void 0===a[d]&&(a[d]=c[d])}return a}function g(a,b){return"string"==typeof a?a:a[b%a.length]}function h(a){this.opts=f(a||{},h.defaults,n)}function i(){function c(b,c){return a("<"+b+' xmlns="urn:schemas-microsoft.com:vml" class="spin-vml">',c)}m.addRule(".spin-vml","behavior:url(#default#VML)"),h.prototype.lines=function(a,d){function f(){return e(c("group",{coordsize:k+" "+k,coordorigin:-j+" "+-j}),{width:k,height:k})}function h(a,h,i){b(m,b(e(f(),{rotation:360/d.lines*a+"deg",left:~~h}),b(e(c("roundrect",{arcsize:d.corners}),{width:j,height:d.width,left:d.radius,top:-d.width>>1,filter:i}),c("fill",{color:g(d.color,a),opacity:d.opacity}),c("stroke",{opacity:0}))))}var i,j=d.length+d.width,k=2*j,l=2*-(d.width+d.length)+"px",m=e(f(),{position:"absolute",top:l,left:l});if(d.shadow)for(i=1;i<=d.lines;i++)h(i,-2,"progid:DXImageTransform.Microsoft.Blur(pixelradius=2,makeshadow=1,shadowopacity=.3)");for(i=1;i<=d.lines;i++)h(i);return b(a,m)},h.prototype.opacity=function(a,b,c,d){var e=a.firstChild;d=d.shadow&&d.lines||0,e&&b+d<e.childNodes.length&&(e=e.childNodes[b+d],e=e&&e.firstChild,e=e&&e.firstChild,e&&(e.opacity=c))}}var j,k=["webkit","Moz","ms","O"],l={},m=function(){var c=a("style",{type:"text/css"});return b(document.getElementsByTagName("head")[0],c),c.sheet||c.styleSheet}(),n={lines:12,length:7,width:5,radius:10,rotate:0,corners:1,color:"#000",direction:1,speed:1,trail:100,opacity:.25,fps:20,zIndex:2e9,className:"spinner",top:"50%",left:"50%",position:"absolute"};h.defaults={},f(h.prototype,{spin:function(b){this.stop();{var c=this,d=c.opts,f=c.el=e(a(0,{className:d.className}),{position:d.position,width:0,zIndex:d.zIndex});d.radius+d.length+d.width}if(e(f,{left:d.left,top:d.top}),b&&b.insertBefore(f,b.firstChild||null),f.setAttribute("role","progressbar"),c.lines(f,c.opts),!j){var g,h=0,i=(d.lines-1)*(1-d.direction)/2,k=d.fps,l=k/d.speed,m=(1-d.opacity)/(l*d.trail/100),n=l/d.lines;!function o(){h++;for(var a=0;a<d.lines;a++)g=Math.max(1-(h+(d.lines-a)*n)%l*m,d.opacity),c.opacity(f,a*d.direction+i,g,d);c.timeout=c.el&&setTimeout(o,~~(1e3/k))}()}return c},stop:function(){var a=this.el;return a&&(clearTimeout(this.timeout),a.parentNode&&a.parentNode.removeChild(a),this.el=void 0),this},lines:function(d,f){function h(b,c){return e(a(),{position:"absolute",width:f.length+f.width+"px",height:f.width+"px",background:b,boxShadow:c,transformOrigin:"left",transform:"rotate("+~~(360/f.lines*k+f.rotate)+"deg) translate("+f.radius+"px,0)",borderRadius:(f.corners*f.width>>1)+"px"})}for(var i,k=0,l=(f.lines-1)*(1-f.direction)/2;k<f.lines;k++)i=e(a(),{position:"absolute",top:1+~(f.width/2)+"px",transform:f.hwaccel?"translate3d(0,0,0)":"",opacity:f.opacity,animation:j&&c(f.opacity,f.trail,l+k*f.direction,f.lines)+" "+1/f.speed+"s linear infinite"}),f.shadow&&b(i,e(h("#000","0 0 4px #000"),{top:"2px"})),b(d,b(i,h(g(f.color,k),"0 0 1px rgba(0,0,0,.1)")));return d},opacity:function(a,b,c){b<a.childNodes.length&&(a.childNodes[b].style.opacity=c)}});var o=e(a("group"),{behavior:"url(#default#VML)"});return!d(o,"transform")&&o.adj?i():j=d(o,"animation"),h}); |
|||
@ -0,0 +1 @@ |
|||
{} |
|||
@ -0,0 +1,3 @@ |
|||
{ |
|||
"default": "by {0}" |
|||
} |
|||
@ -0,0 +1,112 @@ |
|||
<!DOCTYPE html> |
|||
<html> |
|||
<head> |
|||
<meta charset="utf-8" /> |
|||
<meta http-equiv="X-UA-Compatible" content="IE=Edge"> |
|||
<link type="text/css" href="bundles/vendors.a94ef44ed5c201cefcf6ad7460788c1a.css" rel="stylesheet" /> |
|||
<link type="text/css" href="bundles/library.a8de6f8cf4dda6895071c6ec45f900d9.css" rel="stylesheet" /> |
|||
<style> |
|||
.chart-page { |
|||
background: none; |
|||
} |
|||
#loading-indicator |
|||
body.chart-page { |
|||
background: 0 0 |
|||
} |
|||
.chart-page .chart-container{ |
|||
border-color: transparent; |
|||
background: none; |
|||
} |
|||
.loading-indicator{ |
|||
background: none !important; |
|||
|
|||
} |
|||
</style> |
|||
</head> |
|||
<body class="chart-page on-widget"> |
|||
<div class="loading-indicator" id="loading-indicator"></div> |
|||
<script src="js/external/spin.min.js"></script> |
|||
<script> |
|||
var JSServer = {}; |
|||
var __initialEnabledFeaturesets = ["charting_library"]; |
|||
</script> |
|||
<script> |
|||
(function() { |
|||
window.urlParams = (function() { |
|||
var j, h = /\+/g, |
|||
m = /([^&=]+)=?([^&]*)/g, |
|||
e = function(o) { |
|||
return decodeURIComponent(o.replace(h, " ")).replace(/<\/?[^>]+(>|$)/g, "") |
|||
}, |
|||
k = function() { |
|||
var p = location.href; |
|||
var o = p.indexOf("#"); |
|||
if (o >= 0) { |
|||
return p.substring(o + 1) |
|||
} else { |
|||
throw "Unexpected use of this page" |
|||
} |
|||
}(), |
|||
n = {}; |
|||
while (j = m.exec(k)) { |
|||
n[e(j[1])] = e(j[2]) |
|||
} |
|||
var l = window.parent[n.uid]; |
|||
var i = ["datafeed", "customFormatters", "brokerFactory"]; |
|||
for (var g in l) { |
|||
if (i.indexOf(g) === -1) { |
|||
n[g] = JSON.stringify(l[g]) |
|||
} |
|||
} |
|||
return n |
|||
})(); |
|||
window.locale = urlParams.locale; |
|||
window.language = urlParams.locale; |
|||
window.addCustomCSSFile = function(e) { |
|||
var g = document.createElement("link"); |
|||
document.getElementsByTagName("head")[0].appendChild(g); |
|||
g.setAttribute("type", "text/css"); |
|||
g.setAttribute("rel", "stylesheet"); |
|||
g.setAttribute("href", e) |
|||
}; |
|||
if (!!urlParams.customCSS) { |
|||
window.addCustomCSSFile(urlParams.customCSS) |
|||
} |
|||
var f = {}; |
|||
if (typeof urlParams.loading_screen === "string") { |
|||
try { |
|||
f = JSON.parse(urlParams.loading_screen) |
|||
} catch (d) {} |
|||
} |
|||
var a = document.getElementById("loading-indicator"); |
|||
if (f.backgroundColor) { |
|||
a.style = "background-color: " + f.backgroundColor |
|||
} |
|||
var b = (f.foregroundColor) ? f.foregroundColor : "#00A2E2"; |
|||
var c = new Spinner({ |
|||
lines: 17, |
|||
length: 0, |
|||
width: 3, |
|||
radius: 30, |
|||
scale: 1, |
|||
corners: 1, |
|||
color: b, |
|||
opacity: 0, |
|||
rotate: 0, |
|||
direction: 1, |
|||
speed: 1.5, |
|||
trail: 60, |
|||
fps: 20, |
|||
zIndex: 2000000000, |
|||
className: "spinner", |
|||
top: "50%", |
|||
left: "50%", |
|||
shadow: false, |
|||
hwaccel: false |
|||
}).spin(a) |
|||
})(); |
|||
</script> |
|||
<script src="bundles/vendors.fd8604c09abed9f6643a.js"></script> |
|||
<script src="bundles/library.19c99ed5d0307c67f071.js"></script> |
|||
</body> |
|||
</html> |
|||
@ -0,0 +1,517 @@ |
|||
* { |
|||
margin: 0; |
|||
padding: 0; |
|||
list-style: none; |
|||
font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "微软雅黑", Arial, sans-serif; |
|||
box-sizing: border-box; |
|||
} |
|||
|
|||
body{ |
|||
min-width: 1280px; |
|||
} |
|||
|
|||
a{ |
|||
text-decoration: none; |
|||
} |
|||
|
|||
/* 导航条 */ |
|||
.header{ |
|||
width: 100%; |
|||
height: 100px; |
|||
background-color: #FFFFFF; |
|||
} |
|||
.header .header_content{ |
|||
display: flex; |
|||
justify-content: space-between; |
|||
height: 100%; |
|||
} |
|||
.header .header_content .logo{ |
|||
width: 171px; |
|||
padding: 22px 0; |
|||
} |
|||
|
|||
.header .header_content .logo img{ |
|||
width: 100%; |
|||
} |
|||
|
|||
.header .header_content .header_tabs .acon2{ |
|||
display: flex; |
|||
justify-content: space-between; |
|||
position: relative; |
|||
} |
|||
|
|||
.header .header_content .header_tabs .acon2 a,.header_tabs .acon2 .loginCss a{ |
|||
display: inline-block; |
|||
text-align: center; |
|||
color: #303133; |
|||
font: 20px "Medium"; |
|||
line-height: 69px; |
|||
margin-left: 80px; |
|||
position: relative; |
|||
} |
|||
.header .header_content .header_tabs .acon2 a::before { |
|||
content: ''; |
|||
width: 0%; |
|||
height: 3px; |
|||
border-radius: 4px; |
|||
background: #1C8D36; |
|||
position: absolute; |
|||
left: 50%; |
|||
bottom: 0px; |
|||
transform: translateX(-50%); |
|||
opacity: 0; |
|||
transition: all .5s; |
|||
} |
|||
.header .header_content .header_tabs .acon2 a.active::before, .header .header_content .header_tabs .acon2 a:hover::before { |
|||
width: 100%; |
|||
opacity: 1; |
|||
} |
|||
.header .header_content .header_tabs .acon2 a.active,.header .header_content .header_tabs .acon2 a:hover{ |
|||
color: #1C8D36; |
|||
} |
|||
.header .header_content .header_tabs .acon2 a:first-child{ |
|||
margin-left: 0; |
|||
} |
|||
.header .header_content .header_tabs .acon1{ |
|||
padding-top: 12px; |
|||
text-align: right; |
|||
} |
|||
.header .header_content .header_tabs .acon1 .a{ |
|||
display: inline-block; |
|||
text-align: center; |
|||
color: #999999; |
|||
font: 14px "Medium"; |
|||
margin-left: 48px; |
|||
position: relative; |
|||
} |
|||
.language{ |
|||
width: 60px; |
|||
line-height: 24px; |
|||
border: 1px solid #999999; |
|||
border-radius: 12px; |
|||
text-align: center; |
|||
position: relative; |
|||
cursor: pointer; |
|||
} |
|||
.NotLog{ |
|||
|
|||
} |
|||
.LogIn{ |
|||
position: relative; |
|||
} |
|||
.LogList{ |
|||
width: 166px; |
|||
position: absolute; |
|||
top: 100%; |
|||
left: 60%; |
|||
transform: translateX(-50%); |
|||
z-index: 10; |
|||
opacity: 0; |
|||
visibility: hidden; |
|||
transition: .5s all; |
|||
} |
|||
.LogList a{ |
|||
display: block; |
|||
padding: 0px 20px; |
|||
line-height: 42px; |
|||
background-color: #fff; |
|||
color: #1C8D36; |
|||
text-align: left; |
|||
font-size: 14px; |
|||
position: relative; |
|||
transition: .5s all; |
|||
} |
|||
.LogIn:hover .LogList{ |
|||
opacity: 1; |
|||
visibility: visible; |
|||
} |
|||
.LogList a:last-child{ |
|||
border-radius: 0 0 4px 4px; |
|||
} |
|||
.LogList a img{ |
|||
position: absolute; |
|||
right: 20px; |
|||
top: 50%; |
|||
transform: translateY(-50%); |
|||
} |
|||
.LogList a .img2{ |
|||
display: none; |
|||
} |
|||
.LogList a:hover .img1{ |
|||
display: none; |
|||
} |
|||
.LogList a:hover .img2{ |
|||
display: block; |
|||
} |
|||
.LogList a.active,.LogList a:hover{ |
|||
background-color: #1C8D36; |
|||
color: #fff; |
|||
} |
|||
.language-list{ |
|||
width: 100%; |
|||
position: absolute; |
|||
left: 50%; |
|||
top: 100%; |
|||
z-index: 10; |
|||
opacity: 0; |
|||
visibility: hidden; |
|||
transform: translateX(-50%); |
|||
transition: .5s all; |
|||
} |
|||
.language:hover .language-list{ |
|||
opacity: 1; |
|||
visibility: visible; |
|||
} |
|||
|
|||
.language .h1{ |
|||
width: 8px; |
|||
height: 5px; |
|||
vertical-align: middle; |
|||
} |
|||
.language-list a{ |
|||
display: block; |
|||
text-align: center; |
|||
color: #999999; |
|||
font: 14px "Medium"; |
|||
} |
|||
.header .header_content .header_tabs .acon1 .a:first-child{ |
|||
padding-left: 0; |
|||
|
|||
} |
|||
.header .header_content .header_tabs .acon1 .a::before{ |
|||
content: ''; |
|||
width: 1px; |
|||
height: 12px; |
|||
background-color: #999999; |
|||
position: absolute; |
|||
left: -50%; |
|||
top: 50%; |
|||
transform: translate(-50%,-50%); |
|||
} |
|||
.header .header_content .header_tabs .acon1 .a:first-child:before{ |
|||
content: none; |
|||
} |
|||
|
|||
|
|||
.header .header_content .header_tabs .bottom-arrow{ |
|||
width: 8px; |
|||
height: 8px; |
|||
margin-left: 2px; |
|||
} |
|||
|
|||
.header .header_content .header_tabs .robertlee{ |
|||
/* width: 70%; */ |
|||
position: relative; |
|||
padding: 0 13px; |
|||
overflow: hidden; |
|||
text-overflow: ellipsis; |
|||
} |
|||
|
|||
.header .header_content .header_tabs .robertlee img{ |
|||
position: absolute; |
|||
right: 8px; |
|||
top: 10px; |
|||
} |
|||
.header .header_content .header_tabs .logOut{ |
|||
padding: 21px; |
|||
background: #FFFFFF; |
|||
padding-left: 29px; |
|||
border-radius: 0px 0px 6px 6px; |
|||
font-size: 14px; |
|||
color: #E5544E; |
|||
cursor: pointer; |
|||
display: flex; |
|||
align-items: center; |
|||
text-align: center; |
|||
position: relative; |
|||
top: 7px; |
|||
left: 15px; |
|||
z-index: 19; |
|||
} |
|||
|
|||
.header .header_content .header_tabs .logOut img{ |
|||
width: 14px; |
|||
height: 14px; |
|||
margin-left: 8px; |
|||
} |
|||
|
|||
.header .header_content .header_tabs .newList{ |
|||
position: absolute; |
|||
left: 10px; |
|||
top: 41px; |
|||
padding: 21px 20px 25px; |
|||
background-color: #FFFFFF; |
|||
border-radius: 0 0 6px 6px; |
|||
color: #606266; |
|||
z-index: 199; |
|||
display: flex; |
|||
justify-content: space-between; |
|||
} |
|||
|
|||
.header .header_content .header_tabs .newList .newListCenter{ |
|||
margin: 0 20px; |
|||
} |
|||
.header .header_content .header_tabs .newList p{ |
|||
line-height: 36px; |
|||
cursor: pointer; |
|||
} |
|||
|
|||
.header .header_content .header_tabs .newList p a{ |
|||
color: #303133; |
|||
} |
|||
|
|||
.header .header_content .header_tabs .newList p:hover a{ |
|||
color: #1C8D36; |
|||
} |
|||
|
|||
|
|||
/* footer */ |
|||
.footer_content{ |
|||
width: 100%; |
|||
} |
|||
|
|||
.foot_top{ |
|||
width: 100%; |
|||
background: url(../image/footbg.png)no-repeat; |
|||
background-size: cover; |
|||
padding-top: 98px; |
|||
padding-bottom: 80px; |
|||
} |
|||
.foot_top .lef{ |
|||
width: 266px; |
|||
} |
|||
.foot_top .lef .logo{ |
|||
width: 121px; |
|||
} |
|||
.foot_top .lef .logo img{ |
|||
width: 100%; |
|||
} |
|||
.foot_top .lef div{ |
|||
margin-bottom: 18px; |
|||
} |
|||
.foot_top .lef div:last-child{ |
|||
margin-bottom: 0; |
|||
} |
|||
.foot_top .lef .div1{ |
|||
color: #fff; |
|||
font-size: 14px; |
|||
line-height: 18px; |
|||
} |
|||
.foot_top .lef .div2{ |
|||
|
|||
} |
|||
.foot_top .rig{ |
|||
display: flex; |
|||
justify-content: space-evenly; |
|||
} |
|||
.foot_top .rig .div{ |
|||
margin-right: 140px; |
|||
} |
|||
.foot_top .rig .div:last-child{ |
|||
margin-right: 0; |
|||
} |
|||
.foot_top .rig .div a{ |
|||
display: block; |
|||
margin-bottom: 16px; |
|||
color: #fff; |
|||
} |
|||
.foot_top .rig .div .head{ |
|||
font-size: 18px; |
|||
} |
|||
.foot_top .rig .div .a{ |
|||
font-size: 14px; |
|||
} |
|||
.foot_center{ |
|||
|
|||
} |
|||
.foot_center .rq{ |
|||
align-items: center; |
|||
padding: 25px 0; |
|||
} |
|||
.foot_center .p1{ |
|||
color: #999999; |
|||
font-size: 14px; |
|||
} |
|||
|
|||
.foot_center .imgcon2 img{ |
|||
margin-left: 10px !important; |
|||
} |
|||
.foot_center .imgcon img{ |
|||
margin-left: 40px; |
|||
} |
|||
.foot_center .imgcon img:first-child{ |
|||
margin-left: 0; |
|||
} |
|||
.foot_bottom .rq{ |
|||
align-items: center; |
|||
padding: 50px 0; |
|||
} |
|||
.foot_bottom .rq .div1{ |
|||
font-size: 16px; |
|||
color: #666666; |
|||
line-height: 24px; |
|||
width: 795px; |
|||
} |
|||
.foot_bottom .rq .div2{ |
|||
|
|||
} |
|||
.foot_bottom .rq .div2 a{ |
|||
display: inline-block; |
|||
width: 200px; |
|||
line-height: 56px; |
|||
border: 1px solid #1C8D36; |
|||
border-radius: 200px; |
|||
text-align: center; |
|||
color: #1C8D36; |
|||
font-size: 18px; |
|||
} |
|||
.foot_bottom .rq .div2 a.active{ |
|||
background-color: #1C8D36; |
|||
color: #fff; |
|||
margin-left: 20px; |
|||
} |
|||
.mgl{ |
|||
margin-left: 18px; |
|||
} |
|||
input { |
|||
padding: 0; |
|||
display: inline-block; |
|||
width: 100%; |
|||
border: 1px solid #dddee1; |
|||
border-radius: 4px; |
|||
color: #303133; |
|||
background-color: #fff; |
|||
background-image: none; |
|||
cursor: text; |
|||
} |
|||
|
|||
input:focus, input:hover { |
|||
border-color: #1C8D36; |
|||
outline: none |
|||
} |
|||
|
|||
.disabledSubmit { |
|||
background: #BFC2CC; |
|||
} |
|||
|
|||
.activeSubmit { |
|||
background-color: #1C8D36 !important; |
|||
} |
|||
|
|||
/***校验样式***/ |
|||
input.error{ |
|||
border: 1px solid #ed3f14 !important; |
|||
} |
|||
label.error{ |
|||
color: #ed3f14 !important; |
|||
font-size: 12px; |
|||
position: absolute; |
|||
display: none !important |
|||
} |
|||
.footer-wrap a{ |
|||
color: #FFFFFF; |
|||
} |
|||
.footer-wrap a:hover{ |
|||
color: #01A6D5; |
|||
} |
|||
/**表格样式***/ |
|||
|
|||
.layui-laydate-range{ |
|||
width: 550px!important; |
|||
} |
|||
.layui-laydate-content td.laydate-selected{ |
|||
background-color: #E4F9FF !important; |
|||
} |
|||
|
|||
/* layui.css 覆盖样式 */ |
|||
|
|||
.layui-tab-brief>.layui-tab-title .layui-this { |
|||
color: #1C8D36; |
|||
} |
|||
.layui-tab-brief>.layui-tab-more li.layui-this:after, .layui-tab-brief>.layui-tab-title .layui-this:after { |
|||
border-color: #1C8D36; |
|||
} |
|||
.layui-tab { |
|||
margin: 0; |
|||
} |
|||
.layui-table-view .layui-table { |
|||
width: 100%; |
|||
} |
|||
.layui-table-view .layui-table[lay-skin="line"] { |
|||
border: none; |
|||
} |
|||
.layui-table-view .layui-table[lay-skin="line"] tr, |
|||
.layui-table-view .layui-table[lay-skin="line"] th, |
|||
.layui-table-view .layui-table[lay-skin="line"] td { |
|||
border-width: 0; |
|||
border-bottom-width: 1px; |
|||
border-color: #E9EAEC; |
|||
} |
|||
.layui-btn { |
|||
background-color: #1C8D36; |
|||
} |
|||
.layui-form-select dl dd.layui-this { |
|||
background-color: #303133; |
|||
} |
|||
input.input-time { |
|||
background-image: url(../image/date.png); |
|||
background-repeat: no-repeat; |
|||
background-position: top 8px right 8px; |
|||
padding-right: 28px; |
|||
} |
|||
.layui-layer-title{ |
|||
font-size: 20px !important; |
|||
text-align: center; |
|||
color: #212B36 !important; |
|||
font-weight: 600; |
|||
height: 60px !important; |
|||
background: #FFFFFF !important; |
|||
line-height: 58px !important; |
|||
} |
|||
.layui-layer-setwin { |
|||
right: 20px !important; |
|||
} |
|||
.layui-table-body .layui-none { |
|||
padding-top: 49px; |
|||
padding-bottom: 30px; |
|||
} |
|||
.layui-table-body .layui-none .s2{ |
|||
padding-left: 5px; |
|||
padding-top: 5px; |
|||
} |
|||
.layui-laypage span.layui-laypage-count { |
|||
padding-right: 10px; |
|||
} |
|||
.dropdown-user { |
|||
display: inline-block; |
|||
width: 14px; |
|||
} |
|||
|
|||
.chart-page .chart-container{ |
|||
border-color: transparent !important; |
|||
background: none !important; |
|||
} |
|||
|
|||
|
|||
input::-webkit-input-placeholder { |
|||
color: #BFC2CC; |
|||
} |
|||
|
|||
input::-moz-placeholder { |
|||
/* Mozilla Firefox 19+ */ |
|||
color: #BFC2CC; |
|||
} |
|||
|
|||
input:-moz-placeholder { |
|||
/* Mozilla Firefox 4 to 18 */ |
|||
color: #BFC2CC; |
|||
} |
|||
|
|||
input:-ms-input-placeholder { |
|||
/* Internet Explorer 10-11 */ |
|||
color: #BFC2CC; |
|||
} |
|||
.bo-show{ |
|||
box-shadow: 0px 0px 10px 0px rgb(90 91 95 / 30%); |
|||
} |
|||
|
|||
@ -0,0 +1,546 @@ |
|||
.trade { |
|||
color: #FFFFFF !important; |
|||
background-image: linear-gradient(to right, #FFA3DC, #1C8D36); |
|||
border-radius: 15px; |
|||
} |
|||
|
|||
|
|||
.container2{ |
|||
width: 1366px; |
|||
padding: 0 40px; |
|||
margin: 0 auto; |
|||
} |
|||
.container { |
|||
margin: 10px auto 0; |
|||
width: 1420px; |
|||
margin: 0 auto; |
|||
overflow: hidden; |
|||
} |
|||
|
|||
.navbar { |
|||
padding-left: 30px; |
|||
} |
|||
|
|||
.main-sidebar-left, .main-sidebar-right { |
|||
width: 300px; |
|||
border: 1px solid #D9D9D9; |
|||
} |
|||
|
|||
.main-sidebar-left { |
|||
float: right; |
|||
} |
|||
|
|||
.main-sidebar-right { |
|||
float: left; |
|||
} |
|||
|
|||
.main-sidebar-left .main-tabs-content, .main-sidebar-right .main-tabs-content { |
|||
height: 888px; |
|||
} |
|||
|
|||
.main-middlebar { |
|||
margin: 0 307px; |
|||
} |
|||
|
|||
.main-tabs-nav { |
|||
height: 38px; |
|||
border-bottom: 1px solid #EDEFF2; |
|||
} |
|||
|
|||
.main-tabs-content { |
|||
padding: 0; |
|||
margin-bottom: 7px; |
|||
} |
|||
|
|||
.main-middlebar .layui-tab-content { |
|||
margin-bottom: 7px; |
|||
padding: 0; |
|||
} |
|||
|
|||
.layui-tab-content { |
|||
padding: 0; |
|||
} |
|||
|
|||
.main-middlebar .layui-tab-content .layui-tab-item { |
|||
height: 500px; |
|||
} |
|||
|
|||
.tradingview-head { |
|||
height: 38px; |
|||
margin-bottom: 3px; |
|||
padding: 0 20px; |
|||
} |
|||
|
|||
.tradingview-head span { |
|||
margin-right: 15px; |
|||
font-size: 12px; |
|||
color: #303133; |
|||
line-height: 38px; |
|||
} |
|||
|
|||
.tradingview-head span:first-of-type { |
|||
font-size: 20px; |
|||
} |
|||
|
|||
.tradingview-head em { |
|||
font-weight: normal; |
|||
font-style: normal; |
|||
} |
|||
|
|||
.tradingview-head em:first-of-type { |
|||
padding-right: 6px; |
|||
} |
|||
|
|||
.tradingview-container { |
|||
height: 516px; |
|||
} |
|||
|
|||
.deptrh-container { |
|||
height: 557px; |
|||
} |
|||
|
|||
.exchange-container { |
|||
overflow: hidden; |
|||
} |
|||
|
|||
.main-tabs-nav p.title { |
|||
text-align: center; |
|||
width: 80px; |
|||
height: 36px; |
|||
font-size: 14px; |
|||
font-family: PingFang SC; |
|||
font-weight: 600; |
|||
line-height: 36px; |
|||
color: #1C8D36; |
|||
opacity: 1; |
|||
border-bottom: 2px solid #1C8D36; |
|||
margin-left: 20px; |
|||
} |
|||
|
|||
.exchange-item { |
|||
float: left; |
|||
width: 50%; |
|||
margin-top: 15px; |
|||
border-right: 1px solid #EDEFF2; |
|||
box-sizing: border-box; |
|||
padding: 0 20px 17px; |
|||
} |
|||
|
|||
.exchange-item:last-of-type { |
|||
border-width: 0; |
|||
} |
|||
|
|||
.exchange-head { |
|||
display: flex; |
|||
color: #606266; |
|||
line-height: 22px; |
|||
margin-bottom: 22px; |
|||
} |
|||
|
|||
.exchange-head a { |
|||
color: #606266; |
|||
} |
|||
|
|||
.exchange-head span { |
|||
padding-right: 8px; |
|||
} |
|||
|
|||
|
|||
.exchange-head span:last-of-type { |
|||
padding-right: 0; |
|||
} |
|||
.exchange-head2{ |
|||
justify-content: space-between; |
|||
} |
|||
.exchange-tags { |
|||
height: 27px; |
|||
margin-bottom: 14px; |
|||
} |
|||
|
|||
.exchange-tags-label { |
|||
float: right; |
|||
margin-right: 15px; |
|||
} |
|||
|
|||
.exchange-tags-label span { |
|||
display: block; |
|||
padding: 0 15px; |
|||
height: 27px; |
|||
line-height: 27px; |
|||
font-size: 13px; |
|||
border: 1px solid #EDEFF2; |
|||
border-radius: 4px; |
|||
color: #909399; |
|||
cursor: pointer; |
|||
background-color: #fff; |
|||
} |
|||
|
|||
.exchange-tags-label input { |
|||
display: none; |
|||
} |
|||
|
|||
.exchange-tags-label input:checked+span { |
|||
border-color: #1C8D36; |
|||
} |
|||
|
|||
.exchange-input { |
|||
position: relative; |
|||
margin-bottom: 10px; |
|||
overflow: hidden; |
|||
} |
|||
|
|||
.exchange-input .layui-input { |
|||
background-color: #fff; |
|||
border-radius: 6px; |
|||
padding-left: 18px; |
|||
color: #303133; |
|||
width: 236px; |
|||
height: 40px; |
|||
font-size: 14px; |
|||
border: none; |
|||
float: right; |
|||
} |
|||
|
|||
.exchange-input .layui-input:hover { |
|||
border-color: #1C8D36 !important; |
|||
} |
|||
|
|||
.exchange-input .layui-input:focus { |
|||
border-color: #1C8D36 !important; |
|||
} |
|||
|
|||
.exchange-input .s1{ |
|||
position: absolute; |
|||
top: 13px; |
|||
left: 16px; |
|||
line-height: 1em; |
|||
color: #303133; |
|||
} |
|||
.exchange-input .s2{ |
|||
position: absolute; |
|||
right: 15px; |
|||
font-size: 13px; |
|||
color: #1C8D36; |
|||
top: 13px; |
|||
} |
|||
.exchange-total { |
|||
height: 18px; |
|||
line-height: 18px; |
|||
margin-bottom: 14px; |
|||
font-size: 12px; |
|||
color: #909399; |
|||
} |
|||
|
|||
.exchange-total>div:first-of-type { |
|||
float: left; |
|||
} |
|||
|
|||
.exchange-total-input { |
|||
float: right; |
|||
position: relative; |
|||
} |
|||
|
|||
.exchange-total-input>* { |
|||
float: right; |
|||
} |
|||
|
|||
.exchange-total-input input { |
|||
width: 200px; |
|||
border: none; |
|||
outline: none; |
|||
background-color: transparent; |
|||
padding-right: 6px; |
|||
text-align: right; |
|||
color: #909399; |
|||
line-height: 18px; |
|||
} |
|||
|
|||
.exchange-btn { |
|||
height: 38px; |
|||
line-height: 38px; |
|||
text-align: center; |
|||
border-radius: 6px; |
|||
cursor: pointer; |
|||
color: #1C8D36; |
|||
font-size: 14px; |
|||
} |
|||
.exchange-btn a{ |
|||
color: #1C8D36; |
|||
font-size: 14px; |
|||
height: 100%; |
|||
} |
|||
.exchange-btn:hover a{ |
|||
color: #fff; |
|||
} |
|||
.exchange-btn.buy-btn { |
|||
border:1px solid #1C8D36; |
|||
} |
|||
.exchange-btn:hover.buy-btn{ |
|||
background-color: #1C8D36; |
|||
color: #fff; |
|||
} |
|||
.exchange-btn.buy-login-btn { |
|||
background: #00505F; |
|||
border: 1px solid#00505F; |
|||
color:#FFFFFF; |
|||
font-weight: bold; |
|||
} |
|||
|
|||
.exchange-btn.sell-btn { |
|||
background-color: #E5544E; |
|||
} |
|||
|
|||
.exchange-btn:hover::after { |
|||
position: absolute; |
|||
content: ''; |
|||
top: 0; |
|||
left: 0; |
|||
right: 0; |
|||
bottom: 0; |
|||
background-color: rgba(255, 255, 255, .1); |
|||
border-radius: 20px; |
|||
} |
|||
|
|||
.table-delegate { |
|||
min-height: 150px; |
|||
padding-bottom: 35px; |
|||
} |
|||
|
|||
.main-tabs-nav.layui-tab-title { |
|||
border-bottom: 1px solid #EDEFF2; |
|||
padding: 0 15px; |
|||
} |
|||
|
|||
.main-tabs-nav.layui-tab-title li { |
|||
height: 36px; |
|||
line-height: 36px; |
|||
color: #303133; |
|||
padding: 0; |
|||
text-align: center; |
|||
float: left; |
|||
display: block; |
|||
} |
|||
|
|||
.main-tabs-nav.layui-tab-title li.layui-this { |
|||
color: #1C8D36; |
|||
font-size: 14px; |
|||
} |
|||
|
|||
.main-tabs-nav.layui-tab-title li.layui-this:after { |
|||
height: 38px; |
|||
border-color: #1C8D36; |
|||
} |
|||
|
|||
.main-sidebar-left .main-tabs-nav.layui-tab-title li { |
|||
width: 25%; |
|||
} |
|||
|
|||
.main-sidebar-right .main-tabs-nav.layui-tab-title li { |
|||
width: 50%; |
|||
} |
|||
|
|||
.main-delegate .main-tabs-nav.layui-tab-title li, .main-middlebar .main-tabs-nav.layui-tab-title li { |
|||
width: auto; |
|||
padding: 0 16px; |
|||
} |
|||
|
|||
.layui-table-cell { |
|||
padding: 0 10px 0 0; |
|||
height: 30px; |
|||
line-height: 30px; |
|||
} |
|||
|
|||
.main-sidebar-left th:first-of-type .layui-table-cell, .main-sidebar-left td:first-of-type .layui-table-cell, .main-sidebar-right th:first-of-type .layui-table-cell, .main-sidebar-right td:first-of-type .layui-table-cell { |
|||
padding: 0 0 0 10px; |
|||
} |
|||
|
|||
.main-delegat .layui-table-cell { |
|||
padding: 0 10px; |
|||
} |
|||
|
|||
.layui-table, .layui-table-view { |
|||
margin: 6px 0 0; |
|||
background: none; |
|||
} |
|||
|
|||
.layui-table tbody tr:hover, .layui-table thead tr, .layui-table-click, .layui-table-header, .layui-table-hover, .layui-table-mend, .layui-table-patch, .layui-table-tool, .layui-table-total, .layui-table-total tr, .layui-table[lay-even] tr:nth-child(even) { |
|||
background: none; |
|||
} |
|||
|
|||
.layui-table tbody tr:hover { |
|||
background: rgba(194, 226, 211, .19); |
|||
} |
|||
|
|||
.layui-table tbody tr td:hover { |
|||
cursor: pointer; |
|||
} |
|||
|
|||
.layui-table td, .layui-table th, .layui-table-col-set, .layui-table-fixed-r, .layui-table-grid-down, .layui-table-header, .layui-table-page, .layui-table-tips-main, .layui-table-tool, .layui-table-total, .layui-table-view, .layui-table[lay-skin=line], .layui-table[lay-skin=row] { |
|||
border-color: transparent; |
|||
} |
|||
|
|||
.layui-table-header .layui-table-cell { |
|||
color: #959AA3; |
|||
text-align: center; |
|||
} |
|||
|
|||
.layui-table-sort .layui-table-sort-desc { |
|||
border-top-color: #D8D8D8; |
|||
} |
|||
|
|||
.layui-table-sort .layui-table-sort-desc:hover { |
|||
border-top-color: #D8D8D8; |
|||
} |
|||
|
|||
.layui-table-sort[lay-sort=desc] .layui-table-sort-desc { |
|||
border-top-color: #1C8D36; |
|||
} |
|||
|
|||
.layui-table-sort .layui-table-sort-asc { |
|||
border-bottom-color: #D8D8D8; |
|||
} |
|||
|
|||
.layui-table-sort .layui-table-sort-asc:hover { |
|||
border-bottom-color: #D8D8D8; |
|||
} |
|||
|
|||
.layui-table-sort[lay-sort=asc] .layui-table-sort-asc { |
|||
border-bottom-color: #1C8D36; |
|||
} |
|||
.layui-table-body .laytable-cell-6-0-0{ |
|||
color: #E5544E !important; |
|||
} |
|||
.layui-table-view .layui-table td { |
|||
padding: 0; |
|||
} |
|||
|
|||
.layui-table-view .layui-table td .layui-table-cell { |
|||
color: #303133; |
|||
text-align: center; |
|||
} |
|||
|
|||
.layui-icon { |
|||
font-size: 12px; |
|||
} |
|||
|
|||
.layui-icon.layui-icon-rate-solid { |
|||
color: #F79A28; |
|||
} |
|||
|
|||
.layui-icon.layui-icon-rate { |
|||
color: #959AA3; |
|||
} |
|||
|
|||
.buy-color { |
|||
color: #1C8D36; |
|||
} |
|||
|
|||
.layui-table-body .laytable-cell-5-0-0{ |
|||
color: #1C8D36 !important; |
|||
} |
|||
|
|||
.sell-color { |
|||
color: #E5544E; |
|||
} |
|||
|
|||
.gray-color { |
|||
color:#303133; |
|||
} |
|||
|
|||
.coin-text { |
|||
margin-left: 6px; |
|||
} |
|||
|
|||
input::-webkit-outer-spin-button, input::-webkit-inner-spin-button { |
|||
-webkit-appearance: none; |
|||
} |
|||
|
|||
.main-sidebar-right .main-tabs-content.la { |
|||
background-color: transparent; |
|||
} |
|||
|
|||
.main-tabs-orderbook-hd { |
|||
height: 36px; |
|||
line-height: 36px; |
|||
text-align: center; |
|||
padding: 12px auto; |
|||
background-color:rgba(189, 98, 255, 0.1); |
|||
font-size: 12px; |
|||
color: #1C8D36; |
|||
} |
|||
|
|||
.main-sidebar-right .orderbook-wrap { |
|||
height: 485px; |
|||
margin-bottom: 0; |
|||
} |
|||
|
|||
.main-sidebar-right .orderbook-wrap1 { |
|||
height: 367px; |
|||
margin-bottom: 7px; |
|||
} |
|||
|
|||
.highcharts-background { |
|||
fill: #121C31; |
|||
} |
|||
|
|||
.main-sidebar-top{ |
|||
padding: 0 10px; |
|||
padding-top: 40px; |
|||
padding-bottom: 20px; |
|||
} |
|||
.flex{ |
|||
display: flex; |
|||
} |
|||
|
|||
.main-sidebar-top .one{ |
|||
font-size: 14px; |
|||
color: #666666; |
|||
} |
|||
.main-sidebar-top .one .s1{ |
|||
font-size: 28px; |
|||
color: #303133; |
|||
} |
|||
.main-sidebar-top .two{ |
|||
margin-left: 40px; |
|||
} |
|||
.main-sidebar-top .two .p1{ |
|||
font-size: 12px; |
|||
color: #666666; |
|||
} |
|||
.main-sidebar-top .two .p2{ |
|||
font-size: 14px; |
|||
color: #1C8D36; |
|||
} |
|||
|
|||
|
|||
.Thtitle{ |
|||
margin-top: 40px; |
|||
line-height: 36px; |
|||
width: 100%; |
|||
background: rgba(28, 141,54, 0.05); |
|||
text-align: left; |
|||
font-size: 14px; |
|||
padding-left: 20px; |
|||
color: #303133; |
|||
} |
|||
.cent{ |
|||
color: #1C8D36; |
|||
text-align: center; |
|||
} |
|||
.layui-table-body .laytable-cell-7-0-0{ |
|||
color: #1C8D36 !important; |
|||
} |
|||
.gai{ |
|||
background-color: #F5F7FA !important; |
|||
} |
|||
.main-delegate{ |
|||
border: 1px solid #D9D9D9; |
|||
} |
|||
.ma1{ |
|||
padding-bottom: 20px; |
|||
} |
|||
.layui-table-page{ |
|||
overflow-x: scroll; |
|||
overflow-y: hidden; |
|||
padding-bottom: 50px; |
|||
} |
|||