From e8f23cf92146828ea2a8b65724c7a6824acf9f0f Mon Sep 17 00:00:00 2001 From: Austaras Date: Wed, 22 Jan 2025 18:28:26 +0800 Subject: [PATCH] feat(es/minifier): Compress negate eq (#9911) **Description:** This should be fine since Google Closure Compiler does the same compress. --- .changeset/moody-laws-explain.md | 6 ++ .../typeGuardRedundancy.2.minified.js | 2 +- .../tests/vercel/full/utf8-1/output/index.js | 2 +- .../src/compress/pure/bools.rs | 77 +++++++++++++++++++ .../src/compress/pure/mod.rs | 2 + .../tests/benches-full/echarts.js | 14 ++-- .../tests/benches-full/jquery.js | 2 +- .../tests/benches-full/lodash.js | 2 +- .../tests/benches-full/react.js | 6 +- .../tests/benches-full/vue.js | 2 +- .../tests/fixture/issues/2257/full/output.js | 12 +-- .../issues/firebase-firestore/1/output.js | 2 +- .../chunks/357-72bd409f1472b1b8/output.js | 4 +- .../8a28b14e.d8fbda268ed281a1/output.js | 4 +- .../framework-798bab57daac3897/output.js | 6 +- .../syncfusion/933-e9f9a6bf671b96fc/output.js | 46 +++++------ .../fixture/next/wrap-contracts/output.js | 2 +- .../785-e1932cc99ac3bb67/output.js | 2 +- .../full/issue-5912-bigdecimal/output.js | 2 +- .../tests/projects/output/angular-1.2.5.js | 2 +- .../projects/output/jquery.mobile-1.4.2.js | 8 +- .../tests/projects/output/react-17.0.1.js | 6 +- .../tests/projects/output/react-dom-17.0.2.js | 66 ++++++++-------- 23 files changed, 181 insertions(+), 96 deletions(-) create mode 100644 .changeset/moody-laws-explain.md diff --git a/.changeset/moody-laws-explain.md b/.changeset/moody-laws-explain.md new file mode 100644 index 000000000000..c4e1685763d0 --- /dev/null +++ b/.changeset/moody-laws-explain.md @@ -0,0 +1,6 @@ +--- +swc_core: minor +swc_ecma_minifier: minor +--- + +fix(es/minifier): Compress negate eq diff --git a/crates/swc/tests/tsc-references/typeGuardRedundancy.2.minified.js b/crates/swc/tests/tsc-references/typeGuardRedundancy.2.minified.js index b0faf641d9bc..9f85d41d6461 100644 --- a/crates/swc/tests/tsc-references/typeGuardRedundancy.2.minified.js +++ b/crates/swc/tests/tsc-references/typeGuardRedundancy.2.minified.js @@ -1,3 +1,3 @@ //// [typeGuardRedundancy.ts] var x; -"string" == typeof x && "string" == typeof x ? x.substr : x.toFixed, "string" == typeof x && "string" == typeof x ? x.substr : x.toFixed, "string" == typeof x || "string" == typeof x ? x.substr : x.toFixed, "string" == typeof x || "string" == typeof x ? x.substr : x.toFixed; +"string" == typeof x && "string" == typeof x ? x.substr : x.toFixed, "string" != typeof x || "string" != typeof x ? x.toFixed : x.substr, "string" == typeof x || "string" == typeof x ? x.substr : x.toFixed, "string" != typeof x && "string" != typeof x ? x.toFixed : x.substr; diff --git a/crates/swc/tests/vercel/full/utf8-1/output/index.js b/crates/swc/tests/vercel/full/utf8-1/output/index.js index b4a2e397d170..90773d003d79 100644 --- a/crates/swc/tests/vercel/full/utf8-1/output/index.js +++ b/crates/swc/tests/vercel/full/utf8-1/output/index.js @@ -12,7 +12,7 @@ function p() { return t(this, function(t) { switch(t.label){ case 0: - if (!(_ !== __webpack_hash__) || 'idle' !== module.hot.status()) return [ + if (_ === __webpack_hash__ || 'idle' !== module.hot.status()) return [ 2 ]; t.label = 1; diff --git a/crates/swc_ecma_minifier/src/compress/pure/bools.rs b/crates/swc_ecma_minifier/src/compress/pure/bools.rs index 8b735f0df10b..a5b82412fa1a 100644 --- a/crates/swc_ecma_minifier/src/compress/pure/bools.rs +++ b/crates/swc_ecma_minifier/src/compress/pure/bools.rs @@ -80,6 +80,83 @@ impl Pure<'_> { } } + pub(super) fn optimize_negate_eq(&mut self, e: &mut Expr) { + fn is_eq(op: BinaryOp) -> bool { + matches!(op, op!("==") | op!("===") | op!("!=") | op!("!==")) + } + + fn can_absorb_negate(e: &Expr) -> bool { + match e { + Expr::Lit(_) => true, + Expr::Bin(BinExpr { + op: op!("&&") | op!("||"), + left, + right, + .. + }) => can_absorb_negate(left) && can_absorb_negate(right), + Expr::Bin(BinExpr { op, .. }) if is_eq(*op) => true, + Expr::Unary(UnaryExpr { + op: op!("!"), arg, .. + }) => arg.get_type() == Value::Known(Type::Bool), + _ => false, + } + } + + fn negate_eq(op: BinaryOp) -> BinaryOp { + match op { + op!("==") => op!("!="), + op!("!=") => op!("=="), + op!("===") => op!("!=="), + op!("!==") => op!("==="), + _ => unreachable!(), + } + } + + if !self.options.bools { + return; + } + + let Expr::Unary(UnaryExpr { + op: op!("!"), arg, .. + }) = e + else { + return; + }; + + let arg_can_negate = can_absorb_negate(arg); + + match &mut **arg { + Expr::Bin(BinExpr { op, .. }) if is_eq(*op) => { + self.changed = true; + report_change!("bools: Optimizing `!(a == b)` as `a != b`"); + + *op = negate_eq(*op); + + *e = *arg.take(); + } + Expr::Bin(BinExpr { + op: op @ (op!("&&") | op!("||")), + left, + right, + .. + }) if arg_can_negate => { + self.changed = true; + report_change!("bools: Optimizing `!(a == b && c == d)` as `a != b`"); + + *op = match op { + op!("&&") => op!("||"), + op!("||") => op!("&&"), + _ => unreachable!(), + }; + + self.negate(left, false, false); + self.negate(right, false, false); + *e = *arg.take(); + } + _ => (), + } + } + pub(super) fn compress_cmp_with_long_op(&mut self, e: &mut BinExpr) { fn should_optimize(l: &Expr, r: &Expr, opts: &CompressOptions) -> bool { match (l, r) { diff --git a/crates/swc_ecma_minifier/src/compress/pure/mod.rs b/crates/swc_ecma_minifier/src/compress/pure/mod.rs index a5f17e43d146..35b6cb8f7ea0 100644 --- a/crates/swc_ecma_minifier/src/compress/pure/mod.rs +++ b/crates/swc_ecma_minifier/src/compress/pure/mod.rs @@ -405,6 +405,8 @@ impl VisitMut for Pure<'_> { debug_assert_valid(e); } + self.optimize_negate_eq(e); + self.lift_minus(e); self.optimize_to_number(e); diff --git a/crates/swc_ecma_minifier/tests/benches-full/echarts.js b/crates/swc_ecma_minifier/tests/benches-full/echarts.js index eb45588050b7..d4a79bf0af7a 100644 --- a/crates/swc_ecma_minifier/tests/benches-full/echarts.js +++ b/crates/swc_ecma_minifier/tests/benches-full/echarts.js @@ -5824,7 +5824,7 @@ this.path = new PathProxy(!1); }, Path.prototype.hasStroke = function() { var style = this.style, stroke = style.stroke; - return !(null == stroke || 'none' === stroke || !(style.lineWidth > 0)); + return null != stroke && 'none' !== stroke && style.lineWidth > 0; }, Path.prototype.hasFill = function() { var fill = this.style.fill; return null != fill && 'none' !== fill; @@ -11865,7 +11865,7 @@ var inner = makeInner(); return function(seriesModel) { var fields = inner(seriesModel), pipelineContext = seriesModel.pipelineContext, originalLarge = !!fields.large, originalProgressive = !!fields.progressiveRender, large = fields.large = !!(pipelineContext && pipelineContext.large), progressive = fields.progressiveRender = !!(pipelineContext && pipelineContext.progressiveRender); - return !!(originalLarge !== large || originalProgressive !== progressive) && 'reset'; + return (originalLarge !== large || originalProgressive !== progressive) && 'reset'; }; } enableClassExtend(ComponentView), enableClassManagement(ComponentView); @@ -13497,7 +13497,7 @@ var pathProxyForDraw = new PathProxy(!0); function styleHasStroke(style) { var stroke = style.stroke; - return !(null == stroke || 'none' === stroke || !(style.lineWidth > 0)); + return null != stroke && 'none' !== stroke && style.lineWidth > 0; } function styleHasFill(style) { var fill = style.fill; @@ -15506,7 +15506,7 @@ function applyElementStates(el) { for(var newStates = [], oldStates = el.currentStates, i = 0; i < oldStates.length; i++){ var stateName = oldStates[i]; - 'emphasis' === stateName || 'blur' === stateName || 'select' === stateName || newStates.push(stateName); + 'emphasis' !== stateName && 'blur' !== stateName && 'select' !== stateName && newStates.push(stateName); } // Only use states when it's exists. el.selected && el.states.select && newStates.push('select'), 2 === el.hoverState && el.states.emphasis ? newStates.push('emphasis') : 1 === el.hoverState && el.states.blur && newStates.push('blur'), el.useStates(newStates); } @@ -16739,7 +16739,7 @@ if (coordDim) { assert(null == VISUAL_DIMENSIONS.get(coordDim)); var dimType, coordDimIndex = dimItem.coordDimIndex; - getOrCreateEncodeArr(encode, coordDim)[coordDimIndex] = dimName, dimItem.isExtraCoord || (notExtraCoordDimMap.set(coordDim, 1), 'ordinal' === (dimType = dimItem.type) || 'time' === dimType || (defaultedLabel[0] = dimName), // And it only has index. User can use index to retrieve value from the raw item array. + getOrCreateEncodeArr(encode, coordDim)[coordDimIndex] = dimName, dimItem.isExtraCoord || (notExtraCoordDimMap.set(coordDim, 1), 'ordinal' !== (dimType = dimItem.type) && 'time' !== dimType && (defaultedLabel[0] = dimName), // And it only has index. User can use index to retrieve value from the raw item array. getOrCreateEncodeArr(userOutput.encode, coordDim)[coordDimIndex] = dimItem.index), dimItem.defaultTooltip && defaultedTooltip.push(dimName); } VISUAL_DIMENSIONS.each(function(v, otherDim) { @@ -34278,7 +34278,7 @@ var width, height, xAxisExtent, yAxisExtent, coordSys = seriesModel.coordinateSystem; if (isCoordinateSystemType(coordSys, 'cartesian2d')) { var xAxis = coordSys.getAxis('x'), yAxis = coordSys.getAxis('y'); - if (!('category' === xAxis.type && 'category' === yAxis.type)) throw Error('Heatmap on cartesian must have two category axes'); + if ('category' !== xAxis.type || 'category' !== yAxis.type) throw Error('Heatmap on cartesian must have two category axes'); if (!(xAxis.onBand && yAxis.onBand)) throw Error('Heatmap on cartesian must have two axes with boundaryGap true'); width = xAxis.getBandWidth(), height = yAxis.getBandWidth(), xAxisExtent = xAxis.scale.getExtent(), yAxisExtent = yAxis.scale.getExtent(); } @@ -36370,7 +36370,7 @@ } } if (!isInit && elPropsInAttr // Just ignore shape animation in morphing. - && !(null != morphFromEl && 'shape' === mainAttr)) { + && (null == morphFromEl || 'shape' !== mainAttr)) { if (attrOpt.transition) { transFromPropsInAttr || (transFromPropsInAttr = transFromProps[mainAttr] = {}); for(var transitionKeys = normalizeToArray(attrOpt.transition), i = 0; i < transitionKeys.length; i++){ diff --git a/crates/swc_ecma_minifier/tests/benches-full/jquery.js b/crates/swc_ecma_minifier/tests/benches-full/jquery.js index 9111d660aa38..4d5023a7848b 100644 --- a/crates/swc_ecma_minifier/tests/benches-full/jquery.js +++ b/crates/swc_ecma_minifier/tests/benches-full/jquery.js @@ -2321,7 +2321,7 @@ !("click" === event.type && event.button >= 1)) { for(; cur !== this; cur = cur.parentNode || this)// Don't check non-elements (#13208) // Don't process clicks on disabled elements (#6911, #8165, #11382, #11764) - if (1 === cur.nodeType && !("click" === event.type && !0 === cur.disabled)) { + if (1 === cur.nodeType && ("click" !== event.type || !0 !== cur.disabled)) { for(i = 0, matchedHandlers = [], matchedSelectors = {}; i < delegateCount; i++)void 0 === matchedSelectors[// Don't conflict with Object.prototype properties (#13203) sel = (handleObj = handlers[i]).selector + " "] && (matchedSelectors[sel] = handleObj.needsContext ? jQuery(sel, this).index(cur) > -1 : jQuery.find(sel, this, null, [ cur diff --git a/crates/swc_ecma_minifier/tests/benches-full/lodash.js b/crates/swc_ecma_minifier/tests/benches-full/lodash.js index 75d876029345..774404afecb6 100644 --- a/crates/swc_ecma_minifier/tests/benches-full/lodash.js +++ b/crates/swc_ecma_minifier/tests/benches-full/lodash.js @@ -3097,7 +3097,7 @@ * @returns {Function} Returns the new relational operation function. */ function createRelationalOperation(operator) { return function(value, other) { - return 'string' == typeof value && 'string' == typeof other || (value = toNumber(value), other = toNumber(other)), operator(value, other); + return ('string' != typeof value || 'string' != typeof other) && (value = toNumber(value), other = toNumber(other)), operator(value, other); }; } /** diff --git a/crates/swc_ecma_minifier/tests/benches-full/react.js b/crates/swc_ecma_minifier/tests/benches-full/react.js index 1d6af0a0a10e..0db6b584af04 100644 --- a/crates/swc_ecma_minifier/tests/benches-full/react.js +++ b/crates/swc_ecma_minifier/tests/benches-full/react.js @@ -175,7 +175,7 @@ * @final * @protected */ Component.prototype.setState = function(partialState, callback) { - if (!('object' == typeof partialState || 'function' == typeof partialState || null == partialState)) throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables."); + if ('object' != typeof partialState && 'function' != typeof partialState && null != partialState) throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables."); this.updater.enqueueSetState(this, partialState, callback, 'setState'); }, /** * Forces an update. This should only be invoked when it is known with @@ -381,7 +381,7 @@ * Clone and return a new ReactElement using element as the starting point. * See https://reactjs.org/docs/react-api.html#cloneelement */ function cloneElement(element, config, children) { - if (!(null != element)) throw Error("React.cloneElement(...): The argument must be a React element, but you passed " + element + "."); + if (null == element) throw Error("React.cloneElement(...): The argument must be a React element, but you passed " + element + "."); var propName, defaultProps, props = _assign({}, element.props), key = element.key, ref = element.ref, self = element._self, source = element._source, owner = element._owner; // Reserved names are extracted if (null != config) for(propName in hasValidRef(config) && (// Silently steal the ref from the parent. ref = config.ref, owner = ReactCurrentOwner.current), hasValidKey(config) && (key = '' + config.key), element.type && element.type.defaultProps && (defaultProps = element.type.defaultProps), config)hasOwnProperty.call(config, propName) && !RESERVED_PROPS.hasOwnProperty(propName) && (void 0 === config[propName] && void 0 !== defaultProps ? // Resolve default props @@ -516,7 +516,7 @@ } function resolveDispatcher() { var dispatcher = ReactCurrentDispatcher.current; - if (!(null !== dispatcher)) throw Error("Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:\n1. You might have mismatching versions of React and the renderer (such as React DOM)\n2. You might be breaking the Rules of Hooks\n3. You might have more than one copy of React in the same app\nSee https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem."); + if (null === dispatcher) throw Error("Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:\n1. You might have mismatching versions of React and the renderer (such as React DOM)\n2. You might be breaking the Rules of Hooks\n3. You might have more than one copy of React in the same app\nSee https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem."); return dispatcher; } // Helpers to patch console.logs to avoid logging during side-effect free diff --git a/crates/swc_ecma_minifier/tests/benches-full/vue.js b/crates/swc_ecma_minifier/tests/benches-full/vue.js index 1471e0830849..d193e9112993 100644 --- a/crates/swc_ecma_minifier/tests/benches-full/vue.js +++ b/crates/swc_ecma_minifier/tests/benches-full/vue.js @@ -4355,7 +4355,7 @@ // For a node to qualify as a static root, it should have children that // are not just static text. Otherwise the cost of hoisting out will // outweigh the benefits and it's better off to just always render it fresh. - if ((node.static || node.once) && (node.staticInFor = isInFor), node.static && node.children.length && !(1 === node.children.length && 3 === node.children[0].type)) { + if ((node.static || node.once) && (node.staticInFor = isInFor), node.static && node.children.length && (1 !== node.children.length || 3 !== node.children[0].type)) { node.staticRoot = !0; return; } diff --git a/crates/swc_ecma_minifier/tests/fixture/issues/2257/full/output.js b/crates/swc_ecma_minifier/tests/fixture/issues/2257/full/output.js index 8c1466d83c28..537bf71184d7 100644 --- a/crates/swc_ecma_minifier/tests/fixture/issues/2257/full/output.js +++ b/crates/swc_ecma_minifier/tests/fixture/issues/2257/full/output.js @@ -1439,7 +1439,7 @@ return element.decorators && element.decorators.length; } function _isDataDescriptor(desc) { - return void 0 !== desc && !(void 0 === desc.value && void 0 === desc.writable); + return void 0 !== desc && (void 0 !== desc.value || void 0 !== desc.writable); } function _defineClassElement(receiver, element) { var descriptor = element.descriptor; @@ -11253,7 +11253,7 @@ } function handlePopState(event) { // Ignore extraneous popstate events in WebKit. - void 0 === event.state && -1 === navigator.userAgent.indexOf("CriOS") || handlePop(getDOMLocation(event.state)); + (void 0 !== event.state || -1 !== navigator.userAgent.indexOf("CriOS")) && handlePop(getDOMLocation(event.state)); } function handleHashChange() { handlePop(getDOMLocation(getHistoryState())); @@ -12481,7 +12481,7 @@ function ea(a, b) { for(ca[a] = b, a = 0; a < b.length; a++)ba.add(b[a]); } - var fa = !("undefined" == typeof window || void 0 === window.document || void 0 === window.document.createElement), ha = /^[: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][: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\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/, ia = Object.prototype.hasOwnProperty, ja = {}, ka = {}; + var fa = "undefined" != typeof window && void 0 !== window.document && void 0 !== window.document.createElement, ha = /^[: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][: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\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/, ia = Object.prototype.hasOwnProperty, ja = {}, ka = {}; function B(a, b, c, d, e, f, g) { this.acceptsBooleans = 2 === b || 3 === b || 4 === b, this.attributeName = d, this.attributeNamespace = e, this.mustUseProperty = c, this.propertyName = a, this.type = b, this.sanitizeURL = f, this.removeEmptyString = g; } @@ -12810,7 +12810,7 @@ function cb(a, b, c) { if (b.hasOwnProperty("value") || b.hasOwnProperty("defaultValue")) { var d = b.type; - if (!("submit" !== d && "reset" !== d || void 0 !== b.value && null !== b.value)) return; + if (("submit" === d || "reset" === d) && (void 0 === b.value || null === b.value)) return; b = "" + a._wrapperState.initialValue, c || b === a.value || (a.value = b), a.defaultValue = b; } "" !== (c = a.name) && (a.name = ""), a.defaultChecked = !!a._wrapperState.initialChecked, "" !== c && (a.name = c); @@ -13071,7 +13071,7 @@ case "onMouseUp": case "onMouseUpCapture": case "onMouseEnter": - (d = !d.disabled) || (d = !("button" === (a = a.type) || "input" === a || "select" === a || "textarea" === a)), a = !d; + (d = !d.disabled) || (d = "button" !== (a = a.type) && "input" !== a && "select" !== a && "textarea" !== a), a = !d; break; default: a = !1; @@ -19173,7 +19173,7 @@ /***/ 97044: /***/ function(module) { "use strict"; module.exports = (string, separator)=>{ - if (!("string" == typeof string && "string" == typeof separator)) throw TypeError("Expected the arguments to be of type `string`"); + if ("string" != typeof string || "string" != typeof separator) throw TypeError("Expected the arguments to be of type `string`"); if ("" === separator) return [ string ]; diff --git a/crates/swc_ecma_minifier/tests/fixture/issues/firebase-firestore/1/output.js b/crates/swc_ecma_minifier/tests/fixture/issues/firebase-firestore/1/output.js index 243e073ed5a5..659c8324e4f3 100644 --- a/crates/swc_ecma_minifier/tests/fixture/issues/firebase-firestore/1/output.js +++ b/crates/swc_ecma_minifier/tests/fixture/issues/firebase-firestore/1/output.js @@ -7068,7 +7068,7 @@ } ho(t, e) { return(// Always raise the first event when we're synced - !t.fromCache || (!this.options.fo || !("Offline" /* Offline */ !== e)) && (!t.docs.isEmpty() || "Offline" /* Offline */ === e)); + !t.fromCache || (!this.options.fo || "Offline" /* Offline */ === e) && (!t.docs.isEmpty() || "Offline" /* Offline */ === e)); // Raise data from cache if we have any documents or we are offline } uo(t) { diff --git a/crates/swc_ecma_minifier/tests/fixture/next/octokit/static/chunks/357-72bd409f1472b1b8/output.js b/crates/swc_ecma_minifier/tests/fixture/next/octokit/static/chunks/357-72bd409f1472b1b8/output.js index 9e8aa261f9e4..f714fc05244b 100644 --- a/crates/swc_ecma_minifier/tests/fixture/next/octokit/static/chunks/357-72bd409f1472b1b8/output.js +++ b/crates/swc_ecma_minifier/tests/fixture/next/octokit/static/chunks/357-72bd409f1472b1b8/output.js @@ -147,7 +147,7 @@ export default function(module, __unused_webpack_exports, __webpack_require__) { } _assertStatus(expected) { var status; - if (!((status = this._states.jobStatus(this.options.id)) === expected || "DONE" === expected && null === status)) throw new BottleneckError(`Invalid job status ${status}, expected ${expected}. Please open an issue at https://github.com/SGrondin/bottleneck/issues`); + if ((status = this._states.jobStatus(this.options.id)) !== expected && ("DONE" !== expected || null !== status)) throw new BottleneckError(`Invalid job status ${status}, expected ${expected}. Please open an issue at https://github.com/SGrondin/bottleneck/issues`); } doReceive() { return this._states.start(this.options.id), this.Events.trigger("received", { @@ -488,7 +488,7 @@ export default function(module, __unused_webpack_exports, __webpack_require__) { }); } _validateOptions(options, invalid) { - if (!(null != options && "object" == typeof options && 0 === invalid.length)) throw new Bottleneck.prototype.BottleneckError("Bottleneck v2 takes a single object argument. Refer to https://github.com/SGrondin/bottleneck#upgrading-to-v2 if you're upgrading from Bottleneck v1."); + if (null == options || "object" != typeof options || 0 !== invalid.length) throw new Bottleneck.prototype.BottleneckError("Bottleneck v2 takes a single object argument. Refer to https://github.com/SGrondin/bottleneck#upgrading-to-v2 if you're upgrading from Bottleneck v1."); } ready() { return this._store.ready; diff --git a/crates/swc_ecma_minifier/tests/fixture/next/react-ace/chunks/8a28b14e.d8fbda268ed281a1/output.js b/crates/swc_ecma_minifier/tests/fixture/next/react-ace/chunks/8a28b14e.d8fbda268ed281a1/output.js index 4a82bc28e172..46fe4d2c1456 100644 --- a/crates/swc_ecma_minifier/tests/fixture/next/react-ace/chunks/8a28b14e.d8fbda268ed281a1/output.js +++ b/crates/swc_ecma_minifier/tests/fixture/next/react-ace/chunks/8a28b14e.d8fbda268ed281a1/output.js @@ -7669,7 +7669,7 @@ ranges.length < 1 && (ranges = [ editor.selection.getRange() ]); - for(var i = 0; i < ranges.length; i++)i != ranges.length - 1 || ranges[i].end.row === endRow && ranges[i].end.column === endCol || newRanges.push(new Range(ranges[i].end.row, ranges[i].end.column, endRow, endCol)), 0 === i ? 0 === ranges[i].start.row && 0 === ranges[i].start.column || newRanges.push(new Range(0, 0, ranges[i].start.row, ranges[i].start.column)) : newRanges.push(new Range(ranges[i - 1].end.row, ranges[i - 1].end.column, ranges[i].start.row, ranges[i].start.column)); + for(var i = 0; i < ranges.length; i++)i == ranges.length - 1 && (ranges[i].end.row !== endRow || ranges[i].end.column !== endCol) && newRanges.push(new Range(ranges[i].end.row, ranges[i].end.column, endRow, endCol)), 0 === i ? (0 !== ranges[i].start.row || 0 !== ranges[i].start.column) && newRanges.push(new Range(0, 0, ranges[i].start.row, ranges[i].start.column)) : newRanges.push(new Range(ranges[i - 1].end.row, ranges[i - 1].end.column, ranges[i].start.row, ranges[i].start.column)); editor.exitMultiSelectMode(), editor.clearSelection(); for(var i = 0; i < newRanges.length; i++)editor.selection.addRange(newRanges[i], !1); }, @@ -9342,7 +9342,7 @@ }, this.$getTop = function(row, layerConfig) { return (row - layerConfig.firstRowScreen) * layerConfig.lineHeight; }, this.drawTextMarker = function(stringBuilder, range, clazz, layerConfig, extraStyle) { - for(var session = this.session, start = range.start.row, end = range.end.row, row = start, prev = 0, curr = 0, next = session.getScreenLastRowColumn(row), lineRange = new Range(row, range.start.column, row, curr); row <= end; row++)lineRange.start.row = lineRange.end.row = row, lineRange.start.column = row == start ? range.start.column : session.getRowWrapIndent(row), lineRange.end.column = next, prev = curr, curr = next, next = row + 1 < end ? session.getScreenLastRowColumn(row + 1) : row == end ? 0 : range.end.column, this.drawSingleLineMarker(stringBuilder, lineRange, clazz + (row == start ? " ace_start" : "") + " ace_br" + (+!!(row == start || row == start + 1 && range.start.column) | 2 * (prev < curr) | 4 * (curr > next) | 8 * !(row != end)), layerConfig, +(row != end), extraStyle); + for(var session = this.session, start = range.start.row, end = range.end.row, row = start, prev = 0, curr = 0, next = session.getScreenLastRowColumn(row), lineRange = new Range(row, range.start.column, row, curr); row <= end; row++)lineRange.start.row = lineRange.end.row = row, lineRange.start.column = row == start ? range.start.column : session.getRowWrapIndent(row), lineRange.end.column = next, prev = curr, curr = next, next = row + 1 < end ? session.getScreenLastRowColumn(row + 1) : row == end ? 0 : range.end.column, this.drawSingleLineMarker(stringBuilder, lineRange, clazz + (row == start ? " ace_start" : "") + " ace_br" + (+!!(row == start || row == start + 1 && range.start.column) | 2 * (prev < curr) | 4 * (curr > next) | 8 * (row == end)), layerConfig, +(row != end), extraStyle); }, this.drawMultiLineMarker = function(stringBuilder, range, clazz, config, extraStyle) { var padding = this.$padding, height = config.lineHeight, top = this.$getTop(range.start.row, config), left = padding + range.start.column * config.characterWidth; if (extraStyle = extraStyle || "", this.session.$bidiHandler.isBidiRow(range.start.row)) { diff --git a/crates/swc_ecma_minifier/tests/fixture/next/regression-1/framework-798bab57daac3897/output.js b/crates/swc_ecma_minifier/tests/fixture/next/regression-1/framework-798bab57daac3897/output.js index 5a7ee75680e8..3d5c5ea4f789 100644 --- a/crates/swc_ecma_minifier/tests/fixture/next/regression-1/framework-798bab57daac3897/output.js +++ b/crates/swc_ecma_minifier/tests/fixture/next/regression-1/framework-798bab57daac3897/output.js @@ -27,7 +27,7 @@ function ha(a, b) { for(ea[a] = b, a = 0; a < b.length; a++)da.add(b[a]); } - var ia = !("undefined" == typeof window || void 0 === window.document || void 0 === window.document.createElement), ja = Object.prototype.hasOwnProperty, ka = /^[: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][: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\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/, la = {}, ma = {}; + var ia = "undefined" != typeof window && void 0 !== window.document && void 0 !== window.document.createElement, ja = Object.prototype.hasOwnProperty, ka = /^[: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][: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\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/, la = {}, ma = {}; function t(a, b, c, d, e, f, g) { this.acceptsBooleans = 2 === b || 3 === b || 4 === b, this.attributeName = d, this.attributeNamespace = e, this.mustUseProperty = c, this.propertyName = a, this.type = b, this.sanitizeURL = f, this.removeEmptyString = g; } @@ -321,7 +321,7 @@ function cb(a, b, c) { if (b.hasOwnProperty("value") || b.hasOwnProperty("defaultValue")) { var d = b.type; - if (!("submit" !== d && "reset" !== d || void 0 !== b.value && null !== b.value)) return; + if (("submit" === d || "reset" === d) && (void 0 === b.value || null === b.value)) return; b = "" + a._wrapperState.initialValue, c || b === a.value || (a.value = b), a.defaultValue = b; } "" !== (c = a.name) && (a.name = ""), a.defaultChecked = !!a._wrapperState.initialChecked, "" !== c && (a.name = c); @@ -576,7 +576,7 @@ case "onMouseUp": case "onMouseUpCapture": case "onMouseEnter": - (d = !d.disabled) || (d = !("button" === (a = a.type) || "input" === a || "select" === a || "textarea" === a)), a = !d; + (d = !d.disabled) || (d = "button" !== (a = a.type) && "input" !== a && "select" !== a && "textarea" !== a), a = !d; break; default: a = !1; diff --git a/crates/swc_ecma_minifier/tests/fixture/next/syncfusion/933-e9f9a6bf671b96fc/output.js b/crates/swc_ecma_minifier/tests/fixture/next/syncfusion/933-e9f9a6bf671b96fc/output.js index 531f483ad639..2f8f825a6329 100644 --- a/crates/swc_ecma_minifier/tests/fixture/next/syncfusion/933-e9f9a6bf671b96fc/output.js +++ b/crates/swc_ecma_minifier/tests/fixture/next/syncfusion/933-e9f9a6bf671b96fc/output.js @@ -6886,7 +6886,7 @@ * @returns {void} ? */ _this.moveEvent = function(evt) { var point = _this.updateChangeTouches(evt); - _this.movedPoint = point, _this.isTouchMoved = !(point.clientX === _this.startPoint.clientX && point.clientY === _this.startPoint.clientY); + _this.movedPoint = point, _this.isTouchMoved = point.clientX !== _this.startPoint.clientX || point.clientY !== _this.startPoint.clientY; var eScrollArgs = {}; _this.isTouchMoved && (clearTimeout(_this.timeOutTapHold), _this.calcScrollPoints(evt), eScrollArgs = util_extend(eScrollArgs, {}, { startEvents: _this.startEventData, @@ -9770,7 +9770,7 @@ */ function getScrollableParent(element, fixedParent) { for(var eleStyle = getComputedStyle(element), scrollParents = [], overflowRegex = /(auto|scroll)/, parent = element.parentElement; parent && 'HTML' !== parent.tagName;){ var parentStyle = getComputedStyle(parent); - !('absolute' === eleStyle.position && 'static' === parentStyle.position) && overflowRegex.test(parentStyle.overflow + parentStyle.overflowY + parentStyle.overflowX) && scrollParents.push(parent), parent = parent.parentElement; + ('absolute' !== eleStyle.position || 'static' !== parentStyle.position) && overflowRegex.test(parentStyle.overflow + parentStyle.overflowY + parentStyle.overflowX) && scrollParents.push(parent), parent = parent.parentElement; } return fixedParent || scrollParents.push(document), scrollParents; } @@ -11631,7 +11631,7 @@ }; this.parent.trigger(constant /* actionBegin */ .m2, actionBeginArgs, function(actionBeginArgs) { if (!actionBeginArgs.cancel) { - if (!(_this.range.startOffset === _this.range.endOffset && _this.range.startContainer === _this.range.endContainer)) { + if (_this.range.startOffset !== _this.range.endOffset || _this.range.startContainer !== _this.range.endContainer) { if (_this.range.deleteContents(), '#text' === _this.range.startContainer.nodeName && 0 === _this.range.startContainer.textContent.length && _this.range.startContainer.parentElement !== _this.parent.inputElement) 'BR' === _this.parent.enterKey ? _this.range.startContainer.parentElement.innerHTML = '​' : _this.range.startContainer.parentElement.innerHTML = '
'; else if (_this.range.startContainer === _this.parent.inputElement && '' === _this.range.startContainer.innerHTML) { _this.range.startContainer.innerHTML = '
'; @@ -11701,7 +11701,7 @@ currentParent = currentNode === _this.parent.inputElement ? previousNode : currentNode; } _this.removeBRElement(currentParent); - for(var currentParentLastChild = currentParent.lastChild; !(0, ej2_base /* isNullOrUndefined */ .le)(currentParentLastChild) && !('#text' === currentParentLastChild.nodeName || 'BR' === currentParentLastChild.nodeName);)currentParentLastChild = currentParentLastChild.lastChild; + for(var currentParentLastChild = currentParent.lastChild; !(0, ej2_base /* isNullOrUndefined */ .le)(currentParentLastChild) && '#text' !== currentParentLastChild.nodeName && 'BR' !== currentParentLastChild.nodeName;)currentParentLastChild = currentParentLastChild.lastChild; var isLastNodeLength = _this.range.startContainer === currentParentLastChild ? _this.range.startContainer.textContent.length : currentParent.textContent.length; if (currentParent !== _this.parent.inputElement && _this.parent.formatter.editorManager.domNode.isBlockNode(currentParent) && _this.range.startOffset === _this.range.endOffset && _this.range.startOffset === isLastNodeLength) { var focusBRElem = _this.parent.createElement('br'); @@ -16128,16 +16128,7 @@ this.pasteInsertHTML(nodes, node, range, nodeSelection, nodeCutter, docElement, isCollapsed, closestParentNode, editNode); return; } - if (editNode === range.startContainer || (isCollapsed || closestParentNode.nodeType === Node.ELEMENT_NODE && -1 !== TABLE_BLOCK_TAGS.indexOf(closestParentNode.tagName.toLocaleLowerCase())) && ('table' !== node.nodeName.toLowerCase() || !closestParentNode || -1 !== TABLE_BLOCK_TAGS.indexOf(closestParentNode.tagName.toLocaleLowerCase()))) { - if (range.deleteContents(), isCursor && '' === range.startContainer.textContent && 'BR' !== range.startContainer.nodeName && (range.startContainer.innerHTML = ''), ej2_base /* Browser.isIE */ .AR.isIE) { - var frag = docElement.createDocumentFragment(); - frag.appendChild(node), range.insertNode(frag); - } else if (1 === range.startContainer.nodeType && 'hr' === range.startContainer.nodeName.toLowerCase() && 'hr' === range.endContainer.nodeName.toLowerCase()) { - var paraElem = range.startContainer.nextElementSibling; - paraElem && (paraElem.querySelector('br') && (0, ej2_base /* detach */ .og)(paraElem.querySelector('br')), paraElem.appendChild(node)); - } else 'BR' === range.startContainer.nodeName ? range.startContainer.parentElement.insertBefore(node, range.startContainer) : range.insertNode(node); - 3 !== node.nodeType && node.childNodes.length > 0 ? nodeSelection.setSelectionText(docElement, node, node, 1, 1) : 'IMG' === node.nodeName ? this.imageFocus(node, nodeSelection, docElement) : 3 !== node.nodeType ? nodeSelection.setSelectionContents(docElement, node) : nodeSelection.setSelectionText(docElement, node, node, node.textContent.length, node.textContent.length); - } else { + if (editNode !== range.startContainer && (!isCollapsed && (closestParentNode.nodeType !== Node.ELEMENT_NODE || -1 === TABLE_BLOCK_TAGS.indexOf(closestParentNode.tagName.toLocaleLowerCase())) || 'table' === node.nodeName.toLowerCase() && closestParentNode && -1 === TABLE_BLOCK_TAGS.indexOf(closestParentNode.tagName.toLocaleLowerCase()))) { var preNode = nodeCutter.GetSpliceNode(range, closestParentNode), sibNode = preNode.previousSibling, parentNode = preNode.parentNode; if (1 === nodes.length || 'table' === node.nodeName.toLowerCase() && 0 === preNode.childElementCount) nodeSelection.setSelectionContents(docElement, preNode), range = nodeSelection.getRange(docElement); else { @@ -16158,6 +16149,15 @@ null !== previousNode && (parentNode = previousNode), parentNode.firstChild && (parentNode !== editNode || 'TABLE' === node.nodeName && isCursor && parentNode === range.startContainer && parentNode === range.endContainer) ? '' === parentNode.textContent.trim() && parentNode !== editNode ? (InsertMethods.AppendBefore(node, parentNode, !1), (0, ej2_base /* detach */ .og)(parentNode)) : InsertMethods.AppendBefore(node, parentNode.firstChild, !1) : parentNode.appendChild(node); } 'IMG' === node.nodeName ? this.imageFocus(node, nodeSelection, docElement) : 3 !== node.nodeType ? nodeSelection.setSelectionText(docElement, node, node, 0, node.childNodes.length) : nodeSelection.setSelectionText(docElement, node, node, 0, node.textContent.length); + } else { + if (range.deleteContents(), isCursor && '' === range.startContainer.textContent && 'BR' !== range.startContainer.nodeName && (range.startContainer.innerHTML = ''), ej2_base /* Browser.isIE */ .AR.isIE) { + var frag = docElement.createDocumentFragment(); + frag.appendChild(node), range.insertNode(frag); + } else if (1 === range.startContainer.nodeType && 'hr' === range.startContainer.nodeName.toLowerCase() && 'hr' === range.endContainer.nodeName.toLowerCase()) { + var paraElem = range.startContainer.nextElementSibling; + paraElem && (paraElem.querySelector('br') && (0, ej2_base /* detach */ .og)(paraElem.querySelector('br')), paraElem.appendChild(node)); + } else 'BR' === range.startContainer.nodeName ? range.startContainer.parentElement.insertBefore(node, range.startContainer) : range.insertNode(node); + 3 !== node.nodeType && node.childNodes.length > 0 ? nodeSelection.setSelectionText(docElement, node, node, 1, 1) : 'IMG' === node.nodeName ? this.imageFocus(node, nodeSelection, docElement) : 3 !== node.nodeType ? nodeSelection.setSelectionContents(docElement, node) : nodeSelection.setSelectionText(docElement, node, node, node.textContent.length, node.textContent.length); } }, InsertHtml.pasteInsertHTML = function(nodes, node, range, nodeSelection, nodeCutter, docElement, isCollapsed, closestParentNode, editNode) { var lasNode, sibNode, isSingleNode, preNode, lastSelectionNode, isCursor = range.startOffset === range.endOffset && range.startContainer === range.endContainer; @@ -16165,7 +16165,7 @@ var currentBlockNode = this.getImmediateBlockNode(nodes[nodes.length - 1], editNode); nodeSelection.setSelectionText(docElement, currentBlockNode, currentBlockNode, 0, 0), range = nodeSelection.getRange(docElement); } - editNode === range.startContainer || (isCollapsed || closestParentNode.nodeType === Node.ELEMENT_NODE && -1 !== TABLE_BLOCK_TAGS.indexOf(closestParentNode.tagName.toLocaleLowerCase())) && ('table' !== node.nodeName.toLowerCase() || !closestParentNode || -1 !== TABLE_BLOCK_TAGS.indexOf(closestParentNode.tagName.toLocaleLowerCase())) || (preNode = nodeCutter.GetSpliceNode(range, closestParentNode), sibNode = (0, ej2_base /* isNullOrUndefined */ .le)(preNode.previousSibling) ? preNode.parentNode.previousSibling : preNode.previousSibling, 1 === nodes.length ? (nodeSelection.setSelectionContents(docElement, preNode), range = nodeSelection.getRange(docElement), isSingleNode = !0) : (lasNode = nodeCutter.GetSpliceNode(range, nodes[nodes.length - 1].parentElement), lasNode = (0, ej2_base /* isNullOrUndefined */ .le)(lasNode) ? preNode : lasNode, nodeSelection.setSelectionText(docElement, preNode, lasNode, 0, 3 === lasNode.nodeType ? lasNode.textContent.length : lasNode.childNodes.length), range = nodeSelection.getRange(docElement), isSingleNode = !1)); + editNode !== range.startContainer && (!isCollapsed && (closestParentNode.nodeType !== Node.ELEMENT_NODE || -1 === TABLE_BLOCK_TAGS.indexOf(closestParentNode.tagName.toLocaleLowerCase())) || 'table' === node.nodeName.toLowerCase() && closestParentNode && -1 === TABLE_BLOCK_TAGS.indexOf(closestParentNode.tagName.toLocaleLowerCase())) && (preNode = nodeCutter.GetSpliceNode(range, closestParentNode), sibNode = (0, ej2_base /* isNullOrUndefined */ .le)(preNode.previousSibling) ? preNode.parentNode.previousSibling : preNode.previousSibling, 1 === nodes.length ? (nodeSelection.setSelectionContents(docElement, preNode), range = nodeSelection.getRange(docElement), isSingleNode = !0) : (lasNode = nodeCutter.GetSpliceNode(range, nodes[nodes.length - 1].parentElement), lasNode = (0, ej2_base /* isNullOrUndefined */ .le)(lasNode) ? preNode : lasNode, nodeSelection.setSelectionText(docElement, preNode, lasNode, 0, 3 === lasNode.nodeType ? lasNode.textContent.length : lasNode.childNodes.length), range = nodeSelection.getRange(docElement), isSingleNode = !1)); var containsBlockNode = !1; this.removingComments(node); for(var allChildNodes = node.childNodes, i = 0; i < allChildNodes.length; i++)if (BLOCK_TAGS.indexOf(allChildNodes[i].nodeName.toLocaleLowerCase()) >= 0) { @@ -16860,7 +16860,7 @@ }; }, TableCommand.prototype.insertRow = function(e) { var isBelow = 'InsertRowBefore' !== e.item.subCommand, selectedCell = e.item.selection.range.startContainer; - if ('TH' === selectedCell.nodeName || 'TD' === selectedCell.nodeName || (selectedCell = (0, ej2_base /* closest */ .oq)(selectedCell.parentElement, 'td,th')), 'th' !== selectedCell.nodeName.toLowerCase() || 'InsertRowBefore' !== e.item.subCommand) { + if ('TH' !== selectedCell.nodeName && 'TD' !== selectedCell.nodeName && (selectedCell = (0, ej2_base /* closest */ .oq)(selectedCell.parentElement, 'td,th')), 'th' !== selectedCell.nodeName.toLowerCase() || 'InsertRowBefore' !== e.item.subCommand) { if (this.curTable = (0, ej2_base /* closest */ .oq)(this.parent.nodeSelection.range.startContainer.parentElement, 'table'), 0 === this.curTable.querySelectorAll('.e-cell-select').length) { var lastRow = this.curTable.rows[this.curTable.rows.length - 1], cloneRow = lastRow.cloneNode(!0); cloneRow.removeAttribute('rowspan'), this.insertAfter(cloneRow, lastRow); @@ -16884,7 +16884,7 @@ } }, TableCommand.prototype.insertColumn = function(e) { var curCell, selectedCell = e.item.selection.range.startContainer; - 'TH' === selectedCell.nodeName || 'TD' === selectedCell.nodeName || (selectedCell = (0, ej2_base /* closest */ .oq)(selectedCell.parentElement, 'td,th')); + 'TH' !== selectedCell.nodeName && 'TD' !== selectedCell.nodeName && (selectedCell = (0, ej2_base /* closest */ .oq)(selectedCell.parentElement, 'td,th')); for(var curRow = (0, ej2_base /* closest */ .oq)(selectedCell, 'tr'), allRows = (0, ej2_base /* closest */ .oq)(curRow, 'table').rows, colIndex = Array.prototype.slice.call(curRow.querySelectorAll(':scope > td, :scope > th')).indexOf(selectedCell), previousWidth = parseInt(e.item.width, 10) / curRow.querySelectorAll(':scope > td, :scope > th').length, currentWidth = parseInt(e.item.width, 10) / (curRow.querySelectorAll(':scope > td, :scope > th').length + 1), currentTabElm = (0, ej2_base /* closest */ .oq)(curRow, 'table'), thTdElm = (0, ej2_base /* closest */ .oq)(curRow, 'table').querySelectorAll('th,td'), i = 0; i < thTdElm.length; i++)thTdElm[i].dataset.oldWidth = thTdElm[i].offsetWidth / currentTabElm.offsetWidth * 100 + '%'; for(var i = 0; i < allRows.length; i++){ var colTemplate = (curCell = allRows[i].querySelectorAll(':scope > td, :scope > th')[colIndex]).cloneNode(!0); @@ -17418,7 +17418,7 @@ return isFormatted.getFormattedNode(currentNode, format, endNode); }, SelectionCommands.removeFormat = function(nodes, index, formatNode, isCursor, isFormat, isFontStyle, range, nodeCutter, format, value, domSelection, endNode, domNode) { var fontStyle, bgStyle, splitNode = null, startText = '#text' === range.startContainer.nodeName ? range.startContainer.textContent.substring(range.startOffset, range.startContainer.textContent.length) : range.startContainer.textContent; - if (!(range.startContainer === range.endContainer && 0 === range.startOffset && range.endOffset === range.startContainer.length)) { + if (range.startContainer !== range.endContainer || 0 !== range.startOffset || range.endOffset !== range.startContainer.length) { var nodeIndex = [], cloneNode = nodes[index]; do nodeIndex.push(domSelection.getIndex(cloneNode)), cloneNode = cloneNode.parentNode; while (cloneNode && cloneNode !== formatNode) @@ -17471,7 +17471,7 @@ } else nodeCutter.position = range.startOffset; } else if (null === formatNode && isFormat || isFontStyle) { if ('BR' !== nodes[index].nodeName && (nodes[index] = nodeCutter.GetSpliceNode(range, nodes[index]), nodes[index].textContent = nodeCutter.TrimLineBreak(nodes[index].textContent)), 'uppercase' === format || 'lowercase' === format) nodes[index].textContent = 'uppercase' === format ? nodes[index].textContent.toLocaleUpperCase() : nodes[index].textContent.toLocaleLowerCase(); - else if (!(!0 === isFontStyle && '' === value)) { + else if (!0 !== isFontStyle || '' !== value) { var element = this.GetFormatNode(format, value); if ('fontsize' === format || 'fontcolor' === format) { for(var liElement = nodes[index].parentElement, parentElement = nodes[index].parentElement; !(0, ej2_base /* isNullOrUndefined */ .le)(parentElement) && 'li' !== parentElement.tagName.toLowerCase();)liElement = parentElement = parentElement.parentElement; @@ -17484,7 +17484,7 @@ } else nodes[index] = nodeCutter.GetSpliceNode(range, nodes[index]); return nodes[index]; }, SelectionCommands.applyStyles = function(nodes, index, element) { - return 'BR' === nodes[index].nodeName && 'BR' === this.enterAction || (nodes[index] = index === nodes.length - 1 || 'BR' === nodes[index].nodeName ? InsertMethods.Wrap(nodes[index], element) : InsertMethods.WrapBefore(nodes[index], element, !0), nodes[index] = this.getChildNode(nodes[index], element)), nodes[index]; + return ('BR' !== nodes[index].nodeName || 'BR' !== this.enterAction) && (nodes[index] = index === nodes.length - 1 || 'BR' === nodes[index].nodeName ? InsertMethods.Wrap(nodes[index], element) : InsertMethods.WrapBefore(nodes[index], element, !0), nodes[index] = this.getChildNode(nodes[index], element)), nodes[index]; }, SelectionCommands.getInsertNode = function(docElement, range, format, value) { var element = this.GetFormatNode(format, value); if (element.innerHTML = '​', ej2_base /* Browser.isIE */ .AR.isIE) { @@ -17646,7 +17646,7 @@ return parentNodes; }, ClearFormat.unWrap = function(docElement, parentNodes, nodeCutter, nodeSelection) { for(var index1 = 0; index1 < parentNodes.length; index1++)if (this.NONVALID_TAGS.indexOf(parentNodes[index1].nodeName.toLowerCase()) > -1 && parentNodes[index1].parentNode && this.NONVALID_PARENT_TAGS.indexOf(parentNodes[index1].parentNode.nodeName.toLowerCase()) > -1 && (nodeSelection.setSelectionText(docElement, parentNodes[index1], parentNodes[index1], 0, parentNodes[index1].childNodes.length), InsertMethods.unwrap(nodeCutter.GetSpliceNode(nodeSelection.getRange(docElement), parentNodes[index1].parentNode))), 'p' !== parentNodes[index1].nodeName.toLocaleLowerCase()) { - !(0 > this.NONVALID_PARENT_TAGS.indexOf(parentNodes[index1].nodeName.toLowerCase())) || 'p' === parentNodes[index1].parentNode.nodeName.toLocaleLowerCase() || ('blockquote' === parentNodes[index1].nodeName.toLocaleLowerCase() || 'li' === parentNodes[index1].nodeName.toLocaleLowerCase()) && this.IGNORE_PARENT_TAGS.indexOf(parentNodes[index1].childNodes[0].nodeName.toLocaleLowerCase()) > -1 || 1 === parentNodes[index1].childNodes.length && 'p' === parentNodes[index1].childNodes[0].nodeName.toLocaleLowerCase() || InsertMethods.Wrap(parentNodes[index1], docElement.createElement(this.defaultTag)); + 0 > this.NONVALID_PARENT_TAGS.indexOf(parentNodes[index1].nodeName.toLowerCase()) && 'p' !== parentNodes[index1].parentNode.nodeName.toLocaleLowerCase() && !(('blockquote' === parentNodes[index1].nodeName.toLocaleLowerCase() || 'li' === parentNodes[index1].nodeName.toLocaleLowerCase()) && this.IGNORE_PARENT_TAGS.indexOf(parentNodes[index1].childNodes[0].nodeName.toLocaleLowerCase()) > -1) && (1 !== parentNodes[index1].childNodes.length || 'p' !== parentNodes[index1].childNodes[0].nodeName.toLocaleLowerCase()) && InsertMethods.Wrap(parentNodes[index1], docElement.createElement(this.defaultTag)); var childNodes = InsertMethods.unwrap(parentNodes[index1]); 1 === childNodes.length && 'p' === childNodes[0].parentNode.nodeName.toLocaleLowerCase() && (InsertMethods.Wrap(parentNodes[index1], docElement.createElement(this.defaultTag)), InsertMethods.unwrap(parentNodes[index1])); for(var index2 = 0; index2 < childNodes.length; index2++)if (this.NONVALID_TAGS.indexOf(childNodes[index2].nodeName.toLowerCase()) > -1) this.unWrap(docElement, [ @@ -19267,7 +19267,7 @@ }, HtmlEditor.prototype.onToolbarClick = function(args) { var save, selectNodeEle, selectParentEle, item = args.item, closestElement = (0, ej2_base /* closest */ .oq)(args.originalEvent.target, '.e-rte-quick-popup'); if (closestElement && !closestElement.classList.contains('e-rte-inline-popup')) { - if (!('SourceCode' === item.subCommand || 'Preview' === item.subCommand || 'FontColor' === item.subCommand || 'BackgroundColor' === item.subCommand)) { + if ('SourceCode' !== item.subCommand && 'Preview' !== item.subCommand && 'FontColor' !== item.subCommand && 'BackgroundColor' !== item.subCommand) { (0, common_util /* isIDevice */ .FA)() && 'Images' === item.command && this.nodeSelectionObj.restore(); var range = this.nodeSelectionObj.getRange(this.parent.contentModule.getDocument()); save = this.nodeSelectionObj.save(range, this.parent.contentModule.getDocument()), selectNodeEle = this.nodeSelectionObj.getNodeCollection(range), selectParentEle = this.nodeSelectionObj.getParentNodeCollection(range); @@ -19293,7 +19293,7 @@ }); } else { var linkDialog = document.getElementById(this.parent.getID() + '_rtelink'), imageDialog = document.getElementById(this.parent.getID() + '_image'); - if (!('SourceCode' === item.subCommand || 'Preview' === item.subCommand || 'FontColor' === item.subCommand || 'BackgroundColor' === item.subCommand)) { + if ('SourceCode' !== item.subCommand && 'Preview' !== item.subCommand && 'FontColor' !== item.subCommand && 'BackgroundColor' !== item.subCommand) { var range = this.nodeSelectionObj.getRange(this.parent.contentModule.getDocument()); (0, ej2_base /* isNullOrUndefined */ .le)(linkDialog) && (0, ej2_base /* isNullOrUndefined */ .le)(imageDialog) && (save = this.nodeSelectionObj.save(range, this.parent.contentModule.getDocument())), selectNodeEle = this.nodeSelectionObj.getNodeCollection(range), selectParentEle = this.nodeSelectionObj.getParentNodeCollection(range); } diff --git a/crates/swc_ecma_minifier/tests/fixture/next/wrap-contracts/output.js b/crates/swc_ecma_minifier/tests/fixture/next/wrap-contracts/output.js index a0ed3fc4ba5f..e41027afaece 100644 --- a/crates/swc_ecma_minifier/tests/fixture/next/wrap-contracts/output.js +++ b/crates/swc_ecma_minifier/tests/fixture/next/wrap-contracts/output.js @@ -1557,7 +1557,7 @@ } catch (err) { return cb(new IteratorDecodeError('entry', err)); } - !(void 0 === key && void 0 === value) && this[kCount]++, cb(null, key, value); + (void 0 !== key || void 0 !== value) && this[kCount]++, cb(null, key, value); } [kHandleMany](err, entries) { const cb = this[kFinishWork](); diff --git a/crates/swc_ecma_minifier/tests/full/feedback-mapbox/785-e1932cc99ac3bb67/output.js b/crates/swc_ecma_minifier/tests/full/feedback-mapbox/785-e1932cc99ac3bb67/output.js index a899c5a1e16b..35f4ea0218f9 100644 --- a/crates/swc_ecma_minifier/tests/full/feedback-mapbox/785-e1932cc99ac3bb67/output.js +++ b/crates/swc_ecma_minifier/tests/full/feedback-mapbox/785-e1932cc99ac3bb67/output.js @@ -933,7 +933,7 @@ function tu(t,e){for(var n=0;n=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:r}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,o,a=!0,s=!1;return{s:function(){i=t[Symbol.iterator]()},n:function(){var t=i.next();return a=t.done,t},e:function(t){s=!0,o=t},f:function(){try{a||null==i.return||i.return()}finally{if(s)throw o}}}}function tv(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n1&&void 0!==arguments[1]?arguments[1]:"component";t.debug&&p.checkPropTypes(ty,t,"prop",e)}var tE=function(){function t(e){var n=this;if(tc(this,t),a(this,"props",tw),a(this,"width",0),a(this,"height",0),a(this,"_fireLoadEvent",function(){n.props.onLoad({type:"load",target:n._map})}),a(this,"_handleError",function(t){n.props.onError(t)}),!e.mapboxgl)throw Error("Mapbox not available");this.mapboxgl=e.mapboxgl,t.initialized||(t.initialized=!0,this._checkStyleSheet(this.mapboxgl.version)),this._initialize(e)}return tl(t,[{key:"finalize",value:function(){return this._destroy(),this}},{key:"setProps",value:function(t){return this._update(this.props,t),this}},{key:"redraw",value:function(){var t=this._map;t.style&&(t._frame&&(t._frame.cancel(),t._frame=null),t._render())}},{key:"getMap",value:function(){return this._map}},{key:"_reuse",value:function(e){this._map=t.savedMap;var n=this._map.getContainer(),r=e.container;for(r.classList.add("mapboxgl-map");n.childNodes.length>0;)r.appendChild(n.childNodes[0]);this._map._container=r,t.savedMap=null,e.mapStyle&&this._map.setStyle(tm(e.mapStyle),{diff:!1}),this._map.isStyleLoaded()?this._fireLoadEvent():this._map.once("styledata",this._fireLoadEvent)}},{key:"_create",value:function(e){if(e.reuseMaps&&t.savedMap)this._reuse(e);else{if(e.gl){var n=HTMLCanvasElement.prototype.getContext;HTMLCanvasElement.prototype.getContext=function(){return HTMLCanvasElement.prototype.getContext=n,e.gl}}var r={container:e.container,center:[0,0],zoom:8,pitch:0,bearing:0,maxZoom:24,style:tm(e.mapStyle),interactive:!1,trackResize:!1,attributionControl:e.attributionControl,preserveDrawingBuffer:e.preserveDrawingBuffer};e.transformRequest&&(r.transformRequest=e.transformRequest),this._map=new this.mapboxgl.Map(Object.assign({},r,e.mapOptions)),this._map.once("load",this._fireLoadEvent),this._map.on("error",this._handleError)}return this}},{key:"_destroy",value:function(){this._map&&(this.props.reuseMaps&&!t.savedMap?(t.savedMap=this._map,this._map.off("load",this._fireLoadEvent),this._map.off("error",this._handleError),this._map.off("styledata",this._fireLoadEvent)):this._map.remove(),this._map=null)}},{key:"_initialize",value:function(t){var e=this;tO(t=Object.assign({},tw,t),"Mapbox"),this.mapboxgl.accessToken=t.mapboxApiAccessToken||tw.mapboxApiAccessToken,this.mapboxgl.baseApiUrl=t.mapboxApiUrl,this._create(t);var n=t.container;Object.defineProperty(n,"offsetWidth",{configurable:!0,get:function(){return e.width}}),Object.defineProperty(n,"clientWidth",{configurable:!0,get:function(){return e.width}}),Object.defineProperty(n,"offsetHeight",{configurable:!0,get:function(){return e.height}}),Object.defineProperty(n,"clientHeight",{configurable:!0,get:function(){return e.height}});var r=this._map.getCanvas();r&&(r.style.outline="none"),this._updateMapViewport({},t),this._updateMapSize({},t),this.props=t}},{key:"_update",value:function(t,e){if(this._map){tO(e=Object.assign({},this.props,e),"Mapbox");var n=this._updateMapViewport(t,e),r=this._updateMapSize(t,e);this._updateMapStyle(t,e),!e.asyncRender&&(n||r)&&this.redraw(),this.props=e}}},{key:"_updateMapStyle",value:function(t,e){t.mapStyle!==e.mapStyle&&this._map.setStyle(tm(e.mapStyle),{diff:!e.preventStyleDiffing})}},{key:"_updateMapSize",value:function(t,e){var n=t.width!==e.width||t.height!==e.height;return n&&(this.width=e.width,this.height=e.height,this._map.resize()),n}},{key:"_updateMapViewport",value:function(t,e){var n=this._getViewState(t),r=this._getViewState(e),i=r.latitude!==n.latitude||r.longitude!==n.longitude||r.zoom!==n.zoom||r.pitch!==n.pitch||r.bearing!==n.bearing||r.altitude!==n.altitude;return i&&(this._map.jumpTo(this._viewStateToMapboxProps(r)),r.altitude!==n.altitude&&(this._map.transform.altitude=r.altitude)),i}},{key:"_getViewState",value:function(t){var e=t.viewState||t,n=e.longitude,r=e.latitude,i=e.zoom,o=e.pitch,a=e.bearing,s=e.altitude;return{longitude:n,latitude:r,zoom:i,pitch:void 0===o?0:o,bearing:void 0===a?0:a,altitude:void 0===s?1.5:s}}},{key:"_checkStyleSheet",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"0.47.0";if(void 0!==th)try{var e=th.createElement("div");if(e.className="mapboxgl-map",e.style.display="none",th.body.appendChild(e),!("static"!==window.getComputedStyle(e).position)){var n=th.createElement("link");n.setAttribute("rel","stylesheet"),n.setAttribute("type","text/css"),n.setAttribute("href","https://api.tiles.mapbox.com/mapbox-gl-js/v".concat(t,"/mapbox-gl.css")),th.head.appendChild(n)}}catch(t){}}},{key:"_viewStateToMapboxProps",value:function(t){return{center:[t.longitude,t.latitude],zoom:t.zoom,bearing:t.bearing,pitch:t.pitch}}}]),t}();a(tE,"initialized",!1),a(tE,"propTypes",ty),a(tE,"defaultProps",tw),a(tE,"savedMap",null);//# sourceMappingURL=mapbox.js.map +/* provided dependency */var tb=n(3454),ty={container:p.object,gl:p.object,mapboxApiAccessToken:p.string,mapboxApiUrl:p.string,attributionControl:p.bool,preserveDrawingBuffer:p.bool,reuseMaps:p.bool,transformRequest:p.func,mapOptions:p.object,mapStyle:p.oneOfType([p.string,p.object]),preventStyleDiffing:p.bool,visible:p.bool,asyncRender:p.bool,onLoad:p.func,onError:p.func,width:p.number,height:p.number,viewState:p.object,longitude:p.number,latitude:p.number,zoom:p.number,bearing:p.number,pitch:p.number,altitude:p.number},tw={container:th.body,mapboxApiAccessToken:function(){var t=null;if("undefined"!=typeof window&&window.location){var e=window.location.search.match(/access_token=([^&\/]*)/);t=e&&e[1]}return t||void 0===tb||(t=t||tb.env.MapboxAccessToken||tb.env.REACT_APP_MAPBOX_ACCESS_TOKEN),t||"no-token"}(),mapboxApiUrl:"https://api.mapbox.com",preserveDrawingBuffer:!1,attributionControl:!0,reuseMaps:!1,mapOptions:{},mapStyle:"mapbox://styles/mapbox/light-v8",preventStyleDiffing:!1,visible:!0,asyncRender:!1,onLoad:function(){},onError:function(t){t&&console.error(t.error)},width:0,height:0,longitude:0,latitude:0,zoom:0,bearing:0,pitch:0,altitude:1.5};function tO(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"component";t.debug&&p.checkPropTypes(ty,t,"prop",e)}var tE=function(){function t(e){var n=this;if(tc(this,t),a(this,"props",tw),a(this,"width",0),a(this,"height",0),a(this,"_fireLoadEvent",function(){n.props.onLoad({type:"load",target:n._map})}),a(this,"_handleError",function(t){n.props.onError(t)}),!e.mapboxgl)throw Error("Mapbox not available");this.mapboxgl=e.mapboxgl,t.initialized||(t.initialized=!0,this._checkStyleSheet(this.mapboxgl.version)),this._initialize(e)}return tl(t,[{key:"finalize",value:function(){return this._destroy(),this}},{key:"setProps",value:function(t){return this._update(this.props,t),this}},{key:"redraw",value:function(){var t=this._map;t.style&&(t._frame&&(t._frame.cancel(),t._frame=null),t._render())}},{key:"getMap",value:function(){return this._map}},{key:"_reuse",value:function(e){this._map=t.savedMap;var n=this._map.getContainer(),r=e.container;for(r.classList.add("mapboxgl-map");n.childNodes.length>0;)r.appendChild(n.childNodes[0]);this._map._container=r,t.savedMap=null,e.mapStyle&&this._map.setStyle(tm(e.mapStyle),{diff:!1}),this._map.isStyleLoaded()?this._fireLoadEvent():this._map.once("styledata",this._fireLoadEvent)}},{key:"_create",value:function(e){if(e.reuseMaps&&t.savedMap)this._reuse(e);else{if(e.gl){var n=HTMLCanvasElement.prototype.getContext;HTMLCanvasElement.prototype.getContext=function(){return HTMLCanvasElement.prototype.getContext=n,e.gl}}var r={container:e.container,center:[0,0],zoom:8,pitch:0,bearing:0,maxZoom:24,style:tm(e.mapStyle),interactive:!1,trackResize:!1,attributionControl:e.attributionControl,preserveDrawingBuffer:e.preserveDrawingBuffer};e.transformRequest&&(r.transformRequest=e.transformRequest),this._map=new this.mapboxgl.Map(Object.assign({},r,e.mapOptions)),this._map.once("load",this._fireLoadEvent),this._map.on("error",this._handleError)}return this}},{key:"_destroy",value:function(){this._map&&(this.props.reuseMaps&&!t.savedMap?(t.savedMap=this._map,this._map.off("load",this._fireLoadEvent),this._map.off("error",this._handleError),this._map.off("styledata",this._fireLoadEvent)):this._map.remove(),this._map=null)}},{key:"_initialize",value:function(t){var e=this;tO(t=Object.assign({},tw,t),"Mapbox"),this.mapboxgl.accessToken=t.mapboxApiAccessToken||tw.mapboxApiAccessToken,this.mapboxgl.baseApiUrl=t.mapboxApiUrl,this._create(t);var n=t.container;Object.defineProperty(n,"offsetWidth",{configurable:!0,get:function(){return e.width}}),Object.defineProperty(n,"clientWidth",{configurable:!0,get:function(){return e.width}}),Object.defineProperty(n,"offsetHeight",{configurable:!0,get:function(){return e.height}}),Object.defineProperty(n,"clientHeight",{configurable:!0,get:function(){return e.height}});var r=this._map.getCanvas();r&&(r.style.outline="none"),this._updateMapViewport({},t),this._updateMapSize({},t),this.props=t}},{key:"_update",value:function(t,e){if(this._map){tO(e=Object.assign({},this.props,e),"Mapbox");var n=this._updateMapViewport(t,e),r=this._updateMapSize(t,e);this._updateMapStyle(t,e),!e.asyncRender&&(n||r)&&this.redraw(),this.props=e}}},{key:"_updateMapStyle",value:function(t,e){t.mapStyle!==e.mapStyle&&this._map.setStyle(tm(e.mapStyle),{diff:!e.preventStyleDiffing})}},{key:"_updateMapSize",value:function(t,e){var n=t.width!==e.width||t.height!==e.height;return n&&(this.width=e.width,this.height=e.height,this._map.resize()),n}},{key:"_updateMapViewport",value:function(t,e){var n=this._getViewState(t),r=this._getViewState(e),i=r.latitude!==n.latitude||r.longitude!==n.longitude||r.zoom!==n.zoom||r.pitch!==n.pitch||r.bearing!==n.bearing||r.altitude!==n.altitude;return i&&(this._map.jumpTo(this._viewStateToMapboxProps(r)),r.altitude!==n.altitude&&(this._map.transform.altitude=r.altitude)),i}},{key:"_getViewState",value:function(t){var e=t.viewState||t,n=e.longitude,r=e.latitude,i=e.zoom,o=e.pitch,a=e.bearing,s=e.altitude;return{longitude:n,latitude:r,zoom:i,pitch:void 0===o?0:o,bearing:void 0===a?0:a,altitude:void 0===s?1.5:s}}},{key:"_checkStyleSheet",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"0.47.0";if(void 0!==th)try{var e=th.createElement("div");if(e.className="mapboxgl-map",e.style.display="none",th.body.appendChild(e),"static"===window.getComputedStyle(e).position){var n=th.createElement("link");n.setAttribute("rel","stylesheet"),n.setAttribute("type","text/css"),n.setAttribute("href","https://api.tiles.mapbox.com/mapbox-gl-js/v".concat(t,"/mapbox-gl.css")),th.head.appendChild(n)}}catch(t){}}},{key:"_viewStateToMapboxProps",value:function(t){return{center:[t.longitude,t.latitude],zoom:t.zoom,bearing:t.bearing,pitch:t.pitch}}}]),t}();a(tE,"initialized",!1),a(tE,"propTypes",ty),a(tE,"defaultProps",tw),a(tE,"savedMap",null);//# sourceMappingURL=mapbox.js.map // EXTERNAL MODULE: ./node_modules/mapbox-gl/dist/mapbox-gl.js var t_=n(6158),tP=/*#__PURE__*/n.n(t_);function tM(t){return Array.isArray(t)||ArrayBuffer.isView(t)}function tj(t,e,n){return Math.max(e,Math.min(n,t))}function tS(t,e,n){return tM(t)?t.map(function(t,r){return tS(t,e[r],n)}):n*e+(1-n)*t}// CONCATENATED MODULE: ./node_modules/react-map-gl/dist/esm/utils/assert.js //# sourceMappingURL=math-utils.js.map diff --git a/crates/swc_ecma_minifier/tests/full/issue-5912-bigdecimal/output.js b/crates/swc_ecma_minifier/tests/full/issue-5912-bigdecimal/output.js index 5058270833a8..a19659a4e0d2 100644 --- a/crates/swc_ecma_minifier/tests/full/issue-5912-bigdecimal/output.js +++ b/crates/swc_ecma_minifier/tests/full/issue-5912-bigdecimal/output.js @@ -1,2 +1,2 @@ !function(n){if(void 0===t)var t={};if(void 0===e)var e={};if(e.document||(e.document=t),void 0===r)var r={};function i(){}// This is an unfortunate kludge because Java methods and constructors cannot accept vararg parameters. -function o(t){var r=e.bigdecimal[t],i=r;if(r.__init__){for(var o in(i=function(){var n=Array.prototype.slice.call(arguments);return r.__init__(n)}).prototype=r.prototype,r)if(r.hasOwnProperty(o)){if("function"==typeof r[o]&&o.match(/_va$/)){var f=o.replace(/_va$/,"");i[f]=function n(){var t=Array.prototype.slice.call(arguments);return n.inner_method(t)},i[f].inner_method=r[o]}else i[o]=r[o]}}var u=i.prototype;for(var o in u)if(u.hasOwnProperty(o)&&"function"==typeof u[o]&&o.match(/_va$/)){var f=o.replace(/_va$/,"");u[f]=function n(){var t=Array.prototype.slice.call(arguments);return n.inner_method.apply(this,[t])},u[f].inner_method=u[o],delete u[o]}n[t]=i}r.userAgent||(r.userAgent="Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_2) AppleWebKit/534.51.22 (KHTML, like Gecko) Version/5.1.1 Safari/534.51.22"),function(){var n,t,o,f=e,u=f.document,c=f.__gwtStatsEvent?function(n){return f.__gwtStatsEvent(n)}:null,s=f.__gwtStatsSessionId?f.__gwtStatsSessionId:null;function h(){}function a(){}function b(){}function l(){}function g(){}function w(){}function d(){}function _(){}function v(){}function m(){}function y(){}function C(){}function x(){}function S(){}function M(){}function B(){}function A(){}function N(){}function I(){}function E(){}function R(){}function O(){}function D(){}function k(){}function L(){}function U(){}function P(){}function Q(){}function T(){}function j(){nY()}function F(){nX()}function H(){tk()}function $(){eF()}function V(){eF()}function q(){eF()}function G(){eF()}function z(){eF()}function J(){eF()}function K(){nZ()}function W(){ns(this)}function Z(){ns(this)}function X(n){iQ(this,n)}function Y(n){this.c=n}function nn(n){this.b=n}function nt(n){this.b=n}function ne(n){this.b=n}function nr(n){eF(),this.f=n}function ni(n){nr.call(this,n)}function no(n){nr.call(this,n)}function nf(n){nr.call(this,n)}function nu(n){nr.call(this,n)}function nc(n){nr.call(this,n)}function ns(n){n.b=new x}function nh(){this.b=new x}function na(){na=g,fe=new d}function nb(){nb=g,o=new n0}function nl(n,t){nb(),n[oC]=t}function ng(n,t){nb(),function(n,t){var e,r,i,o,u,c,s,h,a,b;for(u=0,s=iv(n,oy,0),c=f;ut?n:t}function nv(n,t){return!rN(n,t)}function nm(n){this.b=new iS(n)}function ny(){this.b=(rF(),fF)}function nC(){this.b=(iA(),f3)}function nx(n,t){var e;nb(),e=o.b,n?function(n,t,e,r){var i=n.b[r];if(i)for(var o=0,f=i.length;o=t&&n.splice(0,t),n}function tw(n){return nz(n,15)?n:new n1(n)}function td(){try{null.a()}catch(n){return n}}function tp(n){var t;return(t=new I).d=iV+n,t.c=1,t}function t_(n,t){return nH(n)?n.eQ(t):n===t}function tv(n,t){return n.l==t.l&&n.m==t.m&&n.h==t.h}function tm(n,t){return n.l!=t.l||n.m!=t.m||n.h!=t.h}function ty(n,t,e){return(i$=new M).l=n,i$.m=t,i$.h=e,i$}function tC(n,t){return nj(n)===nj(t)||null!=n&&t_(n,t)}function tx(n,t){throw new nu("Index: "+n+", Size: "+t)}function tS(n,t){if(!n)throw new z;this.f=t,tO(this,n)}function tM(n,t){if(!n)throw new z;this.f=t,tO(this,n)}function tB(n,t,e,r){eJ.call(this,n,t,e),is(this,r)}function tA(n,t){eJ.call(this,n,0,n.length),is(this,t)}function tN(n,t){eJ.call(this,t5(n),0,n.length),is(this,t)}function tI(n){nr.call(this,"String index out of range: "+n)}function tE(n,t){var e,r;return e=n.b,r=String.fromCharCode(t),e.b+=r,n}function tR(n,t){rC(n.b,n.b,n.e,t.b,t.e),tZ(n),n.c=-2}function tO(n,t){n.d=t,n.b=t.ab(),n.b<54&&(n.g=ri(eN(t)))}function tD(){tD=g,fr=[],fi=[],function(n,t,e){var r,i=0;for(var o in n)(r=n[o])&&(t[i]=o,e[i]=r,++i)}(new S,fr,fi)}function tk(){fC||(fC=!0,new j,new F,function(){if(ng(oB,iV),f.bigdecimal.BigDecimal)var n=f.bigdecimal.BigDecimal;f.bigdecimal.BigDecimal=uc(function(){1==arguments.length&&null!=arguments[0]&&arguments[0].gC()==uk?this.__gwt_instance=arguments[0]:0==arguments.length&&(this.__gwt_instance=new nw,nl(this.__gwt_instance,this))});var t=f.bigdecimal.BigDecimal.prototype={};if(n)for(p in n)f.bigdecimal.BigDecimal[p]=n[p];f.bigdecimal.BigDecimal.ROUND_CEILING=2,f.bigdecimal.BigDecimal.ROUND_DOWN=1,f.bigdecimal.BigDecimal.ROUND_FLOOR=3,f.bigdecimal.BigDecimal.ROUND_HALF_DOWN=5,f.bigdecimal.BigDecimal.ROUND_HALF_EVEN=6,f.bigdecimal.BigDecimal.ROUND_HALF_UP=4,f.bigdecimal.BigDecimal.ROUND_UNNECESSARY=7,f.bigdecimal.BigDecimal.ROUND_UP=0,f.bigdecimal.BigDecimal.__init__=uc(function(n){return nR(function(n){var t,e;if(iP(),(e=iE(n))==on)t=new nL(new nG(n[0].toString()));else if("BigInteger number"==e)t=new tS(new nG(n[0].toString()),n[1]);else if("BigInteger number MathContext"==e)t=new tr(new nG(n[0].toString()),n[1],new iS(n[2].toString()));else if("BigInteger MathContext"==e)t=new n6(new nG(n[0].toString()),new iS(n[1].toString()));else if(e==oS)t=new n3(t5(n[0].toString()));else if("array number number"==e)t=new eJ(t5(n[0].toString()),n[1],n[2]);else if("array number number MathContext"==e)t=new tB(t5(n[0].toString()),n[1],n[2],new iS(n[3].toString()));else if("array MathContext"==e)t=new tA(t5(n[0].toString()),new iS(n[1].toString()));else if(e==oL)t=new eu(n[0]);else if(e==oU)t=new e_(n[0],new iS(n[1].toString()));else if(e==oH)t=new X(n[0].toString());else if("string MathContext"==e)t=new tN(n[0].toString(),new iS(n[1].toString()));else throw new nr("Unknown call signature for obj = new java.math.BigDecimal: "+e);return new nU(t)}(n))}),t.abs_va=uc(function(n){return nR(this.__gwt_instance.s(n))}),t.add_va=uc(function(n){return nR(this.__gwt_instance.t(n))}),t.byteValueExact=uc(function(){return this.__gwt_instance.u()}),t.compareTo=uc(function(n){return this.__gwt_instance.v(n.__gwt_instance)}),t.divide_va=uc(function(n){return nR(this.__gwt_instance.y(n))}),t.divideToIntegralValue_va=uc(function(n){return nR(this.__gwt_instance.x(n))}),t.doubleValue=uc(function(){return this.__gwt_instance.z()}),t.equals=uc(function(n){return this.__gwt_instance.eQ(n)}),t.floatValue=uc(function(){return this.__gwt_instance.A()}),t.hashCode=uc(function(){return this.__gwt_instance.hC()}),t.intValue=uc(function(){return this.__gwt_instance.B()}),t.intValueExact=uc(function(){return this.__gwt_instance.C()}),t.max=uc(function(n){return nR(this.__gwt_instance.F(n.__gwt_instance))}),t.min=uc(function(n){return nR(this.__gwt_instance.G(n.__gwt_instance))}),t.movePointLeft=uc(function(n){return nR(this.__gwt_instance.H(n))}),t.movePointRight=uc(function(n){return nR(this.__gwt_instance.I(n))}),t.multiply_va=uc(function(n){return nR(this.__gwt_instance.J(n))}),t.negate_va=uc(function(n){return nR(this.__gwt_instance.K(n))}),t.plus_va=uc(function(n){return nR(this.__gwt_instance.L(n))}),t.pow_va=uc(function(n){return nR(this.__gwt_instance.M(n))}),t.precision=uc(function(){return this.__gwt_instance.q()}),t.remainder_va=uc(function(n){return nR(this.__gwt_instance.N(n))}),t.round=uc(function(n){return nR(this.__gwt_instance.O(n.__gwt_instance))}),t.scale=uc(function(){return this.__gwt_instance.P()}),t.scaleByPowerOfTen=uc(function(n){return nR(this.__gwt_instance.Q(n))}),t.setScale_va=uc(function(n){return nR(this.__gwt_instance.R(n))}),t.shortValueExact=uc(function(){return this.__gwt_instance.S()}),t.signum=uc(function(){return this.__gwt_instance.r()}),t.stripTrailingZeros=uc(function(){return nR(this.__gwt_instance.T())}),t.subtract_va=uc(function(n){return nR(this.__gwt_instance.U(n))}),t.toBigInteger=uc(function(){return nR(this.__gwt_instance.V())}),t.toBigIntegerExact=uc(function(){return nR(this.__gwt_instance.W())}),t.toEngineeringString=uc(function(){return this.__gwt_instance.X()}),t.toPlainString=uc(function(){return this.__gwt_instance.Y()}),t.toString=uc(function(){return this.__gwt_instance.tS()}),t.ulp=uc(function(){return nR(this.__gwt_instance.Z())}),t.unscaledValue=uc(function(){return nR(this.__gwt_instance.$())}),t.divideAndRemainder_va=uc(function(n){return nO(this.__gwt_instance.w(n))}),t.longValue=uc(function(){return this.__gwt_instance.E()}),t.longValueExact=uc(function(){return this.__gwt_instance.D()}),f.bigdecimal.BigDecimal.valueOf_va=uc(function(n){return nR(function(n){var t,e;if(iP(),(e=iE(n))==oL)t=function(n){if(!isFinite(n)||isNaN(n))throw new nd(oh);return new X(iV+n)}(n[0]);else if(e==oL)t=tX(e4(n[0]));else if(e==oP)t=eL(e4(n[0]),n[1]);else throw new nr("Unknown call signature for bd = java.math.BigDecimal.valueOf: "+e);return new nU(t)}(n))}),f.bigdecimal.BigDecimal.log=uc(function(n){iP(),typeof console!==o$&&console.log&&console.log(n)}),f.bigdecimal.BigDecimal.logObj=uc(function(n){iP(),typeof console!==o$&&console.log&&typeof JSON!==o$&&JSON.stringify&&console.log("object: "+JSON.stringify(n))}),f.bigdecimal.BigDecimal.ONE=uc(function(){return nR((iP(),new nU(fw)))}),f.bigdecimal.BigDecimal.TEN=uc(function(){return nR((iP(),new nU(fd)))}),f.bigdecimal.BigDecimal.ZERO=uc(function(){return nR((iP(),new nU(fp)))}),nx(uk,f.bigdecimal.BigDecimal)}())}function tL(n,t,e){var r;return(r=new I).d=n+t,r.c=4,r.b=e,r}function tU(n,t,e,r,i){var o;return tK(n,t,e,o=function(n,t){var e=Array(t);if(3==n)for(var r=0;r0)for(var i=[null,0,!1][n],r=0;rn)throw new tI(e)}(n.length,t,r),t6(n,t,r)}function tQ(n,t){return il(),t=n.c.c)throw new J;return t=n.c,r=e=n.b++,i=t.c,(r<0||r>=i)&&tx(r,i),t.b[e]}function tF(n,t){return!!nz(t,1)&&String(n)==t}function tH(){nr.call(this,"Add not supported on this collection")}function t$(){this.b=[],this.f={},this.d=!1,this.c=null,this.e=0}function tV(n,t){rW(),this.f=n,this.e=1,this.b=tK(up,{6:1},-1,[t])}function tq(n,t){var e;return e=n.c,n.c=t,!n.d&&(n.d=!0,++n.e),e}function tG(n,t){var e,r;return e=n.b,r=String.fromCharCode.apply(null,t),e.b+=r,n}function tz(n,t,e,r){var i,o;return null==t&&(t=ok),i=n.b,o=t.substr(e,r-e),i.b+=o,n}function tJ(n,t,e,r){var i;return rC(i=tU(up,{6:1},-1,t,1),n,t,e,r),i}function tK(n,t,e,r){return tD(),function(n,t,e){tD();for(var r=0,i=t.length;r0&&0==n.b[--n.e];);0==n.b[n.e++]&&(n.f=0)}function tX(n){return rN(n,oJ)&&nv(n,oY)?fs[nB(n)]:new ef(n,0)}function tY(n,t){return 0==t||0==n.f?n:t>0?e6(n,t):rY(n,-t)}function t0(n,t){return 0==t||0==n.f?n:t>0?rY(n,t):e6(n,-t)}function t1(n){var t;return 0==n.f?-1:((t=ew(n))<<5)+es(n.b[t])}function t2(n){var t;return 0!=(t=nB(n))?es(t):es(nB(rK(n,32)))+32}function t3(n,t){var e;return 0==(e=eO(n,t)).length?(new _).o(t):tg(e,1)}function t6(n,t,e){return n=n.slice(t,e),String.fromCharCode.apply(null,n)}function t4(n,t,e,r){var i;return ib(i=tU(up,{6:1},-1,t+1,1),n,t,e,r),i}function t5(n){var t,e;return t=tU(uK,{6:1},-1,e=n.length,1),function(n,t,e,r){var i;for(i=0;it.e&&(c=t,t=e,e=c),e.e<63)?(b=t,l=e,(_=(g=b.e)+(w=l.e),v=b.f!=l.f?-1:1,2==_)?(x=nB(y=iR(th(e4(b.b[0]),o4),th(e4(l.b[0]),o4))),0==(C=nB(rP(y,32)))?new tV(v,x):new to(v,2,tK(up,{6:1},-1,[x,C]))):(eG(b.b,g,l.b,w,d=tU(up,{6:1},-1,_,1)),tZ(m=new to(v,_,d)),m)):(u=(-2&t.e)<<4,h=t.fb(u),a=e.fb(u),i=ih(t,h.eb(u)),o=ih(e,a.eb(u)),s=n(h,a),r=n(i,o),f=(f=ix(ix(f=n(ih(h,i),ih(o,a)),s),r)).eb(u),ix(ix(s=s.eb(u<<1),f),r))}(n,t))}function ee(n,t){var e;if(t.f<=0)throw new ni(or);return(e=rH(n,t)).f<0?ix(e,t):e}function er(n){var t;t=new nJ,n.d&&n5(t,new ne(n)),function(n,t){var e=n.f;for(var r in e)if(58==r.charCodeAt(0)){var i=new nA(n,r.substring(1));t.Kb(i)}}(n,t),function(n,t){var e=n.b;for(var r in e){var i=parseInt(r,10);if(r==i)for(var o=e[i],f=0,u=o.length;f0):(n.d||(n.d=eP(n.g)),n.d).r()}function ep(n){return n.b<54?new ti(-n.g,n.f):new tM((n.d||(n.d=eP(n.g)),n.d).cb(),n.f)}function e_(n,t){if(!isFinite(n)||isNaN(n))throw new nd(oh);iQ(this,n.toPrecision(20)),is(this,t)}function ev(n,t){return isNaN(n)?+!isNaN(t):isNaN(t)?-1:nt)}function em(n,t){return t<2||t>36||n<0||n>=t?0:n<10?48+n&65535:97+n-10&65535}function ey(n,t){var e,r;return t?((e=t[oC])||(e=new(r=t.gC(),t8(ei(n.b,r)))(t),t[oC]=e),e):null}function eC(n){var t,e;return 32==(e=r$(n.h))?32==(t=r$(n.m))?r$(n.l)+32:t+20-10:e-12}function ex(n){return ty(4194303&n,~~n>>22&4194303,1048575*(n<0))}function eS(){eS=g,fo=ty(4194303,4194303,524287),ff=ty(0,0,524288),fu=e4(1),e4(2),fc=e4(0)}function eM(n,t){ib(n.b,n.b,n.e,t.b,t.e),n.e=np(n_(n.e,t.e)+1,n.b.length),tZ(n),n.c=-2}function eB(n,t){var e;e=~~t>>5,n.e+=e+ +!(r$(n.b[n.e-1])-(31&t)>=0),rx(n.b,n.b,e,31&t),tZ(n),n.c=-2}function eA(n,t){var e,r;e=~~t>>5,n.e>>r:0,tZ(n))}function eN(n){var t;return t=n.e>1?ta(rU(e4(n.b[1]),32),th(e4(n.b[0]),o4)):th(e4(n.b[0]),o4),iR(e4(n.f),t)}function eI(n,t,e){var r;for(r=e-1;r>=0&&n[r]==t[r];--r);return r<0?0:nv(th(e4(n[r]),o4),th(e4(t[r]),o4))?-1:1}function eE(n,t,e){var r,i,o;for(i=0,r=0;i>>31;0!=r&&(n[e]=r)}function eR(n,t,e,r){if(iH=t,n)try{uc(iy)()}catch(e){n(t)}else uc(iy)()}function eO(n,t){var e,r,i;for(e=0,r=(i=t&&t.stack?t.stack.split("\n"):[]).length;e>5==n.e-1&&n.b[n.e-1]==1<<(31&t))for(e=0;r&&e=0&&t=0?new ef(oJ,0x7fffffff):new ef(oJ,-0x80000000)}function eP(n){return(rW(),n<0)?-1!=n?new rf(-1,-n):fx:n<=10?fM[eo(n)]:new rf(1,n)}function eQ(n){var t,e,r;return t=~n.l+1&4194303,e=~n.m+ +(0==t)&4194303,r=~n.h+ +(0==t&&0==e)&1048575,ty(t,e,r)}function eT(n){var t,e,r;t=~n.l+1&4194303,e=~n.m+ +(0==t)&4194303,r=~n.h+ +(0==t&&0==e)&1048575,n.l=t,n.m=e,n.h=r}function ej(n){var t,e,r;for(r=0,e=tU(ux,{6:1},13,n.length,0),t=n.length;r=0;--r)if(n[r]!=i[r]){e=0!=n[r]&&rA(th(e4(n[r]),o4),th(e4(i[r]),o4));break}}return f=new to(1,o+1,n),e&&tR(f,t),tZ(f),f}(o,e)}function eV(n,t){var e;return n===t||!!nz(t,17)&&(e=tT(t,17),n.f==e.f&&n.e==e.e&&function(n,t){var e;for(e=n.e-1;e>=0&&n.b[e]==t[e];--e);return e<0}(n,e.b))}function eq(n){var t,e;return 0==n.f?0:(t=n.e<<5,e=n.b[n.e-1],n.f<0&&ew(n)==n.e-1&&(e=~~(e-1)),t-=r$(e))}function eG(n,t,e,r,i){il(),0!=t&&0!=r&&(1==t?i[r]=rc(i,e,r,n[0]):1==r?i[t]=rc(i,n,t,e[0]):function(n,t,e,r,i){var o,f,u,c;if(nj(n)===nj(t)&&r==i){iu(n,r,e);return}for(u=0;u0x7fffffff))return eo(n);throw new ni("Underflow")}function eW(n,t){if(rF(),n<0)throw new nf("Digits < 0");if(!t)throw new nc("null RoundingMode");this.b=n,this.c=t}function eZ(n){return(rW(),nv(n,oJ))?tm(n,oz)?new ro(-1,eQ(n)):fx:rA(n,oX)?new ro(1,n):fM[nB(n)]}function eX(n){var t;return nv(n,oJ)&&(n=ty(4194303&~n.l,4194303&~n.m,1048575&~n.h)),64-(0!=(t=nB(rK(n,32)))?r$(t):r$(nB(n))+32)}function eY(n,t){var e,r,i;return e=n.l+t.l,r=n.m+t.m+(~~e>>22),i=n.h+t.h+(~~r>>22),ty(4194303&e,4194303&r,1048575&i)}function e0(n,t){var e,r,i;return e=n.l-t.l,r=n.m-t.m+(~~e>>22),i=n.h-t.h+(~~r>>22),ty(4194303&e,4194303&r,1048575&i)}function e1(n,t){var e;if(e=t-1,n.f>0){for(;!n.gb(e);)--e;return t-1-e}for(;n.gb(e);)--e;return t-1-n_(e,n.bb())}function e2(n,t){var e;return n===t||!!nz(t,16)&&(e=tT(t,16)).f==n.f&&(n.b<54?e.g==n.g:n.d.eQ(e.d))}function e3(n,t,e){var r,i,o;for(o=oJ,r=t-1;r>=0;--r)i=r2(eY(rU(o,32),th(e4(n[r]),o4)),e),o=e4(nB(rK(i,32)));return nB(o)}function e6(n,t){var e,r,i,o;return e=~~t>>5,t&=31,rx(r=tU(up,{6:1},-1,i=n.e+e+ +(0!=t),1),n.b,e,t),tZ(o=new to(n.f,i,r)),o}function e4(n){var t,e;return n>-129&&n<128?(t=n+128,null==fn&&(fn=tU(uR,{6:1},2,256,0)),(e=fn[t])||(e=fn[t]=ex(n)),e):ex(n)}function e5(n){var t,e,r;return(rW(),n>5,t=31&n,(r=tU(up,{6:1},-1,e+1,1))[e]=1<iq&&n[n.length-1]>iq?n:n.replace(/^(\s*)/,iV).replace(/\s*$/,iV)}function e7(n){return n-=~~n>>1&0x55555555,n=(~~(n=(~~n>>2&0x33333333)+(0x33333333&n))>>4)+n&0xf0f0f0f,n+=~~n>>8,63&(n+=~~n>>16)}function rn(n,t,e){if(null!=e){var r;if(n.qI>0&&(r=n.qI,!e.cM||!e.cM[r])||n.qI<0&&(e.tM==g||n$(e,1)))throw new V}return n[t]=e}function rt(n,t){return n.f>t.f?1:n.ft.e?n.f:n.e=0;--o)f=e$(f,f,r,i),(e.b[~~o>>5]&1<<(31&o))!=0&&(f=e$(f,t,r,i));return f}(u,r,t,e,o):function(n,t,e,r,i){var o,f,u,c,s,h,a;for(s=tU(u9,{6:1},17,8,0),h=n,rn(s,0,t),a=e$(t,t,r,i),f=1;f<=7;++f)rn(s,f,e$(s[f-1],a,r,i));for(f=e.ab()-1;f>=0;--f)if((e.b[~~f>>5]&1<<(31&f))!=0){for(c=1,o=f,u=f-3>0?f-3:0;u<=f-1;++u)(e.b[~~u>>5]&1<<(31&u))!=0&&(u>1],h,r,i),f=o}else h=e$(h,h,r,i);return h}(u,r,t,e,o),e$(f,(rW(),fS),e,o)}function rh(n,t){var e,r,i,o;for(e=0,r=n.length;e36)throw new nd("Radix out of range");if(0==n.length)throw new nd("Zero length BigInteger");(function(n,t,e){var r,i,o,f,u,c,s,h,a,b,l,g,w,d;for(s=l=t.length,45==t.charCodeAt(0)?(a=-1,b=1,--l):(a=1,b=0),o=~~(l/(f=(iM(),fP)[e])),0!=(d=l%f)&&++o,c=tU(up,{6:1},-1,o,1),r=fU[e-2],u=0,g=b+(0==d?f:d),w=b;wr)return 1;if(e=0&&n[i]==t[i];--i);return i<0?0:nv(th(e4(n[i]),o4),th(e4(t[i]),o4))?-1:1}function rg(n,t){var e,r,i;for(r=tU(up,{6:1},-1,i=n.e,1),np(ew(n),ew(t)),e=0;e0x3b9ac9ff)throw new ni(oa);return e=n.f*t,0==n.b&&-1!=n.g?eU(e):new tS((n.d||(n.d=eP(n.g)),n.d).db(t),eK(e))}function rp(n,t){return t<2||t>36?-1:n>=48&&n<48+(t<10?t:10)?n-48:n>=97&&n=65&&n=0;--n)uf[n]=e,e*=.5;for(n=24,t=1;n>=0;--n)uo[n]=t,t*=.5}function rv(){rv=g,fO=tK(uK,{6:1},-1,[48,49,50,51,52,53,54,55,56,57,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122])}function rm(n){var t;return 0!=n.c||(n.b<54?(t=r3(n.g),n.c=nB(th(t,oz)),n.c=33*n.c+nB(th(rK(t,32),oz)),n.c=17*n.c+eo(n.f)):n.c=17*n.d.hC()+eo(n.f)),n.c}function ry(n,t,e,r){var i,o,f,u,c;return o=(c=n/t)>0?Math.floor(c):Math.ceil(c),f=n%t,u=ev(n*t,0),0!=f&&(i=ev((f<=0?0-f:f)*2,t<=0?0-t:t),o+=it(1&eo(o),u*(5+i),r)),new ti(o,e)}function rC(n,t,e,r,i){var o,f;for(f=0,o=oJ;fe;--i)n[i]|=~~t[i-e-1]>>>o,n[i-1]=t[i-e-1]<>5,n.e-=r,!rD(n.b,n.e,n.b,r,31&t)&&i<0){for(e=0;e>19,r=~~t.h>>19,0==e?0!=r||n.h>t.h||n.h==t.h&&n.m>t.m||n.h==t.h&&n.m==t.m&&n.l>t.l:!(0==r||n.h>19,r=~~t.h>>19,0==e?0!=r||n.h>t.h||n.h==t.h&&n.m>t.m||n.h==t.h&&n.m==t.m&&n.l>=t.l:!(0==r||n.h-0x800000000000&&n<0x800000000000?0==n?0:((t=n<0)&&(n=-n),e=eo(nP(Math.log(n)/.6931471805599453)),(!t||n!=Math.pow(2,e))&&++e,e):eX(r3(n))}function rR(n,t){var e,r;return(e=n._(),r=t._(),0==e.r())?r:0==r.r()?e:(1==e.e||2==e.e&&e.b[1]>0)&&(1==r.e||2==r.e&&r.b[1]>0)?eZ(rI(eN(e),eN(r))):function(n,t){var e,r,i,o;i=(e=n.bb())<(r=t.bb())?e:r,rB(n,e),rB(t,r),1==rt(n,t)&&(o=n,n=t,t=o);do{if(1==t.e||2==t.e&&t.b[1]>0){t=eZ(rI(eN(n),eN(t)));break}if(t.e>1.2*n.e)0!=(t=rH(t,n)).r()&&rB(t,t.bb());else do tR(t,n),rB(t,t.bb());while(rt(t,n)>=0)o=t,t=n,n=o}while(0!=o.f)return t.eb(i)}(eb(e),eb(r))}function rO(n,t){var e;if(t.f<=0)throw new ni(or);if(!(n.gb(0)||t.gb(0)))throw new ni(oe);if(1==t.e&&1==t.b[0])return fA;if(0==(e=function(n,t){var e,r,i,o,f,u,c,s,h,a,b;if(0==n.f)throw new ni(oe);if(!t.gb(0))return function(n,t){var e,r,i,o,f,u,c,s,h,a,b;for(h=tU(up,{6:1},-1,(o=n_(n.e,t.e))+1,1),b=tU(up,{6:1},-1,o+1,1),iB(t.b,0,h,0,t.e),iB(n.b,0,b,0,n.e),s=new to(t.f,t.e,h),a=new to(n.f,n.e,b),u=new to(0,1,tU(up,{6:1},-1,o+1,1)),(c=new to(1,1,tU(up,{6:1},-1,o+1,1))).b[0]=1,e=0,r=0,f=t.ab();!eD(s,e)&&!eD(a,r);)if(0!=(i=e1(s,f))&&(eB(s,i),e>=r?eB(u,i):(rB(c,r-e0&&eB(u,i-r+e)),e+=i),0!=(i=e1(a,f))&&(eB(a,i),r>=e?eB(c,i):(rB(u,e-r0&&eB(c,i-e+r)),r+=i),s.r()==a.r()?e<=r?(rq(s,a),rq(u,c)):(rq(a,s),rq(c,u)):e<=r?(rV(s,a),rV(u,c)):(rV(a,s),rV(c,u)),0==a.r()||0==s.r())throw new ni(oe);return eD(a,r)&&(u=c,a.r()!=s.r()&&(s=s.cb())),s.gb(f)&&(u=0>u.r()?u.cb():ih(t,u)),0>u.r()&&(u=ix(u,t)),u}(n,t);for(o=32*t.e,a=eb(t),c=new to(1,1,tU(up,{6:1},-1,(f=n_((b=eb(n)).e,a.e))+1,1)),(s=new to(1,1,tU(up,{6:1},-1,f+1,1))).b[0]=1,e=0,(r=a.bb())>(i=b.bb())?(rB(a,r),rB(b,i),eB(c,i),e+=r-i):(rB(a,r),rB(b,i),eB(s,r),e+=i-r),c.f=1;b.r()>0;){for(;rt(a,b)>0;)tR(a,b),h=a.bb(),rB(a,h),eM(c,s),eB(s,h),e+=h;for(;0>=rt(a,b)&&(tR(b,a),0!=b.r());)h=b.bb(),rB(b,h),eM(s,c),eB(c,h),e+=h}if(!(1==a.e&&1==a.b[0]))throw new ni(oe);return rt(c,t)>=0&&tR(c,t),c=ih(t,c),u=ru(t),e>o&&(c=e$(c,(rW(),fS),t,u),e-=o),c=e$(c,e5(o-e),t,u)}(ee(n._(),t),t)).f)throw new ni(oe);return n.f<0?ih(t,e):e}function rD(n,t,e,r,i){var o,f,u;for(f=0,o=!0;f>>i|e[f+r+1]<>>i,++f}return o}function rk(n,t){var e;return(e=n.f+t.f,0==n.b&&-1!=n.g||0==t.b&&-1!=t.g)?eU(e):n.b+t.b<54?new ti(n.g*t.g,eK(e)):new tS(et((n.d||(n.d=eP(n.g)),n.d),(t.d||(t.d=eP(t.g)),t.d)),eK(e))}function rL(n,t){var e;if(t<0)throw new ni("Negative exponent");if(0==t)return fS;if(1==t||n.eQ(fS)||n.eQ(fA))return n;if(!n.gb(0)){for(e=1;!n.gb(e);)++e;return et(e5(e*t),n.fb(e).db(t))}return function(n,t){var e,r;for(il(),rW(),r=fS,e=n;t>1;t>>=1)(1&t)!=0&&(r=et(r,e)),e=1==e.e?et(e,e):new e9(iu(e.b,e.e,tU(up,{6:1},-1,e.e<<1,1)));return et(r,e)}(n,t)}function rU(n,t){var e,r,i;return(t&=63)<22?(e=n.l<>22-t,i=n.h<>22-t):t<44?(e=0,r=n.l<>44-t):(e=0,r=0,i=n.l<>>t,i=~~n.m>>t|e<<22-t,r=~~n.l>>t|n.m<<22-t):t<44?(o=0,i=~~e>>>t-22,r=~~n.m>>t-22|n.h<<44-t):(o=0,i=0,r=~~e>>>t-44),ty(4194303&r,4194303&i,1048575&o)}function rQ(n){switch(iA(),n){case 2:return fX;case 1:return fY;case 3:return f0;case 5:return f1;case 6:return f2;case 4:return f3;case 7:return f6;case 0:return f4;default:throw new nf("Invalid rounding mode")}}function rT(n,t){var e,r,i;if(0==t)return(1&n.b[0])!=0;if(t<0)throw new ni(ol);if((i=~~t>>5)>=n.e)return n.f<0;if(e=n.b[i],t=1<<(31&t),n.f<0){if(i<(r=ew(n)))return!1;e=r==i?-e:~e}return(e&t)!=0}function rj(n){var t,e;return n.e>0||(t=1,e=1,n.b<54?(n.b>=1&&(e=n.g),t+=Math.log(e<=0?0-e:e)*Math.LOG10E):(t+=(n.b-1)*.3010299956639812,0!=ia((n.d||(n.d=eP(n.g)),n.d),im(t)).r()&&++t),n.e=eo(t)),n.e}function rF(){rF=g,fQ=new eW(34,(iA(),f2)),fT=new eW(7,f2),fj=new eW(16,f2),fF=new eW(0,f3),fH=tK(uK,{6:1},-1,[112,114,101,99,105,115,105,111,110,61]),f$=tK(uK,{6:1},-1,[114,111,117,110,100,105,110,103,77,111,100,101,61])}function rH(n,t){var e,r,i,o;if(0==t.f)throw new ni(ot);return((o=n.e)!=(e=t.e)?o>e?1:-1:eI(n.b,t.b,o))==-1?n:(r=tU(up,{6:1},-1,e,1),1==e?r[0]=e3(n.b,o,t.b[0]):r=iL(null,o-e+1,n.b,o,t.b,e),tZ(i=new to(n.f,e,r)),i)}function r$(n){var t,e,r;return n<0?0:0==n?32:(e=16-(t=~~(r=-(~~n>>16))>>16&16)+(t=~~(r=(n=~~n>>t)-256)>>16&8),n<<=t,e+=t=~~(r=n-4096)>>16&4,n<<=t,e+=t=~~(r=n-16384)>>16&2,n<<=t,e+2-(t=(r=~~n>>14)&~(~~r>>1)))}function rV(n,t){if(0==n.f)iB(t.b,0,n.b,0,t.e);else{if(0==t.f)return;n.f==t.f?ib(n.b,n.b,n.e,t.b,t.e):rl(n.b,t.b,n.e,t.e)>0?rC(n.b,n.b,n.e,t.b,t.e):(r9(n.b,n.b,n.e,t.b,t.e),n.f=-n.f)}n.e=n_(n.e,t.e)+1,tZ(n),n.c=-2}function rq(n,t){var e;e=rt(n,t),0==n.f?(iB(t.b,0,n.b,0,t.e),n.f=-t.f):n.f!=t.f?(ib(n.b,n.b,n.e,t.b,t.e),n.f=e):rl(n.b,t.b,n.e,t.e)>0?rC(n.b,n.b,n.e,t.b,t.e):(r9(n.b,n.b,n.e,t.b,t.e),n.f=-n.f),n.e=n_(n.e,t.e)+1,tZ(n),n.c=-2}function rG(n,t,e){var r,i,o,f,u,c,s,h,a,b;if(e.f<=0)throw new ni(or);return(r=n,(1==e.e&&1==e.b[0])|t.f>0&0==r.f)?fA:0==r.f&&0==t.f?fS:(t.f<0&&(r=rO(n,e),t=t.cb()),i=e.gb(0)?rs(r._(),t,e):(o=r._(),f=t,u=e.bb(),h=rs(o,f,c=e.fb(u)),a=function(n,t,e){var r,i,o,f,u;for(rW(),f=fS,i=eb(t),r=eb(n),n.gb(0)&&eA(i,e-1),eA(r,e),o=i.ab()-1;o>=0;--o)eA(u=eb(f),e),f=et(f,u),(i.b[~~o>>5]&1<<(31&o))!=0&&eA(f=et(f,r),e);return eA(f,e),f}(o,f,u),s=function(n,t){var e,r,i,o;for(e=1,(r=new e9(tU(up,{6:1},-1,1<>5]&1<<(31&o))!=0&&(r.b[~~e>>5]|=1<<(31&e));return r}(c,u),eA(b=et(ih(a,h),s),u),b.f<0&&(b=ix(b,e5(u))),ix(h,et(c,b))),r.f<0&&t.gb(0)&&(i=ee(et(ih(e,fS),i),e)),i)}function rz(n,t){var e,r,i,o,f,u,c;if(i=ew(n),(r=ew(t))>=n.e)return rW(),fA;for(f=tU(up,{6:1},-1,u=n.e,1),(e=i>r?i:r)==r&&(f[e]=-t.b[e]&n.b[e],++e),o=np(t.e,n.e);e=t.e)for(;e0?t:0):t>=0?n.b<54?new ti(n.g,eK(t)):new tS((n.d||(n.d=eP(n.g)),n.d),eK(t)):-t>t,o=~~n.m>>t|e<<22-t,i=~~n.l>>t|n.m<<22-t):t<44?(f=1048575*!!r,o=~~e>>t-22,i=~~n.m>>t-22|e<<44-t):(f=1048575*!!r,o=4194303*!!r,i=~~e>>t-44),ty(4194303&i,4194303&o,1048575&f)}function rW(){var n;for(n=0,rW=g,fS=new tV(1,1),fB=new tV(1,10),fA=new tV(0,0),fx=new tV(-1,1),fM=tK(u9,{6:1},17,[fA,fS,new tV(1,2),new tV(1,3),new tV(1,4),new tV(1,5),new tV(1,6),new tV(1,7),new tV(1,8),new tV(1,9),fB]),fN=tU(u9,{6:1},17,32,0);n=t.e)return t;if(r>=n.e)return n;if(o=tU(up,{6:1},-1,f=np(n.e,t.e),1),r==i)o[i]=-(-n.b[i]|-t.b[i]),e=i;else{for(e=r;e>5,t&=31,r>=n.e)return n.f<0?(rW(),fx):(rW(),fA);if(rD(i=tU(up,{6:1},-1,(o=n.e-r)+1,1),o,n.b,r,t),n.f<0){for(e=0;e0&&n.b[e]<<32-t!=0){for(e=0;e0?r=0)return n;return 0!=e?e>0?rS(n,t,e):rS(t,n,-e):n_(n.b,t.b)+1<54?new ti(n.g+t.g,n.f):new tM(ix((n.d||(n.d=eP(n.g)),n.d),(t.d||(t.d=eP(t.g)),t.d)),n.f)}function r2(n,t){var e,r,i,o,f;return(r=th(e4(t),o4),rN(n,oJ))?(o=iI(n,r,!1),f=n4(n,r)):(o=iI(e=rP(n,1),i=e4(~~t>>>1),!1),f=eY(rU(f=n4(e,i),1),th(n,oK)),(1&t)!=0&&(rA(o,f)?rA(e0(o,f),r)?(f=eY(f,e0(rU(r,1),o)),o=e0(o,oW)):(f=eY(f,e0(r,o)),o=e0(o,oK)):f=e0(f,o))),ta(rU(f,32),th(o,o4))}function r3(n){var t,e,r,i;return isNaN(n)?(eS(),fc):n<-0x8000000000000000?(eS(),ff):n>=0x8000000000000000?(eS(),fo):(r=!1,n<0&&(r=!0,n=-n),e=0,n>=0x100000000000&&(e=eo(n/0x100000000000),n-=0x100000000000*e),t=0,n>=4194304&&(t=eo(n/4194304),n-=4194304*t),i=ty(eo(n),t,e),r&&eT(i),i)}function r6(n){var t,e,r,i;if(0==n.l&&0==n.m&&0==n.h)return iW;if(524288==n.h&&0==n.m&&0==n.l)return"-9223372036854775808";if(~~n.h>>19!=0)return iJ+r6(eQ(n));for(e=n,r=iV;!(0==e.l&&0==e.m&&0==e.h);){if(e=iI(e,e4(1e9),!0),t=iV+nB(o7),!(0==e.l&&0==e.m&&0==e.h))for(i=9-t.length;i>0;--i)t=iW+t;r=t+r}return r}function r4(n,t){var e,r,i,o,f,u,c,s,h,a,b,l,g,w,d,_,v,m,y,C,x,S,M,B,A;if(0==(i=t.f))throw new ni(ot);return(r=t.e,e=t.b,1==r)?(g=e[0],(M=n.b,B=n.e,A=n.f,1==B)?(_=iI(w=th(e4(M[0]),o4),d=th(e4(g),o4),!1),y=n4(w,d),A!=i&&(_=eQ(_)),A<0&&(y=eQ(y)),tK(u9,{6:1},17,[eZ(_),eZ(y)])):(m=A==i?1:-1,v=tU(up,{6:1},-1,B,1),C=tK(up,{6:1},-1,[ii(v,M,B,g)]),x=new to(m,B,v),S=new to(A,1,C),tZ(x),tZ(S),tK(u9,{6:1},17,[x,S]))):(a=n.b,((b=n.e)!=r?b>r?1:-1:eI(a,e,b))<0)?tK(u9,{6:1},17,[fA,n]):(l=n.f,f=b-r+1,u=l==i?1:-1,c=iL(o=tU(up,{6:1},-1,f,1),f,a,b,e,r),s=new to(u,f,o),h=new to(l,r,c),tZ(s),tZ(h),tK(u9,{6:1},17,[s,h]))}function r5(n){var t;if(0==n.f||0==n.b&&-1!=n.g)return n.d||(n.d=eP(n.g)),n.d;if(n.f<0)return et((n.d||(n.d=eP(n.g)),n.d),im(-n.f));if(n.f>(n.e>0?n.e:nP((n.b-1)*.3010299956639812)+1)||n.f>(n.d||(n.d=eP(n.g)),n.d).bb()||0!=(t=r4((n.d||(n.d=eP(n.g)),n.d),im(n.f)))[1].r())throw new ni(og);return t[0]}function r9(n,t,e,r,i){var o,f;if(o=oJ,e36)throw new nd("radix "+t+" out of range");for(e=i=+((r=n.length)>0&&45==n.charCodeAt(0));e0x7fffffff)throw new nd(os+n+iG);return o}function r7(n){var t,e;if(0==n.f)return rW(),fx;if(eV(n,(rW(),fx)))return fA;if(e=tU(up,{6:1},-1,n.e+1,1),n.f>0){if(-1!=n.b[n.e-1])for(t=0;-1==n.b[t];++t);else{for(t=0;t0?0==t?0:t<0?-1:1:0;break;case 3:r=(0==t?0:t<0?-1:1)<0?0==t?0:t<0?-1:1:0;break;case 4:(t<0?-t:t)>=5&&(r=0==t?0:t<0?-1:1);break;case 5:(t<0?-t:t)>5&&(r=0==t?0:t<0?-1:1);break;case 6:(t<0?-t:t)+n>5&&(r=0==t?0:t<0?-1:1)}return r}function ie(n,t){var e,r,i,o,f,u,c,s,h;if(s=0==n.f?1:n.f,f=~~t>>5,e=31&t,u=tU(up,{6:1},-1,c=n_(f+1,n.e)+1,1),r=1<=n.e)u[f]=r;else if(f>(i=ew(n)))u[f]^=r;else if(f=0||0==s.f||1==s.e&&1==s.b[0])if(!(1==(h=rG(s,u,n)).e&&1==h.b[0]||h.eQ(f))){for(i=1;i=0;--u)rN(h=ta(rU(s,32),th(e4(t[u]),o4)),oJ)?(c=iI(h,o,!1),s=n4(h,o)):(c=iI(i=rP(h,1),f=e4(~~r>>>1),!1),s=eY(rU(s=n4(i,f),1),th(h,oK)),(1&r)!=0&&(rA(c,s)?rA(e0(c,s),o)?(s=eY(s,e0(rU(o,1),c)),c=e0(c,oW)):(s=eY(s,e0(o,c)),c=e0(c,oK)):s=e0(s,c))),n[u]=nB(th(c,o4));return nB(s)}function io(n,t){var e,r,i,o,f,u,c;if(f=tU(up,{6:1},-1,u=n_(n.e,t.e),1),i=ew(n),e=r=ew(t),i==r)f[r]=-n.b[r]^-t.b[r];else{for(f[r]=-t.b[r],o=np(t.e,i),++e;et.g):(r=n.f-t.f,(e=(n.e>0?n.e:nP((n.b-1)*.3010299956639812)+1)-(t.e>0?t.e:nP((t.b-1)*.3010299956639812)+1))>r+1)?i:e0&&(f=et(f,im(r))),rt(o,f))}function is(n,t){var e,r,i,o,f,u,c,s,h,a,b,l,g;if(o=t.b,!((n.e>0?n.e:nP((n.b-1)*.3010299956639812)+1)-o<0||0==o||(r=n.q()-o)<=0)){if(n.b<54){l=r3(fl[c=r]),b=e0(r3(n.f),e4(c)),a=iI(g=r3(n.g),l,!1),tm(h=n4(g,l),oJ)&&(s=tv(e0(rU(nv(h,oJ)?eQ(h):h,1),l),oJ)?0:nv(e0(rU(nv(h,oJ)?eQ(h):h,1),l),oJ)?-1:1,a=eY(a,e4(it(1&nB(a),(tv(h,oJ)?0:nv(h,oJ)?-1:1)*(5+s),t.c))),tn(ri(nv(a,oJ)?eQ(a):a))>=t.b&&(a=nQ(a,oX),b=e0(b,oK))),n.f=eK(ri(b)),n.e=t.b,n.g=ri(a),n.b=eX(a),n.d=null;return}u=im(r),i=r4((n.d||(n.d=eP(n.g)),n.d),u),f=n.f-r,0!=i[1].r()&&(e=rt(eH(i[1]._()),u),0!=(e=it(+!!i[0].gb(0),i[1].r()*(5+e),t.c))&&rn(i,0,ix(i[0],eZ(e4(e)))),new nL(i[0]).q()>o&&(rn(i,0,ia(i[0],(rW(),fB))),--f)),n.f=eK(f),n.e=o,tO(n,i[0])}}function ih(n,t){var e,r,i,o,f,u,c,s,h,a;if(f=n.f,0==(c=t.f))return n;if(0==f)return t.cb();if((o=n.e)+(u=t.e)==2)return e=th(e4(n.b[0]),o4),r=th(e4(t.b[0]),o4),f<0&&(e=eQ(e)),c<0&&(r=eQ(r)),eZ(e0(e,r));if(-1==(i=o!=u?o>u?1:-1:eI(n.b,t.b,o)))a=-c,h=f==c?tJ(t.b,u,n.b,o):t4(t.b,u,n.b,o);else if(a=f,f==c){if(0==i)return rW(),fA;h=tJ(n.b,o,t.b,u)}else h=t4(n.b,o,t.b,u);return tZ(s=new to(a,h.length,h)),s}function ia(n,t){var e,r,i,o,f,u,c,s,h,a;if(0==t.f)throw new ni(ot);return(i=t.f,1==t.e&&1==t.b[0])?t.f>0?n:n.cb():(h=n.f,(s=n.e)+(r=t.e)==2)?(a=nQ(th(e4(n.b[0]),o4),th(e4(t.b[0]),o4)),h!=i&&(a=eQ(a)),eZ(a)):0==(e=s!=r?s>r?1:-1:eI(n.b,t.b,s))?h==i?fS:fx:-1==e?fA:(o=tU(up,{6:1},-1,f=s-r+1,1),u=h==i?1:-1,1==r?ii(o,n.b,s,t.b[0]):iL(o,f,n.b,s,t.b,r),tZ(c=new to(u,f,o)),c)}function ib(n,t,e,r,i){var o,f;if(o=eY(th(e4(t[0]),o4),th(e4(r[0]),o4)),n[0]=nB(o),o=rK(o,32),e>=i){for(f=1;f0){if(i0?f=tQ(f,eo(i)):i<0&&(o=tQ(o,eo(-i))),id(o,f,e,r)}function iw(n,t){var e,r,i,o,f,u,c;if(r=ew(t),(i=ew(n))>=t.e)return t;if(f=tU(up,{6:1},-1,u=t.e,1),rt.ab()?(c=eN(s),o=eN(t),i=tv(e0(rU(nv(c,oJ)?eQ(c):c,1),nv(o,oJ)?eQ(o):o),oJ)?0:nv(e0(rU(nv(c,oJ)?eQ(c):c,1),nv(o,oJ)?eQ(o):o),oJ)?-1:1):i=rt(eH(s._()),t._()),0!=(i=it(+!!u.gb(0),h*(5+i),r))){if(54>u.ab())return eL(eY(eN(u),e4(i)),e);u=ix(u,eZ(e4(i)))}return new tS(u,e)}function ip(n){var t,e,r,i,o,f;return null!=n.i?n.i:n.b<32?(n.i=function(n,t){var e,r,i,o,f,u,c,s,h,a,b,l,g,w,d,_,v,m;if(iM(),(f=nv(n,oJ))&&(n=eQ(n)),tv(n,oJ))switch(t){case 0:return iW;case 1:return iX;case 2:return iY;case 3:return i0;case 4:return i1;case 5:return i2;case 6:return i3;default:return s=new W,t<0?s.b.b+=i4:s.b.b+=i6,b=s.b,l=-0x80000000==t?"2147483648":iV+-t,b.b+=l,s.b.b}c=tU(uK,{6:1},-1,19,1),e=18,a=n;do u=a,a=nQ(a,oX),c[--e]=65535&nB(eY(o1,e0(u,iR(a,oX))));while(tm(a,oJ))if(r=e0(e0(e0(o0,e4(e)),e4(t)),oK),0==t)return f&&(c[--e]=45),tP(c,e,18-e);if(t>0&&rN(r,oG)){if(rN(r,oJ)){for(o=17,i=e+nB(r);o>=i;--o)c[o+1]=c[o];return c[++i]=46,f&&(c[--e]=45),tP(c,e,18-e+1)}for(o=2;nv(e4(o),eY(eQ(r),oK));++o)c[--e]=48;return c[--e]=46,c[--e]=48,f&&(c[--e]=45),tP(c,e,18-e)}return(h=e+1,s=new Z,f&&(s.b.b+=iJ),18-h>=1)?(tE(s,c[e]),s.b.b+=iK,g=s.b,w=tP(c,e+1,18-e-1),g.b+=w):(d=s.b,_=tP(c,e,18-e),d.b+=_),s.b.b+=oc,rA(r,oJ)&&(s.b.b+=iz),v=s.b,m=iV+r6(r),v.b+=m,s.b.b}(r3(n.g),eo(n.f)),n.i):(i=iF((n.d||(n.d=eP(n.g)),n.d),0),0==n.f)?i:(t=0>(n.d||(n.d=eP(n.g)),n.d).r()?2:1,e=i.length,r=-n.f+e-t,f=(o=new W).b,f.b+=i,n.f>0&&r>=-6?r>=0?n8(o,e-eo(n.f),iK):(te(o.b,t-1,t-1,iZ),n8(o,t+1,tP(fh,0,-eo(r)-1))):(e-t>=1&&(te(o.b,t,t,iK),++e),te(o.b,e,e,oc),r>0&&n8(o,++e,iz),n8(o,++e,iV+r6(r3(r)))),n.i=o.b.b,n.i)}function i_(n,t){var e,r,i,o,f,u;if(i=ew(n),o=ew(t),i>=t.e)return n;if(r=o>i?o:i,0==(e=o>i?-t.b[r]&~n.b[r]:o0){i[o]=f;break}i[o]=f.substring(0,c.index),f=f.substring(c.index+c[0].length,f.length),r.lastIndex=0,u==f&&(i[o]=f.substring(0,1),f=f.substring(1)),u=f,o++}if(0==e&&n.length>0){for(var s=i.length;s>0&&i[s-1]==iV;)--s;s1e6)throw new ni("power of ten too big");if(n<=0x7fffffff)return fV[1].db(t).eb(t);for(i=r=fV[1].db(0x7fffffff),e=r3(n-0x7fffffff),t=eo(n%0x7fffffff);rA(e,o6);)i=et(i,r),e=e0(e,o6);for(i=(i=et(i,fV[1].db(t))).eb(0x7fffffff),e=r3(n-0x7fffffff);rA(e,o6);)i=i.eb(0x7fffffff),e=e0(e,o6);return i.eb(t)}function iy(){var n,t;c&&rM("com.iriscouch.gwtapp.client.BigDecimalApp"),nZ(new K),nY(new j),nX(new F),tk(new H),c&&rM("com.google.gwt.user.client.UserAgentAsserter"),tF(oF,n=-1!=(t=r.userAgent.toLowerCase()).indexOf(oT)?oT:-1!=t.indexOf("webkit")||function(){if(-1!=t.indexOf("chromeframe"))return!0;if(typeof e.ActiveXObject!=o$)try{var n=new ActiveXObject("ChromeTab.ChromeFrame");if(n)return n.registerBhoIfNeeded(),!0}catch(n){}return!1}()?oF:-1!=t.indexOf(oD)&&u.documentMode>=9?"ie9":-1!=t.indexOf(oD)&&u.documentMode>=8?"ie8":!function(){var n=/msie ([0-9]+)\.([0-9]+)/.exec(t);if(n&&3==n.length)return 1e3*parseInt(n[1])+parseInt(n[2])>=6e3}()?-1!=t.indexOf("gecko")?"gecko1_8":"unknown":"ie6")||f.alert("ERROR: Possible problem with your *.gwt.xml module file.\nThe compile time user.agent value (safari) does not match the runtime user.agent value ("+n+"). Expect more errors.\n"),c&&rM("com.google.gwt.user.client.DocumentModeAsserter"),function(){var n,t,e;for(e=0,t=u.compatMode,n=tK(uI,{6:1},1,[oo]);e>5,this.b=tU(up,{6:1},-1,this.e,1);f=0x80000000&&(r-=0x100000000),r));this.b[this.e-1]>>>=31&-n,tZ(this)}}function ix(n,t){var e,r,i,o,f,u,c,s,h,a,b,l;if(f=n.f,c=t.f,0==f)return t;if(0==c)return n;if((o=n.e)+(u=t.e)==2)return(e=th(e4(n.b[0]),o4),r=th(e4(t.b[0]),o4),f==c)?(l=nB(s=eY(e,r)),0==(b=nB(rP(s,32)))?new tV(f,l):new to(f,2,tK(up,{6:1},-1,[l,b]))):eZ(f<0?e0(r,e):e0(e,r));if(f==c)a=f,h=o>=u?t4(n.b,o,t.b,u):t4(t.b,u,n.b,o);else{if(0==(i=o!=u?o>u?1:-1:eI(n.b,t.b,o)))return rW(),fA;1==i?(a=f,h=tJ(n.b,o,t.b,u)):(a=c,h=tJ(t.b,u,n.b,o))}return tZ(s=new to(a,h.length,h)),s}function iS(n){var t,e,r,i;if(rF(),null==n)throw new nc("null string");if((t=t5(n)).length<27||t.length>45)throw new nf(oM);for(r=0;rue.length)throw new q;if(o=null,i=null,67==r[0]?(i=fX,o=f5):68==r[0]?(i=fY,o=f9):70==r[0]?(i=f0,o=f8):72==r[0]?e>6&&(68==r[5]?(i=f1,o=f7):69==r[5]?(i=f2,o=un):85==r[5]&&(i=f3,o=ut)):85==r[0]&&(80==r[1]?(i=f4,o=ur):78==r[1]&&(i=f6,o=ue)),i&&e==o.length){for(t=1;tl||r+i>s)throw new G;if(((1&a.c)==0||(4&a.c)!=0)&&b!=c){if(h=tT(n,11),o=tT(e,11),nj(n)===nj(e)&&tr;)rn(o,u,h[--t]);else for(u=r+i;rh.r()&&(s=s.cb()),c=eK(e+(o>f?o:f)),new tS(s=(i=o-f)>0?(il(),i>19!=0&&(t=eQ(t),c=!0),f=((b=(h=t).l)&b-1)!=0||((l=h.m)&l-1)!=0||((a=h.h)&a-1)!=0||0==a&&0==l&&0==b?-1:0==a&&0==l&&0!=b?es(b):0==a&&0!=l&&0==b?es(l)+22:0!=a&&0==l&&0==b?es(a)+44:-1,o=!1,i=!1,r=!1,524288==n.h&&0==n.m&&0==n.l){if(i=!0,o=!0,-1!=f)return u=rK(n,f),c&&eT(u),e&&(o7=ty(0,0,0)),u;n=nT((eS(),fo)),r=!0,c=!c}else~~n.h>>19!=0&&(o=!0,n=eQ(n),r=!0,c=!c);return -1!=f?(g=n,w=c,d=o,_=rK(g,f),w&&eT(_),e&&(v=g,f<=22?(m=v.l&(1<=0&&((g=n.h-f.h)<0||(b=n.l-f.l,(g+=~~(l=n.m-f.m+(~~b>>22))>>22)<0||(n.l=4194303&b,n.m=4194303&l,n.h=1048575&g,0))||(c<22?u.l|=1<>>1,f.m=~~h>>>1|(1&a)<<21,f.l=~~s>>>1|(1&h)<<21,--c;return e&&eT(u),o&&(r?(o7=eQ(n),i&&(o7=e0(o7,(eS(),fu)))):o7=ty(n.l,n.m,n.h)),u}(r?n:ty(n.l,n.m,n.h),t,c,o,i,e):(e&&(o7=o?eQ(n):ty(n.l,n.m,n.h)),ty(0,0,0))}function iE(n){var t=[];for(var e in n){var r=typeof n[e];r!=oQ?t[t.length]=r:n[e]instanceof Array?t[t.length]=oS:f&&f.bigdecimal&&f.bigdecimal.BigInteger&&n[e]instanceof f.bigdecimal.BigInteger?t[t.length]=on:f&&f.bigdecimal&&f.bigdecimal.BigDecimal&&n[e]instanceof f.bigdecimal.BigDecimal?t[t.length]=i9:f&&f.bigdecimal&&f.bigdecimal.RoundingMode&&n[e]instanceof f.bigdecimal.RoundingMode?t[t.length]=ow:f&&f.bigdecimal&&f.bigdecimal.MathContext&&n[e]instanceof f.bigdecimal.MathContext?t[t.length]=ob:t[t.length]=oQ}return t.join(iq)}function iR(n,t){var e,r,i,o,f,u,c,s,h,a,b,l,g,w,d,_,v,m;return e=8191&n.l,r=~~n.l>>13|(15&n.m)<<9,i=~~n.m>>4&8191,o=~~n.m>>17|(255&n.h)<<5,f=~~(1048320&n.h)>>8,u=8191&t.l,c=~~t.l>>13|(15&t.m)<<9,s=~~t.m>>4&8191,h=~~t.m>>17|(255&t.h)<<5,a=~~(1048320&t.h)>>8,w=e*u,d=r*u,_=i*u,v=o*u,m=f*u,0!=c&&(d+=e*c,_+=r*c,v+=i*c,m+=o*c),0!=s&&(_+=e*s,v+=r*s,m+=i*s),0!=h&&(v+=e*h,m+=r*h),0!=a&&(m+=e*a),b=(4194303&w)+((511&d)<<13),l=(~~w>>22)+(~~d>>9)+((262143&_)<<4)+((31&v)<<17),g=(~~_>>18)+(~~v>>5)+((4095&m)<<8),l+=~~b>>22,b&=4194303,g+=~~l>>22,ty(b,l&=4194303,g&=1048575)}function iO(n,t,e){var r,i,o,f,u,c,s,h;if(h=ri(eY(e4(e.b),oW))+(t.e>0?t.e:nP((t.b-1)*.3010299956639812)+1)-(n.e>0?n.e:nP((n.b-1)*.3010299956639812)+1),c=i=n.f-t.f,o=1,u=fm.length-1,s=tK(u9,{6:1},17,[(n.d||(n.d=eP(n.g)),n.d)]),0==e.b||0==n.b&&-1!=n.g||0==t.b&&-1!=t.g)return iN(n,t);if(h>0&&(rn(s,0,et((n.d||(n.d=eP(n.g)),n.d),im(h))),c+=h),f=(s=r4(s[0],(t.d||(t.d=eP(t.g)),t.d)))[0],0!=s[1].r())r=rt(eH(s[1]),(t.d||(t.d=eP(t.g)),t.d)),f=ix(et(f,(rW(),fB)),eZ(e4(s[0].r()*(5+r)))),++c;else for(;!f.gb(0);)if(0==(s=r4(f,fm[o]))[1].r()&&c-o>=i)c-=o,o=0)return n;return 0==e?n_(n.b,t.b)+1<54?new ti(n.g-t.g,n.f):new tM(ih((n.d||(n.d=eP(n.g)),n.d),(t.d||(t.d=eP(t.g)),t.d)),n.f):e>0?e0?t.e:nP((t.b-1)*.3010299956639812)+1)+o>(n.e>0?n.e:nP((n.b-1)*.3010299956639812)+1)+1||0==n.b&&-1!=n.g)rW(),r=fA;else if(0==o)r=ia((n.d||(n.d=eP(n.g)),n.d),(t.d||(t.d=eP(t.g)),t.d));else if(o>0)f=im(o),r=ia((n.d||(n.d=eP(n.g)),n.d),et((t.d||(t.d=eP(t.g)),t.d),f)),r=et(r,f);else{for(f=im(-o),r=ia(et((n.d||(n.d=eP(n.g)),n.d),f),(t.d||(t.d=eP(t.g)),t.d));!r.gb(0);)if(0==(u=r4(r,fm[e]))[1].r()&&c-e>=o)c-=e,e=0;){if(w[a]==c)s=-1;else if(s=nB(m=r2(eY(rU(th(e4(w[a]),o4),32),th(e4(w[a-1]),o4)),c)),v=nB(rK(m,32)),0!=s){_=!1,++s;do{if(--s,_)break;l=iR(th(e4(s),o4),th(e4(d[o-2]),o4)),y=eY(rU(e4(v),32),th(e4(w[a-2]),o4)),32>r$(nB(rP(g=eY(th(e4(v),o4),th(e4(c),o4)),32)))?_=!0:v=nB(g)}while(rA(tb(l,oV),tb(y,oV)))}if(0!=s&&0!=function(n,t,e,r,i){var o,f,u;for(u=0,o=oJ,f=oJ;u0)rn(b,0,ia((n.d||(n.d=eP(n.g)),n.d),et((t.d||(t.d=eP(t.g)),t.d),im(o)))),a=o<(h-l+1>0?h-l+1:0)?o:h-l+1>0?h-l+1:0,rn(b,0,et(b[0],im(a)));else if(f=-o<(h-i>0?h-i:0)?-o:h-i>0?h-i:0,b=r4(et((n.d||(n.d=eP(n.g)),n.d),im(f)),(t.d||(t.d=eP(t.g)),t.d)),a+=f,f=-a,0!=b[1].r()&&f>0&&(0==(r=new nL(b[1]).q()+f-t.q())&&(rn(b,1,ia(et(b[1],im(f)),(t.d||(t.d=eP(t.g)),t.d))),r=(d=b[1].r())<0?-d:d),r>0))throw new ni(ou);if(0==b[0].r())return eU(o);for(w=b[0],g=(c=new nL(b[0])).q(),u=1;!w.gb(0);)if(0==(b=r4(w,fm[u]))[1].r()&&(g-u>=h||a-u>=o))g-=u,a-=u,uh)throw new ni(ou);return c.f=eK(a),tO(c,w),c}function ij(){var n;for(n=0,ij=g,fJ=tK(up,{6:1},-1,[0,0,1854,1233,927,747,627,543,480,431,393,361,335,314,295,279,265,253,242,232,223,216,181,169,158,150,145,140,136,132,127,123,119,114,110,105,101,96,92,87,83,78,73,69,64,59,54,49,44,38,32,26,1]),fK=tU(u9,{6:1},17,(fW=tK(up,{6:1},-1,[2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149,151,157,163,167,173,179,181,191,193,197,199,211,223,227,229,233,239,241,251,257,263,269,271,277,281,283,293,307,311,313,317,331,337,347,349,353,359,367,373,379,383,389,397,401,409,419,421,431,433,439,443,449,457,461,463,467,479,487,491,499,503,509,521,523,541,547,557,563,569,571,577,587,593,599,601,607,613,617,619,631,641,643,647,653,659,661,673,677,683,691,701,709,719,727,733,739,743,751,757,761,769,773,787,797,809,811,821,823,827,829,839,853,857,859,863,877,881,883,887,907,911,919,929,937,941,947,953,967,971,977,983,991,997,1009,1013,1019,1021])).length,0);n=0;--c)w=function(n){var t,e,r;return rN(n,oJ)?(e=nQ(n,o3),r=n4(n,o3)):(e=nQ(t=rP(n,1),o2),r=eY(rU(r=n4(t,o2),1),th(n,oK))),ta(rU(r,32),th(e,o4))}(eY(rU(y,32),th(e4(S[c]),o4))),S[c]=nB(w),y=e4(nB(rK(w,32)));d=nB(y),g=e;do v[--e]=48+d%10&65535;while(0!=(d=~~(d/10))&&0!=e)for(u=0,r=9-g+e;u0;++u)v[--e]=48;for(h=M-1;0==S[h];--h)if(0==h)break n;M=h+1}for(;48==v[e];)++e}if(a=C<0,o=_-e-t-1,0==t)return a&&(v[--e]=45),tP(v,e,_-e);if(t>0&&o>=-6){if(o>=0){for(s=e+o,h=_-1;h>=s;--h)v[h+1]=v[h];return v[++s]=46,a&&(v[--e]=45),tP(v,e,_-e+1)}for(h=2;h<-o+1;++h)v[--e]=48;return v[--e]=46,v[--e]=48,a&&(v[--e]=45),tP(v,e,_-e)}return(x=e+1,m=new Z,a&&(m.b.b+=iJ),_-x>=1)?(tE(m,v[e]),m.b.b+=iK,I=m.b,E=tP(v,e+1,_-e-1),I.b+=E):(R=m.b,O=tP(v,e,_-e),R.b+=O),m.b.b+=oc,o>0&&(m.b.b+=iz),D=m.b,k=iV+o,D.b+=k,m.b.b}c&&c({moduleName:"gwtapp",sessionId:s,subSystem:"startup",evtGroup:"moduleStartup",millis:new Date().getTime(),type:"moduleEvalStart"});var iH,i$,iV="",iq=" ",iG='"',iz="+",iJ="-",iK=".",iW="0",iZ="0.",iX="0.0",iY="0.00",i0="0.000",i1="0.0000",i2="0.00000",i3="0.000000",i6="0E",i4="0E+",i5=":",i9="BigDecimal",i8="BigDecimal MathContext",i7="BigDecimal;",on="BigInteger",ot="BigInteger divide by zero",oe="BigInteger not invertible.",or="BigInteger: modulus not positive",oi="BigInteger;",oo="CSS1Compat",of="Division by zero",ou="Division impossible",oc="E",os='For input string: "',oh="Infinite or NaN",oa="Invalid Operation",ob="MathContext",ol="Negative bit address",og="Rounding necessary",ow="RoundingMode",od="RoundingMode;",op="String",o_="[Lcom.iriscouch.gwtapp.client.",ov="[Ljava.lang.",om="[Ljava.math.",oy="\\.",oC="__gwtex_wrap",ox="anonymous",oS="array",oM="bad string format",oB="bigdecimal",oA="com.google.gwt.core.client.",oN="com.google.gwt.core.client.impl.",oI="com.iriscouch.gwtapp.client.",oE="java.lang.",oR="java.math.",oO="java.util.",oD="msie",ok="null",oL="number",oU="number MathContext",oP="number number",oQ="object",oT="opera",oj="org.timepedia.exporter.client.",oF="safari",oH="string",o$="undefined",oV={l:0,m:0,h:524288},oq={l:0,m:4193280,h:1048575},oG={l:4194298,m:4194303,h:1048575},oz={l:4194303,m:4194303,h:1048575},oJ={l:0,m:0,h:0},oK={l:1,m:0,h:0},oW={l:2,m:0,h:0},oZ={l:5,m:0,h:0},oX={l:10,m:0,h:0},oY={l:11,m:0,h:0},o0={l:18,m:0,h:0},o1={l:48,m:0,h:0},o2={l:877824,m:119,h:0},o3={l:1755648,m:238,h:0},o6={l:4194303,m:511,h:0},o4={l:4194303,m:1023,h:0},o5={l:0,m:1024,h:0};(i$=h.prototype={}).eQ=function(n){return this===n},i$.gC=function(){return us},i$.hC=function(){return nF(this)},i$.tS=function(){return this.gC().d+"@"+function(n){var t,e,r;if(t=tU(uK,{6:1},-1,8,1),rv(),e=fO,r=7,n>=0)for(;n>15;)t[r--]=e[15&n],n>>=4;else for(;r>0;)t[r--]=e[15&n],n>>=4;return t[r]=e[15&n],t6(t,r,8)}(this.hC())},i$.toString=function(){return this.tS()},i$.tM=g,i$.cM={},(i$=a.prototype=new h).gC=function(){return ua},i$.j=function(){return this.f},i$.tS=function(){var n,t;return n=this.gC().d,null!=(t=this.j())?n+": "+t:n},i$.cM={6:1,15:1},i$.f=null,(i$=b.prototype=new a).gC=function(){return ub},i$.cM={6:1,15:1},(i$=nr.prototype=l.prototype=new b).gC=function(){return ul},i$.cM={6:1,12:1,15:1},(i$=n1.prototype=(function(){}).prototype=new l).gC=function(){return ug},i$.j=function(){var n,t,e,r,i;return null==this.d&&(this.e=null==(e=this.c)?ok:tt(e)?null==(r=t8(e))?null:r.name:nz(e,1)?op:(nH(e)?e.gC():uw).d,this.b=tt(n=this.c)?null==(i=t8(n))?null:i.message:n+iV,this.d="("+this.e+"): "+this.b+(tt(t=this.c)?function(n){var t=iV;try{for(var e in n)if("name"!=e&&"message"!=e&&"toString"!=e)try{t+="\n "+e+": "+n[e]}catch(n){}}catch(n){}return t}(t8(t)):iV)),this.d},i$.cM={6:1,12:1,15:1},i$.b=null,i$.c=null,i$.d=null,i$.e=null,(i$=w.prototype=new h).gC=function(){return ud};var o9=0,o8=0;(i$=d.prototype=(function(){}).prototype=new w).gC=function(){return um},i$.b=null,i$.c=null,(i$=_.prototype=v.prototype=new h).k=function(){for(var n={},t=[],e=arguments.callee.caller.caller;e;){var r,i,o=this.n(e.toString());t.push(o);var f=i5+o,u=n[f];if(u){for(r=0,i=u.length;r0?i:ox},i$.gC=function(){return uy},i$.o=function(n){return[]},(i$=m.prototype=new v).k=function(){return tg(this.o(td()),this.p())},i$.gC=function(){return uS},i$.o=function(n){return eO(this,n)},i$.p=function(){return 2},(i$=y.prototype=(function(){}).prototype=new m).k=function(){return eh(this)},i$.n=function(n){var t,e;return 0==n.length||(0==(e=e8(n)).indexOf("at ")&&(e=n7(e,3)),-1==(t=e.indexOf("["))&&(t=e.indexOf("(")),-1==t)?ox:(-1!=(t=(e=e8(e.substr(0,t-0))).indexOf("."))&&(e=n7(e,t+1)),e.length>0?e:ox)},i$.gC=function(){return uM},i$.o=function(n){return t3(this,n)},i$.p=function(){return 3},(i$=C.prototype=new h).gC=function(){return uB},(i$=x.prototype=(function(){}).prototype=new C).gC=function(){return uA},i$.b=iV,(i$=S.prototype=(function(){}).prototype=new h).gC=function(){return this.aC},i$.aC=null,i$.qI=0;var o7=null,fn=null;(i$=M.prototype=(function(){}).prototype=new h).gC=function(){return uE},i$.cM={2:1},(i$=B.prototype=new h).gC=function(){return uO},i$.cM={6:1,10:1};var ft=null;(i$=ef.prototype=ti.prototype=tM.prototype=tN.prototype=X.prototype=e_.prototype=eu.prototype=tA.prototype=tB.prototype=eJ.prototype=n3.prototype=n6.prototype=tr.prototype=tS.prototype=nL.prototype=A.prototype=new B).eQ=function(n){return e2(this,n)},i$.gC=function(){return uD},i$.hC=function(){return rm(this)},i$.q=function(){return rj(this)},i$.r=function(){return ed(this)},i$.tS=function(){return ip(this)},i$.cM={6:1,8:1,10:1,16:1},i$.b=0,i$.c=0,i$.d=null,i$.e=0,i$.f=0,i$.g=0,i$.i=null;var fe,fr,fi,fo,ff,fu,fc,fs,fh,fa,fb,fl,fg,fw,fd,fp,f_,fv=null,fm=null,fy=null;(i$=nU.prototype=nw.prototype=(function(){}).prototype=new A).s=function(n){var t,e,r;if((e=iE(n))==iV)t=0>ed(this)?ep(this):this;else if(e==ob)t=0>(r=t7(this,new iS(n[0].toString()))).r()?ep(r):r;else throw new nr("Unknown call signature for interim = super.abs: "+e);return new nU(t)},i$.t=function(n){var t,e;if((e=iE(n))==i9)t=r1(this,new X(n[0].toString()));else if(e==i8)t=function(n,t,e){var r,i,o,f;if(r=n.f-t.f,0==t.b&&-1!=t.g||0==n.b&&-1!=n.g||0==e.b)return t7(r1(n,t),e);if((n.e>0?n.e:nP((n.b-1)*.3010299956639812)+1)0?t.e:nP((t.b-1)*.3010299956639812)+1)<-r-1))return t7(r1(n,t),e);i=n,f=t}return e.b>=(i.e>0?i.e:nP((i.b-1)*.3010299956639812)+1)?t7(r1(n,t),e):t7(i=new tM((o=i.r())==f.r()?ix(rZ((i.d||(i.d=eP(i.g)),i.d),10),eZ(e4(o))):ix(rZ(ih((i.d||(i.d=eP(i.g)),i.d),eZ(e4(o))),10),eZ(e4(9*o))),i.f+1),e)}(this,new X(n[0].toString()),new iS(n[1].toString()));else throw new nr("Unknown call signature for interim = super.add: "+e);return new nU(t)},i$.u=function(){return~~(nB(en(this,8))<<24)>>24},i$.v=function(n){return ic(this,n)},i$.w=function(n){var t,e,r,i;if((i=iE(n))==i9)e=el(this,new X(n[0].toString()));else if(i==i8)e=eg(this,new X(n[0].toString()),new iS(n[1].toString()));else throw new nr("Unknown call signature for interim = super.divideAndRemainder: "+i);for(t=0,r=tU(uL,{6:1},3,e.length,0);t129?n*=1/0:n=t9(ip(this)),n},i$.gC=function(){return uk},i$.hC=function(){return rm(this)},i$.B=function(){var n;return this.f<=-32||this.f>(this.e>0?this.e:nP((this.b-1)*.3010299956639812)+1)?0:(n=new n2(0==this.f||0==this.b&&-1!=this.g?(this.d||(this.d=eP(this.g)),this.d):this.f<0?et((this.d||(this.d=eP(this.g)),this.d),im(-this.f)):ia((this.d||(this.d=eP(this.g)),this.d),im(this.f)))).f*n.b[0]},i$.C=function(){return nB(en(this,32))},i$.D=function(){return nB(en(this,32))},i$.E=function(){return t9(ip(this))},i$.F=function(n){return new nU(ic(this,n)>=0?this:n)},i$.G=function(n){return new nU(0>=ic(this,n)?this:n)},i$.H=function(n){return new nU(rJ(this,this.f+n))},i$.I=function(n){return new nU(rJ(this,this.f-n))},i$.J=function(n){var t,e;if((e=iE(n))==i9)t=rk(this,new X(n[0].toString()));else if(e==i8)t=tl(this,new X(n[0].toString()),new iS(n[1].toString()));else throw new nr("Unknown call signature for interim = super.multiply: "+e);return new nU(t)},i$.K=function(n){var t,e;if((e=iE(n))==iV)t=ep(this);else if(e==ob)t=ep(t7(this,new iS(n[0].toString())));else throw new nr("Unknown call signature for interim = super.negate: "+e);return new nU(t)},i$.L=function(n){var t,e;if((e=iE(n))==iV)t=this;else if(e==ob)t=t7(this,new iS(n[0].toString()));else throw new nr("Unknown call signature for interim = super.plus: "+e);return new nU(t)},i$.M=function(n){var t,e;if((e=iE(n))==oL)t=rd(this,n[0]);else if(e==oU)t=function(n,t,e){var r,i,o,f,u,c;if(o=t<0?-t:t,f=e.b,i=eo(tn(o))+1,u=e,0==t||0==n.b&&-1!=n.g&&t>0)return rd(n,t);if(o>0x3b9ac9ff||0==f&&t<0||f>0&&i>f)throw new ni(oa);for(f>0&&(u=new eW(f+i+1,e.c)),r=t7(n,u),c=~~function(n){var t;if(n<0)return -0x80000000;if(0==n)return 0;for(t=0x40000000;(t&n)==0;t>>=1);return t}(o)>>1;c>0;)r=tl(r,r,u),(o&c)==c&&(r=tl(r,n,u)),c>>=1;return t<0&&(r=iO(fw,r,u)),is(r,e),r}(this,n[0],new iS(n[1].toString()));else throw new nr("Unknown call signature for interim = super.pow: "+e);return new nU(t)},i$.q=function(){return rj(this)},i$.N=function(n){var t,e;if((e=iE(n))==i9)t=el(this,new X(n[0].toString()))[1];else if(e==i8)t=eg(this,new X(n[0].toString()),new iS(n[1].toString()))[1];else throw new nr("Unknown call signature for interim = super.remainder: "+e);return new nU(t)},i$.O=function(n){return new nU(t7(this,new iS(ea(n.b))))},i$.P=function(){return eo(this.f)},i$.Q=function(n){var t;return new nU((t=this.f-n,this.b<54)?0==this.g?eU(t):new ti(this.g,eK(t)):new tS((this.d||(this.d=eP(this.g)),this.d),eK(t)))},i$.R=function(n){var t,e;if((e=iE(n))==oL)t=r0(this,n[0],(iA(),f6));else if(e==oP)t=r0(this,n[0],rQ(n[1]));else if("number RoundingMode"==e)t=r0(this,n[0],ts(n[1].toString()));else throw new nr("Unknown call signature for interim = super.setScale: "+e);return new nU(t)},i$.S=function(){return~~(nB(en(this,16))<<16)>>16},i$.r=function(){return ed(this)},i$.T=function(){return new nU(function(n){var t,e,r,i,o;if(t=1,e=fm.length-1,r=n.f,0==n.b&&-1!=n.g)return new X(iW);for(n.d||(n.d=eP(n.g)),o=n.d;!o.gb(0);)if(0==(i=r4(o,fm[t]))[1].r())r-=t,t0?r.e:nP((r.b-1)*.3010299956639812)+1)0?this.e:nP((this.b-1)*.3010299956639812)+1)?t7(new tM((f=ed(this))!=r.r()?ix(rZ((this.d||(this.d=eP(this.g)),this.d),10),eZ(e4(f))):ix(rZ(ih((this.d||(this.d=eP(this.g)),this.d),eZ(e4(f))),10),eZ(e4(9*f))),this.f+1),i):t7(iD(this,r),i);else throw new nr("Unknown call signature for interim = super.subtract: "+e);return new nU(t)},i$.V=function(){return new n2(0==this.f||0==this.b&&-1!=this.g?(this.d||(this.d=eP(this.g)),this.d):this.f<0?et((this.d||(this.d=eP(this.g)),this.d),im(-this.f)):ia((this.d||(this.d=eP(this.g)),this.d),im(this.f)))},i$.W=function(){return new n2(r5(this))},i$.X=function(){return function(n){var t,e,r,i,o,f,u,c;if(f=iF((n.d||(n.d=eP(n.g)),n.d),0),0==n.f)return f;if(t=0>(n.d||(n.d=eP(n.g)),n.d).r()?2:1,r=f.length,i=-n.f+r-t,c=new nq(f),n.f>0&&i>=-6)i>=0?n8(c,r-eo(n.f),iK):(te(c.b,t-1,t-1,iZ),n8(c,t+1,tP(fh,0,-eo(i)-1)));else{if(e=r-t,0!=(u=eo(i%3))&&(0==(n.d||(n.d=eP(n.g)),n.d).r()?i+=u=u<0?-u:3-u:(i-=u=u<0?u+3:u,t+=u),e<3))for(o=u-e;o>0;--o)n8(c,r++,iW);r-t>=1&&(te(c.b,t,t,iK),++r),0!=i&&(te(c.b,r,r,oc),i>0&&n8(c,++r,iz),n8(c,++r,iV+r6(r3(i))))}return c.b.b}(this)},i$.Y=function(){return function(n){var t,e,r,i,o,f;if(r=iF((n.d||(n.d=eP(n.g)),n.d),0),0==n.f||0==n.b&&-1!=n.g&&n.f<0)return r;if(t=+(0>ed(n)),e=n.f,i=new Z(r.length+1+((o=eo(n.f))<0?-o:o)),1==t&&(i.b.b+=iJ),n.f>0){if((e-=r.length-t)>=0){for(i.b.b+=iZ;e>fh.length;e-=fh.length)tG(i,fh);n9(i,fh,eo(e)),nE(i,n7(r,t))}else nE(i,(f=eo(e=t-e),r.substr(t,f-t))),i.b.b+=iK,nE(i,n7(r,eo(e)))}else{for(nE(i,n7(r,t));e<-fh.length;e+=fh.length)tG(i,fh);n9(i,fh,eo(-e))}return i.b.b}(this)},i$.tS=function(){return ip(this)},i$.Z=function(){return new nU(new ti(1,this.f))},i$.$=function(){return new n2((this.d||(this.d=eP(this.g)),this.d))},i$.cM={3:1,6:1,8:1,10:1,16:1,24:1},(i$=H.prototype=(function(){}).prototype=new h).gC=function(){return uU};var fC=!1;(i$=rf.prototype=ro.prototype=to.prototype=e9.prototype=tV.prototype=ra.prototype=nG.prototype=iC.prototype=N.prototype=new B)._=function(){return this.f<0?new to(1,this.e,this.b):this},i$.ab=function(){return eq(this)},i$.eQ=function(n){return eV(this,n)},i$.gC=function(){return uP},i$.bb=function(){return t1(this)},i$.hC=function(){return ek(this)},i$.cb=function(){return 0==this.f?this:new to(-this.f,this.e,this.b)},i$.db=function(n){return rL(this,n)},i$.eb=function(n){return tY(this,n)},i$.fb=function(n){return t0(this,n)},i$.r=function(){return this.f},i$.gb=function(n){return rT(this,n)},i$.tS=function(){return iF(this,0)},i$.cM={6:1,8:1,10:1,17:1},i$.b=null,i$.c=-2,i$.d=0,i$.e=0,i$.f=0;var fx,fS,fM,fB,fA,fN=null;(i$=n2.prototype=nD.prototype=nk.prototype=(function(){}).prototype=new N)._=function(){return new n2(this.f<0?new to(1,this.e,this.b):this)},i$.hb=function(n){return new n2(ix(this,n))},i$.ib=function(n){return new n2(0==n.f||0==this.f?(rW(),fA):eV(n,(rW(),fx))?this:eV(this,fx)?n:this.f>0?n.f>0?function(n,t){var e,r,i,o;if(i=np(n.e,t.e),(e=n_(ew(n),ew(t)))>=i)return rW(),fA;for(r=tU(up,{6:1},-1,i,1);e0?rz(n,this):this.e>n.e?i_(this,n):i_(n,this))},i$.jb=function(n){return new n2(0==n.f?this:0==this.f?(rW(),fA):eV(this,(rW(),fx))?new n2(r7(n)):eV(n,fx)?fA:this.f>0?n.f>0?function(n,t){var e,r,i,o;for(i=tU(up,{6:1},-1,n.e,1),r=np(n.e,t.e),e=ew(n);e=n.e)return n;for(o=tU(up,{6:1},-1,f=np(n.e,t.e),1),e=i;e0?function(n,t){var e,r,i,o,f,u,c;if(i=ew(n),o=ew(t),i>=t.e)return n;if(c=n_(n.e,t.e),r=i,o>i){for(u=tU(up,{6:1},-1,c,1),f=np(n.e,o);r=t.e)return rW(),fA;if(f=tU(up,{6:1},-1,u=t.e,1),e=i,i0)for(;e34028234663852886e22?1/0:n<-34028234663852886e22?-1/0:n},i$.qb=function(n){return new n2(rR(this,n))},i$.gC=function(){return uQ},i$.bb=function(){return t1(this)},i$.hC=function(){return ek(this)},i$.B=function(){return this.f*this.b[0]},i$.rb=function(n){return function(n,t){var e,r;if(ij(),t<=0||1==n.e&&2==n.b[0])return!0;if(!rT(n,0))return!1;if(1==n.e&&(-1024&n.b[0])==0)return function(n,t){var e,r,i,o;for(r=0,e=n.length-1;r<=e;)if((o=n[i=r+(~~(e-r)>>1)])t))return i;e=i-1}return-r-1}(fW,n.b[0])>=0;for(r=1;r>1)?r:1+(~~(t-1)>>1))}(new n2(this.f<0?new to(1,this.e,this.b):this),n)},i$.sb=function(){return t9(iF(this,0))},i$.tb=function(n){return new n2(1==rt(this,n)?this:n)},i$.ub=function(n){return new n2(-1==rt(this,n)?this:n)},i$.vb=function(n){return new n2(ee(this,n))},i$.wb=function(n){return new n2(rO(this,n))},i$.xb=function(n,t){return new n2(rG(this,n,t))},i$.yb=function(n){return new n2(et(this,n))},i$.cb=function(){return new n2(0==this.f?this:new to(-this.f,this.e,this.b))},i$.zb=function(){return new n2(function(n){if(n.f<0)throw new ni("start < 0: "+n);return function(n){var t,e,r,i,o,f,u,c;if(ij(),o=tU(up,{6:1},-1,fW.length,1),r=tU(uv,{6:1},-1,1024,2),1==n.e&&n.b[0]>=0&&n.b[0]=fW[e];++e);return fK[e]}for(u=new to(1,n.e,tU(up,{6:1},-1,n.e+1,1)),iB(n.b,0,u.b,0,n.e),rT(n,0)?tW(u,2):u.b[0]|=1,i=u.ab(),t=2;i0?n.f>0?this.e>n.e?rg(this,n):rg(n,this):iw(this,n):n.f>0?iw(n,this):ew(n)>ew(this)?rX(n,this):rX(this,n))},i$.db=function(n){return new n2(rL(this,n))},i$.Cb=function(n){return new n2(rH(this,n))},i$.Db=function(n){return new n2(rT(this,n)?this:ie(this,n))},i$.eb=function(n){return new n2(tY(this,n))},i$.fb=function(n){return new n2(t0(this,n))},i$.r=function(){return this.f},i$.Eb=function(n){return new n2(ih(this,n))},i$.gb=function(n){return rT(this,n)},i$.Fb=function(n){var t,e;if((e=iE(n))==iV)t=iF(this,0);else if(e==oL)t=function(n,t){var e,r,i,o,f,u,c,s,h,a,b,l,g,w,d,_,v;if(iM(),w=n.f,h=n.e,u=n.b,0==w)return iW;if(1==h)return v=th(e4(u[0]),o4),w<0&&(v=eQ(v)),function(n,t){var e,r,i,o;if(10==t||t<2||t>36)return iV+r6(n);if(e=tU(uK,{6:1},-1,65,1),rv(),r=fO,i=64,o=e4(t),rN(n,oJ)){for(;rN(n,o);)e[i--]=r[nB(n4(n,o))],n=iI(n,o,!1);e[i]=r[nB(n)]}else{for(;!rA(n,eQ(o));)e[i--]=r[nB(eQ(n4(n,o)))],n=iI(n,o,!1);e[i--]=r[nB(eQ(n))],e[i]=45}return t6(e,i,65)}(v,t);if(10==t||t<2||t>36)return iF(n,0);if(r=Math.log(t)/Math.log(2),g=tU(uK,{6:1},-1,l=eo(eq(new n2(n.f<0?new to(1,n.e,n.b):n))/r+ +(w<0))+1,1),o=l,16!=t)for(iB(u,0,d=tU(up,{6:1},-1,h,1),0,h),_=h,i=fP[t],e=fU[t-2];;){b=ii(d,d,_,e),a=o;do g[--o]=em(b%t,t);while(0!=(b=~~(b/t))&&0!=o)for(c=0,f=i-a+o;c0;++c)g[--o]=48;for(c=_-1;c>0&&0==d[c];--c);if(1==(_=c+1)&&0==d[0])break}else for(c=0;c0;++s)b=~~u[c]>>(s<<2)&15,g[--o]=em(b,16);for(;48==g[o];)++o;return -1==w&&(g[--o]=45),tP(g,o,l-o)}(this,n[0]);else throw new nr("Unknown call signature for result = super.toString: "+e);return t},i$.Gb=function(n){return new n2(0==n.f?this:0==this.f?n:eV(n,(rW(),fx))?new n2(r7(this)):eV(this,fx)?new n2(r7(n)):this.f>0?n.f>0?this.e>n.e?rw(this,n):rw(n,this):iU(this,n):n.f>0?iU(n,this):ew(n)>ew(this)?io(n,this):io(this,n))},i$.cM={4:1,6:1,8:1,10:1,17:1,24:1},(i$=F.prototype=(function(){}).prototype=new h).gC=function(){return uj};var fI=!1;(i$=nm.prototype=ny.prototype=(function(){}).prototype=new h).gC=function(){return uF},i$.Hb=function(){return this.b.b},i$.Ib=function(){return new nn(this.b.c)},i$.hC=function(){return nM(this.b)},i$.tS=function(){return ea(this.b)},i$.cM={24:1},i$.b=null,(i$=j.prototype=(function(){}).prototype=new h).gC=function(){return uH};var fE=!1;(i$=nn.prototype=nC.prototype=(function(){}).prototype=new h).gC=function(){return u$},i$.Jb=function(){return this.b.b},i$.tS=function(){return this.b.b},i$.cM={5:1,24:1},i$.b=null,(i$=K.prototype=(function(){}).prototype=new h).gC=function(){return uq};var fR=!1;(i$=ni.prototype=(function(){}).prototype=new l).gC=function(){return uG},i$.cM={6:1,12:1,15:1},(i$=no.prototype=V.prototype=(function(){}).prototype=new l).gC=function(){return uJ},i$.cM={6:1,12:1,15:1},(i$=I.prototype=(function(){}).prototype=new h).gC=function(){return uW},i$.tS=function(){return((2&this.c)!=0?"interface ":(1&this.c)!=0?iV:"class ")+this.d},i$.b=null,i$.c=0,i$.d=null,(i$=$.prototype=(function(){}).prototype=new l).gC=function(){return uZ},i$.cM={6:1,12:1,15:1},(i$=E.prototype=new h).eQ=function(n){return this===n},i$.gC=function(){return uh},i$.hC=function(){return nF(this)},i$.tS=function(){return this.b},i$.cM={6:1,8:1,9:1},i$.b=null,i$.c=0,(i$=nf.prototype=q.prototype=R.prototype=new l).gC=function(){return uX},i$.cM={6:1,12:1,15:1},(i$=nu.prototype=G.prototype=O.prototype=new l).gC=function(){return uz},i$.cM={6:1,12:1,15:1},(i$=nc.prototype=z.prototype=(function(){}).prototype=new l).gC=function(){return uY},i$.cM={6:1,12:1,15:1},(i$=nd.prototype=(function(){}).prototype=new R).gC=function(){return u0},i$.cM={6:1,12:1,15:1},(i$=tf.prototype=(function(){}).prototype=new h).gC=function(){return uC},i$.tS=function(){return this.b+iK+this.d+"(Unknown Source"+(this.c>=0?i5+this.c:iV)+")"},i$.cM={6:1,13:1},i$.b=null,i$.c=0,i$.d=null,(i$=String.prototype).eQ=function(n){return tF(this,n)},i$.gC=function(){return uN},i$.hC=function(){var n,t;return nK(),null!=(t=fk[n=i5+this])?t:(null==(t=fD[n])&&(t=function(n){var t,e,r,i;for(t=0,i=(r=n.length)-4,e=0;et?n:t}function nv(n,t){return!rN(n,t)}function nm(n){this.b=new iS(n)}function ny(){this.b=(rF(),fF)}function nC(){this.b=(iA(),f3)}function nx(n,t){var e;nb(),e=o.b,n?function(n,t,e,r){var i=n.b[r];if(i)for(var o=0,f=i.length;o=t&&n.splice(0,t),n}function tw(n){return nz(n,15)?n:new n1(n)}function td(){try{null.a()}catch(n){return n}}function tp(n){var t;return(t=new I).d=iV+n,t.c=1,t}function t_(n,t){return nH(n)?n.eQ(t):n===t}function tv(n,t){return n.l==t.l&&n.m==t.m&&n.h==t.h}function tm(n,t){return n.l!=t.l||n.m!=t.m||n.h!=t.h}function ty(n,t,e){return(i$=new M).l=n,i$.m=t,i$.h=e,i$}function tC(n,t){return nj(n)===nj(t)||null!=n&&t_(n,t)}function tx(n,t){throw new nu("Index: "+n+", Size: "+t)}function tS(n,t){if(!n)throw new z;this.f=t,tO(this,n)}function tM(n,t){if(!n)throw new z;this.f=t,tO(this,n)}function tB(n,t,e,r){eJ.call(this,n,t,e),is(this,r)}function tA(n,t){eJ.call(this,n,0,n.length),is(this,t)}function tN(n,t){eJ.call(this,t5(n),0,n.length),is(this,t)}function tI(n){nr.call(this,"String index out of range: "+n)}function tE(n,t){var e,r;return e=n.b,r=String.fromCharCode(t),e.b+=r,n}function tR(n,t){rC(n.b,n.b,n.e,t.b,t.e),tZ(n),n.c=-2}function tO(n,t){n.d=t,n.b=t.ab(),n.b<54&&(n.g=ri(eN(t)))}function tD(){tD=g,fr=[],fi=[],function(n,t,e){var r,i=0;for(var o in n)(r=n[o])&&(t[i]=o,e[i]=r,++i)}(new S,fr,fi)}function tk(){fC||(fC=!0,new j,new F,function(){if(ng(oB,iV),f.bigdecimal.BigDecimal)var n=f.bigdecimal.BigDecimal;f.bigdecimal.BigDecimal=uc(function(){1==arguments.length&&null!=arguments[0]&&arguments[0].gC()==uk?this.__gwt_instance=arguments[0]:0==arguments.length&&(this.__gwt_instance=new nw,nl(this.__gwt_instance,this))});var t=f.bigdecimal.BigDecimal.prototype={};if(n)for(p in n)f.bigdecimal.BigDecimal[p]=n[p];f.bigdecimal.BigDecimal.ROUND_CEILING=2,f.bigdecimal.BigDecimal.ROUND_DOWN=1,f.bigdecimal.BigDecimal.ROUND_FLOOR=3,f.bigdecimal.BigDecimal.ROUND_HALF_DOWN=5,f.bigdecimal.BigDecimal.ROUND_HALF_EVEN=6,f.bigdecimal.BigDecimal.ROUND_HALF_UP=4,f.bigdecimal.BigDecimal.ROUND_UNNECESSARY=7,f.bigdecimal.BigDecimal.ROUND_UP=0,f.bigdecimal.BigDecimal.__init__=uc(function(n){return nR(function(n){var t,e;if(iP(),(e=iE(n))==on)t=new nL(new nG(n[0].toString()));else if("BigInteger number"==e)t=new tS(new nG(n[0].toString()),n[1]);else if("BigInteger number MathContext"==e)t=new tr(new nG(n[0].toString()),n[1],new iS(n[2].toString()));else if("BigInteger MathContext"==e)t=new n6(new nG(n[0].toString()),new iS(n[1].toString()));else if(e==oS)t=new n3(t5(n[0].toString()));else if("array number number"==e)t=new eJ(t5(n[0].toString()),n[1],n[2]);else if("array number number MathContext"==e)t=new tB(t5(n[0].toString()),n[1],n[2],new iS(n[3].toString()));else if("array MathContext"==e)t=new tA(t5(n[0].toString()),new iS(n[1].toString()));else if(e==oL)t=new eu(n[0]);else if(e==oU)t=new e_(n[0],new iS(n[1].toString()));else if(e==oH)t=new X(n[0].toString());else if("string MathContext"==e)t=new tN(n[0].toString(),new iS(n[1].toString()));else throw new nr("Unknown call signature for obj = new java.math.BigDecimal: "+e);return new nU(t)}(n))}),t.abs_va=uc(function(n){return nR(this.__gwt_instance.s(n))}),t.add_va=uc(function(n){return nR(this.__gwt_instance.t(n))}),t.byteValueExact=uc(function(){return this.__gwt_instance.u()}),t.compareTo=uc(function(n){return this.__gwt_instance.v(n.__gwt_instance)}),t.divide_va=uc(function(n){return nR(this.__gwt_instance.y(n))}),t.divideToIntegralValue_va=uc(function(n){return nR(this.__gwt_instance.x(n))}),t.doubleValue=uc(function(){return this.__gwt_instance.z()}),t.equals=uc(function(n){return this.__gwt_instance.eQ(n)}),t.floatValue=uc(function(){return this.__gwt_instance.A()}),t.hashCode=uc(function(){return this.__gwt_instance.hC()}),t.intValue=uc(function(){return this.__gwt_instance.B()}),t.intValueExact=uc(function(){return this.__gwt_instance.C()}),t.max=uc(function(n){return nR(this.__gwt_instance.F(n.__gwt_instance))}),t.min=uc(function(n){return nR(this.__gwt_instance.G(n.__gwt_instance))}),t.movePointLeft=uc(function(n){return nR(this.__gwt_instance.H(n))}),t.movePointRight=uc(function(n){return nR(this.__gwt_instance.I(n))}),t.multiply_va=uc(function(n){return nR(this.__gwt_instance.J(n))}),t.negate_va=uc(function(n){return nR(this.__gwt_instance.K(n))}),t.plus_va=uc(function(n){return nR(this.__gwt_instance.L(n))}),t.pow_va=uc(function(n){return nR(this.__gwt_instance.M(n))}),t.precision=uc(function(){return this.__gwt_instance.q()}),t.remainder_va=uc(function(n){return nR(this.__gwt_instance.N(n))}),t.round=uc(function(n){return nR(this.__gwt_instance.O(n.__gwt_instance))}),t.scale=uc(function(){return this.__gwt_instance.P()}),t.scaleByPowerOfTen=uc(function(n){return nR(this.__gwt_instance.Q(n))}),t.setScale_va=uc(function(n){return nR(this.__gwt_instance.R(n))}),t.shortValueExact=uc(function(){return this.__gwt_instance.S()}),t.signum=uc(function(){return this.__gwt_instance.r()}),t.stripTrailingZeros=uc(function(){return nR(this.__gwt_instance.T())}),t.subtract_va=uc(function(n){return nR(this.__gwt_instance.U(n))}),t.toBigInteger=uc(function(){return nR(this.__gwt_instance.V())}),t.toBigIntegerExact=uc(function(){return nR(this.__gwt_instance.W())}),t.toEngineeringString=uc(function(){return this.__gwt_instance.X()}),t.toPlainString=uc(function(){return this.__gwt_instance.Y()}),t.toString=uc(function(){return this.__gwt_instance.tS()}),t.ulp=uc(function(){return nR(this.__gwt_instance.Z())}),t.unscaledValue=uc(function(){return nR(this.__gwt_instance.$())}),t.divideAndRemainder_va=uc(function(n){return nO(this.__gwt_instance.w(n))}),t.longValue=uc(function(){return this.__gwt_instance.E()}),t.longValueExact=uc(function(){return this.__gwt_instance.D()}),f.bigdecimal.BigDecimal.valueOf_va=uc(function(n){return nR(function(n){var t,e;if(iP(),(e=iE(n))==oL)t=function(n){if(!isFinite(n)||isNaN(n))throw new nd(oh);return new X(iV+n)}(n[0]);else if(e==oL)t=tX(e4(n[0]));else if(e==oP)t=eL(e4(n[0]),n[1]);else throw new nr("Unknown call signature for bd = java.math.BigDecimal.valueOf: "+e);return new nU(t)}(n))}),f.bigdecimal.BigDecimal.log=uc(function(n){iP(),typeof console!==o$&&console.log&&console.log(n)}),f.bigdecimal.BigDecimal.logObj=uc(function(n){iP(),typeof console!==o$&&console.log&&typeof JSON!==o$&&JSON.stringify&&console.log("object: "+JSON.stringify(n))}),f.bigdecimal.BigDecimal.ONE=uc(function(){return nR((iP(),new nU(fw)))}),f.bigdecimal.BigDecimal.TEN=uc(function(){return nR((iP(),new nU(fd)))}),f.bigdecimal.BigDecimal.ZERO=uc(function(){return nR((iP(),new nU(fp)))}),nx(uk,f.bigdecimal.BigDecimal)}())}function tL(n,t,e){var r;return(r=new I).d=n+t,r.c=4,r.b=e,r}function tU(n,t,e,r,i){var o;return tK(n,t,e,o=function(n,t){var e=Array(t);if(3==n)for(var r=0;r0)for(var i=[null,0,!1][n],r=0;rn)throw new tI(e)}(n.length,t,r),t6(n,t,r)}function tQ(n,t){return il(),t=n.c.c)throw new J;return t=n.c,r=e=n.b++,i=t.c,(r<0||r>=i)&&tx(r,i),t.b[e]}function tF(n,t){return!!nz(t,1)&&String(n)==t}function tH(){nr.call(this,"Add not supported on this collection")}function t$(){this.b=[],this.f={},this.d=!1,this.c=null,this.e=0}function tV(n,t){rW(),this.f=n,this.e=1,this.b=tK(up,{6:1},-1,[t])}function tq(n,t){var e;return e=n.c,n.c=t,!n.d&&(n.d=!0,++n.e),e}function tG(n,t){var e,r;return e=n.b,r=String.fromCharCode.apply(null,t),e.b+=r,n}function tz(n,t,e,r){var i,o;return null==t&&(t=ok),i=n.b,o=t.substr(e,r-e),i.b+=o,n}function tJ(n,t,e,r){var i;return rC(i=tU(up,{6:1},-1,t,1),n,t,e,r),i}function tK(n,t,e,r){return tD(),function(n,t,e){tD();for(var r=0,i=t.length;r0&&0==n.b[--n.e];);0==n.b[n.e++]&&(n.f=0)}function tX(n){return rN(n,oJ)&&nv(n,oY)?fs[nB(n)]:new ef(n,0)}function tY(n,t){return 0==t||0==n.f?n:t>0?e6(n,t):rY(n,-t)}function t0(n,t){return 0==t||0==n.f?n:t>0?rY(n,t):e6(n,-t)}function t1(n){var t;return 0==n.f?-1:((t=ew(n))<<5)+es(n.b[t])}function t2(n){var t;return 0!=(t=nB(n))?es(t):es(nB(rK(n,32)))+32}function t3(n,t){var e;return 0==(e=eO(n,t)).length?(new _).o(t):tg(e,1)}function t6(n,t,e){return n=n.slice(t,e),String.fromCharCode.apply(null,n)}function t4(n,t,e,r){var i;return ib(i=tU(up,{6:1},-1,t+1,1),n,t,e,r),i}function t5(n){var t,e;return t=tU(uK,{6:1},-1,e=n.length,1),function(n,t,e,r){var i;for(i=0;it.e&&(c=t,t=e,e=c),e.e<63)?(b=t,l=e,(_=(g=b.e)+(w=l.e),v=b.f!=l.f?-1:1,2==_)?(x=nB(y=iR(th(e4(b.b[0]),o4),th(e4(l.b[0]),o4))),0==(C=nB(rP(y,32)))?new tV(v,x):new to(v,2,tK(up,{6:1},-1,[x,C]))):(eG(b.b,g,l.b,w,d=tU(up,{6:1},-1,_,1)),tZ(m=new to(v,_,d)),m)):(u=(-2&t.e)<<4,h=t.fb(u),a=e.fb(u),i=ih(t,h.eb(u)),o=ih(e,a.eb(u)),s=n(h,a),r=n(i,o),f=(f=ix(ix(f=n(ih(h,i),ih(o,a)),s),r)).eb(u),ix(ix(s=s.eb(u<<1),f),r))}(n,t))}function ee(n,t){var e;if(t.f<=0)throw new ni(or);return(e=rH(n,t)).f<0?ix(e,t):e}function er(n){var t;t=new nJ,n.d&&n5(t,new ne(n)),function(n,t){var e=n.f;for(var r in e)if(58==r.charCodeAt(0)){var i=new nA(n,r.substring(1));t.Kb(i)}}(n,t),function(n,t){var e=n.b;for(var r in e){var i=parseInt(r,10);if(r==i)for(var o=e[i],f=0,u=o.length;f0):(n.d||(n.d=eP(n.g)),n.d).r()}function ep(n){return n.b<54?new ti(-n.g,n.f):new tM((n.d||(n.d=eP(n.g)),n.d).cb(),n.f)}function e_(n,t){if(!isFinite(n)||isNaN(n))throw new nd(oh);iQ(this,n.toPrecision(20)),is(this,t)}function ev(n,t){return isNaN(n)?+!isNaN(t):isNaN(t)?-1:nt)}function em(n,t){return t<2||t>36||n<0||n>=t?0:n<10?48+n&65535:97+n-10&65535}function ey(n,t){var e,r;return t?((e=t[oC])||(e=new(r=t.gC(),t8(ei(n.b,r)))(t),t[oC]=e),e):null}function eC(n){var t,e;return 32==(e=r$(n.h))?32==(t=r$(n.m))?r$(n.l)+32:t+20-10:e-12}function ex(n){return ty(4194303&n,~~n>>22&4194303,1048575*(n<0))}function eS(){eS=g,fo=ty(4194303,4194303,524287),ff=ty(0,0,524288),fu=e4(1),e4(2),fc=e4(0)}function eM(n,t){ib(n.b,n.b,n.e,t.b,t.e),n.e=np(n_(n.e,t.e)+1,n.b.length),tZ(n),n.c=-2}function eB(n,t){var e;e=~~t>>5,n.e+=e+ +!(r$(n.b[n.e-1])-(31&t)>=0),rx(n.b,n.b,e,31&t),tZ(n),n.c=-2}function eA(n,t){var e,r;e=~~t>>5,n.e>>r:0,tZ(n))}function eN(n){var t;return t=n.e>1?ta(rU(e4(n.b[1]),32),th(e4(n.b[0]),o4)):th(e4(n.b[0]),o4),iR(e4(n.f),t)}function eI(n,t,e){var r;for(r=e-1;r>=0&&n[r]==t[r];--r);return r<0?0:nv(th(e4(n[r]),o4),th(e4(t[r]),o4))?-1:1}function eE(n,t,e){var r,i,o;for(i=0,r=0;i>>31;0!=r&&(n[e]=r)}function eR(n,t,e,r){if(iH=t,n)try{uc(iy)()}catch(e){n(t)}else uc(iy)()}function eO(n,t){var e,r,i;for(e=0,r=(i=t&&t.stack?t.stack.split("\n"):[]).length;e>5==n.e-1&&n.b[n.e-1]==1<<(31&t))for(e=0;r&&e=0&&t=0?new ef(oJ,0x7fffffff):new ef(oJ,-0x80000000)}function eP(n){return(rW(),n<0)?-1!=n?new rf(-1,-n):fx:n<=10?fM[eo(n)]:new rf(1,n)}function eQ(n){var t,e,r;return t=~n.l+1&4194303,e=~n.m+ +(0==t)&4194303,r=~n.h+ +(0==t&&0==e)&1048575,ty(t,e,r)}function eT(n){var t,e,r;t=~n.l+1&4194303,e=~n.m+ +(0==t)&4194303,r=~n.h+ +(0==t&&0==e)&1048575,n.l=t,n.m=e,n.h=r}function ej(n){var t,e,r;for(r=0,e=tU(ux,{6:1},13,n.length,0),t=n.length;r=0;--r)if(n[r]!=i[r]){e=0!=n[r]&&rA(th(e4(n[r]),o4),th(e4(i[r]),o4));break}}return f=new to(1,o+1,n),e&&tR(f,t),tZ(f),f}(o,e)}function eV(n,t){var e;return n===t||!!nz(t,17)&&(e=tT(t,17),n.f==e.f&&n.e==e.e&&function(n,t){var e;for(e=n.e-1;e>=0&&n.b[e]==t[e];--e);return e<0}(n,e.b))}function eq(n){var t,e;return 0==n.f?0:(t=n.e<<5,e=n.b[n.e-1],n.f<0&&ew(n)==n.e-1&&(e=~~(e-1)),t-=r$(e))}function eG(n,t,e,r,i){il(),0!=t&&0!=r&&(1==t?i[r]=rc(i,e,r,n[0]):1==r?i[t]=rc(i,n,t,e[0]):function(n,t,e,r,i){var o,f,u,c;if(nj(n)===nj(t)&&r==i){iu(n,r,e);return}for(u=0;u0x7fffffff))return eo(n);throw new ni("Underflow")}function eW(n,t){if(rF(),n<0)throw new nf("Digits < 0");if(!t)throw new nc("null RoundingMode");this.b=n,this.c=t}function eZ(n){return(rW(),nv(n,oJ))?tm(n,oz)?new ro(-1,eQ(n)):fx:rA(n,oX)?new ro(1,n):fM[nB(n)]}function eX(n){var t;return nv(n,oJ)&&(n=ty(4194303&~n.l,4194303&~n.m,1048575&~n.h)),64-(0!=(t=nB(rK(n,32)))?r$(t):r$(nB(n))+32)}function eY(n,t){var e,r,i;return e=n.l+t.l,r=n.m+t.m+(~~e>>22),i=n.h+t.h+(~~r>>22),ty(4194303&e,4194303&r,1048575&i)}function e0(n,t){var e,r,i;return e=n.l-t.l,r=n.m-t.m+(~~e>>22),i=n.h-t.h+(~~r>>22),ty(4194303&e,4194303&r,1048575&i)}function e1(n,t){var e;if(e=t-1,n.f>0){for(;!n.gb(e);)--e;return t-1-e}for(;n.gb(e);)--e;return t-1-n_(e,n.bb())}function e2(n,t){var e;return n===t||!!nz(t,16)&&(e=tT(t,16)).f==n.f&&(n.b<54?e.g==n.g:n.d.eQ(e.d))}function e3(n,t,e){var r,i,o;for(o=oJ,r=t-1;r>=0;--r)i=r2(eY(rU(o,32),th(e4(n[r]),o4)),e),o=e4(nB(rK(i,32)));return nB(o)}function e6(n,t){var e,r,i,o;return e=~~t>>5,t&=31,rx(r=tU(up,{6:1},-1,i=n.e+e+ +(0!=t),1),n.b,e,t),tZ(o=new to(n.f,i,r)),o}function e4(n){var t,e;return n>-129&&n<128?(t=n+128,null==fn&&(fn=tU(uR,{6:1},2,256,0)),(e=fn[t])||(e=fn[t]=ex(n)),e):ex(n)}function e5(n){var t,e,r;return(rW(),n>5,t=31&n,(r=tU(up,{6:1},-1,e+1,1))[e]=1<iq&&n[n.length-1]>iq?n:n.replace(/^(\s*)/,iV).replace(/\s*$/,iV)}function e7(n){return n-=~~n>>1&0x55555555,n=(~~(n=(~~n>>2&0x33333333)+(0x33333333&n))>>4)+n&0xf0f0f0f,n+=~~n>>8,63&(n+=~~n>>16)}function rn(n,t,e){if(null!=e){var r;if(n.qI>0&&(r=n.qI,!e.cM||!e.cM[r])||n.qI<0&&(e.tM==g||n$(e,1)))throw new V}return n[t]=e}function rt(n,t){return n.f>t.f?1:n.ft.e?n.f:n.e=0;--o)f=e$(f,f,r,i),(e.b[~~o>>5]&1<<(31&o))!=0&&(f=e$(f,t,r,i));return f}(u,r,t,e,o):function(n,t,e,r,i){var o,f,u,c,s,h,a;for(s=tU(u9,{6:1},17,8,0),h=n,rn(s,0,t),a=e$(t,t,r,i),f=1;f<=7;++f)rn(s,f,e$(s[f-1],a,r,i));for(f=e.ab()-1;f>=0;--f)if((e.b[~~f>>5]&1<<(31&f))!=0){for(c=1,o=f,u=f-3>0?f-3:0;u<=f-1;++u)(e.b[~~u>>5]&1<<(31&u))!=0&&(u>1],h,r,i),f=o}else h=e$(h,h,r,i);return h}(u,r,t,e,o),e$(f,(rW(),fS),e,o)}function rh(n,t){var e,r,i,o;for(e=0,r=n.length;e36)throw new nd("Radix out of range");if(0==n.length)throw new nd("Zero length BigInteger");(function(n,t,e){var r,i,o,f,u,c,s,h,a,b,l,g,w,d;for(s=l=t.length,45==t.charCodeAt(0)?(a=-1,b=1,--l):(a=1,b=0),o=~~(l/(f=(iM(),fP)[e])),0!=(d=l%f)&&++o,c=tU(up,{6:1},-1,o,1),r=fU[e-2],u=0,g=b+(0==d?f:d),w=b;wr)return 1;if(e=0&&n[i]==t[i];--i);return i<0?0:nv(th(e4(n[i]),o4),th(e4(t[i]),o4))?-1:1}function rg(n,t){var e,r,i;for(r=tU(up,{6:1},-1,i=n.e,1),np(ew(n),ew(t)),e=0;e0x3b9ac9ff)throw new ni(oa);return e=n.f*t,0==n.b&&-1!=n.g?eU(e):new tS((n.d||(n.d=eP(n.g)),n.d).db(t),eK(e))}function rp(n,t){return t<2||t>36?-1:n>=48&&n<48+(t<10?t:10)?n-48:n>=97&&n=65&&n=0;--n)uf[n]=e,e*=.5;for(n=24,t=1;n>=0;--n)uo[n]=t,t*=.5}function rv(){rv=g,fO=tK(uK,{6:1},-1,[48,49,50,51,52,53,54,55,56,57,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122])}function rm(n){var t;return 0!=n.c||(n.b<54?(t=r3(n.g),n.c=nB(th(t,oz)),n.c=33*n.c+nB(th(rK(t,32),oz)),n.c=17*n.c+eo(n.f)):n.c=17*n.d.hC()+eo(n.f)),n.c}function ry(n,t,e,r){var i,o,f,u,c;return o=(c=n/t)>0?Math.floor(c):Math.ceil(c),f=n%t,u=ev(n*t,0),0!=f&&(i=ev((f<=0?0-f:f)*2,t<=0?0-t:t),o+=it(1&eo(o),u*(5+i),r)),new ti(o,e)}function rC(n,t,e,r,i){var o,f;for(f=0,o=oJ;fe;--i)n[i]|=~~t[i-e-1]>>>o,n[i-1]=t[i-e-1]<>5,n.e-=r,!rD(n.b,n.e,n.b,r,31&t)&&i<0){for(e=0;e>19,r=~~t.h>>19,0==e?0!=r||n.h>t.h||n.h==t.h&&n.m>t.m||n.h==t.h&&n.m==t.m&&n.l>t.l:!(0==r||n.h>19,r=~~t.h>>19,0==e?0!=r||n.h>t.h||n.h==t.h&&n.m>t.m||n.h==t.h&&n.m==t.m&&n.l>=t.l:!(0==r||n.h-0x800000000000&&n<0x800000000000?0==n?0:((t=n<0)&&(n=-n),e=eo(nP(Math.log(n)/.6931471805599453)),(!t||n!=Math.pow(2,e))&&++e,e):eX(r3(n))}function rR(n,t){var e,r;return(e=n._(),r=t._(),0==e.r())?r:0==r.r()?e:(1==e.e||2==e.e&&e.b[1]>0)&&(1==r.e||2==r.e&&r.b[1]>0)?eZ(rI(eN(e),eN(r))):function(n,t){var e,r,i,o;i=(e=n.bb())<(r=t.bb())?e:r,rB(n,e),rB(t,r),1==rt(n,t)&&(o=n,n=t,t=o);do{if(1==t.e||2==t.e&&t.b[1]>0){t=eZ(rI(eN(n),eN(t)));break}if(t.e>1.2*n.e)0!=(t=rH(t,n)).r()&&rB(t,t.bb());else do tR(t,n),rB(t,t.bb());while(rt(t,n)>=0)o=t,t=n,n=o}while(0!=o.f)return t.eb(i)}(eb(e),eb(r))}function rO(n,t){var e;if(t.f<=0)throw new ni(or);if(!(n.gb(0)||t.gb(0)))throw new ni(oe);if(1==t.e&&1==t.b[0])return fA;if(0==(e=function(n,t){var e,r,i,o,f,u,c,s,h,a,b;if(0==n.f)throw new ni(oe);if(!t.gb(0))return function(n,t){var e,r,i,o,f,u,c,s,h,a,b;for(h=tU(up,{6:1},-1,(o=n_(n.e,t.e))+1,1),b=tU(up,{6:1},-1,o+1,1),iB(t.b,0,h,0,t.e),iB(n.b,0,b,0,n.e),s=new to(t.f,t.e,h),a=new to(n.f,n.e,b),u=new to(0,1,tU(up,{6:1},-1,o+1,1)),(c=new to(1,1,tU(up,{6:1},-1,o+1,1))).b[0]=1,e=0,r=0,f=t.ab();!eD(s,e)&&!eD(a,r);)if(0!=(i=e1(s,f))&&(eB(s,i),e>=r?eB(u,i):(rB(c,r-e0&&eB(u,i-r+e)),e+=i),0!=(i=e1(a,f))&&(eB(a,i),r>=e?eB(c,i):(rB(u,e-r0&&eB(c,i-e+r)),r+=i),s.r()==a.r()?e<=r?(rq(s,a),rq(u,c)):(rq(a,s),rq(c,u)):e<=r?(rV(s,a),rV(u,c)):(rV(a,s),rV(c,u)),0==a.r()||0==s.r())throw new ni(oe);return eD(a,r)&&(u=c,a.r()!=s.r()&&(s=s.cb())),s.gb(f)&&(u=0>u.r()?u.cb():ih(t,u)),0>u.r()&&(u=ix(u,t)),u}(n,t);for(o=32*t.e,a=eb(t),c=new to(1,1,tU(up,{6:1},-1,(f=n_((b=eb(n)).e,a.e))+1,1)),(s=new to(1,1,tU(up,{6:1},-1,f+1,1))).b[0]=1,e=0,(r=a.bb())>(i=b.bb())?(rB(a,r),rB(b,i),eB(c,i),e+=r-i):(rB(a,r),rB(b,i),eB(s,r),e+=i-r),c.f=1;b.r()>0;){for(;rt(a,b)>0;)tR(a,b),h=a.bb(),rB(a,h),eM(c,s),eB(s,h),e+=h;for(;0>=rt(a,b)&&(tR(b,a),0!=b.r());)h=b.bb(),rB(b,h),eM(s,c),eB(c,h),e+=h}if(1!=a.e||1!=a.b[0])throw new ni(oe);return rt(c,t)>=0&&tR(c,t),c=ih(t,c),u=ru(t),e>o&&(c=e$(c,(rW(),fS),t,u),e-=o),c=e$(c,e5(o-e),t,u)}(ee(n._(),t),t)).f)throw new ni(oe);return n.f<0?ih(t,e):e}function rD(n,t,e,r,i){var o,f,u;for(f=0,o=!0;f>>i|e[f+r+1]<>>i,++f}return o}function rk(n,t){var e;return(e=n.f+t.f,0==n.b&&-1!=n.g||0==t.b&&-1!=t.g)?eU(e):n.b+t.b<54?new ti(n.g*t.g,eK(e)):new tS(et((n.d||(n.d=eP(n.g)),n.d),(t.d||(t.d=eP(t.g)),t.d)),eK(e))}function rL(n,t){var e;if(t<0)throw new ni("Negative exponent");if(0==t)return fS;if(1==t||n.eQ(fS)||n.eQ(fA))return n;if(!n.gb(0)){for(e=1;!n.gb(e);)++e;return et(e5(e*t),n.fb(e).db(t))}return function(n,t){var e,r;for(il(),rW(),r=fS,e=n;t>1;t>>=1)(1&t)!=0&&(r=et(r,e)),e=1==e.e?et(e,e):new e9(iu(e.b,e.e,tU(up,{6:1},-1,e.e<<1,1)));return et(r,e)}(n,t)}function rU(n,t){var e,r,i;return(t&=63)<22?(e=n.l<>22-t,i=n.h<>22-t):t<44?(e=0,r=n.l<>44-t):(e=0,r=0,i=n.l<>>t,i=~~n.m>>t|e<<22-t,r=~~n.l>>t|n.m<<22-t):t<44?(o=0,i=~~e>>>t-22,r=~~n.m>>t-22|n.h<<44-t):(o=0,i=0,r=~~e>>>t-44),ty(4194303&r,4194303&i,1048575&o)}function rQ(n){switch(iA(),n){case 2:return fX;case 1:return fY;case 3:return f0;case 5:return f1;case 6:return f2;case 4:return f3;case 7:return f6;case 0:return f4;default:throw new nf("Invalid rounding mode")}}function rT(n,t){var e,r,i;if(0==t)return(1&n.b[0])!=0;if(t<0)throw new ni(ol);if((i=~~t>>5)>=n.e)return n.f<0;if(e=n.b[i],t=1<<(31&t),n.f<0){if(i<(r=ew(n)))return!1;e=r==i?-e:~e}return(e&t)!=0}function rj(n){var t,e;return n.e>0||(t=1,e=1,n.b<54?(n.b>=1&&(e=n.g),t+=Math.log(e<=0?0-e:e)*Math.LOG10E):(t+=(n.b-1)*.3010299956639812,0!=ia((n.d||(n.d=eP(n.g)),n.d),im(t)).r()&&++t),n.e=eo(t)),n.e}function rF(){rF=g,fQ=new eW(34,(iA(),f2)),fT=new eW(7,f2),fj=new eW(16,f2),fF=new eW(0,f3),fH=tK(uK,{6:1},-1,[112,114,101,99,105,115,105,111,110,61]),f$=tK(uK,{6:1},-1,[114,111,117,110,100,105,110,103,77,111,100,101,61])}function rH(n,t){var e,r,i,o;if(0==t.f)throw new ni(ot);return((o=n.e)!=(e=t.e)?o>e?1:-1:eI(n.b,t.b,o))==-1?n:(r=tU(up,{6:1},-1,e,1),1==e?r[0]=e3(n.b,o,t.b[0]):r=iL(null,o-e+1,n.b,o,t.b,e),tZ(i=new to(n.f,e,r)),i)}function r$(n){var t,e,r;return n<0?0:0==n?32:(e=16-(t=~~(r=-(~~n>>16))>>16&16)+(t=~~(r=(n=~~n>>t)-256)>>16&8),n<<=t,e+=t=~~(r=n-4096)>>16&4,n<<=t,e+=t=~~(r=n-16384)>>16&2,n<<=t,e+2-(t=(r=~~n>>14)&~(~~r>>1)))}function rV(n,t){if(0==n.f)iB(t.b,0,n.b,0,t.e);else{if(0==t.f)return;n.f==t.f?ib(n.b,n.b,n.e,t.b,t.e):rl(n.b,t.b,n.e,t.e)>0?rC(n.b,n.b,n.e,t.b,t.e):(r9(n.b,n.b,n.e,t.b,t.e),n.f=-n.f)}n.e=n_(n.e,t.e)+1,tZ(n),n.c=-2}function rq(n,t){var e;e=rt(n,t),0==n.f?(iB(t.b,0,n.b,0,t.e),n.f=-t.f):n.f!=t.f?(ib(n.b,n.b,n.e,t.b,t.e),n.f=e):rl(n.b,t.b,n.e,t.e)>0?rC(n.b,n.b,n.e,t.b,t.e):(r9(n.b,n.b,n.e,t.b,t.e),n.f=-n.f),n.e=n_(n.e,t.e)+1,tZ(n),n.c=-2}function rG(n,t,e){var r,i,o,f,u,c,s,h,a,b;if(e.f<=0)throw new ni(or);return(r=n,(1==e.e&&1==e.b[0])|t.f>0&0==r.f)?fA:0==r.f&&0==t.f?fS:(t.f<0&&(r=rO(n,e),t=t.cb()),i=e.gb(0)?rs(r._(),t,e):(o=r._(),f=t,u=e.bb(),h=rs(o,f,c=e.fb(u)),a=function(n,t,e){var r,i,o,f,u;for(rW(),f=fS,i=eb(t),r=eb(n),n.gb(0)&&eA(i,e-1),eA(r,e),o=i.ab()-1;o>=0;--o)eA(u=eb(f),e),f=et(f,u),(i.b[~~o>>5]&1<<(31&o))!=0&&eA(f=et(f,r),e);return eA(f,e),f}(o,f,u),s=function(n,t){var e,r,i,o;for(e=1,(r=new e9(tU(up,{6:1},-1,1<>5]&1<<(31&o))!=0&&(r.b[~~e>>5]|=1<<(31&e));return r}(c,u),eA(b=et(ih(a,h),s),u),b.f<0&&(b=ix(b,e5(u))),ix(h,et(c,b))),r.f<0&&t.gb(0)&&(i=ee(et(ih(e,fS),i),e)),i)}function rz(n,t){var e,r,i,o,f,u,c;if(i=ew(n),(r=ew(t))>=n.e)return rW(),fA;for(f=tU(up,{6:1},-1,u=n.e,1),(e=i>r?i:r)==r&&(f[e]=-t.b[e]&n.b[e],++e),o=np(t.e,n.e);e=t.e)for(;e0?t:0):t>=0?n.b<54?new ti(n.g,eK(t)):new tS((n.d||(n.d=eP(n.g)),n.d),eK(t)):-t>t,o=~~n.m>>t|e<<22-t,i=~~n.l>>t|n.m<<22-t):t<44?(f=1048575*!!r,o=~~e>>t-22,i=~~n.m>>t-22|e<<44-t):(f=1048575*!!r,o=4194303*!!r,i=~~e>>t-44),ty(4194303&i,4194303&o,1048575&f)}function rW(){var n;for(n=0,rW=g,fS=new tV(1,1),fB=new tV(1,10),fA=new tV(0,0),fx=new tV(-1,1),fM=tK(u9,{6:1},17,[fA,fS,new tV(1,2),new tV(1,3),new tV(1,4),new tV(1,5),new tV(1,6),new tV(1,7),new tV(1,8),new tV(1,9),fB]),fN=tU(u9,{6:1},17,32,0);n=t.e)return t;if(r>=n.e)return n;if(o=tU(up,{6:1},-1,f=np(n.e,t.e),1),r==i)o[i]=-(-n.b[i]|-t.b[i]),e=i;else{for(e=r;e>5,t&=31,r>=n.e)return n.f<0?(rW(),fx):(rW(),fA);if(rD(i=tU(up,{6:1},-1,(o=n.e-r)+1,1),o,n.b,r,t),n.f<0){for(e=0;e0&&n.b[e]<<32-t!=0){for(e=0;e0?r=0)return n;return 0!=e?e>0?rS(n,t,e):rS(t,n,-e):n_(n.b,t.b)+1<54?new ti(n.g+t.g,n.f):new tM(ix((n.d||(n.d=eP(n.g)),n.d),(t.d||(t.d=eP(t.g)),t.d)),n.f)}function r2(n,t){var e,r,i,o,f;return(r=th(e4(t),o4),rN(n,oJ))?(o=iI(n,r,!1),f=n4(n,r)):(o=iI(e=rP(n,1),i=e4(~~t>>>1),!1),f=eY(rU(f=n4(e,i),1),th(n,oK)),(1&t)!=0&&(rA(o,f)?rA(e0(o,f),r)?(f=eY(f,e0(rU(r,1),o)),o=e0(o,oW)):(f=eY(f,e0(r,o)),o=e0(o,oK)):f=e0(f,o))),ta(rU(f,32),th(o,o4))}function r3(n){var t,e,r,i;return isNaN(n)?(eS(),fc):n<-0x8000000000000000?(eS(),ff):n>=0x8000000000000000?(eS(),fo):(r=!1,n<0&&(r=!0,n=-n),e=0,n>=0x100000000000&&(e=eo(n/0x100000000000),n-=0x100000000000*e),t=0,n>=4194304&&(t=eo(n/4194304),n-=4194304*t),i=ty(eo(n),t,e),r&&eT(i),i)}function r6(n){var t,e,r,i;if(0==n.l&&0==n.m&&0==n.h)return iW;if(524288==n.h&&0==n.m&&0==n.l)return"-9223372036854775808";if(~~n.h>>19!=0)return iJ+r6(eQ(n));for(e=n,r=iV;0!=e.l||0!=e.m||0!=e.h;){if(e=iI(e,e4(1e9),!0),t=iV+nB(o7),0!=e.l||0!=e.m||0!=e.h)for(i=9-t.length;i>0;--i)t=iW+t;r=t+r}return r}function r4(n,t){var e,r,i,o,f,u,c,s,h,a,b,l,g,w,d,_,v,m,y,C,x,S,M,B,A;if(0==(i=t.f))throw new ni(ot);return(r=t.e,e=t.b,1==r)?(g=e[0],(M=n.b,B=n.e,A=n.f,1==B)?(_=iI(w=th(e4(M[0]),o4),d=th(e4(g),o4),!1),y=n4(w,d),A!=i&&(_=eQ(_)),A<0&&(y=eQ(y)),tK(u9,{6:1},17,[eZ(_),eZ(y)])):(m=A==i?1:-1,v=tU(up,{6:1},-1,B,1),C=tK(up,{6:1},-1,[ii(v,M,B,g)]),x=new to(m,B,v),S=new to(A,1,C),tZ(x),tZ(S),tK(u9,{6:1},17,[x,S]))):(a=n.b,((b=n.e)!=r?b>r?1:-1:eI(a,e,b))<0)?tK(u9,{6:1},17,[fA,n]):(l=n.f,f=b-r+1,u=l==i?1:-1,c=iL(o=tU(up,{6:1},-1,f,1),f,a,b,e,r),s=new to(u,f,o),h=new to(l,r,c),tZ(s),tZ(h),tK(u9,{6:1},17,[s,h]))}function r5(n){var t;if(0==n.f||0==n.b&&-1!=n.g)return n.d||(n.d=eP(n.g)),n.d;if(n.f<0)return et((n.d||(n.d=eP(n.g)),n.d),im(-n.f));if(n.f>(n.e>0?n.e:nP((n.b-1)*.3010299956639812)+1)||n.f>(n.d||(n.d=eP(n.g)),n.d).bb()||0!=(t=r4((n.d||(n.d=eP(n.g)),n.d),im(n.f)))[1].r())throw new ni(og);return t[0]}function r9(n,t,e,r,i){var o,f;if(o=oJ,e36)throw new nd("radix "+t+" out of range");for(e=i=+((r=n.length)>0&&45==n.charCodeAt(0));e0x7fffffff)throw new nd(os+n+iG);return o}function r7(n){var t,e;if(0==n.f)return rW(),fx;if(eV(n,(rW(),fx)))return fA;if(e=tU(up,{6:1},-1,n.e+1,1),n.f>0){if(-1!=n.b[n.e-1])for(t=0;-1==n.b[t];++t);else{for(t=0;t0?0==t?0:t<0?-1:1:0;break;case 3:r=(0==t?0:t<0?-1:1)<0?0==t?0:t<0?-1:1:0;break;case 4:(t<0?-t:t)>=5&&(r=0==t?0:t<0?-1:1);break;case 5:(t<0?-t:t)>5&&(r=0==t?0:t<0?-1:1);break;case 6:(t<0?-t:t)+n>5&&(r=0==t?0:t<0?-1:1)}return r}function ie(n,t){var e,r,i,o,f,u,c,s,h;if(s=0==n.f?1:n.f,f=~~t>>5,e=31&t,u=tU(up,{6:1},-1,c=n_(f+1,n.e)+1,1),r=1<=n.e)u[f]=r;else if(f>(i=ew(n)))u[f]^=r;else if(f=0||0==s.f||1==s.e&&1==s.b[0])if(!(1==(h=rG(s,u,n)).e&&1==h.b[0]||h.eQ(f))){for(i=1;i=0;--u)rN(h=ta(rU(s,32),th(e4(t[u]),o4)),oJ)?(c=iI(h,o,!1),s=n4(h,o)):(c=iI(i=rP(h,1),f=e4(~~r>>>1),!1),s=eY(rU(s=n4(i,f),1),th(h,oK)),(1&r)!=0&&(rA(c,s)?rA(e0(c,s),o)?(s=eY(s,e0(rU(o,1),c)),c=e0(c,oW)):(s=eY(s,e0(o,c)),c=e0(c,oK)):s=e0(s,c))),n[u]=nB(th(c,o4));return nB(s)}function io(n,t){var e,r,i,o,f,u,c;if(f=tU(up,{6:1},-1,u=n_(n.e,t.e),1),i=ew(n),e=r=ew(t),i==r)f[r]=-n.b[r]^-t.b[r];else{for(f[r]=-t.b[r],o=np(t.e,i),++e;et.g):(r=n.f-t.f,(e=(n.e>0?n.e:nP((n.b-1)*.3010299956639812)+1)-(t.e>0?t.e:nP((t.b-1)*.3010299956639812)+1))>r+1)?i:e0&&(f=et(f,im(r))),rt(o,f))}function is(n,t){var e,r,i,o,f,u,c,s,h,a,b,l,g;if(o=t.b,!((n.e>0?n.e:nP((n.b-1)*.3010299956639812)+1)-o<0||0==o||(r=n.q()-o)<=0)){if(n.b<54){l=r3(fl[c=r]),b=e0(r3(n.f),e4(c)),a=iI(g=r3(n.g),l,!1),tm(h=n4(g,l),oJ)&&(s=tv(e0(rU(nv(h,oJ)?eQ(h):h,1),l),oJ)?0:nv(e0(rU(nv(h,oJ)?eQ(h):h,1),l),oJ)?-1:1,a=eY(a,e4(it(1&nB(a),(tv(h,oJ)?0:nv(h,oJ)?-1:1)*(5+s),t.c))),tn(ri(nv(a,oJ)?eQ(a):a))>=t.b&&(a=nQ(a,oX),b=e0(b,oK))),n.f=eK(ri(b)),n.e=t.b,n.g=ri(a),n.b=eX(a),n.d=null;return}u=im(r),i=r4((n.d||(n.d=eP(n.g)),n.d),u),f=n.f-r,0!=i[1].r()&&(e=rt(eH(i[1]._()),u),0!=(e=it(+!!i[0].gb(0),i[1].r()*(5+e),t.c))&&rn(i,0,ix(i[0],eZ(e4(e)))),new nL(i[0]).q()>o&&(rn(i,0,ia(i[0],(rW(),fB))),--f)),n.f=eK(f),n.e=o,tO(n,i[0])}}function ih(n,t){var e,r,i,o,f,u,c,s,h,a;if(f=n.f,0==(c=t.f))return n;if(0==f)return t.cb();if((o=n.e)+(u=t.e)==2)return e=th(e4(n.b[0]),o4),r=th(e4(t.b[0]),o4),f<0&&(e=eQ(e)),c<0&&(r=eQ(r)),eZ(e0(e,r));if(-1==(i=o!=u?o>u?1:-1:eI(n.b,t.b,o)))a=-c,h=f==c?tJ(t.b,u,n.b,o):t4(t.b,u,n.b,o);else if(a=f,f==c){if(0==i)return rW(),fA;h=tJ(n.b,o,t.b,u)}else h=t4(n.b,o,t.b,u);return tZ(s=new to(a,h.length,h)),s}function ia(n,t){var e,r,i,o,f,u,c,s,h,a;if(0==t.f)throw new ni(ot);return(i=t.f,1==t.e&&1==t.b[0])?t.f>0?n:n.cb():(h=n.f,(s=n.e)+(r=t.e)==2)?(a=nQ(th(e4(n.b[0]),o4),th(e4(t.b[0]),o4)),h!=i&&(a=eQ(a)),eZ(a)):0==(e=s!=r?s>r?1:-1:eI(n.b,t.b,s))?h==i?fS:fx:-1==e?fA:(o=tU(up,{6:1},-1,f=s-r+1,1),u=h==i?1:-1,1==r?ii(o,n.b,s,t.b[0]):iL(o,f,n.b,s,t.b,r),tZ(c=new to(u,f,o)),c)}function ib(n,t,e,r,i){var o,f;if(o=eY(th(e4(t[0]),o4),th(e4(r[0]),o4)),n[0]=nB(o),o=rK(o,32),e>=i){for(f=1;f0){if(i0?f=tQ(f,eo(i)):i<0&&(o=tQ(o,eo(-i))),id(o,f,e,r)}function iw(n,t){var e,r,i,o,f,u,c;if(r=ew(t),(i=ew(n))>=t.e)return t;if(f=tU(up,{6:1},-1,u=t.e,1),rt.ab()?(c=eN(s),o=eN(t),i=tv(e0(rU(nv(c,oJ)?eQ(c):c,1),nv(o,oJ)?eQ(o):o),oJ)?0:nv(e0(rU(nv(c,oJ)?eQ(c):c,1),nv(o,oJ)?eQ(o):o),oJ)?-1:1):i=rt(eH(s._()),t._()),0!=(i=it(+!!u.gb(0),h*(5+i),r))){if(54>u.ab())return eL(eY(eN(u),e4(i)),e);u=ix(u,eZ(e4(i)))}return new tS(u,e)}function ip(n){var t,e,r,i,o,f;return null!=n.i?n.i:n.b<32?(n.i=function(n,t){var e,r,i,o,f,u,c,s,h,a,b,l,g,w,d,_,v,m;if(iM(),(f=nv(n,oJ))&&(n=eQ(n)),tv(n,oJ))switch(t){case 0:return iW;case 1:return iX;case 2:return iY;case 3:return i0;case 4:return i1;case 5:return i2;case 6:return i3;default:return s=new W,t<0?s.b.b+=i4:s.b.b+=i6,b=s.b,l=-0x80000000==t?"2147483648":iV+-t,b.b+=l,s.b.b}c=tU(uK,{6:1},-1,19,1),e=18,a=n;do u=a,a=nQ(a,oX),c[--e]=65535&nB(eY(o1,e0(u,iR(a,oX))));while(tm(a,oJ))if(r=e0(e0(e0(o0,e4(e)),e4(t)),oK),0==t)return f&&(c[--e]=45),tP(c,e,18-e);if(t>0&&rN(r,oG)){if(rN(r,oJ)){for(o=17,i=e+nB(r);o>=i;--o)c[o+1]=c[o];return c[++i]=46,f&&(c[--e]=45),tP(c,e,18-e+1)}for(o=2;nv(e4(o),eY(eQ(r),oK));++o)c[--e]=48;return c[--e]=46,c[--e]=48,f&&(c[--e]=45),tP(c,e,18-e)}return(h=e+1,s=new Z,f&&(s.b.b+=iJ),18-h>=1)?(tE(s,c[e]),s.b.b+=iK,g=s.b,w=tP(c,e+1,18-e-1),g.b+=w):(d=s.b,_=tP(c,e,18-e),d.b+=_),s.b.b+=oc,rA(r,oJ)&&(s.b.b+=iz),v=s.b,m=iV+r6(r),v.b+=m,s.b.b}(r3(n.g),eo(n.f)),n.i):(i=iF((n.d||(n.d=eP(n.g)),n.d),0),0==n.f)?i:(t=0>(n.d||(n.d=eP(n.g)),n.d).r()?2:1,e=i.length,r=-n.f+e-t,f=(o=new W).b,f.b+=i,n.f>0&&r>=-6?r>=0?n8(o,e-eo(n.f),iK):(te(o.b,t-1,t-1,iZ),n8(o,t+1,tP(fh,0,-eo(r)-1))):(e-t>=1&&(te(o.b,t,t,iK),++e),te(o.b,e,e,oc),r>0&&n8(o,++e,iz),n8(o,++e,iV+r6(r3(r)))),n.i=o.b.b,n.i)}function i_(n,t){var e,r,i,o,f,u;if(i=ew(n),o=ew(t),i>=t.e)return n;if(r=o>i?o:i,0==(e=o>i?-t.b[r]&~n.b[r]:o0){i[o]=f;break}i[o]=f.substring(0,c.index),f=f.substring(c.index+c[0].length,f.length),r.lastIndex=0,u==f&&(i[o]=f.substring(0,1),f=f.substring(1)),u=f,o++}if(0==e&&n.length>0){for(var s=i.length;s>0&&i[s-1]==iV;)--s;s1e6)throw new ni("power of ten too big");if(n<=0x7fffffff)return fV[1].db(t).eb(t);for(i=r=fV[1].db(0x7fffffff),e=r3(n-0x7fffffff),t=eo(n%0x7fffffff);rA(e,o6);)i=et(i,r),e=e0(e,o6);for(i=(i=et(i,fV[1].db(t))).eb(0x7fffffff),e=r3(n-0x7fffffff);rA(e,o6);)i=i.eb(0x7fffffff),e=e0(e,o6);return i.eb(t)}function iy(){var n,t;c&&rM("com.iriscouch.gwtapp.client.BigDecimalApp"),nZ(new K),nY(new j),nX(new F),tk(new H),c&&rM("com.google.gwt.user.client.UserAgentAsserter"),tF(oF,n=-1!=(t=r.userAgent.toLowerCase()).indexOf(oT)?oT:-1!=t.indexOf("webkit")||function(){if(-1!=t.indexOf("chromeframe"))return!0;if(typeof e.ActiveXObject!=o$)try{var n=new ActiveXObject("ChromeTab.ChromeFrame");if(n)return n.registerBhoIfNeeded(),!0}catch(n){}return!1}()?oF:-1!=t.indexOf(oD)&&u.documentMode>=9?"ie9":-1!=t.indexOf(oD)&&u.documentMode>=8?"ie8":!function(){var n=/msie ([0-9]+)\.([0-9]+)/.exec(t);if(n&&3==n.length)return 1e3*parseInt(n[1])+parseInt(n[2])>=6e3}()?-1!=t.indexOf("gecko")?"gecko1_8":"unknown":"ie6")||f.alert("ERROR: Possible problem with your *.gwt.xml module file.\nThe compile time user.agent value (safari) does not match the runtime user.agent value ("+n+"). Expect more errors.\n"),c&&rM("com.google.gwt.user.client.DocumentModeAsserter"),function(){var n,t,e;for(e=0,t=u.compatMode,n=tK(uI,{6:1},1,[oo]);e>5,this.b=tU(up,{6:1},-1,this.e,1);f=0x80000000&&(r-=0x100000000),r));this.b[this.e-1]>>>=31&-n,tZ(this)}}function ix(n,t){var e,r,i,o,f,u,c,s,h,a,b,l;if(f=n.f,c=t.f,0==f)return t;if(0==c)return n;if((o=n.e)+(u=t.e)==2)return(e=th(e4(n.b[0]),o4),r=th(e4(t.b[0]),o4),f==c)?(l=nB(s=eY(e,r)),0==(b=nB(rP(s,32)))?new tV(f,l):new to(f,2,tK(up,{6:1},-1,[l,b]))):eZ(f<0?e0(r,e):e0(e,r));if(f==c)a=f,h=o>=u?t4(n.b,o,t.b,u):t4(t.b,u,n.b,o);else{if(0==(i=o!=u?o>u?1:-1:eI(n.b,t.b,o)))return rW(),fA;1==i?(a=f,h=tJ(n.b,o,t.b,u)):(a=c,h=tJ(t.b,u,n.b,o))}return tZ(s=new to(a,h.length,h)),s}function iS(n){var t,e,r,i;if(rF(),null==n)throw new nc("null string");if((t=t5(n)).length<27||t.length>45)throw new nf(oM);for(r=0;rue.length)throw new q;if(o=null,i=null,67==r[0]?(i=fX,o=f5):68==r[0]?(i=fY,o=f9):70==r[0]?(i=f0,o=f8):72==r[0]?e>6&&(68==r[5]?(i=f1,o=f7):69==r[5]?(i=f2,o=un):85==r[5]&&(i=f3,o=ut)):85==r[0]&&(80==r[1]?(i=f4,o=ur):78==r[1]&&(i=f6,o=ue)),i&&e==o.length){for(t=1;tl||r+i>s)throw new G;if(((1&a.c)==0||(4&a.c)!=0)&&b!=c){if(h=tT(n,11),o=tT(e,11),nj(n)===nj(e)&&tr;)rn(o,u,h[--t]);else for(u=r+i;rh.r()&&(s=s.cb()),c=eK(e+(o>f?o:f)),new tS(s=(i=o-f)>0?(il(),i>19!=0&&(t=eQ(t),c=!0),f=((b=(h=t).l)&b-1)!=0||((l=h.m)&l-1)!=0||((a=h.h)&a-1)!=0||0==a&&0==l&&0==b?-1:0==a&&0==l&&0!=b?es(b):0==a&&0!=l&&0==b?es(l)+22:0!=a&&0==l&&0==b?es(a)+44:-1,o=!1,i=!1,r=!1,524288==n.h&&0==n.m&&0==n.l){if(i=!0,o=!0,-1!=f)return u=rK(n,f),c&&eT(u),e&&(o7=ty(0,0,0)),u;n=nT((eS(),fo)),r=!0,c=!c}else~~n.h>>19!=0&&(o=!0,n=eQ(n),r=!0,c=!c);return -1!=f?(g=n,w=c,d=o,_=rK(g,f),w&&eT(_),e&&(v=g,f<=22?(m=v.l&(1<=0&&((g=n.h-f.h)<0||(b=n.l-f.l,(g+=~~(l=n.m-f.m+(~~b>>22))>>22)<0||(n.l=4194303&b,n.m=4194303&l,n.h=1048575&g,0))||(c<22?u.l|=1<>>1,f.m=~~h>>>1|(1&a)<<21,f.l=~~s>>>1|(1&h)<<21,--c;return e&&eT(u),o&&(r?(o7=eQ(n),i&&(o7=e0(o7,(eS(),fu)))):o7=ty(n.l,n.m,n.h)),u}(r?n:ty(n.l,n.m,n.h),t,c,o,i,e):(e&&(o7=o?eQ(n):ty(n.l,n.m,n.h)),ty(0,0,0))}function iE(n){var t=[];for(var e in n){var r=typeof n[e];r!=oQ?t[t.length]=r:n[e]instanceof Array?t[t.length]=oS:f&&f.bigdecimal&&f.bigdecimal.BigInteger&&n[e]instanceof f.bigdecimal.BigInteger?t[t.length]=on:f&&f.bigdecimal&&f.bigdecimal.BigDecimal&&n[e]instanceof f.bigdecimal.BigDecimal?t[t.length]=i9:f&&f.bigdecimal&&f.bigdecimal.RoundingMode&&n[e]instanceof f.bigdecimal.RoundingMode?t[t.length]=ow:f&&f.bigdecimal&&f.bigdecimal.MathContext&&n[e]instanceof f.bigdecimal.MathContext?t[t.length]=ob:t[t.length]=oQ}return t.join(iq)}function iR(n,t){var e,r,i,o,f,u,c,s,h,a,b,l,g,w,d,_,v,m;return e=8191&n.l,r=~~n.l>>13|(15&n.m)<<9,i=~~n.m>>4&8191,o=~~n.m>>17|(255&n.h)<<5,f=~~(1048320&n.h)>>8,u=8191&t.l,c=~~t.l>>13|(15&t.m)<<9,s=~~t.m>>4&8191,h=~~t.m>>17|(255&t.h)<<5,a=~~(1048320&t.h)>>8,w=e*u,d=r*u,_=i*u,v=o*u,m=f*u,0!=c&&(d+=e*c,_+=r*c,v+=i*c,m+=o*c),0!=s&&(_+=e*s,v+=r*s,m+=i*s),0!=h&&(v+=e*h,m+=r*h),0!=a&&(m+=e*a),b=(4194303&w)+((511&d)<<13),l=(~~w>>22)+(~~d>>9)+((262143&_)<<4)+((31&v)<<17),g=(~~_>>18)+(~~v>>5)+((4095&m)<<8),l+=~~b>>22,b&=4194303,g+=~~l>>22,ty(b,l&=4194303,g&=1048575)}function iO(n,t,e){var r,i,o,f,u,c,s,h;if(h=ri(eY(e4(e.b),oW))+(t.e>0?t.e:nP((t.b-1)*.3010299956639812)+1)-(n.e>0?n.e:nP((n.b-1)*.3010299956639812)+1),c=i=n.f-t.f,o=1,u=fm.length-1,s=tK(u9,{6:1},17,[(n.d||(n.d=eP(n.g)),n.d)]),0==e.b||0==n.b&&-1!=n.g||0==t.b&&-1!=t.g)return iN(n,t);if(h>0&&(rn(s,0,et((n.d||(n.d=eP(n.g)),n.d),im(h))),c+=h),f=(s=r4(s[0],(t.d||(t.d=eP(t.g)),t.d)))[0],0!=s[1].r())r=rt(eH(s[1]),(t.d||(t.d=eP(t.g)),t.d)),f=ix(et(f,(rW(),fB)),eZ(e4(s[0].r()*(5+r)))),++c;else for(;!f.gb(0);)if(0==(s=r4(f,fm[o]))[1].r()&&c-o>=i)c-=o,o=0)return n;return 0==e?n_(n.b,t.b)+1<54?new ti(n.g-t.g,n.f):new tM(ih((n.d||(n.d=eP(n.g)),n.d),(t.d||(t.d=eP(t.g)),t.d)),n.f):e>0?e0?t.e:nP((t.b-1)*.3010299956639812)+1)+o>(n.e>0?n.e:nP((n.b-1)*.3010299956639812)+1)+1||0==n.b&&-1!=n.g)rW(),r=fA;else if(0==o)r=ia((n.d||(n.d=eP(n.g)),n.d),(t.d||(t.d=eP(t.g)),t.d));else if(o>0)f=im(o),r=ia((n.d||(n.d=eP(n.g)),n.d),et((t.d||(t.d=eP(t.g)),t.d),f)),r=et(r,f);else{for(f=im(-o),r=ia(et((n.d||(n.d=eP(n.g)),n.d),f),(t.d||(t.d=eP(t.g)),t.d));!r.gb(0);)if(0==(u=r4(r,fm[e]))[1].r()&&c-e>=o)c-=e,e=0;){if(w[a]==c)s=-1;else if(s=nB(m=r2(eY(rU(th(e4(w[a]),o4),32),th(e4(w[a-1]),o4)),c)),v=nB(rK(m,32)),0!=s){_=!1,++s;do{if(--s,_)break;l=iR(th(e4(s),o4),th(e4(d[o-2]),o4)),y=eY(rU(e4(v),32),th(e4(w[a-2]),o4)),32>r$(nB(rP(g=eY(th(e4(v),o4),th(e4(c),o4)),32)))?_=!0:v=nB(g)}while(rA(tb(l,oV),tb(y,oV)))}if(0!=s&&0!=function(n,t,e,r,i){var o,f,u;for(u=0,o=oJ,f=oJ;u0)rn(b,0,ia((n.d||(n.d=eP(n.g)),n.d),et((t.d||(t.d=eP(t.g)),t.d),im(o)))),a=o<(h-l+1>0?h-l+1:0)?o:h-l+1>0?h-l+1:0,rn(b,0,et(b[0],im(a)));else if(f=-o<(h-i>0?h-i:0)?-o:h-i>0?h-i:0,b=r4(et((n.d||(n.d=eP(n.g)),n.d),im(f)),(t.d||(t.d=eP(t.g)),t.d)),a+=f,f=-a,0!=b[1].r()&&f>0&&(0==(r=new nL(b[1]).q()+f-t.q())&&(rn(b,1,ia(et(b[1],im(f)),(t.d||(t.d=eP(t.g)),t.d))),r=(d=b[1].r())<0?-d:d),r>0))throw new ni(ou);if(0==b[0].r())return eU(o);for(w=b[0],g=(c=new nL(b[0])).q(),u=1;!w.gb(0);)if(0==(b=r4(w,fm[u]))[1].r()&&(g-u>=h||a-u>=o))g-=u,a-=u,uh)throw new ni(ou);return c.f=eK(a),tO(c,w),c}function ij(){var n;for(n=0,ij=g,fJ=tK(up,{6:1},-1,[0,0,1854,1233,927,747,627,543,480,431,393,361,335,314,295,279,265,253,242,232,223,216,181,169,158,150,145,140,136,132,127,123,119,114,110,105,101,96,92,87,83,78,73,69,64,59,54,49,44,38,32,26,1]),fK=tU(u9,{6:1},17,(fW=tK(up,{6:1},-1,[2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149,151,157,163,167,173,179,181,191,193,197,199,211,223,227,229,233,239,241,251,257,263,269,271,277,281,283,293,307,311,313,317,331,337,347,349,353,359,367,373,379,383,389,397,401,409,419,421,431,433,439,443,449,457,461,463,467,479,487,491,499,503,509,521,523,541,547,557,563,569,571,577,587,593,599,601,607,613,617,619,631,641,643,647,653,659,661,673,677,683,691,701,709,719,727,733,739,743,751,757,761,769,773,787,797,809,811,821,823,827,829,839,853,857,859,863,877,881,883,887,907,911,919,929,937,941,947,953,967,971,977,983,991,997,1009,1013,1019,1021])).length,0);n=0;--c)w=function(n){var t,e,r;return rN(n,oJ)?(e=nQ(n,o3),r=n4(n,o3)):(e=nQ(t=rP(n,1),o2),r=eY(rU(r=n4(t,o2),1),th(n,oK))),ta(rU(r,32),th(e,o4))}(eY(rU(y,32),th(e4(S[c]),o4))),S[c]=nB(w),y=e4(nB(rK(w,32)));d=nB(y),g=e;do v[--e]=48+d%10&65535;while(0!=(d=~~(d/10))&&0!=e)for(u=0,r=9-g+e;u0;++u)v[--e]=48;for(h=M-1;0==S[h];--h)if(0==h)break n;M=h+1}for(;48==v[e];)++e}if(a=C<0,o=_-e-t-1,0==t)return a&&(v[--e]=45),tP(v,e,_-e);if(t>0&&o>=-6){if(o>=0){for(s=e+o,h=_-1;h>=s;--h)v[h+1]=v[h];return v[++s]=46,a&&(v[--e]=45),tP(v,e,_-e+1)}for(h=2;h<-o+1;++h)v[--e]=48;return v[--e]=46,v[--e]=48,a&&(v[--e]=45),tP(v,e,_-e)}return(x=e+1,m=new Z,a&&(m.b.b+=iJ),_-x>=1)?(tE(m,v[e]),m.b.b+=iK,I=m.b,E=tP(v,e+1,_-e-1),I.b+=E):(R=m.b,O=tP(v,e,_-e),R.b+=O),m.b.b+=oc,o>0&&(m.b.b+=iz),D=m.b,k=iV+o,D.b+=k,m.b.b}c&&c({moduleName:"gwtapp",sessionId:s,subSystem:"startup",evtGroup:"moduleStartup",millis:new Date().getTime(),type:"moduleEvalStart"});var iH,i$,iV="",iq=" ",iG='"',iz="+",iJ="-",iK=".",iW="0",iZ="0.",iX="0.0",iY="0.00",i0="0.000",i1="0.0000",i2="0.00000",i3="0.000000",i6="0E",i4="0E+",i5=":",i9="BigDecimal",i8="BigDecimal MathContext",i7="BigDecimal;",on="BigInteger",ot="BigInteger divide by zero",oe="BigInteger not invertible.",or="BigInteger: modulus not positive",oi="BigInteger;",oo="CSS1Compat",of="Division by zero",ou="Division impossible",oc="E",os='For input string: "',oh="Infinite or NaN",oa="Invalid Operation",ob="MathContext",ol="Negative bit address",og="Rounding necessary",ow="RoundingMode",od="RoundingMode;",op="String",o_="[Lcom.iriscouch.gwtapp.client.",ov="[Ljava.lang.",om="[Ljava.math.",oy="\\.",oC="__gwtex_wrap",ox="anonymous",oS="array",oM="bad string format",oB="bigdecimal",oA="com.google.gwt.core.client.",oN="com.google.gwt.core.client.impl.",oI="com.iriscouch.gwtapp.client.",oE="java.lang.",oR="java.math.",oO="java.util.",oD="msie",ok="null",oL="number",oU="number MathContext",oP="number number",oQ="object",oT="opera",oj="org.timepedia.exporter.client.",oF="safari",oH="string",o$="undefined",oV={l:0,m:0,h:524288},oq={l:0,m:4193280,h:1048575},oG={l:4194298,m:4194303,h:1048575},oz={l:4194303,m:4194303,h:1048575},oJ={l:0,m:0,h:0},oK={l:1,m:0,h:0},oW={l:2,m:0,h:0},oZ={l:5,m:0,h:0},oX={l:10,m:0,h:0},oY={l:11,m:0,h:0},o0={l:18,m:0,h:0},o1={l:48,m:0,h:0},o2={l:877824,m:119,h:0},o3={l:1755648,m:238,h:0},o6={l:4194303,m:511,h:0},o4={l:4194303,m:1023,h:0},o5={l:0,m:1024,h:0};(i$=h.prototype={}).eQ=function(n){return this===n},i$.gC=function(){return us},i$.hC=function(){return nF(this)},i$.tS=function(){return this.gC().d+"@"+function(n){var t,e,r;if(t=tU(uK,{6:1},-1,8,1),rv(),e=fO,r=7,n>=0)for(;n>15;)t[r--]=e[15&n],n>>=4;else for(;r>0;)t[r--]=e[15&n],n>>=4;return t[r]=e[15&n],t6(t,r,8)}(this.hC())},i$.toString=function(){return this.tS()},i$.tM=g,i$.cM={},(i$=a.prototype=new h).gC=function(){return ua},i$.j=function(){return this.f},i$.tS=function(){var n,t;return n=this.gC().d,null!=(t=this.j())?n+": "+t:n},i$.cM={6:1,15:1},i$.f=null,(i$=b.prototype=new a).gC=function(){return ub},i$.cM={6:1,15:1},(i$=nr.prototype=l.prototype=new b).gC=function(){return ul},i$.cM={6:1,12:1,15:1},(i$=n1.prototype=(function(){}).prototype=new l).gC=function(){return ug},i$.j=function(){var n,t,e,r,i;return null==this.d&&(this.e=null==(e=this.c)?ok:tt(e)?null==(r=t8(e))?null:r.name:nz(e,1)?op:(nH(e)?e.gC():uw).d,this.b=tt(n=this.c)?null==(i=t8(n))?null:i.message:n+iV,this.d="("+this.e+"): "+this.b+(tt(t=this.c)?function(n){var t=iV;try{for(var e in n)if("name"!=e&&"message"!=e&&"toString"!=e)try{t+="\n "+e+": "+n[e]}catch(n){}}catch(n){}return t}(t8(t)):iV)),this.d},i$.cM={6:1,12:1,15:1},i$.b=null,i$.c=null,i$.d=null,i$.e=null,(i$=w.prototype=new h).gC=function(){return ud};var o9=0,o8=0;(i$=d.prototype=(function(){}).prototype=new w).gC=function(){return um},i$.b=null,i$.c=null,(i$=_.prototype=v.prototype=new h).k=function(){for(var n={},t=[],e=arguments.callee.caller.caller;e;){var r,i,o=this.n(e.toString());t.push(o);var f=i5+o,u=n[f];if(u){for(r=0,i=u.length;r0?i:ox},i$.gC=function(){return uy},i$.o=function(n){return[]},(i$=m.prototype=new v).k=function(){return tg(this.o(td()),this.p())},i$.gC=function(){return uS},i$.o=function(n){return eO(this,n)},i$.p=function(){return 2},(i$=y.prototype=(function(){}).prototype=new m).k=function(){return eh(this)},i$.n=function(n){var t,e;return 0==n.length||(0==(e=e8(n)).indexOf("at ")&&(e=n7(e,3)),-1==(t=e.indexOf("["))&&(t=e.indexOf("(")),-1==t)?ox:(-1!=(t=(e=e8(e.substr(0,t-0))).indexOf("."))&&(e=n7(e,t+1)),e.length>0?e:ox)},i$.gC=function(){return uM},i$.o=function(n){return t3(this,n)},i$.p=function(){return 3},(i$=C.prototype=new h).gC=function(){return uB},(i$=x.prototype=(function(){}).prototype=new C).gC=function(){return uA},i$.b=iV,(i$=S.prototype=(function(){}).prototype=new h).gC=function(){return this.aC},i$.aC=null,i$.qI=0;var o7=null,fn=null;(i$=M.prototype=(function(){}).prototype=new h).gC=function(){return uE},i$.cM={2:1},(i$=B.prototype=new h).gC=function(){return uO},i$.cM={6:1,10:1};var ft=null;(i$=ef.prototype=ti.prototype=tM.prototype=tN.prototype=X.prototype=e_.prototype=eu.prototype=tA.prototype=tB.prototype=eJ.prototype=n3.prototype=n6.prototype=tr.prototype=tS.prototype=nL.prototype=A.prototype=new B).eQ=function(n){return e2(this,n)},i$.gC=function(){return uD},i$.hC=function(){return rm(this)},i$.q=function(){return rj(this)},i$.r=function(){return ed(this)},i$.tS=function(){return ip(this)},i$.cM={6:1,8:1,10:1,16:1},i$.b=0,i$.c=0,i$.d=null,i$.e=0,i$.f=0,i$.g=0,i$.i=null;var fe,fr,fi,fo,ff,fu,fc,fs,fh,fa,fb,fl,fg,fw,fd,fp,f_,fv=null,fm=null,fy=null;(i$=nU.prototype=nw.prototype=(function(){}).prototype=new A).s=function(n){var t,e,r;if((e=iE(n))==iV)t=0>ed(this)?ep(this):this;else if(e==ob)t=0>(r=t7(this,new iS(n[0].toString()))).r()?ep(r):r;else throw new nr("Unknown call signature for interim = super.abs: "+e);return new nU(t)},i$.t=function(n){var t,e;if((e=iE(n))==i9)t=r1(this,new X(n[0].toString()));else if(e==i8)t=function(n,t,e){var r,i,o,f;if(r=n.f-t.f,0==t.b&&-1!=t.g||0==n.b&&-1!=n.g||0==e.b)return t7(r1(n,t),e);if((n.e>0?n.e:nP((n.b-1)*.3010299956639812)+1)0?t.e:nP((t.b-1)*.3010299956639812)+1)<-r-1))return t7(r1(n,t),e);i=n,f=t}return e.b>=(i.e>0?i.e:nP((i.b-1)*.3010299956639812)+1)?t7(r1(n,t),e):t7(i=new tM((o=i.r())==f.r()?ix(rZ((i.d||(i.d=eP(i.g)),i.d),10),eZ(e4(o))):ix(rZ(ih((i.d||(i.d=eP(i.g)),i.d),eZ(e4(o))),10),eZ(e4(9*o))),i.f+1),e)}(this,new X(n[0].toString()),new iS(n[1].toString()));else throw new nr("Unknown call signature for interim = super.add: "+e);return new nU(t)},i$.u=function(){return~~(nB(en(this,8))<<24)>>24},i$.v=function(n){return ic(this,n)},i$.w=function(n){var t,e,r,i;if((i=iE(n))==i9)e=el(this,new X(n[0].toString()));else if(i==i8)e=eg(this,new X(n[0].toString()),new iS(n[1].toString()));else throw new nr("Unknown call signature for interim = super.divideAndRemainder: "+i);for(t=0,r=tU(uL,{6:1},3,e.length,0);t129?n*=1/0:n=t9(ip(this)),n},i$.gC=function(){return uk},i$.hC=function(){return rm(this)},i$.B=function(){var n;return this.f<=-32||this.f>(this.e>0?this.e:nP((this.b-1)*.3010299956639812)+1)?0:(n=new n2(0==this.f||0==this.b&&-1!=this.g?(this.d||(this.d=eP(this.g)),this.d):this.f<0?et((this.d||(this.d=eP(this.g)),this.d),im(-this.f)):ia((this.d||(this.d=eP(this.g)),this.d),im(this.f)))).f*n.b[0]},i$.C=function(){return nB(en(this,32))},i$.D=function(){return nB(en(this,32))},i$.E=function(){return t9(ip(this))},i$.F=function(n){return new nU(ic(this,n)>=0?this:n)},i$.G=function(n){return new nU(0>=ic(this,n)?this:n)},i$.H=function(n){return new nU(rJ(this,this.f+n))},i$.I=function(n){return new nU(rJ(this,this.f-n))},i$.J=function(n){var t,e;if((e=iE(n))==i9)t=rk(this,new X(n[0].toString()));else if(e==i8)t=tl(this,new X(n[0].toString()),new iS(n[1].toString()));else throw new nr("Unknown call signature for interim = super.multiply: "+e);return new nU(t)},i$.K=function(n){var t,e;if((e=iE(n))==iV)t=ep(this);else if(e==ob)t=ep(t7(this,new iS(n[0].toString())));else throw new nr("Unknown call signature for interim = super.negate: "+e);return new nU(t)},i$.L=function(n){var t,e;if((e=iE(n))==iV)t=this;else if(e==ob)t=t7(this,new iS(n[0].toString()));else throw new nr("Unknown call signature for interim = super.plus: "+e);return new nU(t)},i$.M=function(n){var t,e;if((e=iE(n))==oL)t=rd(this,n[0]);else if(e==oU)t=function(n,t,e){var r,i,o,f,u,c;if(o=t<0?-t:t,f=e.b,i=eo(tn(o))+1,u=e,0==t||0==n.b&&-1!=n.g&&t>0)return rd(n,t);if(o>0x3b9ac9ff||0==f&&t<0||f>0&&i>f)throw new ni(oa);for(f>0&&(u=new eW(f+i+1,e.c)),r=t7(n,u),c=~~function(n){var t;if(n<0)return -0x80000000;if(0==n)return 0;for(t=0x40000000;(t&n)==0;t>>=1);return t}(o)>>1;c>0;)r=tl(r,r,u),(o&c)==c&&(r=tl(r,n,u)),c>>=1;return t<0&&(r=iO(fw,r,u)),is(r,e),r}(this,n[0],new iS(n[1].toString()));else throw new nr("Unknown call signature for interim = super.pow: "+e);return new nU(t)},i$.q=function(){return rj(this)},i$.N=function(n){var t,e;if((e=iE(n))==i9)t=el(this,new X(n[0].toString()))[1];else if(e==i8)t=eg(this,new X(n[0].toString()),new iS(n[1].toString()))[1];else throw new nr("Unknown call signature for interim = super.remainder: "+e);return new nU(t)},i$.O=function(n){return new nU(t7(this,new iS(ea(n.b))))},i$.P=function(){return eo(this.f)},i$.Q=function(n){var t;return new nU((t=this.f-n,this.b<54)?0==this.g?eU(t):new ti(this.g,eK(t)):new tS((this.d||(this.d=eP(this.g)),this.d),eK(t)))},i$.R=function(n){var t,e;if((e=iE(n))==oL)t=r0(this,n[0],(iA(),f6));else if(e==oP)t=r0(this,n[0],rQ(n[1]));else if("number RoundingMode"==e)t=r0(this,n[0],ts(n[1].toString()));else throw new nr("Unknown call signature for interim = super.setScale: "+e);return new nU(t)},i$.S=function(){return~~(nB(en(this,16))<<16)>>16},i$.r=function(){return ed(this)},i$.T=function(){return new nU(function(n){var t,e,r,i,o;if(t=1,e=fm.length-1,r=n.f,0==n.b&&-1!=n.g)return new X(iW);for(n.d||(n.d=eP(n.g)),o=n.d;!o.gb(0);)if(0==(i=r4(o,fm[t]))[1].r())r-=t,t0?r.e:nP((r.b-1)*.3010299956639812)+1)0?this.e:nP((this.b-1)*.3010299956639812)+1)?t7(new tM((f=ed(this))!=r.r()?ix(rZ((this.d||(this.d=eP(this.g)),this.d),10),eZ(e4(f))):ix(rZ(ih((this.d||(this.d=eP(this.g)),this.d),eZ(e4(f))),10),eZ(e4(9*f))),this.f+1),i):t7(iD(this,r),i);else throw new nr("Unknown call signature for interim = super.subtract: "+e);return new nU(t)},i$.V=function(){return new n2(0==this.f||0==this.b&&-1!=this.g?(this.d||(this.d=eP(this.g)),this.d):this.f<0?et((this.d||(this.d=eP(this.g)),this.d),im(-this.f)):ia((this.d||(this.d=eP(this.g)),this.d),im(this.f)))},i$.W=function(){return new n2(r5(this))},i$.X=function(){return function(n){var t,e,r,i,o,f,u,c;if(f=iF((n.d||(n.d=eP(n.g)),n.d),0),0==n.f)return f;if(t=0>(n.d||(n.d=eP(n.g)),n.d).r()?2:1,r=f.length,i=-n.f+r-t,c=new nq(f),n.f>0&&i>=-6)i>=0?n8(c,r-eo(n.f),iK):(te(c.b,t-1,t-1,iZ),n8(c,t+1,tP(fh,0,-eo(i)-1)));else{if(e=r-t,0!=(u=eo(i%3))&&(0==(n.d||(n.d=eP(n.g)),n.d).r()?i+=u=u<0?-u:3-u:(i-=u=u<0?u+3:u,t+=u),e<3))for(o=u-e;o>0;--o)n8(c,r++,iW);r-t>=1&&(te(c.b,t,t,iK),++r),0!=i&&(te(c.b,r,r,oc),i>0&&n8(c,++r,iz),n8(c,++r,iV+r6(r3(i))))}return c.b.b}(this)},i$.Y=function(){return function(n){var t,e,r,i,o,f;if(r=iF((n.d||(n.d=eP(n.g)),n.d),0),0==n.f||0==n.b&&-1!=n.g&&n.f<0)return r;if(t=+(0>ed(n)),e=n.f,i=new Z(r.length+1+((o=eo(n.f))<0?-o:o)),1==t&&(i.b.b+=iJ),n.f>0){if((e-=r.length-t)>=0){for(i.b.b+=iZ;e>fh.length;e-=fh.length)tG(i,fh);n9(i,fh,eo(e)),nE(i,n7(r,t))}else nE(i,(f=eo(e=t-e),r.substr(t,f-t))),i.b.b+=iK,nE(i,n7(r,eo(e)))}else{for(nE(i,n7(r,t));e<-fh.length;e+=fh.length)tG(i,fh);n9(i,fh,eo(-e))}return i.b.b}(this)},i$.tS=function(){return ip(this)},i$.Z=function(){return new nU(new ti(1,this.f))},i$.$=function(){return new n2((this.d||(this.d=eP(this.g)),this.d))},i$.cM={3:1,6:1,8:1,10:1,16:1,24:1},(i$=H.prototype=(function(){}).prototype=new h).gC=function(){return uU};var fC=!1;(i$=rf.prototype=ro.prototype=to.prototype=e9.prototype=tV.prototype=ra.prototype=nG.prototype=iC.prototype=N.prototype=new B)._=function(){return this.f<0?new to(1,this.e,this.b):this},i$.ab=function(){return eq(this)},i$.eQ=function(n){return eV(this,n)},i$.gC=function(){return uP},i$.bb=function(){return t1(this)},i$.hC=function(){return ek(this)},i$.cb=function(){return 0==this.f?this:new to(-this.f,this.e,this.b)},i$.db=function(n){return rL(this,n)},i$.eb=function(n){return tY(this,n)},i$.fb=function(n){return t0(this,n)},i$.r=function(){return this.f},i$.gb=function(n){return rT(this,n)},i$.tS=function(){return iF(this,0)},i$.cM={6:1,8:1,10:1,17:1},i$.b=null,i$.c=-2,i$.d=0,i$.e=0,i$.f=0;var fx,fS,fM,fB,fA,fN=null;(i$=n2.prototype=nD.prototype=nk.prototype=(function(){}).prototype=new N)._=function(){return new n2(this.f<0?new to(1,this.e,this.b):this)},i$.hb=function(n){return new n2(ix(this,n))},i$.ib=function(n){return new n2(0==n.f||0==this.f?(rW(),fA):eV(n,(rW(),fx))?this:eV(this,fx)?n:this.f>0?n.f>0?function(n,t){var e,r,i,o;if(i=np(n.e,t.e),(e=n_(ew(n),ew(t)))>=i)return rW(),fA;for(r=tU(up,{6:1},-1,i,1);e0?rz(n,this):this.e>n.e?i_(this,n):i_(n,this))},i$.jb=function(n){return new n2(0==n.f?this:0==this.f?(rW(),fA):eV(this,(rW(),fx))?new n2(r7(n)):eV(n,fx)?fA:this.f>0?n.f>0?function(n,t){var e,r,i,o;for(i=tU(up,{6:1},-1,n.e,1),r=np(n.e,t.e),e=ew(n);e=n.e)return n;for(o=tU(up,{6:1},-1,f=np(n.e,t.e),1),e=i;e0?function(n,t){var e,r,i,o,f,u,c;if(i=ew(n),o=ew(t),i>=t.e)return n;if(c=n_(n.e,t.e),r=i,o>i){for(u=tU(up,{6:1},-1,c,1),f=np(n.e,o);r=t.e)return rW(),fA;if(f=tU(up,{6:1},-1,u=t.e,1),e=i,i0)for(;e34028234663852886e22?1/0:n<-34028234663852886e22?-1/0:n},i$.qb=function(n){return new n2(rR(this,n))},i$.gC=function(){return uQ},i$.bb=function(){return t1(this)},i$.hC=function(){return ek(this)},i$.B=function(){return this.f*this.b[0]},i$.rb=function(n){return function(n,t){var e,r;if(ij(),t<=0||1==n.e&&2==n.b[0])return!0;if(!rT(n,0))return!1;if(1==n.e&&(-1024&n.b[0])==0)return function(n,t){var e,r,i,o;for(r=0,e=n.length-1;r<=e;)if((o=n[i=r+(~~(e-r)>>1)])t))return i;e=i-1}return-r-1}(fW,n.b[0])>=0;for(r=1;r>1)?r:1+(~~(t-1)>>1))}(new n2(this.f<0?new to(1,this.e,this.b):this),n)},i$.sb=function(){return t9(iF(this,0))},i$.tb=function(n){return new n2(1==rt(this,n)?this:n)},i$.ub=function(n){return new n2(-1==rt(this,n)?this:n)},i$.vb=function(n){return new n2(ee(this,n))},i$.wb=function(n){return new n2(rO(this,n))},i$.xb=function(n,t){return new n2(rG(this,n,t))},i$.yb=function(n){return new n2(et(this,n))},i$.cb=function(){return new n2(0==this.f?this:new to(-this.f,this.e,this.b))},i$.zb=function(){return new n2(function(n){if(n.f<0)throw new ni("start < 0: "+n);return function(n){var t,e,r,i,o,f,u,c;if(ij(),o=tU(up,{6:1},-1,fW.length,1),r=tU(uv,{6:1},-1,1024,2),1==n.e&&n.b[0]>=0&&n.b[0]=fW[e];++e);return fK[e]}for(u=new to(1,n.e,tU(up,{6:1},-1,n.e+1,1)),iB(n.b,0,u.b,0,n.e),rT(n,0)?tW(u,2):u.b[0]|=1,i=u.ab(),t=2;i0?n.f>0?this.e>n.e?rg(this,n):rg(n,this):iw(this,n):n.f>0?iw(n,this):ew(n)>ew(this)?rX(n,this):rX(this,n))},i$.db=function(n){return new n2(rL(this,n))},i$.Cb=function(n){return new n2(rH(this,n))},i$.Db=function(n){return new n2(rT(this,n)?this:ie(this,n))},i$.eb=function(n){return new n2(tY(this,n))},i$.fb=function(n){return new n2(t0(this,n))},i$.r=function(){return this.f},i$.Eb=function(n){return new n2(ih(this,n))},i$.gb=function(n){return rT(this,n)},i$.Fb=function(n){var t,e;if((e=iE(n))==iV)t=iF(this,0);else if(e==oL)t=function(n,t){var e,r,i,o,f,u,c,s,h,a,b,l,g,w,d,_,v;if(iM(),w=n.f,h=n.e,u=n.b,0==w)return iW;if(1==h)return v=th(e4(u[0]),o4),w<0&&(v=eQ(v)),function(n,t){var e,r,i,o;if(10==t||t<2||t>36)return iV+r6(n);if(e=tU(uK,{6:1},-1,65,1),rv(),r=fO,i=64,o=e4(t),rN(n,oJ)){for(;rN(n,o);)e[i--]=r[nB(n4(n,o))],n=iI(n,o,!1);e[i]=r[nB(n)]}else{for(;!rA(n,eQ(o));)e[i--]=r[nB(eQ(n4(n,o)))],n=iI(n,o,!1);e[i--]=r[nB(eQ(n))],e[i]=45}return t6(e,i,65)}(v,t);if(10==t||t<2||t>36)return iF(n,0);if(r=Math.log(t)/Math.log(2),g=tU(uK,{6:1},-1,l=eo(eq(new n2(n.f<0?new to(1,n.e,n.b):n))/r+ +(w<0))+1,1),o=l,16!=t)for(iB(u,0,d=tU(up,{6:1},-1,h,1),0,h),_=h,i=fP[t],e=fU[t-2];;){b=ii(d,d,_,e),a=o;do g[--o]=em(b%t,t);while(0!=(b=~~(b/t))&&0!=o)for(c=0,f=i-a+o;c0;++c)g[--o]=48;for(c=_-1;c>0&&0==d[c];--c);if(1==(_=c+1)&&0==d[0])break}else for(c=0;c0;++s)b=~~u[c]>>(s<<2)&15,g[--o]=em(b,16);for(;48==g[o];)++o;return -1==w&&(g[--o]=45),tP(g,o,l-o)}(this,n[0]);else throw new nr("Unknown call signature for result = super.toString: "+e);return t},i$.Gb=function(n){return new n2(0==n.f?this:0==this.f?n:eV(n,(rW(),fx))?new n2(r7(this)):eV(this,fx)?new n2(r7(n)):this.f>0?n.f>0?this.e>n.e?rw(this,n):rw(n,this):iU(this,n):n.f>0?iU(n,this):ew(n)>ew(this)?io(n,this):io(this,n))},i$.cM={4:1,6:1,8:1,10:1,17:1,24:1},(i$=F.prototype=(function(){}).prototype=new h).gC=function(){return uj};var fI=!1;(i$=nm.prototype=ny.prototype=(function(){}).prototype=new h).gC=function(){return uF},i$.Hb=function(){return this.b.b},i$.Ib=function(){return new nn(this.b.c)},i$.hC=function(){return nM(this.b)},i$.tS=function(){return ea(this.b)},i$.cM={24:1},i$.b=null,(i$=j.prototype=(function(){}).prototype=new h).gC=function(){return uH};var fE=!1;(i$=nn.prototype=nC.prototype=(function(){}).prototype=new h).gC=function(){return u$},i$.Jb=function(){return this.b.b},i$.tS=function(){return this.b.b},i$.cM={5:1,24:1},i$.b=null,(i$=K.prototype=(function(){}).prototype=new h).gC=function(){return uq};var fR=!1;(i$=ni.prototype=(function(){}).prototype=new l).gC=function(){return uG},i$.cM={6:1,12:1,15:1},(i$=no.prototype=V.prototype=(function(){}).prototype=new l).gC=function(){return uJ},i$.cM={6:1,12:1,15:1},(i$=I.prototype=(function(){}).prototype=new h).gC=function(){return uW},i$.tS=function(){return((2&this.c)!=0?"interface ":(1&this.c)!=0?iV:"class ")+this.d},i$.b=null,i$.c=0,i$.d=null,(i$=$.prototype=(function(){}).prototype=new l).gC=function(){return uZ},i$.cM={6:1,12:1,15:1},(i$=E.prototype=new h).eQ=function(n){return this===n},i$.gC=function(){return uh},i$.hC=function(){return nF(this)},i$.tS=function(){return this.b},i$.cM={6:1,8:1,9:1},i$.b=null,i$.c=0,(i$=nf.prototype=q.prototype=R.prototype=new l).gC=function(){return uX},i$.cM={6:1,12:1,15:1},(i$=nu.prototype=G.prototype=O.prototype=new l).gC=function(){return uz},i$.cM={6:1,12:1,15:1},(i$=nc.prototype=z.prototype=(function(){}).prototype=new l).gC=function(){return uY},i$.cM={6:1,12:1,15:1},(i$=nd.prototype=(function(){}).prototype=new R).gC=function(){return u0},i$.cM={6:1,12:1,15:1},(i$=tf.prototype=(function(){}).prototype=new h).gC=function(){return uC},i$.tS=function(){return this.b+iK+this.d+"(Unknown Source"+(this.c>=0?i5+this.c:iV)+")"},i$.cM={6:1,13:1},i$.b=null,i$.c=0,i$.d=null,(i$=String.prototype).eQ=function(n){return tF(this,n)},i$.gC=function(){return uN},i$.hC=function(){var n,t;return nK(),null!=(t=fk[n=i5+this])?t:(null==(t=fD[n])&&(t=function(n){var t,e,r,i;for(t=0,i=(r=n.length)-4,e=0;e newIdx ? (nextOldFiber = oldFiber, oldFiber = null) : nextOldFiber = oldFiber.sibling; var newFiber = updateSlot(returnFiber, oldFiber, step.value, lanes); @@ -6099,7 +6099,7 @@ } var reconcileChildFibers = ChildReconciler(!0), mountChildFibers = ChildReconciler(!1), NO_CONTEXT = {}, contextStackCursor$1 = createCursor(NO_CONTEXT), contextFiberStackCursor = createCursor(NO_CONTEXT), rootInstanceStackCursor = createCursor(NO_CONTEXT); function requiredContext(c) { - if (!(c !== NO_CONTEXT)) throw Error("Expected host context to exist. This error is likely caused by a bug in React. Please file an issue."); + if (c === NO_CONTEXT) throw Error("Expected host context to exist. This error is likely caused by a bug in React. Please file an issue."); return c; } function getRootHostContainer() { @@ -6434,7 +6434,7 @@ (workInProgressHook = nextWorkInProgressHook).next, currentHook = nextCurrentHook; else { // Clone from the current hook. - if (!(null !== nextCurrentHook)) throw Error("Rendered more hooks than during the previous render."); + if (null === nextCurrentHook) throw Error("Rendered more hooks than during the previous render."); var newHook = { memoizedState: (currentHook = nextCurrentHook).memoizedState, baseState: currentHook.baseState, @@ -6468,7 +6468,7 @@ } function updateReducer(reducer, initialArg, init) { var hook = updateWorkInProgressHook(), queue = hook.queue; - if (!(null !== queue)) throw Error("Should have a queue. This is likely a bug in React. Please file an issue."); + if (null === queue) throw Error("Should have a queue. This is likely a bug in React. Please file an issue."); queue.lastRenderedReducer = reducer; var current = currentHook, baseQueue = current.baseQueue, pendingQueue = queue.pending; // The last rebase update that is NOT part of the base state. if (null !== pendingQueue) { @@ -6535,7 +6535,7 @@ } function rerenderReducer(reducer, initialArg, init) { var hook = updateWorkInProgressHook(), queue = hook.queue; - if (!(null !== queue)) throw Error("Should have a queue. This is likely a bug in React. Please file an issue."); + if (null === queue) throw Error("Should have a queue. This is likely a bug in React. Please file an issue."); queue.lastRenderedReducer = reducer; // This is a re-render. Apply the new render phase updates to the previous // work-in-progress hook. var dispatch = queue.dispatch, lastRenderPhaseUpdate = queue.pending, newState = hook.memoizedState; @@ -6582,7 +6582,7 @@ } function useMutableSource(hook, source, getSnapshot, subscribe) { var root = workInProgressRoot; - if (!(null !== root)) throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue."); + if (null === root) throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue."); var getVersion = source._getVersion, version = getVersion(source._source), dispatcher = ReactCurrentDispatcher$1.current, _dispatcher$useState = dispatcher.useState(function() { return readFromUnsubcribedMutableSource(root, source, getSnapshot); }), currentSnapshot = _dispatcher$useState[0], setSnapshot = _dispatcher$useState[1], snapshot = currentSnapshot, stateHook = workInProgressHook, memoizedState = hook.memoizedState, refs = memoizedState.refs, prevGetSnapshot = refs.getSnapshot, prevSource = memoizedState.source, prevSubscribe = memoizedState.subscribe, fiber = currentlyRenderingFiber$1; @@ -7525,7 +7525,7 @@ // We could move it there, but we'd still need this for lazy code path. checkPropTypes(_innerPropTypes, nextProps, "prop", getComponentName(_type)); var currentChild = current.child; // This is always exactly one child - if (!((updateLanes & renderLanes) != 0)) { + if ((updateLanes & renderLanes) == 0) { // This will be the props with resolved defaultProps, // unlike current.memoizedProps which will be the unresolved ones. var prevProps = currentChild.memoizedProps, compare = Component.compare; // Default to shallow comparison @@ -7556,7 +7556,7 @@ } if (null !== current && shallowEqual(current.memoizedProps, nextProps) && current.ref === workInProgress.ref && // Prevent bailout if the implementation changed due to hot reload. workInProgress.type === current.type) { - if (didReceiveUpdate = !1, !((renderLanes & updateLanes) != 0)) return(// The pending lanes were cleared at the beginning of beginWork. We're + if (didReceiveUpdate = !1, (renderLanes & updateLanes) == 0) return(// The pending lanes were cleared at the beginning of beginWork. We're // about to bail out, but there might be other lanes that weren't // included in the current render. Usually, the priority level of the // remaining updates is accumlated during the evaluation of the @@ -8043,7 +8043,7 @@ }(workInProgress.lanes), (renderLanes & workInProgress.childLanes) != 0) ? (!// This fiber doesn't have work, but its subtree does. Clone the child // fibers and continue. function(current, workInProgress) { - if (!(null === current || workInProgress.child === current.child)) throw Error("Resuming work not yet implemented."); + if (null !== current && workInProgress.child !== current.child) throw Error("Resuming work not yet implemented."); if (null !== workInProgress.child) { var currentChild = workInProgress.child, newChild = createWorkInProgress(currentChild, currentChild.pendingProps); for(workInProgress.child = newChild, newChild.return = workInProgress; null !== currentChild.sibling;)currentChild = currentChild.sibling, (newChild = newChild.sibling = createWorkInProgress(currentChild, currentChild.pendingProps)).return = workInProgress; @@ -8255,7 +8255,7 @@ return function(current, workInProgress, renderLanes) { pushHostRootContext(workInProgress); var updateQueue = workInProgress.updateQueue; - if (!(null !== current && null !== updateQueue)) throw Error("If the root does not have an updateQueue, we should have already bailed out. This error is likely caused by a bug in React. Please file an issue."); + if (null === current || null === updateQueue) throw Error("If the root does not have an updateQueue, we should have already bailed out. This error is likely caused by a bug in React. Please file an issue."); var nextProps = workInProgress.pendingProps, prevState = workInProgress.memoizedState, prevChildren = null !== prevState ? prevState.element : null; cloneUpdateQueue(current, workInProgress), processUpdateQueue(workInProgress, nextProps, null, renderLanes); // being called "element". @@ -8478,7 +8478,7 @@ if (null !== current && null != workInProgress.stateNode) updateHostComponent$1(current, workInProgress, type, newProps, rootContainerInstance), current.ref !== workInProgress.ref && markRef$1(workInProgress); else { if (!newProps) { - if (!(null !== workInProgress.stateNode)) throw Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue."); + if (null === workInProgress.stateNode) throw Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue."); // This can happen when we abort work. return null; } @@ -8836,7 +8836,7 @@ // to schedule a side-effect to do the updates. updateHostText$1(current, workInProgress, oldText, newProps); } else { - if ("string" != typeof newProps && !(null !== workInProgress.stateNode)) throw Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue."); + if ("string" != typeof newProps && null === workInProgress.stateNode) throw Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue."); var hostInst1, textNode, _rootContainerInstance = getRootHostContainer(), _currentHostContext = getHostContext(); if (popHydrationState(workInProgress)) (function(fiber) { var hostInst, textInstance = fiber.stateNode, textContent = fiber.memoizedProps, shouldUpdate = (hostInst = fiber, textInstance[internalInstanceKey] = hostInst, textInstance.nodeValue !== textContent); @@ -8896,7 +8896,7 @@ // We just rendered the head. if (didSuspendAlready) cutOffTailIfNeeded(renderState, !1); else { - if (!(0 === workInProgressRootExitStatus && (null === current || (64 & current.flags) == 0))) for(var row = workInProgress.child; null !== row;){ + if (0 !== workInProgressRootExitStatus || null !== current && (64 & current.flags) != 0) for(var row = workInProgress.child; null !== row;){ var suspended = findFirstSuspended(row); if (null !== suspended) { didSuspendAlready = !0, workInProgress.flags |= 64, cutOffTailIfNeeded(renderState, !1); @@ -9440,7 +9440,7 @@ if (!currentParentIsValid) { var container, child, parent = node.return; findParent: for(;;){ - if (!(null !== parent)) throw Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue."); + if (null === parent) throw Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue."); var parentStateNode = parent.stateNode; switch(parent.tag){ case 5: @@ -9563,7 +9563,7 @@ } return; case 6: - if (!(null !== finishedWork.stateNode)) throw Error("This should have a text node initialized. This error is likely caused by a bug in React. Please file an issue."); + if (null === finishedWork.stateNode) throw Error("This should have a text node initialized. This error is likely caused by a bug in React. Please file an issue."); var textInstance = finishedWork.stateNode, newText = finishedWork.memoizedProps; null !== current && current.memoizedProps, textInstance.nodeValue = newText; return; @@ -10342,7 +10342,7 @@ if (ReactStrictModeWarnings.flushLegacyContextWarning(), ReactStrictModeWarnings.flushPendingUnsafeLifecycleWarnings(), (48 & executionContext) != 0) throw Error("Should not already be working."); var firstEffect, finishedWork = root.finishedWork, lanes = root.finishedLanes; if (null === finishedWork) return null; - if (root.finishedWork = null, root.finishedLanes = 0, !(finishedWork !== root.current)) throw Error("Cannot commit the same tree as before. This error is likely caused by a bug in React. Please file an issue."); + if (root.finishedWork = null, root.finishedLanes = 0, finishedWork === root.current) throw Error("Cannot commit the same tree as before. This error is likely caused by a bug in React. Please file an issue."); // commitRoot never returns a continuation; it always finishes synchronously. // So we can clear these now to allow a new callback to be scheduled. root.callbackNode = null; @@ -10355,7 +10355,7 @@ var index = pickArbitraryLaneIndex(lanes), lane = 1 << index; entanglements[index] = 0, eventTimes[index] = -1, expirationTimes[index] = -1, lanes &= ~lane; } - }(root, remainingLanes), null !== rootsWithPendingDiscreteUpdates && !((24 & remainingLanes) != 0) && rootsWithPendingDiscreteUpdates.has(root) && rootsWithPendingDiscreteUpdates.delete(root), root === workInProgressRoot && (// We can reset these now that they are finished. + }(root, remainingLanes), null !== rootsWithPendingDiscreteUpdates && (24 & remainingLanes) == 0 && rootsWithPendingDiscreteUpdates.has(root) && rootsWithPendingDiscreteUpdates.delete(root), root === workInProgressRoot && (// We can reset these now that they are finished. workInProgressRoot = null, workInProgress = null, workInProgressRootRenderLanes = 0), finishedWork.flags > 1 ? null !== finishedWork.lastEffect ? (finishedWork.lastEffect.nextEffect = finishedWork, firstEffect = finishedWork.firstEffect) : firstEffect = finishedWork : // There is no effect on the root. firstEffect = finishedWork.firstEffect, null !== firstEffect) { var containerInfo, focusedElem, input, selection, containerInfo1, prevExecutionContext = executionContext; @@ -10419,14 +10419,14 @@ // getSnapshotBeforeUpdate is called. focusedInstanceHandle = null, shouldFireAfterActiveInstanceBlur = !1, nextEffect = firstEffect; do if (invokeGuardedCallback(null, commitBeforeMutationEffects, null), hasError) { - if (!(null !== nextEffect)) throw Error("Should be working on an effect."); + if (null === nextEffect) throw Error("Should be working on an effect."); var error1 = clearCaughtError(); captureCommitPhaseError(nextEffect, error1), nextEffect = nextEffect.nextEffect; } while (null !== nextEffect) // We no longer need to track the active instance fiber focusedInstanceHandle = null, commitTime = unstable_now(), nextEffect = firstEffect; do if (invokeGuardedCallback(null, commitMutationEffects, null, root, renderPriorityLevel), hasError) { - if (!(null !== nextEffect)) throw Error("Should be working on an effect."); + if (null === nextEffect) throw Error("Should be working on an effect."); var _error = clearCaughtError(); captureCommitPhaseError(nextEffect, _error), nextEffect = nextEffect.nextEffect; } @@ -10494,7 +10494,7 @@ // layout, but class component lifecycles also fire here for legacy reasons. nextEffect = firstEffect; do if (invokeGuardedCallback(null, commitLayoutEffects, null, root, lanes), hasError) { - if (!(null !== nextEffect)) throw Error("Should be working on an effect."); + if (null === nextEffect) throw Error("Should be working on an effect."); var _error2 = clearCaughtError(); captureCommitPhaseError(nextEffect, _error2), nextEffect = nextEffect.nextEffect; } @@ -10790,7 +10790,7 @@ var alternate = fiber.alternate; if (null !== alternate && (alternate.flags &= -8193), "function" == typeof destroy) { if (setCurrentFiber(fiber), invokeGuardedCallback(null, destroy, null), hasError) { - if (!(null !== fiber)) throw Error("Should be working on an effect."); + if (null === fiber) throw Error("Should be working on an effect."); captureCommitPhaseError(fiber, clearCaughtError()); } resetCurrentFiber(); @@ -10801,7 +10801,7 @@ for(var _i = 0; _i < mountEffects.length; _i += 2){ var _effect2 = mountEffects[_i], _fiber = mountEffects[_i + 1]; if (setCurrentFiber(_fiber), invokeGuardedCallback(null, invokePassiveEffectCreate, null, _effect2), hasError) { - if (!(null !== _fiber)) throw Error("Should be working on an effect."); + if (null === _fiber) throw Error("Should be working on an effect."); captureCommitPhaseError(_fiber, clearCaughtError()); } resetCurrentFiber(); @@ -11332,7 +11332,7 @@ var fiber = get(parentComponent), parentContext = function(fiber) { // Currently this is only used with renderSubtreeIntoContainer; not sure if it // makes sense elsewhere - if (!(getNearestMountedFiber(fiber) === fiber && 1 === fiber.tag)) throw Error("Expected subtree parent to be a mounted class component. This error is likely caused by a bug in React. Please file an issue."); + if (getNearestMountedFiber(fiber) !== fiber || 1 !== fiber.tag) throw Error("Expected subtree parent to be a mounted class component. This error is likely caused by a bug in React. Please file an issue."); var node = fiber; do { switch(node.tag){ @@ -11871,7 +11871,7 @@ }, exports1.unstable_renderSubtreeIntoContainer = function(parentComponent, element, containerNode, callback) { return function(parentComponent, element, containerNode, callback) { if (!isValidContainer(containerNode)) throw Error("Target container is not a DOM element."); - if (!(null != parentComponent && void 0 !== parentComponent._reactInternals)) throw Error("parentComponent must be a valid React Component"); + if (null == parentComponent || void 0 === parentComponent._reactInternals) throw Error("parentComponent must be a valid React Component"); return legacyRenderSubtreeIntoContainer(parentComponent, element, containerNode, !1, callback); }(parentComponent, element, containerNode, callback); }, exports1.version = ReactVersion;