A free open source IT asset/license management system
Updated BS tables
snipe3f01b02fd90b
diff --git a/public/js/dist/bootstrap-table.js b/public/js/dist/bootstrap-table.jsindex c2e9826e49..b303798e3f 100644--- a/public/js/dist/bootstrap-table.js+++ b/public/js/dist/bootstrap-table.js@@ -1,20313 +1,19 @@-(function (global, factory) {- typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('jquery')) :- typeof define === 'function' && define.amd ? define(['jquery'], factory) :- (global = global || self, global.BootstrapTable = factory(global.jQuery));-}(this, (function ($) { 'use strict';-- $ = $ && Object.prototype.hasOwnProperty.call($, 'default') ? $['default'] : $;-- var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};-- function createCommonjsModule(fn, module) {- return module = { exports: {} }, fn(module, module.exports), module.exports;- }-- var check = function (it) {- return it && it.Math == Math && it;- };-- // https://github.com/zloirock/core-js/issues/86#issuecomment-115759028- var global_1 =- // eslint-disable-next-line no-undef- check(typeof globalThis == 'object' && globalThis) ||- check(typeof window == 'object' && window) ||- check(typeof self == 'object' && self) ||- check(typeof commonjsGlobal == 'object' && commonjsGlobal) ||- // eslint-disable-next-line no-new-func- Function('return this')();-- var fails = function (exec) {- try {- return !!exec();- } catch (error) {- return true;- }- };-- // Thank's IE8 for his funny defineProperty- var descriptors = !fails(function () {- return Object.defineProperty({}, 'a', { get: function () { return 7; } }).a != 7;- });-- var nativePropertyIsEnumerable = {}.propertyIsEnumerable;- var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;-- // Nashorn ~ JDK8 bug- var NASHORN_BUG = getOwnPropertyDescriptor && !nativePropertyIsEnumerable.call({ 1: 2 }, 1);-- // `Object.prototype.propertyIsEnumerable` method implementation- // https://tc39.github.io/ecma262/#sec-object.prototype.propertyisenumerable- var f = NASHORN_BUG ? function propertyIsEnumerable(V) {- var descriptor = getOwnPropertyDescriptor(this, V);- return !!descriptor && descriptor.enumerable;- } : nativePropertyIsEnumerable;-- var objectPropertyIsEnumerable = {- f: f- };-- var createPropertyDescriptor = function (bitmap, value) {- return {- enumerable: !(bitmap & 1),- configurable: !(bitmap & 2),- writable: !(bitmap & 4),- value: value- };- };-- var toString = {}.toString;-- var classofRaw = function (it) {- return toString.call(it).slice(8, -1);- };-- var split = ''.split;-- // fallback for non-array-like ES3 and non-enumerable old V8 strings- var indexedObject = fails(function () {- // throws an error in rhino, see https://github.com/mozilla/rhino/issues/346- // eslint-disable-next-line no-prototype-builtins- return !Object('z').propertyIsEnumerable(0);- }) ? function (it) {- return classofRaw(it) == 'String' ? split.call(it, '') : Object(it);- } : Object;-- // `RequireObjectCoercible` abstract operation- // https://tc39.github.io/ecma262/#sec-requireobjectcoercible- var requireObjectCoercible = function (it) {- if (it == undefined) throw TypeError("Can't call method on " + it);- return it;- };-- // toObject with fallback for non-array-like ES3 strings---- var toIndexedObject = function (it) {- return indexedObject(requireObjectCoercible(it));- };-- var isObject = function (it) {- return typeof it === 'object' ? it !== null : typeof it === 'function';- };-- // `ToPrimitive` abstract operation- // https://tc39.github.io/ecma262/#sec-toprimitive- // instead of the ES6 spec version, we didn't implement @@toPrimitive case- // and the second argument - flag - preferred type is a string- var toPrimitive = function (input, PREFERRED_STRING) {- if (!isObject(input)) return input;- var fn, val;- if (PREFERRED_STRING && typeof (fn = input.toString) == 'function' && !isObject(val = fn.call(input))) return val;- if (typeof (fn = input.valueOf) == 'function' && !isObject(val = fn.call(input))) return val;- if (!PREFERRED_STRING && typeof (fn = input.toString) == 'function' && !isObject(val = fn.call(input))) return val;- throw TypeError("Can't convert object to primitive value");- };-- var hasOwnProperty = {}.hasOwnProperty;-- var has = function (it, key) {- return hasOwnProperty.call(it, key);- };-- var document$1 = global_1.document;- // typeof document.createElement is 'object' in old IE- var EXISTS = isObject(document$1) && isObject(document$1.createElement);-- var documentCreateElement = function (it) {- return EXISTS ? document$1.createElement(it) : {};- };-- // Thank's IE8 for his funny defineProperty- var ie8DomDefine = !descriptors && !fails(function () {- return Object.defineProperty(documentCreateElement('div'), 'a', {- get: function () { return 7; }- }).a != 7;- });-- var nativeGetOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;-- // `Object.getOwnPropertyDescriptor` method- // https://tc39.github.io/ecma262/#sec-object.getownpropertydescriptor- var f$1 = descriptors ? nativeGetOwnPropertyDescriptor : function getOwnPropertyDescriptor(O, P) {- O = toIndexedObject(O);- P = toPrimitive(P, true);- if (ie8DomDefine) try {- return nativeGetOwnPropertyDescriptor(O, P);- } catch (error) { /* empty */ }- if (has(O, P)) return createPropertyDescriptor(!objectPropertyIsEnumerable.f.call(O, P), O[P]);- };-- var objectGetOwnPropertyDescriptor = {- f: f$1- };-- var anObject = function (it) {- if (!isObject(it)) {- throw TypeError(String(it) + ' is not an object');- } return it;- };-- var nativeDefineProperty = Object.defineProperty;-- // `Object.defineProperty` method- // https://tc39.github.io/ecma262/#sec-object.defineproperty- var f$2 = descriptors ? nativeDefineProperty : function defineProperty(O, P, Attributes) {- anObject(O);- P = toPrimitive(P, true);- anObject(Attributes);- if (ie8DomDefine) try {- return nativeDefineProperty(O, P, Attributes);- } catch (error) { /* empty */ }- if ('get' in Attributes || 'set' in Attributes) throw TypeError('Accessors not supported');- if ('value' in Attributes) O[P] = Attributes.value;- return O;- };-- var objectDefineProperty = {- f: f$2- };-- var createNonEnumerableProperty = descriptors ? function (object, key, value) {- return objectDefineProperty.f(object, key, createPropertyDescriptor(1, value));- } : function (object, key, value) {- object[key] = value;- return object;- };-- var setGlobal = function (key, value) {- try {- createNonEnumerableProperty(global_1, key, value);- } catch (error) {- global_1[key] = value;- } return value;- };-- var SHARED = '__core-js_shared__';- var store = global_1[SHARED] || setGlobal(SHARED, {});-- var sharedStore = store;-- var functionToString = Function.toString;-- // this helper broken in `3.4.1-3.4.4`, so we can't use `shared` helper- if (typeof sharedStore.inspectSource != 'function') {- sharedStore.inspectSource = function (it) {- return functionToString.call(it);- };- }-- var inspectSource = sharedStore.inspectSource;-- var WeakMap = global_1.WeakMap;-- var nativeWeakMap = typeof WeakMap === 'function' && /native code/.test(inspectSource(WeakMap));-- var shared = createCommonjsModule(function (module) {- (module.exports = function (key, value) {- return sharedStore[key] || (sharedStore[key] = value !== undefined ? value : {});- })('versions', []).push({- version: '3.6.0',- mode: 'global',- copyright: '© 2019 Denis Pushkarev (zloirock.ru)'- });- });-- var id = 0;- var postfix = Math.random();-- var uid = function (key) {- return 'Symbol(' + String(key === undefined ? '' : key) + ')_' + (++id + postfix).toString(36);- };-- var keys = shared('keys');-- var sharedKey = function (key) {- return keys[key] || (keys[key] = uid(key));- };-- var hiddenKeys = {};-- var WeakMap$1 = global_1.WeakMap;- var set, get, has$1;-- var enforce = function (it) {- return has$1(it) ? get(it) : set(it, {});- };-- var getterFor = function (TYPE) {- return function (it) {- var state;- if (!isObject(it) || (state = get(it)).type !== TYPE) {- throw TypeError('Incompatible receiver, ' + TYPE + ' required');- } return state;- };- };-- if (nativeWeakMap) {- var store$1 = new WeakMap$1();- var wmget = store$1.get;- var wmhas = store$1.has;- var wmset = store$1.set;- set = function (it, metadata) {- wmset.call(store$1, it, metadata);- return metadata;- };- get = function (it) {- return wmget.call(store$1, it) || {};- };- has$1 = function (it) {- return wmhas.call(store$1, it);- };- } else {- var STATE = sharedKey('state');- hiddenKeys[STATE] = true;- set = function (it, metadata) {- createNonEnumerableProperty(it, STATE, metadata);- return metadata;- };- get = function (it) {- return has(it, STATE) ? it[STATE] : {};- };- has$1 = function (it) {- return has(it, STATE);- };- }-- var internalState = {- set: set,- get: get,- has: has$1,- enforce: enforce,- getterFor: getterFor- };-- var redefine = createCommonjsModule(function (module) {- var getInternalState = internalState.get;- var enforceInternalState = internalState.enforce;- var TEMPLATE = String(String).split('String');-- (module.exports = function (O, key, value, options) {- var unsafe = options ? !!options.unsafe : false;- var simple = options ? !!options.enumerable : false;- var noTargetGet = options ? !!options.noTargetGet : false;- if (typeof value == 'function') {- if (typeof key == 'string' && !has(value, 'name')) createNonEnumerableProperty(value, 'name', key);- enforceInternalState(value).source = TEMPLATE.join(typeof key == 'string' ? key : '');- }- if (O === global_1) {- if (simple) O[key] = value;- else setGlobal(key, value);- return;- } else if (!unsafe) {- delete O[key];- } else if (!noTargetGet && O[key]) {- simple = true;- }- if (simple) O[key] = value;- else createNonEnumerableProperty(O, key, value);- // add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative- })(Function.prototype, 'toString', function toString() {- return typeof this == 'function' && getInternalState(this).source || inspectSource(this);- });- });-- var path = global_1;-- var aFunction = function (variable) {- return typeof variable == 'function' ? variable : undefined;- };-- var getBuiltIn = function (namespace, method) {- return arguments.length < 2 ? aFunction(path[namespace]) || aFunction(global_1[namespace])- : path[namespace] && path[namespace][method] || global_1[namespace] && global_1[namespace][method];- };-- var ceil = Math.ceil;- var floor = Math.floor;-- // `ToInteger` abstract operation- // https://tc39.github.io/ecma262/#sec-tointeger- var toInteger = function (argument) {- return isNaN(argument = +argument) ? 0 : (argument > 0 ? floor : ceil)(argument);- };-- var min = Math.min;-- // `ToLength` abstract operation- // https://tc39.github.io/ecma262/#sec-tolength- var toLength = function (argument) {- return argument > 0 ? min(toInteger(argument), 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991- };-- var max = Math.max;- var min$1 = Math.min;-- // Helper for a popular repeating case of the spec:- // Let integer be ? ToInteger(index).- // If integer < 0, let result be max((length + integer), 0); else let result be min(integer, length).- var toAbsoluteIndex = function (index, length) {- var integer = toInteger(index);- return integer < 0 ? max(integer + length, 0) : min$1(integer, length);- };-- // `Array.prototype.{ indexOf, includes }` methods implementation- var createMethod = function (IS_INCLUDES) {- return function ($this, el, fromIndex) {- var O = toIndexedObject($this);- var length = toLength(O.length);- var index = toAbsoluteIndex(fromIndex, length);- var value;- // Array#includes uses SameValueZero equality algorithm- // eslint-disable-next-line no-self-compare- if (IS_INCLUDES && el != el) while (length > index) {- value = O[index++];- // eslint-disable-next-line no-self-compare- if (value != value) return true;- // Array#indexOf ignores holes, Array#includes - not- } else for (;length > index; index++) {- if ((IS_INCLUDES || index in O) && O[index] === el) return IS_INCLUDES || index || 0;- } return !IS_INCLUDES && -1;- };- };-- var arrayIncludes = {- // `Array.prototype.includes` method- // https://tc39.github.io/ecma262/#sec-array.prototype.includes- includes: createMethod(true),- // `Array.prototype.indexOf` method- // https://tc39.github.io/ecma262/#sec-array.prototype.indexof- indexOf: createMethod(false)- };-- var indexOf = arrayIncludes.indexOf;--- var objectKeysInternal = function (object, names) {- var O = toIndexedObject(object);- var i = 0;- var result = [];- var key;- for (key in O) !has(hiddenKeys, key) && has(O, key) && result.push(key);- // Don't enum bug & hidden keys- while (names.length > i) if (has(O, key = names[i++])) {- ~indexOf(result, key) || result.push(key);- }- return result;- };-- // IE8- don't enum bug keys- var enumBugKeys = [- 'constructor',- 'hasOwnProperty',- 'isPrototypeOf',- 'propertyIsEnumerable',- 'toLocaleString',- 'toString',- 'valueOf'- ];-- var hiddenKeys$1 = enumBugKeys.concat('length', 'prototype');-- // `Object.getOwnPropertyNames` method- // https://tc39.github.io/ecma262/#sec-object.getownpropertynames- var f$3 = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {- return objectKeysInternal(O, hiddenKeys$1);- };-- var objectGetOwnPropertyNames = {- f: f$3- };-- var f$4 = Object.getOwnPropertySymbols;-- var objectGetOwnPropertySymbols = {- f: f$4- };-- // all object keys, includes non-enumerable and symbols- var ownKeys = getBuiltIn('Reflect', 'ownKeys') || function ownKeys(it) {- var keys = objectGetOwnPropertyNames.f(anObject(it));- var getOwnPropertySymbols = objectGetOwnPropertySymbols.f;- return getOwnPropertySymbols ? keys.concat(getOwnPropertySymbols(it)) : keys;- };-- var copyConstructorProperties = function (target, source) {- var keys = ownKeys(source);- var defineProperty = objectDefineProperty.f;- var getOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f;- for (var i = 0; i < keys.length; i++) {- var key = keys[i];- if (!has(target, key)) defineProperty(target, key, getOwnPropertyDescriptor(source, key));- }- };-- var replacement = /#|\.prototype\./;-- var isForced = function (feature, detection) {- var value = data[normalize(feature)];- return value == POLYFILL ? true- : value == NATIVE ? false- : typeof detection == 'function' ? fails(detection)- : !!detection;- };-- var normalize = isForced.normalize = function (string) {- return String(string).replace(replacement, '.').toLowerCase();- };-- var data = isForced.data = {};- var NATIVE = isForced.NATIVE = 'N';- var POLYFILL = isForced.POLYFILL = 'P';-- var isForced_1 = isForced;-- var getOwnPropertyDescriptor$1 = objectGetOwnPropertyDescriptor.f;------- /*- options.target - name of the target object- options.global - target is the global object- options.stat - export as static methods of target- options.proto - export as prototype methods of target- options.real - real prototype method for the `pure` version- options.forced - export even if the native feature is available- options.bind - bind methods to the target, required for the `pure` version- options.wrap - wrap constructors to preventing global pollution, required for the `pure` version- options.unsafe - use the simple assignment of property instead of delete + defineProperty- options.sham - add a flag to not completely full polyfills- options.enumerable - export as enumerable property- options.noTargetGet - prevent calling a getter on target- */- var _export = function (options, source) {- var TARGET = options.target;- var GLOBAL = options.global;- var STATIC = options.stat;- var FORCED, target, key, targetProperty, sourceProperty, descriptor;- if (GLOBAL) {- target = global_1;- } else if (STATIC) {- target = global_1[TARGET] || setGlobal(TARGET, {});- } else {- target = (global_1[TARGET] || {}).prototype;- }- if (target) for (key in source) {- sourceProperty = source[key];- if (options.noTargetGet) {- descriptor = getOwnPropertyDescriptor$1(target, key);- targetProperty = descriptor && descriptor.value;- } else targetProperty = target[key];- FORCED = isForced_1(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced);- // contained in target- if (!FORCED && targetProperty !== undefined) {- if (typeof sourceProperty === typeof targetProperty) continue;- copyConstructorProperties(sourceProperty, targetProperty);- }- // add a flag to not completely full polyfills- if (options.sham || (targetProperty && targetProperty.sham)) {- createNonEnumerableProperty(sourceProperty, 'sham', true);- }- // extend global- redefine(target, key, sourceProperty, options);- }- };-- var nativeSymbol = !!Object.getOwnPropertySymbols && !fails(function () {- // Chrome 38 Symbol has incorrect toString conversion- // eslint-disable-next-line no-undef- return !String(Symbol());- });-- var useSymbolAsUid = nativeSymbol- // eslint-disable-next-line no-undef- && !Symbol.sham- // eslint-disable-next-line no-undef- && typeof Symbol() == 'symbol';-- // `IsArray` abstract operation- // https://tc39.github.io/ecma262/#sec-isarray- var isArray = Array.isArray || function isArray(arg) {- return classofRaw(arg) == 'Array';- };-- // `ToObject` abstract operation- // https://tc39.github.io/ecma262/#sec-toobject- var toObject = function (argument) {- return Object(requireObjectCoercible(argument));- };-- // `Object.keys` method- // https://tc39.github.io/ecma262/#sec-object.keys- var objectKeys = Object.keys || function keys(O) {- return objectKeysInternal(O, enumBugKeys);- };-- // `Object.defineProperties` method- // https://tc39.github.io/ecma262/#sec-object.defineproperties- var objectDefineProperties = descriptors ? Object.defineProperties : function defineProperties(O, Properties) {- anObject(O);- var keys = objectKeys(Properties);- var length = keys.length;- var index = 0;- var key;- while (length > index) objectDefineProperty.f(O, key = keys[index++], Properties[key]);- return O;- };-- var html = getBuiltIn('document', 'documentElement');-- var GT = '>';- var LT = '<';- var PROTOTYPE = 'prototype';- var SCRIPT = 'script';- var IE_PROTO = sharedKey('IE_PROTO');-- var EmptyConstructor = function () { /* empty */ };-- var scriptTag = function (content) {- return LT + SCRIPT + GT + content + LT + '/' + SCRIPT + GT;- };-- // Create object with fake `null` prototype: use ActiveX Object with cleared prototype- var NullProtoObjectViaActiveX = function (activeXDocument) {- activeXDocument.write(scriptTag(''));- activeXDocument.close();- var temp = activeXDocument.parentWindow.Object;- activeXDocument = null; // avoid memory leak- return temp;- };-- // Create object with fake `null` prototype: use iframe Object with cleared prototype- var NullProtoObjectViaIFrame = function () {- // Thrash, waste and sodomy: IE GC bug- var iframe = documentCreateElement('iframe');- var JS = 'java' + SCRIPT + ':';- var iframeDocument;- iframe.style.display = 'none';- html.appendChild(iframe);- // https://github.com/zloirock/core-js/issues/475- iframe.src = String(JS);- iframeDocument = iframe.contentWindow.document;- iframeDocument.open();- iframeDocument.write(scriptTag('document.F=Object'));- iframeDocument.close();- return iframeDocument.F;- };-- // Check for document.domain and active x support- // No need to use active x approach when document.domain is not set- // see https://github.com/es-shims/es5-shim/issues/150- // variation of https://github.com/kitcambridge/es5-shim/commit/4f738ac066346- // avoid IE GC bug- var activeXDocument;- var NullProtoObject = function () {- try {- /* global ActiveXObject */- activeXDocument = document.domain && new ActiveXObject('htmlfile');- } catch (error) { /* ignore */ }- NullProtoObject = activeXDocument ? NullProtoObjectViaActiveX(activeXDocument) : NullProtoObjectViaIFrame();- var length = enumBugKeys.length;- while (length--) delete NullProtoObject[PROTOTYPE][enumBugKeys[length]];- return NullProtoObject();- };-- hiddenKeys[IE_PROTO] = true;-- // `Object.create` method- // https://tc39.github.io/ecma262/#sec-object.create- var objectCreate = Object.create || function create(O, Properties) {- var result;- if (O !== null) {- EmptyConstructor[PROTOTYPE] = anObject(O);- result = new EmptyConstructor();- EmptyConstructor[PROTOTYPE] = null;- // add "__proto__" for Object.getPrototypeOf polyfill- result[IE_PROTO] = O;- } else result = NullProtoObject();- return Properties === undefined ? result : objectDefineProperties(result, Properties);- };-- var nativeGetOwnPropertyNames = objectGetOwnPropertyNames.f;-- var toString$1 = {}.toString;-- var windowNames = typeof window == 'object' && window && Object.getOwnPropertyNames- ? Object.getOwnPropertyNames(window) : [];-- var getWindowNames = function (it) {- try {- return nativeGetOwnPropertyNames(it);- } catch (error) {- return windowNames.slice();- }- };-- // fallback for IE11 buggy Object.getOwnPropertyNames with iframe and window- var f$5 = function getOwnPropertyNames(it) {- return windowNames && toString$1.call(it) == '[object Window]'- ? getWindowNames(it)- : nativeGetOwnPropertyNames(toIndexedObject(it));- };-- var objectGetOwnPropertyNamesExternal = {- f: f$5- };-- var WellKnownSymbolsStore = shared('wks');- var Symbol$1 = global_1.Symbol;- var createWellKnownSymbol = useSymbolAsUid ? Symbol$1 : uid;-- var wellKnownSymbol = function (name) {- if (!has(WellKnownSymbolsStore, name)) {- if (nativeSymbol && has(Symbol$1, name)) WellKnownSymbolsStore[name] = Symbol$1[name];- else WellKnownSymbolsStore[name] = createWellKnownSymbol('Symbol.' + name);- } return WellKnownSymbolsStore[name];- };-- var f$6 = wellKnownSymbol;-- var wrappedWellKnownSymbol = {- f: f$6- };-- var defineProperty = objectDefineProperty.f;-- var defineWellKnownSymbol = function (NAME) {- var Symbol = path.Symbol || (path.Symbol = {});- if (!has(Symbol, NAME)) defineProperty(Symbol, NAME, {- value: wrappedWellKnownSymbol.f(NAME)- });- };-- var defineProperty$1 = objectDefineProperty.f;---- var TO_STRING_TAG = wellKnownSymbol('toStringTag');-- var setToStringTag = function (it, TAG, STATIC) {- if (it && !has(it = STATIC ? it : it.prototype, TO_STRING_TAG)) {- defineProperty$1(it, TO_STRING_TAG, { configurable: true, value: TAG });- }- };-- var aFunction$1 = function (it) {- if (typeof it != 'function') {- throw TypeError(String(it) + ' is not a function');- } return it;- };-- // optional / simple context binding- var bindContext = function (fn, that, length) {- aFunction$1(fn);- if (that === undefined) return fn;- switch (length) {- case 0: return function () {- return fn.call(that);- };- case 1: return function (a) {- return fn.call(that, a);- };- case 2: return function (a, b) {- return fn.call(that, a, b);- };- case 3: return function (a, b, c) {- return fn.call(that, a, b, c);- };- }- return function (/* ...args */) {- return fn.apply(that, arguments);- };- };-- var SPECIES = wellKnownSymbol('species');-- // `ArraySpeciesCreate` abstract operation- // https://tc39.github.io/ecma262/#sec-arrayspeciescreate- var arraySpeciesCreate = function (originalArray, length) {- var C;- if (isArray(originalArray)) {- C = originalArray.constructor;- // cross-realm fallback- if (typeof C == 'function' && (C === Array || isArray(C.prototype))) C = undefined;- else if (isObject(C)) {- C = C[SPECIES];- if (C === null) C = undefined;- }- } return new (C === undefined ? Array : C)(length === 0 ? 0 : length);- };-- var push = [].push;-- // `Array.prototype.{ forEach, map, filter, some, every, find, findIndex }` methods implementation- var createMethod$1 = function (TYPE) {- var IS_MAP = TYPE == 1;- var IS_FILTER = TYPE == 2;- var IS_SOME = TYPE == 3;- var IS_EVERY = TYPE == 4;- var IS_FIND_INDEX = TYPE == 6;- var NO_HOLES = TYPE == 5 || IS_FIND_INDEX;- return function ($this, callbackfn, that, specificCreate) {- var O = toObject($this);- var self = indexedObject(O);- var boundFunction = bindContext(callbackfn, that, 3);- var length = toLength(self.length);- var index = 0;- var create = specificCreate || arraySpeciesCreate;- var target = IS_MAP ? create($this, length) : IS_FILTER ? create($this, 0) : undefined;- var value, result;- for (;length > index; index++) if (NO_HOLES || index in self) {- value = self[index];- result = boundFunction(value, index, O);- if (TYPE) {- if (IS_MAP) target[index] = result; // map- else if (result) switch (TYPE) {- case 3: return true; // some- case 5: return value; // find- case 6: return index; // findIndex- case 2: push.call(target, value); // filter- } else if (IS_EVERY) return false; // every- }- }- return IS_FIND_INDEX ? -1 : IS_SOME || IS_EVERY ? IS_EVERY : target;- };- };-- var arrayIteration = {- // `Array.prototype.forEach` method- // https://tc39.github.io/ecma262/#sec-array.prototype.foreach- forEach: createMethod$1(0),- // `Array.prototype.map` method- // https://tc39.github.io/ecma262/#sec-array.prototype.map- map: createMethod$1(1),- // `Array.prototype.filter` method- // https://tc39.github.io/ecma262/#sec-array.prototype.filter- filter: createMethod$1(2),- // `Array.prototype.some` method- // https://tc39.github.io/ecma262/#sec-array.prototype.some- some: createMethod$1(3),- // `Array.prototype.every` method- // https://tc39.github.io/ecma262/#sec-array.prototype.every- every: createMethod$1(4),- // `Array.prototype.find` method- // https://tc39.github.io/ecma262/#sec-array.prototype.find- find: createMethod$1(5),- // `Array.prototype.findIndex` method- // https://tc39.github.io/ecma262/#sec-array.prototype.findIndex- findIndex: createMethod$1(6)- };-- var $forEach = arrayIteration.forEach;-- var HIDDEN = sharedKey('hidden');- var SYMBOL = 'Symbol';- var PROTOTYPE$1 = 'prototype';- var TO_PRIMITIVE = wellKnownSymbol('toPrimitive');- var setInternalState = internalState.set;- var getInternalState = internalState.getterFor(SYMBOL);- var ObjectPrototype = Object[PROTOTYPE$1];- var $Symbol = global_1.Symbol;- var $stringify = getBuiltIn('JSON', 'stringify');- var nativeGetOwnPropertyDescriptor$1 = objectGetOwnPropertyDescriptor.f;- var nativeDefineProperty$1 = objectDefineProperty.f;- var nativeGetOwnPropertyNames$1 = objectGetOwnPropertyNamesExternal.f;- var nativePropertyIsEnumerable$1 = objectPropertyIsEnumerable.f;- var AllSymbols = shared('symbols');- var ObjectPrototypeSymbols = shared('op-symbols');- var StringToSymbolRegistry = shared('string-to-symbol-registry');- var SymbolToStringRegistry = shared('symbol-to-string-registry');- var WellKnownSymbolsStore$1 = shared('wks');- var QObject = global_1.QObject;- // Don't use setters in Qt Script, https://github.com/zloirock/core-js/issues/173- var USE_SETTER = !QObject || !QObject[PROTOTYPE$1] || !QObject[PROTOTYPE$1].findChild;-- // fallback for old Android, https://code.google.com/p/v8/issues/detail?id=687- var setSymbolDescriptor = descriptors && fails(function () {- return objectCreate(nativeDefineProperty$1({}, 'a', {- get: function () { return nativeDefineProperty$1(this, 'a', { value: 7 }).a; }- })).a != 7;- }) ? function (O, P, Attributes) {- var ObjectPrototypeDescriptor = nativeGetOwnPropertyDescriptor$1(ObjectPrototype, P);- if (ObjectPrototypeDescriptor) delete ObjectPrototype[P];- nativeDefineProperty$1(O, P, Attributes);- if (ObjectPrototypeDescriptor && O !== ObjectPrototype) {- nativeDefineProperty$1(ObjectPrototype, P, ObjectPrototypeDescriptor);- }- } : nativeDefineProperty$1;-- var wrap = function (tag, description) {- var symbol = AllSymbols[tag] = objectCreate($Symbol[PROTOTYPE$1]);- setInternalState(symbol, {- type: SYMBOL,- tag: tag,- description: description- });- if (!descriptors) symbol.description = description;- return symbol;- };-- var isSymbol = nativeSymbol && typeof $Symbol.iterator == 'symbol' ? function (it) {- return typeof it == 'symbol';- } : function (it) {- return Object(it) instanceof $Symbol;- };-- var $defineProperty = function defineProperty(O, P, Attributes) {- if (O === ObjectPrototype) $defineProperty(ObjectPrototypeSymbols, P, Attributes);- anObject(O);- var key = toPrimitive(P, true);- anObject(Attributes);- if (has(AllSymbols, key)) {- if (!Attributes.enumerable) {- if (!has(O, HIDDEN)) nativeDefineProperty$1(O, HIDDEN, createPropertyDescriptor(1, {}));- O[HIDDEN][key] = true;- } else {- if (has(O, HIDDEN) && O[HIDDEN][key]) O[HIDDEN][key] = false;- Attributes = objectCreate(Attributes, { enumerable: createPropertyDescriptor(0, false) });- } return setSymbolDescriptor(O, key, Attributes);- } return nativeDefineProperty$1(O, key, Attributes);- };-- var $defineProperties = function defineProperties(O, Properties) {- anObject(O);- var properties = toIndexedObject(Properties);- var keys = objectKeys(properties).concat($getOwnPropertySymbols(properties));- $forEach(keys, function (key) {- if (!descriptors || $propertyIsEnumerable.call(properties, key)) $defineProperty(O, key, properties[key]);- });- return O;- };-- var $create = function create(O, Properties) {- return Properties === undefined ? objectCreate(O) : $defineProperties(objectCreate(O), Properties);- };-- var $propertyIsEnumerable = function propertyIsEnumerable(V) {- var P = toPrimitive(V, true);- var enumerable = nativePropertyIsEnumerable$1.call(this, P);- if (this === ObjectPrototype && has(AllSymbols, P) && !has(ObjectPrototypeSymbols, P)) return false;- return enumerable || !has(this, P) || !has(AllSymbols, P) || has(this, HIDDEN) && this[HIDDEN][P] ? enumerable : true;- };-- var $getOwnPropertyDescriptor = function getOwnPropertyDescriptor(O, P) {- var it = toIndexedObject(O);- var key = toPrimitive(P, true);- if (it === ObjectPrototype && has(AllSymbols, key) && !has(ObjectPrototypeSymbols, key)) return;- var descriptor = nativeGetOwnPropertyDescriptor$1(it, key);- if (descriptor && has(AllSymbols, key) && !(has(it, HIDDEN) && it[HIDDEN][key])) {- descriptor.enumerable = true;- }- return descriptor;- };-- var $getOwnPropertyNames = function getOwnPropertyNames(O) {- var names = nativeGetOwnPropertyNames$1(toIndexedObject(O));- var result = [];- $forEach(names, function (key) {- if (!has(AllSymbols, key) && !has(hiddenKeys, key)) result.push(key);- });- return result;- };-- var $getOwnPropertySymbols = function getOwnPropertySymbols(O) {- var IS_OBJECT_PROTOTYPE = O === ObjectPrototype;- var names = nativeGetOwnPropertyNames$1(IS_OBJECT_PROTOTYPE ? ObjectPrototypeSymbols : toIndexedObject(O));- var result = [];- $forEach(names, function (key) {- if (has(AllSymbols, key) && (!IS_OBJECT_PROTOTYPE || has(ObjectPrototype, key))) {- result.push(AllSymbols[key]);- }- });- return result;- };-- // `Symbol` constructor- // https://tc39.github.io/ecma262/#sec-symbol-constructor- if (!nativeSymbol) {- $Symbol = function Symbol() {- if (this instanceof $Symbol) throw TypeError('Symbol is not a constructor');- var description = !arguments.length || arguments[0] === undefined ? undefined : String(arguments[0]);- var tag = uid(description);- var setter = function (value) {- if (this === ObjectPrototype) setter.call(ObjectPrototypeSymbols, value);- if (has(this, HIDDEN) && has(this[HIDDEN], tag)) this[HIDDEN][tag] = false;- setSymbolDescriptor(this, tag, createPropertyDescriptor(1, value));- };- if (descriptors && USE_SETTER) setSymbolDescriptor(ObjectPrototype, tag, { configurable: true, set: setter });- return wrap(tag, description);- };-- redefine($Symbol[PROTOTYPE$1], 'toString', function toString() {- return getInternalState(this).tag;- });-- objectPropertyIsEnumerable.f = $propertyIsEnumerable;- objectDefineProperty.f = $defineProperty;- objectGetOwnPropertyDescriptor.f = $getOwnPropertyDescriptor;- objectGetOwnPropertyNames.f = objectGetOwnPropertyNamesExternal.f = $getOwnPropertyNames;- objectGetOwnPropertySymbols.f = $getOwnPropertySymbols;-- if (descriptors) {- // https://github.com/tc39/proposal-Symbol-description- nativeDefineProperty$1($Symbol[PROTOTYPE$1], 'description', {- configurable: true,- get: function description() {- return getInternalState(this).description;- }- });- {- redefine(ObjectPrototype, 'propertyIsEnumerable', $propertyIsEnumerable, { unsafe: true });- }- }- }-- if (!useSymbolAsUid) {- wrappedWellKnownSymbol.f = function (name) {- return wrap(wellKnownSymbol(name), name);- };- }-- _export({ global: true, wrap: true, forced: !nativeSymbol, sham: !nativeSymbol }, {- Symbol: $Symbol- });-- $forEach(objectKeys(WellKnownSymbolsStore$1), function (name) {- defineWellKnownSymbol(name);- });-- _export({ target: SYMBOL, stat: true, forced: !nativeSymbol }, {- // `Symbol.for` method- // https://tc39.github.io/ecma262/#sec-symbol.for- 'for': function (key) {- var string = String(key);- if (has(StringToSymbolRegistry, string)) return StringToSymbolRegistry[string];- var symbol = $Symbol(string);- StringToSymbolRegistry[string] = symbol;- SymbolToStringRegistry[symbol] = string;- return symbol;- },- // `Symbol.keyFor` method- // https://tc39.github.io/ecma262/#sec-symbol.keyfor- keyFor: function keyFor(sym) {- if (!isSymbol(sym)) throw TypeError(sym + ' is not a symbol');- if (has(SymbolToStringRegistry, sym)) return SymbolToStringRegistry[sym];- },- useSetter: function () { USE_SETTER = true; },- useSimple: function () { USE_SETTER = false; }- });-- _export({ target: 'Object', stat: true, forced: !nativeSymbol, sham: !descriptors }, {- // `Object.create` method- // https://tc39.github.io/ecma262/#sec-object.create- create: $create,- // `Object.defineProperty` method- // https://tc39.github.io/ecma262/#sec-object.defineproperty- defineProperty: $defineProperty,- // `Object.defineProperties` method- // https://tc39.github.io/ecma262/#sec-object.defineproperties- defineProperties: $defineProperties,- // `Object.getOwnPropertyDescriptor` method- // https://tc39.github.io/ecma262/#sec-object.getownpropertydescriptors- getOwnPropertyDescriptor: $getOwnPropertyDescriptor- });-- _export({ target: 'Object', stat: true, forced: !nativeSymbol }, {- // `Object.getOwnPropertyNames` method- // https://tc39.github.io/ecma262/#sec-object.getownpropertynames- getOwnPropertyNames: $getOwnPropertyNames,- // `Object.getOwnPropertySymbols` method- // https://tc39.github.io/ecma262/#sec-object.getownpropertysymbols- getOwnPropertySymbols: $getOwnPropertySymbols- });-- // Chrome 38 and 39 `Object.getOwnPropertySymbols` fails on primitives- // https://bugs.chromium.org/p/v8/issues/detail?id=3443- _export({ target: 'Object', stat: true, forced: fails(function () { objectGetOwnPropertySymbols.f(1); }) }, {- getOwnPropertySymbols: function getOwnPropertySymbols(it) {- return objectGetOwnPropertySymbols.f(toObject(it));- }- });-- // `JSON.stringify` method behavior with symbols- // https://tc39.github.io/ecma262/#sec-json.stringify- if ($stringify) {- var FORCED_JSON_STRINGIFY = !nativeSymbol || fails(function () {- var symbol = $Symbol();- // MS Edge converts symbol values to JSON as {}- return $stringify([symbol]) != '[null]'- // WebKit converts symbol values to JSON as null- || $stringify({ a: symbol }) != '{}'- // V8 throws on boxed symbols- || $stringify(Object(symbol)) != '{}';- });-- _export({ target: 'JSON', stat: true, forced: FORCED_JSON_STRINGIFY }, {- // eslint-disable-next-line no-unused-vars- stringify: function stringify(it, replacer, space) {- var args = [it];- var index = 1;- var $replacer;- while (arguments.length > index) args.push(arguments[index++]);- $replacer = replacer;- if (!isObject(replacer) && it === undefined || isSymbol(it)) return; // IE8 returns string on undefined- if (!isArray(replacer)) replacer = function (key, value) {- if (typeof $replacer == 'function') value = $replacer.call(this, key, value);- if (!isSymbol(value)) return value;- };- args[1] = replacer;- return $stringify.apply(null, args);- }- });- }-- // `Symbol.prototype[@@toPrimitive]` method- // https://tc39.github.io/ecma262/#sec-symbol.prototype-@@toprimitive- if (!$Symbol[PROTOTYPE$1][TO_PRIMITIVE]) {- createNonEnumerableProperty($Symbol[PROTOTYPE$1], TO_PRIMITIVE, $Symbol[PROTOTYPE$1].valueOf);- }- // `Symbol.prototype[@@toStringTag]` property- // https://tc39.github.io/ecma262/#sec-symbol.prototype-@@tostringtag- setToStringTag($Symbol, SYMBOL);-- hiddenKeys[HIDDEN] = true;-- var defineProperty$2 = objectDefineProperty.f;--- var NativeSymbol = global_1.Symbol;-- if (descriptors && typeof NativeSymbol == 'function' && (!('description' in NativeSymbol.prototype) ||- // Safari 12 bug- NativeSymbol().description !== undefined- )) {- var EmptyStringDescriptionStore = {};- // wrap Symbol constructor for correct work with undefined description- var SymbolWrapper = function Symbol() {- var description = arguments.length < 1 || arguments[0] === undefined ? undefined : String(arguments[0]);- var result = this instanceof SymbolWrapper- ? new NativeSymbol(description)- // in Edge 13, String(Symbol(undefined)) === 'Symbol(undefined)'- : description === undefined ? NativeSymbol() : NativeSymbol(description);- if (description === '') EmptyStringDescriptionStore[result] = true;- return result;- };- copyConstructorProperties(SymbolWrapper, NativeSymbol);- var symbolPrototype = SymbolWrapper.prototype = NativeSymbol.prototype;- symbolPrototype.constructor = SymbolWrapper;-- var symbolToString = symbolPrototype.toString;- var native = String(NativeSymbol('test')) == 'Symbol(test)';- var regexp = /^Symbol\((.*)\)[^)]+$/;- defineProperty$2(symbolPrototype, 'description', {- configurable: true,- get: function description() {- var symbol = isObject(this) ? this.valueOf() : this;- var string = symbolToString.call(symbol);- if (has(EmptyStringDescriptionStore, symbol)) return '';- var desc = native ? string.slice(7, -1) : string.replace(regexp, '$1');- return desc === '' ? undefined : desc;- }- });-- _export({ global: true, forced: true }, {- Symbol: SymbolWrapper- });- }-- // `Symbol.iterator` well-known symbol- // https://tc39.github.io/ecma262/#sec-symbol.iterator- defineWellKnownSymbol('iterator');-- var createProperty = function (object, key, value) {- var propertyKey = toPrimitive(key);- if (propertyKey in object) objectDefineProperty.f(object, propertyKey, createPropertyDescriptor(0, value));- else object[propertyKey] = value;- };-- var userAgent = getBuiltIn('navigator', 'userAgent') || '';-- var process = global_1.process;- var versions = process && process.versions;- var v8 = versions && versions.v8;- var match, version;-- if (v8) {- match = v8.split('.');- version = match[0] + match[1];- } else if (userAgent) {- match = userAgent.match(/Edge\/(\d+)/);- if (!match || match[1] >= 74) {- match = userAgent.match(/Chrome\/(\d+)/);- if (match) version = match[1];- }- }-- var v8Version = version && +version;-- var SPECIES$1 = wellKnownSymbol('species');-- var arrayMethodHasSpeciesSupport = function (METHOD_NAME) {- // We can't use this feature detection in V8 since it causes- // deoptimization and serious performance degradation- // https://github.com/zloirock/core-js/issues/677- return v8Version >= 51 || !fails(function () {- var array = [];- var constructor = array.constructor = {};- constructor[SPECIES$1] = function () {- return { foo: 1 };- };- return array[METHOD_NAME](Boolean).foo !== 1;- });- };-- var IS_CONCAT_SPREADABLE = wellKnownSymbol('isConcatSpreadable');- var MAX_SAFE_INTEGER = 0x1FFFFFFFFFFFFF;- var MAXIMUM_ALLOWED_INDEX_EXCEEDED = 'Maximum allowed index exceeded';-- // We can't use this feature detection in V8 since it causes- // deoptimization and serious performance degradation- // https://github.com/zloirock/core-js/issues/679- var IS_CONCAT_SPREADABLE_SUPPORT = v8Version >= 51 || !fails(function () {- var array = [];- array[IS_CONCAT_SPREADABLE] = false;- return array.concat()[0] !== array;- });-- var SPECIES_SUPPORT = arrayMethodHasSpeciesSupport('concat');-- var isConcatSpreadable = function (O) {- if (!isObject(O)) return false;- var spreadable = O[IS_CONCAT_SPREADABLE];- return spreadable !== undefined ? !!spreadable : isArray(O);- };-- var FORCED = !IS_CONCAT_SPREADABLE_SUPPORT || !SPECIES_SUPPORT;-- // `Array.prototype.concat` method- // https://tc39.github.io/ecma262/#sec-array.prototype.concat- // with adding support of @@isConcatSpreadable and @@species- _export({ target: 'Array', proto: true, forced: FORCED }, {- concat: function concat(arg) { // eslint-disable-line no-unused-vars- var O = toObject(this);- var A = arraySpeciesCreate(O, 0);- var n = 0;- var i, k, length, len, E;- for (i = -1, length = arguments.length; i < length; i++) {- E = i === -1 ? O : arguments[i];- if (isConcatSpreadable(E)) {- len = toLength(E.length);- if (n + len > MAX_SAFE_INTEGER) throw TypeError(MAXIMUM_ALLOWED_INDEX_EXCEEDED);- for (k = 0; k < len; k++, n++) if (k in E) createProperty(A, n, E[k]);- } else {- if (n >= MAX_SAFE_INTEGER) throw TypeError(MAXIMUM_ALLOWED_INDEX_EXCEEDED);- createProperty(A, n++, E);- }- }- A.length = n;- return A;- }- });-- var $filter = arrayIteration.filter;---- var HAS_SPECIES_SUPPORT = arrayMethodHasSpeciesSupport('filter');- // Edge 14- issue- var USES_TO_LENGTH = HAS_SPECIES_SUPPORT && !fails(function () {- [].filter.call({ length: -1, 0: 1 }, function (it) { throw it; });- });-- // `Array.prototype.filter` method- // https://tc39.github.io/ecma262/#sec-array.prototype.filter- // with adding support of @@species- _export({ target: 'Array', proto: true, forced: !HAS_SPECIES_SUPPORT || !USES_TO_LENGTH }, {- filter: function filter(callbackfn /* , thisArg */) {- return $filter(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);- }- });-- var UNSCOPABLES = wellKnownSymbol('unscopables');- var ArrayPrototype = Array.prototype;-- // Array.prototype[@@unscopables]- // https://tc39.github.io/ecma262/#sec-array.prototype-@@unscopables- if (ArrayPrototype[UNSCOPABLES] == undefined) {- objectDefineProperty.f(ArrayPrototype, UNSCOPABLES, {- configurable: true,- value: objectCreate(null)- });- }-- // add a key to Array.prototype[@@unscopables]- var addToUnscopables = function (key) {- ArrayPrototype[UNSCOPABLES][key] = true;- };-- var $find = arrayIteration.find;--- var FIND = 'find';- var SKIPS_HOLES = true;-- // Shouldn't skip holes- if (FIND in []) Array(1)[FIND](function () { SKIPS_HOLES = false; });-- // `Array.prototype.find` method- // https://tc39.github.io/ecma262/#sec-array.prototype.find- _export({ target: 'Array', proto: true, forced: SKIPS_HOLES }, {- find: function find(callbackfn /* , that = undefined */) {- return $find(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);- }- });-- // https://tc39.github.io/ecma262/#sec-array.prototype-@@unscopables- addToUnscopables(FIND);-- var $findIndex = arrayIteration.findIndex;--- var FIND_INDEX = 'findIndex';- var SKIPS_HOLES$1 = true;-- // Shouldn't skip holes- if (FIND_INDEX in []) Array(1)[FIND_INDEX](function () { SKIPS_HOLES$1 = false; });-- // `Array.prototype.findIndex` method- // https://tc39.github.io/ecma262/#sec-array.prototype.findindex- _export({ target: 'Array', proto: true, forced: SKIPS_HOLES$1 }, {- findIndex: function findIndex(callbackfn /* , that = undefined */) {- return $findIndex(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);- }- });-- // https://tc39.github.io/ecma262/#sec-array.prototype-@@unscopables- addToUnscopables(FIND_INDEX);-- var $includes = arrayIncludes.includes;--- // `Array.prototype.includes` method- // https://tc39.github.io/ecma262/#sec-array.prototype.includes- _export({ target: 'Array', proto: true }, {- includes: function includes(el /* , fromIndex = 0 */) {- return $includes(this, el, arguments.length > 1 ? arguments[1] : undefined);- }- });-- // https://tc39.github.io/ecma262/#sec-array.prototype-@@unscopables- addToUnscopables('includes');-- var sloppyArrayMethod = function (METHOD_NAME, argument) {- var method = [][METHOD_NAME];- return !method || !fails(function () {- // eslint-disable-next-line no-useless-call,no-throw-literal- method.call(null, argument || function () { throw 1; }, 1);- });- };-- var $indexOf = arrayIncludes.indexOf;--- var nativeIndexOf = [].indexOf;-- var NEGATIVE_ZERO = !!nativeIndexOf && 1 / [1].indexOf(1, -0) < 0;- var SLOPPY_METHOD = sloppyArrayMethod('indexOf');-- // `Array.prototype.indexOf` method- // https://tc39.github.io/ecma262/#sec-array.prototype.indexof- _export({ target: 'Array', proto: true, forced: NEGATIVE_ZERO || SLOPPY_METHOD }, {- indexOf: function indexOf(searchElement /* , fromIndex = 0 */) {- return NEGATIVE_ZERO- // convert -0 to +0- ? nativeIndexOf.apply(this, arguments) || 0- : $indexOf(this, searchElement, arguments.length > 1 ? arguments[1] : undefined);- }- });-- var correctPrototypeGetter = !fails(function () {- function F() { /* empty */ }- F.prototype.constructor = null;- return Object.getPrototypeOf(new F()) !== F.prototype;- });-- var IE_PROTO$1 = sharedKey('IE_PROTO');- var ObjectPrototype$1 = Object.prototype;-- // `Object.getPrototypeOf` method- // https://tc39.github.io/ecma262/#sec-object.getprototypeof- var objectGetPrototypeOf = correctPrototypeGetter ? Object.getPrototypeOf : function (O) {- O = toObject(O);- if (has(O, IE_PROTO$1)) return O[IE_PROTO$1];- if (typeof O.constructor == 'function' && O instanceof O.constructor) {- return O.constructor.prototype;- } return O instanceof Object ? ObjectPrototype$1 : null;- };-- var ITERATOR = wellKnownSymbol('iterator');- var BUGGY_SAFARI_ITERATORS = false;-- var returnThis = function () { return this; };-- // `%IteratorPrototype%` object- // https://tc39.github.io/ecma262/#sec-%iteratorprototype%-object- var IteratorPrototype, PrototypeOfArrayIteratorPrototype, arrayIterator;-- if ([].keys) {- arrayIterator = [].keys();- // Safari 8 has buggy iterators w/o `next`- if (!('next' in arrayIterator)) BUGGY_SAFARI_ITERATORS = true;- else {- PrototypeOfArrayIteratorPrototype = objectGetPrototypeOf(objectGetPrototypeOf(arrayIterator));- if (PrototypeOfArrayIteratorPrototype !== Object.prototype) IteratorPrototype = PrototypeOfArrayIteratorPrototype;- }- }-- if (IteratorPrototype == undefined) IteratorPrototype = {};-- // 25.1.2.1.1 %IteratorPrototype%[@@iterator]()- if ( !has(IteratorPrototype, ITERATOR)) {- createNonEnumerableProperty(IteratorPrototype, ITERATOR, returnThis);- }-- var iteratorsCore = {- IteratorPrototype: IteratorPrototype,- BUGGY_SAFARI_ITERATORS: BUGGY_SAFARI_ITERATORS- };-- var IteratorPrototype$1 = iteratorsCore.IteratorPrototype;-- var createIteratorConstructor = function (IteratorConstructor, NAME, next) {- var TO_STRING_TAG = NAME + ' Iterator';- IteratorConstructor.prototype = objectCreate(IteratorPrototype$1, { next: createPropertyDescriptor(1, next) });- setToStringTag(IteratorConstructor, TO_STRING_TAG, false);- return IteratorConstructor;- };-- var aPossiblePrototype = function (it) {- if (!isObject(it) && it !== null) {- throw TypeError("Can't set " + String(it) + ' as a prototype');- } return it;- };-- // `Object.setPrototypeOf` method- // https://tc39.github.io/ecma262/#sec-object.setprototypeof- // Works with __proto__ only. Old v8 can't work with null proto objects.- /* eslint-disable no-proto */- var objectSetPrototypeOf = Object.setPrototypeOf || ('__proto__' in {} ? function () {- var CORRECT_SETTER = false;- var test = {};- var setter;- try {- setter = Object.getOwnPropertyDescriptor(Object.prototype, '__proto__').set;- setter.call(test, []);- CORRECT_SETTER = test instanceof Array;- } catch (error) { /* empty */ }- return function setPrototypeOf(O, proto) {- anObject(O);- aPossiblePrototype(proto);- if (CORRECT_SETTER) setter.call(O, proto);- else O.__proto__ = proto;- return O;- };- }() : undefined);-- var IteratorPrototype$2 = iteratorsCore.IteratorPrototype;- var BUGGY_SAFARI_ITERATORS$1 = iteratorsCore.BUGGY_SAFARI_ITERATORS;- var ITERATOR$1 = wellKnownSymbol('iterator');- var KEYS = 'keys';- var VALUES = 'values';- var ENTRIES = 'entries';-- var returnThis$1 = function () { return this; };-- var defineIterator = function (Iterable, NAME, IteratorConstructor, next, DEFAULT, IS_SET, FORCED) {- createIteratorConstructor(IteratorConstructor, NAME, next);-- var getIterationMethod = function (KIND) {- if (KIND === DEFAULT && defaultIterator) return defaultIterator;- if (!BUGGY_SAFARI_ITERATORS$1 && KIND in IterablePrototype) return IterablePrototype[KIND];- switch (KIND) {- case KEYS: return function keys() { return new IteratorConstructor(this, KIND); };- case VALUES: return function values() { return new IteratorConstructor(this, KIND); };- case ENTRIES: return function entries() { return new IteratorConstructor(this, KIND); };- } return function () { return new IteratorConstructor(this); };- };-- var TO_STRING_TAG = NAME + ' Iterator';- var INCORRECT_VALUES_NAME = false;- var IterablePrototype = Iterable.prototype;- var nativeIterator = IterablePrototype[ITERATOR$1]- || IterablePrototype['@@iterator']- || DEFAULT && IterablePrototype[DEFAULT];- var defaultIterator = !BUGGY_SAFARI_ITERATORS$1 && nativeIterator || getIterationMethod(DEFAULT);- var anyNativeIterator = NAME == 'Array' ? IterablePrototype.entries || nativeIterator : nativeIterator;- var CurrentIteratorPrototype, methods, KEY;-- // fix native- if (anyNativeIterator) {- CurrentIteratorPrototype = objectGetPrototypeOf(anyNativeIterator.call(new Iterable()));- if (IteratorPrototype$2 !== Object.prototype && CurrentIteratorPrototype.next) {- if ( objectGetPrototypeOf(CurrentIteratorPrototype) !== IteratorPrototype$2) {- if (objectSetPrototypeOf) {- objectSetPrototypeOf(CurrentIteratorPrototype, IteratorPrototype$2);- } else if (typeof CurrentIteratorPrototype[ITERATOR$1] != 'function') {- createNonEnumerableProperty(CurrentIteratorPrototype, ITERATOR$1, returnThis$1);- }- }- // Set @@toStringTag to native iterators- setToStringTag(CurrentIteratorPrototype, TO_STRING_TAG, true);- }- }-- // fix Array#{values, @@iterator}.name in V8 / FF- if (DEFAULT == VALUES && nativeIterator && nativeIterator.name !== VALUES) {- INCORRECT_VALUES_NAME = true;- defaultIterator = function values() { return nativeIterator.call(this); };- }-- // define iterator- if ( IterablePrototype[ITERATOR$1] !== defaultIterator) {- createNonEnumerableProperty(IterablePrototype, ITERATOR$1, defaultIterator);- }-- // export additional methods- if (DEFAULT) {- methods = {- values: getIterationMethod(VALUES),- keys: IS_SET ? defaultIterator : getIterationMethod(KEYS),- entries: getIterationMethod(ENTRIES)- };- if (FORCED) for (KEY in methods) {- if (BUGGY_SAFARI_ITERATORS$1 || INCORRECT_VALUES_NAME || !(KEY in IterablePrototype)) {- redefine(IterablePrototype, KEY, methods[KEY]);- }- } else _export({ target: NAME, proto: true, forced: BUGGY_SAFARI_ITERATORS$1 || INCORRECT_VALUES_NAME }, methods);- }-- return methods;- };-- var ARRAY_ITERATOR = 'Array Iterator';- var setInternalState$1 = internalState.set;- var getInternalState$1 = internalState.getterFor(ARRAY_ITERATOR);-- // `Array.prototype.entries` method- // https://tc39.github.io/ecma262/#sec-array.prototype.entries- // `Array.prototype.keys` method- // https://tc39.github.io/ecma262/#sec-array.prototype.keys- // `Array.prototype.values` method- // https://tc39.github.io/ecma262/#sec-array.prototype.values- // `Array.prototype[@@iterator]` method- // https://tc39.github.io/ecma262/#sec-array.prototype-@@iterator- // `CreateArrayIterator` internal method- // https://tc39.github.io/ecma262/#sec-createarrayiterator- var es_array_iterator = defineIterator(Array, 'Array', function (iterated, kind) {- setInternalState$1(this, {- type: ARRAY_ITERATOR,- target: toIndexedObject(iterated), // target- index: 0, // next index- kind: kind // kind- });- // `%ArrayIteratorPrototype%.next` method- // https://tc39.github.io/ecma262/#sec-%arrayiteratorprototype%.next- }, function () {- var state = getInternalState$1(this);- var target = state.target;- var kind = state.kind;- var index = state.index++;- if (!target || index >= target.length) {- state.target = undefined;- return { value: undefined, done: true };- }- if (kind == 'keys') return { value: index, done: false };- if (kind == 'values') return { value: target[index], done: false };- return { value: [index, target[index]], done: false };- }, 'values');-- // https://tc39.github.io/ecma262/#sec-array.prototype-@@unscopables- addToUnscopables('keys');- addToUnscopables('values');- addToUnscopables('entries');-- var nativeJoin = [].join;-- var ES3_STRINGS = indexedObject != Object;- var SLOPPY_METHOD$1 = sloppyArrayMethod('join', ',');-- // `Array.prototype.join` method- // https://tc39.github.io/ecma262/#sec-array.prototype.join- _export({ target: 'Array', proto: true, forced: ES3_STRINGS || SLOPPY_METHOD$1 }, {- join: function join(separator) {- return nativeJoin.call(toIndexedObject(this), separator === undefined ? ',' : separator);- }- });-- var $map = arrayIteration.map;---- var HAS_SPECIES_SUPPORT$1 = arrayMethodHasSpeciesSupport('map');- // FF49- issue- var USES_TO_LENGTH$1 = HAS_SPECIES_SUPPORT$1 && !fails(function () {- [].map.call({ length: -1, 0: 1 }, function (it) { throw it; });- });-- // `Array.prototype.map` method- // https://tc39.github.io/ecma262/#sec-array.prototype.map- // with adding support of @@species- _export({ target: 'Array', proto: true, forced: !HAS_SPECIES_SUPPORT$1 || !USES_TO_LENGTH$1 }, {- map: function map(callbackfn /* , thisArg */) {- return $map(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);- }- });-- var nativeReverse = [].reverse;- var test = [1, 2];-- // `Array.prototype.reverse` method- // https://tc39.github.io/ecma262/#sec-array.prototype.reverse- // fix for Safari 12.0 bug- // https://bugs.webkit.org/show_bug.cgi?id=188794- _export({ target: 'Array', proto: true, forced: String(test) === String(test.reverse()) }, {- reverse: function reverse() {- // eslint-disable-next-line no-self-assign- if (isArray(this)) this.length = this.length;- return nativeReverse.call(this);- }- });-- var SPECIES$2 = wellKnownSymbol('species');- var nativeSlice = [].slice;- var max$1 = Math.max;-- // `Array.prototype.slice` method- // https://tc39.github.io/ecma262/#sec-array.prototype.slice- // fallback for not array-like ES3 strings and DOM objects- _export({ target: 'Array', proto: true, forced: !arrayMethodHasSpeciesSupport('slice') }, {- slice: function slice(start, end) {- var O = toIndexedObject(this);- var length = toLength(O.length);- var k = toAbsoluteIndex(start, length);- var fin = toAbsoluteIndex(end === undefined ? length : end, length);- // inline `ArraySpeciesCreate` for usage native `Array#slice` where it's possible- var Constructor, result, n;- if (isArray(O)) {- Constructor = O.constructor;- // cross-realm fallback- if (typeof Constructor == 'function' && (Constructor === Array || isArray(Constructor.prototype))) {- Constructor = undefined;- } else if (isObject(Constructor)) {- Constructor = Constructor[SPECIES$2];- if (Constructor === null) Constructor = undefined;- }- if (Constructor === Array || Constructor === undefined) {- return nativeSlice.call(O, k, fin);- }- }- result = new (Constructor === undefined ? Array : Constructor)(max$1(fin - k, 0));- for (n = 0; k < fin; k++, n++) if (k in O) createProperty(result, n, O[k]);- result.length = n;- return result;- }- });-- var test$1 = [];- var nativeSort = test$1.sort;-- // IE8-- var FAILS_ON_UNDEFINED = fails(function () {- test$1.sort(undefined);- });- // V8 bug- var FAILS_ON_NULL = fails(function () {- test$1.sort(null);- });- // Old WebKit- var SLOPPY_METHOD$2 = sloppyArrayMethod('sort');-- var FORCED$1 = FAILS_ON_UNDEFINED || !FAILS_ON_NULL || SLOPPY_METHOD$2;-- // `Array.prototype.sort` method- // https://tc39.github.io/ecma262/#sec-array.prototype.sort- _export({ target: 'Array', proto: true, forced: FORCED$1 }, {- sort: function sort(comparefn) {- return comparefn === undefined- ? nativeSort.call(toObject(this))- : nativeSort.call(toObject(this), aFunction$1(comparefn));- }- });-- var max$2 = Math.max;- var min$2 = Math.min;- var MAX_SAFE_INTEGER$1 = 0x1FFFFFFFFFFFFF;- var MAXIMUM_ALLOWED_LENGTH_EXCEEDED = 'Maximum allowed length exceeded';-- // `Array.prototype.splice` method- // https://tc39.github.io/ecma262/#sec-array.prototype.splice- // with adding support of @@species- _export({ target: 'Array', proto: true, forced: !arrayMethodHasSpeciesSupport('splice') }, {- splice: function splice(start, deleteCount /* , ...items */) {- var O = toObject(this);- var len = toLength(O.length);- var actualStart = toAbsoluteIndex(start, len);- var argumentsLength = arguments.length;- var insertCount, actualDeleteCount, A, k, from, to;- if (argumentsLength === 0) {- insertCount = actualDeleteCount = 0;- } else if (argumentsLength === 1) {- insertCount = 0;- actualDeleteCount = len - actualStart;- } else {- insertCount = argumentsLength - 2;- actualDeleteCount = min$2(max$2(toInteger(deleteCount), 0), len - actualStart);- }- if (len + insertCount - actualDeleteCount > MAX_SAFE_INTEGER$1) {- throw TypeError(MAXIMUM_ALLOWED_LENGTH_EXCEEDED);- }- A = arraySpeciesCreate(O, actualDeleteCount);- for (k = 0; k < actualDeleteCount; k++) {- from = actualStart + k;- if (from in O) createProperty(A, k, O[from]);- }- A.length = actualDeleteCount;- if (insertCount < actualDeleteCount) {- for (k = actualStart; k < len - actualDeleteCount; k++) {- from = k + actualDeleteCount;- to = k + insertCount;- if (from in O) O[to] = O[from];- else delete O[to];- }- for (k = len; k > len - actualDeleteCount + insertCount; k--) delete O[k - 1];- } else if (insertCount > actualDeleteCount) {- for (k = len - actualDeleteCount; k > actualStart; k--) {- from = k + actualDeleteCount - 1;- to = k + insertCount - 1;- if (from in O) O[to] = O[from];- else delete O[to];- }- }- for (k = 0; k < insertCount; k++) {- O[k + actualStart] = arguments[k + 2];- }- O.length = len - actualDeleteCount + insertCount;- return A;- }- });-- // makes subclassing work correct for wrapped built-ins- var inheritIfRequired = function ($this, dummy, Wrapper) {- var NewTarget, NewTargetPrototype;- if (- // it can work only with native `setPrototypeOf`- objectSetPrototypeOf &&- // we haven't completely correct pre-ES6 way for getting `new.target`, so use this- typeof (NewTarget = dummy.constructor) == 'function' &&- NewTarget !== Wrapper &&- isObject(NewTargetPrototype = NewTarget.prototype) &&- NewTargetPrototype !== Wrapper.prototype- ) objectSetPrototypeOf($this, NewTargetPrototype);- return $this;- };-- // a string of all valid unicode whitespaces- // eslint-disable-next-line max-len- var whitespaces = '\u0009\u000A\u000B\u000C\u000D\u0020\u00A0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF';-- var whitespace = '[' + whitespaces + ']';- var ltrim = RegExp('^' + whitespace + whitespace + '*');- var rtrim = RegExp(whitespace + whitespace + '*$');-- // `String.prototype.{ trim, trimStart, trimEnd, trimLeft, trimRight }` methods implementation- var createMethod$2 = function (TYPE) {- return function ($this) {- var string = String(requireObjectCoercible($this));- if (TYPE & 1) string = string.replace(ltrim, '');- if (TYPE & 2) string = string.replace(rtrim, '');- return string;- };- };-- var stringTrim = {- // `String.prototype.{ trimLeft, trimStart }` methods- // https://tc39.github.io/ecma262/#sec-string.prototype.trimstart- start: createMethod$2(1),- // `String.prototype.{ trimRight, trimEnd }` methods- // https://tc39.github.io/ecma262/#sec-string.prototype.trimend- end: createMethod$2(2),- // `String.prototype.trim` method- // https://tc39.github.io/ecma262/#sec-string.prototype.trim- trim: createMethod$2(3)- };-- var getOwnPropertyNames = objectGetOwnPropertyNames.f;- var getOwnPropertyDescriptor$2 = objectGetOwnPropertyDescriptor.f;- var defineProperty$3 = objectDefineProperty.f;- var trim = stringTrim.trim;-- var NUMBER = 'Number';- var NativeNumber = global_1[NUMBER];- var NumberPrototype = NativeNumber.prototype;-- // Opera ~12 has broken Object#toString- var BROKEN_CLASSOF = classofRaw(objectCreate(NumberPrototype)) == NUMBER;-- // `ToNumber` abstract operation- // https://tc39.github.io/ecma262/#sec-tonumber- var toNumber = function (argument) {- var it = toPrimitive(argument, false);- var first, third, radix, maxCode, digits, length, index, code;- if (typeof it == 'string' && it.length > 2) {- it = trim(it);- first = it.charCodeAt(0);- if (first === 43 || first === 45) {- third = it.charCodeAt(2);- if (third === 88 || third === 120) return NaN; // Number('+0x1') should be NaN, old V8 fix- } else if (first === 48) {- switch (it.charCodeAt(1)) {- case 66: case 98: radix = 2; maxCode = 49; break; // fast equal of /^0b[01]+$/i- case 79: case 111: radix = 8; maxCode = 55; break; // fast equal of /^0o[0-7]+$/i- default: return +it;- }- digits = it.slice(2);- length = digits.length;- for (index = 0; index < length; index++) {- code = digits.charCodeAt(index);- // parseInt parses a string to a first unavailable symbol- // but ToNumber should return NaN if a string contains unavailable symbols- if (code < 48 || code > maxCode) return NaN;- } return parseInt(digits, radix);- }- } return +it;- };-- // `Number` constructor- // https://tc39.github.io/ecma262/#sec-number-constructor- if (isForced_1(NUMBER, !NativeNumber(' 0o1') || !NativeNumber('0b1') || NativeNumber('+0x1'))) {- var NumberWrapper = function Number(value) {- var it = arguments.length < 1 ? 0 : value;- var dummy = this;- return dummy instanceof NumberWrapper- // check on 1..constructor(foo) case- && (BROKEN_CLASSOF ? fails(function () { NumberPrototype.valueOf.call(dummy); }) : classofRaw(dummy) != NUMBER)- ? inheritIfRequired(new NativeNumber(toNumber(it)), dummy, NumberWrapper) : toNumber(it);- };- for (var keys$1 = descriptors ? getOwnPropertyNames(NativeNumber) : (- // ES3:- 'MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,' +- // ES2015 (in case, if modules with ES2015 Number statics required before):- 'EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,' +- 'MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger'- ).split(','), j = 0, key; keys$1.length > j; j++) {- if (has(NativeNumber, key = keys$1[j]) && !has(NumberWrapper, key)) {- defineProperty$3(NumberWrapper, key, getOwnPropertyDescriptor$2(NativeNumber, key));- }- }- NumberWrapper.prototype = NumberPrototype;- NumberPrototype.constructor = NumberWrapper;- redefine(global_1, NUMBER, NumberWrapper);- }-- var nativeAssign = Object.assign;- var defineProperty$4 = Object.defineProperty;-- // `Object.assign` method- // https://tc39.github.io/ecma262/#sec-object.assign- var objectAssign = !nativeAssign || fails(function () {- // should have correct order of operations (Edge bug)- if (descriptors && nativeAssign({ b: 1 }, nativeAssign(defineProperty$4({}, 'a', {- enumerable: true,- get: function () {- defineProperty$4(this, 'b', {- value: 3,- enumerable: false- });- }- }), { b: 2 })).b !== 1) return true;- // should work with symbols and should have deterministic property order (V8 bug)- var A = {};- var B = {};- // eslint-disable-next-line no-undef- var symbol = Symbol();- var alphabet = 'abcdefghijklmnopqrst';- A[symbol] = 7;- alphabet.split('').forEach(function (chr) { B[chr] = chr; });- return nativeAssign({}, A)[symbol] != 7 || objectKeys(nativeAssign({}, B)).join('') != alphabet;- }) ? function assign(target, source) { // eslint-disable-line no-unused-vars- var T = toObject(target);- var argumentsLength = arguments.length;- var index = 1;- var getOwnPropertySymbols = objectGetOwnPropertySymbols.f;- var propertyIsEnumerable = objectPropertyIsEnumerable.f;- while (argumentsLength > index) {- var S = indexedObject(arguments[index++]);- var keys = getOwnPropertySymbols ? objectKeys(S).concat(getOwnPropertySymbols(S)) : objectKeys(S);- var length = keys.length;- var j = 0;- var key;- while (length > j) {- key = keys[j++];- if (!descriptors || propertyIsEnumerable.call(S, key)) T[key] = S[key];- }- } return T;- } : nativeAssign;-- // `Object.assign` method- // https://tc39.github.io/ecma262/#sec-object.assign- _export({ target: 'Object', stat: true, forced: Object.assign !== objectAssign }, {- assign: objectAssign- });-- var propertyIsEnumerable = objectPropertyIsEnumerable.f;-- // `Object.{ entries, values }` methods implementation- var createMethod$3 = function (TO_ENTRIES) {- return function (it) {- var O = toIndexedObject(it);- var keys = objectKeys(O);- var length = keys.length;- var i = 0;- var result = [];- var key;- while (length > i) {- key = keys[i++];- if (!descriptors || propertyIsEnumerable.call(O, key)) {- result.push(TO_ENTRIES ? [key, O[key]] : O[key]);- }- }- return result;- };- };-- var objectToArray = {- // `Object.entries` method- // https://tc39.github.io/ecma262/#sec-object.entries- entries: createMethod$3(true),- // `Object.values` method- // https://tc39.github.io/ecma262/#sec-object.values- values: createMethod$3(false)- };-- var $entries = objectToArray.entries;-- // `Object.entries` method- // https://tc39.github.io/ecma262/#sec-object.entries- _export({ target: 'Object', stat: true }, {- entries: function entries(O) {- return $entries(O);- }- });-- var TO_STRING_TAG$1 = wellKnownSymbol('toStringTag');- var test$2 = {};-- test$2[TO_STRING_TAG$1] = 'z';-- var toStringTagSupport = String(test$2) === '[object z]';-- var TO_STRING_TAG$2 = wellKnownSymbol('toStringTag');- // ES3 wrong here- var CORRECT_ARGUMENTS = classofRaw(function () { return arguments; }()) == 'Arguments';-- // fallback for IE11 Script Access Denied error- var tryGet = function (it, key) {- try {- return it[key];- } catch (error) { /* empty */ }- };-- // getting tag from ES6+ `Object.prototype.toString`- var classof = toStringTagSupport ? classofRaw : function (it) {- var O, tag, result;- return it === undefined ? 'Undefined' : it === null ? 'Null'- // @@toStringTag case- : typeof (tag = tryGet(O = Object(it), TO_STRING_TAG$2)) == 'string' ? tag- // builtinTag case- : CORRECT_ARGUMENTS ? classofRaw(O)- // ES3 arguments fallback- : (result = classofRaw(O)) == 'Object' && typeof O.callee == 'function' ? 'Arguments' : result;- };-- // `Object.prototype.toString` method implementation- // https://tc39.github.io/ecma262/#sec-object.prototype.tostring- var objectToString = toStringTagSupport ? {}.toString : function toString() {- return '[object ' + classof(this) + ']';- };-- // `Object.prototype.toString` method- // https://tc39.github.io/ecma262/#sec-object.prototype.tostring- if (!toStringTagSupport) {- redefine(Object.prototype, 'toString', objectToString, { unsafe: true });- }-- var trim$1 = stringTrim.trim;--- var nativeParseFloat = global_1.parseFloat;- var FORCED$2 = 1 / nativeParseFloat(whitespaces + '-0') !== -Infinity;-- // `parseFloat` method- // https://tc39.github.io/ecma262/#sec-parsefloat-string- var _parseFloat = FORCED$2 ? function parseFloat(string) {- var trimmedString = trim$1(String(string));- var result = nativeParseFloat(trimmedString);- return result === 0 && trimmedString.charAt(0) == '-' ? -0 : result;- } : nativeParseFloat;-- // `parseFloat` method- // https://tc39.github.io/ecma262/#sec-parsefloat-string- _export({ global: true, forced: parseFloat != _parseFloat }, {- parseFloat: _parseFloat- });-- var trim$2 = stringTrim.trim;--- var nativeParseInt = global_1.parseInt;- var hex = /^[+-]?0[Xx]/;- var FORCED$3 = nativeParseInt(whitespaces + '08') !== 8 || nativeParseInt(whitespaces + '0x16') !== 22;-- // `parseInt` method- // https://tc39.github.io/ecma262/#sec-parseint-string-radix- var _parseInt = FORCED$3 ? function parseInt(string, radix) {- var S = trim$2(String(string));- return nativeParseInt(S, (radix >>> 0) || (hex.test(S) ? 16 : 10));- } : nativeParseInt;-- // `parseInt` method- // https://tc39.github.io/ecma262/#sec-parseint-string-radix- _export({ global: true, forced: parseInt != _parseInt }, {- parseInt: _parseInt- });-- var MATCH = wellKnownSymbol('match');-- // `IsRegExp` abstract operation- // https://tc39.github.io/ecma262/#sec-isregexp- var isRegexp = function (it) {- var isRegExp;- return isObject(it) && ((isRegExp = it[MATCH]) !== undefined ? !!isRegExp : classofRaw(it) == 'RegExp');- };-- // `RegExp.prototype.flags` getter implementation- // https://tc39.github.io/ecma262/#sec-get-regexp.prototype.flags- var regexpFlags = function () {- var that = anObject(this);- var result = '';- if (that.global) result += 'g';- if (that.ignoreCase) result += 'i';- if (that.multiline) result += 'm';- if (that.dotAll) result += 's';- if (that.unicode) result += 'u';- if (that.sticky) result += 'y';- return result;- };-- // babel-minify transpiles RegExp('a', 'y') -> /a/y and it causes SyntaxError,- // so we use an intermediate function.- function RE(s, f) {- return RegExp(s, f);- }-- var UNSUPPORTED_Y = fails(function () {- // babel-minify transpiles RegExp('a', 'y') -> /a/y and it causes SyntaxError- var re = RE('a', 'y');- re.lastIndex = 2;- return re.exec('abcd') != null;- });-- var BROKEN_CARET = fails(function () {- // https://bugzilla.mozilla.org/show_bug.cgi?id=773687- var re = RE('^r', 'gy');- re.lastIndex = 2;- return re.exec('str') != null;- });-- var regexpStickyHelpers = {- UNSUPPORTED_Y: UNSUPPORTED_Y,- BROKEN_CARET: BROKEN_CARET- };-- var SPECIES$3 = wellKnownSymbol('species');-- var setSpecies = function (CONSTRUCTOR_NAME) {- var Constructor = getBuiltIn(CONSTRUCTOR_NAME);- var defineProperty = objectDefineProperty.f;-- if (descriptors && Constructor && !Constructor[SPECIES$3]) {- defineProperty(Constructor, SPECIES$3, {- configurable: true,- get: function () { return this; }- });- }- };-- var defineProperty$5 = objectDefineProperty.f;- var getOwnPropertyNames$1 = objectGetOwnPropertyNames.f;------ var setInternalState$2 = internalState.set;---- var MATCH$1 = wellKnownSymbol('match');- var NativeRegExp = global_1.RegExp;- var RegExpPrototype = NativeRegExp.prototype;- var re1 = /a/g;- var re2 = /a/g;-- // "new" should create a new object, old webkit bug- var CORRECT_NEW = new NativeRegExp(re1) !== re1;-- var UNSUPPORTED_Y$1 = regexpStickyHelpers.UNSUPPORTED_Y;-- var FORCED$4 = descriptors && isForced_1('RegExp', (!CORRECT_NEW || UNSUPPORTED_Y$1 || fails(function () {- re2[MATCH$1] = false;- // RegExp constructor can alter flags and IsRegExp works correct with @@match- return NativeRegExp(re1) != re1 || NativeRegExp(re2) == re2 || NativeRegExp(re1, 'i') != '/a/i';- })));-- // `RegExp` constructor- // https://tc39.github.io/ecma262/#sec-regexp-constructor- if (FORCED$4) {- var RegExpWrapper = function RegExp(pattern, flags) {- var thisIsRegExp = this instanceof RegExpWrapper;- var patternIsRegExp = isRegexp(pattern);- var flagsAreUndefined = flags === undefined;- var sticky;-- if (!thisIsRegExp && patternIsRegExp && pattern.constructor === RegExpWrapper && flagsAreUndefined) {- return pattern;- }-- if (CORRECT_NEW) {- if (patternIsRegExp && !flagsAreUndefined) pattern = pattern.source;- } else if (pattern instanceof RegExpWrapper) {- if (flagsAreUndefined) flags = regexpFlags.call(pattern);- pattern = pattern.source;- }-- if (UNSUPPORTED_Y$1) {- sticky = !!flags && flags.indexOf('y') > -1;- if (sticky) flags = flags.replace(/y/g, '');- }-- var result = inheritIfRequired(- CORRECT_NEW ? new NativeRegExp(pattern, flags) : NativeRegExp(pattern, flags),- thisIsRegExp ? this : RegExpPrototype,- RegExpWrapper- );-- if (UNSUPPORTED_Y$1 && sticky) setInternalState$2(result, { sticky: sticky });-- return result;- };- var proxy = function (key) {- key in RegExpWrapper || defineProperty$5(RegExpWrapper, key, {- configurable: true,- get: function () { return NativeRegExp[key]; },- set: function (it) { NativeRegExp[key] = it; }- });- };- var keys$2 = getOwnPropertyNames$1(NativeRegExp);- var index = 0;- while (keys$2.length > index) proxy(keys$2[index++]);- RegExpPrototype.constructor = RegExpWrapper;- RegExpWrapper.prototype = RegExpPrototype;- redefine(global_1, 'RegExp', RegExpWrapper);- }-- // https://tc39.github.io/ecma262/#sec-get-regexp-@@species- setSpecies('RegExp');-- var nativeExec = RegExp.prototype.exec;- // This always refers to the native implementation, because the- // String#replace polyfill uses ./fix-regexp-well-known-symbol-logic.js,- // which loads this file before patching the method.- var nativeReplace = String.prototype.replace;-- var patchedExec = nativeExec;-- var UPDATES_LAST_INDEX_WRONG = (function () {- var re1 = /a/;- var re2 = /b*/g;- nativeExec.call(re1, 'a');- nativeExec.call(re2, 'a');- return re1.lastIndex !== 0 || re2.lastIndex !== 0;- })();-- var UNSUPPORTED_Y$2 = regexpStickyHelpers.UNSUPPORTED_Y || regexpStickyHelpers.BROKEN_CARET;-- // nonparticipating capturing group, copied from es5-shim's String#split patch.- var NPCG_INCLUDED = /()??/.exec('')[1] !== undefined;-- var PATCH = UPDATES_LAST_INDEX_WRONG || NPCG_INCLUDED || UNSUPPORTED_Y$2;-- if (PATCH) {- patchedExec = function exec(str) {- var re = this;- var lastIndex, reCopy, match, i;- var sticky = UNSUPPORTED_Y$2 && re.sticky;- var flags = regexpFlags.call(re);- var source = re.source;- var charsAdded = 0;- var strCopy = str;-- if (sticky) {- flags = flags.replace('y', '');- if (flags.indexOf('g') === -1) {- flags += 'g';- }-- strCopy = String(str).slice(re.lastIndex);- // Support anchored sticky behavior.- if (re.lastIndex > 0 && (!re.multiline || re.multiline && str[re.lastIndex - 1] !== '\n')) {- source = '(?: ' + source + ')';- strCopy = ' ' + strCopy;- charsAdded++;- }- // ^(? + rx + ) is needed, in combination with some str slicing, to- // simulate the 'y' flag.- reCopy = new RegExp('^(?:' + source + ')', flags);- }-- if (NPCG_INCLUDED) {- reCopy = new RegExp('^' + source + '$(?!\\s)', flags);- }- if (UPDATES_LAST_INDEX_WRONG) lastIndex = re.lastIndex;-- match = nativeExec.call(sticky ? reCopy : re, strCopy);-- if (sticky) {- if (match) {- match.input = match.input.slice(charsAdded);- match[0] = match[0].slice(charsAdded);- match.index = re.lastIndex;- re.lastIndex += match[0].length;- } else re.lastIndex = 0;- } else if (UPDATES_LAST_INDEX_WRONG && match) {- re.lastIndex = re.global ? match.index + match[0].length : lastIndex;- }- if (NPCG_INCLUDED && match && match.length > 1) {- // Fix browsers whose `exec` methods don't consistently return `undefined`- // for NPCG, like IE8. NOTE: This doesn' work for /(.?)?/- nativeReplace.call(match[0], reCopy, function () {- for (i = 1; i < arguments.length - 2; i++) {- if (arguments[i] === undefined) match[i] = undefined;- }- });- }-- return match;- };- }-- var regexpExec = patchedExec;-- _export({ target: 'RegExp', proto: true, forced: /./.exec !== regexpExec }, {- exec: regexpExec- });-- var TO_STRING = 'toString';- var RegExpPrototype$1 = RegExp.prototype;- var nativeToString = RegExpPrototype$1[TO_STRING];-- var NOT_GENERIC = fails(function () { return nativeToString.call({ source: 'a', flags: 'b' }) != '/a/b'; });- // FF44- RegExp#toString has a wrong name- var INCORRECT_NAME = nativeToString.name != TO_STRING;-- // `RegExp.prototype.toString` method- // https://tc39.github.io/ecma262/#sec-regexp.prototype.tostring- if (NOT_GENERIC || INCORRECT_NAME) {- redefine(RegExp.prototype, TO_STRING, function toString() {- var R = anObject(this);- var p = String(R.source);- var rf = R.flags;- var f = String(rf === undefined && R instanceof RegExp && !('flags' in RegExpPrototype$1) ? regexpFlags.call(R) : rf);- return '/' + p + '/' + f;- }, { unsafe: true });- }-- var notARegexp = function (it) {- if (isRegexp(it)) {- throw TypeError("The method doesn't accept regular expressions");- } return it;- };-- var MATCH$2 = wellKnownSymbol('match');-- var correctIsRegexpLogic = function (METHOD_NAME) {- var regexp = /./;- try {- '/./'[METHOD_NAME](regexp);- } catch (e) {- try {- regexp[MATCH$2] = false;- return '/./'[METHOD_NAME](regexp);- } catch (f) { /* empty */ }- } return false;- };-- // `String.prototype.includes` method- // https://tc39.github.io/ecma262/#sec-string.prototype.includes- _export({ target: 'String', proto: true, forced: !correctIsRegexpLogic('includes') }, {- includes: function includes(searchString /* , position = 0 */) {- return !!~String(requireObjectCoercible(this))- .indexOf(notARegexp(searchString), arguments.length > 1 ? arguments[1] : undefined);- }- });-- // `String.prototype.{ codePointAt, at }` methods implementation- var createMethod$4 = function (CONVERT_TO_STRING) {- return function ($this, pos) {- var S = String(requireObjectCoercible($this));- var position = toInteger(pos);- var size = S.length;- var first, second;- if (position < 0 || position >= size) return CONVERT_TO_STRING ? '' : undefined;- first = S.charCodeAt(position);- return first < 0xD800 || first > 0xDBFF || position + 1 === size- || (second = S.charCodeAt(position + 1)) < 0xDC00 || second > 0xDFFF- ? CONVERT_TO_STRING ? S.charAt(position) : first- : CONVERT_TO_STRING ? S.slice(position, position + 2) : (first - 0xD800 << 10) + (second - 0xDC00) + 0x10000;- };- };-- var stringMultibyte = {- // `String.prototype.codePointAt` method- // https://tc39.github.io/ecma262/#sec-string.prototype.codepointat- codeAt: createMethod$4(false),- // `String.prototype.at` method- // https://github.com/mathiasbynens/String.prototype.at- charAt: createMethod$4(true)- };-- var charAt = stringMultibyte.charAt;---- var STRING_ITERATOR = 'String Iterator';- var setInternalState$3 = internalState.set;- var getInternalState$2 = internalState.getterFor(STRING_ITERATOR);-- // `String.prototype[@@iterator]` method- // https://tc39.github.io/ecma262/#sec-string.prototype-@@iterator- defineIterator(String, 'String', function (iterated) {- setInternalState$3(this, {- type: STRING_ITERATOR,- string: String(iterated),- index: 0- });- // `%StringIteratorPrototype%.next` method- // https://tc39.github.io/ecma262/#sec-%stringiteratorprototype%.next- }, function next() {- var state = getInternalState$2(this);- var string = state.string;- var index = state.index;- var point;- if (index >= string.length) return { value: undefined, done: true };- point = charAt(string, index);- state.index += point.length;- return { value: point, done: false };- });-- var SPECIES$4 = wellKnownSymbol('species');-- var REPLACE_SUPPORTS_NAMED_GROUPS = !fails(function () {- // #replace needs built-in support for named groups.- // #match works fine because it just return the exec results, even if it has- // a "grops" property.- var re = /./;- re.exec = function () {- var result = [];- result.groups = { a: '7' };- return result;- };- return ''.replace(re, '$<a>') !== '7';- });-- // IE <= 11 replaces $0 with the whole match, as if it was $&- // https://stackoverflow.com/questions/6024666/getting-ie-to-replace-a-regex-with-the-literal-string-0- var REPLACE_KEEPS_$0 = (function () {- return 'a'.replace(/./, '$0') === '$0';- })();-- // Chrome 51 has a buggy "split" implementation when RegExp#exec !== nativeExec- // Weex JS has frozen built-in prototypes, so use try / catch wrapper- var SPLIT_WORKS_WITH_OVERWRITTEN_EXEC = !fails(function () {- var re = /(?:)/;- var originalExec = re.exec;- re.exec = function () { return originalExec.apply(this, arguments); };- var result = 'ab'.split(re);- return result.length !== 2 || result[0] !== 'a' || result[1] !== 'b';- });-- var fixRegexpWellKnownSymbolLogic = function (KEY, length, exec, sham) {- var SYMBOL = wellKnownSymbol(KEY);-- var DELEGATES_TO_SYMBOL = !fails(function () {- // String methods call symbol-named RegEp methods- var O = {};- O[SYMBOL] = function () { return 7; };- return ''[KEY](O) != 7;- });-- var DELEGATES_TO_EXEC = DELEGATES_TO_SYMBOL && !fails(function () {- // Symbol-named RegExp methods call .exec- var execCalled = false;- var re = /a/;-- if (KEY === 'split') {- // We can't use real regex here since it causes deoptimization- // and serious performance degradation in V8- // https://github.com/zloirock/core-js/issues/306- re = {};- // RegExp[@@split] doesn't call the regex's exec method, but first creates- // a new one. We need to return the patched regex when creating the new one.- re.constructor = {};- re.constructor[SPECIES$4] = function () { return re; };- re.flags = '';- re[SYMBOL] = /./[SYMBOL];- }-- re.exec = function () { execCalled = true; return null; };-- re[SYMBOL]('');- return !execCalled;- });-- if (- !DELEGATES_TO_SYMBOL ||- !DELEGATES_TO_EXEC ||- (KEY === 'replace' && !(REPLACE_SUPPORTS_NAMED_GROUPS && REPLACE_KEEPS_$0)) ||- (KEY === 'split' && !SPLIT_WORKS_WITH_OVERWRITTEN_EXEC)- ) {- var nativeRegExpMethod = /./[SYMBOL];- var methods = exec(SYMBOL, ''[KEY], function (nativeMethod, regexp, str, arg2, forceStringMethod) {- if (regexp.exec === regexpExec) {- if (DELEGATES_TO_SYMBOL && !forceStringMethod) {- // The native String method already delegates to @@method (this- // polyfilled function), leasing to infinite recursion.- // We avoid it by directly calling the native @@method method.- return { done: true, value: nativeRegExpMethod.call(regexp, str, arg2) };- }- return { done: true, value: nativeMethod.call(str, regexp, arg2) };- }- return { done: false };- }, { REPLACE_KEEPS_$0: REPLACE_KEEPS_$0 });- var stringMethod = methods[0];- var regexMethod = methods[1];-- redefine(String.prototype, KEY, stringMethod);- redefine(RegExp.prototype, SYMBOL, length == 2- // 21.2.5.8 RegExp.prototype[@@replace](string, replaceValue)- // 21.2.5.11 RegExp.prototype[@@split](string, limit)- ? function (string, arg) { return regexMethod.call(string, this, arg); }- // 21.2.5.6 RegExp.prototype[@@match](string)- // 21.2.5.9 RegExp.prototype[@@search](string)- : function (string) { return regexMethod.call(string, this); }- );- }-- if (sham) createNonEnumerableProperty(RegExp.prototype[SYMBOL], 'sham', true);- };-- var charAt$1 = stringMultibyte.charAt;-- // `AdvanceStringIndex` abstract operation- // https://tc39.github.io/ecma262/#sec-advancestringindex- var advanceStringIndex = function (S, index, unicode) {- return index + (unicode ? charAt$1(S, index).length : 1);- };-- // `RegExpExec` abstract operation- // https://tc39.github.io/ecma262/#sec-regexpexec- var regexpExecAbstract = function (R, S) {- var exec = R.exec;- if (typeof exec === 'function') {- var result = exec.call(R, S);- if (typeof result !== 'object') {- throw TypeError('RegExp exec method returned something other than an Object or null');- }- return result;- }-- if (classofRaw(R) !== 'RegExp') {- throw TypeError('RegExp#exec called on incompatible receiver');- }-- return regexpExec.call(R, S);- };-- var max$3 = Math.max;- var min$3 = Math.min;- var floor$1 = Math.floor;- var SUBSTITUTION_SYMBOLS = /\$([$&'`]|\d\d?|<[^>]*>)/g;- var SUBSTITUTION_SYMBOLS_NO_NAMED = /\$([$&'`]|\d\d?)/g;-- var maybeToString = function (it) {- return it === undefined ? it : String(it);- };-- // @@replace logic- fixRegexpWellKnownSymbolLogic('replace', 2, function (REPLACE, nativeReplace, maybeCallNative, reason) {- return [- // `String.prototype.replace` method- // https://tc39.github.io/ecma262/#sec-string.prototype.replace- function replace(searchValue, replaceValue) {- var O = requireObjectCoercible(this);- var replacer = searchValue == undefined ? undefined : searchValue[REPLACE];- return replacer !== undefined- ? replacer.call(searchValue, O, replaceValue)- : nativeReplace.call(String(O), searchValue, replaceValue);- },- // `RegExp.prototype[@@replace]` method- // https://tc39.github.io/ecma262/#sec-regexp.prototype-@@replace- function (regexp, replaceValue) {- if (reason.REPLACE_KEEPS_$0 || (typeof replaceValue === 'string' && replaceValue.indexOf('$0') === -1)) {- var res = maybeCallNative(nativeReplace, regexp, this, replaceValue);- if (res.done) return res.value;- }-- var rx = anObject(regexp);- var S = String(this);-- var functionalReplace = typeof replaceValue === 'function';- if (!functionalReplace) replaceValue = String(replaceValue);-- var global = rx.global;- if (global) {- var fullUnicode = rx.unicode;- rx.lastIndex = 0;- }- var results = [];- while (true) {- var result = regexpExecAbstract(rx, S);- if (result === null) break;-- results.push(result);- if (!global) break;-- var matchStr = String(result[0]);- if (matchStr === '') rx.lastIndex = advanceStringIndex(S, toLength(rx.lastIndex), fullUnicode);- }-- var accumulatedResult = '';- var nextSourcePosition = 0;- for (var i = 0; i < results.length; i++) {- result = results[i];-- var matched = String(result[0]);- var position = max$3(min$3(toInteger(result.index), S.length), 0);- var captures = [];- // NOTE: This is equivalent to- // captures = result.slice(1).map(maybeToString)- // but for some reason `nativeSlice.call(result, 1, result.length)` (called in- // the slice polyfill when slicing native arrays) "doesn't work" in safari 9 and- // causes a crash (https://pastebin.com/N21QzeQA) when trying to debug it.- for (var j = 1; j < result.length; j++) captures.push(maybeToString(result[j]));- var namedCaptures = result.groups;- if (functionalReplace) {- var replacerArgs = [matched].concat(captures, position, S);- if (namedCaptures !== undefined) replacerArgs.push(namedCaptures);- var replacement = String(replaceValue.apply(undefined, replacerArgs));- } else {- replacement = getSubstitution(matched, S, position, captures, namedCaptures, replaceValue);- }- if (position >= nextSourcePosition) {- accumulatedResult += S.slice(nextSourcePosition, position) + replacement;- nextSourcePosition = position + matched.length;- }- }- return accumulatedResult + S.slice(nextSourcePosition);- }- ];-- // https://tc39.github.io/ecma262/#sec-getsubstitution- function getSubstitution(matched, str, position, captures, namedCaptures, replacement) {- var tailPos = position + matched.length;- var m = captures.length;- var symbols = SUBSTITUTION_SYMBOLS_NO_NAMED;- if (namedCaptures !== undefined) {- namedCaptures = toObject(namedCaptures);- symbols = SUBSTITUTION_SYMBOLS;- }- return nativeReplace.call(replacement, symbols, function (match, ch) {- var capture;- switch (ch.charAt(0)) {- case '$': return '$';- case '&': return matched;- case '`': return str.slice(0, position);- case "'": return str.slice(tailPos);- case '<':- capture = namedCaptures[ch.slice(1, -1)];- break;- default: // \d\d?- var n = +ch;- if (n === 0) return match;- if (n > m) {- var f = floor$1(n / 10);- if (f === 0) return match;- if (f <= m) return captures[f - 1] === undefined ? ch.charAt(1) : captures[f - 1] + ch.charAt(1);- return match;- }- capture = captures[n - 1];- }- return capture === undefined ? '' : capture;- });- }- });-- // `SameValue` abstract operation- // https://tc39.github.io/ecma262/#sec-samevalue- var sameValue = Object.is || function is(x, y) {- // eslint-disable-next-line no-self-compare- return x === y ? x !== 0 || 1 / x === 1 / y : x != x && y != y;- };-- // @@search logic- fixRegexpWellKnownSymbolLogic('search', 1, function (SEARCH, nativeSearch, maybeCallNative) {- return [- // `String.prototype.search` method- // https://tc39.github.io/ecma262/#sec-string.prototype.search- function search(regexp) {- var O = requireObjectCoercible(this);- var searcher = regexp == undefined ? undefined : regexp[SEARCH];- return searcher !== undefined ? searcher.call(regexp, O) : new RegExp(regexp)[SEARCH](String(O));- },- // `RegExp.prototype[@@search]` method- // https://tc39.github.io/ecma262/#sec-regexp.prototype-@@search- function (regexp) {- var res = maybeCallNative(nativeSearch, regexp, this);- if (res.done) return res.value;-- var rx = anObject(regexp);- var S = String(this);-- var previousLastIndex = rx.lastIndex;- if (!sameValue(previousLastIndex, 0)) rx.lastIndex = 0;- var result = regexpExecAbstract(rx, S);- if (!sameValue(rx.lastIndex, previousLastIndex)) rx.lastIndex = previousLastIndex;- return result === null ? -1 : result.index;- }- ];- });-- var SPECIES$5 = wellKnownSymbol('species');-- // `SpeciesConstructor` abstract operation- // https://tc39.github.io/ecma262/#sec-speciesconstructor- var speciesConstructor = function (O, defaultConstructor) {- var C = anObject(O).constructor;- var S;- return C === undefined || (S = anObject(C)[SPECIES$5]) == undefined ? defaultConstructor : aFunction$1(S);- };-- var arrayPush = [].push;- var min$4 = Math.min;- var MAX_UINT32 = 0xFFFFFFFF;-- // babel-minify transpiles RegExp('x', 'y') -> /x/y and it causes SyntaxError- var SUPPORTS_Y = !fails(function () { return !RegExp(MAX_UINT32, 'y'); });-- // @@split logic- fixRegexpWellKnownSymbolLogic('split', 2, function (SPLIT, nativeSplit, maybeCallNative) {- var internalSplit;- if (- 'abbc'.split(/(b)*/)[1] == 'c' ||- 'test'.split(/(?:)/, -1).length != 4 ||- 'ab'.split(/(?:ab)*/).length != 2 ||- '.'.split(/(.?)(.?)/).length != 4 ||- '.'.split(/()()/).length > 1 ||- ''.split(/.?/).length- ) {- // based on es5-shim implementation, need to rework it- internalSplit = function (separator, limit) {- var string = String(requireObjectCoercible(this));- var lim = limit === undefined ? MAX_UINT32 : limit >>> 0;- if (lim === 0) return [];- if (separator === undefined) return [string];- // If `separator` is not a regex, use native split- if (!isRegexp(separator)) {- return nativeSplit.call(string, separator, lim);- }- var output = [];- var flags = (separator.ignoreCase ? 'i' : '') +- (separator.multiline ? 'm' : '') +- (separator.unicode ? 'u' : '') +- (separator.sticky ? 'y' : '');- var lastLastIndex = 0;- // Make `global` and avoid `lastIndex` issues by working with a copy- var separatorCopy = new RegExp(separator.source, flags + 'g');- var match, lastIndex, lastLength;- while (match = regexpExec.call(separatorCopy, string)) {- lastIndex = separatorCopy.lastIndex;- if (lastIndex > lastLastIndex) {- output.push(string.slice(lastLastIndex, match.index));- if (match.length > 1 && match.index < string.length) arrayPush.apply(output, match.slice(1));- lastLength = match[0].length;- lastLastIndex = lastIndex;- if (output.length >= lim) break;- }- if (separatorCopy.lastIndex === match.index) separatorCopy.lastIndex++; // Avoid an infinite loop- }- if (lastLastIndex === string.length) {- if (lastLength || !separatorCopy.test('')) output.push('');- } else output.push(string.slice(lastLastIndex));- return output.length > lim ? output.slice(0, lim) : output;- };- // Chakra, V8- } else if ('0'.split(undefined, 0).length) {- internalSplit = function (separator, limit) {- return separator === undefined && limit === 0 ? [] : nativeSplit.call(this, separator, limit);- };- } else internalSplit = nativeSplit;-- return [- // `String.prototype.split` method- // https://tc39.github.io/ecma262/#sec-string.prototype.split- function split(separator, limit) {- var O = requireObjectCoercible(this);- var splitter = separator == undefined ? undefined : separator[SPLIT];- return splitter !== undefined- ? splitter.call(separator, O, limit)- : internalSplit.call(String(O), separator, limit);- },- // `RegExp.prototype[@@split]` method- // https://tc39.github.io/ecma262/#sec-regexp.prototype-@@split- //- // NOTE: This cannot be properly polyfilled in engines that don't support- // the 'y' flag.- function (regexp, limit) {- var res = maybeCallNative(internalSplit, regexp, this, limit, internalSplit !== nativeSplit);- if (res.done) return res.value;-- var rx = anObject(regexp);- var S = String(this);- var C = speciesConstructor(rx, RegExp);-- var unicodeMatching = rx.unicode;- var flags = (rx.ignoreCase ? 'i' : '') +- (rx.multiline ? 'm' : '') +- (rx.unicode ? 'u' : '') +- (SUPPORTS_Y ? 'y' : 'g');-- // ^(? + rx + ) is needed, in combination with some S slicing, to- // simulate the 'y' flag.- var splitter = new C(SUPPORTS_Y ? rx : '^(?:' + rx.source + ')', flags);- var lim = limit === undefined ? MAX_UINT32 : limit >>> 0;- if (lim === 0) return [];- if (S.length === 0) return regexpExecAbstract(splitter, S) === null ? [S] : [];- var p = 0;- var q = 0;- var A = [];- while (q < S.length) {- splitter.lastIndex = SUPPORTS_Y ? q : 0;- var z = regexpExecAbstract(splitter, SUPPORTS_Y ? S : S.slice(q));- var e;- if (- z === null ||- (e = min$4(toLength(splitter.lastIndex + (SUPPORTS_Y ? 0 : q)), S.length)) === p- ) {- q = advanceStringIndex(S, q, unicodeMatching);- } else {- A.push(S.slice(p, q));- if (A.length === lim) return A;- for (var i = 1; i <= z.length - 1; i++) {- A.push(z[i]);- if (A.length === lim) return A;- }- q = p = e;- }- }- A.push(S.slice(p));- return A;- }- ];- }, !SUPPORTS_Y);-- var non = '\u200B\u0085\u180E';-- // check that a method works with the correct list- // of whitespaces and has a correct name- var forcedStringTrimMethod = function (METHOD_NAME) {- return fails(function () {- return !!whitespaces[METHOD_NAME]() || non[METHOD_NAME]() != non || whitespaces[METHOD_NAME].name !== METHOD_NAME;- });- };-- var $trim = stringTrim.trim;--- // `String.prototype.trim` method- // https://tc39.github.io/ecma262/#sec-string.prototype.trim- _export({ target: 'String', proto: true, forced: forcedStringTrimMethod('trim') }, {- trim: function trim() {- return $trim(this);- }- });-- // iterable DOM collections- // flag - `iterable` interface - 'entries', 'keys', 'values', 'forEach' methods- var domIterables = {- CSSRuleList: 0,- CSSStyleDeclaration: 0,- CSSValueList: 0,- ClientRectList: 0,- DOMRectList: 0,- DOMStringList: 0,- DOMTokenList: 1,- DataTransferItemList: 0,- FileList: 0,- HTMLAllCollection: 0,- HTMLCollection: 0,- HTMLFormElement: 0,- HTMLSelectElement: 0,- MediaList: 0,- MimeTypeArray: 0,- NamedNodeMap: 0,- NodeList: 1,- PaintRequestList: 0,- Plugin: 0,- PluginArray: 0,- SVGLengthList: 0,- SVGNumberList: 0,- SVGPathSegList: 0,- SVGPointList: 0,- SVGStringList: 0,- SVGTransformList: 0,- SourceBufferList: 0,- StyleSheetList: 0,- TextTrackCueList: 0,- TextTrackList: 0,- TouchList: 0- };-- var $forEach$1 = arrayIteration.forEach;--- // `Array.prototype.forEach` method implementation- // https://tc39.github.io/ecma262/#sec-array.prototype.foreach- var arrayForEach = sloppyArrayMethod('forEach') ? function forEach(callbackfn /* , thisArg */) {- return $forEach$1(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);- } : [].forEach;-- for (var COLLECTION_NAME in domIterables) {- var Collection = global_1[COLLECTION_NAME];- var CollectionPrototype = Collection && Collection.prototype;- // some Chrome versions have non-configurable methods on DOMTokenList- if (CollectionPrototype && CollectionPrototype.forEach !== arrayForEach) try {- createNonEnumerableProperty(CollectionPrototype, 'forEach', arrayForEach);- } catch (error) {- CollectionPrototype.forEach = arrayForEach;- }- }-- var ITERATOR$2 = wellKnownSymbol('iterator');- var TO_STRING_TAG$3 = wellKnownSymbol('toStringTag');- var ArrayValues = es_array_iterator.values;-- for (var COLLECTION_NAME$1 in domIterables) {- var Collection$1 = global_1[COLLECTION_NAME$1];- var CollectionPrototype$1 = Collection$1 && Collection$1.prototype;- if (CollectionPrototype$1) {- // some Chrome versions have non-configurable methods on DOMTokenList- if (CollectionPrototype$1[ITERATOR$2] !== ArrayValues) try {- createNonEnumerableProperty(CollectionPrototype$1, ITERATOR$2, ArrayValues);- } catch (error) {- CollectionPrototype$1[ITERATOR$2] = ArrayValues;- }- if (!CollectionPrototype$1[TO_STRING_TAG$3]) {- createNonEnumerableProperty(CollectionPrototype$1, TO_STRING_TAG$3, COLLECTION_NAME$1);- }- if (domIterables[COLLECTION_NAME$1]) for (var METHOD_NAME in es_array_iterator) {- // some Chrome versions have non-configurable methods on DOMTokenList- if (CollectionPrototype$1[METHOD_NAME] !== es_array_iterator[METHOD_NAME]) try {- createNonEnumerableProperty(CollectionPrototype$1, METHOD_NAME, es_array_iterator[METHOD_NAME]);- } catch (error) {- CollectionPrototype$1[METHOD_NAME] = es_array_iterator[METHOD_NAME];- }- }- }- }-- function _typeof(obj) {- if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {- _typeof = function (obj) {- return typeof obj;- };- } else {- _typeof = function (obj) {- return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;- };- }-- return _typeof(obj);- }-- function _classCallCheck(instance, Constructor) {- if (!(instance instanceof Constructor)) {- throw new TypeError("Cannot call a class as a function");- }- }-- function _defineProperties(target, props) {- for (var i = 0; i < props.length; i++) {- var descriptor = props[i];- descriptor.enumerable = descriptor.enumerable || false;- descriptor.configurable = true;- if ("value" in descriptor) descriptor.writable = true;- Object.defineProperty(target, descriptor.key, descriptor);- }- }-- function _createClass(Constructor, protoProps, staticProps) {- if (protoProps) _defineProperties(Constructor.prototype, protoProps);- if (staticProps) _defineProperties(Constructor, staticProps);- return Constructor;- }-- function _slicedToArray(arr, i) {- return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest();- }-- function _toConsumableArray(arr) {- return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread();- }-- function _arrayWithoutHoles(arr) {- if (Array.isArray(arr)) {- for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) arr2[i] = arr[i];-- return arr2;- }- }-- function _arrayWithHoles(arr) {- if (Array.isArray(arr)) return arr;- }-- function _iterableToArray(iter) {- if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter);- }-- function _iterableToArrayLimit(arr, i) {- if (!(Symbol.iterator in Object(arr) || Object.prototype.toString.call(arr) === "[object Arguments]")) {- return;- }-- var _arr = [];- var _n = true;- var _d = false;- var _e = undefined;-- try {- for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) {- _arr.push(_s.value);-- if (i && _arr.length === i) break;- }- } catch (err) {- _d = true;- _e = err;- } finally {- try {- if (!_n && _i["return"] != null) _i["return"]();- } finally {- if (_d) throw _e;- }- }-- return _arr;- }-- function _nonIterableSpread() {- throw new TypeError("Invalid attempt to spread non-iterable instance");- }-- function _nonIterableRest() {- throw new TypeError("Invalid attempt to destructure non-iterable instance");- }-- var VERSION = '1.18.0';- var bootstrapVersion = 4;-- try {- var rawVersion = $.fn.dropdown.Constructor.VERSION; // Only try to parse VERSION if it is defined.- // It is undefined in older versions of Bootstrap (tested with 3.1.1).-- if (rawVersion !== undefined) {- bootstrapVersion = parseInt(rawVersion, 10);- }- } catch (e) {// ignore- }-- try {- // eslint-disable-next-line no-undef- var _rawVersion = bootstrap.Tooltip.VERSION;-- if (_rawVersion !== undefined) {- bootstrapVersion = parseInt(_rawVersion, 10);- }- } catch (e) {// ignore- }-- var CONSTANTS = {- 3: {- iconsPrefix: 'glyphicon',- icons: {- paginationSwitchDown: 'glyphicon-collapse-down icon-chevron-down',- paginationSwitchUp: 'glyphicon-collapse-up icon-chevron-up',- refresh: 'glyphicon-refresh icon-refresh',- toggleOff: 'glyphicon-list-alt icon-list-alt',- toggleOn: 'glyphicon-list-alt icon-list-alt',- columns: 'glyphicon-th icon-th',- detailOpen: 'glyphicon-plus icon-plus',- detailClose: 'glyphicon-minus icon-minus',- fullscreen: 'glyphicon-fullscreen',- search: 'glyphicon-search',- clearSearch: 'glyphicon-trash'- },- classes: {- buttonsPrefix: 'btn',- buttons: 'default',- buttonsGroup: 'btn-group',- buttonsDropdown: 'btn-group',- pull: 'pull',- inputGroup: 'input-group',- inputPrefix: 'input-',- input: 'form-control',- paginationDropdown: 'btn-group dropdown',- dropup: 'dropup',- dropdownActive: 'active',- paginationActive: 'active',- buttonActive: 'active'- },- html: {- toolbarDropdown: ['<ul class="dropdown-menu" role="menu">', '</ul>'],- toolbarDropdownItem: '<li class="dropdown-item-marker" role="menuitem"><label>%s</label></li>',- toolbarDropdownSeparator: '<li class="divider"></li>',- pageDropdown: ['<ul class="dropdown-menu" role="menu">', '</ul>'],- pageDropdownItem: '<li role="menuitem" class="%s"><a href="#">%s</a></li>',- dropdownCaret: '<span class="caret"></span>',- pagination: ['<ul class="pagination%s">', '</ul>'],- paginationItem: '<li class="page-item%s"><a class="page-link" aria-label="%s" href="javascript:void(0)">%s</a></li>',- icon: '<i class="%s %s"></i>',- inputGroup: '<div class="input-group">%s<span class="input-group-btn">%s</span></div>',- searchInput: '<input class="%s%s" type="text" placeholder="%s">',- searchButton: '<button class="%s" type="button" name="search" title="%s">%s %s</button>',- searchClearButton: '<button class="%s" type="button" name="clearSearch" title="%s">%s %s</button>'- }- },- 4: {- iconsPrefix: 'fa',- icons: {- paginationSwitchDown: 'fa-caret-square-down',- paginationSwitchUp: 'fa-caret-square-up',- refresh: 'fa-sync',- toggleOff: 'fa-toggle-off',- toggleOn: 'fa-toggle-on',- columns: 'fa-th-list',- detailOpen: 'fa-plus',- detailClose: 'fa-minus',- fullscreen: 'fa-arrows-alt',- search: 'fa-search',- clearSearch: 'fa-trash'- },- classes: {- buttonsPrefix: 'btn',- buttons: 'secondary',- buttonsGroup: 'btn-group',- buttonsDropdown: 'btn-group',- pull: 'float',- inputGroup: 'btn-group',- inputPrefix: 'form-control-',- input: 'form-control',- paginationDropdown: 'btn-group dropdown',- dropup: 'dropup',- dropdownActive: 'active',- paginationActive: 'active',- buttonActive: 'active'- },- html: {- toolbarDropdown: ['<div class="dropdown-menu dropdown-menu-right">', '</div>'],- toolbarDropdownItem: '<label class="dropdown-item dropdown-item-marker">%s</label>',- pageDropdown: ['<div class="dropdown-menu">', '</div>'],- pageDropdownItem: '<a class="dropdown-item %s" href="#">%s</a>',- toolbarDropdownSeparator: '<div class="dropdown-divider"></div>',- dropdownCaret: '<span class="caret"></span>',- pagination: ['<ul class="pagination%s">', '</ul>'],- paginationItem: '<li class="page-item%s"><a class="page-link" aria-label="%s" href="javascript:void(0)">%s</a></li>',- icon: '<i class="%s %s"></i>',- inputGroup: '<div class="input-group">%s<div class="input-group-append">%s</div></div>',- searchInput: '<input class="%s%s" type="text" placeholder="%s">',- searchButton: '<button class="%s" type="button" name="search" title="%s">%s %s</button>',- searchClearButton: '<button class="%s" type="button" name="clearSearch" title="%s">%s %s</button>'- }- },- 5: {- iconsPrefix: 'fa',- icons: {- paginationSwitchDown: 'fa-caret-square-down',- paginationSwitchUp: 'fa-caret-square-up',- refresh: 'fa-sync',- toggleOff: 'fa-toggle-off',- toggleOn: 'fa-toggle-on',- columns: 'fa-th-list',- detailOpen: 'fa-plus',- detailClose: 'fa-minus',- fullscreen: 'fa-arrows-alt',- search: 'fa-search',- clearSearch: 'fa-trash'- },- classes: {- buttonsPrefix: 'btn',- buttons: 'secondary',- buttonsGroup: 'btn-group',- buttonsDropdown: 'btn-group',- pull: 'float',- inputGroup: 'btn-group',- inputPrefix: 'form-control-',- input: 'form-control',- paginationDropdown: 'btn-group dropdown',- dropup: 'dropup',- dropdownActive: 'active',- paginationActive: 'active',- buttonActive: 'active'- },- html: {- toolbarDropdown: ['<div class="dropdown-menu dropdown-menu-right">', '</div>'],- toolbarDropdownItem: '<label class="dropdown-item dropdown-item-marker">%s</label>',- pageDropdown: ['<div class="dropdown-menu">', '</div>'],- pageDropdownItem: '<a class="dropdown-item %s" href="#">%s</a>',- toolbarDropdownSeparator: '<div class="dropdown-divider"></div>',- dropdownCaret: '<span class="caret"></span>',- pagination: ['<ul class="pagination%s">', '</ul>'],- paginationItem: '<li class="page-item%s"><a class="page-link" aria-label="%s" href="javascript:void(0)">%s</a></li>',- icon: '<i class="%s %s"></i>',- inputGroup: '<div class="input-group">%s<div class="input-group-append">%s</div></div>',- searchInput: '<input class="%s%s" type="text" placeholder="%s">',- searchButton: '<button class="%s" type="button" name="search" title="%s">%s %s</button>',- searchClearButton: '<button class="%s" type="button" name="clearSearch" title="%s">%s %s</button>'- }- }- }[bootstrapVersion];- var DEFAULTS = {- height: undefined,- classes: 'table table-bordered table-hover',- buttons: {},- theadClasses: '',- headerStyle: function headerStyle(column) {- return {};- },- rowStyle: function rowStyle(row, index) {- return {};- },- rowAttributes: function rowAttributes(row, index) {- return {};- },- undefinedText: '-',- locale: undefined,- virtualScroll: false,- virtualScrollItemHeight: undefined,- sortable: true,- sortClass: undefined,- silentSort: true,- sortName: undefined,- sortOrder: undefined,- sortReset: false,- sortStable: false,- rememberOrder: false,- serverSort: true,- customSort: undefined,- columns: [[]],- data: [],- url: undefined,- method: 'get',- cache: true,- contentType: 'application/json',- dataType: 'json',- ajax: undefined,- ajaxOptions: {},- queryParams: function queryParams(params) {- return params;- },- queryParamsType: 'limit',- // 'limit', undefined- responseHandler: function responseHandler(res) {- return res;- },- totalField: 'total',- totalNotFilteredField: 'totalNotFiltered',- dataField: 'rows',- footerField: 'footer',- pagination: false,- paginationParts: ['pageInfo', 'pageSize', 'pageList'],- showExtendedPagination: false,- paginationLoop: true,- sidePagination: 'client',- // client or server- totalRows: 0,- totalNotFiltered: 0,- pageNumber: 1,- pageSize: 10,- pageList: [10, 25, 50, 100],- paginationHAlign: 'right',- // right, left- paginationVAlign: 'bottom',- // bottom, top, both- paginationDetailHAlign: 'left',- // right, left- paginationPreText: '‹',- paginationNextText: '›',- paginationSuccessivelySize: 5,- // Maximum successively number of pages in a row- paginationPagesBySide: 1,- // Number of pages on each side (right, left) of the current page.- paginationUseIntermediate: false,- // Calculate intermediate pages for quick access- search: false,- searchHighlight: false,- searchOnEnterKey: false,- strictSearch: false,- searchSelector: false,- visibleSearch: false,- showButtonIcons: true,- showButtonText: false,- showSearchButton: false,- showSearchClearButton: false,- trimOnSearch: true,- searchAlign: 'right',- searchTimeOut: 500,- searchText: '',- customSearch: undefined,- showHeader: true,- showFooter: false,- footerStyle: function footerStyle(column) {- return {};- },- searchAccentNeutralise: false,- showColumns: false,- showColumnsToggleAll: false,- showColumnsSearch: false,- minimumCountColumns: 1,- showPaginationSwitch: false,- showRefresh: false,- showToggle: false,- showFullscreen: false,- smartDisplay: true,- escape: false,- filterOptions: {- filterAlgorithm: 'and'- },- idField: undefined,- selectItemName: 'btSelectItem',- clickToSelect: false,- ignoreClickToSelectOn: function ignoreClickToSelectOn(_ref) {- var tagName = _ref.tagName;- return ['A', 'BUTTON'].includes(tagName);- },- singleSelect: false,- checkboxHeader: true,- maintainMetaData: false,- multipleSelectRow: false,- uniqueId: undefined,- cardView: false,- detailView: false,- detailViewIcon: true,- detailViewByClick: false,- detailViewAlign: 'left',- detailFormatter: function detailFormatter(index, row) {- return '';- },- detailFilter: function detailFilter(index, row) {- return true;- },- toolbar: undefined,- toolbarAlign: 'left',- buttonsToolbar: undefined,- buttonsAlign: 'right',- buttonsOrder: ['paginationSwitch', 'refresh', 'toggle', 'fullscreen', 'columns'],- buttonsPrefix: CONSTANTS.classes.buttonsPrefix,- buttonsClass: CONSTANTS.classes.buttons,- icons: CONSTANTS.icons,- iconSize: undefined,- iconsPrefix: CONSTANTS.iconsPrefix,- // glyphicon or fa(font-awesome)- loadingFontSize: 'auto',- loadingTemplate: function loadingTemplate(loadingMessage) {- return "<span class=\"loading-wrap\">\n <span class=\"loading-text\">".concat(loadingMessage, "</span>\n <span class=\"animation-wrap\"><span class=\"animation-dot\"></span></span>\n </span>\n ");- },- onAll: function onAll(name, args) {- return false;- },- onClickCell: function onClickCell(field, value, row, $element) {- return false;- },- onDblClickCell: function onDblClickCell(field, value, row, $element) {- return false;- },- onClickRow: function onClickRow(item, $element) {- return false;- },- onDblClickRow: function onDblClickRow(item, $element) {- return false;- },- onSort: function onSort(name, order) {- return false;- },- onCheck: function onCheck(row) {- return false;- },- onUncheck: function onUncheck(row) {- return false;- },- onCheckAll: function onCheckAll(rows) {- return false;- },- onUncheckAll: function onUncheckAll(rows) {- return false;- },- onCheckSome: function onCheckSome(rows) {- return false;- },- onUncheckSome: function onUncheckSome(rows) {- return false;- },- onLoadSuccess: function onLoadSuccess(data) {- return false;- },- onLoadError: function onLoadError(status) {- return false;- },- onColumnSwitch: function onColumnSwitch(field, checked) {- return false;- },- onPageChange: function onPageChange(number, size) {- return false;- },- onSearch: function onSearch(text) {- return false;- },- onToggle: function onToggle(cardView) {- return false;- },- onPreBody: function onPreBody(data) {- return false;- },- onPostBody: function onPostBody() {- return false;- },- onPostHeader: function onPostHeader() {- return false;- },- onPostFooter: function onPostFooter() {- return false;- },- onExpandRow: function onExpandRow(index, row, $detail) {- return false;- },- onCollapseRow: function onCollapseRow(index, row) {- return false;- },- onRefreshOptions: function onRefreshOptions(options) {- return false;- },- onRefresh: function onRefresh(params) {- return false;- },- onResetView: function onResetView() {- return false;- },- onScrollBody: function onScrollBody() {- return false;- }- };- var EN = {- formatLoadingMessage: function formatLoadingMessage() {- return 'Loading, please wait';- },- formatRecordsPerPage: function formatRecordsPerPage(pageNumber) {- return "".concat(pageNumber, " rows per page");- },- formatShowingRows: function formatShowingRows(pageFrom, pageTo, totalRows, totalNotFiltered) {- if (totalNotFiltered !== undefined && totalNotFiltered > 0 && totalNotFiltered > totalRows) {- return "Showing ".concat(pageFrom, " to ").concat(pageTo, " of ").concat(totalRows, " rows (filtered from ").concat(totalNotFiltered, " total rows)");- }-- return "Showing ".concat(pageFrom, " to ").concat(pageTo, " of ").concat(totalRows, " rows");- },- formatSRPaginationPreText: function formatSRPaginationPreText() {- return 'previous page';- },- formatSRPaginationPageText: function formatSRPaginationPageText(page) {- return "to page ".concat(page);- },- formatSRPaginationNextText: function formatSRPaginationNextText() {- return 'next page';- },- formatDetailPagination: function formatDetailPagination(totalRows) {- return "Showing ".concat(totalRows, " rows");- },- formatSearch: function formatSearch() {- return 'Search';- },- formatClearSearch: function formatClearSearch() {- return 'Clear Search';- },- formatNoMatches: function formatNoMatches() {- return 'No matching records found';- },- formatPaginationSwitch: function formatPaginationSwitch() {- return 'Hide/Show pagination';- },- formatPaginationSwitchDown: function formatPaginationSwitchDown() {- return 'Show pagination';- },- formatPaginationSwitchUp: function formatPaginationSwitchUp() {- return 'Hide pagination';- },- formatRefresh: function formatRefresh() {- return 'Refresh';- },- formatToggle: function formatToggle() {- return 'Toggle';- },- formatToggleOn: function formatToggleOn() {- return 'Show card view';- },- formatToggleOff: function formatToggleOff() {- return 'Hide card view';- },- formatColumns: function formatColumns() {- return 'Columns';- },- formatColumnsToggleAll: function formatColumnsToggleAll() {- return 'Toggle all';- },- formatFullscreen: function formatFullscreen() {- return 'Fullscreen';- },- formatAllRows: function formatAllRows() {- return 'All';- }- };- var COLUMN_DEFAULTS = {- field: undefined,- title: undefined,- titleTooltip: undefined,- 'class': undefined,- width: undefined,- widthUnit: 'px',- rowspan: undefined,- colspan: undefined,- align: undefined,- // left, right, center- halign: undefined,- // left, right, center- falign: undefined,- // left, right, center- valign: undefined,- // top, middle, bottom- cellStyle: undefined,- radio: false,- checkbox: false,- checkboxEnabled: true,- clickToSelect: true,- showSelectTitle: false,- sortable: false,- sortName: undefined,- order: 'asc',- // asc, desc- sorter: undefined,- visible: true,- switchable: true,- cardVisible: true,- searchable: true,- formatter: undefined,- footerFormatter: undefined,- detailFormatter: undefined,- searchFormatter: true,- searchHighlightFormatter: false,- escape: false,- events: undefined- };- var METHODS = ['getOptions', 'refreshOptions', 'getData', 'getSelections', 'load', 'append', 'prepend', 'remove', 'removeAll', 'insertRow', 'updateRow', 'getRowByUniqueId', 'updateByUniqueId', 'removeByUniqueId', 'updateCell', 'updateCellByUniqueId', 'showRow', 'hideRow', 'getHiddenRows', 'showColumn', 'hideColumn', 'getVisibleColumns', 'getHiddenColumns', 'showAllColumns', 'hideAllColumns', 'mergeCells', 'checkAll', 'uncheckAll', 'checkInvert', 'check', 'uncheck', 'checkBy', 'uncheckBy', 'refresh', 'destroy', 'resetView', 'showLoading', 'hideLoading', 'togglePagination', 'toggleFullscreen', 'toggleView', 'resetSearch', 'filterBy', 'scrollTo', 'getScrollPosition', 'selectPage', 'prevPage', 'nextPage', 'toggleDetailView', 'expandRow', 'collapseRow', 'expandRowByUniqueId', 'collapseRowByUniqueId', 'expandAllRows', 'collapseAllRows', 'updateColumnTitle', 'updateFormatText'];- var EVENTS = {- 'all.bs.table': 'onAll',- 'click-row.bs.table': 'onClickRow',- 'dbl-click-row.bs.table': 'onDblClickRow',- 'click-cell.bs.table': 'onClickCell',- 'dbl-click-cell.bs.table': 'onDblClickCell',- 'sort.bs.table': 'onSort',- 'check.bs.table': 'onCheck',- 'uncheck.bs.table': 'onUncheck',- 'check-all.bs.table': 'onCheckAll',- 'uncheck-all.bs.table': 'onUncheckAll',- 'check-some.bs.table': 'onCheckSome',- 'uncheck-some.bs.table': 'onUncheckSome',- 'load-success.bs.table': 'onLoadSuccess',- 'load-error.bs.table': 'onLoadError',- 'column-switch.bs.table': 'onColumnSwitch',- 'page-change.bs.table': 'onPageChange',- 'search.bs.table': 'onSearch',- 'toggle.bs.table': 'onToggle',- 'pre-body.bs.table': 'onPreBody',- 'post-body.bs.table': 'onPostBody',- 'post-header.bs.table': 'onPostHeader',- 'post-footer.bs.table': 'onPostFooter',- 'expand-row.bs.table': 'onExpandRow',- 'collapse-row.bs.table': 'onCollapseRow',- 'refresh-options.bs.table': 'onRefreshOptions',- 'reset-view.bs.table': 'onResetView',- 'refresh.bs.table': 'onRefresh',- 'scroll-body.bs.table': 'onScrollBody'- };- Object.assign(DEFAULTS, EN);- var Constants = {- VERSION: VERSION,- THEME: "bootstrap".concat(bootstrapVersion),- CONSTANTS: CONSTANTS,- DEFAULTS: DEFAULTS,- COLUMN_DEFAULTS: COLUMN_DEFAULTS,- METHODS: METHODS,- EVENTS: EVENTS,- LOCALES: {- en: EN,- 'en-US': EN- }- };-- var FAILS_ON_PRIMITIVES = fails(function () { objectKeys(1); });-- // `Object.keys` method- // https://tc39.github.io/ecma262/#sec-object.keys- _export({ target: 'Object', stat: true, forced: FAILS_ON_PRIMITIVES }, {- keys: function keys(it) {- return objectKeys(toObject(it));- }- });-- var getOwnPropertyDescriptor$3 = objectGetOwnPropertyDescriptor.f;------- var nativeEndsWith = ''.endsWith;- var min$5 = Math.min;-- var CORRECT_IS_REGEXP_LOGIC = correctIsRegexpLogic('endsWith');- // https://github.com/zloirock/core-js/pull/702- var MDN_POLYFILL_BUG = !CORRECT_IS_REGEXP_LOGIC && !!function () {- var descriptor = getOwnPropertyDescriptor$3(String.prototype, 'endsWith');- return descriptor && !descriptor.writable;- }();-- // `String.prototype.endsWith` method- // https://tc39.github.io/ecma262/#sec-string.prototype.endswith- _export({ target: 'String', proto: true, forced: !MDN_POLYFILL_BUG && !CORRECT_IS_REGEXP_LOGIC }, {- endsWith: function endsWith(searchString /* , endPosition = @length */) {- var that = String(requireObjectCoercible(this));- notARegexp(searchString);- var endPosition = arguments.length > 1 ? arguments[1] : undefined;- var len = toLength(that.length);- var end = endPosition === undefined ? len : min$5(toLength(endPosition), len);- var search = String(searchString);- return nativeEndsWith- ? nativeEndsWith.call(that, search, end)- : that.slice(end - search.length, end) === search;- }- });-- var getOwnPropertyDescriptor$4 = objectGetOwnPropertyDescriptor.f;------- var nativeStartsWith = ''.startsWith;- var min$6 = Math.min;-- var CORRECT_IS_REGEXP_LOGIC$1 = correctIsRegexpLogic('startsWith');- // https://github.com/zloirock/core-js/pull/702- var MDN_POLYFILL_BUG$1 = !CORRECT_IS_REGEXP_LOGIC$1 && !!function () {- var descriptor = getOwnPropertyDescriptor$4(String.prototype, 'startsWith');- return descriptor && !descriptor.writable;- }();-- // `String.prototype.startsWith` method- // https://tc39.github.io/ecma262/#sec-string.prototype.startswith- _export({ target: 'String', proto: true, forced: !MDN_POLYFILL_BUG$1 && !CORRECT_IS_REGEXP_LOGIC$1 }, {- startsWith: function startsWith(searchString /* , position = 0 */) {- var that = String(requireObjectCoercible(this));- notARegexp(searchString);- var index = toLength(min$6(arguments.length > 1 ? arguments[1] : undefined, that.length));- var search = String(searchString);- return nativeStartsWith- ? nativeStartsWith.call(that, search, index)- : that.slice(index, index + search.length) === search;- }- });-- var Utils = {- getSearchInput: function getSearchInput(that) {- if (typeof that.options.searchSelector === 'string') {- return $(that.options.searchSelector);- }-- return that.$toolbar.find('.search input');- },- // it only does '%s', and return '' when arguments are undefined- sprintf: function sprintf(_str) {- for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {- args[_key - 1] = arguments[_key];- }-- var flag = true;- var i = 0;-- var str = _str.replace(/%s/g, function () {- var arg = args[i++];-- if (typeof arg === 'undefined') {- flag = false;- return '';- }-- return arg;- });-- return flag ? str : '';- },- isObject: function isObject(val) {- return val instanceof Object && !Array.isArray(val);- },- isEmptyObject: function isEmptyObject() {- var obj = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};- return Object.entries(obj).length === 0 && obj.constructor === Object;- },- isNumeric: function isNumeric(n) {- return !isNaN(parseFloat(n)) && isFinite(n);- },- getFieldTitle: function getFieldTitle(list, value) {- var _iteratorNormalCompletion = true;- var _didIteratorError = false;- var _iteratorError = undefined;-- try {- for (var _iterator = list[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {- var item = _step.value;-- if (item.field === value) {- return item.title;- }- }- } catch (err) {- _didIteratorError = true;- _iteratorError = err;- } finally {- try {- if (!_iteratorNormalCompletion && _iterator.return != null) {- _iterator.return();- }- } finally {- if (_didIteratorError) {- throw _iteratorError;- }- }- }-- return '';- },- setFieldIndex: function setFieldIndex(columns) {- var totalCol = 0;- var flag = [];- var _iteratorNormalCompletion2 = true;- var _didIteratorError2 = false;- var _iteratorError2 = undefined;-- try {- for (var _iterator2 = columns[0][Symbol.iterator](), _step2; !(_iteratorNormalCompletion2 = (_step2 = _iterator2.next()).done); _iteratorNormalCompletion2 = true) {- var column = _step2.value;- totalCol += column.colspan || 1;- }- } catch (err) {- _didIteratorError2 = true;- _iteratorError2 = err;- } finally {- try {- if (!_iteratorNormalCompletion2 && _iterator2.return != null) {- _iterator2.return();- }- } finally {- if (_didIteratorError2) {- throw _iteratorError2;- }- }- }-- for (var i = 0; i < columns.length; i++) {- flag[i] = [];-- for (var j = 0; j < totalCol; j++) {- flag[i][j] = false;- }- }-- for (var _i = 0; _i < columns.length; _i++) {- var _iteratorNormalCompletion3 = true;- var _didIteratorError3 = false;- var _iteratorError3 = undefined;-- try {- for (var _iterator3 = columns[_i][Symbol.iterator](), _step3; !(_iteratorNormalCompletion3 = (_step3 = _iterator3.next()).done); _iteratorNormalCompletion3 = true) {- var r = _step3.value;- var rowspan = r.rowspan || 1;- var colspan = r.colspan || 1;-- var index = flag[_i].indexOf(false);-- r.colspanIndex = index;-- if (colspan === 1) {- r.fieldIndex = index; // when field is undefined, use index instead-- if (typeof r.field === 'undefined') {- r.field = index;- }- } else {- r.colspanGroup = r.colspan;- }-- for (var _j = 0; _j < rowspan; _j++) {- for (var k = 0; k < colspan; k++) {- flag[_i + _j][index + k] = true;- }- }- }- } catch (err) {- _didIteratorError3 = true;- _iteratorError3 = err;- } finally {- try {- if (!_iteratorNormalCompletion3 && _iterator3.return != null) {- _iterator3.return();- }- } finally {- if (_didIteratorError3) {- throw _iteratorError3;- }- }- }- }- },- normalizeAccent: function normalizeAccent(value) {- if (typeof value !== 'string') {- return value;- }-- return value.normalize('NFD').replace(/[\u0300-\u036f]/g, '');- },- updateFieldGroup: function updateFieldGroup(columns) {- var _ref;-- var allColumns = (_ref = []).concat.apply(_ref, _toConsumableArray(columns));-- var _iteratorNormalCompletion4 = true;- var _didIteratorError4 = false;- var _iteratorError4 = undefined;-- try {- for (var _iterator4 = columns[Symbol.iterator](), _step4; !(_iteratorNormalCompletion4 = (_step4 = _iterator4.next()).done); _iteratorNormalCompletion4 = true) {- var c = _step4.value;- var _iteratorNormalCompletion5 = true;- var _didIteratorError5 = false;- var _iteratorError5 = undefined;-- try {- for (var _iterator5 = c[Symbol.iterator](), _step5; !(_iteratorNormalCompletion5 = (_step5 = _iterator5.next()).done); _iteratorNormalCompletion5 = true) {- var r = _step5.value;-- if (r.colspanGroup > 1) {- var colspan = 0;-- var _loop = function _loop(i) {- var column = allColumns.find(function (col) {- return col.fieldIndex === i;- });-- if (column.visible) {- colspan++;- }- };-- for (var i = r.colspanIndex; i < r.colspanIndex + r.colspanGroup; i++) {- _loop(i);- }-- r.colspan = colspan;- r.visible = colspan > 0;- }- }- } catch (err) {- _didIteratorError5 = true;- _iteratorError5 = err;- } finally {- try {- if (!_iteratorNormalCompletion5 && _iterator5.return != null) {- _iterator5.return();- }- } finally {- if (_didIteratorError5) {- throw _iteratorError5;- }- }- }- }- } catch (err) {- _didIteratorError4 = true;- _iteratorError4 = err;- } finally {- try {- if (!_iteratorNormalCompletion4 && _iterator4.return != null) {- _iterator4.return();- }- } finally {- if (_didIteratorError4) {- throw _iteratorError4;- }- }- }- },- getScrollBarWidth: function getScrollBarWidth() {- if (this.cachedWidth === undefined) {- var $inner = $('<div/>').addClass('fixed-table-scroll-inner');- var $outer = $('<div/>').addClass('fixed-table-scroll-outer');- $outer.append($inner);- $('body').append($outer);- var w1 = $inner[0].offsetWidth;- $outer.css('overflow', 'scroll');- var w2 = $inner[0].offsetWidth;-- if (w1 === w2) {- w2 = $outer[0].clientWidth;- }-- $outer.remove();- this.cachedWidth = w1 - w2;- }-- return this.cachedWidth;- },- calculateObjectValue: function calculateObjectValue(self, name) {- var args = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : [];- var defaultValue = arguments.length > 3 ? arguments[3] : undefined;- var func = name;-- if (typeof name === 'string') {- // support obj.func1.func2- var names = name.split('.');-- if (names.length > 1) {- func = window;- var _iteratorNormalCompletion6 = true;- var _didIteratorError6 = false;- var _iteratorError6 = undefined;-- try {- for (var _iterator6 = names[Symbol.iterator](), _step6; !(_iteratorNormalCompletion6 = (_step6 = _iterator6.next()).done); _iteratorNormalCompletion6 = true) {- var f = _step6.value;- func = func[f];- }- } catch (err) {- _didIteratorError6 = true;- _iteratorError6 = err;- } finally {- try {- if (!_iteratorNormalCompletion6 && _iterator6.return != null) {- _iterator6.return();- }- } finally {- if (_didIteratorError6) {- throw _iteratorError6;- }- }- }- } else {- func = window[name];- }- }-- if (func !== null && _typeof(func) === 'object') {- return func;- }-- if (typeof func === 'function') {- return func.apply(self, args || []);- }-- if (!func && typeof name === 'string' && this.sprintf.apply(this, [name].concat(_toConsumableArray(args)))) {- return this.sprintf.apply(this, [name].concat(_toConsumableArray(args)));- }-- return defaultValue;- },- compareObjects: function compareObjects(objectA, objectB, compareLength) {- var aKeys = Object.keys(objectA);- var bKeys = Object.keys(objectB);-- if (compareLength && aKeys.length !== bKeys.length) {- return false;- }-- for (var _i2 = 0, _aKeys = aKeys; _i2 < _aKeys.length; _i2++) {- var key = _aKeys[_i2];-- if (bKeys.includes(key) && objectA[key] !== objectB[key]) {- return false;- }- }-- return true;- },- escapeHTML: function escapeHTML(text) {- if (typeof text === 'string') {- return text.replace(/&/g, '&').replace(/</g, '<').replace(/>/g, '>').replace(/"/g, '"').replace(/'/g, ''').replace(/`/g, '`');- }-- return text;- },- unescapeHTML: function unescapeHTML(text) {- if (typeof text === 'string') {- return text.replace(/&/g, '&').replace(/</g, '<').replace(/>/g, '>').replace(/"/g, '"').replace(/'/g, '\'').replace(/`/g, '`');- }-- return text;- },- getRealDataAttr: function getRealDataAttr(dataAttr) {- for (var _i3 = 0, _Object$entries = Object.entries(dataAttr); _i3 < _Object$entries.length; _i3++) {- var _Object$entries$_i = _slicedToArray(_Object$entries[_i3], 2),- attr = _Object$entries$_i[0],- value = _Object$entries$_i[1];-- var auxAttr = attr.split(/(?=[A-Z])/).join('-').toLowerCase();-- if (auxAttr !== attr) {- dataAttr[auxAttr] = value;- delete dataAttr[attr];- }- }-- return dataAttr;- },- getItemField: function getItemField(item, field, escape) {- var value = item;-- if (typeof field !== 'string' || item.hasOwnProperty(field)) {- return escape ? this.escapeHTML(item[field]) : item[field];- }-- var props = field.split('.');- var _iteratorNormalCompletion7 = true;- var _didIteratorError7 = false;- var _iteratorError7 = undefined;-- try {- for (var _iterator7 = props[Symbol.iterator](), _step7; !(_iteratorNormalCompletion7 = (_step7 = _iterator7.next()).done); _iteratorNormalCompletion7 = true) {- var p = _step7.value;- value = value && value[p];- }- } catch (err) {- _didIteratorError7 = true;- _iteratorError7 = err;- } finally {- try {- if (!_iteratorNormalCompletion7 && _iterator7.return != null) {- _iterator7.return();- }- } finally {- if (_didIteratorError7) {- throw _iteratorError7;- }- }- }-- return escape ? this.escapeHTML(value) : value;- },- isIEBrowser: function isIEBrowser() {- return navigator.userAgent.includes('MSIE ') || /Trident.*rv:11\./.test(navigator.userAgent);- },- findIndex: function findIndex(items, item) {- var _iteratorNormalCompletion8 = true;- var _didIteratorError8 = false;- var _iteratorError8 = undefined;-- try {- for (var _iterator8 = items[Symbol.iterator](), _step8; !(_iteratorNormalCompletion8 = (_step8 = _iterator8.next()).done); _iteratorNormalCompletion8 = true) {- var it = _step8.value;-- if (JSON.stringify(it) === JSON.stringify(item)) {- return items.indexOf(it);- }- }- } catch (err) {- _didIteratorError8 = true;- _iteratorError8 = err;- } finally {- try {- if (!_iteratorNormalCompletion8 && _iterator8.return != null) {- _iterator8.return();- }- } finally {- if (_didIteratorError8) {- throw _iteratorError8;- }- }- }-- return -1;- },- trToData: function trToData(columns, $els) {- var _this = this;-- var data = [];- var m = [];- $els.each(function (y, el) {- var $el = $(el);- var row = {}; // save tr's id, class and data-* attributes-- row._id = $el.attr('id');- row._class = $el.attr('class');- row._data = _this.getRealDataAttr($el.data());- row._style = $el.attr('style');- $el.find('>td,>th').each(function (_x, el) {- var $el = $(el);- var cspan = +$el.attr('colspan') || 1;- var rspan = +$el.attr('rowspan') || 1;- var x = _x; // skip already occupied cells in current row-- for (; m[y] && m[y][x]; x++) {} // ignore- // mark matrix elements occupied by current cell with true--- for (var tx = x; tx < x + cspan; tx++) {- for (var ty = y; ty < y + rspan; ty++) {- if (!m[ty]) {- // fill missing rows- m[ty] = [];- }-- m[ty][tx] = true;- }- }-- var field = columns[x].field;- row[field] = $el.html().trim(); // save td's id, class and data-* attributes-- row["_".concat(field, "_id")] = $el.attr('id');- row["_".concat(field, "_class")] = $el.attr('class');- row["_".concat(field, "_rowspan")] = $el.attr('rowspan');- row["_".concat(field, "_colspan")] = $el.attr('colspan');- row["_".concat(field, "_title")] = $el.attr('title');- row["_".concat(field, "_data")] = _this.getRealDataAttr($el.data());- row["_".concat(field, "_style")] = $el.attr('style');- });- data.push(row);- });- return data;- },- sort: function sort(a, b, order, sortStable, aPosition, bPosition) {- if (a === undefined || a === null) {- a = '';- }-- if (b === undefined || b === null) {- b = '';- }-- if (sortStable && a === b) {- a = aPosition;- b = bPosition;- } // If both values are numeric, do a numeric comparison--- if (this.isNumeric(a) && this.isNumeric(b)) {- // Convert numerical values form string to float.- a = parseFloat(a);- b = parseFloat(b);-- if (a < b) {- return order * -1;- }-- if (a > b) {- return order;- }-- return 0;- }-- if (a === b) {- return 0;- } // If value is not a string, convert to string--- if (typeof a !== 'string') {- a = a.toString();- }-- if (a.localeCompare(b) === -1) {- return order * -1;- }-- return order;- },- getEventName: function getEventName(eventPrefix) {- var id = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';- id = id || "".concat(+new Date()).concat(~~(Math.random() * 1000000));- return "".concat(eventPrefix, "-").concat(id);- },- hasDetailViewIcon: function hasDetailViewIcon(options) {- return options.detailView && options.detailViewIcon && !options.cardView;- },- getDetailViewIndexOffset: function getDetailViewIndexOffset(options) {- return this.hasDetailViewIcon(options) && options.detailViewAlign !== 'right' ? 1 : 0;- },- checkAutoMergeCells: function checkAutoMergeCells(data) {- var _iteratorNormalCompletion9 = true;- var _didIteratorError9 = false;- var _iteratorError9 = undefined;-- try {- for (var _iterator9 = data[Symbol.iterator](), _step9; !(_iteratorNormalCompletion9 = (_step9 = _iterator9.next()).done); _iteratorNormalCompletion9 = true) {- var row = _step9.value;-- for (var _i4 = 0, _Object$keys = Object.keys(row); _i4 < _Object$keys.length; _i4++) {- var key = _Object$keys[_i4];-- if (key.startsWith('_') && (key.endsWith('_rowspan') || key.endsWith('_colspan'))) {- return true;- }- }- }- } catch (err) {- _didIteratorError9 = true;- _iteratorError9 = err;- } finally {- try {- if (!_iteratorNormalCompletion9 && _iterator9.return != null) {- _iterator9.return();- }- } finally {- if (_didIteratorError9) {- throw _iteratorError9;- }- }- }-- return false;- },- deepCopy: function deepCopy(arg) {- if (arg === undefined) {- return arg;- }-- return $.extend(true, Array.isArray(arg) ? [] : {}, arg);- }- };-- var BLOCK_ROWS = 50;- var CLUSTER_BLOCKS = 4;-- var VirtualScroll =- /*#__PURE__*/- function () {- function VirtualScroll(options) {- var _this = this;-- _classCallCheck(this, VirtualScroll);-- this.rows = options.rows;- this.scrollEl = options.scrollEl;- this.contentEl = options.contentEl;- this.callback = options.callback;- this.itemHeight = options.itemHeight;- this.cache = {};- this.scrollTop = this.scrollEl.scrollTop;- this.initDOM(this.rows, options.fixedScroll);- this.scrollEl.scrollTop = this.scrollTop;- this.lastCluster = 0;-- var onScroll = function onScroll() {- if (_this.lastCluster !== (_this.lastCluster = _this.getNum())) {- _this.initDOM(_this.rows);-- _this.callback();- }- };-- this.scrollEl.addEventListener('scroll', onScroll, false);-- this.destroy = function () {- _this.contentEl.innerHtml = '';-- _this.scrollEl.removeEventListener('scroll', onScroll, false);- };- }-- _createClass(VirtualScroll, [{- key: "initDOM",- value: function initDOM(rows, fixedScroll) {- if (typeof this.clusterHeight === 'undefined') {- this.cache.scrollTop = this.scrollEl.scrollTop;- this.cache.data = this.contentEl.innerHTML = rows[0] + rows[0] + rows[0];- this.getRowsHeight(rows);- }-- var data = this.initData(rows, this.getNum(fixedScroll));- var thisRows = data.rows.join('');- var dataChanged = this.checkChanges('data', thisRows);- var topOffsetChanged = this.checkChanges('top', data.topOffset);- var bottomOffsetChanged = this.checkChanges('bottom', data.bottomOffset);- var html = [];-- if (dataChanged && topOffsetChanged) {- if (data.topOffset) {- html.push(this.getExtra('top', data.topOffset));- }-- html.push(thisRows);-- if (data.bottomOffset) {- html.push(this.getExtra('bottom', data.bottomOffset));- }-- this.contentEl.innerHTML = html.join('');-- if (fixedScroll) {- this.contentEl.scrollTop = this.cache.scrollTop;- }- } else if (bottomOffsetChanged) {- this.contentEl.lastChild.style.height = "".concat(data.bottomOffset, "px");- }- }- }, {- key: "getRowsHeight",- value: function getRowsHeight() {- if (typeof this.itemHeight === 'undefined') {- var nodes = this.contentEl.children;- var node = nodes[Math.floor(nodes.length / 2)];- this.itemHeight = node.offsetHeight;- }-- this.blockHeight = this.itemHeight * BLOCK_ROWS;- this.clusterRows = BLOCK_ROWS * CLUSTER_BLOCKS;- this.clusterHeight = this.blockHeight * CLUSTER_BLOCKS;- }- }, {- key: "getNum",- value: function getNum(fixedScroll) {- this.scrollTop = fixedScroll ? this.cache.scrollTop : this.scrollEl.scrollTop;- return Math.floor(this.scrollTop / (this.clusterHeight - this.blockHeight)) || 0;- }- }, {- key: "initData",- value: function initData(rows, num) {- if (rows.length < BLOCK_ROWS) {- return {- topOffset: 0,- bottomOffset: 0,- rowsAbove: 0,- rows: rows- };- }-- var start = Math.max((this.clusterRows - BLOCK_ROWS) * num, 0);- var end = start + this.clusterRows;- var topOffset = Math.max(start * this.itemHeight, 0);- var bottomOffset = Math.max((rows.length - end) * this.itemHeight, 0);- var thisRows = [];- var rowsAbove = start;-- if (topOffset < 1) {- rowsAbove++;- }-- for (var i = start; i < end; i++) {- rows[i] && thisRows.push(rows[i]);- }-- return {- topOffset: topOffset,- bottomOffset: bottomOffset,- rowsAbove: rowsAbove,- rows: thisRows- };- }- }, {- key: "checkChanges",- value: function checkChanges(type, value) {- var changed = value !== this.cache[type];- this.cache[type] = value;- return changed;- }- }, {- key: "getExtra",- value: function getExtra(className, height) {- var tag = document.createElement('tr');- tag.className = "virtual-scroll-".concat(className);-- if (height) {- tag.style.height = "".concat(height, "px");- }-- return tag.outerHTML;- }- }]);-- return VirtualScroll;- }();-- var BootstrapTable =- /*#__PURE__*/- function () {- function BootstrapTable(el, options) {- _classCallCheck(this, BootstrapTable);-- this.options = options;- this.$el = $(el);- this.$el_ = this.$el.clone();- this.timeoutId_ = 0;- this.timeoutFooter_ = 0;- }-- _createClass(BootstrapTable, [{- key: "init",- value: function init() {- this.initConstants();- this.initLocale();- this.initContainer();- this.initTable();- this.initHeader();- this.initData();- this.initHiddenRows();- this.initToolbar();- this.initPagination();- this.initBody();- this.initSearchText();- this.initServer();- }- }, {- key: "initConstants",- value: function initConstants() {- var opts = this.options;- this.constants = Constants.CONSTANTS;- this.constants.theme = $.fn.bootstrapTable.theme;- var buttonsPrefix = opts.buttonsPrefix ? "".concat(opts.buttonsPrefix, "-") : '';- this.constants.buttonsClass = [opts.buttonsPrefix, buttonsPrefix + opts.buttonsClass, Utils.sprintf("".concat(buttonsPrefix, "%s"), opts.iconSize)].join(' ').trim();- this.buttons = Utils.calculateObjectValue(this, opts.buttons, [], []);- }- }, {- key: "initLocale",- value: function initLocale() {- if (this.options.locale) {- var locales = $.fn.bootstrapTable.locales;- var parts = this.options.locale.split(/-|_/);- parts[0] = parts[0].toLowerCase();-- if (parts[1]) {- parts[1] = parts[1].toUpperCase();- }-- if (locales[this.options.locale]) {- $.extend(this.options, locales[this.options.locale]);- } else if (locales[parts.join('-')]) {- $.extend(this.options, locales[parts.join('-')]);- } else if (locales[parts[0]]) {- $.extend(this.options, locales[parts[0]]);- }- }- }- }, {- key: "initContainer",- value: function initContainer() {- var topPagination = ['top', 'both'].includes(this.options.paginationVAlign) ? '<div class="fixed-table-pagination clearfix"></div>' : '';- var bottomPagination = ['bottom', 'both'].includes(this.options.paginationVAlign) ? '<div class="fixed-table-pagination"></div>' : '';- var loadingTemplate = Utils.calculateObjectValue(this.options, this.options.loadingTemplate, [this.options.formatLoadingMessage()]);- this.$container = $("\n <div class=\"bootstrap-table ".concat(this.constants.theme, "\">\n <div class=\"fixed-table-toolbar\"></div>\n ").concat(topPagination, "\n <div class=\"fixed-table-container\">\n <div class=\"fixed-table-header\"><table></table></div>\n <div class=\"fixed-table-body\">\n <div class=\"fixed-table-loading\">\n ").concat(loadingTemplate, "\n </div>\n </div>\n <div class=\"fixed-table-footer\"><table><thead><tr></tr></thead></table></div>\n </div>\n ").concat(bottomPagination, "\n </div>\n "));- this.$container.insertAfter(this.$el);- this.$tableContainer = this.$container.find('.fixed-table-container');- this.$tableHeader = this.$container.find('.fixed-table-header');- this.$tableBody = this.$container.find('.fixed-table-body');- this.$tableLoading = this.$container.find('.fixed-table-loading');- this.$tableFooter = this.$el.find('tfoot'); // checking if custom table-toolbar exists or not-- if (this.options.buttonsToolbar) {- this.$toolbar = $('body').find(this.options.buttonsToolbar);- } else {- this.$toolbar = this.$container.find('.fixed-table-toolbar');- }-- this.$pagination = this.$container.find('.fixed-table-pagination');- this.$tableBody.append(this.$el);- this.$container.after('<div class="clearfix"></div>');- this.$el.addClass(this.options.classes);- this.$tableLoading.addClass(this.options.classes);-- if (this.options.height) {- this.$tableContainer.addClass('fixed-height');-- if (this.options.showFooter) {- this.$tableContainer.addClass('has-footer');- }-- if (this.options.classes.split(' ').includes('table-bordered')) {- this.$tableBody.append('<div class="fixed-table-border"></div>');- this.$tableBorder = this.$tableBody.find('.fixed-table-border');- this.$tableLoading.addClass('fixed-table-border');- }-- this.$tableFooter = this.$container.find('.fixed-table-footer');- }- }- }, {- key: "initTable",- value: function initTable() {- var _this = this;-- var columns = [];- this.$header = this.$el.find('>thead');-- if (!this.$header.length) {- this.$header = $("<thead class=\"".concat(this.options.theadClasses, "\"></thead>")).appendTo(this.$el);- } else if (this.options.theadClasses) {- this.$header.addClass(this.options.theadClasses);- }-- this._headerTrClasses = [];- this._headerTrStyles = [];- this.$header.find('tr').each(function (i, el) {- var $tr = $(el);- var column = [];- $tr.find('th').each(function (i, el) {- var $th = $(el); // #2014: getFieldIndex and elsewhere assume this is string, causes issues if not-- if (typeof $th.data('field') !== 'undefined') {- $th.data('field', "".concat($th.data('field')));- }-- column.push($.extend({}, {- title: $th.html(),- 'class': $th.attr('class'),- titleTooltip: $th.attr('title'),- rowspan: $th.attr('rowspan') ? +$th.attr('rowspan') : undefined,- colspan: $th.attr('colspan') ? +$th.attr('colspan') : undefined- }, $th.data()));- });- columns.push(column);-- if ($tr.attr('class')) {- _this._headerTrClasses.push($tr.attr('class'));- }-- if ($tr.attr('style')) {- _this._headerTrStyles.push($tr.attr('style'));- }- });-- if (!Array.isArray(this.options.columns[0])) {- this.options.columns = [this.options.columns];- }-- this.options.columns = $.extend(true, [], columns, this.options.columns);- this.columns = [];- this.fieldsColumnsIndex = [];- Utils.setFieldIndex(this.options.columns);- this.options.columns.forEach(function (columns, i) {- columns.forEach(function (_column, j) {- var column = $.extend({}, BootstrapTable.COLUMN_DEFAULTS, _column);-- if (typeof column.fieldIndex !== 'undefined') {- _this.columns[column.fieldIndex] = column;- _this.fieldsColumnsIndex[column.field] = column.fieldIndex;- }-- _this.options.columns[i][j] = column;- });- }); // if options.data is setting, do not process tbody and tfoot data-- if (!this.options.data.length) {- var htmlData = Utils.trToData(this.columns, this.$el.find('>tbody>tr'));-- if (htmlData.length) {- this.options.data = htmlData;- this.fromHtml = true;- }- }-- if (!(this.options.pagination && this.options.sidePagination !== 'server')) {- this.footerData = Utils.trToData(this.columns, this.$el.find('>tfoot>tr'));- }-- if (this.footerData) {- this.$el.find('tfoot').html('<tr></tr>');- }-- if (!this.options.showFooter || this.options.cardView) {- this.$tableFooter.hide();- } else {- this.$tableFooter.show();- }- }- }, {- key: "initHeader",- value: function initHeader() {- var _this2 = this;-- var visibleColumns = {};- var html = [];- this.header = {- fields: [],- styles: [],- classes: [],- formatters: [],- detailFormatters: [],- events: [],- sorters: [],- sortNames: [],- cellStyles: [],- searchables: []- };- Utils.updateFieldGroup(this.options.columns);- this.options.columns.forEach(function (columns, i) {- html.push("<tr".concat(Utils.sprintf(' class="%s"', _this2._headerTrClasses[i]), " ").concat(Utils.sprintf(' style="%s"', _this2._headerTrStyles[i]), ">"));- var detailViewTemplate = '';-- if (i === 0 && Utils.hasDetailViewIcon(_this2.options)) {- detailViewTemplate = "<th class=\"detail\" rowspan=\"".concat(_this2.options.columns.length, "\">\n <div class=\"fht-cell\"></div>\n </th>");- }-- if (detailViewTemplate && _this2.options.detailViewAlign !== 'right') {- html.push(detailViewTemplate);- }-- columns.forEach(function (column, j) {- var class_ = Utils.sprintf(' class="%s"', column['class']);- var unitWidth = column.widthUnit;- var width = parseFloat(column.width);- var halign = Utils.sprintf('text-align: %s; ', column.halign ? column.halign : column.align);- var align = Utils.sprintf('text-align: %s; ', column.align);- var style = Utils.sprintf('vertical-align: %s; ', column.valign);- style += Utils.sprintf('width: %s; ', (column.checkbox || column.radio) && !width ? !column.showSelectTitle ? '36px' : undefined : width ? width + unitWidth : undefined);-- if (typeof column.fieldIndex === 'undefined' && !column.visible) {- return;- }-- var headerStyle = Utils.calculateObjectValue(null, _this2.options.headerStyle, [column]);- var csses = [];- var classes = '';-- if (headerStyle && headerStyle.css) {- for (var _i = 0, _Object$entries = Object.entries(headerStyle.css); _i < _Object$entries.length; _i++) {- var _Object$entries$_i = _slicedToArray(_Object$entries[_i], 2),- key = _Object$entries$_i[0],- value = _Object$entries$_i[1];-- csses.push("".concat(key, ": ").concat(value));- }- }-- if (headerStyle && headerStyle.classes) {- classes = Utils.sprintf(' class="%s"', column['class'] ? [column['class'], headerStyle.classes].join(' ') : headerStyle.classes);- }-- if (typeof column.fieldIndex !== 'undefined') {- _this2.header.fields[column.fieldIndex] = column.field;- _this2.header.styles[column.fieldIndex] = align + style;- _this2.header.classes[column.fieldIndex] = class_;- _this2.header.formatters[column.fieldIndex] = column.formatter;- _this2.header.detailFormatters[column.fieldIndex] = column.detailFormatter;- _this2.header.events[column.fieldIndex] = column.events;- _this2.header.sorters[column.fieldIndex] = column.sorter;- _this2.header.sortNames[column.fieldIndex] = column.sortName;- _this2.header.cellStyles[column.fieldIndex] = column.cellStyle;- _this2.header.searchables[column.fieldIndex] = column.searchable;-- if (!column.visible) {- return;- }-- if (_this2.options.cardView && !column.cardVisible) {- return;- }-- visibleColumns[column.field] = column;- }-- html.push("<th".concat(Utils.sprintf(' title="%s"', column.titleTooltip)), column.checkbox || column.radio ? Utils.sprintf(' class="bs-checkbox %s"', column['class'] || '') : classes || class_, Utils.sprintf(' style="%s"', halign + style + csses.join('; ')), Utils.sprintf(' rowspan="%s"', column.rowspan), Utils.sprintf(' colspan="%s"', column.colspan), Utils.sprintf(' data-field="%s"', column.field), // If `column` is not the first element of `this.options.columns[0]`, then className 'data-not-first-th' should be added.- j === 0 && i > 0 ? ' data-not-first-th' : '', '>');- html.push(Utils.sprintf('<div class="th-inner %s">', _this2.options.sortable && column.sortable ? 'sortable both' : ''));- var text = _this2.options.escape ? Utils.escapeHTML(column.title) : column.title;- var title = text;-- if (column.checkbox) {- text = '';-- if (!_this2.options.singleSelect && _this2.options.checkboxHeader) {- text = '<label><input name="btSelectAll" type="checkbox" /><span></span></label>';- }-- _this2.header.stateField = column.field;- }-- if (column.radio) {- text = '';- _this2.header.stateField = column.field;- }-- if (!text && column.showSelectTitle) {- text += title;- }-- html.push(text);- html.push('</div>');- html.push('<div class="fht-cell"></div>');- html.push('</div>');- html.push('</th>');- });-- if (detailViewTemplate && _this2.options.detailViewAlign === 'right') {- html.push(detailViewTemplate);- }-- html.push('</tr>');- });- this.$header.html(html.join(''));- this.$header.find('th[data-field]').each(function (i, el) {- $(el).data(visibleColumns[$(el).data('field')]);- });- this.$container.off('click', '.th-inner').on('click', '.th-inner', function (e) {- var $this = $(e.currentTarget);-- if (_this2.options.detailView && !$this.parent().hasClass('bs-checkbox')) {- if ($this.closest('.bootstrap-table')[0] !== _this2.$container[0]) {- return false;- }- }-- if (_this2.options.sortable && $this.parent().data().sortable) {- _this2.onSort(e);- }- });- this.$header.children().children().off('keypress').on('keypress', function (e) {- if (_this2.options.sortable && $(e.currentTarget).data().sortable) {- var code = e.keyCode || e.which;-- if (code === 13) {- // Enter keycode- _this2.onSort(e);- }- }- });- var resizeEvent = Utils.getEventName('resize.bootstrap-table', this.$el.attr('id'));- $(window).off(resizeEvent);-- if (!this.options.showHeader || this.options.cardView) {- this.$header.hide();- this.$tableHeader.hide();- this.$tableLoading.css('top', 0);- } else {- this.$header.show();- this.$tableHeader.show();- this.$tableLoading.css('top', this.$header.outerHeight() + 1); // Assign the correct sortable arrow-- this.getCaret();- $(window).on(resizeEvent, function () {- return _this2.resetView();- });- }-- this.$selectAll = this.$header.find('[name="btSelectAll"]');- this.$selectAll.off('click').on('click', function (e) {- e.stopPropagation();- var checked = $(e.currentTarget).prop('checked');-- _this2[checked ? 'checkAll' : 'uncheckAll']();-- _this2.updateSelected();- });- }- }, {- key: "initData",- value: function initData(data, type) {- if (type === 'append') {- this.options.data = this.options.data.concat(data);- } else if (type === 'prepend') {- this.options.data = [].concat(data).concat(this.options.data);- } else {- data = data || Utils.deepCopy(this.options.data);- this.options.data = Array.isArray(data) ? data : data[this.options.dataField];- }-- this.data = _toConsumableArray(this.options.data);-- if (this.options.sortReset) {- this.unsortedData = _toConsumableArray(this.data);- }-- if (this.options.sidePagination === 'server') {- return;- }-- this.initSort();- }- }, {- key: "initSort",- value: function initSort() {- var _this3 = this;-- var name = this.options.sortName;- var order = this.options.sortOrder === 'desc' ? -1 : 1;- var index = this.header.fields.indexOf(this.options.sortName);- var timeoutId = 0;-- if (index !== -1) {- if (this.options.sortStable) {- this.data.forEach(function (row, i) {- if (!row.hasOwnProperty('_position')) {- row._position = i;- }- });- }-- if (this.options.customSort) {- Utils.calculateObjectValue(this.options, this.options.customSort, [this.options.sortName, this.options.sortOrder, this.data]);- } else {- this.data.sort(function (a, b) {- if (_this3.header.sortNames[index]) {- name = _this3.header.sortNames[index];- }-- var aa = Utils.getItemField(a, name, _this3.options.escape);- var bb = Utils.getItemField(b, name, _this3.options.escape);- var value = Utils.calculateObjectValue(_this3.header, _this3.header.sorters[index], [aa, bb, a, b]);-- if (value !== undefined) {- if (_this3.options.sortStable && value === 0) {- return order * (a._position - b._position);- }-- return order * value;- }-- return Utils.sort(aa, bb, order, _this3.options.sortStable, a._position, b._position);- });- }-- if (this.options.sortClass !== undefined) {- clearTimeout(timeoutId);- timeoutId = setTimeout(function () {- _this3.$el.removeClass(_this3.options.sortClass);-- var index = _this3.$header.find("[data-field=\"".concat(_this3.options.sortName, "\"]")).index();-- _this3.$el.find("tr td:nth-child(".concat(index + 1, ")")).addClass(_this3.options.sortClass);- }, 250);- }- } else if (this.options.sortReset) {- this.data = _toConsumableArray(this.unsortedData);- }- }- }, {- key: "onSort",- value: function onSort(_ref) {- var type = _ref.type,- currentTarget = _ref.currentTarget;- var $this = type === 'keypress' ? $(currentTarget) : $(currentTarget).parent();- var $this_ = this.$header.find('th').eq($this.index());- this.$header.add(this.$header_).find('span.order').remove();-- if (this.options.sortName === $this.data('field')) {- var currentSortOrder = this.options.sortOrder;-- if (currentSortOrder === undefined) {- this.options.sortOrder = 'asc';- } else if (currentSortOrder === 'asc') {- this.options.sortOrder = 'desc';- } else if (this.options.sortOrder === 'desc') {- this.options.sortOrder = this.options.sortReset ? undefined : 'asc';- }-- if (this.options.sortOrder === undefined) {- this.options.sortName = undefined;- }- } else {- this.options.sortName = $this.data('field');-- if (this.options.rememberOrder) {- this.options.sortOrder = $this.data('order') === 'asc' ? 'desc' : 'asc';- } else {- this.options.sortOrder = this.columns[this.fieldsColumnsIndex[$this.data('field')]].sortOrder || this.columns[this.fieldsColumnsIndex[$this.data('field')]].order;- }- }-- this.trigger('sort', this.options.sortName, this.options.sortOrder);- $this.add($this_).data('order', this.options.sortOrder); // Assign the correct sortable arrow-- this.getCaret();-- if (this.options.sidePagination === 'server' && this.options.serverSort) {- this.options.pageNumber = 1;- this.initServer(this.options.silentSort);- return;- }-- this.initSort();- this.initBody();- }- }, {- key: "initToolbar",- value: function initToolbar() {- var _this4 = this;-- var opts = this.options;- var html = [];- var timeoutId = 0;- var $keepOpen;- var switchableCount = 0;-- if (this.$toolbar.find('.bs-bars').children().length) {- $('body').append($(opts.toolbar));- }-- this.$toolbar.html('');-- if (typeof opts.toolbar === 'string' || _typeof(opts.toolbar) === 'object') {- $(Utils.sprintf('<div class="bs-bars %s-%s"></div>', this.constants.classes.pull, opts.toolbarAlign)).appendTo(this.$toolbar).append($(opts.toolbar));- } // showColumns, showToggle, showRefresh--- html = ["<div class=\"".concat(['columns', "columns-".concat(opts.buttonsAlign), this.constants.classes.buttonsGroup, "".concat(this.constants.classes.pull, "-").concat(opts.buttonsAlign)].join(' '), "\">")];-- if (typeof opts.icons === 'string') {- opts.icons = Utils.calculateObjectValue(null, opts.icons);- }-- if (typeof opts.buttonsOrder === 'string') {- opts.buttonsOrder = opts.buttonsOrder.replace(/\[|\]| |'/g, '').toLowerCase().split(',');- }-- this.buttons = Object.assign(this.buttons, {- paginationSwitch: {- text: opts.pagination ? opts.formatPaginationSwitchUp() : opts.formatPaginationSwitchDown(),- icon: opts.pagination ? opts.icons.paginationSwitchDown : opts.icons.paginationSwitchUp,- render: false,- event: this.togglePagination,- attributes: {- 'aria-label': opts.formatPaginationSwitch(),- title: opts.formatPaginationSwitch()- }- },- refresh: {- text: opts.formatRefresh(),- icon: opts.icons.refresh,- render: false,- event: this.refresh,- attributes: {- 'aria-label': opts.formatRefresh(),- title: opts.formatRefresh()- }- },- toggle: {- text: opts.formatToggle(),- icon: opts.icons.toggleOff,- render: false,- event: this.toggleView,- attributes: {- 'aria-label': opts.formatToggleOn(),- title: opts.formatToggleOn()- }- },- fullscreen: {- text: opts.formatFullscreen(),- icon: opts.icons.fullscreen,- render: false,- event: this.toggleFullscreen,- attributes: {- 'aria-label': opts.formatFullscreen(),- title: opts.formatFullscreen()- }- },- columns: {- render: false,- html: function html() {- var html = [];- html.push("<div class=\"keep-open ".concat(_this4.constants.classes.buttonsDropdown, "\" title=\"").concat(opts.formatColumns(), "\">\n <button class=\"").concat(_this4.constants.buttonsClass, " dropdown-toggle\" type=\"button\" data-toggle=\"dropdown\"\n aria-label=\"Columns\" title=\"").concat(opts.formatColumns(), "\">\n ").concat(opts.showButtonIcons ? Utils.sprintf(_this4.constants.html.icon, opts.iconsPrefix, opts.icons.columns) : '', "\n ").concat(opts.showButtonText ? opts.formatColumns() : '', "\n ").concat(_this4.constants.html.dropdownCaret, "\n </button>\n ").concat(_this4.constants.html.toolbarDropdown[0]));-- if (opts.showColumnsSearch) {- html.push(Utils.sprintf(_this4.constants.html.toolbarDropdownItem, Utils.sprintf('<input type="text" class="%s" name="columnsSearch" placeholder="%s" autocomplete="off">', _this4.constants.classes.input, opts.formatSearch())));- html.push(_this4.constants.html.toolbarDropdownSeparator);- }-- if (opts.showColumnsToggleAll) {- var allFieldsVisible = _this4.getVisibleColumns().length === _this4.columns.filter(function (column) {- return !_this4.isSelectionColumn(column);- }).length;-- html.push(Utils.sprintf(_this4.constants.html.toolbarDropdownItem, Utils.sprintf('<input type="checkbox" class="toggle-all" %s> <span>%s</span>', allFieldsVisible ? 'checked="checked"' : '', opts.formatColumnsToggleAll())));- html.push(_this4.constants.html.toolbarDropdownSeparator);- }-- var visibleColumns = 0;-- _this4.columns.forEach(function (column, i) {- if (column.visible) {- visibleColumns++;- }- });-- _this4.columns.forEach(function (column, i) {- if (_this4.isSelectionColumn(column)) {- return;- }-- if (opts.cardView && !column.cardVisible) {- return;- }-- var checked = column.visible ? ' checked="checked"' : '';- var disabled = visibleColumns <= opts.minimumCountColumns && checked ? ' disabled="disabled"' : '';-- if (column.switchable) {- html.push(Utils.sprintf(_this4.constants.html.toolbarDropdownItem, Utils.sprintf('<input type="checkbox" data-field="%s" value="%s"%s%s> <span>%s</span>', column.field, i, checked, disabled, column.title)));- switchableCount++;- }- });-- html.push(_this4.constants.html.toolbarDropdown[1], '</div>');- return html.join('');- }- }- });- var buttonsHtml = {};-- for (var _i2 = 0, _Object$entries2 = Object.entries(this.buttons); _i2 < _Object$entries2.length; _i2++) {- var _Object$entries2$_i = _slicedToArray(_Object$entries2[_i2], 2),- buttonName = _Object$entries2$_i[0],- buttonConfig = _Object$entries2$_i[1];-- var buttonHtml = void 0;-- if (buttonConfig.hasOwnProperty('html')) {- buttonHtml = Utils.calculateObjectValue(opts, buttonConfig.html);- } else {- buttonHtml = "<button class=\"".concat(this.constants.buttonsClass, "\" type=\"button\" name=\"").concat(buttonName, "\"");-- if (buttonConfig.hasOwnProperty('attributes')) {- for (var _i4 = 0, _Object$entries4 = Object.entries(buttonConfig.attributes); _i4 < _Object$entries4.length; _i4++) {- var _Object$entries4$_i = _slicedToArray(_Object$entries4[_i4], 2),- attributeName = _Object$entries4$_i[0],- value = _Object$entries4$_i[1];-- buttonHtml += " ".concat(attributeName, "=\"").concat(Utils.calculateObjectValue(opts, value), "\"");- }- }-- buttonHtml += '>';-- if (opts.showButtonIcons && buttonConfig.hasOwnProperty('icon')) {- var icon = Utils.calculateObjectValue(opts, buttonConfig.icon);- buttonHtml += Utils.sprintf(this.constants.html.icon, opts.iconsPrefix, icon) + ' ';- }-- if (opts.showButtonText && buttonConfig.hasOwnProperty('text')) {- buttonHtml += Utils.calculateObjectValue(opts, buttonConfig.text);- }-- buttonHtml += '</button>';- }-- buttonsHtml[buttonName] = buttonHtml;- var optionName = "show".concat(buttonName.charAt(0).toUpperCase()).concat(buttonName.substring(1));- var showOption = opts[optionName];-- if ((!buttonConfig.hasOwnProperty('render') || buttonConfig.hasOwnProperty('render') && buttonConfig.render) && (showOption === undefined || showOption === true)) {- opts[optionName] = true;- }-- if (!opts.buttonsOrder.includes(buttonName)) {- opts.buttonsOrder.push(buttonName);- }- } // Adding the button html to the final toolbar html when the showOption is true--- var _iteratorNormalCompletion = true;- var _didIteratorError = false;- var _iteratorError = undefined;-- try {- for (var _iterator = opts.buttonsOrder[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {- var button = _step.value;- var _showOption = opts["show".concat(button.charAt(0).toUpperCase()).concat(button.substring(1))];-- if (_showOption) {- html.push(buttonsHtml[button]);- }- }- } catch (err) {- _didIteratorError = true;- _iteratorError = err;- } finally {- try {- if (!_iteratorNormalCompletion && _iterator.return != null) {- _iterator.return();- }- } finally {- if (_didIteratorError) {- throw _iteratorError;- }- }- }-- html.push('</div>'); // Fix #188: this.showToolbar is for extensions-- if (this.showToolbar || html.length > 2) {- this.$toolbar.append(html.join(''));- }-- for (var _i3 = 0, _Object$entries3 = Object.entries(this.buttons); _i3 < _Object$entries3.length; _i3++) {- var _Object$entries3$_i = _slicedToArray(_Object$entries3[_i3], 2),- _buttonName = _Object$entries3$_i[0],- _buttonConfig = _Object$entries3$_i[1];-- if (_buttonConfig.hasOwnProperty('event')) {- if (typeof _buttonConfig.event === 'function' || typeof _buttonConfig.event === 'string') {- var _ret = function () {- var event = typeof _buttonConfig.event === 'string' ? window[_buttonConfig.event] : _buttonConfig.event;-- _this4.$toolbar.find("button[name=\"".concat(_buttonName, "\"]")).off('click').on('click', function () {- return event.call(_this4);- });-- return "continue";- }();-- if (_ret === "continue") continue;- }-- var _loop = function _loop() {- var _Object$entries5$_i = _slicedToArray(_Object$entries5[_i5], 2),- eventType = _Object$entries5$_i[0],- eventFunction = _Object$entries5$_i[1];-- var event = typeof eventFunction === 'string' ? window[eventFunction] : eventFunction;-- _this4.$toolbar.find("button[name=\"".concat(_buttonName, "\"]")).off(eventType).on(eventType, function () {- return event.call(_this4);- });- };-- for (var _i5 = 0, _Object$entries5 = Object.entries(_buttonConfig.event); _i5 < _Object$entries5.length; _i5++) {- _loop();- }- }- }-- if (opts.showColumns) {- $keepOpen = this.$toolbar.find('.keep-open');- var $checkboxes = $keepOpen.find('input[type="checkbox"]:not(".toggle-all")');- var $toggleAll = $keepOpen.find('input[type="checkbox"].toggle-all');-- if (switchableCount <= opts.minimumCountColumns) {- $keepOpen.find('input').prop('disabled', true);- }-- $keepOpen.find('li, label').off('click').on('click', function (e) {- e.stopImmediatePropagation();- });- $checkboxes.off('click').on('click', function (_ref2) {- var currentTarget = _ref2.currentTarget;- var $this = $(currentTarget);-- _this4._toggleColumn($this.val(), $this.prop('checked'), false);-- _this4.trigger('column-switch', $this.data('field'), $this.prop('checked'));-- $toggleAll.prop('checked', $checkboxes.filter(':checked').length === _this4.columns.filter(function (column) {- return !_this4.isSelectionColumn(column);- }).length);- });- $toggleAll.off('click').on('click', function (_ref3) {- var currentTarget = _ref3.currentTarget;-- _this4._toggleAllColumns($(currentTarget).prop('checked'));- });-- if (opts.showColumnsSearch) {- var $columnsSearch = $keepOpen.find('[name="columnsSearch"]');- var $listItems = $keepOpen.find('.dropdown-item-marker');- $columnsSearch.on('keyup paste change', function (_ref4) {- var currentTarget = _ref4.currentTarget;- var $this = $(currentTarget);- var searchValue = $this.val().toLowerCase();- $listItems.show();- $checkboxes.each(function (i, el) {- var $checkbox = $(el);- var $listItem = $checkbox.parents('.dropdown-item-marker');- var text = $listItem.text().toLowerCase();-- if (!text.includes(searchValue)) {- $listItem.hide();- }- });- });- }- }-- var handleInputEvent = function handleInputEvent($searchInput) {- var eventTriggers = 'keyup drop blur mouseup';- $searchInput.off(eventTriggers).on(eventTriggers, function (event) {- if (opts.searchOnEnterKey && event.keyCode !== 13) {- return;- }-- if ([37, 38, 39, 40].includes(event.keyCode)) {- return;- }-- clearTimeout(timeoutId); // doesn't matter if it's 0-- timeoutId = setTimeout(function () {- _this4.onSearch({- currentTarget: event.currentTarget- });- }, opts.searchTimeOut);- });- }; // Fix #4516: this.showSearchClearButton is for extensions--- if ((opts.search || this.showSearchClearButton) && typeof opts.searchSelector !== 'string') {- html = [];- var showSearchButton = Utils.sprintf(this.constants.html.searchButton, this.constants.buttonsClass, opts.formatSearch(), opts.showButtonIcons ? Utils.sprintf(this.constants.html.icon, opts.iconsPrefix, opts.icons.search) : '', opts.showButtonText ? opts.formatSearch() : '');- var showSearchClearButton = Utils.sprintf(this.constants.html.searchClearButton, this.constants.buttonsClass, opts.formatClearSearch(), opts.showButtonIcons ? Utils.sprintf(this.constants.html.icon, opts.iconsPrefix, opts.icons.clearSearch) : '', opts.showButtonText ? opts.formatClearSearch() : '');- var searchInputHtml = "<input class=\"".concat(this.constants.classes.input, "\n ").concat(Utils.sprintf(' %s%s', this.constants.classes.inputPrefix, opts.iconSize), "\n search-input\" type=\"search\" placeholder=\"").concat(opts.formatSearch(), "\" autocomplete=\"off\">");- var searchInputFinalHtml = searchInputHtml;-- if (opts.showSearchButton || opts.showSearchClearButton) {- var _buttonsHtml = (opts.showSearchButton ? showSearchButton : '') + (opts.showSearchClearButton ? showSearchClearButton : '');-- searchInputFinalHtml = opts.search ? Utils.sprintf(this.constants.html.inputGroup, searchInputHtml, _buttonsHtml) : _buttonsHtml;- }-- html.push(Utils.sprintf("\n <div class=\"".concat(this.constants.classes.pull, "-").concat(opts.searchAlign, " search ").concat(this.constants.classes.inputGroup, "\">\n %s\n </div>\n "), searchInputFinalHtml));- this.$toolbar.append(html.join(''));- var $searchInput = Utils.getSearchInput(this);-- if (opts.showSearchButton) {- this.$toolbar.find('.search button[name=search]').off('click').on('click', function (event) {- clearTimeout(timeoutId); // doesn't matter if it's 0-- timeoutId = setTimeout(function () {- _this4.onSearch({- currentTarget: $searchInput- });- }, opts.searchTimeOut);- });-- if (opts.searchOnEnterKey) {- handleInputEvent($searchInput);- }- } else {- handleInputEvent($searchInput);- }-- if (opts.showSearchClearButton) {- this.$toolbar.find('.search button[name=clearSearch]').click(function () {- _this4.resetSearch();- });- }- } else if (typeof opts.searchSelector === 'string') {- var _$searchInput = Utils.getSearchInput(this);-- handleInputEvent(_$searchInput);- }- }- }, {- key: "onSearch",- value: function onSearch() {- var _ref5 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},- currentTarget = _ref5.currentTarget,- firedByInitSearchText = _ref5.firedByInitSearchText;-- var overwriteSearchText = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;-- if (currentTarget !== undefined && $(currentTarget).length && overwriteSearchText) {- var text = $(currentTarget).val().trim();-- if (this.options.trimOnSearch && $(currentTarget).val() !== text) {- $(currentTarget).val(text);- }-- if (this.searchText === text) {- return;- }-- if (currentTarget === Utils.getSearchInput(this)[0] || $(currentTarget).hasClass('search-input')) {- this.searchText = text;- this.options.searchText = text;- }- }-- if (!firedByInitSearchText) {- this.options.pageNumber = 1;- }-- this.initSearch();-- if (firedByInitSearchText) {- if (this.options.sidePagination === 'client') {- this.updatePagination();- }- } else {- this.updatePagination();- }-- this.trigger('search', this.searchText);- }- }, {- key: "initSearch",- value: function initSearch() {- var _this5 = this;-- this.filterOptions = this.filterOptions || this.options.filterOptions;-- if (this.options.sidePagination !== 'server') {- if (this.options.customSearch) {- this.data = Utils.calculateObjectValue(this.options, this.options.customSearch, [this.options.data, this.searchText, this.filterColumns]);-- if (this.options.sortReset) {- this.unsortedData = _toConsumableArray(this.data);- }-- return;- }-- var s = this.searchText && (this.fromHtml ? Utils.escapeHTML(this.searchText) : this.searchText).toLowerCase();- var f = Utils.isEmptyObject(this.filterColumns) ? null : this.filterColumns; // Check filter-- if (typeof this.filterOptions.filterAlgorithm === 'function') {- this.data = this.options.data.filter(function (item, i) {- return _this5.filterOptions.filterAlgorithm.apply(null, [item, f]);- });- } else if (typeof this.filterOptions.filterAlgorithm === 'string') {- this.data = f ? this.options.data.filter(function (item, i) {- var filterAlgorithm = _this5.filterOptions.filterAlgorithm;-- if (filterAlgorithm === 'and') {- for (var key in f) {- if (Array.isArray(f[key]) && !f[key].includes(item[key]) || !Array.isArray(f[key]) && item[key] !== f[key]) {- return false;- }- }- } else if (filterAlgorithm === 'or') {- var match = false;-- for (var _key in f) {- if (Array.isArray(f[_key]) && f[_key].includes(item[_key]) || !Array.isArray(f[_key]) && item[_key] === f[_key]) {- match = true;- }- }-- return match;- }-- return true;- }) : _toConsumableArray(this.options.data);- }-- var visibleFields = this.getVisibleFields();- this.data = s ? this.data.filter(function (item, i) {- for (var j = 0; j < _this5.header.fields.length; j++) {- if (!_this5.header.searchables[j] || _this5.options.visibleSearch && visibleFields.indexOf(_this5.header.fields[j]) === -1) {- continue;- }-- var key = Utils.isNumeric(_this5.header.fields[j]) ? parseInt(_this5.header.fields[j], 10) : _this5.header.fields[j];- var column = _this5.columns[_this5.fieldsColumnsIndex[key]];- var value = void 0;-- if (typeof key === 'string') {- value = item;- var props = key.split('.');-- for (var _i6 = 0; _i6 < props.length; _i6++) {- if (value[props[_i6]] !== null) {- value = value[props[_i6]];- }- }- } else {- value = item[key];- }-- if (_this5.options.searchAccentNeutralise) {- value = Utils.normalizeAccent(value);- } // Fix #142: respect searchFormatter boolean--- if (column && column.searchFormatter) {- value = Utils.calculateObjectValue(column, _this5.header.formatters[j], [value, item, i, column.field], value);- }-- if (typeof value === 'string' || typeof value === 'number') {- if (_this5.options.strictSearch) {- if ("".concat(value).toLowerCase() === s) {- return true;- }- } else {- var largerSmallerEqualsRegex = /(?:(<=|=>|=<|>=|>|<)(?:\s+)?(\d+)?|(\d+)?(\s+)?(<=|=>|=<|>=|>|<))/gm;- var matches = largerSmallerEqualsRegex.exec(s);- var comparisonCheck = false;-- if (matches) {- var operator = matches[1] || "".concat(matches[5], "l");- var comparisonValue = matches[2] || matches[3];- var int = parseInt(value, 10);- var comparisonInt = parseInt(comparisonValue, 10);-- switch (operator) {- case '>':- case '<l':- comparisonCheck = int > comparisonInt;- break;-- case '<':- case '>l':- comparisonCheck = int < comparisonInt;- break;-- case '<=':- case '=<':- case '>=l':- case '=>l':- comparisonCheck = int <= comparisonInt;- break;-- case '>=':- case '=>':- case '<=l':- case '=<l':- comparisonCheck = int >= comparisonInt;- break;- }- }-- if (comparisonCheck || "".concat(value).toLowerCase().includes(s)) {- return true;- }- }- }- }-- return false;- }) : this.data;-- if (this.options.sortReset) {- this.unsortedData = _toConsumableArray(this.data);- }-- this.initSort();- }- }- }, {- key: "initPagination",- value: function initPagination() {- var _this6 = this;-- var opts = this.options;-- if (!opts.pagination) {- this.$pagination.hide();- return;- }-- this.$pagination.show();- var html = [];- var allSelected = false;- var i;- var from;- var to;- var $pageList;- var $pre;- var $next;- var $number;- var data = this.getData({- includeHiddenRows: false- });- var pageList = opts.pageList;-- if (typeof pageList === 'string') {- pageList = pageList.replace(/\[|\]| /g, '').toLowerCase().split(',');- }-- pageList = pageList.map(function (value) {- if (typeof value === 'string') {- return value.toLowerCase() === opts.formatAllRows().toLowerCase() || ['all', 'unlimited'].includes(value.toLowerCase()) ? opts.formatAllRows() : +value;- }-- return value;- });- this.paginationParts = opts.paginationParts;-- if (typeof this.paginationParts === 'string') {- this.paginationParts = this.paginationParts.replace(/\[|\]| |'/g, '').split(',');- }-- if (opts.sidePagination !== 'server') {- opts.totalRows = data.length;- }-- this.totalPages = 0;-- if (opts.totalRows) {- if (opts.pageSize === opts.formatAllRows()) {- opts.pageSize = opts.totalRows;- allSelected = true;- }-- this.totalPages = ~~((opts.totalRows - 1) / opts.pageSize) + 1;- opts.totalPages = this.totalPages;- }-- if (this.totalPages > 0 && opts.pageNumber > this.totalPages) {- opts.pageNumber = this.totalPages;- }-- this.pageFrom = (opts.pageNumber - 1) * opts.pageSize + 1;- this.pageTo = opts.pageNumber * opts.pageSize;-- if (this.pageTo > opts.totalRows) {- this.pageTo = opts.totalRows;- }-- if (this.options.pagination && this.options.sidePagination !== 'server') {- this.options.totalNotFiltered = this.options.data.length;- }-- if (!this.options.showExtendedPagination) {- this.options.totalNotFiltered = undefined;- }-- if (this.paginationParts.includes('pageInfo') || this.paginationParts.includes('pageInfoShort') || this.paginationParts.includes('pageSize')) {- html.push("<div class=\"".concat(this.constants.classes.pull, "-").concat(opts.paginationDetailHAlign, " pagination-detail\">"));- }-- if (this.paginationParts.includes('pageInfo') || this.paginationParts.includes('pageInfoShort')) {- var paginationInfo = this.paginationParts.includes('pageInfoShort') ? opts.formatDetailPagination(opts.totalRows) : opts.formatShowingRows(this.pageFrom, this.pageTo, opts.totalRows, opts.totalNotFiltered);- html.push("<span class=\"pagination-info\">\n ".concat(paginationInfo, "\n </span>"));- }-- if (this.paginationParts.includes('pageSize')) {- html.push('<span class="page-list">');- var pageNumber = ["<span class=\"".concat(this.constants.classes.paginationDropdown, "\">\n <button class=\"").concat(this.constants.buttonsClass, " dropdown-toggle\" type=\"button\" data-toggle=\"dropdown\">\n <span class=\"page-size\">\n ").concat(allSelected ? opts.formatAllRows() : opts.pageSize, "\n </span>\n ").concat(this.constants.html.dropdownCaret, "\n </button>\n ").concat(this.constants.html.pageDropdown[0])];- pageList.forEach(function (page, i) {- if (!opts.smartDisplay || i === 0 || pageList[i - 1] < opts.totalRows) {- var active;-- if (allSelected) {- active = page === opts.formatAllRows() ? _this6.constants.classes.dropdownActive : '';- } else {- active = page === opts.pageSize ? _this6.constants.classes.dropdownActive : '';- }-- pageNumber.push(Utils.sprintf(_this6.constants.html.pageDropdownItem, active, page));- }- });- pageNumber.push("".concat(this.constants.html.pageDropdown[1], "</span>"));- html.push(opts.formatRecordsPerPage(pageNumber.join('')));- }-- if (this.paginationParts.includes('pageInfo') || this.paginationParts.includes('pageInfoShort') || this.paginationParts.includes('pageSize')) {- html.push('</span></div>');- }-- if (this.paginationParts.includes('pageList')) {- html.push("<div class=\"".concat(this.constants.classes.pull, "-").concat(opts.paginationHAlign, " pagination\">"), Utils.sprintf(this.constants.html.pagination[0], Utils.sprintf(' pagination-%s', opts.iconSize)), Utils.sprintf(this.constants.html.paginationItem, ' page-pre', opts.formatSRPaginationPreText(), opts.paginationPreText));-- if (this.totalPages < opts.paginationSuccessivelySize) {- from = 1;- to = this.totalPages;- } else {- from = opts.pageNumber - opts.paginationPagesBySide;- to = from + opts.paginationPagesBySide * 2;- }-- if (opts.pageNumber < opts.paginationSuccessivelySize - 1) {- to = opts.paginationSuccessivelySize;- }-- if (opts.paginationSuccessivelySize > this.totalPages - from) {- from = from - (opts.paginationSuccessivelySize - (this.totalPages - from)) + 1;- }-- if (from < 1) {- from = 1;- }-- if (to > this.totalPages) {- to = this.totalPages;- }-- var middleSize = Math.round(opts.paginationPagesBySide / 2);-- var pageItem = function pageItem(i) {- var classes = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';- return Utils.sprintf(_this6.constants.html.paginationItem, classes + (i === opts.pageNumber ? " ".concat(_this6.constants.classes.paginationActive) : ''), opts.formatSRPaginationPageText(i), i);- };-- if (from > 1) {- var max = opts.paginationPagesBySide;- if (max >= from) max = from - 1;-- for (i = 1; i <= max; i++) {- html.push(pageItem(i));- }-- if (from - 1 === max + 1) {- i = from - 1;- html.push(pageItem(i));- } else {- if (from - 1 > max) {- if (from - opts.paginationPagesBySide * 2 > opts.paginationPagesBySide && opts.paginationUseIntermediate) {- i = Math.round((from - middleSize) / 2 + middleSize);- html.push(pageItem(i, ' page-intermediate'));- } else {- html.push(Utils.sprintf(this.constants.html.paginationItem, ' page-first-separator disabled', '', '...'));- }- }- }- }-- for (i = from; i <= to; i++) {- html.push(pageItem(i));- }-- if (this.totalPages > to) {- var min = this.totalPages - (opts.paginationPagesBySide - 1);- if (to >= min) min = to + 1;-- if (to + 1 === min - 1) {- i = to + 1;- html.push(pageItem(i));- } else {- if (min > to + 1) {- if (this.totalPages - to > opts.paginationPagesBySide * 2 && opts.paginationUseIntermediate) {- i = Math.round((this.totalPages - middleSize - to) / 2 + to);- html.push(pageItem(i, ' page-intermediate'));- } else {- html.push(Utils.sprintf(this.constants.html.paginationItem, ' page-last-separator disabled', '', '...'));- }- }- }-- for (i = min; i <= this.totalPages; i++) {- html.push(pageItem(i));- }- }-- html.push(Utils.sprintf(this.constants.html.paginationItem, ' page-next', opts.formatSRPaginationNextText(), opts.paginationNextText));- html.push(this.constants.html.pagination[1], '</div>');- }-- this.$pagination.html(html.join(''));- var dropupClass = ['bottom', 'both'].includes(opts.paginationVAlign) ? " ".concat(this.constants.classes.dropup) : '';- this.$pagination.last().find('.page-list > span').addClass(dropupClass);-- if (!opts.onlyInfoPagination) {- $pageList = this.$pagination.find('.page-list a');- $pre = this.$pagination.find('.page-pre');- $next = this.$pagination.find('.page-next');- $number = this.$pagination.find('.page-item').not('.page-next, .page-pre, .page-last-separator, .page-first-separator');-- if (this.totalPages <= 1) {- this.$pagination.find('div.pagination').hide();- }-- if (opts.smartDisplay) {- if (pageList.length < 2 || opts.totalRows <= pageList[0]) {- this.$pagination.find('span.page-list').hide();- }- } // when data is empty, hide the pagination--- this.$pagination[this.getData().length ? 'show' : 'hide']();-- if (!opts.paginationLoop) {- if (opts.pageNumber === 1) {- $pre.addClass('disabled');- }-- if (opts.pageNumber === this.totalPages) {- $next.addClass('disabled');- }- }-- if (allSelected) {- opts.pageSize = opts.formatAllRows();- } // removed the events for last and first, onPageNumber executeds the same logic--- $pageList.off('click').on('click', function (e) {- return _this6.onPageListChange(e);- });- $pre.off('click').on('click', function (e) {- return _this6.onPagePre(e);- });- $next.off('click').on('click', function (e) {- return _this6.onPageNext(e);- });- $number.off('click').on('click', function (e) {- return _this6.onPageNumber(e);- });- }- }- }, {- key: "updatePagination",- value: function updatePagination(event) {- // Fix #171: IE disabled button can be clicked bug.- if (event && $(event.currentTarget).hasClass('disabled')) {- return;- }-- if (!this.options.maintainMetaData) {- this.resetRows();- }-- this.initPagination();- this.trigger('page-change', this.options.pageNumber, this.options.pageSize);-- if (this.options.sidePagination === 'server') {- this.initServer();- } else {- this.initBody();- }- }- }, {- key: "onPageListChange",- value: function onPageListChange(event) {- event.preventDefault();- var $this = $(event.currentTarget);- $this.parent().addClass(this.constants.classes.dropdownActive).siblings().removeClass(this.constants.classes.dropdownActive);- this.options.pageSize = $this.text().toUpperCase() === this.options.formatAllRows().toUpperCase() ? this.options.formatAllRows() : +$this.text();- this.$toolbar.find('.page-size').text(this.options.pageSize);- this.updatePagination(event);- return false;- }- }, {- key: "onPagePre",- value: function onPagePre(event) {- event.preventDefault();-- if (this.options.pageNumber - 1 === 0) {- this.options.pageNumber = this.options.totalPages;- } else {- this.options.pageNumber--;- }-- this.updatePagination(event);- return false;- }- }, {- key: "onPageNext",- value: function onPageNext(event) {- event.preventDefault();-- if (this.options.pageNumber + 1 > this.options.totalPages) {- this.options.pageNumber = 1;- } else {- this.options.pageNumber++;- }-- this.updatePagination(event);- return false;- }- }, {- key: "onPageNumber",- value: function onPageNumber(event) {- event.preventDefault();-- if (this.options.pageNumber === +$(event.currentTarget).text()) {- return;- }-- this.options.pageNumber = +$(event.currentTarget).text();- this.updatePagination(event);- return false;- }- }, {- key: "initRow",- value: function initRow(item, i, data, trFragments) {- var _this7 = this;-- var html = [];- var style = {};- var csses = [];- var data_ = '';- var attributes = {};- var htmlAttributes = [];-- if (Utils.findIndex(this.hiddenRows, item) > -1) {- return;- }-- style = Utils.calculateObjectValue(this.options, this.options.rowStyle, [item, i], style);-- if (style && style.css) {- for (var _i7 = 0, _Object$entries6 = Object.entries(style.css); _i7 < _Object$entries6.length; _i7++) {- var _Object$entries6$_i = _slicedToArray(_Object$entries6[_i7], 2),- key = _Object$entries6$_i[0],- value = _Object$entries6$_i[1];-- csses.push("".concat(key, ": ").concat(value));- }- }-- attributes = Utils.calculateObjectValue(this.options, this.options.rowAttributes, [item, i], attributes);-- if (attributes) {- for (var _i8 = 0, _Object$entries7 = Object.entries(attributes); _i8 < _Object$entries7.length; _i8++) {- var _Object$entries7$_i = _slicedToArray(_Object$entries7[_i8], 2),- _key2 = _Object$entries7$_i[0],- _value = _Object$entries7$_i[1];-- htmlAttributes.push("".concat(_key2, "=\"").concat(Utils.escapeHTML(_value), "\""));- }- }-- if (item._data && !Utils.isEmptyObject(item._data)) {- for (var _i9 = 0, _Object$entries8 = Object.entries(item._data); _i9 < _Object$entries8.length; _i9++) {- var _Object$entries8$_i = _slicedToArray(_Object$entries8[_i9], 2),- k = _Object$entries8$_i[0],- v = _Object$entries8$_i[1];-- // ignore data-index- if (k === 'index') {- return;- }-- data_ += " data-".concat(k, "='").concat(_typeof(v) === 'object' ? JSON.stringify(v) : v, "'");- }- }-- html.push('<tr', Utils.sprintf(' %s', htmlAttributes.length ? htmlAttributes.join(' ') : undefined), Utils.sprintf(' id="%s"', Array.isArray(item) ? undefined : item._id), Utils.sprintf(' class="%s"', style.classes || (Array.isArray(item) ? undefined : item._class)), Utils.sprintf(' style="%s"', Array.isArray(item) ? undefined : item._style), " data-index=\"".concat(i, "\""), Utils.sprintf(' data-uniqueid="%s"', Utils.getItemField(item, this.options.uniqueId, false)), Utils.sprintf(' data-has-detail-view="%s"', this.options.detailView && Utils.calculateObjectValue(null, this.options.detailFilter, [i, item]) ? 'true' : undefined), Utils.sprintf('%s', data_), '>');-- if (this.options.cardView) {- html.push("<td colspan=\"".concat(this.header.fields.length, "\"><div class=\"card-views\">"));- }-- var detailViewTemplate = '';-- if (Utils.hasDetailViewIcon(this.options)) {- detailViewTemplate = '<td>';-- if (Utils.calculateObjectValue(null, this.options.detailFilter, [i, item])) {- detailViewTemplate += "\n <a class=\"detail-icon\" href=\"#\">\n ".concat(Utils.sprintf(this.constants.html.icon, this.options.iconsPrefix, this.options.icons.detailOpen), "\n </a>\n ");- }-- detailViewTemplate += '</td>';- }-- if (detailViewTemplate && this.options.detailViewAlign !== 'right') {- html.push(detailViewTemplate);- }-- this.header.fields.forEach(function (field, j) {- var text = '';- var value_ = Utils.getItemField(item, field, _this7.options.escape);- var value = '';- var type = '';- var cellStyle = {};- var id_ = '';- var class_ = _this7.header.classes[j];- var style_ = '';- var styleToAdd_ = '';- var data_ = '';- var rowspan_ = '';- var colspan_ = '';- var title_ = '';- var column = _this7.columns[j];-- if ((_this7.fromHtml || _this7.autoMergeCells) && typeof value_ === 'undefined') {- if (!column.checkbox && !column.radio) {- return;- }- }-- if (!column.visible) {- return;- }-- if (_this7.options.cardView && !column.cardVisible) {- return;- }-- if (column.escape) {- value_ = Utils.escapeHTML(value_);- } // Style concat--- if (csses.concat([_this7.header.styles[j]]).length) {- styleToAdd_ += "".concat(csses.concat([_this7.header.styles[j]]).join('; '));- }-- if (item["_".concat(field, "_style")]) {- styleToAdd_ += "".concat(item["_".concat(field, "_style")]);- }-- if (styleToAdd_) {- style_ = " style=\"".concat(styleToAdd_, "\"");- } // Style concat- // handle id and class of td--- if (item["_".concat(field, "_id")]) {- id_ = Utils.sprintf(' id="%s"', item["_".concat(field, "_id")]);- }-- if (item["_".concat(field, "_class")]) {- class_ = Utils.sprintf(' class="%s"', item["_".concat(field, "_class")]);- }-- if (item["_".concat(field, "_rowspan")]) {- rowspan_ = Utils.sprintf(' rowspan="%s"', item["_".concat(field, "_rowspan")]);- }-- if (item["_".concat(field, "_colspan")]) {- colspan_ = Utils.sprintf(' colspan="%s"', item["_".concat(field, "_colspan")]);- }-- if (item["_".concat(field, "_title")]) {- title_ = Utils.sprintf(' title="%s"', item["_".concat(field, "_title")]);- }-- cellStyle = Utils.calculateObjectValue(_this7.header, _this7.header.cellStyles[j], [value_, item, i, field], cellStyle);-- if (cellStyle.classes) {- class_ = " class=\"".concat(cellStyle.classes, "\"");- }-- if (cellStyle.css) {- var csses_ = [];-- for (var _i10 = 0, _Object$entries9 = Object.entries(cellStyle.css); _i10 < _Object$entries9.length; _i10++) {- var _Object$entries9$_i = _slicedToArray(_Object$entries9[_i10], 2),- _key3 = _Object$entries9$_i[0],- _value2 = _Object$entries9$_i[1];-- csses_.push("".concat(_key3, ": ").concat(_value2));- }-- style_ = " style=\"".concat(csses_.concat(_this7.header.styles[j]).join('; '), "\"");- }-- value = Utils.calculateObjectValue(column, _this7.header.formatters[j], [value_, item, i, field], value_);-- if (_this7.searchText !== '' && _this7.options.searchHighlight) {- value = Utils.calculateObjectValue(column, column.searchHighlightFormatter, [value, _this7.searchText], value.replace(new RegExp('(' + _this7.searchText + ')', 'gim'), '<mark>$1</mark>'));- }-- if (item["_".concat(field, "_data")] && !Utils.isEmptyObject(item["_".concat(field, "_data")])) {- for (var _i11 = 0, _Object$entries10 = Object.entries(item["_".concat(field, "_data")]); _i11 < _Object$entries10.length; _i11++) {- var _Object$entries10$_i = _slicedToArray(_Object$entries10[_i11], 2),- _k = _Object$entries10$_i[0],- _v = _Object$entries10$_i[1];-- // ignore data-index- if (_k === 'index') {- return;- }-- data_ += " data-".concat(_k, "=\"").concat(_v, "\"");- }- }-- if (column.checkbox || column.radio) {- type = column.checkbox ? 'checkbox' : type;- type = column.radio ? 'radio' : type;- var c = column['class'] || '';- var isChecked = Utils.isObject(value) && value.hasOwnProperty('checked') ? value.checked : (value === true || value_) && value !== false;- var isDisabled = !column.checkboxEnabled || value && value.disabled;- text = [_this7.options.cardView ? "<div class=\"card-view ".concat(c, "\">") : "<td class=\"bs-checkbox ".concat(c, "\"").concat(class_).concat(style_, ">"), "<label>\n <input\n data-index=\"".concat(i, "\"\n name=\"").concat(_this7.options.selectItemName, "\"\n type=\"").concat(type, "\"\n ").concat(Utils.sprintf('value="%s"', item[_this7.options.idField]), "\n ").concat(Utils.sprintf('checked="%s"', isChecked ? 'checked' : undefined), "\n ").concat(Utils.sprintf('disabled="%s"', isDisabled ? 'disabled' : undefined), " />\n <span></span>\n </label>"), _this7.header.formatters[j] && typeof value === 'string' ? value : '', _this7.options.cardView ? '</div>' : '</td>'].join('');- item[_this7.header.stateField] = value === true || !!value_ || value && value.checked;- } else {- value = typeof value === 'undefined' || value === null ? _this7.options.undefinedText : value;-- if (_this7.options.cardView) {- var cardTitle = _this7.options.showHeader ? "<span class=\"card-view-title\"".concat(style_, ">").concat(Utils.getFieldTitle(_this7.columns, field), "</span>") : '';- text = "<div class=\"card-view\">".concat(cardTitle, "<span class=\"card-view-value\">").concat(value, "</span></div>");-- if (_this7.options.smartDisplay && value === '') {- text = '<div class="card-view"></div>';- }- } else {- text = "<td".concat(id_).concat(class_).concat(style_).concat(data_).concat(rowspan_).concat(colspan_).concat(title_, ">").concat(value, "</td>");- }- }-- html.push(text);- });-- if (detailViewTemplate && this.options.detailViewAlign === 'right') {- html.push(detailViewTemplate);- }-- if (this.options.cardView) {- html.push('</div></td>');- }-- html.push('</tr>');- return html.join('');- }- }, {- key: "initBody",- value: function initBody(fixedScroll) {- var _this8 = this;-- var data = this.getData();- this.trigger('pre-body', data);- this.$body = this.$el.find('>tbody');-- if (!this.$body.length) {- this.$body = $('<tbody></tbody>').appendTo(this.$el);- } // Fix #389 Bootstrap-table-flatJSON is not working--- if (!this.options.pagination || this.options.sidePagination === 'server') {- this.pageFrom = 1;- this.pageTo = data.length;- }-- var rows = [];- var trFragments = $(document.createDocumentFragment());- var hasTr = false;- this.autoMergeCells = Utils.checkAutoMergeCells(data.slice(this.pageFrom - 1, this.pageTo));-- for (var i = this.pageFrom - 1; i < this.pageTo; i++) {- var item = data[i];- var tr = this.initRow(item, i, data, trFragments);- hasTr = hasTr || !!tr;-- if (tr && typeof tr === 'string') {- if (!this.options.virtualScroll) {- trFragments.append(tr);- } else {- rows.push(tr);- }- }- } // show no records--- if (!hasTr) {- this.$body.html("<tr class=\"no-records-found\">".concat(Utils.sprintf('<td colspan="%s">%s</td>', this.getVisibleFields().length + Utils.getDetailViewIndexOffset(this.options), this.options.formatNoMatches()), "</tr>"));- } else {- if (!this.options.virtualScroll) {- this.$body.html(trFragments);- } else {- if (this.virtualScroll) {- this.virtualScroll.destroy();- }-- this.virtualScroll = new VirtualScroll({- rows: rows,- fixedScroll: fixedScroll,- scrollEl: this.$tableBody[0],- contentEl: this.$body[0],- itemHeight: this.options.virtualScrollItemHeight,- callback: function callback() {- _this8.fitHeader();-- _this8.initBodyEvent();- }- });- }- }-- if (!fixedScroll) {- this.scrollTo(0);- }-- this.initBodyEvent();- this.updateSelected();- this.initFooter();- this.resetView();-- if (this.options.sidePagination !== 'server') {- this.options.totalRows = data.length;- }-- this.trigger('post-body', data);- }- }, {- key: "initBodyEvent",- value: function initBodyEvent() {- var _this9 = this;-- // click to select by column- this.$body.find('> tr[data-index] > td').off('click dblclick').on('click dblclick', function (e) {- var $td = $(e.currentTarget);- var $tr = $td.parent();- var $cardViewArr = $(e.target).parents('.card-views').children();- var $cardViewTarget = $(e.target).parents('.card-view');- var rowIndex = $tr.data('index');- var item = _this9.data[rowIndex];- var index = _this9.options.cardView ? $cardViewArr.index($cardViewTarget) : $td[0].cellIndex;-- var fields = _this9.getVisibleFields();-- var field = fields[index - Utils.getDetailViewIndexOffset(_this9.options)];- var column = _this9.columns[_this9.fieldsColumnsIndex[field]];- var value = Utils.getItemField(item, field, _this9.options.escape);-- if ($td.find('.detail-icon').length) {- return;- }-- _this9.trigger(e.type === 'click' ? 'click-cell' : 'dbl-click-cell', field, value, item, $td);-- _this9.trigger(e.type === 'click' ? 'click-row' : 'dbl-click-row', item, $tr, field); // if click to select - then trigger the checkbox/radio click--- if (e.type === 'click' && _this9.options.clickToSelect && column.clickToSelect && !Utils.calculateObjectValue(_this9.options, _this9.options.ignoreClickToSelectOn, [e.target])) {- var $selectItem = $tr.find(Utils.sprintf('[name="%s"]', _this9.options.selectItemName));-- if ($selectItem.length) {- $selectItem[0].click();- }- }-- if (e.type === 'click' && _this9.options.detailViewByClick) {- _this9.toggleDetailView(rowIndex, _this9.header.detailFormatters[_this9.fieldsColumnsIndex[field]]);- }- }).off('mousedown').on('mousedown', function (e) {- // https://github.com/jquery/jquery/issues/1741- _this9.multipleSelectRowCtrlKey = e.ctrlKey || e.metaKey;- _this9.multipleSelectRowShiftKey = e.shiftKey;- });- this.$body.find('> tr[data-index] > td > .detail-icon').off('click').on('click', function (e) {- e.preventDefault();-- _this9.toggleDetailView($(e.currentTarget).parent().parent().data('index'));-- return false;- });- this.$selectItem = this.$body.find(Utils.sprintf('[name="%s"]', this.options.selectItemName));- this.$selectItem.off('click').on('click', function (e) {- e.stopImmediatePropagation();- var $this = $(e.currentTarget);-- _this9._toggleCheck($this.prop('checked'), $this.data('index'));- });- this.header.events.forEach(function (_events, i) {- var events = _events;-- if (!events) {- return;- } // fix bug, if events is defined with namespace--- if (typeof events === 'string') {- events = Utils.calculateObjectValue(null, events);- }-- var field = _this9.header.fields[i];-- var fieldIndex = _this9.getVisibleFields().indexOf(field);-- if (fieldIndex === -1) {- return;- }-- fieldIndex += Utils.getDetailViewIndexOffset(_this9.options);-- var _loop2 = function _loop2(key) {- if (!events.hasOwnProperty(key)) {- return "continue";- }-- var event = events[key];-- _this9.$body.find('>tr:not(.no-records-found)').each(function (i, tr) {- var $tr = $(tr);- var $td = $tr.find(_this9.options.cardView ? '.card-views>.card-view' : '>td').eq(fieldIndex);- var index = key.indexOf(' ');- var name = key.substring(0, index);- var el = key.substring(index + 1);- $td.find(el).off(name).on(name, function (e) {- var index = $tr.data('index');- var row = _this9.data[index];- var value = row[field];- event.apply(_this9, [e, value, row, index]);- });- });- };-- for (var key in events) {- var _ret2 = _loop2(key);-- if (_ret2 === "continue") continue;- }- });- }- }, {- key: "initServer",- value: function initServer(silent, query, url) {- var _this10 = this;-- var data = {};- var index = this.header.fields.indexOf(this.options.sortName);- var params = {- searchText: this.searchText,- sortName: this.options.sortName,- sortOrder: this.options.sortOrder- };-- if (this.header.sortNames[index]) {- params.sortName = this.header.sortNames[index];- }-- if (this.options.pagination && this.options.sidePagination === 'server') {- params.pageSize = this.options.pageSize === this.options.formatAllRows() ? this.options.totalRows : this.options.pageSize;- params.pageNumber = this.options.pageNumber;- }-- if (!(url || this.options.url) && !this.options.ajax) {- return;- }-- if (this.options.queryParamsType === 'limit') {- params = {- search: params.searchText,- sort: params.sortName,- order: params.sortOrder- };-- if (this.options.pagination && this.options.sidePagination === 'server') {- params.offset = this.options.pageSize === this.options.formatAllRows() ? 0 : this.options.pageSize * (this.options.pageNumber - 1);- params.limit = this.options.pageSize === this.options.formatAllRows() ? this.options.totalRows : this.options.pageSize;-- if (params.limit === 0) {- delete params.limit;- }- }- }-- if (this.options.search && this.options.sidePagination === 'server' && this.columns.filter(function (column) {- return !column.searchable;- }).length) {- params.searchable = [];- var _iteratorNormalCompletion2 = true;- var _didIteratorError2 = false;- var _iteratorError2 = undefined;-- try {- for (var _iterator2 = this.columns[Symbol.iterator](), _step2; !(_iteratorNormalCompletion2 = (_step2 = _iterator2.next()).done); _iteratorNormalCompletion2 = true) {- var column = _step2.value;-- if (!column.checkbox && column.searchable && (this.options.visibleSearch && column.visible || !this.options.visibleSearch)) {- params.searchable.push(column.field);- }- }- } catch (err) {- _didIteratorError2 = true;- _iteratorError2 = err;- } finally {- try {- if (!_iteratorNormalCompletion2 && _iterator2.return != null) {- _iterator2.return();- }- } finally {- if (_didIteratorError2) {- throw _iteratorError2;- }- }- }- }-- if (!Utils.isEmptyObject(this.filterColumnsPartial)) {- params.filter = JSON.stringify(this.filterColumnsPartial, null);- }-- $.extend(params, query || {});- data = Utils.calculateObjectValue(this.options, this.options.queryParams, [params], data); // false to stop request-- if (data === false) {- return;- }-- if (!silent) {- this.showLoading();- }-- var request = $.extend({}, Utils.calculateObjectValue(null, this.options.ajaxOptions), {- type: this.options.method,- url: url || this.options.url,- data: this.options.contentType === 'application/json' && this.options.method === 'post' ? JSON.stringify(data) : data,- cache: this.options.cache,- contentType: this.options.contentType,- dataType: this.options.dataType,- success: function success(_res, textStatus, jqXHR) {- var res = Utils.calculateObjectValue(_this10.options, _this10.options.responseHandler, [_res, jqXHR], _res);-- _this10.load(res);-- _this10.trigger('load-success', res, jqXHR && jqXHR.status, jqXHR);-- if (!silent) {- _this10.hideLoading();- }-- if (_this10.options.sidePagination === 'server' && res[_this10.options.totalField] > 0 && !res[_this10.options.dataField].length) {- _this10.updatePagination();- }- },- error: function error(jqXHR) {- var data = [];-- if (_this10.options.sidePagination === 'server') {- data = {};- data[_this10.options.totalField] = 0;- data[_this10.options.dataField] = [];- }-- _this10.load(data);-- _this10.trigger('load-error', jqXHR && jqXHR.status, jqXHR);-- if (!silent) _this10.$tableLoading.hide();- }- });-- if (this.options.ajax) {- Utils.calculateObjectValue(this, this.options.ajax, [request], null);- } else {- if (this._xhr && this._xhr.readyState !== 4) {- this._xhr.abort();- }-- this._xhr = $.ajax(request);- }-- return data;- }- }, {- key: "initSearchText",- value: function initSearchText() {- if (this.options.search) {- this.searchText = '';-- if (this.options.searchText !== '') {- var $search = Utils.getSearchInput(this);- $search.val(this.options.searchText);- this.onSearch({- currentTarget: $search,- firedByInitSearchText: true- });- }- }- }- }, {- key: "getCaret",- value: function getCaret() {- var _this11 = this;-- this.$header.find('th').each(function (i, th) {- $(th).find('.sortable').removeClass('desc asc').addClass($(th).data('field') === _this11.options.sortName ? _this11.options.sortOrder : 'both');- });- }- }, {- key: "updateSelected",- value: function updateSelected() {- var checkAll = this.$selectItem.filter(':enabled').length && this.$selectItem.filter(':enabled').length === this.$selectItem.filter(':enabled').filter(':checked').length;- this.$selectAll.add(this.$selectAll_).prop('checked', checkAll);- this.$selectItem.each(function (i, el) {- $(el).closest('tr')[$(el).prop('checked') ? 'addClass' : 'removeClass']('selected');- });- }- }, {- key: "updateRows",- value: function updateRows() {- var _this12 = this;-- this.$selectItem.each(function (i, el) {- _this12.data[$(el).data('index')][_this12.header.stateField] = $(el).prop('checked');- });- }- }, {- key: "resetRows",- value: function resetRows() {- var _iteratorNormalCompletion3 = true;- var _didIteratorError3 = false;- var _iteratorError3 = undefined;-- try {- for (var _iterator3 = this.data[Symbol.iterator](), _step3; !(_iteratorNormalCompletion3 = (_step3 = _iterator3.next()).done); _iteratorNormalCompletion3 = true) {- var row = _step3.value;- this.$selectAll.prop('checked', false);- this.$selectItem.prop('checked', false);-- if (this.header.stateField) {- row[this.header.stateField] = false;- }- }- } catch (err) {- _didIteratorError3 = true;- _iteratorError3 = err;- } finally {- try {- if (!_iteratorNormalCompletion3 && _iterator3.return != null) {- _iterator3.return();- }- } finally {- if (_didIteratorError3) {- throw _iteratorError3;- }- }- }-- this.initHiddenRows();- }- }, {- key: "trigger",- value: function trigger(_name) {- var _this$options, _this$options2;-- var name = "".concat(_name, ".bs.table");-- for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key4 = 1; _key4 < _len; _key4++) {- args[_key4 - 1] = arguments[_key4];- }-- (_this$options = this.options)[BootstrapTable.EVENTS[name]].apply(_this$options, [].concat(args, [this]));-- this.$el.trigger($.Event(name, {- sender: this- }), args);-- (_this$options2 = this.options).onAll.apply(_this$options2, [name].concat([].concat(args, [this])));-- this.$el.trigger($.Event('all.bs.table', {- sender: this- }), [name, args]);- }- }, {- key: "resetHeader",- value: function resetHeader() {- var _this13 = this;-- // fix #61: the hidden table reset header bug.- // fix bug: get $el.css('width') error sometime (height = 500)- clearTimeout(this.timeoutId_);- this.timeoutId_ = setTimeout(function () {- return _this13.fitHeader();- }, this.$el.is(':hidden') ? 100 : 0);- }- }, {- key: "fitHeader",- value: function fitHeader() {- var _this14 = this;-- if (this.$el.is(':hidden')) {- this.timeoutId_ = setTimeout(function () {- return _this14.fitHeader();- }, 100);- return;- }-- var fixedBody = this.$tableBody.get(0);- var scrollWidth = fixedBody.scrollWidth > fixedBody.clientWidth && fixedBody.scrollHeight > fixedBody.clientHeight + this.$header.outerHeight() ? Utils.getScrollBarWidth() : 0;- this.$el.css('margin-top', -this.$header.outerHeight());- var focused = $(':focus');-- if (focused.length > 0) {- var $th = focused.parents('th');-- if ($th.length > 0) {- var dataField = $th.attr('data-field');-- if (dataField !== undefined) {- var $headerTh = this.$header.find("[data-field='".concat(dataField, "']"));-- if ($headerTh.length > 0) {- $headerTh.find(':input').addClass('focus-temp');- }- }- }- }-- this.$header_ = this.$header.clone(true, true);- this.$selectAll_ = this.$header_.find('[name="btSelectAll"]');- this.$tableHeader.css('margin-right', scrollWidth).find('table').css('width', this.$el.outerWidth()).html('').attr('class', this.$el.attr('class')).append(this.$header_);- this.$tableLoading.css('width', this.$el.outerWidth());- var focusedTemp = $('.focus-temp:visible:eq(0)');-- if (focusedTemp.length > 0) {- focusedTemp.focus();- this.$header.find('.focus-temp').removeClass('focus-temp');- } // fix bug: $.data() is not working as expected after $.append()--- this.$header.find('th[data-field]').each(function (i, el) {- _this14.$header_.find(Utils.sprintf('th[data-field="%s"]', $(el).data('field'))).data($(el).data());- });- var visibleFields = this.getVisibleFields();- var $ths = this.$header_.find('th');- var $tr = this.$body.find('>tr:not(.no-records-found,.virtual-scroll-top)').eq(0);-- while ($tr.length && $tr.find('>td[colspan]:not([colspan="1"])').length) {- $tr = $tr.next();- }-- var trLength = $tr.find('> *').length;- $tr.find('> *').each(function (i, el) {- var $this = $(el);-- if (Utils.hasDetailViewIcon(_this14.options)) {- if (i === 0 && _this14.options.detailViewAlign !== 'right' || i === trLength - 1 && _this14.options.detailViewAlign === 'right') {- var $thDetail = $ths.filter('.detail');-- var _zoomWidth = $thDetail.innerWidth() - $thDetail.find('.fht-cell').width();-- $thDetail.find('.fht-cell').width($this.innerWidth() - _zoomWidth);- return;- }- }-- var index = i - Utils.getDetailViewIndexOffset(_this14.options);-- var $th = _this14.$header_.find(Utils.sprintf('th[data-field="%s"]', visibleFields[index]));-- if ($th.length > 1) {- $th = $($ths[$this[0].cellIndex]);- }-- var zoomWidth = $th.innerWidth() - $th.find('.fht-cell').width();- $th.find('.fht-cell').width($this.innerWidth() - zoomWidth);- });- this.horizontalScroll();- this.trigger('post-header');- }- }, {- key: "initFooter",- value: function initFooter() {- if (!this.options.showFooter || this.options.cardView) {- // do nothing- return;- }-- var data = this.getData();- var html = [];- var detailTemplate = '';-- if (Utils.hasDetailViewIcon(this.options)) {- detailTemplate = '<th class="detail"><div class="th-inner"></div><div class="fht-cell"></div></th>';- }-- if (detailTemplate && this.options.detailViewAlign !== 'right') {- html.push(detailTemplate);- }-- var _iteratorNormalCompletion4 = true;- var _didIteratorError4 = false;- var _iteratorError4 = undefined;-- try {- for (var _iterator4 = this.columns[Symbol.iterator](), _step4; !(_iteratorNormalCompletion4 = (_step4 = _iterator4.next()).done); _iteratorNormalCompletion4 = true) {- var column = _step4.value;- var falign = '';- var valign = '';- var csses = [];- var style = {};- var class_ = Utils.sprintf(' class="%s"', column['class']);-- if (!column.visible || this.footerData && this.footerData.length > 0 && !(column.field in this.footerData[0])) {- continue;- }-- if (this.options.cardView && !column.cardVisible) {- return;- }-- falign = Utils.sprintf('text-align: %s; ', column.falign ? column.falign : column.align);- valign = Utils.sprintf('vertical-align: %s; ', column.valign);- style = Utils.calculateObjectValue(null, this.options.footerStyle, [column]);-- if (style && style.css) {- for (var _i12 = 0, _Object$entries11 = Object.entries(style.css); _i12 < _Object$entries11.length; _i12++) {- var _Object$entries11$_i = _slicedToArray(_Object$entries11[_i12], 2),- key = _Object$entries11$_i[0],- _value3 = _Object$entries11$_i[1];-- csses.push("".concat(key, ": ").concat(_value3));- }- }-- if (style && style.classes) {- class_ = Utils.sprintf(' class="%s"', column['class'] ? [column['class'], style.classes].join(' ') : style.classes);- }-- html.push('<th', class_, Utils.sprintf(' style="%s"', falign + valign + csses.concat().join('; ')));- var colspan = 0;-- if (this.footerData && this.footerData.length > 0) {- colspan = this.footerData[0]['_' + column.field + '_colspan'] || 0;- }-- if (colspan) {- html.push(" colspan=\"".concat(colspan, "\" "));- }-- html.push('>');- html.push('<div class="th-inner">');- var value = '';-- if (this.footerData && this.footerData.length > 0) {- value = this.footerData[0][column.field] || '';- }-- html.push(Utils.calculateObjectValue(column, column.footerFormatter, [data, value], value));- html.push('</div>');- html.push('<div class="fht-cell"></div>');- html.push('</div>');- html.push('</th>');- }- } catch (err) {- _didIteratorError4 = true;- _iteratorError4 = err;- } finally {- try {- if (!_iteratorNormalCompletion4 && _iterator4.return != null) {- _iterator4.return();- }- } finally {- if (_didIteratorError4) {- throw _iteratorError4;- }- }- }-- if (detailTemplate && this.options.detailViewAlign === 'right') {- html.push(detailTemplate);- }-- if (!this.options.height && !this.$tableFooter.length) {- this.$el.append('<tfoot><tr></tr></tfoot>');- this.$tableFooter = this.$el.find('tfoot');- }-- this.$tableFooter.find('tr').html(html.join(''));- this.trigger('post-footer', this.$tableFooter);- }- }, {- key: "fitFooter",- value: function fitFooter() {- var _this15 = this;-- if (this.$el.is(':hidden')) {- setTimeout(function () {- return _this15.fitFooter();- }, 100);- return;- }-- var fixedBody = this.$tableBody.get(0);- var scrollWidth = fixedBody.scrollWidth > fixedBody.clientWidth && fixedBody.scrollHeight > fixedBody.clientHeight + this.$header.outerHeight() ? Utils.getScrollBarWidth() : 0;- this.$tableFooter.css('margin-right', scrollWidth).find('table').css('width', this.$el.outerWidth()).attr('class', this.$el.attr('class'));- var visibleFields = this.getVisibleFields();- var $ths = this.$tableFooter.find('th');- var $tr = this.$body.find('>tr:first-child:not(.no-records-found)');- $ths.find('.fht-cell').width('auto');-- while ($tr.length && $tr.find('>td[colspan]:not([colspan="1"])').length) {- $tr = $tr.next();- }-- var trLength = $tr.find('> *').length;- $tr.find('> *').each(function (i, el) {- var $this = $(el);-- if (Utils.hasDetailViewIcon(_this15.options)) {- if (i === 0 && _this15.options.detailViewAlign === 'left' || i === trLength - 1 && _this15.options.detailViewAlign === 'right') {- var $thDetail = $ths.filter('.detail');-- var _zoomWidth2 = $thDetail.innerWidth() - $thDetail.find('.fht-cell').width();-- $thDetail.find('.fht-cell').width($this.innerWidth() - _zoomWidth2);- return;- }- }-- var $th = $ths.eq(i);- var zoomWidth = $th.innerWidth() - $th.find('.fht-cell').width();- $th.find('.fht-cell').width($this.innerWidth() - zoomWidth);- });- this.horizontalScroll();- }- }, {- key: "horizontalScroll",- value: function horizontalScroll() {- var _this16 = this;-- // horizontal scroll event- // TODO: it's probably better improving the layout than binding to scroll event- this.$tableBody.off('scroll').on('scroll', function () {- var scrollLeft = _this16.$tableBody.scrollLeft();-- if (_this16.options.showHeader && _this16.options.height) {- _this16.$tableHeader.scrollLeft(scrollLeft);- }-- if (_this16.options.showFooter && !_this16.options.cardView) {- _this16.$tableFooter.scrollLeft(scrollLeft);- }-- _this16.trigger('scroll-body', _this16.$tableBody);- });- }- }, {- key: "getVisibleFields",- value: function getVisibleFields() {- var visibleFields = [];- var _iteratorNormalCompletion5 = true;- var _didIteratorError5 = false;- var _iteratorError5 = undefined;-- try {- for (var _iterator5 = this.header.fields[Symbol.iterator](), _step5; !(_iteratorNormalCompletion5 = (_step5 = _iterator5.next()).done); _iteratorNormalCompletion5 = true) {- var field = _step5.value;- var column = this.columns[this.fieldsColumnsIndex[field]];-- if (!column || !column.visible) {- continue;- }-- visibleFields.push(field);- }- } catch (err) {- _didIteratorError5 = true;- _iteratorError5 = err;- } finally {- try {- if (!_iteratorNormalCompletion5 && _iterator5.return != null) {- _iterator5.return();- }- } finally {- if (_didIteratorError5) {- throw _iteratorError5;- }- }- }-- return visibleFields;- }- }, {- key: "initHiddenRows",- value: function initHiddenRows() {- this.hiddenRows = [];- } // PUBLIC FUNCTION DEFINITION- // =======================-- }, {- key: "getOptions",- value: function getOptions() {- // deep copy and remove data- var options = $.extend({}, this.options);- delete options.data;- return $.extend(true, {}, options);- }- }, {- key: "refreshOptions",- value: function refreshOptions(options) {- // If the objects are equivalent then avoid the call of destroy / init methods- if (Utils.compareObjects(this.options, options, true)) {- return;- }-- this.options = $.extend(this.options, options);- this.trigger('refresh-options', this.options);- this.destroy();- this.init();- }- }, {- key: "getData",- value: function getData(params) {- var _this17 = this;-- var data = this.options.data;-- if ((this.searchText || this.options.customSearch || this.options.sortName !== undefined || !Utils.isEmptyObject(this.filterColumns) || !Utils.isEmptyObject(this.filterColumnsPartial)) && (!params || !params.unfiltered)) {- data = this.data;- }-- if (params && params.useCurrentPage) {- data = data.slice(this.pageFrom - 1, this.pageTo);- }-- if (params && !params.includeHiddenRows) {- var hiddenRows = this.getHiddenRows();- data = data.filter(function (row) {- return Utils.findIndex(hiddenRows, row) === -1;- });- }-- if (params && params.formatted) {- data.forEach(function (row) {- for (var _i13 = 0, _Object$entries12 = Object.entries(row); _i13 < _Object$entries12.length; _i13++) {- var _Object$entries12$_i = _slicedToArray(_Object$entries12[_i13], 2),- key = _Object$entries12$_i[0],- value = _Object$entries12$_i[1];-- var column = _this17.columns[_this17.fieldsColumnsIndex[key]];-- if (!column) {- return;- }-- row[key] = Utils.calculateObjectValue(column, _this17.header.formatters[column.fieldIndex], [value, row, row.index, column.field], value);- }- });- }-- return data;- }- }, {- key: "getSelections",- value: function getSelections() {- var _this18 = this;-- return this.options.data.filter(function (row) {- return row[_this18.header.stateField] === true;- });- }- }, {- key: "load",- value: function load(_data) {- var fixedScroll = false;- var data = _data; // #431: support pagination-- if (this.options.pagination && this.options.sidePagination === 'server') {- this.options.totalRows = data[this.options.totalField];- this.options.totalNotFiltered = data[this.options.totalNotFilteredField];- this.footerData = data[this.options.footerField] ? [data[this.options.footerField]] : undefined;- }-- fixedScroll = data.fixedScroll;- data = Array.isArray(data) ? data : data[this.options.dataField];- this.initData(data);- this.initSearch();- this.initPagination();- this.initBody(fixedScroll);- }- }, {- key: "append",- value: function append(data) {- this.initData(data, 'append');- this.initSearch();- this.initPagination();- this.initSort();- this.initBody(true);- }- }, {- key: "prepend",- value: function prepend(data) {- this.initData(data, 'prepend');- this.initSearch();- this.initPagination();- this.initSort();- this.initBody(true);- }- }, {- key: "remove",- value: function remove(params) {- var len = this.options.data.length;- var i;- var row;-- if (!params.hasOwnProperty('field') || !params.hasOwnProperty('values')) {- return;- }-- for (i = len - 1; i >= 0; i--) {- var exists = false;- row = this.options.data[i];-- if (!row.hasOwnProperty(params.field) && params.field !== '$index') {- continue;- } else if (!row.hasOwnProperty(params.field) && params.field === '$index') {- exists = params.values.includes(i);- } else {- exists = params.values.includes(row[params.field]);- }-- if (exists) {- this.options.data.splice(i, 1);-- if (this.options.sidePagination === 'server') {- this.options.totalRows -= 1;- }- }- }-- if (len === this.options.data.length) {- return;- }-- this.initSearch();- this.initPagination();- this.initSort();- this.initBody(true);- }- }, {- key: "removeAll",- value: function removeAll() {- if (this.options.data.length > 0) {- this.options.data.splice(0, this.options.data.length);- this.initSearch();- this.initPagination();- this.initBody(true);- }- }- }, {- key: "insertRow",- value: function insertRow(params) {- if (!params.hasOwnProperty('index') || !params.hasOwnProperty('row')) {- return;- }-- this.options.data.splice(params.index, 0, params.row);- this.initSearch();- this.initPagination();- this.initSort();- this.initBody(true);- }- }, {- key: "updateRow",- value: function updateRow(params) {- var allParams = Array.isArray(params) ? params : [params];- var _iteratorNormalCompletion6 = true;- var _didIteratorError6 = false;- var _iteratorError6 = undefined;-- try {- for (var _iterator6 = allParams[Symbol.iterator](), _step6; !(_iteratorNormalCompletion6 = (_step6 = _iterator6.next()).done); _iteratorNormalCompletion6 = true) {- var _params = _step6.value;-- if (!_params.hasOwnProperty('index') || !_params.hasOwnProperty('row')) {- continue;- }-- if (_params.hasOwnProperty('replace') && _params.replace) {- this.options.data[_params.index] = _params.row;- } else {- $.extend(this.options.data[_params.index], _params.row);- }- }- } catch (err) {- _didIteratorError6 = true;- _iteratorError6 = err;- } finally {- try {- if (!_iteratorNormalCompletion6 && _iterator6.return != null) {- _iterator6.return();- }- } finally {- if (_didIteratorError6) {- throw _iteratorError6;- }- }- }-- this.initSearch();- this.initPagination();- this.initSort();- this.initBody(true);- }- }, {- key: "getRowByUniqueId",- value: function getRowByUniqueId(_id) {- var uniqueId = this.options.uniqueId;- var len = this.options.data.length;- var id = _id;- var dataRow = null;- var i;- var row;- var rowUniqueId;-- for (i = len - 1; i >= 0; i--) {- row = this.options.data[i];-- if (row.hasOwnProperty(uniqueId)) {- // uniqueId is a column- rowUniqueId = row[uniqueId];- } else if (row._data && row._data.hasOwnProperty(uniqueId)) {- // uniqueId is a row data property- rowUniqueId = row._data[uniqueId];- } else {- continue;- }-- if (typeof rowUniqueId === 'string') {- id = id.toString();- } else if (typeof rowUniqueId === 'number') {- if (Number(rowUniqueId) === rowUniqueId && rowUniqueId % 1 === 0) {- id = parseInt(id);- } else if (rowUniqueId === Number(rowUniqueId) && rowUniqueId !== 0) {- id = parseFloat(id);- }- }-- if (rowUniqueId === id) {- dataRow = row;- break;- }- }-- return dataRow;- }- }, {- key: "updateByUniqueId",- value: function updateByUniqueId(params) {- var allParams = Array.isArray(params) ? params : [params];- var _iteratorNormalCompletion7 = true;- var _didIteratorError7 = false;- var _iteratorError7 = undefined;-- try {- for (var _iterator7 = allParams[Symbol.iterator](), _step7; !(_iteratorNormalCompletion7 = (_step7 = _iterator7.next()).done); _iteratorNormalCompletion7 = true) {- var _params2 = _step7.value;-- if (!_params2.hasOwnProperty('id') || !_params2.hasOwnProperty('row')) {- continue;- }-- var rowId = this.options.data.indexOf(this.getRowByUniqueId(_params2.id));-- if (rowId === -1) {- continue;- }-- if (_params2.hasOwnProperty('replace') && _params2.replace) {- this.options.data[rowId] = _params2.row;- } else {- $.extend(this.options.data[rowId], _params2.row);- }- }- } catch (err) {- _didIteratorError7 = true;- _iteratorError7 = err;- } finally {- try {- if (!_iteratorNormalCompletion7 && _iterator7.return != null) {- _iterator7.return();- }- } finally {- if (_didIteratorError7) {- throw _iteratorError7;- }- }- }-- this.initSearch();- this.initPagination();- this.initSort();- this.initBody(true);- }- }, {- key: "removeByUniqueId",- value: function removeByUniqueId(id) {- var len = this.options.data.length;- var row = this.getRowByUniqueId(id);-- if (row) {- this.options.data.splice(this.options.data.indexOf(row), 1);- }-- if (len === this.options.data.length) {- return;- }-- this.initSearch();- this.initPagination();- this.initBody(true);- }- }, {- key: "updateCell",- value: function updateCell(params) {- if (!params.hasOwnProperty('index') || !params.hasOwnProperty('field') || !params.hasOwnProperty('value')) {- return;- }-- this.data[params.index][params.field] = params.value;-- if (params.reinit === false) {- return;- }-- this.initSort();- this.initBody(true);- }- }, {- key: "updateCellByUniqueId",- value: function updateCellByUniqueId(params) {- var _this19 = this;-- var allParams = Array.isArray(params) ? params : [params];- allParams.forEach(function (_ref6) {- var id = _ref6.id,- field = _ref6.field,- value = _ref6.value;-- var rowId = _this19.options.data.indexOf(_this19.getRowByUniqueId(id));-- if (rowId === -1) {- return;- }-- _this19.options.data[rowId][field] = value;- });-- if (params.reinit === false) {- return;- }-- this.initSort();- this.initBody(true);- }- }, {- key: "showRow",- value: function showRow(params) {- this._toggleRow(params, true);- }- }, {- key: "hideRow",- value: function hideRow(params) {- this._toggleRow(params, false);- }- }, {- key: "_toggleRow",- value: function _toggleRow(params, visible) {- var row;-- if (params.hasOwnProperty('index')) {- row = this.getData()[params.index];- } else if (params.hasOwnProperty('uniqueId')) {- row = this.getRowByUniqueId(params.uniqueId);- }-- if (!row) {- return;- }-- var index = Utils.findIndex(this.hiddenRows, row);-- if (!visible && index === -1) {- this.hiddenRows.push(row);- } else if (visible && index > -1) {- this.hiddenRows.splice(index, 1);- }-- this.initBody(true);- this.initPagination();- }- }, {- key: "getHiddenRows",- value: function getHiddenRows(show) {- if (show) {- this.initHiddenRows();- this.initBody(true);- this.initPagination();- return;- }-- var data = this.getData();- var rows = [];- var _iteratorNormalCompletion8 = true;- var _didIteratorError8 = false;- var _iteratorError8 = undefined;-- try {- for (var _iterator8 = data[Symbol.iterator](), _step8; !(_iteratorNormalCompletion8 = (_step8 = _iterator8.next()).done); _iteratorNormalCompletion8 = true) {- var row = _step8.value;-- if (this.hiddenRows.includes(row)) {- rows.push(row);- }- }- } catch (err) {- _didIteratorError8 = true;- _iteratorError8 = err;- } finally {- try {- if (!_iteratorNormalCompletion8 && _iterator8.return != null) {- _iterator8.return();- }- } finally {- if (_didIteratorError8) {- throw _iteratorError8;- }- }- }-- this.hiddenRows = rows;- return rows;- }- }, {- key: "showColumn",- value: function showColumn(field) {- var _this20 = this;-- var fields = Array.isArray(field) ? field : [field];- fields.forEach(function (field) {- _this20._toggleColumn(_this20.fieldsColumnsIndex[field], true, true);- });- }- }, {- key: "hideColumn",- value: function hideColumn(field) {- var _this21 = this;-- var fields = Array.isArray(field) ? field : [field];- fields.forEach(function (field) {- _this21._toggleColumn(_this21.fieldsColumnsIndex[field], false, true);- });- }- }, {- key: "_toggleColumn",- value: function _toggleColumn(index, checked, needUpdate) {- if (index === -1 || this.columns[index].visible === checked) {- return;- }-- this.columns[index].visible = checked;- this.initHeader();- this.initSearch();- this.initPagination();- this.initBody();-- if (this.options.showColumns) {- var $items = this.$toolbar.find('.keep-open input:not(".toggle-all")').prop('disabled', false);-- if (needUpdate) {- $items.filter(Utils.sprintf('[value="%s"]', index)).prop('checked', checked);- }-- if ($items.filter(':checked').length <= this.options.minimumCountColumns) {- $items.filter(':checked').prop('disabled', true);- }- }- }- }, {- key: "getVisibleColumns",- value: function getVisibleColumns() {- var _this22 = this;-- return this.columns.filter(function (column) {- return column.visible && !_this22.isSelectionColumn(column);- });- }- }, {- key: "getHiddenColumns",- value: function getHiddenColumns() {- return this.columns.filter(function (_ref7) {- var visible = _ref7.visible;- return !visible;- });- }- }, {- key: "isSelectionColumn",- value: function isSelectionColumn(column) {- return column.radio || column.checkbox;- }- }, {- key: "showAllColumns",- value: function showAllColumns() {- this._toggleAllColumns(true);- }- }, {- key: "hideAllColumns",- value: function hideAllColumns() {- this._toggleAllColumns(false);- }- }, {- key: "_toggleAllColumns",- value: function _toggleAllColumns(visible) {- var _this23 = this;-- var _iteratorNormalCompletion9 = true;- var _didIteratorError9 = false;- var _iteratorError9 = undefined;-- try {- for (var _iterator9 = this.columns.slice().reverse()[Symbol.iterator](), _step9; !(_iteratorNormalCompletion9 = (_step9 = _iterator9.next()).done); _iteratorNormalCompletion9 = true) {- var column = _step9.value;-- if (column.switchable) {- if (!visible && this.options.showColumns && this.getVisibleColumns().length === this.options.minimumCountColumns) {- continue;- }-- column.visible = visible;- }- }- } catch (err) {- _didIteratorError9 = true;- _iteratorError9 = err;- } finally {- try {- if (!_iteratorNormalCompletion9 && _iterator9.return != null) {- _iterator9.return();- }- } finally {- if (_didIteratorError9) {- throw _iteratorError9;- }- }- }-- this.initHeader();- this.initSearch();- this.initPagination();- this.initBody();-- if (this.options.showColumns) {- var $items = this.$toolbar.find('.keep-open input[type="checkbox"]:not(".toggle-all")').prop('disabled', false);-- if (visible) {- $items.prop('checked', visible);- } else {- $items.get().reverse().forEach(function (item) {- if ($items.filter(':checked').length > _this23.options.minimumCountColumns) {- $(item).prop('checked', visible);- }- });- }-- if ($items.filter(':checked').length <= this.options.minimumCountColumns) {- $items.filter(':checked').prop('disabled', true);- }- }- }- }, {- key: "mergeCells",- value: function mergeCells(options) {- var row = options.index;- var col = this.getVisibleFields().indexOf(options.field);- var rowspan = options.rowspan || 1;- var colspan = options.colspan || 1;- var i;- var j;- var $tr = this.$body.find('>tr');- col += Utils.getDetailViewIndexOffset(this.options);- var $td = $tr.eq(row).find('>td').eq(col);-- if (row < 0 || col < 0 || row >= this.data.length) {- return;- }-- for (i = row; i < row + rowspan; i++) {- for (j = col; j < col + colspan; j++) {- $tr.eq(i).find('>td').eq(j).hide();- }- }-- $td.attr('rowspan', rowspan).attr('colspan', colspan).show();- }- }, {- key: "checkAll",- value: function checkAll() {- this._toggleCheckAll(true);- }- }, {- key: "uncheckAll",- value: function uncheckAll() {- this._toggleCheckAll(false);- }- }, {- key: "_toggleCheckAll",- value: function _toggleCheckAll(checked) {- var rowsBefore = this.getSelections();- this.$selectAll.add(this.$selectAll_).prop('checked', checked);- this.$selectItem.filter(':enabled').prop('checked', checked);- this.updateRows();- this.updateSelected();- var rowsAfter = this.getSelections();-- if (checked) {- this.trigger('check-all', rowsAfter, rowsBefore);- return;- }-- this.trigger('uncheck-all', rowsAfter, rowsBefore);- }- }, {- key: "checkInvert",- value: function checkInvert() {- var $items = this.$selectItem.filter(':enabled');- var checked = $items.filter(':checked');- $items.each(function (i, el) {- $(el).prop('checked', !$(el).prop('checked'));- });- this.updateRows();- this.updateSelected();- this.trigger('uncheck-some', checked);- checked = this.getSelections();- this.trigger('check-some', checked);- }- }, {- key: "check",- value: function check(index) {- this._toggleCheck(true, index);- }- }, {- key: "uncheck",- value: function uncheck(index) {- this._toggleCheck(false, index);- }- }, {- key: "_toggleCheck",- value: function _toggleCheck(checked, index) {- var $el = this.$selectItem.filter("[data-index=\"".concat(index, "\"]"));- var row = this.options.data[index];-- if ($el.is(':radio') || this.options.singleSelect || this.options.multipleSelectRow && !this.multipleSelectRowCtrlKey && !this.multipleSelectRowShiftKey) {- var _iteratorNormalCompletion10 = true;- var _didIteratorError10 = false;- var _iteratorError10 = undefined;-- try {- for (var _iterator10 = this.options.data[Symbol.iterator](), _step10; !(_iteratorNormalCompletion10 = (_step10 = _iterator10.next()).done); _iteratorNormalCompletion10 = true) {- var r = _step10.value;- r[this.header.stateField] = false;- }- } catch (err) {- _didIteratorError10 = true;- _iteratorError10 = err;- } finally {- try {- if (!_iteratorNormalCompletion10 && _iterator10.return != null) {- _iterator10.return();- }- } finally {- if (_didIteratorError10) {- throw _iteratorError10;- }- }- }-- this.$selectItem.filter(':checked').not($el).prop('checked', false);- }-- row[this.header.stateField] = checked;-- if (this.options.multipleSelectRow) {- if (this.multipleSelectRowShiftKey && this.multipleSelectRowLastSelectedIndex >= 0) {- var indexes = [this.multipleSelectRowLastSelectedIndex, index].sort();-- for (var i = indexes[0] + 1; i < indexes[1]; i++) {- this.data[i][this.header.stateField] = true;- this.$selectItem.filter("[data-index=\"".concat(i, "\"]")).prop('checked', true);- }- }-- this.multipleSelectRowCtrlKey = false;- this.multipleSelectRowShiftKey = false;- this.multipleSelectRowLastSelectedIndex = checked ? index : -1;- }-- $el.prop('checked', checked);- this.updateSelected();- this.trigger(checked ? 'check' : 'uncheck', this.data[index], $el);- }- }, {- key: "checkBy",- value: function checkBy(obj) {- this._toggleCheckBy(true, obj);- }- }, {- key: "uncheckBy",- value: function uncheckBy(obj) {- this._toggleCheckBy(false, obj);- }- }, {- key: "_toggleCheckBy",- value: function _toggleCheckBy(checked, obj) {- var _this24 = this;-- if (!obj.hasOwnProperty('field') || !obj.hasOwnProperty('values')) {- return;- }-- var rows = [];- this.data.forEach(function (row, i) {- if (!row.hasOwnProperty(obj.field)) {- return false;- }-- if (obj.values.includes(row[obj.field])) {- var $el = _this24.$selectItem.filter(':enabled').filter(Utils.sprintf('[data-index="%s"]', i));-- $el = checked ? $el.not(':checked') : $el.filter(':checked');-- if (!$el.length) {- return;- }-- $el.prop('checked', checked);- row[_this24.header.stateField] = checked;- rows.push(row);-- _this24.trigger(checked ? 'check' : 'uncheck', row, $el);- }- });- this.updateSelected();- this.trigger(checked ? 'check-some' : 'uncheck-some', rows);- }- }, {- key: "refresh",- value: function refresh(params) {- if (params && params.url) {- this.options.url = params.url;- }-- if (params && params.pageNumber) {- this.options.pageNumber = params.pageNumber;- }-- if (params && params.pageSize) {- this.options.pageSize = params.pageSize;- }-- this.trigger('refresh', this.initServer(params && params.silent, params && params.query, params && params.url));- }- }, {- key: "destroy",- value: function destroy() {- this.$el.insertBefore(this.$container);- $(this.options.toolbar).insertBefore(this.$el);- this.$container.next().remove();- this.$container.remove();- this.$el.html(this.$el_.html()).css('margin-top', '0').attr('class', this.$el_.attr('class') || ''); // reset the class- }- }, {- key: "resetView",- value: function resetView(params) {- var padding = 0;-- if (params && params.height) {- this.options.height = params.height;- }-- this.$selectAll.prop('checked', this.$selectItem.length > 0 && this.$selectItem.length === this.$selectItem.filter(':checked').length);- this.$tableContainer.toggleClass('has-card-view', this.options.cardView);-- if (!this.options.cardView && this.options.showHeader && this.options.height) {- this.$tableHeader.show();- this.resetHeader();- padding += this.$header.outerHeight(true) + 1;- } else {- this.$tableHeader.hide();- this.trigger('post-header');- }-- if (!this.options.cardView && this.options.showFooter) {- this.$tableFooter.show();- this.fitFooter();-- if (this.options.height) {- padding += this.$tableFooter.outerHeight(true);- }- }-- if (this.$container.hasClass('fullscreen')) {- this.$tableContainer.css('height', '');- this.$tableContainer.css('width', '');- } else if (this.options.height) {- if (this.$tableBorder) {- this.$tableBorder.css('width', '');- this.$tableBorder.css('height', '');- }-- var toolbarHeight = this.$toolbar.outerHeight(true);- var paginationHeight = this.$pagination.outerHeight(true);- var height = this.options.height - toolbarHeight - paginationHeight;- var $bodyTable = this.$tableBody.find('>table');- var tableHeight = $bodyTable.outerHeight();- this.$tableContainer.css('height', "".concat(height, "px"));-- if (this.$tableBorder && $bodyTable.is(':visible')) {- var tableBorderHeight = height - tableHeight - 2;-- if (this.$tableBody[0].scrollWidth - this.$tableBody.innerWidth()) {- tableBorderHeight -= Utils.getScrollBarWidth();- }-- this.$tableBorder.css('width', "".concat($bodyTable.outerWidth(), "px"));- this.$tableBorder.css('height', "".concat(tableBorderHeight, "px"));- }- }-- if (this.options.cardView) {- // remove the element css- this.$el.css('margin-top', '0');- this.$tableContainer.css('padding-bottom', '0');- this.$tableFooter.hide();- } else {- // Assign the correct sortable arrow- this.getCaret();- this.$tableContainer.css('padding-bottom', "".concat(padding, "px"));- }-- this.trigger('reset-view');- }- }, {- key: "showLoading",- value: function showLoading() {- this.$tableLoading.toggleClass('open', true);- var fontSize = this.options.loadingFontSize;-- if (this.options.loadingFontSize === 'auto') {- fontSize = this.$tableLoading.width() * 0.04;- fontSize = Math.max(12, fontSize);- fontSize = Math.min(32, fontSize);- fontSize = "".concat(fontSize, "px");- }-- this.$tableLoading.find('.loading-text').css('font-size', fontSize);- }- }, {- key: "hideLoading",- value: function hideLoading() {- this.$tableLoading.toggleClass('open', false);- }- }, {- key: "togglePagination",- value: function togglePagination() {- this.options.pagination = !this.options.pagination;- var icon = this.options.showButtonIcons ? this.options.pagination ? this.options.icons.paginationSwitchDown : this.options.icons.paginationSwitchUp : '';- var text = this.options.showButtonText ? this.options.pagination ? this.options.formatPaginationSwitchUp() : this.options.formatPaginationSwitchDown() : '';- this.$toolbar.find('button[name="paginationSwitch"]').html(Utils.sprintf(this.constants.html.icon, this.options.iconsPrefix, icon) + ' ' + text);- this.updatePagination();- }- }, {- key: "toggleFullscreen",- value: function toggleFullscreen() {- this.$el.closest('.bootstrap-table').toggleClass('fullscreen');- this.resetView();- }- }, {- key: "toggleView",- value: function toggleView() {- this.options.cardView = !this.options.cardView;- this.initHeader();- var icon = this.options.showButtonIcons ? this.options.cardView ? this.options.icons.toggleOn : this.options.icons.toggleOff : '';- var text = this.options.showButtonText ? this.options.cardView ? this.options.formatToggleOff() : this.options.formatToggleOn() : '';- this.$toolbar.find('button[name="toggle"]').html(Utils.sprintf(this.constants.html.icon, this.options.iconsPrefix, icon) + ' ' + text);- this.initBody();- this.trigger('toggle', this.options.cardView);- }- }, {- key: "resetSearch",- value: function resetSearch(text) {- var $search = Utils.getSearchInput(this);- $search.val(text || '');- this.onSearch({- currentTarget: $search- });- }- }, {- key: "filterBy",- value: function filterBy(columns, options) {- this.filterOptions = Utils.isEmptyObject(options) ? this.options.filterOptions : $.extend(this.options.filterOptions, options);- this.filterColumns = Utils.isEmptyObject(columns) ? {} : columns;- this.options.pageNumber = 1;- this.initSearch();- this.updatePagination();- }- }, {- key: "scrollTo",- value: function scrollTo(params) {- var options = {- unit: 'px',- value: 0- };-- if (_typeof(params) === 'object') {- options = Object.assign(options, params);- } else if (typeof params === 'string' && params === 'bottom') {- options.value = this.$tableBody[0].scrollHeight;- } else if (typeof params === 'string' || typeof params === 'number') {- options.value = params;- }-- var scrollTo = options.value;-- if (options.unit === 'rows') {- scrollTo = 0;- this.$body.find("> tr:lt(".concat(options.value, ")")).each(function (i, el) {- scrollTo += $(el).outerHeight(true);- });- }-- this.$tableBody.scrollTop(scrollTo);- }- }, {- key: "getScrollPosition",- value: function getScrollPosition() {- return this.$tableBody.scrollTop();- }- }, {- key: "selectPage",- value: function selectPage(page) {- if (page > 0 && page <= this.options.totalPages) {- this.options.pageNumber = page;- this.updatePagination();- }- }- }, {- key: "prevPage",- value: function prevPage() {- if (this.options.pageNumber > 1) {- this.options.pageNumber--;- this.updatePagination();- }- }- }, {- key: "nextPage",- value: function nextPage() {- if (this.options.pageNumber < this.options.totalPages) {- this.options.pageNumber++;- this.updatePagination();- }- }- }, {- key: "toggleDetailView",- value: function toggleDetailView(index, _columnDetailFormatter) {- var $tr = this.$body.find(Utils.sprintf('> tr[data-index="%s"]', index));-- if ($tr.next().is('tr.detail-view')) {- this.collapseRow(index);- } else {- this.expandRow(index, _columnDetailFormatter);- }-- this.resetView();- }- }, {- key: "expandRow",- value: function expandRow(index, _columnDetailFormatter) {- var row = this.data[index];- var $tr = this.$body.find(Utils.sprintf('> tr[data-index="%s"][data-has-detail-view]', index));-- if ($tr.next().is('tr.detail-view')) {- return;- }-- if (this.options.detailViewIcon) {- $tr.find('a.detail-icon').html(Utils.sprintf(this.constants.html.icon, this.options.iconsPrefix, this.options.icons.detailClose));- }-- $tr.after(Utils.sprintf('<tr class="detail-view"><td colspan="%s"></td></tr>', $tr.children('td').length));- var $element = $tr.next().find('td');- var detailFormatter = _columnDetailFormatter || this.options.detailFormatter;- var content = Utils.calculateObjectValue(this.options, detailFormatter, [index, row, $element], '');-- if ($element.length === 1) {- $element.append(content);- }-- this.trigger('expand-row', index, row, $element);- }- }, {- key: "expandRowByUniqueId",- value: function expandRowByUniqueId(uniqueId) {- var row = this.getRowByUniqueId(uniqueId);-- if (!row) {- return;- }-- this.expandRow(this.data.indexOf(row));- }- }, {- key: "collapseRow",- value: function collapseRow(index) {- var row = this.data[index];- var $tr = this.$body.find(Utils.sprintf('> tr[data-index="%s"][data-has-detail-view]', index));-- if (!$tr.next().is('tr.detail-view')) {- return;- }-- if (this.options.detailViewIcon) {- $tr.find('a.detail-icon').html(Utils.sprintf(this.constants.html.icon, this.options.iconsPrefix, this.options.icons.detailOpen));- }-- this.trigger('collapse-row', index, row, $tr.next());- $tr.next().remove();- }- }, {- key: "collapseRowByUniqueId",- value: function collapseRowByUniqueId(uniqueId) {- var row = this.getRowByUniqueId(uniqueId);-- if (!row) {- return;- }-- this.collapseRow(this.data.indexOf(row));- }- }, {- key: "expandAllRows",- value: function expandAllRows() {- var trs = this.$body.find('> tr[data-index][data-has-detail-view]');-- for (var i = 0; i < trs.length; i++) {- this.expandRow($(trs[i]).data('index'));- }- }- }, {- key: "collapseAllRows",- value: function collapseAllRows() {- var trs = this.$body.find('> tr[data-index][data-has-detail-view]');-- for (var i = 0; i < trs.length; i++) {- this.collapseRow($(trs[i]).data('index'));- }- }- }, {- key: "updateColumnTitle",- value: function updateColumnTitle(params) {- if (!params.hasOwnProperty('field') || !params.hasOwnProperty('title')) {- return;- }-- this.columns[this.fieldsColumnsIndex[params.field]].title = this.options.escape ? Utils.escapeHTML(params.title) : params.title;-- if (this.columns[this.fieldsColumnsIndex[params.field]].visible) {- var header = this.options.height !== undefined ? this.$tableHeader : this.$header;- header.find('th[data-field]').each(function (i, el) {- if ($(el).data('field') === params.field) {- $($(el).find('.th-inner')[0]).text(params.title);- return false;- }- });- }- }- }, {- key: "updateFormatText",- value: function updateFormatText(formatName, text) {- if (!/^format/.test(formatName) || !this.options[formatName]) {- return;- }-- if (typeof text === 'string') {- this.options[formatName] = function () {- return text;- };- } else if (typeof text === 'function') {- this.options[formatName] = text;- }-- this.initToolbar();- this.initPagination();- this.initBody();- }- }]);-- return BootstrapTable;- }();-- BootstrapTable.VERSION = Constants.VERSION;- BootstrapTable.DEFAULTS = Constants.DEFAULTS;- BootstrapTable.LOCALES = Constants.LOCALES;- BootstrapTable.COLUMN_DEFAULTS = Constants.COLUMN_DEFAULTS;- BootstrapTable.METHODS = Constants.METHODS;- BootstrapTable.EVENTS = Constants.EVENTS; // BOOTSTRAP TABLE PLUGIN DEFINITION- // =======================-- $.BootstrapTable = BootstrapTable;-- $.fn.bootstrapTable = function (option) {- for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key5 = 1; _key5 < _len2; _key5++) {- args[_key5 - 1] = arguments[_key5];- }-- var value;- this.each(function (i, el) {- var data = $(el).data('bootstrap.table');- var options = $.extend({}, BootstrapTable.DEFAULTS, $(el).data(), _typeof(option) === 'object' && option);-- if (typeof option === 'string') {- var _data2;-- if (!Constants.METHODS.includes(option)) {- throw new Error("Unknown method: ".concat(option));- }-- if (!data) {- return;- }-- value = (_data2 = data)[option].apply(_data2, args);-- if (option === 'destroy') {- $(el).removeData('bootstrap.table');- }- }-- if (!data) {- data = new $.BootstrapTable(el, options);- $(el).data('bootstrap.table', data);- data.init();- }- });- return typeof value === 'undefined' ? this : value;- };-- $.fn.bootstrapTable.Constructor = BootstrapTable;- $.fn.bootstrapTable.theme = Constants.THEME;- $.fn.bootstrapTable.VERSION = Constants.VERSION;- $.fn.bootstrapTable.defaults = BootstrapTable.DEFAULTS;- $.fn.bootstrapTable.columnDefaults = BootstrapTable.COLUMN_DEFAULTS;- $.fn.bootstrapTable.events = BootstrapTable.EVENTS;- $.fn.bootstrapTable.locales = BootstrapTable.LOCALES;- $.fn.bootstrapTable.methods = BootstrapTable.METHODS;- $.fn.bootstrapTable.utils = Utils; // BOOTSTRAP TABLE INIT- // =======================-- $(function () {- $('[data-toggle="table"]').bootstrapTable();- });-- return BootstrapTable;--})));--(function (global, factory) {- typeof exports === 'object' && typeof module !== 'undefined' ? factory(require('jquery')) :- typeof define === 'function' && define.amd ? define(['jquery'], factory) :- (global = global || self, factory(global.jQuery));-}(this, (function ($) { 'use strict';-- $ = $ && Object.prototype.hasOwnProperty.call($, 'default') ? $['default'] : $;-- var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};-- function createCommonjsModule(fn, module) {- return module = { exports: {} }, fn(module, module.exports), module.exports;- }-- var check = function (it) {- return it && it.Math == Math && it;- };-- // https://github.com/zloirock/core-js/issues/86#issuecomment-115759028- var global_1 =- // eslint-disable-next-line no-undef- check(typeof globalThis == 'object' && globalThis) ||- check(typeof window == 'object' && window) ||- check(typeof self == 'object' && self) ||- check(typeof commonjsGlobal == 'object' && commonjsGlobal) ||- // eslint-disable-next-line no-new-func- Function('return this')();-- var fails = function (exec) {- try {- return !!exec();- } catch (error) {- return true;- }- };-- // Thank's IE8 for his funny defineProperty- var descriptors = !fails(function () {- return Object.defineProperty({}, 'a', { get: function () { return 7; } }).a != 7;- });-- var nativePropertyIsEnumerable = {}.propertyIsEnumerable;- var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;-- // Nashorn ~ JDK8 bug- var NASHORN_BUG = getOwnPropertyDescriptor && !nativePropertyIsEnumerable.call({ 1: 2 }, 1);-- // `Object.prototype.propertyIsEnumerable` method implementation- // https://tc39.github.io/ecma262/#sec-object.prototype.propertyisenumerable- var f = NASHORN_BUG ? function propertyIsEnumerable(V) {- var descriptor = getOwnPropertyDescriptor(this, V);- return !!descriptor && descriptor.enumerable;- } : nativePropertyIsEnumerable;-- var objectPropertyIsEnumerable = {- f: f- };-- var createPropertyDescriptor = function (bitmap, value) {- return {- enumerable: !(bitmap & 1),- configurable: !(bitmap & 2),- writable: !(bitmap & 4),- value: value- };- };-- var toString = {}.toString;-- var classofRaw = function (it) {- return toString.call(it).slice(8, -1);- };-- var split = ''.split;-- // fallback for non-array-like ES3 and non-enumerable old V8 strings- var indexedObject = fails(function () {- // throws an error in rhino, see https://github.com/mozilla/rhino/issues/346- // eslint-disable-next-line no-prototype-builtins- return !Object('z').propertyIsEnumerable(0);- }) ? function (it) {- return classofRaw(it) == 'String' ? split.call(it, '') : Object(it);- } : Object;-- // `RequireObjectCoercible` abstract operation- // https://tc39.github.io/ecma262/#sec-requireobjectcoercible- var requireObjectCoercible = function (it) {- if (it == undefined) throw TypeError("Can't call method on " + it);- return it;- };-- // toObject with fallback for non-array-like ES3 strings---- var toIndexedObject = function (it) {- return indexedObject(requireObjectCoercible(it));- };-- var isObject = function (it) {- return typeof it === 'object' ? it !== null : typeof it === 'function';- };-- // `ToPrimitive` abstract operation- // https://tc39.github.io/ecma262/#sec-toprimitive- // instead of the ES6 spec version, we didn't implement @@toPrimitive case- // and the second argument - flag - preferred type is a string- var toPrimitive = function (input, PREFERRED_STRING) {- if (!isObject(input)) return input;- var fn, val;- if (PREFERRED_STRING && typeof (fn = input.toString) == 'function' && !isObject(val = fn.call(input))) return val;- if (typeof (fn = input.valueOf) == 'function' && !isObject(val = fn.call(input))) return val;- if (!PREFERRED_STRING && typeof (fn = input.toString) == 'function' && !isObject(val = fn.call(input))) return val;- throw TypeError("Can't convert object to primitive value");- };-- var hasOwnProperty = {}.hasOwnProperty;-- var has = function (it, key) {- return hasOwnProperty.call(it, key);- };-- var document$1 = global_1.document;- // typeof document.createElement is 'object' in old IE- var EXISTS = isObject(document$1) && isObject(document$1.createElement);-- var documentCreateElement = function (it) {- return EXISTS ? document$1.createElement(it) : {};- };-- // Thank's IE8 for his funny defineProperty- var ie8DomDefine = !descriptors && !fails(function () {- return Object.defineProperty(documentCreateElement('div'), 'a', {- get: function () { return 7; }- }).a != 7;- });-- var nativeGetOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;-- // `Object.getOwnPropertyDescriptor` method- // https://tc39.github.io/ecma262/#sec-object.getownpropertydescriptor- var f$1 = descriptors ? nativeGetOwnPropertyDescriptor : function getOwnPropertyDescriptor(O, P) {- O = toIndexedObject(O);- P = toPrimitive(P, true);- if (ie8DomDefine) try {- return nativeGetOwnPropertyDescriptor(O, P);- } catch (error) { /* empty */ }- if (has(O, P)) return createPropertyDescriptor(!objectPropertyIsEnumerable.f.call(O, P), O[P]);- };-- var objectGetOwnPropertyDescriptor = {- f: f$1- };-- var anObject = function (it) {- if (!isObject(it)) {- throw TypeError(String(it) + ' is not an object');- } return it;- };-- var nativeDefineProperty = Object.defineProperty;-- // `Object.defineProperty` method- // https://tc39.github.io/ecma262/#sec-object.defineproperty- var f$2 = descriptors ? nativeDefineProperty : function defineProperty(O, P, Attributes) {- anObject(O);- P = toPrimitive(P, true);- anObject(Attributes);- if (ie8DomDefine) try {- return nativeDefineProperty(O, P, Attributes);- } catch (error) { /* empty */ }- if ('get' in Attributes || 'set' in Attributes) throw TypeError('Accessors not supported');- if ('value' in Attributes) O[P] = Attributes.value;- return O;- };-- var objectDefineProperty = {- f: f$2- };-- var createNonEnumerableProperty = descriptors ? function (object, key, value) {- return objectDefineProperty.f(object, key, createPropertyDescriptor(1, value));- } : function (object, key, value) {- object[key] = value;- return object;- };-- var setGlobal = function (key, value) {- try {- createNonEnumerableProperty(global_1, key, value);- } catch (error) {- global_1[key] = value;- } return value;- };-- var SHARED = '__core-js_shared__';- var store = global_1[SHARED] || setGlobal(SHARED, {});-- var sharedStore = store;-- var functionToString = Function.toString;-- // this helper broken in `3.4.1-3.4.4`, so we can't use `shared` helper- if (typeof sharedStore.inspectSource != 'function') {- sharedStore.inspectSource = function (it) {- return functionToString.call(it);- };- }-- var inspectSource = sharedStore.inspectSource;-- var WeakMap = global_1.WeakMap;-- var nativeWeakMap = typeof WeakMap === 'function' && /native code/.test(inspectSource(WeakMap));-- var shared = createCommonjsModule(function (module) {- (module.exports = function (key, value) {- return sharedStore[key] || (sharedStore[key] = value !== undefined ? value : {});- })('versions', []).push({- version: '3.6.0',- mode: 'global',- copyright: '© 2019 Denis Pushkarev (zloirock.ru)'- });- });-- var id = 0;- var postfix = Math.random();-- var uid = function (key) {- return 'Symbol(' + String(key === undefined ? '' : key) + ')_' + (++id + postfix).toString(36);- };-- var keys = shared('keys');-- var sharedKey = function (key) {- return keys[key] || (keys[key] = uid(key));- };-- var hiddenKeys = {};-- var WeakMap$1 = global_1.WeakMap;- var set, get, has$1;-- var enforce = function (it) {- return has$1(it) ? get(it) : set(it, {});- };-- var getterFor = function (TYPE) {- return function (it) {- var state;- if (!isObject(it) || (state = get(it)).type !== TYPE) {- throw TypeError('Incompatible receiver, ' + TYPE + ' required');- } return state;- };- };-- if (nativeWeakMap) {- var store$1 = new WeakMap$1();- var wmget = store$1.get;- var wmhas = store$1.has;- var wmset = store$1.set;- set = function (it, metadata) {- wmset.call(store$1, it, metadata);- return metadata;- };- get = function (it) {- return wmget.call(store$1, it) || {};- };- has$1 = function (it) {- return wmhas.call(store$1, it);- };- } else {- var STATE = sharedKey('state');- hiddenKeys[STATE] = true;- set = function (it, metadata) {- createNonEnumerableProperty(it, STATE, metadata);- return metadata;- };- get = function (it) {- return has(it, STATE) ? it[STATE] : {};- };- has$1 = function (it) {- return has(it, STATE);- };- }-- var internalState = {- set: set,- get: get,- has: has$1,- enforce: enforce,- getterFor: getterFor- };-- var redefine = createCommonjsModule(function (module) {- var getInternalState = internalState.get;- var enforceInternalState = internalState.enforce;- var TEMPLATE = String(String).split('String');-- (module.exports = function (O, key, value, options) {- var unsafe = options ? !!options.unsafe : false;- var simple = options ? !!options.enumerable : false;- var noTargetGet = options ? !!options.noTargetGet : false;- if (typeof value == 'function') {- if (typeof key == 'string' && !has(value, 'name')) createNonEnumerableProperty(value, 'name', key);- enforceInternalState(value).source = TEMPLATE.join(typeof key == 'string' ? key : '');- }- if (O === global_1) {- if (simple) O[key] = value;- else setGlobal(key, value);- return;- } else if (!unsafe) {- delete O[key];- } else if (!noTargetGet && O[key]) {- simple = true;- }- if (simple) O[key] = value;- else createNonEnumerableProperty(O, key, value);- // add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative- })(Function.prototype, 'toString', function toString() {- return typeof this == 'function' && getInternalState(this).source || inspectSource(this);- });- });-- var path = global_1;-- var aFunction = function (variable) {- return typeof variable == 'function' ? variable : undefined;- };-- var getBuiltIn = function (namespace, method) {- return arguments.length < 2 ? aFunction(path[namespace]) || aFunction(global_1[namespace])- : path[namespace] && path[namespace][method] || global_1[namespace] && global_1[namespace][method];- };-- var ceil = Math.ceil;- var floor = Math.floor;-- // `ToInteger` abstract operation- // https://tc39.github.io/ecma262/#sec-tointeger- var toInteger = function (argument) {- return isNaN(argument = +argument) ? 0 : (argument > 0 ? floor : ceil)(argument);- };-- var min = Math.min;-- // `ToLength` abstract operation- // https://tc39.github.io/ecma262/#sec-tolength- var toLength = function (argument) {- return argument > 0 ? min(toInteger(argument), 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991- };-- var max = Math.max;- var min$1 = Math.min;-- // Helper for a popular repeating case of the spec:- // Let integer be ? ToInteger(index).- // If integer < 0, let result be max((length + integer), 0); else let result be min(integer, length).- var toAbsoluteIndex = function (index, length) {- var integer = toInteger(index);- return integer < 0 ? max(integer + length, 0) : min$1(integer, length);- };-- // `Array.prototype.{ indexOf, includes }` methods implementation- var createMethod = function (IS_INCLUDES) {- return function ($this, el, fromIndex) {- var O = toIndexedObject($this);- var length = toLength(O.length);- var index = toAbsoluteIndex(fromIndex, length);- var value;- // Array#includes uses SameValueZero equality algorithm- // eslint-disable-next-line no-self-compare- if (IS_INCLUDES && el != el) while (length > index) {- value = O[index++];- // eslint-disable-next-line no-self-compare- if (value != value) return true;- // Array#indexOf ignores holes, Array#includes - not- } else for (;length > index; index++) {- if ((IS_INCLUDES || index in O) && O[index] === el) return IS_INCLUDES || index || 0;- } return !IS_INCLUDES && -1;- };- };-- var arrayIncludes = {- // `Array.prototype.includes` method- // https://tc39.github.io/ecma262/#sec-array.prototype.includes- includes: createMethod(true),- // `Array.prototype.indexOf` method- // https://tc39.github.io/ecma262/#sec-array.prototype.indexof- indexOf: createMethod(false)- };-- var indexOf = arrayIncludes.indexOf;--- var objectKeysInternal = function (object, names) {- var O = toIndexedObject(object);- var i = 0;- var result = [];- var key;- for (key in O) !has(hiddenKeys, key) && has(O, key) && result.push(key);- // Don't enum bug & hidden keys- while (names.length > i) if (has(O, key = names[i++])) {- ~indexOf(result, key) || result.push(key);- }- return result;- };-- // IE8- don't enum bug keys- var enumBugKeys = [- 'constructor',- 'hasOwnProperty',- 'isPrototypeOf',- 'propertyIsEnumerable',- 'toLocaleString',- 'toString',- 'valueOf'- ];-- var hiddenKeys$1 = enumBugKeys.concat('length', 'prototype');-- // `Object.getOwnPropertyNames` method- // https://tc39.github.io/ecma262/#sec-object.getownpropertynames- var f$3 = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {- return objectKeysInternal(O, hiddenKeys$1);- };-- var objectGetOwnPropertyNames = {- f: f$3- };-- var f$4 = Object.getOwnPropertySymbols;-- var objectGetOwnPropertySymbols = {- f: f$4- };-- // all object keys, includes non-enumerable and symbols- var ownKeys = getBuiltIn('Reflect', 'ownKeys') || function ownKeys(it) {- var keys = objectGetOwnPropertyNames.f(anObject(it));- var getOwnPropertySymbols = objectGetOwnPropertySymbols.f;- return getOwnPropertySymbols ? keys.concat(getOwnPropertySymbols(it)) : keys;- };-- var copyConstructorProperties = function (target, source) {- var keys = ownKeys(source);- var defineProperty = objectDefineProperty.f;- var getOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f;- for (var i = 0; i < keys.length; i++) {- var key = keys[i];- if (!has(target, key)) defineProperty(target, key, getOwnPropertyDescriptor(source, key));- }- };-- var replacement = /#|\.prototype\./;-- var isForced = function (feature, detection) {- var value = data[normalize(feature)];- return value == POLYFILL ? true- : value == NATIVE ? false- : typeof detection == 'function' ? fails(detection)- : !!detection;- };-- var normalize = isForced.normalize = function (string) {- return String(string).replace(replacement, '.').toLowerCase();- };-- var data = isForced.data = {};- var NATIVE = isForced.NATIVE = 'N';- var POLYFILL = isForced.POLYFILL = 'P';-- var isForced_1 = isForced;-- var getOwnPropertyDescriptor$1 = objectGetOwnPropertyDescriptor.f;------- /*- options.target - name of the target object- options.global - target is the global object- options.stat - export as static methods of target- options.proto - export as prototype methods of target- options.real - real prototype method for the `pure` version- options.forced - export even if the native feature is available- options.bind - bind methods to the target, required for the `pure` version- options.wrap - wrap constructors to preventing global pollution, required for the `pure` version- options.unsafe - use the simple assignment of property instead of delete + defineProperty- options.sham - add a flag to not completely full polyfills- options.enumerable - export as enumerable property- options.noTargetGet - prevent calling a getter on target- */- var _export = function (options, source) {- var TARGET = options.target;- var GLOBAL = options.global;- var STATIC = options.stat;- var FORCED, target, key, targetProperty, sourceProperty, descriptor;- if (GLOBAL) {- target = global_1;- } else if (STATIC) {- target = global_1[TARGET] || setGlobal(TARGET, {});- } else {- target = (global_1[TARGET] || {}).prototype;- }- if (target) for (key in source) {- sourceProperty = source[key];- if (options.noTargetGet) {- descriptor = getOwnPropertyDescriptor$1(target, key);- targetProperty = descriptor && descriptor.value;- } else targetProperty = target[key];- FORCED = isForced_1(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced);- // contained in target- if (!FORCED && targetProperty !== undefined) {- if (typeof sourceProperty === typeof targetProperty) continue;- copyConstructorProperties(sourceProperty, targetProperty);- }- // add a flag to not completely full polyfills- if (options.sham || (targetProperty && targetProperty.sham)) {- createNonEnumerableProperty(sourceProperty, 'sham', true);- }- // extend global- redefine(target, key, sourceProperty, options);- }- };-- var nativeSymbol = !!Object.getOwnPropertySymbols && !fails(function () {- // Chrome 38 Symbol has incorrect toString conversion- // eslint-disable-next-line no-undef- return !String(Symbol());- });-- var useSymbolAsUid = nativeSymbol- // eslint-disable-next-line no-undef- && !Symbol.sham- // eslint-disable-next-line no-undef- && typeof Symbol() == 'symbol';-- // `IsArray` abstract operation- // https://tc39.github.io/ecma262/#sec-isarray- var isArray = Array.isArray || function isArray(arg) {- return classofRaw(arg) == 'Array';- };-- // `ToObject` abstract operation- // https://tc39.github.io/ecma262/#sec-toobject- var toObject = function (argument) {- return Object(requireObjectCoercible(argument));- };-- // `Object.keys` method- // https://tc39.github.io/ecma262/#sec-object.keys- var objectKeys = Object.keys || function keys(O) {- return objectKeysInternal(O, enumBugKeys);- };-- // `Object.defineProperties` method- // https://tc39.github.io/ecma262/#sec-object.defineproperties- var objectDefineProperties = descriptors ? Object.defineProperties : function defineProperties(O, Properties) {- anObject(O);- var keys = objectKeys(Properties);- var length = keys.length;- var index = 0;- var key;- while (length > index) objectDefineProperty.f(O, key = keys[index++], Properties[key]);- return O;- };-- var html = getBuiltIn('document', 'documentElement');-- var GT = '>';- var LT = '<';- var PROTOTYPE = 'prototype';- var SCRIPT = 'script';- var IE_PROTO = sharedKey('IE_PROTO');-- var EmptyConstructor = function () { /* empty */ };-- var scriptTag = function (content) {- return LT + SCRIPT + GT + content + LT + '/' + SCRIPT + GT;- };-- // Create object with fake `null` prototype: use ActiveX Object with cleared prototype- var NullProtoObjectViaActiveX = function (activeXDocument) {- activeXDocument.write(scriptTag(''));- activeXDocument.close();- var temp = activeXDocument.parentWindow.Object;- activeXDocument = null; // avoid memory leak- return temp;- };-- // Create object with fake `null` prototype: use iframe Object with cleared prototype- var NullProtoObjectViaIFrame = function () {- // Thrash, waste and sodomy: IE GC bug- var iframe = documentCreateElement('iframe');- var JS = 'java' + SCRIPT + ':';- var iframeDocument;- iframe.style.display = 'none';- html.appendChild(iframe);- // https://github.com/zloirock/core-js/issues/475- iframe.src = String(JS);- iframeDocument = iframe.contentWindow.document;- iframeDocument.open();- iframeDocument.write(scriptTag('document.F=Object'));- iframeDocument.close();- return iframeDocument.F;- };-- // Check for document.domain and active x support- // No need to use active x approach when document.domain is not set- // see https://github.com/es-shims/es5-shim/issues/150- // variation of https://github.com/kitcambridge/es5-shim/commit/4f738ac066346- // avoid IE GC bug- var activeXDocument;- var NullProtoObject = function () {- try {- /* global ActiveXObject */- activeXDocument = document.domain && new ActiveXObject('htmlfile');- } catch (error) { /* ignore */ }- NullProtoObject = activeXDocument ? NullProtoObjectViaActiveX(activeXDocument) : NullProtoObjectViaIFrame();- var length = enumBugKeys.length;- while (length--) delete NullProtoObject[PROTOTYPE][enumBugKeys[length]];- return NullProtoObject();- };-- hiddenKeys[IE_PROTO] = true;-- // `Object.create` method- // https://tc39.github.io/ecma262/#sec-object.create- var objectCreate = Object.create || function create(O, Properties) {- var result;- if (O !== null) {- EmptyConstructor[PROTOTYPE] = anObject(O);- result = new EmptyConstructor();- EmptyConstructor[PROTOTYPE] = null;- // add "__proto__" for Object.getPrototypeOf polyfill- result[IE_PROTO] = O;- } else result = NullProtoObject();- return Properties === undefined ? result : objectDefineProperties(result, Properties);- };-- var nativeGetOwnPropertyNames = objectGetOwnPropertyNames.f;-- var toString$1 = {}.toString;-- var windowNames = typeof window == 'object' && window && Object.getOwnPropertyNames- ? Object.getOwnPropertyNames(window) : [];-- var getWindowNames = function (it) {- try {- return nativeGetOwnPropertyNames(it);- } catch (error) {- return windowNames.slice();- }- };-- // fallback for IE11 buggy Object.getOwnPropertyNames with iframe and window- var f$5 = function getOwnPropertyNames(it) {- return windowNames && toString$1.call(it) == '[object Window]'- ? getWindowNames(it)- : nativeGetOwnPropertyNames(toIndexedObject(it));- };-- var objectGetOwnPropertyNamesExternal = {- f: f$5- };-- var WellKnownSymbolsStore = shared('wks');- var Symbol$1 = global_1.Symbol;- var createWellKnownSymbol = useSymbolAsUid ? Symbol$1 : uid;-- var wellKnownSymbol = function (name) {- if (!has(WellKnownSymbolsStore, name)) {- if (nativeSymbol && has(Symbol$1, name)) WellKnownSymbolsStore[name] = Symbol$1[name];- else WellKnownSymbolsStore[name] = createWellKnownSymbol('Symbol.' + name);- } return WellKnownSymbolsStore[name];- };-- var f$6 = wellKnownSymbol;-- var wrappedWellKnownSymbol = {- f: f$6- };-- var defineProperty = objectDefineProperty.f;-- var defineWellKnownSymbol = function (NAME) {- var Symbol = path.Symbol || (path.Symbol = {});- if (!has(Symbol, NAME)) defineProperty(Symbol, NAME, {- value: wrappedWellKnownSymbol.f(NAME)- });- };-- var defineProperty$1 = objectDefineProperty.f;---- var TO_STRING_TAG = wellKnownSymbol('toStringTag');-- var setToStringTag = function (it, TAG, STATIC) {- if (it && !has(it = STATIC ? it : it.prototype, TO_STRING_TAG)) {- defineProperty$1(it, TO_STRING_TAG, { configurable: true, value: TAG });- }- };-- var aFunction$1 = function (it) {- if (typeof it != 'function') {- throw TypeError(String(it) + ' is not a function');- } return it;- };-- // optional / simple context binding- var bindContext = function (fn, that, length) {- aFunction$1(fn);- if (that === undefined) return fn;- switch (length) {- case 0: return function () {- return fn.call(that);- };- case 1: return function (a) {- return fn.call(that, a);- };- case 2: return function (a, b) {- return fn.call(that, a, b);- };- case 3: return function (a, b, c) {- return fn.call(that, a, b, c);- };- }- return function (/* ...args */) {- return fn.apply(that, arguments);- };- };-- var SPECIES = wellKnownSymbol('species');-- // `ArraySpeciesCreate` abstract operation- // https://tc39.github.io/ecma262/#sec-arrayspeciescreate- var arraySpeciesCreate = function (originalArray, length) {- var C;- if (isArray(originalArray)) {- C = originalArray.constructor;- // cross-realm fallback- if (typeof C == 'function' && (C === Array || isArray(C.prototype))) C = undefined;- else if (isObject(C)) {- C = C[SPECIES];- if (C === null) C = undefined;- }- } return new (C === undefined ? Array : C)(length === 0 ? 0 : length);- };-- var push = [].push;-- // `Array.prototype.{ forEach, map, filter, some, every, find, findIndex }` methods implementation- var createMethod$1 = function (TYPE) {- var IS_MAP = TYPE == 1;- var IS_FILTER = TYPE == 2;- var IS_SOME = TYPE == 3;- var IS_EVERY = TYPE == 4;- var IS_FIND_INDEX = TYPE == 6;- var NO_HOLES = TYPE == 5 || IS_FIND_INDEX;- return function ($this, callbackfn, that, specificCreate) {- var O = toObject($this);- var self = indexedObject(O);- var boundFunction = bindContext(callbackfn, that, 3);- var length = toLength(self.length);- var index = 0;- var create = specificCreate || arraySpeciesCreate;- var target = IS_MAP ? create($this, length) : IS_FILTER ? create($this, 0) : undefined;- var value, result;- for (;length > index; index++) if (NO_HOLES || index in self) {- value = self[index];- result = boundFunction(value, index, O);- if (TYPE) {- if (IS_MAP) target[index] = result; // map- else if (result) switch (TYPE) {- case 3: return true; // some- case 5: return value; // find- case 6: return index; // findIndex- case 2: push.call(target, value); // filter- } else if (IS_EVERY) return false; // every- }- }- return IS_FIND_INDEX ? -1 : IS_SOME || IS_EVERY ? IS_EVERY : target;- };- };-- var arrayIteration = {- // `Array.prototype.forEach` method- // https://tc39.github.io/ecma262/#sec-array.prototype.foreach- forEach: createMethod$1(0),- // `Array.prototype.map` method- // https://tc39.github.io/ecma262/#sec-array.prototype.map- map: createMethod$1(1),- // `Array.prototype.filter` method- // https://tc39.github.io/ecma262/#sec-array.prototype.filter- filter: createMethod$1(2),- // `Array.prototype.some` method- // https://tc39.github.io/ecma262/#sec-array.prototype.some- some: createMethod$1(3),- // `Array.prototype.every` method- // https://tc39.github.io/ecma262/#sec-array.prototype.every- every: createMethod$1(4),- // `Array.prototype.find` method- // https://tc39.github.io/ecma262/#sec-array.prototype.find- find: createMethod$1(5),- // `Array.prototype.findIndex` method- // https://tc39.github.io/ecma262/#sec-array.prototype.findIndex- findIndex: createMethod$1(6)- };-- var $forEach = arrayIteration.forEach;-- var HIDDEN = sharedKey('hidden');- var SYMBOL = 'Symbol';- var PROTOTYPE$1 = 'prototype';- var TO_PRIMITIVE = wellKnownSymbol('toPrimitive');- var setInternalState = internalState.set;- var getInternalState = internalState.getterFor(SYMBOL);- var ObjectPrototype = Object[PROTOTYPE$1];- var $Symbol = global_1.Symbol;- var $stringify = getBuiltIn('JSON', 'stringify');- var nativeGetOwnPropertyDescriptor$1 = objectGetOwnPropertyDescriptor.f;- var nativeDefineProperty$1 = objectDefineProperty.f;- var nativeGetOwnPropertyNames$1 = objectGetOwnPropertyNamesExternal.f;- var nativePropertyIsEnumerable$1 = objectPropertyIsEnumerable.f;- var AllSymbols = shared('symbols');- var ObjectPrototypeSymbols = shared('op-symbols');- var StringToSymbolRegistry = shared('string-to-symbol-registry');- var SymbolToStringRegistry = shared('symbol-to-string-registry');- var WellKnownSymbolsStore$1 = shared('wks');- var QObject = global_1.QObject;- // Don't use setters in Qt Script, https://github.com/zloirock/core-js/issues/173- var USE_SETTER = !QObject || !QObject[PROTOTYPE$1] || !QObject[PROTOTYPE$1].findChild;-- // fallback for old Android, https://code.google.com/p/v8/issues/detail?id=687- var setSymbolDescriptor = descriptors && fails(function () {- return objectCreate(nativeDefineProperty$1({}, 'a', {- get: function () { return nativeDefineProperty$1(this, 'a', { value: 7 }).a; }- })).a != 7;- }) ? function (O, P, Attributes) {- var ObjectPrototypeDescriptor = nativeGetOwnPropertyDescriptor$1(ObjectPrototype, P);- if (ObjectPrototypeDescriptor) delete ObjectPrototype[P];- nativeDefineProperty$1(O, P, Attributes);- if (ObjectPrototypeDescriptor && O !== ObjectPrototype) {- nativeDefineProperty$1(ObjectPrototype, P, ObjectPrototypeDescriptor);- }- } : nativeDefineProperty$1;-- var wrap = function (tag, description) {- var symbol = AllSymbols[tag] = objectCreate($Symbol[PROTOTYPE$1]);- setInternalState(symbol, {- type: SYMBOL,- tag: tag,- description: description- });- if (!descriptors) symbol.description = description;- return symbol;- };-- var isSymbol = nativeSymbol && typeof $Symbol.iterator == 'symbol' ? function (it) {- return typeof it == 'symbol';- } : function (it) {- return Object(it) instanceof $Symbol;- };-- var $defineProperty = function defineProperty(O, P, Attributes) {- if (O === ObjectPrototype) $defineProperty(ObjectPrototypeSymbols, P, Attributes);- anObject(O);- var key = toPrimitive(P, true);- anObject(Attributes);- if (has(AllSymbols, key)) {- if (!Attributes.enumerable) {- if (!has(O, HIDDEN)) nativeDefineProperty$1(O, HIDDEN, createPropertyDescriptor(1, {}));- O[HIDDEN][key] = true;- } else {- if (has(O, HIDDEN) && O[HIDDEN][key]) O[HIDDEN][key] = false;- Attributes = objectCreate(Attributes, { enumerable: createPropertyDescriptor(0, false) });- } return setSymbolDescriptor(O, key, Attributes);- } return nativeDefineProperty$1(O, key, Attributes);- };-- var $defineProperties = function defineProperties(O, Properties) {- anObject(O);- var properties = toIndexedObject(Properties);- var keys = objectKeys(properties).concat($getOwnPropertySymbols(properties));- $forEach(keys, function (key) {- if (!descriptors || $propertyIsEnumerable.call(properties, key)) $defineProperty(O, key, properties[key]);- });- return O;- };-- var $create = function create(O, Properties) {- return Properties === undefined ? objectCreate(O) : $defineProperties(objectCreate(O), Properties);- };-- var $propertyIsEnumerable = function propertyIsEnumerable(V) {- var P = toPrimitive(V, true);- var enumerable = nativePropertyIsEnumerable$1.call(this, P);- if (this === ObjectPrototype && has(AllSymbols, P) && !has(ObjectPrototypeSymbols, P)) return false;- return enumerable || !has(this, P) || !has(AllSymbols, P) || has(this, HIDDEN) && this[HIDDEN][P] ? enumerable : true;- };-- var $getOwnPropertyDescriptor = function getOwnPropertyDescriptor(O, P) {- var it = toIndexedObject(O);- var key = toPrimitive(P, true);- if (it === ObjectPrototype && has(AllSymbols, key) && !has(ObjectPrototypeSymbols, key)) return;- var descriptor = nativeGetOwnPropertyDescriptor$1(it, key);- if (descriptor && has(AllSymbols, key) && !(has(it, HIDDEN) && it[HIDDEN][key])) {- descriptor.enumerable = true;- }- return descriptor;- };-- var $getOwnPropertyNames = function getOwnPropertyNames(O) {- var names = nativeGetOwnPropertyNames$1(toIndexedObject(O));- var result = [];- $forEach(names, function (key) {- if (!has(AllSymbols, key) && !has(hiddenKeys, key)) result.push(key);- });- return result;- };-- var $getOwnPropertySymbols = function getOwnPropertySymbols(O) {- var IS_OBJECT_PROTOTYPE = O === ObjectPrototype;- var names = nativeGetOwnPropertyNames$1(IS_OBJECT_PROTOTYPE ? ObjectPrototypeSymbols : toIndexedObject(O));- var result = [];- $forEach(names, function (key) {- if (has(AllSymbols, key) && (!IS_OBJECT_PROTOTYPE || has(ObjectPrototype, key))) {- result.push(AllSymbols[key]);- }- });- return result;- };-- // `Symbol` constructor- // https://tc39.github.io/ecma262/#sec-symbol-constructor- if (!nativeSymbol) {- $Symbol = function Symbol() {- if (this instanceof $Symbol) throw TypeError('Symbol is not a constructor');- var description = !arguments.length || arguments[0] === undefined ? undefined : String(arguments[0]);- var tag = uid(description);- var setter = function (value) {- if (this === ObjectPrototype) setter.call(ObjectPrototypeSymbols, value);- if (has(this, HIDDEN) && has(this[HIDDEN], tag)) this[HIDDEN][tag] = false;- setSymbolDescriptor(this, tag, createPropertyDescriptor(1, value));- };- if (descriptors && USE_SETTER) setSymbolDescriptor(ObjectPrototype, tag, { configurable: true, set: setter });- return wrap(tag, description);- };-- redefine($Symbol[PROTOTYPE$1], 'toString', function toString() {- return getInternalState(this).tag;- });-- objectPropertyIsEnumerable.f = $propertyIsEnumerable;- objectDefineProperty.f = $defineProperty;- objectGetOwnPropertyDescriptor.f = $getOwnPropertyDescriptor;- objectGetOwnPropertyNames.f = objectGetOwnPropertyNamesExternal.f = $getOwnPropertyNames;- objectGetOwnPropertySymbols.f = $getOwnPropertySymbols;-- if (descriptors) {- // https://github.com/tc39/proposal-Symbol-description- nativeDefineProperty$1($Symbol[PROTOTYPE$1], 'description', {- configurable: true,- get: function description() {- return getInternalState(this).description;- }- });- {- redefine(ObjectPrototype, 'propertyIsEnumerable', $propertyIsEnumerable, { unsafe: true });- }- }- }-- if (!useSymbolAsUid) {- wrappedWellKnownSymbol.f = function (name) {- return wrap(wellKnownSymbol(name), name);- };- }-- _export({ global: true, wrap: true, forced: !nativeSymbol, sham: !nativeSymbol }, {- Symbol: $Symbol- });-- $forEach(objectKeys(WellKnownSymbolsStore$1), function (name) {- defineWellKnownSymbol(name);- });-- _export({ target: SYMBOL, stat: true, forced: !nativeSymbol }, {- // `Symbol.for` method- // https://tc39.github.io/ecma262/#sec-symbol.for- 'for': function (key) {- var string = String(key);- if (has(StringToSymbolRegistry, string)) return StringToSymbolRegistry[string];- var symbol = $Symbol(string);- StringToSymbolRegistry[string] = symbol;- SymbolToStringRegistry[symbol] = string;- return symbol;- },- // `Symbol.keyFor` method- // https://tc39.github.io/ecma262/#sec-symbol.keyfor- keyFor: function keyFor(sym) {- if (!isSymbol(sym)) throw TypeError(sym + ' is not a symbol');- if (has(SymbolToStringRegistry, sym)) return SymbolToStringRegistry[sym];- },- useSetter: function () { USE_SETTER = true; },- useSimple: function () { USE_SETTER = false; }- });-- _export({ target: 'Object', stat: true, forced: !nativeSymbol, sham: !descriptors }, {- // `Object.create` method- // https://tc39.github.io/ecma262/#sec-object.create- create: $create,- // `Object.defineProperty` method- // https://tc39.github.io/ecma262/#sec-object.defineproperty- defineProperty: $defineProperty,- // `Object.defineProperties` method- // https://tc39.github.io/ecma262/#sec-object.defineproperties- defineProperties: $defineProperties,- // `Object.getOwnPropertyDescriptor` method- // https://tc39.github.io/ecma262/#sec-object.getownpropertydescriptors- getOwnPropertyDescriptor: $getOwnPropertyDescriptor- });-- _export({ target: 'Object', stat: true, forced: !nativeSymbol }, {- // `Object.getOwnPropertyNames` method- // https://tc39.github.io/ecma262/#sec-object.getownpropertynames- getOwnPropertyNames: $getOwnPropertyNames,- // `Object.getOwnPropertySymbols` method- // https://tc39.github.io/ecma262/#sec-object.getownpropertysymbols- getOwnPropertySymbols: $getOwnPropertySymbols- });-- // Chrome 38 and 39 `Object.getOwnPropertySymbols` fails on primitives- // https://bugs.chromium.org/p/v8/issues/detail?id=3443- _export({ target: 'Object', stat: true, forced: fails(function () { objectGetOwnPropertySymbols.f(1); }) }, {- getOwnPropertySymbols: function getOwnPropertySymbols(it) {- return objectGetOwnPropertySymbols.f(toObject(it));- }- });-- // `JSON.stringify` method behavior with symbols- // https://tc39.github.io/ecma262/#sec-json.stringify- if ($stringify) {- var FORCED_JSON_STRINGIFY = !nativeSymbol || fails(function () {- var symbol = $Symbol();- // MS Edge converts symbol values to JSON as {}- return $stringify([symbol]) != '[null]'- // WebKit converts symbol values to JSON as null- || $stringify({ a: symbol }) != '{}'- // V8 throws on boxed symbols- || $stringify(Object(symbol)) != '{}';- });-- _export({ target: 'JSON', stat: true, forced: FORCED_JSON_STRINGIFY }, {- // eslint-disable-next-line no-unused-vars- stringify: function stringify(it, replacer, space) {- var args = [it];- var index = 1;- var $replacer;- while (arguments.length > index) args.push(arguments[index++]);- $replacer = replacer;- if (!isObject(replacer) && it === undefined || isSymbol(it)) return; // IE8 returns string on undefined- if (!isArray(replacer)) replacer = function (key, value) {- if (typeof $replacer == 'function') value = $replacer.call(this, key, value);- if (!isSymbol(value)) return value;- };- args[1] = replacer;- return $stringify.apply(null, args);- }- });- }-- // `Symbol.prototype[@@toPrimitive]` method- // https://tc39.github.io/ecma262/#sec-symbol.prototype-@@toprimitive- if (!$Symbol[PROTOTYPE$1][TO_PRIMITIVE]) {- createNonEnumerableProperty($Symbol[PROTOTYPE$1], TO_PRIMITIVE, $Symbol[PROTOTYPE$1].valueOf);- }- // `Symbol.prototype[@@toStringTag]` property- // https://tc39.github.io/ecma262/#sec-symbol.prototype-@@tostringtag- setToStringTag($Symbol, SYMBOL);-- hiddenKeys[HIDDEN] = true;-- var defineProperty$2 = objectDefineProperty.f;--- var NativeSymbol = global_1.Symbol;-- if (descriptors && typeof NativeSymbol == 'function' && (!('description' in NativeSymbol.prototype) ||- // Safari 12 bug- NativeSymbol().description !== undefined- )) {- var EmptyStringDescriptionStore = {};- // wrap Symbol constructor for correct work with undefined description- var SymbolWrapper = function Symbol() {- var description = arguments.length < 1 || arguments[0] === undefined ? undefined : String(arguments[0]);- var result = this instanceof SymbolWrapper- ? new NativeSymbol(description)- // in Edge 13, String(Symbol(undefined)) === 'Symbol(undefined)'- : description === undefined ? NativeSymbol() : NativeSymbol(description);- if (description === '') EmptyStringDescriptionStore[result] = true;- return result;- };- copyConstructorProperties(SymbolWrapper, NativeSymbol);- var symbolPrototype = SymbolWrapper.prototype = NativeSymbol.prototype;- symbolPrototype.constructor = SymbolWrapper;-- var symbolToString = symbolPrototype.toString;- var native = String(NativeSymbol('test')) == 'Symbol(test)';- var regexp = /^Symbol\((.*)\)[^)]+$/;- defineProperty$2(symbolPrototype, 'description', {- configurable: true,- get: function description() {- var symbol = isObject(this) ? this.valueOf() : this;- var string = symbolToString.call(symbol);- if (has(EmptyStringDescriptionStore, symbol)) return '';- var desc = native ? string.slice(7, -1) : string.replace(regexp, '$1');- return desc === '' ? undefined : desc;- }- });-- _export({ global: true, forced: true }, {- Symbol: SymbolWrapper- });- }-- // `Symbol.iterator` well-known symbol- // https://tc39.github.io/ecma262/#sec-symbol.iterator- defineWellKnownSymbol('iterator');-- var createProperty = function (object, key, value) {- var propertyKey = toPrimitive(key);- if (propertyKey in object) objectDefineProperty.f(object, propertyKey, createPropertyDescriptor(0, value));- else object[propertyKey] = value;- };-- var userAgent = getBuiltIn('navigator', 'userAgent') || '';-- var process = global_1.process;- var versions = process && process.versions;- var v8 = versions && versions.v8;- var match, version;-- if (v8) {- match = v8.split('.');- version = match[0] + match[1];- } else if (userAgent) {- match = userAgent.match(/Edge\/(\d+)/);- if (!match || match[1] >= 74) {- match = userAgent.match(/Chrome\/(\d+)/);- if (match) version = match[1];- }- }-- var v8Version = version && +version;-- var SPECIES$1 = wellKnownSymbol('species');-- var arrayMethodHasSpeciesSupport = function (METHOD_NAME) {- // We can't use this feature detection in V8 since it causes- // deoptimization and serious performance degradation- // https://github.com/zloirock/core-js/issues/677- return v8Version >= 51 || !fails(function () {- var array = [];- var constructor = array.constructor = {};- constructor[SPECIES$1] = function () {- return { foo: 1 };- };- return array[METHOD_NAME](Boolean).foo !== 1;- });- };-- var IS_CONCAT_SPREADABLE = wellKnownSymbol('isConcatSpreadable');- var MAX_SAFE_INTEGER = 0x1FFFFFFFFFFFFF;- var MAXIMUM_ALLOWED_INDEX_EXCEEDED = 'Maximum allowed index exceeded';-- // We can't use this feature detection in V8 since it causes- // deoptimization and serious performance degradation- // https://github.com/zloirock/core-js/issues/679- var IS_CONCAT_SPREADABLE_SUPPORT = v8Version >= 51 || !fails(function () {- var array = [];- array[IS_CONCAT_SPREADABLE] = false;- return array.concat()[0] !== array;- });-- var SPECIES_SUPPORT = arrayMethodHasSpeciesSupport('concat');-- var isConcatSpreadable = function (O) {- if (!isObject(O)) return false;- var spreadable = O[IS_CONCAT_SPREADABLE];- return spreadable !== undefined ? !!spreadable : isArray(O);- };-- var FORCED = !IS_CONCAT_SPREADABLE_SUPPORT || !SPECIES_SUPPORT;-- // `Array.prototype.concat` method- // https://tc39.github.io/ecma262/#sec-array.prototype.concat- // with adding support of @@isConcatSpreadable and @@species- _export({ target: 'Array', proto: true, forced: FORCED }, {- concat: function concat(arg) { // eslint-disable-line no-unused-vars- var O = toObject(this);- var A = arraySpeciesCreate(O, 0);- var n = 0;- var i, k, length, len, E;- for (i = -1, length = arguments.length; i < length; i++) {- E = i === -1 ? O : arguments[i];- if (isConcatSpreadable(E)) {- len = toLength(E.length);- if (n + len > MAX_SAFE_INTEGER) throw TypeError(MAXIMUM_ALLOWED_INDEX_EXCEEDED);- for (k = 0; k < len; k++, n++) if (k in E) createProperty(A, n, E[k]);- } else {- if (n >= MAX_SAFE_INTEGER) throw TypeError(MAXIMUM_ALLOWED_INDEX_EXCEEDED);- createProperty(A, n++, E);- }- }- A.length = n;- return A;- }- });-- var UNSCOPABLES = wellKnownSymbol('unscopables');- var ArrayPrototype = Array.prototype;-- // Array.prototype[@@unscopables]- // https://tc39.github.io/ecma262/#sec-array.prototype-@@unscopables- if (ArrayPrototype[UNSCOPABLES] == undefined) {- objectDefineProperty.f(ArrayPrototype, UNSCOPABLES, {- configurable: true,- value: objectCreate(null)- });- }-- // add a key to Array.prototype[@@unscopables]- var addToUnscopables = function (key) {- ArrayPrototype[UNSCOPABLES][key] = true;- };-- var $find = arrayIteration.find;--- var FIND = 'find';- var SKIPS_HOLES = true;-- // Shouldn't skip holes- if (FIND in []) Array(1)[FIND](function () { SKIPS_HOLES = false; });-- // `Array.prototype.find` method- // https://tc39.github.io/ecma262/#sec-array.prototype.find- _export({ target: 'Array', proto: true, forced: SKIPS_HOLES }, {- find: function find(callbackfn /* , that = undefined */) {- return $find(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);- }- });-- // https://tc39.github.io/ecma262/#sec-array.prototype-@@unscopables- addToUnscopables(FIND);-- var correctPrototypeGetter = !fails(function () {- function F() { /* empty */ }- F.prototype.constructor = null;- return Object.getPrototypeOf(new F()) !== F.prototype;- });-- var IE_PROTO$1 = sharedKey('IE_PROTO');- var ObjectPrototype$1 = Object.prototype;-- // `Object.getPrototypeOf` method- // https://tc39.github.io/ecma262/#sec-object.getprototypeof- var objectGetPrototypeOf = correctPrototypeGetter ? Object.getPrototypeOf : function (O) {- O = toObject(O);- if (has(O, IE_PROTO$1)) return O[IE_PROTO$1];- if (typeof O.constructor == 'function' && O instanceof O.constructor) {- return O.constructor.prototype;- } return O instanceof Object ? ObjectPrototype$1 : null;- };-- var ITERATOR = wellKnownSymbol('iterator');- var BUGGY_SAFARI_ITERATORS = false;-- var returnThis = function () { return this; };-- // `%IteratorPrototype%` object- // https://tc39.github.io/ecma262/#sec-%iteratorprototype%-object- var IteratorPrototype, PrototypeOfArrayIteratorPrototype, arrayIterator;-- if ([].keys) {- arrayIterator = [].keys();- // Safari 8 has buggy iterators w/o `next`- if (!('next' in arrayIterator)) BUGGY_SAFARI_ITERATORS = true;- else {- PrototypeOfArrayIteratorPrototype = objectGetPrototypeOf(objectGetPrototypeOf(arrayIterator));- if (PrototypeOfArrayIteratorPrototype !== Object.prototype) IteratorPrototype = PrototypeOfArrayIteratorPrototype;- }- }-- if (IteratorPrototype == undefined) IteratorPrototype = {};-- // 25.1.2.1.1 %IteratorPrototype%[@@iterator]()- if ( !has(IteratorPrototype, ITERATOR)) {- createNonEnumerableProperty(IteratorPrototype, ITERATOR, returnThis);- }-- var iteratorsCore = {- IteratorPrototype: IteratorPrototype,- BUGGY_SAFARI_ITERATORS: BUGGY_SAFARI_ITERATORS- };-- var IteratorPrototype$1 = iteratorsCore.IteratorPrototype;-- var createIteratorConstructor = function (IteratorConstructor, NAME, next) {- var TO_STRING_TAG = NAME + ' Iterator';- IteratorConstructor.prototype = objectCreate(IteratorPrototype$1, { next: createPropertyDescriptor(1, next) });- setToStringTag(IteratorConstructor, TO_STRING_TAG, false);- return IteratorConstructor;- };-- var aPossiblePrototype = function (it) {- if (!isObject(it) && it !== null) {- throw TypeError("Can't set " + String(it) + ' as a prototype');- } return it;- };-- // `Object.setPrototypeOf` method- // https://tc39.github.io/ecma262/#sec-object.setprototypeof- // Works with __proto__ only. Old v8 can't work with null proto objects.- /* eslint-disable no-proto */- var objectSetPrototypeOf = Object.setPrototypeOf || ('__proto__' in {} ? function () {- var CORRECT_SETTER = false;- var test = {};- var setter;- try {- setter = Object.getOwnPropertyDescriptor(Object.prototype, '__proto__').set;- setter.call(test, []);- CORRECT_SETTER = test instanceof Array;- } catch (error) { /* empty */ }- return function setPrototypeOf(O, proto) {- anObject(O);- aPossiblePrototype(proto);- if (CORRECT_SETTER) setter.call(O, proto);- else O.__proto__ = proto;- return O;- };- }() : undefined);-- var IteratorPrototype$2 = iteratorsCore.IteratorPrototype;- var BUGGY_SAFARI_ITERATORS$1 = iteratorsCore.BUGGY_SAFARI_ITERATORS;- var ITERATOR$1 = wellKnownSymbol('iterator');- var KEYS = 'keys';- var VALUES = 'values';- var ENTRIES = 'entries';-- var returnThis$1 = function () { return this; };-- var defineIterator = function (Iterable, NAME, IteratorConstructor, next, DEFAULT, IS_SET, FORCED) {- createIteratorConstructor(IteratorConstructor, NAME, next);-- var getIterationMethod = function (KIND) {- if (KIND === DEFAULT && defaultIterator) return defaultIterator;- if (!BUGGY_SAFARI_ITERATORS$1 && KIND in IterablePrototype) return IterablePrototype[KIND];- switch (KIND) {- case KEYS: return function keys() { return new IteratorConstructor(this, KIND); };- case VALUES: return function values() { return new IteratorConstructor(this, KIND); };- case ENTRIES: return function entries() { return new IteratorConstructor(this, KIND); };- } return function () { return new IteratorConstructor(this); };- };-- var TO_STRING_TAG = NAME + ' Iterator';- var INCORRECT_VALUES_NAME = false;- var IterablePrototype = Iterable.prototype;- var nativeIterator = IterablePrototype[ITERATOR$1]- || IterablePrototype['@@iterator']- || DEFAULT && IterablePrototype[DEFAULT];- var defaultIterator = !BUGGY_SAFARI_ITERATORS$1 && nativeIterator || getIterationMethod(DEFAULT);- var anyNativeIterator = NAME == 'Array' ? IterablePrototype.entries || nativeIterator : nativeIterator;- var CurrentIteratorPrototype, methods, KEY;-- // fix native- if (anyNativeIterator) {- CurrentIteratorPrototype = objectGetPrototypeOf(anyNativeIterator.call(new Iterable()));- if (IteratorPrototype$2 !== Object.prototype && CurrentIteratorPrototype.next) {- if ( objectGetPrototypeOf(CurrentIteratorPrototype) !== IteratorPrototype$2) {- if (objectSetPrototypeOf) {- objectSetPrototypeOf(CurrentIteratorPrototype, IteratorPrototype$2);- } else if (typeof CurrentIteratorPrototype[ITERATOR$1] != 'function') {- createNonEnumerableProperty(CurrentIteratorPrototype, ITERATOR$1, returnThis$1);- }- }- // Set @@toStringTag to native iterators- setToStringTag(CurrentIteratorPrototype, TO_STRING_TAG, true);- }- }-- // fix Array#{values, @@iterator}.name in V8 / FF- if (DEFAULT == VALUES && nativeIterator && nativeIterator.name !== VALUES) {- INCORRECT_VALUES_NAME = true;- defaultIterator = function values() { return nativeIterator.call(this); };- }-- // define iterator- if ( IterablePrototype[ITERATOR$1] !== defaultIterator) {- createNonEnumerableProperty(IterablePrototype, ITERATOR$1, defaultIterator);- }-- // export additional methods- if (DEFAULT) {- methods = {- values: getIterationMethod(VALUES),- keys: IS_SET ? defaultIterator : getIterationMethod(KEYS),- entries: getIterationMethod(ENTRIES)- };- if (FORCED) for (KEY in methods) {- if (BUGGY_SAFARI_ITERATORS$1 || INCORRECT_VALUES_NAME || !(KEY in IterablePrototype)) {- redefine(IterablePrototype, KEY, methods[KEY]);- }- } else _export({ target: NAME, proto: true, forced: BUGGY_SAFARI_ITERATORS$1 || INCORRECT_VALUES_NAME }, methods);- }-- return methods;- };-- var ARRAY_ITERATOR = 'Array Iterator';- var setInternalState$1 = internalState.set;- var getInternalState$1 = internalState.getterFor(ARRAY_ITERATOR);-- // `Array.prototype.entries` method- // https://tc39.github.io/ecma262/#sec-array.prototype.entries- // `Array.prototype.keys` method- // https://tc39.github.io/ecma262/#sec-array.prototype.keys- // `Array.prototype.values` method- // https://tc39.github.io/ecma262/#sec-array.prototype.values- // `Array.prototype[@@iterator]` method- // https://tc39.github.io/ecma262/#sec-array.prototype-@@iterator- // `CreateArrayIterator` internal method- // https://tc39.github.io/ecma262/#sec-createarrayiterator- var es_array_iterator = defineIterator(Array, 'Array', function (iterated, kind) {- setInternalState$1(this, {- type: ARRAY_ITERATOR,- target: toIndexedObject(iterated), // target- index: 0, // next index- kind: kind // kind- });- // `%ArrayIteratorPrototype%.next` method- // https://tc39.github.io/ecma262/#sec-%arrayiteratorprototype%.next- }, function () {- var state = getInternalState$1(this);- var target = state.target;- var kind = state.kind;- var index = state.index++;- if (!target || index >= target.length) {- state.target = undefined;- return { value: undefined, done: true };- }- if (kind == 'keys') return { value: index, done: false };- if (kind == 'values') return { value: target[index], done: false };- return { value: [index, target[index]], done: false };- }, 'values');-- // https://tc39.github.io/ecma262/#sec-array.prototype-@@unscopables- addToUnscopables('keys');- addToUnscopables('values');- addToUnscopables('entries');-- var sloppyArrayMethod = function (METHOD_NAME, argument) {- var method = [][METHOD_NAME];- return !method || !fails(function () {- // eslint-disable-next-line no-useless-call,no-throw-literal- method.call(null, argument || function () { throw 1; }, 1);- });- };-- var nativeJoin = [].join;-- var ES3_STRINGS = indexedObject != Object;- var SLOPPY_METHOD = sloppyArrayMethod('join', ',');-- // `Array.prototype.join` method- // https://tc39.github.io/ecma262/#sec-array.prototype.join- _export({ target: 'Array', proto: true, forced: ES3_STRINGS || SLOPPY_METHOD }, {- join: function join(separator) {- return nativeJoin.call(toIndexedObject(this), separator === undefined ? ',' : separator);- }- });-- var $map = arrayIteration.map;---- var HAS_SPECIES_SUPPORT = arrayMethodHasSpeciesSupport('map');- // FF49- issue- var USES_TO_LENGTH = HAS_SPECIES_SUPPORT && !fails(function () {- [].map.call({ length: -1, 0: 1 }, function (it) { throw it; });- });-- // `Array.prototype.map` method- // https://tc39.github.io/ecma262/#sec-array.prototype.map- // with adding support of @@species- _export({ target: 'Array', proto: true, forced: !HAS_SPECIES_SUPPORT || !USES_TO_LENGTH }, {- map: function map(callbackfn /* , thisArg */) {- return $map(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);- }- });-- var SPECIES$2 = wellKnownSymbol('species');- var nativeSlice = [].slice;- var max$1 = Math.max;-- // `Array.prototype.slice` method- // https://tc39.github.io/ecma262/#sec-array.prototype.slice- // fallback for not array-like ES3 strings and DOM objects- _export({ target: 'Array', proto: true, forced: !arrayMethodHasSpeciesSupport('slice') }, {- slice: function slice(start, end) {- var O = toIndexedObject(this);- var length = toLength(O.length);- var k = toAbsoluteIndex(start, length);- var fin = toAbsoluteIndex(end === undefined ? length : end, length);- // inline `ArraySpeciesCreate` for usage native `Array#slice` where it's possible- var Constructor, result, n;- if (isArray(O)) {- Constructor = O.constructor;- // cross-realm fallback- if (typeof Constructor == 'function' && (Constructor === Array || isArray(Constructor.prototype))) {- Constructor = undefined;- } else if (isObject(Constructor)) {- Constructor = Constructor[SPECIES$2];- if (Constructor === null) Constructor = undefined;- }- if (Constructor === Array || Constructor === undefined) {- return nativeSlice.call(O, k, fin);- }- }- result = new (Constructor === undefined ? Array : Constructor)(max$1(fin - k, 0));- for (n = 0; k < fin; k++, n++) if (k in O) createProperty(result, n, O[k]);- result.length = n;- return result;- }- });-- var nativeAssign = Object.assign;- var defineProperty$3 = Object.defineProperty;-- // `Object.assign` method- // https://tc39.github.io/ecma262/#sec-object.assign- var objectAssign = !nativeAssign || fails(function () {- // should have correct order of operations (Edge bug)- if (descriptors && nativeAssign({ b: 1 }, nativeAssign(defineProperty$3({}, 'a', {- enumerable: true,- get: function () {- defineProperty$3(this, 'b', {- value: 3,- enumerable: false- });- }- }), { b: 2 })).b !== 1) return true;- // should work with symbols and should have deterministic property order (V8 bug)- var A = {};- var B = {};- // eslint-disable-next-line no-undef- var symbol = Symbol();- var alphabet = 'abcdefghijklmnopqrst';- A[symbol] = 7;- alphabet.split('').forEach(function (chr) { B[chr] = chr; });- return nativeAssign({}, A)[symbol] != 7 || objectKeys(nativeAssign({}, B)).join('') != alphabet;- }) ? function assign(target, source) { // eslint-disable-line no-unused-vars- var T = toObject(target);- var argumentsLength = arguments.length;- var index = 1;- var getOwnPropertySymbols = objectGetOwnPropertySymbols.f;- var propertyIsEnumerable = objectPropertyIsEnumerable.f;- while (argumentsLength > index) {- var S = indexedObject(arguments[index++]);- var keys = getOwnPropertySymbols ? objectKeys(S).concat(getOwnPropertySymbols(S)) : objectKeys(S);- var length = keys.length;- var j = 0;- var key;- while (length > j) {- key = keys[j++];- if (!descriptors || propertyIsEnumerable.call(S, key)) T[key] = S[key];- }- } return T;- } : nativeAssign;-- // `Object.assign` method- // https://tc39.github.io/ecma262/#sec-object.assign- _export({ target: 'Object', stat: true, forced: Object.assign !== objectAssign }, {- assign: objectAssign- });-- var TO_STRING_TAG$1 = wellKnownSymbol('toStringTag');- var test = {};-- test[TO_STRING_TAG$1] = 'z';-- var toStringTagSupport = String(test) === '[object z]';-- var TO_STRING_TAG$2 = wellKnownSymbol('toStringTag');- // ES3 wrong here- var CORRECT_ARGUMENTS = classofRaw(function () { return arguments; }()) == 'Arguments';-- // fallback for IE11 Script Access Denied error- var tryGet = function (it, key) {- try {- return it[key];- } catch (error) { /* empty */ }- };-- // getting tag from ES6+ `Object.prototype.toString`- var classof = toStringTagSupport ? classofRaw : function (it) {- var O, tag, result;- return it === undefined ? 'Undefined' : it === null ? 'Null'- // @@toStringTag case- : typeof (tag = tryGet(O = Object(it), TO_STRING_TAG$2)) == 'string' ? tag- // builtinTag case- : CORRECT_ARGUMENTS ? classofRaw(O)- // ES3 arguments fallback- : (result = classofRaw(O)) == 'Object' && typeof O.callee == 'function' ? 'Arguments' : result;- };-- // `Object.prototype.toString` method implementation- // https://tc39.github.io/ecma262/#sec-object.prototype.tostring- var objectToString = toStringTagSupport ? {}.toString : function toString() {- return '[object ' + classof(this) + ']';- };-- // `Object.prototype.toString` method- // https://tc39.github.io/ecma262/#sec-object.prototype.tostring- if (!toStringTagSupport) {- redefine(Object.prototype, 'toString', objectToString, { unsafe: true });- }-- // `RegExp.prototype.flags` getter implementation- // https://tc39.github.io/ecma262/#sec-get-regexp.prototype.flags- var regexpFlags = function () {- var that = anObject(this);- var result = '';- if (that.global) result += 'g';- if (that.ignoreCase) result += 'i';- if (that.multiline) result += 'm';- if (that.dotAll) result += 's';- if (that.unicode) result += 'u';- if (that.sticky) result += 'y';- return result;- };-- // babel-minify transpiles RegExp('a', 'y') -> /a/y and it causes SyntaxError,- // so we use an intermediate function.- function RE(s, f) {- return RegExp(s, f);- }-- var UNSUPPORTED_Y = fails(function () {- // babel-minify transpiles RegExp('a', 'y') -> /a/y and it causes SyntaxError- var re = RE('a', 'y');- re.lastIndex = 2;- return re.exec('abcd') != null;- });-- var BROKEN_CARET = fails(function () {- // https://bugzilla.mozilla.org/show_bug.cgi?id=773687- var re = RE('^r', 'gy');- re.lastIndex = 2;- return re.exec('str') != null;- });-- var regexpStickyHelpers = {- UNSUPPORTED_Y: UNSUPPORTED_Y,- BROKEN_CARET: BROKEN_CARET- };-- var nativeExec = RegExp.prototype.exec;- // This always refers to the native implementation, because the- // String#replace polyfill uses ./fix-regexp-well-known-symbol-logic.js,- // which loads this file before patching the method.- var nativeReplace = String.prototype.replace;-- var patchedExec = nativeExec;-- var UPDATES_LAST_INDEX_WRONG = (function () {- var re1 = /a/;- var re2 = /b*/g;- nativeExec.call(re1, 'a');- nativeExec.call(re2, 'a');- return re1.lastIndex !== 0 || re2.lastIndex !== 0;- })();-- var UNSUPPORTED_Y$1 = regexpStickyHelpers.UNSUPPORTED_Y || regexpStickyHelpers.BROKEN_CARET;-- // nonparticipating capturing group, copied from es5-shim's String#split patch.- var NPCG_INCLUDED = /()??/.exec('')[1] !== undefined;-- var PATCH = UPDATES_LAST_INDEX_WRONG || NPCG_INCLUDED || UNSUPPORTED_Y$1;-- if (PATCH) {- patchedExec = function exec(str) {- var re = this;- var lastIndex, reCopy, match, i;- var sticky = UNSUPPORTED_Y$1 && re.sticky;- var flags = regexpFlags.call(re);- var source = re.source;- var charsAdded = 0;- var strCopy = str;-- if (sticky) {- flags = flags.replace('y', '');- if (flags.indexOf('g') === -1) {- flags += 'g';- }-- strCopy = String(str).slice(re.lastIndex);- // Support anchored sticky behavior.- if (re.lastIndex > 0 && (!re.multiline || re.multiline && str[re.lastIndex - 1] !== '\n')) {- source = '(?: ' + source + ')';- strCopy = ' ' + strCopy;- charsAdded++;- }- // ^(? + rx + ) is needed, in combination with some str slicing, to- // simulate the 'y' flag.- reCopy = new RegExp('^(?:' + source + ')', flags);- }-- if (NPCG_INCLUDED) {- reCopy = new RegExp('^' + source + '$(?!\\s)', flags);- }- if (UPDATES_LAST_INDEX_WRONG) lastIndex = re.lastIndex;-- match = nativeExec.call(sticky ? reCopy : re, strCopy);-- if (sticky) {- if (match) {- match.input = match.input.slice(charsAdded);- match[0] = match[0].slice(charsAdded);- match.index = re.lastIndex;- re.lastIndex += match[0].length;- } else re.lastIndex = 0;- } else if (UPDATES_LAST_INDEX_WRONG && match) {- re.lastIndex = re.global ? match.index + match[0].length : lastIndex;- }- if (NPCG_INCLUDED && match && match.length > 1) {- // Fix browsers whose `exec` methods don't consistently return `undefined`- // for NPCG, like IE8. NOTE: This doesn' work for /(.?)?/- nativeReplace.call(match[0], reCopy, function () {- for (i = 1; i < arguments.length - 2; i++) {- if (arguments[i] === undefined) match[i] = undefined;- }- });- }-- return match;- };- }-- var regexpExec = patchedExec;-- _export({ target: 'RegExp', proto: true, forced: /./.exec !== regexpExec }, {- exec: regexpExec- });-- // `String.prototype.{ codePointAt, at }` methods implementation- var createMethod$2 = function (CONVERT_TO_STRING) {- return function ($this, pos) {- var S = String(requireObjectCoercible($this));- var position = toInteger(pos);- var size = S.length;- var first, second;- if (position < 0 || position >= size) return CONVERT_TO_STRING ? '' : undefined;- first = S.charCodeAt(position);- return first < 0xD800 || first > 0xDBFF || position + 1 === size- || (second = S.charCodeAt(position + 1)) < 0xDC00 || second > 0xDFFF- ? CONVERT_TO_STRING ? S.charAt(position) : first- : CONVERT_TO_STRING ? S.slice(position, position + 2) : (first - 0xD800 << 10) + (second - 0xDC00) + 0x10000;- };- };-- var stringMultibyte = {- // `String.prototype.codePointAt` method- // https://tc39.github.io/ecma262/#sec-string.prototype.codepointat- codeAt: createMethod$2(false),- // `String.prototype.at` method- // https://github.com/mathiasbynens/String.prototype.at- charAt: createMethod$2(true)- };-- var charAt = stringMultibyte.charAt;---- var STRING_ITERATOR = 'String Iterator';- var setInternalState$2 = internalState.set;- var getInternalState$2 = internalState.getterFor(STRING_ITERATOR);-- // `String.prototype[@@iterator]` method- // https://tc39.github.io/ecma262/#sec-string.prototype-@@iterator- defineIterator(String, 'String', function (iterated) {- setInternalState$2(this, {- type: STRING_ITERATOR,- string: String(iterated),- index: 0- });- // `%StringIteratorPrototype%.next` method- // https://tc39.github.io/ecma262/#sec-%stringiteratorprototype%.next- }, function next() {- var state = getInternalState$2(this);- var string = state.string;- var index = state.index;- var point;- if (index >= string.length) return { value: undefined, done: true };- point = charAt(string, index);- state.index += point.length;- return { value: point, done: false };- });-- var SPECIES$3 = wellKnownSymbol('species');-- var REPLACE_SUPPORTS_NAMED_GROUPS = !fails(function () {- // #replace needs built-in support for named groups.- // #match works fine because it just return the exec results, even if it has- // a "grops" property.- var re = /./;- re.exec = function () {- var result = [];- result.groups = { a: '7' };- return result;- };- return ''.replace(re, '$<a>') !== '7';- });-- // IE <= 11 replaces $0 with the whole match, as if it was $&- // https://stackoverflow.com/questions/6024666/getting-ie-to-replace-a-regex-with-the-literal-string-0- var REPLACE_KEEPS_$0 = (function () {- return 'a'.replace(/./, '$0') === '$0';- })();-- // Chrome 51 has a buggy "split" implementation when RegExp#exec !== nativeExec- // Weex JS has frozen built-in prototypes, so use try / catch wrapper- var SPLIT_WORKS_WITH_OVERWRITTEN_EXEC = !fails(function () {- var re = /(?:)/;- var originalExec = re.exec;- re.exec = function () { return originalExec.apply(this, arguments); };- var result = 'ab'.split(re);- return result.length !== 2 || result[0] !== 'a' || result[1] !== 'b';- });-- var fixRegexpWellKnownSymbolLogic = function (KEY, length, exec, sham) {- var SYMBOL = wellKnownSymbol(KEY);-- var DELEGATES_TO_SYMBOL = !fails(function () {- // String methods call symbol-named RegEp methods- var O = {};- O[SYMBOL] = function () { return 7; };- return ''[KEY](O) != 7;- });-- var DELEGATES_TO_EXEC = DELEGATES_TO_SYMBOL && !fails(function () {- // Symbol-named RegExp methods call .exec- var execCalled = false;- var re = /a/;-- if (KEY === 'split') {- // We can't use real regex here since it causes deoptimization- // and serious performance degradation in V8- // https://github.com/zloirock/core-js/issues/306- re = {};- // RegExp[@@split] doesn't call the regex's exec method, but first creates- // a new one. We need to return the patched regex when creating the new one.- re.constructor = {};- re.constructor[SPECIES$3] = function () { return re; };- re.flags = '';- re[SYMBOL] = /./[SYMBOL];- }-- re.exec = function () { execCalled = true; return null; };-- re[SYMBOL]('');- return !execCalled;- });-- if (- !DELEGATES_TO_SYMBOL ||- !DELEGATES_TO_EXEC ||- (KEY === 'replace' && !(REPLACE_SUPPORTS_NAMED_GROUPS && REPLACE_KEEPS_$0)) ||- (KEY === 'split' && !SPLIT_WORKS_WITH_OVERWRITTEN_EXEC)- ) {- var nativeRegExpMethod = /./[SYMBOL];- var methods = exec(SYMBOL, ''[KEY], function (nativeMethod, regexp, str, arg2, forceStringMethod) {- if (regexp.exec === regexpExec) {- if (DELEGATES_TO_SYMBOL && !forceStringMethod) {- // The native String method already delegates to @@method (this- // polyfilled function), leasing to infinite recursion.- // We avoid it by directly calling the native @@method method.- return { done: true, value: nativeRegExpMethod.call(regexp, str, arg2) };- }- return { done: true, value: nativeMethod.call(str, regexp, arg2) };- }- return { done: false };- }, { REPLACE_KEEPS_$0: REPLACE_KEEPS_$0 });- var stringMethod = methods[0];- var regexMethod = methods[1];-- redefine(String.prototype, KEY, stringMethod);- redefine(RegExp.prototype, SYMBOL, length == 2- // 21.2.5.8 RegExp.prototype[@@replace](string, replaceValue)- // 21.2.5.11 RegExp.prototype[@@split](string, limit)- ? function (string, arg) { return regexMethod.call(string, this, arg); }- // 21.2.5.6 RegExp.prototype[@@match](string)- // 21.2.5.9 RegExp.prototype[@@search](string)- : function (string) { return regexMethod.call(string, this); }- );- }-- if (sham) createNonEnumerableProperty(RegExp.prototype[SYMBOL], 'sham', true);- };-- var charAt$1 = stringMultibyte.charAt;-- // `AdvanceStringIndex` abstract operation- // https://tc39.github.io/ecma262/#sec-advancestringindex- var advanceStringIndex = function (S, index, unicode) {- return index + (unicode ? charAt$1(S, index).length : 1);- };-- // `RegExpExec` abstract operation- // https://tc39.github.io/ecma262/#sec-regexpexec- var regexpExecAbstract = function (R, S) {- var exec = R.exec;- if (typeof exec === 'function') {- var result = exec.call(R, S);- if (typeof result !== 'object') {- throw TypeError('RegExp exec method returned something other than an Object or null');- }- return result;- }-- if (classofRaw(R) !== 'RegExp') {- throw TypeError('RegExp#exec called on incompatible receiver');- }-- return regexpExec.call(R, S);- };-- var max$2 = Math.max;- var min$2 = Math.min;- var floor$1 = Math.floor;- var SUBSTITUTION_SYMBOLS = /\$([$&'`]|\d\d?|<[^>]*>)/g;- var SUBSTITUTION_SYMBOLS_NO_NAMED = /\$([$&'`]|\d\d?)/g;-- var maybeToString = function (it) {- return it === undefined ? it : String(it);- };-- // @@replace logic- fixRegexpWellKnownSymbolLogic('replace', 2, function (REPLACE, nativeReplace, maybeCallNative, reason) {- return [- // `String.prototype.replace` method- // https://tc39.github.io/ecma262/#sec-string.prototype.replace- function replace(searchValue, replaceValue) {- var O = requireObjectCoercible(this);- var replacer = searchValue == undefined ? undefined : searchValue[REPLACE];- return replacer !== undefined- ? replacer.call(searchValue, O, replaceValue)- : nativeReplace.call(String(O), searchValue, replaceValue);- },- // `RegExp.prototype[@@replace]` method- // https://tc39.github.io/ecma262/#sec-regexp.prototype-@@replace- function (regexp, replaceValue) {- if (reason.REPLACE_KEEPS_$0 || (typeof replaceValue === 'string' && replaceValue.indexOf('$0') === -1)) {- var res = maybeCallNative(nativeReplace, regexp, this, replaceValue);- if (res.done) return res.value;- }-- var rx = anObject(regexp);- var S = String(this);-- var functionalReplace = typeof replaceValue === 'function';- if (!functionalReplace) replaceValue = String(replaceValue);-- var global = rx.global;- if (global) {- var fullUnicode = rx.unicode;- rx.lastIndex = 0;- }- var results = [];- while (true) {- var result = regexpExecAbstract(rx, S);- if (result === null) break;-- results.push(result);- if (!global) break;-- var matchStr = String(result[0]);- if (matchStr === '') rx.lastIndex = advanceStringIndex(S, toLength(rx.lastIndex), fullUnicode);- }-- var accumulatedResult = '';- var nextSourcePosition = 0;- for (var i = 0; i < results.length; i++) {- result = results[i];-- var matched = String(result[0]);- var position = max$2(min$2(toInteger(result.index), S.length), 0);- var captures = [];- // NOTE: This is equivalent to- // captures = result.slice(1).map(maybeToString)- // but for some reason `nativeSlice.call(result, 1, result.length)` (called in- // the slice polyfill when slicing native arrays) "doesn't work" in safari 9 and- // causes a crash (https://pastebin.com/N21QzeQA) when trying to debug it.- for (var j = 1; j < result.length; j++) captures.push(maybeToString(result[j]));- var namedCaptures = result.groups;- if (functionalReplace) {- var replacerArgs = [matched].concat(captures, position, S);- if (namedCaptures !== undefined) replacerArgs.push(namedCaptures);- var replacement = String(replaceValue.apply(undefined, replacerArgs));- } else {- replacement = getSubstitution(matched, S, position, captures, namedCaptures, replaceValue);- }- if (position >= nextSourcePosition) {- accumulatedResult += S.slice(nextSourcePosition, position) + replacement;- nextSourcePosition = position + matched.length;- }- }- return accumulatedResult + S.slice(nextSourcePosition);- }- ];-- // https://tc39.github.io/ecma262/#sec-getsubstitution- function getSubstitution(matched, str, position, captures, namedCaptures, replacement) {- var tailPos = position + matched.length;- var m = captures.length;- var symbols = SUBSTITUTION_SYMBOLS_NO_NAMED;- if (namedCaptures !== undefined) {- namedCaptures = toObject(namedCaptures);- symbols = SUBSTITUTION_SYMBOLS;- }- return nativeReplace.call(replacement, symbols, function (match, ch) {- var capture;- switch (ch.charAt(0)) {- case '$': return '$';- case '&': return matched;- case '`': return str.slice(0, position);- case "'": return str.slice(tailPos);- case '<':- capture = namedCaptures[ch.slice(1, -1)];- break;- default: // \d\d?- var n = +ch;- if (n === 0) return match;- if (n > m) {- var f = floor$1(n / 10);- if (f === 0) return match;- if (f <= m) return captures[f - 1] === undefined ? ch.charAt(1) : captures[f - 1] + ch.charAt(1);- return match;- }- capture = captures[n - 1];- }- return capture === undefined ? '' : capture;- });- }- });-- var MATCH = wellKnownSymbol('match');-- // `IsRegExp` abstract operation- // https://tc39.github.io/ecma262/#sec-isregexp- var isRegexp = function (it) {- var isRegExp;- return isObject(it) && ((isRegExp = it[MATCH]) !== undefined ? !!isRegExp : classofRaw(it) == 'RegExp');- };-- var SPECIES$4 = wellKnownSymbol('species');-- // `SpeciesConstructor` abstract operation- // https://tc39.github.io/ecma262/#sec-speciesconstructor- var speciesConstructor = function (O, defaultConstructor) {- var C = anObject(O).constructor;- var S;- return C === undefined || (S = anObject(C)[SPECIES$4]) == undefined ? defaultConstructor : aFunction$1(S);- };-- var arrayPush = [].push;- var min$3 = Math.min;- var MAX_UINT32 = 0xFFFFFFFF;-- // babel-minify transpiles RegExp('x', 'y') -> /x/y and it causes SyntaxError- var SUPPORTS_Y = !fails(function () { return !RegExp(MAX_UINT32, 'y'); });-- // @@split logic- fixRegexpWellKnownSymbolLogic('split', 2, function (SPLIT, nativeSplit, maybeCallNative) {- var internalSplit;- if (- 'abbc'.split(/(b)*/)[1] == 'c' ||- 'test'.split(/(?:)/, -1).length != 4 ||- 'ab'.split(/(?:ab)*/).length != 2 ||- '.'.split(/(.?)(.?)/).length != 4 ||- '.'.split(/()()/).length > 1 ||- ''.split(/.?/).length- ) {- // based on es5-shim implementation, need to rework it- internalSplit = function (separator, limit) {- var string = String(requireObjectCoercible(this));- var lim = limit === undefined ? MAX_UINT32 : limit >>> 0;- if (lim === 0) return [];- if (separator === undefined) return [string];- // If `separator` is not a regex, use native split- if (!isRegexp(separator)) {- return nativeSplit.call(string, separator, lim);- }- var output = [];- var flags = (separator.ignoreCase ? 'i' : '') +- (separator.multiline ? 'm' : '') +- (separator.unicode ? 'u' : '') +- (separator.sticky ? 'y' : '');- var lastLastIndex = 0;- // Make `global` and avoid `lastIndex` issues by working with a copy- var separatorCopy = new RegExp(separator.source, flags + 'g');- var match, lastIndex, lastLength;- while (match = regexpExec.call(separatorCopy, string)) {- lastIndex = separatorCopy.lastIndex;- if (lastIndex > lastLastIndex) {- output.push(string.slice(lastLastIndex, match.index));- if (match.length > 1 && match.index < string.length) arrayPush.apply(output, match.slice(1));- lastLength = match[0].length;- lastLastIndex = lastIndex;- if (output.length >= lim) break;- }- if (separatorCopy.lastIndex === match.index) separatorCopy.lastIndex++; // Avoid an infinite loop- }- if (lastLastIndex === string.length) {- if (lastLength || !separatorCopy.test('')) output.push('');- } else output.push(string.slice(lastLastIndex));- return output.length > lim ? output.slice(0, lim) : output;- };- // Chakra, V8- } else if ('0'.split(undefined, 0).length) {- internalSplit = function (separator, limit) {- return separator === undefined && limit === 0 ? [] : nativeSplit.call(this, separator, limit);- };- } else internalSplit = nativeSplit;-- return [- // `String.prototype.split` method- // https://tc39.github.io/ecma262/#sec-string.prototype.split- function split(separator, limit) {- var O = requireObjectCoercible(this);- var splitter = separator == undefined ? undefined : separator[SPLIT];- return splitter !== undefined- ? splitter.call(separator, O, limit)- : internalSplit.call(String(O), separator, limit);- },- // `RegExp.prototype[@@split]` method- // https://tc39.github.io/ecma262/#sec-regexp.prototype-@@split- //- // NOTE: This cannot be properly polyfilled in engines that don't support- // the 'y' flag.- function (regexp, limit) {- var res = maybeCallNative(internalSplit, regexp, this, limit, internalSplit !== nativeSplit);- if (res.done) return res.value;-- var rx = anObject(regexp);- var S = String(this);- var C = speciesConstructor(rx, RegExp);-- var unicodeMatching = rx.unicode;- var flags = (rx.ignoreCase ? 'i' : '') +- (rx.multiline ? 'm' : '') +- (rx.unicode ? 'u' : '') +- (SUPPORTS_Y ? 'y' : 'g');-- // ^(? + rx + ) is needed, in combination with some S slicing, to- // simulate the 'y' flag.- var splitter = new C(SUPPORTS_Y ? rx : '^(?:' + rx.source + ')', flags);- var lim = limit === undefined ? MAX_UINT32 : limit >>> 0;- if (lim === 0) return [];- if (S.length === 0) return regexpExecAbstract(splitter, S) === null ? [S] : [];- var p = 0;- var q = 0;- var A = [];- while (q < S.length) {- splitter.lastIndex = SUPPORTS_Y ? q : 0;- var z = regexpExecAbstract(splitter, SUPPORTS_Y ? S : S.slice(q));- var e;- if (- z === null ||- (e = min$3(toLength(splitter.lastIndex + (SUPPORTS_Y ? 0 : q)), S.length)) === p- ) {- q = advanceStringIndex(S, q, unicodeMatching);- } else {- A.push(S.slice(p, q));- if (A.length === lim) return A;- for (var i = 1; i <= z.length - 1; i++) {- A.push(z[i]);- if (A.length === lim) return A;- }- q = p = e;- }- }- A.push(S.slice(p));- return A;- }- ];- }, !SUPPORTS_Y);-- // iterable DOM collections- // flag - `iterable` interface - 'entries', 'keys', 'values', 'forEach' methods- var domIterables = {- CSSRuleList: 0,- CSSStyleDeclaration: 0,- CSSValueList: 0,- ClientRectList: 0,- DOMRectList: 0,- DOMStringList: 0,- DOMTokenList: 1,- DataTransferItemList: 0,- FileList: 0,- HTMLAllCollection: 0,- HTMLCollection: 0,- HTMLFormElement: 0,- HTMLSelectElement: 0,- MediaList: 0,- MimeTypeArray: 0,- NamedNodeMap: 0,- NodeList: 1,- PaintRequestList: 0,- Plugin: 0,- PluginArray: 0,- SVGLengthList: 0,- SVGNumberList: 0,- SVGPathSegList: 0,- SVGPointList: 0,- SVGStringList: 0,- SVGTransformList: 0,- SourceBufferList: 0,- StyleSheetList: 0,- TextTrackCueList: 0,- TextTrackList: 0,- TouchList: 0- };-- var $forEach$1 = arrayIteration.forEach;--- // `Array.prototype.forEach` method implementation- // https://tc39.github.io/ecma262/#sec-array.prototype.foreach- var arrayForEach = sloppyArrayMethod('forEach') ? function forEach(callbackfn /* , thisArg */) {- return $forEach$1(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);- } : [].forEach;-- for (var COLLECTION_NAME in domIterables) {- var Collection = global_1[COLLECTION_NAME];- var CollectionPrototype = Collection && Collection.prototype;- // some Chrome versions have non-configurable methods on DOMTokenList- if (CollectionPrototype && CollectionPrototype.forEach !== arrayForEach) try {- createNonEnumerableProperty(CollectionPrototype, 'forEach', arrayForEach);- } catch (error) {- CollectionPrototype.forEach = arrayForEach;- }- }-- var ITERATOR$2 = wellKnownSymbol('iterator');- var TO_STRING_TAG$3 = wellKnownSymbol('toStringTag');- var ArrayValues = es_array_iterator.values;-- for (var COLLECTION_NAME$1 in domIterables) {- var Collection$1 = global_1[COLLECTION_NAME$1];- var CollectionPrototype$1 = Collection$1 && Collection$1.prototype;- if (CollectionPrototype$1) {- // some Chrome versions have non-configurable methods on DOMTokenList- if (CollectionPrototype$1[ITERATOR$2] !== ArrayValues) try {- createNonEnumerableProperty(CollectionPrototype$1, ITERATOR$2, ArrayValues);- } catch (error) {- CollectionPrototype$1[ITERATOR$2] = ArrayValues;- }- if (!CollectionPrototype$1[TO_STRING_TAG$3]) {- createNonEnumerableProperty(CollectionPrototype$1, TO_STRING_TAG$3, COLLECTION_NAME$1);- }- if (domIterables[COLLECTION_NAME$1]) for (var METHOD_NAME in es_array_iterator) {- // some Chrome versions have non-configurable methods on DOMTokenList- if (CollectionPrototype$1[METHOD_NAME] !== es_array_iterator[METHOD_NAME]) try {- createNonEnumerableProperty(CollectionPrototype$1, METHOD_NAME, es_array_iterator[METHOD_NAME]);- } catch (error) {- CollectionPrototype$1[METHOD_NAME] = es_array_iterator[METHOD_NAME];- }- }- }- }-- function _classCallCheck(instance, Constructor) {- if (!(instance instanceof Constructor)) {- throw new TypeError("Cannot call a class as a function");- }- }-- function _defineProperties(target, props) {- for (var i = 0; i < props.length; i++) {- var descriptor = props[i];- descriptor.enumerable = descriptor.enumerable || false;- descriptor.configurable = true;- if ("value" in descriptor) descriptor.writable = true;- Object.defineProperty(target, descriptor.key, descriptor);- }- }-- function _createClass(Constructor, protoProps, staticProps) {- if (protoProps) _defineProperties(Constructor.prototype, protoProps);- if (staticProps) _defineProperties(Constructor, staticProps);- return Constructor;- }-- function _defineProperty(obj, key, value) {- if (key in obj) {- Object.defineProperty(obj, key, {- value: value,- enumerable: true,- configurable: true,- writable: true- });- } else {- obj[key] = value;- }-- return obj;- }-- function _inherits(subClass, superClass) {- if (typeof superClass !== "function" && superClass !== null) {- throw new TypeError("Super expression must either be null or a function");- }-- subClass.prototype = Object.create(superClass && superClass.prototype, {- constructor: {- value: subClass,- writable: true,- configurable: true- }- });- if (superClass) _setPrototypeOf(subClass, superClass);- }-- function _getPrototypeOf(o) {- _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {- return o.__proto__ || Object.getPrototypeOf(o);- };- return _getPrototypeOf(o);- }-- function _setPrototypeOf(o, p) {- _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {- o.__proto__ = p;- return o;- };-- return _setPrototypeOf(o, p);- }-- function _assertThisInitialized(self) {- if (self === void 0) {- throw new ReferenceError("this hasn't been initialised - super() hasn't been called");- }-- return self;- }-- function _possibleConstructorReturn(self, call) {- if (call && (typeof call === "object" || typeof call === "function")) {- return call;- }-- return _assertThisInitialized(self);- }-- function _superPropBase(object, property) {- while (!Object.prototype.hasOwnProperty.call(object, property)) {- object = _getPrototypeOf(object);- if (object === null) break;- }-- return object;- }-- function _get(target, property, receiver) {- if (typeof Reflect !== "undefined" && Reflect.get) {- _get = Reflect.get;- } else {- _get = function _get(target, property, receiver) {- var base = _superPropBase(target, property);-- if (!base) return;- var desc = Object.getOwnPropertyDescriptor(base, property);-- if (desc.get) {- return desc.get.call(receiver);- }-- return desc.value;- };- }-- return _get(target, property, receiver || target);- }-- /**- * @author zhixin wen <[email protected]>- * extensions: https://github.com/hhurz/tableExport.jquery.plugin- */-- var Utils = $.fn.bootstrapTable.utils;- var TYPE_NAME = {- json: 'JSON',- xml: 'XML',- png: 'PNG',- csv: 'CSV',- txt: 'TXT',- sql: 'SQL',- doc: 'MS-Word',- excel: 'MS-Excel',- xlsx: 'MS-Excel (OpenXML)',- powerpoint: 'MS-Powerpoint',- pdf: 'PDF'- };- $.extend($.fn.bootstrapTable.defaults, {- showExport: false,- exportDataType: 'basic',- // basic, all, selected- exportTypes: ['json', 'xml', 'csv', 'txt', 'sql', 'excel'],- exportOptions: {- onCellHtmlData: function onCellHtmlData(cell, rowIndex, colIndex, htmlData) {- if (cell.is('th')) {- return cell.find('.th-inner').text();- }-- return htmlData;- }- },- exportFooter: false- });- $.extend($.fn.bootstrapTable.columnDefaults, {- forceExport: false,- forceHide: false- });- $.extend($.fn.bootstrapTable.defaults.icons, {- export: {- bootstrap3: 'glyphicon-export icon-share',- materialize: 'file_download',- 'bootstrap-table': 'icon-download'- }[$.fn.bootstrapTable.theme] || 'fa-download'- });- $.extend($.fn.bootstrapTable.locales, {- formatExport: function formatExport() {- return 'Export data';- }- });- $.extend($.fn.bootstrapTable.defaults, $.fn.bootstrapTable.locales);- $.fn.bootstrapTable.methods.push('exportTable');- $.extend($.fn.bootstrapTable.defaults, {- onExportSaved: function onExportSaved(exportedRows) {- return false;- }- });- $.extend($.fn.bootstrapTable.Constructor.EVENTS, {- 'export-saved.bs.table': 'onExportSaved'- });-- $.BootstrapTable =- /*#__PURE__*/- function (_$$BootstrapTable) {- _inherits(_class, _$$BootstrapTable);-- function _class() {- _classCallCheck(this, _class);-- return _possibleConstructorReturn(this, _getPrototypeOf(_class).apply(this, arguments));- }-- _createClass(_class, [{- key: "initToolbar",- value: function initToolbar() {- var _get2,- _this = this;-- var o = this.options;- this.showToolbar = this.showToolbar || o.showExport;- var $btnGroup = this.$toolbar.find('>.columns');-- if (this.options.showExport) {- var exportTypes = o.exportTypes;-- if (typeof exportTypes === 'string') {- var types = exportTypes.slice(1, -1).replace(/ /g, '').split(',');- exportTypes = types.map(function (t) {- return t.slice(1, -1);- });- }-- this.$export = this.$toolbar.find('>.columns div.export');-- if (this.$export.length) {- this.updateExportButton();- return;- }-- this.buttons = Object.assign(this.buttons, {- 'export': {- 'html': exportTypes.length === 1 ? "\n <div class=\"export ".concat(this.constants.classes.buttonsDropdown, "\"\n data-type=\"").concat(exportTypes[0], "\">\n <button class=\"").concat(this.constants.buttonsClass, "\"\n aria-label=\"Export\"\n type=\"button\"\n title=\"").concat(o.formatExport(), "\">\n ").concat(o.showButtonIcons ? Utils.sprintf(this.constants.html.icon, o.iconsPrefix, o.icons.export) : '', "\n ").concat(o.showButtonText ? o.formatExport() : '', "\n </button>\n </div>\n ") : "\n <div class=\"export ".concat(this.constants.classes.buttonsDropdown, "\">\n <button class=\"").concat(this.constants.buttonsClass, " dropdown-toggle\"\n aria-label=\"Export\"\n data-toggle=\"dropdown\"\n type=\"button\"\n title=\"").concat(o.formatExport(), "\">\n ").concat(o.showButtonIcons ? Utils.sprintf(this.constants.html.icon, o.iconsPrefix, o.icons.export) : '', "\n ").concat(o.showButtonText ? o.formatExport() : '', "\n ").concat(this.constants.html.dropdownCaret, "\n </button>\n </div>\n ")- }- });- }-- for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {- args[_key] = arguments[_key];- }-- (_get2 = _get(_getPrototypeOf(_class.prototype), "initToolbar", this)).call.apply(_get2, [this].concat(args));-- this.$export = this.$toolbar.find('>.columns div.export');-- if (!this.options.showExport) {- return;- }-- var $menu = $(this.constants.html.toolbarDropdown.join(''));- var $items = this.$export;-- if (exportTypes.length > 1) {- this.$export.append($menu); // themes support-- if ($menu.children().length) {- $menu = $menu.children().eq(0);- }-- var _iteratorNormalCompletion = true;- var _didIteratorError = false;- var _iteratorError = undefined;-- try {- for (var _iterator = exportTypes[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {- var type = _step.value;-- if (TYPE_NAME.hasOwnProperty(type)) {- var $item = $(Utils.sprintf(this.constants.html.pageDropdownItem, '', TYPE_NAME[type]));- $item.attr('data-type', type);- $menu.append($item);- }- }- } catch (err) {- _didIteratorError = true;- _iteratorError = err;- } finally {- try {- if (!_iteratorNormalCompletion && _iterator.return != null) {- _iterator.return();- }- } finally {- if (_didIteratorError) {- throw _iteratorError;- }- }- }-- $items = $menu.children();- }-- this.updateExportButton();- $items.click(function (e) {- e.preventDefault();- var type = $(e.currentTarget).data('type');- var exportOptions = {- type: type,- escape: false- };-- _this.exportTable(exportOptions);- });- this.handleToolbar();- }- }, {- key: "handleToolbar",- value: function handleToolbar() {- if (!this.$export) {- return;- }-- if ($.fn.bootstrapTable.theme === 'foundation') {- this.$export.find('.dropdown-pane').attr('id', 'toolbar-export-id');- } else if ($.fn.bootstrapTable.theme === 'materialize') {- this.$export.find('.dropdown-content').attr('id', 'toolbar-export-id');- }-- if (_get(_getPrototypeOf(_class.prototype), "handleToolbar", this)) {- _get(_getPrototypeOf(_class.prototype), "handleToolbar", this).call(this);- }- }- }, {- key: "exportTable",- value: function exportTable(options) {- var _this2 = this;-- var o = this.options;- var stateField = this.header.stateField;- var isCardView = o.cardView;-- var doExport = function doExport(callback) {- if (stateField) {- _this2.hideColumn(stateField);- }-- if (isCardView) {- _this2.toggleView();- }-- _this2.columns.forEach(function (row) {- if (row.forceHide) {- _this2.hideColumn(row.field);- }- });-- var data = _this2.getData();-- if (o.exportFooter) {- var $footerRow = _this2.$tableFooter.find('tr').first();-- var footerData = {};- var footerHtml = [];- $.each($footerRow.children(), function (index, footerCell) {- var footerCellHtml = $(footerCell).children('.th-inner').first().html();- footerData[_this2.columns[index].field] = footerCellHtml === ' ' ? null : footerCellHtml; // grab footer cell text into cell index-based array-- footerHtml.push(footerCellHtml);- });-- _this2.$body.append(_this2.$body.children().last()[0].outerHTML);-- var $lastTableRow = _this2.$body.children().last();-- $.each($lastTableRow.children(), function (index, lastTableRowCell) {- $(lastTableRowCell).html(footerHtml[index]);- });- }-- var hiddenColumns = _this2.getHiddenColumns();-- hiddenColumns.forEach(function (row) {- if (row.forceExport) {- _this2.showColumn(row.field);- }- });-- if (typeof o.exportOptions.fileName === 'function') {- options.fileName = o.exportOptions.fileName();- }-- _this2.$el.tableExport($.extend({- onAfterSaveToFile: function onAfterSaveToFile() {- if (o.exportFooter) {- _this2.load(data);- }-- if (stateField) {- _this2.showColumn(stateField);- }-- if (isCardView) {- _this2.toggleView();- }-- hiddenColumns.forEach(function (row) {- if (row.forceExport) {- _this2.hideColumn(row.field);- }- });-- _this2.columns.forEach(function (row) {- if (row.forceHide) {- _this2.showColumn(row.field);- }- });-- if (callback) callback();- }- }, o.exportOptions, options));- };-- if (o.exportDataType === 'all' && o.pagination) {- var eventName = o.sidePagination === 'server' ? 'post-body.bs.table' : 'page-change.bs.table';- var virtualScroll = this.options.virtualScroll;- this.$el.one(eventName, function () {- setTimeout(function () {- doExport(function () {- _this2.options.virtualScroll = virtualScroll;-- _this2.togglePagination();- });- }, 0);- });- this.options.virtualScroll = false;- this.togglePagination();- this.trigger('export-saved', this.getData());- } else if (o.exportDataType === 'selected') {- var data = this.getData();- var selectedData = this.getSelections();- var pagination = o.pagination;-- if (!selectedData.length) {- return;- }-- if (o.sidePagination === 'server') {- data = _defineProperty({- total: o.totalRows- }, this.options.dataField, data);- selectedData = _defineProperty({- total: selectedData.length- }, this.options.dataField, selectedData);- }-- this.load(selectedData);-- if (pagination) {- this.togglePagination();- }-- doExport(function () {- if (pagination) {- _this2.togglePagination();- }-- _this2.load(data);- });- this.trigger('export-saved', selectedData);- } else {- doExport();- this.trigger('export-saved', this.getData(true));- }- }- }, {- key: "updateSelected",- value: function updateSelected() {- _get(_getPrototypeOf(_class.prototype), "updateSelected", this).call(this);-- this.updateExportButton();- }- }, {- key: "updateExportButton",- value: function updateExportButton() {- if (this.options.exportDataType === 'selected') {- this.$export.find('> button').prop('disabled', !this.getSelections().length);- }- }- }]);-- return _class;- }($.BootstrapTable);--})));--(function (global, factory) {- typeof exports === 'object' && typeof module !== 'undefined' ? factory(require('jquery')) :- typeof define === 'function' && define.amd ? define(['jquery'], factory) :- (global = global || self, factory(global.jQuery));-}(this, (function ($) { 'use strict';-- $ = $ && Object.prototype.hasOwnProperty.call($, 'default') ? $['default'] : $;-- var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};-- function createCommonjsModule(fn, module) {- return module = { exports: {} }, fn(module, module.exports), module.exports;- }-- var check = function (it) {- return it && it.Math == Math && it;- };-- // https://github.com/zloirock/core-js/issues/86#issuecomment-115759028- var global_1 =- // eslint-disable-next-line no-undef- check(typeof globalThis == 'object' && globalThis) ||- check(typeof window == 'object' && window) ||- check(typeof self == 'object' && self) ||- check(typeof commonjsGlobal == 'object' && commonjsGlobal) ||- // eslint-disable-next-line no-new-func- Function('return this')();-- var fails = function (exec) {- try {- return !!exec();- } catch (error) {- return true;- }- };-- // Thank's IE8 for his funny defineProperty- var descriptors = !fails(function () {- return Object.defineProperty({}, 'a', { get: function () { return 7; } }).a != 7;- });-- var nativePropertyIsEnumerable = {}.propertyIsEnumerable;- var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;-- // Nashorn ~ JDK8 bug- var NASHORN_BUG = getOwnPropertyDescriptor && !nativePropertyIsEnumerable.call({ 1: 2 }, 1);-- // `Object.prototype.propertyIsEnumerable` method implementation- // https://tc39.github.io/ecma262/#sec-object.prototype.propertyisenumerable- var f = NASHORN_BUG ? function propertyIsEnumerable(V) {- var descriptor = getOwnPropertyDescriptor(this, V);- return !!descriptor && descriptor.enumerable;- } : nativePropertyIsEnumerable;-- var objectPropertyIsEnumerable = {- f: f- };-- var createPropertyDescriptor = function (bitmap, value) {- return {- enumerable: !(bitmap & 1),- configurable: !(bitmap & 2),- writable: !(bitmap & 4),- value: value- };- };-- var toString = {}.toString;-- var classofRaw = function (it) {- return toString.call(it).slice(8, -1);- };-- var split = ''.split;-- // fallback for non-array-like ES3 and non-enumerable old V8 strings- var indexedObject = fails(function () {- // throws an error in rhino, see https://github.com/mozilla/rhino/issues/346- // eslint-disable-next-line no-prototype-builtins- return !Object('z').propertyIsEnumerable(0);- }) ? function (it) {- return classofRaw(it) == 'String' ? split.call(it, '') : Object(it);- } : Object;-- // `RequireObjectCoercible` abstract operation- // https://tc39.github.io/ecma262/#sec-requireobjectcoercible- var requireObjectCoercible = function (it) {- if (it == undefined) throw TypeError("Can't call method on " + it);- return it;- };-- // toObject with fallback for non-array-like ES3 strings---- var toIndexedObject = function (it) {- return indexedObject(requireObjectCoercible(it));- };-- var isObject = function (it) {- return typeof it === 'object' ? it !== null : typeof it === 'function';- };-- // `ToPrimitive` abstract operation- // https://tc39.github.io/ecma262/#sec-toprimitive- // instead of the ES6 spec version, we didn't implement @@toPrimitive case- // and the second argument - flag - preferred type is a string- var toPrimitive = function (input, PREFERRED_STRING) {- if (!isObject(input)) return input;- var fn, val;- if (PREFERRED_STRING && typeof (fn = input.toString) == 'function' && !isObject(val = fn.call(input))) return val;- if (typeof (fn = input.valueOf) == 'function' && !isObject(val = fn.call(input))) return val;- if (!PREFERRED_STRING && typeof (fn = input.toString) == 'function' && !isObject(val = fn.call(input))) return val;- throw TypeError("Can't convert object to primitive value");- };-- var hasOwnProperty = {}.hasOwnProperty;-- var has = function (it, key) {- return hasOwnProperty.call(it, key);- };-- var document$1 = global_1.document;- // typeof document.createElement is 'object' in old IE- var EXISTS = isObject(document$1) && isObject(document$1.createElement);-- var documentCreateElement = function (it) {- return EXISTS ? document$1.createElement(it) : {};- };-- // Thank's IE8 for his funny defineProperty- var ie8DomDefine = !descriptors && !fails(function () {- return Object.defineProperty(documentCreateElement('div'), 'a', {- get: function () { return 7; }- }).a != 7;- });-- var nativeGetOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;-- // `Object.getOwnPropertyDescriptor` method- // https://tc39.github.io/ecma262/#sec-object.getownpropertydescriptor- var f$1 = descriptors ? nativeGetOwnPropertyDescriptor : function getOwnPropertyDescriptor(O, P) {- O = toIndexedObject(O);- P = toPrimitive(P, true);- if (ie8DomDefine) try {- return nativeGetOwnPropertyDescriptor(O, P);- } catch (error) { /* empty */ }- if (has(O, P)) return createPropertyDescriptor(!objectPropertyIsEnumerable.f.call(O, P), O[P]);- };-- var objectGetOwnPropertyDescriptor = {- f: f$1- };-- var anObject = function (it) {- if (!isObject(it)) {- throw TypeError(String(it) + ' is not an object');- } return it;- };-- var nativeDefineProperty = Object.defineProperty;-- // `Object.defineProperty` method- // https://tc39.github.io/ecma262/#sec-object.defineproperty- var f$2 = descriptors ? nativeDefineProperty : function defineProperty(O, P, Attributes) {- anObject(O);- P = toPrimitive(P, true);- anObject(Attributes);- if (ie8DomDefine) try {- return nativeDefineProperty(O, P, Attributes);- } catch (error) { /* empty */ }- if ('get' in Attributes || 'set' in Attributes) throw TypeError('Accessors not supported');- if ('value' in Attributes) O[P] = Attributes.value;- return O;- };-- var objectDefineProperty = {- f: f$2- };-- var createNonEnumerableProperty = descriptors ? function (object, key, value) {- return objectDefineProperty.f(object, key, createPropertyDescriptor(1, value));- } : function (object, key, value) {- object[key] = value;- return object;- };-- var setGlobal = function (key, value) {- try {- createNonEnumerableProperty(global_1, key, value);- } catch (error) {- global_1[key] = value;- } return value;- };-- var SHARED = '__core-js_shared__';- var store = global_1[SHARED] || setGlobal(SHARED, {});-- var sharedStore = store;-- var functionToString = Function.toString;-- // this helper broken in `3.4.1-3.4.4`, so we can't use `shared` helper- if (typeof sharedStore.inspectSource != 'function') {- sharedStore.inspectSource = function (it) {- return functionToString.call(it);- };- }-- var inspectSource = sharedStore.inspectSource;-- var WeakMap = global_1.WeakMap;-- var nativeWeakMap = typeof WeakMap === 'function' && /native code/.test(inspectSource(WeakMap));-- var shared = createCommonjsModule(function (module) {- (module.exports = function (key, value) {- return sharedStore[key] || (sharedStore[key] = value !== undefined ? value : {});- })('versions', []).push({- version: '3.6.0',- mode: 'global',- copyright: '© 2019 Denis Pushkarev (zloirock.ru)'- });- });-- var id = 0;- var postfix = Math.random();-- var uid = function (key) {- return 'Symbol(' + String(key === undefined ? '' : key) + ')_' + (++id + postfix).toString(36);- };-- var keys = shared('keys');-- var sharedKey = function (key) {- return keys[key] || (keys[key] = uid(key));- };-- var hiddenKeys = {};-- var WeakMap$1 = global_1.WeakMap;- var set, get, has$1;-- var enforce = function (it) {- return has$1(it) ? get(it) : set(it, {});- };-- var getterFor = function (TYPE) {- return function (it) {- var state;- if (!isObject(it) || (state = get(it)).type !== TYPE) {- throw TypeError('Incompatible receiver, ' + TYPE + ' required');- } return state;- };- };-- if (nativeWeakMap) {- var store$1 = new WeakMap$1();- var wmget = store$1.get;- var wmhas = store$1.has;- var wmset = store$1.set;- set = function (it, metadata) {- wmset.call(store$1, it, metadata);- return metadata;- };- get = function (it) {- return wmget.call(store$1, it) || {};- };- has$1 = function (it) {- return wmhas.call(store$1, it);- };- } else {- var STATE = sharedKey('state');- hiddenKeys[STATE] = true;- set = function (it, metadata) {- createNonEnumerableProperty(it, STATE, metadata);- return metadata;- };- get = function (it) {- return has(it, STATE) ? it[STATE] : {};- };- has$1 = function (it) {- return has(it, STATE);- };- }-- var internalState = {- set: set,- get: get,- has: has$1,- enforce: enforce,- getterFor: getterFor- };-- var redefine = createCommonjsModule(function (module) {- var getInternalState = internalState.get;- var enforceInternalState = internalState.enforce;- var TEMPLATE = String(String).split('String');-- (module.exports = function (O, key, value, options) {- var unsafe = options ? !!options.unsafe : false;- var simple = options ? !!options.enumerable : false;- var noTargetGet = options ? !!options.noTargetGet : false;- if (typeof value == 'function') {- if (typeof key == 'string' && !has(value, 'name')) createNonEnumerableProperty(value, 'name', key);- enforceInternalState(value).source = TEMPLATE.join(typeof key == 'string' ? key : '');- }- if (O === global_1) {- if (simple) O[key] = value;- else setGlobal(key, value);- return;- } else if (!unsafe) {- delete O[key];- } else if (!noTargetGet && O[key]) {- simple = true;- }- if (simple) O[key] = value;- else createNonEnumerableProperty(O, key, value);- // add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative- })(Function.prototype, 'toString', function toString() {- return typeof this == 'function' && getInternalState(this).source || inspectSource(this);- });- });-- var path = global_1;-- var aFunction = function (variable) {- return typeof variable == 'function' ? variable : undefined;- };-- var getBuiltIn = function (namespace, method) {- return arguments.length < 2 ? aFunction(path[namespace]) || aFunction(global_1[namespace])- : path[namespace] && path[namespace][method] || global_1[namespace] && global_1[namespace][method];- };-- var ceil = Math.ceil;- var floor = Math.floor;-- // `ToInteger` abstract operation- // https://tc39.github.io/ecma262/#sec-tointeger- var toInteger = function (argument) {- return isNaN(argument = +argument) ? 0 : (argument > 0 ? floor : ceil)(argument);- };-- var min = Math.min;-- // `ToLength` abstract operation- // https://tc39.github.io/ecma262/#sec-tolength- var toLength = function (argument) {- return argument > 0 ? min(toInteger(argument), 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991- };-- var max = Math.max;- var min$1 = Math.min;-- // Helper for a popular repeating case of the spec:- // Let integer be ? ToInteger(index).- // If integer < 0, let result be max((length + integer), 0); else let result be min(integer, length).- var toAbsoluteIndex = function (index, length) {- var integer = toInteger(index);- return integer < 0 ? max(integer + length, 0) : min$1(integer, length);- };-- // `Array.prototype.{ indexOf, includes }` methods implementation- var createMethod = function (IS_INCLUDES) {- return function ($this, el, fromIndex) {- var O = toIndexedObject($this);- var length = toLength(O.length);- var index = toAbsoluteIndex(fromIndex, length);- var value;- // Array#includes uses SameValueZero equality algorithm- // eslint-disable-next-line no-self-compare- if (IS_INCLUDES && el != el) while (length > index) {- value = O[index++];- // eslint-disable-next-line no-self-compare- if (value != value) return true;- // Array#indexOf ignores holes, Array#includes - not- } else for (;length > index; index++) {- if ((IS_INCLUDES || index in O) && O[index] === el) return IS_INCLUDES || index || 0;- } return !IS_INCLUDES && -1;- };- };-- var arrayIncludes = {- // `Array.prototype.includes` method- // https://tc39.github.io/ecma262/#sec-array.prototype.includes- includes: createMethod(true),- // `Array.prototype.indexOf` method- // https://tc39.github.io/ecma262/#sec-array.prototype.indexof- indexOf: createMethod(false)- };-- var indexOf = arrayIncludes.indexOf;--- var objectKeysInternal = function (object, names) {- var O = toIndexedObject(object);- var i = 0;- var result = [];- var key;- for (key in O) !has(hiddenKeys, key) && has(O, key) && result.push(key);- // Don't enum bug & hidden keys- while (names.length > i) if (has(O, key = names[i++])) {- ~indexOf(result, key) || result.push(key);- }- return result;- };-- // IE8- don't enum bug keys- var enumBugKeys = [- 'constructor',- 'hasOwnProperty',- 'isPrototypeOf',- 'propertyIsEnumerable',- 'toLocaleString',- 'toString',- 'valueOf'- ];-- var hiddenKeys$1 = enumBugKeys.concat('length', 'prototype');-- // `Object.getOwnPropertyNames` method- // https://tc39.github.io/ecma262/#sec-object.getownpropertynames- var f$3 = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {- return objectKeysInternal(O, hiddenKeys$1);- };-- var objectGetOwnPropertyNames = {- f: f$3- };-- var f$4 = Object.getOwnPropertySymbols;-- var objectGetOwnPropertySymbols = {- f: f$4- };-- // all object keys, includes non-enumerable and symbols- var ownKeys = getBuiltIn('Reflect', 'ownKeys') || function ownKeys(it) {- var keys = objectGetOwnPropertyNames.f(anObject(it));- var getOwnPropertySymbols = objectGetOwnPropertySymbols.f;- return getOwnPropertySymbols ? keys.concat(getOwnPropertySymbols(it)) : keys;- };-- var copyConstructorProperties = function (target, source) {- var keys = ownKeys(source);- var defineProperty = objectDefineProperty.f;- var getOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f;- for (var i = 0; i < keys.length; i++) {- var key = keys[i];- if (!has(target, key)) defineProperty(target, key, getOwnPropertyDescriptor(source, key));- }- };-- var replacement = /#|\.prototype\./;-- var isForced = function (feature, detection) {- var value = data[normalize(feature)];- return value == POLYFILL ? true- : value == NATIVE ? false- : typeof detection == 'function' ? fails(detection)- : !!detection;- };-- var normalize = isForced.normalize = function (string) {- return String(string).replace(replacement, '.').toLowerCase();- };-- var data = isForced.data = {};- var NATIVE = isForced.NATIVE = 'N';- var POLYFILL = isForced.POLYFILL = 'P';-- var isForced_1 = isForced;-- var getOwnPropertyDescriptor$1 = objectGetOwnPropertyDescriptor.f;------- /*- options.target - name of the target object- options.global - target is the global object- options.stat - export as static methods of target- options.proto - export as prototype methods of target- options.real - real prototype method for the `pure` version- options.forced - export even if the native feature is available- options.bind - bind methods to the target, required for the `pure` version- options.wrap - wrap constructors to preventing global pollution, required for the `pure` version- options.unsafe - use the simple assignment of property instead of delete + defineProperty- options.sham - add a flag to not completely full polyfills- options.enumerable - export as enumerable property- options.noTargetGet - prevent calling a getter on target- */- var _export = function (options, source) {- var TARGET = options.target;- var GLOBAL = options.global;- var STATIC = options.stat;- var FORCED, target, key, targetProperty, sourceProperty, descriptor;- if (GLOBAL) {- target = global_1;- } else if (STATIC) {- target = global_1[TARGET] || setGlobal(TARGET, {});- } else {- target = (global_1[TARGET] || {}).prototype;- }- if (target) for (key in source) {- sourceProperty = source[key];- if (options.noTargetGet) {- descriptor = getOwnPropertyDescriptor$1(target, key);- targetProperty = descriptor && descriptor.value;- } else targetProperty = target[key];- FORCED = isForced_1(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced);- // contained in target- if (!FORCED && targetProperty !== undefined) {- if (typeof sourceProperty === typeof targetProperty) continue;- copyConstructorProperties(sourceProperty, targetProperty);- }- // add a flag to not completely full polyfills- if (options.sham || (targetProperty && targetProperty.sham)) {- createNonEnumerableProperty(sourceProperty, 'sham', true);- }- // extend global- redefine(target, key, sourceProperty, options);- }- };-- var nativeSymbol = !!Object.getOwnPropertySymbols && !fails(function () {- // Chrome 38 Symbol has incorrect toString conversion- // eslint-disable-next-line no-undef- return !String(Symbol());- });-- var useSymbolAsUid = nativeSymbol- // eslint-disable-next-line no-undef- && !Symbol.sham- // eslint-disable-next-line no-undef- && typeof Symbol() == 'symbol';-- // `IsArray` abstract operation- // https://tc39.github.io/ecma262/#sec-isarray- var isArray = Array.isArray || function isArray(arg) {- return classofRaw(arg) == 'Array';- };-- // `ToObject` abstract operation- // https://tc39.github.io/ecma262/#sec-toobject- var toObject = function (argument) {- return Object(requireObjectCoercible(argument));- };-- // `Object.keys` method- // https://tc39.github.io/ecma262/#sec-object.keys- var objectKeys = Object.keys || function keys(O) {- return objectKeysInternal(O, enumBugKeys);- };-- // `Object.defineProperties` method- // https://tc39.github.io/ecma262/#sec-object.defineproperties- var objectDefineProperties = descriptors ? Object.defineProperties : function defineProperties(O, Properties) {- anObject(O);- var keys = objectKeys(Properties);- var length = keys.length;- var index = 0;- var key;- while (length > index) objectDefineProperty.f(O, key = keys[index++], Properties[key]);- return O;- };-- var html = getBuiltIn('document', 'documentElement');-- var GT = '>';- var LT = '<';- var PROTOTYPE = 'prototype';- var SCRIPT = 'script';- var IE_PROTO = sharedKey('IE_PROTO');-- var EmptyConstructor = function () { /* empty */ };-- var scriptTag = function (content) {- return LT + SCRIPT + GT + content + LT + '/' + SCRIPT + GT;- };-- // Create object with fake `null` prototype: use ActiveX Object with cleared prototype- var NullProtoObjectViaActiveX = function (activeXDocument) {- activeXDocument.write(scriptTag(''));- activeXDocument.close();- var temp = activeXDocument.parentWindow.Object;- activeXDocument = null; // avoid memory leak- return temp;- };-- // Create object with fake `null` prototype: use iframe Object with cleared prototype- var NullProtoObjectViaIFrame = function () {- // Thrash, waste and sodomy: IE GC bug- var iframe = documentCreateElement('iframe');- var JS = 'java' + SCRIPT + ':';- var iframeDocument;- iframe.style.display = 'none';- html.appendChild(iframe);- // https://github.com/zloirock/core-js/issues/475- iframe.src = String(JS);- iframeDocument = iframe.contentWindow.document;- iframeDocument.open();- iframeDocument.write(scriptTag('document.F=Object'));- iframeDocument.close();- return iframeDocument.F;- };-- // Check for document.domain and active x support- // No need to use active x approach when document.domain is not set- // see https://github.com/es-shims/es5-shim/issues/150- // variation of https://github.com/kitcambridge/es5-shim/commit/4f738ac066346- // avoid IE GC bug- var activeXDocument;- var NullProtoObject = function () {- try {- /* global ActiveXObject */- activeXDocument = document.domain && new ActiveXObject('htmlfile');- } catch (error) { /* ignore */ }- NullProtoObject = activeXDocument ? NullProtoObjectViaActiveX(activeXDocument) : NullProtoObjectViaIFrame();- var length = enumBugKeys.length;- while (length--) delete NullProtoObject[PROTOTYPE][enumBugKeys[length]];- return NullProtoObject();- };-- hiddenKeys[IE_PROTO] = true;-- // `Object.create` method- // https://tc39.github.io/ecma262/#sec-object.create- var objectCreate = Object.create || function create(O, Properties) {- var result;- if (O !== null) {- EmptyConstructor[PROTOTYPE] = anObject(O);- result = new EmptyConstructor();- EmptyConstructor[PROTOTYPE] = null;- // add "__proto__" for Object.getPrototypeOf polyfill- result[IE_PROTO] = O;- } else result = NullProtoObject();- return Properties === undefined ? result : objectDefineProperties(result, Properties);- };-- var nativeGetOwnPropertyNames = objectGetOwnPropertyNames.f;-- var toString$1 = {}.toString;-- var windowNames = typeof window == 'object' && window && Object.getOwnPropertyNames- ? Object.getOwnPropertyNames(window) : [];-- var getWindowNames = function (it) {- try {- return nativeGetOwnPropertyNames(it);- } catch (error) {- return windowNames.slice();- }- };-- // fallback for IE11 buggy Object.getOwnPropertyNames with iframe and window- var f$5 = function getOwnPropertyNames(it) {- return windowNames && toString$1.call(it) == '[object Window]'- ? getWindowNames(it)- : nativeGetOwnPropertyNames(toIndexedObject(it));- };-- var objectGetOwnPropertyNamesExternal = {- f: f$5- };-- var WellKnownSymbolsStore = shared('wks');- var Symbol$1 = global_1.Symbol;- var createWellKnownSymbol = useSymbolAsUid ? Symbol$1 : uid;-- var wellKnownSymbol = function (name) {- if (!has(WellKnownSymbolsStore, name)) {- if (nativeSymbol && has(Symbol$1, name)) WellKnownSymbolsStore[name] = Symbol$1[name];- else WellKnownSymbolsStore[name] = createWellKnownSymbol('Symbol.' + name);- } return WellKnownSymbolsStore[name];- };-- var f$6 = wellKnownSymbol;-- var wrappedWellKnownSymbol = {- f: f$6- };-- var defineProperty = objectDefineProperty.f;-- var defineWellKnownSymbol = function (NAME) {- var Symbol = path.Symbol || (path.Symbol = {});- if (!has(Symbol, NAME)) defineProperty(Symbol, NAME, {- value: wrappedWellKnownSymbol.f(NAME)- });- };-- var defineProperty$1 = objectDefineProperty.f;---- var TO_STRING_TAG = wellKnownSymbol('toStringTag');-- var setToStringTag = function (it, TAG, STATIC) {- if (it && !has(it = STATIC ? it : it.prototype, TO_STRING_TAG)) {- defineProperty$1(it, TO_STRING_TAG, { configurable: true, value: TAG });- }- };-- var aFunction$1 = function (it) {- if (typeof it != 'function') {- throw TypeError(String(it) + ' is not a function');- } return it;- };-- // optional / simple context binding- var bindContext = function (fn, that, length) {- aFunction$1(fn);- if (that === undefined) return fn;- switch (length) {- case 0: return function () {- return fn.call(that);- };- case 1: return function (a) {- return fn.call(that, a);- };- case 2: return function (a, b) {- return fn.call(that, a, b);- };- case 3: return function (a, b, c) {- return fn.call(that, a, b, c);- };- }- return function (/* ...args */) {- return fn.apply(that, arguments);- };- };-- var SPECIES = wellKnownSymbol('species');-- // `ArraySpeciesCreate` abstract operation- // https://tc39.github.io/ecma262/#sec-arrayspeciescreate- var arraySpeciesCreate = function (originalArray, length) {- var C;- if (isArray(originalArray)) {- C = originalArray.constructor;- // cross-realm fallback- if (typeof C == 'function' && (C === Array || isArray(C.prototype))) C = undefined;- else if (isObject(C)) {- C = C[SPECIES];- if (C === null) C = undefined;- }- } return new (C === undefined ? Array : C)(length === 0 ? 0 : length);- };-- var push = [].push;-- // `Array.prototype.{ forEach, map, filter, some, every, find, findIndex }` methods implementation- var createMethod$1 = function (TYPE) {- var IS_MAP = TYPE == 1;- var IS_FILTER = TYPE == 2;- var IS_SOME = TYPE == 3;- var IS_EVERY = TYPE == 4;- var IS_FIND_INDEX = TYPE == 6;- var NO_HOLES = TYPE == 5 || IS_FIND_INDEX;- return function ($this, callbackfn, that, specificCreate) {- var O = toObject($this);- var self = indexedObject(O);- var boundFunction = bindContext(callbackfn, that, 3);- var length = toLength(self.length);- var index = 0;- var create = specificCreate || arraySpeciesCreate;- var target = IS_MAP ? create($this, length) : IS_FILTER ? create($this, 0) : undefined;- var value, result;- for (;length > index; index++) if (NO_HOLES || index in self) {- value = self[index];- result = boundFunction(value, index, O);- if (TYPE) {- if (IS_MAP) target[index] = result; // map- else if (result) switch (TYPE) {- case 3: return true; // some- case 5: return value; // find- case 6: return index; // findIndex- case 2: push.call(target, value); // filter- } else if (IS_EVERY) return false; // every- }- }- return IS_FIND_INDEX ? -1 : IS_SOME || IS_EVERY ? IS_EVERY : target;- };- };-- var arrayIteration = {- // `Array.prototype.forEach` method- // https://tc39.github.io/ecma262/#sec-array.prototype.foreach- forEach: createMethod$1(0),- // `Array.prototype.map` method- // https://tc39.github.io/ecma262/#sec-array.prototype.map- map: createMethod$1(1),- // `Array.prototype.filter` method- // https://tc39.github.io/ecma262/#sec-array.prototype.filter- filter: createMethod$1(2),- // `Array.prototype.some` method- // https://tc39.github.io/ecma262/#sec-array.prototype.some- some: createMethod$1(3),- // `Array.prototype.every` method- // https://tc39.github.io/ecma262/#sec-array.prototype.every- every: createMethod$1(4),- // `Array.prototype.find` method- // https://tc39.github.io/ecma262/#sec-array.prototype.find- find: createMethod$1(5),- // `Array.prototype.findIndex` method- // https://tc39.github.io/ecma262/#sec-array.prototype.findIndex- findIndex: createMethod$1(6)- };-- var $forEach = arrayIteration.forEach;-- var HIDDEN = sharedKey('hidden');- var SYMBOL = 'Symbol';- var PROTOTYPE$1 = 'prototype';- var TO_PRIMITIVE = wellKnownSymbol('toPrimitive');- var setInternalState = internalState.set;- var getInternalState = internalState.getterFor(SYMBOL);- var ObjectPrototype = Object[PROTOTYPE$1];- var $Symbol = global_1.Symbol;- var $stringify = getBuiltIn('JSON', 'stringify');- var nativeGetOwnPropertyDescriptor$1 = objectGetOwnPropertyDescriptor.f;- var nativeDefineProperty$1 = objectDefineProperty.f;- var nativeGetOwnPropertyNames$1 = objectGetOwnPropertyNamesExternal.f;- var nativePropertyIsEnumerable$1 = objectPropertyIsEnumerable.f;- var AllSymbols = shared('symbols');- var ObjectPrototypeSymbols = shared('op-symbols');- var StringToSymbolRegistry = shared('string-to-symbol-registry');- var SymbolToStringRegistry = shared('symbol-to-string-registry');- var WellKnownSymbolsStore$1 = shared('wks');- var QObject = global_1.QObject;- // Don't use setters in Qt Script, https://github.com/zloirock/core-js/issues/173- var USE_SETTER = !QObject || !QObject[PROTOTYPE$1] || !QObject[PROTOTYPE$1].findChild;-- // fallback for old Android, https://code.google.com/p/v8/issues/detail?id=687- var setSymbolDescriptor = descriptors && fails(function () {- return objectCreate(nativeDefineProperty$1({}, 'a', {- get: function () { return nativeDefineProperty$1(this, 'a', { value: 7 }).a; }- })).a != 7;- }) ? function (O, P, Attributes) {- var ObjectPrototypeDescriptor = nativeGetOwnPropertyDescriptor$1(ObjectPrototype, P);- if (ObjectPrototypeDescriptor) delete ObjectPrototype[P];- nativeDefineProperty$1(O, P, Attributes);- if (ObjectPrototypeDescriptor && O !== ObjectPrototype) {- nativeDefineProperty$1(ObjectPrototype, P, ObjectPrototypeDescriptor);- }- } : nativeDefineProperty$1;-- var wrap = function (tag, description) {- var symbol = AllSymbols[tag] = objectCreate($Symbol[PROTOTYPE$1]);- setInternalState(symbol, {- type: SYMBOL,- tag: tag,- description: description- });- if (!descriptors) symbol.description = description;- return symbol;- };-- var isSymbol = nativeSymbol && typeof $Symbol.iterator == 'symbol' ? function (it) {- return typeof it == 'symbol';- } : function (it) {- return Object(it) instanceof $Symbol;- };-- var $defineProperty = function defineProperty(O, P, Attributes) {- if (O === ObjectPrototype) $defineProperty(ObjectPrototypeSymbols, P, Attributes);- anObject(O);- var key = toPrimitive(P, true);- anObject(Attributes);- if (has(AllSymbols, key)) {- if (!Attributes.enumerable) {- if (!has(O, HIDDEN)) nativeDefineProperty$1(O, HIDDEN, createPropertyDescriptor(1, {}));- O[HIDDEN][key] = true;- } else {- if (has(O, HIDDEN) && O[HIDDEN][key]) O[HIDDEN][key] = false;- Attributes = objectCreate(Attributes, { enumerable: createPropertyDescriptor(0, false) });- } return setSymbolDescriptor(O, key, Attributes);- } return nativeDefineProperty$1(O, key, Attributes);- };-- var $defineProperties = function defineProperties(O, Properties) {- anObject(O);- var properties = toIndexedObject(Properties);- var keys = objectKeys(properties).concat($getOwnPropertySymbols(properties));- $forEach(keys, function (key) {- if (!descriptors || $propertyIsEnumerable.call(properties, key)) $defineProperty(O, key, properties[key]);- });- return O;- };-- var $create = function create(O, Properties) {- return Properties === undefined ? objectCreate(O) : $defineProperties(objectCreate(O), Properties);- };-- var $propertyIsEnumerable = function propertyIsEnumerable(V) {- var P = toPrimitive(V, true);- var enumerable = nativePropertyIsEnumerable$1.call(this, P);- if (this === ObjectPrototype && has(AllSymbols, P) && !has(ObjectPrototypeSymbols, P)) return false;- return enumerable || !has(this, P) || !has(AllSymbols, P) || has(this, HIDDEN) && this[HIDDEN][P] ? enumerable : true;- };-- var $getOwnPropertyDescriptor = function getOwnPropertyDescriptor(O, P) {- var it = toIndexedObject(O);- var key = toPrimitive(P, true);- if (it === ObjectPrototype && has(AllSymbols, key) && !has(ObjectPrototypeSymbols, key)) return;- var descriptor = nativeGetOwnPropertyDescriptor$1(it, key);- if (descriptor && has(AllSymbols, key) && !(has(it, HIDDEN) && it[HIDDEN][key])) {- descriptor.enumerable = true;- }- return descriptor;- };-- var $getOwnPropertyNames = function getOwnPropertyNames(O) {- var names = nativeGetOwnPropertyNames$1(toIndexedObject(O));- var result = [];- $forEach(names, function (key) {- if (!has(AllSymbols, key) && !has(hiddenKeys, key)) result.push(key);- });- return result;- };-- var $getOwnPropertySymbols = function getOwnPropertySymbols(O) {- var IS_OBJECT_PROTOTYPE = O === ObjectPrototype;- var names = nativeGetOwnPropertyNames$1(IS_OBJECT_PROTOTYPE ? ObjectPrototypeSymbols : toIndexedObject(O));- var result = [];- $forEach(names, function (key) {- if (has(AllSymbols, key) && (!IS_OBJECT_PROTOTYPE || has(ObjectPrototype, key))) {- result.push(AllSymbols[key]);- }- });- return result;- };-- // `Symbol` constructor- // https://tc39.github.io/ecma262/#sec-symbol-constructor- if (!nativeSymbol) {- $Symbol = function Symbol() {- if (this instanceof $Symbol) throw TypeError('Symbol is not a constructor');- var description = !arguments.length || arguments[0] === undefined ? undefined : String(arguments[0]);- var tag = uid(description);- var setter = function (value) {- if (this === ObjectPrototype) setter.call(ObjectPrototypeSymbols, value);- if (has(this, HIDDEN) && has(this[HIDDEN], tag)) this[HIDDEN][tag] = false;- setSymbolDescriptor(this, tag, createPropertyDescriptor(1, value));- };- if (descriptors && USE_SETTER) setSymbolDescriptor(ObjectPrototype, tag, { configurable: true, set: setter });- return wrap(tag, description);- };-- redefine($Symbol[PROTOTYPE$1], 'toString', function toString() {- return getInternalState(this).tag;- });-- objectPropertyIsEnumerable.f = $propertyIsEnumerable;- objectDefineProperty.f = $defineProperty;- objectGetOwnPropertyDescriptor.f = $getOwnPropertyDescriptor;- objectGetOwnPropertyNames.f = objectGetOwnPropertyNamesExternal.f = $getOwnPropertyNames;- objectGetOwnPropertySymbols.f = $getOwnPropertySymbols;-- if (descriptors) {- // https://github.com/tc39/proposal-Symbol-description- nativeDefineProperty$1($Symbol[PROTOTYPE$1], 'description', {- configurable: true,- get: function description() {- return getInternalState(this).description;- }- });- {- redefine(ObjectPrototype, 'propertyIsEnumerable', $propertyIsEnumerable, { unsafe: true });- }- }- }-- if (!useSymbolAsUid) {- wrappedWellKnownSymbol.f = function (name) {- return wrap(wellKnownSymbol(name), name);- };- }-- _export({ global: true, wrap: true, forced: !nativeSymbol, sham: !nativeSymbol }, {- Symbol: $Symbol- });-- $forEach(objectKeys(WellKnownSymbolsStore$1), function (name) {- defineWellKnownSymbol(name);- });-- _export({ target: SYMBOL, stat: true, forced: !nativeSymbol }, {- // `Symbol.for` method- // https://tc39.github.io/ecma262/#sec-symbol.for- 'for': function (key) {- var string = String(key);- if (has(StringToSymbolRegistry, string)) return StringToSymbolRegistry[string];- var symbol = $Symbol(string);- StringToSymbolRegistry[string] = symbol;- SymbolToStringRegistry[symbol] = string;- return symbol;- },- // `Symbol.keyFor` method- // https://tc39.github.io/ecma262/#sec-symbol.keyfor- keyFor: function keyFor(sym) {- if (!isSymbol(sym)) throw TypeError(sym + ' is not a symbol');- if (has(SymbolToStringRegistry, sym)) return SymbolToStringRegistry[sym];- },- useSetter: function () { USE_SETTER = true; },- useSimple: function () { USE_SETTER = false; }- });-- _export({ target: 'Object', stat: true, forced: !nativeSymbol, sham: !descriptors }, {- // `Object.create` method- // https://tc39.github.io/ecma262/#sec-object.create- create: $create,- // `Object.defineProperty` method- // https://tc39.github.io/ecma262/#sec-object.defineproperty- defineProperty: $defineProperty,- // `Object.defineProperties` method- // https://tc39.github.io/ecma262/#sec-object.defineproperties- defineProperties: $defineProperties,- // `Object.getOwnPropertyDescriptor` method- // https://tc39.github.io/ecma262/#sec-object.getownpropertydescriptors- getOwnPropertyDescriptor: $getOwnPropertyDescriptor- });-- _export({ target: 'Object', stat: true, forced: !nativeSymbol }, {- // `Object.getOwnPropertyNames` method- // https://tc39.github.io/ecma262/#sec-object.getownpropertynames- getOwnPropertyNames: $getOwnPropertyNames,- // `Object.getOwnPropertySymbols` method- // https://tc39.github.io/ecma262/#sec-object.getownpropertysymbols- getOwnPropertySymbols: $getOwnPropertySymbols- });-- // Chrome 38 and 39 `Object.getOwnPropertySymbols` fails on primitives- // https://bugs.chromium.org/p/v8/issues/detail?id=3443- _export({ target: 'Object', stat: true, forced: fails(function () { objectGetOwnPropertySymbols.f(1); }) }, {- getOwnPropertySymbols: function getOwnPropertySymbols(it) {- return objectGetOwnPropertySymbols.f(toObject(it));- }- });-- // `JSON.stringify` method behavior with symbols- // https://tc39.github.io/ecma262/#sec-json.stringify- if ($stringify) {- var FORCED_JSON_STRINGIFY = !nativeSymbol || fails(function () {- var symbol = $Symbol();- // MS Edge converts symbol values to JSON as {}- return $stringify([symbol]) != '[null]'- // WebKit converts symbol values to JSON as null- || $stringify({ a: symbol }) != '{}'- // V8 throws on boxed symbols- || $stringify(Object(symbol)) != '{}';- });-- _export({ target: 'JSON', stat: true, forced: FORCED_JSON_STRINGIFY }, {- // eslint-disable-next-line no-unused-vars- stringify: function stringify(it, replacer, space) {- var args = [it];- var index = 1;- var $replacer;- while (arguments.length > index) args.push(arguments[index++]);- $replacer = replacer;- if (!isObject(replacer) && it === undefined || isSymbol(it)) return; // IE8 returns string on undefined- if (!isArray(replacer)) replacer = function (key, value) {- if (typeof $replacer == 'function') value = $replacer.call(this, key, value);- if (!isSymbol(value)) return value;- };- args[1] = replacer;- return $stringify.apply(null, args);- }- });- }-- // `Symbol.prototype[@@toPrimitive]` method- // https://tc39.github.io/ecma262/#sec-symbol.prototype-@@toprimitive- if (!$Symbol[PROTOTYPE$1][TO_PRIMITIVE]) {- createNonEnumerableProperty($Symbol[PROTOTYPE$1], TO_PRIMITIVE, $Symbol[PROTOTYPE$1].valueOf);- }- // `Symbol.prototype[@@toStringTag]` property- // https://tc39.github.io/ecma262/#sec-symbol.prototype-@@tostringtag- setToStringTag($Symbol, SYMBOL);-- hiddenKeys[HIDDEN] = true;-- var defineProperty$2 = objectDefineProperty.f;--- var NativeSymbol = global_1.Symbol;-- if (descriptors && typeof NativeSymbol == 'function' && (!('description' in NativeSymbol.prototype) ||- // Safari 12 bug- NativeSymbol().description !== undefined- )) {- var EmptyStringDescriptionStore = {};- // wrap Symbol constructor for correct work with undefined description- var SymbolWrapper = function Symbol() {- var description = arguments.length < 1 || arguments[0] === undefined ? undefined : String(arguments[0]);- var result = this instanceof SymbolWrapper- ? new NativeSymbol(description)- // in Edge 13, String(Symbol(undefined)) === 'Symbol(undefined)'- : description === undefined ? NativeSymbol() : NativeSymbol(description);- if (description === '') EmptyStringDescriptionStore[result] = true;- return result;- };- copyConstructorProperties(SymbolWrapper, NativeSymbol);- var symbolPrototype = SymbolWrapper.prototype = NativeSymbol.prototype;- symbolPrototype.constructor = SymbolWrapper;-- var symbolToString = symbolPrototype.toString;- var native = String(NativeSymbol('test')) == 'Symbol(test)';- var regexp = /^Symbol\((.*)\)[^)]+$/;- defineProperty$2(symbolPrototype, 'description', {- configurable: true,- get: function description() {- var symbol = isObject(this) ? this.valueOf() : this;- var string = symbolToString.call(symbol);- if (has(EmptyStringDescriptionStore, symbol)) return '';- var desc = native ? string.slice(7, -1) : string.replace(regexp, '$1');- return desc === '' ? undefined : desc;- }- });-- _export({ global: true, forced: true }, {- Symbol: SymbolWrapper- });- }-- // `Symbol.iterator` well-known symbol- // https://tc39.github.io/ecma262/#sec-symbol.iterator- defineWellKnownSymbol('iterator');-- var createProperty = function (object, key, value) {- var propertyKey = toPrimitive(key);- if (propertyKey in object) objectDefineProperty.f(object, propertyKey, createPropertyDescriptor(0, value));- else object[propertyKey] = value;- };-- var userAgent = getBuiltIn('navigator', 'userAgent') || '';-- var process = global_1.process;- var versions = process && process.versions;- var v8 = versions && versions.v8;- var match, version;-- if (v8) {- match = v8.split('.');- version = match[0] + match[1];- } else if (userAgent) {- match = userAgent.match(/Edge\/(\d+)/);- if (!match || match[1] >= 74) {- match = userAgent.match(/Chrome\/(\d+)/);- if (match) version = match[1];- }- }-- var v8Version = version && +version;-- var SPECIES$1 = wellKnownSymbol('species');-- var arrayMethodHasSpeciesSupport = function (METHOD_NAME) {- // We can't use this feature detection in V8 since it causes- // deoptimization and serious performance degradation- // https://github.com/zloirock/core-js/issues/677- return v8Version >= 51 || !fails(function () {- var array = [];- var constructor = array.constructor = {};- constructor[SPECIES$1] = function () {- return { foo: 1 };- };- return array[METHOD_NAME](Boolean).foo !== 1;- });- };-- var IS_CONCAT_SPREADABLE = wellKnownSymbol('isConcatSpreadable');- var MAX_SAFE_INTEGER = 0x1FFFFFFFFFFFFF;- var MAXIMUM_ALLOWED_INDEX_EXCEEDED = 'Maximum allowed index exceeded';-- // We can't use this feature detection in V8 since it causes- // deoptimization and serious performance degradation- // https://github.com/zloirock/core-js/issues/679- var IS_CONCAT_SPREADABLE_SUPPORT = v8Version >= 51 || !fails(function () {- var array = [];- array[IS_CONCAT_SPREADABLE] = false;- return array.concat()[0] !== array;- });-- var SPECIES_SUPPORT = arrayMethodHasSpeciesSupport('concat');-- var isConcatSpreadable = function (O) {- if (!isObject(O)) return false;- var spreadable = O[IS_CONCAT_SPREADABLE];- return spreadable !== undefined ? !!spreadable : isArray(O);- };-- var FORCED = !IS_CONCAT_SPREADABLE_SUPPORT || !SPECIES_SUPPORT;-- // `Array.prototype.concat` method- // https://tc39.github.io/ecma262/#sec-array.prototype.concat- // with adding support of @@isConcatSpreadable and @@species- _export({ target: 'Array', proto: true, forced: FORCED }, {- concat: function concat(arg) { // eslint-disable-line no-unused-vars- var O = toObject(this);- var A = arraySpeciesCreate(O, 0);- var n = 0;- var i, k, length, len, E;- for (i = -1, length = arguments.length; i < length; i++) {- E = i === -1 ? O : arguments[i];- if (isConcatSpreadable(E)) {- len = toLength(E.length);- if (n + len > MAX_SAFE_INTEGER) throw TypeError(MAXIMUM_ALLOWED_INDEX_EXCEEDED);- for (k = 0; k < len; k++, n++) if (k in E) createProperty(A, n, E[k]);- } else {- if (n >= MAX_SAFE_INTEGER) throw TypeError(MAXIMUM_ALLOWED_INDEX_EXCEEDED);- createProperty(A, n++, E);- }- }- A.length = n;- return A;- }- });-- var $filter = arrayIteration.filter;---- var HAS_SPECIES_SUPPORT = arrayMethodHasSpeciesSupport('filter');- // Edge 14- issue- var USES_TO_LENGTH = HAS_SPECIES_SUPPORT && !fails(function () {- [].filter.call({ length: -1, 0: 1 }, function (it) { throw it; });- });-- // `Array.prototype.filter` method- // https://tc39.github.io/ecma262/#sec-array.prototype.filter- // with adding support of @@species- _export({ target: 'Array', proto: true, forced: !HAS_SPECIES_SUPPORT || !USES_TO_LENGTH }, {- filter: function filter(callbackfn /* , thisArg */) {- return $filter(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);- }- });-- var UNSCOPABLES = wellKnownSymbol('unscopables');- var ArrayPrototype = Array.prototype;-- // Array.prototype[@@unscopables]- // https://tc39.github.io/ecma262/#sec-array.prototype-@@unscopables- if (ArrayPrototype[UNSCOPABLES] == undefined) {- objectDefineProperty.f(ArrayPrototype, UNSCOPABLES, {- configurable: true,- value: objectCreate(null)- });- }-- // add a key to Array.prototype[@@unscopables]- var addToUnscopables = function (key) {- ArrayPrototype[UNSCOPABLES][key] = true;- };-- var $find = arrayIteration.find;--- var FIND = 'find';- var SKIPS_HOLES = true;-- // Shouldn't skip holes- if (FIND in []) Array(1)[FIND](function () { SKIPS_HOLES = false; });-- // `Array.prototype.find` method- // https://tc39.github.io/ecma262/#sec-array.prototype.find- _export({ target: 'Array', proto: true, forced: SKIPS_HOLES }, {- find: function find(callbackfn /* , that = undefined */) {- return $find(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);- }- });-- // https://tc39.github.io/ecma262/#sec-array.prototype-@@unscopables- addToUnscopables(FIND);-- var correctPrototypeGetter = !fails(function () {- function F() { /* empty */ }- F.prototype.constructor = null;- return Object.getPrototypeOf(new F()) !== F.prototype;- });-- var IE_PROTO$1 = sharedKey('IE_PROTO');- var ObjectPrototype$1 = Object.prototype;-- // `Object.getPrototypeOf` method- // https://tc39.github.io/ecma262/#sec-object.getprototypeof- var objectGetPrototypeOf = correctPrototypeGetter ? Object.getPrototypeOf : function (O) {- O = toObject(O);- if (has(O, IE_PROTO$1)) return O[IE_PROTO$1];- if (typeof O.constructor == 'function' && O instanceof O.constructor) {- return O.constructor.prototype;- } return O instanceof Object ? ObjectPrototype$1 : null;- };-- var ITERATOR = wellKnownSymbol('iterator');- var BUGGY_SAFARI_ITERATORS = false;-- var returnThis = function () { return this; };-- // `%IteratorPrototype%` object- // https://tc39.github.io/ecma262/#sec-%iteratorprototype%-object- var IteratorPrototype, PrototypeOfArrayIteratorPrototype, arrayIterator;-- if ([].keys) {- arrayIterator = [].keys();- // Safari 8 has buggy iterators w/o `next`- if (!('next' in arrayIterator)) BUGGY_SAFARI_ITERATORS = true;- else {- PrototypeOfArrayIteratorPrototype = objectGetPrototypeOf(objectGetPrototypeOf(arrayIterator));- if (PrototypeOfArrayIteratorPrototype !== Object.prototype) IteratorPrototype = PrototypeOfArrayIteratorPrototype;- }- }-- if (IteratorPrototype == undefined) IteratorPrototype = {};-- // 25.1.2.1.1 %IteratorPrototype%[@@iterator]()- if ( !has(IteratorPrototype, ITERATOR)) {- createNonEnumerableProperty(IteratorPrototype, ITERATOR, returnThis);- }-- var iteratorsCore = {- IteratorPrototype: IteratorPrototype,- BUGGY_SAFARI_ITERATORS: BUGGY_SAFARI_ITERATORS- };-- var IteratorPrototype$1 = iteratorsCore.IteratorPrototype;-- var createIteratorConstructor = function (IteratorConstructor, NAME, next) {- var TO_STRING_TAG = NAME + ' Iterator';- IteratorConstructor.prototype = objectCreate(IteratorPrototype$1, { next: createPropertyDescriptor(1, next) });- setToStringTag(IteratorConstructor, TO_STRING_TAG, false);- return IteratorConstructor;- };-- var aPossiblePrototype = function (it) {- if (!isObject(it) && it !== null) {- throw TypeError("Can't set " + String(it) + ' as a prototype');- } return it;- };-- // `Object.setPrototypeOf` method- // https://tc39.github.io/ecma262/#sec-object.setprototypeof- // Works with __proto__ only. Old v8 can't work with null proto objects.- /* eslint-disable no-proto */- var objectSetPrototypeOf = Object.setPrototypeOf || ('__proto__' in {} ? function () {- var CORRECT_SETTER = false;- var test = {};- var setter;- try {- setter = Object.getOwnPropertyDescriptor(Object.prototype, '__proto__').set;- setter.call(test, []);- CORRECT_SETTER = test instanceof Array;- } catch (error) { /* empty */ }- return function setPrototypeOf(O, proto) {- anObject(O);- aPossiblePrototype(proto);- if (CORRECT_SETTER) setter.call(O, proto);- else O.__proto__ = proto;- return O;- };- }() : undefined);-- var IteratorPrototype$2 = iteratorsCore.IteratorPrototype;- var BUGGY_SAFARI_ITERATORS$1 = iteratorsCore.BUGGY_SAFARI_ITERATORS;- var ITERATOR$1 = wellKnownSymbol('iterator');- var KEYS = 'keys';- var VALUES = 'values';- var ENTRIES = 'entries';-- var returnThis$1 = function () { return this; };-- var defineIterator = function (Iterable, NAME, IteratorConstructor, next, DEFAULT, IS_SET, FORCED) {- createIteratorConstructor(IteratorConstructor, NAME, next);-- var getIterationMethod = function (KIND) {- if (KIND === DEFAULT && defaultIterator) return defaultIterator;- if (!BUGGY_SAFARI_ITERATORS$1 && KIND in IterablePrototype) return IterablePrototype[KIND];- switch (KIND) {- case KEYS: return function keys() { return new IteratorConstructor(this, KIND); };- case VALUES: return function values() { return new IteratorConstructor(this, KIND); };- case ENTRIES: return function entries() { return new IteratorConstructor(this, KIND); };- } return function () { return new IteratorConstructor(this); };- };-- var TO_STRING_TAG = NAME + ' Iterator';- var INCORRECT_VALUES_NAME = false;- var IterablePrototype = Iterable.prototype;- var nativeIterator = IterablePrototype[ITERATOR$1]- || IterablePrototype['@@iterator']- || DEFAULT && IterablePrototype[DEFAULT];- var defaultIterator = !BUGGY_SAFARI_ITERATORS$1 && nativeIterator || getIterationMethod(DEFAULT);- var anyNativeIterator = NAME == 'Array' ? IterablePrototype.entries || nativeIterator : nativeIterator;- var CurrentIteratorPrototype, methods, KEY;-- // fix native- if (anyNativeIterator) {- CurrentIteratorPrototype = objectGetPrototypeOf(anyNativeIterator.call(new Iterable()));- if (IteratorPrototype$2 !== Object.prototype && CurrentIteratorPrototype.next) {- if ( objectGetPrototypeOf(CurrentIteratorPrototype) !== IteratorPrototype$2) {- if (objectSetPrototypeOf) {- objectSetPrototypeOf(CurrentIteratorPrototype, IteratorPrototype$2);- } else if (typeof CurrentIteratorPrototype[ITERATOR$1] != 'function') {- createNonEnumerableProperty(CurrentIteratorPrototype, ITERATOR$1, returnThis$1);- }- }- // Set @@toStringTag to native iterators- setToStringTag(CurrentIteratorPrototype, TO_STRING_TAG, true);- }- }-- // fix Array#{values, @@iterator}.name in V8 / FF- if (DEFAULT == VALUES && nativeIterator && nativeIterator.name !== VALUES) {- INCORRECT_VALUES_NAME = true;- defaultIterator = function values() { return nativeIterator.call(this); };- }-- // define iterator- if ( IterablePrototype[ITERATOR$1] !== defaultIterator) {- createNonEnumerableProperty(IterablePrototype, ITERATOR$1, defaultIterator);- }-- // export additional methods- if (DEFAULT) {- methods = {- values: getIterationMethod(VALUES),- keys: IS_SET ? defaultIterator : getIterationMethod(KEYS),- entries: getIterationMethod(ENTRIES)- };- if (FORCED) for (KEY in methods) {- if (BUGGY_SAFARI_ITERATORS$1 || INCORRECT_VALUES_NAME || !(KEY in IterablePrototype)) {- redefine(IterablePrototype, KEY, methods[KEY]);- }- } else _export({ target: NAME, proto: true, forced: BUGGY_SAFARI_ITERATORS$1 || INCORRECT_VALUES_NAME }, methods);- }-- return methods;- };-- var ARRAY_ITERATOR = 'Array Iterator';- var setInternalState$1 = internalState.set;- var getInternalState$1 = internalState.getterFor(ARRAY_ITERATOR);-- // `Array.prototype.entries` method- // https://tc39.github.io/ecma262/#sec-array.prototype.entries- // `Array.prototype.keys` method- // https://tc39.github.io/ecma262/#sec-array.prototype.keys- // `Array.prototype.values` method- // https://tc39.github.io/ecma262/#sec-array.prototype.values- // `Array.prototype[@@iterator]` method- // https://tc39.github.io/ecma262/#sec-array.prototype-@@iterator- // `CreateArrayIterator` internal method- // https://tc39.github.io/ecma262/#sec-createarrayiterator- var es_array_iterator = defineIterator(Array, 'Array', function (iterated, kind) {- setInternalState$1(this, {- type: ARRAY_ITERATOR,- target: toIndexedObject(iterated), // target- index: 0, // next index- kind: kind // kind- });- // `%ArrayIteratorPrototype%.next` method- // https://tc39.github.io/ecma262/#sec-%arrayiteratorprototype%.next- }, function () {- var state = getInternalState$1(this);- var target = state.target;- var kind = state.kind;- var index = state.index++;- if (!target || index >= target.length) {- state.target = undefined;- return { value: undefined, done: true };- }- if (kind == 'keys') return { value: index, done: false };- if (kind == 'values') return { value: target[index], done: false };- return { value: [index, target[index]], done: false };- }, 'values');-- // https://tc39.github.io/ecma262/#sec-array.prototype-@@unscopables- addToUnscopables('keys');- addToUnscopables('values');- addToUnscopables('entries');-- var sloppyArrayMethod = function (METHOD_NAME, argument) {- var method = [][METHOD_NAME];- return !method || !fails(function () {- // eslint-disable-next-line no-useless-call,no-throw-literal- method.call(null, argument || function () { throw 1; }, 1);- });- };-- var nativeJoin = [].join;-- var ES3_STRINGS = indexedObject != Object;- var SLOPPY_METHOD = sloppyArrayMethod('join', ',');-- // `Array.prototype.join` method- // https://tc39.github.io/ecma262/#sec-array.prototype.join- _export({ target: 'Array', proto: true, forced: ES3_STRINGS || SLOPPY_METHOD }, {- join: function join(separator) {- return nativeJoin.call(toIndexedObject(this), separator === undefined ? ',' : separator);- }- });-- var $map = arrayIteration.map;---- var HAS_SPECIES_SUPPORT$1 = arrayMethodHasSpeciesSupport('map');- // FF49- issue- var USES_TO_LENGTH$1 = HAS_SPECIES_SUPPORT$1 && !fails(function () {- [].map.call({ length: -1, 0: 1 }, function (it) { throw it; });- });-- // `Array.prototype.map` method- // https://tc39.github.io/ecma262/#sec-array.prototype.map- // with adding support of @@species- _export({ target: 'Array', proto: true, forced: !HAS_SPECIES_SUPPORT$1 || !USES_TO_LENGTH$1 }, {- map: function map(callbackfn /* , thisArg */) {- return $map(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);- }- });-- var TO_STRING_TAG$1 = wellKnownSymbol('toStringTag');- var test = {};-- test[TO_STRING_TAG$1] = 'z';-- var toStringTagSupport = String(test) === '[object z]';-- var TO_STRING_TAG$2 = wellKnownSymbol('toStringTag');- // ES3 wrong here- var CORRECT_ARGUMENTS = classofRaw(function () { return arguments; }()) == 'Arguments';-- // fallback for IE11 Script Access Denied error- var tryGet = function (it, key) {- try {- return it[key];- } catch (error) { /* empty */ }- };-- // getting tag from ES6+ `Object.prototype.toString`- var classof = toStringTagSupport ? classofRaw : function (it) {- var O, tag, result;- return it === undefined ? 'Undefined' : it === null ? 'Null'- // @@toStringTag case- : typeof (tag = tryGet(O = Object(it), TO_STRING_TAG$2)) == 'string' ? tag- // builtinTag case- : CORRECT_ARGUMENTS ? classofRaw(O)- // ES3 arguments fallback- : (result = classofRaw(O)) == 'Object' && typeof O.callee == 'function' ? 'Arguments' : result;- };-- // `Object.prototype.toString` method implementation- // https://tc39.github.io/ecma262/#sec-object.prototype.tostring- var objectToString = toStringTagSupport ? {}.toString : function toString() {- return '[object ' + classof(this) + ']';- };-- // `Object.prototype.toString` method- // https://tc39.github.io/ecma262/#sec-object.prototype.tostring- if (!toStringTagSupport) {- redefine(Object.prototype, 'toString', objectToString, { unsafe: true });- }-- // `RegExp.prototype.flags` getter implementation- // https://tc39.github.io/ecma262/#sec-get-regexp.prototype.flags- var regexpFlags = function () {- var that = anObject(this);- var result = '';- if (that.global) result += 'g';- if (that.ignoreCase) result += 'i';- if (that.multiline) result += 'm';- if (that.dotAll) result += 's';- if (that.unicode) result += 'u';- if (that.sticky) result += 'y';- return result;- };-- // babel-minify transpiles RegExp('a', 'y') -> /a/y and it causes SyntaxError,- // so we use an intermediate function.- function RE(s, f) {- return RegExp(s, f);- }-- var UNSUPPORTED_Y = fails(function () {- // babel-minify transpiles RegExp('a', 'y') -> /a/y and it causes SyntaxError- var re = RE('a', 'y');- re.lastIndex = 2;- return re.exec('abcd') != null;- });-- var BROKEN_CARET = fails(function () {- // https://bugzilla.mozilla.org/show_bug.cgi?id=773687- var re = RE('^r', 'gy');- re.lastIndex = 2;- return re.exec('str') != null;- });-- var regexpStickyHelpers = {- UNSUPPORTED_Y: UNSUPPORTED_Y,- BROKEN_CARET: BROKEN_CARET- };-- var nativeExec = RegExp.prototype.exec;- // This always refers to the native implementation, because the- // String#replace polyfill uses ./fix-regexp-well-known-symbol-logic.js,- // which loads this file before patching the method.- var nativeReplace = String.prototype.replace;-- var patchedExec = nativeExec;-- var UPDATES_LAST_INDEX_WRONG = (function () {- var re1 = /a/;- var re2 = /b*/g;- nativeExec.call(re1, 'a');- nativeExec.call(re2, 'a');- return re1.lastIndex !== 0 || re2.lastIndex !== 0;- })();-- var UNSUPPORTED_Y$1 = regexpStickyHelpers.UNSUPPORTED_Y || regexpStickyHelpers.BROKEN_CARET;-- // nonparticipating capturing group, copied from es5-shim's String#split patch.- var NPCG_INCLUDED = /()??/.exec('')[1] !== undefined;-- var PATCH = UPDATES_LAST_INDEX_WRONG || NPCG_INCLUDED || UNSUPPORTED_Y$1;-- if (PATCH) {- patchedExec = function exec(str) {- var re = this;- var lastIndex, reCopy, match, i;- var sticky = UNSUPPORTED_Y$1 && re.sticky;- var flags = regexpFlags.call(re);- var source = re.source;- var charsAdded = 0;- var strCopy = str;-- if (sticky) {- flags = flags.replace('y', '');- if (flags.indexOf('g') === -1) {- flags += 'g';- }-- strCopy = String(str).slice(re.lastIndex);- // Support anchored sticky behavior.- if (re.lastIndex > 0 && (!re.multiline || re.multiline && str[re.lastIndex - 1] !== '\n')) {- source = '(?: ' + source + ')';- strCopy = ' ' + strCopy;- charsAdded++;- }- // ^(? + rx + ) is needed, in combination with some str slicing, to- // simulate the 'y' flag.- reCopy = new RegExp('^(?:' + source + ')', flags);- }-- if (NPCG_INCLUDED) {- reCopy = new RegExp('^' + source + '$(?!\\s)', flags);- }- if (UPDATES_LAST_INDEX_WRONG) lastIndex = re.lastIndex;-- match = nativeExec.call(sticky ? reCopy : re, strCopy);-- if (sticky) {- if (match) {- match.input = match.input.slice(charsAdded);- match[0] = match[0].slice(charsAdded);- match.index = re.lastIndex;- re.lastIndex += match[0].length;- } else re.lastIndex = 0;- } else if (UPDATES_LAST_INDEX_WRONG && match) {- re.lastIndex = re.global ? match.index + match[0].length : lastIndex;- }- if (NPCG_INCLUDED && match && match.length > 1) {- // Fix browsers whose `exec` methods don't consistently return `undefined`- // for NPCG, like IE8. NOTE: This doesn' work for /(.?)?/- nativeReplace.call(match[0], reCopy, function () {- for (i = 1; i < arguments.length - 2; i++) {- if (arguments[i] === undefined) match[i] = undefined;- }- });- }-- return match;- };- }-- var regexpExec = patchedExec;-- _export({ target: 'RegExp', proto: true, forced: /./.exec !== regexpExec }, {- exec: regexpExec- });-- var TO_STRING = 'toString';- var RegExpPrototype = RegExp.prototype;- var nativeToString = RegExpPrototype[TO_STRING];-- var NOT_GENERIC = fails(function () { return nativeToString.call({ source: 'a', flags: 'b' }) != '/a/b'; });- // FF44- RegExp#toString has a wrong name- var INCORRECT_NAME = nativeToString.name != TO_STRING;-- // `RegExp.prototype.toString` method- // https://tc39.github.io/ecma262/#sec-regexp.prototype.tostring- if (NOT_GENERIC || INCORRECT_NAME) {- redefine(RegExp.prototype, TO_STRING, function toString() {- var R = anObject(this);- var p = String(R.source);- var rf = R.flags;- var f = String(rf === undefined && R instanceof RegExp && !('flags' in RegExpPrototype) ? regexpFlags.call(R) : rf);- return '/' + p + '/' + f;- }, { unsafe: true });- }-- // `String.prototype.{ codePointAt, at }` methods implementation- var createMethod$2 = function (CONVERT_TO_STRING) {- return function ($this, pos) {- var S = String(requireObjectCoercible($this));- var position = toInteger(pos);- var size = S.length;- var first, second;- if (position < 0 || position >= size) return CONVERT_TO_STRING ? '' : undefined;- first = S.charCodeAt(position);- return first < 0xD800 || first > 0xDBFF || position + 1 === size- || (second = S.charCodeAt(position + 1)) < 0xDC00 || second > 0xDFFF- ? CONVERT_TO_STRING ? S.charAt(position) : first- : CONVERT_TO_STRING ? S.slice(position, position + 2) : (first - 0xD800 << 10) + (second - 0xDC00) + 0x10000;- };- };-- var stringMultibyte = {- // `String.prototype.codePointAt` method- // https://tc39.github.io/ecma262/#sec-string.prototype.codepointat- codeAt: createMethod$2(false),- // `String.prototype.at` method- // https://github.com/mathiasbynens/String.prototype.at- charAt: createMethod$2(true)- };-- var charAt = stringMultibyte.charAt;---- var STRING_ITERATOR = 'String Iterator';- var setInternalState$2 = internalState.set;- var getInternalState$2 = internalState.getterFor(STRING_ITERATOR);-- // `String.prototype[@@iterator]` method- // https://tc39.github.io/ecma262/#sec-string.prototype-@@iterator- defineIterator(String, 'String', function (iterated) {- setInternalState$2(this, {- type: STRING_ITERATOR,- string: String(iterated),- index: 0- });- // `%StringIteratorPrototype%.next` method- // https://tc39.github.io/ecma262/#sec-%stringiteratorprototype%.next- }, function next() {- var state = getInternalState$2(this);- var string = state.string;- var index = state.index;- var point;- if (index >= string.length) return { value: undefined, done: true };- point = charAt(string, index);- state.index += point.length;- return { value: point, done: false };- });-- var SPECIES$2 = wellKnownSymbol('species');-- var REPLACE_SUPPORTS_NAMED_GROUPS = !fails(function () {- // #replace needs built-in support for named groups.- // #match works fine because it just return the exec results, even if it has- // a "grops" property.- var re = /./;- re.exec = function () {- var result = [];- result.groups = { a: '7' };- return result;- };- return ''.replace(re, '$<a>') !== '7';- });-- // IE <= 11 replaces $0 with the whole match, as if it was $&- // https://stackoverflow.com/questions/6024666/getting-ie-to-replace-a-regex-with-the-literal-string-0- var REPLACE_KEEPS_$0 = (function () {- return 'a'.replace(/./, '$0') === '$0';- })();-- // Chrome 51 has a buggy "split" implementation when RegExp#exec !== nativeExec- // Weex JS has frozen built-in prototypes, so use try / catch wrapper- var SPLIT_WORKS_WITH_OVERWRITTEN_EXEC = !fails(function () {- var re = /(?:)/;- var originalExec = re.exec;- re.exec = function () { return originalExec.apply(this, arguments); };- var result = 'ab'.split(re);- return result.length !== 2 || result[0] !== 'a' || result[1] !== 'b';- });-- var fixRegexpWellKnownSymbolLogic = function (KEY, length, exec, sham) {- var SYMBOL = wellKnownSymbol(KEY);-- var DELEGATES_TO_SYMBOL = !fails(function () {- // String methods call symbol-named RegEp methods- var O = {};- O[SYMBOL] = function () { return 7; };- return ''[KEY](O) != 7;- });-- var DELEGATES_TO_EXEC = DELEGATES_TO_SYMBOL && !fails(function () {- // Symbol-named RegExp methods call .exec- var execCalled = false;- var re = /a/;-- if (KEY === 'split') {- // We can't use real regex here since it causes deoptimization- // and serious performance degradation in V8- // https://github.com/zloirock/core-js/issues/306- re = {};- // RegExp[@@split] doesn't call the regex's exec method, but first creates- // a new one. We need to return the patched regex when creating the new one.- re.constructor = {};- re.constructor[SPECIES$2] = function () { return re; };- re.flags = '';- re[SYMBOL] = /./[SYMBOL];- }-- re.exec = function () { execCalled = true; return null; };-- re[SYMBOL]('');- return !execCalled;- });-- if (- !DELEGATES_TO_SYMBOL ||- !DELEGATES_TO_EXEC ||- (KEY === 'replace' && !(REPLACE_SUPPORTS_NAMED_GROUPS && REPLACE_KEEPS_$0)) ||- (KEY === 'split' && !SPLIT_WORKS_WITH_OVERWRITTEN_EXEC)- ) {- var nativeRegExpMethod = /./[SYMBOL];- var methods = exec(SYMBOL, ''[KEY], function (nativeMethod, regexp, str, arg2, forceStringMethod) {- if (regexp.exec === regexpExec) {- if (DELEGATES_TO_SYMBOL && !forceStringMethod) {- // The native String method already delegates to @@method (this- // polyfilled function), leasing to infinite recursion.- // We avoid it by directly calling the native @@method method.- return { done: true, value: nativeRegExpMethod.call(regexp, str, arg2) };- }- return { done: true, value: nativeMethod.call(str, regexp, arg2) };- }- return { done: false };- }, { REPLACE_KEEPS_$0: REPLACE_KEEPS_$0 });- var stringMethod = methods[0];- var regexMethod = methods[1];-- redefine(String.prototype, KEY, stringMethod);- redefine(RegExp.prototype, SYMBOL, length == 2- // 21.2.5.8 RegExp.prototype[@@replace](string, replaceValue)- // 21.2.5.11 RegExp.prototype[@@split](string, limit)- ? function (string, arg) { return regexMethod.call(string, this, arg); }- // 21.2.5.6 RegExp.prototype[@@match](string)- // 21.2.5.9 RegExp.prototype[@@search](string)- : function (string) { return regexMethod.call(string, this); }- );- }-- if (sham) createNonEnumerableProperty(RegExp.prototype[SYMBOL], 'sham', true);- };-- var charAt$1 = stringMultibyte.charAt;-- // `AdvanceStringIndex` abstract operation- // https://tc39.github.io/ecma262/#sec-advancestringindex- var advanceStringIndex = function (S, index, unicode) {- return index + (unicode ? charAt$1(S, index).length : 1);- };-- // `RegExpExec` abstract operation- // https://tc39.github.io/ecma262/#sec-regexpexec- var regexpExecAbstract = function (R, S) {- var exec = R.exec;- if (typeof exec === 'function') {- var result = exec.call(R, S);- if (typeof result !== 'object') {- throw TypeError('RegExp exec method returned something other than an Object or null');- }- return result;- }-- if (classofRaw(R) !== 'RegExp') {- throw TypeError('RegExp#exec called on incompatible receiver');- }-- return regexpExec.call(R, S);- };-- var max$1 = Math.max;- var min$2 = Math.min;- var floor$1 = Math.floor;- var SUBSTITUTION_SYMBOLS = /\$([$&'`]|\d\d?|<[^>]*>)/g;- var SUBSTITUTION_SYMBOLS_NO_NAMED = /\$([$&'`]|\d\d?)/g;-- var maybeToString = function (it) {- return it === undefined ? it : String(it);- };-- // @@replace logic- fixRegexpWellKnownSymbolLogic('replace', 2, function (REPLACE, nativeReplace, maybeCallNative, reason) {- return [- // `String.prototype.replace` method- // https://tc39.github.io/ecma262/#sec-string.prototype.replace- function replace(searchValue, replaceValue) {- var O = requireObjectCoercible(this);- var replacer = searchValue == undefined ? undefined : searchValue[REPLACE];- return replacer !== undefined- ? replacer.call(searchValue, O, replaceValue)- : nativeReplace.call(String(O), searchValue, replaceValue);- },- // `RegExp.prototype[@@replace]` method- // https://tc39.github.io/ecma262/#sec-regexp.prototype-@@replace- function (regexp, replaceValue) {- if (reason.REPLACE_KEEPS_$0 || (typeof replaceValue === 'string' && replaceValue.indexOf('$0') === -1)) {- var res = maybeCallNative(nativeReplace, regexp, this, replaceValue);- if (res.done) return res.value;- }-- var rx = anObject(regexp);- var S = String(this);-- var functionalReplace = typeof replaceValue === 'function';- if (!functionalReplace) replaceValue = String(replaceValue);-- var global = rx.global;- if (global) {- var fullUnicode = rx.unicode;- rx.lastIndex = 0;- }- var results = [];- while (true) {- var result = regexpExecAbstract(rx, S);- if (result === null) break;-- results.push(result);- if (!global) break;-- var matchStr = String(result[0]);- if (matchStr === '') rx.lastIndex = advanceStringIndex(S, toLength(rx.lastIndex), fullUnicode);- }-- var accumulatedResult = '';- var nextSourcePosition = 0;- for (var i = 0; i < results.length; i++) {- result = results[i];-- var matched = String(result[0]);- var position = max$1(min$2(toInteger(result.index), S.length), 0);- var captures = [];- // NOTE: This is equivalent to- // captures = result.slice(1).map(maybeToString)- // but for some reason `nativeSlice.call(result, 1, result.length)` (called in- // the slice polyfill when slicing native arrays) "doesn't work" in safari 9 and- // causes a crash (https://pastebin.com/N21QzeQA) when trying to debug it.- for (var j = 1; j < result.length; j++) captures.push(maybeToString(result[j]));- var namedCaptures = result.groups;- if (functionalReplace) {- var replacerArgs = [matched].concat(captures, position, S);- if (namedCaptures !== undefined) replacerArgs.push(namedCaptures);- var replacement = String(replaceValue.apply(undefined, replacerArgs));- } else {- replacement = getSubstitution(matched, S, position, captures, namedCaptures, replaceValue);- }- if (position >= nextSourcePosition) {- accumulatedResult += S.slice(nextSourcePosition, position) + replacement;- nextSourcePosition = position + matched.length;- }- }- return accumulatedResult + S.slice(nextSourcePosition);- }- ];-- // https://tc39.github.io/ecma262/#sec-getsubstitution- function getSubstitution(matched, str, position, captures, namedCaptures, replacement) {- var tailPos = position + matched.length;- var m = captures.length;- var symbols = SUBSTITUTION_SYMBOLS_NO_NAMED;- if (namedCaptures !== undefined) {- namedCaptures = toObject(namedCaptures);- symbols = SUBSTITUTION_SYMBOLS;- }- return nativeReplace.call(replacement, symbols, function (match, ch) {- var capture;- switch (ch.charAt(0)) {- case '$': return '$';- case '&': return matched;- case '`': return str.slice(0, position);- case "'": return str.slice(tailPos);- case '<':- capture = namedCaptures[ch.slice(1, -1)];- break;- default: // \d\d?- var n = +ch;- if (n === 0) return match;- if (n > m) {- var f = floor$1(n / 10);- if (f === 0) return match;- if (f <= m) return captures[f - 1] === undefined ? ch.charAt(1) : captures[f - 1] + ch.charAt(1);- return match;- }- capture = captures[n - 1];- }- return capture === undefined ? '' : capture;- });- }- });-- // `SameValue` abstract operation- // https://tc39.github.io/ecma262/#sec-samevalue- var sameValue = Object.is || function is(x, y) {- // eslint-disable-next-line no-self-compare- return x === y ? x !== 0 || 1 / x === 1 / y : x != x && y != y;- };-- // @@search logic- fixRegexpWellKnownSymbolLogic('search', 1, function (SEARCH, nativeSearch, maybeCallNative) {- return [- // `String.prototype.search` method- // https://tc39.github.io/ecma262/#sec-string.prototype.search- function search(regexp) {- var O = requireObjectCoercible(this);- var searcher = regexp == undefined ? undefined : regexp[SEARCH];- return searcher !== undefined ? searcher.call(regexp, O) : new RegExp(regexp)[SEARCH](String(O));- },- // `RegExp.prototype[@@search]` method- // https://tc39.github.io/ecma262/#sec-regexp.prototype-@@search- function (regexp) {- var res = maybeCallNative(nativeSearch, regexp, this);- if (res.done) return res.value;-- var rx = anObject(regexp);- var S = String(this);-- var previousLastIndex = rx.lastIndex;- if (!sameValue(previousLastIndex, 0)) rx.lastIndex = 0;- var result = regexpExecAbstract(rx, S);- if (!sameValue(rx.lastIndex, previousLastIndex)) rx.lastIndex = previousLastIndex;- return result === null ? -1 : result.index;- }- ];- });-- var MATCH = wellKnownSymbol('match');-- // `IsRegExp` abstract operation- // https://tc39.github.io/ecma262/#sec-isregexp- var isRegexp = function (it) {- var isRegExp;- return isObject(it) && ((isRegExp = it[MATCH]) !== undefined ? !!isRegExp : classofRaw(it) == 'RegExp');- };-- var SPECIES$3 = wellKnownSymbol('species');-- // `SpeciesConstructor` abstract operation- // https://tc39.github.io/ecma262/#sec-speciesconstructor- var speciesConstructor = function (O, defaultConstructor) {- var C = anObject(O).constructor;- var S;- return C === undefined || (S = anObject(C)[SPECIES$3]) == undefined ? defaultConstructor : aFunction$1(S);- };-- var arrayPush = [].push;- var min$3 = Math.min;- var MAX_UINT32 = 0xFFFFFFFF;-- // babel-minify transpiles RegExp('x', 'y') -> /x/y and it causes SyntaxError- var SUPPORTS_Y = !fails(function () { return !RegExp(MAX_UINT32, 'y'); });-- // @@split logic- fixRegexpWellKnownSymbolLogic('split', 2, function (SPLIT, nativeSplit, maybeCallNative) {- var internalSplit;- if (- 'abbc'.split(/(b)*/)[1] == 'c' ||- 'test'.split(/(?:)/, -1).length != 4 ||- 'ab'.split(/(?:ab)*/).length != 2 ||- '.'.split(/(.?)(.?)/).length != 4 ||- '.'.split(/()()/).length > 1 ||- ''.split(/.?/).length- ) {- // based on es5-shim implementation, need to rework it- internalSplit = function (separator, limit) {- var string = String(requireObjectCoercible(this));- var lim = limit === undefined ? MAX_UINT32 : limit >>> 0;- if (lim === 0) return [];- if (separator === undefined) return [string];- // If `separator` is not a regex, use native split- if (!isRegexp(separator)) {- return nativeSplit.call(string, separator, lim);- }- var output = [];- var flags = (separator.ignoreCase ? 'i' : '') +- (separator.multiline ? 'm' : '') +- (separator.unicode ? 'u' : '') +- (separator.sticky ? 'y' : '');- var lastLastIndex = 0;- // Make `global` and avoid `lastIndex` issues by working with a copy- var separatorCopy = new RegExp(separator.source, flags + 'g');- var match, lastIndex, lastLength;- while (match = regexpExec.call(separatorCopy, string)) {- lastIndex = separatorCopy.lastIndex;- if (lastIndex > lastLastIndex) {- output.push(string.slice(lastLastIndex, match.index));- if (match.length > 1 && match.index < string.length) arrayPush.apply(output, match.slice(1));- lastLength = match[0].length;- lastLastIndex = lastIndex;- if (output.length >= lim) break;- }- if (separatorCopy.lastIndex === match.index) separatorCopy.lastIndex++; // Avoid an infinite loop- }- if (lastLastIndex === string.length) {- if (lastLength || !separatorCopy.test('')) output.push('');- } else output.push(string.slice(lastLastIndex));- return output.length > lim ? output.slice(0, lim) : output;- };- // Chakra, V8- } else if ('0'.split(undefined, 0).length) {- internalSplit = function (separator, limit) {- return separator === undefined && limit === 0 ? [] : nativeSplit.call(this, separator, limit);- };- } else internalSplit = nativeSplit;-- return [- // `String.prototype.split` method- // https://tc39.github.io/ecma262/#sec-string.prototype.split- function split(separator, limit) {- var O = requireObjectCoercible(this);- var splitter = separator == undefined ? undefined : separator[SPLIT];- return splitter !== undefined- ? splitter.call(separator, O, limit)- : internalSplit.call(String(O), separator, limit);- },- // `RegExp.prototype[@@split]` method- // https://tc39.github.io/ecma262/#sec-regexp.prototype-@@split- //- // NOTE: This cannot be properly polyfilled in engines that don't support- // the 'y' flag.- function (regexp, limit) {- var res = maybeCallNative(internalSplit, regexp, this, limit, internalSplit !== nativeSplit);- if (res.done) return res.value;-- var rx = anObject(regexp);- var S = String(this);- var C = speciesConstructor(rx, RegExp);-- var unicodeMatching = rx.unicode;- var flags = (rx.ignoreCase ? 'i' : '') +- (rx.multiline ? 'm' : '') +- (rx.unicode ? 'u' : '') +- (SUPPORTS_Y ? 'y' : 'g');-- // ^(? + rx + ) is needed, in combination with some S slicing, to- // simulate the 'y' flag.- var splitter = new C(SUPPORTS_Y ? rx : '^(?:' + rx.source + ')', flags);- var lim = limit === undefined ? MAX_UINT32 : limit >>> 0;- if (lim === 0) return [];- if (S.length === 0) return regexpExecAbstract(splitter, S) === null ? [S] : [];- var p = 0;- var q = 0;- var A = [];- while (q < S.length) {- splitter.lastIndex = SUPPORTS_Y ? q : 0;- var z = regexpExecAbstract(splitter, SUPPORTS_Y ? S : S.slice(q));- var e;- if (- z === null ||- (e = min$3(toLength(splitter.lastIndex + (SUPPORTS_Y ? 0 : q)), S.length)) === p- ) {- q = advanceStringIndex(S, q, unicodeMatching);- } else {- A.push(S.slice(p, q));- if (A.length === lim) return A;- for (var i = 1; i <= z.length - 1; i++) {- A.push(z[i]);- if (A.length === lim) return A;- }- q = p = e;- }- }- A.push(S.slice(p));- return A;- }- ];- }, !SUPPORTS_Y);-- // iterable DOM collections- // flag - `iterable` interface - 'entries', 'keys', 'values', 'forEach' methods- var domIterables = {- CSSRuleList: 0,- CSSStyleDeclaration: 0,- CSSValueList: 0,- ClientRectList: 0,- DOMRectList: 0,- DOMStringList: 0,- DOMTokenList: 1,- DataTransferItemList: 0,- FileList: 0,- HTMLAllCollection: 0,- HTMLCollection: 0,- HTMLFormElement: 0,- HTMLSelectElement: 0,- MediaList: 0,- MimeTypeArray: 0,- NamedNodeMap: 0,- NodeList: 1,- PaintRequestList: 0,- Plugin: 0,- PluginArray: 0,- SVGLengthList: 0,- SVGNumberList: 0,- SVGPathSegList: 0,- SVGPointList: 0,- SVGStringList: 0,- SVGTransformList: 0,- SourceBufferList: 0,- StyleSheetList: 0,- TextTrackCueList: 0,- TextTrackList: 0,- TouchList: 0- };-- var $forEach$1 = arrayIteration.forEach;--- // `Array.prototype.forEach` method implementation- // https://tc39.github.io/ecma262/#sec-array.prototype.foreach- var arrayForEach = sloppyArrayMethod('forEach') ? function forEach(callbackfn /* , thisArg */) {- return $forEach$1(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);- } : [].forEach;-- for (var COLLECTION_NAME in domIterables) {- var Collection = global_1[COLLECTION_NAME];- var CollectionPrototype = Collection && Collection.prototype;- // some Chrome versions have non-configurable methods on DOMTokenList- if (CollectionPrototype && CollectionPrototype.forEach !== arrayForEach) try {- createNonEnumerableProperty(CollectionPrototype, 'forEach', arrayForEach);- } catch (error) {- CollectionPrototype.forEach = arrayForEach;- }- }-- var ITERATOR$2 = wellKnownSymbol('iterator');- var TO_STRING_TAG$3 = wellKnownSymbol('toStringTag');- var ArrayValues = es_array_iterator.values;-- for (var COLLECTION_NAME$1 in domIterables) {- var Collection$1 = global_1[COLLECTION_NAME$1];- var CollectionPrototype$1 = Collection$1 && Collection$1.prototype;- if (CollectionPrototype$1) {- // some Chrome versions have non-configurable methods on DOMTokenList- if (CollectionPrototype$1[ITERATOR$2] !== ArrayValues) try {- createNonEnumerableProperty(CollectionPrototype$1, ITERATOR$2, ArrayValues);- } catch (error) {- CollectionPrototype$1[ITERATOR$2] = ArrayValues;- }- if (!CollectionPrototype$1[TO_STRING_TAG$3]) {- createNonEnumerableProperty(CollectionPrototype$1, TO_STRING_TAG$3, COLLECTION_NAME$1);- }- if (domIterables[COLLECTION_NAME$1]) for (var METHOD_NAME in es_array_iterator) {- // some Chrome versions have non-configurable methods on DOMTokenList- if (CollectionPrototype$1[METHOD_NAME] !== es_array_iterator[METHOD_NAME]) try {- createNonEnumerableProperty(CollectionPrototype$1, METHOD_NAME, es_array_iterator[METHOD_NAME]);- } catch (error) {- CollectionPrototype$1[METHOD_NAME] = es_array_iterator[METHOD_NAME];- }- }- }- }-- function _classCallCheck(instance, Constructor) {- if (!(instance instanceof Constructor)) {- throw new TypeError("Cannot call a class as a function");- }- }-- function _defineProperties(target, props) {- for (var i = 0; i < props.length; i++) {- var descriptor = props[i];- descriptor.enumerable = descriptor.enumerable || false;- descriptor.configurable = true;- if ("value" in descriptor) descriptor.writable = true;- Object.defineProperty(target, descriptor.key, descriptor);- }- }-- function _createClass(Constructor, protoProps, staticProps) {- if (protoProps) _defineProperties(Constructor.prototype, protoProps);- if (staticProps) _defineProperties(Constructor, staticProps);- return Constructor;- }-- function _inherits(subClass, superClass) {- if (typeof superClass !== "function" && superClass !== null) {- throw new TypeError("Super expression must either be null or a function");- }-- subClass.prototype = Object.create(superClass && superClass.prototype, {- constructor: {- value: subClass,- writable: true,- configurable: true- }- });- if (superClass) _setPrototypeOf(subClass, superClass);- }-- function _getPrototypeOf(o) {- _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {- return o.__proto__ || Object.getPrototypeOf(o);- };- return _getPrototypeOf(o);- }-- function _setPrototypeOf(o, p) {- _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {- o.__proto__ = p;- return o;- };-- return _setPrototypeOf(o, p);- }-- function _assertThisInitialized(self) {- if (self === void 0) {- throw new ReferenceError("this hasn't been initialised - super() hasn't been called");- }-- return self;- }-- function _possibleConstructorReturn(self, call) {- if (call && (typeof call === "object" || typeof call === "function")) {- return call;- }-- return _assertThisInitialized(self);- }-- function _superPropBase(object, property) {- while (!Object.prototype.hasOwnProperty.call(object, property)) {- object = _getPrototypeOf(object);- if (object === null) break;- }-- return object;- }-- function _get(target, property, receiver) {- if (typeof Reflect !== "undefined" && Reflect.get) {- _get = Reflect.get;- } else {- _get = function _get(target, property, receiver) {- var base = _superPropBase(target, property);-- if (!base) return;- var desc = Object.getOwnPropertyDescriptor(base, property);-- if (desc.get) {- return desc.get.call(receiver);- }-- return desc.value;- };- }-- return _get(target, property, receiver || target);- }-- /**- * @author: Dennis Hernández- * @webSite: http://djhvscf.github.io/Blog- * @update zhixin wen <[email protected]>- */-- var Utils = $.fn.bootstrapTable.utils;- var UtilsCookie = {- cookieIds: {- sortOrder: 'bs.table.sortOrder',- sortName: 'bs.table.sortName',- pageNumber: 'bs.table.pageNumber',- pageList: 'bs.table.pageList',- columns: 'bs.table.columns',- searchText: 'bs.table.searchText',- reorderColumns: 'bs.table.reorderColumns',- filterControl: 'bs.table.filterControl',- filterBy: 'bs.table.filterBy'- },- getCurrentHeader: function getCurrentHeader(that) {- var header = that.$header;-- if (that.options.height) {- header = that.$tableHeader;- }-- return header;- },- getCurrentSearchControls: function getCurrentSearchControls(that) {- var searchControls = 'select, input';-- if (that.options.height) {- searchControls = 'table select, table input';- }-- return searchControls;- },- cookieEnabled: function cookieEnabled() {- return !!navigator.cookieEnabled;- },- inArrayCookiesEnabled: function inArrayCookiesEnabled(cookieName, cookiesEnabled) {- var index = -1;-- for (var i = 0; i < cookiesEnabled.length; i++) {- if (cookieName.toLowerCase() === cookiesEnabled[i].toLowerCase()) {- index = i;- break;- }- }-- return index;- },- setCookie: function setCookie(that, cookieName, cookieValue) {- if (!that.options.cookie || !UtilsCookie.cookieEnabled() || that.options.cookieIdTable === '') {- return;- }-- if (UtilsCookie.inArrayCookiesEnabled(cookieName, that.options.cookiesEnabled) === -1) {- return;- }-- cookieName = "".concat(that.options.cookieIdTable, ".").concat(cookieName);-- switch (that.options.cookieStorage) {- case 'cookieStorage':- document.cookie = [cookieName, '=', encodeURIComponent(cookieValue), "; expires=".concat(UtilsCookie.calculateExpiration(that.options.cookieExpire)), that.options.cookiePath ? "; path=".concat(that.options.cookiePath) : '', that.options.cookieDomain ? "; domain=".concat(that.options.cookieDomain) : '', that.options.cookieSecure ? '; secure' : '', ';SameSite=' + that.options.cookieSameSite].join('');- break;-- case 'localStorage':- localStorage.setItem(cookieName, cookieValue);- break;-- case 'sessionStorage':- sessionStorage.setItem(cookieName, cookieValue);- break;-- case 'customStorage':- if (!that.options.cookieCustomStorageSet || !that.options.cookieCustomStorageGet || !that.options.cookieCustomStorageDelete) {- throw new Error('The following options must be set while using the customStorage: cookieCustomStorageSet, cookieCustomStorageGet and cookieCustomStorageDelete');- }-- Utils.calculateObjectValue(that.options, that.options.cookieCustomStorageSet, [cookieName, cookieValue], '');- break;-- default:- return false;- }-- return true;- },- getCookie: function getCookie(that, tableName, cookieName) {- if (!cookieName) {- return null;- }-- if (UtilsCookie.inArrayCookiesEnabled(cookieName, that.options.cookiesEnabled) === -1) {- return null;- }-- cookieName = "".concat(tableName, ".").concat(cookieName);-- switch (that.options.cookieStorage) {- case 'cookieStorage':- var value = "; ".concat(document.cookie);- var parts = value.split("; ".concat(cookieName, "="));- return parts.length === 2 ? decodeURIComponent(parts.pop().split(';').shift()) : null;-- case 'localStorage':- return localStorage.getItem(cookieName);-- case 'sessionStorage':- return sessionStorage.getItem(cookieName);-- case 'customStorage':- if (!that.options.cookieCustomStorageSet || !that.options.cookieCustomStorageGet || !that.options.cookieCustomStorageDelete) {- throw new Error('The following options must be set while using the customStorage: cookieCustomStorageSet, cookieCustomStorageGet and cookieCustomStorageDelete');- }-- return Utils.calculateObjectValue(that.options, that.options.cookieCustomStorageGet, [cookieName], '');-- default:- return null;- }- },- deleteCookie: function deleteCookie(that, tableName, cookieName) {- cookieName = "".concat(tableName, ".").concat(cookieName);-- switch (that.options.cookieStorage) {- case 'cookieStorage':- document.cookie = [encodeURIComponent(cookieName), '=', '; expires=Thu, 01 Jan 1970 00:00:00 GMT', that.options.cookiePath ? "; path=".concat(that.options.cookiePath) : '', that.options.cookieDomain ? "; domain=".concat(that.options.cookieDomain) : ''].join('');- break;-- case 'localStorage':- localStorage.removeItem(cookieName);- break;-- case 'sessionStorage':- sessionStorage.removeItem(cookieName);- break;-- case 'customStorage':- if (!that.options.cookieCustomStorageSet || !that.options.cookieCustomStorageGet || !that.options.cookieCustomStorageDelete) {- throw new Error('The following options must be set while using the customStorage: cookieCustomStorageSet, cookieCustomStorageGet and cookieCustomStorageDelete');- }-- Utils.calculateObjectValue(that.options, that.options.cookieCustomStorageDelete, [cookieName], '');- break;-- default:- return false;- }-- return true;- },- calculateExpiration: function calculateExpiration(cookieExpire) {- var time = cookieExpire.replace(/[0-9]*/, ''); // s,mi,h,d,m,y-- cookieExpire = cookieExpire.replace(/[A-Za-z]{1,2}/, ''); // number-- switch (time.toLowerCase()) {- case 's':- cookieExpire = +cookieExpire;- break;-- case 'mi':- cookieExpire *= 60;- break;-- case 'h':- cookieExpire = cookieExpire * 60 * 60;- break;-- case 'd':- cookieExpire = cookieExpire * 24 * 60 * 60;- break;-- case 'm':- cookieExpire = cookieExpire * 30 * 24 * 60 * 60;- break;-- case 'y':- cookieExpire = cookieExpire * 365 * 24 * 60 * 60;- break;-- default:- cookieExpire = undefined;- break;- }-- if (!cookieExpire) {- return '';- }-- var d = new Date();- d.setTime(d.getTime() + cookieExpire * 1000);- return d.toGMTString();- },- initCookieFilters: function initCookieFilters(bootstrapTable) {- setTimeout(function () {- var parsedCookieFilters = JSON.parse(UtilsCookie.getCookie(bootstrapTable, bootstrapTable.options.cookieIdTable, UtilsCookie.cookieIds.filterControl));-- if (!bootstrapTable.options.filterControlValuesLoaded && parsedCookieFilters) {- var cachedFilters = {};- var header = UtilsCookie.getCurrentHeader(bootstrapTable);- var searchControls = UtilsCookie.getCurrentSearchControls(bootstrapTable);-- var applyCookieFilters = function applyCookieFilters(element, filteredCookies) {- filteredCookies.forEach(function (cookie) {- if (cookie.text === '' || element.type === 'radio' && element.value.toString() !== cookie.text.toString()) {- return;- }-- if (element.tagName === 'INPUT' && element.type === 'radio' && element.value.toString() === cookie.text.toString()) {- element.checked = true;- cachedFilters[cookie.field] = cookie.text;- } else if (element.tagName === 'INPUT') {- element.value = cookie.text;- cachedFilters[cookie.field] = cookie.text;- } else if (element.tagName === 'SELECT' && bootstrapTable.options.filterControlContainer) {- element.value = cookie.text;- cachedFilters[cookie.field] = cookie.text;- } else if (cookie.text !== '' && element.tagName === 'SELECT') {- for (var i = 0; i < element.length; i++) {- var currentElement = element[i];-- if (currentElement.value === cookie.text) {- currentElement.selected = true;- return;- }- }-- var option = document.createElement('option');- option.value = cookie.text;- option.text = cookie.text;- element.add(option, element[1]);- element.selectedIndex = 1;- cachedFilters[cookie.field] = cookie.text;- }- });- };-- var filterContainer = header;-- if (bootstrapTable.options.filterControlContainer) {- filterContainer = $("".concat(bootstrapTable.options.filterControlContainer));- }-- filterContainer.find(searchControls).each(function () {- var field = $(this).closest('[data-field]').data('field');- var filteredCookies = parsedCookieFilters.filter(function (cookie) {- return cookie.field === field;- });- applyCookieFilters(this, filteredCookies);- });- bootstrapTable.initColumnSearch(cachedFilters);- bootstrapTable.options.filterControlValuesLoaded = true;- bootstrapTable.initServer();- }- }, 250);- }- };- $.extend($.fn.bootstrapTable.defaults, {- cookie: false,- cookieExpire: '2h',- cookiePath: null,- cookieDomain: null,- cookieSecure: null,- cookieSameSite: 'Lax',- cookieIdTable: '',- cookiesEnabled: ['bs.table.sortOrder', 'bs.table.sortName', 'bs.table.pageNumber', 'bs.table.pageList', 'bs.table.columns', 'bs.table.searchText', 'bs.table.filterControl', 'bs.table.filterBy', 'bs.table.reorderColumns'],- cookieStorage: 'cookieStorage',- // localStorage, sessionStorage, customStorage- cookieCustomStorageGet: null,- cookieCustomStorageSet: null,- cookieCustomStorageDelete: null,- // internal variable- filterControls: [],- filterControlValuesLoaded: false- });- $.fn.bootstrapTable.methods.push('getCookies');- $.fn.bootstrapTable.methods.push('deleteCookie');- $.extend($.fn.bootstrapTable.utils, {- setCookie: UtilsCookie.setCookie,- getCookie: UtilsCookie.getCookie- });-- $.BootstrapTable =- /*#__PURE__*/- function (_$$BootstrapTable) {- _inherits(_class, _$$BootstrapTable);-- function _class() {- _classCallCheck(this, _class);-- return _possibleConstructorReturn(this, _getPrototypeOf(_class).apply(this, arguments));- }-- _createClass(_class, [{- key: "init",- value: function init() {- if (this.options.cookie) {- // FilterBy logic- var filterByCookieValue = UtilsCookie.getCookie(this, this.options.cookieIdTable, UtilsCookie.cookieIds.filterBy);-- if (typeof filterByCookieValue === 'boolean' && !filterByCookieValue) {- throw new Error('The cookie value of filterBy must be a json!');- }-- var filterByCookie = {};-- try {- filterByCookie = JSON.parse(filterByCookieValue);- } catch (e) {- throw new Error('Could not parse the json of the filterBy cookie!');- }-- this.filterColumns = filterByCookie ? filterByCookie : {}; // FilterControl logic-- this.options.filterControls = [];- this.options.filterControlValuesLoaded = false;- this.options.cookiesEnabled = typeof this.options.cookiesEnabled === 'string' ? this.options.cookiesEnabled.replace('[', '').replace(']', '').replace(/'/g, '').replace(/ /g, '').toLowerCase().split(',') : this.options.cookiesEnabled;-- if (this.options.filterControl) {- var that = this;- this.$el.on('column-search.bs.table', function (e, field, text) {- var isNewField = true;-- for (var i = 0; i < that.options.filterControls.length; i++) {- if (that.options.filterControls[i].field === field) {- that.options.filterControls[i].text = text;- isNewField = false;- break;- }- }-- if (isNewField) {- that.options.filterControls.push({- field: field,- text: text- });- }-- UtilsCookie.setCookie(that, UtilsCookie.cookieIds.filterControl, JSON.stringify(that.options.filterControls));- }).on('created-controls.bs.table', UtilsCookie.initCookieFilters(that));- }- }-- _get(_getPrototypeOf(_class.prototype), "init", this).call(this);- }- }, {- key: "initServer",- value: function initServer() {- var _get2;-- if (this.options.cookie && this.options.filterControl && !this.options.filterControlValuesLoaded) {- var cookie = JSON.parse(UtilsCookie.getCookie(this, this.options.cookieIdTable, UtilsCookie.cookieIds.filterControl));-- if (cookie) {- return;- }- }-- for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {- args[_key] = arguments[_key];- }-- (_get2 = _get(_getPrototypeOf(_class.prototype), "initServer", this)).call.apply(_get2, [this].concat(args));- }- }, {- key: "initTable",- value: function initTable() {- var _get3;-- for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {- args[_key2] = arguments[_key2];- }-- (_get3 = _get(_getPrototypeOf(_class.prototype), "initTable", this)).call.apply(_get3, [this].concat(args));-- this.initCookie();- }- }, {- key: "onSort",- value: function onSort() {- var _get4;-- for (var _len3 = arguments.length, args = new Array(_len3), _key3 = 0; _key3 < _len3; _key3++) {- args[_key3] = arguments[_key3];- }-- (_get4 = _get(_getPrototypeOf(_class.prototype), "onSort", this)).call.apply(_get4, [this].concat(args));-- UtilsCookie.setCookie(this, UtilsCookie.cookieIds.sortOrder, this.options.sortOrder);- UtilsCookie.setCookie(this, UtilsCookie.cookieIds.sortName, this.options.sortName);- }- }, {- key: "onPageNumber",- value: function onPageNumber() {- var _get5;-- for (var _len4 = arguments.length, args = new Array(_len4), _key4 = 0; _key4 < _len4; _key4++) {- args[_key4] = arguments[_key4];- }-- (_get5 = _get(_getPrototypeOf(_class.prototype), "onPageNumber", this)).call.apply(_get5, [this].concat(args));-- UtilsCookie.setCookie(this, UtilsCookie.cookieIds.pageNumber, this.options.pageNumber);- }- }, {- key: "onPageListChange",- value: function onPageListChange() {- var _get6;-- for (var _len5 = arguments.length, args = new Array(_len5), _key5 = 0; _key5 < _len5; _key5++) {- args[_key5] = arguments[_key5];- }-- (_get6 = _get(_getPrototypeOf(_class.prototype), "onPageListChange", this)).call.apply(_get6, [this].concat(args));-- UtilsCookie.setCookie(this, UtilsCookie.cookieIds.pageList, this.options.pageSize);- UtilsCookie.setCookie(this, UtilsCookie.cookieIds.pageNumber, this.options.pageNumber);- }- }, {- key: "onPagePre",- value: function onPagePre() {- var _get7;-- for (var _len6 = arguments.length, args = new Array(_len6), _key6 = 0; _key6 < _len6; _key6++) {- args[_key6] = arguments[_key6];- }-- (_get7 = _get(_getPrototypeOf(_class.prototype), "onPagePre", this)).call.apply(_get7, [this].concat(args));-- UtilsCookie.setCookie(this, UtilsCookie.cookieIds.pageNumber, this.options.pageNumber);- }- }, {- key: "onPageNext",- value: function onPageNext() {- var _get8;-- for (var _len7 = arguments.length, args = new Array(_len7), _key7 = 0; _key7 < _len7; _key7++) {- args[_key7] = arguments[_key7];- }-- (_get8 = _get(_getPrototypeOf(_class.prototype), "onPageNext", this)).call.apply(_get8, [this].concat(args));-- UtilsCookie.setCookie(this, UtilsCookie.cookieIds.pageNumber, this.options.pageNumber);- }- }, {- key: "_toggleColumn",- value: function _toggleColumn() {- var _get9;-- for (var _len8 = arguments.length, args = new Array(_len8), _key8 = 0; _key8 < _len8; _key8++) {- args[_key8] = arguments[_key8];- }-- (_get9 = _get(_getPrototypeOf(_class.prototype), "_toggleColumn", this)).call.apply(_get9, [this].concat(args));-- UtilsCookie.setCookie(this, UtilsCookie.cookieIds.columns, JSON.stringify(this.getVisibleColumns().map(function (column) {- return column.field;- })));- }- }, {- key: "_toggleAllColumns",- value: function _toggleAllColumns() {- var _get10;-- for (var _len9 = arguments.length, args = new Array(_len9), _key9 = 0; _key9 < _len9; _key9++) {- args[_key9] = arguments[_key9];- }-- (_get10 = _get(_getPrototypeOf(_class.prototype), "_toggleAllColumns", this)).call.apply(_get10, [this].concat(args));-- UtilsCookie.setCookie(this, UtilsCookie.cookieIds.columns, JSON.stringify(this.getVisibleColumns().map(function (column) {- return column.field;- })));- }- }, {- key: "selectPage",- value: function selectPage(page) {- _get(_getPrototypeOf(_class.prototype), "selectPage", this).call(this, page);-- UtilsCookie.setCookie(this, UtilsCookie.cookieIds.pageNumber, page);- }- }, {- key: "onSearch",- value: function onSearch(event) {- _get(_getPrototypeOf(_class.prototype), "onSearch", this).call(this, event);-- if (this.options.search) {- UtilsCookie.setCookie(this, UtilsCookie.cookieIds.searchText, this.searchText);- }-- UtilsCookie.setCookie(this, UtilsCookie.cookieIds.pageNumber, this.options.pageNumber);- }- }, {- key: "initHeader",- value: function initHeader() {- var _get11;-- if (this.options.reorderableColumns) {- this.columnsSortOrder = JSON.parse(UtilsCookie.getCookie(this, this.options.cookieIdTable, UtilsCookie.cookieIds.reorderColumns));- }-- for (var _len10 = arguments.length, args = new Array(_len10), _key10 = 0; _key10 < _len10; _key10++) {- args[_key10] = arguments[_key10];- }-- (_get11 = _get(_getPrototypeOf(_class.prototype), "initHeader", this)).call.apply(_get11, [this].concat(args));- }- }, {- key: "persistReorderColumnsState",- value: function persistReorderColumnsState(that) {- UtilsCookie.setCookie(that, UtilsCookie.cookieIds.reorderColumns, JSON.stringify(that.columnsSortOrder));- }- }, {- key: "filterBy",- value: function filterBy() {- var _get12;-- for (var _len11 = arguments.length, args = new Array(_len11), _key11 = 0; _key11 < _len11; _key11++) {- args[_key11] = arguments[_key11];- }-- (_get12 = _get(_getPrototypeOf(_class.prototype), "filterBy", this)).call.apply(_get12, [this].concat(args));-- UtilsCookie.setCookie(this, UtilsCookie.cookieIds.filterBy, JSON.stringify(this.filterColumns));- }- }, {- key: "initCookie",- value: function initCookie() {- var _this = this;-- if (!this.options.cookie) {- return;- }-- if (this.options.cookieIdTable === '' || this.options.cookieExpire === '' || !UtilsCookie.cookieEnabled()) {- console.error('Configuration error. Please review the cookieIdTable and the cookieExpire property. If the properties are correct, then this browser does not support cookies.');- this.options.cookie = false; // Make sure that the cookie extension is disabled-- return;- }-- var sortOrderCookie = UtilsCookie.getCookie(this, this.options.cookieIdTable, UtilsCookie.cookieIds.sortOrder);- var sortOrderNameCookie = UtilsCookie.getCookie(this, this.options.cookieIdTable, UtilsCookie.cookieIds.sortName);- var pageNumberCookie = UtilsCookie.getCookie(this, this.options.cookieIdTable, UtilsCookie.cookieIds.pageNumber);- var pageListCookie = UtilsCookie.getCookie(this, this.options.cookieIdTable, UtilsCookie.cookieIds.pageList);- var searchTextCookie = UtilsCookie.getCookie(this, this.options.cookieIdTable, UtilsCookie.cookieIds.searchText);- var columnsCookieValue = UtilsCookie.getCookie(this, this.options.cookieIdTable, UtilsCookie.cookieIds.columns);-- if (typeof columnsCookieValue === 'boolean' && !columnsCookieValue) {- throw new Error('The cookie value of filterBy must be a json!');- }-- var columnsCookie = {};-- try {- columnsCookie = JSON.parse(columnsCookieValue);- } catch (e) {- throw new Error('Could not parse the json of the columns cookie!', columnsCookieValue);- } // sortOrder--- this.options.sortOrder = sortOrderCookie ? sortOrderCookie : this.options.sortOrder; // sortName-- this.options.sortName = sortOrderNameCookie ? sortOrderNameCookie : this.options.sortName; // pageNumber-- this.options.pageNumber = pageNumberCookie ? +pageNumberCookie : this.options.pageNumber; // pageSize-- this.options.pageSize = pageListCookie ? pageListCookie === this.options.formatAllRows() ? pageListCookie : +pageListCookie : this.options.pageSize; // searchText-- this.options.searchText = searchTextCookie ? searchTextCookie : '';-- if (columnsCookie) {- var _iteratorNormalCompletion = true;- var _didIteratorError = false;- var _iteratorError = undefined;-- try {- var _loop = function _loop() {- var column = _step.value;- column.visible = columnsCookie.filter(function (columnField) {- if (_this.isSelectionColumn(column)) {- return true;- }- /**- * This is needed for the old saved cookies or the table will show no columns!- * It can be removed in 2-3 Versions Later!!- * TODO: Remove this part some versions later e.g. 1.17.3- */--- if (columnField instanceof Object) {- return columnField.field === column.field;- }-- return columnField === column.field;- }).length > 0 || !column.switchable;- };-- for (var _iterator = this.columns[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {- _loop();- }- } catch (err) {- _didIteratorError = true;- _iteratorError = err;- } finally {- try {- if (!_iteratorNormalCompletion && _iterator.return != null) {- _iterator.return();- }- } finally {- if (_didIteratorError) {- throw _iteratorError;- }- }- }- }- }- }, {- key: "getCookies",- value: function getCookies() {- var bootstrapTable = this;- var cookies = {};- $.each(UtilsCookie.cookieIds, function (key, value) {- cookies[key] = UtilsCookie.getCookie(bootstrapTable, bootstrapTable.options.cookieIdTable, value);-- if (key === 'columns') {- cookies[key] = JSON.parse(cookies[key]);- }- });- return cookies;- }- }, {- key: "deleteCookie",- value: function deleteCookie(cookieName) {- if (cookieName === '' || !UtilsCookie.cookieEnabled()) {- return;- }-- UtilsCookie.deleteCookie(this, this.options.cookieIdTable, UtilsCookie.cookieIds[cookieName]);- }- }]);-- return _class;- }($.BootstrapTable);--})));--jQuery.base64 = (function($) {-- // private property- var keyStr = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";-- // private method for UTF-8 encoding- function utf8Encode(string) {- string = string.replace(/\r\n/g,"\n");- var utftext = "";- for (var n = 0; n < string.length; n++) {- var c = string.charCodeAt(n);- if (c < 128) {- utftext += String.fromCharCode(c);- }- else if((c > 127) && (c < 2048)) {- utftext += String.fromCharCode((c >> 6) | 192);- utftext += String.fromCharCode((c & 63) | 128);- }- else {- utftext += String.fromCharCode((c >> 12) | 224);- utftext += String.fromCharCode(((c >> 6) & 63) | 128);- utftext += String.fromCharCode((c & 63) | 128);- }- }- return utftext;- }-- function encode(input) {- var output = "";- var chr1, chr2, chr3, enc1, enc2, enc3, enc4;- var i = 0;- input = utf8Encode(input);- while (i < input.length) {- chr1 = input.charCodeAt(i++);- chr2 = input.charCodeAt(i++);- chr3 = input.charCodeAt(i++);- enc1 = chr1 >> 2;- enc2 = ((chr1 & 3) << 4) | (chr2 >> 4);- enc3 = ((chr2 & 15) << 2) | (chr3 >> 6);- enc4 = chr3 & 63;- if (isNaN(chr2)) {- enc3 = enc4 = 64;- } else if (isNaN(chr3)) {- enc4 = 64;- }- output = output +- keyStr.charAt(enc1) + keyStr.charAt(enc2) +- keyStr.charAt(enc3) + keyStr.charAt(enc4);- }- return output;- }-- return {- encode: function (str) {- return encode(str);- }- };--}(jQuery));-/**- * @preserve tableExport.jquery.plugin- *- * Version 1.10.20- *- * Copyright (c) 2015-2020 hhurz, https://github.com/hhurz/tableExport.jquery.plugin- *- * Based on https://github.com/kayalshri/tableExport.jquery.plugin- *- * Licensed under the MIT License- **/--'use strict';--(function ($) {- $.fn.tableExport = function (options) {- var defaults = {- csvEnclosure: '"',- csvSeparator: ',',- csvUseBOM: true,- date: {- html: 'dd/mm/yyyy' // Date format used in html source. Supported placeholders: dd, mm, yy, yyyy and a arbitrary single separator character- },- displayTableName: false, // Deprecated- escape: false, // Deprecated- exportHiddenCells: false, // true = speed up export of large tables with hidden cells (hidden cells will be exported !)- fileName: 'tableExport',- htmlContent: false,- htmlHyperlink: 'content', // Export the 'content' or the 'href' link of <a> tags unless onCellHtmlHyperlink is not defined- ignoreColumn: [],- ignoreRow: [],- jsonScope: 'all', // One of 'head', 'data', 'all'- jspdf: { // jsPDF / jsPDF-AutoTable related options- orientation: 'p',- unit: 'pt',- format: 'a4', // One of jsPDF page formats or 'bestfit' for automatic paper format selection- margins: {left: 20, right: 10, top: 10, bottom: 10},- onDocCreated: null,- autotable: {- styles: {- cellPadding: 2,- rowHeight: 12,- fontSize: 8,- fillColor: 255, // Color value or 'inherit' to use css background-color from html table- textColor: 50, // Color value or 'inherit' to use css color from html table- fontStyle: 'normal', // 'normal', 'bold', 'italic', 'bolditalic' or 'inherit' to use css font-weight and font-style from html table- overflow: 'ellipsize', // 'visible', 'hidden', 'ellipsize' or 'linebreak'- halign: 'inherit', // 'left', 'center', 'right' or 'inherit' to use css horizontal cell alignment from html table- valign: 'middle' // 'top', 'middle', or 'bottom'- },- headerStyles: {- fillColor: [52, 73, 94],- textColor: 255,- fontStyle: 'bold',- halign: 'inherit', // 'left', 'center', 'right' or 'inherit' to use css horizontal header cell alignment from html table- valign: 'middle' // 'top', 'middle', or 'bottom'- },- alternateRowStyles: {- fillColor: 245- },- tableExport: {- doc: null, // jsPDF doc object. If set, an already created doc object will be used to export to- onAfterAutotable: null,- onBeforeAutotable: null,- onAutotableText: null,- onTable: null,- outputImages: true- }- }- },- mso: { // MS Excel and MS Word related options- fileFormat: 'xlshtml', // 'xlshtml' = Excel 2000 html format- // 'xmlss' = XML Spreadsheet 2003 file format (XMLSS)- // 'xlsx' = Excel 2007 Office Open XML format- onMsoNumberFormat: null, // Excel 2000 html format only. See readme.md for more information about msonumberformat- pageFormat: 'a4', // Page format used for page orientation- pageOrientation: 'portrait', // portrait, landscape (xlshtml format only)- rtl: false, // true = Set worksheet option 'DisplayRightToLeft'- styles: [], // E.g. ['border-bottom', 'border-top', 'border-left', 'border-right']- worksheetName: '',- xslx: { // Specific Excel 2007 XML format settings:- formatId: { // XLSX format (id) used to format excel cells. See readme.md: data-tableexport-xlsxformatid- date: 14, // formatId or format string (e.g. 'm/d/yy') or function(cell, row, col) {return formatId}- numbers: 2 // formatId or format string (e.g. '\"T\"\ #0.00') or function(cell, row, col) {return formatId}- }- }- },- numbers: {- html: {- decimalMark: '.', // Decimal mark in html source- thousandsSeparator: ',' // Thousands separator in html source- },- output: { // Set 'output: false' to keep number format of html source in resulting output- decimalMark: '.', // Decimal mark in resulting output- thousandsSeparator: ',' // Thousands separator in resulting output- }- },- onAfterSaveToFile: null, // function(data, fileName)- onBeforeSaveToFile: null, // saveIt = function(data, fileName, type, charset, encoding): Return false to abort save process- onCellData: null, // Text to export = function($cell, row, col, href, cellText, cellType)- onCellHtmlData: null, // Text to export = function($cell, row, col, htmlContent)- onCellHtmlHyperlink: null, // Text to export = function($cell, row, col, href, cellText)- onIgnoreRow: null, // ignoreRow = function($tr, row): Return true to prevent export of the row- onTableExportBegin: null, // function() - called when export starts- onTableExportEnd: null, // function() - called when export ends- outputMode: 'file', // 'file', 'string', 'base64' or 'window' (experimental)- pdfmake: {- enabled: false, // true: use pdfmake instead of jspdf and jspdf-autotable (experimental)- docDefinition: {- pageOrientation: 'portrait', // 'portrait' or 'landscape'- defaultStyle: {- font: 'Roboto' // Default font is 'Roboto' (contained in vfs_fonts.js)- } // For an arabic font include mirza_fonts.js instead of vfs_fonts.js- }, // For a chinese font include either gbsn00lp_fonts.js or ZCOOLXiaoWei_fonts.js instead instead of vfs_fonts.js- fonts: {}- },- preserve: {- leadingWS: false, // preserve leading white spaces- trailingWS: false // preserve trailing white spaces- },- preventInjection: true, // Prepend a single quote to cell strings that start with =,+,- or @ to prevent formula injection- sql: {- tableEnclosure: '`', // If table name or column names contain any characters except letters, numbers, and- columnEnclosure: '`' // underscores, usually the name must be delimited by enclosing it in back quotes (`)- },- tbodySelector: 'tr',- tfootSelector: 'tr', // Set empty ('') to prevent export of tfoot rows- theadSelector: 'tr',- tableName: 'Table',- type: 'csv' // Export format: 'csv', 'tsv', 'txt', 'sql', 'json', 'xml', 'excel', 'doc', 'png' or 'pdf'- };-- var pageFormats = { // Size in pt of various paper formats. Adopted from jsPDF.- 'a0': [2383.94, 3370.39], 'a1': [1683.78, 2383.94], 'a2': [1190.55, 1683.78],- 'a3': [841.89, 1190.55], 'a4': [595.28, 841.89], 'a5': [419.53, 595.28],- 'a6': [297.64, 419.53], 'a7': [209.76, 297.64], 'a8': [147.40, 209.76],- 'a9': [104.88, 147.40], 'a10': [73.70, 104.88],- 'b0': [2834.65, 4008.19], 'b1': [2004.09, 2834.65], 'b2': [1417.32, 2004.09],- 'b3': [1000.63, 1417.32], 'b4': [708.66, 1000.63], 'b5': [498.90, 708.66],- 'b6': [354.33, 498.90], 'b7': [249.45, 354.33], 'b8': [175.75, 249.45],- 'b9': [124.72, 175.75], 'b10': [87.87, 124.72],- 'c0': [2599.37, 3676.54],- 'c1': [1836.85, 2599.37], 'c2': [1298.27, 1836.85], 'c3': [918.43, 1298.27],- 'c4': [649.13, 918.43], 'c5': [459.21, 649.13], 'c6': [323.15, 459.21],- 'c7': [229.61, 323.15], 'c8': [161.57, 229.61], 'c9': [113.39, 161.57],- 'c10': [79.37, 113.39],- 'dl': [311.81, 623.62],- 'letter': [612, 792], 'government-letter': [576, 756], 'legal': [612, 1008],- 'junior-legal': [576, 360], 'ledger': [1224, 792], 'tabloid': [792, 1224],- 'credit-card': [153, 243]- };- var FONT_ROW_RATIO = 1.15;- var el = this;- var DownloadEvt = null;- var $hrows = [];- var $rows = [];- var rowIndex = 0;- var trData = '';- var colNames = [];- var ranges = [];- var blob;- var $hiddenTableElements = [];- var checkCellVisibilty = false;-- $.extend(true, defaults, options);-- // Adopt deprecated options- if (defaults.type === 'xlsx') {- defaults.mso.fileFormat = defaults.type;- defaults.type = 'excel';- }- if (typeof defaults.excelFileFormat !== 'undefined' && defaults.mso.fileFormat === 'undefined')- defaults.mso.fileFormat = defaults.excelFileFormat;- if (typeof defaults.excelPageFormat !== 'undefined' && defaults.mso.pageFormat === 'undefined')- defaults.mso.pageFormat = defaults.excelPageFormat;- if (typeof defaults.excelPageOrientation !== 'undefined' && defaults.mso.pageOrientation === 'undefined')- defaults.mso.pageOrientation = defaults.excelPageOrientation;- if (typeof defaults.excelRTL !== 'undefined' && defaults.mso.rtl === 'undefined')- defaults.mso.rtl = defaults.excelRTL;- if (typeof defaults.excelstyles !== 'undefined' && defaults.mso.styles === 'undefined')- defaults.mso.styles = defaults.excelstyles;- if (typeof defaults.onMsoNumberFormat !== 'undefined' && defaults.mso.onMsoNumberFormat === 'undefined')- defaults.mso.onMsoNumberFormat = defaults.onMsoNumberFormat;- if (typeof defaults.worksheetName !== 'undefined' && defaults.mso.worksheetName === 'undefined')- defaults.mso.worksheetName = defaults.worksheetName;-- // Check values of some options- defaults.mso.pageOrientation = (defaults.mso.pageOrientation.substr(0, 1) === 'l') ? 'landscape' : 'portrait';- defaults.date.html = defaults.date.html || '';-- if (defaults.date.html.length) {- var patt = [];- patt['dd'] = '(3[01]|[12][0-9]|0?[1-9])';- patt['mm'] = '(1[012]|0?[1-9])';- patt['yyyy'] = '((?:1[6-9]|2[0-2])\\d{2})';- patt['yy'] = '(\\d{2})';-- var separator = defaults.date.html.match(/[^a-zA-Z0-9]/)[0];- var formatItems = defaults.date.html.toLowerCase().split(separator);- defaults.date.regex = '^\\s*';- defaults.date.regex += patt[formatItems[0]];- defaults.date.regex += '(.)'; // separator group- defaults.date.regex += patt[formatItems[1]];- defaults.date.regex += '\\2'; // identical separator group- defaults.date.regex += patt[formatItems[2]];- defaults.date.regex += '\\s*$';- // e.g. '^\\s*(3[01]|[12][0-9]|0?[1-9])(.)(1[012]|0?[1-9])\\2((?:1[6-9]|2[0-2])\\d{2})\\s*$'-- defaults.date.pattern = new RegExp(defaults.date.regex, 'g');- var f = formatItems.indexOf('dd') + 1;- defaults.date.match_d = f + (f > 1 ? 1 : 0);- f = formatItems.indexOf('mm') + 1;- defaults.date.match_m = f + (f > 1 ? 1 : 0);- f = (formatItems.indexOf('yyyy') >= 0 ? formatItems.indexOf('yyyy') : formatItems.indexOf('yy')) + 1;- defaults.date.match_y = f + (f > 1 ? 1 : 0);- }-- colNames = GetColumnNames(el);-- if (typeof defaults.onTableExportBegin === 'function')- defaults.onTableExportBegin();-- if (defaults.type === 'csv' || defaults.type === 'tsv' || defaults.type === 'txt') {-- var csvData = '';- var rowlength = 0;- ranges = [];- rowIndex = 0;-- var csvString = function (cell, rowIndex, colIndex) {- var result = '';-- if (cell !== null) {- var dataString = parseString(cell, rowIndex, colIndex);-- var csvValue = (dataString === null || dataString === '') ? '' : dataString.toString();-- if (defaults.type === 'tsv') {- if (dataString instanceof Date)- dataString.toLocaleString();-- // According to http://www.iana.org/assignments/media-types/text/tab-separated-values- // are fields that contain tabs not allowable in tsv encoding- result = replaceAll(csvValue, '\t', ' ');- } else {- // Takes a string and encapsulates it (by default in double-quotes) if it- // contains the csv field separator, spaces, or linebreaks.- if (dataString instanceof Date)- result = defaults.csvEnclosure + dataString.toLocaleString() + defaults.csvEnclosure;- else {- result = preventInjection(csvValue);- result = replaceAll(result, defaults.csvEnclosure, defaults.csvEnclosure + defaults.csvEnclosure);-- if (result.indexOf(defaults.csvSeparator) >= 0 || /[\r\n ]/g.test(result))- result = defaults.csvEnclosure + result + defaults.csvEnclosure;- }- }- }-- return result;- };-- var CollectCsvData = function ($rows, rowselector, length) {-- $rows.each(function () {- trData = '';- ForEachVisibleCell(this, rowselector, rowIndex, length + $rows.length,- function (cell, row, col) {- trData += csvString(cell, row, col) + (defaults.type === 'tsv' ? '\t' : defaults.csvSeparator);- });- trData = $.trim(trData).substring(0, trData.length - 1);- if (trData.length > 0) {-- if (csvData.length > 0)- csvData += '\n';-- csvData += trData;- }- rowIndex++;- });-- return $rows.length;- };-- rowlength += CollectCsvData($(el).find('thead').first().find(defaults.theadSelector), 'th,td', rowlength);- findTableElements($(el), 'tbody').each(function () {- rowlength += CollectCsvData(findTableElements($(this), defaults.tbodySelector), 'td,th', rowlength);- });- if (defaults.tfootSelector.length)- CollectCsvData($(el).find('tfoot').first().find(defaults.tfootSelector), 'td,th', rowlength);-- csvData += '\n';-- //output- if (defaults.outputMode === 'string')- return csvData;-- if (defaults.outputMode === 'base64')- return base64encode(csvData);-- if (defaults.outputMode === 'window') {- downloadFile(false, 'data:text/' + (defaults.type === 'csv' ? 'csv' : 'plain') + ';charset=utf-8,', csvData);- return;- }-- saveToFile(csvData,- defaults.fileName + '.' + defaults.type,- 'text/' + (defaults.type === 'csv' ? 'csv' : 'plain'),- 'utf-8',- '',- (defaults.type === 'csv' && defaults.csvUseBOM));-- } else if (defaults.type === 'sql') {-- // Header- rowIndex = 0;- ranges = [];- var tdData = 'INSERT INTO ' + defaults.sql.tableEnclosure + defaults.tableName + defaults.sql.tableEnclosure + ' (';- $hrows = collectHeadRows($(el));- $($hrows).each(function () {- ForEachVisibleCell(this, 'th,td', rowIndex, $hrows.length,- function (cell, row, col) {- var colName = parseString(cell, row, col) || '';- if (colName.indexOf(defaults.sql.columnEnclosure) > -1)- colName = replaceAll(colName.toString(), defaults.sql.columnEnclosure, defaults.sql.columnEnclosure + defaults.sql.columnEnclosure);- tdData += defaults.sql.columnEnclosure + colName + defaults.sql.columnEnclosure + ',';- });- rowIndex++;- tdData = $.trim(tdData).substring(0, tdData.length - 1);- });- tdData += ') VALUES ';-- // Data- $rows = collectRows($(el));- $($rows).each(function () {- trData = '';- ForEachVisibleCell(this, 'td,th', rowIndex, $hrows.length + $rows.length,- function (cell, row, col) {- var dataString = parseString(cell, row, col) || '';- if (dataString.indexOf('\'') > -1)- dataString = replaceAll(dataString.toString(), '\'', '\'\'');- trData += '\'' + dataString + '\',';- });- if (trData.length > 3) {- tdData += '(' + trData;- tdData = $.trim(tdData).substring(0, tdData.length - 1);- tdData += '),';- }- rowIndex++;- });-- tdData = $.trim(tdData).substring(0, tdData.length - 1);- tdData += ';';-- // Output- if (defaults.outputMode === 'string')- return tdData;-- if (defaults.outputMode === 'base64')- return base64encode(tdData);-- saveToFile(tdData, defaults.fileName + '.sql', 'application/sql', 'utf-8', '', false);-- } else if (defaults.type === 'json') {- var jsonHeaderArray = [];- ranges = [];- $hrows = collectHeadRows($(el));- $($hrows).each(function () {- var jsonArrayTd = [];-- ForEachVisibleCell(this, 'th,td', rowIndex, $hrows.length,- function (cell, row, col) {- jsonArrayTd.push(parseString(cell, row, col));- });- jsonHeaderArray.push(jsonArrayTd);- });-- // Data- var jsonArray = [];-- $rows = collectRows($(el));- $($rows).each(function () {- var jsonObjectTd = {};- var colIndex = 0;-- ForEachVisibleCell(this, 'td,th', rowIndex, $hrows.length + $rows.length,- function (cell, row, col) {- if (jsonHeaderArray.length) {- jsonObjectTd[jsonHeaderArray[jsonHeaderArray.length - 1][colIndex]] = parseString(cell, row, col);- } else {- jsonObjectTd[colIndex] = parseString(cell, row, col);- }- colIndex++;- });- if ($.isEmptyObject(jsonObjectTd) === false)- jsonArray.push(jsonObjectTd);-- rowIndex++;- });-- var sdata;-- if (defaults.jsonScope === 'head')- sdata = JSON.stringify(jsonHeaderArray);- else if (defaults.jsonScope === 'data')- sdata = JSON.stringify(jsonArray);- else // all- sdata = JSON.stringify({header: jsonHeaderArray, data: jsonArray});-- if (defaults.outputMode === 'string')- return sdata;-- if (defaults.outputMode === 'base64')- return base64encode(sdata);-- saveToFile(sdata, defaults.fileName + '.json', 'application/json', 'utf-8', 'base64', false);-- } else if (defaults.type === 'xml') {- rowIndex = 0;- ranges = [];- var xml = '<?xml version="1.0" encoding="utf-8"?>';- xml += '<tabledata><fields>';-- // Header- $hrows = collectHeadRows($(el));- $($hrows).each(function () {-- ForEachVisibleCell(this, 'th,td', rowIndex, $hrows.length,- function (cell, row, col) {- xml += '<field>' + parseString(cell, row, col) + '</field>';- });- rowIndex++;- });- xml += '</fields><data>';-- // Data- var rowCount = 1;-- $rows = collectRows($(el));- $($rows).each(function () {- var colCount = 1;- trData = '';- ForEachVisibleCell(this, 'td,th', rowIndex, $hrows.length + $rows.length,- function (cell, row, col) {- trData += '<column-' + colCount + '>' + parseString(cell, row, col) + '</column-' + colCount + '>';- colCount++;- });- if (trData.length > 0 && trData !== '<column-1></column-1>') {- xml += '<row id="' + rowCount + '">' + trData + '</row>';- rowCount++;- }-- rowIndex++;- });- xml += '</data></tabledata>';-- // Output- if (defaults.outputMode === 'string')- return xml;-- if (defaults.outputMode === 'base64')- return base64encode(xml);-- saveToFile(xml, defaults.fileName + '.xml', 'application/xml', 'utf-8', 'base64', false);- } else if (defaults.type === 'excel' && defaults.mso.fileFormat === 'xmlss') {- var docDatas = [];- var docNames = [];-- $(el).filter(function () {- return isVisible($(this));- }).each(function () {- var $table = $(this);-- var ssName = '';- if (typeof defaults.mso.worksheetName === 'string' && defaults.mso.worksheetName.length)- ssName = defaults.mso.worksheetName + ' ' + (docNames.length + 1);- else if (typeof defaults.mso.worksheetName[docNames.length] !== 'undefined')- ssName = defaults.mso.worksheetName[docNames.length];- if (!ssName.length)- ssName = $table.find('caption').text() || '';- if (!ssName.length)- ssName = 'Table ' + (docNames.length + 1);- ssName = $.trim(ssName.replace(/[\\\/[\]*:?'"]/g, '').substring(0, 31));-- docNames.push($('<div />').text(ssName).html());-- if (defaults.exportHiddenCells === false) {- $hiddenTableElements = $table.find('tr, th, td').filter(':hidden');- checkCellVisibilty = $hiddenTableElements.length > 0;- }-- rowIndex = 0;- colNames = GetColumnNames(this);- docData = '<Table>\r';-- function CollectXmlssData ($rows, rowselector, length) {- var spans = [];-- $($rows).each(function () {- var ssIndex = 0;- var nCols = 0;- trData = '';-- ForEachVisibleCell(this, 'td,th', rowIndex, length + $rows.length,- function (cell, row, col) {- if (cell !== null) {- var style = '';- var data = parseString(cell, row, col);- var type = 'String';-- if (jQuery.isNumeric(data) !== false) {- type = 'Number';- } else {- var number = parsePercent(data);- if (number !== false) {- data = number;- type = 'Number';- style += ' ss:StyleID="pct1"';- }- }-- if (type !== 'Number')- data = data.replace(/\n/g, '<br>');-- var colspan = getColspan(cell);- var rowspan = getRowspan(cell);-- // Skip spans- $.each(spans, function () {- var range = this;- if (rowIndex >= range.s.r && rowIndex <= range.e.r && nCols >= range.s.c && nCols <= range.e.c) {- for (var i = 0; i <= range.e.c - range.s.c; ++i) {- nCols++;- ssIndex++;- }- }- });-- // Handle Row Span- if (rowspan || colspan) {- rowspan = rowspan || 1;- colspan = colspan || 1;- spans.push({- s: {r: rowIndex, c: nCols},- e: {r: rowIndex + rowspan - 1, c: nCols + colspan - 1}- });- }-- // Handle Colspan- if (colspan > 1) {- style += ' ss:MergeAcross="' + (colspan - 1) + '"';- nCols += (colspan - 1);- }-- if (rowspan > 1) {- style += ' ss:MergeDown="' + (rowspan - 1) + '" ss:StyleID="rsp1"';- }-- if (ssIndex > 0) {- style += ' ss:Index="' + (nCols + 1) + '"';- ssIndex = 0;- }-- trData += '<Cell' + style + '><Data ss:Type="' + type + '">' +- $('<div />').text(data).html() +- '</Data></Cell>\r';- nCols++;- }- });- if (trData.length > 0)- docData += '<Row ss:AutoFitHeight="0">\r' + trData + '</Row>\r';- rowIndex++;- });-- return $rows.length;- }-- var rowLength = CollectXmlssData(collectHeadRows($table), 'th,td', 0);- CollectXmlssData(collectRows($table), 'td,th', rowLength);-- docData += '</Table>\r';- docDatas.push(docData);- });-- var count = {};- var firstOccurences = {};- var item, itemCount;- for (var n = 0, c = docNames.length; n < c; n++) {- item = docNames[n];- itemCount = count[item];- itemCount = count[item] = (itemCount == null ? 1 : itemCount + 1);-- if (itemCount === 2)- docNames[firstOccurences[item]] = docNames[firstOccurences[item]].substring(0, 29) + '-1';- if (count[item] > 1)- docNames[n] = docNames[n].substring(0, 29) + '-' + count[item];- else- firstOccurences[item] = n;- }-- var CreationDate = new Date().toISOString();- var xmlssDocFile = '<?xml version="1.0" encoding="UTF-8"?>\r' +- '<?mso-application progid="Excel.Sheet"?>\r' +- '<Workbook xmlns="urn:schemas-microsoft-com:office:spreadsheet"\r' +- ' xmlns:o="urn:schemas-microsoft-com:office:office"\r' +- ' xmlns:x="urn:schemas-microsoft-com:office:excel"\r' +- ' xmlns:ss="urn:schemas-microsoft-com:office:spreadsheet"\r' +- ' xmlns:html="http://www.w3.org/TR/REC-html40">\r' +- '<DocumentProperties xmlns="urn:schemas-microsoft-com:office:office">\r' +- ' <Created>' + CreationDate + '</Created>\r' +- '</DocumentProperties>\r' +- '<OfficeDocumentSettings xmlns="urn:schemas-microsoft-com:office:office">\r' +- ' <AllowPNG/>\r' +- '</OfficeDocumentSettings>\r' +- '<ExcelWorkbook xmlns="urn:schemas-microsoft-com:office:excel">\r' +- ' <WindowHeight>9000</WindowHeight>\r' +- ' <WindowWidth>13860</WindowWidth>\r' +- ' <WindowTopX>0</WindowTopX>\r' +- ' <WindowTopY>0</WindowTopY>\r' +- ' <ProtectStructure>False</ProtectStructure>\r' +- ' <ProtectWindows>False</ProtectWindows>\r' +- '</ExcelWorkbook>\r' +- '<Styles>\r' +- ' <Style ss:ID="Default" ss:Name="Normal">\r' +- ' <Alignment ss:Vertical="Bottom"/>\r' +- ' <Borders/>\r' +- ' <Font/>\r' +- ' <Interior/>\r' +- ' <NumberFormat/>\r' +- ' <Protection/>\r' +- ' </Style>\r' +- ' <Style ss:ID="rsp1">\r' +- ' <Alignment ss:Vertical="Center"/>\r' +- ' </Style>\r' +- ' <Style ss:ID="pct1">\r' +- ' <NumberFormat ss:Format="Percent"/>\r' +- ' </Style>\r' +- '</Styles>\r';-- for (var j = 0; j < docDatas.length; j++) {- xmlssDocFile += '<Worksheet ss:Name="' + docNames[j] + '" ss:RightToLeft="' + (defaults.mso.rtl ? '1' : '0') + '">\r' +- docDatas[j];- if (defaults.mso.rtl) {- xmlssDocFile += '<WorksheetOptions xmlns="urn:schemas-microsoft-com:office:excel">\r' +- '<DisplayRightToLeft/>\r' +- '</WorksheetOptions>\r';- } else- xmlssDocFile += '<WorksheetOptions xmlns="urn:schemas-microsoft-com:office:excel"/>\r';- xmlssDocFile += '</Worksheet>\r';- }-- xmlssDocFile += '</Workbook>\r';-- if (defaults.outputMode === 'string')- return xmlssDocFile;-- if (defaults.outputMode === 'base64')- return base64encode(xmlssDocFile);-- saveToFile(xmlssDocFile, defaults.fileName + '.xml', 'application/xml', 'utf-8', 'base64', false);- } else if (defaults.type === 'excel' && defaults.mso.fileFormat === 'xlsx') {-- var sheetNames = [];- var workbook = XLSX.utils.book_new();-- // Multiple worksheets and .xlsx file extension #202-- $(el).filter(function () {- return isVisible($(this));- }).each(function () {- var $table = $(this);- var ws = xlsxTableToSheet(this);-- var sheetName = '';- if (typeof defaults.mso.worksheetName === 'string' && defaults.mso.worksheetName.length)- sheetName = defaults.mso.worksheetName + ' ' + (sheetNames.length + 1);- else if (typeof defaults.mso.worksheetName[sheetNames.length] !== 'undefined')- sheetName = defaults.mso.worksheetName[sheetNames.length];- if (!sheetName.length)- sheetName = $table.find('caption').text() || '';- if (!sheetName.length)- sheetName = 'Table ' + (sheetNames.length + 1);- sheetName = $.trim(sheetName.replace(/[\\\/[\]*:?'"]/g, '').substring(0, 31));-- sheetNames.push(sheetName);- XLSX.utils.book_append_sheet(workbook, ws, sheetName);- });-- // add worksheet to workbook- var wbout = XLSX.write(workbook, {type: 'binary', bookType: defaults.mso.fileFormat, bookSST: false});-- saveToFile(xlsxWorkbookToArrayBuffer(wbout),- defaults.fileName + '.' + defaults.mso.fileFormat,- 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet',- 'UTF-8', '', false);- } else if (defaults.type === 'excel' || defaults.type === 'xls' || defaults.type === 'word' || defaults.type === 'doc') {-- var MSDocType = (defaults.type === 'excel' || defaults.type === 'xls') ? 'excel' : 'word';- var MSDocExt = (MSDocType === 'excel') ? 'xls' : 'doc';- var MSDocSchema = 'xmlns:x="urn:schemas-microsoft-com:office:' + MSDocType + '"';- var docData = '';- var docName = '';-- $(el).filter(function () {- return isVisible($(this));- }).each(function () {- var $table = $(this);-- if (docName === '') {- docName = defaults.mso.worksheetName || $table.find('caption').text() || 'Table';- docName = $.trim(docName.replace(/[\\\/[\]*:?'"]/g, '').substring(0, 31));- }-- if (defaults.exportHiddenCells === false) {- $hiddenTableElements = $table.find('tr, th, td').filter(':hidden');- checkCellVisibilty = $hiddenTableElements.length > 0;- }-- rowIndex = 0;- ranges = [];- colNames = GetColumnNames(this);-- // Header- docData += '<table><thead>';- $hrows = collectHeadRows($table);- $($hrows).each(function () {- var $row = $(this);- trData = '';- ForEachVisibleCell(this, 'th,td', rowIndex, $hrows.length,- function (cell, row, col) {- if (cell !== null) {- var thstyle = '';-- trData += '<th';- if (defaults.mso.styles.length) {- var cellstyles = document.defaultView.getComputedStyle(cell, null);- var rowstyles = document.defaultView.getComputedStyle($row[0], null);-- for (var cssStyle in defaults.mso.styles) {- var thcss = cellstyles[defaults.mso.styles[cssStyle]];- if (thcss === '')- thcss = rowstyles[defaults.mso.styles[cssStyle]];- if (thcss !== '' && thcss !== '0px none rgb(0, 0, 0)' && thcss !== 'rgba(0, 0, 0, 0)') {- thstyle += (thstyle === '') ? 'style="' : ';';- thstyle += defaults.mso.styles[cssStyle] + ':' + thcss;- }- }- }- if (thstyle !== '')- trData += ' ' + thstyle + '"';-- var tdcolspan = getColspan(cell);- if (tdcolspan > 0)- trData += ' colspan="' + tdcolspan + '"';-- var tdrowspan = getRowspan(cell);- if (tdrowspan > 0)- trData += ' rowspan="' + tdrowspan + '"';-- trData += '>' + parseString(cell, row, col) + '</th>';- }- });- if (trData.length > 0)- docData += '<tr>' + trData + '</tr>';- rowIndex++;- });- docData += '</thead><tbody>';-- // Data- $rows = collectRows($table);- $($rows).each(function () {- var $row = $(this);- trData = '';- ForEachVisibleCell(this, 'td,th', rowIndex, $hrows.length + $rows.length,- function (cell, row, col) {- if (cell !== null) {- var tdvalue = parseString(cell, row, col);- var tdstyle = '';- var tdcss = $(cell).attr('data-tableexport-msonumberformat');-- if (typeof tdcss === 'undefined' && typeof defaults.mso.onMsoNumberFormat === 'function')- tdcss = defaults.mso.onMsoNumberFormat(cell, row, col);-- if (typeof tdcss !== 'undefined' && tdcss !== '')- tdstyle = 'style="mso-number-format:\'' + tdcss + '\'';-- if (defaults.mso.styles.length) {- var cellstyles = document.defaultView.getComputedStyle(cell, null);- var rowstyles = document.defaultView.getComputedStyle($row[0], null);-- for (var cssStyle in defaults.mso.styles) {- tdcss = cellstyles[defaults.mso.styles[cssStyle]];- if (tdcss === '')- tdcss = rowstyles[defaults.mso.styles[cssStyle]];-- if (tdcss !== '' && tdcss !== '0px none rgb(0, 0, 0)' && tdcss !== 'rgba(0, 0, 0, 0)') {- tdstyle += (tdstyle === '') ? 'style="' : ';';- tdstyle += defaults.mso.styles[cssStyle] + ':' + tdcss;- }- }- }-- trData += '<td';- if (tdstyle !== '')- trData += ' ' + tdstyle + '"';-- var tdcolspan = getColspan(cell);- if (tdcolspan > 0)- trData += ' colspan="' + tdcolspan + '"';-- var tdrowspan = getRowspan(cell);- if (tdrowspan > 0)- trData += ' rowspan="' + tdrowspan + '"';-- if (typeof tdvalue === 'string' && tdvalue !== '') {- tdvalue = preventInjection(tdvalue);- tdvalue = tdvalue.replace(/\n/g, '<br>');- }-- trData += '>' + tdvalue + '</td>';- }- });- if (trData.length > 0)- docData += '<tr>' + trData + '</tr>';- rowIndex++;- });-- if (defaults.displayTableName)- docData += '<tr><td></td></tr><tr><td></td></tr><tr><td>' + parseString($('<p>' + defaults.tableName + '</p>')) + '</td></tr>';-- docData += '</tbody></table>';- });-- //noinspection XmlUnusedNamespaceDeclaration- var docFile = '<html xmlns:o="urn:schemas-microsoft-com:office:office" ' + MSDocSchema + ' xmlns="http://www.w3.org/TR/REC-html40">';- docFile += '<meta http-equiv="content-type" content="application/vnd.ms-' + MSDocType + '; charset=UTF-8">';- docFile += '<head>';- if (MSDocType === 'excel') {- docFile += '<!--[if gte mso 9]>';- docFile += '<xml>';- docFile += '<x:ExcelWorkbook>';- docFile += '<x:ExcelWorksheets>';- docFile += '<x:ExcelWorksheet>';- docFile += '<x:Name>';- docFile += docName;- docFile += '</x:Name>';- docFile += '<x:WorksheetOptions>';- docFile += '<x:DisplayGridlines/>';- if (defaults.mso.rtl)- docFile += '<x:DisplayRightToLeft/>';- docFile += '</x:WorksheetOptions>';- docFile += '</x:ExcelWorksheet>';- docFile += '</x:ExcelWorksheets>';- docFile += '</x:ExcelWorkbook>';- docFile += '</xml>';- docFile += '<![endif]-->';- }- docFile += '<style>';-- docFile += '@page { size:' + defaults.mso.pageOrientation + '; mso-page-orientation:' + defaults.mso.pageOrientation + '; }';- docFile += '@page Section1 {size:' + pageFormats[defaults.mso.pageFormat][0] + 'pt ' + pageFormats[defaults.mso.pageFormat][1] + 'pt';- docFile += '; margin:1.0in 1.25in 1.0in 1.25in;mso-header-margin:.5in;mso-footer-margin:.5in;mso-paper-source:0;}';- docFile += 'div.Section1 {page:Section1;}';- docFile += '@page Section2 {size:' + pageFormats[defaults.mso.pageFormat][1] + 'pt ' + pageFormats[defaults.mso.pageFormat][0] + 'pt';- docFile += ';mso-page-orientation:' + defaults.mso.pageOrientation + ';margin:1.25in 1.0in 1.25in 1.0in;mso-header-margin:.5in;mso-footer-margin:.5in;mso-paper-source:0;}';- docFile += 'div.Section2 {page:Section2;}';-- docFile += 'br {mso-data-placement:same-cell;}';- docFile += '</style>';- docFile += '</head>';- docFile += '<body>';- docFile += '<div class="Section' + ((defaults.mso.pageOrientation === 'landscape') ? '2' : '1') + '">';- docFile += docData;- docFile += '</div>';- docFile += '</body>';- docFile += '</html>';-- if (defaults.outputMode === 'string')- return docFile;-- if (defaults.outputMode === 'base64')- return base64encode(docFile);-- saveToFile(docFile, defaults.fileName + '.' + MSDocExt, 'application/vnd.ms-' + MSDocType, '', 'base64', false);- } else if (defaults.type === 'png') {- html2canvas($(el)[0]).then(- function (canvas) {-- var image = canvas.toDataURL();- var byteString = atob(image.substring(22)); // remove data stuff- var buffer = new ArrayBuffer(byteString.length);- var intArray = new Uint8Array(buffer);-- for (var i = 0; i < byteString.length; i++)- intArray[i] = byteString.charCodeAt(i);-- if (defaults.outputMode === 'string')- return byteString;-- if (defaults.outputMode === 'base64')- return base64encode(image);-- if (defaults.outputMode === 'window') {- window.open(image);- return;- }-- saveToFile(buffer, defaults.fileName + '.png', 'image/png', '', '', false);- });-- } else if (defaults.type === 'pdf') {-- if (defaults.pdfmake.enabled === true) {- // pdf output using pdfmake- // https://github.com/bpampuch/pdfmake-- var widths = [];- var body = [];- rowIndex = 0;- ranges = [];-- /**- * @return {number}- */- var CollectPdfmakeData = function ($rows, colselector, length) {- var rlength = 0;-- $($rows).each(function () {- var r = [];-- ForEachVisibleCell(this, colselector, rowIndex, length,- function (cell, row, col) {- if (typeof cell !== 'undefined' && cell !== null) {-- var colspan = getColspan(cell);- var rowspan = getRowspan(cell);-- var cellValue = parseString(cell, row, col) || ' ';-- if (colspan > 1 || rowspan > 1) {- colspan = colspan || 1;- rowspan = rowspan || 1;- r.push({colSpan: colspan, rowSpan: rowspan, text: cellValue});- } else- r.push(cellValue);- } else- r.push(' ');- });-- if (r.length)- body.push(r);-- if (rlength < r.length)- rlength = r.length;-- rowIndex++;- });-- return rlength;- };-- $hrows = collectHeadRows($(this));-- var colcount = CollectPdfmakeData($hrows, 'th,td', $hrows.length);-- for (var i = widths.length; i < colcount; i++)- widths.push('*');-- // Data- $rows = collectRows($(this));-- CollectPdfmakeData($rows, 'th,td', $hrows.length + $rows.length);-- var docDefinition = {- content: [{- table: {- headerRows: $hrows.length,- widths: widths,- body: body- }- }]- };-- if (typeof pdfMake !== 'undefined') {-- pdfMake.fonts = {- Roboto: {- normal: 'Roboto-Regular.ttf',- bold: 'Roboto-Medium.ttf',- italics: 'Roboto-Italic.ttf',- bolditalics: 'Roboto-MediumItalic.ttf'- }- };-- if (pdfMake.vfs.hasOwnProperty ('Mirza-Regular.ttf')) {- defaults.pdfmake.docDefinition.defaultStyle.font = 'Mirza';- $.extend(true, pdfMake.fonts, {Mirza: {normal: 'Mirza-Regular.ttf',- bold: 'Mirza-Bold.ttf',- italics: 'Mirza-Medium.ttf',- bolditalics: 'Mirza-SemiBold.ttf'- }});- }- else if (pdfMake.vfs.hasOwnProperty ('gbsn00lp.ttf')) {- defaults.pdfmake.docDefinition.defaultStyle.font = 'gbsn00lp';- $.extend(true, pdfMake.fonts, {gbsn00lp: {normal: 'gbsn00lp.ttf',- bold: 'gbsn00lp.ttf',- italics: 'gbsn00lp.ttf',- bolditalics: 'gbsn00lp.ttf'- }});- }- else if (pdfMake.vfs.hasOwnProperty ('ZCOOLXiaoWei-Regular.ttf')) {- defaults.pdfmake.docDefinition.defaultStyle.font = 'ZCOOLXiaoWei';- $.extend(true, pdfMake.fonts, {ZCOOLXiaoWei: {normal: 'ZCOOLXiaoWei-Regular.ttf',- bold: 'ZCOOLXiaoWei-Regular.ttf',- italics: 'ZCOOLXiaoWei-Regular.ttf',- bolditalics: 'ZCOOLXiaoWei-Regular.ttf'- }});- }-- $.extend(true, docDefinition, defaults.pdfmake.docDefinition);- $.extend(true, pdfMake.fonts, defaults.pdfmake.fonts);-- if (typeof pdfMake.createPdf !== 'undefined') {- pdfMake.createPdf(docDefinition).getBuffer(function (buffer) {- saveToFile(buffer, defaults.fileName + '.pdf', 'application/pdf', '', '', false);- });- }- }- } else if (defaults.jspdf.autotable === false) {- // pdf output using jsPDF's core html support-- var addHtmlOptions = {- dim: {- w: getPropertyUnitValue($(el).first().get(0), 'width', 'mm'),- h: getPropertyUnitValue($(el).first().get(0), 'height', 'mm')- },- pagesplit: false- };-- var doc = new jsPDF(defaults.jspdf.orientation, defaults.jspdf.unit, defaults.jspdf.format);- doc.addHTML($(el).first(),- defaults.jspdf.margins.left,- defaults.jspdf.margins.top,- addHtmlOptions,- function () {- jsPdfOutput(doc, false);- });- //delete doc;- } else {- // pdf output using jsPDF AutoTable plugin- // https://github.com/simonbengtsson/jsPDF-AutoTable-- var teOptions = defaults.jspdf.autotable.tableExport;-- // When setting jspdf.format to 'bestfit' tableExport tries to choose- // the minimum required paper format and orientation in which the table- // (or tables in multitable mode) completely fits without column adjustment- if (typeof defaults.jspdf.format === 'string' && defaults.jspdf.format.toLowerCase() === 'bestfit') {- var rk = '', ro = '';- var mw = 0;-- $(el).each(function () {- if (isVisible($(this))) {- var w = getPropertyUnitValue($(this).get(0), 'width', 'pt');-- if (w > mw) {- if (w > pageFormats.a0[0]) {- rk = 'a0';- ro = 'l';- }- for (var key in pageFormats) {- if (pageFormats.hasOwnProperty(key)) {- if (pageFormats[key][1] > w) {- rk = key;- ro = 'l';- if (pageFormats[key][0] > w)- ro = 'p';- }- }- }- mw = w;- }- }- });- defaults.jspdf.format = (rk === '' ? 'a4' : rk);- defaults.jspdf.orientation = (ro === '' ? 'w' : ro);- }-- // The jsPDF doc object is stored in defaults.jspdf.autotable.tableExport,- // thus it can be accessed from any callback function- if (teOptions.doc == null) {- teOptions.doc = new jsPDF(defaults.jspdf.orientation,- defaults.jspdf.unit,- defaults.jspdf.format);- teOptions.wScaleFactor = 1;- teOptions.hScaleFactor = 1;-- if (typeof defaults.jspdf.onDocCreated === 'function')- defaults.jspdf.onDocCreated(teOptions.doc);- }-- if (teOptions.outputImages === true)- teOptions.images = {};-- if (typeof teOptions.images !== 'undefined') {- $(el).filter(function () {- return isVisible($(this));- }).each(function () {- var rowCount = 0;- ranges = [];-- if (defaults.exportHiddenCells === false) {- $hiddenTableElements = $(this).find('tr, th, td').filter(':hidden');- checkCellVisibilty = $hiddenTableElements.length > 0;- }-- $hrows = collectHeadRows($(this));- $rows = collectRows($(this));-- $($rows).each(function () {- ForEachVisibleCell(this, 'td,th', $hrows.length + rowCount, $hrows.length + $rows.length,- function (cell) {- collectImages(cell, $(cell).children(), teOptions);- });- rowCount++;- });- });-- $hrows = [];- $rows = [];- }-- loadImages(teOptions, function () {- $(el).filter(function () {- return isVisible($(this));- }).each(function () {- var colKey;- rowIndex = 0;- ranges = [];-- if (defaults.exportHiddenCells === false) {- $hiddenTableElements = $(this).find('tr, th, td').filter(':hidden');- checkCellVisibilty = $hiddenTableElements.length > 0;- }-- colNames = GetColumnNames(this);-- teOptions.columns = [];- teOptions.rows = [];- teOptions.teCells = {};-- // onTable: optional callback function for every matching table that can be used- // to modify the tableExport options or to skip the output of a particular table- // if the table selector targets multiple tables- if (typeof teOptions.onTable === 'function')- if (teOptions.onTable($(this), defaults) === false)- return true; // continue to next iteration step (table)-- // each table works with an own copy of AutoTable options- defaults.jspdf.autotable.tableExport = null; // avoid deep recursion error- var atOptions = $.extend(true, {}, defaults.jspdf.autotable);- defaults.jspdf.autotable.tableExport = teOptions;-- atOptions.margin = {};- $.extend(true, atOptions.margin, defaults.jspdf.margins);- atOptions.tableExport = teOptions;-- // Fix jsPDF Autotable's row height calculation- if (typeof atOptions.beforePageContent !== 'function') {- atOptions.beforePageContent = function (data) {- if (data.pageCount === 1) {- var all = data.table.rows.concat(data.table.headerRow);- $.each(all, function () {- var row = this;- if (row.height > 0) {- row.height += (2 - FONT_ROW_RATIO) / 2 * row.styles.fontSize;- data.table.height += (2 - FONT_ROW_RATIO) / 2 * row.styles.fontSize;- }- });- }- };- }-- if (typeof atOptions.createdHeaderCell !== 'function') {- // apply some original css styles to pdf header cells- atOptions.createdHeaderCell = function (cell, data) {-- // jsPDF AutoTable plugin v2.0.14 fix: each cell needs its own styles object- cell.styles = $.extend({}, data.row.styles);-- if (typeof teOptions.columns [data.column.dataKey] !== 'undefined') {- var col = teOptions.columns [data.column.dataKey];-- if (typeof col.rect !== 'undefined') {- var rh;-- cell.contentWidth = col.rect.width;-- if (typeof teOptions.heightRatio === 'undefined' || teOptions.heightRatio === 0) {- if (data.row.raw [data.column.dataKey].rowspan)- rh = data.row.raw [data.column.dataKey].rect.height / data.row.raw [data.column.dataKey].rowspan;- else- rh = data.row.raw [data.column.dataKey].rect.height;-- teOptions.heightRatio = cell.styles.rowHeight / rh;- }-- rh = data.row.raw [data.column.dataKey].rect.height * teOptions.heightRatio;- if (rh > cell.styles.rowHeight)- cell.styles.rowHeight = rh;- }-- cell.styles.halign = (atOptions.headerStyles.halign === 'inherit') ? 'center' : atOptions.headerStyles.halign;- cell.styles.valign = atOptions.headerStyles.valign;-- if (typeof col.style !== 'undefined' && col.style.hidden !== true) {- if (atOptions.headerStyles.halign === 'inherit')- cell.styles.halign = col.style.align;- if (atOptions.styles.fillColor === 'inherit')- cell.styles.fillColor = col.style.bcolor;- if (atOptions.styles.textColor === 'inherit')- cell.styles.textColor = col.style.color;- if (atOptions.styles.fontStyle === 'inherit')- cell.styles.fontStyle = col.style.fstyle;- }- }- };- }-- if (typeof atOptions.createdCell !== 'function') {- // apply some original css styles to pdf table cells- atOptions.createdCell = function (cell, data) {- var tecell = teOptions.teCells [data.row.index + ':' + data.column.dataKey];-- cell.styles.halign = (atOptions.styles.halign === 'inherit') ? 'center' : atOptions.styles.halign;- cell.styles.valign = atOptions.styles.valign;-- if (typeof tecell !== 'undefined' && typeof tecell.style !== 'undefined' && tecell.style.hidden !== true) {- if (atOptions.styles.halign === 'inherit')- cell.styles.halign = tecell.style.align;- if (atOptions.styles.fillColor === 'inherit')- cell.styles.fillColor = tecell.style.bcolor;- if (atOptions.styles.textColor === 'inherit')- cell.styles.textColor = tecell.style.color;- if (atOptions.styles.fontStyle === 'inherit')- cell.styles.fontStyle = tecell.style.fstyle;- }- };- }-- if (typeof atOptions.drawHeaderCell !== 'function') {- atOptions.drawHeaderCell = function (cell, data) {- var colopt = teOptions.columns [data.column.dataKey];-- if ((colopt.style.hasOwnProperty('hidden') !== true || colopt.style.hidden !== true) &&- colopt.rowIndex >= 0)- return prepareAutoTableText(cell, data, colopt);- else- return false; // cell is hidden- };- }-- if (typeof atOptions.drawCell !== 'function') {- atOptions.drawCell = function (cell, data) {- var tecell = teOptions.teCells [data.row.index + ':' + data.column.dataKey];- var draw2canvas = (typeof tecell !== 'undefined' && tecell.isCanvas);-- if (draw2canvas !== true) {- if (prepareAutoTableText(cell, data, tecell)) {-- teOptions.doc.rect(cell.x, cell.y, cell.width, cell.height, cell.styles.fillStyle);-- if (typeof tecell !== 'undefined' &&- (typeof tecell.hasUserDefText === 'undefined' || tecell.hasUserDefText !== true) &&- typeof tecell.elements !== 'undefined' && tecell.elements.length) {-- var hScale = cell.height / tecell.rect.height;- if (hScale > teOptions.hScaleFactor)- teOptions.hScaleFactor = hScale;- teOptions.wScaleFactor = cell.width / tecell.rect.width;-- var ySave = cell.textPos.y;- drawAutotableElements(cell, tecell.elements, teOptions);- cell.textPos.y = ySave;-- drawAutotableText(cell, tecell.elements, teOptions);- } else- drawAutotableText(cell, {}, teOptions);- }- } else {- var container = tecell.elements[0];- var imgId = $(container).attr('data-tableexport-canvas');- var r = container.getBoundingClientRect();-- cell.width = r.width * teOptions.wScaleFactor;- cell.height = r.height * teOptions.hScaleFactor;- data.row.height = cell.height;-- jsPdfDrawImage(cell, container, imgId, teOptions);- }- return false;- };- }-- // collect header and data rows- teOptions.headerrows = [];- $hrows = collectHeadRows($(this));- $($hrows).each(function () {- colKey = 0;- teOptions.headerrows[rowIndex] = [];-- ForEachVisibleCell(this, 'th,td', rowIndex, $hrows.length,- function (cell, row, col) {- var obj = getCellStyles(cell);- obj.title = parseString(cell, row, col);- obj.key = colKey++;- obj.rowIndex = rowIndex;- teOptions.headerrows[rowIndex].push(obj);- });- rowIndex++;- });-- if (rowIndex > 0) {- // iterate through last row- var lastrow = rowIndex - 1;- while (lastrow >= 0) {- $.each(teOptions.headerrows[lastrow], function () {- var obj = this;-- if (lastrow > 0 && this.rect === null)- obj = teOptions.headerrows[lastrow - 1][this.key];-- if (obj !== null && obj.rowIndex >= 0 &&- (obj.style.hasOwnProperty('hidden') !== true || obj.style.hidden !== true))- teOptions.columns.push(obj);- });-- lastrow = (teOptions.columns.length > 0) ? -1 : lastrow - 1;- }- }-- var rowCount = 0;- $rows = [];- $rows = collectRows($(this));- $($rows).each(function () {- var rowData = [];- colKey = 0;-- ForEachVisibleCell(this, 'td,th', rowIndex, $hrows.length + $rows.length,- function (cell, row, col) {- var obj;-- if (typeof teOptions.columns[colKey] === 'undefined') {- // jsPDF-Autotable needs columns. Thus define hidden ones for tables without thead- obj = {- title: '',- key: colKey,- style: {- hidden: true- }- };- teOptions.columns.push(obj);- }-- rowData.push(parseString(cell, row, col));-- if (typeof cell !== 'undefined' && cell !== null) {- obj = getCellStyles(cell);- obj.isCanvas = cell.hasAttribute('data-tableexport-canvas');- obj.elements = obj.isCanvas ? $(cell) : $(cell).children();-- if(typeof $(cell).data('teUserDefText') !== 'undefined')- obj.hasUserDefText = true;-- teOptions.teCells [rowCount + ':' + colKey++] = obj;- } else {- obj = $.extend(true, {}, teOptions.teCells [rowCount + ':' + (colKey - 1)]);- obj.colspan = -1;- teOptions.teCells [rowCount + ':' + colKey++] = obj;- }- });- if (rowData.length) {- teOptions.rows.push(rowData);- rowCount++;- }- rowIndex++;- });-- // onBeforeAutotable: optional callback function before calling- // jsPDF AutoTable that can be used to modify the AutoTable options- if (typeof teOptions.onBeforeAutotable === 'function')- teOptions.onBeforeAutotable($(this), teOptions.columns, teOptions.rows, atOptions);-- teOptions.doc.autoTable(teOptions.columns, teOptions.rows, atOptions);-- // onAfterAutotable: optional callback function after returning- // from jsPDF AutoTable that can be used to modify the AutoTable options- if (typeof teOptions.onAfterAutotable === 'function')- teOptions.onAfterAutotable($(this), atOptions);-- // set the start position for the next table (in case there is one)- defaults.jspdf.autotable.startY = teOptions.doc.autoTableEndPosY() + atOptions.margin.top;-- });-- jsPdfOutput(teOptions.doc, (typeof teOptions.images !== 'undefined' && jQuery.isEmptyObject(teOptions.images) === false));-- if (typeof teOptions.headerrows !== 'undefined')- teOptions.headerrows.length = 0;- if (typeof teOptions.columns !== 'undefined')- teOptions.columns.length = 0;- if (typeof teOptions.rows !== 'undefined')- teOptions.rows.length = 0;- delete teOptions.doc;- teOptions.doc = null;- });- }- }-- function collectHeadRows ($table) {- var result = [];- findTableElements($table, 'thead').each(function () {- result.push.apply(result, findTableElements($(this), defaults.theadSelector).toArray());- });- return result;- }-- function collectRows ($table) {- var result = [];- findTableElements($table, 'tbody').each(function () {- result.push.apply(result, findTableElements($(this), defaults.tbodySelector).toArray());- });- if (defaults.tfootSelector.length) {- findTableElements($table, 'tfoot').each(function () {- result.push.apply(result, findTableElements($(this), defaults.tfootSelector).toArray());- });- }- return result;- }-- function findTableElements ($parent, selector) {- var parentSelector = $parent[0].tagName;- var parentLevel = $parent.parents(parentSelector).length;- return $parent.find(selector).filter(function () {- return parentLevel === $(this).closest(parentSelector).parents(parentSelector).length;- });- }-- function GetColumnNames (table) {- var result = [];- $(table).find('thead').first().find('th').each(function (index, el) {- if ($(el).attr('data-field') !== undefined)- result[index] = $(el).attr('data-field');- else- result[index] = index.toString();- });- return result;- }-- function isVisible ($element) {- var isRow = typeof $element[0].rowIndex !== 'undefined';- var isCell = isRow === false && typeof $element[0].cellIndex !== 'undefined';- var isElementVisible = (isCell || isRow) ? isTableElementVisible($element) : $element.is(':visible');- var tableexportDisplay = $element.attr('data-tableexport-display');-- if (isCell && tableexportDisplay !== 'none' && tableexportDisplay !== 'always') {- $element = $($element[0].parentNode);- isRow = typeof $element[0].rowIndex !== 'undefined';- tableexportDisplay = $element.attr('data-tableexport-display');- }- if (isRow && tableexportDisplay !== 'none' && tableexportDisplay !== 'always') {- tableexportDisplay = $element.closest('table').attr('data-tableexport-display');- }-- return tableexportDisplay !== 'none' && (isElementVisible === true || tableexportDisplay === 'always');- }-- function isTableElementVisible ($element) {- var hiddenEls = [];-- if (checkCellVisibilty) {- hiddenEls = $hiddenTableElements.filter(function () {- var found = false;-- if (this.nodeType === $element[0].nodeType) {- if (typeof this.rowIndex !== 'undefined' && this.rowIndex === $element[0].rowIndex)- found = true;- else if (typeof this.cellIndex !== 'undefined' && this.cellIndex === $element[0].cellIndex &&- typeof this.parentNode.rowIndex !== 'undefined' &&- typeof $element[0].parentNode.rowIndex !== 'undefined' &&- this.parentNode.rowIndex === $element[0].parentNode.rowIndex)- found = true;- }- return found;- });- }- return (checkCellVisibilty === false || hiddenEls.length === 0);- }-- function isColumnIgnored ($cell, rowLength, colIndex) {- var result = false;-- if (isVisible($cell)) {- if (defaults.ignoreColumn.length > 0) {- if ($.inArray(colIndex, defaults.ignoreColumn) !== -1 ||- $.inArray(colIndex - rowLength, defaults.ignoreColumn) !== -1 ||- (colNames.length > colIndex && typeof colNames[colIndex] !== 'undefined' &&- $.inArray(colNames[colIndex], defaults.ignoreColumn) !== -1))- result = true;- }- } else- result = true;-- return result;- }-- function ForEachVisibleCell (tableRow, selector, rowIndex, rowCount, cellcallback) {- if (typeof (cellcallback) === 'function') {- var ignoreRow = false;-- if (typeof defaults.onIgnoreRow === 'function')- ignoreRow = defaults.onIgnoreRow($(tableRow), rowIndex);-- if (ignoreRow === false &&- (defaults.ignoreRow.length === 0 ||- ($.inArray(rowIndex, defaults.ignoreRow) === -1 &&- $.inArray(rowIndex - rowCount, defaults.ignoreRow) === -1)) &&- isVisible($(tableRow))) {-- var $cells = findTableElements($(tableRow), selector);- var cellCount = 0;-- $cells.each(function (colIndex) {- var $cell = $(this);- var c;- var colspan = getColspan(this);- var rowspan = getRowspan(this);-- // Skip ranges- $.each(ranges, function () {- var range = this;- if (rowIndex >= range.s.r && rowIndex <= range.e.r && cellCount >= range.s.c && cellCount <= range.e.c) {- for (c = 0; c <= range.e.c - range.s.c; ++c)- cellcallback(null, rowIndex, cellCount++);- }- });-- if (isColumnIgnored($cell, $cells.length, colIndex) === false) {- // Handle Row Span- if (rowspan || colspan) {- rowspan = rowspan || 1;- colspan = colspan || 1;- ranges.push({- s: {r: rowIndex, c: cellCount},- e: {r: rowIndex + rowspan - 1, c: cellCount + colspan - 1}- });- }-- // Handle Value- cellcallback(this, rowIndex, cellCount++);- }-- // Handle Colspan- if (colspan)- for (c = 0; c < colspan - 1; ++c)- cellcallback(null, rowIndex, cellCount++);- });-- // Skip ranges- $.each(ranges, function () {- var range = this;- if (rowIndex >= range.s.r && rowIndex <= range.e.r && cellCount >= range.s.c && cellCount <= range.e.c) {- for (c = 0; c <= range.e.c - range.s.c; ++c)- cellcallback(null, rowIndex, cellCount++);- }- });- }- }- }-- function jsPdfDrawImage (cell, container, imgId, teOptions) {- if (typeof teOptions.images !== 'undefined') {- var image = teOptions.images[imgId];-- if (typeof image !== 'undefined') {- var r = container.getBoundingClientRect();- var arCell = cell.width / cell.height;- var arImg = r.width / r.height;- var imgWidth = cell.width;- var imgHeight = cell.height;- var px2pt = 0.264583 * 72 / 25.4;- var uy = 0;-- if (arImg <= arCell) {- imgHeight = Math.min(cell.height, r.height);- imgWidth = r.width * imgHeight / r.height;- } else if (arImg > arCell) {- imgWidth = Math.min(cell.width, r.width);- imgHeight = r.height * imgWidth / r.width;- }-- imgWidth *= px2pt;- imgHeight *= px2pt;-- if (imgHeight < cell.height)- uy = (cell.height - imgHeight) / 2;-- try {- teOptions.doc.addImage(image.src, cell.textPos.x, cell.y + uy, imgWidth, imgHeight);- } catch (e) {- // TODO: IE -> convert png to jpeg- }- cell.textPos.x += imgWidth;- }- }- }-- function jsPdfOutput (doc, hasimages) {- if (defaults.outputMode === 'string')- return doc.output();-- if (defaults.outputMode === 'base64')- return base64encode(doc.output());-- if (defaults.outputMode === 'window') {- window.URL = window.URL || window.webkitURL;- window.open(window.URL.createObjectURL(doc.output('blob')));- return;- }-- try {- var blob = doc.output('blob');- saveAs(blob, defaults.fileName + '.pdf');- } catch (e) {- downloadFile(defaults.fileName + '.pdf',- 'data:application/pdf' + (hasimages ? '' : ';base64') + ',',- hasimages ? doc.output('blob') : doc.output());- }- }-- function prepareAutoTableText (cell, data, cellopt) {- var cs = 0;- if (typeof cellopt !== 'undefined')- cs = cellopt.colspan;-- if (cs >= 0) {- // colspan handling- var cellWidth = cell.width;- var textPosX = cell.textPos.x;- var i = data.table.columns.indexOf(data.column);-- for (var c = 1; c < cs; c++) {- var column = data.table.columns[i + c];- cellWidth += column.width;- }-- if (cs > 1) {- if (cell.styles.halign === 'right')- textPosX = cell.textPos.x + cellWidth - cell.width;- else if (cell.styles.halign === 'center')- textPosX = cell.textPos.x + (cellWidth - cell.width) / 2;- }-- cell.width = cellWidth;- cell.textPos.x = textPosX;-- if (typeof cellopt !== 'undefined' && cellopt.rowspan > 1)- cell.height = cell.height * cellopt.rowspan;-- // fix jsPDF's calculation of text position- if (cell.styles.valign === 'middle' || cell.styles.valign === 'bottom') {- var splittedText = typeof cell.text === 'string' ? cell.text.split(/\r\n|\r|\n/g) : cell.text;- var lineCount = splittedText.length || 1;- if (lineCount > 2)- cell.textPos.y -= ((2 - FONT_ROW_RATIO) / 2 * data.row.styles.fontSize) * (lineCount - 2) / 3;- }- return true;- } else- return false; // cell is hidden (colspan = -1), don't draw it- }-- function collectImages (cell, elements, teOptions) {- if (typeof cell !== 'undefined' && cell !== null) {-- if (cell.hasAttribute('data-tableexport-canvas')) {- var imgId = new Date().getTime();- $(cell).attr('data-tableexport-canvas', imgId);-- teOptions.images[imgId] = {- url: '[data-tableexport-canvas="' + imgId + '"]',- src: null- };- } else if (elements !== 'undefined' && elements != null) {- elements.each(function () {- if ($(this).is('img')) {- var imgId = strHashCode(this.src);- teOptions.images[imgId] = {- url: this.src,- src: this.src- };- }- collectImages(cell, $(this).children(), teOptions);- });- }- }- }-- function loadImages (teOptions, callback) {- var imageCount = 0;- var pendingCount = 0;-- function done () {- callback(imageCount);- }-- function loadImage (image) {- if (image.url) {- if (!image.src) {- var $imgContainer = $(image.url);- if ($imgContainer.length) {- imageCount = ++pendingCount;-- html2canvas($imgContainer[0]).then(function (canvas) {- image.src = canvas.toDataURL('image/png');- if (!--pendingCount)- done();- });- }- } else {- var img = new Image();- imageCount = ++pendingCount;- img.crossOrigin = 'Anonymous';- img.onerror = img.onload = function () {- if (img.complete) {-- if (img.src.indexOf('data:image/') === 0) {- img.width = image.width || img.width || 0;- img.height = image.height || img.height || 0;- }-- if (img.width + img.height) {- var canvas = document.createElement('canvas');- var ctx = canvas.getContext('2d');-- canvas.width = img.width;- canvas.height = img.height;- ctx.drawImage(img, 0, 0);-- image.src = canvas.toDataURL('image/png');- }- }- if (!--pendingCount)- done();- };- img.src = image.url;- }- }- }-- if (typeof teOptions.images !== 'undefined') {- for (var i in teOptions.images)- if (teOptions.images.hasOwnProperty(i))- loadImage(teOptions.images[i]);- }-- return pendingCount || done();- }-- function drawAutotableElements (cell, elements, teOptions) {- elements.each(function () {- if ($(this).is('div')) {- var bcolor = rgb2array(getStyle(this, 'background-color'), [255, 255, 255]);- var lcolor = rgb2array(getStyle(this, 'border-top-color'), [0, 0, 0]);- var lwidth = getPropertyUnitValue(this, 'border-top-width', defaults.jspdf.unit);-- var r = this.getBoundingClientRect();- var ux = this.offsetLeft * teOptions.wScaleFactor;- var uy = this.offsetTop * teOptions.hScaleFactor;- var uw = r.width * teOptions.wScaleFactor;- var uh = r.height * teOptions.hScaleFactor;-- teOptions.doc.setDrawColor.apply(undefined, lcolor);- teOptions.doc.setFillColor.apply(undefined, bcolor);- teOptions.doc.setLineWidth(lwidth);- teOptions.doc.rect(cell.x + ux, cell.y + uy, uw, uh, lwidth ? 'FD' : 'F');- } else if ($(this).is('img')) {- var imgId = strHashCode(this.src);- jsPdfDrawImage(cell, this, imgId, teOptions);- }-- drawAutotableElements(cell, $(this).children(), teOptions);- });- }-- function drawAutotableText (cell, texttags, teOptions) {- if (typeof teOptions.onAutotableText === 'function') {- teOptions.onAutotableText(teOptions.doc, cell, texttags);- } else {- var x = cell.textPos.x;- var y = cell.textPos.y;- var style = {halign: cell.styles.halign, valign: cell.styles.valign};-- if (texttags.length) {- var tag = texttags[0];- while (tag.previousSibling)- tag = tag.previousSibling;-- var b = false, i = false;-- while (tag) {- var txt = tag.innerText || tag.textContent || '';- var leadingspace = (txt.length && txt[0] === ' ') ? ' ' : '';- var trailingspace = (txt.length > 1 && txt[txt.length - 1] === ' ') ? ' ' : '';-- if (defaults.preserve.leadingWS !== true)- txt = leadingspace + trimLeft(txt);- if (defaults.preserve.trailingWS !== true)- txt = trimRight(txt) + trailingspace;-- if ($(tag).is('br')) {- x = cell.textPos.x;- y += teOptions.doc.internal.getFontSize();- }-- if ($(tag).is('b'))- b = true;- else if ($(tag).is('i'))- i = true;-- if (b || i)- teOptions.doc.setFontType((b && i) ? 'bolditalic' : b ? 'bold' : 'italic');-- var w = teOptions.doc.getStringUnitWidth(txt) * teOptions.doc.internal.getFontSize();-- if (w) {- if (cell.styles.overflow === 'linebreak' &&- x > cell.textPos.x && (x + w) > (cell.textPos.x + cell.width)) {- var chars = '.,!%*;:=-';- if (chars.indexOf(txt.charAt(0)) >= 0) {- var s = txt.charAt(0);- w = teOptions.doc.getStringUnitWidth(s) * teOptions.doc.internal.getFontSize();- if ((x + w) <= (cell.textPos.x + cell.width)) {- teOptions.doc.autoTableText(s, x, y, style);- txt = txt.substring(1, txt.length);- }- w = teOptions.doc.getStringUnitWidth(txt) * teOptions.doc.internal.getFontSize();- }- x = cell.textPos.x;- y += teOptions.doc.internal.getFontSize();- }-- if (cell.styles.overflow !== 'visible') {- while (txt.length && (x + w) > (cell.textPos.x + cell.width)) {- txt = txt.substring(0, txt.length - 1);- w = teOptions.doc.getStringUnitWidth(txt) * teOptions.doc.internal.getFontSize();- }- }-- teOptions.doc.autoTableText(txt, x, y, style);- x += w;- }-- if (b || i) {- if ($(tag).is('b'))- b = false;- else if ($(tag).is('i'))- i = false;-- teOptions.doc.setFontType((!b && !i) ? 'normal' : b ? 'bold' : 'italic');- }-- tag = tag.nextSibling;- }- cell.textPos.x = x;- cell.textPos.y = y;- } else {- teOptions.doc.autoTableText(cell.text, cell.textPos.x, cell.textPos.y, style);- }- }- }-- function escapeRegExp (string) {- return string == null ? '' : string.toString().replace(/([.*+?^=!:${}()|\[\]\/\\])/g, '\\$1');- }-- function replaceAll (string, find, replace) {- return string == null ? '' : string.toString().replace(new RegExp(escapeRegExp(find), 'g'), replace);- }-- function trimLeft (string) {- return string == null ? '' : string.toString().replace(/^\s+/, '');- }-- function trimRight (string) {- return string == null ? '' : string.toString().replace(/\s+$/, '');- }-- function parseDateUTC (s) {- if (defaults.date.html.length === 0)- return false;-- defaults.date.pattern.lastIndex = 0;-- var match = defaults.date.pattern.exec(s);- if (match == null)- return false;-- var y = +match[defaults.date.match_y];- if (y < 0 || y > 8099) return false;- var m = match[defaults.date.match_m] * 1;- var d = match[defaults.date.match_d] * 1;- if (!isFinite(d)) return false;-- var o = new Date(y, m - 1, d, 0, 0, 0);- if (o.getFullYear() === y && o.getMonth() === (m - 1) && o.getDate() === d)- return new Date(Date.UTC(y, m - 1, d, 0, 0, 0));- else- return false;- }-- function parseNumber (value) {- value = value || '0';- if ('' !== defaults.numbers.html.thousandsSeparator)- value = replaceAll(value, defaults.numbers.html.thousandsSeparator, '');- if ('.' !== defaults.numbers.html.decimalMark)- value = replaceAll(value, defaults.numbers.html.decimalMark, '.');-- return typeof value === 'number' || jQuery.isNumeric(value) !== false ? value : false;- }-- function parsePercent (value) {- if (value.indexOf('%') > -1) {- value = parseNumber(value.replace(/%/g, ''));- if (value !== false)- value = value / 100;- } else- value = false;- return value;- }-- function parseString (cell, rowIndex, colIndex, cellInfo) {- var result = '';- var cellType = 'text';-- if (cell !== null) {- var $cell = $(cell);- var htmlData;-- $cell.removeData('teUserDefText');-- if ($cell[0].hasAttribute('data-tableexport-canvas')) {- htmlData = '';- } else if ($cell[0].hasAttribute('data-tableexport-value')) {- htmlData = $cell.attr('data-tableexport-value');- htmlData = htmlData ? htmlData + '' : '';- $cell.data('teUserDefText', 1);- } else {- htmlData = $cell.html();-- if (typeof defaults.onCellHtmlData === 'function') {- htmlData = defaults.onCellHtmlData($cell, rowIndex, colIndex, htmlData);- $cell.data('teUserDefText', 1);- }- else if (htmlData !== '') {- var html = $.parseHTML(htmlData);- var inputidx = 0;- var selectidx = 0;-- htmlData = '';- $.each(html, function () {- if ($(this).is('input')) {- htmlData += $cell.find('input').eq(inputidx++).val();- }- else if ($(this).is('select')) {- htmlData += $cell.find('select option:selected').eq(selectidx++).text();- }- else if ($(this).is('br')) {- htmlData += '<br>';- }- else {- if (typeof $(this).html() === 'undefined')- htmlData += $(this).text();- else if (jQuery().bootstrapTable === undefined ||- ($(this).hasClass('fht-cell') === false && // BT 4- $(this).hasClass('filterControl') === false &&- $cell.parents('.detail-view').length === 0))- htmlData += $(this).html();-- if ($(this).is('a')) {- var href = $cell.find('a').attr('href') || '';- if (typeof defaults.onCellHtmlHyperlink === 'function')- result += defaults.onCellHtmlHyperlink($cell, rowIndex, colIndex, href, htmlData);- else if (defaults.htmlHyperlink === 'href')- result += href;- else // 'content'- result += htmlData;- htmlData = '';- }- }- });- }- }-- if (htmlData && htmlData !== '' && defaults.htmlContent === true) {- result = $.trim(htmlData);- } else if (htmlData && htmlData !== '') {- var cellFormat = $cell.attr('data-tableexport-cellformat');-- if (cellFormat !== '') {- var text = htmlData.replace(/\n/g, '\u2028').replace(/(<\s*br([^>]*)>)/gi, '\u2060');- var obj = $('<div/>').html(text).contents();- var number = false;- text = '';-- $.each(obj.text().split('\u2028'), function (i, v) {- if (i > 0)- text += ' ';-- if (defaults.preserve.leadingWS !== true)- v = trimLeft(v);- text += (defaults.preserve.trailingWS !== true) ? trimRight(v) : v;- });-- $.each(text.split('\u2060'), function (i, v) {- if (i > 0)- result += '\n';-- if (defaults.preserve.leadingWS !== true)- v = trimLeft(v);- if (defaults.preserve.trailingWS !== true)- v = trimRight(v);- result += v.replace(/\u00AD/g, ''); // remove soft hyphens- });-- result = result.replace(/\u00A0/g, ' '); // replace nbsp's with spaces-- if (defaults.type === 'json' ||- (defaults.type === 'excel' && defaults.mso.fileFormat === 'xmlss') ||- defaults.numbers.output === false) {- number = parseNumber(result);-- if (number !== false) {- cellType = 'number';- result = Number(number);- }- } else if (defaults.numbers.html.decimalMark !== defaults.numbers.output.decimalMark ||- defaults.numbers.html.thousandsSeparator !== defaults.numbers.output.thousandsSeparator) {- number = parseNumber(result);-- if (number !== false) {- var frac = ('' + number.substr(number < 0 ? 1 : 0)).split('.');- if (frac.length === 1)- frac[1] = '';- var mod = frac[0].length > 3 ? frac[0].length % 3 : 0;-- cellType = 'number';- result = (number < 0 ? '-' : '') +- (defaults.numbers.output.thousandsSeparator ? ((mod ? frac[0].substr(0, mod) + defaults.numbers.output.thousandsSeparator : '') + frac[0].substr(mod).replace(/(\d{3})(?=\d)/g, '$1' + defaults.numbers.output.thousandsSeparator)) : frac[0]) +- (frac[1].length ? defaults.numbers.output.decimalMark + frac[1] : '');- }- }- } else- result = htmlData;- }-- if (defaults.escape === true) {- //noinspection JSDeprecatedSymbols- result = escape(result);- }-- if (typeof defaults.onCellData === 'function') {- result = defaults.onCellData($cell, rowIndex, colIndex, result, cellType);- $cell.data('teUserDefText', 1);- }- }-- if (cellInfo !== undefined)- cellInfo.type = cellType;-- return result;- }-- function preventInjection (str) {- if (str.length > 0 && defaults.preventInjection === true) {- var chars = '=+-@';- if (chars.indexOf(str.charAt(0)) >= 0)- return ('\'' + str);- }- return str;- }-- //noinspection JSUnusedLocalSymbols- function hyphenate (a, b, c) {- return b + '-' + c.toLowerCase();- }-- function rgb2array (rgb_string, default_result) {- var re = /^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/;- var bits = re.exec(rgb_string);- var result = default_result;- if (bits)- result = [parseInt(bits[1]), parseInt(bits[2]), parseInt(bits[3])];- return result;- }-- function getCellStyles (cell) {- var a = getStyle(cell, 'text-align');- var fw = getStyle(cell, 'font-weight');- var fs = getStyle(cell, 'font-style');- var f = '';- if (a === 'start')- a = getStyle(cell, 'direction') === 'rtl' ? 'right' : 'left';- if (fw >= 700)- f = 'bold';- if (fs === 'italic')- f += fs;- if (f === '')- f = 'normal';-- var result = {- style: {- align: a,- bcolor: rgb2array(getStyle(cell, 'background-color'), [255, 255, 255]),- color: rgb2array(getStyle(cell, 'color'), [0, 0, 0]),- fstyle: f- },- colspan: getColspan(cell),- rowspan: getRowspan(cell)- };-- if (cell !== null) {- var r = cell.getBoundingClientRect();- result.rect = {- width: r.width,- height: r.height- };- }-- return result;- }-- function getColspan (cell) {- var result = $(cell).attr('data-tableexport-colspan');- if (typeof result === 'undefined' && $(cell).is('[colspan]'))- result = $(cell).attr('colspan');-- return (parseInt(result) || 0);- }-- function getRowspan (cell) {- var result = $(cell).attr('data-tableexport-rowspan');- if (typeof result === 'undefined' && $(cell).is('[rowspan]'))- result = $(cell).attr('rowspan');-- return (parseInt(result) || 0);- }-- // get computed style property- function getStyle (target, prop) {- try {- if (window.getComputedStyle) { // gecko and webkit- prop = prop.replace(/([a-z])([A-Z])/, hyphenate); // requires hyphenated, not camel- return window.getComputedStyle(target, null).getPropertyValue(prop);- }- if (target.currentStyle) { // ie- return target.currentStyle[prop];- }- return target.style[prop];- } catch (e) {- }- return '';- }-- function getUnitValue (parent, value, unit) {- var baseline = 100; // any number serves-- var temp = document.createElement('div'); // create temporary element- temp.style.overflow = 'hidden'; // in case baseline is set too low- temp.style.visibility = 'hidden'; // no need to show it-- parent.appendChild(temp); // insert it into the parent for em, ex and %-- temp.style.width = baseline + unit;- var factor = baseline / temp.offsetWidth;-- parent.removeChild(temp); // clean up-- return (value * factor);- }-- function getPropertyUnitValue (target, prop, unit) {- var value = getStyle(target, prop); // get the computed style value-- var numeric = value.match(/\d+/); // get the numeric component- if (numeric !== null) {- numeric = numeric[0]; // get the string-- return getUnitValue(target.parentElement, numeric, unit);- }- return 0;- }-- function xlsxWorkbookToArrayBuffer (s) {- var buf = new ArrayBuffer(s.length);- var view = new Uint8Array(buf);- for (var i = 0; i !== s.length; ++i) view[i] = s.charCodeAt(i) & 0xFF;- return buf;- }-- function xlsxTableToSheet (table) {- var ws = ({});- var rows = table.getElementsByTagName('tr');- var sheetRows = 10000000;- var range = {s: {r: 0, c: 0}, e: {r: 0, c: 0}};- var merges = [], midx = 0;- var rowinfo = [];- var _R = 0, R = 0, _C, C, RS, CS;- var elt;- var ssfTable = XLSX.SSF.get_table();-- for (; _R < rows.length && R < sheetRows; ++_R) {- var row = rows[_R];-- var ignoreRow = false;- if (typeof defaults.onIgnoreRow === 'function')- ignoreRow = defaults.onIgnoreRow($(row), _R);-- if (ignoreRow === true ||- (defaults.ignoreRow.length !== 0 &&- ($.inArray(_R, defaults.ignoreRow) !== -1 ||- $.inArray(_R - rows.length, defaults.ignoreRow) !== -1)) ||- isVisible($(row)) === false) {- continue;- }-- var elts = (row.children);- var _CLength = 0;- for (_C = 0; _C < elts.length; ++_C) {- elt = elts[_C];- CS = +getColspan(elt) || 1;- _CLength += CS;- }-- var CSOffset = 0;- for (_C = C = 0; _C < elts.length; ++_C) {- elt = elts[_C];- CS = +getColspan(elt) || 1;-- var col = _C + CSOffset;- if (isColumnIgnored($(elt), _CLength, col + (col < C ? C - col : 0)))- continue;- CSOffset += CS - 1;-- for (midx = 0; midx < merges.length; ++midx) {- var m = merges[midx];- if (m.s.c == C && m.s.r <= R && R <= m.e.r) {- C = m.e.c + 1;- midx = -1;- }- }-- if ((RS = +getRowspan(elt)) > 0 || CS > 1)- merges.push({s: {r: R, c: C}, e: {r: R + (RS || 1) - 1, c: C + CS - 1}});-- var cellInfo = {type: ''};- var v = parseString(elt, _R, _C + CSOffset, cellInfo);- var o = {t: 's', v: v};- var _t = '';- var cellFormat = $(elt).attr('data-tableexport-cellformat');-- if (cellFormat !== '') {- var ssfId = parseInt($(elt).attr('data-tableexport-xlsxformatid') || 0);-- if (ssfId === 0 &&- typeof defaults.mso.xslx.formatId.numbers === 'function')- ssfId = defaults.mso.xslx.formatId.numbers($(elt), _R, _C + CSOffset);-- if (ssfId === 0 &&- typeof defaults.mso.xslx.formatId.date === 'function')- ssfId = defaults.mso.xslx.formatId.date($(elt), _R, _C + CSOffset);-- if (ssfId === 49 || ssfId === '@')- _t = 's';- else if (cellInfo.type === 'number' ||- (ssfId > 0 && ssfId < 14) || (ssfId > 36 && ssfId < 41) || ssfId === 48)- _t = 'n';- else if (cellInfo.type === 'date' ||- (ssfId > 13 && ssfId < 37) || (ssfId > 44 && ssfId < 48) || ssfId === 56)- _t = 'd';- } else- _t = 's';-- if (v != null) {- var vd;-- if (v.length === 0)- o.t = 'z';- else if (v.trim().length === 0 || _t === 's') {- }- else if (cellInfo.type === 'function')- o = {f: v};- else if (v === 'TRUE')- o = {t: 'b', v: true};- else if (v === 'FALSE')- o = {t: 'b', v: false};- else if (_t === '' && $(elt).find('a').length) {- v = defaults.htmlHyperlink !== 'href' ? v : '';- o = {f: '=HYPERLINK("' + $(elt).find('a').attr('href') + (v.length ? '","' + v : '') + '")'};- }- else if (_t === 'n' || isFinite(xlsxToNumber(v, defaults.numbers.output))) { // yes, defaults.numbers.output is right- var vn = xlsxToNumber(v, defaults.numbers.output);- if (ssfId === 0 && typeof defaults.mso.xslx.formatId.numbers !== 'function')- ssfId = defaults.mso.xslx.formatId.numbers;- if (isFinite(vn) || isFinite(v))- o = {- t: 'n',- v: (isFinite(vn) ? vn : v),- z: (typeof ssfId === 'string') ? ssfId : (ssfId in ssfTable ? ssfTable[ssfId] : '0.00')- };- }- else if ((vd = parseDateUTC(v)) !== false || _t === 'd') {- if (ssfId === 0 && typeof defaults.mso.xslx.formatId.date !== 'function')- ssfId = defaults.mso.xslx.formatId.date;- o = {- t: 'd',- v: (vd !== false ? vd : v),- z: (typeof ssfId === 'string') ? ssfId : (ssfId in ssfTable ? ssfTable[ssfId] : 'm/d/yy')- };- }- }- ws[xlsxEncodeCell({c: C, r: R})] = o;- if (range.e.c < C)- range.e.c = C;- C += CS;- }- ++R;- }- if (merges.length) ws['!merges'] = merges;- if (rowinfo.length) ws['!rows'] = rowinfo;- range.e.r = R - 1;- ws['!ref'] = xlsxEncodeRange(range);- if (R >= sheetRows)- ws['!fullref'] = xlsxEncodeRange((range.e.r = rows.length - _R + R - 1, range));- return ws;- }-- function xlsxEncodeRow (row) { return '' + (row + 1); }-- function xlsxEncodeCol (col) {- var s = '';- for (++col; col; col = Math.floor((col - 1) / 26)) s = String.fromCharCode(((col - 1) % 26) + 65) + s;- return s;- }-- function xlsxEncodeCell (cell) { return xlsxEncodeCol(cell.c) + xlsxEncodeRow(cell.r); }-- function xlsxEncodeRange (cs, ce) {- if (typeof ce === 'undefined' || typeof ce === 'number') {- return xlsxEncodeRange(cs.s, cs.e);- }- if (typeof cs !== 'string') cs = xlsxEncodeCell((cs));- if (typeof ce !== 'string') ce = xlsxEncodeCell((ce));- return cs === ce ? cs : cs + ':' + ce;- }-- function xlsxToNumber (s, numbersFormat) {- var v = Number(s);- if (isFinite(v)) return v;- var wt = 1;- var ss = s;- if ('' !== numbersFormat.thousandsSeparator)- ss = ss.replace(new RegExp('([\\d])' + numbersFormat.thousandsSeparator + '([\\d])', 'g'), '$1$2');- if ('.' !== numbersFormat.decimalMark)- ss = ss.replace(new RegExp('([\\d])' + numbersFormat.decimalMark + '([\\d])', 'g'), '$1.$2');- ss = ss.replace(/[$]/g, '').replace(/[%]/g, function () {- wt *= 100;- return '';- });- if (isFinite(v = Number(ss))) return v / wt;- ss = ss.replace(/[(](.*)[)]/, function ($$, $1) {- wt = -wt;- return $1;- });- if (isFinite(v = Number(ss))) return v / wt;- return v;- }-- function strHashCode (str) {- var hash = 0, i, chr, len;- if (str.length === 0) return hash;- for (i = 0, len = str.length; i < len; i++) {- chr = str.charCodeAt(i);- hash = ((hash << 5) - hash) + chr;- hash |= 0; // Convert to 32bit integer- }- return hash;- }-- function saveToFile (data, fileName, type, charset, encoding, bom) {- var saveIt = true;- if (typeof defaults.onBeforeSaveToFile === 'function') {- saveIt = defaults.onBeforeSaveToFile(data, fileName, type, charset, encoding);- if (typeof saveIt !== 'boolean')- saveIt = true;- }-- if (saveIt) {- try {- blob = new Blob([data], {type: type + ';charset=' + charset});- saveAs(blob, fileName, bom === false);-- if (typeof defaults.onAfterSaveToFile === 'function')- defaults.onAfterSaveToFile(data, fileName);- } catch (e) {- downloadFile(fileName,- 'data:' + type +- (charset.length ? ';charset=' + charset : '') +- (encoding.length ? ';' + encoding : '') + ',',- (bom ? ('\ufeff' + data) : data));- }- }- }-- function downloadFile (filename, header, data) {- var ua = window.navigator.userAgent;- if (filename !== false && window.navigator.msSaveOrOpenBlob) {- //noinspection JSUnresolvedFunction- window.navigator.msSaveOrOpenBlob(new Blob([data]), filename);- } else if (filename !== false && (ua.indexOf('MSIE ') > 0 || !!ua.match(/Trident.*rv\:11\./))) {- // Internet Explorer (<= 9) workaround by Darryl (https://github.com/dawiong/tableExport.jquery.plugin)- // based on sampopes answer on http://stackoverflow.com/questions/22317951- // ! Not working for json and pdf format !- var frame = document.createElement('iframe');-- if (frame) {- document.body.appendChild(frame);- frame.setAttribute('style', 'display:none');- frame.contentDocument.open('txt/plain', 'replace');- frame.contentDocument.write(data);- frame.contentDocument.close();- frame.contentWindow.focus();-- var extension = filename.substr((filename.lastIndexOf('.') + 1));- switch (extension) {- case 'doc':- case 'json':- case 'png':- case 'pdf':- case 'xls':- case 'xlsx':- filename += '.txt';- break;- }- frame.contentDocument.execCommand('SaveAs', true, filename);- document.body.removeChild(frame);- }- } else {- var DownloadLink = document.createElement('a');-- if (DownloadLink) {- var blobUrl = null;-- DownloadLink.style.display = 'none';- if (filename !== false)- DownloadLink.download = filename;- else- DownloadLink.target = '_blank';-- if (typeof data === 'object') {- window.URL = window.URL || window.webkitURL;- var binaryData = [];- binaryData.push(data);- blobUrl = window.URL.createObjectURL(new Blob(binaryData, {type: header}));- DownloadLink.href = blobUrl;- } else if (header.toLowerCase().indexOf('base64,') >= 0)- DownloadLink.href = header + base64encode(data);- else- DownloadLink.href = header + encodeURIComponent(data);-- document.body.appendChild(DownloadLink);-- if (document.createEvent) {- if (DownloadEvt === null)- DownloadEvt = document.createEvent('MouseEvents');-- DownloadEvt.initEvent('click', true, false);- DownloadLink.dispatchEvent(DownloadEvt);- } else if (document.createEventObject)- DownloadLink.fireEvent('onclick');- else if (typeof DownloadLink.onclick === 'function')- DownloadLink.onclick();-- setTimeout(function () {- if (blobUrl)- window.URL.revokeObjectURL(blobUrl);- document.body.removeChild(DownloadLink);-- if (typeof defaults.onAfterSaveToFile === 'function')- defaults.onAfterSaveToFile(data, filename);- }, 100);- }- }- }-- function utf8Encode (text) {- if (typeof text === 'string') {- text = text.replace(/\x0d\x0a/g, '\x0a');- var utftext = '';- for (var n = 0; n < text.length; n++) {- var c = text.charCodeAt(n);- if (c < 128) {- utftext += String.fromCharCode(c);- } else if ((c > 127) && (c < 2048)) {- utftext += String.fromCharCode((c >> 6) | 192);- utftext += String.fromCharCode((c & 63) | 128);- } else {- utftext += String.fromCharCode((c >> 12) | 224);- utftext += String.fromCharCode(((c >> 6) & 63) | 128);- utftext += String.fromCharCode((c & 63) | 128);- }- }- return utftext;- }- return text;- }-- function base64encode (input) {- var chr1, chr2, chr3, enc1, enc2, enc3, enc4;- var keyStr = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=';- var output = '';- var i = 0;- input = utf8Encode(input);- while (i < input.length) {- chr1 = input.charCodeAt(i++);- chr2 = input.charCodeAt(i++);- chr3 = input.charCodeAt(i++);- enc1 = chr1 >> 2;- enc2 = ((chr1 & 3) << 4) | (chr2 >> 4);- enc3 = ((chr2 & 15) << 2) | (chr3 >> 6);- enc4 = chr3 & 63;- if (isNaN(chr2)) {- enc3 = enc4 = 64;- } else if (isNaN(chr3)) {- enc4 = 64;- }- output = output +- keyStr.charAt(enc1) + keyStr.charAt(enc2) +- keyStr.charAt(enc3) + keyStr.charAt(enc4);- }- return output;- }-- if (typeof defaults.onTableExportEnd === 'function')- defaults.onTableExportEnd();-- return this;- };-})(jQuery);--!function(t){"function"==typeof define&&define.amd?define(t):t()}(function(){"use strict";-/** @license- * jsPDF - PDF Document creation from JavaScript- * Version 1.5.3 Built on 2018-12-27T14:11:42.696Z- * CommitID d93d28db14- *- * Copyright (c) 2010-2016 James Hall <[email protected]>, https://github.com/MrRio/jsPDF- * 2010 Aaron Spike, https://github.com/acspike- * 2012 Willow Systems Corporation, willow-systems.com- * 2012 Pablo Hess, https://github.com/pablohess- * 2012 Florian Jenett, https://github.com/fjenett- * 2013 Warren Weckesser, https://github.com/warrenweckesser- * 2013 Youssef Beddad, https://github.com/lifof- * 2013 Lee Driscoll, https://github.com/lsdriscoll- * 2013 Stefan Slonevskiy, https://github.com/stefslon- * 2013 Jeremy Morel, https://github.com/jmorel- * 2013 Christoph Hartmann, https://github.com/chris-rock- * 2014 Juan Pablo Gaviria, https://github.com/juanpgaviria- * 2014 James Makes, https://github.com/dollaruw- * 2014 Diego Casorran, https://github.com/diegocr- * 2014 Steven Spungin, https://github.com/Flamenco- * 2014 Kenneth Glassey, https://github.com/Gavvers- *- * Licensed under the MIT License- *- * Contributor(s):- * siefkenj, ahwolf, rickygu, Midnith, saintclair, eaparango,- * kim3er, mfo, alnorth, Flamenco- */function se(t){return(se="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}!function(t){if("object"!==se(t.console)){t.console={};for(var e,n,r=t.console,i=function(){},o=["memory"],a="assert,clear,count,debug,dir,dirxml,error,exception,group,groupCollapsed,groupEnd,info,log,markTimeline,profile,profiles,profileEnd,show,table,time,timeEnd,timeline,timelineEnd,timeStamp,trace,warn".split(",");e=o.pop();)r[e]||(r[e]={});for(;n=a.pop();)r[n]||(r[n]=i)}var s,l,h,u,c="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";void 0===t.btoa&&(t.btoa=function(t){var e,n,r,i,o,a=0,s=0,l="",h=[];if(!t)return t;for(;e=(o=t.charCodeAt(a++)<<16|t.charCodeAt(a++)<<8|t.charCodeAt(a++))>>18&63,n=o>>12&63,r=o>>6&63,i=63&o,h[s++]=c.charAt(e)+c.charAt(n)+c.charAt(r)+c.charAt(i),a<t.length;);l=h.join("");var u=t.length%3;return(u?l.slice(0,u-3):l)+"===".slice(u||3)}),void 0===t.atob&&(t.atob=function(t){var e,n,r,i,o,a,s=0,l=0,h=[];if(!t)return t;for(t+="";e=(a=c.indexOf(t.charAt(s++))<<18|c.indexOf(t.charAt(s++))<<12|(i=c.indexOf(t.charAt(s++)))<<6|(o=c.indexOf(t.charAt(s++))))>>16&255,n=a>>8&255,r=255&a,h[l++]=64==i?String.fromCharCode(e):64==o?String.fromCharCode(e,n):String.fromCharCode(e,n,r),s<t.length;);return h.join("")}),Array.prototype.map||(Array.prototype.map=function(t){if(null==this||"function"!=typeof t)throw new TypeError;for(var e=Object(this),n=e.length>>>0,r=new Array(n),i=1<arguments.length?arguments[1]:void 0,o=0;o<n;o++)o in e&&(r[o]=t.call(i,e[o],o,e));return r}),Array.isArray||(Array.isArray=function(t){return"[object Array]"===Object.prototype.toString.call(t)}),Array.prototype.forEach||(Array.prototype.forEach=function(t,e){if(null==this||"function"!=typeof t)throw new TypeError;for(var n=Object(this),r=n.length>>>0,i=0;i<r;i++)i in n&&t.call(e,n[i],i,n)}),Array.prototype.find||Object.defineProperty(Array.prototype,"find",{value:function(t){if(null==this)throw new TypeError('"this" is null or not defined');var e=Object(this),n=e.length>>>0;if("function"!=typeof t)throw new TypeError("predicate must be a function");for(var r=arguments[1],i=0;i<n;){var o=e[i];if(t.call(r,o,i,e))return o;i++}},configurable:!0,writable:!0}),Object.keys||(Object.keys=(s=Object.prototype.hasOwnProperty,l=!{toString:null}.propertyIsEnumerable("toString"),u=(h=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"]).length,function(t){if("object"!==se(t)&&("function"!=typeof t||null===t))throw new TypeError;var e,n,r=[];for(e in t)s.call(t,e)&&r.push(e);if(l)for(n=0;n<u;n++)s.call(t,h[n])&&r.push(h[n]);return r})),"function"!=typeof Object.assign&&(Object.assign=function(t){if(null==t)throw new TypeError("Cannot convert undefined or null to object");t=Object(t);for(var e=1;e<arguments.length;e++){var n=arguments[e];if(null!=n)for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}),String.prototype.trim||(String.prototype.trim=function(){return this.replace(/^\s+|\s+$/g,"")}),String.prototype.trimLeft||(String.prototype.trimLeft=function(){return this.replace(/^\s+/g,"")}),String.prototype.trimRight||(String.prototype.trimRight=function(){return this.replace(/\s+$/g,"")}),Number.isInteger=Number.isInteger||function(t){return"number"==typeof t&&isFinite(t)&&Math.floor(t)===t}}("undefined"!=typeof self&&self||"undefined"!=typeof window&&window||"undefined"!=typeof global&&global||Function('return typeof this === "object" && this.content')()||Function("return this")());var t,e,n,_,l,F,P,p,d,k,a,o,s,h,u,c,r,i,f,g,m,y,v,w,b,x,I,C,B,N,L,A,S,j,E,M,O,q,T,R,D,U,z,H,W,V,G,Y,J,X,K,Z,Q,$,tt,et,nt,rt,it,ot,at,st,lt=function(ie){function oe(o){if("object"!==se(o))throw new Error("Invalid Context passed to initialize PubSub (jsPDF-module)");var a={};this.subscribe=function(t,e,n){if(n=n||!1,"string"!=typeof t||"function"!=typeof e||"boolean"!=typeof n)throw new Error("Invalid arguments passed to PubSub.subscribe (jsPDF-module)");a.hasOwnProperty(t)||(a[t]={});var r=Math.random().toString(35);return a[t][r]=[e,!!n],r},this.unsubscribe=function(t){for(var e in a)if(a[e][t])return delete a[e][t],0===Object.keys(a[e]).length&&delete a[e],!0;return!1},this.publish=function(t){if(a.hasOwnProperty(t)){var e=Array.prototype.slice.call(arguments,1),n=[];for(var r in a[t]){var i=a[t][r];try{i[0].apply(o,e)}catch(t){ie.console&&console.error("jsPDF PubSub Error",t.message,t)}i[1]&&n.push(r)}n.length&&n.forEach(this.unsubscribe)}},this.getTopics=function(){return a}}function ae(t,e,i,n){var r={},o=[],a=1;"object"===se(t)&&(t=(r=t).orientation,e=r.unit||e,i=r.format||i,n=r.compress||r.compressPdf||n,o=r.filters||(!0===n?["FlateEncode"]:o),a="number"==typeof r.userUnit?Math.abs(r.userUnit):1),e=e||"mm",t=(""+(t||"P")).toLowerCase();var s=r.putOnlyUsedFonts||!0,K={},l={internal:{},__private__:{}};l.__private__.PubSub=oe;var h="1.3",u=l.__private__.getPdfVersion=function(){return h},c=(l.__private__.setPdfVersion=function(t){h=t},{a0:[2383.94,3370.39],a1:[1683.78,2383.94],a2:[1190.55,1683.78],a3:[841.89,1190.55],a4:[595.28,841.89],a5:[419.53,595.28],a6:[297.64,419.53],a7:[209.76,297.64],a8:[147.4,209.76],a9:[104.88,147.4],a10:[73.7,104.88],b0:[2834.65,4008.19],b1:[2004.09,2834.65],b2:[1417.32,2004.09],b3:[1000.63,1417.32],b4:[708.66,1000.63],b5:[498.9,708.66],b6:[354.33,498.9],b7:[249.45,354.33],b8:[175.75,249.45],b9:[124.72,175.75],b10:[87.87,124.72],c0:[2599.37,3676.54],c1:[1836.85,2599.37],c2:[1298.27,1836.85],c3:[918.43,1298.27],c4:[649.13,918.43],c5:[459.21,649.13],c6:[323.15,459.21],c7:[229.61,323.15],c8:[161.57,229.61],c9:[113.39,161.57],c10:[79.37,113.39],dl:[311.81,623.62],letter:[612,792],"government-letter":[576,756],legal:[612,1008],"junior-legal":[576,360],ledger:[1224,792],tabloid:[792,1224],"credit-card":[153,243]}),f=(l.__private__.getPageFormats=function(){return c},l.__private__.getPageFormat=function(t){return c[t]});"string"==typeof i&&(i=f(i)),i=i||f("a4");var p,Z=l.f2=l.__private__.f2=function(t){if(isNaN(t))throw new Error("Invalid argument passed to jsPDF.f2");return t.toFixed(2)},Q=l.__private__.f3=function(t){if(isNaN(t))throw new Error("Invalid argument passed to jsPDF.f3");return t.toFixed(3)},d="00000000000000000000000000000000",g=l.__private__.getFileId=function(){return d},m=l.__private__.setFileId=function(t){return t=t||"12345678901234567890123456789012".split("").map(function(){return"ABCDEF0123456789".charAt(Math.floor(16*Math.random()))}).join(""),d=t};l.setFileId=function(t){return m(t),this},l.getFileId=function(){return g()};var y=l.__private__.convertDateToPDFDate=function(t){var e=t.getTimezoneOffset(),n=e<0?"+":"-",r=Math.floor(Math.abs(e/60)),i=Math.abs(e%60),o=[n,P(r),"'",P(i),"'"].join("");return["D:",t.getFullYear(),P(t.getMonth()+1),P(t.getDate()),P(t.getHours()),P(t.getMinutes()),P(t.getSeconds()),o].join("")},v=l.__private__.convertPDFDateToDate=function(t){var e=parseInt(t.substr(2,4),10),n=parseInt(t.substr(6,2),10)-1,r=parseInt(t.substr(8,2),10),i=parseInt(t.substr(10,2),10),o=parseInt(t.substr(12,2),10),a=parseInt(t.substr(14,2),10);parseInt(t.substr(16,2),10),parseInt(t.substr(20,2),10);return new Date(e,n,r,i,o,a,0)},w=l.__private__.setCreationDate=function(t){var e;if(void 0===t&&(t=new Date),"object"===se(t)&&"[object Date]"===Object.prototype.toString.call(t))e=y(t);else{if(!/^D:(20[0-2][0-9]|203[0-7]|19[7-9][0-9])(0[0-9]|1[0-2])([0-2][0-9]|3[0-1])(0[0-9]|1[0-9]|2[0-3])(0[0-9]|[1-5][0-9])(0[0-9]|[1-5][0-9])(\+0[0-9]|\+1[0-4]|\-0[0-9]|\-1[0-1])\'(0[0-9]|[1-5][0-9])\'?$/.test(t))throw new Error("Invalid argument passed to jsPDF.setCreationDate");e=t}return p=e},b=l.__private__.getCreationDate=function(t){var e=p;return"jsDate"===t&&(e=v(p)),e};l.setCreationDate=function(t){return w(t),this},l.getCreationDate=function(t){return b(t)};var x,N,L,A,S,$,_,F,P=l.__private__.padd2=function(t){return("0"+parseInt(t)).slice(-2)},k=!1,I=[],C=[],B=0,tt=(l.__private__.setCustomOutputDestination=function(t){N=t},l.__private__.resetCustomOutputDestination=function(t){N=void 0},l.__private__.out=function(t){var e;return t="string"==typeof t?t:t.toString(),(e=void 0===N?k?I[x]:C:N).push(t),k||(B+=t.length+1),e}),j=l.__private__.write=function(t){return tt(1===arguments.length?t.toString():Array.prototype.join.call(arguments," "))},E=l.__private__.getArrayBuffer=function(t){for(var e=t.length,n=new ArrayBuffer(e),r=new Uint8Array(n);e--;)r[e]=t.charCodeAt(e);return n},M=[["Helvetica","helvetica","normal","WinAnsiEncoding"],["Helvetica-Bold","helvetica","bold","WinAnsiEncoding"],["Helvetica-Oblique","helvetica","italic","WinAnsiEncoding"],["Helvetica-BoldOblique","helvetica","bolditalic","WinAnsiEncoding"],["Courier","courier","normal","WinAnsiEncoding"],["Courier-Bold","courier","bold","WinAnsiEncoding"],["Courier-Oblique","courier","italic","WinAnsiEncoding"],["Courier-BoldOblique","courier","bolditalic","WinAnsiEncoding"],["Times-Roman","times","normal","WinAnsiEncoding"],["Times-Bold","times","bold","WinAnsiEncoding"],["Times-Italic","times","italic","WinAnsiEncoding"],["Times-BoldItalic","times","bolditalic","WinAnsiEncoding"],["ZapfDingbats","zapfdingbats","normal",null],["Symbol","symbol","normal",null]],et=(l.__private__.getStandardFonts=function(t){return M},r.fontSize||16),O=(l.__private__.setFontSize=l.setFontSize=function(t){return et=t,this},l.__private__.getFontSize=l.getFontSize=function(){return et}),nt=r.R2L||!1,q=(l.__private__.setR2L=l.setR2L=function(t){return nt=t,this},l.__private__.getR2L=l.getR2L=function(t){return nt},l.__private__.setZoomMode=function(t){var e=[void 0,null,"fullwidth","fullheight","fullpage","original"];if(/^\d*\.?\d*\%$/.test(t))L=t;else if(isNaN(t)){if(-1===e.indexOf(t))throw new Error('zoom must be Integer (e.g. 2), a percentage Value (e.g. 300%) or fullwidth, fullheight, fullpage, original. "'+t+'" is not recognized.');L=t}else L=parseInt(t,10)}),T=(l.__private__.getZoomMode=function(){return L},l.__private__.setPageMode=function(t){if(-1==[void 0,null,"UseNone","UseOutlines","UseThumbs","FullScreen"].indexOf(t))throw new Error('Page mode must be one of UseNone, UseOutlines, UseThumbs, or FullScreen. "'+t+'" is not recognized.');A=t}),R=(l.__private__.getPageMode=function(){return A},l.__private__.setLayoutMode=function(t){if(-1==[void 0,null,"continuous","single","twoleft","tworight","two"].indexOf(t))throw new Error('Layout mode must be one of continuous, single, twoleft, tworight. "'+t+'" is not recognized.');S=t}),D=(l.__private__.getLayoutMode=function(){return S},l.__private__.setDisplayMode=l.setDisplayMode=function(t,e,n){return q(t),R(e),T(n),this},{title:"",subject:"",author:"",keywords:"",creator:""}),U=(l.__private__.getDocumentProperty=function(t){if(-1===Object.keys(D).indexOf(t))throw new Error("Invalid argument passed to jsPDF.getDocumentProperty");return D[t]},l.__private__.getDocumentProperties=function(t){return D},l.__private__.setDocumentProperties=l.setProperties=l.setDocumentProperties=function(t){for(var e in D)D.hasOwnProperty(e)&&t[e]&&(D[e]=t[e]);return this},l.__private__.setDocumentProperty=function(t,e){if(-1===Object.keys(D).indexOf(t))throw new Error("Invalid arguments passed to jsPDF.setDocumentProperty");return D[t]=e},0),z=[],rt={},H={},W=0,V=[],G=[],it=new oe(l),Y=r.hotfixes||[],J=l.__private__.newObject=function(){var t=X();return ot(t,!0),t},X=l.__private__.newObjectDeferred=function(){return z[++U]=function(){return B},U},ot=function(t,e){return e="boolean"==typeof e&&e,z[t]=B,e&&tt(t+" 0 obj"),t},at=l.__private__.newAdditionalObject=function(){var t={objId:X(),content:""};return G.push(t),t},st=X(),lt=X(),ht=l.__private__.decodeColorString=function(t){var e=t.split(" ");if(2===e.length&&("g"===e[1]||"G"===e[1])){var n=parseFloat(e[0]);e=[n,n,n,"r"]}for(var r="#",i=0;i<3;i++)r+=("0"+Math.floor(255*parseFloat(e[i])).toString(16)).slice(-2);return r},ut=l.__private__.encodeColorString=function(t){var e;"string"==typeof t&&(t={ch1:t});var n=t.ch1,r=t.ch2,i=t.ch3,o=t.ch4,a=(t.precision,"draw"===t.pdfColorType?["G","RG","K"]:["g","rg","k"]);if("string"==typeof n&&"#"!==n.charAt(0)){var s=new RGBColor(n);if(s.ok)n=s.toHex();else if(!/^\d*\.?\d*$/.test(n))throw new Error('Invalid color "'+n+'" passed to jsPDF.encodeColorString.')}if("string"==typeof n&&/^#[0-9A-Fa-f]{3}$/.test(n)&&(n="#"+n[1]+n[1]+n[2]+n[2]+n[3]+n[3]),"string"==typeof n&&/^#[0-9A-Fa-f]{6}$/.test(n)){var l=parseInt(n.substr(1),16);n=l>>16&255,r=l>>8&255,i=255&l}if(void 0===r||void 0===o&&n===r&&r===i)if("string"==typeof n)e=n+" "+a[0];else switch(t.precision){case 2:e=Z(n/255)+" "+a[0];break;case 3:default:e=Q(n/255)+" "+a[0]}else if(void 0===o||"object"===se(o)){if(o&&!isNaN(o.a)&&0===o.a)return e=["1.000","1.000","1.000",a[1]].join(" ");if("string"==typeof n)e=[n,r,i,a[1]].join(" ");else switch(t.precision){case 2:e=[Z(n/255),Z(r/255),Z(i/255),a[1]].join(" ");break;default:case 3:e=[Q(n/255),Q(r/255),Q(i/255),a[1]].join(" ")}}else if("string"==typeof n)e=[n,r,i,o,a[2]].join(" ");else switch(t.precision){case 2:e=[Z(n/255),Z(r/255),Z(i/255),Z(o/255),a[2]].join(" ");break;case 3:default:e=[Q(n/255),Q(r/255),Q(i/255),Q(o/255),a[2]].join(" ")}return e},ct=l.__private__.getFilters=function(){return o},ft=l.__private__.putStream=function(t){var e=(t=t||{}).data||"",n=t.filters||ct(),r=t.alreadyAppliedFilters||[],i=t.addLength1||!1,o=e.length,a={};!0===n&&(n=["FlateEncode"]);var s=t.additionalKeyValues||[],l=(a=void 0!==ae.API.processDataByFilters?ae.API.processDataByFilters(e,n):{data:e,reverseChain:[]}).reverseChain+(Array.isArray(r)?r.join(" "):r.toString());0!==a.data.length&&(s.push({key:"Length",value:a.data.length}),!0===i&&s.push({key:"Length1",value:o})),0!=l.length&&(l.split("/").length-1==1?s.push({key:"Filter",value:l}):s.push({key:"Filter",value:"["+l+"]"})),tt("<<");for(var h=0;h<s.length;h++)tt("/"+s[h].key+" "+s[h].value);tt(">>"),0!==a.data.length&&(tt("stream"),tt(a.data),tt("endstream"))},pt=l.__private__.putPage=function(t){t.mediaBox;var e=t.number,n=t.data,r=t.objId,i=t.contentsObjId;ot(r,!0);V[x].mediaBox.topRightX,V[x].mediaBox.bottomLeftX,V[x].mediaBox.topRightY,V[x].mediaBox.bottomLeftY;tt("<</Type /Page"),tt("/Parent "+t.rootDictionaryObjId+" 0 R"),tt("/Resources "+t.resourceDictionaryObjId+" 0 R"),tt("/MediaBox ["+parseFloat(Z(t.mediaBox.bottomLeftX))+" "+parseFloat(Z(t.mediaBox.bottomLeftY))+" "+Z(t.mediaBox.topRightX)+" "+Z(t.mediaBox.topRightY)+"]"),null!==t.cropBox&&tt("/CropBox ["+Z(t.cropBox.bottomLeftX)+" "+Z(t.cropBox.bottomLeftY)+" "+Z(t.cropBox.topRightX)+" "+Z(t.cropBox.topRightY)+"]"),null!==t.bleedBox&&tt("/BleedBox ["+Z(t.bleedBox.bottomLeftX)+" "+Z(t.bleedBox.bottomLeftY)+" "+Z(t.bleedBox.topRightX)+" "+Z(t.bleedBox.topRightY)+"]"),null!==t.trimBox&&tt("/TrimBox ["+Z(t.trimBox.bottomLeftX)+" "+Z(t.trimBox.bottomLeftY)+" "+Z(t.trimBox.topRightX)+" "+Z(t.trimBox.topRightY)+"]"),null!==t.artBox&&tt("/ArtBox ["+Z(t.artBox.bottomLeftX)+" "+Z(t.artBox.bottomLeftY)+" "+Z(t.artBox.topRightX)+" "+Z(t.artBox.topRightY)+"]"),"number"==typeof t.userUnit&&1!==t.userUnit&&tt("/UserUnit "+t.userUnit),it.publish("putPage",{objId:r,pageContext:V[e],pageNumber:e,page:n}),tt("/Contents "+i+" 0 R"),tt(">>"),tt("endobj");var o=n.join("\n");return ot(i,!0),ft({data:o,filters:ct()}),tt("endobj"),r},dt=l.__private__.putPages=function(){var t,e,n=[];for(t=1;t<=W;t++)V[t].objId=X(),V[t].contentsObjId=X();for(t=1;t<=W;t++)n.push(pt({number:t,data:I[t],objId:V[t].objId,contentsObjId:V[t].contentsObjId,mediaBox:V[t].mediaBox,cropBox:V[t].cropBox,bleedBox:V[t].bleedBox,trimBox:V[t].trimBox,artBox:V[t].artBox,userUnit:V[t].userUnit,rootDictionaryObjId:st,resourceDictionaryObjId:lt}));ot(st,!0),tt("<</Type /Pages");var r="/Kids [";for(e=0;e<W;e++)r+=n[e]+" 0 R ";tt(r+"]"),tt("/Count "+W),tt(">>"),tt("endobj"),it.publish("postPutPages")},gt=function(){!function(){for(var t in rt)rt.hasOwnProperty(t)&&(!1===s||!0===s&&K.hasOwnProperty(t))&&(e=rt[t],it.publish("putFont",{font:e,out:tt,newObject:J,putStream:ft}),!0!==e.isAlreadyPutted&&(e.objectNumber=J(),tt("<<"),tt("/Type /Font"),tt("/BaseFont /"+e.postScriptName),tt("/Subtype /Type1"),"string"==typeof e.encoding&&tt("/Encoding /"+e.encoding),tt("/FirstChar 32"),tt("/LastChar 255"),tt(">>"),tt("endobj")));var e}(),it.publish("putResources"),ot(lt,!0),tt("<<"),function(){for(var t in tt("/ProcSet [/PDF /Text /ImageB /ImageC /ImageI]"),tt("/Font <<"),rt)rt.hasOwnProperty(t)&&(!1===s||!0===s&&K.hasOwnProperty(t))&&tt("/"+t+" "+rt[t].objectNumber+" 0 R");tt(">>"),tt("/XObject <<"),it.publish("putXobjectDict"),tt(">>")}(),tt(">>"),tt("endobj"),it.publish("postPutResources")},mt=function(t,e,n){H.hasOwnProperty(e)||(H[e]={}),H[e][n]=t},yt=function(t,e,n,r,i){i=i||!1;var o="F"+(Object.keys(rt).length+1).toString(10),a={id:o,postScriptName:t,fontName:e,fontStyle:n,encoding:r,isStandardFont:i,metadata:{}};return it.publish("addFont",{font:a,instance:this}),void 0!==o&&(rt[o]=a,mt(o,e,n)),o},vt=l.__private__.pdfEscape=l.pdfEscape=function(t,e){return function(t,e){var n,r,i,o,a,s,l,h,u;if(i=(e=e||{}).sourceEncoding||"Unicode",a=e.outputEncoding,(e.autoencode||a)&&rt[$].metadata&&rt[$].metadata[i]&&rt[$].metadata[i].encoding&&(o=rt[$].metadata[i].encoding,!a&&rt[$].encoding&&(a=rt[$].encoding),!a&&o.codePages&&(a=o.codePages[0]),"string"==typeof a&&(a=o[a]),a)){for(l=!1,s=[],n=0,r=t.length;n<r;n++)(h=a[t.charCodeAt(n)])?s.push(String.fromCharCode(h)):s.push(t[n]),s[n].charCodeAt(0)>>8&&(l=!0);t=s.join("")}for(n=t.length;void 0===l&&0!==n;)t.charCodeAt(n-1)>>8&&(l=!0),n--;if(!l)return t;for(s=e.noBOM?[]:[254,255],n=0,r=t.length;n<r;n++){if((u=(h=t.charCodeAt(n))>>8)>>8)throw new Error("Character at position "+n+" of string '"+t+"' exceeds 16bits. Cannot be encoded into UCS-2 BE");s.push(u),s.push(h-(u<<8))}return String.fromCharCode.apply(void 0,s)}(t,e).replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},wt=l.__private__.beginPage=function(t,e){var n,r="string"==typeof e&&e.toLowerCase();if("string"==typeof t&&(n=f(t.toLowerCase()))&&(t=n[0],e=n[1]),Array.isArray(t)&&(e=t[1],t=t[0]),(isNaN(t)||isNaN(e))&&(t=i[0],e=i[1]),r){switch(r.substr(0,1)){case"l":t<e&&(r="s");break;case"p":e<t&&(r="s")}"s"===r&&(n=t,t=e,e=n)}(14400<t||14400<e)&&(console.warn("A page in a PDF can not be wider or taller than 14400 userUnit. jsPDF limits the width/height to 14400"),t=Math.min(14400,t),e=Math.min(14400,e)),i=[t,e],k=!0,I[++W]=[],V[W]={objId:0,contentsObjId:0,userUnit:Number(a),artBox:null,bleedBox:null,cropBox:null,trimBox:null,mediaBox:{bottomLeftX:0,bottomLeftY:0,topRightX:Number(t),topRightY:Number(e)}},xt(W)},bt=function(){wt.apply(this,arguments),Dt(Rt),tt(Jt),0!==te&&tt(te+" J"),0!==ne&&tt(ne+" j"),it.publish("addPage",{pageNumber:W})},xt=function(t){0<t&&t<=W&&(x=t)},Nt=l.__private__.getNumberOfPages=l.getNumberOfPages=function(){return I.length-1},Lt=function(t,e,n){var r,i=void 0;return n=n||{},t=void 0!==t?t:rt[$].fontName,e=void 0!==e?e:rt[$].fontStyle,r=t.toLowerCase(),void 0!==H[r]&&void 0!==H[r][e]?i=H[r][e]:void 0!==H[t]&&void 0!==H[t][e]?i=H[t][e]:!1===n.disableWarning&&console.warn("Unable to look up font label for font '"+t+"', '"+e+"'. Refer to getFontList() for available fonts."),i||n.noFallback||null==(i=H.times[e])&&(i=H.times.normal),i},At=l.__private__.putInfo=function(){for(var t in J(),tt("<<"),tt("/Producer (jsPDF "+ae.version+")"),D)D.hasOwnProperty(t)&&D[t]&&tt("/"+t.substr(0,1).toUpperCase()+t.substr(1)+" ("+vt(D[t])+")");tt("/CreationDate ("+p+")"),tt(">>"),tt("endobj")},St=l.__private__.putCatalog=function(t){var e=(t=t||{}).rootDictionaryObjId||st;switch(J(),tt("<<"),tt("/Type /Catalog"),tt("/Pages "+e+" 0 R"),L||(L="fullwidth"),L){case"fullwidth":tt("/OpenAction [3 0 R /FitH null]");break;case"fullheight":tt("/OpenAction [3 0 R /FitV null]");break;case"fullpage":tt("/OpenAction [3 0 R /Fit]");break;case"original":tt("/OpenAction [3 0 R /XYZ null null 1]");break;default:var n=""+L;"%"===n.substr(n.length-1)&&(L=parseInt(L)/100),"number"==typeof L&&tt("/OpenAction [3 0 R /XYZ null null "+Z(L)+"]")}switch(S||(S="continuous"),S){case"continuous":tt("/PageLayout /OneColumn");break;case"single":tt("/PageLayout /SinglePage");break;case"two":case"twoleft":tt("/PageLayout /TwoColumnLeft");break;case"tworight":tt("/PageLayout /TwoColumnRight")}A&&tt("/PageMode /"+A),it.publish("putCatalog"),tt(">>"),tt("endobj")},_t=l.__private__.putTrailer=function(){tt("trailer"),tt("<<"),tt("/Size "+(U+1)),tt("/Root "+U+" 0 R"),tt("/Info "+(U-1)+" 0 R"),tt("/ID [ <"+d+"> <"+d+"> ]"),tt(">>")},Ft=l.__private__.putHeader=function(){tt("%PDF-"+h),tt("%ºß¬à")},Pt=l.__private__.putXRef=function(){var t=1,e="0000000000";for(tt("xref"),tt("0 "+(U+1)),tt("0000000000 65535 f "),t=1;t<=U;t++){"function"==typeof z[t]?tt((e+z[t]()).slice(-10)+" 00000 n "):void 0!==z[t]?tt((e+z[t]).slice(-10)+" 00000 n "):tt("0000000000 00000 n ")}},kt=l.__private__.buildDocument=function(){k=!1,B=U=0,C=[],z=[],G=[],st=X(),lt=X(),it.publish("buildDocument"),Ft(),dt(),function(){it.publish("putAdditionalObjects");for(var t=0;t<G.length;t++){var e=G[t];ot(e.objId,!0),tt(e.content),tt("endobj")}it.publish("postPutAdditionalObjects")}(),gt(),At(),St();var t=B;return Pt(),_t(),tt("startxref"),tt(""+t),tt("%%EOF"),k=!0,C.join("\n")},It=l.__private__.getBlob=function(t){return new Blob([E(t)],{type:"application/pdf"})},Ct=l.output=l.__private__.output=((F=function(t,e){e=e||{};var n=kt();switch("string"==typeof e?e={filename:e}:e.filename=e.filename||"generated.pdf",t){case void 0:return n;case"save":l.save(e.filename);break;case"arraybuffer":return E(n);case"blob":return It(n);case"bloburi":case"bloburl":if(void 0!==ie.URL&&"function"==typeof ie.URL.createObjectURL)return ie.URL&&ie.URL.createObjectURL(It(n))||void 0;console.warn("bloburl is not supported by your system, because URL.createObjectURL is not supported by your browser.");break;case"datauristring":case"dataurlstring":return"data:application/pdf;filename="+e.filename+";base64,"+btoa(n);case"dataurlnewwindow":var r='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><iframe src="'+this.output("datauristring")+'"></iframe></body></html>',i=ie.open();if(null!==i&&i.document.write(r),i||"undefined"==typeof safari)return i;case"datauri":case"dataurl":return ie.document.location.href="data:application/pdf;filename="+e.filename+";base64,"+btoa(n);default:return null}}).foo=function(){try{return F.apply(this,arguments)}catch(t){var e=t.stack||"";~e.indexOf(" at ")&&(e=e.split(" at ")[1]);var n="Error in function "+e.split("\n")[0].split("<")[0]+": "+t.message;if(!ie.console)throw new Error(n);ie.console.error(n,t),ie.alert&&alert(n)}},(F.foo.bar=F).foo),Bt=function(t){return!0===Array.isArray(Y)&&-1<Y.indexOf(t)};switch(e){case"pt":_=1;break;case"mm":_=72/25.4;break;case"cm":_=72/2.54;break;case"in":_=72;break;case"px":_=1==Bt("px_scaling")?.75:96/72;break;case"pc":case"em":_=12;break;case"ex":_=6;break;default:throw new Error("Invalid unit: "+e)}w(),m();var jt=l.__private__.getPageInfo=function(t){if(isNaN(t)||t%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfo");return{objId:V[t].objId,pageNumber:t,pageContext:V[t]}},Et=l.__private__.getPageInfoByObjId=function(t){for(var e in V)if(V[e].objId===t)break;if(isNaN(t)||t%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfoByObjId");return jt(e)},Mt=l.__private__.getCurrentPageInfo=function(){return{objId:V[x].objId,pageNumber:x,pageContext:V[x]}};l.addPage=function(){return bt.apply(this,arguments),this},l.setPage=function(){return xt.apply(this,arguments),this},l.insertPage=function(t){return this.addPage(),this.movePage(x,t),this},l.movePage=function(t,e){if(e<t){for(var n=I[t],r=V[t],i=t;e<i;i--)I[i]=I[i-1],V[i]=V[i-1];I[e]=n,V[e]=r,this.setPage(e)}else if(t<e){for(n=I[t],r=V[t],i=t;i<e;i++)I[i]=I[i+1],V[i]=V[i+1];I[e]=n,V[e]=r,this.setPage(e)}return this},l.deletePage=function(){return function(t){0<t&&t<=W&&(I.splice(t,1),--W<x&&(x=W),this.setPage(x))}.apply(this,arguments),this};l.__private__.text=l.text=function(t,e,n,i){var r;"number"!=typeof t||"number"!=typeof e||"string"!=typeof n&&!Array.isArray(n)||(r=n,n=e,e=t,t=r);var o=arguments[3],a=arguments[4],s=arguments[5];if("object"===se(o)&&null!==o||("string"==typeof a&&(s=a,a=null),"string"==typeof o&&(s=o,o=null),"number"==typeof o&&(a=o,o=null),i={flags:o,angle:a,align:s}),(o=o||{}).noBOM=o.noBOM||!0,o.autoencode=o.autoencode||!0,isNaN(e)||isNaN(n)||null==t)throw new Error("Invalid arguments passed to jsPDF.text");if(0===t.length)return c;var l,h="",u="number"==typeof i.lineHeightFactor?i.lineHeightFactor:Tt,c=i.scope||this;function f(t){for(var e,n=t.concat(),r=[],i=n.length;i--;)"string"==typeof(e=n.shift())?r.push(e):Array.isArray(t)&&1===e.length?r.push(e[0]):r.push([e[0],e[1],e[2]]);return r}function p(t,e){var n;if("string"==typeof t)n=e(t)[0];else if(Array.isArray(t)){for(var r,i,o=t.concat(),a=[],s=o.length;s--;)"string"==typeof(r=o.shift())?a.push(e(r)[0]):Array.isArray(r)&&"string"===r[0]&&(i=e(r[0],r[1],r[2]),a.push([i[0],i[1],i[2]]));n=a}return n}var d=!1,g=!0;if("string"==typeof t)d=!0;else if(Array.isArray(t)){for(var m,y=t.concat(),v=[],w=y.length;w--;)("string"!=typeof(m=y.shift())||Array.isArray(m)&&"string"!=typeof m[0])&&(g=!1);d=g}if(!1===d)throw new Error('Type of text must be string or Array. "'+t+'" is not recognized.');var b=rt[$].encoding;"WinAnsiEncoding"!==b&&"StandardEncoding"!==b||(t=p(t,function(t,e,n){return[(r=t,r=r.split("\t").join(Array(i.TabLen||9).join(" ")),vt(r,o)),e,n];var r})),"string"==typeof t&&(t=t.match(/[\r?\n]/)?t.split(/\r\n|\r|\n/g):[t]);var x=et/c.internal.scaleFactor,N=x*(Tt-1);switch(i.baseline){case"bottom":n-=N;break;case"top":n+=x-N;break;case"hanging":n+=x-2*N;break;case"middle":n+=x/2-N}0<(O=i.maxWidth||0)&&("string"==typeof t?t=c.splitTextToSize(t,O):"[object Array]"===Object.prototype.toString.call(t)&&(t=c.splitTextToSize(t.join(" "),O)));var L={text:t,x:e,y:n,options:i,mutex:{pdfEscape:vt,activeFontKey:$,fonts:rt,activeFontSize:et}};it.publish("preProcessText",L),t=L.text;a=(i=L.options).angle;var A=c.internal.scaleFactor,S=[];if(a){a*=Math.PI/180;var _=Math.cos(a),F=Math.sin(a);S=[Z(_),Z(F),Z(-1*F),Z(_)]}void 0!==(M=i.charSpace)&&(h+=Q(M*A)+" Tc\n");i.lang;var P=-1,k=void 0!==i.renderingMode?i.renderingMode:i.stroke,I=c.internal.getCurrentPageInfo().pageContext;switch(k){case 0:case!1:case"fill":P=0;break;case 1:case!0:case"stroke":P=1;break;case 2:case"fillThenStroke":P=2;break;case 3:case"invisible":P=3;break;case 4:case"fillAndAddForClipping":P=4;break;case 5:case"strokeAndAddPathForClipping":P=5;break;case 6:case"fillThenStrokeAndAddToPathForClipping":P=6;break;case 7:case"addToPathForClipping":P=7}var C=void 0!==I.usedRenderingMode?I.usedRenderingMode:-1;-1!==P?h+=P+" Tr\n":-1!==C&&(h+="0 Tr\n"),-1!==P&&(I.usedRenderingMode=P);s=i.align||"left";var B=et*u,j=c.internal.pageSize.getWidth(),E=(A=c.internal.scaleFactor,rt[$]),M=i.charSpace||Qt,O=i.maxWidth||0,q=(o={},[]);if("[object Array]"===Object.prototype.toString.call(t)){var T,R;v=f(t);"left"!==s&&(R=v.map(function(t){return c.getStringUnitWidth(t,{font:E,charSpace:M,fontSize:et})*et/A}));var D,U=Math.max.apply(Math,R),z=0;if("right"===s){e-=R[0],t=[];var H=0;for(w=v.length;H<w;H++)U-R[H],T=0===H?(D=Wt(e),Vt(n)):(D=(z-R[H])*A,-B),t.push([v[H],D,T]),z=R[H]}else if("center"===s){e-=R[0]/2,t=[];for(H=0,w=v.length;H<w;H++)(U-R[H])/2,T=0===H?(D=Wt(e),Vt(n)):(D=(z-R[H])/2*A,-B),t.push([v[H],D,T]),z=R[H]}else if("left"===s){t=[];for(H=0,w=v.length;H<w;H++)T=0===H?Vt(n):-B,D=0===H?Wt(e):0,t.push(v[H])}else{if("justify"!==s)throw new Error('Unrecognized alignment option, use "left", "center", "right" or "justify".');t=[];for(O=0!==O?O:j,H=0,w=v.length;H<w;H++)T=0===H?Vt(n):-B,D=0===H?Wt(e):0,H<w-1&&q.push(((O-R[H])/(v[H].split(" ").length-1)*A).toFixed(2)),t.push([v[H],D,T])}}!0===("boolean"==typeof i.R2L?i.R2L:nt)&&(t=p(t,function(t,e,n){return[t.split("").reverse().join(""),e,n]}));L={text:t,x:e,y:n,options:i,mutex:{pdfEscape:vt,activeFontKey:$,fonts:rt,activeFontSize:et}};it.publish("postProcessText",L),t=L.text,l=L.mutex.isHex;v=f(t);t=[];var W,V,G,Y=0,J=(w=v.length,"");for(H=0;H<w;H++)J="",Array.isArray(v[H])?(W=parseFloat(v[H][1]),V=parseFloat(v[H][2]),G=(l?"<":"(")+v[H][0]+(l?">":")"),Y=1):(W=Wt(e),V=Vt(n),G=(l?"<":"(")+v[H]+(l?">":")")),void 0!==q&&void 0!==q[H]&&(J=q[H]+" Tw\n"),0!==S.length&&0===H?t.push(J+S.join(" ")+" "+W.toFixed(2)+" "+V.toFixed(2)+" Tm\n"+G):1===Y||0===Y&&0===H?t.push(J+W.toFixed(2)+" "+V.toFixed(2)+" Td\n"+G):t.push(J+G);t=0===Y?t.join(" Tj\nT* "):t.join(" Tj\n"),t+=" Tj\n";var X="BT\n/"+$+" "+et+" Tf\n"+(et*u).toFixed(2)+" TL\n"+Kt+"\n";return X+=h,X+=t,tt(X+="ET"),K[$]=!0,c},l.__private__.lstext=l.lstext=function(t,e,n,r){return console.warn("jsPDF.lstext is deprecated"),this.text(t,e,n,{charSpace:r})},l.__private__.clip=l.clip=function(t){tt("evenodd"===t?"W*":"W"),tt("n")},l.__private__.clip_fixed=l.clip_fixed=function(t){console.log("clip_fixed is deprecated"),l.clip(t)};var Ot=l.__private__.isValidStyle=function(t){var e=!1;return-1!==[void 0,null,"S","F","DF","FD","f","f*","B","B*"].indexOf(t)&&(e=!0),e},qt=l.__private__.getStyle=function(t){var e="S";return"F"===t?e="f":"FD"===t||"DF"===t?e="B":"f"!==t&&"f*"!==t&&"B"!==t&&"B*"!==t||(e=t),e};l.__private__.line=l.line=function(t,e,n,r){if(isNaN(t)||isNaN(e)||isNaN(n)||isNaN(r))throw new Error("Invalid arguments passed to jsPDF.line");return this.lines([[n-t,r-e]],t,e)},l.__private__.lines=l.lines=function(t,e,n,r,i,o){var a,s,l,h,u,c,f,p,d,g,m,y;if("number"==typeof t&&(y=n,n=e,e=t,t=y),r=r||[1,1],o=o||!1,isNaN(e)||isNaN(n)||!Array.isArray(t)||!Array.isArray(r)||!Ot(i)||"boolean"!=typeof o)throw new Error("Invalid arguments passed to jsPDF.lines");for(tt(Q(Wt(e))+" "+Q(Vt(n))+" m "),a=r[0],s=r[1],h=t.length,g=e,m=n,l=0;l<h;l++)2===(u=t[l]).length?(g=u[0]*a+g,m=u[1]*s+m,tt(Q(Wt(g))+" "+Q(Vt(m))+" l")):(c=u[0]*a+g,f=u[1]*s+m,p=u[2]*a+g,d=u[3]*s+m,g=u[4]*a+g,m=u[5]*s+m,tt(Q(Wt(c))+" "+Q(Vt(f))+" "+Q(Wt(p))+" "+Q(Vt(d))+" "+Q(Wt(g))+" "+Q(Vt(m))+" c"));return o&&tt(" h"),null!==i&&tt(qt(i)),this},l.__private__.rect=l.rect=function(t,e,n,r,i){if(isNaN(t)||isNaN(e)||isNaN(n)||isNaN(r)||!Ot(i))throw new Error("Invalid arguments passed to jsPDF.rect");return tt([Z(Wt(t)),Z(Vt(e)),Z(n*_),Z(-r*_),"re"].join(" ")),null!==i&&tt(qt(i)),this},l.__private__.triangle=l.triangle=function(t,e,n,r,i,o,a){if(isNaN(t)||isNaN(e)||isNaN(n)||isNaN(r)||isNaN(i)||isNaN(o)||!Ot(a))throw new Error("Invalid arguments passed to jsPDF.triangle");return this.lines([[n-t,r-e],[i-n,o-r],[t-i,e-o]],t,e,[1,1],a,!0),this},l.__private__.roundedRect=l.roundedRect=function(t,e,n,r,i,o,a){if(isNaN(t)||isNaN(e)||isNaN(n)||isNaN(r)||isNaN(i)||isNaN(o)||!Ot(a))throw new Error("Invalid arguments passed to jsPDF.roundedRect");var s=4/3*(Math.SQRT2-1);return this.lines([[n-2*i,0],[i*s,0,i,o-o*s,i,o],[0,r-2*o],[0,o*s,-i*s,o,-i,o],[2*i-n,0],[-i*s,0,-i,-o*s,-i,-o],[0,2*o-r],[0,-o*s,i*s,-o,i,-o]],t+i,e,[1,1],a),this},l.__private__.ellipse=l.ellipse=function(t,e,n,r,i){if(isNaN(t)||isNaN(e)||isNaN(n)||isNaN(r)||!Ot(i))throw new Error("Invalid arguments passed to jsPDF.ellipse");var o=4/3*(Math.SQRT2-1)*n,a=4/3*(Math.SQRT2-1)*r;return tt([Z(Wt(t+n)),Z(Vt(e)),"m",Z(Wt(t+n)),Z(Vt(e-a)),Z(Wt(t+o)),Z(Vt(e-r)),Z(Wt(t)),Z(Vt(e-r)),"c"].join(" ")),tt([Z(Wt(t-o)),Z(Vt(e-r)),Z(Wt(t-n)),Z(Vt(e-a)),Z(Wt(t-n)),Z(Vt(e)),"c"].join(" ")),tt([Z(Wt(t-n)),Z(Vt(e+a)),Z(Wt(t-o)),Z(Vt(e+r)),Z(Wt(t)),Z(Vt(e+r)),"c"].join(" ")),tt([Z(Wt(t+o)),Z(Vt(e+r)),Z(Wt(t+n)),Z(Vt(e+a)),Z(Wt(t+n)),Z(Vt(e)),"c"].join(" ")),null!==i&&tt(qt(i)),this},l.__private__.circle=l.circle=function(t,e,n,r){if(isNaN(t)||isNaN(e)||isNaN(n)||!Ot(r))throw new Error("Invalid arguments passed to jsPDF.circle");return this.ellipse(t,e,n,n,r)};l.setFont=function(t,e){return $=Lt(t,e,{disableWarning:!1}),this},l.setFontStyle=l.setFontType=function(t){return $=Lt(void 0,t),this};l.__private__.getFontList=l.getFontList=function(){var t,e,n,r={};for(t in H)if(H.hasOwnProperty(t))for(e in r[t]=n=[],H[t])H[t].hasOwnProperty(e)&&n.push(e);return r};l.addFont=function(t,e,n,r){yt.call(this,t,e,n,r=r||"Identity-H")};var Tt,Rt=r.lineWidth||.200025,Dt=l.__private__.setLineWidth=l.setLineWidth=function(t){return tt((t*_).toFixed(2)+" w"),this},Ut=(l.__private__.setLineDash=ae.API.setLineDash=function(t,e){if(t=t||[],e=e||0,isNaN(e)||!Array.isArray(t))throw new Error("Invalid arguments passed to jsPDF.setLineDash");return t=t.map(function(t){return(t*_).toFixed(3)}).join(" "),e=parseFloat((e*_).toFixed(3)),tt("["+t+"] "+e+" d"),this},l.__private__.getLineHeight=l.getLineHeight=function(){return et*Tt}),zt=(Ut=l.__private__.getLineHeight=l.getLineHeight=function(){return et*Tt},l.__private__.setLineHeightFactor=l.setLineHeightFactor=function(t){return"number"==typeof(t=t||1.15)&&(Tt=t),this}),Ht=l.__private__.getLineHeightFactor=l.getLineHeightFactor=function(){return Tt};zt(r.lineHeight);var Wt=l.__private__.getHorizontalCoordinate=function(t){return t*_},Vt=l.__private__.getVerticalCoordinate=function(t){return V[x].mediaBox.topRightY-V[x].mediaBox.bottomLeftY-t*_},Gt=l.__private__.getHorizontalCoordinateString=function(t){return Z(t*_)},Yt=l.__private__.getVerticalCoordinateString=function(t){return Z(V[x].mediaBox.topRightY-V[x].mediaBox.bottomLeftY-t*_)},Jt=r.strokeColor||"0 G",Xt=(l.__private__.getStrokeColor=l.getDrawColor=function(){return ht(Jt)},l.__private__.setStrokeColor=l.setDrawColor=function(t,e,n,r){return Jt=ut({ch1:t,ch2:e,ch3:n,ch4:r,pdfColorType:"draw",precision:2}),tt(Jt),this},r.fillColor||"0 g"),Kt=(l.__private__.getFillColor=l.getFillColor=function(){return ht(Xt)},l.__private__.setFillColor=l.setFillColor=function(t,e,n,r){return Xt=ut({ch1:t,ch2:e,ch3:n,ch4:r,pdfColorType:"fill",precision:2}),tt(Xt),this},r.textColor||"0 g"),Zt=l.__private__.getTextColor=l.getTextColor=function(){return ht(Kt)},Qt=(l.__private__.setTextColor=l.setTextColor=function(t,e,n,r){return Kt=ut({ch1:t,ch2:e,ch3:n,ch4:r,pdfColorType:"text",precision:3}),this},r.charSpace||0),$t=l.__private__.getCharSpace=l.getCharSpace=function(){return Qt},te=(l.__private__.setCharSpace=l.setCharSpace=function(t){if(isNaN(t))throw new Error("Invalid argument passed to jsPDF.setCharSpace");return Qt=t,this},0);l.CapJoinStyles={0:0,butt:0,but:0,miter:0,1:1,round:1,rounded:1,circle:1,2:2,projecting:2,project:2,square:2,bevel:2};l.__private__.setLineCap=l.setLineCap=function(t){var e=l.CapJoinStyles[t];if(void 0===e)throw new Error("Line cap style of '"+t+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return tt((te=e)+" J"),this};var ee,ne=0;l.__private__.setLineJoin=l.setLineJoin=function(t){var e=l.CapJoinStyles[t];if(void 0===e)throw new Error("Line join style of '"+t+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return tt((ne=e)+" j"),this},l.__private__.setMiterLimit=l.setMiterLimit=function(t){if(t=t||0,isNaN(t))throw new Error("Invalid argument passed to jsPDF.setMiterLimit");return ee=parseFloat(Z(t*_)),tt(ee+" M"),this};for(var re in l.save=function(r,t){if(r=r||"generated.pdf",(t=t||{}).returnPromise=t.returnPromise||!1,!1!==t.returnPromise)return new Promise(function(t,e){try{var n=le(It(kt()),r);"function"==typeof le.unload&&ie.setTimeout&&setTimeout(le.unload,911),t(n)}catch(t){e(t.message)}});le(It(kt()),r),"function"==typeof le.unload&&ie.setTimeout&&setTimeout(le.unload,911)},ae.API)ae.API.hasOwnProperty(re)&&("events"===re&&ae.API.events.length?function(t,e){var n,r,i;for(i=e.length-1;-1!==i;i--)n=e[i][0],r=e[i][1],t.subscribe.apply(t,[n].concat("function"==typeof r?[r]:r))}(it,ae.API.events):l[re]=ae.API[re]);return l.internal={pdfEscape:vt,getStyle:qt,getFont:function(){return rt[Lt.apply(l,arguments)]},getFontSize:O,getCharSpace:$t,getTextColor:Zt,getLineHeight:Ut,getLineHeightFactor:Ht,write:j,getHorizontalCoordinate:Wt,getVerticalCoordinate:Vt,getCoordinateString:Gt,getVerticalCoordinateString:Yt,collections:{},newObject:J,newAdditionalObject:at,newObjectDeferred:X,newObjectDeferredBegin:ot,getFilters:ct,putStream:ft,events:it,scaleFactor:_,pageSize:{getWidth:function(){return(V[x].mediaBox.topRightX-V[x].mediaBox.bottomLeftX)/_},setWidth:function(t){V[x].mediaBox.topRightX=t*_+V[x].mediaBox.bottomLeftX},getHeight:function(){return(V[x].mediaBox.topRightY-V[x].mediaBox.bottomLeftY)/_},setHeight:function(t){V[x].mediaBox.topRightY=t*_+V[x].mediaBox.bottomLeftY}},output:Ct,getNumberOfPages:Nt,pages:I,out:tt,f2:Z,f3:Q,getPageInfo:jt,getPageInfoByObjId:Et,getCurrentPageInfo:Mt,getPDFVersion:u,hasHotfix:Bt},Object.defineProperty(l.internal.pageSize,"width",{get:function(){return(V[x].mediaBox.topRightX-V[x].mediaBox.bottomLeftX)/_},set:function(t){V[x].mediaBox.topRightX=t*_+V[x].mediaBox.bottomLeftX},enumerable:!0,configurable:!0}),Object.defineProperty(l.internal.pageSize,"height",{get:function(){return(V[x].mediaBox.topRightY-V[x].mediaBox.bottomLeftY)/_},set:function(t){V[x].mediaBox.topRightY=t*_+V[x].mediaBox.bottomLeftY},enumerable:!0,configurable:!0}),function(t){for(var e=0,n=M.length;e<n;e++){var r=yt(t[e][0],t[e][1],t[e][2],M[e][3],!0);K[r]=!0;var i=t[e][0].split("-");mt(r,i[0],i[1]||"")}it.publish("addFonts",{fonts:rt,dictionary:H})}(M),$="F1",bt(i,t),it.publish("initialized"),l}return ae.API={events:[]},ae.version="1.5.3","function"==typeof define&&define.amd?define("jsPDF",function(){return ae}):"undefined"!=typeof module&&module.exports?(module.exports=ae,module.exports.jsPDF=ae):ie.jsPDF=ae,ae}("undefined"!=typeof self&&self||"undefined"!=typeof window&&window||"undefined"!=typeof global&&global||Function('return typeof this === "object" && this.content')()||Function("return this")());-/**- * @license- * Copyright (c) 2016 Alexander Weidt,- * https://github.com/BiggA94- *- * Licensed under the MIT License. http://opensource.org/licenses/mit-license- */-(function(t,e){var A,n=1,S=function(t){return t.replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},y=function(t){return t.replace(/\\\\/g,"\\").replace(/\\\(/g,"(").replace(/\\\)/g,")")},_=function(t){if(isNaN(t))throw new Error("Invalid argument passed to jsPDF.f2");return t.toFixed(2)},s=function(t){if(isNaN(t))throw new Error("Invalid argument passed to jsPDF.f2");return t.toFixed(5)};t.__acroform__={};var r=function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t},v=function(t){return t*n},w=function(t){return t/n},l=function(t){var e=new j,n=Y.internal.getHeight(t)||0,r=Y.internal.getWidth(t)||0;return e.BBox=[0,0,Number(_(r)),Number(_(n))],e},i=t.__acroform__.setBit=function(t,e){if(t=t||0,e=e||0,isNaN(t)||isNaN(e))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBit");return t|=1<<e},o=t.__acroform__.clearBit=function(t,e){if(t=t||0,e=e||0,isNaN(t)||isNaN(e))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBit");return t&=~(1<<e)},a=t.__acroform__.getBit=function(t,e){if(isNaN(t)||isNaN(e))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBit");return 0==(t&1<<e)?0:1},b=t.__acroform__.getBitForPdf=function(t,e){if(isNaN(t)||isNaN(e))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBitForPdf");return a(t,e-1)},x=t.__acroform__.setBitForPdf=function(t,e){if(isNaN(t)||isNaN(e))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBitForPdf");return i(t,e-1)},N=t.__acroform__.clearBitForPdf=function(t,e,n){if(isNaN(t)||isNaN(e))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBitForPdf");return o(t,e-1)},c=t.__acroform__.calculateCoordinates=function(t){var e=this.internal.getHorizontalCoordinate,n=this.internal.getVerticalCoordinate,r=t[0],i=t[1],o=t[2],a=t[3],s={};return s.lowerLeft_X=e(r)||0,s.lowerLeft_Y=n(i+a)||0,s.upperRight_X=e(r+o)||0,s.upperRight_Y=n(i)||0,[Number(_(s.lowerLeft_X)),Number(_(s.lowerLeft_Y)),Number(_(s.upperRight_X)),Number(_(s.upperRight_Y))]},f=function(t){if(t.appearanceStreamContent)return t.appearanceStreamContent;if(t.V||t.DV){var e=[],n=t.V||t.DV,r=h(t,n),i=A.internal.getFont(t.fontName,t.fontStyle).id;e.push("/Tx BMC"),e.push("q"),e.push("BT"),e.push(A.__private__.encodeColorString(t.color)),e.push("/"+i+" "+_(r.fontSize)+" Tf"),e.push("1 0 0 1 0 0 Tm"),e.push(r.text),e.push("ET"),e.push("Q"),e.push("EMC");var o=new l(t);return o.stream=e.join("\n"),o}},h=function(i,t){var e=i.maxFontSize||12,n=(i.fontName,{text:"",fontSize:""}),o=(t=")"==(t="("==t.substr(0,1)?t.substr(1):t).substr(t.length-1)?t.substr(0,t.length-1):t).split(" "),r=(A.__private__.encodeColorString(i.color),e),a=Y.internal.getHeight(i)||0;a=a<0?-a:a;var s=Y.internal.getWidth(i)||0;s=s<0?-s:s;var l=function(t,e,n){if(t+1<o.length){var r=e+" "+o[t+1];return F(r,i,n).width<=s-4}return!1};r++;t:for(;;){t="";var h=F("3",i,--r).height,u=i.multiline?a-r:(a-h)/2,c=-2,f=u+=2,p=0,d=0,g=0;if(r<=0){t="(...) Tj\n",t+="% Width of Text: "+F(t,i,r=12).width+", FieldWidth:"+s+"\n";break}g=F(o[0]+" ",i,r).width;var m="",y=0;for(var v in o)if(o.hasOwnProperty(v)){m=" "==(m+=o[v]+" ").substr(m.length-1)?m.substr(0,m.length-1):m;var w=parseInt(v);g=F(m+" ",i,r).width;var b=l(w,m,r),x=v>=o.length-1;if(b&&!x){m+=" ";continue}if(b||x){if(x)d=w;else if(i.multiline&&a<(h+2)*(y+2)+2)continue t}else{if(!i.multiline)continue t;if(a<(h+2)*(y+2)+2)continue t;d=w}for(var N="",L=p;L<=d;L++)N+=o[L]+" ";switch(N=" "==N.substr(N.length-1)?N.substr(0,N.length-1):N,g=F(N,i,r).width,i.textAlign){case"right":c=s-g-2;break;case"center":c=(s-g)/2;break;case"left":default:c=2}t+=_(c)+" "+_(f)+" Td\n",t+="("+S(N)+") Tj\n",t+=-_(c)+" 0 Td\n",f=-(r+2),g=0,p=d+1,y++,m=""}else;break}return n.text=t,n.fontSize=r,n},F=function(t,e,n){var r=A.internal.getFont(e.fontName,e.fontStyle),i=A.getStringUnitWidth(t,{font:r,fontSize:parseFloat(n),charSpace:0})*parseFloat(n);return{height:A.getStringUnitWidth("3",{font:r,fontSize:parseFloat(n),charSpace:0})*parseFloat(n)*1.5,width:i}},u={fields:[],xForms:[],acroFormDictionaryRoot:null,printedOut:!1,internal:null,isInitialized:!1},p=function(){A.internal.acroformPlugin.acroFormDictionaryRoot.objId=void 0;var t=A.internal.acroformPlugin.acroFormDictionaryRoot.Fields;for(var e in t)if(t.hasOwnProperty(e)){var n=t[e];n.objId=void 0,n.hasAnnotation&&d.call(A,n)}},d=function(t){var e={type:"reference",object:t};void 0===A.internal.getPageInfo(t.page).pageContext.annotations.find(function(t){return t.type===e.type&&t.object===e.object})&&A.internal.getPageInfo(t.page).pageContext.annotations.push(e)},g=function(){if(void 0===A.internal.acroformPlugin.acroFormDictionaryRoot)throw new Error("putCatalogCallback: Root missing.");A.internal.write("/AcroForm "+A.internal.acroformPlugin.acroFormDictionaryRoot.objId+" 0 R")},m=function(){A.internal.events.unsubscribe(A.internal.acroformPlugin.acroFormDictionaryRoot._eventID),delete A.internal.acroformPlugin.acroFormDictionaryRoot._eventID,A.internal.acroformPlugin.printedOut=!0},L=function(t){var e=!t;t||(A.internal.newObjectDeferredBegin(A.internal.acroformPlugin.acroFormDictionaryRoot.objId,!0),A.internal.acroformPlugin.acroFormDictionaryRoot.putStream());t=t||A.internal.acroformPlugin.acroFormDictionaryRoot.Kids;for(var n in t)if(t.hasOwnProperty(n)){var r=t[n],i=[],o=r.Rect;if(r.Rect&&(r.Rect=c.call(this,r.Rect)),A.internal.newObjectDeferredBegin(r.objId,!0),r.DA=Y.createDefaultAppearanceStream(r),"object"===se(r)&&"function"==typeof r.getKeyValueListForStream&&(i=r.getKeyValueListForStream()),r.Rect=o,r.hasAppearanceStream&&!r.appearanceStreamContent){var a=f.call(this,r);i.push({key:"AP",value:"<</N "+a+">>"}),A.internal.acroformPlugin.xForms.push(a)}if(r.appearanceStreamContent){var s="";for(var l in r.appearanceStreamContent)if(r.appearanceStreamContent.hasOwnProperty(l)){var h=r.appearanceStreamContent[l];if(s+="/"+l+" ",s+="<<",1<=Object.keys(h).length||Array.isArray(h))for(var n in h){var u;if(h.hasOwnProperty(n))"function"==typeof(u=h[n])&&(u=u.call(this,r)),s+="/"+n+" "+u+" ",0<=A.internal.acroformPlugin.xForms.indexOf(u)||A.internal.acroformPlugin.xForms.push(u)}else"function"==typeof(u=h)&&(u=u.call(this,r)),s+="/"+n+" "+u,0<=A.internal.acroformPlugin.xForms.indexOf(u)||A.internal.acroformPlugin.xForms.push(u);s+=">>"}i.push({key:"AP",value:"<<\n"+s+">>"})}A.internal.putStream({additionalKeyValues:i}),A.internal.out("endobj")}e&&P.call(this,A.internal.acroformPlugin.xForms)},P=function(t){for(var e in t)if(t.hasOwnProperty(e)){var n=e,r=t[e];A.internal.newObjectDeferredBegin(r&&r.objId,!0),"object"===se(r)&&"function"==typeof r.putStream&&r.putStream(),delete t[n]}},k=function(){if(void 0!==this.internal&&(void 0===this.internal.acroformPlugin||!1===this.internal.acroformPlugin.isInitialized)){if(A=this,M.FieldNum=0,this.internal.acroformPlugin=JSON.parse(JSON.stringify(u)),this.internal.acroformPlugin.acroFormDictionaryRoot)throw new Error("Exception while creating AcroformDictionary");n=A.internal.scaleFactor,A.internal.acroformPlugin.acroFormDictionaryRoot=new E,A.internal.acroformPlugin.acroFormDictionaryRoot._eventID=A.internal.events.subscribe("postPutResources",m),A.internal.events.subscribe("buildDocument",p),A.internal.events.subscribe("putCatalog",g),A.internal.events.subscribe("postPutPages",L),A.internal.acroformPlugin.isInitialized=!0}},I=t.__acroform__.arrayToPdfArray=function(t){if(Array.isArray(t)){for(var e="[",n=0;n<t.length;n++)switch(0!==n&&(e+=" "),se(t[n])){case"boolean":case"number":case"object":e+=t[n].toString();break;case"string":"/"!==t[n].substr(0,1)?e+="("+S(t[n].toString())+")":e+=t[n].toString()}return e+="]"}throw new Error("Invalid argument passed to jsPDF.__acroform__.arrayToPdfArray")};var C=function(t){return(t=t||"").toString(),t="("+S(t)+")"},B=function(){var e;Object.defineProperty(this,"objId",{configurable:!0,get:function(){if(e||(e=A.internal.newObjectDeferred()),!e)throw new Error("AcroFormPDFObject: Couldn't create Object ID");return e},set:function(t){e=t}})};B.prototype.toString=function(){return this.objId+" 0 R"},B.prototype.putStream=function(){var t=this.getKeyValueListForStream();A.internal.putStream({data:this.stream,additionalKeyValues:t}),A.internal.out("endobj")},B.prototype.getKeyValueListForStream=function(){return function(t){var e=[],n=Object.getOwnPropertyNames(t).filter(function(t){return"content"!=t&&"appearanceStreamContent"!=t&&"_"!=t.substring(0,1)});for(var r in n)if(!1===Object.getOwnPropertyDescriptor(t,n[r]).configurable){var i=n[r],o=t[i];o&&(Array.isArray(o)?e.push({key:i,value:I(o)}):o instanceof B?e.push({key:i,value:o.objId+" 0 R"}):"function"!=typeof o&&e.push({key:i,value:o}))}return e}(this)};var j=function(){B.call(this),Object.defineProperty(this,"Type",{value:"/XObject",configurable:!1,writeable:!0}),Object.defineProperty(this,"Subtype",{value:"/Form",configurable:!1,writeable:!0}),Object.defineProperty(this,"FormType",{value:1,configurable:!1,writeable:!0});var e,n=[];Object.defineProperty(this,"BBox",{configurable:!1,writeable:!0,get:function(){return n},set:function(t){n=t}}),Object.defineProperty(this,"Resources",{value:"2 0 R",configurable:!1,writeable:!0}),Object.defineProperty(this,"stream",{enumerable:!1,configurable:!0,set:function(t){e=t.trim()},get:function(){return e||null}})};r(j,B);var E=function(){B.call(this);var e,t=[];Object.defineProperty(this,"Kids",{enumerable:!1,configurable:!0,get:function(){return 0<t.length?t:void 0}}),Object.defineProperty(this,"Fields",{enumerable:!1,configurable:!1,get:function(){return t}}),Object.defineProperty(this,"DA",{enumerable:!1,configurable:!1,get:function(){if(e)return"("+e+")"},set:function(t){e=t}})};r(E,B);var M=function t(){B.call(this);var e=4;Object.defineProperty(this,"F",{enumerable:!1,configurable:!1,get:function(){return e},set:function(t){if(isNaN(t))throw new Error('Invalid value "'+t+'" for attribute F supplied.');e=t}}),Object.defineProperty(this,"showWhenPrinted",{enumerable:!0,configurable:!0,get:function(){return Boolean(b(e,3))},set:function(t){!0===Boolean(t)?this.F=x(e,3):this.F=N(e,3)}});var n=0;Object.defineProperty(this,"Ff",{enumerable:!1,configurable:!1,get:function(){return n},set:function(t){if(isNaN(t))throw new Error('Invalid value "'+t+'" for attribute Ff supplied.');n=t}});var r=[];Object.defineProperty(this,"Rect",{enumerable:!1,configurable:!1,get:function(){if(0!==r.length)return r},set:function(t){r=void 0!==t?t:[]}}),Object.defineProperty(this,"x",{enumerable:!0,configurable:!0,get:function(){return!r||isNaN(r[0])?0:w(r[0])},set:function(t){r[0]=v(t)}}),Object.defineProperty(this,"y",{enumerable:!0,configurable:!0,get:function(){return!r||isNaN(r[1])?0:w(r[1])},set:function(t){r[1]=v(t)}}),Object.defineProperty(this,"width",{enumerable:!0,configurable:!0,get:function(){return!r||isNaN(r[2])?0:w(r[2])},set:function(t){r[2]=v(t)}}),Object.defineProperty(this,"height",{enumerable:!0,configurable:!0,get:function(){return!r||isNaN(r[3])?0:w(r[3])},set:function(t){r[3]=v(t)}});var i="";Object.defineProperty(this,"FT",{enumerable:!0,configurable:!1,get:function(){return i},set:function(t){switch(t){case"/Btn":case"/Tx":case"/Ch":case"/Sig":i=t;break;default:throw new Error('Invalid value "'+t+'" for attribute FT supplied.')}}});var o=null;Object.defineProperty(this,"T",{enumerable:!0,configurable:!1,get:function(){if(!o||o.length<1){if(this instanceof H)return;o="FieldObject"+t.FieldNum++}return"("+S(o)+")"},set:function(t){o=t.toString()}}),Object.defineProperty(this,"fieldName",{configurable:!0,enumerable:!0,get:function(){return o},set:function(t){o=t}});var a="helvetica";Object.defineProperty(this,"fontName",{enumerable:!0,configurable:!0,get:function(){return a},set:function(t){a=t}});var s="normal";Object.defineProperty(this,"fontStyle",{enumerable:!0,configurable:!0,get:function(){return s},set:function(t){s=t}});var l=0;Object.defineProperty(this,"fontSize",{enumerable:!0,configurable:!0,get:function(){return w(l)},set:function(t){l=v(t)}});var h=50;Object.defineProperty(this,"maxFontSize",{enumerable:!0,configurable:!0,get:function(){return w(h)},set:function(t){h=v(t)}});var u="black";Object.defineProperty(this,"color",{enumerable:!0,configurable:!0,get:function(){return u},set:function(t){u=t}});var c="/F1 0 Tf 0 g";Object.defineProperty(this,"DA",{enumerable:!0,configurable:!1,get:function(){if(!(!c||this instanceof H||this instanceof V))return C(c)},set:function(t){t=t.toString(),c=t}});var f=null;Object.defineProperty(this,"DV",{enumerable:!1,configurable:!1,get:function(){if(f)return this instanceof D==!1?C(f):f},set:function(t){t=t.toString(),f=this instanceof D==!1?"("===t.substr(0,1)?y(t.substr(1,t.length-2)):y(t):t}}),Object.defineProperty(this,"defaultValue",{enumerable:!0,configurable:!0,get:function(){return this instanceof D==!0?y(f.substr(1,f.length-1)):f},set:function(t){t=t.toString(),f=this instanceof D==!0?"/"+t:t}});var p=null;Object.defineProperty(this,"V",{enumerable:!1,configurable:!1,get:function(){if(p)return this instanceof D==!1?C(p):p},set:function(t){t=t.toString(),p=this instanceof D==!1?"("===t.substr(0,1)?y(t.substr(1,t.length-2)):y(t):t}}),Object.defineProperty(this,"value",{enumerable:!0,configurable:!0,get:function(){return this instanceof D==!0?y(p.substr(1,p.length-1)):p},set:function(t){t=t.toString(),p=this instanceof D==!0?"/"+t:t}}),Object.defineProperty(this,"hasAnnotation",{enumerable:!0,configurable:!0,get:function(){return this.Rect}}),Object.defineProperty(this,"Type",{enumerable:!0,configurable:!1,get:function(){return this.hasAnnotation?"/Annot":null}}),Object.defineProperty(this,"Subtype",{enumerable:!0,configurable:!1,get:function(){return this.hasAnnotation?"/Widget":null}});var d,g=!1;Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,writeable:!0,get:function(){return g},set:function(t){t=Boolean(t),g=t}}),Object.defineProperty(this,"page",{enumerable:!0,configurable:!0,writeable:!0,get:function(){if(d)return d},set:function(t){d=t}}),Object.defineProperty(this,"readOnly",{enumerable:!0,configurable:!0,get:function(){return Boolean(b(this.Ff,1))},set:function(t){!0===Boolean(t)?this.Ff=x(this.Ff,1):this.Ff=N(this.Ff,1)}}),Object.defineProperty(this,"required",{enumerable:!0,configurable:!0,get:function(){return Boolean(b(this.Ff,2))},set:function(t){!0===Boolean(t)?this.Ff=x(this.Ff,2):this.Ff=N(this.Ff,2)}}),Object.defineProperty(this,"noExport",{enumerable:!0,configurable:!0,get:function(){return Boolean(b(this.Ff,3))},set:function(t){!0===Boolean(t)?this.Ff=x(this.Ff,3):this.Ff=N(this.Ff,3)}});var m=null;Object.defineProperty(this,"Q",{enumerable:!0,configurable:!1,get:function(){if(null!==m)return m},set:function(t){if(-1===[0,1,2].indexOf(t))throw new Error('Invalid value "'+t+'" for attribute Q supplied.');m=t}}),Object.defineProperty(this,"textAlign",{get:function(){var t="left";switch(m){case 0:default:t="left";break;case 1:t="center";break;case 2:t="right"}return t},configurable:!0,enumerable:!0,set:function(t){switch(t){case"right":case 2:m=2;break;case"center":case 1:m=1;break;case"left":case 0:default:m=0}}})};r(M,B);var O=function(){M.call(this),this.FT="/Ch",this.V="()",this.fontName="zapfdingbats";var e=0;Object.defineProperty(this,"TI",{enumerable:!0,configurable:!1,get:function(){return e},set:function(t){e=t}}),Object.defineProperty(this,"topIndex",{enumerable:!0,configurable:!0,get:function(){return e},set:function(t){e=t}});var r=[];Object.defineProperty(this,"Opt",{enumerable:!0,configurable:!1,get:function(){return I(r)},set:function(t){var e,n;n=[],"string"==typeof(e=t)&&(n=function(t,e,n){n||(n=1);for(var r,i=[];r=e.exec(t);)i.push(r[n]);return i}(e,/\((.*?)\)/g)),r=n}}),this.getOptions=function(){return r},this.setOptions=function(t){r=t,this.sort&&r.sort()},this.addOption=function(t){t=(t=t||"").toString(),r.push(t),this.sort&&r.sort()},this.removeOption=function(t,e){for(e=e||!1,t=(t=t||"").toString();-1!==r.indexOf(t)&&(r.splice(r.indexOf(t),1),!1!==e););},Object.defineProperty(this,"combo",{enumerable:!0,configurable:!0,get:function(){return Boolean(b(this.Ff,18))},set:function(t){!0===Boolean(t)?this.Ff=x(this.Ff,18):this.Ff=N(this.Ff,18)}}),Object.defineProperty(this,"edit",{enumerable:!0,configurable:!0,get:function(){return Boolean(b(this.Ff,19))},set:function(t){!0===this.combo&&(!0===Boolean(t)?this.Ff=x(this.Ff,19):this.Ff=N(this.Ff,19))}}),Object.defineProperty(this,"sort",{enumerable:!0,configurable:!0,get:function(){return Boolean(b(this.Ff,20))},set:function(t){!0===Boolean(t)?(this.Ff=x(this.Ff,20),r.sort()):this.Ff=N(this.Ff,20)}}),Object.defineProperty(this,"multiSelect",{enumerable:!0,configurable:!0,get:function(){return Boolean(b(this.Ff,22))},set:function(t){!0===Boolean(t)?this.Ff=x(this.Ff,22):this.Ff=N(this.Ff,22)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return Boolean(b(this.Ff,23))},set:function(t){!0===Boolean(t)?this.Ff=x(this.Ff,23):this.Ff=N(this.Ff,23)}}),Object.defineProperty(this,"commitOnSelChange",{enumerable:!0,configurable:!0,get:function(){return Boolean(b(this.Ff,27))},set:function(t){!0===Boolean(t)?this.Ff=x(this.Ff,27):this.Ff=N(this.Ff,27)}}),this.hasAppearanceStream=!1};r(O,M);var q=function(){O.call(this),this.fontName="helvetica",this.combo=!1};r(q,O);var T=function(){q.call(this),this.combo=!0};r(T,q);var R=function(){T.call(this),this.edit=!0};r(R,T);var D=function(){M.call(this),this.FT="/Btn",Object.defineProperty(this,"noToggleToOff",{enumerable:!0,configurable:!0,get:function(){return Boolean(b(this.Ff,15))},set:function(t){!0===Boolean(t)?this.Ff=x(this.Ff,15):this.Ff=N(this.Ff,15)}}),Object.defineProperty(this,"radio",{enumerable:!0,configurable:!0,get:function(){return Boolean(b(this.Ff,16))},set:function(t){!0===Boolean(t)?this.Ff=x(this.Ff,16):this.Ff=N(this.Ff,16)}}),Object.defineProperty(this,"pushButton",{enumerable:!0,configurable:!0,get:function(){return Boolean(b(this.Ff,17))},set:function(t){!0===Boolean(t)?this.Ff=x(this.Ff,17):this.Ff=N(this.Ff,17)}}),Object.defineProperty(this,"radioIsUnison",{enumerable:!0,configurable:!0,get:function(){return Boolean(b(this.Ff,26))},set:function(t){!0===Boolean(t)?this.Ff=x(this.Ff,26):this.Ff=N(this.Ff,26)}});var e,n={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){if(0!==Object.keys(n).length){var t,e=[];for(t in e.push("<<"),n)e.push("/"+t+" ("+n[t]+")");return e.push(">>"),e.join("\n")}},set:function(t){"object"===se(t)&&(n=t)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return n.CA||""},set:function(t){"string"==typeof t&&(n.CA=t)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return e},set:function(t){e=t}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return e.substr(1,e.length-1)},set:function(t){e="/"+t}})};r(D,M);var U=function(){D.call(this),this.pushButton=!0};r(U,D);var z=function(){D.call(this),this.radio=!0,this.pushButton=!1;var e=[];Object.defineProperty(this,"Kids",{enumerable:!0,configurable:!1,get:function(){return e},set:function(t){e=void 0!==t?t:[]}})};r(z,D);var H=function(){var e,n;M.call(this),Object.defineProperty(this,"Parent",{enumerable:!1,configurable:!1,get:function(){return e},set:function(t){e=t}}),Object.defineProperty(this,"optionName",{enumerable:!1,configurable:!0,get:function(){return n},set:function(t){n=t}});var r,i={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var t,e=[];for(t in e.push("<<"),i)e.push("/"+t+" ("+i[t]+")");return e.push(">>"),e.join("\n")},set:function(t){"object"===se(t)&&(i=t)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return i.CA||""},set:function(t){"string"==typeof t&&(i.CA=t)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return r},set:function(t){r=t}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return r.substr(1,r.length-1)},set:function(t){r="/"+t}}),this.optionName=name,this.caption="l",this.appearanceState="Off",this._AppearanceType=Y.RadioButton.Circle,this.appearanceStreamContent=this._AppearanceType.createAppearanceStream(name)};r(H,M),z.prototype.setAppearance=function(t){if(!("createAppearanceStream"in t&&"getCA"in t))throw new Error("Couldn't assign Appearance to RadioButton. Appearance was Invalid!");for(var e in this.Kids)if(this.Kids.hasOwnProperty(e)){var n=this.Kids[e];n.appearanceStreamContent=t.createAppearanceStream(n.optionName),n.caption=t.getCA()}},z.prototype.createOption=function(t){this.Kids.length;var e=new H;return e.Parent=this,e.optionName=t,this.Kids.push(e),J.call(this,e),e};var W=function(){D.call(this),this.fontName="zapfdingbats",this.caption="3",this.appearanceState="On",this.value="On",this.textAlign="center",this.appearanceStreamContent=Y.CheckBox.createAppearanceStream()};r(W,D);var V=function(){M.call(this),this.FT="/Tx",Object.defineProperty(this,"multiline",{enumerable:!0,configurable:!0,get:function(){return Boolean(b(this.Ff,13))},set:function(t){!0===Boolean(t)?this.Ff=x(this.Ff,13):this.Ff=N(this.Ff,13)}}),Object.defineProperty(this,"fileSelect",{enumerable:!0,configurable:!0,get:function(){return Boolean(b(this.Ff,21))},set:function(t){!0===Boolean(t)?this.Ff=x(this.Ff,21):this.Ff=N(this.Ff,21)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return Boolean(b(this.Ff,23))},set:function(t){!0===Boolean(t)?this.Ff=x(this.Ff,23):this.Ff=N(this.Ff,23)}}),Object.defineProperty(this,"doNotScroll",{enumerable:!0,configurable:!0,get:function(){return Boolean(b(this.Ff,24))},set:function(t){!0===Boolean(t)?this.Ff=x(this.Ff,24):this.Ff=N(this.Ff,24)}}),Object.defineProperty(this,"comb",{enumerable:!0,configurable:!0,get:function(){return Boolean(b(this.Ff,25))},set:function(t){!0===Boolean(t)?this.Ff=x(this.Ff,25):this.Ff=N(this.Ff,25)}}),Object.defineProperty(this,"richText",{enumerable:!0,configurable:!0,get:function(){return Boolean(b(this.Ff,26))},set:function(t){!0===Boolean(t)?this.Ff=x(this.Ff,26):this.Ff=N(this.Ff,26)}});var e=null;Object.defineProperty(this,"MaxLen",{enumerable:!0,configurable:!1,get:function(){return e},set:function(t){e=t}}),Object.defineProperty(this,"maxLength",{enumerable:!0,configurable:!0,get:function(){return e},set:function(t){Number.isInteger(t)&&(e=t)}}),Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return this.V||this.DV}})};r(V,M);var G=function(){V.call(this),Object.defineProperty(this,"password",{enumerable:!0,configurable:!0,get:function(){return Boolean(b(this.Ff,14))},set:function(t){!0===Boolean(t)?this.Ff=x(this.Ff,14):this.Ff=N(this.Ff,14)}}),this.password=!0};r(G,V);var Y={CheckBox:{createAppearanceStream:function(){return{N:{On:Y.CheckBox.YesNormal},D:{On:Y.CheckBox.YesPushDown,Off:Y.CheckBox.OffPushDown}}},YesPushDown:function(t){var e=l(t),n=[],r=A.internal.getFont(t.fontName,t.fontStyle).id,i=A.__private__.encodeColorString(t.color),o=h(t,t.caption);return n.push("0.749023 g"),n.push("0 0 "+_(Y.internal.getWidth(t))+" "+_(Y.internal.getHeight(t))+" re"),n.push("f"),n.push("BMC"),n.push("q"),n.push("0 0 1 rg"),n.push("/"+r+" "+_(o.fontSize)+" Tf "+i),n.push("BT"),n.push(o.text),n.push("ET"),n.push("Q"),n.push("EMC"),e.stream=n.join("\n"),e},YesNormal:function(t){var e=l(t),n=A.internal.getFont(t.fontName,t.fontStyle).id,r=A.__private__.encodeColorString(t.color),i=[],o=Y.internal.getHeight(t),a=Y.internal.getWidth(t),s=h(t,t.caption);return i.push("1 g"),i.push("0 0 "+_(a)+" "+_(o)+" re"),i.push("f"),i.push("q"),i.push("0 0 1 rg"),i.push("0 0 "+_(a-1)+" "+_(o-1)+" re"),i.push("W"),i.push("n"),i.push("0 g"),i.push("BT"),i.push("/"+n+" "+_(s.fontSize)+" Tf "+r),i.push(s.text),i.push("ET"),i.push("Q"),e.stream=i.join("\n"),e},OffPushDown:function(t){var e=l(t),n=[];return n.push("0.749023 g"),n.push("0 0 "+_(Y.internal.getWidth(t))+" "+_(Y.internal.getHeight(t))+" re"),n.push("f"),e.stream=n.join("\n"),e}},RadioButton:{Circle:{createAppearanceStream:function(t){var e={D:{Off:Y.RadioButton.Circle.OffPushDown},N:{}};return e.N[t]=Y.RadioButton.Circle.YesNormal,e.D[t]=Y.RadioButton.Circle.YesPushDown,e},getCA:function(){return"l"},YesNormal:function(t){var e=l(t),n=[],r=Y.internal.getWidth(t)<=Y.internal.getHeight(t)?Y.internal.getWidth(t)/4:Y.internal.getHeight(t)/4;r=Number((.9*r).toFixed(5));var i=Y.internal.Bezier_C,o=Number((r*i).toFixed(5));return n.push("q"),n.push("1 0 0 1 "+s(Y.internal.getWidth(t)/2)+" "+s(Y.internal.getHeight(t)/2)+" cm"),n.push(r+" 0 m"),n.push(r+" "+o+" "+o+" "+r+" 0 "+r+" c"),n.push("-"+o+" "+r+" -"+r+" "+o+" -"+r+" 0 c"),n.push("-"+r+" -"+o+" -"+o+" -"+r+" 0 -"+r+" c"),n.push(o+" -"+r+" "+r+" -"+o+" "+r+" 0 c"),n.push("f"),n.push("Q"),e.stream=n.join("\n"),e},YesPushDown:function(t){var e=l(t),n=[],r=Y.internal.getWidth(t)<=Y.internal.getHeight(t)?Y.internal.getWidth(t)/4:Y.internal.getHeight(t)/4,i=(r=Number((.9*r).toFixed(5)),Number((2*r).toFixed(5))),o=Number((i*Y.internal.Bezier_C).toFixed(5)),a=Number((r*Y.internal.Bezier_C).toFixed(5));return n.push("0.749023 g"),n.push("q"),n.push("1 0 0 1 "+s(Y.internal.getWidth(t)/2)+" "+s(Y.internal.getHeight(t)/2)+" cm"),n.push(i+" 0 m"),n.push(i+" "+o+" "+o+" "+i+" 0 "+i+" c"),n.push("-"+o+" "+i+" -"+i+" "+o+" -"+i+" 0 c"),n.push("-"+i+" -"+o+" -"+o+" -"+i+" 0 -"+i+" c"),n.push(o+" -"+i+" "+i+" -"+o+" "+i+" 0 c"),n.push("f"),n.push("Q"),n.push("0 g"),n.push("q"),n.push("1 0 0 1 "+s(Y.internal.getWidth(t)/2)+" "+s(Y.internal.getHeight(t)/2)+" cm"),n.push(r+" 0 m"),n.push(r+" "+a+" "+a+" "+r+" 0 "+r+" c"),n.push("-"+a+" "+r+" -"+r+" "+a+" -"+r+" 0 c"),n.push("-"+r+" -"+a+" -"+a+" -"+r+" 0 -"+r+" c"),n.push(a+" -"+r+" "+r+" -"+a+" "+r+" 0 c"),n.push("f"),n.push("Q"),e.stream=n.join("\n"),e},OffPushDown:function(t){var e=l(t),n=[],r=Y.internal.getWidth(t)<=Y.internal.getHeight(t)?Y.internal.getWidth(t)/4:Y.internal.getHeight(t)/4,i=(r=Number((.9*r).toFixed(5)),Number((2*r).toFixed(5))),o=Number((i*Y.internal.Bezier_C).toFixed(5));return n.push("0.749023 g"),n.push("q"),n.push("1 0 0 1 "+s(Y.internal.getWidth(t)/2)+" "+s(Y.internal.getHeight(t)/2)+" cm"),n.push(i+" 0 m"),n.push(i+" "+o+" "+o+" "+i+" 0 "+i+" c"),n.push("-"+o+" "+i+" -"+i+" "+o+" -"+i+" 0 c"),n.push("-"+i+" -"+o+" -"+o+" -"+i+" 0 -"+i+" c"),n.push(o+" -"+i+" "+i+" -"+o+" "+i+" 0 c"),n.push("f"),n.push("Q"),e.stream=n.join("\n"),e}},Cross:{createAppearanceStream:function(t){var e={D:{Off:Y.RadioButton.Cross.OffPushDown},N:{}};return e.N[t]=Y.RadioButton.Cross.YesNormal,e.D[t]=Y.RadioButton.Cross.YesPushDown,e},getCA:function(){return"8"},YesNormal:function(t){var e=l(t),n=[],r=Y.internal.calculateCross(t);return n.push("q"),n.push("1 1 "+_(Y.internal.getWidth(t)-2)+" "+_(Y.internal.getHeight(t)-2)+" re"),n.push("W"),n.push("n"),n.push(_(r.x1.x)+" "+_(r.x1.y)+" m"),n.push(_(r.x2.x)+" "+_(r.x2.y)+" l"),n.push(_(r.x4.x)+" "+_(r.x4.y)+" m"),n.push(_(r.x3.x)+" "+_(r.x3.y)+" l"),n.push("s"),n.push("Q"),e.stream=n.join("\n"),e},YesPushDown:function(t){var e=l(t),n=Y.internal.calculateCross(t),r=[];return r.push("0.749023 g"),r.push("0 0 "+_(Y.internal.getWidth(t))+" "+_(Y.internal.getHeight(t))+" re"),r.push("f"),r.push("q"),r.push("1 1 "+_(Y.internal.getWidth(t)-2)+" "+_(Y.internal.getHeight(t)-2)+" re"),r.push("W"),r.push("n"),r.push(_(n.x1.x)+" "+_(n.x1.y)+" m"),r.push(_(n.x2.x)+" "+_(n.x2.y)+" l"),r.push(_(n.x4.x)+" "+_(n.x4.y)+" m"),r.push(_(n.x3.x)+" "+_(n.x3.y)+" l"),r.push("s"),r.push("Q"),e.stream=r.join("\n"),e},OffPushDown:function(t){var e=l(t),n=[];return n.push("0.749023 g"),n.push("0 0 "+_(Y.internal.getWidth(t))+" "+_(Y.internal.getHeight(t))+" re"),n.push("f"),e.stream=n.join("\n"),e}}},createDefaultAppearanceStream:function(t){var e=A.internal.getFont(t.fontName,t.fontStyle).id,n=A.__private__.encodeColorString(t.color);return"/"+e+" "+t.fontSize+" Tf "+n}};Y.internal={Bezier_C:.551915024494,calculateCross:function(t){var e=Y.internal.getWidth(t),n=Y.internal.getHeight(t),r=Math.min(e,n);return{x1:{x:(e-r)/2,y:(n-r)/2+r},x2:{x:(e-r)/2+r,y:(n-r)/2},x3:{x:(e-r)/2,y:(n-r)/2},x4:{x:(e-r)/2+r,y:(n-r)/2+r}}}},Y.internal.getWidth=function(t){var e=0;return"object"===se(t)&&(e=v(t.Rect[2])),e},Y.internal.getHeight=function(t){var e=0;return"object"===se(t)&&(e=v(t.Rect[3])),e};var J=t.addField=function(t){if(k.call(this),!(t instanceof M))throw new Error("Invalid argument passed to jsPDF.addField.");return function(t){A.internal.acroformPlugin.printedOut&&(A.internal.acroformPlugin.printedOut=!1,A.internal.acroformPlugin.acroFormDictionaryRoot=null),A.internal.acroformPlugin.acroFormDictionaryRoot||k.call(A),A.internal.acroformPlugin.acroFormDictionaryRoot.Fields.push(t)}.call(this,t),t.page=A.internal.getCurrentPageInfo().pageNumber,this};t.addButton=function(t){if(t instanceof D==!1)throw new Error("Invalid argument passed to jsPDF.addButton.");return J.call(this,t)},t.addTextField=function(t){if(t instanceof V==!1)throw new Error("Invalid argument passed to jsPDF.addTextField.");return J.call(this,t)},t.addChoiceField=function(t){if(t instanceof O==!1)throw new Error("Invalid argument passed to jsPDF.addChoiceField.");return J.call(this,t)};"object"==se(e)&&void 0===e.ChoiceField&&void 0===e.ListBox&&void 0===e.ComboBox&&void 0===e.EditBox&&void 0===e.Button&&void 0===e.PushButton&&void 0===e.RadioButton&&void 0===e.CheckBox&&void 0===e.TextField&&void 0===e.PasswordField?(e.ChoiceField=O,e.ListBox=q,e.ComboBox=T,e.EditBox=R,e.Button=D,e.PushButton=U,e.RadioButton=z,e.CheckBox=W,e.TextField=V,e.PasswordField=G,e.AcroForm={Appearance:Y}):console.warn("AcroForm-Classes are not populated into global-namespace, because the class-Names exist already."),t.AcroFormChoiceField=O,t.AcroFormListBox=q,t.AcroFormComboBox=T,t.AcroFormEditBox=R,t.AcroFormButton=D,t.AcroFormPushButton=U,t.AcroFormRadioButton=z,t.AcroFormCheckBox=W,t.AcroFormTextField=V,t.AcroFormPasswordField=G,t.AcroFormAppearance=Y,t.AcroForm={ChoiceField:O,ListBox:q,ComboBox:T,EditBox:R,Button:D,PushButton:U,RadioButton:z,CheckBox:W,TextField:V,PasswordField:G,Appearance:Y}})((window.tmp=lt).API,"undefined"!=typeof window&&window||"undefined"!=typeof global&&global),-/** @license- * jsPDF addImage plugin- * Copyright (c) 2012 Jason Siefken, https://github.com/siefkenj/- * 2013 Chris Dowling, https://github.com/gingerchris- * 2013 Trinh Ho, https://github.com/ineedfat- * 2013 Edwin Alejandro Perez, https://github.com/eaparango- * 2013 Norah Smith, https://github.com/burnburnrocket- * 2014 Diego Casorran, https://github.com/diegocr- * 2014 James Robb, https://github.com/jamesbrobb- *- *- */-function(x){var N="addImage_",l={PNG:[[137,80,78,71]],TIFF:[[77,77,0,42],[73,73,42,0]],JPEG:[[255,216,255,224,void 0,void 0,74,70,73,70,0],[255,216,255,225,void 0,void 0,69,120,105,102,0,0]],JPEG2000:[[0,0,0,12,106,80,32,32]],GIF87a:[[71,73,70,56,55,97]],GIF89a:[[71,73,70,56,57,97]],BMP:[[66,77],[66,65],[67,73],[67,80],[73,67],[80,84]]},h=x.getImageFileTypeByImageData=function(t,e){var n,r;e=e||"UNKNOWN";var i,o,a,s="UNKNOWN";for(a in x.isArrayBufferView(t)&&(t=x.arrayBufferToBinaryString(t)),l)for(i=l[a],n=0;n<i.length;n+=1){for(o=!0,r=0;r<i[n].length;r+=1)if(void 0!==i[n][r]&&i[n][r]!==t.charCodeAt(r)){o=!1;break}if(!0===o){s=a;break}}return"UNKNOWN"===s&&"UNKNOWN"!==e&&(console.warn('FileType of Image not recognized. Processing image as "'+e+'".'),s=e),s},n=function t(e){for(var n=this.internal.newObject(),r=this.internal.write,i=this.internal.putStream,o=(0,this.internal.getFilters)();-1!==o.indexOf("FlateEncode");)o.splice(o.indexOf("FlateEncode"),1);e.n=n;var a=[];if(a.push({key:"Type",value:"/XObject"}),a.push({key:"Subtype",value:"/Image"}),a.push({key:"Width",value:e.w}),a.push({key:"Height",value:e.h}),e.cs===this.color_spaces.INDEXED?a.push({key:"ColorSpace",value:"[/Indexed /DeviceRGB "+(e.pal.length/3-1)+" "+("smask"in e?n+2:n+1)+" 0 R]"}):(a.push({key:"ColorSpace",value:"/"+e.cs}),e.cs===this.color_spaces.DEVICE_CMYK&&a.push({key:"Decode",value:"[1 0 1 0 1 0 1 0]"})),a.push({key:"BitsPerComponent",value:e.bpc}),"dp"in e&&a.push({key:"DecodeParms",value:"<<"+e.dp+">>"}),"trns"in e&&e.trns.constructor==Array){for(var s="",l=0,h=e.trns.length;l<h;l++)s+=e.trns[l]+" "+e.trns[l]+" ";a.push({key:"Mask",value:"["+s+"]"})}"smask"in e&&a.push({key:"SMask",value:n+1+" 0 R"});var u=void 0!==e.f?["/"+e.f]:void 0;if(i({data:e.data,additionalKeyValues:a,alreadyAppliedFilters:u}),r("endobj"),"smask"in e){var c="/Predictor "+e.p+" /Colors 1 /BitsPerComponent "+e.bpc+" /Columns "+e.w,f={w:e.w,h:e.h,cs:"DeviceGray",bpc:e.bpc,dp:c,data:e.smask};"f"in e&&(f.f=e.f),t.call(this,f)}e.cs===this.color_spaces.INDEXED&&(this.internal.newObject(),i({data:this.arrayBufferToBinaryString(new Uint8Array(e.pal))}),r("endobj"))},L=function(){var t=this.internal.collections[N+"images"];for(var e in t)n.call(this,t[e])},A=function(){var t,e=this.internal.collections[N+"images"],n=this.internal.write;for(var r in e)n("/I"+(t=e[r]).i,t.n,"0","R")},S=function(t){return"function"==typeof x["process"+t.toUpperCase()]},_=function(t){return"object"===se(t)&&1===t.nodeType},F=function(t,e){if("IMG"===t.nodeName&&t.hasAttribute("src")){var n=""+t.getAttribute("src");if(0===n.indexOf("data:image/"))return unescape(n);var r=x.loadFile(n);if(void 0!==r)return btoa(r)}if("CANVAS"===t.nodeName){var i=t;return t.toDataURL("image/jpeg",1)}(i=document.createElement("canvas")).width=t.clientWidth||t.width,i.height=t.clientHeight||t.height;var o=i.getContext("2d");if(!o)throw"addImage requires canvas to be supported by browser.";return o.drawImage(t,0,0,i.width,i.height),i.toDataURL("png"==(""+e).toLowerCase()?"image/png":"image/jpeg")},P=function(t,e){var n;if(e)for(var r in e)if(t===e[r].alias){n=e[r];break}return n};x.color_spaces={DEVICE_RGB:"DeviceRGB",DEVICE_GRAY:"DeviceGray",DEVICE_CMYK:"DeviceCMYK",CAL_GREY:"CalGray",CAL_RGB:"CalRGB",LAB:"Lab",ICC_BASED:"ICCBased",INDEXED:"Indexed",PATTERN:"Pattern",SEPARATION:"Separation",DEVICE_N:"DeviceN"},x.decode={DCT_DECODE:"DCTDecode",FLATE_DECODE:"FlateDecode",LZW_DECODE:"LZWDecode",JPX_DECODE:"JPXDecode",JBIG2_DECODE:"JBIG2Decode",ASCII85_DECODE:"ASCII85Decode",ASCII_HEX_DECODE:"ASCIIHexDecode",RUN_LENGTH_DECODE:"RunLengthDecode",CCITT_FAX_DECODE:"CCITTFaxDecode"},x.image_compression={NONE:"NONE",FAST:"FAST",MEDIUM:"MEDIUM",SLOW:"SLOW"},x.sHashCode=function(t){var e,n=0;if(0===(t=t||"").length)return n;for(e=0;e<t.length;e++)n=(n<<5)-n+t.charCodeAt(e),n|=0;return n},x.isString=function(t){return"string"==typeof t},x.validateStringAsBase64=function(t){(t=t||"").toString().trim();var e=!0;return 0===t.length&&(e=!1),t.length%4!=0&&(e=!1),!1===/^[A-Za-z0-9+\/]+$/.test(t.substr(0,t.length-2))&&(e=!1),!1===/^[A-Za-z0-9\/][A-Za-z0-9+\/]|[A-Za-z0-9+\/]=|==$/.test(t.substr(-2))&&(e=!1),e},x.extractInfoFromBase64DataURI=function(t){return/^data:([\w]+?\/([\w]+?));\S*;*base64,(.+)$/g.exec(t)},x.extractImageFromDataUrl=function(t){var e=(t=t||"").split("base64,"),n=null;if(2===e.length){var r=/^data:(\w*\/\w*);*(charset=[\w=-]*)*;*$/.exec(e[0]);Array.isArray(r)&&(n={mimeType:r[1],charset:r[2],data:e[1]})}return n},x.supportsArrayBuffer=function(){return"undefined"!=typeof ArrayBuffer&&"undefined"!=typeof Uint8Array},x.isArrayBuffer=function(t){return!!this.supportsArrayBuffer()&&t instanceof ArrayBuffer},x.isArrayBufferView=function(t){return!!this.supportsArrayBuffer()&&("undefined"!=typeof Uint32Array&&(t instanceof Int8Array||t instanceof Uint8Array||"undefined"!=typeof Uint8ClampedArray&&t instanceof Uint8ClampedArray||t instanceof Int16Array||t instanceof Uint16Array||t instanceof Int32Array||t instanceof Uint32Array||t instanceof Float32Array||t instanceof Float64Array))},x.binaryStringToUint8Array=function(t){for(var e=t.length,n=new Uint8Array(e),r=0;r<e;r++)n[r]=t.charCodeAt(r);return n},x.arrayBufferToBinaryString=function(t){if("function"==typeof atob)return atob(this.arrayBufferToBase64(t))},x.arrayBufferToBase64=function(t){for(var e,n="",r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",i=new Uint8Array(t),o=i.byteLength,a=o%3,s=o-a,l=0;l<s;l+=3)n+=r[(16515072&(e=i[l]<<16|i[l+1]<<8|i[l+2]))>>18]+r[(258048&e)>>12]+r[(4032&e)>>6]+r[63&e];return 1==a?n+=r[(252&(e=i[s]))>>2]+r[(3&e)<<4]+"==":2==a&&(n+=r[(64512&(e=i[s]<<8|i[s+1]))>>10]+r[(1008&e)>>4]+r[(15&e)<<2]+"="),n},x.createImageInfo=function(t,e,n,r,i,o,a,s,l,h,u,c,f){var p={alias:s,w:e,h:n,cs:r,bpc:i,i:a,data:t};return o&&(p.f=o),l&&(p.dp=l),h&&(p.trns=h),u&&(p.pal=u),c&&(p.smask=c),f&&(p.p=f),p},x.addImage=function(t,e,n,r,i,o,a,s,l){var h="";if("string"!=typeof e){var u=o;o=i,i=r,r=n,n=e,e=u}if("object"===se(t)&&!_(t)&&"imageData"in t){var c=t;t=c.imageData,e=c.format||e||"UNKNOWN",n=c.x||n||0,r=c.y||r||0,i=c.w||i,o=c.h||o,a=c.alias||a,s=c.compression||s,l=c.rotation||c.angle||l}var f=this.internal.getFilters();if(void 0===s&&-1!==f.indexOf("FlateEncode")&&(s="SLOW"),"string"==typeof t&&(t=unescape(t)),isNaN(n)||isNaN(r))throw console.error("jsPDF.addImage: Invalid coordinates",arguments),new Error("Invalid coordinates passed to jsPDF.addImage");var p,d,g,m,y,v,w,b=function(){var t=this.internal.collections[N+"images"];return t||(this.internal.collections[N+"images"]=t={},this.internal.events.subscribe("putResources",L),this.internal.events.subscribe("putXobjectDict",A)),t}.call(this);if(!((p=P(t,b))||(_(t)&&(t=F(t,e)),(null==(w=a)||0===w.length)&&(a="string"==typeof(v=t)?x.sHashCode(v):x.isArrayBufferView(v)?x.sHashCode(x.arrayBufferToBinaryString(v)):null),p=P(a,b)))){if(this.isString(t)&&(""!==(h=this.convertStringToImageData(t))?t=h:void 0!==(h=x.loadFile(t))&&(t=h)),e=this.getImageFileTypeByImageData(t,e),!S(e))throw new Error("addImage does not support files of type '"+e+"', please ensure that a plugin for '"+e+"' support is added.");if(this.supportsArrayBuffer()&&(t instanceof Uint8Array||(d=t,t=this.binaryStringToUint8Array(t))),!(p=this["process"+e.toUpperCase()](t,(y=0,(m=b)&&(y=Object.keys?Object.keys(m).length:function(t){var e=0;for(var n in t)t.hasOwnProperty(n)&&e++;return e}(m)),y),a,((g=s)&&"string"==typeof g&&(g=g.toUpperCase()),g in x.image_compression?g:x.image_compression.NONE),d)))throw new Error("An unknown error occurred whilst processing the image")}return function(t,e,n,r,i,o,a,s){var l=function(t,e,n){return t||e||(e=t=-96),t<0&&(t=-1*n.w*72/t/this.internal.scaleFactor),e<0&&(e=-1*n.h*72/e/this.internal.scaleFactor),0===t&&(t=e*n.w/n.h),0===e&&(e=t*n.h/n.w),[t,e]}.call(this,n,r,i),h=this.internal.getCoordinateString,u=this.internal.getVerticalCoordinateString;if(n=l[0],r=l[1],a[o]=i,s){s*=Math.PI/180;var c=Math.cos(s),f=Math.sin(s),p=function(t){return t.toFixed(4)},d=[p(c),p(f),p(-1*f),p(c),0,0,"cm"]}this.internal.write("q"),s?(this.internal.write([1,"0","0",1,h(t),u(e+r),"cm"].join(" ")),this.internal.write(d.join(" ")),this.internal.write([h(n),"0","0",h(r),"0","0","cm"].join(" "))):this.internal.write([h(n),"0","0",h(r),h(t),u(e+r),"cm"].join(" ")),this.internal.write("/I"+i.i+" Do"),this.internal.write("Q")}.call(this,n,r,i,o,p,p.i,b,l),this},x.convertStringToImageData=function(t){var e,n="";if(this.isString(t)){var r;e=null!==(r=this.extractImageFromDataUrl(t))?r.data:t;try{n=atob(e)}catch(t){throw x.validateStringAsBase64(e)?new Error("atob-Error in jsPDF.convertStringToImageData "+t.message):new Error("Supplied Data is not a valid base64-String jsPDF.convertStringToImageData ")}}return n};var u=function(t,e){return t.subarray(e,e+5)};x.processJPEG=function(t,e,n,r,i,o){var a,s=this.decode.DCT_DECODE;if(!this.isString(t)&&!this.isArrayBuffer(t)&&!this.isArrayBufferView(t))return null;if(this.isString(t)&&(a=function(t){var e;if("JPEG"!==h(t))throw new Error("getJpegSize requires a binary string jpeg file");for(var n=256*t.charCodeAt(4)+t.charCodeAt(5),r=4,i=t.length;r<i;){if(r+=n,255!==t.charCodeAt(r))throw new Error("getJpegSize could not find the size of the image");if(192===t.charCodeAt(r+1)||193===t.charCodeAt(r+1)||194===t.charCodeAt(r+1)||195===t.charCodeAt(r+1)||196===t.charCodeAt(r+1)||197===t.charCodeAt(r+1)||198===t.charCodeAt(r+1)||199===t.charCodeAt(r+1))return e=256*t.charCodeAt(r+5)+t.charCodeAt(r+6),[256*t.charCodeAt(r+7)+t.charCodeAt(r+8),e,t.charCodeAt(r+9)];r+=2,n=256*t.charCodeAt(r)+t.charCodeAt(r+1)}}(t)),this.isArrayBuffer(t)&&(t=new Uint8Array(t)),this.isArrayBufferView(t)&&(a=function(t){if(65496!=(t[0]<<8|t[1]))throw new Error("Supplied data is not a JPEG");for(var e,n=t.length,r=(t[4]<<8)+t[5],i=4;i<n;){if(r=((e=u(t,i+=r))[2]<<8)+e[3],(192===e[1]||194===e[1])&&255===e[0]&&7<r)return{width:((e=u(t,i+5))[2]<<8)+e[3],height:(e[0]<<8)+e[1],numcomponents:e[4]};i+=2}throw new Error("getJpegSizeFromBytes could not find the size of the image")}(t),t=i||this.arrayBufferToBinaryString(t)),void 0===o)switch(a.numcomponents){case 1:o=this.color_spaces.DEVICE_GRAY;break;case 4:o=this.color_spaces.DEVICE_CMYK;break;default:case 3:o=this.color_spaces.DEVICE_RGB}return this.createImageInfo(t,a.width,a.height,o,8,s,e,n)},x.processJPG=function(){return this.processJPEG.apply(this,arguments)},x.getImageProperties=function(t){var e,n,r="";if(_(t)&&(t=F(t)),this.isString(t)&&(""!==(r=this.convertStringToImageData(t))?t=r:void 0!==(r=x.loadFile(t))&&(t=r)),n=this.getImageFileTypeByImageData(t),!S(n))throw new Error("addImage does not support files of type '"+n+"', please ensure that a plugin for '"+n+"' support is added.");if(this.supportsArrayBuffer()&&(t instanceof Uint8Array||(t=this.binaryStringToUint8Array(t))),!(e=this["process"+n.toUpperCase()](t)))throw new Error("An unknown error occurred whilst processing the image");return{fileType:n,width:e.w,height:e.h,colorSpace:e.cs,compressionMode:e.f,bitsPerComponent:e.bpc}}}(lt.API),-/**- * @license- * Copyright (c) 2014 Steven Spungin (TwelveTone LLC) [email protected]- *- * Licensed under the MIT License.- * http://opensource.org/licenses/mit-license- */-t=lt.API,lt.API.events.push(["addPage",function(t){this.internal.getPageInfo(t.pageNumber).pageContext.annotations=[]}]),t.events.push(["putPage",function(t){for(var e=this.internal.getPageInfoByObjId(t.objId),n=t.pageContext.annotations,r=function(t){if(void 0!==t&&""!=t)return!0},i=!1,o=0;o<n.length&&!i;o++)switch((l=n[o]).type){case"link":if(r(l.options.url)||r(l.options.pageNumber)){i=!0;break}case"reference":case"text":case"freetext":i=!0}if(0!=i){this.internal.write("/Annots ["),this.internal.pageSize.height;var a=this.internal.getCoordinateString,s=this.internal.getVerticalCoordinateString;for(o=0;o<n.length;o++){var l;switch((l=n[o]).type){case"reference":this.internal.write(" "+l.object.objId+" 0 R ");break;case"text":var h=this.internal.newAdditionalObject(),u=this.internal.newAdditionalObject(),c=l.title||"Note";m="<</Type /Annot /Subtype /Text "+(p="/Rect ["+a(l.bounds.x)+" "+s(l.bounds.y+l.bounds.h)+" "+a(l.bounds.x+l.bounds.w)+" "+s(l.bounds.y)+"] ")+"/Contents ("+l.contents+")",m+=" /Popup "+u.objId+" 0 R",m+=" /P "+e.objId+" 0 R",m+=" /T ("+c+") >>",h.content=m;var f=h.objId+" 0 R";m="<</Type /Annot /Subtype /Popup "+(p="/Rect ["+a(l.bounds.x+30)+" "+s(l.bounds.y+l.bounds.h)+" "+a(l.bounds.x+l.bounds.w+30)+" "+s(l.bounds.y)+"] ")+" /Parent "+f,l.open&&(m+=" /Open true"),m+=" >>",u.content=m,this.internal.write(h.objId,"0 R",u.objId,"0 R");break;case"freetext":var p="/Rect ["+a(l.bounds.x)+" "+s(l.bounds.y)+" "+a(l.bounds.x+l.bounds.w)+" "+s(l.bounds.y+l.bounds.h)+"] ",d=l.color||"#000000";m="<</Type /Annot /Subtype /FreeText "+p+"/Contents ("+l.contents+")",m+=" /DS(font: Helvetica,sans-serif 12.0pt; text-align:left; color:#"+d+")",m+=" /Border [0 0 0]",m+=" >>",this.internal.write(m);break;case"link":if(l.options.name){var g=this.annotations._nameMap[l.options.name];l.options.pageNumber=g.page,l.options.top=g.y}else l.options.top||(l.options.top=0);p="/Rect ["+a(l.x)+" "+s(l.y)+" "+a(l.x+l.w)+" "+s(l.y+l.h)+"] ";var m="";if(l.options.url)m="<</Type /Annot /Subtype /Link "+p+"/Border [0 0 0] /A <</S /URI /URI ("+l.options.url+") >>";else if(l.options.pageNumber)switch(m="<</Type /Annot /Subtype /Link "+p+"/Border [0 0 0] /Dest ["+this.internal.getPageInfo(l.options.pageNumber).objId+" 0 R",l.options.magFactor=l.options.magFactor||"XYZ",l.options.magFactor){case"Fit":m+=" /Fit]";break;case"FitH":m+=" /FitH "+l.options.top+"]";break;case"FitV":l.options.left=l.options.left||0,m+=" /FitV "+l.options.left+"]";break;case"XYZ":default:var y=s(l.options.top);l.options.left=l.options.left||0,void 0===l.options.zoom&&(l.options.zoom=0),m+=" /XYZ "+l.options.left+" "+y+" "+l.options.zoom+"]"}""!=m&&(m+=" >>",this.internal.write(m))}}this.internal.write("]")}}]),t.createAnnotation=function(t){var e=this.internal.getCurrentPageInfo();switch(t.type){case"link":this.link(t.bounds.x,t.bounds.y,t.bounds.w,t.bounds.h,t);break;case"text":case"freetext":e.pageContext.annotations.push(t)}},t.link=function(t,e,n,r,i){this.internal.getCurrentPageInfo().pageContext.annotations.push({x:t,y:e,w:n,h:r,options:i,type:"link"})},t.textWithLink=function(t,e,n,r){var i=this.getTextWidth(t),o=this.internal.getLineHeight()/this.internal.scaleFactor;return this.text(t,e,n),n+=.2*o,this.link(e,n-o,i,o,r),i},t.getTextWidth=function(t){var e=this.internal.getFontSize();return this.getStringUnitWidth(t)*e/this.internal.scaleFactor},-/**- * @license- * Copyright (c) 2017 Aras Abbasi- *- * Licensed under the MIT License.- * http://opensource.org/licenses/mit-license- */-function(t){var h={1569:[65152],1570:[65153,65154],1571:[65155,65156],1572:[65157,65158],1573:[65159,65160],1574:[65161,65162,65163,65164],1575:[65165,65166],1576:[65167,65168,65169,65170],1577:[65171,65172],1578:[65173,65174,65175,65176],1579:[65177,65178,65179,65180],1580:[65181,65182,65183,65184],1581:[65185,65186,65187,65188],1582:[65189,65190,65191,65192],1583:[65193,65194],1584:[65195,65196],1585:[65197,65198],1586:[65199,65200],1587:[65201,65202,65203,65204],1588:[65205,65206,65207,65208],1589:[65209,65210,65211,65212],1590:[65213,65214,65215,65216],1591:[65217,65218,65219,65220],1592:[65221,65222,65223,65224],1593:[65225,65226,65227,65228],1594:[65229,65230,65231,65232],1601:[65233,65234,65235,65236],1602:[65237,65238,65239,65240],1603:[65241,65242,65243,65244],1604:[65245,65246,65247,65248],1605:[65249,65250,65251,65252],1606:[65253,65254,65255,65256],1607:[65257,65258,65259,65260],1608:[65261,65262],1609:[65263,65264,64488,64489],1610:[65265,65266,65267,65268],1649:[64336,64337],1655:[64477],1657:[64358,64359,64360,64361],1658:[64350,64351,64352,64353],1659:[64338,64339,64340,64341],1662:[64342,64343,64344,64345],1663:[64354,64355,64356,64357],1664:[64346,64347,64348,64349],1667:[64374,64375,64376,64377],1668:[64370,64371,64372,64373],1670:[64378,64379,64380,64381],1671:[64382,64383,64384,64385],1672:[64392,64393],1676:[64388,64389],1677:[64386,64387],1678:[64390,64391],1681:[64396,64397],1688:[64394,64395],1700:[64362,64363,64364,64365],1702:[64366,64367,64368,64369],1705:[64398,64399,64400,64401],1709:[64467,64468,64469,64470],1711:[64402,64403,64404,64405],1713:[64410,64411,64412,64413],1715:[64406,64407,64408,64409],1722:[64414,64415],1723:[64416,64417,64418,64419],1726:[64426,64427,64428,64429],1728:[64420,64421],1729:[64422,64423,64424,64425],1733:[64480,64481],1734:[64473,64474],1735:[64471,64472],1736:[64475,64476],1737:[64482,64483],1739:[64478,64479],1740:[64508,64509,64510,64511],1744:[64484,64485,64486,64487],1746:[64430,64431],1747:[64432,64433]},a={65247:{65154:65269,65156:65271,65160:65273,65166:65275},65248:{65154:65270,65156:65272,65160:65274,65166:65276},65165:{65247:{65248:{65258:65010}}},1617:{1612:64606,1613:64607,1614:64608,1615:64609,1616:64610}},e={1612:64606,1613:64607,1614:64608,1615:64609,1616:64610},n=[1570,1571,1573,1575];t.__arabicParser__={};var r=t.__arabicParser__.isInArabicSubstitutionA=function(t){return void 0!==h[t.charCodeAt(0)]},u=t.__arabicParser__.isArabicLetter=function(t){return"string"==typeof t&&/^[\u0600-\u06FF\u0750-\u077F\u08A0-\u08FF\uFB50-\uFDFF\uFE70-\uFEFF]+$/.test(t)},i=t.__arabicParser__.isArabicEndLetter=function(t){return u(t)&&r(t)&&h[t.charCodeAt(0)].length<=2},o=t.__arabicParser__.isArabicAlfLetter=function(t){return u(t)&&0<=n.indexOf(t.charCodeAt(0))},s=(t.__arabicParser__.arabicLetterHasIsolatedForm=function(t){return u(t)&&r(t)&&1<=h[t.charCodeAt(0)].length},t.__arabicParser__.arabicLetterHasFinalForm=function(t){return u(t)&&r(t)&&2<=h[t.charCodeAt(0)].length}),l=(t.__arabicParser__.arabicLetterHasInitialForm=function(t){return u(t)&&r(t)&&3<=h[t.charCodeAt(0)].length},t.__arabicParser__.arabicLetterHasMedialForm=function(t){return u(t)&&r(t)&&4==h[t.charCodeAt(0)].length}),c=t.__arabicParser__.resolveLigatures=function(t){var e=0,n=a,r=0,i="",o=0;for(e=0;e<t.length;e+=1)void 0!==n[t.charCodeAt(e)]?(o++,"number"==typeof(n=n[t.charCodeAt(e)])&&(r=-1!==(r=f(t.charAt(e),t.charAt(e-o),t.charAt(e+1)))?r:0,i+=String.fromCharCode(n),n=a,o=0),e===t.length-1&&(n=a,i+=t.charAt(e-(o-1)),e-=o-1,o=0)):(n=a,i+=t.charAt(e-o),e-=o,o=0);return i},f=(t.__arabicParser__.isArabicDiacritic=function(t){return void 0!==t&&void 0!==e[t.charCodeAt(0)]},t.__arabicParser__.getCorrectForm=function(t,e,n){return u(t)?!1===r(t)?-1:!s(t)||!u(e)&&!u(n)||!u(n)&&i(e)||i(t)&&!u(e)||i(t)&&o(e)||i(t)&&i(e)?0:l(t)&&u(e)&&!i(e)&&u(n)&&s(n)?3:i(t)||!u(n)?1:2:-1}),p=t.__arabicParser__.processArabic=t.processArabic=function(t){var e=0,n=0,r=0,i="",o="",a="",s=(t=t||"").split("\\s+"),l=[];for(e=0;e<s.length;e+=1){for(l.push(""),n=0;n<s[e].length;n+=1)i=s[e][n],o=s[e][n-1],a=s[e][n+1],u(i)?(r=f(i,o,a),l[e]+=-1!==r?String.fromCharCode(h[i.charCodeAt(0)][r]):i):l[e]+=i;l[e]=c(l[e])}return l.join(" ")};t.events.push(["preProcessText",function(t){var e=t.text,n=(t.x,t.y,t.options||{}),r=(t.mutex,n.lang,[]);if("[object Array]"===Object.prototype.toString.call(e)){var i=0;for(r=[],i=0;i<e.length;i+=1)"[object Array]"===Object.prototype.toString.call(e[i])?r.push([p(e[i][0]),e[i][1],e[i][2]]):r.push([p(e[i])]);t.text=r}else t.text=p(e)}])}(lt.API),lt.API.autoPrint=function(t){var e;switch((t=t||{}).variant=t.variant||"non-conform",t.variant){case"javascript":this.addJS("print({});");break;case"non-conform":default:this.internal.events.subscribe("postPutResources",function(){e=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /Named"),this.internal.out("/Type /Action"),this.internal.out("/N /Print"),this.internal.out(">>"),this.internal.out("endobj")}),this.internal.events.subscribe("putCatalog",function(){this.internal.out("/OpenAction "+e+" 0 R")})}return this},-/**- * @license- * Copyright (c) 2014 Steven Spungin (TwelveTone LLC) [email protected]- *- * Licensed under the MIT License.- * http://opensource.org/licenses/mit-license- */-e=lt.API,(n=function(){var e=void 0;Object.defineProperty(this,"pdf",{get:function(){return e},set:function(t){e=t}});var n=150;Object.defineProperty(this,"width",{get:function(){return n},set:function(t){n=isNaN(t)||!1===Number.isInteger(t)||t<0?150:t,this.getContext("2d").pageWrapXEnabled&&(this.getContext("2d").pageWrapX=n+1)}});var r=300;Object.defineProperty(this,"height",{get:function(){return r},set:function(t){r=isNaN(t)||!1===Number.isInteger(t)||t<0?300:t,this.getContext("2d").pageWrapYEnabled&&(this.getContext("2d").pageWrapY=r+1)}});var i=[];Object.defineProperty(this,"childNodes",{get:function(){return i},set:function(t){i=t}});var o={};Object.defineProperty(this,"style",{get:function(){return o},set:function(t){o=t}}),Object.defineProperty(this,"parentNode",{get:function(){return!1}})}).prototype.getContext=function(t,e){var n;if("2d"!==(t=t||"2d"))return null;for(n in e)this.pdf.context2d.hasOwnProperty(n)&&(this.pdf.context2d[n]=e[n]);return(this.pdf.context2d._canvas=this).pdf.context2d},n.prototype.toDataURL=function(){throw new Error("toDataURL is not implemented.")},e.events.push(["initialized",function(){this.canvas=new n,this.canvas.pdf=this}]),-/**- * @license- * ====================================================================- * Copyright (c) 2013 Youssef Beddad, [email protected]- * 2013 Eduardo Menezes de Morais, [email protected]- * 2013 Lee Driscoll, https://github.com/lsdriscoll- * 2014 Juan Pablo Gaviria, https://github.com/juanpgaviria- * 2014 James Hall, [email protected]- * 2014 Diego Casorran, https://github.com/diegocr- *- *- * ====================================================================- */-_=lt.API,F={x:void 0,y:void 0,w:void 0,h:void 0,ln:void 0},P=1,p=function(t,e,n,r,i){F={x:t,y:e,w:n,h:r,ln:i}},d=function(){return F},k={left:0,top:0,bottom:0},_.setHeaderFunction=function(t){l=t},_.getTextDimensions=function(t,e){var n=this.table_font_size||this.internal.getFontSize(),r=(this.internal.getFont().fontStyle,(e=e||{}).scaleFactor||this.internal.scaleFactor),i=0,o=0,a=0;if("string"==typeof t)0!=(i=this.getStringUnitWidth(t)*n)&&(o=1);else{if("[object Array]"!==Object.prototype.toString.call(t))throw new Error("getTextDimensions expects text-parameter to be of type String or an Array of Strings.");for(var s=0;s<t.length;s++)i<(a=this.getStringUnitWidth(t[s])*n)&&(i=a);0!==i&&(o=t.length)}return{w:i/=r,h:Math.max((o*n*this.getLineHeightFactor()-n*(this.getLineHeightFactor()-1))/r,0)}},_.cellAddPage=function(){var t=this.margins||k;this.addPage(),p(t.left,t.top,void 0,void 0),P+=1},_.cellInitialize=function(){F={x:void 0,y:void 0,w:void 0,h:void 0,ln:void 0},P=1},_.cell=function(t,e,n,r,i,o,a){var s=d(),l=!1;if(void 0!==s.ln)if(s.ln===o)t=s.x+s.w,e=s.y;else{var h=this.margins||k;s.y+s.h+r+13>=this.internal.pageSize.getHeight()-h.bottom&&(this.cellAddPage(),l=!0,this.printHeaders&&this.tableHeaderRow&&this.printHeaderRow(o,!0)),e=d().y+d().h,l&&(e=23)}if(void 0!==i[0])if(this.printingHeaderRow?this.rect(t,e,n,r,"FD"):this.rect(t,e,n,r),"right"===a){i instanceof Array||(i=[i]);for(var u=0;u<i.length;u++){var c=i[u],f=this.getStringUnitWidth(c)*this.internal.getFontSize()/this.internal.scaleFactor;this.text(c,t+n-f-3,e+this.internal.getLineHeight()*(u+1))}}else this.text(i,t+3,e+this.internal.getLineHeight());return p(t,e,n,r,o),this},_.arrayMax=function(t,e){var n,r,i,o=t[0];for(n=0,r=t.length;n<r;n+=1)i=t[n],e?-1===e(o,i)&&(o=i):o<i&&(o=i);return o},_.table=function(t,e,n,r,i){if(!n)throw"No data for PDF table";var o,a,s,l,h,u,c,f,p,d,g=[],m=[],y={},v={},w=[],b=[],x=!1,N=!0,L=12,A=k;if(A.width=this.internal.pageSize.getWidth(),i&&(!0===i.autoSize&&(x=!0),!1===i.printHeaders&&(N=!1),i.fontSize&&(L=i.fontSize),i.css&&void 0!==i.css["font-size"]&&(L=16*i.css["font-size"]),i.margins&&(A=i.margins)),this.lnMod=0,F={x:void 0,y:void 0,w:void 0,h:void 0,ln:void 0},P=1,this.printHeaders=N,this.margins=A,this.setFontSize(L),this.table_font_size=L,null==r)g=Object.keys(n[0]);else if(r[0]&&"string"!=typeof r[0])for(a=0,s=r.length;a<s;a+=1)o=r[a],g.push(o.name),m.push(o.prompt),v[o.name]=o.width*(19.049976/25.4);else g=r;if(x)for(d=function(t){return t[o]},a=0,s=g.length;a<s;a+=1){for(y[o=g[a]]=n.map(d),w.push(this.getTextDimensions(m[a]||o,{scaleFactor:1}).w),c=0,l=(u=y[o]).length;c<l;c+=1)h=u[c],w.push(this.getTextDimensions(h,{scaleFactor:1}).w);v[o]=_.arrayMax(w),w=[]}if(N){var S=this.calculateLineHeight(g,v,m.length?m:g);for(a=0,s=g.length;a<s;a+=1)o=g[a],b.push([t,e,v[o],S,String(m.length?m[a]:o)]);this.setTableHeaderRow(b),this.printHeaderRow(1,!1)}for(a=0,s=n.length;a<s;a+=1)for(f=n[a],S=this.calculateLineHeight(g,v,f),c=0,p=g.length;c<p;c+=1)o=g[c],this.cell(t,e,v[o],S,f[o],a+2,o.align);return this.lastCellPos=F,this.table_x=t,this.table_y=e,this},_.calculateLineHeight=function(t,e,n){for(var r,i=0,o=0;o<t.length;o++){n[r=t[o]]=this.splitTextToSize(String(n[r]),e[r]-3);var a=this.internal.getLineHeight()*n[r].length+3;i<a&&(i=a)}return i},_.setTableHeaderRow=function(t){this.tableHeaderRow=t},_.printHeaderRow=function(t,e){if(!this.tableHeaderRow)throw"Property tableHeaderRow does not exist.";var n,r,i,o;if(this.printingHeaderRow=!0,void 0!==l){var a=l(this,P);p(a[0],a[1],a[2],a[3],-1)}this.setFontStyle("bold");var s=[];for(i=0,o=this.tableHeaderRow.length;i<o;i+=1)this.setFillColor(200,200,200),n=this.tableHeaderRow[i],e&&(this.margins.top=13,n[1]=this.margins&&this.margins.top||0,s.push(n)),r=[].concat(n),this.cell.apply(this,r.concat(t));0<s.length&&this.setTableHeaderRow(s),this.setFontStyle("normal"),this.printingHeaderRow=!1},-/**- * jsPDF Context2D PlugIn Copyright (c) 2014 Steven Spungin (TwelveTone LLC) [email protected]- *- * Licensed under the MIT License. http://opensource.org/licenses/mit-license- */-function(t,e){var l,i,o,h,u,c=function(t){return t=t||{},this.isStrokeTransparent=t.isStrokeTransparent||!1,this.strokeOpacity=t.strokeOpacity||1,this.strokeStyle=t.strokeStyle||"#000000",this.fillStyle=t.fillStyle||"#000000",this.isFillTransparent=t.isFillTransparent||!1,this.fillOpacity=t.fillOpacity||1,this.font=t.font||"10px sans-serif",this.textBaseline=t.textBaseline||"alphabetic",this.textAlign=t.textAlign||"left",this.lineWidth=t.lineWidth||1,this.lineJoin=t.lineJoin||"miter",this.lineCap=t.lineCap||"butt",this.path=t.path||[],this.transform=void 0!==t.transform?t.transform.clone():new M,this.globalCompositeOperation=t.globalCompositeOperation||"normal",this.globalAlpha=t.globalAlpha||1,this.clip_path=t.clip_path||[],this.currentPoint=t.currentPoint||new j,this.miterLimit=t.miterLimit||10,this.lastPoint=t.lastPoint||new j,this.ignoreClearRect="boolean"!=typeof t.ignoreClearRect||t.ignoreClearRect,this};t.events.push(["initialized",function(){this.context2d=new n(this),l=this.internal.f2,this.internal.f3,i=this.internal.getCoordinateString,o=this.internal.getVerticalCoordinateString,h=this.internal.getHorizontalCoordinate,u=this.internal.getVerticalCoordinate}]);var n=function(t){Object.defineProperty(this,"canvas",{get:function(){return{parentNode:!1,style:!1}}}),Object.defineProperty(this,"pdf",{get:function(){return t}});var e=!1;Object.defineProperty(this,"pageWrapXEnabled",{get:function(){return e},set:function(t){e=Boolean(t)}});var n=!1;Object.defineProperty(this,"pageWrapYEnabled",{get:function(){return n},set:function(t){n=Boolean(t)}});var r=0;Object.defineProperty(this,"posX",{get:function(){return r},set:function(t){isNaN(t)||(r=t)}});var i=0;Object.defineProperty(this,"posY",{get:function(){return i},set:function(t){isNaN(t)||(i=t)}});var o=!1;Object.defineProperty(this,"autoPaging",{get:function(){return o},set:function(t){o=Boolean(t)}});var a=0;Object.defineProperty(this,"lastBreak",{get:function(){return a},set:function(t){a=t}});var s=[];Object.defineProperty(this,"pageBreaks",{get:function(){return s},set:function(t){s=t}});var l=new c;Object.defineProperty(this,"ctx",{get:function(){return l},set:function(t){t instanceof c&&(l=t)}}),Object.defineProperty(this,"path",{get:function(){return l.path},set:function(t){l.path=t}});var h=[];Object.defineProperty(this,"ctxStack",{get:function(){return h},set:function(t){h=t}}),Object.defineProperty(this,"fillStyle",{get:function(){return this.ctx.fillStyle},set:function(t){var e;e=f(t),this.ctx.fillStyle=e.style,this.ctx.isFillTransparent=0===e.a,this.ctx.fillOpacity=e.a,this.pdf.setFillColor(e.r,e.g,e.b,{a:e.a}),this.pdf.setTextColor(e.r,e.g,e.b,{a:e.a})}}),Object.defineProperty(this,"strokeStyle",{get:function(){return this.ctx.strokeStyle},set:function(t){var e=f(t);this.ctx.strokeStyle=e.style,this.ctx.isStrokeTransparent=0===e.a,this.ctx.strokeOpacity=e.a,0===e.a?this.pdf.setDrawColor(255,255,255):(e.a,this.pdf.setDrawColor(e.r,e.g,e.b))}}),Object.defineProperty(this,"lineCap",{get:function(){return this.ctx.lineCap},set:function(t){-1!==["butt","round","square"].indexOf(t)&&(this.ctx.lineCap=t,this.pdf.setLineCap(t))}}),Object.defineProperty(this,"lineWidth",{get:function(){return this.ctx.lineWidth},set:function(t){isNaN(t)||(this.ctx.lineWidth=t,this.pdf.setLineWidth(t))}}),Object.defineProperty(this,"lineJoin",{get:function(){return this.ctx.lineJoin},set:function(t){-1!==["bevel","round","miter"].indexOf(t)&&(this.ctx.lineJoin=t,this.pdf.setLineJoin(t))}}),Object.defineProperty(this,"miterLimit",{get:function(){return this.ctx.miterLimit},set:function(t){isNaN(t)||(this.ctx.miterLimit=t,this.pdf.setMiterLimit(t))}}),Object.defineProperty(this,"textBaseline",{get:function(){return this.ctx.textBaseline},set:function(t){this.ctx.textBaseline=t}}),Object.defineProperty(this,"textAlign",{get:function(){return this.ctx.textAlign},set:function(t){-1!==["right","end","center","left","start"].indexOf(t)&&(this.ctx.textAlign=t)}}),Object.defineProperty(this,"font",{get:function(){return this.ctx.font},set:function(t){var e;if(this.ctx.font=t,null!==(e=/^\s*(?=(?:(?:[-a-z]+\s*){0,2}(italic|oblique))?)(?=(?:(?:[-a-z]+\s*){0,2}(small-caps))?)(?=(?:(?:[-a-z]+\s*){0,2}(bold(?:er)?|lighter|[1-9]00))?)(?:(?:normal|\1|\2|\3)\s*){0,3}((?:xx?-)?(?:small|large)|medium|smaller|larger|[.\d]+(?:\%|in|[cem]m|ex|p[ctx]))(?:\s*\/\s*(normal|[.\d]+(?:\%|in|[cem]m|ex|p[ctx])))?\s*([-_,\"\'\sa-z]+?)\s*$/i.exec(t))){var n=e[1],r=(e[2],e[3]),i=e[4],o=e[5],a=e[6];i="px"===o?Math.floor(parseFloat(i)):"em"===o?Math.floor(parseFloat(i)*this.pdf.getFontSize()):Math.floor(parseFloat(i)),this.pdf.setFontSize(i);var s="";("bold"===r||700<=parseInt(r,10)||"bold"===n)&&(s="bold"),"italic"===n&&(s+="italic"),0===s.length&&(s="normal");for(var l="",h=a.toLowerCase().replace(/"|'/g,"").split(/\s*,\s*/),u={arial:"Helvetica",verdana:"Helvetica",helvetica:"Helvetica","sans-serif":"Helvetica",fixed:"Courier",monospace:"Courier",terminal:"Courier",courier:"Courier",times:"Times",cursive:"Times",fantasy:"Times",serif:"Times"},c=0;c<h.length;c++){if(void 0!==this.pdf.internal.getFont(h[c],s,{noFallback:!0,disableWarning:!0})){l=h[c];break}if("bolditalic"===s&&void 0!==this.pdf.internal.getFont(h[c],"bold",{noFallback:!0,disableWarning:!0}))l=h[c],s="bold";else if(void 0!==this.pdf.internal.getFont(h[c],"normal",{noFallback:!0,disableWarning:!0})){l=h[c],s="normal";break}}if(""===l)for(c=0;c<h.length;c++)if(u[h[c]]){l=u[h[c]];break}l=""===l?"Times":l,this.pdf.setFont(l,s)}}}),Object.defineProperty(this,"globalCompositeOperation",{get:function(){return this.ctx.globalCompositeOperation},set:function(t){this.ctx.globalCompositeOperation=t}}),Object.defineProperty(this,"globalAlpha",{get:function(){return this.ctx.globalAlpha},set:function(t){this.ctx.globalAlpha=t}}),Object.defineProperty(this,"ignoreClearRect",{get:function(){return this.ctx.ignoreClearRect},set:function(t){this.ctx.ignoreClearRect=Boolean(t)}})};n.prototype.fill=function(){r.call(this,"fill",!1)},n.prototype.stroke=function(){r.call(this,"stroke",!1)},n.prototype.beginPath=function(){this.path=[{type:"begin"}]},n.prototype.moveTo=function(t,e){if(isNaN(t)||isNaN(e))throw console.error("jsPDF.context2d.moveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.moveTo");var n=this.ctx.transform.applyToPoint(new j(t,e));this.path.push({type:"mt",x:n.x,y:n.y}),this.ctx.lastPoint=new j(t,e)},n.prototype.closePath=function(){var t=new j(0,0),e=0;for(e=this.path.length-1;-1!==e;e--)if("begin"===this.path[e].type&&"object"===se(this.path[e+1])&&"number"==typeof this.path[e+1].x){t=new j(this.path[e+1].x,this.path[e+1].y),this.path.push({type:"lt",x:t.x,y:t.y});break}"object"===se(this.path[e+2])&&"number"==typeof this.path[e+2].x&&this.path.push(JSON.parse(JSON.stringify(this.path[e+2]))),this.path.push({type:"close"}),this.ctx.lastPoint=new j(t.x,t.y)},n.prototype.lineTo=function(t,e){if(isNaN(t)||isNaN(e))throw console.error("jsPDF.context2d.lineTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.lineTo");var n=this.ctx.transform.applyToPoint(new j(t,e));this.path.push({type:"lt",x:n.x,y:n.y}),this.ctx.lastPoint=new j(n.x,n.y)},n.prototype.clip=function(){this.ctx.clip_path=JSON.parse(JSON.stringify(this.path)),r.call(this,null,!0)},n.prototype.quadraticCurveTo=function(t,e,n,r){if(isNaN(n)||isNaN(r)||isNaN(t)||isNaN(e))throw console.error("jsPDF.context2d.quadraticCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.quadraticCurveTo");var i=this.ctx.transform.applyToPoint(new j(n,r)),o=this.ctx.transform.applyToPoint(new j(t,e));this.path.push({type:"qct",x1:o.x,y1:o.y,x:i.x,y:i.y}),this.ctx.lastPoint=new j(i.x,i.y)},n.prototype.bezierCurveTo=function(t,e,n,r,i,o){if(isNaN(i)||isNaN(o)||isNaN(t)||isNaN(e)||isNaN(n)||isNaN(r))throw console.error("jsPDF.context2d.bezierCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.bezierCurveTo");var a=this.ctx.transform.applyToPoint(new j(i,o)),s=this.ctx.transform.applyToPoint(new j(t,e)),l=this.ctx.transform.applyToPoint(new j(n,r));this.path.push({type:"bct",x1:s.x,y1:s.y,x2:l.x,y2:l.y,x:a.x,y:a.y}),this.ctx.lastPoint=new j(a.x,a.y)},n.prototype.arc=function(t,e,n,r,i,o){if(isNaN(t)||isNaN(e)||isNaN(n)||isNaN(r)||isNaN(i))throw console.error("jsPDF.context2d.arc: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.arc");if(o=Boolean(o),!this.ctx.transform.isIdentity){var a=this.ctx.transform.applyToPoint(new j(t,e));t=a.x,e=a.y;var s=this.ctx.transform.applyToPoint(new j(0,n)),l=this.ctx.transform.applyToPoint(new j(0,0));n=Math.sqrt(Math.pow(s.x-l.x,2)+Math.pow(s.y-l.y,2))}Math.abs(i-r)>=2*Math.PI&&(r=0,i=2*Math.PI),this.path.push({type:"arc",x:t,y:e,radius:n,startAngle:r,endAngle:i,counterclockwise:o})},n.prototype.arcTo=function(t,e,n,r,i){throw new Error("arcTo not implemented.")},n.prototype.rect=function(t,e,n,r){if(isNaN(t)||isNaN(e)||isNaN(n)||isNaN(r))throw console.error("jsPDF.context2d.rect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rect");this.moveTo(t,e),this.lineTo(t+n,e),this.lineTo(t+n,e+r),this.lineTo(t,e+r),this.lineTo(t,e),this.lineTo(t+n,e),this.lineTo(t,e)},n.prototype.fillRect=function(t,e,n,r){if(isNaN(t)||isNaN(e)||isNaN(n)||isNaN(r))throw console.error("jsPDF.context2d.fillRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillRect");if(!N.call(this)){var i={};"butt"!==this.lineCap&&(i.lineCap=this.lineCap,this.lineCap="butt"),"miter"!==this.lineJoin&&(i.lineJoin=this.lineJoin,this.lineJoin="miter"),this.beginPath(),this.rect(t,e,n,r),this.fill(),i.hasOwnProperty("lineCap")&&(this.lineCap=i.lineCap),i.hasOwnProperty("lineJoin")&&(this.lineJoin=i.lineJoin)}},n.prototype.strokeRect=function(t,e,n,r){if(isNaN(t)||isNaN(e)||isNaN(n)||isNaN(r))throw console.error("jsPDF.context2d.strokeRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeRect");L.call(this)||(this.beginPath(),this.rect(t,e,n,r),this.stroke())},n.prototype.clearRect=function(t,e,n,r){if(isNaN(t)||isNaN(e)||isNaN(n)||isNaN(r))throw console.error("jsPDF.context2d.clearRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.clearRect");this.ignoreClearRect||(this.fillStyle="#ffffff",this.fillRect(t,e,n,r))},n.prototype.save=function(t){t="boolean"!=typeof t||t;for(var e=this.pdf.internal.getCurrentPageInfo().pageNumber,n=0;n<this.pdf.internal.getNumberOfPages();n++)this.pdf.setPage(n+1),this.pdf.internal.out("q");if(this.pdf.setPage(e),t){this.ctx.fontSize=this.pdf.internal.getFontSize();var r=new c(this.ctx);this.ctxStack.push(this.ctx),this.ctx=r}},n.prototype.restore=function(t){t="boolean"!=typeof t||t;for(var e=this.pdf.internal.getCurrentPageInfo().pageNumber,n=0;n<this.pdf.internal.getNumberOfPages();n++)this.pdf.setPage(n+1),this.pdf.internal.out("Q");this.pdf.setPage(e),t&&0!==this.ctxStack.length&&(this.ctx=this.ctxStack.pop(),this.fillStyle=this.ctx.fillStyle,this.strokeStyle=this.ctx.strokeStyle,this.font=this.ctx.font,this.lineCap=this.ctx.lineCap,this.lineWidth=this.ctx.lineWidth,this.lineJoin=this.ctx.lineJoin)},n.prototype.toDataURL=function(){throw new Error("toDataUrl not implemented.")};var f=function(t){var e,n,r,i;if(!0===t.isCanvasGradient&&(t=t.getColor()),!t)return{r:0,g:0,b:0,a:0,style:t};if(/transparent|rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*0+\s*\)/.test(t))i=r=n=e=0;else{var o=/rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/.exec(t);if(null!==o)e=parseInt(o[1]),n=parseInt(o[2]),r=parseInt(o[3]),i=1;else if(null!==(o=/rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*([\d\.]+)\s*\)/.exec(t)))e=parseInt(o[1]),n=parseInt(o[2]),r=parseInt(o[3]),i=parseFloat(o[4]);else{if(i=1,"string"==typeof t&&"#"!==t.charAt(0)){var a=new RGBColor(t);t=a.ok?a.toHex():"#000000"}4===t.length?(e=t.substring(1,2),e+=e,n=t.substring(2,3),n+=n,r=t.substring(3,4),r+=r):(e=t.substring(1,3),n=t.substring(3,5),r=t.substring(5,7)),e=parseInt(e,16),n=parseInt(n,16),r=parseInt(r,16)}}return{r:e,g:n,b:r,a:i,style:t}},N=function(){return this.ctx.isFillTransparent||0==this.globalAlpha},L=function(){return Boolean(this.ctx.isStrokeTransparent||0==this.globalAlpha)};n.prototype.fillText=function(t,e,n,r){if(isNaN(e)||isNaN(n)||"string"!=typeof t)throw console.error("jsPDF.context2d.fillText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillText");if(r=isNaN(r)?void 0:r,!N.call(this)){n=a.call(this,n);var i=B(this.ctx.transform.rotation),o=this.ctx.transform.scaleX;s.call(this,{text:t,x:e,y:n,scale:o,angle:i,align:this.textAlign,maxWidth:r})}},n.prototype.strokeText=function(t,e,n,r){if(isNaN(e)||isNaN(n)||"string"!=typeof t)throw console.error("jsPDF.context2d.strokeText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeText");if(!L.call(this)){r=isNaN(r)?void 0:r,n=a.call(this,n);var i=B(this.ctx.transform.rotation),o=this.ctx.transform.scaleX;s.call(this,{text:t,x:e,y:n,scale:o,renderingMode:"stroke",angle:i,align:this.textAlign,maxWidth:r})}},n.prototype.measureText=function(t){if("string"!=typeof t)throw console.error("jsPDF.context2d.measureText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.measureText");var e=this.pdf,n=this.pdf.internal.scaleFactor,r=e.internal.getFontSize(),i=e.getStringUnitWidth(t)*r/e.internal.scaleFactor;return new function(t){var e=(t=t||{}).width||0;return Object.defineProperty(this,"width",{get:function(){return e}}),this}({width:i*=Math.round(96*n/72*1e4)/1e4})},n.prototype.scale=function(t,e){if(isNaN(t)||isNaN(e))throw console.error("jsPDF.context2d.scale: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.scale");var n=new M(t,0,0,e,0,0);this.ctx.transform=this.ctx.transform.multiply(n)},n.prototype.rotate=function(t){if(isNaN(t))throw console.error("jsPDF.context2d.rotate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rotate");var e=new M(Math.cos(t),Math.sin(t),-Math.sin(t),Math.cos(t),0,0);this.ctx.transform=this.ctx.transform.multiply(e)},n.prototype.translate=function(t,e){if(isNaN(t)||isNaN(e))throw console.error("jsPDF.context2d.translate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.translate");var n=new M(1,0,0,1,t,e);this.ctx.transform=this.ctx.transform.multiply(n)},n.prototype.transform=function(t,e,n,r,i,o){if(isNaN(t)||isNaN(e)||isNaN(n)||isNaN(r)||isNaN(i)||isNaN(o))throw console.error("jsPDF.context2d.transform: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.transform");var a=new M(t,e,n,r,i,o);this.ctx.transform=this.ctx.transform.multiply(a)},n.prototype.setTransform=function(t,e,n,r,i,o){t=isNaN(t)?1:t,e=isNaN(e)?0:e,n=isNaN(n)?0:n,r=isNaN(r)?1:r,i=isNaN(i)?0:i,o=isNaN(o)?0:o,this.ctx.transform=new M(t,e,n,r,i,o)},n.prototype.drawImage=function(t,e,n,r,i,o,a,s,l){var h=this.pdf.getImageProperties(t),u=1,c=1,f=1,p=1;void 0!==r&&void 0!==s&&(f=s/r,p=l/i,u=h.width/r*s/r,c=h.height/i*l/i),void 0===o&&(o=e,a=n,n=e=0),void 0!==r&&void 0===s&&(s=r,l=i),void 0===r&&void 0===s&&(s=h.width,l=h.height);var d=this.ctx.transform.decompose(),g=B(d.rotate.shx);d.scale.sx,d.scale.sy;for(var m,y=new M,v=((y=(y=(y=y.multiply(d.translate)).multiply(d.skew)).multiply(d.scale)).applyToPoint(new j(s,l)),y.applyToRectangle(new E(o-e*f,a-n*p,r*u,i*c))),w=F.call(this,v),b=[],x=0;x<w.length;x+=1)-1===b.indexOf(w[x])&&b.push(w[x]);if(b.sort(),this.autoPaging)for(var N=b[0],L=b[b.length-1],A=N;A<L+1;A++){if(this.pdf.setPage(A),0!==this.ctx.clip_path.length){var S=this.path;m=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=P(m,this.posX,-1*this.pdf.internal.pageSize.height*(A-1)+this.posY),k.call(this,"fill",!0),this.path=S}var _=JSON.parse(JSON.stringify(v));_=P([_],this.posX,-1*this.pdf.internal.pageSize.height*(A-1)+this.posY)[0],this.pdf.addImage(t,"jpg",_.x,_.y,_.w,_.h,null,null,g)}else this.pdf.addImage(t,"jpg",v.x,v.y,v.w,v.h,null,null,g)};var F=function(t,e,n){var r=[];switch(e=e||this.pdf.internal.pageSize.width,n=n||this.pdf.internal.pageSize.height,t.type){default:case"mt":case"lt":r.push(Math.floor((t.y+this.posY)/n)+1);break;case"arc":r.push(Math.floor((t.y+this.posY-t.radius)/n)+1),r.push(Math.floor((t.y+this.posY+t.radius)/n)+1);break;case"qct":var i=w(this.ctx.lastPoint.x,this.ctx.lastPoint.y,t.x1,t.y1,t.x,t.y);r.push(Math.floor(i.y/n)+1),r.push(Math.floor((i.y+i.h)/n)+1);break;case"bct":var o=b(this.ctx.lastPoint.x,this.ctx.lastPoint.y,t.x1,t.y1,t.x2,t.y2,t.x,t.y);r.push(Math.floor(o.y/n)+1),r.push(Math.floor((o.y+o.h)/n)+1);break;case"rect":r.push(Math.floor((t.y+this.posY)/n)+1),r.push(Math.floor((t.y+t.h+this.posY)/n)+1)}for(var a=0;a<r.length;a+=1)for(;this.pdf.internal.getNumberOfPages()<r[a];)v.call(this);return r},v=function(){var t=this.fillStyle,e=this.strokeStyle,n=this.font,r=this.lineCap,i=this.lineWidth,o=this.lineJoin;this.pdf.addPage(),this.fillStyle=t,this.strokeStyle=e,this.font=n,this.lineCap=r,this.lineWidth=i,this.lineJoin=o},P=function(t,e,n){for(var r=0;r<t.length;r++)switch(t[r].type){case"bct":t[r].x2+=e,t[r].y2+=n;case"qct":t[r].x1+=e,t[r].y1+=n;case"mt":case"lt":case"arc":default:t[r].x+=e,t[r].y+=n}return t},r=function(t,e){for(var n,r,i=this.fillStyle,o=this.strokeStyle,a=(this.font,this.lineCap),s=this.lineWidth,l=this.lineJoin,h=JSON.parse(JSON.stringify(this.path)),u=JSON.parse(JSON.stringify(this.path)),c=[],f=0;f<u.length;f++)if(void 0!==u[f].x)for(var p=F.call(this,u[f]),d=0;d<p.length;d+=1)-1===c.indexOf(p[d])&&c.push(p[d]);for(f=0;f<c.length;f++)for(;this.pdf.internal.getNumberOfPages()<c[f];)v.call(this);if(c.sort(),this.autoPaging){var g=c[0],m=c[c.length-1];for(f=g;f<m+1;f++){if(this.pdf.setPage(f),this.fillStyle=i,this.strokeStyle=o,this.lineCap=a,this.lineWidth=s,this.lineJoin=l,0!==this.ctx.clip_path.length){var y=this.path;n=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=P(n,this.posX,-1*this.pdf.internal.pageSize.height*(f-1)+this.posY),k.call(this,t,!0),this.path=y}r=JSON.parse(JSON.stringify(h)),this.path=P(r,this.posX,-1*this.pdf.internal.pageSize.height*(f-1)+this.posY),!1!==e&&0!==f||k.call(this,t,e)}}else k.call(this,t,e);this.path=h},k=function(t,e){if(("stroke"!==t||e||!L.call(this))&&("stroke"===t||e||!N.call(this))){var n=[];this.ctx.globalAlpha;this.ctx.fillOpacity<1&&this.ctx.fillOpacity;for(var r,i=this.path,o=0;o<i.length;o++){var a=i[o];switch(a.type){case"begin":n.push({begin:!0});break;case"close":n.push({close:!0});break;case"mt":n.push({start:a,deltas:[],abs:[]});break;case"lt":var s=n.length;if(!isNaN(i[o-1].x)){var l=[a.x-i[o-1].x,a.y-i[o-1].y];if(0<s)for(;0<=s;s--)if(!0!==n[s-1].close&&!0!==n[s-1].begin){n[s-1].deltas.push(l),n[s-1].abs.push(a);break}}break;case"bct":l=[a.x1-i[o-1].x,a.y1-i[o-1].y,a.x2-i[o-1].x,a.y2-i[o-1].y,a.x-i[o-1].x,a.y-i[o-1].y];n[n.length-1].deltas.push(l);break;case"qct":var h=i[o-1].x+2/3*(a.x1-i[o-1].x),u=i[o-1].y+2/3*(a.y1-i[o-1].y),c=a.x+2/3*(a.x1-a.x),f=a.y+2/3*(a.y1-a.y),p=a.x,d=a.y;l=[h-i[o-1].x,u-i[o-1].y,c-i[o-1].x,f-i[o-1].y,p-i[o-1].x,d-i[o-1].y];n[n.length-1].deltas.push(l);break;case"arc":n.push({deltas:[],abs:[],arc:!0}),Array.isArray(n[n.length-1].abs)&&n[n.length-1].abs.push(a)}}r=e?null:"stroke"===t?"stroke":"fill";for(o=0;o<n.length;o++){if(n[o].arc)for(var g=n[o].abs,m=0;m<g.length;m++){var y=g[m];if(void 0!==y.startAngle){var v=B(y.startAngle),w=B(y.endAngle),b=y.x,x=y.y;A.call(this,b,x,y.radius,v,w,y.counterclockwise,r,e)}else I.call(this,y.x,y.y)}if(!n[o].arc&&!0!==n[o].close&&!0!==n[o].begin){b=n[o].start.x,x=n[o].start.y;C.call(this,n[o].deltas,b,x,null,null)}}r&&S.call(this,r),e&&_.call(this)}},a=function(t){var e=this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor,n=e*(this.pdf.internal.getLineHeightFactor()-1);switch(this.ctx.textBaseline){case"bottom":return t-n;case"top":return t+e-n;case"hanging":return t+e-2*n;case"middle":return t+e/2-n;case"ideographic":return t;case"alphabetic":default:return t}};n.prototype.createLinearGradient=function(){var t=function(){};return t.colorStops=[],t.addColorStop=function(t,e){this.colorStops.push([t,e])},t.getColor=function(){return 0===this.colorStops.length?"#000000":this.colorStops[0][1]},t.isCanvasGradient=!0,t},n.prototype.createPattern=function(){return this.createLinearGradient()},n.prototype.createRadialGradient=function(){return this.createLinearGradient()};var A=function(t,e,n,r,i,o,a,s){this.pdf.internal.scaleFactor;for(var l=y(r),h=y(i),u=g.call(this,n,l,h,o),c=0;c<u.length;c++){var f=u[c];0===c&&p.call(this,f.x1+t,f.y1+e),d.call(this,t,e,f.x2,f.y2,f.x3,f.y3,f.x4,f.y4)}s?_.call(this):S.call(this,a)},S=function(t){switch(t){case"stroke":this.pdf.internal.out("S");break;case"fill":this.pdf.internal.out("f")}},_=function(){this.pdf.clip()},p=function(t,e){this.pdf.internal.out(i(t)+" "+o(e)+" m")},s=function(t){var e;switch(t.align){case"right":case"end":e="right";break;case"center":e="center";break;case"left":case"start":default:e="left"}var n=this.ctx.transform.applyToPoint(new j(t.x,t.y)),r=this.ctx.transform.decompose(),i=new M;i=(i=(i=i.multiply(r.translate)).multiply(r.skew)).multiply(r.scale);for(var o,a=this.pdf.getTextDimensions(t.text),s=this.ctx.transform.applyToRectangle(new E(t.x,t.y,a.w,a.h)),l=i.applyToRectangle(new E(t.x,t.y-a.h,a.w,a.h)),h=F.call(this,l),u=[],c=0;c<h.length;c+=1)-1===u.indexOf(h[c])&&u.push(h[c]);if(u.sort(),!0===this.autoPaging)for(var f=u[0],p=u[u.length-1],d=f;d<p+1;d++){if(this.pdf.setPage(d),0!==this.ctx.clip_path.length){var g=this.path;o=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=P(o,this.posX,-1*this.pdf.internal.pageSize.height*(d-1)+this.posY),k.call(this,"fill",!0),this.path=g}var m=JSON.parse(JSON.stringify(s));if(m=P([m],this.posX,-1*this.pdf.internal.pageSize.height*(d-1)+this.posY)[0],.01<=t.scale){var y=this.pdf.internal.getFontSize();this.pdf.setFontSize(y*t.scale)}this.pdf.text(t.text,m.x,m.y,{angle:t.angle,align:e,renderingMode:t.renderingMode,maxWidth:t.maxWidth}),.01<=t.scale&&this.pdf.setFontSize(y)}else{if(.01<=t.scale){y=this.pdf.internal.getFontSize();this.pdf.setFontSize(y*t.scale)}this.pdf.text(t.text,n.x+this.posX,n.y+this.posY,{angle:t.angle,align:e,renderingMode:t.renderingMode,maxWidth:t.maxWidth}),.01<=t.scale&&this.pdf.setFontSize(y)}},I=function(t,e,n,r){n=n||0,r=r||0,this.pdf.internal.out(i(t+n)+" "+o(e+r)+" l")},C=function(t,e,n){return this.pdf.lines(t,e,n,null,null)},d=function(t,e,n,r,i,o,a,s){this.pdf.internal.out([l(h(n+t)),l(u(r+e)),l(h(i+t)),l(u(o+e)),l(h(a+t)),l(u(s+e)),"c"].join(" "))},g=function(t,e,n,r){var i=2*Math.PI,o=e;(o<i||i<o)&&(o%=i);var a=n;(a<i||i<a)&&(a%=i);for(var s=[],l=Math.PI/2,h=r?-1:1,u=e,c=Math.min(i,Math.abs(a-o));1e-5<c;){var f=u+h*Math.min(c,l);s.push(m.call(this,t,u,f)),c-=Math.abs(f-u),u=f}return s},m=function(t,e,n){var r=(n-e)/2,i=t*Math.cos(r),o=t*Math.sin(r),a=i,s=-o,l=a*a+s*s,h=l+a*i+s*o,u=4/3*(Math.sqrt(2*l*h)-h)/(a*o-s*i),c=a-u*s,f=s+u*a,p=c,d=-f,g=r+e,m=Math.cos(g),y=Math.sin(g);return{x1:t*Math.cos(e),y1:t*Math.sin(e),x2:c*m-f*y,y2:c*y+f*m,x3:p*m-d*y,y3:p*y+d*m,x4:t*Math.cos(n),y4:t*Math.sin(n)}},B=function(t){return 180*t/Math.PI},y=function(t){return t*Math.PI/180},w=function(t,e,n,r,i,o){var a=t+.5*(n-t),s=e+.5*(r-e),l=i+.5*(n-i),h=o+.5*(r-o),u=Math.min(t,i,a,l),c=Math.max(t,i,a,l),f=Math.min(e,o,s,h),p=Math.max(e,o,s,h);return new E(u,f,c-u,p-f)},b=function(t,e,n,r,i,o,a,s){for(var l,h,u,c,f,p,d,g,m,y,v,w,b,x=n-t,N=r-e,L=i-n,A=o-r,S=a-i,_=s-o,F=0;F<41;F++)g=(p=(h=t+(l=F/40)*x)+l*((c=n+l*L)-h))+l*(c+l*(i+l*S-c)-p),m=(d=(u=e+l*N)+l*((f=r+l*A)-u))+l*(f+l*(o+l*_-f)-d),b=0==F?(w=y=g,v=m):(y=Math.min(y,g),v=Math.min(v,m),w=Math.max(w,g),Math.max(b,m));return new E(Math.round(y),Math.round(v),Math.round(w-y),Math.round(b-v))},j=function(t,e){var n=t||0;Object.defineProperty(this,"x",{enumerable:!0,get:function(){return n},set:function(t){isNaN(t)||(n=parseFloat(t))}});var r=e||0;Object.defineProperty(this,"y",{enumerable:!0,get:function(){return r},set:function(t){isNaN(t)||(r=parseFloat(t))}});var i="pt";return Object.defineProperty(this,"type",{enumerable:!0,get:function(){return i},set:function(t){i=t.toString()}}),this},E=function(t,e,n,r){j.call(this,t,e),this.type="rect";var i=n||0;Object.defineProperty(this,"w",{enumerable:!0,get:function(){return i},set:function(t){isNaN(t)||(i=parseFloat(t))}});var o=r||0;return Object.defineProperty(this,"h",{enumerable:!0,get:function(){return o},set:function(t){isNaN(t)||(o=parseFloat(t))}}),this},M=function(t,e,n,r,i,o){var a=[];return Object.defineProperty(this,"sx",{get:function(){return a[0]},set:function(t){a[0]=Math.round(1e5*t)/1e5}}),Object.defineProperty(this,"shy",{get:function(){return a[1]},set:function(t){a[1]=Math.round(1e5*t)/1e5}}),Object.defineProperty(this,"shx",{get:function(){return a[2]},set:function(t){a[2]=Math.round(1e5*t)/1e5}}),Object.defineProperty(this,"sy",{get:function(){return a[3]},set:function(t){a[3]=Math.round(1e5*t)/1e5}}),Object.defineProperty(this,"tx",{get:function(){return a[4]},set:function(t){a[4]=Math.round(1e5*t)/1e5}}),Object.defineProperty(this,"ty",{get:function(){return a[5]},set:function(t){a[5]=Math.round(1e5*t)/1e5}}),Object.defineProperty(this,"rotation",{get:function(){return Math.atan2(this.shx,this.sx)}}),Object.defineProperty(this,"scaleX",{get:function(){return this.decompose().scale.sx}}),Object.defineProperty(this,"scaleY",{get:function(){return this.decompose().scale.sy}}),Object.defineProperty(this,"isIdentity",{get:function(){return 1===this.sx&&(0===this.shy&&(0===this.shx&&(1===this.sy&&(0===this.tx&&0===this.ty))))}}),this.sx=isNaN(t)?1:t,this.shy=isNaN(e)?0:e,this.shx=isNaN(n)?0:n,this.sy=isNaN(r)?1:r,this.tx=isNaN(i)?0:i,this.ty=isNaN(o)?0:o,this};M.prototype.multiply=function(t){var e=t.sx*this.sx+t.shy*this.shx,n=t.sx*this.shy+t.shy*this.sy,r=t.shx*this.sx+t.sy*this.shx,i=t.shx*this.shy+t.sy*this.sy,o=t.tx*this.sx+t.ty*this.shx+this.tx,a=t.tx*this.shy+t.ty*this.sy+this.ty;return new M(e,n,r,i,o,a)},M.prototype.decompose=function(){var t=this.sx,e=this.shy,n=this.shx,r=this.sy,i=this.tx,o=this.ty,a=Math.sqrt(t*t+e*e),s=(t/=a)*n+(e/=a)*r;n-=t*s,r-=e*s;var l=Math.sqrt(n*n+r*r);return s/=l,t*(r/=l)<e*(n/=l)&&(t=-t,e=-e,s=-s,a=-a),{scale:new M(a,0,0,l,0,0),translate:new M(1,0,0,1,i,o),rotate:new M(t,e,-e,t,0,0),skew:new M(1,0,s,1,0,0)}},M.prototype.applyToPoint=function(t){var e=t.x*this.sx+t.y*this.shx+this.tx,n=t.x*this.shy+t.y*this.sy+this.ty;return new j(e,n)},M.prototype.applyToRectangle=function(t){var e=this.applyToPoint(t),n=this.applyToPoint(new j(t.x+t.w,t.y+t.h));return new E(e.x,e.y,n.x-e.x,n.y-e.y)},M.prototype.clone=function(){var t=this.sx,e=this.shy,n=this.shx,r=this.sy,i=this.tx,o=this.ty;return new M(t,e,n,r,i,o)}}(lt.API,"undefined"!=typeof self&&self||"undefined"!=typeof window&&window||"undefined"!=typeof global&&global||Function('return typeof this === "object" && this.content')()||Function("return this")()),-/**- * jsPDF filters PlugIn- * Copyright (c) 2014 Aras Abbasi- *- * Licensed under the MIT License.- * http://opensource.org/licenses/mit-license- */-a=lt.API,o=function(t){var r,e,n,i,o,a,s,l,h,u;for(/[^\x00-\xFF]/.test(t),e=[],n=0,i=(t+=r="\0\0\0\0".slice(t.length%4||4)).length;n<i;n+=4)0!==(o=(t.charCodeAt(n)<<24)+(t.charCodeAt(n+1)<<16)+(t.charCodeAt(n+2)<<8)+t.charCodeAt(n+3))?(a=(o=((o=((o=((o=(o-(u=o%85))/85)-(h=o%85))/85)-(l=o%85))/85)-(s=o%85))/85)%85,e.push(a+33,s+33,l+33,h+33,u+33)):e.push(122);return function(t,e){for(var n=r.length;0<n;n--)t.pop()}(e),String.fromCharCode.apply(String,e)+"~>"},s=function(t){var r,e,n,i,o,a=String,s="length",l="charCodeAt",h="slice",u="replace";for(t[h](-2),t=t[h](0,-2)[u](/\s/g,"")[u]("z","!!!!!"),n=[],i=0,o=(t+=r="uuuuu"[h](t[s]%5||5))[s];i<o;i+=5)e=52200625*(t[l](i)-33)+614125*(t[l](i+1)-33)+7225*(t[l](i+2)-33)+85*(t[l](i+3)-33)+(t[l](i+4)-33),n.push(255&e>>24,255&e>>16,255&e>>8,255&e);return function(t,e){for(var n=r[s];0<n;n--)t.pop()}(n),a.fromCharCode.apply(a,n)},h=function(t){for(var e="",n=0;n<t.length;n+=1)e+=("0"+t.charCodeAt(n).toString(16)).slice(-2);return e+=">"},u=function(t){var e=new RegExp(/^([0-9A-Fa-f]{2})+$/);if(-1!==(t=t.replace(/\s/g,"")).indexOf(">")&&(t=t.substr(0,t.indexOf(">"))),t.length%2&&(t+="0"),!1===e.test(t))return"";for(var n="",r=0;r<t.length;r+=2)n+=String.fromCharCode("0x"+(t[r]+t[r+1]));return n},c=function(t,e){e=Object.assign({predictor:1,colors:1,bitsPerComponent:8,columns:1},e);for(var n,r,i=[],o=t.length;o--;)i[o]=t.charCodeAt(o);return n=a.adler32cs.from(t),(r=new Deflater(6)).append(new Uint8Array(i)),t=r.flush(),(i=new Uint8Array(t.length+6)).set(new Uint8Array([120,156])),i.set(t,2),i.set(new Uint8Array([255&n,n>>8&255,n>>16&255,n>>24&255]),t.length+2),t=String.fromCharCode.apply(null,i)},a.processDataByFilters=function(t,e){var n=0,r=t||"",i=[];for("string"==typeof(e=e||[])&&(e=[e]),n=0;n<e.length;n+=1)switch(e[n]){case"ASCII85Decode":case"/ASCII85Decode":r=s(r),i.push("/ASCII85Encode");break;case"ASCII85Encode":case"/ASCII85Encode":r=o(r),i.push("/ASCII85Decode");break;case"ASCIIHexDecode":case"/ASCIIHexDecode":r=u(r),i.push("/ASCIIHexEncode");break;case"ASCIIHexEncode":case"/ASCIIHexEncode":r=h(r),i.push("/ASCIIHexDecode");break;case"FlateEncode":case"/FlateEncode":r=c(r),i.push("/FlateDecode");break;default:throw'The filter: "'+e[n]+'" is not implemented'}return{data:r,reverseChain:i.reverse().join(" ")}},(-/**- * jsPDF fileloading PlugIn- * Copyright (c) 2018 Aras Abbasi ([email protected])- *- * Licensed under the MIT License.- * http://opensource.org/licenses/mit-license- */-r=lt.API).loadFile=function(t,e,n){var r;e=e||!0,n=n||function(){};try{r=function(t,e,n){var r=new XMLHttpRequest,i=[],o=0,a=function(t){var e=t.length,n=String.fromCharCode;for(o=0;o<e;o+=1)i.push(n(255&t.charCodeAt(o)));return i.join("")};if(r.open("GET",t,!e),r.overrideMimeType("text/plain; charset=x-user-defined"),!1===e&&(r.onload=function(){return a(this.responseText)}),r.send(null),200===r.status)return e?a(r.responseText):void 0;console.warn('Unable to load file "'+t+'"')}(t,e)}catch(t){r=void 0}return r},r.loadImageFile=r.loadFile,-/**- * Copyright (c) 2018 Erik Koopmans- * Released under the MIT License.- *- * Licensed under the MIT License.- * http://opensource.org/licenses/mit-license- */-i=lt.API,f="undefined"!=typeof window&&window||"undefined"!=typeof global&&global,g=function(t){var e=se(t);return"undefined"===e?"undefined":"string"===e||t instanceof String?"string":"number"===e||t instanceof Number?"number":"function"===e||t instanceof Function?"function":t&&t.constructor===Array?"array":t&&1===t.nodeType?"element":"object"===e?"object":"unknown"},m=function(t,e){var n=document.createElement(t);if(e.className&&(n.className=e.className),e.innerHTML){n.innerHTML=e.innerHTML;for(var r=n.getElementsByTagName("script"),i=r.length;0<i--;null)r[i].parentNode.removeChild(r[i])}for(var o in e.style)n.style[o]=e.style[o];return n},(((y=function t(e){var n=Object.assign(t.convert(Promise.resolve()),JSON.parse(JSON.stringify(t.template))),r=t.convert(Promise.resolve(),n);return r=(r=r.setProgress(1,t,1,[t])).set(e)}).prototype=Object.create(Promise.prototype)).constructor=y).convert=function(t,e){return t.__proto__=e||y.prototype,t},y.template={prop:{src:null,container:null,overlay:null,canvas:null,img:null,pdf:null,pageSize:null,callback:function(){}},progress:{val:0,state:null,n:0,stack:[]},opt:{filename:"file.pdf",margin:[0,0,0,0],enableLinks:!0,x:0,y:0,html2canvas:{},jsPDF:{}}},y.prototype.from=function(t,e){return this.then(function(){switch(e=e||function(t){switch(g(t)){case"string":return"string";case"element":return"canvas"===t.nodeName.toLowerCase?"canvas":"element";default:return"unknown"}}(t)){case"string":return this.set({src:m("div",{innerHTML:t})});case"element":return this.set({src:t});case"canvas":return this.set({canvas:t});case"img":return this.set({img:t});default:return this.error("Unknown source type.")}})},y.prototype.to=function(t){switch(t){case"container":return this.toContainer();case"canvas":return this.toCanvas();case"img":return this.toImg();case"pdf":return this.toPdf();default:return this.error("Invalid target.")}},y.prototype.toContainer=function(){return this.thenList([function(){return this.prop.src||this.error("Cannot duplicate - no source HTML.")},function(){return this.prop.pageSize||this.setPageSize()}]).then(function(){var t={position:"relative",display:"inline-block",width:Math.max(this.prop.src.clientWidth,this.prop.src.scrollWidth,this.prop.src.offsetWidth)+"px",left:0,right:0,top:0,margin:"auto",backgroundColor:"white"},e=function t(e,n){for(var r=3===e.nodeType?document.createTextNode(e.nodeValue):e.cloneNode(!1),i=e.firstChild;i;i=i.nextSibling)!0!==n&&1===i.nodeType&&"SCRIPT"===i.nodeName||r.appendChild(t(i,n));return 1===e.nodeType&&("CANVAS"===e.nodeName?(r.width=e.width,r.height=e.height,r.getContext("2d").drawImage(e,0,0)):"TEXTAREA"!==e.nodeName&&"SELECT"!==e.nodeName||(r.value=e.value),r.addEventListener("load",function(){r.scrollTop=e.scrollTop,r.scrollLeft=e.scrollLeft},!0)),r}(this.prop.src,this.opt.html2canvas.javascriptEnabled);"BODY"===e.tagName&&(t.height=Math.max(document.body.scrollHeight,document.body.offsetHeight,document.documentElement.clientHeight,document.documentElement.scrollHeight,document.documentElement.offsetHeight)+"px"),this.prop.overlay=m("div",{className:"html2pdf__overlay",style:{position:"fixed",overflow:"hidden",zIndex:1e3,left:"-100000px",right:0,bottom:0,top:0}}),this.prop.container=m("div",{className:"html2pdf__container",style:t}),this.prop.container.appendChild(e),this.prop.container.firstChild.appendChild(m("div",{style:{clear:"both",border:"0 none transparent",margin:0,padding:0,height:0}})),this.prop.container.style.float="none",this.prop.overlay.appendChild(this.prop.container),document.body.appendChild(this.prop.overlay),this.prop.container.firstChild.style.position="relative",this.prop.container.height=Math.max(this.prop.container.firstChild.clientHeight,this.prop.container.firstChild.scrollHeight,this.prop.container.firstChild.offsetHeight)+"px"})},y.prototype.toCanvas=function(){var t=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(t).then(function(){var t=Object.assign({},this.opt.html2canvas);if(delete t.onrendered,this.isHtml2CanvasLoaded())return html2canvas(this.prop.container,t)}).then(function(t){(this.opt.html2canvas.onrendered||function(){})(t),this.prop.canvas=t,document.body.removeChild(this.prop.overlay)})},y.prototype.toContext2d=function(){var t=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(t).then(function(){var t=this.opt.jsPDF,e=Object.assign({async:!0,allowTaint:!0,backgroundColor:"#ffffff",imageTimeout:15e3,logging:!0,proxy:null,removeContainer:!0,foreignObjectRendering:!1,useCORS:!1},this.opt.html2canvas);if(delete e.onrendered,t.context2d.autoPaging=!0,t.context2d.posX=this.opt.x,t.context2d.posY=this.opt.y,e.windowHeight=e.windowHeight||0,e.windowHeight=0==e.windowHeight?Math.max(this.prop.container.clientHeight,this.prop.container.scrollHeight,this.prop.container.offsetHeight):e.windowHeight,this.isHtml2CanvasLoaded())return html2canvas(this.prop.container,e)}).then(function(t){(this.opt.html2canvas.onrendered||function(){})(t),this.prop.canvas=t,document.body.removeChild(this.prop.overlay)})},y.prototype.toImg=function(){return this.thenList([function(){return this.prop.canvas||this.toCanvas()}]).then(function(){var t=this.prop.canvas.toDataURL("image/"+this.opt.image.type,this.opt.image.quality);this.prop.img=document.createElement("img"),this.prop.img.src=t})},y.prototype.toPdf=function(){return this.thenList([function(){return this.toContext2d()}]).then(function(){this.prop.pdf=this.prop.pdf||this.opt.jsPDF})},y.prototype.output=function(t,e,n){return"img"===(n=n||"pdf").toLowerCase()||"image"===n.toLowerCase()?this.outputImg(t,e):this.outputPdf(t,e)},y.prototype.outputPdf=function(t,e){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then(function(){return this.prop.pdf.output(t,e)})},y.prototype.outputImg=function(t,e){return this.thenList([function(){return this.prop.img||this.toImg()}]).then(function(){switch(t){case void 0:case"img":return this.prop.img;case"datauristring":case"dataurlstring":return this.prop.img.src;case"datauri":case"dataurl":return document.location.href=this.prop.img.src;default:throw'Image output type "'+t+'" is not supported.'}})},y.prototype.isHtml2CanvasLoaded=function(){var t=void 0!==f.html2canvas;return t||console.error("html2canvas not loaded."),t},y.prototype.save=function(t){if(this.isHtml2CanvasLoaded())return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).set(t?{filename:t}:null).then(function(){this.prop.pdf.save(this.opt.filename)})},y.prototype.doCallback=function(t){if(this.isHtml2CanvasLoaded())return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then(function(){this.prop.callback(this.prop.pdf)})},y.prototype.set=function(e){if("object"!==g(e))return this;var t=Object.keys(e||{}).map(function(t){if(t in y.template.prop)return function(){this.prop[t]=e[t]};switch(t){case"margin":return this.setMargin.bind(this,e.margin);case"jsPDF":return function(){return this.opt.jsPDF=e.jsPDF,this.setPageSize()};case"pageSize":return this.setPageSize.bind(this,e.pageSize);default:return function(){this.opt[t]=e[t]}}},this);return this.then(function(){return this.thenList(t)})},y.prototype.get=function(e,n){return this.then(function(){var t=e in y.template.prop?this.prop[e]:this.opt[e];return n?n(t):t})},y.prototype.setMargin=function(t){return this.then(function(){switch(g(t)){case"number":t=[t,t,t,t];case"array":if(2===t.length&&(t=[t[0],t[1],t[0],t[1]]),4===t.length)break;default:return this.error("Invalid margin array.")}this.opt.margin=t}).then(this.setPageSize)},y.prototype.setPageSize=function(t){function e(t,e){return Math.floor(t*e/72*96)}return this.then(function(){(t=t||lt.getPageSize(this.opt.jsPDF)).hasOwnProperty("inner")||(t.inner={width:t.width-this.opt.margin[1]-this.opt.margin[3],height:t.height-this.opt.margin[0]-this.opt.margin[2]},t.inner.px={width:e(t.inner.width,t.k),height:e(t.inner.height,t.k)},t.inner.ratio=t.inner.height/t.inner.width),this.prop.pageSize=t})},y.prototype.setProgress=function(t,e,n,r){return null!=t&&(this.progress.val=t),null!=e&&(this.progress.state=e),null!=n&&(this.progress.n=n),null!=r&&(this.progress.stack=r),this.progress.ratio=this.progress.val/this.progress.state,this},y.prototype.updateProgress=function(t,e,n,r){return this.setProgress(t?this.progress.val+t:null,e||null,n?this.progress.n+n:null,r?this.progress.stack.concat(r):null)},y.prototype.then=function(t,e){var n=this;return this.thenCore(t,e,function(e,t){return n.updateProgress(null,null,1,[e]),Promise.prototype.then.call(this,function(t){return n.updateProgress(null,e),t}).then(e,t).then(function(t){return n.updateProgress(1),t})})},y.prototype.thenCore=function(t,e,n){n=n||Promise.prototype.then;var r=this;t&&(t=t.bind(r)),e&&(e=e.bind(r));var i=-1!==Promise.toString().indexOf("[native code]")&&"Promise"===Promise.name?r:y.convert(Object.assign({},r),Promise.prototype),o=n.call(i,t,e);return y.convert(o,r.__proto__)},y.prototype.thenExternal=function(t,e){return Promise.prototype.then.call(this,t,e)},y.prototype.thenList=function(t){var e=this;return t.forEach(function(t){e=e.thenCore(t)}),e},y.prototype.catch=function(t){t&&(t=t.bind(this));var e=Promise.prototype.catch.call(this,t);return y.convert(e,this)},y.prototype.catchExternal=function(t){return Promise.prototype.catch.call(this,t)},y.prototype.error=function(t){return this.then(function(){throw new Error(t)})},y.prototype.using=y.prototype.set,y.prototype.saveAs=y.prototype.save,y.prototype.export=y.prototype.output,y.prototype.run=y.prototype.then,lt.getPageSize=function(t,e,n){if("object"===se(t)){var r=t;t=r.orientation,e=r.unit||e,n=r.format||n}e=e||"mm",n=n||"a4",t=(""+(t||"P")).toLowerCase();var i=(""+n).toLowerCase(),o={a0:[2383.94,3370.39],a1:[1683.78,2383.94],a2:[1190.55,1683.78],a3:[841.89,1190.55],a4:[595.28,841.89],a5:[419.53,595.28],a6:[297.64,419.53],a7:[209.76,297.64],a8:[147.4,209.76],a9:[104.88,147.4],a10:[73.7,104.88],b0:[2834.65,4008.19],b1:[2004.09,2834.65],b2:[1417.32,2004.09],b3:[1000.63,1417.32],b4:[708.66,1000.63],b5:[498.9,708.66],b6:[354.33,498.9],b7:[249.45,354.33],b8:[175.75,249.45],b9:[124.72,175.75],b10:[87.87,124.72],c0:[2599.37,3676.54],c1:[1836.85,2599.37],c2:[1298.27,1836.85],c3:[918.43,1298.27],c4:[649.13,918.43],c5:[459.21,649.13],c6:[323.15,459.21],c7:[229.61,323.15],c8:[161.57,229.61],c9:[113.39,161.57],c10:[79.37,113.39],dl:[311.81,623.62],letter:[612,792],"government-letter":[576,756],legal:[612,1008],"junior-legal":[576,360],ledger:[1224,792],tabloid:[792,1224],"credit-card":[153,243]};switch(e){case"pt":var a=1;break;case"mm":a=72/25.4;break;case"cm":a=72/2.54;break;case"in":a=72;break;case"px":a=.75;break;case"pc":case"em":a=12;break;case"ex":a=6;break;default:throw"Invalid unit: "+e}if(o.hasOwnProperty(i))var s=o[i][1]/a,l=o[i][0]/a;else try{s=n[1],l=n[0]}catch(t){throw new Error("Invalid format: "+n)}if("p"===t||"portrait"===t){if(t="p",s<l){var h=l;l=s,s=h}}else{if("l"!==t&&"landscape"!==t)throw"Invalid orientation: "+t;t="l",l<s&&(h=l,l=s,s=h)}return{width:l,height:s,unit:e,k:a}},i.html=function(t,e){(e=e||{}).callback=e.callback||function(){},e.html2canvas=e.html2canvas||{},e.html2canvas.canvas=e.html2canvas.canvas||this.canvas,e.jsPDF=e.jsPDF||this,e.jsPDF;var n=new y(e);return e.worker?n:n.from(t).doCallback()},lt.API.addJS=function(t){return b=t,this.internal.events.subscribe("postPutResources",function(t){v=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/Names [(EmbeddedJS) "+(v+1)+" 0 R]"),this.internal.out(">>"),this.internal.out("endobj"),w=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /JavaScript"),this.internal.out("/JS ("+b+")"),this.internal.out(">>"),this.internal.out("endobj")}),this.internal.events.subscribe("putCatalog",function(){void 0!==v&&void 0!==w&&this.internal.out("/Names <</JavaScript "+v+" 0 R>>")}),this},(-/**- * @license- * Copyright (c) 2014 Steven Spungin (TwelveTone LLC) [email protected]- *- * Licensed under the MIT License.- * http://opensource.org/licenses/mit-license- */-x=lt.API).events.push(["postPutResources",function(){var t=this,e=/^(\d+) 0 obj$/;if(0<this.outline.root.children.length)for(var n=t.outline.render().split(/\r\n/),r=0;r<n.length;r++){var i=n[r],o=e.exec(i);if(null!=o){var a=o[1];t.internal.newObjectDeferredBegin(a,!1)}t.internal.write(i)}if(this.outline.createNamedDestinations){var s=this.internal.pages.length,l=[];for(r=0;r<s;r++){var h=t.internal.newObject();l.push(h);var u=t.internal.getPageInfo(r+1);t.internal.write("<< /D["+u.objId+" 0 R /XYZ null null null]>> endobj")}var c=t.internal.newObject();for(t.internal.write("<< /Names [ "),r=0;r<l.length;r++)t.internal.write("(page_"+(r+1)+")"+l[r]+" 0 R");t.internal.write(" ] >>","endobj"),t.internal.newObject(),t.internal.write("<< /Dests "+c+" 0 R"),t.internal.write(">>","endobj")}}]),x.events.push(["putCatalog",function(){0<this.outline.root.children.length&&(this.internal.write("/Outlines",this.outline.makeRef(this.outline.root)),this.outline.createNamedDestinations&&this.internal.write("/Names "+namesOid+" 0 R"))}]),x.events.push(["initialized",function(){var a=this;a.outline={createNamedDestinations:!1,root:{children:[]}},a.outline.add=function(t,e,n){var r={title:e,options:n,children:[]};return null==t&&(t=this.root),t.children.push(r),r},a.outline.render=function(){return this.ctx={},this.ctx.val="",this.ctx.pdf=a,this.genIds_r(this.root),this.renderRoot(this.root),this.renderItems(this.root),this.ctx.val},a.outline.genIds_r=function(t){t.id=a.internal.newObjectDeferred();for(var e=0;e<t.children.length;e++)this.genIds_r(t.children[e])},a.outline.renderRoot=function(t){this.objStart(t),this.line("/Type /Outlines"),0<t.children.length&&(this.line("/First "+this.makeRef(t.children[0])),this.line("/Last "+this.makeRef(t.children[t.children.length-1]))),this.line("/Count "+this.count_r({count:0},t)),this.objEnd()},a.outline.renderItems=function(t){this.ctx.pdf.internal.getCoordinateString;for(var e=this.ctx.pdf.internal.getVerticalCoordinateString,n=0;n<t.children.length;n++){var r=t.children[n];this.objStart(r),this.line("/Title "+this.makeString(r.title)),this.line("/Parent "+this.makeRef(t)),0<n&&this.line("/Prev "+this.makeRef(t.children[n-1])),n<t.children.length-1&&this.line("/Next "+this.makeRef(t.children[n+1])),0<r.children.length&&(this.line("/First "+this.makeRef(r.children[0])),this.line("/Last "+this.makeRef(r.children[r.children.length-1])));var i=this.count=this.count_r({count:0},r);if(0<i&&this.line("/Count "+i),r.options&&r.options.pageNumber){var o=a.internal.getPageInfo(r.options.pageNumber);this.line("/Dest ["+o.objId+" 0 R /XYZ 0 "+e(0)+" 0]")}this.objEnd()}for(n=0;n<t.children.length;n++)r=t.children[n],this.renderItems(r)},a.outline.line=function(t){this.ctx.val+=t+"\r\n"},a.outline.makeRef=function(t){return t.id+" 0 R"},a.outline.makeString=function(t){return"("+a.internal.pdfEscape(t)+")"},a.outline.objStart=function(t){this.ctx.val+="\r\n"+t.id+" 0 obj\r\n<<\r\n"},a.outline.objEnd=function(t){this.ctx.val+=">> \r\nendobj\r\n"},a.outline.count_r=function(t,e){for(var n=0;n<e.children.length;n++)t.count++,this.count_r(t,e.children[n]);return t.count}}]),-/**- * @license- *- * Copyright (c) 2014 James Robb, https://github.com/jamesbrobb- *- *- * ====================================================================- */-I=lt.API,C=function(){var t="function"==typeof Deflater;if(!t)throw new Error("requires deflate.js for compression");return t},B=function(t,e,n,r){var i=5,o=E;switch(r){case I.image_compression.FAST:i=3,o=j;break;case I.image_compression.MEDIUM:i=6,o=M;break;case I.image_compression.SLOW:i=9,o=O}t=A(t,e,n,o);var a=new Uint8Array(N(i)),s=L(t),l=new Deflater(i),h=l.append(t),u=l.flush(),c=a.length+h.length+u.length,f=new Uint8Array(c+4);return f.set(a),f.set(h,a.length),f.set(u,a.length+h.length),f[c++]=s>>>24&255,f[c++]=s>>>16&255,f[c++]=s>>>8&255,f[c++]=255&s,I.arrayBufferToBinaryString(f)},N=function(t,e){var n=Math.LOG2E*Math.log(32768)-8<<4|8,r=n<<8;return r|=Math.min(3,(e-1&255)>>1)<<6,r|=0,[n,255&(r+=31-r%31)]},L=function(t,e){for(var n,r=1,i=0,o=t.length,a=0;0<o;){for(o-=n=e<o?e:o;i+=r+=t[a++],--n;);r%=65521,i%=65521}return(i<<16|r)>>>0},A=function(t,e,n,r){for(var i,o,a,s=t.length/e,l=new Uint8Array(t.length+s),h=T(),u=0;u<s;u++){if(a=u*e,i=t.subarray(a,a+e),r)l.set(r(i,n,o),a+u);else{for(var c=0,f=h.length,p=[];c<f;c++)p[c]=h[c](i,n,o);var d=R(p.concat());l.set(p[d],a+u)}o=i}return l},S=function(t,e,n){var r=Array.apply([],t);return r.unshift(0),r},j=function(t,e,n){var r,i=[],o=0,a=t.length;for(i[0]=1;o<a;o++)r=t[o-e]||0,i[o+1]=t[o]-r+256&255;return i},E=function(t,e,n){var r,i=[],o=0,a=t.length;for(i[0]=2;o<a;o++)r=n&&n[o]||0,i[o+1]=t[o]-r+256&255;return i},M=function(t,e,n){var r,i,o=[],a=0,s=t.length;for(o[0]=3;a<s;a++)r=t[a-e]||0,i=n&&n[a]||0,o[a+1]=t[a]+256-(r+i>>>1)&255;return o},O=function(t,e,n){var r,i,o,a,s=[],l=0,h=t.length;for(s[0]=4;l<h;l++)r=t[l-e]||0,i=n&&n[l]||0,o=n&&n[l-e]||0,a=q(r,i,o),s[l+1]=t[l]-a+256&255;return s},q=function(t,e,n){var r=t+e-n,i=Math.abs(r-t),o=Math.abs(r-e),a=Math.abs(r-n);return i<=o&&i<=a?t:o<=a?e:n},T=function(){return[S,j,E,M,O]},R=function(t){for(var e,n,r,i=0,o=t.length;i<o;)((e=D(t[i].slice(1)))<n||!n)&&(n=e,r=i),i++;return r},D=function(t){for(var e=0,n=t.length,r=0;e<n;)r+=Math.abs(t[e++]);return r},I.processPNG=function(t,e,n,r,i){var o,a,s,l,h,u,c=this.color_spaces.DEVICE_RGB,f=this.decode.FLATE_DECODE,p=8;if(this.isArrayBuffer(t)&&(t=new Uint8Array(t)),this.isArrayBufferView(t)){if("function"!=typeof PNG||"function"!=typeof kt)throw new Error("PNG support requires png.js and zlib.js");if(t=(o=new PNG(t)).imgData,p=o.bits,c=o.colorSpace,l=o.colors,-1!==[4,6].indexOf(o.colorType)){if(8===o.bits)for(var d,g=(_=32==o.pixelBitlength?new Uint32Array(o.decodePixels().buffer):16==o.pixelBitlength?new Uint16Array(o.decodePixels().buffer):new Uint8Array(o.decodePixels().buffer)).length,m=new Uint8Array(g*o.colors),y=new Uint8Array(g),v=o.pixelBitlength-o.bits,w=0,b=0;w<g;w++){for(x=_[w],d=0;d<v;)m[b++]=x>>>d&255,d+=o.bits;y[w]=x>>>d&255}if(16===o.bits){g=(_=new Uint32Array(o.decodePixels().buffer)).length,m=new Uint8Array(g*(32/o.pixelBitlength)*o.colors),y=new Uint8Array(g*(32/o.pixelBitlength));for(var x,N=1<o.colors,L=b=w=0;w<g;)x=_[w++],m[b++]=x>>>0&255,N&&(m[b++]=x>>>16&255,x=_[w++],m[b++]=x>>>0&255),y[L++]=x>>>16&255;p=8}r!==I.image_compression.NONE&&C()?(t=B(m,o.width*o.colors,o.colors,r),u=B(y,o.width,1,r)):(t=m,u=y,f=null)}if(3===o.colorType&&(c=this.color_spaces.INDEXED,h=o.palette,o.transparency.indexed)){var A=o.transparency.indexed,S=0;for(w=0,g=A.length;w<g;++w)S+=A[w];if((S/=255)==g-1&&-1!==A.indexOf(0))s=[A.indexOf(0)];else if(S!==g){var _=o.decodePixels();for(y=new Uint8Array(_.length),w=0,g=_.length;w<g;w++)y[w]=A[_[w]];u=B(y,o.width,1)}}var F=function(t){var e;switch(t){case I.image_compression.FAST:e=11;break;case I.image_compression.MEDIUM:e=13;break;case I.image_compression.SLOW:e=14;break;default:e=12}return e}(r);return a=f===this.decode.FLATE_DECODE?"/Predictor "+F+" /Colors "+l+" /BitsPerComponent "+p+" /Columns "+o.width:"/Colors "+l+" /BitsPerComponent "+p+" /Columns "+o.width,(this.isArrayBuffer(t)||this.isArrayBufferView(t))&&(t=this.arrayBufferToBinaryString(t)),(u&&this.isArrayBuffer(u)||this.isArrayBufferView(u))&&(u=this.arrayBufferToBinaryString(u)),this.createImageInfo(t,o.width,o.height,c,p,f,e,n,a,s,h,u,F)}throw new Error("Unsupported PNG image data, try using JPEG instead.")},(-/**- * @license- * Copyright (c) 2017 Aras Abbasi- *- * Licensed under the MIT License.- * http://opensource.org/licenses/mit-license- */-U=lt.API).processGIF89A=function(t,e,n,r,i){var o=new At(t),a=o.width,s=o.height,l=[];o.decodeAndBlitFrameRGBA(0,l);var h={data:l,width:a,height:s},u=new _t(100).encode(h,100);return U.processJPEG.call(this,u,e,n,r)},U.processGIF87A=U.processGIF89A,(-/**- * Copyright (c) 2018 Aras Abbasi- *- * Licensed under the MIT License.- * http://opensource.org/licenses/mit-license- */-z=lt.API).processBMP=function(t,e,n,r,i){var o=new Ft(t,!1),a=o.width,s=o.height,l={data:o.getData(),width:a,height:s},h=new _t(100).encode(l,100);return z.processJPEG.call(this,h,e,n,r)},lt.API.setLanguage=function(t){return void 0===this.internal.languageSettings&&(this.internal.languageSettings={},this.internal.languageSettings.isSubscribed=!1),void 0!=={af:"Afrikaans",sq:"Albanian",ar:"Arabic (Standard)","ar-DZ":"Arabic (Algeria)","ar-BH":"Arabic (Bahrain)","ar-EG":"Arabic (Egypt)","ar-IQ":"Arabic (Iraq)","ar-JO":"Arabic (Jordan)","ar-KW":"Arabic (Kuwait)","ar-LB":"Arabic (Lebanon)","ar-LY":"Arabic (Libya)","ar-MA":"Arabic (Morocco)","ar-OM":"Arabic (Oman)","ar-QA":"Arabic (Qatar)","ar-SA":"Arabic (Saudi Arabia)","ar-SY":"Arabic (Syria)","ar-TN":"Arabic (Tunisia)","ar-AE":"Arabic (U.A.E.)","ar-YE":"Arabic (Yemen)",an:"Aragonese",hy:"Armenian",as:"Assamese",ast:"Asturian",az:"Azerbaijani",eu:"Basque",be:"Belarusian",bn:"Bengali",bs:"Bosnian",br:"Breton",bg:"Bulgarian",my:"Burmese",ca:"Catalan",ch:"Chamorro",ce:"Chechen",zh:"Chinese","zh-HK":"Chinese (Hong Kong)","zh-CN":"Chinese (PRC)","zh-SG":"Chinese (Singapore)","zh-TW":"Chinese (Taiwan)",cv:"Chuvash",co:"Corsican",cr:"Cree",hr:"Croatian",cs:"Czech",da:"Danish",nl:"Dutch (Standard)","nl-BE":"Dutch (Belgian)",en:"English","en-AU":"English (Australia)","en-BZ":"English (Belize)","en-CA":"English (Canada)","en-IE":"English (Ireland)","en-JM":"English (Jamaica)","en-NZ":"English (New Zealand)","en-PH":"English (Philippines)","en-ZA":"English (South Africa)","en-TT":"English (Trinidad & Tobago)","en-GB":"English (United Kingdom)","en-US":"English (United States)","en-ZW":"English (Zimbabwe)",eo:"Esperanto",et:"Estonian",fo:"Faeroese",fj:"Fijian",fi:"Finnish",fr:"French (Standard)","fr-BE":"French (Belgium)","fr-CA":"French (Canada)","fr-FR":"French (France)","fr-LU":"French (Luxembourg)","fr-MC":"French (Monaco)","fr-CH":"French (Switzerland)",fy:"Frisian",fur:"Friulian",gd:"Gaelic (Scots)","gd-IE":"Gaelic (Irish)",gl:"Galacian",ka:"Georgian",de:"German (Standard)","de-AT":"German (Austria)","de-DE":"German (Germany)","de-LI":"German (Liechtenstein)","de-LU":"German (Luxembourg)","de-CH":"German (Switzerland)",el:"Greek",gu:"Gujurati",ht:"Haitian",he:"Hebrew",hi:"Hindi",hu:"Hungarian",is:"Icelandic",id:"Indonesian",iu:"Inuktitut",ga:"Irish",it:"Italian (Standard)","it-CH":"Italian (Switzerland)",ja:"Japanese",kn:"Kannada",ks:"Kashmiri",kk:"Kazakh",km:"Khmer",ky:"Kirghiz",tlh:"Klingon",ko:"Korean","ko-KP":"Korean (North Korea)","ko-KR":"Korean (South Korea)",la:"Latin",lv:"Latvian",lt:"Lithuanian",lb:"Luxembourgish",mk:"FYRO Macedonian",ms:"Malay",ml:"Malayalam",mt:"Maltese",mi:"Maori",mr:"Marathi",mo:"Moldavian",nv:"Navajo",ng:"Ndonga",ne:"Nepali",no:"Norwegian",nb:"Norwegian (Bokmal)",nn:"Norwegian (Nynorsk)",oc:"Occitan",or:"Oriya",om:"Oromo",fa:"Persian","fa-IR":"Persian/Iran",pl:"Polish",pt:"Portuguese","pt-BR":"Portuguese (Brazil)",pa:"Punjabi","pa-IN":"Punjabi (India)","pa-PK":"Punjabi (Pakistan)",qu:"Quechua",rm:"Rhaeto-Romanic",ro:"Romanian","ro-MO":"Romanian (Moldavia)",ru:"Russian","ru-MO":"Russian (Moldavia)",sz:"Sami (Lappish)",sg:"Sango",sa:"Sanskrit",sc:"Sardinian",sd:"Sindhi",si:"Singhalese",sr:"Serbian",sk:"Slovak",sl:"Slovenian",so:"Somani",sb:"Sorbian",es:"Spanish","es-AR":"Spanish (Argentina)","es-BO":"Spanish (Bolivia)","es-CL":"Spanish (Chile)","es-CO":"Spanish (Colombia)","es-CR":"Spanish (Costa Rica)","es-DO":"Spanish (Dominican Republic)","es-EC":"Spanish (Ecuador)","es-SV":"Spanish (El Salvador)","es-GT":"Spanish (Guatemala)","es-HN":"Spanish (Honduras)","es-MX":"Spanish (Mexico)","es-NI":"Spanish (Nicaragua)","es-PA":"Spanish (Panama)","es-PY":"Spanish (Paraguay)","es-PE":"Spanish (Peru)","es-PR":"Spanish (Puerto Rico)","es-ES":"Spanish (Spain)","es-UY":"Spanish (Uruguay)","es-VE":"Spanish (Venezuela)",sx:"Sutu",sw:"Swahili",sv:"Swedish","sv-FI":"Swedish (Finland)","sv-SV":"Swedish (Sweden)",ta:"Tamil",tt:"Tatar",te:"Teluga",th:"Thai",tig:"Tigre",ts:"Tsonga",tn:"Tswana",tr:"Turkish",tk:"Turkmen",uk:"Ukrainian",hsb:"Upper Sorbian",ur:"Urdu",ve:"Venda",vi:"Vietnamese",vo:"Volapuk",wa:"Walloon",cy:"Welsh",xh:"Xhosa",ji:"Yiddish",zu:"Zulu"}[t]&&(this.internal.languageSettings.languageCode=t,!1===this.internal.languageSettings.isSubscribed&&(this.internal.events.subscribe("putCatalog",function(){this.internal.write("/Lang ("+this.internal.languageSettings.languageCode+")")}),this.internal.languageSettings.isSubscribed=!0)),this},-/** @license- * MIT license.- * Copyright (c) 2012 Willow Systems Corporation, willow-systems.com- * 2014 Diego Casorran, https://github.com/diegocr- *- *- * ====================================================================- */-H=lt.API,W=H.getCharWidthsArray=function(t,e){var n,r,i,o=(e=e||{}).font||this.internal.getFont(),a=e.fontSize||this.internal.getFontSize(),s=e.charSpace||this.internal.getCharSpace(),l=e.widths?e.widths:o.metadata.Unicode.widths,h=l.fof?l.fof:1,u=e.kerning?e.kerning:o.metadata.Unicode.kerning,c=u.fof?u.fof:1,f=0,p=l[0]||h,d=[];for(n=0,r=t.length;n<r;n++)i=t.charCodeAt(n),"function"==typeof o.metadata.widthOfString?d.push((o.metadata.widthOfGlyph(o.metadata.characterToGlyph(i))+s*(1e3/a)||0)/1e3):d.push((l[i]||p)/h+(u[i]&&u[i][f]||0)/c),f=i;return d},V=H.getArraySum=function(t){for(var e=t.length,n=0;e;)n+=t[--e];return n},G=H.getStringUnitWidth=function(t,e){var n=(e=e||{}).fontSize||this.internal.getFontSize(),r=e.font||this.internal.getFont(),i=e.charSpace||this.internal.getCharSpace();return"function"==typeof r.metadata.widthOfString?r.metadata.widthOfString(t,n,i)/n:V(W.apply(this,arguments))},Y=function(t,e,n,r){for(var i=[],o=0,a=t.length,s=0;o!==a&&s+e[o]<n;)s+=e[o],o++;i.push(t.slice(0,o));var l=o;for(s=0;o!==a;)s+e[o]>r&&(i.push(t.slice(l,o)),s=0,l=o),s+=e[o],o++;return l!==o&&i.push(t.slice(l,o)),i},J=function(t,e,n){n||(n={});var r,i,o,a,s,l,h=[],u=[h],c=n.textIndent||0,f=0,p=0,d=t.split(" "),g=W.apply(this,[" ",n])[0];if(l=-1===n.lineIndent?d[0].length+2:n.lineIndent||0){var m=Array(l).join(" "),y=[];d.map(function(t){1<(t=t.split(/\s*\n/)).length?y=y.concat(t.map(function(t,e){return(e&&t.length?"\n":"")+t})):y.push(t[0])}),d=y,l=G.apply(this,[m,n])}for(o=0,a=d.length;o<a;o++){var v=0;if(r=d[o],l&&"\n"==r[0]&&(r=r.substr(1),v=1),i=W.apply(this,[r,n]),e<c+f+(p=V(i))||v){if(e<p){for(s=Y.apply(this,[r,i,e-(c+f),e]),h.push(s.shift()),h=[s.pop()];s.length;)u.push([s.shift()]);p=V(i.slice(r.length-(h[0]?h[0].length:0)))}else h=[r];u.push(h),c=p+l,f=g}else h.push(r),c+=f+p,f=g}if(l)var w=function(t,e){return(e?m:"")+t.join(" ")};else w=function(t){return t.join(" ")};return u.map(w)},H.splitTextToSize=function(t,e,n){var r,i=(n=n||{}).fontSize||this.internal.getFontSize(),o=function(t){var e={0:1},n={};if(t.widths&&t.kerning)return{widths:t.widths,kerning:t.kerning};var r=this.internal.getFont(t.fontName,t.fontStyle),i="Unicode";return r.metadata[i]?{widths:r.metadata[i].widths||e,kerning:r.metadata[i].kerning||n}:{font:r.metadata,fontSize:this.internal.getFontSize(),charSpace:this.internal.getCharSpace()}}.call(this,n);r=Array.isArray(t)?t:t.split(/\r?\n/);var a=1*this.internal.scaleFactor*e/i;o.textIndent=n.textIndent?1*n.textIndent*this.internal.scaleFactor/i:0,o.lineIndent=n.lineIndent;var s,l,h=[];for(s=0,l=r.length;s<l;s++)h=h.concat(J.apply(this,[r[s],a,o]));return h},-/** @license- jsPDF standard_fonts_metrics plugin- * Copyright (c) 2012 Willow Systems Corporation, willow-systems.com- * MIT license.- *- * ====================================================================- */-X=lt.API,Z={codePages:["WinAnsiEncoding"],WinAnsiEncoding:(K=function(t){for(var e="klmnopqrstuvwxyz",n={},r=0;r<e.length;r++)n[e[r]]="0123456789abcdef"[r];var i,o,a,s,l,h={},u=1,c=h,f=[],p="",d="",g=t.length-1;for(r=1;r!=g;)l=t[r],r+=1,"'"==l?o=o?(s=o.join(""),i):[]:o?o.push(l):"{"==l?(f.push([c,s]),c={},s=i):"}"==l?((a=f.pop())[0][a[1]]=c,s=i,c=a[0]):"-"==l?u=-1:s===i?n.hasOwnProperty(l)?(p+=n[l],s=parseInt(p,16)*u,u=1,p=""):p+=l:n.hasOwnProperty(l)?(d+=n[l],c[s]=parseInt(d,16)*u,u=1,s=i,d=""):d+=l;return h})("{19m8n201n9q201o9r201s9l201t9m201u8m201w9n201x9o201y8o202k8q202l8r202m9p202q8p20aw8k203k8t203t8v203u9v2cq8s212m9t15m8w15n9w2dw9s16k8u16l9u17s9z17x8y17y9y}")},Q={Unicode:{Courier:Z,"Courier-Bold":Z,"Courier-BoldOblique":Z,"Courier-Oblique":Z,Helvetica:Z,"Helvetica-Bold":Z,"Helvetica-BoldOblique":Z,"Helvetica-Oblique":Z,"Times-Roman":Z,"Times-Bold":Z,"Times-BoldItalic":Z,"Times-Italic":Z}},$={Unicode:{"Courier-Oblique":K("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-BoldItalic":K("{'widths'{k3o2q4ycx2r201n3m201o6o201s2l201t2l201u2l201w3m201x3m201y3m2k1t2l2r202m2n2n3m2o3m2p5n202q6o2r1w2s2l2t2l2u3m2v3t2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w3t3x3t3y3t3z3m4k5n4l4m4m4m4n4m4o4s4p4m4q4m4r4s4s4y4t2r4u3m4v4m4w3x4x5t4y4s4z4s5k3x5l4s5m4m5n3r5o3x5p4s5q4m5r5t5s4m5t3x5u3x5v2l5w1w5x2l5y3t5z3m6k2l6l3m6m3m6n2w6o3m6p2w6q2l6r3m6s3r6t1w6u1w6v3m6w1w6x4y6y3r6z3m7k3m7l3m7m2r7n2r7o1w7p3r7q2w7r4m7s3m7t2w7u2r7v2n7w1q7x2n7y3t202l3mcl4mal2ram3man3mao3map3mar3mas2lat4uau1uav3maw3way4uaz2lbk2sbl3t'fof'6obo2lbp3tbq3mbr1tbs2lbu1ybv3mbz3mck4m202k3mcm4mcn4mco4mcp4mcq5ycr4mcs4mct4mcu4mcv4mcw2r2m3rcy2rcz2rdl4sdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek3mel3mem3men3meo3mep3meq4ser2wes2wet2weu2wev2wew1wex1wey1wez1wfl3rfm3mfn3mfo3mfp3mfq3mfr3tfs3mft3rfu3rfv3rfw3rfz2w203k6o212m6o2dw2l2cq2l3t3m3u2l17s3x19m3m}'kerning'{cl{4qu5kt5qt5rs17ss5ts}201s{201ss}201t{cks4lscmscnscoscpscls2wu2yu201ts}201x{2wu2yu}2k{201ts}2w{4qx5kx5ou5qx5rs17su5tu}2x{17su5tu5ou}2y{4qx5kx5ou5qx5rs17ss5ts}'fof'-6ofn{17sw5tw5ou5qw5rs}7t{cksclscmscnscoscps4ls}3u{17su5tu5os5qs}3v{17su5tu5os5qs}7p{17su5tu}ck{4qu5kt5qt5rs17ss5ts}4l{4qu5kt5qt5rs17ss5ts}cm{4qu5kt5qt5rs17ss5ts}cn{4qu5kt5qt5rs17ss5ts}co{4qu5kt5qt5rs17ss5ts}cp{4qu5kt5qt5rs17ss5ts}6l{4qu5ou5qw5rt17su5tu}5q{ckuclucmucnucoucpu4lu}5r{ckuclucmucnucoucpu4lu}7q{cksclscmscnscoscps4ls}6p{4qu5ou5qw5rt17sw5tw}ek{4qu5ou5qw5rt17su5tu}el{4qu5ou5qw5rt17su5tu}em{4qu5ou5qw5rt17su5tu}en{4qu5ou5qw5rt17su5tu}eo{4qu5ou5qw5rt17su5tu}ep{4qu5ou5qw5rt17su5tu}es{17ss5ts5qs4qu}et{4qu5ou5qw5rt17sw5tw}eu{4qu5ou5qw5rt17ss5ts}ev{17ss5ts5qs4qu}6z{17sw5tw5ou5qw5rs}fm{17sw5tw5ou5qw5rs}7n{201ts}fo{17sw5tw5ou5qw5rs}fp{17sw5tw5ou5qw5rs}fq{17sw5tw5ou5qw5rs}7r{cksclscmscnscoscps4ls}fs{17sw5tw5ou5qw5rs}ft{17su5tu}fu{17su5tu}fv{17su5tu}fw{17su5tu}fz{cksclscmscnscoscps4ls}}}"),"Helvetica-Bold":K("{'widths'{k3s2q4scx1w201n3r201o6o201s1w201t1w201u1w201w3m201x3m201y3m2k1w2l2l202m2n2n3r2o3r2p5t202q6o2r1s2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v2l3w3u3x3u3y3u3z3x4k6l4l4s4m4s4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3r4v4s4w3x4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v2l5w1w5x2l5y3u5z3r6k2l6l3r6m3x6n3r6o3x6p3r6q2l6r3x6s3x6t1w6u1w6v3r6w1w6x5t6y3x6z3x7k3x7l3x7m2r7n3r7o2l7p3x7q3r7r4y7s3r7t3r7u3m7v2r7w1w7x2r7y3u202l3rcl4sal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3xbq3rbr1wbs2lbu2obv3rbz3xck4s202k3rcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw1w2m2zcy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3res3ret3reu3rev3rew1wex1wey1wez1wfl3xfm3xfn3xfo3xfp3xfq3xfr3ufs3xft3xfu3xfv3xfw3xfz3r203k6o212m6o2dw2l2cq2l3t3r3u2l17s4m19m3r}'kerning'{cl{4qs5ku5ot5qs17sv5tv}201t{2ww4wy2yw}201w{2ks}201x{2ww4wy2yw}2k{201ts201xs}2w{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}2x{5ow5qs}2y{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}'fof'-6o7p{17su5tu5ot}ck{4qs5ku5ot5qs17sv5tv}4l{4qs5ku5ot5qs17sv5tv}cm{4qs5ku5ot5qs17sv5tv}cn{4qs5ku5ot5qs17sv5tv}co{4qs5ku5ot5qs17sv5tv}cp{4qs5ku5ot5qs17sv5tv}6l{17st5tt5os}17s{2kwclvcmvcnvcovcpv4lv4wwckv}5o{2kucltcmtcntcotcpt4lt4wtckt}5q{2ksclscmscnscoscps4ls4wvcks}5r{2ks4ws}5t{2kwclvcmvcnvcovcpv4lv4wwckv}eo{17st5tt5os}fu{17su5tu5ot}6p{17ss5ts}ek{17st5tt5os}el{17st5tt5os}em{17st5tt5os}en{17st5tt5os}6o{201ts}ep{17st5tt5os}es{17ss5ts}et{17ss5ts}eu{17ss5ts}ev{17ss5ts}6z{17su5tu5os5qt}fm{17su5tu5os5qt}fn{17su5tu5os5qt}fo{17su5tu5os5qt}fp{17su5tu5os5qt}fq{17su5tu5os5qt}fs{17su5tu5os5qt}ft{17su5tu5ot}7m{5os}fv{17su5tu5ot}fw{17su5tu5ot}}}"),Courier:K("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-BoldOblique":K("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Bold":K("{'widths'{k3q2q5ncx2r201n3m201o6o201s2l201t2l201u2l201w3m201x3m201y3m2k1t2l2l202m2n2n3m2o3m2p6o202q6o2r1w2s2l2t2l2u3m2v3t2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w3t3x3t3y3t3z3m4k5x4l4s4m4m4n4s4o4s4p4m4q3x4r4y4s4y4t2r4u3m4v4y4w4m4x5y4y4s4z4y5k3x5l4y5m4s5n3r5o4m5p4s5q4s5r6o5s4s5t4s5u4m5v2l5w1w5x2l5y3u5z3m6k2l6l3m6m3r6n2w6o3r6p2w6q2l6r3m6s3r6t1w6u2l6v3r6w1w6x5n6y3r6z3m7k3r7l3r7m2w7n2r7o2l7p3r7q3m7r4s7s3m7t3m7u2w7v2r7w1q7x2r7y3o202l3mcl4sal2lam3man3mao3map3mar3mas2lat4uau1yav3maw3tay4uaz2lbk2sbl3t'fof'6obo2lbp3rbr1tbs2lbu2lbv3mbz3mck4s202k3mcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw2r2m3rcy2rcz2rdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3rek3mel3mem3men3meo3mep3meq4ser2wes2wet2weu2wev2wew1wex1wey1wez1wfl3rfm3mfn3mfo3mfp3mfq3mfr3tfs3mft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3m3u2l17s4s19m3m}'kerning'{cl{4qt5ks5ot5qy5rw17sv5tv}201t{cks4lscmscnscoscpscls4wv}2k{201ts}2w{4qu5ku7mu5os5qx5ru17su5tu}2x{17su5tu5ou5qs}2y{4qv5kv7mu5ot5qz5ru17su5tu}'fof'-6o7t{cksclscmscnscoscps4ls}3u{17su5tu5os5qu}3v{17su5tu5os5qu}fu{17su5tu5ou5qu}7p{17su5tu5ou5qu}ck{4qt5ks5ot5qy5rw17sv5tv}4l{4qt5ks5ot5qy5rw17sv5tv}cm{4qt5ks5ot5qy5rw17sv5tv}cn{4qt5ks5ot5qy5rw17sv5tv}co{4qt5ks5ot5qy5rw17sv5tv}cp{4qt5ks5ot5qy5rw17sv5tv}6l{17st5tt5ou5qu}17s{ckuclucmucnucoucpu4lu4wu}5o{ckuclucmucnucoucpu4lu4wu}5q{ckzclzcmzcnzcozcpz4lz4wu}5r{ckxclxcmxcnxcoxcpx4lx4wu}5t{ckuclucmucnucoucpu4lu4wu}7q{ckuclucmucnucoucpu4lu}6p{17sw5tw5ou5qu}ek{17st5tt5qu}el{17st5tt5ou5qu}em{17st5tt5qu}en{17st5tt5qu}eo{17st5tt5qu}ep{17st5tt5ou5qu}es{17ss5ts5qu}et{17sw5tw5ou5qu}eu{17sw5tw5ou5qu}ev{17ss5ts5qu}6z{17sw5tw5ou5qu5rs}fm{17sw5tw5ou5qu5rs}fn{17sw5tw5ou5qu5rs}fo{17sw5tw5ou5qu5rs}fp{17sw5tw5ou5qu5rs}fq{17sw5tw5ou5qu5rs}7r{cktcltcmtcntcotcpt4lt5os}fs{17sw5tw5ou5qu5rs}ft{17su5tu5ou5qu}7m{5os}fv{17su5tu5ou5qu}fw{17su5tu5ou5qu}fz{cksclscmscnscoscps4ls}}}"),Symbol:K("{'widths'{k3uaw4r19m3m2k1t2l2l202m2y2n3m2p5n202q6o3k3m2s2l2t2l2v3r2w1t3m3m2y1t2z1wbk2sbl3r'fof'6o3n3m3o3m3p3m3q3m3r3m3s3m3t3m3u1w3v1w3w3r3x3r3y3r3z2wbp3t3l3m5v2l5x2l5z3m2q4yfr3r7v3k7w1o7x3k}'kerning'{'fof'-6o}}"),Helvetica:K("{'widths'{k3p2q4mcx1w201n3r201o6o201s1q201t1q201u1q201w2l201x2l201y2l2k1w2l1w202m2n2n3r2o3r2p5t202q6o2r1n2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v1w3w3u3x3u3y3u3z3r4k6p4l4m4m4m4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3m4v4m4w3r4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v1w5w1w5x1w5y2z5z3r6k2l6l3r6m3r6n3m6o3r6p3r6q1w6r3r6s3r6t1q6u1q6v3m6w1q6x5n6y3r6z3r7k3r7l3r7m2l7n3m7o1w7p3r7q3m7r4s7s3m7t3m7u3m7v2l7w1u7x2l7y3u202l3rcl4mal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3rbr1wbs2lbu2obv3rbz3xck4m202k3rcm4mcn4mco4mcp4mcq6ocr4scs4mct4mcu4mcv4mcw1w2m2ncy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3mes3ret3reu3rev3rew1wex1wey1wez1wfl3rfm3rfn3rfo3rfp3rfq3rfr3ufs3xft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3r3u1w17s4m19m3r}'kerning'{5q{4wv}cl{4qs5kw5ow5qs17sv5tv}201t{2wu4w1k2yu}201x{2wu4wy2yu}17s{2ktclucmucnu4otcpu4lu4wycoucku}2w{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}2x{17sy5ty5oy5qs}2y{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}'fof'-6o7p{17sv5tv5ow}ck{4qs5kw5ow5qs17sv5tv}4l{4qs5kw5ow5qs17sv5tv}cm{4qs5kw5ow5qs17sv5tv}cn{4qs5kw5ow5qs17sv5tv}co{4qs5kw5ow5qs17sv5tv}cp{4qs5kw5ow5qs17sv5tv}6l{17sy5ty5ow}do{17st5tt}4z{17st5tt}7s{fst}dm{17st5tt}dn{17st5tt}5o{ckwclwcmwcnwcowcpw4lw4wv}dp{17st5tt}dq{17st5tt}7t{5ow}ds{17st5tt}5t{2ktclucmucnu4otcpu4lu4wycoucku}fu{17sv5tv5ow}6p{17sy5ty5ow5qs}ek{17sy5ty5ow}el{17sy5ty5ow}em{17sy5ty5ow}en{5ty}eo{17sy5ty5ow}ep{17sy5ty5ow}es{17sy5ty5qs}et{17sy5ty5ow5qs}eu{17sy5ty5ow5qs}ev{17sy5ty5ow5qs}6z{17sy5ty5ow5qs}fm{17sy5ty5ow5qs}fn{17sy5ty5ow5qs}fo{17sy5ty5ow5qs}fp{17sy5ty5qs}fq{17sy5ty5ow5qs}7r{5ow}fs{17sy5ty5ow5qs}ft{17sv5tv5ow}7m{5ow}fv{17sv5tv5ow}fw{17sv5tv5ow}}}"),"Helvetica-BoldOblique":K("{'widths'{k3s2q4scx1w201n3r201o6o201s1w201t1w201u1w201w3m201x3m201y3m2k1w2l2l202m2n2n3r2o3r2p5t202q6o2r1s2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v2l3w3u3x3u3y3u3z3x4k6l4l4s4m4s4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3r4v4s4w3x4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v2l5w1w5x2l5y3u5z3r6k2l6l3r6m3x6n3r6o3x6p3r6q2l6r3x6s3x6t1w6u1w6v3r6w1w6x5t6y3x6z3x7k3x7l3x7m2r7n3r7o2l7p3x7q3r7r4y7s3r7t3r7u3m7v2r7w1w7x2r7y3u202l3rcl4sal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3xbq3rbr1wbs2lbu2obv3rbz3xck4s202k3rcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw1w2m2zcy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3res3ret3reu3rev3rew1wex1wey1wez1wfl3xfm3xfn3xfo3xfp3xfq3xfr3ufs3xft3xfu3xfv3xfw3xfz3r203k6o212m6o2dw2l2cq2l3t3r3u2l17s4m19m3r}'kerning'{cl{4qs5ku5ot5qs17sv5tv}201t{2ww4wy2yw}201w{2ks}201x{2ww4wy2yw}2k{201ts201xs}2w{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}2x{5ow5qs}2y{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}'fof'-6o7p{17su5tu5ot}ck{4qs5ku5ot5qs17sv5tv}4l{4qs5ku5ot5qs17sv5tv}cm{4qs5ku5ot5qs17sv5tv}cn{4qs5ku5ot5qs17sv5tv}co{4qs5ku5ot5qs17sv5tv}cp{4qs5ku5ot5qs17sv5tv}6l{17st5tt5os}17s{2kwclvcmvcnvcovcpv4lv4wwckv}5o{2kucltcmtcntcotcpt4lt4wtckt}5q{2ksclscmscnscoscps4ls4wvcks}5r{2ks4ws}5t{2kwclvcmvcnvcovcpv4lv4wwckv}eo{17st5tt5os}fu{17su5tu5ot}6p{17ss5ts}ek{17st5tt5os}el{17st5tt5os}em{17st5tt5os}en{17st5tt5os}6o{201ts}ep{17st5tt5os}es{17ss5ts}et{17ss5ts}eu{17ss5ts}ev{17ss5ts}6z{17su5tu5os5qt}fm{17su5tu5os5qt}fn{17su5tu5os5qt}fo{17su5tu5os5qt}fp{17su5tu5os5qt}fq{17su5tu5os5qt}fs{17su5tu5os5qt}ft{17su5tu5ot}7m{5os}fv{17su5tu5ot}fw{17su5tu5ot}}}"),ZapfDingbats:K("{'widths'{k4u2k1w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-Bold":K("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Italic":K("{'widths'{k3n2q4ycx2l201n3m201o5t201s2l201t2l201u2l201w3r201x3r201y3r2k1t2l2l202m2n2n3m2o3m2p5n202q5t2r1p2s2l2t2l2u3m2v4n2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w4n3x4n3y4n3z3m4k5w4l3x4m3x4n4m4o4s4p3x4q3x4r4s4s4s4t2l4u2w4v4m4w3r4x5n4y4m4z4s5k3x5l4s5m3x5n3m5o3r5p4s5q3x5r5n5s3x5t3r5u3r5v2r5w1w5x2r5y2u5z3m6k2l6l3m6m3m6n2w6o3m6p2w6q1w6r3m6s3m6t1w6u1w6v2w6w1w6x4s6y3m6z3m7k3m7l3m7m2r7n2r7o1w7p3m7q2w7r4m7s2w7t2w7u2r7v2s7w1v7x2s7y3q202l3mcl3xal2ram3man3mao3map3mar3mas2lat4wau1vav3maw4nay4waz2lbk2sbl4n'fof'6obo2lbp3mbq3obr1tbs2lbu1zbv3mbz3mck3x202k3mcm3xcn3xco3xcp3xcq5tcr4mcs3xct3xcu3xcv3xcw2l2m2ucy2lcz2ldl4mdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek3mel3mem3men3meo3mep3meq4mer2wes2wet2weu2wev2wew1wex1wey1wez1wfl3mfm3mfn3mfo3mfp3mfq3mfr4nfs3mft3mfu3mfv3mfw3mfz2w203k6o212m6m2dw2l2cq2l3t3m3u2l17s3r19m3m}'kerning'{cl{5kt4qw}201s{201sw}201t{201tw2wy2yy6q-t}201x{2wy2yy}2k{201tw}2w{7qs4qy7rs5ky7mw5os5qx5ru17su5tu}2x{17ss5ts5os}2y{7qs4qy7rs5ky7mw5os5qx5ru17su5tu}'fof'-6o6t{17ss5ts5qs}7t{5os}3v{5qs}7p{17su5tu5qs}ck{5kt4qw}4l{5kt4qw}cm{5kt4qw}cn{5kt4qw}co{5kt4qw}cp{5kt4qw}6l{4qs5ks5ou5qw5ru17su5tu}17s{2ks}5q{ckvclvcmvcnvcovcpv4lv}5r{ckuclucmucnucoucpu4lu}5t{2ks}6p{4qs5ks5ou5qw5ru17su5tu}ek{4qs5ks5ou5qw5ru17su5tu}el{4qs5ks5ou5qw5ru17su5tu}em{4qs5ks5ou5qw5ru17su5tu}en{4qs5ks5ou5qw5ru17su5tu}eo{4qs5ks5ou5qw5ru17su5tu}ep{4qs5ks5ou5qw5ru17su5tu}es{5ks5qs4qs}et{4qs5ks5ou5qw5ru17su5tu}eu{4qs5ks5qw5ru17su5tu}ev{5ks5qs4qs}ex{17ss5ts5qs}6z{4qv5ks5ou5qw5ru17su5tu}fm{4qv5ks5ou5qw5ru17su5tu}fn{4qv5ks5ou5qw5ru17su5tu}fo{4qv5ks5ou5qw5ru17su5tu}fp{4qv5ks5ou5qw5ru17su5tu}fq{4qv5ks5ou5qw5ru17su5tu}7r{5os}fs{4qv5ks5ou5qw5ru17su5tu}ft{17su5tu5qs}fu{17su5tu5qs}fv{17su5tu5qs}fw{17su5tu5qs}}}"),"Times-Roman":K("{'widths'{k3n2q4ycx2l201n3m201o6o201s2l201t2l201u2l201w2w201x2w201y2w2k1t2l2l202m2n2n3m2o3m2p5n202q6o2r1m2s2l2t2l2u3m2v3s2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v1w3w3s3x3s3y3s3z2w4k5w4l4s4m4m4n4m4o4s4p3x4q3r4r4s4s4s4t2l4u2r4v4s4w3x4x5t4y4s4z4s5k3r5l4s5m4m5n3r5o3x5p4s5q4s5r5y5s4s5t4s5u3x5v2l5w1w5x2l5y2z5z3m6k2l6l2w6m3m6n2w6o3m6p2w6q2l6r3m6s3m6t1w6u1w6v3m6w1w6x4y6y3m6z3m7k3m7l3m7m2l7n2r7o1w7p3m7q3m7r4s7s3m7t3m7u2w7v3k7w1o7x3k7y3q202l3mcl4sal2lam3man3mao3map3mar3mas2lat4wau1vav3maw3say4waz2lbk2sbl3s'fof'6obo2lbp3mbq2xbr1tbs2lbu1zbv3mbz2wck4s202k3mcm4scn4sco4scp4scq5tcr4mcs3xct3xcu3xcv3xcw2l2m2tcy2lcz2ldl4sdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek2wel2wem2wen2weo2wep2weq4mer2wes2wet2weu2wev2wew1wex1wey1wez1wfl3mfm3mfn3mfo3mfp3mfq3mfr3sfs3mft3mfu3mfv3mfw3mfz3m203k6o212m6m2dw2l2cq2l3t3m3u1w17s4s19m3m}'kerning'{cl{4qs5ku17sw5ou5qy5rw201ss5tw201ws}201s{201ss}201t{ckw4lwcmwcnwcowcpwclw4wu201ts}2k{201ts}2w{4qs5kw5os5qx5ru17sx5tx}2x{17sw5tw5ou5qu}2y{4qs5kw5os5qx5ru17sx5tx}'fof'-6o7t{ckuclucmucnucoucpu4lu5os5rs}3u{17su5tu5qs}3v{17su5tu5qs}7p{17sw5tw5qs}ck{4qs5ku17sw5ou5qy5rw201ss5tw201ws}4l{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cm{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cn{4qs5ku17sw5ou5qy5rw201ss5tw201ws}co{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cp{4qs5ku17sw5ou5qy5rw201ss5tw201ws}6l{17su5tu5os5qw5rs}17s{2ktclvcmvcnvcovcpv4lv4wuckv}5o{ckwclwcmwcnwcowcpw4lw4wu}5q{ckyclycmycnycoycpy4ly4wu5ms}5r{cktcltcmtcntcotcpt4lt4ws}5t{2ktclvcmvcnvcovcpv4lv4wuckv}7q{cksclscmscnscoscps4ls}6p{17su5tu5qw5rs}ek{5qs5rs}el{17su5tu5os5qw5rs}em{17su5tu5os5qs5rs}en{17su5qs5rs}eo{5qs5rs}ep{17su5tu5os5qw5rs}es{5qs}et{17su5tu5qw5rs}eu{17su5tu5qs5rs}ev{5qs}6z{17sv5tv5os5qx5rs}fm{5os5qt5rs}fn{17sv5tv5os5qx5rs}fo{17sv5tv5os5qx5rs}fp{5os5qt5rs}fq{5os5qt5rs}7r{ckuclucmucnucoucpu4lu5os}fs{17sv5tv5os5qx5rs}ft{17ss5ts5qs}fu{17sw5tw5qs}fv{17sw5tw5qs}fw{17ss5ts5qs}fz{ckuclucmucnucoucpu4lu5os5rs}}}"),"Helvetica-Oblique":K("{'widths'{k3p2q4mcx1w201n3r201o6o201s1q201t1q201u1q201w2l201x2l201y2l2k1w2l1w202m2n2n3r2o3r2p5t202q6o2r1n2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v1w3w3u3x3u3y3u3z3r4k6p4l4m4m4m4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3m4v4m4w3r4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v1w5w1w5x1w5y2z5z3r6k2l6l3r6m3r6n3m6o3r6p3r6q1w6r3r6s3r6t1q6u1q6v3m6w1q6x5n6y3r6z3r7k3r7l3r7m2l7n3m7o1w7p3r7q3m7r4s7s3m7t3m7u3m7v2l7w1u7x2l7y3u202l3rcl4mal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3rbr1wbs2lbu2obv3rbz3xck4m202k3rcm4mcn4mco4mcp4mcq6ocr4scs4mct4mcu4mcv4mcw1w2m2ncy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3mes3ret3reu3rev3rew1wex1wey1wez1wfl3rfm3rfn3rfo3rfp3rfq3rfr3ufs3xft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3r3u1w17s4m19m3r}'kerning'{5q{4wv}cl{4qs5kw5ow5qs17sv5tv}201t{2wu4w1k2yu}201x{2wu4wy2yu}17s{2ktclucmucnu4otcpu4lu4wycoucku}2w{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}2x{17sy5ty5oy5qs}2y{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}'fof'-6o7p{17sv5tv5ow}ck{4qs5kw5ow5qs17sv5tv}4l{4qs5kw5ow5qs17sv5tv}cm{4qs5kw5ow5qs17sv5tv}cn{4qs5kw5ow5qs17sv5tv}co{4qs5kw5ow5qs17sv5tv}cp{4qs5kw5ow5qs17sv5tv}6l{17sy5ty5ow}do{17st5tt}4z{17st5tt}7s{fst}dm{17st5tt}dn{17st5tt}5o{ckwclwcmwcnwcowcpw4lw4wv}dp{17st5tt}dq{17st5tt}7t{5ow}ds{17st5tt}5t{2ktclucmucnu4otcpu4lu4wycoucku}fu{17sv5tv5ow}6p{17sy5ty5ow5qs}ek{17sy5ty5ow}el{17sy5ty5ow}em{17sy5ty5ow}en{5ty}eo{17sy5ty5ow}ep{17sy5ty5ow}es{17sy5ty5qs}et{17sy5ty5ow5qs}eu{17sy5ty5ow5qs}ev{17sy5ty5ow5qs}6z{17sy5ty5ow5qs}fm{17sy5ty5ow5qs}fn{17sy5ty5ow5qs}fo{17sy5ty5ow5qs}fp{17sy5ty5qs}fq{17sy5ty5ow5qs}7r{5ow}fs{17sy5ty5ow5qs}ft{17sv5tv5ow}7m{5ow}fv{17sv5tv5ow}fw{17sv5tv5ow}}}")}},X.events.push(["addFont",function(t){var e,n,r,i=t.font,o="Unicode";(e=$[o][i.postScriptName])&&((n=i.metadata[o]?i.metadata[o]:i.metadata[o]={}).widths=e.widths,n.kerning=e.kerning),(r=Q[o][i.postScriptName])&&((n=i.metadata[o]?i.metadata[o]:i.metadata[o]={}).encoding=r).codePages&&r.codePages.length&&(i.encoding=r.codePages[0])}]),-/**- * @license- * Licensed under the MIT License.- * http://opensource.org/licenses/mit-license- */-tt=lt,"undefined"!=typeof self&&self||"undefined"!=typeof global&&global||"undefined"!=typeof window&&window||Function("return this")(),tt.API.events.push(["addFont",function(t){var e=t.font,n=t.instance;if(void 0!==n&&n.existsFileInVFS(e.postScriptName)){var r=n.getFileFromVFS(e.postScriptName);if("string"!=typeof r)throw new Error("Font is not stored as string-data in vFS, import fonts or remove declaration doc.addFont('"+e.postScriptName+"').");e.metadata=tt.API.TTFFont.open(e.postScriptName,e.fontName,r,e.encoding),e.metadata.Unicode=e.metadata.Unicode||{encoding:{},kerning:{},widths:[]},e.metadata.glyIdsUsed=[0]}else if(!1===e.isStandardFont)throw new Error("Font does not exist in vFS, import fonts or remove declaration doc.addFont('"+e.postScriptName+"').")}]),(-/** @license- * Copyright (c) 2012 Willow Systems Corporation, willow-systems.com- *- *- * ====================================================================- */-et=lt.API).addSvg=function(t,e,n,r,i){if(void 0===e||void 0===n)throw new Error("addSVG needs values for 'x' and 'y'");function o(t){for(var e=parseFloat(t[1]),n=parseFloat(t[2]),r=[],i=3,o=t.length;i<o;)"c"===t[i]?(r.push([parseFloat(t[i+1]),parseFloat(t[i+2]),parseFloat(t[i+3]),parseFloat(t[i+4]),parseFloat(t[i+5]),parseFloat(t[i+6])]),i+=7):"l"===t[i]?(r.push([parseFloat(t[i+1]),parseFloat(t[i+2])]),i+=3):i+=1;return[e,n,r]}var a,s,l,h,u,c,f,p,d=(h=document,p=h.createElement("iframe"),u=".jsPDF_sillysvg_iframe {display:none;position:absolute;}",(f=(c=h).createElement("style")).type="text/css",f.styleSheet?f.styleSheet.cssText=u:f.appendChild(c.createTextNode(u)),c.getElementsByTagName("head")[0].appendChild(f),p.name="childframe",p.setAttribute("width",0),p.setAttribute("height",0),p.setAttribute("frameborder","0"),p.setAttribute("scrolling","no"),p.setAttribute("seamless","seamless"),p.setAttribute("class","jsPDF_sillysvg_iframe"),h.body.appendChild(p),p),g=(a=t,(l=((s=d).contentWindow||s.contentDocument).document).write(a),l.close(),l.getElementsByTagName("svg")[0]),m=[1,1],y=parseFloat(g.getAttribute("width")),v=parseFloat(g.getAttribute("height"));y&&v&&(r&&i?m=[r/y,i/v]:r?m=[r/y,r/y]:i&&(m=[i/v,i/v]));var w,b,x,N,L=g.childNodes;for(w=0,b=L.length;w<b;w++)(x=L[w]).tagName&&"PATH"===x.tagName.toUpperCase()&&((N=o(x.getAttribute("d").split(" ")))[0]=N[0]*m[0]+e,N[1]=N[1]*m[1]+n,this.lines.call(this,N[2],N[0],N[1],m));return this},et.addSVG=et.addSvg,et.addSvgAsImage=function(t,e,n,r,i,o,a,s){if(isNaN(e)||isNaN(n))throw console.error("jsPDF.addSvgAsImage: Invalid coordinates",arguments),new Error("Invalid coordinates passed to jsPDF.addSvgAsImage");if(isNaN(r)||isNaN(i))throw console.error("jsPDF.addSvgAsImage: Invalid measurements",arguments),new Error("Invalid measurements (width and/or height) passed to jsPDF.addSvgAsImage");var l=document.createElement("canvas");l.width=r,l.height=i;var h=l.getContext("2d");return h.fillStyle="#fff",h.fillRect(0,0,l.width,l.height),canvg(l,t,{ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0,ignoreClear:!0}),this.addImage(l.toDataURL("image/jpeg",1),e,n,r,i,a,s),this},lt.API.putTotalPages=function(t){var e,n=0;n=parseInt(this.internal.getFont().id.substr(1),10)<15?(e=new RegExp(t,"g"),this.internal.getNumberOfPages()):(e=new RegExp(this.pdfEscape16(t,this.internal.getFont()),"g"),this.pdfEscape16(this.internal.getNumberOfPages()+"",this.internal.getFont()));for(var r=1;r<=this.internal.getNumberOfPages();r++)for(var i=0;i<this.internal.pages[r].length;i++)this.internal.pages[r][i]=this.internal.pages[r][i].replace(e,n);return this},lt.API.viewerPreferences=function(t,e){var n;t=t||{},e=e||!1;var r,i,o={HideToolbar:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},HideMenubar:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},HideWindowUI:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},FitWindow:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},CenterWindow:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},DisplayDocTitle:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.4},NonFullScreenPageMode:{defaultValue:"UseNone",value:"UseNone",type:"name",explicitSet:!1,valueSet:["UseNone","UseOutlines","UseThumbs","UseOC"],pdfVersion:1.3},Direction:{defaultValue:"L2R",value:"L2R",type:"name",explicitSet:!1,valueSet:["L2R","R2L"],pdfVersion:1.3},ViewArea:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},ViewClip:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintArea:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintClip:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintScaling:{defaultValue:"AppDefault",value:"AppDefault",type:"name",explicitSet:!1,valueSet:["AppDefault","None"],pdfVersion:1.6},Duplex:{defaultValue:"",value:"none",type:"name",explicitSet:!1,valueSet:["Simplex","DuplexFlipShortEdge","DuplexFlipLongEdge","none"],pdfVersion:1.7},PickTrayByPDFSize:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.7},PrintPageRange:{defaultValue:"",value:"",type:"array",explicitSet:!1,valueSet:null,pdfVersion:1.7},NumCopies:{defaultValue:1,value:1,type:"integer",explicitSet:!1,valueSet:null,pdfVersion:1.7}},a=Object.keys(o),s=[],l=0,h=0,u=0,c=!0;function f(t,e){var n,r=!1;for(n=0;n<t.length;n+=1)t[n]===e&&(r=!0);return r}if(void 0===this.internal.viewerpreferences&&(this.internal.viewerpreferences={},this.internal.viewerpreferences.configuration=JSON.parse(JSON.stringify(o)),this.internal.viewerpreferences.isSubscribed=!1),n=this.internal.viewerpreferences.configuration,"reset"===t||!0===e){var p=a.length;for(u=0;u<p;u+=1)n[a[u]].value=n[a[u]].defaultValue,n[a[u]].explicitSet=!1}if("object"===se(t))for(r in t)if(i=t[r],f(a,r)&&void 0!==i){if("boolean"===n[r].type&&"boolean"==typeof i)n[r].value=i;else if("name"===n[r].type&&f(n[r].valueSet,i))n[r].value=i;else if("integer"===n[r].type&&Number.isInteger(i))n[r].value=i;else if("array"===n[r].type){for(l=0;l<i.length;l+=1)if(c=!0,1===i[l].length&&"number"==typeof i[l][0])s.push(String(i[l]-1));else if(1<i[l].length){for(h=0;h<i[l].length;h+=1)"number"!=typeof i[l][h]&&(c=!1);!0===c&&s.push([i[l][0]-1,i[l][1]-1].join(" "))}n[r].value="["+s.join(" ")+"]"}else n[r].value=n[r].defaultValue;n[r].explicitSet=!0}return!1===this.internal.viewerpreferences.isSubscribed&&(this.internal.events.subscribe("putCatalog",function(){var t,e=[];for(t in n)!0===n[t].explicitSet&&("name"===n[t].type?e.push("/"+t+" /"+n[t].value):e.push("/"+t+" "+n[t].value));0!==e.length&&this.internal.write("/ViewerPreferences\n<<\n"+e.join("\n")+"\n>>")}),this.internal.viewerpreferences.isSubscribed=!0),this.internal.viewerpreferences.configuration=n,this},-/** ====================================================================- * jsPDF XMP metadata plugin- * Copyright (c) 2016 Jussi Utunen, [email protected]- *- *- * ====================================================================- */-nt=lt.API,ot=it=rt="",nt.addMetadata=function(t,e){return it=e||"http://jspdf.default.namespaceuri/",rt=t,this.internal.events.subscribe("postPutResources",function(){if(rt){var t='<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"><rdf:Description rdf:about="" xmlns:jspdf="'+it+'"><jspdf:metadata>',e=unescape(encodeURIComponent('<x:xmpmeta xmlns:x="adobe:ns:meta/">')),n=unescape(encodeURIComponent(t)),r=unescape(encodeURIComponent(rt)),i=unescape(encodeURIComponent("</jspdf:metadata></rdf:Description></rdf:RDF>")),o=unescape(encodeURIComponent("</x:xmpmeta>")),a=n.length+r.length+i.length+e.length+o.length;ot=this.internal.newObject(),this.internal.write("<< /Type /Metadata /Subtype /XML /Length "+a+" >>"),this.internal.write("stream"),this.internal.write(e+n+r+i+o),this.internal.write("endstream"),this.internal.write("endobj")}else ot=""}),this.internal.events.subscribe("putCatalog",function(){ot&&this.internal.write("/Metadata "+ot+" 0 R")}),this},function(f,t){var e=f.API;var m=e.pdfEscape16=function(t,e){for(var n,r=e.metadata.Unicode.widths,i=["","0","00","000","0000"],o=[""],a=0,s=t.length;a<s;++a){if(n=e.metadata.characterToGlyph(t.charCodeAt(a)),e.metadata.glyIdsUsed.push(n),e.metadata.toUnicode[n]=t.charCodeAt(a),-1==r.indexOf(n)&&(r.push(n),r.push([parseInt(e.metadata.widthOfGlyph(n),10)])),"0"==n)return o.join("");n=n.toString(16),o.push(i[4-n.length],n)}return o.join("")},p=function(t){var e,n,r,i,o,a,s;for(o="/CIDInit /ProcSet findresource begin\n12 dict begin\nbegincmap\n/CIDSystemInfo <<\n /Registry (Adobe)\n /Ordering (UCS)\n /Supplement 0\n>> def\n/CMapName /Adobe-Identity-UCS def\n/CMapType 2 def\n1 begincodespacerange\n<0000><ffff>\nendcodespacerange",r=[],a=0,s=(n=Object.keys(t).sort(function(t,e){return t-e})).length;a<s;a++)e=n[a],100<=r.length&&(o+="\n"+r.length+" beginbfchar\n"+r.join("\n")+"\nendbfchar",r=[]),i=("0000"+t[e].toString(16)).slice(-4),e=("0000"+(+e).toString(16)).slice(-4),r.push("<"+e+"><"+i+">");return r.length&&(o+="\n"+r.length+" beginbfchar\n"+r.join("\n")+"\nendbfchar\n"),o+="endcmap\nCMapName currentdict /CMap defineresource pop\nend\nend"};e.events.push(["putFont",function(t){!function(t,e,n,r){if(t.metadata instanceof f.API.TTFFont&&"Identity-H"===t.encoding){for(var i=t.metadata.Unicode.widths,o=t.metadata.subset.encode(t.metadata.glyIdsUsed,1),a="",s=0;s<o.length;s++)a+=String.fromCharCode(o[s]);var l=n();r({data:a,addLength1:!0}),e("endobj");var h=n();r({data:p(t.metadata.toUnicode),addLength1:!0}),e("endobj");var u=n();e("<<"),e("/Type /FontDescriptor"),e("/FontName /"+t.fontName),e("/FontFile2 "+l+" 0 R"),e("/FontBBox "+f.API.PDFObject.convert(t.metadata.bbox)),e("/Flags "+t.metadata.flags),e("/StemV "+t.metadata.stemV),e("/ItalicAngle "+t.metadata.italicAngle),e("/Ascent "+t.metadata.ascender),e("/Descent "+t.metadata.decender),e("/CapHeight "+t.metadata.capHeight),e(">>"),e("endobj");var c=n();e("<<"),e("/Type /Font"),e("/BaseFont /"+t.fontName),e("/FontDescriptor "+u+" 0 R"),e("/W "+f.API.PDFObject.convert(i)),e("/CIDToGIDMap /Identity"),e("/DW 1000"),e("/Subtype /CIDFontType2"),e("/CIDSystemInfo"),e("<<"),e("/Supplement 0"),e("/Registry (Adobe)"),e("/Ordering ("+t.encoding+")"),e(">>"),e(">>"),e("endobj"),t.objectNumber=n(),e("<<"),e("/Type /Font"),e("/Subtype /Type0"),e("/ToUnicode "+h+" 0 R"),e("/BaseFont /"+t.fontName),e("/Encoding /"+t.encoding),e("/DescendantFonts ["+c+" 0 R]"),e(">>"),e("endobj"),t.isAlreadyPutted=!0}}(t.font,t.out,t.newObject,t.putStream)}]);e.events.push(["putFont",function(t){!function(t,e,n,r){if(t.metadata instanceof f.API.TTFFont&&"WinAnsiEncoding"===t.encoding){t.metadata.Unicode.widths;for(var i=t.metadata.rawData,o="",a=0;a<i.length;a++)o+=String.fromCharCode(i[a]);var s=n();r({data:o,addLength1:!0}),e("endobj");var l=n();r({data:p(t.metadata.toUnicode),addLength1:!0}),e("endobj");var h=n();for(e("<<"),e("/Descent "+t.metadata.decender),e("/CapHeight "+t.metadata.capHeight),e("/StemV "+t.metadata.stemV),e("/Type /FontDescriptor"),e("/FontFile2 "+s+" 0 R"),e("/Flags 96"),e("/FontBBox "+f.API.PDFObject.convert(t.metadata.bbox)),e("/FontName /"+t.fontName),e("/ItalicAngle "+t.metadata.italicAngle),e("/Ascent "+t.metadata.ascender),e(">>"),e("endobj"),t.objectNumber=n(),a=0;a<t.metadata.hmtx.widths.length;a++)t.metadata.hmtx.widths[a]=parseInt(t.metadata.hmtx.widths[a]*(1e3/t.metadata.head.unitsPerEm));e("<</Subtype/TrueType/Type/Font/ToUnicode "+l+" 0 R/BaseFont/"+t.fontName+"/FontDescriptor "+h+" 0 R/Encoding/"+t.encoding+" /FirstChar 29 /LastChar 255 /Widths "+f.API.PDFObject.convert(t.metadata.hmtx.widths)+">>"),e("endobj"),t.isAlreadyPutted=!0}}(t.font,t.out,t.newObject,t.putStream)}]);var h=function(t){var e,n,r=t.text||"",i=t.x,o=t.y,a=t.options||{},s=t.mutex||{},l=s.pdfEscape,h=s.activeFontKey,u=s.fonts,c=(s.activeFontSize,""),f=0,p="",d=u[n=h].encoding;if("Identity-H"!==u[n].encoding)return{text:r,x:i,y:o,options:a,mutex:s};for(p=r,n=h,"[object Array]"===Object.prototype.toString.call(r)&&(p=r[0]),f=0;f<p.length;f+=1)u[n].metadata.hasOwnProperty("cmap")&&(e=u[n].metadata.cmap.unicode.codeMap[p[f].charCodeAt(0)]),e?c+=p[f]:p[f].charCodeAt(0)<256&&u[n].metadata.hasOwnProperty("Unicode")?c+=p[f]:c+="";var g="";return parseInt(n.slice(1))<14||"WinAnsiEncoding"===d?g=function(t){for(var e="",n=0;n<t.length;n++)e+=""+t.charCodeAt(n).toString(16);return e}(l(c,n)):"Identity-H"===d&&(g=m(c,u[n])),s.isHex=!0,{text:g,x:i,y:o,options:a,mutex:s}};e.events.push(["postProcessText",function(t){var e=t.text||"",n=t.x,r=t.y,i=t.options,o=t.mutex,a=(i.lang,[]),s={text:e,x:n,y:r,options:i,mutex:o};if("[object Array]"===Object.prototype.toString.call(e)){var l=0;for(l=0;l<e.length;l+=1)"[object Array]"===Object.prototype.toString.call(e[l])&&3===e[l].length?a.push([h(Object.assign({},s,{text:e[l][0]})).text,e[l][1],e[l][2]]):a.push(h(Object.assign({},s,{text:e[l]})).text);t.text=a}else t.text=h(Object.assign({},s,{text:e})).text}])}(lt,"undefined"!=typeof self&&self||"undefined"!=typeof global&&global||"undefined"!=typeof window&&window||Function("return this")()),at=lt.API,st=function(t){return void 0!==t&&(void 0===t.vFS&&(t.vFS={}),!0)},at.existsFileInVFS=function(t){return!!st(this.internal)&&void 0!==this.internal.vFS[t]},at.addFileToVFS=function(t,e){return st(this.internal),this.internal.vFS[t]=e,this},at.getFileFromVFS=function(t){return st(this.internal),void 0!==this.internal.vFS[t]?this.internal.vFS[t]:null},lt.API.addHTML=function(t,d,g,s,m){if("undefined"==typeof html2canvas&&"undefined"==typeof rasterizeHTML)throw new Error("You need either https://github.com/niklasvh/html2canvas or https://github.com/cburgmer/rasterizeHTML.js");"number"!=typeof d&&(s=d,m=g),"function"==typeof s&&(m=s,s=null),"function"!=typeof m&&(m=function(){});var e=this.internal,y=e.scaleFactor,v=e.pageSize.getWidth(),w=e.pageSize.getHeight();if((s=s||{}).onrendered=function(l){d=parseInt(d)||0,g=parseInt(g)||0;var t=s.dim||{},h=Object.assign({top:0,right:0,bottom:0,left:0,useFor:"content"},s.margin),e=t.h||Math.min(w,l.height/y),u=t.w||Math.min(v,l.width/y)-d,c=s.format||"JPEG",f=s.imageCompression||"SLOW";if(l.height>w-h.top-h.bottom&&s.pagesplit){var p=function(t,e,n,r,i){var o=document.createElement("canvas");o.height=i,o.width=r;var a=o.getContext("2d");return a.mozImageSmoothingEnabled=!1,a.webkitImageSmoothingEnabled=!1,a.msImageSmoothingEnabled=!1,a.imageSmoothingEnabled=!1,a.fillStyle=s.backgroundColor||"#ffffff",a.fillRect(0,0,r,i),a.drawImage(t,e,n,r,i,0,0,r,i),o},n=function(){for(var t,e,n=0,r=0,i={},o=!1;;){var a;if(r=0,i.top=0!==n?h.top:g,i.left=0!==n?h.left:d,o=(v-h.left-h.right)*y<l.width,"content"===h.useFor?0===n?(t=Math.min((v-h.left)*y,l.width),e=Math.min((w-h.top)*y,l.height-n)):(t=Math.min(v*y,l.width),e=Math.min(w*y,l.height-n),i.top=0):(t=Math.min((v-h.left-h.right)*y,l.width),e=Math.min((w-h.bottom-h.top)*y,l.height-n)),o)for(;;){"content"===h.useFor&&(0===r?t=Math.min((v-h.left)*y,l.width):(t=Math.min(v*y,l.width-r),i.left=0));var s=[a=p(l,r,n,t,e),i.left,i.top,a.width/y,a.height/y,c,null,f];if(this.addImage.apply(this,s),(r+=t)>=l.width)break;this.addPage()}else s=[a=p(l,0,n,t,e),i.left,i.top,a.width/y,a.height/y,c,null,f],this.addImage.apply(this,s);if((n+=e)>=l.height)break;this.addPage()}m(u,n,null,s)}.bind(this);if("CANVAS"===l.nodeName){var r=new Image;r.onload=n,r.src=l.toDataURL("image/png"),l=r}else n()}else{var i=Math.random().toString(35),o=[l,d,g,u,e,c,i,f];this.addImage.apply(this,o),m(u,e,i,o)}}.bind(this),"undefined"!=typeof html2canvas&&!s.rstz)return html2canvas(t,s);if("undefined"==typeof rasterizeHTML)return null;var n="drawDocument";return"string"==typeof t&&(n=/^http/.test(t)?"drawURL":"drawHTML"),s.width=s.width||v*y,rasterizeHTML[n](t,void 0,s).then(function(t){s.onrendered(t.image)},function(t){m(null,t)})},-/**- * jsPDF fromHTML plugin. BETA stage. API subject to change. Needs browser- * Copyright (c) 2012 Willow Systems Corporation, willow-systems.com- * 2014 Juan Pablo Gaviria, https://github.com/juanpgaviria- * 2014 Diego Casorran, https://github.com/diegocr- * 2014 Daniel Husar, https://github.com/danielhusar- * 2014 Wolfgang Gassler, https://github.com/woolfg- * 2014 Steven Spungin, https://github.com/flamenco- *- * @license- *- * ====================================================================- */-function(t){var P,k,i,a,s,l,h,u,I,w,f,c,p,n,C,B,d,g,m,j;P=function(){return function(t){return e.prototype=t,new e};function e(){}}(),w=function(t){var e,n,r,i,o,a,s;for(n=0,r=t.length,e=void 0,a=i=!1;!i&&n!==r;)(e=t[n]=t[n].trimLeft())&&(i=!0),n++;for(n=r-1;r&&!a&&-1!==n;)(e=t[n]=t[n].trimRight())&&(a=!0),n--;for(o=/\s+$/g,s=!0,n=0;n!==r;)"\u2028"!=t[n]&&(e=t[n].replace(/\s+/g," "),s&&(e=e.trimLeft()),e&&(s=o.test(e)),t[n]=e),n++;return t},c=function(t){var e,n,r;for(e=void 0,n=(r=t.split(",")).shift();!e&&n;)e=i[n.trim().toLowerCase()],n=r.shift();return e},p=function(t){var e;return-1<(t="auto"===t?"0px":t).indexOf("em")&&!isNaN(Number(t.replace("em","")))&&(t=18.719*Number(t.replace("em",""))+"px"),-1<t.indexOf("pt")&&!isNaN(Number(t.replace("pt","")))&&(t=1.333*Number(t.replace("pt",""))+"px"),void 0,16,(e=n[t])?e:void 0!==(e={"xx-small":9,"x-small":11,small:13,medium:16,large:19,"x-large":23,"xx-large":28,auto:0}[t])?n[t]=e/16:(e=parseFloat(t))?n[t]=e/16:(e=t.match(/([\d\.]+)(px)/),Array.isArray(e)&&3===e.length?n[t]=parseFloat(e[1])/16:n[t]=1)},I=function(t){var e,n,r,i,o;return o=t,i=document.defaultView&&document.defaultView.getComputedStyle?document.defaultView.getComputedStyle(o,null):o.currentStyle?o.currentStyle:o.style,n=void 0,(e={})["font-family"]=c((r=function(t){return t=t.replace(/-\D/g,function(t){return t.charAt(1).toUpperCase()}),i[t]})("font-family"))||"times",e["font-style"]=a[r("font-style")]||"normal",e["text-align"]=s[r("text-align")]||"left","bold"===(n=l[r("font-weight")]||"normal")&&("normal"===e["font-style"]?e["font-style"]=n:e["font-style"]=n+e["font-style"]),e["font-size"]=p(r("font-size"))||1,e["line-height"]=p(r("line-height"))||1,e.display="inline"===r("display")?"inline":"block",n="block"===e.display,e["margin-top"]=n&&p(r("margin-top"))||0,e["margin-bottom"]=n&&p(r("margin-bottom"))||0,e["padding-top"]=n&&p(r("padding-top"))||0,e["padding-bottom"]=n&&p(r("padding-bottom"))||0,e["margin-left"]=n&&p(r("margin-left"))||0,e["margin-right"]=n&&p(r("margin-right"))||0,e["padding-left"]=n&&p(r("padding-left"))||0,e["padding-right"]=n&&p(r("padding-right"))||0,e["page-break-before"]=r("page-break-before")||"auto",e.float=h[r("cssFloat")]||"none",e.clear=u[r("clear")]||"none",e.color=r("color"),e},C=function(t,e,n){var r,i,o,a,s;if(o=!1,a=i=void 0,r=n["#"+t.id])if("function"==typeof r)o=r(t,e);else for(i=0,a=r.length;!o&&i!==a;)o=r[i](t,e),i++;if(r=n[t.nodeName],!o&&r)if("function"==typeof r)o=r(t,e);else for(i=0,a=r.length;!o&&i!==a;)o=r[i](t,e),i++;for(s="string"==typeof t.className?t.className.split(" "):[],i=0;i<s.length;i++)if(r=n["."+s[i]],!o&&r)if("function"==typeof r)o=r(t,e);else for(i=0,a=r.length;!o&&i!==a;)o=r[i](t,e),i++;return o},j=function(t,e){var n,r,i,o,a,s,l,h,u;for(n=[],r=[],i=0,u=t.rows[0].cells.length,l=t.clientWidth;i<u;)h=t.rows[0].cells[i],r[i]={name:h.textContent.toLowerCase().replace(/\s+/g,""),prompt:h.textContent.replace(/\r?\n/g,""),width:h.clientWidth/l*e.pdf.internal.pageSize.getWidth()},i++;for(i=1;i<t.rows.length;){for(s=t.rows[i],a={},o=0;o<s.cells.length;)a[r[o].name]=s.cells[o].textContent.replace(/\r?\n/g,""),o++;n.push(a),i++}return{rows:n,headers:r}};var E={SCRIPT:1,STYLE:1,NOSCRIPT:1,OBJECT:1,EMBED:1,SELECT:1},M=1;k=function(t,i,e){var n,r,o,a,s,l,h,u;for(r=t.childNodes,n=void 0,(s="block"===(o=I(t)).display)&&(i.setBlockBoundary(),i.setBlockStyle(o)),a=0,l=r.length;a<l;){if("object"===se(n=r[a])){if(i.executeWatchFunctions(n),1===n.nodeType&&"HEADER"===n.nodeName){var c=n,f=i.pdf.margins_doc.top;i.pdf.internal.events.subscribe("addPage",function(t){i.y=f,k(c,i,e),i.pdf.margins_doc.top=i.y+10,i.y+=10},!1)}if(8===n.nodeType&&"#comment"===n.nodeName)~n.textContent.indexOf("ADD_PAGE")&&(i.pdf.addPage(),i.y=i.pdf.margins_doc.top);else if(1!==n.nodeType||E[n.nodeName])if(3===n.nodeType){var p=n.nodeValue;if(n.nodeValue&&"LI"===n.parentNode.nodeName)if("OL"===n.parentNode.parentNode.nodeName)p=M+++". "+p;else{var d=o["font-size"],g=(3-.75*d)*i.pdf.internal.scaleFactor,m=.75*d*i.pdf.internal.scaleFactor,y=1.74*d/i.pdf.internal.scaleFactor;u=function(t,e){this.pdf.circle(t+g,e+m,y,"FD")}}16&n.ownerDocument.body.compareDocumentPosition(n)&&i.addText(p,o)}else"string"==typeof n&&i.addText(n,o);else{var v;if("IMG"===n.nodeName){var w=n.getAttribute("src");v=B[i.pdf.sHashCode(w)||w]}if(v){i.pdf.internal.pageSize.getHeight()-i.pdf.margins_doc.bottom<i.y+n.height&&i.y>i.pdf.margins_doc.top&&(i.pdf.addPage(),i.y=i.pdf.margins_doc.top,i.executeWatchFunctions(n));var b=I(n),x=i.x,N=12/i.pdf.internal.scaleFactor,L=(b["margin-left"]+b["padding-left"])*N,A=(b["margin-right"]+b["padding-right"])*N,S=(b["margin-top"]+b["padding-top"])*N,_=(b["margin-bottom"]+b["padding-bottom"])*N;void 0!==b.float&&"right"===b.float?x+=i.settings.width-n.width-A:x+=L,i.pdf.addImage(v,x,i.y+S,n.width,n.height),v=void 0,"right"===b.float||"left"===b.float?(i.watchFunctions.push(function(t,e,n,r){return i.y>=e?(i.x+=t,i.settings.width+=n,!0):!!(r&&1===r.nodeType&&!E[r.nodeName]&&i.x+r.width>i.pdf.margins_doc.left+i.pdf.margins_doc.width)&&(i.x+=t,i.y=e,i.settings.width+=n,!0)}.bind(this,"left"===b.float?-n.width-L-A:0,i.y+n.height+S+_,n.width)),i.watchFunctions.push(function(t,e,n){return!(i.y<t&&e===i.pdf.internal.getNumberOfPages())||1===n.nodeType&&"both"===I(n).clear&&(i.y=t,!0)}.bind(this,i.y+n.height,i.pdf.internal.getNumberOfPages())),i.settings.width-=n.width+L+A,"left"===b.float&&(i.x+=n.width+L+A)):i.y+=n.height+S+_}else if("TABLE"===n.nodeName)h=j(n,i),i.y+=10,i.pdf.table(i.x,i.y,h.rows,h.headers,{autoSize:!1,printHeaders:e.printHeaders,margins:i.pdf.margins_doc,css:I(n)}),i.y=i.pdf.lastCellPos.y+i.pdf.lastCellPos.h+20;else if("OL"===n.nodeName||"UL"===n.nodeName)M=1,C(n,i,e)||k(n,i,e),i.y+=10;else if("LI"===n.nodeName){var F=i.x;i.x+=20/i.pdf.internal.scaleFactor,i.y+=3,C(n,i,e)||k(n,i,e),i.x=F}else"BR"===n.nodeName?(i.y+=o["font-size"]*i.pdf.internal.scaleFactor,i.addText("\u2028",P(o))):C(n,i,e)||k(n,i,e)}}a++}if(e.outY=i.y,s)return i.setBlockBoundary(u)},B={},d=function(t,o,e,n){var a,r=t.getElementsByTagName("img"),i=r.length,s=0;function l(){o.pdf.internal.events.publish("imagesLoaded"),n(a)}function h(e,n,r){if(e){var i=new Image;a=++s,i.crossOrigin="",i.onerror=i.onload=function(){if(i.complete&&(0===i.src.indexOf("data:image/")&&(i.width=n||i.width||0,i.height=r||i.height||0),i.width+i.height)){var t=o.pdf.sHashCode(e)||e;B[t]=B[t]||i}--s||l()},i.src=e}}for(;i--;)h(r[i].getAttribute("src"),r[i].width,r[i].height);return s||l()},g=function(t,o,a){var s=t.getElementsByTagName("footer");if(0<s.length){s=s[0];var e=o.pdf.internal.write,n=o.y;o.pdf.internal.write=function(){},k(s,o,a);var l=Math.ceil(o.y-n)+5;o.y=n,o.pdf.internal.write=e,o.pdf.margins_doc.bottom+=l;for(var r=function(t){var e=void 0!==t?t.pageNumber:1,n=o.y;o.y=o.pdf.internal.pageSize.getHeight()-o.pdf.margins_doc.bottom,o.pdf.margins_doc.bottom-=l;for(var r=s.getElementsByTagName("span"),i=0;i<r.length;++i)-1<(" "+r[i].className+" ").replace(/[\n\t]/g," ").indexOf(" pageCounter ")&&(r[i].innerHTML=e),-1<(" "+r[i].className+" ").replace(/[\n\t]/g," ").indexOf(" totalPages ")&&(r[i].innerHTML="###jsPDFVarTotalPages###");k(s,o,a),o.pdf.margins_doc.bottom+=l,o.y=n},i=s.getElementsByTagName("span"),h=0;h<i.length;++h)-1<(" "+i[h].className+" ").replace(/[\n\t]/g," ").indexOf(" totalPages ")&&o.pdf.internal.events.subscribe("htmlRenderingFinished",o.pdf.putTotalPages.bind(o.pdf,"###jsPDFVarTotalPages###"),!0);o.pdf.internal.events.subscribe("addPage",r,!1),r(),E.FOOTER=1}},m=function(t,e,n,r,i,o){if(!e)return!1;var a,s,l,h;"string"==typeof e||e.parentNode||(e=""+e.innerHTML),"string"==typeof e&&(a=e.replace(/<\/?script[^>]*?>/gi,""),h="jsPDFhtmlText"+Date.now().toString()+(1e3*Math.random()).toFixed(0),(l=document.createElement("div")).style.cssText="position: absolute !important;clip: rect(1px 1px 1px 1px); /* IE6, IE7 */clip: rect(1px, 1px, 1px, 1px);padding:0 !important;border:0 !important;height: 1px !important;width: 1px !important; top:auto;left:-100px;overflow: hidden;",l.innerHTML='<iframe style="height:1px;width:1px" name="'+h+'" />',document.body.appendChild(l),(s=window.frames[h]).document.open(),s.document.writeln(a),s.document.close(),e=s.document.body);var u,c=new f(t,n,r,i);return d.call(this,e,c,i.elementHandlers,function(t){g(e,c,i.elementHandlers),k(e,c,i.elementHandlers),c.pdf.internal.events.publish("htmlRenderingFinished"),u=c.dispose(),"function"==typeof o?o(u):t&&console.error("jsPDF Warning: rendering issues? provide a callback to fromHTML!")}),u||{x:c.x,y:c.y}},(f=function(t,e,n,r){return this.pdf=t,this.x=e,this.y=n,this.settings=r,this.watchFunctions=[],this.init(),this}).prototype.init=function(){return this.paragraph={text:[],style:[]},this.pdf.internal.write("q")},f.prototype.dispose=function(){return this.pdf.internal.write("Q"),{x:this.x,y:this.y,ready:!0}},f.prototype.executeWatchFunctions=function(t){var e=!1,n=[];if(0<this.watchFunctions.length){for(var r=0;r<this.watchFunctions.length;++r)!0===this.watchFunctions[r](t)?e=!0:n.push(this.watchFunctions[r]);this.watchFunctions=n}return e},f.prototype.splitFragmentsIntoLines=function(t,e){var n,r,i,o,a,s,l,h,u,c,f,p,d,g;for(12,c=this.pdf.internal.scaleFactor,o={},s=l=h=g=a=i=u=r=void 0,p=[f=[]],n=0,d=this.settings.width;t.length;)if(a=t.shift(),g=e.shift(),a)if((i=o[(r=g["font-family"])+(u=g["font-style"])])||(i=this.pdf.internal.getFont(r,u).metadata.Unicode,o[r+u]=i),h={widths:i.widths,kerning:i.kerning,fontSize:12*g["font-size"],textIndent:n},l=this.pdf.getStringUnitWidth(a,h)*h.fontSize/c,"\u2028"==a)f=[],p.push(f);else if(d<n+l){for(s=this.pdf.splitTextToSize(a,d,h),f.push([s.shift(),g]);s.length;)f=[[s.shift(),g]],p.push(f);n=this.pdf.getStringUnitWidth(f[0][0],h)*h.fontSize/c}else f.push([a,g]),n+=l;if(void 0!==g["text-align"]&&("center"===g["text-align"]||"right"===g["text-align"]||"justify"===g["text-align"]))for(var m=0;m<p.length;++m){var y=this.pdf.getStringUnitWidth(p[m][0][0],h)*h.fontSize/c;0<m&&(p[m][0][1]=P(p[m][0][1]));var v=d-y;if("right"===g["text-align"])p[m][0][1]["margin-left"]=v;else if("center"===g["text-align"])p[m][0][1]["margin-left"]=v/2;else if("justify"===g["text-align"]){var w=p[m][0][0].split(" ").length-1;p[m][0][1]["word-spacing"]=v/w,m===p.length-1&&(p[m][0][1]["word-spacing"]=0)}}return p},f.prototype.RenderTextFragment=function(t,e){var n,r;r=0,this.pdf.internal.pageSize.getHeight()-this.pdf.margins_doc.bottom<this.y+this.pdf.internal.getFontSize()&&(this.pdf.internal.write("ET","Q"),this.pdf.addPage(),this.y=this.pdf.margins_doc.top,this.pdf.internal.write("q","BT",this.getPdfColor(e.color),this.pdf.internal.getCoordinateString(this.x),this.pdf.internal.getVerticalCoordinateString(this.y),"Td"),r=Math.max(r,e["line-height"],e["font-size"]),this.pdf.internal.write(0,(-12*r).toFixed(2),"Td")),n=this.pdf.internal.getFont(e["font-family"],e["font-style"]);var i=this.getPdfColor(e.color);i!==this.lastTextColor&&(this.pdf.internal.write(i),this.lastTextColor=i),void 0!==e["word-spacing"]&&0<e["word-spacing"]&&this.pdf.internal.write(e["word-spacing"].toFixed(2),"Tw"),this.pdf.internal.write("/"+n.id,(12*e["font-size"]).toFixed(2),"Tf","("+this.pdf.internal.pdfEscape(t)+") Tj"),void 0!==e["word-spacing"]&&this.pdf.internal.write(0,"Tw")},f.prototype.getPdfColor=function(t){var e,n,r,i=/rgb\s*\(\s*(\d+),\s*(\d+),\s*(\d+\s*)\)/.exec(t);if(null!=i)e=parseInt(i[1]),n=parseInt(i[2]),r=parseInt(i[3]);else{if("string"==typeof t&&"#"!=t.charAt(0)){var o=new RGBColor(t);t=o.ok?o.toHex():"#000000"}e=t.substring(1,3),e=parseInt(e,16),n=t.substring(3,5),n=parseInt(n,16),r=t.substring(5,7),r=parseInt(r,16)}if("string"==typeof e&&/^#[0-9A-Fa-f]{6}$/.test(e)){var a=parseInt(e.substr(1),16);e=a>>16&255,n=a>>8&255,r=255&a}var s=this.f3;return 0===e&&0===n&&0===r||void 0===n?s(e/255)+" g":[s(e/255),s(n/255),s(r/255),"rg"].join(" ")},f.prototype.f3=function(t){return t.toFixed(3)},f.prototype.renderParagraph=function(t){var e,n,r,i,o,a,s,l,h,u,c,f,p;if(r=w(this.paragraph.text),f=this.paragraph.style,e=this.paragraph.blockstyle,this.paragraph.priorblockstyle||{},this.paragraph={text:[],style:[],blockstyle:{},priorblockstyle:e},r.join("").trim()){s=this.splitFragmentsIntoLines(r,f),l=a=void 0,n=12/this.pdf.internal.scaleFactor,this.priorMarginBottom=this.priorMarginBottom||0,c=(Math.max((e["margin-top"]||0)-this.priorMarginBottom,0)+(e["padding-top"]||0))*n,u=((e["margin-bottom"]||0)+(e["padding-bottom"]||0))*n,this.priorMarginBottom=e["margin-bottom"]||0,"always"===e["page-break-before"]&&(this.pdf.addPage(),this.y=0,c=((e["margin-top"]||0)+(e["padding-top"]||0))*n),h=this.pdf.internal.write,o=i=void 0,this.y+=c,h("q","BT 0 g",this.pdf.internal.getCoordinateString(this.x),this.pdf.internal.getVerticalCoordinateString(this.y),"Td");for(var d=0;s.length;){for(i=l=0,o=(a=s.shift()).length;i!==o;)a[i][0].trim()&&(l=Math.max(l,a[i][1]["line-height"],a[i][1]["font-size"]),p=7*a[i][1]["font-size"]),i++;var g=0,m=0;for(void 0!==a[0][1]["margin-left"]&&0<a[0][1]["margin-left"]&&(g=(m=this.pdf.internal.getCoordinateString(a[0][1]["margin-left"]))-d,d=m),h(g+Math.max(e["margin-left"]||0,0)*n,(-12*l).toFixed(2),"Td"),i=0,o=a.length;i!==o;)a[i][0]&&this.RenderTextFragment(a[i][0],a[i][1]),i++;if(this.y+=l*n,this.executeWatchFunctions(a[0][1])&&0<s.length){var y=[],v=[];s.forEach(function(t){for(var e=0,n=t.length;e!==n;)t[e][0]&&(y.push(t[e][0]+" "),v.push(t[e][1])),++e}),s=this.splitFragmentsIntoLines(w(y),v),h("ET","Q"),h("q","BT 0 g",this.pdf.internal.getCoordinateString(this.x),this.pdf.internal.getVerticalCoordinateString(this.y),"Td")}}return t&&"function"==typeof t&&t.call(this,this.x-9,this.y-p/2),h("ET","Q"),this.y+=u}},f.prototype.setBlockBoundary=function(t){return this.renderParagraph(t)},f.prototype.setBlockStyle=function(t){return this.paragraph.blockstyle=t},f.prototype.addText=function(t,e){return this.paragraph.text.push(t),this.paragraph.style.push(e)},i={helvetica:"helvetica","sans-serif":"helvetica","times new roman":"times",serif:"times",times:"times",monospace:"courier",courier:"courier"},l={100:"normal",200:"normal",300:"normal",400:"normal",500:"bold",600:"bold",700:"bold",800:"bold",900:"bold",normal:"normal",bold:"bold",bolder:"bold",lighter:"normal"},a={normal:"normal",italic:"italic",oblique:"italic"},s={left:"left",right:"right",center:"center",justify:"justify"},h={none:"none",right:"right",left:"left"},u={none:"none",both:"both"},n={normal:1},t.fromHTML=function(t,e,n,r,i,o){return this.margins_doc=o||{top:0,bottom:0},r||(r={}),r.elementHandlers||(r.elementHandlers={}),m(this,t,isNaN(e)?4:e,isNaN(n)?4:n,r,i)}}(lt.API),lt.API,("undefined"!=typeof window&&window||"undefined"!=typeof global&&global).html2pdf=function(t,a,e){var n=a.canvas;if(n){var r,i;if((n.pdf=a).annotations={_nameMap:[],createAnnotation:function(t,e){var n,r=a.context2d._wrapX(e.left),i=a.context2d._wrapY(e.top),o=(a.context2d._page(e.top),t.indexOf("#"));n=0<=o?{name:t.substring(o+1)}:{url:t},a.link(r,i,e.right-e.left,e.bottom-e.top,n)},setName:function(t,e){var n=a.context2d._wrapX(e.left),r=a.context2d._wrapY(e.top),i=a.context2d._page(e.top);this._nameMap[t]={page:i,x:n,y:r}}},n.annotations=a.annotations,a.context2d._pageBreakAt=function(t){this.pageBreaks.push(t)},a.context2d._gotoPage=function(t){for(;a.internal.getNumberOfPages()<t;)a.addPage();a.setPage(t)},"string"==typeof t){t=t.replace(/<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi,"");var o,s,l=document.createElement("iframe");document.body.appendChild(l),null!=(o=l.contentDocument)&&null!=o||(o=l.contentWindow.document),o.open(),o.write(t),o.close(),r=o.body,s=o.body||{},t=o.documentElement||{},i=Math.max(s.scrollHeight,s.offsetHeight,t.clientHeight,t.scrollHeight,t.offsetHeight)}else s=(r=t).body||{},i=Math.max(s.scrollHeight,s.offsetHeight,t.clientHeight,t.scrollHeight,t.offsetHeight);var h={async:!0,allowTaint:!0,backgroundColor:"#ffffff",canvas:n,imageTimeout:15e3,logging:!0,proxy:null,removeContainer:!0,foreignObjectRendering:!1,useCORS:!1,windowHeight:i=a.internal.pageSize.getHeight(),scrollY:i};a.context2d.pageWrapYEnabled=!0,a.context2d.pageWrapY=a.internal.pageSize.getHeight(),html2canvas(r,h).then(function(t){e&&(l&&l.parentElement.removeChild(l),e(a))})}else alert("jsPDF canvas plugin not installed")},window.tmp=html2pdf,function(f){var r=f.BlobBuilder||f.WebKitBlobBuilder||f.MSBlobBuilder||f.MozBlobBuilder;f.URL=f.URL||f.webkitURL||function(t,e){return(e=document.createElement("a")).href=t,e};var n=f.Blob,p=URL.createObjectURL,d=URL.revokeObjectURL,o=f.Symbol&&f.Symbol.toStringTag,t=!1,e=!1,g=!!f.ArrayBuffer,i=r&&r.prototype.append&&r.prototype.getBlob;try{t=2===new Blob(["ä"]).size,e=2===new Blob([new Uint8Array([1,2])]).size}catch(t){}function a(t){return t.map(function(t){if(t.buffer instanceof ArrayBuffer){var e=t.buffer;if(t.byteLength!==e.byteLength){var n=new Uint8Array(t.byteLength);n.set(new Uint8Array(e,t.byteOffset,t.byteLength)),e=n.buffer}return e}return t})}function s(t,e){e=e||{};var n=new r;return a(t).forEach(function(t){n.append(t)}),e.type?n.getBlob(e.type):n.getBlob()}function l(t,e){return new n(a(t),e||{})}if(f.Blob&&(s.prototype=Blob.prototype,l.prototype=Blob.prototype),o)try{File.prototype[o]="File",Blob.prototype[o]="Blob",FileReader.prototype[o]="FileReader"}catch(t){}function h(){var t=!!f.ActiveXObject||"-ms-scroll-limit"in document.documentElement.style&&"-ms-ime-align"in document.documentElement.style,e=f.XMLHttpRequest&&f.XMLHttpRequest.prototype.send;t&&e&&(XMLHttpRequest.prototype.send=function(t){t instanceof Blob&&this.setRequestHeader("Content-Type",t.type),e.call(this,t)});try{new File([],"")}catch(t){try{var n=new Function('class File extends Blob {constructor(chunks, name, opts) {opts = opts || {};super(chunks, opts || {});this.name = name;this.lastModifiedDate = opts.lastModified ? new Date(opts.lastModified) : new Date;this.lastModified = +this.lastModifiedDate;}};return new File([], ""), File')();f.File=n}catch(t){n=function(t,e,n){var r=new Blob(t,n),i=n&&void 0!==n.lastModified?new Date(n.lastModified):new Date;return r.name=e,r.lastModifiedDate=i,r.lastModified=+i,r.toString=function(){return"[object File]"},o&&(r[o]="File"),r};f.File=n}}}t?(h(),f.Blob=e?f.Blob:l):i?(h(),f.Blob=s):function(){function a(t){for(var e=[],n=0;n<t.length;n++){var r=t.charCodeAt(n);r<128?e.push(r):r<2048?e.push(192|r>>6,128|63&r):r<55296||57344<=r?e.push(224|r>>12,128|r>>6&63,128|63&r):(n++,r=65536+((1023&r)<<10|1023&t.charCodeAt(n)),e.push(240|r>>18,128|r>>12&63,128|r>>6&63,128|63&r))}return e}function e(t){var e,n,r,i,o,a;for(e="",r=t.length,n=0;n<r;)switch((i=t[n++])>>4){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:e+=String.fromCharCode(i);break;case 12:case 13:o=t[n++],e+=String.fromCharCode((31&i)<<6|63&o);break;case 14:o=t[n++],a=t[n++],e+=String.fromCharCode((15&i)<<12|(63&o)<<6|(63&a)<<0)}return e}function s(t){for(var e=new Array(t.byteLength),n=new Uint8Array(t),r=e.length;r--;)e[r]=n[r];return e}function n(t){for(var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",n=[],r=0;r<t.length;r+=3){var i=t[r],o=r+1<t.length,a=o?t[r+1]:0,s=r+2<t.length,l=s?t[r+2]:0,h=i>>2,u=(3&i)<<4|a>>4,c=(15&a)<<2|l>>6,f=63&l;s||(f=64,o||(c=64)),n.push(e[h],e[u],e[c],e[f])}return n.join("")}var t=Object.create||function(t){function e(){}return e.prototype=t,new e};if(g)var r=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],l=ArrayBuffer.isView||function(t){return t&&-1<r.indexOf(Object.prototype.toString.call(t))};function h(t,e){for(var n=0,r=(t=t||[]).length;n<r;n++){var i=t[n];i instanceof h?t[n]=i._buffer:"string"==typeof i?t[n]=a(i):g&&(ArrayBuffer.prototype.isPrototypeOf(i)||l(i))?t[n]=s(i):g&&(o=i)&&DataView.prototype.isPrototypeOf(o)?t[n]=s(i.buffer):t[n]=a(String(i))}var o;this._buffer=[].concat.apply([],t),this.size=this._buffer.length,this.type=e&&e.type||""}function i(t,e,n){var r=h.call(this,t,n=n||{})||this;return r.name=e,r.lastModifiedDate=n.lastModified?new Date(n.lastModified):new Date,r.lastModified=+r.lastModifiedDate,r}if(h.prototype.slice=function(t,e,n){return new h([this._buffer.slice(t||0,e||this._buffer.length)],{type:n})},h.prototype.toString=function(){return"[object Blob]"},(i.prototype=t(h.prototype)).constructor=i,Object.setPrototypeOf)Object.setPrototypeOf(i,h);else try{i.__proto__=h}catch(t){}function o(){if(!(this instanceof o))throw new TypeError("Failed to construct 'FileReader': Please use the 'new' operator, this DOM object constructor cannot be called as a function.");var n=document.createDocumentFragment();this.addEventListener=n.addEventListener,this.dispatchEvent=function(t){var e=this["on"+t.type];"function"==typeof e&&e(t),n.dispatchEvent(t)},this.removeEventListener=n.removeEventListener}function u(t,e,n){if(!(e instanceof h))throw new TypeError("Failed to execute '"+n+"' on 'FileReader': parameter 1 is not of type 'Blob'.");t.result="",setTimeout(function(){this.readyState=o.LOADING,t.dispatchEvent(new Event("load")),t.dispatchEvent(new Event("loadend"))})}i.prototype.toString=function(){return"[object File]"},o.EMPTY=0,o.LOADING=1,o.DONE=2,o.prototype.error=null,o.prototype.onabort=null,o.prototype.onerror=null,o.prototype.onload=null,o.prototype.onloadend=null,o.prototype.onloadstart=null,o.prototype.onprogress=null,o.prototype.readAsDataURL=function(t){u(this,t,"readAsDataURL"),this.result="data:"+t.type+";base64,"+n(t._buffer)},o.prototype.readAsText=function(t){u(this,t,"readAsText"),this.result=e(t._buffer)},o.prototype.readAsArrayBuffer=function(t){u(this,t,"readAsText"),this.result=t._buffer.slice()},o.prototype.abort=function(){},URL.createObjectURL=function(t){return t instanceof h?"data:"+t.type+";base64,"+n(t._buffer):p.call(URL,t)},URL.revokeObjectURL=function(t){d&&d.call(URL,t)};var c=f.XMLHttpRequest&&f.XMLHttpRequest.prototype.send;c&&(XMLHttpRequest.prototype.send=function(t){t instanceof h?(this.setRequestHeader("Content-Type",t.type),c.call(this,e(t._buffer))):c.call(this,t)}),f.FileReader=o,f.File=i,f.Blob=h}()}("undefined"!=typeof self&&self||"undefined"!=typeof window&&window||"undefined"!=typeof global&&global||Function('return typeof this === "object" && this.content')()||Function("return this")());var ht,ut,ct,ft,pt,dt,gt,mt,yt,vt,wt,bt,xt,Nt,Lt,le=le||function(s){if(!(void 0===s||"undefined"!=typeof navigator&&/MSIE [1-9]\./.test(navigator.userAgent))){var t=s.document,l=function(){return s.URL||s.webkitURL||s},h=t.createElementNS("http://www.w3.org/1999/xhtml","a"),u="download"in h,c=/constructor/i.test(s.HTMLElement)||s.safari,f=/CriOS\/[\d]+/.test(navigator.userAgent),p=s.setImmediate||s.setTimeout,d=function(t){p(function(){throw t},0)},g=function(t){setTimeout(function(){"string"==typeof t?l().revokeObjectURL(t):t.remove()},4e4)},m=function(t){return/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(t.type)?new Blob([String.fromCharCode(65279),t],{type:t.type}):t},r=function(t,n,e){e||(t=m(t));var r,i=this,o="application/octet-stream"===t.type,a=function(){!function(t,e,n){for(var r=(e=[].concat(e)).length;r--;){var i=t["on"+e[r]];if("function"==typeof i)try{i.call(t,n||t)}catch(t){d(t)}}}(i,"writestart progress write writeend".split(" "))};if(i.readyState=i.INIT,u)return r=l().createObjectURL(t),void p(function(){var t,e;h.href=r,h.download=n,t=h,e=new MouseEvent("click"),t.dispatchEvent(e),a(),g(r),i.readyState=i.DONE},0);!function(){if((f||o&&c)&&s.FileReader){var e=new FileReader;return e.onloadend=function(){var t=f?e.result:e.result.replace(/^data:[^;]*;/,"data:attachment/file;");s.open(t,"_blank")||(s.location.href=t),t=void 0,i.readyState=i.DONE,a()},e.readAsDataURL(t),i.readyState=i.INIT}r||(r=l().createObjectURL(t)),o?s.location.href=r:s.open(r,"_blank")||(s.location.href=r);i.readyState=i.DONE,a(),g(r)}()},e=r.prototype;return"undefined"!=typeof navigator&&navigator.msSaveOrOpenBlob?function(t,e,n){return e=e||t.name||"download",n||(t=m(t)),navigator.msSaveOrOpenBlob(t,e)}:(e.abort=function(){},e.readyState=e.INIT=0,e.WRITING=1,e.DONE=2,e.error=e.onwritestart=e.onprogress=e.onwrite=e.onabort=e.onerror=e.onwriteend=null,function(t,e,n){return new r(t,e||t.name||"download",n)})}}("undefined"!=typeof self&&self||"undefined"!=typeof window&&window||void 0);function At(x){var t=0;if(71!==x[t++]||73!==x[t++]||70!==x[t++]||56!==x[t++]||56!=(x[t++]+1&253)||97!==x[t++])throw"Invalid GIF 87a/89a header.";var N=x[t++]|x[t++]<<8,e=x[t++]|x[t++]<<8,n=x[t++],r=n>>7,i=1<<(7&n)+1;x[t++];x[t++];var o=null;r&&(o=t,t+=3*i);var a=!0,s=[],l=0,h=null,u=0,c=null;for(this.width=N,this.height=e;a&&t<x.length;)switch(x[t++]){case 33:switch(x[t++]){case 255:if(11!==x[t]||78==x[t+1]&&69==x[t+2]&&84==x[t+3]&&83==x[t+4]&&67==x[t+5]&&65==x[t+6]&&80==x[t+7]&&69==x[t+8]&&50==x[t+9]&&46==x[t+10]&&48==x[t+11]&&3==x[t+12]&&1==x[t+13]&&0==x[t+16])t+=14,c=x[t++]|x[t++]<<8,t++;else for(t+=12;;){if(0===(A=x[t++]))break;t+=A}break;case 249:if(4!==x[t++]||0!==x[t+4])throw"Invalid graphics extension block.";var f=x[t++];l=x[t++]|x[t++]<<8,h=x[t++],0==(1&f)&&(h=null),u=f>>2&7,t++;break;case 254:for(;;){if(0===(A=x[t++]))break;t+=A}break;default:throw"Unknown graphic control label: 0x"+x[t-1].toString(16)}break;case 44:var p=x[t++]|x[t++]<<8,d=x[t++]|x[t++]<<8,g=x[t++]|x[t++]<<8,m=x[t++]|x[t++]<<8,y=x[t++],v=y>>6&1,w=o,b=!1;if(y>>7){b=!0;w=t,t+=3*(1<<(7&y)+1)}var L=t;for(t++;;){var A;if(0===(A=x[t++]))break;t+=A}s.push({x:p,y:d,width:g,height:m,has_local_palette:b,palette_offset:w,data_offset:L,data_length:t-L,transparent_index:h,interlaced:!!v,delay:l,disposal:u});break;case 59:a=!1;break;default:throw"Unknown gif block: 0x"+x[t-1].toString(16)}this.numFrames=function(){return s.length},this.loopCount=function(){return c},this.frameInfo=function(t){if(t<0||t>=s.length)throw"Frame index out of range.";return s[t]},this.decodeAndBlitFrameBGRA=function(t,e){var n=this.frameInfo(t),r=n.width*n.height,i=new Uint8Array(r);St(x,n.data_offset,i,r);var o=n.palette_offset,a=n.transparent_index;null===a&&(a=256);var s=n.width,l=N-s,h=s,u=4*(n.y*N+n.x),c=4*((n.y+n.height)*N+n.x),f=u,p=4*l;!0===n.interlaced&&(p+=4*(s+l)*7);for(var d=8,g=0,m=i.length;g<m;++g){var y=i[g];if(0===h&&(h=s,c<=(f+=p)&&(p=l+4*(s+l)*(d-1),f=u+(s+l)*(d<<1),d>>=1)),y===a)f+=4;else{var v=x[o+3*y],w=x[o+3*y+1],b=x[o+3*y+2];e[f++]=b,e[f++]=w,e[f++]=v,e[f++]=255}--h}},this.decodeAndBlitFrameRGBA=function(t,e){var n=this.frameInfo(t),r=n.width*n.height,i=new Uint8Array(r);St(x,n.data_offset,i,r);var o=n.palette_offset,a=n.transparent_index;null===a&&(a=256);var s=n.width,l=N-s,h=s,u=4*(n.y*N+n.x),c=4*((n.y+n.height)*N+n.x),f=u,p=4*l;!0===n.interlaced&&(p+=4*(s+l)*7);for(var d=8,g=0,m=i.length;g<m;++g){var y=i[g];if(0===h&&(h=s,c<=(f+=p)&&(p=l+4*(s+l)*(d-1),f=u+(s+l)*(d<<1),d>>=1)),y===a)f+=4;else{var v=x[o+3*y],w=x[o+3*y+1],b=x[o+3*y+2];e[f++]=v,e[f++]=w,e[f++]=b,e[f++]=255}--h}}}function St(t,e,n,r){for(var i=t[e++],o=1<<i,a=o+1,s=a+1,l=i+1,h=(1<<l)-1,u=0,c=0,f=0,p=t[e++],d=new Int32Array(4096),g=null;;){for(;u<16&&0!==p;)c|=t[e++]<<u,u+=8,1===p?p=t[e++]:--p;if(u<l)break;var m=c&h;if(c>>=l,u-=l,m!==o){if(m===a)break;for(var y=m<s?m:g,v=0,w=y;o<w;)w=d[w]>>8,++v;var b=w;if(r<f+v+(y!==m?1:0))return void console.log("Warning, gif stream longer than expected.");n[f++]=b;var x=f+=v;for(y!==m&&(n[f++]=b),w=y;v--;)w=d[w],n[--x]=255&w,w>>=8;null!==g&&s<4096&&(d[s++]=g<<8|b,h+1<=s&&l<12&&(++l,h=h<<1|1)),g=m}else s=a+1,h=(1<<(l=i+1))-1,g=null}return f!==r&&console.log("Warning, gif stream shorter than expected."),n}try{exports.GifWriter=function(y,t,e,n){var v=0,r=void 0===(n=void 0===n?{}:n).loop?null:n.loop,w=void 0===n.palette?null:n.palette;if(t<=0||e<=0||65535<t||65535<e)throw"Width/Height invalid.";function b(t){var e=t.length;if(e<2||256<e||e&e-1)throw"Invalid code/color length, must be power of 2 and 2 .. 256.";return e}y[v++]=71,y[v++]=73,y[v++]=70,y[v++]=56,y[v++]=57,y[v++]=97;var i=0,o=0;if(null!==w){for(var a=b(w);a>>=1;)++i;if(a=1<<i,--i,void 0!==n.background){if(a<=(o=n.background))throw"Background index out of range.";if(0===o)throw"Background index explicitly passed as 0."}}if(y[v++]=255&t,y[v++]=t>>8&255,y[v++]=255&e,y[v++]=e>>8&255,y[v++]=(null!==w?128:0)|i,y[v++]=o,y[v++]=0,null!==w)for(var s=0,l=w.length;s<l;++s){var h=w[s];y[v++]=h>>16&255,y[v++]=h>>8&255,y[v++]=255&h}if(null!==r){if(r<0||65535<r)throw"Loop count invalid.";y[v++]=33,y[v++]=255,y[v++]=11,y[v++]=78,y[v++]=69,y[v++]=84,y[v++]=83,y[v++]=67,y[v++]=65,y[v++]=80,y[v++]=69,y[v++]=50,y[v++]=46,y[v++]=48,y[v++]=3,y[v++]=1,y[v++]=255&r,y[v++]=r>>8&255,y[v++]=0}var x=!1;this.addFrame=function(t,e,n,r,i,o){if(!0===x&&(--v,x=!1),o=void 0===o?{}:o,t<0||e<0||65535<t||65535<e)throw"x/y invalid.";if(n<=0||r<=0||65535<n||65535<r)throw"Width/Height invalid.";if(i.length<n*r)throw"Not enough pixels for the frame size.";var a=!0,s=o.palette;if(null==s&&(a=!1,s=w),null==s)throw"Must supply either a local or global palette.";for(var l=b(s),h=0;l>>=1;)++h;l=1<<h;var u=void 0===o.delay?0:o.delay,c=void 0===o.disposal?0:o.disposal;if(c<0||3<c)throw"Disposal out of range.";var f=!1,p=0;if(void 0!==o.transparent&&null!==o.transparent&&(f=!0,(p=o.transparent)<0||l<=p))throw"Transparent color index.";if((0!==c||f||0!==u)&&(y[v++]=33,y[v++]=249,y[v++]=4,y[v++]=c<<2|(!0===f?1:0),y[v++]=255&u,y[v++]=u>>8&255,y[v++]=p,y[v++]=0),y[v++]=44,y[v++]=255&t,y[v++]=t>>8&255,y[v++]=255&e,y[v++]=e>>8&255,y[v++]=255&n,y[v++]=n>>8&255,y[v++]=255&r,y[v++]=r>>8&255,y[v++]=!0===a?128|h-1:0,!0===a)for(var d=0,g=s.length;d<g;++d){var m=s[d];y[v++]=m>>16&255,y[v++]=m>>8&255,y[v++]=255&m}v=function(e,n,t,r){e[n++]=t;var i=n++,o=1<<t,a=o-1,s=o+1,l=s+1,h=t+1,u=0,c=0;function f(t){for(;t<=u;)e[n++]=255&c,c>>=8,u-=8,n===i+256&&(e[i]=255,i=n++)}function p(t){c|=t<<u,u+=h,f(8)}var d=r[0]&a,g={};p(o);for(var m=1,y=r.length;m<y;++m){var v=r[m]&a,w=d<<8|v,b=g[w];if(void 0===b){for(c|=d<<u,u+=h;8<=u;)e[n++]=255&c,c>>=8,u-=8,n===i+256&&(e[i]=255,i=n++);4096===l?(p(o),l=s+1,h=t+1,g={}):(1<<h<=l&&++h,g[w]=l++),d=v}else d=b}return p(d),p(s),f(1),i+1===n?e[i]=0:(e[i]=n-i-1,e[n++]=0),n}(y,v,h<2?2:h,i)},this.end=function(){return!1===x&&(y[v++]=59,x=!0),v}},exports.GifReader=At}catch(t){}-/*- Copyright (c) 2008, Adobe Systems Incorporated- All rights reserved.-- Redistribution and use in source and binary forms, with or without- modification, are permitted provided that the following conditions are- met:-- * Redistributions of source code must retain the above copyright notice,- this list of conditions and the following disclaimer.-- * Redistributions in binary form must reproduce the above copyright- notice, this list of conditions and the following disclaimer in the- documentation and/or other materials provided with the distribution.-- * Neither the name of Adobe Systems Incorporated nor the names of its- contributors may be used to endorse or promote products derived from- this software without specific prior written permission.-- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS- IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,- THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR- PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR- CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,- EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,- PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF- LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING- NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS- SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.- */-function _t(t){var N,L,A,S,e,c=Math.floor,_=new Array(64),F=new Array(64),P=new Array(64),k=new Array(64),y=new Array(65535),v=new Array(65535),Z=new Array(64),w=new Array(64),I=[],C=0,B=7,j=new Array(64),E=new Array(64),M=new Array(64),n=new Array(256),O=new Array(2048),b=[0,1,5,6,14,15,27,28,2,4,7,13,16,26,29,42,3,8,12,17,25,30,41,43,9,11,18,24,31,40,44,53,10,19,23,32,39,45,52,54,20,22,33,38,46,51,55,60,21,34,37,47,50,56,59,61,35,36,48,49,57,58,62,63],q=[0,0,1,5,1,1,1,1,1,1,0,0,0,0,0,0,0],T=[0,1,2,3,4,5,6,7,8,9,10,11],R=[0,0,2,1,3,3,2,4,3,5,5,4,4,0,0,1,125],D=[1,2,3,0,4,17,5,18,33,49,65,6,19,81,97,7,34,113,20,50,129,145,161,8,35,66,177,193,21,82,209,240,36,51,98,114,130,9,10,22,23,24,25,26,37,38,39,40,41,42,52,53,54,55,56,57,58,67,68,69,70,71,72,73,74,83,84,85,86,87,88,89,90,99,100,101,102,103,104,105,106,115,116,117,118,119,120,121,122,131,132,133,134,135,136,137,138,146,147,148,149,150,151,152,153,154,162,163,164,165,166,167,168,169,170,178,179,180,181,182,183,184,185,186,194,195,196,197,198,199,200,201,202,210,211,212,213,214,215,216,217,218,225,226,227,228,229,230,231,232,233,234,241,242,243,244,245,246,247,248,249,250],U=[0,0,3,1,1,1,1,1,1,1,1,1,0,0,0,0,0],z=[0,1,2,3,4,5,6,7,8,9,10,11],H=[0,0,2,1,2,4,4,3,4,7,5,4,4,0,1,2,119],W=[0,1,2,3,17,4,5,33,49,6,18,65,81,7,97,113,19,34,50,129,8,20,66,145,161,177,193,9,35,51,82,240,21,98,114,209,10,22,36,52,225,37,241,23,24,25,26,38,39,40,41,42,53,54,55,56,57,58,67,68,69,70,71,72,73,74,83,84,85,86,87,88,89,90,99,100,101,102,103,104,105,106,115,116,117,118,119,120,121,122,130,131,132,133,134,135,136,137,138,146,147,148,149,150,151,152,153,154,162,163,164,165,166,167,168,169,170,178,179,180,181,182,183,184,185,186,194,195,196,197,198,199,200,201,202,210,211,212,213,214,215,216,217,218,226,227,228,229,230,231,232,233,234,242,243,244,245,246,247,248,249,250];function r(t,e){for(var n=0,r=0,i=new Array,o=1;o<=16;o++){for(var a=1;a<=t[o];a++)i[e[r]]=[],i[e[r]][0]=n,i[e[r]][1]=o,r++,n++;n*=2}return i}function V(t){for(var e=t[0],n=t[1]-1;0<=n;)e&1<<n&&(C|=1<<B),n--,--B<0&&(255==C?(G(255),G(0)):G(C),B=7,C=0)}function G(t){I.push(t)}function Y(t){G(t>>8&255),G(255&t)}function J(t,e,n,r,i){for(var o,a=i[0],s=i[240],l=function(t,e){var n,r,i,o,a,s,l,h,u,c,f=0;for(u=0;u<8;++u){n=t[f],r=t[f+1],i=t[f+2],o=t[f+3],a=t[f+4],s=t[f+5],l=t[f+6];var p=n+(h=t[f+7]),d=n-h,g=r+l,m=r-l,y=i+s,v=i-s,w=o+a,b=o-a,x=p+w,N=p-w,L=g+y,A=g-y;t[f]=x+L,t[f+4]=x-L;var S=.707106781*(A+N);t[f+2]=N+S,t[f+6]=N-S;var _=.382683433*((x=b+v)-(A=m+d)),F=.5411961*x+_,P=1.306562965*A+_,k=.707106781*(L=v+m),I=d+k,C=d-k;t[f+5]=C+F,t[f+3]=C-F,t[f+1]=I+P,t[f+7]=I-P,f+=8}for(u=f=0;u<8;++u){n=t[f],r=t[f+8],i=t[f+16],o=t[f+24],a=t[f+32],s=t[f+40],l=t[f+48];var B=n+(h=t[f+56]),j=n-h,E=r+l,M=r-l,O=i+s,q=i-s,T=o+a,R=o-a,D=B+T,U=B-T,z=E+O,H=E-O;t[f]=D+z,t[f+32]=D-z;var W=.707106781*(H+U);t[f+16]=U+W,t[f+48]=U-W;var V=.382683433*((D=R+q)-(H=M+j)),G=.5411961*D+V,Y=1.306562965*H+V,J=.707106781*(z=q+M),X=j+J,K=j-J;t[f+40]=K+G,t[f+24]=K-G,t[f+8]=X+Y,t[f+56]=X-Y,f++}for(u=0;u<64;++u)c=t[u]*e[u],Z[u]=0<c?c+.5|0:c-.5|0;return Z}(t,e),h=0;h<64;++h)w[b[h]]=l[h];var u=w[0]-n;n=w[0],0==u?V(r[0]):(V(r[v[o=32767+u]]),V(y[o]));for(var c=63;0<c&&0==w[c];c--);if(0==c)return V(a),n;for(var f,p=1;p<=c;){for(var d=p;0==w[p]&&p<=c;++p);var g=p-d;if(16<=g){f=g>>4;for(var m=1;m<=f;++m)V(s);g&=15}o=32767+w[p],V(i[(g<<4)+v[o]]),V(y[o]),p++}return 63!=c&&V(a),n}function X(t){if(t<=0&&(t=1),100<t&&(t=100),e!=t){(function(t){for(var e=[16,11,10,16,24,40,51,61,12,12,14,19,26,58,60,55,14,13,16,24,40,57,69,56,14,17,22,29,51,87,80,62,18,22,37,56,68,109,103,77,24,35,55,64,81,104,113,92,49,64,78,87,103,121,120,101,72,92,95,98,112,100,103,99],n=0;n<64;n++){var r=c((e[n]*t+50)/100);r<1?r=1:255<r&&(r=255),_[b[n]]=r}for(var i=[17,18,24,47,99,99,99,99,18,21,26,66,99,99,99,99,24,26,56,99,99,99,99,99,47,66,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99],o=0;o<64;o++){var a=c((i[o]*t+50)/100);a<1?a=1:255<a&&(a=255),F[b[o]]=a}for(var s=[1,1.387039845,1.306562965,1.175875602,1,.785694958,.5411961,.275899379],l=0,h=0;h<8;h++)for(var u=0;u<8;u++)P[l]=1/(_[b[l]]*s[h]*s[u]*8),k[l]=1/(F[b[l]]*s[h]*s[u]*8),l++})(t<50?Math.floor(5e3/t):Math.floor(200-2*t)),e=t}}this.encode=function(t,e){var n,r;(new Date).getTime();e&&X(e),I=new Array,C=0,B=7,Y(65496),Y(65504),Y(16),G(74),G(70),G(73),G(70),G(0),G(1),G(1),G(0),Y(1),Y(1),G(0),G(0),function(){Y(65499),Y(132),G(0);for(var t=0;t<64;t++)G(_[t]);G(1);for(var e=0;e<64;e++)G(F[e])}(),n=t.width,r=t.height,Y(65472),Y(17),G(8),Y(r),Y(n),G(3),G(1),G(17),G(0),G(2),G(17),G(1),G(3),G(17),G(1),function(){Y(65476),Y(418),G(0);for(var t=0;t<16;t++)G(q[t+1]);for(var e=0;e<=11;e++)G(T[e]);G(16);for(var n=0;n<16;n++)G(R[n+1]);for(var r=0;r<=161;r++)G(D[r]);G(1);for(var i=0;i<16;i++)G(U[i+1]);for(var o=0;o<=11;o++)G(z[o]);G(17);for(var a=0;a<16;a++)G(H[a+1]);for(var s=0;s<=161;s++)G(W[s])}(),Y(65498),Y(12),G(3),G(1),G(0),G(2),G(17),G(3),G(17),G(0),G(63),G(0);var i=0,o=0,a=0;C=0,B=7,this.encode.displayName="_encode_";for(var s,l,h,u,c,f,p,d,g,m=t.data,y=t.width,v=t.height,w=4*y,b=0;b<v;){for(s=0;s<w;){for(f=c=w*b+s,p=-1,g=d=0;g<64;g++)f=c+(d=g>>3)*w+(p=4*(7&g)),v<=b+d&&(f-=w*(b+1+d-v)),w<=s+p&&(f-=s+p-w+4),l=m[f++],h=m[f++],u=m[f++],j[g]=(O[l]+O[h+256>>0]+O[u+512>>0]>>16)-128,E[g]=(O[l+768>>0]+O[h+1024>>0]+O[u+1280>>0]>>16)-128,M[g]=(O[l+1280>>0]+O[h+1536>>0]+O[u+1792>>0]>>16)-128;i=J(j,P,i,N,A),o=J(E,k,o,L,S),a=J(M,k,a,L,S),s+=32}b+=8}if(0<=B){var x=[];x[1]=B+1,x[0]=(1<<B+1)-1,V(x)}return Y(65497),new Uint8Array(I)},function(){(new Date).getTime();t||(t=50),function(){for(var t=String.fromCharCode,e=0;e<256;e++)n[e]=t(e)}(),N=r(q,T),L=r(U,z),A=r(R,D),S=r(H,W),function(){for(var t=1,e=2,n=1;n<=15;n++){for(var r=t;r<e;r++)v[32767+r]=n,y[32767+r]=[],y[32767+r][1]=n,y[32767+r][0]=r;for(var i=-(e-1);i<=-t;i++)v[32767+i]=n,y[32767+i]=[],y[32767+i][1]=n,y[32767+i][0]=e-1+i;t<<=1,e<<=1}}(),function(){for(var t=0;t<256;t++)O[t]=19595*t,O[t+256>>0]=38470*t,O[t+512>>0]=7471*t+32768,O[t+768>>0]=-11059*t,O[t+1024>>0]=-21709*t,O[t+1280>>0]=32768*t+8421375,O[t+1536>>0]=-27439*t,O[t+1792>>0]=-5329*t}(),X(t),(new Date).getTime()}()}function Ft(t,e){if(this.pos=0,this.buffer=t,this.datav=new DataView(t.buffer),this.is_with_alpha=!!e,this.bottom_up=!0,this.flag=String.fromCharCode(this.buffer[0])+String.fromCharCode(this.buffer[1]),this.pos+=2,-1===["BM","BA","CI","CP","IC","PT"].indexOf(this.flag))throw new Error("Invalid BMP File");this.parseHeader(),this.parseBGR()}window.tmp=At,lt.API.adler32cs=(dt="function"==typeof ArrayBuffer&&"function"==typeof Uint8Array,gt=null,mt=function(){if(!dt)return function(){return!1};try{var t={};"function"==typeof t.Buffer&&(gt=t.Buffer)}catch(t){}return function(t){return t instanceof ArrayBuffer||null!==gt&&t instanceof gt}}(),yt=null!==gt?function(t){return new gt(t,"utf8").toString("binary")}:function(t){return unescape(encodeURIComponent(t))},vt=function(t,e){for(var n=65535&t,r=t>>>16,i=0,o=e.length;i<o;i++)n=(n+(255&e.charCodeAt(i)))%65521,r=(r+n)%65521;return(r<<16|n)>>>0},wt=function(t,e){for(var n=65535&t,r=t>>>16,i=0,o=e.length;i<o;i++)n=(n+e[i])%65521,r=(r+n)%65521;return(r<<16|n)>>>0},xt=(bt={}).Adler32=(((pt=(ft=function(t){if(!(this instanceof ft))throw new TypeError("Constructor cannot called be as a function.");if(!isFinite(t=null==t?1:+t))throw new Error("First arguments needs to be a finite number.");this.checksum=t>>>0}).prototype={}).constructor=ft).from=((ht=function(t){if(!(this instanceof ft))throw new TypeError("Constructor cannot called be as a function.");if(null==t)throw new Error("First argument needs to be a string.");this.checksum=vt(1,t.toString())}).prototype=pt,ht),ft.fromUtf8=((ut=function(t){if(!(this instanceof ft))throw new TypeError("Constructor cannot called be as a function.");if(null==t)throw new Error("First argument needs to be a string.");var e=yt(t.toString());this.checksum=vt(1,e)}).prototype=pt,ut),dt&&(ft.fromBuffer=((ct=function(t){if(!(this instanceof ft))throw new TypeError("Constructor cannot called be as a function.");if(!mt(t))throw new Error("First argument needs to be ArrayBuffer.");var e=new Uint8Array(t);return this.checksum=wt(1,e)}).prototype=pt,ct)),pt.update=function(t){if(null==t)throw new Error("First argument needs to be a string.");return t=t.toString(),this.checksum=vt(this.checksum,t)},pt.updateUtf8=function(t){if(null==t)throw new Error("First argument needs to be a string.");var e=yt(t.toString());return this.checksum=vt(this.checksum,e)},dt&&(pt.updateBuffer=function(t){if(!mt(t))throw new Error("First argument needs to be ArrayBuffer.");var e=new Uint8Array(t);return this.checksum=wt(this.checksum,e)}),pt.clone=function(){return new xt(this.checksum)},ft),bt.from=function(t){if(null==t)throw new Error("First argument needs to be a string.");return vt(1,t.toString())},bt.fromUtf8=function(t){if(null==t)throw new Error("First argument needs to be a string.");var e=yt(t.toString());return vt(1,e)},dt&&(bt.fromBuffer=function(t){if(!mt(t))throw new Error("First argument need to be ArrayBuffer.");var e=new Uint8Array(t);return wt(1,e)}),bt),function(t){t.__bidiEngine__=t.prototype.__bidiEngine__=function(t){var d,g,c,f,i,o,a,s=e,m=[[0,3,0,1,0,0,0],[0,3,0,1,2,2,0],[0,3,0,17,2,0,1],[0,3,5,5,4,1,0],[0,3,21,21,4,0,1],[0,3,5,5,4,2,0]],y=[[2,0,1,1,0,1,0],[2,0,1,1,0,2,0],[2,0,2,1,3,2,0],[2,0,2,33,3,1,1]],v={L:0,R:1,EN:2,AN:3,N:4,B:5,S:6},l={0:0,5:1,6:2,7:3,32:4,251:5,254:6,255:7},h=["(",")","(","<",">","<","[","]","[","{","}","{","«","»","«","‹","›","‹","⁅","⁆","⁅","⁽","⁾","⁽","₍","₎","₍","≤","≥","≤","〈","〉","〈","﹙","﹚","﹙","﹛","﹜","﹛","﹝","﹞","﹝","﹤","﹥","﹤"],u=new RegExp(/^([1-4|9]|1[0-9]|2[0-9]|3[0168]|4[04589]|5[012]|7[78]|159|16[0-9]|17[0-2]|21[569]|22[03489]|250)$/),w=!1,b=0;this.__bidiEngine__={};var x=function(t){var e=t.charCodeAt(),n=e>>8,r=l[n];return void 0!==r?s[256*r+(255&e)]:252===n||253===n?"AL":u.test(n)?"L":8===n?"R":"N"},p=function(t){for(var e,n=0;n<t.length;n++){if("L"===(e=x(t.charAt(n))))return!1;if("R"===e)return!0}return!1},N=function(t,e,n,r){var i,o,a,s,l=e[r];switch(l){case"L":case"R":w=!1;break;case"N":case"AN":break;case"EN":w&&(l="AN");break;case"AL":w=!0,l="R";break;case"WS":l="N";break;case"CS":r<1||r+1>=e.length||"EN"!==(i=n[r-1])&&"AN"!==i||"EN"!==(o=e[r+1])&&"AN"!==o?l="N":w&&(o="AN"),l=o===i?o:"N";break;case"ES":l="EN"===(i=0<r?n[r-1]:"B")&&r+1<e.length&&"EN"===e[r+1]?"EN":"N";break;case"ET":if(0<r&&"EN"===n[r-1]){l="EN";break}if(w){l="N";break}for(a=r+1,s=e.length;a<s&&"ET"===e[a];)a++;l=a<s&&"EN"===e[a]?"EN":"N";break;case"NSM":if(c&&!f){for(s=e.length,a=r+1;a<s&&"NSM"===e[a];)a++;if(a<s){var h=t[r],u=1425<=h&&h<=2303||64286===h;if(i=e[a],u&&("R"===i||"AL"===i)){l="R";break}}}l=r<1||"B"===(i=e[r-1])?"N":n[r-1];break;case"B":d=!(w=!1),l=b;break;case"S":g=!0,l="N";break;case"LRE":case"RLE":case"LRO":case"RLO":case"PDF":w=!1;break;case"BN":l="N"}return l},L=function(t,e,n){var r=t.split("");return n&&A(r,n,{hiLevel:b}),r.reverse(),e&&e.reverse(),r.join("")},A=function(t,e,n){var r,i,o,a,s,l=-1,h=t.length,u=0,c=[],f=b?y:m,p=[];for(g=d=w=!1,i=0;i<h;i++)p[i]=x(t[i]);for(o=0;o<h;o++){if(s=u,c[o]=N(t,p,c,o),r=240&(u=f[s][v[c[o]]]),u&=15,e[o]=a=f[u][5],0<r)if(16===r){for(i=l;i<o;i++)e[i]=1;l=-1}else l=-1;if(f[u][6])-1===l&&(l=o);else if(-1<l){for(i=l;i<o;i++)e[i]=a;l=-1}"B"===p[o]&&(e[o]=0),n.hiLevel|=a}g&&function(t,e,n){for(var r=0;r<n;r++)if("S"===t[r]){e[r]=b;for(var i=r-1;0<=i&&"WS"===t[i];i--)e[i]=b}}(p,e,h)},S=function(t,e,n,r,i){if(!(i.hiLevel<t)){if(1===t&&1===b&&!d)return e.reverse(),void(n&&n.reverse());for(var o,a,s,l,h=e.length,u=0;u<h;){if(r[u]>=t){for(s=u+1;s<h&&r[s]>=t;)s++;for(l=u,a=s-1;l<a;l++,a--)o=e[l],e[l]=e[a],e[a]=o,n&&(o=n[l],n[l]=n[a],n[a]=o);u=s}u++}}},_=function(t,e,n){var r=t.split(""),i={hiLevel:b};return n||(n=[]),A(r,n,i),function(t,e,n){if(0!==n.hiLevel&&a)for(var r,i=0;i<t.length;i++)1===e[i]&&0<=(r=h.indexOf(t[i]))&&(t[i]=h[r+1])}(r,n,i),S(2,r,e,n,i),S(1,r,e,n,i),r.join("")};return this.__bidiEngine__.doBidiReorder=function(t,e,n){if(function(t,e){if(e)for(var n=0;n<t.length;n++)e[n]=n;void 0===f&&(f=p(t)),void 0===o&&(o=p(t))}(t,e),c||!i||o)if(c&&i&&f^o)b=f?1:0,t=L(t,e,n);else if(!c&&i&&o)b=f?1:0,t=_(t,e,n),t=L(t,e);else if(!c||f||i||o){if(c&&!i&&f^o)t=L(t,e),t=f?(b=0,_(t,e,n)):(b=1,t=_(t,e,n),L(t,e));else if(c&&f&&!i&&o)b=1,t=_(t,e,n),t=L(t,e);else if(!c&&!i&&f^o){var r=a;f?(b=1,t=_(t,e,n),b=0,a=!1,t=_(t,e,n),a=r):(b=0,t=_(t,e,n),t=L(t,e),a=!(b=1),t=_(t,e,n),a=r,t=L(t,e))}}else b=0,t=_(t,e,n);else b=f?1:0,t=_(t,e,n);return t},this.__bidiEngine__.setOptions=function(t){t&&(c=t.isInputVisual,i=t.isOutputVisual,f=t.isInputRtl,o=t.isOutputRtl,a=t.isSymmetricSwapping)},this.__bidiEngine__.setOptions(t),this.__bidiEngine__};var e=["BN","BN","BN","BN","BN","BN","BN","BN","BN","S","B","S","WS","B","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","B","B","B","S","WS","N","N","ET","ET","ET","N","N","N","N","N","ES","CS","ES","CS","CS","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","CS","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","BN","BN","BN","BN","BN","BN","B","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","CS","N","ET","ET","ET","ET","N","N","N","N","L","N","N","BN","N","N","ET","ET","EN","EN","N","L","N","N","N","EN","L","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","N","N","N","N","N","ET","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","R","NSM","R","NSM","NSM","R","NSM","NSM","R","NSM","N","N","N","N","N","N","N","N","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","N","N","N","N","N","R","R","R","R","R","N","N","N","N","N","N","N","N","N","N","N","AN","AN","AN","AN","AN","AN","N","N","AL","ET","ET","AL","CS","AL","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AL","AL","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AN","AN","AN","AN","AN","AN","AN","AN","AN","AN","ET","AN","AN","AL","AL","AL","NSM","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AN","N","NSM","NSM","NSM","NSM","NSM","NSM","AL","AL","NSM","NSM","N","NSM","NSM","NSM","NSM","AL","AL","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","AL","AL","NSM","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AL","N","N","N","N","N","N","N","N","N","N","N","N","N","N","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","R","R","N","N","N","N","R","N","N","N","N","N","WS","WS","WS","WS","WS","WS","WS","WS","WS","WS","WS","BN","BN","BN","L","R","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","WS","B","LRE","RLE","PDF","LRO","RLO","CS","ET","ET","ET","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","CS","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","WS","BN","BN","BN","BN","BN","N","LRI","RLI","FSI","PDI","BN","BN","BN","BN","BN","BN","EN","L","N","N","EN","EN","EN","EN","EN","EN","ES","ES","N","N","N","L","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","ES","ES","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","L","L","N","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","N","N","N","N","N","R","NSM","R","R","R","R","R","R","R","R","R","R","ES","R","R","R","R","R","R","R","R","R","R","R","R","R","N","R","R","R","R","R","N","R","N","R","R","N","R","R","N","R","R","R","R","R","R","R","R","R","R","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","CS","N","CS","N","N","CS","N","N","N","N","N","N","N","N","N","ET","N","N","ES","ES","N","N","N","N","N","ET","ET","N","N","N","N","N","AL","AL","AL","AL","AL","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","N","BN","N","N","N","ET","ET","ET","N","N","N","N","N","ES","CS","ES","CS","CS","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","CS","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","L","L","L","L","L","L","N","N","L","L","L","L","L","L","N","N","L","L","L","L","L","L","N","N","L","L","L","N","N","N","ET","ET","N","N","N","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N"],o=new t.__bidiEngine__({isInputVisual:!0});t.API.events.push(["postProcessText",function(t){var e=t.text,n=(t.x,t.y,t.options||{}),r=(t.mutex,n.lang,[]);if("[object Array]"===Object.prototype.toString.call(e)){var i=0;for(r=[],i=0;i<e.length;i+=1)"[object Array]"===Object.prototype.toString.call(e[i])?r.push([o.doBidiReorder(e[i][0]),e[i][1],e[i][2]]):r.push([o.doBidiReorder(e[i])]);t.text=r}else t.text=o.doBidiReorder(e)}])}(lt),window.tmp=_t,Ft.prototype.parseHeader=function(){if(this.fileSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.reserved=this.datav.getUint32(this.pos,!0),this.pos+=4,this.offset=this.datav.getUint32(this.pos,!0),this.pos+=4,this.headerSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.width=this.datav.getUint32(this.pos,!0),this.pos+=4,this.height=this.datav.getInt32(this.pos,!0),this.pos+=4,this.planes=this.datav.getUint16(this.pos,!0),this.pos+=2,this.bitPP=this.datav.getUint16(this.pos,!0),this.pos+=2,this.compress=this.datav.getUint32(this.pos,!0),this.pos+=4,this.rawSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.hr=this.datav.getUint32(this.pos,!0),this.pos+=4,this.vr=this.datav.getUint32(this.pos,!0),this.pos+=4,this.colors=this.datav.getUint32(this.pos,!0),this.pos+=4,this.importantColors=this.datav.getUint32(this.pos,!0),this.pos+=4,16===this.bitPP&&this.is_with_alpha&&(this.bitPP=15),this.bitPP<15){var t=0===this.colors?1<<this.bitPP:this.colors;this.palette=new Array(t);for(var e=0;e<t;e++){var n=this.datav.getUint8(this.pos++,!0),r=this.datav.getUint8(this.pos++,!0),i=this.datav.getUint8(this.pos++,!0),o=this.datav.getUint8(this.pos++,!0);this.palette[e]={red:i,green:r,blue:n,quad:o}}}this.height<0&&(this.height*=-1,this.bottom_up=!1)},Ft.prototype.parseBGR=function(){this.pos=this.offset;try{var t="bit"+this.bitPP,e=this.width*this.height*4;this.data=new Uint8Array(e),this[t]()}catch(t){console.log("bit decode error:"+t)}},Ft.prototype.bit1=function(){var t=Math.ceil(this.width/8),e=t%4,n=0<=this.height?this.height-1:-this.height;for(n=this.height-1;0<=n;n--){for(var r=this.bottom_up?n:this.height-1-n,i=0;i<t;i++)for(var o=this.datav.getUint8(this.pos++,!0),a=r*this.width*4+8*i*4,s=0;s<8&&8*i+s<this.width;s++){var l=this.palette[o>>7-s&1];this.data[a+4*s]=l.blue,this.data[a+4*s+1]=l.green,this.data[a+4*s+2]=l.red,this.data[a+4*s+3]=255}0!=e&&(this.pos+=4-e)}},Ft.prototype.bit4=function(){for(var t=Math.ceil(this.width/2),e=t%4,n=this.height-1;0<=n;n--){for(var r=this.bottom_up?n:this.height-1-n,i=0;i<t;i++){var o=this.datav.getUint8(this.pos++,!0),a=r*this.width*4+2*i*4,s=o>>4,l=15&o,h=this.palette[s];if(this.data[a]=h.blue,this.data[a+1]=h.green,this.data[a+2]=h.red,this.data[a+3]=255,2*i+1>=this.width)break;h=this.palette[l],this.data[a+4]=h.blue,this.data[a+4+1]=h.green,this.data[a+4+2]=h.red,this.data[a+4+3]=255}0!=e&&(this.pos+=4-e)}},Ft.prototype.bit8=function(){for(var t=this.width%4,e=this.height-1;0<=e;e--){for(var n=this.bottom_up?e:this.height-1-e,r=0;r<this.width;r++){var i=this.datav.getUint8(this.pos++,!0),o=n*this.width*4+4*r;if(i<this.palette.length){var a=this.palette[i];this.data[o]=a.red,this.data[o+1]=a.green,this.data[o+2]=a.blue,this.data[o+3]=255}else this.data[o]=255,this.data[o+1]=255,this.data[o+2]=255,this.data[o+3]=255}0!=t&&(this.pos+=4-t)}},Ft.prototype.bit15=function(){for(var t=this.width%3,e=parseInt("11111",2),n=this.height-1;0<=n;n--){for(var r=this.bottom_up?n:this.height-1-n,i=0;i<this.width;i++){var o=this.datav.getUint16(this.pos,!0);this.pos+=2;var a=(o&e)/e*255|0,s=(o>>5&e)/e*255|0,l=(o>>10&e)/e*255|0,h=o>>15?255:0,u=r*this.width*4+4*i;this.data[u]=l,this.data[u+1]=s,this.data[u+2]=a,this.data[u+3]=h}this.pos+=t}},Ft.prototype.bit16=function(){for(var t=this.width%3,e=parseInt("11111",2),n=parseInt("111111",2),r=this.height-1;0<=r;r--){for(var i=this.bottom_up?r:this.height-1-r,o=0;o<this.width;o++){var a=this.datav.getUint16(this.pos,!0);this.pos+=2;var s=(a&e)/e*255|0,l=(a>>5&n)/n*255|0,h=(a>>11)/e*255|0,u=i*this.width*4+4*o;this.data[u]=h,this.data[u+1]=l,this.data[u+2]=s,this.data[u+3]=255}this.pos+=t}},Ft.prototype.bit24=function(){for(var t=this.height-1;0<=t;t--){for(var e=this.bottom_up?t:this.height-1-t,n=0;n<this.width;n++){var r=this.datav.getUint8(this.pos++,!0),i=this.datav.getUint8(this.pos++,!0),o=this.datav.getUint8(this.pos++,!0),a=e*this.width*4+4*n;this.data[a]=o,this.data[a+1]=i,this.data[a+2]=r,this.data[a+3]=255}this.pos+=this.width%4}},Ft.prototype.bit32=function(){for(var t=this.height-1;0<=t;t--)for(var e=this.bottom_up?t:this.height-1-t,n=0;n<this.width;n++){var r=this.datav.getUint8(this.pos++,!0),i=this.datav.getUint8(this.pos++,!0),o=this.datav.getUint8(this.pos++,!0),a=this.datav.getUint8(this.pos++,!0),s=e*this.width*4+4*n;this.data[s]=o,this.data[s+1]=i,this.data[s+2]=r,this.data[s+3]=a}},Ft.prototype.getData=function(){return this.data},window.tmp=Ft,-/*- Copyright (c) 2013 Gildas Lormeau. All rights reserved.-- Redistribution and use in source and binary forms, with or without- modification, are permitted provided that the following conditions are met:-- 1. Redistributions of source code must retain the above copyright notice,- this list of conditions and the following disclaimer.-- 2. Redistributions in binary form must reproduce the above copyright- notice, this list of conditions and the following disclaimer in- the documentation and/or other materials provided with the distribution.-- 3. The names of the authors may not be used to endorse or promote products- derived from this software without specific prior written permission.-- THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED WARRANTIES,- INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND- FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL JCRAFT,- INC. OR ANY CONTRIBUTORS TO THIS SOFTWARE BE LIABLE FOR ANY DIRECT, INDIRECT,- INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT- LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA,- OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF- LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING- NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,- EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.- */-function(t){var d=15,g=573,e=[0,1,2,3,4,4,5,5,6,6,6,6,7,7,7,7,8,8,8,8,8,8,8,8,9,9,9,9,9,9,9,9,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,0,0,16,17,18,18,19,19,20,20,20,20,21,21,21,21,22,22,22,22,22,22,22,22,23,23,23,23,23,23,23,23,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29];function ct(){var p=this;function l(t,e){for(var n=0;n|=1&t,t>>>=1,n<<=1,0<--e;);return n>>>1}p.build_tree=function(t){var e,n,r,i=p.dyn_tree,o=p.stat_desc.static_tree,a=p.stat_desc.elems,s=-1;for(t.heap_len=0,t.heap_max=g,e=0;e<a;e++)0!==i[2*e]?(t.heap[++t.heap_len]=s=e,t.depth[e]=0):i[2*e+1]=0;for(;t.heap_len<2;)i[2*(r=t.heap[++t.heap_len]=s<2?++s:0)]=1,t.depth[r]=0,t.opt_len--,o&&(t.static_len-=o[2*r+1]);for(p.max_code=s,e=Math.floor(t.heap_len/2);1<=e;e--)t.pqdownheap(i,e);for(r=a;e=t.heap[1],t.heap[1]=t.heap[t.heap_len--],t.pqdownheap(i,1),n=t.heap[1],t.heap[--t.heap_max]=e,t.heap[--t.heap_max]=n,i[2*r]=i[2*e]+i[2*n],t.depth[r]=Math.max(t.depth[e],t.depth[n])+1,i[2*e+1]=i[2*n+1]=r,t.heap[1]=r++,t.pqdownheap(i,1),2<=t.heap_len;);t.heap[--t.heap_max]=t.heap[1],function(t){var e,n,r,i,o,a,s=p.dyn_tree,l=p.stat_desc.static_tree,h=p.stat_desc.extra_bits,u=p.stat_desc.extra_base,c=p.stat_desc.max_length,f=0;for(i=0;i<=d;i++)t.bl_count[i]=0;for(s[2*t.heap[t.heap_max]+1]=0,e=t.heap_max+1;e<g;e++)c<(i=s[2*s[2*(n=t.heap[e])+1]+1]+1)&&(i=c,f++),s[2*n+1]=i,n>p.max_code||(t.bl_count[i]++,o=0,u<=n&&(o=h[n-u]),a=s[2*n],t.opt_len+=a*(i+o),l&&(t.static_len+=a*(l[2*n+1]+o)));if(0!==f){do{for(i=c-1;0===t.bl_count[i];)i--;t.bl_count[i]--,t.bl_count[i+1]+=2,t.bl_count[c]--,f-=2}while(0<f);for(i=c;0!==i;i--)for(n=t.bl_count[i];0!==n;)(r=t.heap[--e])>p.max_code||(s[2*r+1]!=i&&(t.opt_len+=(i-s[2*r+1])*s[2*r],s[2*r+1]=i),n--)}}(t),function(t,e,n){var r,i,o,a=[],s=0;for(r=1;r<=d;r++)a[r]=s=s+n[r-1]<<1;for(i=0;i<=e;i++)0!==(o=t[2*i+1])&&(t[2*i]=l(a[o]++,o))}(i,p.max_code,t.bl_count)}}function ft(t,e,n,r,i){this.static_tree=t,this.extra_bits=e,this.extra_base=n,this.elems=r,this.max_length=i}ct._length_code=[0,1,2,3,4,5,6,7,8,8,9,9,10,10,11,11,12,12,12,12,13,13,13,13,14,14,14,14,15,15,15,15,16,16,16,16,16,16,16,16,17,17,17,17,17,17,17,17,18,18,18,18,18,18,18,18,19,19,19,19,19,19,19,19,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,28],ct.base_length=[0,1,2,3,4,5,6,7,8,10,12,14,16,20,24,28,32,40,48,56,64,80,96,112,128,160,192,224,0],ct.base_dist=[0,1,2,3,4,6,8,12,16,24,32,48,64,96,128,192,256,384,512,768,1024,1536,2048,3072,4096,6144,8192,12288,16384,24576],ct.d_code=function(t){return t<256?e[t]:e[256+(t>>>7)]},ct.extra_lbits=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],ct.extra_dbits=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],ct.extra_blbits=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],ct.bl_order=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],ft.static_ltree=[12,8,140,8,76,8,204,8,44,8,172,8,108,8,236,8,28,8,156,8,92,8,220,8,60,8,188,8,124,8,252,8,2,8,130,8,66,8,194,8,34,8,162,8,98,8,226,8,18,8,146,8,82,8,210,8,50,8,178,8,114,8,242,8,10,8,138,8,74,8,202,8,42,8,170,8,106,8,234,8,26,8,154,8,90,8,218,8,58,8,186,8,122,8,250,8,6,8,134,8,70,8,198,8,38,8,166,8,102,8,230,8,22,8,150,8,86,8,214,8,54,8,182,8,118,8,246,8,14,8,142,8,78,8,206,8,46,8,174,8,110,8,238,8,30,8,158,8,94,8,222,8,62,8,190,8,126,8,254,8,1,8,129,8,65,8,193,8,33,8,161,8,97,8,225,8,17,8,145,8,81,8,209,8,49,8,177,8,113,8,241,8,9,8,137,8,73,8,201,8,41,8,169,8,105,8,233,8,25,8,153,8,89,8,217,8,57,8,185,8,121,8,249,8,5,8,133,8,69,8,197,8,37,8,165,8,101,8,229,8,21,8,149,8,85,8,213,8,53,8,181,8,117,8,245,8,13,8,141,8,77,8,205,8,45,8,173,8,109,8,237,8,29,8,157,8,93,8,221,8,61,8,189,8,125,8,253,8,19,9,275,9,147,9,403,9,83,9,339,9,211,9,467,9,51,9,307,9,179,9,435,9,115,9,371,9,243,9,499,9,11,9,267,9,139,9,395,9,75,9,331,9,203,9,459,9,43,9,299,9,171,9,427,9,107,9,363,9,235,9,491,9,27,9,283,9,155,9,411,9,91,9,347,9,219,9,475,9,59,9,315,9,187,9,443,9,123,9,379,9,251,9,507,9,7,9,263,9,135,9,391,9,71,9,327,9,199,9,455,9,39,9,295,9,167,9,423,9,103,9,359,9,231,9,487,9,23,9,279,9,151,9,407,9,87,9,343,9,215,9,471,9,55,9,311,9,183,9,439,9,119,9,375,9,247,9,503,9,15,9,271,9,143,9,399,9,79,9,335,9,207,9,463,9,47,9,303,9,175,9,431,9,111,9,367,9,239,9,495,9,31,9,287,9,159,9,415,9,95,9,351,9,223,9,479,9,63,9,319,9,191,9,447,9,127,9,383,9,255,9,511,9,0,7,64,7,32,7,96,7,16,7,80,7,48,7,112,7,8,7,72,7,40,7,104,7,24,7,88,7,56,7,120,7,4,7,68,7,36,7,100,7,20,7,84,7,52,7,116,7,3,8,131,8,67,8,195,8,35,8,163,8,99,8,227,8],ft.static_dtree=[0,5,16,5,8,5,24,5,4,5,20,5,12,5,28,5,2,5,18,5,10,5,26,5,6,5,22,5,14,5,30,5,1,5,17,5,9,5,25,5,5,5,21,5,13,5,29,5,3,5,19,5,11,5,27,5,7,5,23,5],ft.static_l_desc=new ft(ft.static_ltree,ct.extra_lbits,257,286,d),ft.static_d_desc=new ft(ft.static_dtree,ct.extra_dbits,0,30,d),ft.static_bl_desc=new ft(null,ct.extra_blbits,0,19,7);function n(t,e,n,r,i){this.good_length=t,this.max_lazy=e,this.nice_length=n,this.max_chain=r,this.func=i}var pt=[new n(0,0,0,0,0),new n(4,4,8,4,1),new n(4,5,16,8,1),new n(4,6,32,32,1),new n(4,4,16,16,2),new n(8,16,32,32,2),new n(8,16,128,128,2),new n(8,32,128,256,2),new n(32,128,258,1024,2),new n(32,258,258,4096,2)],dt=["need dictionary","stream end","","","stream error","data error","","buffer error","",""];function gt(t,e,n,r){var i=t[2*e],o=t[2*n];return i<o||i==o&&r[e]<=r[n]}function r(){var l,h,u,c,f,p,d,g,i,m,y,v,w,a,b,x,N,L,A,S,_,F,P,k,I,C,B,j,E,M,s,O,q,T,R,D,U,o,z,H,W,V=this,G=new ct,Y=new ct,J=new ct;function X(){var t;for(t=0;t<286;t++)s[2*t]=0;for(t=0;t<30;t++)O[2*t]=0;for(t=0;t<19;t++)q[2*t]=0;s[512]=1,V.opt_len=V.static_len=0,D=o=0}function K(t,e){var n,r,i=-1,o=t[1],a=0,s=7,l=4;for(0===o&&(s=138,l=3),t[2*(e+1)+1]=65535,n=0;n<=e;n++)r=o,o=t[2*(n+1)+1],++a<s&&r==o||(a<l?q[2*r]+=a:0!==r?(r!=i&&q[2*r]++,q[32]++):a<=10?q[34]++:q[36]++,i=r,l=(a=0)===o?(s=138,3):r==o?(s=6,3):(s=7,4))}function Z(t){V.pending_buf[V.pending++]=t}function Q(t){Z(255&t),Z(t>>>8&255)}function $(t,e){var n,r=e;16-r<W?(Q(H|=(n=t)<<W&65535),H=n>>>16-W,W+=r-16):(H|=t<<W&65535,W+=r)}function tt(t,e){var n=2*t;$(65535&e[n],65535&e[n+1])}function et(t,e){var n,r,i=-1,o=t[1],a=0,s=7,l=4;for(0===o&&(s=138,l=3),n=0;n<=e;n++)if(r=o,o=t[2*(n+1)+1],!(++a<s&&r==o)){if(a<l)for(;tt(r,q),0!=--a;);else 0!==r?(r!=i&&(tt(r,q),a--),tt(16,q),$(a-3,2)):a<=10?(tt(17,q),$(a-3,3)):(tt(18,q),$(a-11,7));i=r,l=(a=0)===o?(s=138,3):r==o?(s=6,3):(s=7,4)}}function nt(){16==W?(Q(H),W=H=0):8<=W&&(Z(255&H),H>>>=8,W-=8)}function rt(t,e){var n,r,i;if(V.pending_buf[U+2*D]=t>>>8&255,V.pending_buf[U+2*D+1]=255&t,V.pending_buf[T+D]=255&e,D++,0===t?s[2*e]++:(o++,t--,s[2*(ct._length_code[e]+256+1)]++,O[2*ct.d_code(t)]++),0==(8191&D)&&2<B){for(n=8*D,r=_-N,i=0;i<30;i++)n+=O[2*i]*(5+ct.extra_dbits[i]);if(n>>>=3,o<Math.floor(D/2)&&n<Math.floor(r/2))return!0}return D==R-1}function it(t,e){var n,r,i,o,a=0;if(0!==D)for(;n=V.pending_buf[U+2*a]<<8&65280|255&V.pending_buf[U+2*a+1],r=255&V.pending_buf[T+a],a++,0===n?tt(r,t):(tt((i=ct._length_code[r])+256+1,t),0!==(o=ct.extra_lbits[i])&&$(r-=ct.base_length[i],o),tt(i=ct.d_code(--n),e),0!==(o=ct.extra_dbits[i])&&$(n-=ct.base_dist[i],o)),a<D;);tt(256,t),z=t[513]}function ot(){8<W?Q(H):0<W&&Z(255&H),W=H=0}function at(t,e,n){var r,i,o;$(0+(n?1:0),3),r=t,i=e,o=!0,ot(),z=8,o&&(Q(i),Q(~i)),V.pending_buf.set(g.subarray(r,r+i),V.pending),V.pending+=i}function e(t,e,n){var r,i,o=0;0<B?(G.build_tree(V),Y.build_tree(V),o=function(){var t;for(K(s,G.max_code),K(O,Y.max_code),J.build_tree(V),t=18;3<=t&&0===q[2*ct.bl_order[t]+1];t--);return V.opt_len+=3*(t+1)+5+5+4,t}(),r=V.opt_len+3+7>>>3,(i=V.static_len+3+7>>>3)<=r&&(r=i)):r=i=e+5,e+4<=r&&-1!=t?at(t,e,n):i==r?($(2+(n?1:0),3),it(ft.static_ltree,ft.static_dtree)):($(4+(n?1:0),3),function(t,e,n){var r;for($(t-257,5),$(e-1,5),$(n-4,4),r=0;r<n;r++)$(q[2*ct.bl_order[r]+1],3);et(s,t-1),et(O,e-1)}(G.max_code+1,Y.max_code+1,o+1),it(s,O)),X(),n&&ot()}function st(t){e(0<=N?N:-1,_-N,t),N=_,l.flush_pending()}function lt(){var t,e,n,r;do{if(0===(r=i-P-_)&&0===_&&0===P)r=f;else if(-1==r)r--;else if(f+f-262<=_){for(g.set(g.subarray(f,f+f),0),F-=f,_-=f,N-=f,n=t=w;e=65535&y[--n],y[n]=f<=e?e-f:0,0!=--t;);for(n=t=f;e=65535&m[--n],m[n]=f<=e?e-f:0,0!=--t;);r+=f}if(0===l.avail_in)return;t=l.read_buf(g,_+P,r),3<=(P+=t)&&(v=((v=255&g[_])<<x^255&g[_+1])&b)}while(P<262&&0!==l.avail_in)}function ht(t){var e,n,r=I,i=_,o=k,a=f-262<_?_-(f-262):0,s=M,l=d,h=_+258,u=g[i+o-1],c=g[i+o];E<=k&&(r>>=2),P<s&&(s=P);do{if(g[(e=t)+o]==c&&g[e+o-1]==u&&g[e]==g[i]&&g[++e]==g[i+1]){i+=2,e++;do{}while(g[++i]==g[++e]&&g[++i]==g[++e]&&g[++i]==g[++e]&&g[++i]==g[++e]&&g[++i]==g[++e]&&g[++i]==g[++e]&&g[++i]==g[++e]&&g[++i]==g[++e]&&i<h);if(n=258-(h-i),i=h-258,o<n){if(F=t,s<=(o=n))break;u=g[i+o-1],c=g[i+o]}}}while((t=65535&m[t&l])>a&&0!=--r);return o<=P?o:P}function ut(t){return t.total_in=t.total_out=0,t.msg=null,V.pending=0,V.pending_out=0,h=113,c=0,G.dyn_tree=s,G.stat_desc=ft.static_l_desc,Y.dyn_tree=O,Y.stat_desc=ft.static_d_desc,J.dyn_tree=q,J.stat_desc=ft.static_bl_desc,W=H=0,z=8,X(),function(){var t;for(i=2*f,t=y[w-1]=0;t<w-1;t++)y[t]=0;C=pt[B].max_lazy,E=pt[B].good_length,M=pt[B].nice_length,I=pt[B].max_chain,L=k=2,v=S=P=N=_=0}(),0}V.depth=[],V.bl_count=[],V.heap=[],s=[],O=[],q=[],V.pqdownheap=function(t,e){for(var n=V.heap,r=n[e],i=e<<1;i<=V.heap_len&&(i<V.heap_len&>(t,n[i+1],n[i],V.depth)&&i++,!gt(t,r,n[i],V.depth));)n[e]=n[i],e=i,i<<=1;n[e]=r},V.deflateInit=function(t,e,n,r,i,o){return r||(r=8),i||(i=8),o||(o=0),t.msg=null,-1==e&&(e=6),i<1||9<i||8!=r||n<9||15<n||e<0||9<e||o<0||2<o?-2:(t.dstate=V,d=(f=1<<(p=n))-1,b=(w=1<<(a=i+7))-1,x=Math.floor((a+3-1)/3),g=new Uint8Array(2*f),m=[],y=[],R=1<<i+6,V.pending_buf=new Uint8Array(4*R),u=4*R,U=Math.floor(R/2),T=3*R,B=e,j=o,ut(t))},V.deflateEnd=function(){return 42!=h&&113!=h&&666!=h?-2:(V.pending_buf=null,g=m=y=null,V.dstate=null,113==h?-3:0)},V.deflateParams=function(t,e,n){var r=0;return-1==e&&(e=6),e<0||9<e||n<0||2<n?-2:(pt[B].func!=pt[e].func&&0!==t.total_in&&(r=t.deflate(1)),B!=e&&(C=pt[B=e].max_lazy,E=pt[B].good_length,M=pt[B].nice_length,I=pt[B].max_chain),j=n,r)},V.deflateSetDictionary=function(t,e,n){var r,i=n,o=0;if(!e||42!=h)return-2;if(i<3)return 0;for(f-262<i&&(o=n-(i=f-262)),g.set(e.subarray(o,o+i),0),N=_=i,v=((v=255&g[0])<<x^255&g[1])&b,r=0;r<=i-3;r++)v=(v<<x^255&g[r+2])&b,m[r&d]=y[v],y[v]=r;return 0},V.deflate=function(t,e){var n,r,i,o,a,s;if(4<e||e<0)return-2;if(!t.next_out||!t.next_in&&0!==t.avail_in||666==h&&4!=e)return t.msg=dt[4],-2;if(0===t.avail_out)return t.msg=dt[7],-5;if(l=t,o=c,c=e,42==h&&(r=8+(p-8<<4)<<8,3<(i=(B-1&255)>>1)&&(i=3),r|=i<<6,0!==_&&(r|=32),h=113,Z((s=r+=31-r%31)>>8&255),Z(255&s)),0!==V.pending){if(l.flush_pending(),0===l.avail_out)return c=-1,0}else if(0===l.avail_in&&e<=o&&4!=e)return l.msg=dt[7],-5;if(666==h&&0!==l.avail_in)return t.msg=dt[7],-5;if(0!==l.avail_in||0!==P||0!=e&&666!=h){switch(a=-1,pt[B].func){case 0:a=function(t){var e,n=65535;for(u-5<n&&(n=u-5);;){if(P<=1){if(lt(),0===P&&0==t)return 0;if(0===P)break}if(_+=P,e=N+n,((P=0)===_||e<=_)&&(P=_-e,_=e,st(!1),0===l.avail_out))return 0;if(f-262<=_-N&&(st(!1),0===l.avail_out))return 0}return st(4==t),0===l.avail_out?4==t?2:0:4==t?3:1}(e);break;case 1:a=function(t){for(var e,n=0;;){if(P<262){if(lt(),P<262&&0==t)return 0;if(0===P)break}if(3<=P&&(v=(v<<x^255&g[_+2])&b,n=65535&y[v],m[_&d]=y[v],y[v]=_),0!==n&&(_-n&65535)<=f-262&&2!=j&&(L=ht(n)),3<=L)if(e=rt(_-F,L-3),P-=L,L<=C&&3<=P){for(L--;v=(v<<x^255&g[++_+2])&b,n=65535&y[v],m[_&d]=y[v],y[v]=_,0!=--L;);_++}else _+=L,L=0,v=((v=255&g[_])<<x^255&g[_+1])&b;else e=rt(0,255&g[_]),P--,_++;if(e&&(st(!1),0===l.avail_out))return 0}return st(4==t),0===l.avail_out?4==t?2:0:4==t?3:1}(e);break;case 2:a=function(t){for(var e,n,r=0;;){if(P<262){if(lt(),P<262&&0==t)return 0;if(0===P)break}if(3<=P&&(v=(v<<x^255&g[_+2])&b,r=65535&y[v],m[_&d]=y[v],y[v]=_),k=L,A=F,L=2,0!==r&&k<C&&(_-r&65535)<=f-262&&(2!=j&&(L=ht(r)),L<=5&&(1==j||3==L&&4096<_-F)&&(L=2)),3<=k&&L<=k){for(n=_+P-3,e=rt(_-1-A,k-3),P-=k-1,k-=2;++_<=n&&(v=(v<<x^255&g[_+2])&b,r=65535&y[v],m[_&d]=y[v],y[v]=_),0!=--k;);if(S=0,L=2,_++,e&&(st(!1),0===l.avail_out))return 0}else if(0!==S){if((e=rt(0,255&g[_-1]))&&st(!1),_++,P--,0===l.avail_out)return 0}else S=1,_++,P--}return 0!==S&&(e=rt(0,255&g[_-1]),S=0),st(4==t),0===l.avail_out?4==t?2:0:4==t?3:1}(e)}if(2!=a&&3!=a||(h=666),0==a||2==a)return 0===l.avail_out&&(c=-1),0;if(1==a){if(1==e)$(2,3),tt(256,ft.static_ltree),nt(),1+z+10-W<9&&($(2,3),tt(256,ft.static_ltree),nt()),z=7;else if(at(0,0,!1),3==e)for(n=0;n<w;n++)y[n]=0;if(l.flush_pending(),0===l.avail_out)return c=-1,0}}return 4!=e?0:1}}function i(){this.next_in_index=0,this.next_out_index=0,this.avail_in=0,this.total_in=0,this.avail_out=0,this.total_out=0}i.prototype={deflateInit:function(t,e){return this.dstate=new r,e||(e=d),this.dstate.deflateInit(this,t,e)},deflate:function(t){return this.dstate?this.dstate.deflate(this,t):-2},deflateEnd:function(){if(!this.dstate)return-2;var t=this.dstate.deflateEnd();return this.dstate=null,t},deflateParams:function(t,e){return this.dstate?this.dstate.deflateParams(this,t,e):-2},deflateSetDictionary:function(t,e){return this.dstate?this.dstate.deflateSetDictionary(this,t,e):-2},read_buf:function(t,e,n){var r=this.avail_in;return n<r&&(r=n),0===r?0:(this.avail_in-=r,t.set(this.next_in.subarray(this.next_in_index,this.next_in_index+r),e),this.next_in_index+=r,this.total_in+=r,r)},flush_pending:function(){var t=this,e=t.dstate.pending;e>t.avail_out&&(e=t.avail_out),0!==e&&(t.next_out.set(t.dstate.pending_buf.subarray(t.dstate.pending_out,t.dstate.pending_out+e),t.next_out_index),t.next_out_index+=e,t.dstate.pending_out+=e,t.total_out+=e,t.avail_out-=e,t.dstate.pending-=e,0===t.dstate.pending&&(t.dstate.pending_out=0))}};var o=t.zip||t;o.Deflater=o._jzlib_Deflater=function(t){var s=new i,l=new Uint8Array(512),e=t?t.level:-1;void 0===e&&(e=-1),s.deflateInit(e),s.next_out=l,this.append=function(t,e){var n,r=[],i=0,o=0,a=0;if(t.length){s.next_in_index=0,s.next_in=t,s.avail_in=t.length;do{if(s.next_out_index=0,s.avail_out=512,0!=s.deflate(0))throw new Error("deflating: "+s.msg);s.next_out_index&&(512==s.next_out_index?r.push(new Uint8Array(l)):r.push(new Uint8Array(l.subarray(0,s.next_out_index)))),a+=s.next_out_index,e&&0<s.next_in_index&&s.next_in_index!=i&&(e(s.next_in_index),i=s.next_in_index)}while(0<s.avail_in||0===s.avail_out);return n=new Uint8Array(a),r.forEach(function(t){n.set(t,o),o+=t.length}),n}},this.flush=function(){var t,e,n=[],r=0,i=0;do{if(s.next_out_index=0,s.avail_out=512,1!=(t=s.deflate(4))&&0!=t)throw new Error("deflating: "+s.msg);0<512-s.avail_out&&n.push(new Uint8Array(l.subarray(0,s.next_out_index))),i+=s.next_out_index}while(0<s.avail_in||0===s.avail_out);return s.deflateEnd(),e=new Uint8Array(i),n.forEach(function(t){e.set(t,r),r+=t.length}),e}}}("undefined"!=typeof self&&self||"undefined"!=typeof window&&window||"undefined"!=typeof global&&global||Function('return typeof this === "object" && this.content')()||Function("return this")()),("undefined"!=typeof self&&self||"undefined"!=typeof window&&window||"undefined"!=typeof global&&global||Function('return typeof this === "object" && this.content')()||Function("return this")()).RGBColor=function(t){var e;t=t||"",this.ok=!1,"#"==t.charAt(0)&&(t=t.substr(1,6)),t=(t=t.replace(/ /g,"")).toLowerCase();var n={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dodgerblue:"1e90ff",feldspar:"d19275",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgrey:"d3d3d3",lightgreen:"90ee90",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslateblue:"8470ff",lightslategray:"778899",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"00ff00",limegreen:"32cd32",linen:"faf0e6",magenta:"ff00ff",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370d8",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"d87093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",red:"ff0000",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",violetred:"d02090",wheat:"f5deb3",white:"ffffff",whitesmoke:"f5f5f5",yellow:"ffff00",yellowgreen:"9acd32"};for(var r in n)t==r&&(t=n[r]);for(var i=[{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,example:["rgb(123, 234, 45)","rgb(255,234,245)"],process:function(t){return[parseInt(t[1]),parseInt(t[2]),parseInt(t[3])]}},{re:/^(\w{2})(\w{2})(\w{2})$/,example:["#00ff00","336699"],process:function(t){return[parseInt(t[1],16),parseInt(t[2],16),parseInt(t[3],16)]}},{re:/^(\w{1})(\w{1})(\w{1})$/,example:["#fb0","f0f"],process:function(t){return[parseInt(t[1]+t[1],16),parseInt(t[2]+t[2],16),parseInt(t[3]+t[3],16)]}}],o=0;o<i.length;o++){var a=i[o].re,s=i[o].process,l=a.exec(t);l&&(e=s(l),this.r=e[0],this.g=e[1],this.b=e[2],this.ok=!0)}this.r=this.r<0||isNaN(this.r)?0:255<this.r?255:this.r,this.g=this.g<0||isNaN(this.g)?0:255<this.g?255:this.g,this.b=this.b<0||isNaN(this.b)?0:255<this.b?255:this.b,this.toRGB=function(){return"rgb("+this.r+", "+this.g+", "+this.b+")"},this.toHex=function(){var t=this.r.toString(16),e=this.g.toString(16),n=this.b.toString(16);return 1==t.length&&(t="0"+t),1==e.length&&(e="0"+e),1==n.length&&(n="0"+n),"#"+t+e+n}},function(t){var n="+".charCodeAt(0),r="/".charCodeAt(0),i="0".charCodeAt(0),o="a".charCodeAt(0),a="A".charCodeAt(0),s="-".charCodeAt(0),l="_".charCodeAt(0),u=function(t){var e=t.charCodeAt(0);return e===n||e===s?62:e===r||e===l?63:e<i?-1:e<i+10?e-i+26+26:e<a+26?e-a:e<o+26?e-o+26:void 0};t.API.TTFFont=function(){function i(t,e,n){var r;if(this.rawData=t,r=this.contents=new J(t),this.contents.pos=4,"ttcf"===r.readString(4)){if(!e)throw new Error("Must specify a font name for TTC files.");throw new Error("Font "+e+" not found in TTC file.")}r.pos=0,this.parse(),this.subset=new P(this),this.registerTTF()}return i.open=function(t,e,n,r){if("string"!=typeof n)throw new Error("Invalid argument supplied in TTFFont.open");return new i(function(t){var e,n,r,i,o,a;if(0<t.length%4)throw new Error("Invalid string. Length must be a multiple of 4");var s=t.length;o="="===t.charAt(s-2)?2:"="===t.charAt(s-1)?1:0,a=new Uint8Array(3*t.length/4-o),r=0<o?t.length-4:t.length;var l=0;function h(t){a[l++]=t}for(n=e=0;e<r;e+=4,n+=3)h((16711680&(i=u(t.charAt(e))<<18|u(t.charAt(e+1))<<12|u(t.charAt(e+2))<<6|u(t.charAt(e+3))))>>16),h((65280&i)>>8),h(255&i);return 2===o?h(255&(i=u(t.charAt(e))<<2|u(t.charAt(e+1))>>4)):1===o&&(h((i=u(t.charAt(e))<<10|u(t.charAt(e+1))<<4|u(t.charAt(e+2))>>2)>>8&255),h(255&i)),a}(n),e,r)},i.prototype.parse=function(){return this.directory=new e(this.contents),this.head=new p(this),this.name=new b(this),this.cmap=new y(this),this.toUnicode=new Map,this.hhea=new g(this),this.maxp=new x(this),this.hmtx=new N(this),this.post=new v(this),this.os2=new m(this),this.loca=new F(this),this.glyf=new A(this),this.ascender=this.os2.exists&&this.os2.ascender||this.hhea.ascender,this.decender=this.os2.exists&&this.os2.decender||this.hhea.decender,this.lineGap=this.os2.exists&&this.os2.lineGap||this.hhea.lineGap,this.bbox=[this.head.xMin,this.head.yMin,this.head.xMax,this.head.yMax]},i.prototype.registerTTF=function(){var i,t,e,n,r;if(this.scaleFactor=1e3/this.head.unitsPerEm,this.bbox=function(){var t,e,n,r;for(r=[],t=0,e=(n=this.bbox).length;t<e;t++)i=n[t],r.push(Math.round(i*this.scaleFactor));return r}.call(this),this.stemV=0,this.post.exists?(e=255&(n=this.post.italic_angle),!0&(t=n>>16)&&(t=-(1+(65535^t))),this.italicAngle=+(t+"."+e)):this.italicAngle=0,this.ascender=Math.round(this.ascender*this.scaleFactor),this.decender=Math.round(this.decender*this.scaleFactor),this.lineGap=Math.round(this.lineGap*this.scaleFactor),this.capHeight=this.os2.exists&&this.os2.capHeight||this.ascender,this.xHeight=this.os2.exists&&this.os2.xHeight||0,this.familyClass=(this.os2.exists&&this.os2.familyClass||0)>>8,this.isSerif=1===(r=this.familyClass)||2===r||3===r||4===r||5===r||7===r,this.isScript=10===this.familyClass,this.flags=0,this.post.isFixedPitch&&(this.flags|=1),this.isSerif&&(this.flags|=2),this.isScript&&(this.flags|=8),0!==this.italicAngle&&(this.flags|=64),this.flags|=32,!this.cmap.unicode)throw new Error("No unicode cmap for font")},i.prototype.characterToGlyph=function(t){var e;return(null!=(e=this.cmap.unicode)?e.codeMap[t]:void 0)||0},i.prototype.widthOfGlyph=function(t){var e;return e=1e3/this.head.unitsPerEm,this.hmtx.forGlyph(t).advance*e},i.prototype.widthOfString=function(t,e,n){var r,i,o,a,s;for(i=a=o=0,s=(t=""+t).length;0<=s?a<s:s<a;i=0<=s?++a:--a)r=t.charCodeAt(i),o+=this.widthOfGlyph(this.characterToGlyph(r))+n*(1e3/e)||0;return o*(e/1e3)},i.prototype.lineHeight=function(t,e){var n;return null==e&&(e=!1),n=e?this.lineGap:0,(this.ascender+n-this.decender)/1e3*t},i}();var h,J=function(){function t(t){this.data=null!=t?t:[],this.pos=0,this.length=this.data.length}return t.prototype.readByte=function(){return this.data[this.pos++]},t.prototype.writeByte=function(t){return this.data[this.pos++]=t},t.prototype.readUInt32=function(){return 16777216*this.readByte()+(this.readByte()<<16)+(this.readByte()<<8)+this.readByte()},t.prototype.writeUInt32=function(t){return this.writeByte(t>>>24&255),this.writeByte(t>>16&255),this.writeByte(t>>8&255),this.writeByte(255&t)},t.prototype.readInt32=function(){var t;return 2147483648<=(t=this.readUInt32())?t-4294967296:t},t.prototype.writeInt32=function(t){return t<0&&(t+=4294967296),this.writeUInt32(t)},t.prototype.readUInt16=function(){return this.readByte()<<8|this.readByte()},t.prototype.writeUInt16=function(t){return this.writeByte(t>>8&255),this.writeByte(255&t)},t.prototype.readInt16=function(){var t;return 32768<=(t=this.readUInt16())?t-65536:t},t.prototype.writeInt16=function(t){return t<0&&(t+=65536),this.writeUInt16(t)},t.prototype.readString=function(t){var e,n,r;for(n=[],e=r=0;0<=t?r<t:t<r;e=0<=t?++r:--r)n[e]=String.fromCharCode(this.readByte());return n.join("")},t.prototype.writeString=function(t){var e,n,r,i;for(i=[],e=n=0,r=t.length;0<=r?n<r:r<n;e=0<=r?++n:--n)i.push(this.writeByte(t.charCodeAt(e)));return i},t.prototype.readShort=function(){return this.readInt16()},t.prototype.writeShort=function(t){return this.writeInt16(t)},t.prototype.readLongLong=function(){var t,e,n,r,i,o,a,s;return t=this.readByte(),e=this.readByte(),n=this.readByte(),r=this.readByte(),i=this.readByte(),o=this.readByte(),a=this.readByte(),s=this.readByte(),128&t?-1*(72057594037927940*(255^t)+281474976710656*(255^e)+1099511627776*(255^n)+4294967296*(255^r)+16777216*(255^i)+65536*(255^o)+256*(255^a)+(255^s)+1):72057594037927940*t+281474976710656*e+1099511627776*n+4294967296*r+16777216*i+65536*o+256*a+s},t.prototype.writeLongLong=function(t){var e,n;return e=Math.floor(t/4294967296),n=4294967295&t,this.writeByte(e>>24&255),this.writeByte(e>>16&255),this.writeByte(e>>8&255),this.writeByte(255&e),this.writeByte(n>>24&255),this.writeByte(n>>16&255),this.writeByte(n>>8&255),this.writeByte(255&n)},t.prototype.readInt=function(){return this.readInt32()},t.prototype.writeInt=function(t){return this.writeInt32(t)},t.prototype.read=function(t){var e,n;for(e=[],n=0;0<=t?n<t:t<n;0<=t?++n:--n)e.push(this.readByte());return e},t.prototype.write=function(t){var e,n,r,i;for(i=[],n=0,r=t.length;n<r;n++)e=t[n],i.push(this.writeByte(e));return i},t}(),e=function(){var d;function t(t){var e,n,r;for(this.scalarType=t.readInt(),this.tableCount=t.readShort(),this.searchRange=t.readShort(),this.entrySelector=t.readShort(),this.rangeShift=t.readShort(),this.tables={},n=0,r=this.tableCount;0<=r?n<r:r<n;0<=r?++n:--n)e={tag:t.readString(4),checksum:t.readInt(),offset:t.readInt(),length:t.readInt()},this.tables[e.tag]=e}return t.prototype.encode=function(t){var e,n,r,i,o,a,s,l,h,u,c,f,p;for(p in c=Object.keys(t).length,a=Math.log(2),h=16*Math.floor(Math.log(c)/a),i=Math.floor(h/a),l=16*c-h,(n=new J).writeInt(this.scalarType),n.writeShort(c),n.writeShort(h),n.writeShort(i),n.writeShort(l),r=16*c,s=n.pos+r,o=null,f=[],t)for(u=t[p],n.writeString(p),n.writeInt(d(u)),n.writeInt(s),n.writeInt(u.length),f=f.concat(u),"head"===p&&(o=s),s+=u.length;s%4;)f.push(0),s++;return n.write(f),e=2981146554-d(n.data),n.pos=o+8,n.writeUInt32(e),n.data},d=function(t){var e,n,r,i;for(t=L.call(t);t.length%4;)t.push(0);for(n=new J(t),r=e=0,i=t.length;r<i;r+=4)e+=n.readUInt32();return 4294967295&e},t}(),c={}.hasOwnProperty,f=function(t,e){for(var n in e)c.call(e,n)&&(t[n]=e[n]);function r(){this.constructor=t}return r.prototype=e.prototype,t.prototype=new r,t.__super__=e.prototype,t};h=function(){function t(t){var e;this.file=t,e=this.file.directory.tables[this.tag],this.exists=!!e,e&&(this.offset=e.offset,this.length=e.length,this.parse(this.file.contents))}return t.prototype.parse=function(){},t.prototype.encode=function(){},t.prototype.raw=function(){return this.exists?(this.file.contents.pos=this.offset,this.file.contents.read(this.length)):null},t}();var p=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return f(e,h),e.prototype.tag="head",e.prototype.parse=function(t){return t.pos=this.offset,this.version=t.readInt(),this.revision=t.readInt(),this.checkSumAdjustment=t.readInt(),this.magicNumber=t.readInt(),this.flags=t.readShort(),this.unitsPerEm=t.readShort(),this.created=t.readLongLong(),this.modified=t.readLongLong(),this.xMin=t.readShort(),this.yMin=t.readShort(),this.xMax=t.readShort(),this.yMax=t.readShort(),this.macStyle=t.readShort(),this.lowestRecPPEM=t.readShort(),this.fontDirectionHint=t.readShort(),this.indexToLocFormat=t.readShort(),this.glyphDataFormat=t.readShort()},e.prototype.encode=function(t){var e;return(e=new J).writeInt(this.version),e.writeInt(this.revision),e.writeInt(this.checkSumAdjustment),e.writeInt(this.magicNumber),e.writeShort(this.flags),e.writeShort(this.unitsPerEm),e.writeLongLong(this.created),e.writeLongLong(this.modified),e.writeShort(this.xMin),e.writeShort(this.yMin),e.writeShort(this.xMax),e.writeShort(this.yMax),e.writeShort(this.macStyle),e.writeShort(this.lowestRecPPEM),e.writeShort(this.fontDirectionHint),e.writeShort(t),e.writeShort(this.glyphDataFormat),e.data},e}(),d=function(){function t(n,t){var e,r,i,o,a,s,l,h,u,c,f,p,d,g,m,y,v,w;switch(this.platformID=n.readUInt16(),this.encodingID=n.readShort(),this.offset=t+n.readInt(),u=n.pos,n.pos=this.offset,this.format=n.readUInt16(),this.length=n.readUInt16(),this.language=n.readUInt16(),this.isUnicode=3===this.platformID&&1===this.encodingID&&4===this.format||0===this.platformID&&4===this.format,this.codeMap={},this.format){case 0:for(s=m=0;m<256;s=++m)this.codeMap[s]=n.readByte();break;case 4:for(f=n.readUInt16(),c=f/2,n.pos+=6,i=function(){var t,e;for(e=[],s=t=0;0<=c?t<c:c<t;s=0<=c?++t:--t)e.push(n.readUInt16());return e}(),n.pos+=2,d=function(){var t,e;for(e=[],s=t=0;0<=c?t<c:c<t;s=0<=c?++t:--t)e.push(n.readUInt16());return e}(),l=function(){var t,e;for(e=[],s=t=0;0<=c?t<c:c<t;s=0<=c?++t:--t)e.push(n.readUInt16());return e}(),h=function(){var t,e;for(e=[],s=t=0;0<=c?t<c:c<t;s=0<=c?++t:--t)e.push(n.readUInt16());return e}(),r=(this.length-n.pos+this.offset)/2,a=function(){var t,e;for(e=[],s=t=0;0<=r?t<r:r<t;s=0<=r?++t:--t)e.push(n.readUInt16());return e}(),s=y=0,w=i.length;y<w;s=++y)for(g=i[s],e=v=p=d[s];p<=g?v<=g:g<=v;e=p<=g?++v:--v)0===h[s]?o=e+l[s]:0!==(o=a[h[s]/2+(e-p)-(c-s)]||0)&&(o+=l[s]),this.codeMap[e]=65535&o}n.pos=u}return t.encode=function(t,e){var n,r,i,o,a,s,l,h,u,c,f,p,d,g,m,y,v,w,b,x,N,L,A,S,_,F,P,k,I,C,B,j,E,M,O,q,T,R,D,U,z,H,W,V,G,Y;switch(k=new J,o=Object.keys(t).sort(function(t,e){return t-e}),e){case"macroman":for(d=0,g=function(){var t,e;for(e=[],p=t=0;t<256;p=++t)e.push(0);return e}(),y={0:0},i={},I=0,E=o.length;I<E;I++)null==y[W=t[r=o[I]]]&&(y[W]=++d),i[r]={old:t[r],new:y[t[r]]},g[r]=y[t[r]];return k.writeUInt16(1),k.writeUInt16(0),k.writeUInt32(12),k.writeUInt16(0),k.writeUInt16(262),k.writeUInt16(0),k.write(g),{charMap:i,subtable:k.data,maxGlyphID:d+1};case"unicode":for(F=[],u=[],y={},n={},m=l=null,C=v=0,M=o.length;C<M;C++)null==y[b=t[r=o[C]]]&&(y[b]=++v),n[r]={old:b,new:y[b]},a=y[b]-r,null!=m&&a===l||(m&&u.push(m),F.push(r),l=a),m=r;for(m&&u.push(m),u.push(65535),F.push(65535),S=2*(A=F.length),L=2*Math.pow(Math.log(A)/Math.LN2,2),c=Math.log(L/2)/Math.LN2,N=2*A-L,s=[],x=[],f=[],p=B=0,O=F.length;B<O;p=++B){if(_=F[p],h=u[p],65535===_){s.push(0),x.push(0);break}if(32768<=_-(P=n[_].new))for(s.push(0),x.push(2*(f.length+A-p)),r=j=_;_<=h?j<=h:h<=j;r=_<=h?++j:--j)f.push(n[r].new);else s.push(P-_),x.push(0)}for(k.writeUInt16(3),k.writeUInt16(1),k.writeUInt32(12),k.writeUInt16(4),k.writeUInt16(16+8*A+2*f.length),k.writeUInt16(0),k.writeUInt16(S),k.writeUInt16(L),k.writeUInt16(c),k.writeUInt16(N),z=0,q=u.length;z<q;z++)r=u[z],k.writeUInt16(r);for(k.writeUInt16(0),H=0,T=F.length;H<T;H++)r=F[H],k.writeUInt16(r);for(V=0,R=s.length;V<R;V++)a=s[V],k.writeUInt16(a);for(G=0,D=x.length;G<D;G++)w=x[G],k.writeUInt16(w);for(Y=0,U=f.length;Y<U;Y++)d=f[Y],k.writeUInt16(d);return{charMap:n,subtable:k.data,maxGlyphID:v+1}}},t}(),y=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return f(e,h),e.prototype.tag="cmap",e.prototype.parse=function(t){var e,n,r;for(t.pos=this.offset,this.version=t.readUInt16(),n=t.readUInt16(),this.tables=[],this.unicode=null,r=0;0<=n?r<n:n<r;0<=n?++r:--r)e=new d(t,this.offset),this.tables.push(e),e.isUnicode&&null==this.unicode&&(this.unicode=e);return!0},e.encode=function(t,e){var n,r;return null==e&&(e="macroman"),n=d.encode(t,e),(r=new J).writeUInt16(0),r.writeUInt16(1),n.table=r.data.concat(n.subtable),n},e}(),g=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return f(e,h),e.prototype.tag="hhea",e.prototype.parse=function(t){return t.pos=this.offset,this.version=t.readInt(),this.ascender=t.readShort(),this.decender=t.readShort(),this.lineGap=t.readShort(),this.advanceWidthMax=t.readShort(),this.minLeftSideBearing=t.readShort(),this.minRightSideBearing=t.readShort(),this.xMaxExtent=t.readShort(),this.caretSlopeRise=t.readShort(),this.caretSlopeRun=t.readShort(),this.caretOffset=t.readShort(),t.pos+=8,this.metricDataFormat=t.readShort(),this.numberOfMetrics=t.readUInt16()},e}(),m=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return f(e,h),e.prototype.tag="OS/2",e.prototype.parse=function(n){if(n.pos=this.offset,this.version=n.readUInt16(),this.averageCharWidth=n.readShort(),this.weightClass=n.readUInt16(),this.widthClass=n.readUInt16(),this.type=n.readShort(),this.ySubscriptXSize=n.readShort(),this.ySubscriptYSize=n.readShort(),this.ySubscriptXOffset=n.readShort(),this.ySubscriptYOffset=n.readShort(),this.ySuperscriptXSize=n.readShort(),this.ySuperscriptYSize=n.readShort(),this.ySuperscriptXOffset=n.readShort(),this.ySuperscriptYOffset=n.readShort(),this.yStrikeoutSize=n.readShort(),this.yStrikeoutPosition=n.readShort(),this.familyClass=n.readShort(),this.panose=function(){var t,e;for(e=[],t=0;t<10;++t)e.push(n.readByte());return e}(),this.charRange=function(){var t,e;for(e=[],t=0;t<4;++t)e.push(n.readInt());return e}(),this.vendorID=n.readString(4),this.selection=n.readShort(),this.firstCharIndex=n.readShort(),this.lastCharIndex=n.readShort(),0<this.version&&(this.ascent=n.readShort(),this.descent=n.readShort(),this.lineGap=n.readShort(),this.winAscent=n.readShort(),this.winDescent=n.readShort(),this.codePageRange=function(){var t,e;for(e=[],t=0;t<2;++t)e.push(n.readInt());return e}(),1<this.version))return this.xHeight=n.readShort(),this.capHeight=n.readShort(),this.defaultChar=n.readShort(),this.breakChar=n.readShort(),this.maxContext=n.readShort()},e}(),v=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return f(e,h),e.prototype.tag="post",e.prototype.parse=function(r){var t,e,n,i;switch(r.pos=this.offset,this.format=r.readInt(),this.italicAngle=r.readInt(),this.underlinePosition=r.readShort(),this.underlineThickness=r.readShort(),this.isFixedPitch=r.readInt(),this.minMemType42=r.readInt(),this.maxMemType42=r.readInt(),this.minMemType1=r.readInt(),this.maxMemType1=r.readInt(),this.format){case 65536:break;case 131072:for(e=r.readUInt16(),this.glyphNameIndex=[],n=0;0<=e?n<e:e<n;0<=e?++n:--n)this.glyphNameIndex.push(r.readUInt16());for(this.names=[],i=[];r.pos<this.offset+this.length;)t=r.readByte(),i.push(this.names.push(r.readString(t)));return i;case 151552:return e=r.readUInt16(),this.offsets=r.read(e);case 196608:break;case 262144:return this.map=function(){var t,e,n;for(n=[],t=0,e=this.file.maxp.numGlyphs;0<=e?t<e:e<t;0<=e?++t:--t)n.push(r.readUInt32());return n}.call(this)}},e}(),w=function(t,e){this.raw=t,this.length=t.length,this.platformID=e.platformID,this.encodingID=e.encodingID,this.languageID=e.languageID},b=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return f(e,h),e.prototype.tag="name",e.prototype.parse=function(t){var e,n,r,i,o,a,s,l,h,u,c,f;for(t.pos=this.offset,t.readShort(),e=t.readShort(),a=t.readShort(),n=[],i=h=0;0<=e?h<e:e<h;i=0<=e?++h:--h)n.push({platformID:t.readShort(),encodingID:t.readShort(),languageID:t.readShort(),nameID:t.readShort(),length:t.readShort(),offset:this.offset+a+t.readShort()});for(s={},i=u=0,c=n.length;u<c;i=++u)r=n[i],t.pos=r.offset,l=t.readString(r.length),o=new w(l,r),null==s[f=r.nameID]&&(s[f]=[]),s[r.nameID].push(o);this.strings=s,this.copyright=s[0],this.fontFamily=s[1],this.fontSubfamily=s[2],this.uniqueSubfamily=s[3],this.fontName=s[4],this.version=s[5];try{this.postscriptName=s[6][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}catch(t){this.postscriptName=s[4][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}return this.trademark=s[7],this.manufacturer=s[8],this.designer=s[9],this.description=s[10],this.vendorUrl=s[11],this.designerUrl=s[12],this.license=s[13],this.licenseUrl=s[14],this.preferredFamily=s[15],this.preferredSubfamily=s[17],this.compatibleFull=s[18],this.sampleText=s[19]},e}(),x=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return f(e,h),e.prototype.tag="maxp",e.prototype.parse=function(t){return t.pos=this.offset,this.version=t.readInt(),this.numGlyphs=t.readUInt16(),this.maxPoints=t.readUInt16(),this.maxContours=t.readUInt16(),this.maxCompositePoints=t.readUInt16(),this.maxComponentContours=t.readUInt16(),this.maxZones=t.readUInt16(),this.maxTwilightPoints=t.readUInt16(),this.maxStorage=t.readUInt16(),this.maxFunctionDefs=t.readUInt16(),this.maxInstructionDefs=t.readUInt16(),this.maxStackElements=t.readUInt16(),this.maxSizeOfInstructions=t.readUInt16(),this.maxComponentElements=t.readUInt16(),this.maxComponentDepth=t.readUInt16()},e}(),N=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return f(e,h),e.prototype.tag="hmtx",e.prototype.parse=function(n){var t,r,i,e,o,a,s;for(n.pos=this.offset,this.metrics=[],e=0,a=this.file.hhea.numberOfMetrics;0<=a?e<a:a<e;0<=a?++e:--e)this.metrics.push({advance:n.readUInt16(),lsb:n.readInt16()});for(r=this.file.maxp.numGlyphs-this.file.hhea.numberOfMetrics,this.leftSideBearings=function(){var t,e;for(e=[],t=0;0<=r?t<r:r<t;0<=r?++t:--t)e.push(n.readInt16());return e}(),this.widths=function(){var t,e,n,r;for(r=[],t=0,e=(n=this.metrics).length;t<e;t++)i=n[t],r.push(i.advance);return r}.call(this),t=this.widths[this.widths.length-1],s=[],o=0;0<=r?o<r:r<o;0<=r?++o:--o)s.push(this.widths.push(t));return s},e.prototype.forGlyph=function(t){return t in this.metrics?this.metrics[t]:{advance:this.metrics[this.metrics.length-1].advance,lsb:this.leftSideBearings[t-this.metrics.length]}},e}(),L=[].slice,A=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return f(e,h),e.prototype.tag="glyf",e.prototype.parse=function(t){return this.cache={}},e.prototype.glyphFor=function(t){var e,n,r,i,o,a,s,l,h,u;return(t=t)in this.cache?this.cache[t]:(i=this.file.loca,e=this.file.contents,n=i.indexOf(t),0===(r=i.lengthOf(t))?this.cache[t]=null:(e.pos=this.offset+n,o=(a=new J(e.read(r))).readShort(),l=a.readShort(),u=a.readShort(),s=a.readShort(),h=a.readShort(),this.cache[t]=-1===o?new _(a,l,u,s,h):new S(a,o,l,u,s,h),this.cache[t]))},e.prototype.encode=function(t,e,n){var r,i,o,a,s;for(o=[],i=[],a=0,s=e.length;a<s;a++)r=t[e[a]],i.push(o.length),r&&(o=o.concat(r.encode(n)));return i.push(o.length),{table:o,offsets:i}},e}(),S=function(){function t(t,e,n,r,i,o){this.raw=t,this.numberOfContours=e,this.xMin=n,this.yMin=r,this.xMax=i,this.yMax=o,this.compound=!1}return t.prototype.encode=function(){return this.raw.data},t}(),_=function(){function t(t,e,n,r,i){var o,a;for(this.raw=t,this.xMin=e,this.yMin=n,this.xMax=r,this.yMax=i,this.compound=!0,this.glyphIDs=[],this.glyphOffsets=[],o=this.raw;a=o.readShort(),this.glyphOffsets.push(o.pos),this.glyphIDs.push(o.readShort()),32&a;)o.pos+=1&a?4:2,128&a?o.pos+=8:64&a?o.pos+=4:8&a&&(o.pos+=2)}return 1,8,32,64,128,t.prototype.encode=function(t){var e,n,r,i,o;for(n=new J(L.call(this.raw.data)),e=r=0,i=(o=this.glyphIDs).length;r<i;e=++r)o[e],n.pos=this.glyphOffsets[e];return n.data},t}(),F=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return f(e,h),e.prototype.tag="loca",e.prototype.parse=function(r){var t;return r.pos=this.offset,t=this.file.head.indexToLocFormat,this.offsets=0===t?function(){var t,e,n;for(n=[],t=0,e=this.length;t<e;t+=2)n.push(2*r.readUInt16());return n}.call(this):function(){var t,e,n;for(n=[],t=0,e=this.length;t<e;t+=4)n.push(r.readUInt32());return n}.call(this)},e.prototype.indexOf=function(t){return this.offsets[t]},e.prototype.lengthOf=function(t){return this.offsets[t+1]-this.offsets[t]},e.prototype.encode=function(t,e){for(var n=new Uint32Array(this.offsets.length),r=0,i=0,o=0;o<n.length;++o)if(n[o]=r,i<e.length&&e[i]==o){++i,n[o]=r;var a=this.offsets[o],s=this.offsets[o+1]-a;0<s&&(r+=s)}for(var l=new Array(4*n.length),h=0;h<n.length;++h)l[4*h+3]=255&n[h],l[4*h+2]=(65280&n[h])>>8,l[4*h+1]=(16711680&n[h])>>16,l[4*h]=(4278190080&n[h])>>24;return l},e}(),P=function(){function t(t){this.font=t,this.subset={},this.unicodes={},this.next=33}return t.prototype.generateCmap=function(){var t,e,n,r,i;for(e in r=this.font.cmap.tables[0].codeMap,t={},i=this.subset)n=i[e],t[e]=r[n];return t},t.prototype.glyphsFor=function(t){var e,n,r,i,o,a,s;for(r={},o=0,a=t.length;o<a;o++)r[i=t[o]]=this.font.glyf.glyphFor(i);for(i in e=[],r)(null!=(n=r[i])?n.compound:void 0)&&e.push.apply(e,n.glyphIDs);if(0<e.length)for(i in s=this.glyphsFor(e))n=s[i],r[i]=n;return r},t.prototype.encode=function(t,e){var n,r,i,o,a,s,l,h,u,c,f,p,d,g,m;for(r in n=y.encode(this.generateCmap(),"unicode"),o=this.glyphsFor(t),f={0:0},m=n.charMap)f[(s=m[r]).old]=s.new;for(p in c=n.maxGlyphID,o)p in f||(f[p]=c++);return h=function(t){var e,n;for(e in n={},t)n[t[e]]=e;return n}(f),u=Object.keys(h).sort(function(t,e){return t-e}),d=function(){var t,e,n;for(n=[],t=0,e=u.length;t<e;t++)a=u[t],n.push(h[a]);return n}(),i=this.font.glyf.encode(o,d,f),l=this.font.loca.encode(i.offsets,d),g={cmap:this.font.cmap.raw(),glyf:i.table,loca:l,hmtx:this.font.hmtx.raw(),hhea:this.font.hhea.raw(),maxp:this.font.maxp.raw(),post:this.font.post.raw(),name:this.font.name.raw(),head:this.font.head.encode(e)},this.font.os2.exists&&(g["OS/2"]=this.font.os2.raw()),this.font.directory.encode(g)},t}();t.API.PDFObject=function(){var o;function a(){}return o=function(t,e){return(Array(e+1).join("0")+t).slice(-e)},a.convert=function(r){var i,t,e,n;if(Array.isArray(r))return"["+function(){var t,e,n;for(n=[],t=0,e=r.length;t<e;t++)i=r[t],n.push(a.convert(i));return n}().join(" ")+"]";if("string"==typeof r)return"/"+r;if(null!=r?r.isString:void 0)return"("+r+")";if(r instanceof Date)return"(D:"+o(r.getUTCFullYear(),4)+o(r.getUTCMonth(),2)+o(r.getUTCDate(),2)+o(r.getUTCHours(),2)+o(r.getUTCMinutes(),2)+o(r.getUTCSeconds(),2)+"Z)";if("[object Object]"!=={}.toString.call(r))return""+r;for(t in e=["<<"],r)n=r[t],e.push("/"+t+" "+a.convert(n));return e.push(">>"),e.join("\n")},a}()}(lt),-/*- # PNG.js- # Copyright (c) 2011 Devon Govett- # MIT LICENSE- #- #- */-Nt="undefined"!=typeof self&&self||"undefined"!=typeof window&&window||"undefined"!=typeof global&&global||Function('return typeof this === "object" && this.content')()||Function("return this")(),Lt=function(){var h,n,r;function i(t){var e,n,r,i,o,a,s,l,h,u,c,f,p,d;for(this.data=t,this.pos=8,this.palette=[],this.imgData=[],this.transparency={},this.animation=null,this.text={},a=null;;){switch(e=this.readUInt32(),h=function(){var t,e;for(e=[],t=0;t<4;++t)e.push(String.fromCharCode(this.data[this.pos++]));return e}.call(this).join("")){case"IHDR":this.width=this.readUInt32(),this.height=this.readUInt32(),this.bits=this.data[this.pos++],this.colorType=this.data[this.pos++],this.compressionMethod=this.data[this.pos++],this.filterMethod=this.data[this.pos++],this.interlaceMethod=this.data[this.pos++];break;case"acTL":this.animation={numFrames:this.readUInt32(),numPlays:this.readUInt32()||1/0,frames:[]};break;case"PLTE":this.palette=this.read(e);break;case"fcTL":a&&this.animation.frames.push(a),this.pos+=4,a={width:this.readUInt32(),height:this.readUInt32(),xOffset:this.readUInt32(),yOffset:this.readUInt32()},o=this.readUInt16(),i=this.readUInt16()||100,a.delay=1e3*o/i,a.disposeOp=this.data[this.pos++],a.blendOp=this.data[this.pos++],a.data=[];break;case"IDAT":case"fdAT":for("fdAT"===h&&(this.pos+=4,e-=4),t=(null!=a?a.data:void 0)||this.imgData,f=0;0<=e?f<e:e<f;0<=e?++f:--f)t.push(this.data[this.pos++]);break;case"tRNS":switch(this.transparency={},this.colorType){case 3:if(r=this.palette.length/3,this.transparency.indexed=this.read(e),this.transparency.indexed.length>r)throw new Error("More transparent colors than palette size");if(0<(u=r-this.transparency.indexed.length))for(p=0;0<=u?p<u:u<p;0<=u?++p:--p)this.transparency.indexed.push(255);break;case 0:this.transparency.grayscale=this.read(e)[0];break;case 2:this.transparency.rgb=this.read(e)}break;case"tEXt":s=(c=this.read(e)).indexOf(0),l=String.fromCharCode.apply(String,c.slice(0,s)),this.text[l]=String.fromCharCode.apply(String,c.slice(s+1));break;case"IEND":return a&&this.animation.frames.push(a),this.colors=function(){switch(this.colorType){case 0:case 3:case 4:return 1;case 2:case 6:return 3}}.call(this),this.hasAlphaChannel=4===(d=this.colorType)||6===d,n=this.colors+(this.hasAlphaChannel?1:0),this.pixelBitlength=this.bits*n,this.colorSpace=function(){switch(this.colors){case 1:return"DeviceGray";case 3:return"DeviceRGB"}}.call(this),void(this.imgData=new Uint8Array(this.imgData));default:this.pos+=e}if(this.pos+=4,this.pos>this.data.length)throw new Error("Incomplete or corrupt PNG file")}}i.load=function(t,e,n){var r;return"function"==typeof e&&(n=e),(r=new XMLHttpRequest).open("GET",t,!0),r.responseType="arraybuffer",r.onload=function(){var t;return t=new i(new Uint8Array(r.response||r.mozResponseArrayBuffer)),"function"==typeof(null!=e?e.getContext:void 0)&&t.render(e),"function"==typeof n?n(t):void 0},r.send(null)},i.prototype.read=function(t){var e,n;for(n=[],e=0;0<=t?e<t:t<e;0<=t?++e:--e)n.push(this.data[this.pos++]);return n},i.prototype.readUInt32=function(){return this.data[this.pos++]<<24|this.data[this.pos++]<<16|this.data[this.pos++]<<8|this.data[this.pos++]},i.prototype.readUInt16=function(){return this.data[this.pos++]<<8|this.data[this.pos++]},i.prototype.decodePixels=function(C){var B=this.pixelBitlength/8,j=new Uint8Array(this.width*this.height*B),E=0,M=this;if(null==C&&(C=this.imgData),0===C.length)return new Uint8Array(0);function t(t,e,n,r){var i,o,a,s,l,h,u,c,f,p,d,g,m,y,v,w,b,x,N,L,A,S=Math.ceil((M.width-t)/n),_=Math.ceil((M.height-e)/r),F=M.width==S&&M.height==_;for(y=B*S,g=F?j:new Uint8Array(y*_),h=C.length,o=m=0;m<_&&E<h;){switch(C[E++]){case 0:for(s=b=0;b<y;s=b+=1)g[o++]=C[E++];break;case 1:for(s=x=0;x<y;s=x+=1)i=C[E++],l=s<B?0:g[o-B],g[o++]=(i+l)%256;break;case 2:for(s=N=0;N<y;s=N+=1)i=C[E++],a=(s-s%B)/B,v=m&&g[(m-1)*y+a*B+s%B],g[o++]=(v+i)%256;break;case 3:for(s=L=0;L<y;s=L+=1)i=C[E++],a=(s-s%B)/B,l=s<B?0:g[o-B],v=m&&g[(m-1)*y+a*B+s%B],g[o++]=(i+Math.floor((l+v)/2))%256;break;case 4:for(s=A=0;A<y;s=A+=1)i=C[E++],a=(s-s%B)/B,l=s<B?0:g[o-B],0===m?v=w=0:(v=g[(m-1)*y+a*B+s%B],w=a&&g[(m-1)*y+(a-1)*B+s%B]),u=l+v-w,c=Math.abs(u-l),p=Math.abs(u-v),d=Math.abs(u-w),f=c<=p&&c<=d?l:p<=d?v:w,g[o++]=(i+f)%256;break;default:throw new Error("Invalid filter algorithm: "+C[E-1])}if(!F){var P=((e+m*r)*M.width+t)*B,k=m*y;for(s=0;s<S;s+=1){for(var I=0;I<B;I+=1)j[P++]=g[k++];P+=(n-1)*B}}m++}}return C=(C=new kt(C)).getBytes(),1==M.interlaceMethod?(t(0,0,8,8),t(4,0,8,8),t(0,4,4,8),t(2,0,4,4),t(0,2,2,4),t(1,0,2,2),t(0,1,1,2)):t(0,0,1,1),j},i.prototype.decodePalette=function(){var t,e,n,r,i,o,a,s,l;for(n=this.palette,o=this.transparency.indexed||[],i=new Uint8Array((o.length||0)+n.length),r=0,n.length,e=a=t=0,s=n.length;a<s;e=a+=3)i[r++]=n[e],i[r++]=n[e+1],i[r++]=n[e+2],i[r++]=null!=(l=o[t++])?l:255;return i},i.prototype.copyToImageData=function(t,e){var n,r,i,o,a,s,l,h,u,c,f;if(r=this.colors,u=null,n=this.hasAlphaChannel,this.palette.length&&(u=null!=(f=this._decodedPalette)?f:this._decodedPalette=this.decodePalette(),r=4,n=!0),h=(i=t.data||t).length,a=u||e,o=s=0,1===r)for(;o<h;)l=u?4*e[o/4]:s,c=a[l++],i[o++]=c,i[o++]=c,i[o++]=c,i[o++]=n?a[l++]:255,s=l;else for(;o<h;)l=u?4*e[o/4]:s,i[o++]=a[l++],i[o++]=a[l++],i[o++]=a[l++],i[o++]=n?a[l++]:255,s=l},i.prototype.decode=function(){var t;return t=new Uint8Array(this.width*this.height*4),this.copyToImageData(t,this.decodePixels()),t};try{n=Nt.document.createElement("canvas"),r=n.getContext("2d")}catch(t){return-1}return h=function(t){var e;return r.width=t.width,r.height=t.height,r.clearRect(0,0,t.width,t.height),r.putImageData(t,0,0),(e=new Image).src=n.toDataURL(),e},i.prototype.decodeFrames=function(t){var e,n,r,i,o,a,s,l;if(this.animation){for(l=[],n=o=0,a=(s=this.animation.frames).length;o<a;n=++o)e=s[n],r=t.createImageData(e.width,e.height),i=this.decodePixels(new Uint8Array(e.data)),this.copyToImageData(r,i),e.imageData=r,l.push(e.image=h(r));return l}},i.prototype.renderFrame=function(t,e){var n,r,i;return n=(r=this.animation.frames)[e],i=r[e-1],0===e&&t.clearRect(0,0,this.width,this.height),1===(null!=i?i.disposeOp:void 0)?t.clearRect(i.xOffset,i.yOffset,i.width,i.height):2===(null!=i?i.disposeOp:void 0)&&t.putImageData(i.imageData,i.xOffset,i.yOffset),0===n.blendOp&&t.clearRect(n.xOffset,n.yOffset,n.width,n.height),t.drawImage(n.image,n.xOffset,n.yOffset)},i.prototype.animate=function(n){var r,i,o,a,s,t,l=this;return i=0,t=this.animation,a=t.numFrames,o=t.frames,s=t.numPlays,(r=function(){var t,e;if(t=i++%a,e=o[t],l.renderFrame(n,t),1<a&&i/a<s)return l.animation._timeout=setTimeout(r,e.delay)})()},i.prototype.stopAnimation=function(){var t;return clearTimeout(null!=(t=this.animation)?t._timeout:void 0)},i.prototype.render=function(t){var e,n;return t._png&&t._png.stopAnimation(),t._png=this,t.width=this.width,t.height=this.height,e=t.getContext("2d"),this.animation?(this.decodeFrames(e),this.animate(e)):(n=e.createImageData(this.width,this.height),this.copyToImageData(n,this.decodePixels()),e.putImageData(n,0,0))},i}(),Nt.PNG=Lt;-/*- * Extracted from pdf.js- * https://github.com/andreasgal/pdf.js- *- * Copyright (c) 2011 Mozilla Foundation- *- * Contributors: Andreas Gal <[email protected]>- * Chris G Jones <[email protected]>- * Shaon Barman <[email protected]>- * Vivien Nicolas <[email protected]>- * Justin D'Arcangelo <[email protected]>- * Yury Delendik- *- *- */-var Pt=function(){function t(){this.pos=0,this.bufferLength=0,this.eof=!1,this.buffer=null}return t.prototype={ensureBuffer:function(t){var e=this.buffer,n=e?e.byteLength:0;if(t<n)return e;for(var r=512;r<t;)r<<=1;for(var i=new Uint8Array(r),o=0;o<n;++o)i[o]=e[o];return this.buffer=i},getByte:function(){for(var t=this.pos;this.bufferLength<=t;){if(this.eof)return null;this.readBlock()}return this.buffer[this.pos++]},getBytes:function(t){var e=this.pos;if(t){this.ensureBuffer(e+t);for(var n=e+t;!this.eof&&this.bufferLength<n;)this.readBlock();var r=this.bufferLength;r<n&&(n=r)}else{for(;!this.eof;)this.readBlock();n=this.bufferLength}return this.pos=n,this.buffer.subarray(e,n)},lookChar:function(){for(var t=this.pos;this.bufferLength<=t;){if(this.eof)return null;this.readBlock()}return String.fromCharCode(this.buffer[this.pos])},getChar:function(){for(var t=this.pos;this.bufferLength<=t;){if(this.eof)return null;this.readBlock()}return String.fromCharCode(this.buffer[this.pos++])},makeSubStream:function(t,e,n){for(var r=t+e;this.bufferLength<=r&&!this.eof;)this.readBlock();return new Stream(this.buffer,t,e,n)},skip:function(t){t||(t=1),this.pos+=t},reset:function(){this.pos=0}},t}(),kt=function(){if("undefined"!=typeof Uint32Array){var k=new Uint32Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),I=new Uint32Array([3,4,5,6,7,8,9,10,65547,65549,65551,65553,131091,131095,131099,131103,196643,196651,196659,196667,262211,262227,262243,262259,327811,327843,327875,327907,258,258,258]),C=new Uint32Array([1,2,3,4,65541,65543,131081,131085,196625,196633,262177,262193,327745,327777,393345,393409,459009,459137,524801,525057,590849,591361,657409,658433,724993,727041,794625,798721,868353,876545]),B=[new Uint32Array([459008,524368,524304,524568,459024,524400,524336,590016,459016,524384,524320,589984,524288,524416,524352,590048,459012,524376,524312,589968,459028,524408,524344,590032,459020,524392,524328,59e4,524296,524424,524360,590064,459010,524372,524308,524572,459026,524404,524340,590024,459018,524388,524324,589992,524292,524420,524356,590056,459014,524380,524316,589976,459030,524412,524348,590040,459022,524396,524332,590008,524300,524428,524364,590072,459009,524370,524306,524570,459025,524402,524338,590020,459017,524386,524322,589988,524290,524418,524354,590052,459013,524378,524314,589972,459029,524410,524346,590036,459021,524394,524330,590004,524298,524426,524362,590068,459011,524374,524310,524574,459027,524406,524342,590028,459019,524390,524326,589996,524294,524422,524358,590060,459015,524382,524318,589980,459031,524414,524350,590044,459023,524398,524334,590012,524302,524430,524366,590076,459008,524369,524305,524569,459024,524401,524337,590018,459016,524385,524321,589986,524289,524417,524353,590050,459012,524377,524313,589970,459028,524409,524345,590034,459020,524393,524329,590002,524297,524425,524361,590066,459010,524373,524309,524573,459026,524405,524341,590026,459018,524389,524325,589994,524293,524421,524357,590058,459014,524381,524317,589978,459030,524413,524349,590042,459022,524397,524333,590010,524301,524429,524365,590074,459009,524371,524307,524571,459025,524403,524339,590022,459017,524387,524323,589990,524291,524419,524355,590054,459013,524379,524315,589974,459029,524411,524347,590038,459021,524395,524331,590006,524299,524427,524363,590070,459011,524375,524311,524575,459027,524407,524343,590030,459019,524391,524327,589998,524295,524423,524359,590062,459015,524383,524319,589982,459031,524415,524351,590046,459023,524399,524335,590014,524303,524431,524367,590078,459008,524368,524304,524568,459024,524400,524336,590017,459016,524384,524320,589985,524288,524416,524352,590049,459012,524376,524312,589969,459028,524408,524344,590033,459020,524392,524328,590001,524296,524424,524360,590065,459010,524372,524308,524572,459026,524404,524340,590025,459018,524388,524324,589993,524292,524420,524356,590057,459014,524380,524316,589977,459030,524412,524348,590041,459022,524396,524332,590009,524300,524428,524364,590073,459009,524370,524306,524570,459025,524402,524338,590021,459017,524386,524322,589989,524290,524418,524354,590053,459013,524378,524314,589973,459029,524410,524346,590037,459021,524394,524330,590005,524298,524426,524362,590069,459011,524374,524310,524574,459027,524406,524342,590029,459019,524390,524326,589997,524294,524422,524358,590061,459015,524382,524318,589981,459031,524414,524350,590045,459023,524398,524334,590013,524302,524430,524366,590077,459008,524369,524305,524569,459024,524401,524337,590019,459016,524385,524321,589987,524289,524417,524353,590051,459012,524377,524313,589971,459028,524409,524345,590035,459020,524393,524329,590003,524297,524425,524361,590067,459010,524373,524309,524573,459026,524405,524341,590027,459018,524389,524325,589995,524293,524421,524357,590059,459014,524381,524317,589979,459030,524413,524349,590043,459022,524397,524333,590011,524301,524429,524365,590075,459009,524371,524307,524571,459025,524403,524339,590023,459017,524387,524323,589991,524291,524419,524355,590055,459013,524379,524315,589975,459029,524411,524347,590039,459021,524395,524331,590007,524299,524427,524363,590071,459011,524375,524311,524575,459027,524407,524343,590031,459019,524391,524327,589999,524295,524423,524359,590063,459015,524383,524319,589983,459031,524415,524351,590047,459023,524399,524335,590015,524303,524431,524367,590079]),9],j=[new Uint32Array([327680,327696,327688,327704,327684,327700,327692,327708,327682,327698,327690,327706,327686,327702,327694,0,327681,327697,327689,327705,327685,327701,327693,327709,327683,327699,327691,327707,327687,327703,327695,0]),5];return(t.prototype=Object.create(Pt.prototype)).getBits=function(t){for(var e,n=this.codeSize,r=this.codeBuf,i=this.bytes,o=this.bytesPos;n<t;)void 0===(e=i[o++])&&E("Bad encoding in flate stream"),r|=e<<n,n+=8;return e=r&(1<<t)-1,this.codeBuf=r>>t,this.codeSize=n-=t,this.bytesPos=o,e},t.prototype.getCode=function(t){for(var e=t[0],n=t[1],r=this.codeSize,i=this.codeBuf,o=this.bytes,a=this.bytesPos;r<n;){var s;void 0===(s=o[a++])&&E("Bad encoding in flate stream"),i|=s<<r,r+=8}var l=e[i&(1<<n)-1],h=l>>16,u=65535&l;return(0==r||r<h||0==h)&&E("Bad encoding in flate stream"),this.codeBuf=i>>h,this.codeSize=r-h,this.bytesPos=a,u},t.prototype.generateHuffmanTable=function(t){for(var e=t.length,n=0,r=0;r<e;++r)t[r]>n&&(n=t[r]);for(var i=1<<n,o=new Uint32Array(i),a=1,s=0,l=2;a<=n;++a,s<<=1,l<<=1)for(var h=0;h<e;++h)if(t[h]==a){var u=0,c=s;for(r=0;r<a;++r)u=u<<1|1&c,c>>=1;for(r=u;r<i;r+=l)o[r]=a<<16|h;++s}return[o,n]},t.prototype.readBlock=function(){function t(t,e,n,r,i){for(var o=t.getBits(n)+r;0<o--;)e[l++]=i}var e=this.getBits(3);if(1&e&&(this.eof=!0),0!=(e>>=1)){var n,r;if(1==e)n=B,r=j;else if(2==e){for(var i=this.getBits(5)+257,o=this.getBits(5)+1,a=this.getBits(4)+4,s=Array(k.length),l=0;l<a;)s[k[l++]]=this.getBits(3);for(var h=this.generateHuffmanTable(s),u=0,c=(l=0,i+o),f=new Array(c);l<c;){var p=this.getCode(h);16==p?t(this,f,2,3,u):17==p?t(this,f,3,3,u=0):18==p?t(this,f,7,11,u=0):f[l++]=u=p}n=this.generateHuffmanTable(f.slice(0,i)),r=this.generateHuffmanTable(f.slice(i,c))}else E("Unknown block type in flate stream");for(var d=(_=this.buffer)?_.length:0,g=this.bufferLength;;){var m=this.getCode(n);if(m<256)d<=g+1&&(d=(_=this.ensureBuffer(g+1)).length),_[g++]=m;else{if(256==m)return void(this.bufferLength=g);var y=(m=I[m-=257])>>16;0<y&&(y=this.getBits(y));u=(65535&m)+y;m=this.getCode(r),0<(y=(m=C[m])>>16)&&(y=this.getBits(y));var v=(65535&m)+y;d<=g+u&&(d=(_=this.ensureBuffer(g+u)).length);for(var w=0;w<u;++w,++g)_[g]=_[g-v]}}}else{var b,x=this.bytes,N=this.bytesPos;void 0===(b=x[N++])&&E("Bad block header in flate stream");var L=b;void 0===(b=x[N++])&&E("Bad block header in flate stream"),L|=b<<8,void 0===(b=x[N++])&&E("Bad block header in flate stream");var A=b;void 0===(b=x[N++])&&E("Bad block header in flate stream"),(A|=b<<8)!=(65535&~L)&&E("Bad uncompressed block length in flate stream"),this.codeBuf=0,this.codeSize=0;var S=this.bufferLength,_=this.ensureBuffer(S+L),F=S+L;this.bufferLength=F;for(var P=S;P<F;++P){if(void 0===(b=x[N++])){this.eof=!0;break}_[P]=b}this.bytesPos=N}},t}function E(t){throw new Error(t)}function t(t){var e=0,n=t[e++],r=t[e++];-1!=n&&-1!=r||E("Invalid header in flate stream"),8!=(15&n)&&E("Unknown compression method in flate stream"),((n<<8)+r)%31!=0&&E("Bad FCHECK in flate stream"),32&r&&E("FDICT bit set in flate stream"),this.bytes=t,this.bytesPos=2,this.codeSize=0,this.codeBuf=0,Pt.call(this)}}();window.tmp=kt});try{module.exports=jsPDF}catch(t){}-/**- * jsPDF AutoTable plugin v2.0.14- * Copyright (c) 2014 Simon Bengtsson, https://github.com/simonbengtsson/jsPDF-AutoTable- *- * Licensed under the MIT License.- * http://opensource.org/licenses/mit-license- *- * @preserve- */-"use strict";function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function")}}(function(API){"use strict";var FONT_ROW_RATIO=1.15;var doc,cursor,settings,pageCount,table;var defaultStyles={cellPadding:5,fontSize:10,font:"helvetica",lineColor:200,lineWidth:.1,fontStyle:"normal",overflow:"ellipsize",fillColor:255,textColor:20,halign:"left",valign:"top",fillStyle:"F",rowHeight:20,columnWidth:"auto"};var themes={striped:{table:{fillColor:255,textColor:80,fontStyle:"normal",fillStyle:"F"},header:{textColor:255,fillColor:[41,128,185],rowHeight:23,fontStyle:"bold"},body:{},alternateRow:{fillColor:245}},grid:{table:{fillColor:255,textColor:80,fontStyle:"normal",lineWidth:.1,fillStyle:"DF"},header:{textColor:255,fillColor:[26,188,156],rowHeight:23,fillStyle:"F",fontStyle:"bold"},body:{},alternateRow:{}},plain:{header:{fontStyle:"bold"}}};var defaultOptions=function defaultOptions(){return{theme:"striped",styles:{},headerStyles:{},bodyStyles:{},alternateRowStyles:{},columnStyles:{},startY:false,margin:40,pageBreak:"auto",tableWidth:"auto",createdHeaderCell:function createdHeaderCell(cell,data){},createdCell:function createdCell(cell,data){},drawHeaderRow:function drawHeaderRow(row,data){},drawRow:function drawRow(row,data){},drawHeaderCell:function drawHeaderCell(cell,data){},drawCell:function drawCell(cell,data){},beforePageContent:function beforePageContent(data){},afterPageContent:function afterPageContent(data){}}};API.autoTable=function(headers,data,options){doc=this;settings=initOptions(options||{});pageCount=1;cursor={y:settings.startY===false?settings.margin.top:settings.startY};var userStyles={textColor:30,fontSize:doc.internal.getFontSize(),fontStyle:doc.internal.getFont().fontStyle};createModels(headers,data);calculateWidths();var firstRowHeight=table.rows[0]&&settings.pageBreak==="auto"?table.rows[0].height:0;var minTableBottomPos=settings.startY+settings.margin.bottom+table.headerRow.height+firstRowHeight;if(settings.pageBreak==="avoid"){minTableBottomPos+=table.height}if(settings.pageBreak==="always"&&settings.startY!==false||settings.startY!==false&&minTableBottomPos>doc.internal.pageSize.height){doc.addPage();cursor.y=settings.margin.top}applyStyles(userStyles);settings.beforePageContent(hooksData());if(settings.drawHeaderRow(table.headerRow,hooksData({row:table.headerRow}))!==false){printRow(table.headerRow,settings.drawHeaderCell)}applyStyles(userStyles);printRows();settings.afterPageContent(hooksData());applyStyles(userStyles);return this};API.autoTableEndPosY=function(){if(typeof cursor==="undefined"||typeof cursor.y==="undefined"){return 0}return cursor.y};API.autoTableHtmlToJson=function(table){var data=[],headers=[],header=table.rows[0],tableRow,rowData,i,j;for(i=0;i<header.cells.length;i++){headers.push(typeof header.cells[i]!=="undefined"?header.cells[i].textContent:"")}for(i=1;i<table.rows.length;i++){tableRow=table.rows[i];rowData=[];for(j=0;j<header.cells.length;j++){rowData.push(typeof tableRow.cells[j]!=="undefined"?tableRow.cells[j].textContent:"")}data.push(rowData)}return{columns:headers,data:data,rows:data}};API.autoTableText=function(text,x,y,styles){if(typeof x!=="number"||typeof y!=="number"){console.error("The x and y parameters are required. Missing for the text: ",text)}var fontSize=doc.internal.getFontSize()/doc.internal.scaleFactor;var lineHeightProportion=FONT_ROW_RATIO;var splitRegex=/\r\n|\r|\n/g;var splittedText=null;var lineCount=1;if(styles.valign==="middle"||styles.valign==="bottom"||styles.halign==="center"||styles.halign==="right"){splittedText=typeof text==="string"?text.split(splitRegex):text;lineCount=splittedText.length||1}y+=fontSize*(2-lineHeightProportion);if(styles.valign==="middle")y-=lineCount/2*fontSize;else if(styles.valign==="bottom")y-=lineCount*fontSize;if(styles.halign==="center"||styles.halign==="right"){var alignSize=fontSize;if(styles.halign==="center")alignSize*=.5;if(lineCount>=1){for(var iLine=0;iLine<splittedText.length;iLine++){doc.text(splittedText[iLine],x-doc.getStringUnitWidth(splittedText[iLine])*alignSize,y);y+=fontSize}return doc}x-=doc.getStringUnitWidth(text)*alignSize}doc.text(text,x,y);return doc};function initOptions(userOptions){var settings=extend(defaultOptions(),userOptions);if(typeof settings.extendWidth!=="undefined"){settings.tableWidth=settings.extendWidth?"auto":"wrap";console.error("Use of deprecated option: extendWidth, use tableWidth instead.")}if(typeof settings.margins!=="undefined"){if(typeof settings.margin==="undefined")settings.margin=settings.margins;console.error("Use of deprecated option: margins, use margin instead.")}[["padding","cellPadding"],["lineHeight","rowHeight"],"fontSize","overflow"].forEach(function(o){var deprecatedOption=typeof o==="string"?o:o[0];var style=typeof o==="string"?o:o[1];if(typeof settings[deprecatedOption]!=="undefined"){if(typeof settings.styles[style]==="undefined"){settings.styles[style]=settings[deprecatedOption]}console.error("Use of deprecated option: "+deprecatedOption+", use the style "+style+" instead.")}});var marginSetting=settings.margin;settings.margin={};if(typeof marginSetting.horizontal==="number"){marginSetting.right=marginSetting.horizontal;marginSetting.left=marginSetting.horizontal}if(typeof marginSetting.vertical==="number"){marginSetting.top=marginSetting.vertical;marginSetting.bottom=marginSetting.vertical}["top","right","bottom","left"].forEach(function(side,i){if(typeof marginSetting==="number"){settings.margin[side]=marginSetting}else{var key=Array.isArray(marginSetting)?i:side;settings.margin[side]=typeof marginSetting[key]==="number"?marginSetting[key]:40}});return settings}function createModels(inputHeaders,inputData){table=new Table;table.x=settings.margin.left;var splitRegex=/\r\n|\r|\n/g;var headerRow=new Row(inputHeaders);headerRow.index=-1;var themeStyles=extend(defaultStyles,themes[settings.theme].table,themes[settings.theme].header);headerRow.styles=extend(themeStyles,settings.styles,settings.headerStyles);inputHeaders.forEach(function(rawColumn,dataKey){if(typeof rawColumn==="object"){dataKey=typeof rawColumn.dataKey!=="undefined"?rawColumn.dataKey:rawColumn.key}if(typeof rawColumn.width!=="undefined"){console.error("Use of deprecated option: column.width, use column.styles.columnWidth instead.")}var col=new Column(dataKey);col.styles=settings.columnStyles[col.dataKey]||{};table.columns.push(col);var cell=new Cell;cell.raw=typeof rawColumn==="object"?rawColumn.title:rawColumn;cell.styles=headerRow.styles;cell.text=""+cell.raw;cell.contentWidth=cell.styles.cellPadding*2+getStringWidth(cell.text,cell.styles);cell.text=cell.text.split(splitRegex);headerRow.cells[dataKey]=cell;settings.createdHeaderCell(cell,{column:col,row:headerRow,settings:settings})});table.headerRow=headerRow;inputData.forEach(function(rawRow,i){var row=new Row(rawRow);var isAlternate=i%2===0;var themeStyles=extend(defaultStyles,themes[settings.theme].table,isAlternate?themes[settings.theme].alternateRow:{});var userStyles=extend(settings.styles,settings.bodyStyles,isAlternate?settings.alternateRowStyles:{});row.styles=extend(themeStyles,userStyles);row.index=i;table.columns.forEach(function(column){var cell=new Cell;cell.raw=rawRow[column.dataKey];cell.styles=extend(row.styles,column.styles);cell.text=typeof cell.raw!=="undefined"?""+cell.raw:"";row.cells[column.dataKey]=cell;settings.createdCell(cell,hooksData({column:column,row:row}));cell.contentWidth=cell.styles.cellPadding*2+getStringWidth(cell.text,cell.styles);cell.text=cell.text.split(splitRegex)});table.rows.push(row)})}function calculateWidths(){var tableContentWidth=0;table.columns.forEach(function(column){column.contentWidth=table.headerRow.cells[column.dataKey].contentWidth;table.rows.forEach(function(row){var cellWidth=row.cells[column.dataKey].contentWidth;if(cellWidth>column.contentWidth){column.contentWidth=cellWidth}});column.width=column.contentWidth;tableContentWidth+=column.contentWidth});table.contentWidth=tableContentWidth;var maxTableWidth=doc.internal.pageSize.width-settings.margin.left-settings.margin.right;var preferredTableWidth=maxTableWidth;if(typeof settings.tableWidth==="number"){preferredTableWidth=settings.tableWidth}else if(settings.tableWidth==="wrap"){preferredTableWidth=table.contentWidth}table.width=preferredTableWidth<maxTableWidth?preferredTableWidth:maxTableWidth;var dynamicColumns=[];var dynamicColumnsContentWidth=0;var fairWidth=table.width/table.columns.length;var staticWidth=0;table.columns.forEach(function(column){var colStyles=extend(defaultStyles,themes[settings.theme].table,settings.styles,column.styles);if(colStyles.columnWidth==="wrap"){column.width=column.contentWidth}else if(typeof colStyles.columnWidth==="number"){column.width=colStyles.columnWidth}else if(colStyles.columnWidth==="auto"||true){if(column.contentWidth<=fairWidth&&table.contentWidth>table.width){column.width=column.contentWidth}else{dynamicColumns.push(column);dynamicColumnsContentWidth+=column.contentWidth;column.width=0}}staticWidth+=column.width});distributeWidth(dynamicColumns,staticWidth,dynamicColumnsContentWidth,fairWidth);table.height=0;var all=table.rows.concat(table.headerRow);all.forEach(function(row,i){var lineBreakCount=0;var cursorX=table.x;table.columns.forEach(function(col){var cell=row.cells[col.dataKey];col.x=cursorX;applyStyles(cell.styles);var textSpace=col.width-cell.styles.cellPadding*2;if(cell.styles.overflow==="linebreak"){cell.text=doc.splitTextToSize(cell.text,textSpace+1,{fontSize:cell.styles.fontSize})}else if(cell.styles.overflow==="ellipsize"){cell.text=ellipsize(cell.text,textSpace,cell.styles)}else if(cell.styles.overflow==="visible"){}else if(cell.styles.overflow==="hidden"){cell.text=ellipsize(cell.text,textSpace,cell.styles,"")}else if(typeof cell.styles.overflow==="function"){cell.text=cell.styles.overflow(cell.text,textSpace)}else{console.error("Unrecognized overflow type: "+cell.styles.overflow)}var count=Array.isArray(cell.text)?cell.text.length-1:0;if(count>lineBreakCount){lineBreakCount=count}cursorX+=col.width});row.heightStyle=row.styles.rowHeight;row.height=row.heightStyle+lineBreakCount*row.styles.fontSize*FONT_ROW_RATIO;table.height+=row.height})}function distributeWidth(dynamicColumns,staticWidth,dynamicColumnsContentWidth,fairWidth){var extraWidth=table.width-staticWidth-dynamicColumnsContentWidth;for(var i=0;i<dynamicColumns.length;i++){var col=dynamicColumns[i];var ratio=col.contentWidth/dynamicColumnsContentWidth;var isNoneDynamic=col.contentWidth+extraWidth*ratio<fairWidth;if(extraWidth<0&&isNoneDynamic){dynamicColumns.splice(i,1);dynamicColumnsContentWidth-=col.contentWidth;col.width=fairWidth;staticWidth+=col.width;distributeWidth(dynamicColumns,staticWidth,dynamicColumnsContentWidth,fairWidth);break}else{col.width=col.contentWidth+extraWidth*ratio}}}function printRows(){table.rows.forEach(function(row,i){if(isNewPage(row.height)){var samePageThreshold=3;addPage()}row.y=cursor.y;if(settings.drawRow(row,hooksData({row:row}))!==false){printRow(row,settings.drawCell)}})}function addPage(){settings.afterPageContent(hooksData());doc.addPage();pageCount++;cursor={x:settings.margin.left,y:settings.margin.top};settings.beforePageContent(hooksData());if(settings.drawHeaderRow(table.headerRow,hooksData({row:table.headerRow}))!==false){printRow(table.headerRow,settings.drawHeaderCell)}}function isNewPage(rowHeight){var afterRowPos=cursor.y+rowHeight+settings.margin.bottom;return afterRowPos>=doc.internal.pageSize.height}function printRow(row,hookHandler){for(var i=0;i<table.columns.length;i++){var column=table.columns[i];var cell=row.cells[column.dataKey];if(!cell){continue}applyStyles(cell.styles);cell.x=column.x;cell.y=cursor.y;cell.height=row.height;cell.width=column.width;if(cell.styles.valign==="top"){cell.textPos.y=cursor.y+cell.styles.cellPadding}else if(cell.styles.valign==="bottom"){cell.textPos.y=cursor.y+row.height-cell.styles.cellPadding}else{cell.textPos.y=cursor.y+row.height/2}if(cell.styles.halign==="right"){cell.textPos.x=cell.x+cell.width-cell.styles.cellPadding}else if(cell.styles.halign==="center"){cell.textPos.x=cell.x+cell.width/2}else{cell.textPos.x=cell.x+cell.styles.cellPadding}var data=hooksData({column:column,row:row});if(hookHandler(cell,data)!==false){doc.rect(cell.x,cell.y,cell.width,cell.height,cell.styles.fillStyle);doc.autoTableText(cell.text,cell.textPos.x,cell.textPos.y,{halign:cell.styles.halign,valign:cell.styles.valign})}}cursor.y+=row.height}function applyStyles(styles){var arr=[{func:doc.setFillColor,value:styles.fillColor},{func:doc.setTextColor,value:styles.textColor},{func:doc.setFontStyle,value:styles.fontStyle},{func:doc.setDrawColor,value:styles.lineColor},{func:doc.setLineWidth,value:styles.lineWidth},{func:doc.setFont,value:styles.font},{func:doc.setFontSize,value:styles.fontSize}];arr.forEach(function(obj){if(typeof obj.value!=="undefined"){if(obj.value.constructor===Array){obj.func.apply(this,obj.value)}else{obj.func(obj.value)}}})}function hooksData(additionalData){additionalData=additionalData||{};var data={pageCount:pageCount,settings:settings,table:table,cursor:cursor};for(var prop in additionalData){if(additionalData.hasOwnProperty(prop)){data[prop]=additionalData[prop]}}return data}function ellipsize(text,width,styles,ellipsizeStr){ellipsizeStr=typeof ellipsizeStr!=="undefined"?ellipsizeStr:"...";if(Array.isArray(text)){text.forEach(function(str,i){text[i]=ellipsize(str,width,styles,ellipsizeStr)});return text}if(width>=getStringWidth(text,styles)){return text}while(width<getStringWidth(text+ellipsizeStr,styles)){if(text.length<2){break}text=text.substring(0,text.length-1)}return text.trim()+ellipsizeStr}function getStringWidth(text,styles){applyStyles(styles);var w=doc.getStringUnitWidth(text);return w*styles.fontSize}function extend(defaults){var extended={};var prop;for(prop in defaults){if(defaults.hasOwnProperty(prop)){extended[prop]=defaults[prop]}}for(var i=1;i<arguments.length;i++){var options=arguments[i];for(prop in options){if(options.hasOwnProperty(prop)){if(typeof options[prop]==="object"&&!Array.isArray(options[prop])){extended[prop]=options[prop]}else{extended[prop]=options[prop]}}}}return extended}})(jsPDF.API);var Table=function Table(){_classCallCheck(this,Table);this.height=0;this.width=0;this.x=0;this.y=0;this.contentWidth=0;this.rows=[];this.columns=[];this.headerRow=null;this.settings={}};var Row=function Row(raw){_classCallCheck(this,Row);this.raw=raw||{};this.index=0;this.styles={};this.cells={};this.height=0;this.y=0};var Cell=function Cell(raw){_classCallCheck(this,Cell);this.raw=raw;this.styles={};this.text="";this.contentWidth=0;this.textPos={};this.height=0;this.width=0;this.x=0;this.y=0};var Column=function Column(dataKey){_classCallCheck(this,Column);this.dataKey=dataKey;this.options={};this.styles={};this.contentWidth=0;this.width=0;this.x=0};-(function (global, factory) {- typeof exports === 'object' && typeof module !== 'undefined' ? factory(require('jquery')) :- typeof define === 'function' && define.amd ? define(['jquery'], factory) :- (global = global || self, factory(global.jQuery));-}(this, (function ($) { 'use strict';-- $ = $ && Object.prototype.hasOwnProperty.call($, 'default') ? $['default'] : $;-- var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};-- function createCommonjsModule(fn, module) {- return module = { exports: {} }, fn(module, module.exports), module.exports;- }-- var check = function (it) {- return it && it.Math == Math && it;- };-- // https://github.com/zloirock/core-js/issues/86#issuecomment-115759028- var global_1 =- // eslint-disable-next-line no-undef- check(typeof globalThis == 'object' && globalThis) ||- check(typeof window == 'object' && window) ||- check(typeof self == 'object' && self) ||- check(typeof commonjsGlobal == 'object' && commonjsGlobal) ||- // eslint-disable-next-line no-new-func- Function('return this')();-- var fails = function (exec) {- try {- return !!exec();- } catch (error) {- return true;- }- };-- // Thank's IE8 for his funny defineProperty- var descriptors = !fails(function () {- return Object.defineProperty({}, 'a', { get: function () { return 7; } }).a != 7;- });-- var nativePropertyIsEnumerable = {}.propertyIsEnumerable;- var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;-- // Nashorn ~ JDK8 bug- var NASHORN_BUG = getOwnPropertyDescriptor && !nativePropertyIsEnumerable.call({ 1: 2 }, 1);-- // `Object.prototype.propertyIsEnumerable` method implementation- // https://tc39.github.io/ecma262/#sec-object.prototype.propertyisenumerable- var f = NASHORN_BUG ? function propertyIsEnumerable(V) {- var descriptor = getOwnPropertyDescriptor(this, V);- return !!descriptor && descriptor.enumerable;- } : nativePropertyIsEnumerable;-- var objectPropertyIsEnumerable = {- f: f- };-- var createPropertyDescriptor = function (bitmap, value) {- return {- enumerable: !(bitmap & 1),- configurable: !(bitmap & 2),- writable: !(bitmap & 4),- value: value- };- };-- var toString = {}.toString;-- var classofRaw = function (it) {- return toString.call(it).slice(8, -1);- };-- var split = ''.split;-- // fallback for non-array-like ES3 and non-enumerable old V8 strings- var indexedObject = fails(function () {- // throws an error in rhino, see https://github.com/mozilla/rhino/issues/346- // eslint-disable-next-line no-prototype-builtins- return !Object('z').propertyIsEnumerable(0);- }) ? function (it) {- return classofRaw(it) == 'String' ? split.call(it, '') : Object(it);- } : Object;-- // `RequireObjectCoercible` abstract operation- // https://tc39.github.io/ecma262/#sec-requireobjectcoercible- var requireObjectCoercible = function (it) {- if (it == undefined) throw TypeError("Can't call method on " + it);- return it;- };-- // toObject with fallback for non-array-like ES3 strings---- var toIndexedObject = function (it) {- return indexedObject(requireObjectCoercible(it));- };-- var isObject = function (it) {- return typeof it === 'object' ? it !== null : typeof it === 'function';- };-- // `ToPrimitive` abstract operation- // https://tc39.github.io/ecma262/#sec-toprimitive- // instead of the ES6 spec version, we didn't implement @@toPrimitive case- // and the second argument - flag - preferred type is a string- var toPrimitive = function (input, PREFERRED_STRING) {- if (!isObject(input)) return input;- var fn, val;- if (PREFERRED_STRING && typeof (fn = input.toString) == 'function' && !isObject(val = fn.call(input))) return val;- if (typeof (fn = input.valueOf) == 'function' && !isObject(val = fn.call(input))) return val;- if (!PREFERRED_STRING && typeof (fn = input.toString) == 'function' && !isObject(val = fn.call(input))) return val;- throw TypeError("Can't convert object to primitive value");- };-- var hasOwnProperty = {}.hasOwnProperty;-- var has = function (it, key) {- return hasOwnProperty.call(it, key);- };-- var document$1 = global_1.document;- // typeof document.createElement is 'object' in old IE- var EXISTS = isObject(document$1) && isObject(document$1.createElement);-- var documentCreateElement = function (it) {- return EXISTS ? document$1.createElement(it) : {};- };-- // Thank's IE8 for his funny defineProperty- var ie8DomDefine = !descriptors && !fails(function () {- return Object.defineProperty(documentCreateElement('div'), 'a', {- get: function () { return 7; }- }).a != 7;- });-- var nativeGetOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;-- // `Object.getOwnPropertyDescriptor` method- // https://tc39.github.io/ecma262/#sec-object.getownpropertydescriptor- var f$1 = descriptors ? nativeGetOwnPropertyDescriptor : function getOwnPropertyDescriptor(O, P) {- O = toIndexedObject(O);- P = toPrimitive(P, true);- if (ie8DomDefine) try {- return nativeGetOwnPropertyDescriptor(O, P);- } catch (error) { /* empty */ }- if (has(O, P)) return createPropertyDescriptor(!objectPropertyIsEnumerable.f.call(O, P), O[P]);- };-- var objectGetOwnPropertyDescriptor = {- f: f$1- };-- var anObject = function (it) {- if (!isObject(it)) {- throw TypeError(String(it) + ' is not an object');- } return it;- };-- var nativeDefineProperty = Object.defineProperty;-- // `Object.defineProperty` method- // https://tc39.github.io/ecma262/#sec-object.defineproperty- var f$2 = descriptors ? nativeDefineProperty : function defineProperty(O, P, Attributes) {- anObject(O);- P = toPrimitive(P, true);- anObject(Attributes);- if (ie8DomDefine) try {- return nativeDefineProperty(O, P, Attributes);- } catch (error) { /* empty */ }- if ('get' in Attributes || 'set' in Attributes) throw TypeError('Accessors not supported');- if ('value' in Attributes) O[P] = Attributes.value;- return O;- };-- var objectDefineProperty = {- f: f$2- };-- var createNonEnumerableProperty = descriptors ? function (object, key, value) {- return objectDefineProperty.f(object, key, createPropertyDescriptor(1, value));- } : function (object, key, value) {- object[key] = value;- return object;- };-- var setGlobal = function (key, value) {- try {- createNonEnumerableProperty(global_1, key, value);- } catch (error) {- global_1[key] = value;- } return value;- };-- var SHARED = '__core-js_shared__';- var store = global_1[SHARED] || setGlobal(SHARED, {});-- var sharedStore = store;-- var functionToString = Function.toString;-- // this helper broken in `3.4.1-3.4.4`, so we can't use `shared` helper- if (typeof sharedStore.inspectSource != 'function') {- sharedStore.inspectSource = function (it) {- return functionToString.call(it);- };- }-- var inspectSource = sharedStore.inspectSource;-- var WeakMap = global_1.WeakMap;-- var nativeWeakMap = typeof WeakMap === 'function' && /native code/.test(inspectSource(WeakMap));-- var shared = createCommonjsModule(function (module) {- (module.exports = function (key, value) {- return sharedStore[key] || (sharedStore[key] = value !== undefined ? value : {});- })('versions', []).push({- version: '3.6.0',- mode: 'global',- copyright: '© 2019 Denis Pushkarev (zloirock.ru)'- });- });-- var id = 0;- var postfix = Math.random();-- var uid = function (key) {- return 'Symbol(' + String(key === undefined ? '' : key) + ')_' + (++id + postfix).toString(36);- };-- var keys = shared('keys');-- var sharedKey = function (key) {- return keys[key] || (keys[key] = uid(key));- };-- var hiddenKeys = {};-- var WeakMap$1 = global_1.WeakMap;- var set, get, has$1;-- var enforce = function (it) {- return has$1(it) ? get(it) : set(it, {});- };-- var getterFor = function (TYPE) {- return function (it) {- var state;- if (!isObject(it) || (state = get(it)).type !== TYPE) {- throw TypeError('Incompatible receiver, ' + TYPE + ' required');- } return state;- };- };-- if (nativeWeakMap) {- var store$1 = new WeakMap$1();- var wmget = store$1.get;- var wmhas = store$1.has;- var wmset = store$1.set;- set = function (it, metadata) {- wmset.call(store$1, it, metadata);- return metadata;- };- get = function (it) {- return wmget.call(store$1, it) || {};- };- has$1 = function (it) {- return wmhas.call(store$1, it);- };- } else {- var STATE = sharedKey('state');- hiddenKeys[STATE] = true;- set = function (it, metadata) {- createNonEnumerableProperty(it, STATE, metadata);- return metadata;- };- get = function (it) {- return has(it, STATE) ? it[STATE] : {};- };- has$1 = function (it) {- return has(it, STATE);- };- }-- var internalState = {- set: set,- get: get,- has: has$1,- enforce: enforce,- getterFor: getterFor- };-- var redefine = createCommonjsModule(function (module) {- var getInternalState = internalState.get;- var enforceInternalState = internalState.enforce;- var TEMPLATE = String(String).split('String');-- (module.exports = function (O, key, value, options) {- var unsafe = options ? !!options.unsafe : false;- var simple = options ? !!options.enumerable : false;- var noTargetGet = options ? !!options.noTargetGet : false;- if (typeof value == 'function') {- if (typeof key == 'string' && !has(value, 'name')) createNonEnumerableProperty(value, 'name', key);- enforceInternalState(value).source = TEMPLATE.join(typeof key == 'string' ? key : '');- }- if (O === global_1) {- if (simple) O[key] = value;- else setGlobal(key, value);- return;- } else if (!unsafe) {- delete O[key];- } else if (!noTargetGet && O[key]) {- simple = true;- }- if (simple) O[key] = value;- else createNonEnumerableProperty(O, key, value);- // add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative- })(Function.prototype, 'toString', function toString() {- return typeof this == 'function' && getInternalState(this).source || inspectSource(this);- });- });-- var path = global_1;-- var aFunction = function (variable) {- return typeof variable == 'function' ? variable : undefined;- };-- var getBuiltIn = function (namespace, method) {- return arguments.length < 2 ? aFunction(path[namespace]) || aFunction(global_1[namespace])- : path[namespace] && path[namespace][method] || global_1[namespace] && global_1[namespace][method];- };-- var ceil = Math.ceil;- var floor = Math.floor;-- // `ToInteger` abstract operation- // https://tc39.github.io/ecma262/#sec-tointeger- var toInteger = function (argument) {- return isNaN(argument = +argument) ? 0 : (argument > 0 ? floor : ceil)(argument);- };-- var min = Math.min;-- // `ToLength` abstract operation- // https://tc39.github.io/ecma262/#sec-tolength- var toLength = function (argument) {- return argument > 0 ? min(toInteger(argument), 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991- };-- var max = Math.max;- var min$1 = Math.min;-- // Helper for a popular repeating case of the spec:- // Let integer be ? ToInteger(index).- // If integer < 0, let result be max((length + integer), 0); else let result be min(integer, length).- var toAbsoluteIndex = function (index, length) {- var integer = toInteger(index);- return integer < 0 ? max(integer + length, 0) : min$1(integer, length);- };-- // `Array.prototype.{ indexOf, includes }` methods implementation- var createMethod = function (IS_INCLUDES) {- return function ($this, el, fromIndex) {- var O = toIndexedObject($this);- var length = toLength(O.length);- var index = toAbsoluteIndex(fromIndex, length);- var value;- // Array#includes uses SameValueZero equality algorithm- // eslint-disable-next-line no-self-compare- if (IS_INCLUDES && el != el) while (length > index) {- value = O[index++];- // eslint-disable-next-line no-self-compare- if (value != value) return true;- // Array#indexOf ignores holes, Array#includes - not- } else for (;length > index; index++) {- if ((IS_INCLUDES || index in O) && O[index] === el) return IS_INCLUDES || index || 0;- } return !IS_INCLUDES && -1;- };- };-- var arrayIncludes = {- // `Array.prototype.includes` method- // https://tc39.github.io/ecma262/#sec-array.prototype.includes- includes: createMethod(true),- // `Array.prototype.indexOf` method- // https://tc39.github.io/ecma262/#sec-array.prototype.indexof- indexOf: createMethod(false)- };-- var indexOf = arrayIncludes.indexOf;--- var objectKeysInternal = function (object, names) {- var O = toIndexedObject(object);- var i = 0;- var result = [];- var key;- for (key in O) !has(hiddenKeys, key) && has(O, key) && result.push(key);- // Don't enum bug & hidden keys- while (names.length > i) if (has(O, key = names[i++])) {- ~indexOf(result, key) || result.push(key);- }- return result;- };-- // IE8- don't enum bug keys- var enumBugKeys = [- 'constructor',- 'hasOwnProperty',- 'isPrototypeOf',- 'propertyIsEnumerable',- 'toLocaleString',- 'toString',- 'valueOf'- ];-- var hiddenKeys$1 = enumBugKeys.concat('length', 'prototype');-- // `Object.getOwnPropertyNames` method- // https://tc39.github.io/ecma262/#sec-object.getownpropertynames- var f$3 = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {- return objectKeysInternal(O, hiddenKeys$1);- };-- var objectGetOwnPropertyNames = {- f: f$3- };-- var f$4 = Object.getOwnPropertySymbols;-- var objectGetOwnPropertySymbols = {- f: f$4- };-- // all object keys, includes non-enumerable and symbols- var ownKeys = getBuiltIn('Reflect', 'ownKeys') || function ownKeys(it) {- var keys = objectGetOwnPropertyNames.f(anObject(it));- var getOwnPropertySymbols = objectGetOwnPropertySymbols.f;- return getOwnPropertySymbols ? keys.concat(getOwnPropertySymbols(it)) : keys;- };-- var copyConstructorProperties = function (target, source) {- var keys = ownKeys(source);- var defineProperty = objectDefineProperty.f;- var getOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f;- for (var i = 0; i < keys.length; i++) {- var key = keys[i];- if (!has(target, key)) defineProperty(target, key, getOwnPropertyDescriptor(source, key));- }- };-- var replacement = /#|\.prototype\./;-- var isForced = function (feature, detection) {- var value = data[normalize(feature)];- return value == POLYFILL ? true- : value == NATIVE ? false- : typeof detection == 'function' ? fails(detection)- : !!detection;- };-- var normalize = isForced.normalize = function (string) {- return String(string).replace(replacement, '.').toLowerCase();- };-- var data = isForced.data = {};- var NATIVE = isForced.NATIVE = 'N';- var POLYFILL = isForced.POLYFILL = 'P';-- var isForced_1 = isForced;-- var getOwnPropertyDescriptor$1 = objectGetOwnPropertyDescriptor.f;------- /*- options.target - name of the target object- options.global - target is the global object- options.stat - export as static methods of target- options.proto - export as prototype methods of target- options.real - real prototype method for the `pure` version- options.forced - export even if the native feature is available- options.bind - bind methods to the target, required for the `pure` version- options.wrap - wrap constructors to preventing global pollution, required for the `pure` version- options.unsafe - use the simple assignment of property instead of delete + defineProperty- options.sham - add a flag to not completely full polyfills- options.enumerable - export as enumerable property- options.noTargetGet - prevent calling a getter on target- */- var _export = function (options, source) {- var TARGET = options.target;- var GLOBAL = options.global;- var STATIC = options.stat;- var FORCED, target, key, targetProperty, sourceProperty, descriptor;- if (GLOBAL) {- target = global_1;- } else if (STATIC) {- target = global_1[TARGET] || setGlobal(TARGET, {});- } else {- target = (global_1[TARGET] || {}).prototype;- }- if (target) for (key in source) {- sourceProperty = source[key];- if (options.noTargetGet) {- descriptor = getOwnPropertyDescriptor$1(target, key);- targetProperty = descriptor && descriptor.value;- } else targetProperty = target[key];- FORCED = isForced_1(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced);- // contained in target- if (!FORCED && targetProperty !== undefined) {- if (typeof sourceProperty === typeof targetProperty) continue;- copyConstructorProperties(sourceProperty, targetProperty);- }- // add a flag to not completely full polyfills- if (options.sham || (targetProperty && targetProperty.sham)) {- createNonEnumerableProperty(sourceProperty, 'sham', true);- }- // extend global- redefine(target, key, sourceProperty, options);- }- };-- // `IsArray` abstract operation- // https://tc39.github.io/ecma262/#sec-isarray- var isArray = Array.isArray || function isArray(arg) {- return classofRaw(arg) == 'Array';- };-- // `ToObject` abstract operation- // https://tc39.github.io/ecma262/#sec-toobject- var toObject = function (argument) {- return Object(requireObjectCoercible(argument));- };-- var createProperty = function (object, key, value) {- var propertyKey = toPrimitive(key);- if (propertyKey in object) objectDefineProperty.f(object, propertyKey, createPropertyDescriptor(0, value));- else object[propertyKey] = value;- };-- var nativeSymbol = !!Object.getOwnPropertySymbols && !fails(function () {- // Chrome 38 Symbol has incorrect toString conversion- // eslint-disable-next-line no-undef- return !String(Symbol());- });-- var useSymbolAsUid = nativeSymbol- // eslint-disable-next-line no-undef- && !Symbol.sham- // eslint-disable-next-line no-undef- && typeof Symbol() == 'symbol';-- var WellKnownSymbolsStore = shared('wks');- var Symbol$1 = global_1.Symbol;- var createWellKnownSymbol = useSymbolAsUid ? Symbol$1 : uid;-- var wellKnownSymbol = function (name) {- if (!has(WellKnownSymbolsStore, name)) {- if (nativeSymbol && has(Symbol$1, name)) WellKnownSymbolsStore[name] = Symbol$1[name];- else WellKnownSymbolsStore[name] = createWellKnownSymbol('Symbol.' + name);- } return WellKnownSymbolsStore[name];- };-- var SPECIES = wellKnownSymbol('species');-- // `ArraySpeciesCreate` abstract operation- // https://tc39.github.io/ecma262/#sec-arrayspeciescreate- var arraySpeciesCreate = function (originalArray, length) {- var C;- if (isArray(originalArray)) {- C = originalArray.constructor;- // cross-realm fallback- if (typeof C == 'function' && (C === Array || isArray(C.prototype))) C = undefined;- else if (isObject(C)) {- C = C[SPECIES];- if (C === null) C = undefined;- }- } return new (C === undefined ? Array : C)(length === 0 ? 0 : length);- };-- var userAgent = getBuiltIn('navigator', 'userAgent') || '';-- var process = global_1.process;- var versions = process && process.versions;- var v8 = versions && versions.v8;- var match, version;-- if (v8) {- match = v8.split('.');- version = match[0] + match[1];- } else if (userAgent) {- match = userAgent.match(/Edge\/(\d+)/);- if (!match || match[1] >= 74) {- match = userAgent.match(/Chrome\/(\d+)/);- if (match) version = match[1];- }- }-- var v8Version = version && +version;-- var SPECIES$1 = wellKnownSymbol('species');-- var arrayMethodHasSpeciesSupport = function (METHOD_NAME) {- // We can't use this feature detection in V8 since it causes- // deoptimization and serious performance degradation- // https://github.com/zloirock/core-js/issues/677- return v8Version >= 51 || !fails(function () {- var array = [];- var constructor = array.constructor = {};- constructor[SPECIES$1] = function () {- return { foo: 1 };- };- return array[METHOD_NAME](Boolean).foo !== 1;- });- };-- var IS_CONCAT_SPREADABLE = wellKnownSymbol('isConcatSpreadable');- var MAX_SAFE_INTEGER = 0x1FFFFFFFFFFFFF;- var MAXIMUM_ALLOWED_INDEX_EXCEEDED = 'Maximum allowed index exceeded';-- // We can't use this feature detection in V8 since it causes- // deoptimization and serious performance degradation- // https://github.com/zloirock/core-js/issues/679- var IS_CONCAT_SPREADABLE_SUPPORT = v8Version >= 51 || !fails(function () {- var array = [];- array[IS_CONCAT_SPREADABLE] = false;- return array.concat()[0] !== array;- });-- var SPECIES_SUPPORT = arrayMethodHasSpeciesSupport('concat');-- var isConcatSpreadable = function (O) {- if (!isObject(O)) return false;- var spreadable = O[IS_CONCAT_SPREADABLE];- return spreadable !== undefined ? !!spreadable : isArray(O);- };-- var FORCED = !IS_CONCAT_SPREADABLE_SUPPORT || !SPECIES_SUPPORT;-- // `Array.prototype.concat` method- // https://tc39.github.io/ecma262/#sec-array.prototype.concat- // with adding support of @@isConcatSpreadable and @@species- _export({ target: 'Array', proto: true, forced: FORCED }, {- concat: function concat(arg) { // eslint-disable-line no-unused-vars- var O = toObject(this);- var A = arraySpeciesCreate(O, 0);- var n = 0;- var i, k, length, len, E;- for (i = -1, length = arguments.length; i < length; i++) {- E = i === -1 ? O : arguments[i];- if (isConcatSpreadable(E)) {- len = toLength(E.length);- if (n + len > MAX_SAFE_INTEGER) throw TypeError(MAXIMUM_ALLOWED_INDEX_EXCEEDED);- for (k = 0; k < len; k++, n++) if (k in E) createProperty(A, n, E[k]);- } else {- if (n >= MAX_SAFE_INTEGER) throw TypeError(MAXIMUM_ALLOWED_INDEX_EXCEEDED);- createProperty(A, n++, E);- }- }- A.length = n;- return A;- }- });-- var aFunction$1 = function (it) {- if (typeof it != 'function') {- throw TypeError(String(it) + ' is not a function');- } return it;- };-- // optional / simple context binding- var bindContext = function (fn, that, length) {- aFunction$1(fn);- if (that === undefined) return fn;- switch (length) {- case 0: return function () {- return fn.call(that);- };- case 1: return function (a) {- return fn.call(that, a);- };- case 2: return function (a, b) {- return fn.call(that, a, b);- };- case 3: return function (a, b, c) {- return fn.call(that, a, b, c);- };- }- return function (/* ...args */) {- return fn.apply(that, arguments);- };- };-- var push = [].push;-- // `Array.prototype.{ forEach, map, filter, some, every, find, findIndex }` methods implementation- var createMethod$1 = function (TYPE) {- var IS_MAP = TYPE == 1;- var IS_FILTER = TYPE == 2;- var IS_SOME = TYPE == 3;- var IS_EVERY = TYPE == 4;- var IS_FIND_INDEX = TYPE == 6;- var NO_HOLES = TYPE == 5 || IS_FIND_INDEX;- return function ($this, callbackfn, that, specificCreate) {- var O = toObject($this);- var self = indexedObject(O);- var boundFunction = bindContext(callbackfn, that, 3);- var length = toLength(self.length);- var index = 0;- var create = specificCreate || arraySpeciesCreate;- var target = IS_MAP ? create($this, length) : IS_FILTER ? create($this, 0) : undefined;- var value, result;- for (;length > index; index++) if (NO_HOLES || index in self) {- value = self[index];- result = boundFunction(value, index, O);- if (TYPE) {- if (IS_MAP) target[index] = result; // map- else if (result) switch (TYPE) {- case 3: return true; // some- case 5: return value; // find- case 6: return index; // findIndex- case 2: push.call(target, value); // filter- } else if (IS_EVERY) return false; // every- }- }- return IS_FIND_INDEX ? -1 : IS_SOME || IS_EVERY ? IS_EVERY : target;- };- };-- var arrayIteration = {- // `Array.prototype.forEach` method- // https://tc39.github.io/ecma262/#sec-array.prototype.foreach- forEach: createMethod$1(0),- // `Array.prototype.map` method- // https://tc39.github.io/ecma262/#sec-array.prototype.map- map: createMethod$1(1),- // `Array.prototype.filter` method- // https://tc39.github.io/ecma262/#sec-array.prototype.filter- filter: createMethod$1(2),- // `Array.prototype.some` method- // https://tc39.github.io/ecma262/#sec-array.prototype.some- some: createMethod$1(3),- // `Array.prototype.every` method- // https://tc39.github.io/ecma262/#sec-array.prototype.every- every: createMethod$1(4),- // `Array.prototype.find` method- // https://tc39.github.io/ecma262/#sec-array.prototype.find- find: createMethod$1(5),- // `Array.prototype.findIndex` method- // https://tc39.github.io/ecma262/#sec-array.prototype.findIndex- findIndex: createMethod$1(6)- };-- // `Object.keys` method- // https://tc39.github.io/ecma262/#sec-object.keys- var objectKeys = Object.keys || function keys(O) {- return objectKeysInternal(O, enumBugKeys);- };-- // `Object.defineProperties` method- // https://tc39.github.io/ecma262/#sec-object.defineproperties- var objectDefineProperties = descriptors ? Object.defineProperties : function defineProperties(O, Properties) {- anObject(O);- var keys = objectKeys(Properties);- var length = keys.length;- var index = 0;- var key;- while (length > index) objectDefineProperty.f(O, key = keys[index++], Properties[key]);- return O;- };-- var html = getBuiltIn('document', 'documentElement');-- var GT = '>';- var LT = '<';- var PROTOTYPE = 'prototype';- var SCRIPT = 'script';- var IE_PROTO = sharedKey('IE_PROTO');-- var EmptyConstructor = function () { /* empty */ };-- var scriptTag = function (content) {- return LT + SCRIPT + GT + content + LT + '/' + SCRIPT + GT;- };-- // Create object with fake `null` prototype: use ActiveX Object with cleared prototype- var NullProtoObjectViaActiveX = function (activeXDocument) {- activeXDocument.write(scriptTag(''));- activeXDocument.close();- var temp = activeXDocument.parentWindow.Object;- activeXDocument = null; // avoid memory leak- return temp;- };-- // Create object with fake `null` prototype: use iframe Object with cleared prototype- var NullProtoObjectViaIFrame = function () {- // Thrash, waste and sodomy: IE GC bug- var iframe = documentCreateElement('iframe');- var JS = 'java' + SCRIPT + ':';- var iframeDocument;- iframe.style.display = 'none';- html.appendChild(iframe);- // https://github.com/zloirock/core-js/issues/475- iframe.src = String(JS);- iframeDocument = iframe.contentWindow.document;- iframeDocument.open();- iframeDocument.write(scriptTag('document.F=Object'));- iframeDocument.close();- return iframeDocument.F;- };-- // Check for document.domain and active x support- // No need to use active x approach when document.domain is not set- // see https://github.com/es-shims/es5-shim/issues/150- // variation of https://github.com/kitcambridge/es5-shim/commit/4f738ac066346- // avoid IE GC bug- var activeXDocument;- var NullProtoObject = function () {- try {- /* global ActiveXObject */- activeXDocument = document.domain && new ActiveXObject('htmlfile');- } catch (error) { /* ignore */ }- NullProtoObject = activeXDocument ? NullProtoObjectViaActiveX(activeXDocument) : NullProtoObjectViaIFrame();- var length = enumBugKeys.length;- while (length--) delete NullProtoObject[PROTOTYPE][enumBugKeys[length]];- return NullProtoObject();- };-- hiddenKeys[IE_PROTO] = true;-- // `Object.create` method- // https://tc39.github.io/ecma262/#sec-object.create- var objectCreate = Object.create || function create(O, Properties) {- var result;- if (O !== null) {- EmptyConstructor[PROTOTYPE] = anObject(O);- result = new EmptyConstructor();- EmptyConstructor[PROTOTYPE] = null;- // add "__proto__" for Object.getPrototypeOf polyfill- result[IE_PROTO] = O;- } else result = NullProtoObject();- return Properties === undefined ? result : objectDefineProperties(result, Properties);- };-- var UNSCOPABLES = wellKnownSymbol('unscopables');- var ArrayPrototype = Array.prototype;-- // Array.prototype[@@unscopables]- // https://tc39.github.io/ecma262/#sec-array.prototype-@@unscopables- if (ArrayPrototype[UNSCOPABLES] == undefined) {- objectDefineProperty.f(ArrayPrototype, UNSCOPABLES, {- configurable: true,- value: objectCreate(null)- });- }-- // add a key to Array.prototype[@@unscopables]- var addToUnscopables = function (key) {- ArrayPrototype[UNSCOPABLES][key] = true;- };-- var $find = arrayIteration.find;--- var FIND = 'find';- var SKIPS_HOLES = true;-- // Shouldn't skip holes- if (FIND in []) Array(1)[FIND](function () { SKIPS_HOLES = false; });-- // `Array.prototype.find` method- // https://tc39.github.io/ecma262/#sec-array.prototype.find- _export({ target: 'Array', proto: true, forced: SKIPS_HOLES }, {- find: function find(callbackfn /* , that = undefined */) {- return $find(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);- }- });-- // https://tc39.github.io/ecma262/#sec-array.prototype-@@unscopables- addToUnscopables(FIND);-- function _classCallCheck(instance, Constructor) {- if (!(instance instanceof Constructor)) {- throw new TypeError("Cannot call a class as a function");- }- }-- function _defineProperties(target, props) {- for (var i = 0; i < props.length; i++) {- var descriptor = props[i];- descriptor.enumerable = descriptor.enumerable || false;- descriptor.configurable = true;- if ("value" in descriptor) descriptor.writable = true;- Object.defineProperty(target, descriptor.key, descriptor);- }- }-- function _createClass(Constructor, protoProps, staticProps) {- if (protoProps) _defineProperties(Constructor.prototype, protoProps);- if (staticProps) _defineProperties(Constructor, staticProps);- return Constructor;- }-- function _inherits(subClass, superClass) {- if (typeof superClass !== "function" && superClass !== null) {- throw new TypeError("Super expression must either be null or a function");- }-- subClass.prototype = Object.create(superClass && superClass.prototype, {- constructor: {- value: subClass,- writable: true,- configurable: true- }- });- if (superClass) _setPrototypeOf(subClass, superClass);- }-- function _getPrototypeOf(o) {- _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {- return o.__proto__ || Object.getPrototypeOf(o);- };- return _getPrototypeOf(o);- }-- function _setPrototypeOf(o, p) {- _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {- o.__proto__ = p;- return o;- };-- return _setPrototypeOf(o, p);- }-- function _assertThisInitialized(self) {- if (self === void 0) {- throw new ReferenceError("this hasn't been initialised - super() hasn't been called");- }-- return self;- }-- function _possibleConstructorReturn(self, call) {- if (call && (typeof call === "object" || typeof call === "function")) {- return call;- }-- return _assertThisInitialized(self);- }-- function _superPropBase(object, property) {- while (!Object.prototype.hasOwnProperty.call(object, property)) {- object = _getPrototypeOf(object);- if (object === null) break;- }-- return object;- }-- function _get(target, property, receiver) {- if (typeof Reflect !== "undefined" && Reflect.get) {- _get = Reflect.get;- } else {- _get = function _get(target, property, receiver) {- var base = _superPropBase(target, property);-- if (!base) return;- var desc = Object.getOwnPropertyDescriptor(base, property);-- if (desc.get) {- return desc.get.call(receiver);- }-- return desc.value;- };- }-- return _get(target, property, receiver || target);- }-- /**- * @author vincent loh <[email protected]>- * @update J Manuel Corona <[email protected]>- * @update zhixin wen <[email protected]>- */-- var Utils = $.fn.bootstrapTable.utils;- $.extend($.fn.bootstrapTable.defaults, {- stickyHeader: false,- stickyHeaderOffsetY: 0,- stickyHeaderOffsetLeft: 0,- stickyHeaderOffsetRight: 0- });-- $.BootstrapTable =- /*#__PURE__*/- function (_$$BootstrapTable) {- _inherits(_class, _$$BootstrapTable);-- function _class() {- _classCallCheck(this, _class);-- return _possibleConstructorReturn(this, _getPrototypeOf(_class).apply(this, arguments));- }-- _createClass(_class, [{- key: "initHeader",- value: function initHeader() {- var _get2,- _this = this;-- for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {- args[_key] = arguments[_key];- }-- (_get2 = _get(_getPrototypeOf(_class.prototype), "initHeader", this)).call.apply(_get2, [this].concat(args));-- if (!this.options.stickyHeader) {- return;- }-- this.$tableBody.find('.sticky-header-container,.sticky_anchor_begin,.sticky_anchor_end').remove();- this.$el.before('<div class="sticky-header-container"></div>');- this.$el.before('<div class="sticky_anchor_begin"></div>');- this.$el.after('<div class="sticky_anchor_end"></div>');- this.$header.addClass('sticky-header'); // clone header just once, to be used as sticky header- // deep clone header, using source header affects tbody>td width-- this.$stickyContainer = this.$tableBody.find('.sticky-header-container');- this.$stickyBegin = this.$tableBody.find('.sticky_anchor_begin');- this.$stickyEnd = this.$tableBody.find('.sticky_anchor_end');- this.$stickyHeader = this.$header.clone(true, true); // render sticky on window scroll or resize-- var resizeEvent = Utils.getEventName('resize.sticky-header-table', this.$el.attr('id'));- var scrollEvent = Utils.getEventName('scroll.sticky-header-table', this.$el.attr('id'));- $(window).off(resizeEvent).on(resizeEvent, function () {- return _this.renderStickyHeader();- });- $(window).off(scrollEvent).on(scrollEvent, function () {- return _this.renderStickyHeader();- });- this.$tableBody.off('scroll').on('scroll', function () {- return _this.matchPositionX();- });- }- }, {- key: "onColumnSearch",- value: function onColumnSearch(_ref) {- var currentTarget = _ref.currentTarget,- keyCode = _ref.keyCode;-- _get(_getPrototypeOf(_class.prototype), "onColumnSearch", this).call(this, {- currentTarget: currentTarget,- keyCode: keyCode- });-- this.renderStickyHeader();- }- }, {- key: "resetView",- value: function resetView() {- var _get3,- _this2 = this;-- for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {- args[_key2] = arguments[_key2];- }-- (_get3 = _get(_getPrototypeOf(_class.prototype), "resetView", this)).call.apply(_get3, [this].concat(args));-- $('.bootstrap-table.fullscreen').off('scroll').on('scroll', function () {- return _this2.renderStickyHeader();- });- }- }, {- key: "horizontalScroll",- value: function horizontalScroll() {- var _this3 = this;-- _get(_getPrototypeOf(_class.prototype), "horizontalScroll", this).call(this);-- this.$tableBody.on('scroll', function () {- return _this3.matchPositionX();- });- }- }, {- key: "renderStickyHeader",- value: function renderStickyHeader() {- var _this4 = this;-- var that = this;- this.$stickyHeader = this.$header.clone(true, true);-- if (this.options.filterControl) {- $(this.$stickyHeader).off('keyup change mouseup').on('keyup change mouse', function (e) {- var $target = $(e.target);- var value = $target.val();- var field = $target.parents('th').data('field');- var $coreTh = that.$header.find('th[data-field="' + field + '"]');-- if ($target.is('input')) {- $coreTh.find('input').val(value);- } else if ($target.is('select')) {- var $select = $coreTh.find('select');- $select.find('option[selected]').removeAttr('selected');- $select.find('option[value="' + value + '"]').attr('selected', true);- }-- that.triggerSearch();- });- }-- var top = $(window).scrollTop(); // top anchor scroll position, minus header height-- var start = this.$stickyBegin.offset().top - this.options.stickyHeaderOffsetY; // bottom anchor scroll position, minus header height, minus sticky height-- var end = this.$stickyEnd.offset().top - this.options.stickyHeaderOffsetY - this.$header.height(); // show sticky when top anchor touches header, and when bottom anchor not exceeded-- if (top > start && top <= end) {- // ensure clone and source column widths are the same- this.$stickyHeader.find('tr:eq(0)').find('th').each(function (index, el) {- $(el).css('min-width', _this4.$header.find('tr:eq(0)').find('th').eq(index).css('width'));- }); // match bootstrap table style-- this.$stickyContainer.show().addClass('fix-sticky fixed-table-container'); // stick it in position-- var stickyHeaderOffsetLeft = this.options.stickyHeaderOffsetLeft;- var stickyHeaderOffsetRight = this.options.stickyHeaderOffsetRight;-- if (this.$el.closest('.bootstrap-table').hasClass('fullscreen')) {- stickyHeaderOffsetLeft = 0;- stickyHeaderOffsetRight = 0;- }-- this.$stickyContainer.css('top', "".concat(this.options.stickyHeaderOffsetY));- this.$stickyContainer.css('left', "".concat(stickyHeaderOffsetLeft));- this.$stickyContainer.css('right', "".concat(stickyHeaderOffsetRight)); // create scrollable container for header-- this.$stickyTable = $('<table/>');- this.$stickyTable.addClass(this.options.classes); // append cloned header to dom-- this.$stickyContainer.html(this.$stickyTable.append(this.$stickyHeader)); // match clone and source header positions when left-right scroll-- this.matchPositionX();- } else {- this.$stickyContainer.removeClass('fix-sticky').hide();- }- }- }, {- key: "matchPositionX",- value: function matchPositionX() {- this.$stickyContainer.scrollLeft(this.$tableBody.scrollLeft());- }- }]);-- return _class;- }($.BootstrapTable);--})));--(function (global, factory) {- typeof exports === 'object' && typeof module !== 'undefined' ? factory(require('jquery')) :- typeof define === 'function' && define.amd ? define(['jquery'], factory) :- (global = global || self, factory(global.jQuery));-}(this, (function ($) { 'use strict';-- $ = $ && Object.prototype.hasOwnProperty.call($, 'default') ? $['default'] : $;-- var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};-- function createCommonjsModule(fn, module) {- return module = { exports: {} }, fn(module, module.exports), module.exports;- }-- var check = function (it) {- return it && it.Math == Math && it;- };-- // https://github.com/zloirock/core-js/issues/86#issuecomment-115759028- var global_1 =- // eslint-disable-next-line no-undef- check(typeof globalThis == 'object' && globalThis) ||- check(typeof window == 'object' && window) ||- check(typeof self == 'object' && self) ||- check(typeof commonjsGlobal == 'object' && commonjsGlobal) ||- // eslint-disable-next-line no-new-func- Function('return this')();-- var fails = function (exec) {- try {- return !!exec();- } catch (error) {- return true;- }- };-- // Thank's IE8 for his funny defineProperty- var descriptors = !fails(function () {- return Object.defineProperty({}, 'a', { get: function () { return 7; } }).a != 7;- });-- var nativePropertyIsEnumerable = {}.propertyIsEnumerable;- var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;-- // Nashorn ~ JDK8 bug- var NASHORN_BUG = getOwnPropertyDescriptor && !nativePropertyIsEnumerable.call({ 1: 2 }, 1);-- // `Object.prototype.propertyIsEnumerable` method implementation- // https://tc39.github.io/ecma262/#sec-object.prototype.propertyisenumerable- var f = NASHORN_BUG ? function propertyIsEnumerable(V) {- var descriptor = getOwnPropertyDescriptor(this, V);- return !!descriptor && descriptor.enumerable;- } : nativePropertyIsEnumerable;-- var objectPropertyIsEnumerable = {- f: f- };-- var createPropertyDescriptor = function (bitmap, value) {- return {- enumerable: !(bitmap & 1),- configurable: !(bitmap & 2),- writable: !(bitmap & 4),- value: value- };- };-- var toString = {}.toString;-- var classofRaw = function (it) {- return toString.call(it).slice(8, -1);- };-- var split = ''.split;-- // fallback for non-array-like ES3 and non-enumerable old V8 strings- var indexedObject = fails(function () {- // throws an error in rhino, see https://github.com/mozilla/rhino/issues/346- // eslint-disable-next-line no-prototype-builtins- return !Object('z').propertyIsEnumerable(0);- }) ? function (it) {- return classofRaw(it) == 'String' ? split.call(it, '') : Object(it);- } : Object;-- // `RequireObjectCoercible` abstract operation- // https://tc39.github.io/ecma262/#sec-requireobjectcoercible- var requireObjectCoercible = function (it) {- if (it == undefined) throw TypeError("Can't call method on " + it);- return it;- };-- // toObject with fallback for non-array-like ES3 strings---- var toIndexedObject = function (it) {- return indexedObject(requireObjectCoercible(it));- };-- var isObject = function (it) {- return typeof it === 'object' ? it !== null : typeof it === 'function';- };-- // `ToPrimitive` abstract operation- // https://tc39.github.io/ecma262/#sec-toprimitive- // instead of the ES6 spec version, we didn't implement @@toPrimitive case- // and the second argument - flag - preferred type is a string- var toPrimitive = function (input, PREFERRED_STRING) {- if (!isObject(input)) return input;- var fn, val;- if (PREFERRED_STRING && typeof (fn = input.toString) == 'function' && !isObject(val = fn.call(input))) return val;- if (typeof (fn = input.valueOf) == 'function' && !isObject(val = fn.call(input))) return val;- if (!PREFERRED_STRING && typeof (fn = input.toString) == 'function' && !isObject(val = fn.call(input))) return val;- throw TypeError("Can't convert object to primitive value");- };-- var hasOwnProperty = {}.hasOwnProperty;-- var has = function (it, key) {- return hasOwnProperty.call(it, key);- };-- var document$1 = global_1.document;- // typeof document.createElement is 'object' in old IE- var EXISTS = isObject(document$1) && isObject(document$1.createElement);-- var documentCreateElement = function (it) {- return EXISTS ? document$1.createElement(it) : {};- };-- // Thank's IE8 for his funny defineProperty- var ie8DomDefine = !descriptors && !fails(function () {- return Object.defineProperty(documentCreateElement('div'), 'a', {- get: function () { return 7; }- }).a != 7;- });-- var nativeGetOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;-- // `Object.getOwnPropertyDescriptor` method- // https://tc39.github.io/ecma262/#sec-object.getownpropertydescriptor- var f$1 = descriptors ? nativeGetOwnPropertyDescriptor : function getOwnPropertyDescriptor(O, P) {- O = toIndexedObject(O);- P = toPrimitive(P, true);- if (ie8DomDefine) try {- return nativeGetOwnPropertyDescriptor(O, P);- } catch (error) { /* empty */ }- if (has(O, P)) return createPropertyDescriptor(!objectPropertyIsEnumerable.f.call(O, P), O[P]);- };-- var objectGetOwnPropertyDescriptor = {- f: f$1- };-- var anObject = function (it) {- if (!isObject(it)) {- throw TypeError(String(it) + ' is not an object');- } return it;- };-- var nativeDefineProperty = Object.defineProperty;-- // `Object.defineProperty` method- // https://tc39.github.io/ecma262/#sec-object.defineproperty- var f$2 = descriptors ? nativeDefineProperty : function defineProperty(O, P, Attributes) {- anObject(O);- P = toPrimitive(P, true);- anObject(Attributes);- if (ie8DomDefine) try {- return nativeDefineProperty(O, P, Attributes);- } catch (error) { /* empty */ }- if ('get' in Attributes || 'set' in Attributes) throw TypeError('Accessors not supported');- if ('value' in Attributes) O[P] = Attributes.value;- return O;- };-- var objectDefineProperty = {- f: f$2- };-- var createNonEnumerableProperty = descriptors ? function (object, key, value) {- return objectDefineProperty.f(object, key, createPropertyDescriptor(1, value));- } : function (object, key, value) {- object[key] = value;- return object;- };-- var setGlobal = function (key, value) {- try {- createNonEnumerableProperty(global_1, key, value);- } catch (error) {- global_1[key] = value;- } return value;- };-- var SHARED = '__core-js_shared__';- var store = global_1[SHARED] || setGlobal(SHARED, {});-- var sharedStore = store;-- var functionToString = Function.toString;-- // this helper broken in `3.4.1-3.4.4`, so we can't use `shared` helper- if (typeof sharedStore.inspectSource != 'function') {- sharedStore.inspectSource = function (it) {- return functionToString.call(it);- };- }-- var inspectSource = sharedStore.inspectSource;-- var WeakMap = global_1.WeakMap;-- var nativeWeakMap = typeof WeakMap === 'function' && /native code/.test(inspectSource(WeakMap));-- var shared = createCommonjsModule(function (module) {- (module.exports = function (key, value) {- return sharedStore[key] || (sharedStore[key] = value !== undefined ? value : {});- })('versions', []).push({- version: '3.6.0',- mode: 'global',- copyright: '© 2019 Denis Pushkarev (zloirock.ru)'- });- });-- var id = 0;- var postfix = Math.random();-- var uid = function (key) {- return 'Symbol(' + String(key === undefined ? '' : key) + ')_' + (++id + postfix).toString(36);- };-- var keys = shared('keys');-- var sharedKey = function (key) {- return keys[key] || (keys[key] = uid(key));- };-- var hiddenKeys = {};-- var WeakMap$1 = global_1.WeakMap;- var set, get, has$1;-- var enforce = function (it) {- return has$1(it) ? get(it) : set(it, {});- };-- var getterFor = function (TYPE) {- return function (it) {- var state;- if (!isObject(it) || (state = get(it)).type !== TYPE) {- throw TypeError('Incompatible receiver, ' + TYPE + ' required');- } return state;- };- };-- if (nativeWeakMap) {- var store$1 = new WeakMap$1();- var wmget = store$1.get;- var wmhas = store$1.has;- var wmset = store$1.set;- set = function (it, metadata) {- wmset.call(store$1, it, metadata);- return metadata;- };- get = function (it) {- return wmget.call(store$1, it) || {};- };- has$1 = function (it) {- return wmhas.call(store$1, it);- };- } else {- var STATE = sharedKey('state');- hiddenKeys[STATE] = true;- set = function (it, metadata) {- createNonEnumerableProperty(it, STATE, metadata);- return metadata;- };- get = function (it) {- return has(it, STATE) ? it[STATE] : {};- };- has$1 = function (it) {- return has(it, STATE);- };- }-- var internalState = {- set: set,- get: get,- has: has$1,- enforce: enforce,- getterFor: getterFor- };-- var redefine = createCommonjsModule(function (module) {- var getInternalState = internalState.get;- var enforceInternalState = internalState.enforce;- var TEMPLATE = String(String).split('String');-- (module.exports = function (O, key, value, options) {- var unsafe = options ? !!options.unsafe : false;- var simple = options ? !!options.enumerable : false;- var noTargetGet = options ? !!options.noTargetGet : false;- if (typeof value == 'function') {- if (typeof key == 'string' && !has(value, 'name')) createNonEnumerableProperty(value, 'name', key);- enforceInternalState(value).source = TEMPLATE.join(typeof key == 'string' ? key : '');- }- if (O === global_1) {- if (simple) O[key] = value;- else setGlobal(key, value);- return;- } else if (!unsafe) {- delete O[key];- } else if (!noTargetGet && O[key]) {- simple = true;- }- if (simple) O[key] = value;- else createNonEnumerableProperty(O, key, value);- // add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative- })(Function.prototype, 'toString', function toString() {- return typeof this == 'function' && getInternalState(this).source || inspectSource(this);- });- });-- var path = global_1;-- var aFunction = function (variable) {- return typeof variable == 'function' ? variable : undefined;- };-- var getBuiltIn = function (namespace, method) {- return arguments.length < 2 ? aFunction(path[namespace]) || aFunction(global_1[namespace])- : path[namespace] && path[namespace][method] || global_1[namespace] && global_1[namespace][method];- };-- var ceil = Math.ceil;- var floor = Math.floor;-- // `ToInteger` abstract operation- // https://tc39.github.io/ecma262/#sec-tointeger- var toInteger = function (argument) {- return isNaN(argument = +argument) ? 0 : (argument > 0 ? floor : ceil)(argument);- };-- var min = Math.min;-- // `ToLength` abstract operation- // https://tc39.github.io/ecma262/#sec-tolength- var toLength = function (argument) {- return argument > 0 ? min(toInteger(argument), 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991- };-- var max = Math.max;- var min$1 = Math.min;-- // Helper for a popular repeating case of the spec:- // Let integer be ? ToInteger(index).- // If integer < 0, let result be max((length + integer), 0); else let result be min(integer, length).- var toAbsoluteIndex = function (index, length) {- var integer = toInteger(index);- return integer < 0 ? max(integer + length, 0) : min$1(integer, length);- };-- // `Array.prototype.{ indexOf, includes }` methods implementation- var createMethod = function (IS_INCLUDES) {- return function ($this, el, fromIndex) {- var O = toIndexedObject($this);- var length = toLength(O.length);- var index = toAbsoluteIndex(fromIndex, length);- var value;- // Array#includes uses SameValueZero equality algorithm- // eslint-disable-next-line no-self-compare- if (IS_INCLUDES && el != el) while (length > index) {- value = O[index++];- // eslint-disable-next-line no-self-compare- if (value != value) return true;- // Array#indexOf ignores holes, Array#includes - not- } else for (;length > index; index++) {- if ((IS_INCLUDES || index in O) && O[index] === el) return IS_INCLUDES || index || 0;- } return !IS_INCLUDES && -1;- };- };-- var arrayIncludes = {- // `Array.prototype.includes` method- // https://tc39.github.io/ecma262/#sec-array.prototype.includes- includes: createMethod(true),- // `Array.prototype.indexOf` method- // https://tc39.github.io/ecma262/#sec-array.prototype.indexof- indexOf: createMethod(false)- };-- var indexOf = arrayIncludes.indexOf;--- var objectKeysInternal = function (object, names) {- var O = toIndexedObject(object);- var i = 0;- var result = [];- var key;- for (key in O) !has(hiddenKeys, key) && has(O, key) && result.push(key);- // Don't enum bug & hidden keys- while (names.length > i) if (has(O, key = names[i++])) {- ~indexOf(result, key) || result.push(key);- }- return result;- };-- // IE8- don't enum bug keys- var enumBugKeys = [- 'constructor',- 'hasOwnProperty',- 'isPrototypeOf',- 'propertyIsEnumerable',- 'toLocaleString',- 'toString',- 'valueOf'- ];-- var hiddenKeys$1 = enumBugKeys.concat('length', 'prototype');-- // `Object.getOwnPropertyNames` method- // https://tc39.github.io/ecma262/#sec-object.getownpropertynames- var f$3 = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {- return objectKeysInternal(O, hiddenKeys$1);- };-- var objectGetOwnPropertyNames = {- f: f$3- };-- var f$4 = Object.getOwnPropertySymbols;-- var objectGetOwnPropertySymbols = {- f: f$4- };-- // all object keys, includes non-enumerable and symbols- var ownKeys = getBuiltIn('Reflect', 'ownKeys') || function ownKeys(it) {- var keys = objectGetOwnPropertyNames.f(anObject(it));- var getOwnPropertySymbols = objectGetOwnPropertySymbols.f;- return getOwnPropertySymbols ? keys.concat(getOwnPropertySymbols(it)) : keys;- };-- var copyConstructorProperties = function (target, source) {- var keys = ownKeys(source);- var defineProperty = objectDefineProperty.f;- var getOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f;- for (var i = 0; i < keys.length; i++) {- var key = keys[i];- if (!has(target, key)) defineProperty(target, key, getOwnPropertyDescriptor(source, key));- }- };-- var replacement = /#|\.prototype\./;-- var isForced = function (feature, detection) {- var value = data[normalize(feature)];- return value == POLYFILL ? true- : value == NATIVE ? false- : typeof detection == 'function' ? fails(detection)- : !!detection;- };-- var normalize = isForced.normalize = function (string) {- return String(string).replace(replacement, '.').toLowerCase();- };-- var data = isForced.data = {};- var NATIVE = isForced.NATIVE = 'N';- var POLYFILL = isForced.POLYFILL = 'P';-- var isForced_1 = isForced;-- var getOwnPropertyDescriptor$1 = objectGetOwnPropertyDescriptor.f;------- /*- options.target - name of the target object- options.global - target is the global object- options.stat - export as static methods of target- options.proto - export as prototype methods of target- options.real - real prototype method for the `pure` version- options.forced - export even if the native feature is available- options.bind - bind methods to the target, required for the `pure` version- options.wrap - wrap constructors to preventing global pollution, required for the `pure` version- options.unsafe - use the simple assignment of property instead of delete + defineProperty- options.sham - add a flag to not completely full polyfills- options.enumerable - export as enumerable property- options.noTargetGet - prevent calling a getter on target- */- var _export = function (options, source) {- var TARGET = options.target;- var GLOBAL = options.global;- var STATIC = options.stat;- var FORCED, target, key, targetProperty, sourceProperty, descriptor;- if (GLOBAL) {- target = global_1;- } else if (STATIC) {- target = global_1[TARGET] || setGlobal(TARGET, {});- } else {- target = (global_1[TARGET] || {}).prototype;- }- if (target) for (key in source) {- sourceProperty = source[key];- if (options.noTargetGet) {- descriptor = getOwnPropertyDescriptor$1(target, key);- targetProperty = descriptor && descriptor.value;- } else targetProperty = target[key];- FORCED = isForced_1(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced);- // contained in target- if (!FORCED && targetProperty !== undefined) {- if (typeof sourceProperty === typeof targetProperty) continue;- copyConstructorProperties(sourceProperty, targetProperty);- }- // add a flag to not completely full polyfills- if (options.sham || (targetProperty && targetProperty.sham)) {- createNonEnumerableProperty(sourceProperty, 'sham', true);- }- // extend global- redefine(target, key, sourceProperty, options);- }- };-- var nativeSymbol = !!Object.getOwnPropertySymbols && !fails(function () {- // Chrome 38 Symbol has incorrect toString conversion- // eslint-disable-next-line no-undef- return !String(Symbol());- });-- var useSymbolAsUid = nativeSymbol- // eslint-disable-next-line no-undef- && !Symbol.sham- // eslint-disable-next-line no-undef- && typeof Symbol() == 'symbol';-- // `IsArray` abstract operation- // https://tc39.github.io/ecma262/#sec-isarray- var isArray = Array.isArray || function isArray(arg) {- return classofRaw(arg) == 'Array';- };-- // `ToObject` abstract operation- // https://tc39.github.io/ecma262/#sec-toobject- var toObject = function (argument) {- return Object(requireObjectCoercible(argument));- };-- // `Object.keys` method- // https://tc39.github.io/ecma262/#sec-object.keys- var objectKeys = Object.keys || function keys(O) {- return objectKeysInternal(O, enumBugKeys);- };-- // `Object.defineProperties` method- // https://tc39.github.io/ecma262/#sec-object.defineproperties- var objectDefineProperties = descriptors ? Object.defineProperties : function defineProperties(O, Properties) {- anObject(O);- var keys = objectKeys(Properties);- var length = keys.length;- var index = 0;- var key;- while (length > index) objectDefineProperty.f(O, key = keys[index++], Properties[key]);- return O;- };-- var html = getBuiltIn('document', 'documentElement');-- var GT = '>';- var LT = '<';- var PROTOTYPE = 'prototype';- var SCRIPT = 'script';- var IE_PROTO = sharedKey('IE_PROTO');-- var EmptyConstructor = function () { /* empty */ };-- var scriptTag = function (content) {- return LT + SCRIPT + GT + content + LT + '/' + SCRIPT + GT;- };-- // Create object with fake `null` prototype: use ActiveX Object with cleared prototype- var NullProtoObjectViaActiveX = function (activeXDocument) {- activeXDocument.write(scriptTag(''));- activeXDocument.close();- var temp = activeXDocument.parentWindow.Object;- activeXDocument = null; // avoid memory leak- return temp;- };-- // Create object with fake `null` prototype: use iframe Object with cleared prototype- var NullProtoObjectViaIFrame = function () {- // Thrash, waste and sodomy: IE GC bug- var iframe = documentCreateElement('iframe');- var JS = 'java' + SCRIPT + ':';- var iframeDocument;- iframe.style.display = 'none';- html.appendChild(iframe);- // https://github.com/zloirock/core-js/issues/475- iframe.src = String(JS);- iframeDocument = iframe.contentWindow.document;- iframeDocument.open();- iframeDocument.write(scriptTag('document.F=Object'));- iframeDocument.close();- return iframeDocument.F;- };-- // Check for document.domain and active x support- // No need to use active x approach when document.domain is not set- // see https://github.com/es-shims/es5-shim/issues/150- // variation of https://github.com/kitcambridge/es5-shim/commit/4f738ac066346- // avoid IE GC bug- var activeXDocument;- var NullProtoObject = function () {- try {- /* global ActiveXObject */- activeXDocument = document.domain && new ActiveXObject('htmlfile');- } catch (error) { /* ignore */ }- NullProtoObject = activeXDocument ? NullProtoObjectViaActiveX(activeXDocument) : NullProtoObjectViaIFrame();- var length = enumBugKeys.length;- while (length--) delete NullProtoObject[PROTOTYPE][enumBugKeys[length]];- return NullProtoObject();- };-- hiddenKeys[IE_PROTO] = true;-- // `Object.create` method- // https://tc39.github.io/ecma262/#sec-object.create- var objectCreate = Object.create || function create(O, Properties) {- var result;- if (O !== null) {- EmptyConstructor[PROTOTYPE] = anObject(O);- result = new EmptyConstructor();- EmptyConstructor[PROTOTYPE] = null;- // add "__proto__" for Object.getPrototypeOf polyfill- result[IE_PROTO] = O;- } else result = NullProtoObject();- return Properties === undefined ? result : objectDefineProperties(result, Properties);- };-- var nativeGetOwnPropertyNames = objectGetOwnPropertyNames.f;-- var toString$1 = {}.toString;-- var windowNames = typeof window == 'object' && window && Object.getOwnPropertyNames- ? Object.getOwnPropertyNames(window) : [];-- var getWindowNames = function (it) {- try {- return nativeGetOwnPropertyNames(it);- } catch (error) {- return windowNames.slice();- }- };-- // fallback for IE11 buggy Object.getOwnPropertyNames with iframe and window- var f$5 = function getOwnPropertyNames(it) {- return windowNames && toString$1.call(it) == '[object Window]'- ? getWindowNames(it)- : nativeGetOwnPropertyNames(toIndexedObject(it));- };-- var objectGetOwnPropertyNamesExternal = {- f: f$5- };-- var WellKnownSymbolsStore = shared('wks');- var Symbol$1 = global_1.Symbol;- var createWellKnownSymbol = useSymbolAsUid ? Symbol$1 : uid;-- var wellKnownSymbol = function (name) {- if (!has(WellKnownSymbolsStore, name)) {- if (nativeSymbol && has(Symbol$1, name)) WellKnownSymbolsStore[name] = Symbol$1[name];- else WellKnownSymbolsStore[name] = createWellKnownSymbol('Symbol.' + name);- } return WellKnownSymbolsStore[name];- };-- var f$6 = wellKnownSymbol;-- var wrappedWellKnownSymbol = {- f: f$6- };-- var defineProperty = objectDefineProperty.f;-- var defineWellKnownSymbol = function (NAME) {- var Symbol = path.Symbol || (path.Symbol = {});- if (!has(Symbol, NAME)) defineProperty(Symbol, NAME, {- value: wrappedWellKnownSymbol.f(NAME)- });- };-- var defineProperty$1 = objectDefineProperty.f;---- var TO_STRING_TAG = wellKnownSymbol('toStringTag');-- var setToStringTag = function (it, TAG, STATIC) {- if (it && !has(it = STATIC ? it : it.prototype, TO_STRING_TAG)) {- defineProperty$1(it, TO_STRING_TAG, { configurable: true, value: TAG });- }- };-- var aFunction$1 = function (it) {- if (typeof it != 'function') {- throw TypeError(String(it) + ' is not a function');- } return it;- };-- // optional / simple context binding- var bindContext = function (fn, that, length) {- aFunction$1(fn);- if (that === undefined) return fn;- switch (length) {- case 0: return function () {- return fn.call(that);- };- case 1: return function (a) {- return fn.call(that, a);- };- case 2: return function (a, b) {- return fn.call(that, a, b);- };- case 3: return function (a, b, c) {- return fn.call(that, a, b, c);- };- }- return function (/* ...args */) {- return fn.apply(that, arguments);- };- };-- var SPECIES = wellKnownSymbol('species');-- // `ArraySpeciesCreate` abstract operation- // https://tc39.github.io/ecma262/#sec-arrayspeciescreate- var arraySpeciesCreate = function (originalArray, length) {- var C;- if (isArray(originalArray)) {- C = originalArray.constructor;- // cross-realm fallback- if (typeof C == 'function' && (C === Array || isArray(C.prototype))) C = undefined;- else if (isObject(C)) {- C = C[SPECIES];- if (C === null) C = undefined;- }- } return new (C === undefined ? Array : C)(length === 0 ? 0 : length);- };-- var push = [].push;-- // `Array.prototype.{ forEach, map, filter, some, every, find, findIndex }` methods implementation- var createMethod$1 = function (TYPE) {- var IS_MAP = TYPE == 1;- var IS_FILTER = TYPE == 2;- var IS_SOME = TYPE == 3;- var IS_EVERY = TYPE == 4;- var IS_FIND_INDEX = TYPE == 6;- var NO_HOLES = TYPE == 5 || IS_FIND_INDEX;- return function ($this, callbackfn, that, specificCreate) {- var O = toObject($this);- var self = indexedObject(O);- var boundFunction = bindContext(callbackfn, that, 3);- var length = toLength(self.length);- var index = 0;- var create = specificCreate || arraySpeciesCreate;- var target = IS_MAP ? create($this, length) : IS_FILTER ? create($this, 0) : undefined;- var value, result;- for (;length > index; index++) if (NO_HOLES || index in self) {- value = self[index];- result = boundFunction(value, index, O);- if (TYPE) {- if (IS_MAP) target[index] = result; // map- else if (result) switch (TYPE) {- case 3: return true; // some- case 5: return value; // find- case 6: return index; // findIndex- case 2: push.call(target, value); // filter- } else if (IS_EVERY) return false; // every- }- }- return IS_FIND_INDEX ? -1 : IS_SOME || IS_EVERY ? IS_EVERY : target;- };- };-- var arrayIteration = {- // `Array.prototype.forEach` method- // https://tc39.github.io/ecma262/#sec-array.prototype.foreach- forEach: createMethod$1(0),- // `Array.prototype.map` method- // https://tc39.github.io/ecma262/#sec-array.prototype.map- map: createMethod$1(1),- // `Array.prototype.filter` method- // https://tc39.github.io/ecma262/#sec-array.prototype.filter- filter: createMethod$1(2),- // `Array.prototype.some` method- // https://tc39.github.io/ecma262/#sec-array.prototype.some- some: createMethod$1(3),- // `Array.prototype.every` method- // https://tc39.github.io/ecma262/#sec-array.prototype.every- every: createMethod$1(4),- // `Array.prototype.find` method- // https://tc39.github.io/ecma262/#sec-array.prototype.find- find: createMethod$1(5),- // `Array.prototype.findIndex` method- // https://tc39.github.io/ecma262/#sec-array.prototype.findIndex- findIndex: createMethod$1(6)- };-- var $forEach = arrayIteration.forEach;-- var HIDDEN = sharedKey('hidden');- var SYMBOL = 'Symbol';- var PROTOTYPE$1 = 'prototype';- var TO_PRIMITIVE = wellKnownSymbol('toPrimitive');- var setInternalState = internalState.set;- var getInternalState = internalState.getterFor(SYMBOL);- var ObjectPrototype = Object[PROTOTYPE$1];- var $Symbol = global_1.Symbol;- var $stringify = getBuiltIn('JSON', 'stringify');- var nativeGetOwnPropertyDescriptor$1 = objectGetOwnPropertyDescriptor.f;- var nativeDefineProperty$1 = objectDefineProperty.f;- var nativeGetOwnPropertyNames$1 = objectGetOwnPropertyNamesExternal.f;- var nativePropertyIsEnumerable$1 = objectPropertyIsEnumerable.f;- var AllSymbols = shared('symbols');- var ObjectPrototypeSymbols = shared('op-symbols');- var StringToSymbolRegistry = shared('string-to-symbol-registry');- var SymbolToStringRegistry = shared('symbol-to-string-registry');- var WellKnownSymbolsStore$1 = shared('wks');- var QObject = global_1.QObject;- // Don't use setters in Qt Script, https://github.com/zloirock/core-js/issues/173- var USE_SETTER = !QObject || !QObject[PROTOTYPE$1] || !QObject[PROTOTYPE$1].findChild;-- // fallback for old Android, https://code.google.com/p/v8/issues/detail?id=687- var setSymbolDescriptor = descriptors && fails(function () {- return objectCreate(nativeDefineProperty$1({}, 'a', {- get: function () { return nativeDefineProperty$1(this, 'a', { value: 7 }).a; }- })).a != 7;- }) ? function (O, P, Attributes) {- var ObjectPrototypeDescriptor = nativeGetOwnPropertyDescriptor$1(ObjectPrototype, P);- if (ObjectPrototypeDescriptor) delete ObjectPrototype[P];- nativeDefineProperty$1(O, P, Attributes);- if (ObjectPrototypeDescriptor && O !== ObjectPrototype) {- nativeDefineProperty$1(ObjectPrototype, P, ObjectPrototypeDescriptor);- }- } : nativeDefineProperty$1;-- var wrap = function (tag, description) {- var symbol = AllSymbols[tag] = objectCreate($Symbol[PROTOTYPE$1]);- setInternalState(symbol, {- type: SYMBOL,- tag: tag,- description: description- });- if (!descriptors) symbol.description = description;- return symbol;- };-- var isSymbol = nativeSymbol && typeof $Symbol.iterator == 'symbol' ? function (it) {- return typeof it == 'symbol';- } : function (it) {- return Object(it) instanceof $Symbol;- };-- var $defineProperty = function defineProperty(O, P, Attributes) {- if (O === ObjectPrototype) $defineProperty(ObjectPrototypeSymbols, P, Attributes);- anObject(O);- var key = toPrimitive(P, true);- anObject(Attributes);- if (has(AllSymbols, key)) {- if (!Attributes.enumerable) {- if (!has(O, HIDDEN)) nativeDefineProperty$1(O, HIDDEN, createPropertyDescriptor(1, {}));- O[HIDDEN][key] = true;- } else {- if (has(O, HIDDEN) && O[HIDDEN][key]) O[HIDDEN][key] = false;- Attributes = objectCreate(Attributes, { enumerable: createPropertyDescriptor(0, false) });- } return setSymbolDescriptor(O, key, Attributes);- } return nativeDefineProperty$1(O, key, Attributes);- };-- var $defineProperties = function defineProperties(O, Properties) {- anObject(O);- var properties = toIndexedObject(Properties);- var keys = objectKeys(properties).concat($getOwnPropertySymbols(properties));- $forEach(keys, function (key) {- if (!descriptors || $propertyIsEnumerable.call(properties, key)) $defineProperty(O, key, properties[key]);- });- return O;- };-- var $create = function create(O, Properties) {- return Properties === undefined ? objectCreate(O) : $defineProperties(objectCreate(O), Properties);- };-- var $propertyIsEnumerable = function propertyIsEnumerable(V) {- var P = toPrimitive(V, true);- var enumerable = nativePropertyIsEnumerable$1.call(this, P);- if (this === ObjectPrototype && has(AllSymbols, P) && !has(ObjectPrototypeSymbols, P)) return false;- return enumerable || !has(this, P) || !has(AllSymbols, P) || has(this, HIDDEN) && this[HIDDEN][P] ? enumerable : true;- };-- var $getOwnPropertyDescriptor = function getOwnPropertyDescriptor(O, P) {- var it = toIndexedObject(O);- var key = toPrimitive(P, true);- if (it === ObjectPrototype && has(AllSymbols, key) && !has(ObjectPrototypeSymbols, key)) return;- var descriptor = nativeGetOwnPropertyDescriptor$1(it, key);- if (descriptor && has(AllSymbols, key) && !(has(it, HIDDEN) && it[HIDDEN][key])) {- descriptor.enumerable = true;- }- return descriptor;- };-- var $getOwnPropertyNames = function getOwnPropertyNames(O) {- var names = nativeGetOwnPropertyNames$1(toIndexedObject(O));- var result = [];- $forEach(names, function (key) {- if (!has(AllSymbols, key) && !has(hiddenKeys, key)) result.push(key);- });- return result;- };-- var $getOwnPropertySymbols = function getOwnPropertySymbols(O) {- var IS_OBJECT_PROTOTYPE = O === ObjectPrototype;- var names = nativeGetOwnPropertyNames$1(IS_OBJECT_PROTOTYPE ? ObjectPrototypeSymbols : toIndexedObject(O));- var result = [];- $forEach(names, function (key) {- if (has(AllSymbols, key) && (!IS_OBJECT_PROTOTYPE || has(ObjectPrototype, key))) {- result.push(AllSymbols[key]);- }- });- return result;- };-- // `Symbol` constructor- // https://tc39.github.io/ecma262/#sec-symbol-constructor- if (!nativeSymbol) {- $Symbol = function Symbol() {- if (this instanceof $Symbol) throw TypeError('Symbol is not a constructor');- var description = !arguments.length || arguments[0] === undefined ? undefined : String(arguments[0]);- var tag = uid(description);- var setter = function (value) {- if (this === ObjectPrototype) setter.call(ObjectPrototypeSymbols, value);- if (has(this, HIDDEN) && has(this[HIDDEN], tag)) this[HIDDEN][tag] = false;- setSymbolDescriptor(this, tag, createPropertyDescriptor(1, value));- };- if (descriptors && USE_SETTER) setSymbolDescriptor(ObjectPrototype, tag, { configurable: true, set: setter });- return wrap(tag, description);- };-- redefine($Symbol[PROTOTYPE$1], 'toString', function toString() {- return getInternalState(this).tag;- });-- objectPropertyIsEnumerable.f = $propertyIsEnumerable;- objectDefineProperty.f = $defineProperty;- objectGetOwnPropertyDescriptor.f = $getOwnPropertyDescriptor;- objectGetOwnPropertyNames.f = objectGetOwnPropertyNamesExternal.f = $getOwnPropertyNames;- objectGetOwnPropertySymbols.f = $getOwnPropertySymbols;-- if (descriptors) {- // https://github.com/tc39/proposal-Symbol-description- nativeDefineProperty$1($Symbol[PROTOTYPE$1], 'description', {- configurable: true,- get: function description() {- return getInternalState(this).description;- }- });- {- redefine(ObjectPrototype, 'propertyIsEnumerable', $propertyIsEnumerable, { unsafe: true });- }- }- }-- if (!useSymbolAsUid) {- wrappedWellKnownSymbol.f = function (name) {- return wrap(wellKnownSymbol(name), name);- };- }-- _export({ global: true, wrap: true, forced: !nativeSymbol, sham: !nativeSymbol }, {- Symbol: $Symbol- });-- $forEach(objectKeys(WellKnownSymbolsStore$1), function (name) {- defineWellKnownSymbol(name);- });-- _export({ target: SYMBOL, stat: true, forced: !nativeSymbol }, {- // `Symbol.for` method- // https://tc39.github.io/ecma262/#sec-symbol.for- 'for': function (key) {- var string = String(key);- if (has(StringToSymbolRegistry, string)) return StringToSymbolRegistry[string];- var symbol = $Symbol(string);- StringToSymbolRegistry[string] = symbol;- SymbolToStringRegistry[symbol] = string;- return symbol;- },- // `Symbol.keyFor` method- // https://tc39.github.io/ecma262/#sec-symbol.keyfor- keyFor: function keyFor(sym) {- if (!isSymbol(sym)) throw TypeError(sym + ' is not a symbol');- if (has(SymbolToStringRegistry, sym)) return SymbolToStringRegistry[sym];- },- useSetter: function () { USE_SETTER = true; },- useSimple: function () { USE_SETTER = false; }- });-- _export({ target: 'Object', stat: true, forced: !nativeSymbol, sham: !descriptors }, {- // `Object.create` method- // https://tc39.github.io/ecma262/#sec-object.create- create: $create,- // `Object.defineProperty` method- // https://tc39.github.io/ecma262/#sec-object.defineproperty- defineProperty: $defineProperty,- // `Object.defineProperties` method- // https://tc39.github.io/ecma262/#sec-object.defineproperties- defineProperties: $defineProperties,- // `Object.getOwnPropertyDescriptor` method- // https://tc39.github.io/ecma262/#sec-object.getownpropertydescriptors- getOwnPropertyDescriptor: $getOwnPropertyDescriptor- });-- _export({ target: 'Object', stat: true, forced: !nativeSymbol }, {- // `Object.getOwnPropertyNames` method- // https://tc39.github.io/ecma262/#sec-object.getownpropertynames- getOwnPropertyNames: $getOwnPropertyNames,- // `Object.getOwnPropertySymbols` method- // https://tc39.github.io/ecma262/#sec-object.getownpropertysymbols- getOwnPropertySymbols: $getOwnPropertySymbols- });-- // Chrome 38 and 39 `Object.getOwnPropertySymbols` fails on primitives- // https://bugs.chromium.org/p/v8/issues/detail?id=3443- _export({ target: 'Object', stat: true, forced: fails(function () { objectGetOwnPropertySymbols.f(1); }) }, {- getOwnPropertySymbols: function getOwnPropertySymbols(it) {- return objectGetOwnPropertySymbols.f(toObject(it));- }- });-- // `JSON.stringify` method behavior with symbols- // https://tc39.github.io/ecma262/#sec-json.stringify- if ($stringify) {- var FORCED_JSON_STRINGIFY = !nativeSymbol || fails(function () {- var symbol = $Symbol();- // MS Edge converts symbol values to JSON as {}- return $stringify([symbol]) != '[null]'- // WebKit converts symbol values to JSON as null- || $stringify({ a: symbol }) != '{}'- // V8 throws on boxed symbols- || $stringify(Object(symbol)) != '{}';- });-- _export({ target: 'JSON', stat: true, forced: FORCED_JSON_STRINGIFY }, {- // eslint-disable-next-line no-unused-vars- stringify: function stringify(it, replacer, space) {- var args = [it];- var index = 1;- var $replacer;- while (arguments.length > index) args.push(arguments[index++]);- $replacer = replacer;- if (!isObject(replacer) && it === undefined || isSymbol(it)) return; // IE8 returns string on undefined- if (!isArray(replacer)) replacer = function (key, value) {- if (typeof $replacer == 'function') value = $replacer.call(this, key, value);- if (!isSymbol(value)) return value;- };- args[1] = replacer;- return $stringify.apply(null, args);- }- });- }-- // `Symbol.prototype[@@toPrimitive]` method- // https://tc39.github.io/ecma262/#sec-symbol.prototype-@@toprimitive- if (!$Symbol[PROTOTYPE$1][TO_PRIMITIVE]) {- createNonEnumerableProperty($Symbol[PROTOTYPE$1], TO_PRIMITIVE, $Symbol[PROTOTYPE$1].valueOf);- }- // `Symbol.prototype[@@toStringTag]` property- // https://tc39.github.io/ecma262/#sec-symbol.prototype-@@tostringtag- setToStringTag($Symbol, SYMBOL);-- hiddenKeys[HIDDEN] = true;-- var defineProperty$2 = objectDefineProperty.f;--- var NativeSymbol = global_1.Symbol;-- if (descriptors && typeof NativeSymbol == 'function' && (!('description' in NativeSymbol.prototype) ||- // Safari 12 bug- NativeSymbol().description !== undefined- )) {- var EmptyStringDescriptionStore = {};- // wrap Symbol constructor for correct work with undefined description- var SymbolWrapper = function Symbol() {- var description = arguments.length < 1 || arguments[0] === undefined ? undefined : String(arguments[0]);- var result = this instanceof SymbolWrapper- ? new NativeSymbol(description)- // in Edge 13, String(Symbol(undefined)) === 'Symbol(undefined)'- : description === undefined ? NativeSymbol() : NativeSymbol(description);- if (description === '') EmptyStringDescriptionStore[result] = true;- return result;- };- copyConstructorProperties(SymbolWrapper, NativeSymbol);- var symbolPrototype = SymbolWrapper.prototype = NativeSymbol.prototype;- symbolPrototype.constructor = SymbolWrapper;-- var symbolToString = symbolPrototype.toString;- var native = String(NativeSymbol('test')) == 'Symbol(test)';- var regexp = /^Symbol\((.*)\)[^)]+$/;- defineProperty$2(symbolPrototype, 'description', {- configurable: true,- get: function description() {- var symbol = isObject(this) ? this.valueOf() : this;- var string = symbolToString.call(symbol);- if (has(EmptyStringDescriptionStore, symbol)) return '';- var desc = native ? string.slice(7, -1) : string.replace(regexp, '$1');- return desc === '' ? undefined : desc;- }- });-- _export({ global: true, forced: true }, {- Symbol: SymbolWrapper- });- }-- // `Symbol.iterator` well-known symbol- // https://tc39.github.io/ecma262/#sec-symbol.iterator- defineWellKnownSymbol('iterator');-- var createProperty = function (object, key, value) {- var propertyKey = toPrimitive(key);- if (propertyKey in object) objectDefineProperty.f(object, propertyKey, createPropertyDescriptor(0, value));- else object[propertyKey] = value;- };-- var userAgent = getBuiltIn('navigator', 'userAgent') || '';-- var process = global_1.process;- var versions = process && process.versions;- var v8 = versions && versions.v8;- var match, version;-- if (v8) {- match = v8.split('.');- version = match[0] + match[1];- } else if (userAgent) {- match = userAgent.match(/Edge\/(\d+)/);- if (!match || match[1] >= 74) {- match = userAgent.match(/Chrome\/(\d+)/);- if (match) version = match[1];- }- }-- var v8Version = version && +version;-- var SPECIES$1 = wellKnownSymbol('species');-- var arrayMethodHasSpeciesSupport = function (METHOD_NAME) {- // We can't use this feature detection in V8 since it causes- // deoptimization and serious performance degradation- // https://github.com/zloirock/core-js/issues/677- return v8Version >= 51 || !fails(function () {- var array = [];- var constructor = array.constructor = {};- constructor[SPECIES$1] = function () {- return { foo: 1 };- };- return array[METHOD_NAME](Boolean).foo !== 1;- });- };-- var IS_CONCAT_SPREADABLE = wellKnownSymbol('isConcatSpreadable');- var MAX_SAFE_INTEGER = 0x1FFFFFFFFFFFFF;- var MAXIMUM_ALLOWED_INDEX_EXCEEDED = 'Maximum allowed index exceeded';-- // We can't use this feature detection in V8 since it causes- // deoptimization and serious performance degradation- // https://github.com/zloirock/core-js/issues/679- var IS_CONCAT_SPREADABLE_SUPPORT = v8Version >= 51 || !fails(function () {- var array = [];- array[IS_CONCAT_SPREADABLE] = false;- return array.concat()[0] !== array;- });-- var SPECIES_SUPPORT = arrayMethodHasSpeciesSupport('concat');-- var isConcatSpreadable = function (O) {- if (!isObject(O)) return false;- var spreadable = O[IS_CONCAT_SPREADABLE];- return spreadable !== undefined ? !!spreadable : isArray(O);- };-- var FORCED = !IS_CONCAT_SPREADABLE_SUPPORT || !SPECIES_SUPPORT;-- // `Array.prototype.concat` method- // https://tc39.github.io/ecma262/#sec-array.prototype.concat- // with adding support of @@isConcatSpreadable and @@species- _export({ target: 'Array', proto: true, forced: FORCED }, {- concat: function concat(arg) { // eslint-disable-line no-unused-vars- var O = toObject(this);- var A = arraySpeciesCreate(O, 0);- var n = 0;- var i, k, length, len, E;- for (i = -1, length = arguments.length; i < length; i++) {- E = i === -1 ? O : arguments[i];- if (isConcatSpreadable(E)) {- len = toLength(E.length);- if (n + len > MAX_SAFE_INTEGER) throw TypeError(MAXIMUM_ALLOWED_INDEX_EXCEEDED);- for (k = 0; k < len; k++, n++) if (k in E) createProperty(A, n, E[k]);- } else {- if (n >= MAX_SAFE_INTEGER) throw TypeError(MAXIMUM_ALLOWED_INDEX_EXCEEDED);- createProperty(A, n++, E);- }- }- A.length = n;- return A;- }- });-- var $filter = arrayIteration.filter;---- var HAS_SPECIES_SUPPORT = arrayMethodHasSpeciesSupport('filter');- // Edge 14- issue- var USES_TO_LENGTH = HAS_SPECIES_SUPPORT && !fails(function () {- [].filter.call({ length: -1, 0: 1 }, function (it) { throw it; });- });-- // `Array.prototype.filter` method- // https://tc39.github.io/ecma262/#sec-array.prototype.filter- // with adding support of @@species- _export({ target: 'Array', proto: true, forced: !HAS_SPECIES_SUPPORT || !USES_TO_LENGTH }, {- filter: function filter(callbackfn /* , thisArg */) {- return $filter(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);- }- });-- var UNSCOPABLES = wellKnownSymbol('unscopables');- var ArrayPrototype = Array.prototype;-- // Array.prototype[@@unscopables]- // https://tc39.github.io/ecma262/#sec-array.prototype-@@unscopables- if (ArrayPrototype[UNSCOPABLES] == undefined) {- objectDefineProperty.f(ArrayPrototype, UNSCOPABLES, {- configurable: true,- value: objectCreate(null)- });- }-- // add a key to Array.prototype[@@unscopables]- var addToUnscopables = function (key) {- ArrayPrototype[UNSCOPABLES][key] = true;- };-- var $find = arrayIteration.find;--- var FIND = 'find';- var SKIPS_HOLES = true;-- // Shouldn't skip holes- if (FIND in []) Array(1)[FIND](function () { SKIPS_HOLES = false; });-- // `Array.prototype.find` method- // https://tc39.github.io/ecma262/#sec-array.prototype.find- _export({ target: 'Array', proto: true, forced: SKIPS_HOLES }, {- find: function find(callbackfn /* , that = undefined */) {- return $find(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);- }- });-- // https://tc39.github.io/ecma262/#sec-array.prototype-@@unscopables- addToUnscopables(FIND);-- var $includes = arrayIncludes.includes;--- // `Array.prototype.includes` method- // https://tc39.github.io/ecma262/#sec-array.prototype.includes- _export({ target: 'Array', proto: true }, {- includes: function includes(el /* , fromIndex = 0 */) {- return $includes(this, el, arguments.length > 1 ? arguments[1] : undefined);- }- });-- // https://tc39.github.io/ecma262/#sec-array.prototype-@@unscopables- addToUnscopables('includes');-- var sloppyArrayMethod = function (METHOD_NAME, argument) {- var method = [][METHOD_NAME];- return !method || !fails(function () {- // eslint-disable-next-line no-useless-call,no-throw-literal- method.call(null, argument || function () { throw 1; }, 1);- });- };-- var $indexOf = arrayIncludes.indexOf;--- var nativeIndexOf = [].indexOf;-- var NEGATIVE_ZERO = !!nativeIndexOf && 1 / [1].indexOf(1, -0) < 0;- var SLOPPY_METHOD = sloppyArrayMethod('indexOf');-- // `Array.prototype.indexOf` method- // https://tc39.github.io/ecma262/#sec-array.prototype.indexof- _export({ target: 'Array', proto: true, forced: NEGATIVE_ZERO || SLOPPY_METHOD }, {- indexOf: function indexOf(searchElement /* , fromIndex = 0 */) {- return NEGATIVE_ZERO- // convert -0 to +0- ? nativeIndexOf.apply(this, arguments) || 0- : $indexOf(this, searchElement, arguments.length > 1 ? arguments[1] : undefined);- }- });-- var correctPrototypeGetter = !fails(function () {- function F() { /* empty */ }- F.prototype.constructor = null;- return Object.getPrototypeOf(new F()) !== F.prototype;- });-- var IE_PROTO$1 = sharedKey('IE_PROTO');- var ObjectPrototype$1 = Object.prototype;-- // `Object.getPrototypeOf` method- // https://tc39.github.io/ecma262/#sec-object.getprototypeof- var objectGetPrototypeOf = correctPrototypeGetter ? Object.getPrototypeOf : function (O) {- O = toObject(O);- if (has(O, IE_PROTO$1)) return O[IE_PROTO$1];- if (typeof O.constructor == 'function' && O instanceof O.constructor) {- return O.constructor.prototype;- } return O instanceof Object ? ObjectPrototype$1 : null;- };-- var ITERATOR = wellKnownSymbol('iterator');- var BUGGY_SAFARI_ITERATORS = false;-- var returnThis = function () { return this; };-- // `%IteratorPrototype%` object- // https://tc39.github.io/ecma262/#sec-%iteratorprototype%-object- var IteratorPrototype, PrototypeOfArrayIteratorPrototype, arrayIterator;-- if ([].keys) {- arrayIterator = [].keys();- // Safari 8 has buggy iterators w/o `next`- if (!('next' in arrayIterator)) BUGGY_SAFARI_ITERATORS = true;- else {- PrototypeOfArrayIteratorPrototype = objectGetPrototypeOf(objectGetPrototypeOf(arrayIterator));- if (PrototypeOfArrayIteratorPrototype !== Object.prototype) IteratorPrototype = PrototypeOfArrayIteratorPrototype;- }- }-- if (IteratorPrototype == undefined) IteratorPrototype = {};-- // 25.1.2.1.1 %IteratorPrototype%[@@iterator]()- if ( !has(IteratorPrototype, ITERATOR)) {- createNonEnumerableProperty(IteratorPrototype, ITERATOR, returnThis);- }-- var iteratorsCore = {- IteratorPrototype: IteratorPrototype,- BUGGY_SAFARI_ITERATORS: BUGGY_SAFARI_ITERATORS- };-- var IteratorPrototype$1 = iteratorsCore.IteratorPrototype;-- var createIteratorConstructor = function (IteratorConstructor, NAME, next) {- var TO_STRING_TAG = NAME + ' Iterator';- IteratorConstructor.prototype = objectCreate(IteratorPrototype$1, { next: createPropertyDescriptor(1, next) });- setToStringTag(IteratorConstructor, TO_STRING_TAG, false);- return IteratorConstructor;- };-- var aPossiblePrototype = function (it) {- if (!isObject(it) && it !== null) {- throw TypeError("Can't set " + String(it) + ' as a prototype');- } return it;- };-- // `Object.setPrototypeOf` method- // https://tc39.github.io/ecma262/#sec-object.setprototypeof- // Works with __proto__ only. Old v8 can't work with null proto objects.- /* eslint-disable no-proto */- var objectSetPrototypeOf = Object.setPrototypeOf || ('__proto__' in {} ? function () {- var CORRECT_SETTER = false;- var test = {};- var setter;- try {- setter = Object.getOwnPropertyDescriptor(Object.prototype, '__proto__').set;- setter.call(test, []);- CORRECT_SETTER = test instanceof Array;- } catch (error) { /* empty */ }- return function setPrototypeOf(O, proto) {- anObject(O);- aPossiblePrototype(proto);- if (CORRECT_SETTER) setter.call(O, proto);- else O.__proto__ = proto;- return O;- };- }() : undefined);-- var IteratorPrototype$2 = iteratorsCore.IteratorPrototype;- var BUGGY_SAFARI_ITERATORS$1 = iteratorsCore.BUGGY_SAFARI_ITERATORS;- var ITERATOR$1 = wellKnownSymbol('iterator');- var KEYS = 'keys';- var VALUES = 'values';- var ENTRIES = 'entries';-- var returnThis$1 = function () { return this; };-- var defineIterator = function (Iterable, NAME, IteratorConstructor, next, DEFAULT, IS_SET, FORCED) {- createIteratorConstructor(IteratorConstructor, NAME, next);-- var getIterationMethod = function (KIND) {- if (KIND === DEFAULT && defaultIterator) return defaultIterator;- if (!BUGGY_SAFARI_ITERATORS$1 && KIND in IterablePrototype) return IterablePrototype[KIND];- switch (KIND) {- case KEYS: return function keys() { return new IteratorConstructor(this, KIND); };- case VALUES: return function values() { return new IteratorConstructor(this, KIND); };- case ENTRIES: return function entries() { return new IteratorConstructor(this, KIND); };- } return function () { return new IteratorConstructor(this); };- };-- var TO_STRING_TAG = NAME + ' Iterator';- var INCORRECT_VALUES_NAME = false;- var IterablePrototype = Iterable.prototype;- var nativeIterator = IterablePrototype[ITERATOR$1]- || IterablePrototype['@@iterator']- || DEFAULT && IterablePrototype[DEFAULT];- var defaultIterator = !BUGGY_SAFARI_ITERATORS$1 && nativeIterator || getIterationMethod(DEFAULT);- var anyNativeIterator = NAME == 'Array' ? IterablePrototype.entries || nativeIterator : nativeIterator;- var CurrentIteratorPrototype, methods, KEY;-- // fix native- if (anyNativeIterator) {- CurrentIteratorPrototype = objectGetPrototypeOf(anyNativeIterator.call(new Iterable()));- if (IteratorPrototype$2 !== Object.prototype && CurrentIteratorPrototype.next) {- if ( objectGetPrototypeOf(CurrentIteratorPrototype) !== IteratorPrototype$2) {- if (objectSetPrototypeOf) {- objectSetPrototypeOf(CurrentIteratorPrototype, IteratorPrototype$2);- } else if (typeof CurrentIteratorPrototype[ITERATOR$1] != 'function') {- createNonEnumerableProperty(CurrentIteratorPrototype, ITERATOR$1, returnThis$1);- }- }- // Set @@toStringTag to native iterators- setToStringTag(CurrentIteratorPrototype, TO_STRING_TAG, true);- }- }-- // fix Array#{values, @@iterator}.name in V8 / FF- if (DEFAULT == VALUES && nativeIterator && nativeIterator.name !== VALUES) {- INCORRECT_VALUES_NAME = true;- defaultIterator = function values() { return nativeIterator.call(this); };- }-- // define iterator- if ( IterablePrototype[ITERATOR$1] !== defaultIterator) {- createNonEnumerableProperty(IterablePrototype, ITERATOR$1, defaultIterator);- }-- // export additional methods- if (DEFAULT) {- methods = {- values: getIterationMethod(VALUES),- keys: IS_SET ? defaultIterator : getIterationMethod(KEYS),- entries: getIterationMethod(ENTRIES)- };- if (FORCED) for (KEY in methods) {- if (BUGGY_SAFARI_ITERATORS$1 || INCORRECT_VALUES_NAME || !(KEY in IterablePrototype)) {- redefine(IterablePrototype, KEY, methods[KEY]);- }- } else _export({ target: NAME, proto: true, forced: BUGGY_SAFARI_ITERATORS$1 || INCORRECT_VALUES_NAME }, methods);- }-- return methods;- };-- var ARRAY_ITERATOR = 'Array Iterator';- var setInternalState$1 = internalState.set;- var getInternalState$1 = internalState.getterFor(ARRAY_ITERATOR);-- // `Array.prototype.entries` method- // https://tc39.github.io/ecma262/#sec-array.prototype.entries- // `Array.prototype.keys` method- // https://tc39.github.io/ecma262/#sec-array.prototype.keys- // `Array.prototype.values` method- // https://tc39.github.io/ecma262/#sec-array.prototype.values- // `Array.prototype[@@iterator]` method- // https://tc39.github.io/ecma262/#sec-array.prototype-@@iterator- // `CreateArrayIterator` internal method- // https://tc39.github.io/ecma262/#sec-createarrayiterator- var es_array_iterator = defineIterator(Array, 'Array', function (iterated, kind) {- setInternalState$1(this, {- type: ARRAY_ITERATOR,- target: toIndexedObject(iterated), // target- index: 0, // next index- kind: kind // kind- });- // `%ArrayIteratorPrototype%.next` method- // https://tc39.github.io/ecma262/#sec-%arrayiteratorprototype%.next- }, function () {- var state = getInternalState$1(this);- var target = state.target;- var kind = state.kind;- var index = state.index++;- if (!target || index >= target.length) {- state.target = undefined;- return { value: undefined, done: true };- }- if (kind == 'keys') return { value: index, done: false };- if (kind == 'values') return { value: target[index], done: false };- return { value: [index, target[index]], done: false };- }, 'values');-- // https://tc39.github.io/ecma262/#sec-array.prototype-@@unscopables- addToUnscopables('keys');- addToUnscopables('values');- addToUnscopables('entries');-- var nativeJoin = [].join;-- var ES3_STRINGS = indexedObject != Object;- var SLOPPY_METHOD$1 = sloppyArrayMethod('join', ',');-- // `Array.prototype.join` method- // https://tc39.github.io/ecma262/#sec-array.prototype.join- _export({ target: 'Array', proto: true, forced: ES3_STRINGS || SLOPPY_METHOD$1 }, {- join: function join(separator) {- return nativeJoin.call(toIndexedObject(this), separator === undefined ? ',' : separator);- }- });-- var nativeAssign = Object.assign;- var defineProperty$3 = Object.defineProperty;-- // `Object.assign` method- // https://tc39.github.io/ecma262/#sec-object.assign- var objectAssign = !nativeAssign || fails(function () {- // should have correct order of operations (Edge bug)- if (descriptors && nativeAssign({ b: 1 }, nativeAssign(defineProperty$3({}, 'a', {- enumerable: true,- get: function () {- defineProperty$3(this, 'b', {- value: 3,- enumerable: false- });- }- }), { b: 2 })).b !== 1) return true;- // should work with symbols and should have deterministic property order (V8 bug)- var A = {};- var B = {};- // eslint-disable-next-line no-undef- var symbol = Symbol();- var alphabet = 'abcdefghijklmnopqrst';- A[symbol] = 7;- alphabet.split('').forEach(function (chr) { B[chr] = chr; });- return nativeAssign({}, A)[symbol] != 7 || objectKeys(nativeAssign({}, B)).join('') != alphabet;- }) ? function assign(target, source) { // eslint-disable-line no-unused-vars- var T = toObject(target);- var argumentsLength = arguments.length;- var index = 1;- var getOwnPropertySymbols = objectGetOwnPropertySymbols.f;- var propertyIsEnumerable = objectPropertyIsEnumerable.f;- while (argumentsLength > index) {- var S = indexedObject(arguments[index++]);- var keys = getOwnPropertySymbols ? objectKeys(S).concat(getOwnPropertySymbols(S)) : objectKeys(S);- var length = keys.length;- var j = 0;- var key;- while (length > j) {- key = keys[j++];- if (!descriptors || propertyIsEnumerable.call(S, key)) T[key] = S[key];- }- } return T;- } : nativeAssign;-- // `Object.assign` method- // https://tc39.github.io/ecma262/#sec-object.assign- _export({ target: 'Object', stat: true, forced: Object.assign !== objectAssign }, {- assign: objectAssign- });-- var propertyIsEnumerable = objectPropertyIsEnumerable.f;-- // `Object.{ entries, values }` methods implementation- var createMethod$2 = function (TO_ENTRIES) {- return function (it) {- var O = toIndexedObject(it);- var keys = objectKeys(O);- var length = keys.length;- var i = 0;- var result = [];- var key;- while (length > i) {- key = keys[i++];- if (!descriptors || propertyIsEnumerable.call(O, key)) {- result.push(TO_ENTRIES ? [key, O[key]] : O[key]);- }- }- return result;- };- };-- var objectToArray = {- // `Object.entries` method- // https://tc39.github.io/ecma262/#sec-object.entries- entries: createMethod$2(true),- // `Object.values` method- // https://tc39.github.io/ecma262/#sec-object.values- values: createMethod$2(false)- };-- var $entries = objectToArray.entries;-- // `Object.entries` method- // https://tc39.github.io/ecma262/#sec-object.entries- _export({ target: 'Object', stat: true }, {- entries: function entries(O) {- return $entries(O);- }- });-- var TO_STRING_TAG$1 = wellKnownSymbol('toStringTag');- var test = {};-- test[TO_STRING_TAG$1] = 'z';-- var toStringTagSupport = String(test) === '[object z]';-- var TO_STRING_TAG$2 = wellKnownSymbol('toStringTag');- // ES3 wrong here- var CORRECT_ARGUMENTS = classofRaw(function () { return arguments; }()) == 'Arguments';-- // fallback for IE11 Script Access Denied error- var tryGet = function (it, key) {- try {- return it[key];- } catch (error) { /* empty */ }- };-- // getting tag from ES6+ `Object.prototype.toString`- var classof = toStringTagSupport ? classofRaw : function (it) {- var O, tag, result;- return it === undefined ? 'Undefined' : it === null ? 'Null'- // @@toStringTag case- : typeof (tag = tryGet(O = Object(it), TO_STRING_TAG$2)) == 'string' ? tag- // builtinTag case- : CORRECT_ARGUMENTS ? classofRaw(O)- // ES3 arguments fallback- : (result = classofRaw(O)) == 'Object' && typeof O.callee == 'function' ? 'Arguments' : result;- };-- // `Object.prototype.toString` method implementation- // https://tc39.github.io/ecma262/#sec-object.prototype.tostring- var objectToString = toStringTagSupport ? {}.toString : function toString() {- return '[object ' + classof(this) + ']';- };-- // `Object.prototype.toString` method- // https://tc39.github.io/ecma262/#sec-object.prototype.tostring- if (!toStringTagSupport) {- redefine(Object.prototype, 'toString', objectToString, { unsafe: true });- }-- // `RegExp.prototype.flags` getter implementation- // https://tc39.github.io/ecma262/#sec-get-regexp.prototype.flags- var regexpFlags = function () {- var that = anObject(this);- var result = '';- if (that.global) result += 'g';- if (that.ignoreCase) result += 'i';- if (that.multiline) result += 'm';- if (that.dotAll) result += 's';- if (that.unicode) result += 'u';- if (that.sticky) result += 'y';- return result;- };-- // babel-minify transpiles RegExp('a', 'y') -> /a/y and it causes SyntaxError,- // so we use an intermediate function.- function RE(s, f) {- return RegExp(s, f);- }-- var UNSUPPORTED_Y = fails(function () {- // babel-minify transpiles RegExp('a', 'y') -> /a/y and it causes SyntaxError- var re = RE('a', 'y');- re.lastIndex = 2;- return re.exec('abcd') != null;- });-- var BROKEN_CARET = fails(function () {- // https://bugzilla.mozilla.org/show_bug.cgi?id=773687- var re = RE('^r', 'gy');- re.lastIndex = 2;- return re.exec('str') != null;- });-- var regexpStickyHelpers = {- UNSUPPORTED_Y: UNSUPPORTED_Y,- BROKEN_CARET: BROKEN_CARET- };-- var nativeExec = RegExp.prototype.exec;- // This always refers to the native implementation, because the- // String#replace polyfill uses ./fix-regexp-well-known-symbol-logic.js,- // which loads this file before patching the method.- var nativeReplace = String.prototype.replace;-- var patchedExec = nativeExec;-- var UPDATES_LAST_INDEX_WRONG = (function () {- var re1 = /a/;- var re2 = /b*/g;- nativeExec.call(re1, 'a');- nativeExec.call(re2, 'a');- return re1.lastIndex !== 0 || re2.lastIndex !== 0;- })();-- var UNSUPPORTED_Y$1 = regexpStickyHelpers.UNSUPPORTED_Y || regexpStickyHelpers.BROKEN_CARET;-- // nonparticipating capturing group, copied from es5-shim's String#split patch.- var NPCG_INCLUDED = /()??/.exec('')[1] !== undefined;-- var PATCH = UPDATES_LAST_INDEX_WRONG || NPCG_INCLUDED || UNSUPPORTED_Y$1;-- if (PATCH) {- patchedExec = function exec(str) {- var re = this;- var lastIndex, reCopy, match, i;- var sticky = UNSUPPORTED_Y$1 && re.sticky;- var flags = regexpFlags.call(re);- var source = re.source;- var charsAdded = 0;- var strCopy = str;-- if (sticky) {- flags = flags.replace('y', '');- if (flags.indexOf('g') === -1) {- flags += 'g';- }-- strCopy = String(str).slice(re.lastIndex);- // Support anchored sticky behavior.- if (re.lastIndex > 0 && (!re.multiline || re.multiline && str[re.lastIndex - 1] !== '\n')) {- source = '(?: ' + source + ')';- strCopy = ' ' + strCopy;- charsAdded++;- }- // ^(? + rx + ) is needed, in combination with some str slicing, to- // simulate the 'y' flag.- reCopy = new RegExp('^(?:' + source + ')', flags);- }-- if (NPCG_INCLUDED) {- reCopy = new RegExp('^' + source + '$(?!\\s)', flags);- }- if (UPDATES_LAST_INDEX_WRONG) lastIndex = re.lastIndex;-- match = nativeExec.call(sticky ? reCopy : re, strCopy);-- if (sticky) {- if (match) {- match.input = match.input.slice(charsAdded);- match[0] = match[0].slice(charsAdded);- match.index = re.lastIndex;- re.lastIndex += match[0].length;- } else re.lastIndex = 0;- } else if (UPDATES_LAST_INDEX_WRONG && match) {- re.lastIndex = re.global ? match.index + match[0].length : lastIndex;- }- if (NPCG_INCLUDED && match && match.length > 1) {- // Fix browsers whose `exec` methods don't consistently return `undefined`- // for NPCG, like IE8. NOTE: This doesn' work for /(.?)?/- nativeReplace.call(match[0], reCopy, function () {- for (i = 1; i < arguments.length - 2; i++) {- if (arguments[i] === undefined) match[i] = undefined;- }- });- }-- return match;- };- }-- var regexpExec = patchedExec;-- _export({ target: 'RegExp', proto: true, forced: /./.exec !== regexpExec }, {- exec: regexpExec- });-- var MATCH = wellKnownSymbol('match');-- // `IsRegExp` abstract operation- // https://tc39.github.io/ecma262/#sec-isregexp- var isRegexp = function (it) {- var isRegExp;- return isObject(it) && ((isRegExp = it[MATCH]) !== undefined ? !!isRegExp : classofRaw(it) == 'RegExp');- };-- var notARegexp = function (it) {- if (isRegexp(it)) {- throw TypeError("The method doesn't accept regular expressions");- } return it;- };-- var MATCH$1 = wellKnownSymbol('match');-- var correctIsRegexpLogic = function (METHOD_NAME) {- var regexp = /./;- try {- '/./'[METHOD_NAME](regexp);- } catch (e) {- try {- regexp[MATCH$1] = false;- return '/./'[METHOD_NAME](regexp);- } catch (f) { /* empty */ }- } return false;- };-- // `String.prototype.includes` method- // https://tc39.github.io/ecma262/#sec-string.prototype.includes- _export({ target: 'String', proto: true, forced: !correctIsRegexpLogic('includes') }, {- includes: function includes(searchString /* , position = 0 */) {- return !!~String(requireObjectCoercible(this))- .indexOf(notARegexp(searchString), arguments.length > 1 ? arguments[1] : undefined);- }- });-- // `String.prototype.{ codePointAt, at }` methods implementation- var createMethod$3 = function (CONVERT_TO_STRING) {- return function ($this, pos) {- var S = String(requireObjectCoercible($this));- var position = toInteger(pos);- var size = S.length;- var first, second;- if (position < 0 || position >= size) return CONVERT_TO_STRING ? '' : undefined;- first = S.charCodeAt(position);- return first < 0xD800 || first > 0xDBFF || position + 1 === size- || (second = S.charCodeAt(position + 1)) < 0xDC00 || second > 0xDFFF- ? CONVERT_TO_STRING ? S.charAt(position) : first- : CONVERT_TO_STRING ? S.slice(position, position + 2) : (first - 0xD800 << 10) + (second - 0xDC00) + 0x10000;- };- };-- var stringMultibyte = {- // `String.prototype.codePointAt` method- // https://tc39.github.io/ecma262/#sec-string.prototype.codepointat- codeAt: createMethod$3(false),- // `String.prototype.at` method- // https://github.com/mathiasbynens/String.prototype.at- charAt: createMethod$3(true)- };-- var charAt = stringMultibyte.charAt;---- var STRING_ITERATOR = 'String Iterator';- var setInternalState$2 = internalState.set;- var getInternalState$2 = internalState.getterFor(STRING_ITERATOR);-- // `String.prototype[@@iterator]` method- // https://tc39.github.io/ecma262/#sec-string.prototype-@@iterator- defineIterator(String, 'String', function (iterated) {- setInternalState$2(this, {- type: STRING_ITERATOR,- string: String(iterated),- index: 0- });- // `%StringIteratorPrototype%.next` method- // https://tc39.github.io/ecma262/#sec-%stringiteratorprototype%.next- }, function next() {- var state = getInternalState$2(this);- var string = state.string;- var index = state.index;- var point;- if (index >= string.length) return { value: undefined, done: true };- point = charAt(string, index);- state.index += point.length;- return { value: point, done: false };- });-- var SPECIES$2 = wellKnownSymbol('species');-- var REPLACE_SUPPORTS_NAMED_GROUPS = !fails(function () {- // #replace needs built-in support for named groups.- // #match works fine because it just return the exec results, even if it has- // a "grops" property.- var re = /./;- re.exec = function () {- var result = [];- result.groups = { a: '7' };- return result;- };- return ''.replace(re, '$<a>') !== '7';- });-- // IE <= 11 replaces $0 with the whole match, as if it was $&- // https://stackoverflow.com/questions/6024666/getting-ie-to-replace-a-regex-with-the-literal-string-0- var REPLACE_KEEPS_$0 = (function () {- return 'a'.replace(/./, '$0') === '$0';- })();-- // Chrome 51 has a buggy "split" implementation when RegExp#exec !== nativeExec- // Weex JS has frozen built-in prototypes, so use try / catch wrapper- var SPLIT_WORKS_WITH_OVERWRITTEN_EXEC = !fails(function () {- var re = /(?:)/;- var originalExec = re.exec;- re.exec = function () { return originalExec.apply(this, arguments); };- var result = 'ab'.split(re);- return result.length !== 2 || result[0] !== 'a' || result[1] !== 'b';- });-- var fixRegexpWellKnownSymbolLogic = function (KEY, length, exec, sham) {- var SYMBOL = wellKnownSymbol(KEY);-- var DELEGATES_TO_SYMBOL = !fails(function () {- // String methods call symbol-named RegEp methods- var O = {};- O[SYMBOL] = function () { return 7; };- return ''[KEY](O) != 7;- });-- var DELEGATES_TO_EXEC = DELEGATES_TO_SYMBOL && !fails(function () {- // Symbol-named RegExp methods call .exec- var execCalled = false;- var re = /a/;-- if (KEY === 'split') {- // We can't use real regex here since it causes deoptimization- // and serious performance degradation in V8- // https://github.com/zloirock/core-js/issues/306- re = {};- // RegExp[@@split] doesn't call the regex's exec method, but first creates- // a new one. We need to return the patched regex when creating the new one.- re.constructor = {};- re.constructor[SPECIES$2] = function () { return re; };- re.flags = '';- re[SYMBOL] = /./[SYMBOL];- }-- re.exec = function () { execCalled = true; return null; };-- re[SYMBOL]('');- return !execCalled;- });-- if (- !DELEGATES_TO_SYMBOL ||- !DELEGATES_TO_EXEC ||- (KEY === 'replace' && !(REPLACE_SUPPORTS_NAMED_GROUPS && REPLACE_KEEPS_$0)) ||- (KEY === 'split' && !SPLIT_WORKS_WITH_OVERWRITTEN_EXEC)- ) {- var nativeRegExpMethod = /./[SYMBOL];- var methods = exec(SYMBOL, ''[KEY], function (nativeMethod, regexp, str, arg2, forceStringMethod) {- if (regexp.exec === regexpExec) {- if (DELEGATES_TO_SYMBOL && !forceStringMethod) {- // The native String method already delegates to @@method (this- // polyfilled function), leasing to infinite recursion.- // We avoid it by directly calling the native @@method method.- return { done: true, value: nativeRegExpMethod.call(regexp, str, arg2) };- }- return { done: true, value: nativeMethod.call(str, regexp, arg2) };- }- return { done: false };- }, { REPLACE_KEEPS_$0: REPLACE_KEEPS_$0 });- var stringMethod = methods[0];- var regexMethod = methods[1];-- redefine(String.prototype, KEY, stringMethod);- redefine(RegExp.prototype, SYMBOL, length == 2- // 21.2.5.8 RegExp.prototype[@@replace](string, replaceValue)- // 21.2.5.11 RegExp.prototype[@@split](string, limit)- ? function (string, arg) { return regexMethod.call(string, this, arg); }- // 21.2.5.6 RegExp.prototype[@@match](string)- // 21.2.5.9 RegExp.prototype[@@search](string)- : function (string) { return regexMethod.call(string, this); }- );- }-- if (sham) createNonEnumerableProperty(RegExp.prototype[SYMBOL], 'sham', true);- };-- // `SameValue` abstract operation- // https://tc39.github.io/ecma262/#sec-samevalue- var sameValue = Object.is || function is(x, y) {- // eslint-disable-next-line no-self-compare- return x === y ? x !== 0 || 1 / x === 1 / y : x != x && y != y;- };-- // `RegExpExec` abstract operation- // https://tc39.github.io/ecma262/#sec-regexpexec- var regexpExecAbstract = function (R, S) {- var exec = R.exec;- if (typeof exec === 'function') {- var result = exec.call(R, S);- if (typeof result !== 'object') {- throw TypeError('RegExp exec method returned something other than an Object or null');- }- return result;- }-- if (classofRaw(R) !== 'RegExp') {- throw TypeError('RegExp#exec called on incompatible receiver');- }-- return regexpExec.call(R, S);- };-- // @@search logic- fixRegexpWellKnownSymbolLogic('search', 1, function (SEARCH, nativeSearch, maybeCallNative) {- return [- // `String.prototype.search` method- // https://tc39.github.io/ecma262/#sec-string.prototype.search- function search(regexp) {- var O = requireObjectCoercible(this);- var searcher = regexp == undefined ? undefined : regexp[SEARCH];- return searcher !== undefined ? searcher.call(regexp, O) : new RegExp(regexp)[SEARCH](String(O));- },- // `RegExp.prototype[@@search]` method- // https://tc39.github.io/ecma262/#sec-regexp.prototype-@@search- function (regexp) {- var res = maybeCallNative(nativeSearch, regexp, this);- if (res.done) return res.value;-- var rx = anObject(regexp);- var S = String(this);-- var previousLastIndex = rx.lastIndex;- if (!sameValue(previousLastIndex, 0)) rx.lastIndex = 0;- var result = regexpExecAbstract(rx, S);- if (!sameValue(rx.lastIndex, previousLastIndex)) rx.lastIndex = previousLastIndex;- return result === null ? -1 : result.index;- }- ];- });-- // a string of all valid unicode whitespaces- // eslint-disable-next-line max-len- var whitespaces = '\u0009\u000A\u000B\u000C\u000D\u0020\u00A0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF';-- var whitespace = '[' + whitespaces + ']';- var ltrim = RegExp('^' + whitespace + whitespace + '*');- var rtrim = RegExp(whitespace + whitespace + '*$');-- // `String.prototype.{ trim, trimStart, trimEnd, trimLeft, trimRight }` methods implementation- var createMethod$4 = function (TYPE) {- return function ($this) {- var string = String(requireObjectCoercible($this));- if (TYPE & 1) string = string.replace(ltrim, '');- if (TYPE & 2) string = string.replace(rtrim, '');- return string;- };- };-- var stringTrim = {- // `String.prototype.{ trimLeft, trimStart }` methods- // https://tc39.github.io/ecma262/#sec-string.prototype.trimstart- start: createMethod$4(1),- // `String.prototype.{ trimRight, trimEnd }` methods- // https://tc39.github.io/ecma262/#sec-string.prototype.trimend- end: createMethod$4(2),- // `String.prototype.trim` method- // https://tc39.github.io/ecma262/#sec-string.prototype.trim- trim: createMethod$4(3)- };-- var non = '\u200B\u0085\u180E';-- // check that a method works with the correct list- // of whitespaces and has a correct name- var forcedStringTrimMethod = function (METHOD_NAME) {- return fails(function () {- return !!whitespaces[METHOD_NAME]() || non[METHOD_NAME]() != non || whitespaces[METHOD_NAME].name !== METHOD_NAME;- });- };-- var $trim = stringTrim.trim;--- // `String.prototype.trim` method- // https://tc39.github.io/ecma262/#sec-string.prototype.trim- _export({ target: 'String', proto: true, forced: forcedStringTrimMethod('trim') }, {- trim: function trim() {- return $trim(this);- }- });-- // iterable DOM collections- // flag - `iterable` interface - 'entries', 'keys', 'values', 'forEach' methods- var domIterables = {- CSSRuleList: 0,- CSSStyleDeclaration: 0,- CSSValueList: 0,- ClientRectList: 0,- DOMRectList: 0,- DOMStringList: 0,- DOMTokenList: 1,- DataTransferItemList: 0,- FileList: 0,- HTMLAllCollection: 0,- HTMLCollection: 0,- HTMLFormElement: 0,- HTMLSelectElement: 0,- MediaList: 0,- MimeTypeArray: 0,- NamedNodeMap: 0,- NodeList: 1,- PaintRequestList: 0,- Plugin: 0,- PluginArray: 0,- SVGLengthList: 0,- SVGNumberList: 0,- SVGPathSegList: 0,- SVGPointList: 0,- SVGStringList: 0,- SVGTransformList: 0,- SourceBufferList: 0,- StyleSheetList: 0,- TextTrackCueList: 0,- TextTrackList: 0,- TouchList: 0- };-- var ITERATOR$2 = wellKnownSymbol('iterator');- var TO_STRING_TAG$3 = wellKnownSymbol('toStringTag');- var ArrayValues = es_array_iterator.values;-- for (var COLLECTION_NAME in domIterables) {- var Collection = global_1[COLLECTION_NAME];- var CollectionPrototype = Collection && Collection.prototype;- if (CollectionPrototype) {- // some Chrome versions have non-configurable methods on DOMTokenList- if (CollectionPrototype[ITERATOR$2] !== ArrayValues) try {- createNonEnumerableProperty(CollectionPrototype, ITERATOR$2, ArrayValues);- } catch (error) {- CollectionPrototype[ITERATOR$2] = ArrayValues;- }- if (!CollectionPrototype[TO_STRING_TAG$3]) {- createNonEnumerableProperty(CollectionPrototype, TO_STRING_TAG$3, COLLECTION_NAME);- }- if (domIterables[COLLECTION_NAME]) for (var METHOD_NAME in es_array_iterator) {- // some Chrome versions have non-configurable methods on DOMTokenList- if (CollectionPrototype[METHOD_NAME] !== es_array_iterator[METHOD_NAME]) try {- createNonEnumerableProperty(CollectionPrototype, METHOD_NAME, es_array_iterator[METHOD_NAME]);- } catch (error) {- CollectionPrototype[METHOD_NAME] = es_array_iterator[METHOD_NAME];- }- }- }- }-- function _classCallCheck(instance, Constructor) {- if (!(instance instanceof Constructor)) {- throw new TypeError("Cannot call a class as a function");- }- }-- function _defineProperties(target, props) {- for (var i = 0; i < props.length; i++) {- var descriptor = props[i];- descriptor.enumerable = descriptor.enumerable || false;- descriptor.configurable = true;- if ("value" in descriptor) descriptor.writable = true;- Object.defineProperty(target, descriptor.key, descriptor);- }- }-- function _createClass(Constructor, protoProps, staticProps) {- if (protoProps) _defineProperties(Constructor.prototype, protoProps);- if (staticProps) _defineProperties(Constructor, staticProps);- return Constructor;- }-- function _inherits(subClass, superClass) {- if (typeof superClass !== "function" && superClass !== null) {- throw new TypeError("Super expression must either be null or a function");- }-- subClass.prototype = Object.create(superClass && superClass.prototype, {- constructor: {- value: subClass,- writable: true,- configurable: true- }- });- if (superClass) _setPrototypeOf(subClass, superClass);- }-- function _getPrototypeOf(o) {- _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {- return o.__proto__ || Object.getPrototypeOf(o);- };- return _getPrototypeOf(o);- }-- function _setPrototypeOf(o, p) {- _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {- o.__proto__ = p;- return o;- };-- return _setPrototypeOf(o, p);- }-- function _assertThisInitialized(self) {- if (self === void 0) {- throw new ReferenceError("this hasn't been initialised - super() hasn't been called");- }-- return self;- }-- function _possibleConstructorReturn(self, call) {- if (call && (typeof call === "object" || typeof call === "function")) {- return call;- }-- return _assertThisInitialized(self);- }-- function _superPropBase(object, property) {- while (!Object.prototype.hasOwnProperty.call(object, property)) {- object = _getPrototypeOf(object);- if (object === null) break;- }-- return object;- }-- function _get(target, property, receiver) {- if (typeof Reflect !== "undefined" && Reflect.get) {- _get = Reflect.get;- } else {- _get = function _get(target, property, receiver) {- var base = _superPropBase(target, property);-- if (!base) return;- var desc = Object.getOwnPropertyDescriptor(base, property);-- if (desc.get) {- return desc.get.call(receiver);- }-- return desc.value;- };- }-- return _get(target, property, receiver || target);- }-- function _slicedToArray(arr, i) {- return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest();- }-- function _toConsumableArray(arr) {- return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread();- }-- function _arrayWithoutHoles(arr) {- if (Array.isArray(arr)) {- for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) arr2[i] = arr[i];-- return arr2;- }- }-- function _arrayWithHoles(arr) {- if (Array.isArray(arr)) return arr;- }-- function _iterableToArray(iter) {- if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter);- }-- function _iterableToArrayLimit(arr, i) {- if (!(Symbol.iterator in Object(arr) || Object.prototype.toString.call(arr) === "[object Arguments]")) {- return;- }-- var _arr = [];- var _n = true;- var _d = false;- var _e = undefined;-- try {- for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) {- _arr.push(_s.value);-- if (i && _arr.length === i) break;- }- } catch (err) {- _d = true;- _e = err;- } finally {- try {- if (!_n && _i["return"] != null) _i["return"]();- } finally {- if (_d) throw _e;- }- }-- return _arr;- }-- function _nonIterableSpread() {- throw new TypeError("Invalid attempt to spread non-iterable instance");- }-- function _nonIterableRest() {- throw new TypeError("Invalid attempt to destructure non-iterable instance");- }-- /**- * @author: aperez <[email protected]>- * @version: v2.0.0- *- * @update Dennis Hernández <http://djhvscf.github.io/Blog>- * @update zhixin wen <[email protected]>- */-- var Utils = $.fn.bootstrapTable.utils;- var theme = {- bootstrap3: {- icons: {- advancedSearchIcon: 'glyphicon-chevron-down'- },- html: {- modal: "\n <div id=\"avdSearchModal_%s\" class=\"modal fade\" tabindex=\"-1\" role=\"dialog\" aria-labelledby=\"mySmallModalLabel\" aria-hidden=\"true\">\n <div class=\"modal-dialog modal-xs\">\n <div class=\"modal-content\">\n <div class=\"modal-header\">\n <h4 class=\"modal-title\">%s</h4>\n <button type=\"button\" class=\"close\" data-dismiss=\"modal\" aria-label=\"Close\">\n <span aria-hidden=\"true\">×</span>\n </button>\n </div>\n <div class=\"modal-body modal-body-custom\">\n <div class=\"container-fluid\" id=\"avdSearchModalContent_%s\"\n style=\"padding-right: 0px; padding-left: 0px;\" >\n </div>\n </div>\n <div class=\"modal-footer\">\n <button type=\"button\" id=\"btnCloseAvd_%s\" class=\"btn btn-%s\">%s</button>\n </div>\n </div>\n </div>\n </div>\n "- }- },- bootstrap4: {- icons: {- advancedSearchIcon: 'fa-chevron-down'- },- html: {- modal: "\n <div id=\"avdSearchModal_%s\" class=\"modal fade\" tabindex=\"-1\" role=\"dialog\" aria-labelledby=\"mySmallModalLabel\" aria-hidden=\"true\">\n <div class=\"modal-dialog modal-xs\">\n <div class=\"modal-content\">\n <div class=\"modal-header\">\n <h4 class=\"modal-title\">%s</h4>\n <button type=\"button\" class=\"close\" data-dismiss=\"modal\" aria-label=\"Close\">\n <span aria-hidden=\"true\">×</span>\n </button>\n </div>\n <div class=\"modal-body modal-body-custom\">\n <div class=\"container-fluid\" id=\"avdSearchModalContent_%s\"\n style=\"padding-right: 0; padding-left: 0;\" >\n </div>\n </div>\n <div class=\"modal-footer\">\n <button type=\"button\" id=\"btnCloseAvd_%s\" class=\"btn btn-%s\">%s</button>\n </div>\n </div>\n </div>\n </div>\n "- }- },- bootstrap5: {- icons: {- advancedSearchIcon: 'fa-chevron-down'- },- html: {- modal: "\n <div id=\"avdSearchModal_%s\" class=\"modal fade\" tabindex=\"-1\" role=\"dialog\" aria-labelledby=\"mySmallModalLabel\" aria-hidden=\"true\">\n <div class=\"modal-dialog modal-xs\">\n <div class=\"modal-content\">\n <div class=\"modal-header\">\n <h4 class=\"modal-title\">%s</h4>\n <button type=\"button\" class=\"close\" data-dismiss=\"modal\" aria-label=\"Close\">\n <span aria-hidden=\"true\">×</span>\n </button>\n </div>\n <div class=\"modal-body modal-body-custom\">\n <div class=\"container-fluid\" id=\"avdSearchModalContent_%s\"\n style=\"padding-right: 0; padding-left: 0;\" >\n </div>\n </div>\n <div class=\"modal-footer\">\n <button type=\"button\" id=\"btnCloseAvd_%s\" class=\"btn btn-%s\">%s</button>\n </div>\n </div>\n </div>\n </div>\n "- }- },- bulma: {- icons: {- advancedSearchIcon: 'fa-chevron-down'- },- html: {- modal: "\n <div class=\"modal\" id=\"avdSearchModal_%s\">\n <div class=\"modal-background\"></div>\n <div class=\"modal-card\">\n <header class=\"modal-card-head\">\n <p class=\"modal-card-title\">%s</p>\n <button class=\"delete\" aria-label=\"close\"></button>\n </header>\n <section class=\"modal-card-body\" id=\"avdSearchModalContent_%s\"></section>\n <footer class=\"modal-card-foot\">\n <button class=\"button\" id=\"btnCloseAvd_%s\" data-close=\"btn btn-%s\">%s</button>\n </footer>\n </div>\n </div>\n "- }- },- foundation: {- icons: {- advancedSearchIcon: 'fa-chevron-down'- },- html: {- modal: "\n <div class=\"reveal\" id=\"avdSearchModal_%s\" data-reveal>\n <h1>%s</h1>\n <div id=\"avdSearchModalContent_%s\">\n\n </div>\n <button class=\"close-button\" data-close aria-label=\"Close modal\" type=\"button\">\n <span aria-hidden=\"true\">×</span>\n </button>\n\n <button id=\"btnCloseAvd_%s\" class=\"%s\" type=\"button\">%s</button>\n </div>\n "- }- },- materialize: {- icons: {- advancedSearchIcon: 'expand_more'- },- html: {- modal: "\n <div id=\"avdSearchModal_%s\" class=\"modal\">\n <div class=\"modal-content\">\n <h4>%s</h4>\n <div id=\"avdSearchModalContent_%s\">\n\n </div>\n </div>\n <div class=\"modal-footer\">\n <a href=\"javascript:void(0)\"\" id=\"btnCloseAvd_%s\" class=\"modal-close waves-effect waves-green btn-flat %s\">%s</a>\n </div>\n </div>\n "- }- },- semantic: {- icons: {- advancedSearchIcon: 'fa-chevron-down'- },- html: {- modal: "\n <div class=\"ui modal\" id=\"avdSearchModal_%s\">\n <i class=\"close icon\"></i>\n <div class=\"header\">\n %s\n </div>\n <div class=\"image content ui form\" id=\"avdSearchModalContent_%s\"></div>\n <div class=\"actions\">\n <div id=\"btnCloseAvd_%s\" class=\"ui black deny button %s\">%s</div>\n </div>\n </div>\n "- }- }- }[$.fn.bootstrapTable.theme];- $.extend($.fn.bootstrapTable.defaults, {- advancedSearch: false,- idForm: 'advancedSearch',- actionForm: '',- idTable: undefined,- onColumnAdvancedSearch: function onColumnAdvancedSearch(field, text) {- return false;- }- });- $.extend($.fn.bootstrapTable.defaults.icons, {- advancedSearchIcon: theme.icons.advancedSearchIcon- });- $.extend($.fn.bootstrapTable.Constructor.EVENTS, {- 'column-advanced-search.bs.table': 'onColumnAdvancedSearch'- });- $.extend($.fn.bootstrapTable.locales, {- formatAdvancedSearch: function formatAdvancedSearch() {- return 'Advanced search';- },- formatAdvancedCloseButton: function formatAdvancedCloseButton() {- return 'Close';- }- });- $.extend($.fn.bootstrapTable.defaults, $.fn.bootstrapTable.locales);-- $.BootstrapTable =- /*#__PURE__*/- function (_$$BootstrapTable) {- _inherits(_class, _$$BootstrapTable);-- function _class() {- _classCallCheck(this, _class);-- return _possibleConstructorReturn(this, _getPrototypeOf(_class).apply(this, arguments));- }-- _createClass(_class, [{- key: "initToolbar",- value: function initToolbar() {- var o = this.options;- this.showToolbar = this.showToolbar || o.search && o.advancedSearch && o.idTable;-- if (o.search && o.advancedSearch && o.idTable) {- this.buttons = Object.assign(this.buttons, {- advancedSearch: {- 'text': this.options.formatAdvancedSearch(),- 'icon': this.options.icons.advancedSearchIcon,- 'event': this.showAvdSearch,- 'attributes': {- 'aria-label': this.options.formatAdvancedSearch(),- 'title': this.options.formatAdvancedSearch()- }- }- });- }-- _get(_getPrototypeOf(_class.prototype), "initToolbar", this).call(this);- }- }, {- key: "showAvdSearch",- value: function showAvdSearch() {- var _this = this;-- var o = this.options;- var modalSelector = '#avdSearchModal_' + o.idTable;-- if ($(modalSelector).length <= 0) {- $('body').append(Utils.sprintf(theme.html.modal, o.idTable, o.formatAdvancedSearch(), o.idTable, o.idTable, o.buttonsClass, o.formatAdvancedCloseButton()));- var timeoutId = 0;- $("#avdSearchModalContent_".concat(o.idTable)).append(this.createFormAvd().join(''));- $("#".concat(o.idForm)).off('keyup blur', 'input').on('keyup blur', 'input', function (e) {- if (o.sidePagination === 'server') {- _this.onColumnAdvancedSearch(e);- } else {- clearTimeout(timeoutId);- timeoutId = setTimeout(function () {- _this.onColumnAdvancedSearch(e);- }, o.searchTimeOut);- }- });- $("#btnCloseAvd_".concat(o.idTable)).click(function () {- return _this.hideModal();- });-- if ($.fn.bootstrapTable.theme === 'bulma') {- $(modalSelector).find('.delete').off('click').on('click', function () {- return _this.hideModal();- });- }-- this.showModal();- } else {- this.showModal();- }- }- }, {- key: "showModal",- value: function showModal() {- var modalSelector = '#avdSearchModal_' + this.options.idTable;-- if ($.inArray($.fn.bootstrapTable.theme, ['bootstrap3', 'bootstrap4']) !== -1) {- $(modalSelector).modal();- } else if ($.fn.bootstrapTable.theme === 'bootstrap5') {- if (!this.toolbarModal) {- // eslint-disable-next-line no-undef- this.toolbarModal = new bootstrap.Modal(document.getElementById('avdSearchModal_' + this.options.idTable), {});- }-- this.toolbarModal.show();- } else if ($.fn.bootstrapTable.theme === 'bulma') {- $(modalSelector).toggleClass('is-active');- } else if ($.fn.bootstrapTable.theme === 'foundation') {- if (!this.toolbarModal) {- // eslint-disable-next-line no-undef- this.toolbarModal = new Foundation.Reveal($(modalSelector));- }-- this.toolbarModal.open();- } else if ($.fn.bootstrapTable.theme === 'materialize') {- $(modalSelector).modal();- $(modalSelector).modal('open');- } else if ($.fn.bootstrapTable.theme === 'semantic') {- $(modalSelector).modal('show');- }- }- }, {- key: "hideModal",- value: function hideModal() {- var $closeModalButton = $("#avdSearchModal_".concat(this.options.idTable));- var modalSelector = '#avdSearchModal_' + this.options.idTable;-- if ($.inArray($.fn.bootstrapTable.theme, ['bootstrap3', 'bootstrap4']) !== -1) {- $closeModalButton.modal('hide');- } else if ($.fn.bootstrapTable.theme === 'bootstrap5') {- this.toolbarModal.hide();- } else if ($.fn.bootstrapTable.theme === 'bulma') {- $('html').toggleClass('is-clipped');- $(modalSelector).toggleClass('is-active');- } else if ($.fn.bootstrapTable.theme === 'foundation') {- this.toolbarModal.close();- } else if ($.fn.bootstrapTable.theme === 'materialize') {- $(modalSelector).modal('open');- } else if ($.fn.bootstrapTable.theme === 'semantic') {- $(modalSelector).modal('close');- }-- if (this.options.sidePagination === 'server') {- this.options.pageNumber = 1;- this.updatePagination();- this.trigger('column-advanced-search', this.filterColumnsPartial);- }- }- }, {- key: "createFormAvd",- value: function createFormAvd() {- var o = this.options;- var html = ["<form class=\"form-horizontal\" id=\"".concat(o.idForm, "\" action=\"").concat(o.actionForm, "\">")];- var _iteratorNormalCompletion = true;- var _didIteratorError = false;- var _iteratorError = undefined;-- try {- for (var _iterator = this.columns[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {- var column = _step.value;-- if (!column.checkbox && column.visible && column.searchable) {- html.push("\n <div class=\"form-group row\">\n <label class=\"col-sm-4 control-label\">".concat(column.title, "</label>\n <div class=\"col-sm-6\">\n <input type=\"text\" class=\"form-control ").concat(this.constants.classes.input, "\" name=\"").concat(column.field, "\" placeholder=\"").concat(column.title, "\" id=\"").concat(column.field, "\">\n </div>\n </div>\n "));- }- }- } catch (err) {- _didIteratorError = true;- _iteratorError = err;- } finally {- try {- if (!_iteratorNormalCompletion && _iterator.return != null) {- _iterator.return();- }- } finally {- if (_didIteratorError) {- throw _iteratorError;- }- }- }-- html.push('</form>');- return html;- }- }, {- key: "initSearch",- value: function initSearch() {- var _this2 = this;-- _get(_getPrototypeOf(_class.prototype), "initSearch", this).call(this);-- if (!this.options.advancedSearch || this.options.sidePagination === 'server') {- return;- }-- var fp = $.isEmptyObject(this.filterColumnsPartial) ? null : this.filterColumnsPartial;- this.data = fp ? this.data.filter(function (item, i) {- for (var _i = 0, _Object$entries = Object.entries(fp); _i < _Object$entries.length; _i++) {- var _Object$entries$_i = _slicedToArray(_Object$entries[_i], 2),- key = _Object$entries$_i[0],- v = _Object$entries$_i[1];-- var fval = v.toLowerCase();- var value = item[key];-- var index = _this2.header.fields.indexOf(key);-- value = Utils.calculateObjectValue(_this2.header, _this2.header.formatters[index], [value, item, i], value);-- if (!(index !== -1 && (typeof value === 'string' || typeof value === 'number') && "".concat(value).toLowerCase().includes(fval))) {- return false;- }- }-- return true;- }) : this.data;- this.unsortedData = _toConsumableArray(this.data);- }- }, {- key: "onColumnAdvancedSearch",- value: function onColumnAdvancedSearch(e) {- var text = $.trim($(e.currentTarget).val());- var $field = $(e.currentTarget)[0].id;-- if ($.isEmptyObject(this.filterColumnsPartial)) {- this.filterColumnsPartial = {};- }-- if (text) {- this.filterColumnsPartial[$field] = text;- } else {- delete this.filterColumnsPartial[$field];- }-- if (this.options.sidePagination !== 'server') {- this.options.pageNumber = 1;- this.onSearch(e);- this.updatePagination();- this.trigger('column-advanced-search', $field, text);- }- }- }]);-- return _class;- }($.BootstrapTable);--})));+function _classCallCheck(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e(require("jquery")):"function"==typeof define&&define.amd?define(["jquery"],e):(t=t||self,t.BootstrapTable=e(t.jQuery))}(this,function(t){"use strict";function e(t,e){return e={exports:{}},t(e,e.exports),e.exports}function n(t,e){return RegExp(t,e)}function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function a(t,e,n){return e&&o(t.prototype,e),n&&o(t,n),t}function s(t,e){return u(t)||h(t,e)||p()}function l(t){return c(t)||f(t)||d()}function c(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e<t.length;e++)n[e]=t[e];return n}}function u(t){if(Array.isArray(t))return t}function f(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}function h(t,e){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t)){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(t){i=!0,o=t}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}}function d(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function p(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}t=t&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t;var g="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},m=function(t){return t&&t.Math==Math&&t},v=m("object"==typeof globalThis&&globalThis)||m("object"==typeof window&&window)||m("object"==typeof self&&self)||m("object"==typeof g&&g)||Function("return this")(),y=function(t){try{return!!t()}catch(t){return!0}},b=!y(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}),w={}.propertyIsEnumerable,x=Object.getOwnPropertyDescriptor,S=x&&!w.call({1:2},1),A=S?function(t){var e=x(this,t);return!!e&&e.enumerable}:w,N={f:A},L=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},k={}.toString,C=function(t){return k.call(t).slice(8,-1)},O="".split,_=y(function(){return!Object("z").propertyIsEnumerable(0)})?function(t){return"String"==C(t)?O.call(t,""):Object(t)}:Object,P=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t},I=function(t){return _(P(t))},T=function(t){return"object"==typeof t?null!==t:"function"==typeof t},E=function(t,e){if(!T(t))return t;var n,r;if(e&&"function"==typeof(n=t.toString)&&!T(r=n.call(t)))return r;if("function"==typeof(n=t.valueOf)&&!T(r=n.call(t)))return r;if(!e&&"function"==typeof(n=t.toString)&&!T(r=n.call(t)))return r;throw TypeError("Can't convert object to primitive value")},j={}.hasOwnProperty,F=function(t,e){return j.call(t,e)},R=v.document,B=T(R)&&T(R.createElement),M=function(t){return B?R.createElement(t):{}},D=!b&&!y(function(){return 7!=Object.defineProperty(M("div"),"a",{get:function(){return 7}}).a}),q=Object.getOwnPropertyDescriptor,U=b?q:function(t,e){if(t=I(t),e=E(e,!0),D)try{return q(t,e)}catch(t){}if(F(t,e))return L(!N.f.call(t,e),t[e])},z={f:U},H=function(t){if(!T(t))throw TypeError(String(t)+" is not an object");return t},$=Object.defineProperty,V=b?$:function(t,e,n){if(H(t),e=E(e,!0),H(n),D)try{return $(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(t[e]=n.value),t},W={f:V},G=b?function(t,e,n){return W.f(t,e,L(1,n))}:function(t,e,n){return t[e]=n,t},Y=function(t,e){try{G(v,t,e)}catch(n){v[t]=e}return e},J=v["__core-js_shared__"]||Y("__core-js_shared__",{}),X=J,K=Function.toString;"function"!=typeof X.inspectSource&&(X.inspectSource=function(t){return K.call(t)});var Q,Z,tt,et=X.inspectSource,nt=v.WeakMap,rt="function"==typeof nt&&/native code/.test(et(nt)),it=e(function(t){(t.exports=function(t,e){return X[t]||(X[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.6.0",mode:"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})}),ot=0,at=Math.random(),st=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++ot+at).toString(36)},lt=it("keys"),ct=function(t){return lt[t]||(lt[t]=st(t))},ut={},ft=v.WeakMap,ht=function(t){return tt(t)?Z(t):Q(t,{})},dt=function(t){return function(e){var n;if(!T(e)||(n=Z(e)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return n}};if(rt){var pt=new ft,gt=pt.get,mt=pt.has,vt=pt.set;Q=function(t,e){return vt.call(pt,t,e),e},Z=function(t){return gt.call(pt,t)||{}},tt=function(t){return mt.call(pt,t)}}else{var yt=ct("state");ut[yt]=!0,Q=function(t,e){return G(t,yt,e),e},Z=function(t){return F(t,yt)?t[yt]:{}},tt=function(t){return F(t,yt)}}var bt,wt={set:Q,get:Z,has:tt,enforce:ht,getterFor:dt},xt=e(function(t){var e=wt.get,n=wt.enforce,r=String(String).split("String");(t.exports=function(t,e,i,o){var a=!!o&&!!o.unsafe,s=!!o&&!!o.enumerable,l=!!o&&!!o.noTargetGet;if("function"==typeof i&&("string"!=typeof e||F(i,"name")||G(i,"name",e),n(i).source=r.join("string"==typeof e?e:"")),t===v)return void(s?t[e]=i:Y(e,i));a?!l&&t[e]&&(s=!0):delete t[e],s?t[e]=i:G(t,e,i)})(Function.prototype,"toString",function(){return"function"==typeof this&&e(this).source||et(this)})}),St=v,At=function(t){return"function"==typeof t?t:void 0},Nt=function(t,e){return arguments.length<2?At(St[t])||At(v[t]):St[t]&&St[t][e]||v[t]&&v[t][e]},Lt=Math.ceil,kt=Math.floor,Ct=function(t){return isNaN(t=+t)?0:(t>0?kt:Lt)(t)},Ot=Math.min,_t=function(t){return t>0?Ot(Ct(t),9007199254740991):0},Pt=Math.max,It=Math.min,Tt=function(t,e){var n=Ct(t);return n<0?Pt(n+e,0):It(n,e)},Et=function(t){return function(e,n,r){var i,o=I(e),a=_t(o.length),s=Tt(r,a);if(t&&n!=n){for(;a>s;)if((i=o[s++])!=i)return!0}else for(;a>s;s++)if((t||s in o)&&o[s]===n)return t||s||0;return!t&&-1}},jt={includes:Et(!0),indexOf:Et(!1)},Ft=jt.indexOf,Rt=function(t,e){var n,r=I(t),i=0,o=[];for(n in r)!F(ut,n)&&F(r,n)&&o.push(n);for(;e.length>i;)F(r,n=e[i++])&&(~Ft(o,n)||o.push(n));return o},Bt=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Mt=Bt.concat("length","prototype"),Dt=Object.getOwnPropertyNames||function(t){return Rt(t,Mt)},qt={f:Dt},Ut=Object.getOwnPropertySymbols,zt={f:Ut},Ht=Nt("Reflect","ownKeys")||function(t){var e=qt.f(H(t)),n=zt.f;return n?e.concat(n(t)):e},$t=function(t,e){for(var n=Ht(e),r=W.f,i=z.f,o=0;o<n.length;o++){var a=n[o];F(t,a)||r(t,a,i(e,a))}},Vt=/#|\.prototype\./,Wt=function(t,e){var n=Yt[Gt(t)];return n==Xt||n!=Jt&&("function"==typeof e?y(e):!!e)},Gt=Wt.normalize=function(t){return String(t).replace(Vt,".").toLowerCase()},Yt=Wt.data={},Jt=Wt.NATIVE="N",Xt=Wt.POLYFILL="P",Kt=Wt,Qt=z.f,Zt=function(t,e){var n,r,i,o,a,s=t.target,l=t.global,c=t.stat;if(n=l?v:c?v[s]||Y(s,{}):(v[s]||{}).prototype)for(r in e){if(o=e[r],t.noTargetGet?(a=Qt(n,r),i=a&&a.value):i=n[r],!Kt(l?r:s+(c?".":"#")+r,t.forced)&&void 0!==i){if(typeof o==typeof i)continue;$t(o,i)}(t.sham||i&&i.sham)&&G(o,"sham",!0),xt(n,r,o,t)}},te=!!Object.getOwnPropertySymbols&&!y(function(){return!String(Symbol())}),ee=te&&!Symbol.sham&&"symbol"==typeof Symbol(),ne=Array.isArray||function(t){return"Array"==C(t)},re=function(t){return Object(P(t))},ie=Object.keys||function(t){return Rt(t,Bt)},oe=b?Object.defineProperties:function(t,e){H(t);for(var n,r=ie(e),i=r.length,o=0;i>o;)W.f(t,n=r[o++],e[n]);return t},ae=Nt("document","documentElement"),se=ct("IE_PROTO"),le=function(){},ce=function(t){return"<script>"+t+"<\/script>"},ue=function(t){t.write(ce("")),t.close();var e=t.parentWindow.Object;return t=null,e},fe=function(){var t,e=M("iframe");return e.style.display="none",ae.appendChild(e),e.src=String("javascript:"),t=e.contentWindow.document,t.open(),t.write(ce("document.F=Object")),t.close(),t.F},he=function(){try{bt=document.domain&&new ActiveXObject("htmlfile")}catch(t){}he=bt?ue(bt):fe();for(var t=Bt.length;t--;)delete he.prototype[Bt[t]];return he()};ut[se]=!0;var de=Object.create||function(t,e){var n;return null!==t?(le.prototype=H(t),n=new le,le.prototype=null,n[se]=t):n=he(),void 0===e?n:oe(n,e)},pe=qt.f,ge={}.toString,me="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],ve=function(t){try{return pe(t)}catch(t){return me.slice()}},ye=function(t){return me&&"[object Window]"==ge.call(t)?ve(t):pe(I(t))},be={f:ye},we=it("wks"),xe=v.Symbol,Se=ee?xe:st,Ae=function(t){return F(we,t)||(te&&F(xe,t)?we[t]=xe[t]:we[t]=Se("Symbol."+t)),we[t]},Ne=Ae,Le={f:Ne},ke=W.f,Ce=function(t){var e=St.Symbol||(St.Symbol={});F(e,t)||ke(e,t,{value:Le.f(t)})},Oe=W.f,_e=Ae("toStringTag"),Pe=function(t,e,n){t&&!F(t=n?t:t.prototype,_e)&&Oe(t,_e,{configurable:!0,value:e})},Ie=function(t){if("function"!=typeof t)throw TypeError(String(t)+" is not a function");return t},Te=function(t,e,n){if(Ie(t),void 0===e)return t;switch(n){case 0:return function(){return t.call(e)};case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,i){return t.call(e,n,r,i)}}return function(){return t.apply(e,arguments)}},Ee=Ae("species"),je=function(t,e){var n;return ne(t)&&(n=t.constructor,"function"!=typeof n||n!==Array&&!ne(n.prototype)?T(n)&&null===(n=n[Ee])&&(n=void 0):n=void 0),new(void 0===n?Array:n)(0===e?0:e)},Fe=[].push,Re=function(t){var e=1==t,n=2==t,r=3==t,i=4==t,o=6==t,a=5==t||o;return function(s,l,c,u){for(var f,h,d=re(s),p=_(d),g=Te(l,c,3),m=_t(p.length),v=0,y=u||je,b=e?y(s,m):n?y(s,0):void 0;m>v;v++)if((a||v in p)&&(f=p[v],h=g(f,v,d),t))if(e)b[v]=h;else if(h)switch(t){case 3:return!0;case 5:return f;case 6:return v;case 2:Fe.call(b,f)}else if(i)return!1;return o?-1:r||i?i:b}},Be={forEach:Re(0),map:Re(1),filter:Re(2),some:Re(3),every:Re(4),find:Re(5),findIndex:Re(6)},Me=Be.forEach,De=ct("hidden"),qe=Ae("toPrimitive"),Ue=wt.set,ze=wt.getterFor("Symbol"),He=Object.prototype,$e=v.Symbol,Ve=Nt("JSON","stringify"),We=z.f,Ge=W.f,Ye=be.f,Je=N.f,Xe=it("symbols"),Ke=it("op-symbols"),Qe=it("string-to-symbol-registry"),Ze=it("symbol-to-string-registry"),tn=it("wks"),en=v.QObject,nn=!en||!en.prototype||!en.prototype.findChild,rn=b&&y(function(){return 7!=de(Ge({},"a",{get:function(){return Ge(this,"a",{value:7}).a}})).a})?function(t,e,n){var r=We(He,e);r&&delete He[e],Ge(t,e,n),r&&t!==He&&Ge(He,e,r)}:Ge,on=function(t,e){var n=Xe[t]=de($e.prototype);return Ue(n,{type:"Symbol",tag:t,description:e}),b||(n.description=e),n},an=te&&"symbol"==typeof $e.iterator?function(t){return"symbol"==typeof t}:function(t){return Object(t)instanceof $e},sn=function(t,e,n){t===He&&sn(Ke,e,n),H(t);var r=E(e,!0);return H(n),F(Xe,r)?(n.enumerable?(F(t,De)&&t[De][r]&&(t[De][r]=!1),n=de(n,{enumerable:L(0,!1)})):(F(t,De)||Ge(t,De,L(1,{})),t[De][r]=!0),rn(t,r,n)):Ge(t,r,n)},ln=function(t,e){H(t);var n=I(e),r=ie(n).concat(dn(n));return Me(r,function(e){b&&!un.call(n,e)||sn(t,e,n[e])}),t},cn=function(t,e){return void 0===e?de(t):ln(de(t),e)},un=function(t){var e=E(t,!0),n=Je.call(this,e);return!(this===He&&F(Xe,e)&&!F(Ke,e))&&(!(n||!F(this,e)||!F(Xe,e)||F(this,De)&&this[De][e])||n)},fn=function(t,e){var n=I(t),r=E(e,!0);if(n!==He||!F(Xe,r)||F(Ke,r)){var i=We(n,r);return!i||!F(Xe,r)||F(n,De)&&n[De][r]||(i.enumerable=!0),i}},hn=function(t){var e=Ye(I(t)),n=[];return Me(e,function(t){F(Xe,t)||F(ut,t)||n.push(t)}),n},dn=function(t){var e=t===He,n=Ye(e?Ke:I(t)),r=[];return Me(n,function(t){!F(Xe,t)||e&&!F(He,t)||r.push(Xe[t])}),r};if(te||($e=function(){if(this instanceof $e)throw TypeError("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?String(arguments[0]):void 0,e=st(t),n=function(t){this===He&&n.call(Ke,t),F(this,De)&&F(this[De],e)&&(this[De][e]=!1),rn(this,e,L(1,t))};return b&&nn&&rn(He,e,{configurable:!0,set:n}),on(e,t)},xt($e.prototype,"toString",function(){return ze(this).tag}),N.f=un,W.f=sn,z.f=fn,qt.f=be.f=hn,zt.f=dn,b&&(Ge($e.prototype,"description",{configurable:!0,get:function(){return ze(this).description}}),xt(He,"propertyIsEnumerable",un,{unsafe:!0}))),ee||(Le.f=function(t){return on(Ae(t),t)}),Zt({global:!0,wrap:!0,forced:!te,sham:!te},{Symbol:$e}),Me(ie(tn),function(t){Ce(t)}),Zt({target:"Symbol",stat:!0,forced:!te},{for:function(t){var e=String(t);if(F(Qe,e))return Qe[e];var n=$e(e);return Qe[e]=n,Ze[n]=e,n},keyFor:function(t){if(!an(t))throw TypeError(t+" is not a symbol");if(F(Ze,t))return Ze[t]},useSetter:function(){nn=!0},useSimple:function(){nn=!1}}),Zt({target:"Object",stat:!0,forced:!te,sham:!b},{create:cn,defineProperty:sn,defineProperties:ln,getOwnPropertyDescriptor:fn}),Zt({target:"Object",stat:!0,forced:!te},{getOwnPropertyNames:hn,getOwnPropertySymbols:dn}),Zt({target:"Object",stat:!0,forced:y(function(){zt.f(1)})},{getOwnPropertySymbols:function(t){return zt.f(re(t))}}),Ve){var pn=!te||y(function(){var t=$e();return"[null]"!=Ve([t])||"{}"!=Ve({a:t})||"{}"!=Ve(Object(t))});Zt({target:"JSON",stat:!0,forced:pn},{stringify:function(t,e,n){for(var r,i=[t],o=1;arguments.length>o;)i.push(arguments[o++]);if(r=e,(T(e)||void 0!==t)&&!an(t))return ne(e)||(e=function(t,e){if("function"==typeof r&&(e=r.call(this,t,e)),!an(e))return e}),i[1]=e,Ve.apply(null,i)}})}$e.prototype[qe]||G($e.prototype,qe,$e.prototype.valueOf),Pe($e,"Symbol"),ut[De]=!0;var gn=W.f,mn=v.Symbol;if(b&&"function"==typeof mn&&(!("description"in mn.prototype)||void 0!==mn().description)){var vn={},yn=function(){var t=arguments.length<1||void 0===arguments[0]?void 0:String(arguments[0]),e=this instanceof yn?new mn(t):void 0===t?mn():mn(t);return""===t&&(vn[e]=!0),e};$t(yn,mn);var bn=yn.prototype=mn.prototype;bn.constructor=yn;var wn=bn.toString,xn="Symbol(test)"==String(mn("test")),Sn=/^Symbol\((.*)\)[^)]+$/;gn(bn,"description",{configurable:!0,get:function(){var t=T(this)?this.valueOf():this,e=wn.call(t);if(F(vn,t))return"";var n=xn?e.slice(7,-1):e.replace(Sn,"$1");return""===n?void 0:n}}),Zt({global:!0,forced:!0},{Symbol:yn})}Ce("iterator");var An,Nn,Ln=function(t,e,n){var r=E(e);r in t?W.f(t,r,L(0,n)):t[r]=n},kn=Nt("navigator","userAgent")||"",Cn=v.process,On=Cn&&Cn.versions,_n=On&&On.v8;_n?(An=_n.split("."),Nn=An[0]+An[1]):kn&&(!(An=kn.match(/Edge\/(\d+)/))||An[1]>=74)&&(An=kn.match(/Chrome\/(\d+)/))&&(Nn=An[1]);var Pn=Nn&&+Nn,In=Ae("species"),Tn=function(t){return Pn>=51||!y(function(){var e=[],n=e.constructor={};return n[In]=function(){return{foo:1}},1!==e[t](Boolean).foo})},En=Ae("isConcatSpreadable"),jn=Pn>=51||!y(function(){var t=[];return t[En]=!1,t.concat()[0]!==t}),Fn=Tn("concat"),Rn=function(t){if(!T(t))return!1;var e=t[En];return void 0!==e?!!e:ne(t)};Zt({target:"Array",proto:!0,forced:!jn||!Fn},{concat:function(t){var e,n,r,i,o,a=re(this),s=je(a,0),l=0;for(e=-1,r=arguments.length;e<r;e++)if(o=-1===e?a:arguments[e],Rn(o)){if(i=_t(o.length),l+i>9007199254740991)throw TypeError("Maximum allowed index exceeded");for(n=0;n<i;n++,l++)n in o&&Ln(s,l,o[n])}else{if(l>=9007199254740991)throw TypeError("Maximum allowed index exceeded");Ln(s,l++,o)}return s.length=l,s}});var Bn=Be.filter,Mn=Tn("filter"),Dn=Mn&&!y(function(){[].filter.call({length:-1,0:1},function(t){throw t})});Zt({target:"Array",proto:!0,forced:!Mn||!Dn},{filter:function(t){return Bn(this,t,arguments.length>1?arguments[1]:void 0)}});var qn=Ae("unscopables"),Un=Array.prototype;void 0==Un[qn]&&W.f(Un,qn,{configurable:!0,value:de(null)});var zn=function(t){Un[qn][t]=!0},Hn=Be.find,$n=!0;"find"in[]&&Array(1).find(function(){$n=!1}),Zt({target:"Array",proto:!0,forced:$n},{find:function(t){return Hn(this,t,arguments.length>1?arguments[1]:void 0)}}),zn("find");var Vn=Be.findIndex,Wn=!0;"findIndex"in[]&&Array(1).findIndex(function(){Wn=!1}),Zt({target:"Array",proto:!0,forced:Wn},{findIndex:function(t){return Vn(this,t,arguments.length>1?arguments[1]:void 0)}}),zn("findIndex");var Gn=jt.includes;Zt({target:"Array",proto:!0},{includes:function(t){return Gn(this,t,arguments.length>1?arguments[1]:void 0)}}),zn("includes");var Yn=function(t,e){var n=[][t];return!n||!y(function(){n.call(null,e||function(){throw 1},1)})},Jn=jt.indexOf,Xn=[].indexOf,Kn=!!Xn&&1/[1].indexOf(1,-0)<0,Qn=Yn("indexOf");Zt({target:"Array",proto:!0,forced:Kn||Qn},{indexOf:function(t){return Kn?Xn.apply(this,arguments)||0:Jn(this,t,arguments.length>1?arguments[1]:void 0)}});var Zn,tr,er,nr=!y(function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}),rr=ct("IE_PROTO"),ir=Object.prototype,or=nr?Object.getPrototypeOf:function(t){return t=re(t),F(t,rr)?t[rr]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?ir:null},ar=Ae("iterator"),sr=!1,lr=function(){return this};[].keys&&(er=[].keys(),"next"in er?(tr=or(or(er)))!==Object.prototype&&(Zn=tr):sr=!0),void 0==Zn&&(Zn={}),F(Zn,ar)||G(Zn,ar,lr);var cr={IteratorPrototype:Zn,BUGGY_SAFARI_ITERATORS:sr},ur=cr.IteratorPrototype,fr=function(t,e,n){var r=e+" Iterator";return t.prototype=de(ur,{next:L(1,n)}),Pe(t,r,!1),t},hr=function(t){if(!T(t)&&null!==t)throw TypeError("Can't set "+String(t)+" as a prototype");return t},dr=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{t=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set,t.call(n,[]),e=n instanceof Array}catch(t){}return function(n,r){return H(n),hr(r),e?t.call(n,r):n.__proto__=r,n}}():void 0),pr=cr.IteratorPrototype,gr=cr.BUGGY_SAFARI_ITERATORS,mr=Ae("iterator"),vr=function(){return this},yr=function(t,e,n,r,i,o,a){fr(n,e,r);var s,l,c,u=function(t){if(t===i&&g)return g;if(!gr&&t in d)return d[t];switch(t){case"keys":case"values":case"entries":return function(){return new n(this,t)}}return function(){return new n(this)}},f=e+" Iterator",h=!1,d=t.prototype,p=d[mr]||d["@@iterator"]||i&&d[i],g=!gr&&p||u(i),m="Array"==e?d.entries||p:p;if(m&&(s=or(m.call(new t)),pr!==Object.prototype&&s.next&&(or(s)!==pr&&(dr?dr(s,pr):"function"!=typeof s[mr]&&G(s,mr,vr)),Pe(s,f,!0))),"values"==i&&p&&"values"!==p.name&&(h=!0,g=function(){return p.call(this)}),d[mr]!==g&&G(d,mr,g),i)if(l={values:u("values"),keys:o?g:u("keys"),entries:u("entries")},a)for(c in l)!gr&&!h&&c in d||xt(d,c,l[c]);else Zt({target:e,proto:!0,forced:gr||h},l);return l},br=wt.set,wr=wt.getterFor("Array Iterator"),xr=yr(Array,"Array",function(t,e){br(this,{type:"Array Iterator",target:I(t),index:0,kind:e})},function(){var t=wr(this),e=t.target,n=t.kind,r=t.index++;return!e||r>=e.length?(t.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:e[r],done:!1}:{value:[r,e[r]],done:!1}},"values");zn("keys"),zn("values"),zn("entries");var Sr=[].join,Ar=_!=Object,Nr=Yn("join",",");Zt({target:"Array",proto:!0,forced:Ar||Nr},{join:function(t){return Sr.call(I(this),void 0===t?",":t)}});var Lr=Be.map,kr=Tn("map"),Cr=kr&&!y(function(){[].map.call({length:-1,0:1},function(t){throw t})});Zt({target:"Array",proto:!0,forced:!kr||!Cr},{map:function(t){return Lr(this,t,arguments.length>1?arguments[1]:void 0)}});var Or=[].reverse,_r=[1,2];Zt({target:"Array",proto:!0,forced:String(_r)===String(_r.reverse())},{reverse:function(){return ne(this)&&(this.length=this.length),Or.call(this)}});var Pr=Ae("species"),Ir=[].slice,Tr=Math.max;Zt({target:"Array",proto:!0,forced:!Tn("slice")},{slice:function(t,e){var n,r,i,o=I(this),a=_t(o.length),s=Tt(t,a),l=Tt(void 0===e?a:e,a);if(ne(o)&&(n=o.constructor,"function"!=typeof n||n!==Array&&!ne(n.prototype)?T(n)&&null===(n=n[Pr])&&(n=void 0):n=void 0,n===Array||void 0===n))return Ir.call(o,s,l);for(r=new(void 0===n?Array:n)(Tr(l-s,0)),i=0;s<l;s++,i++)s in o&&Ln(r,i,o[s]);return r.length=i,r}});var Er=[],jr=Er.sort,Fr=y(function(){Er.sort(void 0)}),Rr=y(function(){Er.sort(null)}),Br=Yn("sort");Zt({target:"Array",proto:!0,forced:Fr||!Rr||Br},{sort:function(t){return void 0===t?jr.call(re(this)):jr.call(re(this),Ie(t))}});var Mr=Math.max,Dr=Math.min;Zt({target:"Array",proto:!0,forced:!Tn("splice")},{splice:function(t,e){var n,r,i,o,a,s,l=re(this),c=_t(l.length),u=Tt(t,c),f=arguments.length;if(0===f?n=r=0:1===f?(n=0,r=c-u):(n=f-2,r=Dr(Mr(Ct(e),0),c-u)),c+n-r>9007199254740991)throw TypeError("Maximum allowed length exceeded");for(i=je(l,r),o=0;o<r;o++)(a=u+o)in l&&Ln(i,o,l[a]);if(i.length=r,n<r){for(o=u;o<c-r;o++)a=o+r,s=o+n,a in l?l[s]=l[a]:delete l[s];for(o=c;o>c-r+n;o--)delete l[o-1]}else if(n>r)for(o=c-r;o>u;o--)a=o+r-1,s=o+n-1,a in l?l[s]=l[a]:delete l[s];for(o=0;o<n;o++)l[o+u]=arguments[o+2];return l.length=c-r+n,i}});var qr=function(t,e,n){var r,i;return dr&&"function"==typeof(r=e.constructor)&&r!==n&&T(i=r.prototype)&&i!==n.prototype&&dr(t,i),t},Ur="\t\n\v\f\r \u2028\u2029\ufeff",zr="["+Ur+"]",Hr=RegExp("^"+zr+zr+"*"),$r=RegExp(zr+zr+"*$"),Vr=function(t){return function(e){var n=String(P(e));return 1&t&&(n=n.replace(Hr,"")),2&t&&(n=n.replace($r,"")),n}},Wr={start:Vr(1),end:Vr(2),trim:Vr(3)},Gr=qt.f,Yr=z.f,Jr=W.f,Xr=Wr.trim,Kr=v.Number,Qr=Kr.prototype,Zr="Number"==C(de(Qr)),ti=function(t){var e,n,r,i,o,a,s,l,c=E(t,!1);if("string"==typeof c&&c.length>2)if(c=Xr(c),43===(e=c.charCodeAt(0))||45===e){if(88===(n=c.charCodeAt(2))||120===n)return NaN}else if(48===e){switch(c.charCodeAt(1)){case 66:case 98:r=2,i=49;break;case 79:case 111:r=8,i=55;break;default:return+c}for(o=c.slice(2),a=o.length,s=0;s<a;s++)if((l=o.charCodeAt(s))<48||l>i)return NaN;return parseInt(o,r)}return+c};if(Kt("Number",!Kr(" 0o1")||!Kr("0b1")||Kr("+0x1"))){for(var ei,ni=function(t){var e=arguments.length<1?0:t,n=this;return n instanceof ni&&(Zr?y(function(){Qr.valueOf.call(n)}):"Number"!=C(n))?qr(new Kr(ti(e)),n,ni):ti(e)},ri=b?Gr(Kr):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),ii=0;ri.length>ii;ii++)F(Kr,ei=ri[ii])&&!F(ni,ei)&&Jr(ni,ei,Yr(Kr,ei));ni.prototype=Qr,Qr.constructor=ni,xt(v,"Number",ni)}var oi=Object.assign,ai=Object.defineProperty,si=!oi||y(function(){if(b&&1!==oi({b:1},oi(ai({},"a",{enumerable:!0,get:function(){ai(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},e={},n=Symbol(),r="abcdefghijklmnopqrst";return t[n]=7,r.split("").forEach(function(t){e[t]=t}),7!=oi({},t)[n]||ie(oi({},e)).join("")!=r})?function(t,e){for(var n=re(t),r=arguments.length,i=1,o=zt.f,a=N.f;r>i;)for(var s,l=_(arguments[i++]),c=o?ie(l).concat(o(l)):ie(l),u=c.length,f=0;u>f;)s=c[f++],b&&!a.call(l,s)||(n[s]=l[s]);return n}:oi;Zt({target:"Object",stat:!0,forced:Object.assign!==si},{assign:si});var li=N.f,ci=function(t){return function(e){for(var n,r=I(e),i=ie(r),o=i.length,a=0,s=[];o>a;)n=i[a++],b&&!li.call(r,n)||s.push(t?[n,r[n]]:r[n]);return s}},ui={entries:ci(!0),values:ci(!1)},fi=ui.entries;Zt({target:"Object",stat:!0},{entries:function(t){return fi(t)}});var hi=Ae("toStringTag"),di={};di[hi]="z";var pi="[object z]"===String(di),gi=Ae("toStringTag"),mi="Arguments"==C(function(){return arguments}()),vi=function(t,e){try{return t[e]}catch(t){}},yi=pi?C:function(t){var e,n,r;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=vi(e=Object(t),gi))?n:mi?C(e):"Object"==(r=C(e))&&"function"==typeof e.callee?"Arguments":r},bi=pi?{}.toString:function(){return"[object "+yi(this)+"]"};pi||xt(Object.prototype,"toString",bi,{unsafe:!0});var wi=Wr.trim,xi=v.parseFloat,Si=1/xi(Ur+"-0")!=-1/0,Ai=Si?function(t){var e=wi(String(t)),n=xi(e);return 0===n&&"-"==e.charAt(0)?-0:n}:xi;Zt({global:!0,forced:parseFloat!=Ai},{parseFloat:Ai});var Ni=Wr.trim,Li=v.parseInt,ki=/^[+-]?0[Xx]/,Ci=8!==Li(Ur+"08")||22!==Li(Ur+"0x16"),Oi=Ci?function(t,e){var n=Ni(String(t));return Li(n,e>>>0||(ki.test(n)?16:10))}:Li;Zt({global:!0,forced:parseInt!=Oi},{parseInt:Oi});var _i=Ae("match"),Pi=function(t){var e;return T(t)&&(void 0!==(e=t[_i])?!!e:"RegExp"==C(t))},Ii=function(){var t=H(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e},Ti=y(function(){var t=n("a","y");return t.lastIndex=2,null!=t.exec("abcd")}),Ei=y(function(){var t=n("^r","gy");return t.lastIndex=2,null!=t.exec("str")}),ji={UNSUPPORTED_Y:Ti,BROKEN_CARET:Ei},Fi=Ae("species"),Ri=W.f,Bi=qt.f,Mi=wt.set,Di=Ae("match"),qi=v.RegExp,Ui=qi.prototype,zi=/a/g,Hi=/a/g,$i=new qi(zi)!==zi,Vi=ji.UNSUPPORTED_Y;if(b&&Kt("RegExp",!$i||Vi||y(function(){return Hi[Di]=!1,qi(zi)!=zi||qi(Hi)==Hi||"/a/i"!=qi(zi,"i")}))){for(var Wi=function(t,e){var n,r=this instanceof Wi,i=Pi(t),o=void 0===e;if(!r&&i&&t.constructor===Wi&&o)return t;$i?i&&!o&&(t=t.source):t instanceof Wi&&(o&&(e=Ii.call(t)),t=t.source),Vi&&(n=!!e&&e.indexOf("y")>-1)&&(e=e.replace(/y/g,""));var a=qr($i?new qi(t,e):qi(t,e),r?this:Ui,Wi);return Vi&&n&&Mi(a,{sticky:n}),a},Gi=Bi(qi),Yi=0;Gi.length>Yi;)!function(t){t in Wi||Ri(Wi,t,{configurable:!0,get:function(){return qi[t]},set:function(e){qi[t]=e}})}(Gi[Yi++]);Ui.constructor=Wi,Wi.prototype=Ui,xt(v,"RegExp",Wi)}!function(t){var e=Nt(t),n=W.f;b&&e&&!e[Fi]&&n(e,Fi,{configurable:!0,get:function(){return this}})}("RegExp");var Ji=RegExp.prototype.exec,Xi=String.prototype.replace,Ki=Ji,Qi=function(){var t=/a/,e=/b*/g;return Ji.call(t,"a"),Ji.call(e,"a"),0!==t.lastIndex||0!==e.lastIndex}(),Zi=ji.UNSUPPORTED_Y||ji.BROKEN_CARET,to=void 0!==/()??/.exec("")[1];(Qi||to||Zi)&&(Ki=function(t){var e,n,r,i,o=this,a=Zi&&o.sticky,s=Ii.call(o),l=o.source,c=0,u=t;return a&&(s=s.replace("y",""),-1===s.indexOf("g")&&(s+="g"),u=String(t).slice(o.lastIndex),o.lastIndex>0&&(!o.multiline||o.multiline&&"\n"!==t[o.lastIndex-1])&&(l="(?: "+l+")",u=" "+u,c++),n=new RegExp("^(?:"+l+")",s)),to&&(n=new RegExp("^"+l+"$(?!\\s)",s)),Qi&&(e=o.lastIndex),r=Ji.call(a?n:o,u),a?r?(r.input=r.input.slice(c),r[0]=r[0].slice(c),r.index=o.lastIndex,o.lastIndex+=r[0].length):o.lastIndex=0:Qi&&r&&(o.lastIndex=o.global?r.index+r[0].length:e),to&&r&&r.length>1&&Xi.call(r[0],n,function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(r[i]=void 0)}),r});var eo=Ki;Zt({target:"RegExp",proto:!0,forced:/./.exec!==eo},{exec:eo});var no=RegExp.prototype,ro=no.toString,io=y(function(){return"/a/b"!=ro.call({source:"a",flags:"b"})}),oo="toString"!=ro.name;(io||oo)&&xt(RegExp.prototype,"toString",function(){var t=H(this),e=String(t.source),n=t.flags;return"/"+e+"/"+String(void 0===n&&t instanceof RegExp&&!("flags"in no)?Ii.call(t):n)},{unsafe:!0});var ao=function(t){if(Pi(t))throw TypeError("The method doesn't accept regular expressions");return t},so=Ae("match"),lo=function(t){var e=/./;try{"/./"[t](e)}catch(n){try{return e[so]=!1,"/./"[t](e)}catch(t){}}return!1};Zt({target:"String",proto:!0,forced:!lo("includes")},{includes:function(t){return!!~String(P(this)).indexOf(ao(t),arguments.length>1?arguments[1]:void 0)}});var co=function(t){return function(e,n){var r,i,o=String(P(e)),a=Ct(n),s=o.length;return a<0||a>=s?t?"":void 0:(r=o.charCodeAt(a),r<55296||r>56319||a+1===s||(i=o.charCodeAt(a+1))<56320||i>57343?t?o.charAt(a):r:t?o.slice(a,a+2):i-56320+(r-55296<<10)+65536)}},uo={codeAt:co(!1),charAt:co(!0)},fo=uo.charAt,ho=wt.set,po=wt.getterFor("String Iterator");yr(String,"String",function(t){ho(this,{type:"String Iterator",string:String(t),index:0})},function(){var t,e=po(this),n=e.string,r=e.index;return r>=n.length?{value:void 0,done:!0}:(t=fo(n,r),e.index+=t.length,{value:t,done:!1})});var go=Ae("species"),mo=!y(function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")}),vo=function(){return"$0"==="a".replace(/./,"$0")}(),yo=!y(function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var n="ab".split(t);return 2!==n.length||"a"!==n[0]||"b"!==n[1]}),bo=function(t,e,n,r){var i=Ae(t),o=!y(function(){var e={};return e[i]=function(){return 7},7!=""[t](e)}),a=o&&!y(function(){var e=!1,n=/a/;return"split"===t&&(n={},n.constructor={},n.constructor[go]=function(){return n},n.flags="",n[i]=/./[i]),n.exec=function(){return e=!0,null},n[i](""),!e});if(!o||!a||"replace"===t&&(!mo||!vo)||"split"===t&&!yo){var s=/./[i],l=n(i,""[t],function(t,e,n,r,i){return e.exec===eo?o&&!i?{done:!0,value:s.call(e,n,r)}:{done:!0,value:t.call(n,e,r)}:{done:!1}},{REPLACE_KEEPS_$0:vo}),c=l[0],u=l[1];xt(String.prototype,t,c),xt(RegExp.prototype,i,2==e?function(t,e){return u.call(t,this,e)}:function(t){return u.call(t,this)})}r&&G(RegExp.prototype[i],"sham",!0)},wo=uo.charAt,xo=function(t,e,n){return e+(n?wo(t,e).length:1)},So=function(t,e){var n=t.exec;if("function"==typeof n){var r=n.call(t,e);if("object"!=typeof r)throw TypeError("RegExp exec method returned something other than an Object or null");return r}if("RegExp"!==C(t))throw TypeError("RegExp#exec called on incompatible receiver");return eo.call(t,e)},Ao=Math.max,No=Math.min,Lo=Math.floor,ko=/\$([$&'`]|\d\d?|<[^>]*>)/g,Co=/\$([$&'`]|\d\d?)/g,Oo=function(t){return void 0===t?t:String(t)};bo("replace",2,function(t,e,n,r){function i(t,n,r,i,o,a){var s=r+t.length,l=i.length,c=Co;return void 0!==o&&(o=re(o),c=ko),e.call(a,c,function(e,a){var c;switch(a.charAt(0)){case"$":return"$";case"&":return t;case"`":return n.slice(0,r);case"'":return n.slice(s);case"<":c=o[a.slice(1,-1)];break;default:var u=+a;if(0===u)return e;if(u>l){var f=Lo(u/10);return 0===f?e:f<=l?void 0===i[f-1]?a.charAt(1):i[f-1]+a.charAt(1):e}c=i[u-1]}return void 0===c?"":c})}return[function(n,r){var i=P(this),o=void 0==n?void 0:n[t];return void 0!==o?o.call(n,i,r):e.call(String(i),n,r)},function(t,o){if(r.REPLACE_KEEPS_$0||"string"==typeof o&&-1===o.indexOf("$0")){var a=n(e,t,this,o);if(a.done)return a.value}var s=H(t),l=String(this),c="function"==typeof o;c||(o=String(o));var u=s.global;if(u){var f=s.unicode;s.lastIndex=0}for(var h=[];;){var d=So(s,l);if(null===d)break;if(h.push(d),!u)break;""===String(d[0])&&(s.lastIndex=xo(l,_t(s.lastIndex),f))}for(var p="",g=0,m=0;m<h.length;m++){d=h[m];for(var v=String(d[0]),y=Ao(No(Ct(d.index),l.length),0),b=[],w=1;w<d.length;w++)b.push(Oo(d[w]));var x=d.groups;if(c){var S=[v].concat(b,y,l);void 0!==x&&S.push(x);var A=String(o.apply(void 0,S))}else A=i(v,l,y,b,x,o);y>=g&&(p+=l.slice(g,y)+A,g=y+v.length)}return p+l.slice(g)}]});var _o=Object.is||function(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e};bo("search",1,function(t,e,n){return[function(e){var n=P(this),r=void 0==e?void 0:e[t];return void 0!==r?r.call(e,n):new RegExp(e)[t](String(n))},function(t){var r=n(e,t,this);if(r.done)return r.value;var i=H(t),o=String(this),a=i.lastIndex;_o(a,0)||(i.lastIndex=0);var s=So(i,o);return _o(i.lastIndex,a)||(i.lastIndex=a),null===s?-1:s.index}]});var Po=Ae("species"),Io=function(t,e){var n,r=H(t).constructor;return void 0===r||void 0==(n=H(r)[Po])?e:Ie(n)},To=[].push,Eo=Math.min,jo=!y(function(){return!RegExp(4294967295,"y")});bo("split",2,function(t,e,n){var r;return r="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(t,n){var r=String(P(this)),i=void 0===n?4294967295:n>>>0;if(0===i)return[];if(void 0===t)return[r];if(!Pi(t))return e.call(r,t,i);for(var o,a,s,l=[],c=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),u=0,f=new RegExp(t.source,c+"g");(o=eo.call(f,r))&&!((a=f.lastIndex)>u&&(l.push(r.slice(u,o.index)),o.length>1&&o.index<r.length&&To.apply(l,o.slice(1)),s=o[0].length,u=a,l.length>=i));)f.lastIndex===o.index&&f.lastIndex++;return u===r.length?!s&&f.test("")||l.push(""):l.push(r.slice(u)),l.length>i?l.slice(0,i):l}:"0".split(void 0,0).length?function(t,n){return void 0===t&&0===n?[]:e.call(this,t,n)}:e,[function(e,n){var i=P(this),o=void 0==e?void 0:e[t]+;return void 0!==o?o.call(e,i,n):r.call(String(i),e,n)},function(t,i){var o=n(r,t,this,i,r!==e);if(o.done)return o.value;var a=H(t),s=String(this),l=Io(a,RegExp),c=a.unicode,u=(a.ignoreCase?"i":"")+(a.multiline?"m":"")+(a.unicode?"u":"")+(jo?"y":"g"),f=new l(jo?a:"^(?:"+a.source+")",u),h=void 0===i?4294967295:i>>>0;if(0===h)return[];if(0===s.length)return null===So(f,s)?[s]:[];for(var d=0,p=0,g=[];p<s.length;){f.lastIndex=jo?p:0;var m,v=So(f,jo?s:s.slice(p));if(null===v||(m=Eo(_t(f.lastIndex+(jo?0:p)),s.length))===d)p=xo(s,p,c);else{if(g.push(s.slice(d,p)),g.length===h)return g;for(var y=1;y<=v.length-1;y++)if(g.push(v[y]),g.length===h)return g;p=d=m}}return g.push(s.slice(d)),g}]},!jo);var Fo=" ",Ro=Wr.trim;Zt({target:"String",proto:!0,forced:function(t){return y(function(){return!!Ur[t]()||Fo[t]()!=Fo||Ur[t].name!==t})}("trim")},{trim:function(){return Ro(this)}});var Bo={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},Mo=Be.forEach,Do=Yn("forEach")?function(t){return Mo(this,t,arguments.length>1?arguments[1]:void 0)}:[].forEach;for(var qo in Bo){var Uo=v[qo],zo=Uo&&Uo.prototype;if(zo&&zo.forEach!==Do)try{G(zo,"forEach",Do)}catch(t){zo.forEach=Do}}var Ho=Ae("iterator"),$o=Ae("toStringTag"),Vo=xr.values;for(var Wo in Bo){var Go=v[Wo],Yo=Go&&Go.prototype;if(Yo){if(Yo[Ho]!==Vo)try{G(Yo,Ho,Vo)}catch(t){Yo[Ho]=Vo}if(Yo[$o]||G(Yo,$o,Wo),Bo[Wo])for(var Jo in xr)if(Yo[Jo]!==xr[Jo])try{G(Yo,Jo,xr[Jo])}catch(t){Yo[Jo]=xr[Jo]}}}var Xo=4;try{var Ko=t.fn.dropdown.Constructor.VERSION;void 0!==Ko&&(Xo=parseInt(Ko,10))}catch(t){}try{var Qo=bootstrap.Tooltip.VERSION;void 0!==Qo&&(Xo=parseInt(Qo,10))}catch(t){}var Zo={3:{iconsPrefix:"glyphicon",icons:{paginationSwitchDown:"glyphicon-collapse-down icon-chevron-down",paginationSwitchUp:"glyphicon-collapse-up icon-chevron-up",refresh:"glyphicon-refresh icon-refresh",toggleOff:"glyphicon-list-alt icon-list-alt",toggleOn:"glyphicon-list-alt icon-list-alt",columns:"glyphicon-th icon-th",detailOpen:"glyphicon-plus icon-plus",detailClose:"glyphicon-minus icon-minus",fullscreen:"glyphicon-fullscreen",search:"glyphicon-search",clearSearch:"glyphicon-trash"},classes:{buttonsPrefix:"btn",buttons:"default",buttonsGroup:"btn-group",buttonsDropdown:"btn-group",pull:"pull",inputGroup:"input-group",inputPrefix:"input-",input:"form-control",paginationDropdown:"btn-group dropdown",dropup:"dropup",dropdownActive:"active",paginationActive:"active",buttonActive:"active"},html:{toolbarDropdown:['<ul class="dropdown-menu" role="menu">',"</ul>"],toolbarDropdownItem:'<li class="dropdown-item-marker" role="menuitem"><label>%s</label></li>',toolbarDropdownSeparator:'<li class="divider"></li>',pageDropdown:['<ul class="dropdown-menu" role="menu">',"</ul>"],pageDropdownItem:'<li role="menuitem" class="%s"><a href="#">%s</a></li>',dropdownCaret:'<span class="caret"></span>',pagination:['<ul class="pagination%s">',"</ul>"],paginationItem:'<li class="page-item%s"><a class="page-link" aria-label="%s" href="javascript:void(0)">%s</a></li>',icon:'<i class="%s %s"></i>',inputGroup:'<div class="input-group">%s<span class="input-group-btn">%s</span></div>',searchInput:'<input class="%s%s" type="text" placeholder="%s">',searchButton:'<button class="%s" type="button" name="search" title="%s">%s %s</button>',searchClearButton:'<button class="%s" type="button" name="clearSearch" title="%s">%s %s</button>'}},4:{iconsPrefix:"fa",icons:{paginationSwitchDown:"fa-caret-square-down",paginationSwitchUp:"fa-caret-square-up",refresh:"fa-sync",toggleOff:"fa-toggle-off",toggleOn:"fa-toggle-on",columns:"fa-th-list",detailOpen:"fa-plus",detailClose:"fa-minus",fullscreen:"fa-arrows-alt",search:"fa-search",clearSearch:"fa-trash"},classes:{buttonsPrefix:"btn",buttons:"secondary",buttonsGroup:"btn-group",buttonsDropdown:"btn-group",pull:"float",inputGroup:"btn-group",inputPrefix:"form-control-",input:"form-control",paginationDropdown:"btn-group dropdown",dropup:"dropup",dropdownActive:"active",paginationActive:"active",buttonActive:"active"},html:{toolbarDropdown:['<div class="dropdown-menu dropdown-menu-right">',"</div>"],toolbarDropdownItem:'<label class="dropdown-item dropdown-item-marker">%s</label>',pageDropdown:['<div class="dropdown-menu">',"</div>"],pageDropdownItem:'<a class="dropdown-item %s" href="#">%s</a>',toolbarDropdownSeparator:'<div class="dropdown-divider"></div>',dropdownCaret:'<span class="caret"></span>',pagination:['<ul class="pagination%s">',"</ul>"],paginationItem:'<li class="page-item%s"><a class="page-link" aria-label="%s" href="javascript:void(0)">%s</a></li>',icon:'<i class="%s %s"></i>',inputGroup:'<div class="input-group">%s<div class="input-group-append">%s</div></div>',searchInput:'<input class="%s%s" type="text" placeholder="%s">',searchButton:'<button class="%s" type="button" name="search" title="%s">%s %s</button>',searchClearButton:'<button class="%s" type="button" name="clearSearch" title="%s">%s %s</button>'}},5:{iconsPrefix:"fa",icons:{paginationSwitchDown:"fa-caret-square-down",paginationSwitchUp:"fa-caret-square-up",refresh:"fa-sync",toggleOff:"fa-toggle-off",toggleOn:"fa-toggle-on",columns:"fa-th-list",detailOpen:"fa-plus",detailClose:"fa-minus",fullscreen:"fa-arrows-alt",search:"fa-search",clearSearch:"fa-trash"},classes:{buttonsPrefix:"btn",buttons:"secondary",buttonsGroup:"btn-group",buttonsDropdown:"btn-group",pull:"float",inputGroup:"btn-group",inputPrefix:"form-control-",input:"form-control",paginationDropdown:"btn-group dropdown",dropup:"dropup",dropdownActive:"active",paginationActive:"active",buttonActive:"active"},html:{toolbarDropdown:['<div class="dropdown-menu dropdown-menu-right">',"</div>"],toolbarDropdownItem:'<label class="dropdown-item dropdown-item-marker">%s</label>',pageDropdown:['<div class="dropdown-menu">',"</div>"],pageDropdownItem:'<a class="dropdown-item %s" href="#">%s</a>',toolbarDropdownSeparator:'<div class="dropdown-divider"></div>',dropdownCaret:'<span class="caret"></span>',pagination:['<ul class="pagination%s">',"</ul>"],paginationItem:'<li class="page-item%s"><a class="page-link" aria-label="%s" href="javascript:void(0)">%s</a></li>',icon:'<i class="%s %s"></i>',inputGroup:'<div class="input-group">%s<div class="input-group-append">%s</div></div>',searchInput:'<input class="%s%s" type="text" placeholder="%s">',searchButton:'<button class="%s" type="button" name="search" title="%s">%s %s</button>',searchClearButton:'<button class="%s" type="button" name="clearSearch" title="%s">%s %s</button>'}}}[Xo],ta={height:void 0,classes:"table table-bordered table-hover",buttons:{},theadClasses:"",headerStyle:function(t){return{}},rowStyle:function(t,e){return{}},rowAttributes:function(t,e){return{}},undefinedText:"-",locale:void 0,virtualScroll:!1,virtualScrollItemHeight:void 0,sortable:!0,sortClass:void 0,silentSort:!0,sortName:void 0,sortOrder:void 0,sortReset:!1,sortStable:!1,rememberOrder:!1,serverSort:!0,customSort:void 0,columns:[[]],data:[],url:void 0,method:"get",cache:!0,contentType:"application/json",dataType:"json",ajax:void 0,ajaxOptions:{},queryParams:function(t){return t},queryParamsType:"limit",responseHandler:function(t){return t},totalField:"total",totalNotFilteredField:"totalNotFiltered",dataField:"rows",footerField:"footer",pagination:!1,paginationParts:["pageInfo","pageSize","pageList"],showExtendedPagination:!1,paginationLoop:!0,sidePagination:"client",totalRows:0,totalNotFiltered:0,pageNumber:1,pageSize:10,pageList:[10,25,50,100],paginationHAlign:"right",paginationVAlign:"bottom",paginationDetailHAlign:"left",paginationPreText:"‹",paginationNextText:"›",paginationSuccessivelySize:5,paginationPagesBySide:1,paginationUseIntermediate:!1,search:!1,searchHighlight:!1,searchOnEnterKey:!1,strictSearch:!1,searchSelector:!1,visibleSearch:!1,showButtonIcons:!0,showButtonText:!1,showSearchButton:!1,showSearchClearButton:!1,trimOnSearch:!0,searchAlign:"right",searchTimeOut:500,searchText:"",customSearch:void 0,showHeader:!0,showFooter:!1,footerStyle:function(t){return{}},searchAccentNeutralise:!1,showColumns:!1,showColumnsToggleAll:!1,showColumnsSearch:!1,minimumCountColumns:1,showPaginationSwitch:!1,showRefresh:!1,showToggle:!1,showFullscreen:!1,smartDisplay:!0,escape:!1,filterOptions:{filterAlgorithm:"and"},idField:void 0,selectItemName:"btSelectItem",clickToSelect:!1,ignoreClickToSelectOn:function(t){return["A","BUTTON"].includes(t.tagName)},singleSelect:!1,checkboxHeader:!0,maintainMetaData:!1,multipleSelectRow:!1,uniqueId:void 0,cardView:!1,detailView:!1,detailViewIcon:!0,detailViewByClick:!1,detailViewAlign:"left",detailFormatter:function(t,e){return""},detailFilter:function(t,e){return!0},toolbar:void 0,toolbarAlign:"left",buttonsToolbar:void 0,buttonsAlign:"right",buttonsOrder:["paginationSwitch","refresh","toggle","fullscreen","columns"],buttonsPrefix:Zo.classes.buttonsPrefix,buttonsClass:Zo.classes.buttons,icons:Zo.icons,iconSize:void 0,iconsPrefix:Zo.iconsPrefix,loadingFontSize:"auto",loadingTemplate:function(t){return'<span class="loading-wrap">\n <span class="loading-text">'.concat(t,'</span>\n <span class="animation-wrap"><span class="animation-dot"></span></span>\n </span>\n ')},onAll:function(t,e){return!1},onClickCell:function(t,e,n,r){return!1},onDblClickCell:function(t,e,n,r){return!1},onClickRow:function(t,e){return!1},onDblClickRow:function(t,e){return!1},onSort:function(t,e){return!1},onCheck:function(t){return!1},onUncheck:function(t){return!1},onCheckAll:function(t){return!1},onUncheckAll:function(t){return!1},onCheckSome:function(t){return!1},onUncheckSome:function(t){return!1},onLoadSuccess:function(t){return!1},onLoadError:function(t){return!1},onColumnSwitch:function(t,e){return!1},onPageChange:function(t,e){return!1},onSearch:function(t){return!1},onToggle:function(t){return!1},onPreBody:function(t){return!1},onPostBody:function(){return!1},onPostHeader:function(){return!1},onPostFooter:function(){return!1},onExpandRow:function(t,e,n){return!1},onCollapseRow:function(t,e){return!1},onRefreshOptions:function(t){return!1},onRefresh:function(t){return!1},onResetView:function(){return!1},onScrollBody:function(){return!1}},ea={formatLoadingMessage:function(){return"Loading, please wait"},formatRecordsPerPage:function(t){return"".concat(t," rows per page")},formatShowingRows:function(t,e,n,r){return void 0!==r&&r>0&&r>n?"Showing ".concat(t," to ").concat(e," of ").concat(n," rows (filtered from ").concat(r," total rows)"):"Showing ".concat(t," to ").concat(e," of ").concat(n," rows")},formatSRPaginationPreText:function(){return"previous page"},formatSRPaginationPageText:function(t){return"to page ".concat(t)},formatSRPaginationNextText:function(){return"next page"},formatDetailPagination:function(t){return"Showing ".concat(t," rows")},formatSearch:function(){return"Search"},formatClearSearch:function(){return"Clear Search"},formatNoMatches:function(){return"No matching records found"},formatPaginationSwitch:function(){return"Hide/Show pagination"},formatPaginationSwitchDown:function(){return"Show pagination"},formatPaginationSwitchUp:function(){return"Hide pagination"},formatRefresh:function(){return"Refresh"},formatToggle:function(){return"Toggle"},formatToggleOn:function(){return"Show card view"},formatToggleOff:function(){return"Hide card view"},formatColumns:function(){return"Columns"},formatColumnsToggleAll:function(){return"Toggle all"},formatFullscreen:function(){return"Fullscreen"},formatAllRows:function(){return"All"}},na={field:void 0,title:void 0,titleTooltip:void 0,class:void 0,width:void 0,widthUnit:"px",rowspan:void 0,colspan:void 0,align:void 0,halign:void 0,falign:void 0,valign:void 0,cellStyle:void 0,radio:!1,checkbox:!1,checkboxEnabled:!0,clickToSelect:!0,showSelectTitle:!1,sortable:!1,sortName:void 0,order:"asc",sorter:void 0,visible:!0,switchable:!0,cardVisible:!0,searchable:!0,formatter:void 0,footerFormatter:void 0,detailFormatter:void 0,searchFormatter:!0,searchHighlightFormatter:!1,escape:!1,events:void 0},ra=["getOptions","refreshOptions","getData","getSelections","load","append","prepend","remove","removeAll","insertRow","updateRow","getRowByUniqueId","updateByUniqueId","removeByUniqueId","updateCell","updateCellByUniqueId","showRow","hideRow","getHiddenRows","showColumn","hideColumn","getVisibleColumns","getHiddenColumns","showAllColumns","hideAllColumns","mergeCells","checkAll","uncheckAll","checkInvert","check","uncheck","checkBy","uncheckBy","refresh","destroy","resetView","showLoading","hideLoading","togglePagination","toggleFullscreen","toggleView","resetSearch","filterBy","scrollTo","getScrollPosition","selectPage","prevPage","nextPage","toggleDetailView","expandRow","collapseRow","expandRowByUniqueId","collapseRowByUniqueId","expandAllRows","collapseAllRows","updateColumnTitle","updateFormatText"],ia={"all.bs.table":"onAll","click-row.bs.table":"onClickRow","dbl-click-row.bs.table":"onDblClickRow","click-cell.bs.table":"onClickCell","dbl-click-cell.bs.table":"onDblClickCell","sort.bs.table":"onSort","check.bs.table":"onCheck","uncheck.bs.table":"onUncheck","check-all.bs.table":"onCheckAll","uncheck-all.bs.table":"onUncheckAll","check-some.bs.table":"onCheckSome","uncheck-some.bs.table":"onUncheckSome","load-success.bs.table":"onLoadSuccess","load-error.bs.table":"onLoadError","column-switch.bs.table":"onColumnSwitch","page-change.bs.table":"onPageChange","search.bs.table":"onSearch","toggle.bs.table":"onToggle","pre-body.bs.table":"onPreBody","post-body.bs.table":"onPostBody","post-header.bs.table":"onPostHeader","post-footer.bs.table":"onPostFooter","expand-row.bs.table":"onExpandRow","collapse-row.bs.table":"onCollapseRow","refresh-options.bs.table":"onRefreshOptions","reset-view.bs.table":"onResetView","refresh.bs.table":"onRefresh","scroll-body.bs.table":"onScrollBody"};Object.assign(ta,ea);var oa={VERSION:"1.18.0",THEME:"bootstrap".concat(Xo),CONSTANTS:Zo,DEFAULTS:ta,COLUMN_DEFAULTS:na,METHODS:ra,EVENTS:ia,LOCALES:{en:ea,"en-US":ea}},aa=y(function(){ie(1)});Zt({target:"Object",stat:!0,forced:aa},{keys:function(t){return ie(re(t))}});var sa=z.f,la="".endsWith,ca=Math.min,ua=lo("endsWith"),fa=!ua&&!!function(){var t=sa(String.prototype,"endsWith");return t&&!t.writable}();Zt({target:"String",proto:!0,forced:!fa&&!ua},{endsWith:function(t){var e=String(P(this));ao(t);var n=arguments.length>1?arguments[1]:void 0,r=_t(e.length),i=void 0===n?r:ca(_t(n),r),o=String(t);return la?la.call(e,o,i):e.slice(i-o.length,i)===o}});var ha=z.f,da="".startsWith,pa=Math.min,ga=lo("startsWith"),ma=!ga&&!!function(){var t=ha(String.prototype,"startsWith");return t&&!t.writable}();Zt({target:"String",proto:!0,forced:!ma&&!ga},{startsWith:function(t){var e=String(P(this));ao(t);var n=_t(pa(arguments.length>1?arguments[1]:void 0,e.length)),r=String(t);return da?da.call(e,r,n):e.slice(n,n+r.length)===r}});var va={getSearchInput:function(e){return"string"==typeof e.options.searchSelector?t(e.options.searchSelector):e.$toolbar.find(".search input")},sprintf:function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];var i=!0,o=0,a=t.replace(/%s/g,function(){var t=n[o++];return void 0===t?(i=!1,""):t});return i?a:""},isObject:function(t){return t instanceof Object&&!Array.isArray(t)},isEmptyObject:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return 0===Object.entries(t).length&&t.constructor===Object},isNumeric:function(t){return!isNaN(parseFloat(t))&&isFinite(t)},getFieldTitle:function(t,e){var n=!0,r=!1,i=void 0;try{for(var o,a=t[Symbol.iterator]();!(n=(o=a.next()).done);n=!0){var s=o.value;if(s.field===e)return s.title}}catch(t){r=!0,i=t}finally{try{n||null==a.return||a.return()}finally{if(r)throw i}}return""},setFieldIndex:function(t){var e=0,n=[],r=!0,i=!1,o=void 0;try{for(var a,s=t[0][Symbol.iterator]();!(r=(a=s.next()).done);r=!0){e+=a.value.colspan||1}}catch(t){i=!0,o=t}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}for(var l=0;l<t.length;l++){n[l]=[];for(var c=0;c<e;c++)n[l][c]=!1}for(var u=0;u<t.length;u++){var f=!0,h=!1,d=void 0;try{for(var p,g=t[u][Symbol.iterator]();!(f=(p=g.next()).done);f=!0){var m=p.value,v=m.rowspan||1,y=m.colspan||1,b=n[u].indexOf(!1);m.colspanIndex=b,1===y?(m.fieldIndex=b,void 0===m.field&&(m.field=b)):m.colspanGroup=m.colspan;for(var w=0;w<v;w++)for(var x=0;x<y;x++)n[u+w][b+x]=!0}}catch(t){h=!0,d=t}finally{try{f||null==g.return||g.return()}finally{if(h)throw d}}}},normalizeAccent:function(t){return"string"!=typeof t?t:t.normalize("NFD").replace(/[\u0300-\u036f]/g,"")},updateFieldGroup:function(t){var e,n=(e=[]).concat.apply(e,l(t)),r=!0,i=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(r=(a=s.next()).done);r=!0){var c=a.value,u=!0,f=!1,h=void 0;try{for(var d,p=c[Symbol.iterator]();!(u=(d=p.next()).done);u=!0){var g=d.value;if(g.colspanGroup>1){for(var m=0,v=g.colspanIndex;v<g.colspanIndex+g.colspanGroup;v++)!function(t){n.find(function(e){return e.fieldIndex===t}).visible&&m++}(v);g.colspan=m,g.visible=m>0}}}catch(t){f=!0,h=t}finally{try{u||null==p.return||p.return()}finally{if(f)throw h}}}}catch(t){i=!0,o=t}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}},getScrollBarWidth:function(){if(void 0===this.cachedWidth){var e=t("<div/>").addClass("fixed-table-scroll-inner"),n=t("<div/>").addClass("fixed-table-scroll-outer");n.append(e),t("body").append(n);var r=e[0].offsetWidth;n.css("overflow","scroll");var i=e[0].offsetWidth;r===i&&(i=n[0].clientWidth),n.remove(),this.cachedWidth=r-i}return this.cachedWidth},calculateObjectValue:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],i=arguments.length>3?arguments[3]:void 0,o=e;if("string"==typeof e){var a=e.split(".");if(a.length>1){o=window;var s=!0,c=!1,u=void 0;try{for(var f,h=a[Symbol.iterator]();!(s=(f=h.next()).done);s=!0){o=o[f.value]}}catch(t){c=!0,u=t}finally{try{s||null==h.return||h.return()}finally{if(c)throw u}}}else o=window[e]}return null!==o&&"object"===r(o)?o:"function"==typeof o?o.apply(t,n||[]):!o&&"string"==typeof e&&this.sprintf.apply(this,[e].concat(l(n)))?this.sprintf.apply(this,[e].concat(l(n))):i},compareObjects:function(t,e,n){var r=Object.keys(t),i=Object.keys(e);if(n&&r.length!==i.length)return!1;for(var o=0,a=r;o<a.length;o++){var s=a[o];if(i.includes(s)&&t[s]!==e[s])return!1}return!0},escapeHTML:function(t){return"string"==typeof t?t.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'").replace(/`/g,"`"):t},unescapeHTML:function(t){return"string"==typeof t?t.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,'"').replace(/'/g,"'").replace(/`/g,"`"):t},getRealDataAttr:function(t){for(var e=0,n=Object.entries(t);e<n.length;e++){var r=s(n[e],2),i=r[0],o=r[1],a=i.split(/(?=[A-Z])/).join("-").toLowerCase();a!==i&&(t[a]=o,delete t[i])}return t},getItemField:function(t,e,n){var r=t;if("string"!=typeof e||t.hasOwnProperty(e))return n?this.escapeHTML(t[e]):t[e];var i=e.split("."),o=!0,a=!1,s=void 0;try{for(var l,c=i[Symbol.iterator]();!(o=(l=c.next()).done);o=!0){var u=l.value;r=r&&r[u]}}catch(t){a=!0,s=t}finally{try{o||null==c.return||c.return()}finally{if(a)throw s}}return n?this.escapeHTML(r):r},isIEBrowser:function(){return navigator.userAgent.includes("MSIE ")||/Trident.*rv:11\./.test(navigator.userAgent)},findIndex:function(t,e){var n=!0,r=!1,i=void 0;try{for(var o,a=t[Symbol.iterator]();!(n=(o=a.next()).done);n=!0){var s=o.value;if(JSON.stringify(s)===JSON.stringify(e))return t.indexOf(s)}}catch(t){r=!0,i=t}finally{try{n||null==a.return||a.return()}finally{if(r)throw i}}return-1},trToData:function(e,n){var r=this,i=[],o=[];return n.each(function(n,a){var s=t(a),l={};l._id=s.attr("id"),l._class=s.attr("class"),l._data=r.getRealDataAttr(s.data()),l._style=s.attr("style"),s.find(">td,>th").each(function(i,a){for(var s=t(a),c=+s.attr("colspan")||1,u=+s.attr("rowspan")||1,f=i;o[n]&&o[n][f];f++);for(var h=f;h<f+c;h++)for(var d=n;d<n+u;d++)o[d]||(o[d]=[]),o[d][h]=!0;var p=e[f].field;l[p]=s.html().trim(),l["_".concat(p,"_id")]=s.attr("id"),l["_".concat(p,"_class")]=s.attr("class"),l["_".concat(p,"_rowspan")]=s.attr("rowspan"),l["_".concat(p,"_colspan")]=s.attr("colspan"),l["_".concat(p,"_title")]=s.attr("title"),l["_".concat(p,"_data")]=r.getRealDataAttr(s.data()),l["_".concat(p,"_style")]=s.attr("style")}),i.push(l)}),i},sort:function(t,e,n,r,i,o){return void 0!==t&&null!==t||(t=""),void 0!==e&&null!==e||(e=""),r&&t===e&&(t=i,e=o),this.isNumeric(t)&&this.isNumeric(e)?(t=parseFloat(t),e=parseFloat(e),t<e?-1*n:t>e?n:0):t===e?0:("string"!=typeof t&&(t=t.toString()),-1===t.localeCompare(e)?-1*n:n)},getEventName:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return e=e||"".concat(+new Date).concat(~~(1e6*Math.random())),"".concat(t,"-").concat(e)},hasDetailViewIcon:function(t){return t.detailView&&t.detailViewIcon&&!t.cardView},getDetailViewIndexOffset:function(t){return this.hasDetailViewIcon(t)&&"right"!==t.detailViewAlign?1:0},checkAutoMergeCells:function(t){var e=!0,n=!1,r=void 0;try{for(var i,o=t[Symbol.iterator]();!(e=(i=o.next()).done);e=!0)for(var a=i.value,s=0,l=Object.keys(a);s<l.length;s++){var c=l[s];if(c.startsWith("_")&&(c.endsWith("_rowspan")||c.endsWith("_colspan")))return!0}}catch(t){n=!0,r=t}finally{try{e||null==o.return||o.return()}finally{if(n)throw r}}return!1},deepCopy:function(e){return void 0===e?e:t.extend(!0,Array.isArray(e)?[]:{},e)}},ya=function(){function t(e){var n=this;i(this,t),this.rows=e.rows,this.scrollEl=e.scrollEl,this.contentEl=e.contentEl,this.callback=e.callback,this.itemHeight=e.itemHeight,this.cache={},this.scrollTop=this.scrollEl.scrollTop,this.initDOM(this.rows,e.fixedScroll),this.scrollEl.scrollTop=this.scrollTop,this.lastCluster=0;var r=function(){n.lastCluster!==(n.lastCluster=n.getNum())&&(n.initDOM(n.rows),n.callback())};this.scrollEl.addEventListener("scroll",r,!1),this.destroy=function(){n.contentEl.innerHtml="",n.scrollEl.removeEventListener("scroll",r,!1)}}return a(t,[{key:"initDOM",value:function(t,e){void 0===this.clusterHeight&&(this.cache.scrollTop=this.scrollEl.scrollTop,this.cache.data=this.contentEl.innerHTML=t[0]+t[0]+t[0],this.getRowsHeight(t));var n=this.initData(t,this.getNum(e)),r=n.rows.join(""),i=this.checkChanges("data",r),o=this.checkChanges("top",n.topOffset),a=this.checkChanges("bottom",n.bottomOffset),s=[];i&&o?(n.topOffset&&s.push(this.getExtra("top",n.topOffset)),s.push(r),n.bottomOffset&&s.push(this.getExtra("bottom",n.bottomOffset)),this.contentEl.innerHTML=s.join(""),e&&(this.contentEl.scrollTop=this.cache.scrollTop)):a&&(this.contentEl.lastChild.style.height="".concat(n.bottomOffset,"px"))}},{key:"getRowsHeight",value:function(){if(void 0===this.itemHeight){var t=this.contentEl.children,e=t[Math.floor(t.length/2)];this.itemHeight=e.offsetHeight}this.blockHeight=50*this.itemHeight,this.clusterRows=200,this.clusterHeight=4*this.blockHeight}},{key:"getNum",value:function(t){return this.scrollTop=t?this.cache.scrollTop:this.scrollEl.scrollTop,Math.floor(this.scrollTop/(this.clusterHeight-this.blockHeight))||0}},{key:"initData",value:function(t,e){if(t.length<50)return{topOffset:0,bottomOffset:0,rowsAbove:0,rows:t};var n=Math.max((this.clusterRows-50)*e,0),r=n+this.clusterRows,i=Math.max(n*this.itemHeight,0),o=Math.max((t.length-r)*this.itemHeight,0),a=[],s=n;i<1&&s++;for(var l=n;l<r;l++)t[l]&&a.push(t[l]);return{topOffset:i,bottomOffset:o,rowsAbove:s,rows:a}}},{key:"checkChanges",value:function(t,e){var n=e!==this.cache[t];return this.cache[t]=e,n}},{key:"getExtra",value:function(t,e){var n=document.createElement("tr");return n.className="virtual-scroll-".concat(t),e&&(n.style.height="".concat(e,"px")),n.outerHTML}}]),t}(),ba=function(){function e(n,r){i(this,e),this.options=r,this.$el=t(n),this.$el_=this.$el.clone(),this.timeoutId_=0,this.timeoutFooter_=0}return a(e,[{key:"init",value:function(){this.initConstants(),this.initLocale(),this.initContainer(),this.initTable(),this.initHeader(),this.initData(),this.initHiddenRows(),this.initToolbar(),this.initPagination(),this.initBody(),this.initSearchText(),this.initServer()}},{key:"initConstants",value:function(){var e=this.options;this.constants=oa.CONSTANTS,this.constants.theme=t.fn.bootstrapTable.theme;var n=e.buttonsPrefix?"".concat(e.buttonsPrefix,"-"):"";this.constants.buttonsClass=[e.buttonsPrefix,n+e.buttonsClass,va.sprintf("".concat(n,"%s"),e.iconSize)].join(" ").trim(),this.buttons=va.calculateObjectValue(this,e.buttons,[],[])}},{key:"initLocale",value:function(){if(this.options.locale){var e=t.fn.bootstrapTable.locales,n=this.options.locale.split(/-|_/);n[0]=n[0].toLowerCase(),n[1]&&(n[1]=n[1].toUpperCase()),e[this.options.locale]?t.extend(this.options,e[this.options.locale]):e[n.join("-")]?t.extend(this.options,e[n.join("-")]):e[n[0]]&&t.extend(this.options,e[n[0]])}}},{key:"initContainer",value:function(){var e=["top","both"].includes(this.options.paginationVAlign)?'<div class="fixed-table-pagination clearfix"></div>':"",n=["bottom","both"].includes(this.options.paginationVAlign)?'<div class="fixed-table-pagination"></div>':"",r=va.calculateObjectValue(this.options,this.options.loadingTemplate,[this.options.formatLoadingMessage()]);this.$container=t('\n <div class="bootstrap-table '.concat(this.constants.theme,'">\n <div class="fixed-table-toolbar"></div>\n ').concat(e,'\n <div class="fixed-table-container">\n <div class="fixed-table-header"><table></table></div>\n <div class="fixed-table-body">\n <div class="fixed-table-loading">\n ').concat(r,'\n </div>\n </div>\n <div class="fixed-table-footer"><table><thead><tr></tr></thead></table></div>\n </div>\n ').concat(n,"\n </div>\n ")),this.$container.insertAfter(this.$el),this.$tableContainer=this.$container.find(".fixed-table-container"),this.$tableHeader=this.$container.find(".fixed-table-header"),this.$tableBody=this.$container.find(".fixed-table-body"),this.$tableLoading=this.$container.find(".fixed-table-loading"),this.$tableFooter=this.$el.find("tfoot"),this.options.buttonsToolbar?this.$toolbar=t("body").find(this.options.buttonsToolbar):this.$toolbar=this.$container.find(".fixed-table-toolbar"),this.$pagination=this.$container.find(".fixed-table-pagination"),this.$tableBody.append(this.$el),this.$container.after('<div class="clearfix"></div>'),this.$el.addClass(this.options.classes),this.$tableLoading.addClass(this.options.classes),this.options.height&&(this.$tableContainer.addClass("fixed-height"),this.options.showFooter&&this.$tableContainer.addClass("has-footer"),this.options.classes.split(" ").includes("table-bordered")&&(this.$tableBody.append('<div class="fixed-table-border"></div>'),this.$tableBorder=this.$tableBody.find(".fixed-table-border"),this.$tableLoading.addClass("fixed-table-border")),this.$tableFooter=this.$container.find(".fixed-table-footer"))}},{key:"initTable",value:function(){var n=this,r=[];if(this.$header=this.$el.find(">thead"),this.$header.length?this.options.theadClasses&&this.$header.addClass(this.options.theadClasses):this.$header=t('<thead class="'.concat(this.options.theadClasses,'"></thead>')).appendTo(this.$el),this._headerTrClasses=[],this._headerTrStyles=[],this.$header.find("tr").each(function(e,i){var o=t(i),a=[];o.find("th").each(function(e,n){var r=t(n);void 0!==r.data("field")&&r.data("field","".concat(r.data("field"))),a.push(t.extend({},{title:r.html(),class:r.attr("class"),titleTooltip:r.attr("title"),rowspan:r.attr("rowspan")?+r.attr("rowspan"):void 0,colspan:r.attr("colspan")?+r.attr("colspan"):void 0},r.data()))}),r.push(a),o.attr("class")&&n._headerTrClasses.push(o.attr("class")),o.attr("style")&&n._headerTrStyles.push(o.attr("style"))}),Array.isArray(this.options.columns[0])||(this.options.columns=[this.options.columns]),this.options.columns=t.extend(!0,[],r,this.options.columns),this.columns=[],this.fieldsColumnsIndex=[],va.setFieldIndex(this.options.columns),this.options.columns.forEach(function(r,i){r.forEach(function(r,o){var a=t.extend({},e.COLUMN_DEFAULTS,r);void 0!==a.fieldIndex&&(n.columns[a.fieldIndex]=a,n.fieldsColumnsIndex[a.field]=a.fieldIndex),n.options.columns[i][o]=a})}),!this.options.data.length){var i=va.trToData(this.columns,this.$el.find(">tbody>tr"));i.length&&(this.options.data=i,this.fromHtml=!0)}this.options.pagination&&"server"!==this.options.sidePagination||(this.footerData=va.trToData(this.columns,this.$el.find(">tfoot>tr"))),this.footerData&&this.$el.find("tfoot").html("<tr></tr>"),!this.options.showFooter||this.options.cardView?this.$tableFooter.hide():this.$tableFooter.show()}},{key:"initHeader",value:function(){var e=this,n={},r=[];this.header={fields:[],styles:[],classes:[],formatters:[],detailFormatters:[],events:[],sorters:[],sortNames:[],cellStyles:[],searchables:[]},va.updateFieldGroup(this.options.columns),this.options.columns.forEach(function(t,i){r.push("<tr".concat(va.sprintf(' class="%s"',e._headerTrClasses[i])," ").concat(va.sprintf(' style="%s"',e._headerTrStyles[i]),">"));var o="";0===i&&va.hasDetailViewIcon(e.options)&&(o='<th class="detail" rowspan="'.concat(e.options.columns.length,'">\n <div class="fht-cell"></div>\n </th>')),o&&"right"!==e.options.detailViewAlign&&r.push(o),t.forEach(function(t,o){var a=va.sprintf(' class="%s"',t.class),l=t.widthUnit,c=parseFloat(t.width),u=va.sprintf("text-align: %s; ",t.halign?t.halign:t.align),f=va.sprintf("text-align: %s; ",t.align),h=va.sprintf("vertical-align: %s; ",t.valign);if(h+=va.sprintf("width: %s; ",!t.checkbox&&!t.radio||c?c?c+l:void 0:t.showSelectTitle?void 0:"36px"),void 0!==t.fieldIndex||t.visible){var d=va.calculateObjectValue(null,e.options.headerStyle,[t]),p=[],g="";if(d&&d.css)for(var m=0,v=Object.entries(d.css);m<v.length;m++){var y=s(v[m],2),b=y[0],w=y[1];p.push("".concat(b,": ").concat(w))}if(d&&d.classes&&(g=va.sprintf(' class="%s"',t.class?[t.class,d.classes].join(" "):d.classes)),void 0!==t.fieldIndex){if(e.header.fields[t.fieldIndex]=t.field,e.header.styles[t.fieldIndex]=f+h,e.header.classes[t.fieldIndex]=a,e.header.formatters[t.fieldIndex]=t.formatter,e.header.detailFormatters[t.fieldIndex]=t.detailFormatter,e.header.events[t.fieldIndex]=t.events,e.header.sorters[t.fieldIndex]=t.sorter,e.header.sortNames[t.fieldIndex]=t.sortName,e.header.cellStyles[t.fieldIndex]=t.cellStyle,e.header.searchables[t.fieldIndex]=t.searchable,!t.visible)return;if(e.options.cardView&&!t.cardVisible)return;n[t.field]=t}r.push("<th".concat(va.sprintf(' title="%s"',t.titleTooltip)),t.checkbox||t.radio?va.sprintf(' class="bs-checkbox %s"',t.class||""):g||a,va.sprintf(' style="%s"',u+h+p.join("; ")),va.sprintf(' rowspan="%s"',t.rowspan),va.sprintf(' colspan="%s"',t.colspan),va.sprintf(' data-field="%s"',t.field),0===o&&i>0?" data-not-first-th":"",">"),r.push(va.sprintf('<div class="th-inner %s">',e.options.sortable&&t.sortable?"sortable both":""));var x=e.options.escape?va.escapeHTML(t.title):t.title,S=x;t.checkbox&&(x="",!e.options.singleSelect&&e.options.checkboxHeader&&(x='<label><input name="btSelectAll" type="checkbox" /><span></span></label>'),e.header.stateField=t.field),t.radio&&(x="",e.header.stateField=t.field),!x&&t.showSelectTitle&&(x+=S),r.push(x),r.push("</div>"),r.push('<div class="fht-cell"></div>'),r.push("</div>"),r.push("</th>")}}),o&&"right"===e.options.detailViewAlign&&r.push(o),r.push("</tr>")}),this.$header.html(r.join("")),this.$header.find("th[data-field]").each(function(e,r){t(r).data(n[t(r).data("field")])}),+this.$container.off("click",".th-inner").on("click",".th-inner",function(n){var r=t(n.currentTarget);if(e.options.detailView&&!r.parent().hasClass("bs-checkbox")&&r.closest(".bootstrap-table")[0]!==e.$container[0])return!1;e.options.sortable&&r.parent().data().sortable&&e.onSort(n)}),this.$header.children().children().off("keypress").on("keypress",function(n){if(e.options.sortable&&t(n.currentTarget).data().sortable){13===(n.keyCode||n.which)&&e.onSort(n)}});var i=va.getEventName("resize.bootstrap-table",this.$el.attr("id"));t(window).off(i),!this.options.showHeader||this.options.cardView?(this.$header.hide(),this.$tableHeader.hide(),this.$tableLoading.css("top",0)):(this.$header.show(),this.$tableHeader.show(),this.$tableLoading.css("top",this.$header.outerHeight()+1),this.getCaret(),t(window).on(i,function(){return e.resetView()})),this.$selectAll=this.$header.find('[name="btSelectAll"]'),this.$selectAll.off("click").on("click",function(n){n.stopPropagation();var r=t(n.currentTarget).prop("checked");e[r?"checkAll":"uncheckAll"](),e.updateSelected()})}},{key:"initData",value:function(t,e){"append"===e?this.options.data=this.options.data.concat(t):"prepend"===e?this.options.data=[].concat(t).concat(this.options.data):(t=t||va.deepCopy(this.options.data),this.options.data=Array.isArray(t)?t:t[this.options.dataField]),this.data=l(this.options.data),this.options.sortReset&&(this.unsortedData=l(this.data)),"server"!==this.options.sidePagination&&this.initSort()}},{key:"initSort",value:function(){var t=this,e=this.options.sortName,n="desc"===this.options.sortOrder?-1:1,r=this.header.fields.indexOf(this.options.sortName),i=0;-1!==r?(this.options.sortStable&&this.data.forEach(function(t,e){t.hasOwnProperty("_position")||(t._position=e)}),this.options.customSort?va.calculateObjectValue(this.options,this.options.customSort,[this.options.sortName,this.options.sortOrder,this.data]):this.data.sort(function(i,o){t.header.sortNames[r]&&(e=t.header.sortNames[r]);var a=va.getItemField(i,e,t.options.escape),s=va.getItemField(o,e,t.options.escape),l=va.calculateObjectValue(t.header,t.header.sorters[r],[a,s,i,o]);return void 0!==l?t.options.sortStable&&0===l?n*(i._position-o._position):n*l:va.sort(a,s,n,t.options.sortStable,i._position,o._position)}),void 0!==this.options.sortClass&&(clearTimeout(i),i=setTimeout(function(){t.$el.removeClass(t.options.sortClass);var e=t.$header.find('[data-field="'.concat(t.options.sortName,'"]')).index();t.$el.find("tr td:nth-child(".concat(e+1,")")).addClass(t.options.sortClass)},250))):this.options.sortReset&&(this.data=l(this.unsortedData))}},{key:"onSort",value:function(e){var n=e.type,r=e.currentTarget,i="keypress"===n?t(r):t(r).parent(),o=this.$header.find("th").eq(i.index());if(this.$header.add(this.$header_).find("span.order").remove(),this.options.sortName===i.data("field")){var a=this.options.sortOrder;void 0===a?this.options.sortOrder="asc":"asc"===a?this.options.sortOrder="desc":"desc"===this.options.sortOrder&&(this.options.sortOrder=this.options.sortReset?void 0:"asc"),void 0===this.options.sortOrder&&(this.options.sortName=void 0)}else this.options.sortName=i.data("field"),this.options.rememberOrder?this.options.sortOrder="asc"===i.data("order")?"desc":"asc":this.options.sortOrder=this.columns[this.fieldsColumnsIndex[i.data("field")]].sortOrder||this.columns[this.fieldsColumnsIndex[i.data("field")]].order;if(this.trigger("sort",this.options.sortName,this.options.sortOrder),i.add(o).data("order",this.options.sortOrder),this.getCaret(),"server"===this.options.sidePagination&&this.options.serverSort)return this.options.pageNumber=1,void this.initServer(this.options.silentSort);this.initSort(),this.initBody()}},{key:"initToolbar",value:function(){var e,n=this,i=this.options,o=[],a=0,l=0;this.$toolbar.find(".bs-bars").children().length&&t("body").append(t(i.toolbar)),this.$toolbar.html(""),"string"!=typeof i.toolbar&&"object"!==r(i.toolbar)||t(va.sprintf('<div class="bs-bars %s-%s"></div>',this.constants.classes.pull,i.toolbarAlign)).appendTo(this.$toolbar).append(t(i.toolbar)),o=['<div class="'.concat(["columns","columns-".concat(i.buttonsAlign),this.constants.classes.buttonsGroup,"".concat(this.constants.classes.pull,"-").concat(i.buttonsAlign)].join(" "),'">')],"string"==typeof i.icons&&(i.icons=va.calculateObjectValue(null,i.icons)),"string"==typeof i.buttonsOrder&&(i.buttonsOrder=i.buttonsOrder.replace(/\[|\]| |'/g,"").toLowerCase().split(",")),this.buttons=Object.assign(this.buttons,{paginationSwitch:{text:i.pagination?i.formatPaginationSwitchUp():i.formatPaginationSwitchDown(),icon:i.pagination?i.icons.paginationSwitchDown:i.icons.paginationSwitchUp,render:!1,event:this.togglePagination,attributes:{"aria-label":i.formatPaginationSwitch(),title:i.formatPaginationSwitch()}},refresh:{text:i.formatRefresh(),icon:i.icons.refresh,render:!1,event:this.refresh,attributes:{"aria-label":i.formatRefresh(),title:i.formatRefresh()}},toggle:{text:i.formatToggle(),icon:i.icons.toggleOff,render:!1,event:this.toggleView,attributes:{"aria-label":i.formatToggleOn(),title:i.formatToggleOn()}},fullscreen:{text:i.formatFullscreen(),icon:i.icons.fullscreen,render:!1,event:this.toggleFullscreen,attributes:{"aria-label":i.formatFullscreen(),title:i.formatFullscreen()}},columns:{render:!1,html:function(){var t=[];if(t.push('<div class="keep-open '.concat(n.constants.classes.buttonsDropdown,'" title="').concat(i.formatColumns(),'">\n <button class="').concat(n.constants.buttonsClass,' dropdown-toggle" type="button" data-toggle="dropdown"\n aria-label="Columns" title="').concat(i.formatColumns(),'">\n ').concat(i.showButtonIcons?va.sprintf(n.constants.html.icon,i.iconsPrefix,i.icons.columns):"","\n ").concat(i.showButtonText?i.formatColumns():"","\n ").concat(n.constants.html.dropdownCaret,"\n </button>\n ").concat(n.constants.html.toolbarDropdown[0])),i.showColumnsSearch&&(t.push(va.sprintf(n.constants.html.toolbarDropdownItem,va.sprintf('<input type="text" class="%s" name="columnsSearch" placeholder="%s" autocomplete="off">',n.constants.classes.input,i.formatSearch()))),t.push(n.constants.html.toolbarDropdownSeparator)),i.showColumnsToggleAll){var e=n.getVisibleColumns().length===n.columns.filter(function(t){return!n.isSelectionColumn(t)}).length;t.push(va.sprintf(n.constants.html.toolbarDropdownItem,va.sprintf('<input type="checkbox" class="toggle-all" %s> <span>%s</span>',e?'checked="checked"':"",i.formatColumnsToggleAll()))),t.push(n.constants.html.toolbarDropdownSeparator)}var r=0;return n.columns.forEach(function(t,e){t.visible&&r++}),n.columns.forEach(function(e,o){if(!n.isSelectionColumn(e)&&(!i.cardView||e.cardVisible)){var a=e.visible?' checked="checked"':"",s=r<=i.minimumCountColumns&&a?' disabled="disabled"':"";e.switchable&&(t.push(va.sprintf(n.constants.html.toolbarDropdownItem,va.sprintf('<input type="checkbox" data-field="%s" value="%s"%s%s> <span>%s</span>',e.field,o,a,s,e.title))),l++)}}),t.push(n.constants.html.toolbarDropdown[1],"</div>"),t.join("")}}});for(var c={},u=0,f=Object.entries(this.buttons);u<f.length;u++){var h=s(f[u],2),d=h[0],p=h[1],g=void 0;if(p.hasOwnProperty("html"))g=va.calculateObjectValue(i,p.html);else{if(g='<button class="'.concat(this.constants.buttonsClass,'" type="button" name="').concat(d,'"'),p.hasOwnProperty("attributes"))for(var m=0,v=Object.entries(p.attributes);m<v.length;m++){var y=s(v[m],2),b=y[0],w=y[1];g+=" ".concat(b,'="').concat(va.calculateObjectValue(i,w),'"')}if(g+=">",i.showButtonIcons&&p.hasOwnProperty("icon")){var x=va.calculateObjectValue(i,p.icon);g+=va.sprintf(this.constants.html.icon,i.iconsPrefix,x)+" "}i.showButtonText&&p.hasOwnProperty("text")&&(g+=va.calculateObjectValue(i,p.text)),g+="</button>"}c[d]=g;var S="show".concat(d.charAt(0).toUpperCase()).concat(d.substring(1)),A=i[S];!(!p.hasOwnProperty("render")||p.hasOwnProperty("render")&&p.render)||void 0!==A&&!0!==A||(i[S]=!0),i.buttonsOrder.includes(d)||i.buttonsOrder.push(d)}var N=!0,L=!1,k=void 0;try{for(var C,O=i.buttonsOrder[Symbol.iterator]();!(N=(C=O.next()).done);N=!0){var _=C.value;i["show".concat(_.charAt(0).toUpperCase()).concat(_.substring(1))]&&o.push(c[_])}}catch(t){L=!0,k=t}finally{try{N||null==O.return||O.return()}finally{if(L)throw k}}o.push("</div>"),(this.showToolbar||o.length>2)&&this.$toolbar.append(o.join(""));for(var P=0,I=Object.entries(this.buttons);P<I.length;P++){var T=s(I[P],2),E=T[0],j=T[1];if(j.hasOwnProperty("event")){if("function"==typeof j.event||"string"==typeof j.event){if("continue"===function(){var t="string"==typeof j.event?window[j.event]:j.event;return n.$toolbar.find('button[name="'.concat(E,'"]')).off("click").on("click",function(){return t.call(n)}),"continue"}())continue}for(var F=0,R=Object.entries(j.event);F<R.length;F++)!function(){var t=s(R[F],2),e=t[0],r=t[1],i="string"==typeof r?window[r]:r;n.$toolbar.find('button[name="'.concat(E,'"]')).off(e).on(e,function(){return i.call(n)})}()}}if(i.showColumns){e=this.$toolbar.find(".keep-open");var B=e.find('input[type="checkbox"]:not(".toggle-all")'),M=e.find('input[type="checkbox"].toggle-all');if(l<=i.minimumCountColumns&&e.find("input").prop("disabled",!0),e.find("li, label").off("click").on("click",function(t){t.stopImmediatePropagation()}),B.off("click").on("click",function(e){var r=e.currentTarget,i=t(r);n._toggleColumn(i.val(),i.prop("checked"),!1),n.trigger("column-switch",i.data("field"),i.prop("checked")),M.prop("checked",B.filter(":checked").length===n.columns.filter(function(t){return!n.isSelectionColumn(t)}).length)}),M.off("click").on("click",function(e){var r=e.currentTarget;n._toggleAllColumns(t(r).prop("checked"))}),i.showColumnsSearch){var D=e.find('[name="columnsSearch"]'),q=e.find(".dropdown-item-marker");D.on("keyup paste change",function(e){var n=e.currentTarget,r=t(n),i=r.val().toLowerCase();q.show(),B.each(function(e,n){var r=t(n),o=r.parents(".dropdown-item-marker");o.text().toLowerCase().includes(i)||o.hide()})})}}var U=function(t){t.off("keyup drop blur mouseup").on("keyup drop blur mouseup",function(t){i.searchOnEnterKey&&13!==t.keyCode||[37,38,39,40].includes(t.keyCode)||(clearTimeout(a),a=setTimeout(function(){n.onSearch({currentTarget:t.currentTarget})},i.searchTimeOut))})};if((i.search||this.showSearchClearButton)&&"string"!=typeof i.searchSelector){o=[];var z=va.sprintf(this.constants.html.searchButton,this.constants.buttonsClass,i.formatSearch(),i.showButtonIcons?va.sprintf(this.constants.html.icon,i.iconsPrefix,i.icons.search):"",i.showButtonText?i.formatSearch():""),H=va.sprintf(this.constants.html.searchClearButton,this.constants.buttonsClass,i.formatClearSearch(),i.showButtonIcons?va.sprintf(this.constants.html.icon,i.iconsPrefix,i.icons.clearSearch):"",i.showButtonText?i.formatClearSearch():""),$='<input class="'.concat(this.constants.classes.input,"\n ").concat(va.sprintf(" %s%s",this.constants.classes.inputPrefix,i.iconSize),'\n search-input" type="search" placeholder="').concat(i.formatSearch(),'" autocomplete="off">'),V=$;if(i.showSearchButton||i.showSearchClearButton){var W=(i.showSearchButton?z:"")+(i.showSearchClearButton?H:"");V=i.search?va.sprintf(this.constants.html.inputGroup,$,W):W}o.push(va.sprintf('\n <div class="'.concat(this.constants.classes.pull,"-").concat(i.searchAlign," search ").concat(this.constants.classes.inputGroup,'">\n %s\n </div>\n '),V)),this.$toolbar.append(o.join(""));var G=va.getSearchInput(this);i.showSearchButton?(this.$toolbar.find(".search button[name=search]").off("click").on("click",function(t){clearTimeout(a),a=setTimeout(function(){n.onSearch({currentTarget:G})},i.searchTimeOut)}),i.searchOnEnterKey&&U(G)):U(G),i.showSearchClearButton&&this.$toolbar.find(".search button[name=clearSearch]").click(function(){n.resetSearch()})}else if("string"==typeof i.searchSelector){var Y=va.getSearchInput(this);U(Y)}}},{key:"onSearch",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.currentTarget,r=e.firedByInitSearchText,i=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(void 0!==n&&t(n).length&&i){var o=t(n).val().trim();if(this.options.trimOnSearch&&t(n).val()!==o&&t(n).val(o),this.searchText===o)return;(n===va.getSearchInput(this)[0]||t(n).hasClass("search-input"))&&(this.searchText=o,this.options.searchText=o)}r||(this.options.pageNumber=1),this.initSearch(),r?"client"===this.options.sidePagination&&this.updatePagination():this.updatePagination(),this.trigger("search",this.searchText)}},{key:"initSearch",value:function(){var t=this;if(this.filterOptions=this.filterOptions||this.options.filterOptions,"server"!==this.options.sidePagination){if(this.options.customSearch)return this.data=va.calculateObjectValue(this.options,this.options.customSearch,[this.options.data,this.searchText,this.filterColumns]),void(this.options.sortReset&&(this.unsortedData=l(this.data)));var e=this.searchText&&(this.fromHtml?va.escapeHTML(this.searchText):this.searchText).toLowerCase(),n=va.isEmptyObject(this.filterColumns)?null:this.filterColumns;"function"==typeof this.filterOptions.filterAlgorithm?this.data=this.options.data.filter(function(e,r){return t.filterOptions.filterAlgorithm.apply(null,[e,n])}):"string"==typeof this.filterOptions.filterAlgorithm&&(this.data=n?this.options.data.filter(function(e,r){var i=t.filterOptions.filterAlgorithm;if("and"===i){for(var o in n)if(Array.isArray(n[o])&&!n[o].includes(e[o])||!Array.isArray(n[o])&&e[o]!==n[o])return!1}else if("or"===i){var a=!1;for(var s in n)(Array.isArray(n[s])&&n[s].includes(e[s])||!Array.isArray(n[s])&&e[s]===n[s])&&(a=!0);return a}return!0}):l(this.options.data));var r=this.getVisibleFields();this.data=e?this.data.filter(function(n,i){for(var o=0;o<t.header.fields.length;o++)if(t.header.searchables[o]&&(!t.options.visibleSearch||-1!==r.indexOf(t.header.fields[o]))){var a=va.isNumeric(t.header.fields[o])?parseInt(t.header.fields[o],10):t.header.fields[o],s=t.columns[t.fieldsColumnsIndex[a]],l=void 0;if("string"==typeof a){l=n;for(var c=a.split("."),u=0;u<c.length;u++)null!==l[c[u]]&&(l=l[c[u]])}else l=n[a];if(t.options.searchAccentNeutralise&&(l=va.normalizeAccent(l)),s&&s.searchFormatter&&(l=va.calculateObjectValue(s,t.header.formatters[o],[l,n,i,s.field],l)),"string"==typeof l||"number"==typeof l)if(t.options.strictSearch){if("".concat(l).toLowerCase()===e)return!0}else{var f=/(?:(<=|=>|=<|>=|>|<)(?:\s+)?(\d+)?|(\d+)?(\s+)?(<=|=>|=<|>=|>|<))/gm,h=f.exec(e),d=!1;if(h){var p=h[1]||"".concat(h[5],"l"),g=h[2]||h[3],m=parseInt(l,10),v=parseInt(g,10);switch(p){case">":case"<l":d=m>v;break;case"<":case">l":d=m<v;break;case"<=":case"=<":case">=l":case"=>l":d=m<=v;break;case">=":case"=>":case"<=l":case"=<l":d=m>=v}}if(d||"".concat(l).toLowerCase().includes(e))return!0}}return!1}):this.data,this.options.sortReset&&(this.unsortedData=l(this.data)),this.initSort()}}},{key:"initPagination",value:function(){var t=this,e=this.options;if(!e.pagination)return void this.$pagination.hide();this.$pagination.show();var n,r,i,o,a,s,l,c=[],u=!1,f=this.getData({includeHiddenRows:!1}),h=e.pageList;if("string"==typeof h&&(h=h.replace(/\[|\]| /g,"").toLowerCase().split(",")),h=h.map(function(t){return"string"==typeof t?t.toLowerCase()===e.formatAllRows().toLowerCase()||["all","unlimited"].includes(t.toLowerCase())?e.formatAllRows():+t:t}),this.paginationParts=e.paginationParts,"string"==typeof this.paginationParts&&(this.paginationParts=this.paginationParts.replace(/\[|\]| |'/g,"").split(",")),"server"!==e.sidePagination&&(e.totalRows=f.length),this.totalPages=0,e.totalRows&&(e.pageSize===e.formatAllRows()&&(e.pageSize=e.totalRows,u=!0),this.totalPages=1+~~((e.totalRows-1)/e.pageSize),e.totalPages=this.totalPages),this.totalPages>0&&e.pageNumber>this.totalPages&&(e.pageNumber=this.totalPages),this.pageFrom=(e.pageNumber-1)*e.pageSize+1,this.pageTo=e.pageNumber*e.pageSize,this.pageTo>e.totalRows&&(this.pageTo=e.totalRows),this.options.pagination&&"server"!==this.options.sidePagination&&(this.options.totalNotFiltered=this.options.data.length),this.options.showExtendedPagination||(this.options.totalNotFiltered=void 0),(this.paginationParts.includes("pageInfo")||this.paginationParts.includes("pageInfoShort")||this.paginationParts.includes("pageSize"))&&c.push('<div class="'.concat(this.constants.classes.pull,"-").concat(e.paginationDetailHAlign,' pagination-detail">')),this.paginationParts.includes("pageInfo")||this.paginationParts.includes("pageInfoShort")){var d=this.paginationParts.includes("pageInfoShort")?e.formatDetailPagination(e.totalRows):e.formatShowingRows(this.pageFrom,this.pageTo,e.totalRows,e.totalNotFiltered);c.push('<span class="pagination-info">\n '.concat(d,"\n </span>"))}if(this.paginationParts.includes("pageSize")){c.push('<span class="page-list">');var p=['<span class="'.concat(this.constants.classes.paginationDropdown,'">\n <button class="').concat(this.constants.buttonsClass,' dropdown-toggle" type="button" data-toggle="dropdown">\n <span class="page-size">\n ').concat(u?e.formatAllRows():e.pageSize,"\n </span>\n ").concat(this.constants.html.dropdownCaret,"\n </button>\n ").concat(this.constants.html.pageDropdown[0])];h.forEach(function(n,r){if(!e.smartDisplay||0===r||h[r-1]<e.totalRows){var i;i=u?n===e.formatAllRows()?t.constants.classes.dropdownActive:"":n===e.pageSize?t.constants.classes.dropdownActive:"",p.push(va.sprintf(t.constants.html.pageDropdownItem,i,n))}}),p.push("".concat(this.constants.html.pageDropdown[1],"</span>")),c.push(e.formatRecordsPerPage(p.join("")))}if((this.paginationParts.includes("pageInfo")||this.paginationParts.includes("pageInfoShort")||this.paginationParts.includes("pageSize"))&&c.push("</span></div>"),this.paginationParts.includes("pageList")){c.push('<div class="'.concat(this.constants.classes.pull,"-").concat(e.paginationHAlign,' pagination">'),va.sprintf(this.constants.html.pagination[0],va.sprintf(" pagination-%s",e.iconSize)),va.sprintf(this.constants.html.paginationItem," page-pre",e.formatSRPaginationPreText(),e.paginationPreText)),this.totalPages<e.paginationSuccessivelySize?(r=1,i=this.totalPages):(r=e.pageNumber-e.paginationPagesBySide,i=r+2*e.paginationPagesBySide),e.pageNumber<e.paginationSuccessivelySize-1&&(i=e.paginationSuccessivelySize),e.paginationSuccessivelySize>this.totalPages-r&&(r=r-(e.paginationSuccessivelySize-(this.totalPages-r))+1),r<1&&(r=1),i>this.totalPages&&(i=this.totalPages);var g=Math.round(e.paginationPagesBySide/2),m=function(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return va.sprintf(t.constants.html.paginationItem,r+(n===e.pageNumber?" ".concat(t.constants.classes.paginationActive):""),e.formatSRPaginationPageText(n),n)};if(r>1){var v=e.paginationPagesBySide;for(v>=r&&(v=r-1),n=1;n<=v;n++)c.push(m(n));r-1===v+1?(n=r-1,c.push(m(n))):r-1>v&&(r-2*e.paginationPagesBySide>e.paginationPagesBySide&&e.paginationUseIntermediate?(n=Math.round((r-g)/2+g),c.push(m(n," page-intermediate"))):c.push(va.sprintf(this.constants.html.paginationItem," page-first-separator disabled","","...")))}for(n=r;n<=i;n++)c.push(m(n));if(this.totalPages>i){var y=this.totalPages-(e.paginationPagesBySide-1);for(i>=y&&(y=i+1),i+1===y-1?(n=i+1,c.push(m(n))):y>i+1&&(this.totalPages-i>2*e.paginationPagesBySide&&e.paginationUseIntermediate?(n=Math.round((this.totalPages-g-i)/2+i),c.push(m(n," page-intermediate"))):c.push(va.sprintf(this.constants.html.paginationItem," page-last-separator disabled","","..."))),n=y;n<=this.totalPages;n++)c.push(m(n))}c.push(va.sprintf(this.constants.html.paginationItem," page-next",e.formatSRPaginationNextText(),e.paginationNextText)),c.push(this.constants.html.pagination[1],"</div>")}this.$pagination.html(c.join(""));var b=["bottom","both"].includes(e.paginationVAlign)?" ".concat(this.constants.classes.dropup):"";this.$pagination.last().find(".page-list > span").addClass(b),e.onlyInfoPagination||(o=this.$pagination.find(".page-list a"),a=this.$pagination.find(".page-pre"),s=this.$pagination.find(".page-next"),l=this.$pagination.find(".page-item").not(".page-next, .page-pre, .page-last-separator, .page-first-separator"),this.totalPages<=1&&this.$pagination.find("div.pagination").hide(),e.smartDisplay&&(h.length<2||e.totalRows<=h[0])&&this.$pagination.find("span.page-list").hide(),this.$pagination[this.getData().length?"show":"hide"](),e.paginationLoop||(1===e.pageNumber&&a.addClass("disabled"),e.pageNumber===this.totalPages&&s.addClass("disabled")),u&&(e.pageSize=e.formatAllRows()),o.off("click").on("click",function(e){return t.onPageListChange(e)}),a.off("click").on("click",function(e){return t.onPagePre(e)}),s.off("click").on("click",function(e){return t.onPageNext(e)}),l.off("click").on("click",function(e){return t.onPageNumber(e)}))}},{key:"updatePagination",value:function(e){e&&t(e.currentTarget).hasClass("disabled")||(this.options.maintainMetaData||this.resetRows(),this.initPagination(),this.trigger("page-change",this.options.pageNumber,this.options.pageSize),"server"===this.options.sidePagination?this.initServer():this.initBody())}},{key:"onPageListChange",value:function(e){e.preventDefault();var n=t(e.currentTarget);return n.parent().addClass(this.constants.classes.dropdownActive).siblings().removeClass(this.constants.classes.dropdownActive),this.options.pageSize=n.text().toUpperCase()===this.options.formatAllRows().toUpperCase()?this.options.formatAllRows():+n.text(),this.$toolbar.find(".page-size").text(this.options.pageSize),this.updatePagination(e),!1}},{key:"onPagePre",value:function(t){return t.preventDefault(),this.options.pageNumber-1==0?this.options.pageNumber=this.options.totalPages:this.options.pageNumber--,this.updatePagination(t),!1}},{key:"onPageNext",value:function(t){return t.preventDefault(),this.options.pageNumber+1>this.options.totalPages?this.options.pageNumber=1:this.options.pageNumber++,this.updatePagination(t),!1}},{key:"onPageNumber",value:function(e){if(e.preventDefault(),this.options.pageNumber!==+t(e.currentTarget).text())return this.options.pageNumber=+t(e.currentTarget).text(),this.updatePagination(e),!1}},{key:"initRow",value:function(t,e,n,i){var o=this,a=[],l={},c=[],u="",f={},h=[];if(!(va.findIndex(this.hiddenRows,t)>-1)){if((l=va.calculateObjectValue(this.options,this.options.rowStyle,[t,e],l))&&l.css)for(var d=0,p=Object.entries(l.css);d<p.length;d++){var g=s(p[d],2),m=g[0],v=g[1];c.push("".concat(m,": ").concat(v))}if(f=va.calculateObjectValue(this.options,this.options.rowAttributes,[t,e],f))for(var y=0,b=Object.entries(f);y<b.length;y++){var w=s(b[y],2),x=w[0],S=w[1];h.push("".concat(x,'="').concat(va.escapeHTML(S),'"'))}if(t._data&&!va.isEmptyObject(t._data))for(var A=0,N=Object.entries(t._data);A<N.length;A++){var L=s(N[A],2),k=L[0],C=L[1];if("index"===k)return;u+=" data-".concat(k,"='").concat("object"===r(C)?JSON.stringify(C):C,"'")}a.push("<tr",va.sprintf(" %s",h.length?h.join(" "):void 0),va.sprintf(' id="%s"',Array.isArray(t)?void 0:t._id),va.sprintf(' class="%s"',l.classes||(Array.isArray(t)?void 0:t._class)),va.sprintf(' style="%s"',Array.isArray(t)?void 0:t._style),' data-index="'.concat(e,'"'),va.sprintf(' data-uniqueid="%s"',va.getItemField(t,this.options.uniqueId,!1)),va.sprintf(' data-has-detail-view="%s"',this.options.detailView&&va.calculateObjectValue(null,this.options.detailFilter,[e,t])?"true":void 0),va.sprintf("%s",u),">"),this.options.cardView&&a.push('<td colspan="'.concat(this.header.fields.length,'"><div class="card-views">'));var O="";return va.hasDetailViewIcon(this.options)&&(O="<td>",va.calculateObjectValue(null,this.options.detailFilter,[e,t])&&(O+='\n <a class="detail-icon" href="#">\n '.concat(va.sprintf(this.constants.html.icon,this.options.iconsPrefix,this.options.icons.detailOpen),"\n </a>\n ")),O+="</td>"),O&&"right"!==this.options.detailViewAlign&&a.push(O),this.header.fields.forEach(function(n,r){var i="",l=va.getItemField(t,n,o.options.escape),u="",f="",h={},d="",p=o.header.classes[r],g="",m="",v="",y="",b="",w="",x=o.columns[r];if((!o.fromHtml&&!o.autoMergeCells||void 0!==l||x.checkbox||x.radio)&&x.visible&&(!o.options.cardView||x.cardVisible)){if(x.escape&&(l=va.escapeHTML(l)),c.concat([o.header.styles[r]]).length&&(m+="".concat(c.concat([o.header.styles[r]]).join("; "))),t["_".concat(n,"_style")]&&(m+="".concat(t["_".concat(n,"_style")])),m&&(g=' style="'.concat(m,'"')),t["_".concat(n,"_id")]&&(d=va.sprintf(' id="%s"',t["_".concat(n,"_id")])),t["_".concat(n,"_class")]&&(p=va.sprintf(' class="%s"',t["_".concat(n,"_class")])),t["_".concat(n,"_rowspan")]&&(y=va.sprintf(' rowspan="%s"',t["_".concat(n,"_rowspan")])),t["_".concat(n,"_colspan")]&&(b=va.sprintf(' colspan="%s"',t["_".concat(n,"_colspan")])),t["_".concat(n,"_title")]&&(w=va.sprintf(' title="%s"',t["_".concat(n,"_title")])),h=va.calculateObjectValue(o.header,o.header.cellStyles[r],[l,t,e,n],h),h.classes&&(p=' class="'.concat(h.classes,'"')),h.css){for(var S=[],A=0,N=Object.entries(h.css);A<N.length;A++){var L=s(N[A],2),k=L[0],C=L[1];S.push("".concat(k,": ").concat(C))}g=' style="'.concat(S.concat(o.header.styles[r]).join("; "),'"')}if(u=va.calculateObjectValue(x,o.header.formatters[r],[l,t,e,n],l),""!==o.searchText&&o.options.searchHighlight&&(u=va.calculateObjectValue(x,x.searchHighlightFormatter,[u,o.searchText],u.replace(new RegExp("("+o.searchText+")","gim"),"<mark>$1</mark>"))),t["_".concat(n,"_data")]&&!va.isEmptyObject(t["_".concat(n,"_data")]))for(var O=0,_=Object.entries(t["_".concat(n,"_data")]);O<_.length;O++){var P=s(_[O],2),I=P[0],T=P[1];if("index"===I)return;v+=" data-".concat(I,'="').concat(T,'"')}if(x.checkbox||x.radio){f=x.checkbox?"checkbox":f,f=x.radio?"radio":f;var E=x.class||"",j=va.isObject(u)&&u.hasOwnProperty("checked")?u.checked:(!0===u||l)&&!1!==u,F=!x.checkboxEnabled||u&&u.disabled;i=[o.options.cardView?'<div class="card-view '.concat(E,'">'):'<td class="bs-checkbox '.concat(E,'"').concat(p).concat(g,">"),'<label>\n <input\n data-index="'.concat(e,'"\n name="').concat(o.options.selectItemName,'"\n type="').concat(f,'"\n ').concat(va.sprintf('value="%s"',t[o.options.idField]),"\n ").concat(va.sprintf('checked="%s"',j?"checked":void 0),"\n ").concat(va.sprintf('disabled="%s"',F?"disabled":void 0)," />\n <span></span>\n </label>"),o.header.formatters[r]&&"string"==typeof u?u:"",o.options.cardView?"</div>":"</td>"].join(""),t[o.header.stateField]=!0===u||!!l||u&&u.checked}else if(u=void 0===u||null===u?o.options.undefinedText:u,o.options.cardView){var R=o.options.showHeader?'<span class="card-view-title"'.concat(g,">").concat(va.getFieldTitle(o.columns,n),"</span>"):"";i='<div class="card-view">'.concat(R,'<span class="card-view-value">').concat(u,"</span></div>"),o.options.smartDisplay&&""===u&&(i='<div class="card-view"></div>')}else i="<td".concat(d).concat(p).concat(g).concat(v).concat(y).concat(b).concat(w,">").concat(u,"</td>");a.push(i)}}),O&&"right"===this.options.detailViewAlign&&a.push(O),this.options.cardView&&a.push("</div></td>"),a.push("</tr>"),a.join("")}}},{key:"initBody",value:function(e){var n=this,r=this.getData();this.trigger("pre-body",r),this.$body=this.$el.find(">tbody"),this.$body.length||(this.$body=t("<tbody></tbody>").appendTo(this.$el)),this.options.pagination&&"server"!==this.options.sidePagination||(this.pageFrom=1,this.pageTo=r.length);var i=[],o=t(document.createDocumentFragment()),a=!1;this.autoMergeCells=va.checkAutoMergeCells(r.slice(this.pageFrom-1,this.pageTo));for(var s=this.pageFrom-1;s<this.pageTo;s++){var l=r[s],c=this.initRow(l,s,r,o);a=a||!!c,c&&"string"==typeof c&&(this.options.virtualScroll?i.push(c):o.append(c))}a?this.options.virtualScroll?(this.virtualScroll&&this.virtualScroll.destroy(),this.virtualScroll=new ya({rows:i,fixedScroll:e,scrollEl:this.$tableBody[0],contentEl:this.$body[0],itemHeight:this.options.virtualScrollItemHeight,callback:function(){n.fitHeader(),n.initBodyEvent()}})):this.$body.html(o):this.$body.html('<tr class="no-records-found">'.concat(va.sprintf('<td colspan="%s">%s</td>',this.getVisibleFields().length+va.getDetailViewIndexOffset(this.options),this.options.formatNoMatches()),"</tr>")),e||this.scrollTo(0),this.initBodyEvent(),this.updateSelected(),this.initFooter(),this.resetView(),"server"!==this.options.sidePagination&&(this.options.totalRows=r.length),this.trigger("post-body",r)}},{key:"initBodyEvent",value:function(){var e=this;this.$body.find("> tr[data-index] > td").off("click dblclick").on("click dblclick",function(n){var r=t(n.currentTarget),i=r.parent(),o=t(n.target).parents(".card-views").children(),a=t(n.target).parents(".card-view"),s=i.data("index"),l=e.data[s],c=e.options.cardView?o.index(a):r[0].cellIndex,u=e.getVisibleFields(),f=u[c-va.getDetailViewIndexOffset(e.options)],h=e.columns[e.fieldsColumnsIndex[f]],d=va.getItemField(l,f,e.options.escape);if(!r.find(".detail-icon").length){if(e.trigger("click"===n.type?"click-cell":"dbl-click-cell",f,d,l,r),e.trigger("click"===n.type?"click-row":"dbl-click-row",l,i,f),"click"===n.type&&e.options.clickToSelect&&h.clickToSelect&&!va.calculateObjectValue(e.options,e.options.ignoreClickToSelectOn,[n.target])){var p=i.find(va.sprintf('[name="%s"]',e.options.selectItemName));p.length&&p[0].click()}"click"===n.type&&e.options.detailViewByClick&&e.toggleDetailView(s,e.header.detailFormatters[e.fieldsColumnsIndex[f]])}}).off("mousedown").on("mousedown",function(t){e.multipleSelectRowCtrlKey=t.ctrlKey||t.metaKey,e.multipleSelectRowShiftKey=t.shiftKey}),this.$body.find("> tr[data-index] > td > .detail-icon").off("click").on("click",function(n){return n.preventDefault(),e.toggleDetailView(t(n.currentTarget).parent().parent().data("index")),!1}),this.$selectItem=this.$body.find(va.sprintf('[name="%s"]',this.options.selectItemName)),this.$selectItem.off("click").on("click",function(n){n.stopImmediatePropagation();var r=t(n.currentTarget);e._toggleCheck(r.prop("checked"),r.data("index"))}),this.header.events.forEach(function(n,r){var i=n;if(i){"string"==typeof i&&(i=va.calculateObjectValue(null,i));var o=e.header.fields[r],a=e.getVisibleFields().indexOf(o);if(-1!==a){a+=va.getDetailViewIndexOffset(e.options);for(var s in i){(function(n){if(!i.hasOwnProperty(n))return"continue";var r=i[n];e.$body.find(">tr:not(.no-records-found)").each(function(i,s){var l=t(s),c=l.find(e.options.cardView?".card-views>.card-view":">td").eq(a),u=n.indexOf(" "),f=n.substring(0,u),h=n.substring(u+1);c.find(h).off(f).on(f,function(t){var n=l.data("index"),i=e.data[n],a=i[o];r.apply(e,[t,a,i,n])})})})(s)}}}})}},{key:"initServer",value:function(e,n,r){var i=this,o={},a=this.header.fields.indexOf(this.options.sortName),s={searchText:this.searchText,sortName:this.options.sortName,sortOrder:this.options.sortOrder};if(this.header.sortNames[a]&&(s.sortName=this.header.sortNames[a]),this.options.pagination&&"server"===this.options.sidePagination&&(s.pageSize=this.options.pageSize===this.options.formatAllRows()?this.options.totalRows:this.options.pageSize,s.pageNumber=this.options.pageNumber),r||this.options.url||this.options.ajax){if("limit"===this.options.queryParamsType&&(s={search:s.searchText,sort:s.sortName,order:s.sortOrder},this.options.pagination&&"server"===this.options.sidePagination&&(s.offset=this.options.pageSize===this.options.formatAllRows()?0:this.options.pageSize*(this.options.pageNumber-1),s.limit=this.options.pageSize===this.options.formatAllRows()?this.options.totalRows:this.options.pageSize,0===s.limit&&delete s.limit)),this.options.search&&"server"===this.options.sidePagination&&this.columns.filter(function(t){return!t.searchable}).length){s.searchable=[];var l=!0,c=!1,u=void 0;try{for(var f,h=this.columns[Symbol.iterator]();!(l=(f=h.next()).done);l=!0){var d=f.value+;!d.checkbox&&d.searchable&&(this.options.visibleSearch&&d.visible||!this.options.visibleSearch)&&s.searchable.push(d.field)}}catch(t){c=!0,u=t}finally{try{l||null==h.return||h.return()}finally{if(c)throw u}}}if(va.isEmptyObject(this.filterColumnsPartial)||(s.filter=JSON.stringify(this.filterColumnsPartial,null)),t.extend(s,n||{}),!1!==(o=va.calculateObjectValue(this.options,this.options.queryParams,[s],o))){e||this.showLoading();var p=t.extend({},va.calculateObjectValue(null,this.options.ajaxOptions),{type:this.options.method,url:r||this.options.url,data:"application/json"===this.options.contentType&&"post"===this.options.method?JSON.stringify(o):o,cache:this.options.cache,contentType:this.options.contentType,dataType:this.options.dataType,success:function(t,n,r){var o=va.calculateObjectValue(i.options,i.options.responseHandler,[t,r],t);i.load(o),i.trigger("load-success",o,r&&r.status,r),e||i.hideLoading(),"server"===i.options.sidePagination&&o[i.options.totalField]>0&&!o[i.options.dataField].length&&i.updatePagination()},error:function(t){var n=[];"server"===i.options.sidePagination&&(n={},n[i.options.totalField]=0,n[i.options.dataField]=[]),i.load(n),i.trigger("load-error",t&&t.status,t),e||i.$tableLoading.hide()}});return this.options.ajax?va.calculateObjectValue(this,this.options.ajax,[p],null):(this._xhr&&4!==this._xhr.readyState&&this._xhr.abort(),this._xhr=t.ajax(p)),o}}}},{key:"initSearchText",value:function(){if(this.options.search&&(this.searchText="",""!==this.options.searchText)){var t=va.getSearchInput(this);t.val(this.options.searchText),this.onSearch({currentTarget:t,firedByInitSearchText:!0})}}},{key:"getCaret",value:function(){var e=this;this.$header.find("th").each(function(n,r){t(r).find(".sortable").removeClass("desc asc").addClass(t(r).data("field")===e.options.sortName?e.options.sortOrder:"both")})}},{key:"updateSelected",value:function(){var e=this.$selectItem.filter(":enabled").length&&this.$selectItem.filter(":enabled").length===this.$selectItem.filter(":enabled").filter(":checked").length;this.$selectAll.add(this.$selectAll_).prop("checked",e),this.$selectItem.each(function(e,n){t(n).closest("tr")[t(n).prop("checked")?"addClass":"removeClass"]("selected")})}},{key:"updateRows",value:function(){var e=this;this.$selectItem.each(function(n,r){e.data[t(r).data("index")][e.header.stateField]=t(r).prop("checked")})}},{key:"resetRows",value:function(){var t=!0,e=!1,n=void 0;try{for(var r,i=this.data[Symbol.iterator]();!(t=(r=i.next()).done);t=!0){var o=r.value;this.$selectAll.prop("checked",!1),this.$selectItem.prop("checked",!1),this.header.stateField&&(o[this.header.stateField]=!1)}}catch(t){e=!0,n=t}finally{try{t||null==i.return||i.return()}finally{if(e)throw n}}this.initHiddenRows()}},{key:"trigger",value:function(n){for(var r,i,o="".concat(n,".bs.table"),a=arguments.length,s=new Array(a>1?a-1:0),l=1;l<a;l++)s[l-1]=arguments[l];(r=this.options)[e.EVENTS[o]].apply(r,[].concat(s,[this])),this.$el.trigger(t.Event(o,{sender:this}),s),(i=this.options).onAll.apply(i,[o].concat([].concat(s,[this]))),this.$el.trigger(t.Event("all.bs.table",{sender:this}),[o,s])}},{key:"resetHeader",value:function(){var t=this;clearTimeout(this.timeoutId_),this.timeoutId_=setTimeout(function(){return t.fitHeader()},this.$el.is(":hidden")?100:0)}},{key:"fitHeader",value:function(){var e=this;if(this.$el.is(":hidden"))return void(this.timeoutId_=setTimeout(function(){return e.fitHeader()},100));var n=this.$tableBody.get(0),r=n.scrollWidth>n.clientWidth&&n.scrollHeight>n.clientHeight+this.$header.outerHeight()?va.getScrollBarWidth():0;this.$el.css("margin-top",-this.$header.outerHeight());var i=t(":focus");if(i.length>0){var o=i.parents("th");if(o.length>0){var a=o.attr("data-field");if(void 0!==a){var s=this.$header.find("[data-field='".concat(a,"']"));s.length>0&&s.find(":input").addClass("focus-temp")}}}this.$header_=this.$header.clone(!0,!0),this.$selectAll_=this.$header_.find('[name="btSelectAll"]'),this.$tableHeader.css("margin-right",r).find("table").css("width",this.$el.outerWidth()).html("").attr("class",this.$el.attr("class")).append(this.$header_),this.$tableLoading.css("width",this.$el.outerWidth());var l=t(".focus-temp:visible:eq(0)");l.length>0&&(l.focus(),this.$header.find(".focus-temp").removeClass("focus-temp")),this.$header.find("th[data-field]").each(function(n,r){e.$header_.find(va.sprintf('th[data-field="%s"]',t(r).data("field"))).data(t(r).data())});for(var c=this.getVisibleFields(),u=this.$header_.find("th"),f=this.$body.find(">tr:not(.no-records-found,.virtual-scroll-top)").eq(0);f.length&&f.find('>td[colspan]:not([colspan="1"])').length;)f=f.next();var h=f.find("> *").length;f.find("> *").each(function(n,r){var i=t(r);if(va.hasDetailViewIcon(e.options)&&(0===n&&"right"!==e.options.detailViewAlign||n===h-1&&"right"===e.options.detailViewAlign)){var o=u.filter(".detail"),a=o.innerWidth()-o.find(".fht-cell").width();return void o.find(".fht-cell").width(i.innerWidth()-a)}var s=n-va.getDetailViewIndexOffset(e.options),l=e.$header_.find(va.sprintf('th[data-field="%s"]',c[s]));l.length>1&&(l=t(u[i[0].cellIndex]));var f=l.innerWidth()-l.find(".fht-cell").width();l.find(".fht-cell").width(i.innerWidth()-f)}),this.horizontalScroll(),this.trigger("post-header")}},{key:"initFooter",value:function(){if(this.options.showFooter&&!this.options.cardView){var t=this.getData(),e=[],n="";va.hasDetailViewIcon(this.options)&&(n='<th class="detail"><div class="th-inner"></div><div class="fht-cell"></div></th>'),n&&"right"!==this.options.detailViewAlign&&e.push(n);var r=!0,i=!1,o=void 0;try{for(var a,l=this.columns[Symbol.iterator]();!(r=(a=l.next()).done);r=!0){var c=a.value,u="",f="",h=[],d={},p=va.sprintf(' class="%s"',c.class);if(c.visible&&(!(this.footerData&&this.footerData.length>0)||c.field in this.footerData[0])){if(this.options.cardView&&!c.cardVisible)return;if(u=va.sprintf("text-align: %s; ",c.falign?c.falign:c.align),f=va.sprintf("vertical-align: %s; ",c.valign),(d=va.calculateObjectValue(null,this.options.footerStyle,[c]))&&d.css)for(var g=0,m=Object.entries(d.css);g<m.length;g++){var v=s(m[g],2),y=v[0],b=v[1];h.push("".concat(y,": ").concat(b))}d&&d.classes&&(p=va.sprintf(' class="%s"',c.class?[c.class,d.classes].join(" "):d.classes)),e.push("<th",p,va.sprintf(' style="%s"',u+f+h.concat().join("; ")));var w=0;this.footerData&&this.footerData.length>0&&(w=this.footerData[0]["_"+c.field+"_colspan"]||0),w&&e.push(' colspan="'.concat(w,'" ')),e.push(">"),e.push('<div class="th-inner">');var x="";this.footerData&&this.footerData.length>0&&(x=this.footerData[0][c.field]||""),e.push(va.calculateObjectValue(c,c.footerFormatter,[t,x],x)),e.push("</div>"),e.push('<div class="fht-cell"></div>'),e.push("</div>"),e.push("</th>")}}}catch(t){i=!0,o=t}finally{try{r||null==l.return||l.return()}finally{if(i)throw o}}n&&"right"===this.options.detailViewAlign&&e.push(n),this.options.height||this.$tableFooter.length||(this.$el.append("<tfoot><tr></tr></tfoot>"),this.$tableFooter=this.$el.find("tfoot")),this.$tableFooter.find("tr").html(e.join("")),this.trigger("post-footer",this.$tableFooter)}}},{key:"fitFooter",value:function(){var e=this;if(this.$el.is(":hidden"))return void setTimeout(function(){return e.fitFooter()},100);var n=this.$tableBody.get(0),r=n.scrollWidth>n.clientWidth&&n.scrollHeight>n.clientHeight+this.$header.outerHeight()?va.getScrollBarWidth():0;this.$tableFooter.css("margin-right",r).find("table").css("width",this.$el.outerWidth()).attr("class",this.$el.attr("class"));var i=(this.getVisibleFields(),this.$tableFooter.find("th")),o=this.$body.find(">tr:first-child:not(.no-records-found)");for(i.find(".fht-cell").width("auto");o.length&&o.find('>td[colspan]:not([colspan="1"])').length;)o=o.next();var a=o.find("> *").length;o.find("> *").each(function(n,r){var o=t(r);if(va.hasDetailViewIcon(e.options)&&(0===n&&"left"===e.options.detailViewAlign||n===a-1&&"right"===e.options.detailViewAlign)){var s=i.filter(".detail"),l=s.innerWidth()-s.find(".fht-cell").width();return void s.find(".fht-cell").width(o.innerWidth()-l)}var c=i.eq(n),u=c.innerWidth()-c.find(".fht-cell").width();c.find(".fht-cell").width(o.innerWidth()-u)}),this.horizontalScroll()}},{key:"horizontalScroll",value:function(){var t=this;this.$tableBody.off("scroll").on("scroll",function(){var e=t.$tableBody.scrollLeft();t.options.showHeader&&t.options.height&&t.$tableHeader.scrollLeft(e),t.options.showFooter&&!t.options.cardView&&t.$tableFooter.scrollLeft(e),t.trigger("scroll-body",t.$tableBody)})}},{key:"getVisibleFields",value:function(){var t=[],e=!0,n=!1,r=void 0;try{for(var i,o=this.header.fields[Symbol.iterator]();!(e=(i=o.next()).done);e=!0){var a=i.value,s=this.columns[this.fieldsColumnsIndex[a]];s&&s.visible&&t.push(a)}}catch(t){n=!0,r=t}finally{try{e||null==o.return||o.return()}finally{if(n)throw r}}return t}},{key:"initHiddenRows",value:function(){this.hiddenRows=[]}},{key:"getOptions",value:function(){var e=t.extend({},this.options);return delete e.data,t.extend(!0,{},e)}},{key:"refreshOptions",value:function(e){va.compareObjects(this.options,e,!0)||(this.options=t.extend(this.options,e),this.trigger("refresh-options",this.options),this.destroy(),this.init())}},{key:"getData",value:function(t){var e=this,n=this.options.data;if(!this.searchText&&!this.options.customSearch&&void 0===this.options.sortName&&va.isEmptyObject(this.filterColumns)&&va.isEmptyObject(this.filterColumnsPartial)||t&&t.unfiltered||(n=this.data),t&&t.useCurrentPage&&(n=n.slice(this.pageFrom-1,this.pageTo)),t&&!t.includeHiddenRows){var r=this.getHiddenRows();n=n.filter(function(t){return-1===va.findIndex(r,t)})}return t&&t.formatted&&n.forEach(function(t){for(var n=0,r=Object.entries(t);n<r.length;n++){var i=s(r[n],2),o=i[0],a=i[1],l=e.columns[e.fieldsColumnsIndex[o]];if(!l)return;t[o]=va.calculateObjectValue(l,e.header.formatters[l.fieldIndex],[a,t,t.index,l.field],a)}}),n}},{key:"getSelections",value:function(){var t=this;return this.options.data.filter(function(e){return!0===e[t.header.stateField]})}},{key:"load",value:function(t){var e=!1,n=t;this.options.pagination&&"server"===this.options.sidePagination&&(this.options.totalRows=n[this.options.totalField],this.options.totalNotFiltered=n[this.options.totalNotFilteredField],this.footerData=n[this.options.footerField]?[n[this.options.footerField]]:void 0),e=n.fixedScroll,n=Array.isArray(n)?n:n[this.options.dataField],this.initData(n),this.initSearch(),this.initPagination(),this.initBody(e)}},{key:"append",value:function(t){this.initData(t,"append"),this.initSearch(),this.initPagination(),this.initSort(),this.initBody(!0)}},{key:"prepend",value:function(t){this.initData(t,"prepend"),this.initSearch(),this.initPagination(),this.initSort(),this.initBody(!0)}},{key:"remove",value:function(t){var e,n,r=this.options.data.length;if(t.hasOwnProperty("field")&&t.hasOwnProperty("values")){for(e=r-1;e>=0;e--){n=this.options.data[e],(n.hasOwnProperty(t.field)||"$index"===t.field)&&((n.hasOwnProperty(t.field)||"$index"!==t.field?t.values.includes(n[t.field]):t.values.includes(e))&&(this.options.data.splice(e,1),"server"===this.options.sidePagination&&(this.options.totalRows-=1)))}r!==this.options.data.length&&(this.initSearch(),this.initPagination(),this.initSort(),this.initBody(!0))}}},{key:"removeAll",value:function(){this.options.data.length>0&&(this.options.data.splice(0,this.options.data.length),this.initSearch(),this.initPagination(),this.initBody(!0))}},{key:"insertRow",value:function(t){t.hasOwnProperty("index")&&t.hasOwnProperty("row")&&(this.options.data.splice(t.index,0,t.row),this.initSearch(),this.initPagination(),this.initSort(),this.initBody(!0))}},{key:"updateRow",value:function(e){var n=Array.isArray(e)?e:[e],r=!0,i=!1,o=void 0;try{for(var a,s=n[Symbol.iterator]();!(r=(a=s.next()).done);r=!0){var l=a.value;l.hasOwnProperty("index")&&l.hasOwnProperty("row")&&(l.hasOwnProperty("replace")&&l.replace?this.options.data[l.index]=l.row:t.extend(this.options.data[l.index],l.row))}}catch(t){i=!0,o=t}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}this.initSearch(),this.initPagination(),this.initSort(),this.initBody(!0)}},{key:"getRowByUniqueId",value:function(t){var e,n,r,i=this.options.uniqueId,o=this.options.data.length,a=t,s=null;for(e=o-1;e>=0;e--){if(n=this.options.data[e],n.hasOwnProperty(i))r=n[i];else{if(!n._data||!n._data.hasOwnProperty(i))continue;r=n._data[i]}if("string"==typeof r?a=a.toString():"number"==typeof r&&(Number(r)===r&&r%1==0?a=parseInt(a):r===Number(r)&&0!==r&&(a=parseFloat(a))),r===a){s=n;break}}return s}},{key:"updateByUniqueId",value:function(e){var n=Array.isArray(e)?e:[e],r=!0,i=!1,o=void 0;try{for(var a,s=n[Symbol.iterator]();!(r=(a=s.next()).done);r=!0){var l=a.value;if(l.hasOwnProperty("id")&&l.hasOwnProperty("row")){var c=this.options.data.indexOf(this.getRowByUniqueId(l.id));-1!==c&&(l.hasOwnProperty("replace")&&l.replace?this.options.data[c]=l.row:t.extend(this.options.data[c],l.row))}}}catch(t){i=!0,o=t}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}this.initSearch(),this.initPagination(),this.initSort(),this.initBody(!0)}},{key:"removeByUniqueId",value:function(t){var e=this.options.data.length,n=this.getRowByUniqueId(t);n&&this.options.data.splice(this.options.data.indexOf(n),1),e!==this.options.data.length&&(this.initSearch(),this.initPagination(),this.initBody(!0))}},{key:"updateCell",value:function(t){t.hasOwnProperty("index")&&t.hasOwnProperty("field")&&t.hasOwnProperty("value")&&(this.data[t.index][t.field]=t.value,!1!==t.reinit&&(this.initSort(),this.initBody(!0)))}},{key:"updateCellByUniqueId",value:function(t){var e=this;(Array.isArray(t)?t:[t]).forEach(function(t){var n=t.id,r=t.field,i=t.value,o=e.options.data.indexOf(e.getRowByUniqueId(n));-1!==o&&(e.options.data[o][r]=i)}),!1!==t.reinit&&(this.initSort(),this.initBody(!0))}},{key:"showRow",value:function(t){this._toggleRow(t,!0)}},{key:"hideRow",value:function(t){this._toggleRow(t,!1)}},{key:"_toggleRow",value:function(t,e){var n;if(t.hasOwnProperty("index")?n=this.getData()[t.index]:t.hasOwnProperty("uniqueId")&&(n=this.getRowByUniqueId(t.uniqueId)),n){var r=va.findIndex(this.hiddenRows,n);e||-1!==r?e&&r>-1&&this.hiddenRows.splice(r,1):this.hiddenRows.push(n),this.initBody(!0),this.initPagination()}}},{key:"getHiddenRows",value:function(t){if(t)return this.initHiddenRows(),this.initBody(!0),void this.initPagination();var e=this.getData(),n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done);r=!0){var l=a.value;this.hiddenRows.includes(l)&&n.push(l)}}catch(t){i=!0,o=t}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return this.hiddenRows=n,n}},{key:"showColumn",value:function(t){var e=this;(Array.isArray(t)?t:[t]).forEach(function(t){e._toggleColumn(e.fieldsColumnsIndex[t],!0,!0)})}},{key:"hideColumn",value:function(t){var e=this;(Array.isArray(t)?t:[t]).forEach(function(t){e._toggleColumn(e.fieldsColumnsIndex[t],!1,!0)})}},{key:"_toggleColumn",value:function(t,e,n){if(-1!==t&&this.columns[t].visible!==e&&(this.columns[t].visible=e,this.initHeader(),this.initSearch(),this.initPagination(),this.initBody(),this.options.showColumns)){var r=this.$toolbar.find('.keep-open input:not(".toggle-all")').prop("disabled",!1);n&&r.filter(va.sprintf('[value="%s"]',t)).prop("checked",e),r.filter(":checked").length<=this.options.minimumCountColumns&&r.filter(":checked").prop("disabled",!0)}}},{key:"getVisibleColumns",value:function(){var t=this;return this.columns.filter(function(e){return e.visible&&!t.isSelectionColumn(e)})}},{key:"getHiddenColumns",value:function(){return this.columns.filter(function(t){return!t.visible})}},{key:"isSelectionColumn",value:function(t){return t.radio||t.checkbox}},{key:"showAllColumns",value:function(){this._toggleAllColumns(!0)}},{key:"hideAllColumns",value:function(){this._toggleAllColumns(!1)}},{key:"_toggleAllColumns",value:function(e){var n=this,r=!0,i=!1,o=void 0;try{for(var a,s=this.columns.slice().reverse()[Symbol.iterator]();!(r=(a=s.next()).done);r=!0){var l=a.value;if(l.switchable){if(!e&&this.options.showColumns&&this.getVisibleColumns().length===this.options.minimumCountColumns)continue;l.visible=e}}}catch(t){i=!0,o=t}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}if(this.initHeader(),this.initSearch(),this.initPagination(),this.initBody(),this.options.showColumns){var c=this.$toolbar.find('.keep-open input[type="checkbox"]:not(".toggle-all")').prop("disabled",!1);e?c.prop("checked",e):c.get().reverse().forEach(function(r){c.filter(":checked").length>n.options.minimumCountColumns&&t(r).prop("checked",e)}),c.filter(":checked").length<=this.options.minimumCountColumns&&c.filter(":checked").prop("disabled",!0)}}},{key:"mergeCells",value:function(t){var e,n,r=t.index,i=this.getVisibleFields().indexOf(t.field),o=t.rowspan||1,a=t.colspan||1,s=this.$body.find(">tr");i+=va.getDetailViewIndexOffset(this.options);var l=s.eq(r).find(">td").eq(i);if(!(r<0||i<0||r>=this.data.length)){for(e=r;e<r+o;e++)for(n=i;n<i+a;n++)s.eq(e).find(">td").eq(n).hide();l.attr("rowspan",o).attr("colspan",a).show()}}},{key:"checkAll",value:function(){this._toggleCheckAll(!0)}},{key:"uncheckAll",value:function(){this._toggleCheckAll(!1)}},{key:"_toggleCheckAll",value:function(t){var e=this.getSelections();this.$selectAll.add(this.$selectAll_).prop("checked",t),this.$selectItem.filter(":enabled").prop("checked",t),this.updateRows(),this.updateSelected();var n=this.getSelections();if(t)return void this.trigger("check-all",n,e);this.trigger("uncheck-all",n,e)}},{key:"checkInvert",value:function(){var e=this.$selectItem.filter(":enabled"),n=e.filter(":checked");e.each(function(e,n){t(n).prop("checked",!t(n).prop("checked"))}),this.updateRows(),this.updateSelected(),this.trigger("uncheck-some",n),n=this.getSelections(),this.trigger("check-some",n)}},{key:"check",value:function(t){this._toggleCheck(!0,t)}},{key:"uncheck",value:function(t){this._toggleCheck(!1,t)}},{key:"_toggleCheck",value:function(t,e){var n=this.$selectItem.filter('[data-index="'.concat(e,'"]')),r=this.options.data[e];if(n.is(":radio")||this.options.singleSelect||this.options.multipleSelectRow&&!this.multipleSelectRowCtrlKey&&!this.multipleSelectRowShiftKey){var i=!0,o=!1,a=void 0;try{for(var s,l=this.options.data[Symbol.iterator]();!(i=(s=l.next()).done);i=!0){s.value[this.header.stateField]=!1}}catch(t){o=!0,a=t}finally{try{i||null==l.return||l.return()}finally{if(o)throw a}}this.$selectItem.filter(":checked").not(n).prop("checked",!1)}if(r[this.header.stateField]=t,this.options.multipleSelectRow){if(this.multipleSelectRowShiftKey&&this.multipleSelectRowLastSelectedIndex>=0)for(var c=[this.multipleSelectRowLastSelectedIndex,e].sort(),u=c[0]+1;u<c[1];u++)this.data[u][this.header.stateField]=!0,this.$selectItem.filter('[data-index="'.concat(u,'"]')).prop("checked",!0);this.multipleSelectRowCtrlKey=!1,this.multipleSelectRowShiftKey=!1,this.multipleSelectRowLastSelectedIndex=t?e:-1}n.prop("checked",t),this.updateSelected(),this.trigger(t?"check":"uncheck",this.data[e],n)}},{key:"checkBy",value:function(t){this._toggleCheckBy(!0,t)}},{key:"uncheckBy",value:function(t){this._toggleCheckBy(!1,t)}},{key:"_toggleCheckBy",value:function(t,e){var n=this;if(e.hasOwnProperty("field")&&e.hasOwnProperty("values")){var r=[];this.data.forEach(function(i,o){if(!i.hasOwnProperty(e.field))return!1;if(e.values.includes(i[e.field])){var a=n.$selectItem.filter(":enabled").filter(va.sprintf('[data-index="%s"]',o));if(a=t?a.not(":checked"):a.filter(":checked"),!a.length)return;a.prop("checked",t),i[n.header.stateField]=t,r.push(i),n.trigger(t?"check":"uncheck",i,a)}}),this.updateSelected(),this.trigger(t?"check-some":"uncheck-some",r)}}},{key:"refresh",value:function(t){t&&t.url&&(this.options.url=t.url),t&&t.pageNumber&&(this.options.pageNumber=t.pageNumber),t&&t.pageSize&&(this.options.pageSize=t.pageSize),this.trigger("refresh",this.initServer(t&&t.silent,t&&t.query,t&&t.url))}},{key:"destroy",value:function(){this.$el.insertBefore(this.$container),t(this.options.toolbar).insertBefore(this.$el),this.$container.next().remove(),this.$container.remove(),this.$el.html(this.$el_.html()).css("margin-top","0").attr("class",this.$el_.attr("class")||"")}},{key:"resetView",value:function(t){var e=0;if(t&&t.height&&(this.options.height=t.height),this.$selectAll.prop("checked",this.$selectItem.length>0&&this.$selectItem.length===this.$selectItem.filter(":checked").length),this.$tableContainer.toggleClass("has-card-view",this.options.cardView),!this.options.cardView&&this.options.showHeader&&this.options.height?(this.$tableHeader.show(),this.resetHeader(),e+=this.$header.outerHeight(!0)+1):(this.$tableHeader.hide(),this.trigger("post-header")),!this.options.cardView&&this.options.showFooter&&(this.$tableFooter.show(),this.fitFooter(),this.options.height&&(e+=this.$tableFooter.outerHeight(!0))),this.$container.hasClass("fullscreen"))this.$tableContainer.css("height",""),this.$tableContainer.css("width","");else if(this.options.height){this.$tableBorder&&(this.$tableBorder.css("width",""),this.$tableBorder.css("height",""));var n=this.$toolbar.outerHeight(!0),r=this.$pagination.outerHeight(!0),i=this.options.height-n-r,o=this.$tableBody.find(">table"),a=o.outerHeight();if(this.$tableContainer.css("height","".concat(i,"px")),this.$tableBorder&&o.is(":visible")){var s=i-a-2;this.$tableBody[0].scrollWidth-this.$tableBody.innerWidth()&&(s-=va.getScrollBarWidth()),this.$tableBorder.css("width","".concat(o.outerWidth(),"px")),this.$tableBorder.css("height","".concat(s,"px"))}}this.options.cardView?(this.$el.css("margin-top","0"),this.$tableContainer.css("padding-bottom","0"),this.$tableFooter.hide()):(this.getCaret(),this.$tableContainer.css("padding-bottom","".concat(e,"px"))),this.trigger("reset-view")}},{key:"showLoading",value:function(){this.$tableLoading.toggleClass("open",!0);var t=this.options.loadingFontSize;"auto"===this.options.loadingFontSize&&(t=.04*this.$tableLoading.width(),t=Math.max(12,t),t=Math.min(32,t),t="".concat(t,"px")),this.$tableLoading.find(".loading-text").css("font-size",t)}},{key:"hideLoading",value:function(){this.$tableLoading.toggleClass("open",!1)}},{key:"togglePagination",value:function(){this.options.pagination=!this.options.pagination;var t=this.options.showButtonIcons?this.options.pagination?this.options.icons.paginationSwitchDown:this.options.icons.paginationSwitchUp:"",e=this.options.showButtonText?this.options.pagination?this.options.formatPaginationSwitchUp():this.options.formatPaginationSwitchDown():"";this.$toolbar.find('button[name="paginationSwitch"]').html(va.sprintf(this.constants.html.icon,this.options.iconsPrefix,t)+" "+e),this.updatePagination()}},{key:"toggleFullscreen",value:function(){this.$el.closest(".bootstrap-table").toggleClass("fullscreen"),this.resetView()}},{key:"toggleView",value:function(){this.options.cardView=!this.options.cardView,this.initHeader();var t=this.options.showButtonIcons?this.options.cardView?this.options.icons.toggleOn:this.options.icons.toggleOff:"",e=this.options.showButtonText?this.options.cardView?this.options.formatToggleOff():this.options.formatToggleOn():"";this.$toolbar.find('button[name="toggle"]').html(va.sprintf(this.constants.html.icon,this.options.iconsPrefix,t)+" "+e),this.initBody(),this.trigger("toggle",this.options.cardView)}},{key:"resetSearch",value:function(t){var e=va.getSearchInput(this);e.val(t||""),this.onSearch({currentTarget:e})}},{key:"filterBy",value:function(e,n){this.filterOptions=va.isEmptyObject(n)?this.options.filterOptions:t.extend(this.options.filterOptions,n),this.filterColumns=va.isEmptyObject(e)?{}:e,this.options.pageNumber=1,this.initSearch(),this.updatePagination()}},{key:"scrollTo",value:function(e){var n={unit:"px",value:0};"object"===r(e)?n=Object.assign(n,e):"string"==typeof e&&"bottom"===e?n.value=this.$tableBody[0].scrollHeight:"string"!=typeof e&&"number"!=typeof e||(n.value=e);var i=n.value;"rows"===n.unit&&(i=0,this.$body.find("> tr:lt(".concat(n.value,")")).each(function(e,n){i+=t(n).outerHeight(!0)})),this.$tableBody.scrollTop(i)}},{key:"getScrollPosition",value:function(){return this.$tableBody.scrollTop()}},{key:"selectPage",value:function(t){t>0&&t<=this.options.totalPages&&(this.options.pageNumber=t,this.updatePagination())}},{key:"prevPage",value:function(){this.options.pageNumber>1&&(this.options.pageNumber--,this.updatePagination())}},{key:"nextPage",value:function(){this.options.pageNumber<this.options.totalPages&&(this.options.pageNumber++,this.updatePagination())}},{key:"toggleDetailView",value:function(t,e){this.$body.find(va.sprintf('> tr[data-index="%s"]',t)).next().is("tr.detail-view")?this.collapseRow(t):this.expandRow(t,e),this.resetView()}},{key:"expandRow",value:function(t,e){var n=this.data[t],r=this.$body.find(va.sprintf('> tr[data-index="%s"][data-has-detail-view]',t));if(!r.next().is("tr.detail-view")){this.options.detailViewIcon&&r.find("a.detail-icon").html(va.sprintf(this.constants.html.icon,this.options.iconsPrefix,this.options.icons.detailClose)),r.after(va.sprintf('<tr class="detail-view"><td colspan="%s"></td></tr>',r.children("td").length));var i=r.next().find("td"),o=e||this.options.detailFormatter,a=va.calculateObjectValue(this.options,o,[t,n,i],"");1===i.length&&i.append(a),this.trigger("expand-row",t,n,i)}}},{key:"expandRowByUniqueId",value:function(t){var e=this.getRowByUniqueId(t);e&&this.expandRow(this.data.indexOf(e))}},{key:"collapseRow",value:function(t){var e=this.data[t],n=this.$body.find(va.sprintf('> tr[data-index="%s"][data-has-detail-view]',t));n.next().is("tr.detail-view")&&(this.options.detailViewIcon&&n.find("a.detail-icon").html(va.sprintf(this.constants.html.icon,this.options.iconsPrefix,this.options.icons.detailOpen)),this.trigger("collapse-row",t,e,n.next()),n.next().remove())}},{key:"collapseRowByUniqueId",value:function(t){var e=this.getRowByUniqueId(t);e&&this.collapseRow(this.data.indexOf(e))}},{key:"expandAllRows",value:function(){for(var e=this.$body.find("> tr[data-index][data-has-detail-view]"),n=0;n<e.length;n++)this.expandRow(t(e[n]).data("index"))}},{key:"collapseAllRows",value:function(){for(var e=this.$body.find("> tr[data-index][data-has-detail-view]"),n=0;n<e.length;n++)this.collapseRow(t(e[n]).data("index"))}},{key:"updateColumnTitle",value:function(e){if(e.hasOwnProperty("field")&&e.hasOwnProperty("title")&&(this.columns[this.fieldsColumnsIndex[e.field]].title=this.options.escape?va.escapeHTML(e.title):e.title,this.columns[this.fieldsColumnsIndex[e.field]].visible)){(void 0!==this.options.height?this.$tableHeader:this.$header).find("th[data-field]").each(function(n,r){if(t(r).data("field")===e.field)return t(t(r).find(".th-inner")[0]).text(e.title),!1})}}},{key:"updateFormatText",value:function(t,e){/^format/.test(t)&&this.options[t]&&("string"==typeof e?this.options[t]=function(){return e}:"function"==typeof e&&(this.options[t]=e),this.initToolbar(),this.initPagination(),this.initBody())}}]),e}();return ba.VERSION=oa.VERSION,ba.DEFAULTS=oa.DEFAULTS,ba.LOCALES=oa.LOCALES,ba.COLUMN_DEFAULTS=oa.COLUMN_DEFAULTS,ba.METHODS=oa.METHODS,ba.EVENTS=oa.EVENTS,t.BootstrapTable=ba,t.fn.bootstrapTable=function(e){for(var n=arguments.length,i=new Array(n>1?n-1:0),o=1;o<n;o++)i[o-1]=arguments[o];var a;return this.each(function(n,o){var s=t(o).data("bootstrap.table"),l=t.extend({},ba.DEFAULTS,t(o).data(),"object"===r(e)&&e);if("string"==typeof e){var c;if(!oa.METHODS.includes(e))throw new Error("Unknown method: ".concat(e));if(!s)return;a=(c=s)[e].apply(c,i),"destroy"===e&&t(o).removeData("bootstrap.table")}s||(s=new t.BootstrapTable(o,l),t(o).data("bootstrap.table",s),s.init())}),void 0===a?this:a},t.fn.bootstrapTable.Constructor=ba,t.fn.bootstrapTable.theme=oa.THEME,t.fn.bootstrapTable.VERSION=oa.VERSION,t.fn.bootstrapTable.defaults=ba.DEFAULTS,t.fn.bootstrapTable.columnDefaults=ba.COLUMN_DEFAULTS,t.fn.bootstrapTable.events=ba.EVENTS,t.fn.bootstrapTable.locales=ba.LOCALES,t.fn.bootstrapTable.methods=ba.METHODS,t.fn.bootstrapTable.utils=va,t(function(){t('[data-toggle="table"]').bootstrapTable()}),ba}),function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(require("jquery")):"function"==typeof define&&define.amd?define(["jquery"],e):(t=t||self,e(t.jQuery))}(this,function(t){"use strict";function e(t,e){return e={exports:{}},t(e,e.exports),e.exports}function n(t,e){return RegExp(t,e)}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function o(t,e,n){return e&&i(t.prototype,e),n&&i(t,n),t}function a(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function s(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&c(t,e)}function l(t){return(l=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function c(t,e){return(c=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function u(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function f(t,e){return!e||"object"!=typeof e&&"function"!=typeof e?u(t):e}function h(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=l(t)););return t}function d(t,e,n){return(d="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=h(t,e);if(r){var i=Object.getOwnPropertyDescriptor(r,e);return i.get?i.get.call(n):i.value}})(t,e,n||t)}t=t&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t;var p="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},g=function(t){return t&&t.Math==Math&&t},m=g("object"==typeof globalThis&&globalThis)||g("object"==typeof window&&window)||g("object"==typeof self&&self)||g("object"==typeof p&&p)||Function("return this")(),v=function(t){try{return!!t()}catch(t){return!0}},y=!v(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}),b={}.propertyIsEnumerable,w=Object.getOwnPropertyDescriptor,x=w&&!b.call({1:2},1),S=x?function(t){var e=w(this,t);return!!e&&e.enumerable}:b,A={f:S},N=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},L={}.toString,k=function(t){return L.call(t).slice(8,-1)},C="".split,O=v(function(){return!Object("z").propertyIsEnumerable(0)})?function(t){return"String"==k(t)?C.call(t,""):Object(t)}:Object,_=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t},P=function(t){return O(_(t))},I=function(t){return"object"==typeof t?null!==t:"function"==typeof t},T=function(t,e){if(!I(t))return t;var n,r;if(e&&"function"==typeof(n=t.toString)&&!I(r=n.call(t)))return r;if("function"==typeof(n=t.valueOf)&&!I(r=n.call(t)))return r;if(!e&&"function"==typeof(n=t.toString)&&!I(r=n.call(t)))return r;throw TypeError("Can't convert object to primitive value")},E={}.hasOwnProperty,j=function(t,e){return E.call(t,e)},F=m.document,R=I(F)&&I(F.createElement),B=function(t){return R?F.createElement(t):{}},M=!y&&!v(function(){return 7!=Object.defineProperty(B("div"),"a",{get:function(){return 7}}).a}),D=Object.getOwnPropertyDescriptor,q=y?D:function(t,e){if(t=P(t),e=T(e,!0),M)try{return D(t,e)}catch(t){}if(j(t,e))return N(!A.f.call(t,e),t[e])},U={f:q},z=function(t){if(!I(t))throw TypeError(String(t)+" is not an object");return t},H=Object.defineProperty,$=y?H:function(t,e,n){if(z(t),e=T(e,!0),z(n),M)try{return H(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(t[e]=n.value),t},V={f:$},W=y?function(t,e,n){+return V.f(t,e,N(1,n))}:function(t,e,n){return t[e]=n,t},G=function(t,e){try{W(m,t,e)}catch(n){m[t]=e}return e},Y=m["__core-js_shared__"]||G("__core-js_shared__",{}),J=Y,X=Function.toString;"function"!=typeof J.inspectSource&&(J.inspectSource=function(t){return X.call(t)});var K,Q,Z,tt=J.inspectSource,et=m.WeakMap,nt="function"==typeof et&&/native code/.test(tt(et)),rt=e(function(t){(t.exports=function(t,e){return J[t]||(J[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.6.0",mode:"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})}),it=0,ot=Math.random(),at=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++it+ot).toString(36)},st=rt("keys"),lt=function(t){return st[t]||(st[t]=at(t))},ct={},ut=m.WeakMap,ft=function(t){return Z(t)?Q(t):K(t,{})},ht=function(t){return function(e){var n;if(!I(e)||(n=Q(e)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return n}};if(nt){var dt=new ut,pt=dt.get,gt=dt.has,mt=dt.set;K=function(t,e){return mt.call(dt,t,e),e},Q=function(t){return pt.call(dt,t)||{}},Z=function(t){return gt.call(dt,t)}}else{var vt=lt("state");ct[vt]=!0,K=function(t,e){return W(t,vt,e),e},Q=function(t){return j(t,vt)?t[vt]:{}},Z=function(t){return j(t,vt)}}var yt,bt={set:K,get:Q,has:Z,enforce:ft,getterFor:ht},wt=e(function(t){var e=bt.get,n=bt.enforce,r=String(String).split("String");(t.exports=function(t,e,i,o){var a=!!o&&!!o.unsafe,s=!!o&&!!o.enumerable,l=!!o&&!!o.noTargetGet;if("function"==typeof i&&("string"!=typeof e||j(i,"name")||W(i,"name",e),n(i).source=r.join("string"==typeof e?e:"")),t===m)return void(s?t[e]=i:G(e,i));a?!l&&t[e]&&(s=!0):delete t[e],s?t[e]=i:W(t,e,i)})(Function.prototype,"toString",function(){return"function"==typeof this&&e(this).source||tt(this)})}),xt=m,St=function(t){return"function"==typeof t?t:void 0},At=function(t,e){return arguments.length<2?St(xt[t])||St(m[t]):xt[t]&&xt[t][e]||m[t]&&m[t][e]},Nt=Math.ceil,Lt=Math.floor,kt=function(t){return isNaN(t=+t)?0:(t>0?Lt:Nt)(t)},Ct=Math.min,Ot=function(t){return t>0?Ct(kt(t),9007199254740991):0},_t=Math.max,Pt=Math.min,It=function(t,e){var n=kt(t);return n<0?_t(n+e,0):Pt(n,e)},Tt=function(t){return function(e,n,r){var i,o=P(e),a=Ot(o.length),s=It(r,a);if(t&&n!=n){for(;a>s;)if((i=o[s++])!=i)return!0}else for(;a>s;s++)if((t||s in o)&&o[s]===n)return t||s||0;return!t&&-1}},Et={includes:Tt(!0),indexOf:Tt(!1)},jt=Et.indexOf,Ft=function(t,e){var n,r=P(t),i=0,o=[];for(n in r)!j(ct,n)&&j(r,n)&&o.push(n);for(;e.length>i;)j(r,n=e[i++])&&(~jt(o,n)||o.push(n));return o},Rt=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Bt=Rt.concat("length","prototype"),Mt=Object.getOwnPropertyNames||function(t){return Ft(t,Bt)},Dt={f:Mt},qt=Object.getOwnPropertySymbols,Ut={f:qt},zt=At("Reflect","ownKeys")||function(t){var e=Dt.f(z(t)),n=Ut.f;return n?e.concat(n(t)):e},Ht=function(t,e){for(var n=zt(e),r=V.f,i=U.f,o=0;o<n.length;o++){var a=n[o];j(t,a)||r(t,a,i(e,a))}},$t=/#|\.prototype\./,Vt=function(t,e){var n=Gt[Wt(t)];return n==Jt||n!=Yt&&("function"==typeof e?v(e):!!e)},Wt=Vt.normalize=function(t){return String(t).replace($t,".").toLowerCase()},Gt=Vt.data={},Yt=Vt.NATIVE="N",Jt=Vt.POLYFILL="P",Xt=Vt,Kt=U.f,Qt=function(t,e){var n,r,i,o,a,s=t.target,l=t.global,c=t.stat;if(n=l?m:c?m[s]||G(s,{}):(m[s]||{}).prototype)for(r in e){if(o=e[r],t.noTargetGet?(a=Kt(n,r),i=a&&a.value):i=n[r],!Xt(l?r:s+(c?".":"#")+r,t.forced)&&void 0!==i){if(typeof o==typeof i)continue;Ht(o,i)}(t.sham||i&&i.sham)&&W(o,"sham",!0),wt(n,r,o,t)}},Zt=!!Object.getOwnPropertySymbols&&!v(function(){return!String(Symbol())}),te=Zt&&!Symbol.sham&&"symbol"==typeof Symbol(),ee=Array.isArray||function(t){return"Array"==k(t)},ne=function(t){return Object(_(t))},re=Object.keys||function(t){return Ft(t,Rt)},ie=y?Object.defineProperties:function(t,e){z(t);for(var n,r=re(e),i=r.length,o=0;i>o;)V.f(t,n=r[o++],e[n]);return t},oe=At("document","documentElement"),ae=lt("IE_PROTO"),se=function(){},le=function(t){return"<script>"+t+"<\/script>"},ce=function(t){t.write(le("")),t.close();var e=t.parentWindow.Object;return t=null,e},ue=function(){var t,e=B("iframe");return e.style.display="none",oe.appendChild(e),e.src=String("javascript:"),t=e.contentWindow.document,t.open(),t.write(le("document.F=Object")),t.close(),t.F},fe=function(){try{yt=document.domain&&new ActiveXObject("htmlfile")}catch(t){}fe=yt?ce(yt):ue();for(var t=Rt.length;t--;)delete fe.prototype[Rt[t]];return fe()};ct[ae]=!0;var he=Object.create||function(t,e){var n;return null!==t?(se.prototype=z(t),n=new se,se.prototype=null,n[ae]=t):n=fe(),void 0===e?n:ie(n,e)},de=Dt.f,pe={}.toString,ge="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],me=function(t){try{return de(t)}catch(t){return ge.slice()}},ve=function(t){return ge&&"[object Window]"==pe.call(t)?me(t):de(P(t))},ye={f:ve},be=rt("wks"),we=m.Symbol,xe=te?we:at,Se=function(t){return j(be,t)||(Zt&&j(we,t)?be[t]=we[t]:be[t]=xe("Symbol."+t)),be[t]},Ae=Se,Ne={f:Ae},Le=V.f,ke=function(t){var e=xt.Symbol||(xt.Symbol={});j(e,t)||Le(e,t,{value:Ne.f(t)})},Ce=V.f,Oe=Se("toStringTag"),_e=function(t,e,n){t&&!j(t=n?t:t.prototype,Oe)&&Ce(t,Oe,{configurable:!0,value:e})},Pe=function(t){if("function"!=typeof t)throw TypeError(String(t)+" is not a function");return t},Ie=function(t,e,n){if(Pe(t),void 0===e)return t;switch(n){case 0:return function(){return t.call(e)};case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,i){return t.call(e,n,r,i)}}return function(){return t.apply(e,arguments)}},Te=Se("species"),Ee=function(t,e){var n;return ee(t)&&(n=t.constructor,"function"!=typeof n||n!==Array&&!ee(n.prototype)?I(n)&&null===(n=n[Te])&&(n=void 0):n=void 0),new(void 0===n?Array:n)(0===e?0:e)},je=[].push,Fe=function(t){var e=1==t,n=2==t,r=3==t,i=4==t,o=6==t,a=5==t||o;return function(s,l,c,u){for(var f,h,d=ne(s),p=O(d),g=Ie(l,c,3),m=Ot(p.length),v=0,y=u||Ee,b=e?y(s,m):n?y(s,0):void 0;m>v;v++)if((a||v in p)&&(f=p[v],h=g(f,v,d),t))if(e)b[v]=h;else if(h)switch(t){case 3:return!0;case 5:return f;case 6:return v;case 2:je.call(b,f)}else if(i)return!1;return o?-1:r||i?i:b}},Re={forEach:Fe(0),map:Fe(1),filter:Fe(2),some:Fe(3),every:Fe(4),find:Fe(5),findIndex:Fe(6)},Be=Re.forEach,Me=lt("hidden"),De=Se("toPrimitive"),qe=bt.set,Ue=bt.getterFor("Symbol"),ze=Object.prototype,He=m.Symbol,$e=At("JSON","stringify"),Ve=U.f,We=V.f,Ge=ye.f,Ye=A.f,Je=rt("symbols"),Xe=rt("op-symbols"),Ke=rt("string-to-symbol-registry"),Qe=rt("symbol-to-string-registry"),Ze=rt("wks"),tn=m.QObject,en=!tn||!tn.prototype||!tn.prototype.findChild,nn=y&&v(function(){return 7!=he(We({},"a",{get:function(){return We(this,"a",{value:7}).a}})).a})?function(t,e,n){var r=Ve(ze,e);r&&delete ze[e],We(t,e,n),r&&t!==ze&&We(ze,e,r)}:We,rn=function(t,e){var n=Je[t]=he(He.prototype);return qe(n,{type:"Symbol",tag:t,description:e}),y||(n.description=e),n},on=Zt&&"symbol"==typeof He.iterator?function(t){return"symbol"==typeof t}:function(t){return Object(t)instanceof He},an=function(t,e,n){t===ze&&an(Xe,e,n),z(t);var r=T(e,!0);return z(n),j(Je,r)?(n.enumerable?(j(t,Me)&&t[Me][r]&&(t[Me][r]=!1),n=he(n,{enumerable:N(0,!1)})):(j(t,Me)||We(t,Me,N(1,{})),t[Me][r]=!0),nn(t,r,n)):We(t,r,n)},sn=function(t,e){z(t);var n=P(e),r=re(n).concat(hn(n));return Be(r,function(e){y&&!cn.call(n,e)||an(t,e,n[e])}),t},ln=function(t,e){return void 0===e?he(t):sn(he(t),e)},cn=function(t){var e=T(t,!0),n=Ye.call(this,e);return!(this===ze&&j(Je,e)&&!j(Xe,e))&&(!(n||!j(this,e)||!j(Je,e)||j(this,Me)&&this[Me][e])||n)},un=function(t,e){var n=P(t),r=T(e,!0);if(n!==ze||!j(Je,r)||j(Xe,r)){var i=Ve(n,r);return!i||!j(Je,r)||j(n,Me)&&n[Me][r]||(i.enumerable=!0),i}},fn=function(t){var e=Ge(P(t)),n=[];return Be(e,function(t){j(Je,t)||j(ct,t)||n.push(t)}),n},hn=function(t){var e=t===ze,n=Ge(e?Xe:P(t)),r=[];return Be(n,function(t){!j(Je,t)||e&&!j(ze,t)||r.push(Je[t])}),r};if(Zt||(He=function(){if(this instanceof He)throw TypeError("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?String(arguments[0]):void 0,e=at(t),n=function(t){this===ze&&n.call(Xe,t),j(this,Me)&&j(this[Me],e)&&(this[Me][e]=!1),nn(this,e,N(1,t))};return y&&en&&nn(ze,e,{configurable:!0,set:n}),rn(e,t)},wt(He.prototype,"toString",function(){return Ue(this).tag}),A.f=cn,V.f=an,U.f=un,Dt.f=ye.f=fn,Ut.f=hn,y&&(We(He.prototype,"description",{configurable:!0,get:function(){return Ue(this).description}}),wt(ze,"propertyIsEnumerable",cn,{unsafe:!0}))),te||(Ne.f=function(t){return rn(Se(t),t)}),Qt({global:!0,wrap:!0,forced:!Zt,sham:!Zt},{Symbol:He}),Be(re(Ze),function(t){ke(t)}),Qt({target:"Symbol",stat:!0,forced:!Zt},{for:function(t){var e=String(t);if(j(Ke,e))return Ke[e];var n=He(e);return Ke[e]=n,Qe[n]=e,n},keyFor:function(t){if(!on(t))throw TypeError(t+" is not a symbol");if(j(Qe,t))return Qe[t]},useSetter:function(){en=!0},useSimple:function(){en=!1}}),Qt({target:"Object",stat:!0,forced:!Zt,sham:!y},{create:ln,defineProperty:an,defineProperties:sn,getOwnPropertyDescriptor:un}),Qt({target:"Object",stat:!0,forced:!Zt},{getOwnPropertyNames:fn,getOwnPropertySymbols:hn}),Qt({target:"Object",stat:!0,forced:v(function(){Ut.f(1)})},{getOwnPropertySymbols:function(t){return Ut.f(ne(t))}}),$e){var dn=!Zt||v(function(){var t=He();return"[null]"!=$e([t])||"{}"!=$e({a:t})||"{}"!=$e(Object(t))});Qt({target:"JSON",stat:!0,forced:dn},{stringify:function(t,e,n){for(var r,i=[t],o=1;arguments.length>o;)i.push(arguments[o++]);if(r=e,(I(e)||void 0!==t)&&!on(t))return ee(e)||(e=function(t,e){if("function"==typeof r&&(e=r.call(this,t,e)),!on(e))return e}),i[1]=e,$e.apply(null,i)}})}He.prototype[De]||W(He.prototype,De,He.prototype.valueOf),_e(He,"Symbol"),ct[Me]=!0;var pn=V.f,gn=m.Symbol;if(y&&"function"==typeof gn&&(!("description"in gn.prototype)||void 0!==gn().description)){var mn={},vn=function(){var t=arguments.length<1||void 0===arguments[0]?void 0:String(arguments[0]),e=this instanceof vn?new gn(t):void 0===t?gn():gn(t);return""===t&&(mn[e]=!0),e};Ht(vn,gn);var yn=vn.prototype=gn.prototype;yn.constructor=vn;var bn=yn.toString,wn="Symbol(test)"==String(gn("test")),xn=/^Symbol\((.*)\)[^)]+$/;pn(yn,"description",{configurable:!0,get:function(){var t=I(this)?this.valueOf():this,e=bn.call(t);if(j(mn,t))return"";var n=wn?e.slice(7,-1):e.replace(xn,"$1");return""===n?void 0:n}}),Qt({global:!0,forced:!0},{Symbol:vn})}ke("iterator");var Sn,An,Nn=function(t,e,n){var r=T(e);r in t?V.f(t,r,N(0,n)):t[r]=n},Ln=At("navigator","userAgent")||"",kn=m.process,Cn=kn&&kn.versions,On=Cn&&Cn.v8;On?(Sn=On.split("."),An=Sn[0]+Sn[1]):Ln&&(!(Sn=Ln.match(/Edge\/(\d+)/))||Sn[1]>=74)&&(Sn=Ln.match(/Chrome\/(\d+)/))&&(An=Sn[1]);var _n=An&&+An,Pn=Se("species"),In=function(t){return _n>=51||!v(function(){var e=[],n=e.constructor={};return n[Pn]=function(){return{foo:1}},1!==e[t](Boolean).foo})},Tn=Se("isConcatSpreadable"),En=_n>=51||!v(function(){var t=[];return t[Tn]=!1,t.concat()[0]!==t}),jn=In("concat"),Fn=function(t){if(!I(t))return!1;var e=t[Tn];return void 0!==e?!!e:ee(t)};Qt({target:"Array",proto:!0,forced:!En||!jn},{concat:function(t){var e,n,r,i,o,a=ne(this),s=Ee(a,0),l=0;for(e=-1,r=arguments.length;e<r;e++)if(o=-1===e?a:arguments[e],Fn(o)){if(i=Ot(o.length),l+i>9007199254740991)throw TypeError("Maximum allowed index exceeded");for(n=0;n<i;n++,l++)n in o&&Nn(s,l,o[n])}else{if(l>=9007199254740991)throw TypeError("Maximum allowed index exceeded");Nn(s,l++,o)}return s.length=l,s}});var Rn=Se("unscopables"),Bn=Array.prototype;void 0==Bn[Rn]&&V.f(Bn,Rn,{configurable:!0,value:he(null)});var Mn=function(t){Bn[Rn][t]=!0},Dn=Re.find,qn=!0;"find"in[]&&Array(1).find(function(){qn=!1}),Qt({target:"Array",proto:!0,forced:qn},{find:function(t){return Dn(this,t,arguments.length>1?arguments[1]:void 0)}}),Mn("find");var Un,zn,Hn,$n=!v(function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}),Vn=lt("IE_PROTO"),Wn=Object.prototype,Gn=$n?Object.getPrototypeOf:function(t){return t=ne(t),j(t,Vn)?t[Vn]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?Wn:null},Yn=Se("iterator"),Jn=!1,Xn=function(){return this};[].keys&&(Hn=[].keys(),"next"in Hn?(zn=Gn(Gn(Hn)))!==Object.prototype&&(Un=zn):Jn=!0),void 0==Un&&(Un={}),j(Un,Yn)||W(Un,Yn,Xn);var Kn={IteratorPrototype:Un,BUGGY_SAFARI_ITERATORS:Jn},Qn=Kn.IteratorPrototype,Zn=function(t,e,n){var r=e+" Iterator";return t.prototype=he(Qn,{next:N(1,n)}),_e(t,r,!1),t},tr=function(t){if(!I(t)&&null!==t)throw TypeError("Can't set "+String(t)+" as a prototype");return t},er=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{t=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set,t.call(n,[]),e=n instanceof Array}catch(t){}return function(n,r){return z(n),tr(r),e?t.call(n,r):n.__proto__=r,n}}():void 0),nr=Kn.IteratorPrototype,rr=Kn.BUGGY_SAFARI_ITERATORS,ir=Se("iterator"),or=function(){return this},ar=function(t,e,n,r,i,o,a){Zn(n,e,r);var s,l,c,u=function(t){if(t===i&&g)return g;if(!rr&&t in d)return d[t];switch(t){case"keys":case"values":case"entries":return function(){return new n(this,t)}}return function(){return new n(this)}},f=e+" Iterator",h=!1,d=t.prototype,p=d[ir]||d["@@iterator"]||i&&d[i],g=!rr&&p||u(i),m="Array"==e?d.entries||p:p;if(m&&(s=Gn(m.call(new t)),nr!==Object.prototype&&s.next&&(Gn(s)!==nr&&(er?er(s,nr):"function"!=typeof s[ir]&&W(s,ir,or)),_e(s,f,!0))),"values"==i&&p&&"values"!==p.name&&(h=!0,g=function(){return p.call(this)}),d[ir]!==g&&W(d,ir,g),i)if(l={values:u("values"),keys:o?g:u("keys"),entries:u("entries")},a)for(c in l)!rr&&!h&&c in d||wt(d,c,l[c]);else Qt({target:e,proto:!0,forced:rr||h},l);return l},sr=bt.set,lr=bt.getterFor("Array Iterator"),cr=ar(Array,"Array",function(t,e){sr(this,{type:"Array Iterator",target:P(t),index:0,kind:e})},function(){var t=lr(this),e=t.target,n=t.kind,r=t.index++;return!e||r>=e.length?(t.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:e[r],done:!1}:{value:[r,e[r]],done:!1}},"values");Mn("keys"),Mn("values"),Mn("entries");var ur=function(t,e){var n=[][t];return!n||!v(function(){n.call(null,e||function(){throw 1},1)})},fr=[].join,hr=O!=Object,dr=ur("join",",");Qt({target:"Array",proto:!0,forced:hr||dr},{join:function(t){return fr.call(P(this),void 0===t?",":t)}});var pr=Re.map,gr=In("map"),mr=gr&&!v(function(){[].map.call({length:-1,0:1},function(t){throw t})});Qt({target:"Array",proto:!0,forced:!gr||!mr},{map:function(t){return pr(this,t,arguments.length>1?arguments[1]:void 0)}});var vr=Se("species"),yr=[].slice,br=Math.max;Qt({target:"Array",proto:!0,forced:!In("slice")},{slice:function(t,e){var n,r,i,o=P(this),a=Ot(o.length),s=It(t,a),l=It(void 0===e?a:e,a);if(ee(o)&&(n=o.constructor,"function"!=typeof n||n!==Array&&!ee(n.prototype)?I(n)&&null===(n=n[vr])&&(n=void 0):n=void 0,n===Array||void 0===n))return yr.call(o,s,l);for(r=new(void 0===n?Array:n)(br(l-s,0)),i=0;s<l;s++,i++)s in o&&Nn(r,i,o[s]);return r.length=i,r}});var wr=Object.assign,xr=Object.defineProperty,Sr=!wr||v(function(){if(y&&1!==wr({b:1},wr(xr({},"a",{enumerable:!0,get:function(){xr(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},e={},n=Symbol(),r="abcdefghijklmnopqrst";return t[n]=7,r.split("").forEach(function(t){e[t]=t}),7!=wr({},t)[n]||re(wr({},e)).join("")!=r})?function(t,e){for(var n=ne(t),r=arguments.length,i=1,o=Ut.f,a=A.f;r>i;)for(var s,l=O(arguments[i++]),c=o?re(l).concat(o(l)):re(l),u=c.length,f=0;u>f;)s=c[f++],y&&!a.call(l,s)||(n[s]=l[s]);return n}:wr;Qt({target:"Object",stat:!0,forced:Object.assign!==Sr},{assign:Sr});var Ar=Se("toStringTag"),Nr={};Nr[Ar]="z";var Lr="[object z]"===String(Nr),kr=Se("toStringTag"),Cr="Arguments"==k(function(){return arguments}()),Or=function(t,e){try{return t[e]}catch(t){}},_r=Lr?k:function(t){var e,n,r;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=Or(e=Object(t),kr))?n:Cr?k(e):"Object"==(r=k(e))&&"function"==typeof e.callee?"Arguments":r},Pr=Lr?{}.toString:function(){return"[object "+_r(this)+"]"};Lr||wt(Object.prototype,"toString",Pr,{unsafe:!0});var Ir=function(){var t=z(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e},Tr=v(function(){var t=n("a","y");return t.lastIndex=2,null!=t.exec("abcd")}),Er=v(function(){var t=n("^r","gy");return t.lastIndex=2,null!=t.exec("str")}),jr={UNSUPPORTED_Y:Tr,BROKEN_CARET:Er},Fr=RegExp.prototype.exec,Rr=String.prototype.replace,Br=Fr,Mr=function(){var t=/a/,e=/b*/g;return Fr.call(t,"a"),Fr.call(e,"a"),0!==t.lastIndex||0!==e.lastIndex}(),Dr=jr.UNSUPPORTED_Y||jr.BROKEN_CARET,qr=void 0!==/()??/.exec("")[1];(Mr||qr||Dr)&&(Br=function(t){var e,n,r,i,o=this,a=Dr&&o.sticky,s=Ir.call(o),l=o.source,c=0,u=t;return a&&(s=s.replace("y",""),-1===s.indexOf("g")&&(s+="g"),u=String(t).slice(o.lastIndex),o.lastIndex>0&&(!o.multiline||o.multiline&&"\n"!==t[o.lastIndex-1])&&(l="(?: "+l+")",u=" "+u,c++),n=new RegExp("^(?:"+l+")",s)),qr&&(n=new RegExp("^"+l+"$(?!\\s)",s)),Mr&&(e=o.lastIndex),r=Fr.call(a?n:o,u),a?r?(r.input=r.input.slice(c),r[0]=r[0].slice(c),r.index=o.lastIndex,o.lastIndex+=r[0].length):o.lastIndex=0:Mr&&r&&(o.lastIndex=o.global?r.index+r[0].length:e),qr&&r&&r.length>1&&Rr.call(r[0],n,function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(r[i]=void 0)}),r});var Ur=Br;Qt({target:"RegExp",proto:!0,forced:/./.exec!==Ur},{exec:Ur});var zr=function(t){return function(e,n){var r,i,o=String(_(e)),a=kt(n),s=o.length;return a<0||a>=s?t?"":void 0:(r=o.charCodeAt(a),r<55296||r>56319||a+1===s||(i=o.charCodeAt(a+1))<56320||i>57343?t?o.charAt(a):r:t?o.slice(a,a+2):i-56320+(r-55296<<10)+65536)}},Hr={codeAt:zr(!1),charAt:zr(!0)},$r=Hr.charAt,Vr=bt.set,Wr=bt.getterFor("String Iterator");ar(String,"String",function(t){Vr(this,{type:"String Iterator",string:String(t),index:0})},function(){var t,e=Wr(this),n=e.string,r=e.index;return r>=n.length?{value:void 0,done:!0}:(t=$r(n,r),e.index+=t.length,{value:t,done:!1})});var Gr=Se("species"),Yr=!v(function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")}),Jr=function(){return"$0"==="a".replace(/./,"$0")}(),Xr=!v(function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var n="ab".split(t);return 2!==n.length||"a"!==n[0]||"b"!==n[1]}),Kr=function(t,e,n,r){var i=Se(t),o=!v(function(){var e={};return e[i]=function(){return 7},7!=""[t](e)}),a=o&&!v(function(){var e=!1,n=/a/;return"split"===t&&(n={},n.constructor={},n.constructor[Gr]=function(){return n},n.flags="",n[i]=/./[i]),n.exec=function(){return e=!0,null},n[i](""),!e});if(!o||!a||"replace"===t&&(!Yr||!Jr)||"split"===t&&!Xr){var s=/./[i],l=n(i,""[t],function(t,e,n,r,i){return e.exec===Ur?o&&!i?{done:!0,value:s.call(e,n,r)}:{done:!0,value:t.call(n,e,r)}:{done:!1}},{REPLACE_KEEPS_$0:Jr}),c=l[0],u=l[1];wt(String.prototype,t,c),wt(RegExp.prototype,i,2==e?function(t,e){return u.call(t,this,e)}:function(t){return u.call(t,this)})}r&&W(RegExp.prototype[i],"sham",!0)},Qr=Hr.charAt,Zr=function(t,e,n){return e+(n?Qr(t,e).length:1)},ti=function(t,e){var n=t.exec;if("function"==typeof n){var r=n.call(t,e);if("object"!=typeof r)throw TypeError("RegExp exec method returned something other than an Object or null");return r}if("RegExp"!==k(t))throw TypeError("RegExp#exec called on incompatible receiver");return Ur.call(t,e)},ei=Math.max,ni=Math.min,ri=Math.floor,ii=/\$([$&'`]|\d\d?|<[^>]*>)/g,oi=/\$([$&'`]|\d\d?)/g,ai=function(t){return void 0===t?t:String(t)};Kr("replace",2,function(t,e,n,r){function i(t,n,r,i,o,a){var s=r+t.length,l=i.length,c=oi;return void 0!==o&&(o=ne(o),c=ii),e.call(a,c,function(e,a){var c;switch(a.charAt(0)){case"$":return"$";case"&":return t;case"`":return n.slice(0,r);case"'":return n.slice(s);case"<":c=o[a.slice(1,-1)];break;default:var u=+a;if(0===u)return e;if(u>l){var f=ri(u/10);return 0===f?e:f<=l?void 0===i[f-1]?a.charAt(1):i[f-1]+a.charAt(1):e}c=i[u-1]}return void 0===c?"":c})}return[function(n,r){var i=_(this),o=void 0==n?void 0:n[t];return void 0!==o?o.call(n,i,r):e.call(String(i),n,r)},function(t,o){if(r.REPLACE_KEEPS_$0||"string"==typeof o&&-1===o.indexOf("$0")){var a=n(e,t,this,o);if(a.done)return a.value}var s=z(t),l=String(this),c="function"==typeof o;c||(o=String(o));var u=s.global;if(u){var f=s.unicode;s.lastIndex=0}for(var h=[];;){var d=ti(s,l);if(null===d)break;if(h.push(d),!u)break;""===String(d[0])&&(s.lastIndex=Zr(l,Ot(s.lastIndex),f))}for(var p="",g=0,m=0;m<h.length;m++){d=h[m];for(var v=String(d[0]),y=ei(ni(kt(d.index),l.length),0),b=[],w=1;w<d.length;w++)b.push(ai(d[w]));var x=d.groups;if(c){var S=[v].concat(b,y,l);void 0!==x&&S.push(x);var A=String(o.apply(void 0,S))}else A=i(v,l,y,b,x,o);y>=g&&(p+=l.slice(g,y)+A,g=y+v.length)}return p+l.slice(g)}]});var si=Se("match"),li=function(t){var e;return I(t)&&(void 0!==(e=t[si])?!!e:"RegExp"==k(t))},ci=Se("species"),ui=function(t,e){var n,r=z(t).constructor;return void 0===r||void 0==(n=z(r)[ci])?e:Pe(n)},fi=[].push,hi=Math.min,di=!v(function(){return!RegExp(4294967295,"y")});Kr("split",2,function(t,e,n){var r;return r="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(t,n){var r=String(_(this)),i=void 0===n?4294967295:n>>>0;if(0===i)return[];if(void 0===t)return[r];if(!li(t))return e.call(r,t,i);for(var o,a,s,l=[],c=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),u=0,f=new RegExp(t.source,c+"g");(o=Ur.call(f,r))&&!((a=f.lastIndex)>u&&(l.push(r.slice(u,o.index)),o.length>1&&o.index<r.length&&fi.apply(l,o.slice(1)),s=o[0].length,u=a,l.length>=i));)f.lastIndex===o.index&&f.lastIndex++;return u===r.length?!s&&f.test("")||l.push(""):l.push(r.slice(u)),l.length>i?l.slice(0,i):l}:"0".split(void 0,0).length?function(t,n){return void 0===t&&0===n?[]:e.call(this,t,n)}:e,[function(e,n){var i=_(this),o=void 0==e?void 0:e[t];return void 0!==o?o.call(e,i,n):r.call(String(i),e,n)},function(t,i){var o=n(r,t,this,i,r!==e);if(o.done)return o.value;var a=z(t),s=String(this),l=ui(a,RegExp),c=a.unicode,u=(a.ignoreCase?"i":"")+(a.multiline?"m":"")+(a.unicode?"u":"")+(di?"y":"g"),f=new l(di?a:"^(?:"+a.source+")",u),h=void 0===i?4294967295:i>>>0;if(0===h)return[];if(0===s.length)return null===ti(f,s)?[s]:[];for(var d=0,p=0,g=[];p<s.length;){f.lastIndex=di?p:0;var m,v=ti(f,di?s:s.slice(p));if(null===v||(m=hi(Ot(f.lastIndex+(di?0:p)),s.length))===d)p=Zr(s,p,c);else{if(g.push(s.slice(d,p)),g.length===h)return g;for(var y=1;y<=v.length-1;y++)if(g.push(v[y]),g.length===h)return g;p=d=m}}return g.push(s.slice(d)),g}]},!di);var pi={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},gi=Re.forEach,mi=ur("forEach")?function(t){return gi(this,t,arguments.length>1?arguments[1]:void 0)}:[].forEach;for(var vi in pi){var yi=m[vi],bi=yi&&yi.prototype;if(bi&&bi.forEach!==mi)try{W(bi,"forEach",mi)}catch(t){bi.forEach=mi}}var wi=Se("iterator"),xi=Se("toStringTag"),Si=cr.values;for(var Ai in pi){var Ni=m[Ai],Li=Ni&&Ni.prototype;if(Li){if(Li[wi]!==Si)try{W(Li,wi,Si)}catch(t){Li[wi]=Si}if(Li[xi]||W(Li,xi,Ai),pi[Ai])for(var ki in cr)if(Li[ki]!==cr[ki])try{W(Li,ki,cr[ki])}catch(t){Li[ki]=cr[ki]}}}var Ci=t.fn.bootstrapTable.utils,Oi={json:"JSON",xml:"XML",png:"PNG",csv:"CSV",txt:"TXT",sql:"SQL",doc:"MS-Word",excel:"MS-Excel",xlsx:"MS-Excel (OpenXML)",powerpoint:"MS-Powerpoint",pdf:"PDF"};t.extend(t.fn.bootstrapTable.defaults,{showExport:!1,exportDataType:"basic",exportTypes:["json","xml","csv","txt","sql","excel"],exportOptions:{onCellHtmlData:function(t,e,n,r){return t.is("th")?t.find(".th-inner").text():r}},exportFooter:!1}),t.extend(t.fn.bootstrapTable.columnDefaults,{forceExport:!1,forceHide:!1}),t.extend(t.fn.bootstrapTable.defaults.icons,{export:{bootstrap3:"glyphicon-export icon-share",materialize:"file_download","bootstrap-table":"icon-download"}[t.fn.bootstrapTable.theme]||"fa-download"}),t.extend(t.fn.bootstrapTable.locales,{formatExport:function(){return"Export data"}}),t.extend(t.fn.bootstrapTable.defaults,t.fn.bootstrapTable.locales),t.fn.bootstrapTable.methods.push("exportTable"),t.extend(t.fn.bootstrapTable.defaults,{onExportSaved:function(t){return!1}}),t.extend(t.fn.bootstrapTable.Constructor.EVENTS,{"export-saved.bs.table":"onExportSaved"}),t.BootstrapTable=function(e){function n(){return r(this,n),f(this,l(n).apply(this,arguments))}return s(n,e),o(n,[{key:"initToolbar",value:function(){var e,r=this,i=this.options;this.showToolbar=this.showToolbar||i.showExport;this.$toolbar.find(">.columns");if(this.options.showExport){var o=i.exportTypes;if("string"==typeof o){o=o.slice(1,-1).replace(/ /g,"").split(",").map(function(t){return t.slice(1,-1)})}if(this.$export=this.$toolbar.find(">.columns div.export"),this.$export.length)return void this.updateExportButton();this.buttons=Object.assign(this.buttons,{export:{html:1===o.length?'\n <div class="export '.concat(this.constants.classes.buttonsDropdown,'"\n data-type="').concat(o[0],'">\n <button class="').concat(this.constants.buttonsClass,'"\n aria-label="Export"\n type="button"\n title="').concat(i.formatExport(),'">\n ').concat(i.showButtonIcons?Ci.sprintf(this.constants.html.icon,i.iconsPrefix,i.icons.export):"","\n ").concat(i.showButtonText?i.formatExport():"","\n </button>\n </div>\n "):'\n <div class="export '.concat(this.constants.classes.buttonsDropdown,'">\n <button class="').concat(this.constants.buttonsClass,' dropdown-toggle"\n aria-label="Export"\n data-toggle="dropdown"\n type="button"\n title="').concat(i.formatExport(),'">\n ').concat(i.showButtonIcons?Ci.sprintf(this.constants.html.icon,i.iconsPrefix,i.icons.export):"","\n ").concat(i.showButtonText?i.formatExport():"","\n ").concat(this.constants.html.dropdownCaret,"\n </button>\n </div>\n ")}})}for(var a=arguments.length,s=new Array(a),c=0;c<a;c++)s[c]=arguments[c];if((e=d(l(n.prototype),"initToolbar",this)).call.apply(e,[this].concat(s)),this.$export=this.$toolbar.find(">.columns div.export"),this.options.showExport){var u=t(this.constants.html.toolbarDropdown.join("")),f=this.$export;if(o.length>1){this.$export.append(u),u.children().length&&(u=u.children().eq(0));var h=!0,p=!1,g=void 0;try{for(var m,v=o[Symbol.iterator]();!(h=(m=v.next()).done);h=!0){var y=m.value;if(Oi.hasOwnProperty(y)){var b=t(Ci.sprintf(this.constants.html.pageDropdownItem,"",Oi[y]));b.attr("data-type",y),u.append(b)}}}catch(t){p=!0,g=t}finally{try{h||null==v.return||v.return()}finally{if(p)throw g}}f=u.children()}this.updateExportButton(),f.click(function(e){e.preventDefault();var n=t(e.currentTarget).data("type"),i={type:n,escape:!1};r.exportTable(i)}),this.handleToolbar()}}},{key:"handleToolbar",value:function(){this.$export&&("foundation"===t.fn.bootstrapTable.theme?this.$export.find(".dropdown-pane").attr("id","toolbar-export-id"):"materialize"===t.fn.bootstrapTable.theme&&this.$export.find(".dropdown-content").attr("id","toolbar-export-id"),d(l(n.prototype),"handleToolbar",this)&&d(l(n.prototype),"handleToolbar",this).call(this))}},{key:"exportTable",value:function(e){var n=this,r=this.options,i=this.header.stateField,o=r.cardView,s=function(a){i&&n.hideColumn(i),o&&n.toggleView(),n.columns.forEach(function(t){t.forceHide&&n.hideColumn(t.field)});var s=n.getData();if(r.exportFooter){var l=n.$tableFooter.find("tr").first(),c={},u=[];t.each(l.children(),function(e,r){var i=t(r).children(".th-inner").first().html();c[n.columns[e].field]=" "===i?null:i,u.push(i)}),n.$body.append(n.$body.children().last()[0].outerHTML);var f=n.$body.children().last();t.each(f.children(),function(e,n){t(n).html(u[e])})}var h=n.getHiddenColumns();h.forEach(function(t){t.forceExport&&n.showColumn(t.field)}),"function"==typeof r.exportOptions.fileName&&(e.fileName=r.exportOptions.fileName()),n.$el.tableExport(t.extend({onAfterSaveToFile:function(){r.exportFooter&&n.load(s),i&&n.showColumn(i),o&&n.toggleView(),h.forEach(function(t){t.forceExport&&n.hideColumn(t.field)}),n.columns.forEach(function(t){t.forceHide&&n.showColumn(t.field)}),a&&a()}},r.exportOptions,e))};if("all"===r.exportDataType&&r.pagination){var l="server"===r.sidePagination?"post-body.bs.table":"page-change.bs.table",c=this.options.virtualScroll;this.$el.one(l,function(){setTimeout(function(){s(function(){n.options.virtualScroll=c,n.togglePagination()})},0)}),this.options.virtualScroll=!1,this.togglePagination(),this.trigger("export-saved",this.getData())}else if("selected"===r.exportDataType){var u=this.getData(),f=this.getSelections(),h=r.pagination;if(!f.length)return;"server"===r.sidePagination&&(u=a({total:r.totalRows},this.options.dataField,u),f=a({total:f.length},this.options.dataField,f)),this.load(f),h&&this.togglePagination(),s(function(){h&&n.togglePagination(),n.load(u)}),this.trigger("export-saved",f)}else s(),this.trigger("export-saved",this.getData(!0))}},{key:"updateSelected",value:function(){d(l(n.prototype),"updateSelected",this).call(this),this.updateExportButton()}},{key:"updateExportButton",value:function(){"selected"===this.options.exportDataType&&this.$export.find("> button").prop("disabled",!this.getSelections().length)}}]),n}(t.BootstrapTable)}),function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(require("jquery")):"function"==typeof define&&define.amd?define(["jquery"],e):(t=t||self,e(t.jQuery))}(this,function(t){"use strict";function e(t,e){return e={exports:{}},t(e,e.exports),e.exports}function n(t,e){return RegExp(t,e)}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function o(t,e,n){return e&&i(t.prototype,e),n&&i(t,n),t}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&l(t,e)}function s(t){return(s=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function l(t,e){return(l=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function c(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function u(t,e){return!e||"object"!=typeof e&&"function"!=typeof e?c(t):e}function f(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=s(t)););return t}function h(t,e,n){return(h="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=f(t,e);if(r){var i=Object.getOwnPropertyDescriptor(r,e);return i.get?i.get.call(n):i.value}})(t,e,n||t)}t=t&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t;var d="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},p=function(t){return t&&t.Math==Math&&t},g=p("object"==typeof globalThis&&globalThis)||p("object"==typeof window&&window)||p("object"==typeof self&&self)||p("object"==typeof d&&d)||Function("return this")(),m=function(t){try{return!!t()}catch(t){return!0}},v=!m(function(){+return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}),y={}.propertyIsEnumerable,b=Object.getOwnPropertyDescriptor,w=b&&!y.call({1:2},1),x=w?function(t){var e=b(this,t);return!!e&&e.enumerable}:y,S={f:x},A=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},N={}.toString,L=function(t){return N.call(t).slice(8,-1)},k="".split,C=m(function(){return!Object("z").propertyIsEnumerable(0)})?function(t){return"String"==L(t)?k.call(t,""):Object(t)}:Object,O=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t},_=function(t){return C(O(t))},P=function(t){return"object"==typeof t?null!==t:"function"==typeof t},I=function(t,e){if(!P(t))return t;var n,r;if(e&&"function"==typeof(n=t.toString)&&!P(r=n.call(t)))return r;if("function"==typeof(n=t.valueOf)&&!P(r=n.call(t)))return r;if(!e&&"function"==typeof(n=t.toString)&&!P(r=n.call(t)))return r;throw TypeError("Can't convert object to primitive value")},T={}.hasOwnProperty,E=function(t,e){return T.call(t,e)},j=g.document,F=P(j)&&P(j.createElement),R=function(t){return F?j.createElement(t):{}},B=!v&&!m(function(){return 7!=Object.defineProperty(R("div"),"a",{get:function(){return 7}}).a}),M=Object.getOwnPropertyDescriptor,D=v?M:function(t,e){if(t=_(t),e=I(e,!0),B)try{return M(t,e)}catch(t){}if(E(t,e))return A(!S.f.call(t,e),t[e])},q={f:D},U=function(t){if(!P(t))throw TypeError(String(t)+" is not an object");return t},z=Object.defineProperty,H=v?z:function(t,e,n){if(U(t),e=I(e,!0),U(n),B)try{return z(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(t[e]=n.value),t},$={f:H},V=v?function(t,e,n){return $.f(t,e,A(1,n))}:function(t,e,n){return t[e]=n,t},W=function(t,e){try{V(g,t,e)}catch(n){g[t]=e}return e},G=g["__core-js_shared__"]||W("__core-js_shared__",{}),Y=G,J=Function.toString;"function"!=typeof Y.inspectSource&&(Y.inspectSource=function(t){return J.call(t)});var X,K,Q,Z=Y.inspectSource,tt=g.WeakMap,et="function"==typeof tt&&/native code/.test(Z(tt)),nt=e(function(t){(t.exports=function(t,e){return Y[t]||(Y[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.6.0",mode:"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})}),rt=0,it=Math.random(),ot=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++rt+it).toString(36)},at=nt("keys"),st=function(t){return at[t]||(at[t]=ot(t))},lt={},ct=g.WeakMap,ut=function(t){return Q(t)?K(t):X(t,{})},ft=function(t){return function(e){var n;if(!P(e)||(n=K(e)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return n}};if(et){var ht=new ct,dt=ht.get,pt=ht.has,gt=ht.set;X=function(t,e){return gt.call(ht,t,e),e},K=function(t){return dt.call(ht,t)||{}},Q=function(t){return pt.call(ht,t)}}else{var mt=st("state");lt[mt]=!0,X=function(t,e){return V(t,mt,e),e},K=function(t){return E(t,mt)?t[mt]:{}},Q=function(t){return E(t,mt)}}var vt,yt={set:X,get:K,has:Q,enforce:ut,getterFor:ft},bt=e(function(t){var e=yt.get,n=yt.enforce,r=String(String).split("String");(t.exports=function(t,e,i,o){var a=!!o&&!!o.unsafe,s=!!o&&!!o.enumerable,l=!!o&&!!o.noTargetGet;if("function"==typeof i&&("string"!=typeof e||E(i,"name")||V(i,"name",e),n(i).source=r.join("string"==typeof e?e:"")),t===g)return void(s?t[e]=i:W(e,i));a?!l&&t[e]&&(s=!0):delete t[e],s?t[e]=i:V(t,e,i)})(Function.prototype,"toString",function(){return"function"==typeof this&&e(this).source||Z(this)})}),wt=g,xt=function(t){return"function"==typeof t?t:void 0},St=function(t,e){return arguments.length<2?xt(wt[t])||xt(g[t]):wt[t]&&wt[t][e]||g[t]&&g[t][e]},At=Math.ceil,Nt=Math.floor,Lt=function(t){return isNaN(t=+t)?0:(t>0?Nt:At)(t)},kt=Math.min,Ct=function(t){return t>0?kt(Lt(t),9007199254740991):0},Ot=Math.max,_t=Math.min,Pt=function(t,e){var n=Lt(t);return n<0?Ot(n+e,0):_t(n,e)},It=function(t){return function(e,n,r){var i,o=_(e),a=Ct(o.length),s=Pt(r,a);if(t&&n!=n){for(;a>s;)if((i=o[s++])!=i)return!0}else for(;a>s;s++)if((t||s in o)&&o[s]===n)return t||s||0;return!t&&-1}},Tt={includes:It(!0),indexOf:It(!1)},Et=Tt.indexOf,jt=function(t,e){var n,r=_(t),i=0,o=[];for(n in r)!E(lt,n)&&E(r,n)&&o.push(n);for(;e.length>i;)E(r,n=e[i++])&&(~Et(o,n)||o.push(n));return o},Ft=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Rt=Ft.concat("length","prototype"),Bt=Object.getOwnPropertyNames||function(t){return jt(t,Rt)},Mt={f:Bt},Dt=Object.getOwnPropertySymbols,qt={f:Dt},Ut=St("Reflect","ownKeys")||function(t){var e=Mt.f(U(t)),n=qt.f;return n?e.concat(n(t)):e},zt=function(t,e){for(var n=Ut(e),r=$.f,i=q.f,o=0;o<n.length;o++){var a=n[o];E(t,a)||r(t,a,i(e,a))}},Ht=/#|\.prototype\./,$t=function(t,e){var n=Wt[Vt(t)];return n==Yt||n!=Gt&&("function"==typeof e?m(e):!!e)},Vt=$t.normalize=function(t){return String(t).replace(Ht,".").toLowerCase()},Wt=$t.data={},Gt=$t.NATIVE="N",Yt=$t.POLYFILL="P",Jt=$t,Xt=q.f,Kt=function(t,e){var n,r,i,o,a,s=t.target,l=t.global,c=t.stat;if(n=l?g:c?g[s]||W(s,{}):(g[s]||{}).prototype)for(r in e){if(o=e[r],t.noTargetGet?(a=Xt(n,r),i=a&&a.value):i=n[r],!Jt(l?r:s+(c?".":"#")+r,t.forced)&&void 0!==i){if(typeof o==typeof i)continue;zt(o,i)}(t.sham||i&&i.sham)&&V(o,"sham",!0),bt(n,r,o,t)}},Qt=!!Object.getOwnPropertySymbols&&!m(function(){return!String(Symbol())}),Zt=Qt&&!Symbol.sham&&"symbol"==typeof Symbol(),te=Array.isArray||function(t){return"Array"==L(t)},ee=function(t){return Object(O(t))},ne=Object.keys||function(t){return jt(t,Ft)},re=v?Object.defineProperties:function(t,e){U(t);for(var n,r=ne(e),i=r.length,o=0;i>o;)$.f(t,n=r[o++],e[n]);return t},ie=St("document","documentElement"),oe=st("IE_PROTO"),ae=function(){},se=function(t){return"<script>"+t+"<\/script>"},le=function(t){t.write(se("")),t.close();var e=t.parentWindow.Object;return t=null,e},ce=function(){var t,e=R("iframe");return e.style.display="none",ie.appendChild(e),e.src=String("javascript:"),t=e.contentWindow.document,t.open(),t.write(se("document.F=Object")),t.close(),t.F},ue=function(){try{vt=document.domain&&new ActiveXObject("htmlfile")}catch(t){}ue=vt?le(vt):ce();for(var t=Ft.length;t--;)delete ue.prototype[Ft[t]];return ue()};lt[oe]=!0;var fe=Object.create||function(t,e){var n;return null!==t?(ae.prototype=U(t),n=new ae,ae.prototype=null,n[oe]=t):n=ue(),void 0===e?n:re(n,e)},he=Mt.f,de={}.toString,pe="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],ge=function(t){try{return he(t)}catch(t){return pe.slice()}},me=function(t){return pe&&"[object Window]"==de.call(t)?ge(t):he(_(t))},ve={f:me},ye=nt("wks"),be=g.Symbol,we=Zt?be:ot,xe=function(t){return E(ye,t)||(Qt&&E(be,t)?ye[t]=be[t]:ye[t]=we("Symbol."+t)),ye[t]},Se=xe,Ae={f:Se},Ne=$.f,Le=function(t){var e=wt.Symbol||(wt.Symbol={});E(e,t)||Ne(e,t,{value:Ae.f(t)})},ke=$.f,Ce=xe("toStringTag"),Oe=function(t,e,n){t&&!E(t=n?t:t.prototype,Ce)&&ke(t,Ce,{configurable:!0,value:e})},_e=function(t){if("function"!=typeof t)throw TypeError(String(t)+" is not a function");return t},Pe=function(t,e,n){if(_e(t),void 0===e)return t;switch(n){case 0:return function(){return t.call(e)};case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,i){return t.call(e,n,r,i)}}return function(){return t.apply(e,arguments)}},Ie=xe("species"),Te=function(t,e){var n;return te(t)&&(n=t.constructor,"function"!=typeof n||n!==Array&&!te(n.prototype)?P(n)&&null===(n=n[Ie])&&(n=void 0):n=void 0),new(void 0===n?Array:n)(0===e?0:e)},Ee=[].push,je=function(t){var e=1==t,n=2==t,r=3==t,i=4==t,o=6==t,a=5==t||o;return function(s,l,c,u){for(var f,h,d=ee(s),p=C(d),g=Pe(l,c,3),m=Ct(p.length),v=0,y=u||Te,b=e?y(s,m):n?y(s,0):void 0;m>v;v++)if((a||v in p)&&(f=p[v],h=g(f,v,d),t))if(e)b[v]=h;else if(h)switch(t){case 3:return!0;case 5:return f;case 6:return v;case 2:Ee.call(b,f)}else if(i)return!1;return o?-1:r||i?i:b}},Fe={forEach:je(0),map:je(1),filter:je(2),some:je(3),every:je(4),find:je(5),findIndex:je(6)},Re=Fe.forEach,Be=st("hidden"),Me=xe("toPrimitive"),De=yt.set,qe=yt.getterFor("Symbol"),Ue=Object.prototype,ze=g.Symbol,He=St("JSON","stringify"),$e=q.f,Ve=$.f,We=ve.f,Ge=S.f,Ye=nt("symbols"),Je=nt("op-symbols"),Xe=nt("string-to-symbol-registry"),Ke=nt("symbol-to-string-registry"),Qe=nt("wks"),Ze=g.QObject,tn=!Ze||!Ze.prototype||!Ze.prototype.findChild,en=v&&m(function(){return 7!=fe(Ve({},"a",{get:function(){return Ve(this,"a",{value:7}).a}})).a})?function(t,e,n){var r=$e(Ue,e);r&&delete Ue[e],Ve(t,e,n),r&&t!==Ue&&Ve(Ue,e,r)}:Ve,nn=function(t,e){var n=Ye[t]=fe(ze.prototype);return De(n,{type:"Symbol",tag:t,description:e}),v||(n.description=e),n},rn=Qt&&"symbol"==typeof ze.iterator?function(t){return"symbol"==typeof t}:function(t){return Object(t)instanceof ze},on=function(t,e,n){t===Ue&&on(Je,e,n),U(t);var r=I(e,!0);return U(n),E(Ye,r)?(n.enumerable?(E(t,Be)&&t[Be][r]&&(t[Be][r]=!1),n=fe(n,{enumerable:A(0,!1)})):(E(t,Be)||Ve(t,Be,A(1,{})),t[Be][r]=!0),en(t,r,n)):Ve(t,r,n)},an=function(t,e){U(t);var n=_(e),r=ne(n).concat(fn(n));return Re(r,function(e){v&&!ln.call(n,e)||on(t,e,n[e])}),t},sn=function(t,e){return void 0===e?fe(t):an(fe(t),e)},ln=function(t){var e=I(t,!0),n=Ge.call(this,e);return!(this===Ue&&E(Ye,e)&&!E(Je,e))&&(!(n||!E(this,e)||!E(Ye,e)||E(this,Be)&&this[Be][e])||n)},cn=function(t,e){var n=_(t),r=I(e,!0);if(n!==Ue||!E(Ye,r)||E(Je,r)){var i=$e(n,r);return!i||!E(Ye,r)||E(n,Be)&&n[Be][r]||(i.enumerable=!0),i}},un=function(t){var e=We(_(t)),n=[];return Re(e,function(t){E(Ye,t)||E(lt,t)||n.push(t)}),n},fn=function(t){var e=t===Ue,n=We(e?Je:_(t)),r=[];return Re(n,function(t){!E(Ye,t)||e&&!E(Ue,t)||r.push(Ye[t])}),r};if(Qt||(ze=function(){if(this instanceof ze)throw TypeError("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?String(arguments[0]):void 0,e=ot(t),n=function(t){this===Ue&&n.call(Je,t),E(this,Be)&&E(this[Be],e)&&(this[Be][e]=!1),en(this,e,A(1,t))};return v&&tn&&en(Ue,e,{configurable:!0,set:n}),nn(e,t)},bt(ze.prototype,"toString",function(){return qe(this).tag}),S.f=ln,$.f=on,q.f=cn,Mt.f=ve.f=un,qt.f=fn,v&&(Ve(ze.prototype,"description",{configurable:!0,get:function(){return qe(this).description}}),bt(Ue,"propertyIsEnumerable",ln,{unsafe:!0}))),Zt||(Ae.f=function(t){return nn(xe(t),t)}),Kt({global:!0,wrap:!0,forced:!Qt,sham:!Qt},{Symbol:ze}),Re(ne(Qe),function(t){Le(t)}),Kt({target:"Symbol",stat:!0,forced:!Qt},{for:function(t){var e=String(t);if(E(Xe,e))return Xe[e];var n=ze(e);return Xe[e]=n,Ke[n]=e,n},keyFor:function(t){if(!rn(t))throw TypeError(t+" is not a symbol");if(E(Ke,t))return Ke[t]},useSetter:function(){tn=!0},useSimple:function(){tn=!1}}),Kt({target:"Object",stat:!0,forced:!Qt,sham:!v},{create:sn,defineProperty:on,defineProperties:an,getOwnPropertyDescriptor:cn}),Kt({target:"Object",stat:!0,forced:!Qt},{getOwnPropertyNames:un,getOwnPropertySymbols:fn}),Kt({target:"Object",stat:!0,forced:m(function(){qt.f(1)})},{getOwnPropertySymbols:function(t){return qt.f(ee(t))}}),He){var hn=!Qt||m(function(){var t=ze();return"[null]"!=He([t])||"{}"!=He({a:t})||"{}"!=He(Object(t))});Kt({target:"JSON",stat:!0,forced:hn},{stringify:function(t,e,n){for(var r,i=[t],o=1;arguments.length>o;)i.push(arguments[o++]);if(r=e,(P(e)||void 0!==t)&&!rn(t))return te(e)||(e=function(t,e){if("function"==typeof r&&(e=r.call(this,t,e)),!rn(e))return e}),i[1]=e,He.apply(null,i)}})}ze.prototype[Me]||V(ze.prototype,Me,ze.prototype.valueOf),Oe(ze,"Symbol"),lt[Be]=!0;var dn=$.f,pn=g.Symbol;if(v&&"function"==typeof pn&&(!("description"in pn.prototype)||void 0!==pn().description)){var gn={},mn=function(){var t=arguments.length<1||void 0===arguments[0]?void 0:String(arguments[0]),e=this instanceof mn?new pn(t):void 0===t?pn():pn(t);return""===t&&(gn[e]=!0),e};zt(mn,pn);var vn=mn.prototype=pn.prototype;vn.constructor=mn;var yn=vn.toString,bn="Symbol(test)"==String(pn("test")),wn=/^Symbol\((.*)\)[^)]+$/;dn(vn,"description",{configurable:!0,get:function(){var t=P(this)?this.valueOf():this,e=yn.call(t);if(E(gn,t))return"";var n=bn?e.slice(7,-1):e.replace(wn,"$1");return""===n?void 0:n}}),Kt({global:!0,forced:!0},{Symbol:mn})}Le("iterator");var xn,Sn,An=function(t,e,n){var r=I(e);r in t?$.f(t,r,A(0,n)):t[r]=n},Nn=St("navigator","userAgent")||"",Ln=g.process,kn=Ln&&Ln.versions,Cn=kn&&kn.v8;Cn?(xn=Cn.split("."),Sn=xn[0]+xn[1]):Nn&&(!(xn=Nn.match(/Edge\/(\d+)/))||xn[1]>=74)&&(xn=Nn.match(/Chrome\/(\d+)/))&&(Sn=xn[1]);var On=Sn&&+Sn,_n=xe("species"),Pn=function(t){return On>=51||!m(function(){var e=[],n=e.constructor={};return n[_n]=function(){return{foo:1}},1!==e[t](Boolean).foo})},In=xe("isConcatSpreadable"),Tn=On>=51||!m(function(){var t=[];return t[In]=!1,t.concat()[0]!==t}),En=Pn("concat"),jn=function(t){if(!P(t))return!1;var e=t[In];return void 0!==e?!!e:te(t)};Kt({target:"Array",proto:!0,forced:!Tn||!En},{concat:function(t){var e,n,r,i,o,a=ee(this),s=Te(a,0),l=0;for(e=-1,r=arguments.length;e<r;e++)if(o=-1===e?a:arguments[e],jn(o)){if(i=Ct(o.length),l+i>9007199254740991)throw TypeError("Maximum allowed index exceeded");for(n=0;n<i;n++,l++)n in o&&An(s,l,o[n])}else{if(l>=9007199254740991)throw TypeError("Maximum allowed index exceeded");An(s,l++,o)}return s.length=l,s}});var Fn=Fe.filter,Rn=Pn("filter"),Bn=Rn&&!m(function(){[].filter.call({length:-1,0:1},function(t){throw t})});Kt({target:"Array",proto:!0,forced:!Rn||!Bn},{filter:function(t){return Fn(this,t,arguments.length>1?arguments[1]:void 0)}});var Mn=xe("unscopables"),Dn=Array.prototype;void 0==Dn[Mn]&&$.f(Dn,Mn,{configurable:!0,value:fe(null)});var qn=function(t){Dn[Mn][t]=!0},Un=Fe.find,zn=!0;"find"in[]&&Array(1).find(function(){zn=!1}),Kt({target:"Array",proto:!0,forced:zn},{find:function(t){return Un(this,t,arguments.length>1?arguments[1]:void 0)}}),qn("find");var Hn,$n,Vn,Wn=!m(function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}),Gn=st("IE_PROTO"),Yn=Object.prototype,Jn=Wn?Object.getPrototypeOf:function(t){return t=ee(t),E(t,Gn)?t[Gn]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?Yn:null},Xn=xe("iterator"),Kn=!1,Qn=function(){return this};[].keys&&(Vn=[].keys(),"next"in Vn?($n=Jn(Jn(Vn)))!==Object.prototype&&(Hn=$n):Kn=!0),void 0==Hn&&(Hn={}),E(Hn,Xn)||V(Hn,Xn,Qn);var Zn={IteratorPrototype:Hn,BUGGY_SAFARI_ITERATORS:Kn},tr=Zn.IteratorPrototype,er=function(t,e,n){var r=e+" Iterator";return t.prototype=fe(tr,{next:A(1,n)}),Oe(t,r,!1),t},nr=function(t){if(!P(t)&&null!==t)throw TypeError("Can't set "+String(t)+" as a prototype");return t},rr=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{t=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set,t.call(n,[]),e=n instanceof Array}catch(t){}return function(n,r){return U(n),nr(r),e?t.call(n,r):n.__proto__=r,n}}():void 0),ir=Zn.IteratorPrototype,or=Zn.BUGGY_SAFARI_ITERATORS,ar=xe("iterator"),sr=function(){return this},lr=function(t,e,n,r,i,o,a){er(n,e,r);var s,l,c,u=function(t){if(t===i&&g)return g;if(!or&&t in d)return d[t];switch(t){case"keys":case"values":case"entries":return function(){return new n(this,t)}}return function(){return new n(this)}},f=e+" Iterator",h=!1,d=t.prototype,p=d[ar]||d["@@iterator"]||i&&d[i],g=!or&&p||u(i),m="Array"==e?d.entries||p:p;if(m&&(s=Jn(m.call(new t)),ir!==Object.prototype&&s.next&&(Jn(s)!==ir&&(rr?rr(s,ir):"function"!=typeof s[ar]&&V(s,ar,sr)),Oe(s,f,!0))),"values"==i&&p&&"values"!==p.name&&(h=!0,g=function(){return p.call(this)}),d[ar]!==g&&V(d,ar,g),i)if(l={values:u("values"),keys:o?g:u("keys"),entries:u("entries")},a)for(c in l)!or&&!h&&c in d||bt(d,c,l[c]);else Kt({target:e,proto:!0,forced:or||h},l);return l},cr=yt.set,ur=yt.getterFor("Array Iterator"),fr=lr(Array,"Array",function(t,e){cr(this,{type:"Array Iterator",target:_(t),index:0,kind:e})},function(){var t=ur(this),e=t.target,n=t.kind,r=t.index++;return!e||r>=e.length?(t.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:e[r],done:!1}:{value:[r,e[r]],done:!1}},"values");qn("keys"),qn("values"),qn("entries");var hr=function(t,e){var n=[][t];return!n||!m(function(){n.call(null,e||function(){throw 1},1)})},dr=[].join,pr=C!=Object,gr=hr("join",",");Kt({target:"Array",proto:!0,forced:pr||gr},{join:function(t){return dr.call(_(this),void 0===t?",":t)}});var mr=Fe.map,vr=Pn("map"),yr=vr&&!m(function(){[].map.call({length:-1,0:1},function(t){throw t})});Kt({target:"Array",proto:!0,forced:!vr||!yr},{map:function(t){return mr(this,t,arguments.length>1?arguments[1]:void 0)}});var br=xe("toStringTag"),wr={};wr[br]="z";var xr="[object z]"===String(wr),Sr=xe("toStringTag"),Ar="Arguments"==L(function(){return arguments}()),Nr=function(t,e){try{return t[e]}catch(t){}},Lr=xr?L:function(t){var e,n,r;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=Nr(e=Object(t),Sr))?n:Ar?L(e):"Object"==(r=L(e))&&"function"==typeof e.callee?"Arguments":r},kr=xr?{}.toString:function(){return"[object "+Lr(this)+"]"};xr||bt(Object.prototype,"toString",kr,{unsafe:!0});var Cr=function(){var t=U(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e},Or=m(function(){var t=n("a","y");return t.lastIndex=2,null!=t.exec("abcd")}),_r=m(function(){var t=n("^r","gy");return t.lastIndex=2,null!=t.exec("str")}),Pr={UNSUPPORTED_Y:Or,BROKEN_CARET:_r},Ir=RegExp.prototype.exec,Tr=String.prototype.replace,Er=Ir,jr=function(){var t=/a/,e=/b*/g;return Ir.call(t,"a"),Ir.call(e,"a"),0!==t.lastIndex||0!==e.lastIndex}(),Fr=Pr.UNSUPPORTED_Y||Pr.BROKEN_CARET,Rr=void 0!==/()??/.exec("")[1];(jr||Rr||Fr)&&(Er=function(t){var e,n,r,i,o=this,a=Fr&&o.sticky,s=Cr.call(o),l=o.source,c=0,u=t;return a&&(s=s.replace("y",""),-1===s.indexOf("g")&&(s+="g"),u=String(t).slice(o.lastIndex),o.lastIndex>0&&(!o.multiline||o.multiline&&"\n"!==t[o.lastIndex-1])&&(l="(?: "+l+")",u=" "+u,c++),n=new RegExp("^(?:"+l+")",s)),Rr&&(n=new RegExp("^"+l+"$(?!\\s)",s)),jr&&(e=o.lastIndex),r=Ir.call(a?n:o,u),a?r?(r.input=r.input.slice(c),r[0]=r[0].slice(c),r.index=o.lastIndex,o.lastIndex+=r[0].length):o.lastIndex=0:jr&&r&&(o.lastIndex=o.global?r.index+r[0].length:e),Rr&&r&&r.length>1&&Tr.call(r[0],n,function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(r[i]=void 0)}),r});var Br=Er;Kt({target:"RegExp",proto:!0,forced:/./.exec!==Br},{exec:Br});var Mr=RegExp.prototype,Dr=Mr.toString,qr=m(function(){return"/a/b"!=Dr.call({source:"a",flags:"b"})}),Ur="toString"!=Dr.name;(qr||Ur)&&bt(RegExp.prototype,"toString",function(){var t=U(this),e=String(t.source),n=t.flags;return"/"+e+"/"+String(void 0===n&&t instanceof RegExp&&!("flags"in Mr)?Cr.call(t):n)},{unsafe:!0});var zr=function(t){return function(e,n){var r,i,o=String(O(e)),a=Lt(n),s=o.length;return a<0||a>=s?t?"":void 0:(r=o.charCodeAt(a),r<55296||r>56319||a+1===s||(i=o.charCodeAt(a+1))<56320||i>57343?t?o.charAt(a):r:t?o.slice(a,a+2):i-56320+(r-55296<<10)+65536)}},Hr={codeAt:zr(!1),charAt:zr(!0)},$r=Hr.charAt,Vr=yt.set,Wr=yt.getterFor("String Iterator");lr(String,"String",function(t){Vr(this,{type:"String Iterator",string:String(t),index:0})},function(){var t,e=Wr(this),n=e.string,r=e.index;return r>=n.length?{value:void 0,done:!0}:(t=$r(n,r),e.index+=t.length,{value:t,done:!1})});var Gr=xe("species"),Yr=!m(function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")}),Jr=function(){return"$0"==="a".replace(/./,"$0")}(),Xr=!m(function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var n="ab".split(t);return 2!==n.length||"a"!==n[0]||"b"!==n[1]}),Kr=function(t,e,n,r){var i=xe(t),o=!m(function(){var e={};return e[i]=function(){return 7},7!=""[t](e)}),a=o&&!m(function(){var e=!1,n=/a/;return"split"===t&&(n={},n.constructor={},n.constructor[Gr]=function(){return n},n.flags="",n[i]=/./[i]),n.exec=function(){return e=!0,null},n[i](""),!e});if(!o||!a||"replace"===t&&(!Yr||!Jr)||"split"===t&&!Xr){var s=/./[i],l=n(i,""[t],function(t,e,n,r,i){return e.exec===Br?o&&!i?{done:!0,value:s.call(e,n,r)}:{done:!0,value:t.call(n,e,r)}:{done:!1}},{REPLACE_KEEPS_$0:Jr}),c=l[0],u=l[1];bt(String.prototype,t,c),bt(RegExp.prototype,i,2==e?function(t,e){return u.call(t,this,e)}:function(t){return u.call(t,this)})}r&&V(RegExp.prototype[i],"sham",!0)},Qr=Hr.charAt,Zr=function(t,e,n){return e+(n?Qr(t,e).length:1)},ti=function(t,e){var n=t.exec;if("function"==typeof n){var r=n.call(t,e);if("object"!=typeof r)throw TypeError("RegExp exec method returned something other than an Object or null");return r}if("RegExp"!==L(t))throw TypeError("RegExp#exec called on incompatible receiver");return Br.call(t,e)},ei=Math.max,ni=Math.min,ri=Math.floor,ii=/\$([$&'`]|\d\d?|<[^>]*>)/g,oi=/\$([$&'`]|\d\d?)/g,ai=function(t){return void 0===t?t:String(t)};Kr("replace",2,function(t,e,n,r){function i(t,n,r,i,o,a){var s=r+t.length,l=i.length,c=oi;return void 0!==o&&(o=ee(o),c=ii),e.call(a,c,function(e,a){var c;switch(a.charAt(0)){case"$":return"$";case"&":return t;case"`":return n.slice(0,r);case"'":return n.slice(s);case"<":c=o[a.slice(1,-1)];break;default:var u=+a;if(0===u)return e;if(u>l){var f=ri(u/10);return 0===f?e:f<=l?void 0===i[f-1]?a.charAt(1):i[f-1]+a.charAt(1):e}c=i[u-1]}return void 0===c?"":c})}return[function(n,r){var i=O(this),o=void 0==n?void 0:n[t];return void 0!==o?o.call(n,i,r):e.call(String(i),n,r)},function(t,o){if(r.REPLACE_KEEPS_$0||"string"==typeof o&&-1===o.indexOf("$0")){var a=n(e,t,this,o);if(a.done)return a.value}var s=U(t),l=String(this),c="function"==typeof o;c||(o=String(o));var u=s.global;if(u){var f=s.unicode;s.lastIndex=0}for(var h=[];;){var d=ti(s,l);if(null===d)break;if(h.push(d),!u)break;""===String(d[0])&&(s.lastIndex=Zr(l,Ct(s.lastIndex),f))}for(var p="",g=0,m=0;m<h.length;m++){d=h[m];for(var v=String(d[0]),y=ei(ni(Lt(d.index),l.length),0),b=[],w=1;w<d.length;w++)b.push(ai(d[w]));var x=d.groups;if(c){var S=[v].concat(b,y,l);void 0!==x&&S.push(x);var A=String(o.apply(void 0,S))}else A=i(v,l,y,b,x,o);y>=g&&(p+=l.slice(g,y)+A,g=y+v.length)}return p+l.slice(g)}]});var si=Object.is||function(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e};Kr("search",1,function(t,e,n){return[function(e){var n=O(this),r=void 0==e?void 0:e[t];return void 0!==r?r.call(e,n):new RegExp(e)[t](String(n))},function(t){var r=n(e,t,this);if(r.done)return r.value;var i=U(t),o=String(this),a=i.lastIndex;si(a,0)||(i.lastIndex=0);var s=ti(i,o);return si(i.lastIndex,a)||(i.lastIndex=a),null===s?-1:s.index}]});var li=xe("match"),ci=function(t){var e;return P(t)&&(void 0!==(e=t[li])?!!e:"RegExp"==L(t))},ui=xe("species"),fi=function(t,e){var n,r=U(t).constructor;return void 0===r||void 0==(n=U(r)[ui])?e:_e(n)},hi=[].push,di=Math.min,pi=!m(function(){return!RegExp(4294967295,"y")});Kr("split",2,function(t,e,n){var r;return r="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(t,n){var r=String(O(this)),i=void 0===n?4294967295:n>>>0;if(0===i)return[];if(void 0===t)return[r];if(!ci(t))return e.call(r,t,i);for(var o,a,s,l=[],c=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),u=0,f=new RegExp(t.source,c+"g");(o=Br.call(f,r))&&!((a=f.lastIndex)>u&&(l.push(r.slice(u,o.index)),o.length>1&&o.index<r.length&&hi.apply(l,o.slice(1)),s=o[0].length,u=a,l.length>=i));)f.lastIndex===o.index&&f.lastIndex++;return u===r.length?!s&&f.test("")||l.push(""):l.push(r.slice(u)),l.length>i?l.slice(0,i):l}:"0".split(void 0,0).length?function(t,n){return void 0===t&&0===n?[]:e.call(this,t,n)}:e,[function(e,n){var i=O(this),o=void 0==e?void 0:e[t];return void 0!==o?o.call(e,i,n):r.call(String(i),e,n)},function(t,i){var o=n(r,t,this,i,r!==e);if(o.done)return o.value;var a=U(t),s=String(this),l=fi(a,RegExp),c=a.unicode,u=(a.ignoreCase?"i":"")+(a.multiline?"m":"")+(a.unicode?"u":"")+(pi?"y":"g"),f=new l(pi?a:"^(?:"+a.source+")",u),h=void 0===i?4294967295:i>>>0;if(0===h)return[];if(0===s.length)return null===ti(f,s)?[s]:[];for(var d=0,p=0,g=[];p<s.length;){f.lastIndex=pi?p:0;var m,v=ti(f,pi?s:s.slice(p));if(null===v||(m=di(Ct(f.lastIndex+(pi?0:p)),s.length))===d)p=Zr(s,p,c);else{if(g.push(s.slice(d,p)),g.length===h)return g;for(var y=1;y<=v.length-1;y++)if(g.push(v[y]),g.length===h)return g;p=d=m}}return g.push(s.slice(d)),g}]},!pi);var gi={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},mi=Fe.forEach,vi=hr("forEach")?function(t){return mi(this,t,arguments.length>1?arguments[1]:void 0)}:[].forEach;for(var yi in gi){var bi=g[yi],wi=bi&&bi.prototype;if(wi&&wi.forEach!==vi)try{V(wi,"forEach",vi)}catch(t){wi.forEach=vi}}var xi=xe("iterator"),Si=xe("toStringTag"),Ai=fr.values;for(var Ni in gi){var Li=g[Ni],ki=Li&&Li.prototype;if(ki){if(ki[xi]!==Ai)try{V(ki,xi,Ai)}catch(t){ki[xi]=Ai}if(ki[Si]||V(ki,Si,Ni),gi[Ni])for(var Ci in fr)if(ki[Ci]!==fr[Ci])try{V(ki,Ci,fr[Ci])}catch(t){ki[Ci]=fr[Ci]}}}var Oi=t.fn.bootstrapTable.utils,_i={cookieIds:{sortOrder:"bs.table.sortOrder",sortName:"bs.table.sortName",pageNumber:"bs.table.pageNumber",pageList:"bs.table.pageList",columns:"bs.table.columns",searchText:"bs.table.searchText",reorderColumns:"bs.table.reorderColumns",filterControl:"bs.table.filterControl",filterBy:"bs.table.filterBy"},getCurrentHeader:function(t){var e=t.$header;return t.options.height&&(e=t.$tableHeader),e},getCurrentSearchControls:function(t){var e="select, input";return t.options.height&&(e="table select, table input"),e},cookieEnabled:function(){return!!navigator.cookieEnabled},inArrayCookiesEnabled:function(t,e){for(var n=-1,r=0;r<e.length;r++)if(t.toLowerCase()===e[r].toLowerCase()){n=r;break}return n},setCookie:function(t,e,n){if(t.options.cookie&&_i.cookieEnabled()&&""!==t.options.cookieIdTable&&-1!==_i.inArrayCookiesEnabled(e,t.options.cookiesEnabled)){switch(e="".concat(t.options.cookieIdTable,".").concat(e),t.options.cookieStorage){case"cookieStorage":document.cookie=[e,"=",encodeURIComponent(n),"; expires=".concat(_i.calculateExpiration(t.options.cookieExpire)),t.options.cookiePath?"; path=".concat(t.options.cookiePath):"",t.options.cookieDomain?"; domain=".concat(t.options.cookieDomain):"",t.options.cookieSecure?"; secure":"",";SameSite="+t.options.cookieSameSite].join("");break;case"localStorage":localStorage.setItem(e,n);break;case"sessionStorage":sessionStorage.setItem(e,n);break;case"customStorage":if(!t.options.cookieCustomStorageSet||!t.options.cookieCustomStorageGet||!t.options.cookieCustomStorageDelete)throw new Error("The following options must be set while using the customStorage: cookieCustomStorageSet, cookieCustomStorageGet and cookieCustomStorageDelete");Oi.calculateObjectValue(t.options,t.options.cookieCustomStorageSet,[e,n],"");break;default:return!1}return!0}},getCookie:function(t,e,n){if(!n)return null;if(-1===_i.inArrayCookiesEnabled(n,t.options.cookiesEnabled))return null;switch(n="".concat(e,".").concat(n),t.options.cookieStorage){case"cookieStorage":var r="; ".concat(document.cookie),i=r.split("; ".concat(n,"="));return 2===i.length?decodeURIComponent(i.pop().split(";").shift()):null;case"localStorage":return localStorage.getItem(n);case"sessionStorage":return sessionStorage.getItem(n);case"customStorage":if(!t.options.cookieCustomStorageSet||!t.options.cookieCustomStorageGet||!t.options.cookieCustomStorageDelete)throw new Error("The following options must be set while using the customStorage: cookieCustomStorageSet, cookieCustomStorageGet and cookieCustomStorageDelete");return Oi.calculateObjectValue(t.options,t.options.cookieCustomStorageGet,[n],"");default:return null}},deleteCookie:function(t,e,n){switch(n="".concat(e,".").concat(n),t.options.cookieStorage){case"cookieStorage":document.cookie=[encodeURIComponent(n),"=","; expires=Thu, 01 Jan 1970 00:00:00 GMT",t.options.cookiePath?"; path=".concat(t.options.cookiePath):"",t.options.cookieDomain?"; domain=".concat(t.options.cookieDomain):""].join("");break;case"localStorage":localStorage.removeItem(n);break;case"sessionStorage":sessionStorage.removeItem(n);break;case"customStorage":if(!t.options.cookieCustomStorageSet||!t.options.cookieCustomStorageGet||!t.options.cookieCustomStorageDelete)throw new Error("The following options must be set while using the customStorage: cookieCustomStorageSet, cookieCustomStorageGet and cookieCustomStorageDelete");Oi.calculateObjectValue(t.options,t.options.cookieCustomStorageDelete,[n],"");break;default:return!1}return!0},calculateExpiration:function(t){var e=t.replace(/[0-9]*/,"");switch(t=t.replace(/[A-Za-z]{1,2}/,""),e.toLowerCase()){case"s":t=+t;break;case"mi":t*=60;break;case"h":t=60*t*60;break;case"d":t=24*t*60*60;break;case"m":t=30*t*24*60*60;break;case"y":t=365*t*24*60*60;break;default:t=void 0}if(!t)return"";var n=new Date;return n.setTime(n.getTime()+1e3*t),n.toGMTString()},initCookieFilters:function(e){setTimeout(function(){var n=JSON.parse(_i.getCookie(e,e.options.cookieIdTable,_i.cookieIds.filterControl));if(!e.options.filterControlValuesLoaded&&n){var r={},i=_i.getCurrentHeader(e),o=_i.getCurrentSearchControls(e),a=function(t,n){n.forEach(function(n){if(""!==n.text&&("radio"!==t.type||t.value.toString()===n.text.toString()))if("INPUT"===t.tagName&&"radio"===t.type&&t.value.toString()===n.text.toString())t.checked=!0,r[n.field]=n.text;else if("INPUT"===t.tagName)t.value=n.text,r[n.field]=n.text;else if("SELECT"===t.tagName&&e.options.filterControlContainer)t.value=n.text,r[n.field]=n.text;else if(""!==n.text&&"SELECT"===t.tagName){for(var i=0;i<t.length;i++){var o=t[i];if(o.value===n.text)return void(o.selected=!0)}var a=document.createElement("option");a.value=n.text,a.text=n.text,t.add(a,t[1]),t.selectedIndex=1,r[n.field]=n.text}})},s=i;e.options.filterControlContainer&&(s=t("".concat(e.options.filterControlContainer))),s.find(o).each(function(){var e=t(this).closest("[data-field]").data("field"),r=n.filter(function(t){return t.field===e});a(this,r)}),e.initColumnSearch(r),e.options.filterControlValuesLoaded=!0,e.initServer()}},250)}};t.extend(t.fn.bootstrapTable.defaults,{cookie:!1,cookieExpire:"2h",cookiePath:null,cookieDomain:null,cookieSecure:null,cookieSameSite:"Lax",cookieIdTable:"",cookiesEnabled:["bs.table.sortOrder","bs.table.sortName","bs.table.pageNumber","bs.table.pageList","bs.table.columns","bs.table.searchText","bs.table.filterControl","bs.table.filterBy","bs.table.reorderColumns"],cookieStorage:"cookieStorage",cookieCustomStorageGet:null,cookieCustomStorageSet:null,cookieCustomStorageDelete:null,filterControls:[],filterControlValuesLoaded:!1}),t.fn.bootstrapTable.methods.push("getCookies"),t.fn.bootstrapTable.methods.push("deleteCookie"),t.extend(t.fn.bootstrapTable.utils,{setCookie:_i.setCookie,getCookie:_i.getCookie}),t.BootstrapTable=function(e){function n(){return r(this,n),u(this,s(n).apply(this,arguments))}return a(n,e),o(n,[{key:"init",value:function(){if(this.options.cookie){var t=_i.getCookie(this,this.options.cookieIdTable,_i.cookieIds.filterBy);if("boolean"==typeof t&&!t)throw new Error("The cookie value of filterBy must be a json!");var e={};try{e=JSON.parse(t)}catch(t){throw new Error("Could not parse the json of the filterBy cookie!")}if(this.filterColumns=e||{},this.options.filterControls=[],this.options.filterControlValuesLoaded=!1,this.options.cookiesEnabled="string"==typeof this.options.cookiesEnabled?this.options.cookiesEnabled.replace("[","").replace("]","").replace(/'/g,"").replace(/ /g,"").toLowerCase().split(","):this.options.cookiesEnabled,this.options.filterControl){var r=this;this.$el.on("column-search.bs.table",function(t,e,n){+for(var i=!0,o=0;o<r.options.filterControls.length;o++)if(r.options.filterControls[o].field===e){r.options.filterControls[o].text=n,i=!1;break}i&&r.options.filterControls.push({field:e,text:n}),_i.setCookie(r,_i.cookieIds.filterControl,JSON.stringify(r.options.filterControls))}).on("created-controls.bs.table",_i.initCookieFilters(r))}}h(s(n.prototype),"init",this).call(this)}},{key:"initServer",value:function(){var t;if(this.options.cookie&&this.options.filterControl&&!this.options.filterControlValuesLoaded){if(JSON.parse(_i.getCookie(this,this.options.cookieIdTable,_i.cookieIds.filterControl)))return}for(var e=arguments.length,r=new Array(e),i=0;i<e;i++)r[i]=arguments[i];(t=h(s(n.prototype),"initServer",this)).call.apply(t,[this].concat(r))}},{key:"initTable",value:function(){for(var t,e=arguments.length,r=new Array(e),i=0;i<e;i++)r[i]=arguments[i];(t=h(s(n.prototype),"initTable",this)).call.apply(t,[this].concat(r)),this.initCookie()}},{key:"onSort",value:function(){for(var t,e=arguments.length,r=new Array(e),i=0;i<e;i++)r[i]=arguments[i];(t=h(s(n.prototype),"onSort",this)).call.apply(t,[this].concat(r)),_i.setCookie(this,_i.cookieIds.sortOrder,this.options.sortOrder),_i.setCookie(this,_i.cookieIds.sortName,this.options.sortName)}},{key:"onPageNumber",value:function(){for(var t,e=arguments.length,r=new Array(e),i=0;i<e;i++)r[i]=arguments[i];(t=h(s(n.prototype),"onPageNumber",this)).call.apply(t,[this].concat(r)),_i.setCookie(this,_i.cookieIds.pageNumber,this.options.pageNumber)}},{key:"onPageListChange",value:function(){for(var t,e=arguments.length,r=new Array(e),i=0;i<e;i++)r[i]=arguments[i];(t=h(s(n.prototype),"onPageListChange",this)).call.apply(t,[this].concat(r)),_i.setCookie(this,_i.cookieIds.pageList,this.options.pageSize),_i.setCookie(this,_i.cookieIds.pageNumber,this.options.pageNumber)}},{key:"onPagePre",value:function(){for(var t,e=arguments.length,r=new Array(e),i=0;i<e;i++)r[i]=arguments[i];(t=h(s(n.prototype),"onPagePre",this)).call.apply(t,[this].concat(r)),_i.setCookie(this,_i.cookieIds.pageNumber,this.options.pageNumber)}},{key:"onPageNext",value:function(){for(var t,e=arguments.length,r=new Array(e),i=0;i<e;i++)r[i]=arguments[i];(t=h(s(n.prototype),"onPageNext",this)).call.apply(t,[this].concat(r)),_i.setCookie(this,_i.cookieIds.pageNumber,this.options.pageNumber)}},{key:"_toggleColumn",value:function(){for(var t,e=arguments.length,r=new Array(e),i=0;i<e;i++)r[i]=arguments[i];(t=h(s(n.prototype),"_toggleColumn",this)).call.apply(t,[this].concat(r)),_i.setCookie(this,_i.cookieIds.columns,JSON.stringify(this.getVisibleColumns().map(function(t){return t.field})))}},{key:"_toggleAllColumns",value:function(){for(var t,e=arguments.length,r=new Array(e),i=0;i<e;i++)r[i]=arguments[i];(t=h(s(n.prototype),"_toggleAllColumns",this)).call.apply(t,[this].concat(r)),_i.setCookie(this,_i.cookieIds.columns,JSON.stringify(this.getVisibleColumns().map(function(t){return t.field})))}},{key:"selectPage",value:function(t){h(s(n.prototype),"selectPage",this).call(this,t),_i.setCookie(this,_i.cookieIds.pageNumber,t)}},{key:"onSearch",value:function(t){h(s(n.prototype),"onSearch",this).call(this,t),this.options.search&&_i.setCookie(this,_i.cookieIds.searchText,this.searchText),_i.setCookie(this,_i.cookieIds.pageNumber,this.options.pageNumber)}},{key:"initHeader",value:function(){var t;this.options.reorderableColumns&&(this.columnsSortOrder=JSON.parse(_i.getCookie(this,this.options.cookieIdTable,_i.cookieIds.reorderColumns)));for(var e=arguments.length,r=new Array(e),i=0;i<e;i++)r[i]=arguments[i];(t=h(s(n.prototype),"initHeader",this)).call.apply(t,[this].concat(r))}},{key:"persistReorderColumnsState",value:function(t){_i.setCookie(t,_i.cookieIds.reorderColumns,JSON.stringify(t.columnsSortOrder))}},{key:"filterBy",value:function(){for(var t,e=arguments.length,r=new Array(e),i=0;i<e;i++)r[i]=arguments[i];(t=h(s(n.prototype),"filterBy",this)).call.apply(t,[this].concat(r)),_i.setCookie(this,_i.cookieIds.filterBy,JSON.stringify(this.filterColumns))}},{key:"initCookie",value:function(){var t=this;if(this.options.cookie){if(""===this.options.cookieIdTable||""===this.options.cookieExpire||!_i.cookieEnabled())return console.error("Configuration error. Please review the cookieIdTable and the cookieExpire property. If the properties are correct, then this browser does not support cookies."),void(this.options.cookie=!1);var e=_i.getCookie(this,this.options.cookieIdTable,_i.cookieIds.sortOrder),n=_i.getCookie(this,this.options.cookieIdTable,_i.cookieIds.sortName),r=_i.getCookie(this,this.options.cookieIdTable,_i.cookieIds.pageNumber),i=_i.getCookie(this,this.options.cookieIdTable,_i.cookieIds.pageList),o=_i.getCookie(this,this.options.cookieIdTable,_i.cookieIds.searchText),a=_i.getCookie(this,this.options.cookieIdTable,_i.cookieIds.columns);if("boolean"==typeof a&&!a)throw new Error("The cookie value of filterBy must be a json!");var s={};try{s=JSON.parse(a)}catch(t){throw new Error("Could not parse the json of the columns cookie!",a)}if(this.options.sortOrder=e||this.options.sortOrder,this.options.sortName=n||this.options.sortName,this.options.pageNumber=r?+r:this.options.pageNumber,this.options.pageSize=i?i===this.options.formatAllRows()?i:+i:this.options.pageSize,this.options.searchText=o||"",s){var l=!0,c=!1,u=void 0;try{for(var f,h=this.columns[Symbol.iterator]();!(l=(f=h.next()).done);l=!0)!function(){var e=f.value;e.visible=s.filter(function(n){return!!t.isSelectionColumn(e)||(n instanceof Object?n.field===e.field:n===e.field)}).length>0||!e.switchable}()}catch(t){c=!0,u=t}finally{try{l||null==h.return||h.return()}finally{if(c)throw u}}}}}},{key:"getCookies",value:function(){var e=this,n={};return t.each(_i.cookieIds,function(t,r){n[t]=_i.getCookie(e,e.options.cookieIdTable,r),"columns"===t&&(n[t]=JSON.parse(n[t]))}),n}},{key:"deleteCookie",value:function(t){""!==t&&_i.cookieEnabled()&&_i.deleteCookie(this,this.options.cookieIdTable,_i.cookieIds[t])}}]),n}(t.BootstrapTable)}),jQuery.base64=function(t){function e(t){t=t.replace(/\r\n/g,"\n");for(var e="",n=0;n<t.length;n++){var r=t.charCodeAt(n);r<128?e+=String.fromCharCode(r):r>127&&r<2048?(e+=String.fromCharCode(r>>6|192),e+=String.fromCharCode(63&r|128)):(e+=String.fromCharCode(r>>12|224),e+=String.fromCharCode(r>>6&63|128),e+=String.fromCharCode(63&r|128))}return e}function n(t){var n,i,o,a,s,l,c,u="",f=0;for(t=e(t);f<t.length;)n=t.charCodeAt(f++),i=t.charCodeAt(f++),o=t.charCodeAt(f++),a=n>>2,s=(3&n)<<4|i>>4,l=(15&i)<<2|o>>6,c=63&o,isNaN(i)?l=c=64:isNaN(o)&&(c=64),u=u+r.charAt(a)+r.charAt(s)+r.charAt(l)+r.charAt(c);return u}var r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";return{encode:function(t){return n(t)}}}(jQuery),function(t){t.fn.tableExport=function(e){function n(e){var n=[];return i(e,"thead").each(function(){n.push.apply(n,i(t(this),V.theadSelector).toArray())}),n}function r(e){var n=[];return i(e,"tbody").each(function(){n.push.apply(n,i(t(this),V.tbodySelector).toArray())}),V.tfootSelector.length&&i(e,"tfoot").each(function(){n.push.apply(n,i(t(this),V.tfootSelector).toArray())}),n}function i(e,n){var r=e[0].tagName,i=e.parents(r).length;return e.find(n).filter(function(){return i===t(this).closest(r).parents(r).length})}function o(e){var n=[];return t(e).find("thead").first().find("th").each(function(e,r){void 0!==t(r).attr("data-field")?n[e]=t(r).attr("data-field"):n[e]=e.toString()}),n}function a(e){var n=void 0!==e[0].rowIndex,r=!1===n&&void 0!==e[0].cellIndex,i=r||n?s(e):e.is(":visible"),o=e.attr("data-tableexport-display");return r&&"none"!==o&&"always"!==o&&(e=t(e[0].parentNode),n=void 0!==e[0].rowIndex,o=e.attr("data-tableexport-display")),n&&"none"!==o&&"always"!==o&&(o=e.closest("table").attr("data-tableexport-display")),"none"!==o&&(!0===i||"always"===o)}function s(t){var e=[];return rt&&(e=nt.filter(function(){var e=!1;return this.nodeType===t[0].nodeType&&(void 0!==this.rowIndex&&this.rowIndex===t[0].rowIndex?e=!0:void 0!==this.cellIndex&&this.cellIndex===t[0].cellIndex&&void 0!==this.parentNode.rowIndex&&void 0!==t[0].parentNode.rowIndex&&this.parentNode.rowIndex===t[0].parentNode.rowIndex&&(e=!0)),e})),!1===rt||0===e.length}function l(e,n,r){var i=!1;return a(e)?V.ignoreColumn.length>0&&(-1!==t.inArray(r,V.ignoreColumn)||-1!==t.inArray(r-n,V.ignoreColumn)||tt.length>r&&void 0!==tt[r]&&-1!==t.inArray(tt[r],V.ignoreColumn))&&(i=!0):i=!0,i}function c(e,n,r,o,s){if("function"==typeof s){var c=!1;if("function"==typeof V.onIgnoreRow&&(c=V.onIgnoreRow(t(e),r)),!1===c&&(0===V.ignoreRow.length||-1===t.inArray(r,V.ignoreRow)&&-1===t.inArray(r-o,V.ignoreRow))&&a(t(e))){var u=i(t(e),n),f=0;u.each(function(e){var n,i=t(this),o=O(this),a=_(this);if(t.each(et,function(){var t=this;if(r>=t.s.r&&r<=t.e.r&&f>=t.s.c&&f<=t.e.c)for(n=0;n<=t.e.c-t.s.c;++n)s(null,r,f++)}),!1===l(i,u.length,e)&&((a||o)&&(a=a||1,o=o||1,et.push({s:{r:r,c:f},e:{r:r+a-1,c:f+o-1}})),s(this,r,f++)),o)for(n=0;n<o-1;++n)s(null,r,f++)}),t.each(et,function(){var t=this;if(r>=t.s.r&&r<=t.e.r&&f>=t.s.c&&f<=t.e.c)for(Lt=0;Lt<=t.e.c-t.s.c;++Lt)s(null,r,f++)})}}}function u(t,e,n,r){if(void 0!==r.images){var i=r.images[n];if(void 0!==i){var o=e.getBoundingClientRect(),a=t.width/t.height,s=o.width/o.height,l=t.width,c=t.height,u=0;s<=a?(c=Math.min(t.height,o.height),l=o.width*c/o.height):s>a&&(l=Math.min(t.width,o.width),c=o.height*l/o.width),l*=19.049976/25.4,c*=19.049976/25.4,c<t.height&&(u=(t.height-c)/2);try{r.doc.addImage(i.src,t.textPos.x,t.y+u,l,c)}catch(t){}t.textPos.x+=l}}}function f(t,e){if("string"===V.outputMode)return t.output();if("base64"===V.outputMode)return H(t.output());if("window"===V.outputMode)return window.URL=window.URL||window.webkitURL,void window.open(window.URL.createObjectURL(t.output("blob")));try{var n=t.output("blob");saveAs(n,V.fileName+".pdf")}catch(n){U(V.fileName+".pdf","data:application/pdf"+(e?"":";base64")+",",e?t.output("blob"):t.output())}}function h(t,e,n){var r=0;if(void 0!==n&&(r=n.colspan),r>=0){for(var i=t.width,o=t.textPos.x,a=e.table.columns.indexOf(e.column),s=1;s<r;s++){i+=e.table.columns[a+s].width}if(r>1&&("right"===t.styles.halign?o=t.textPos.x+i-t.width:"center"===t.styles.halign&&(o=t.textPos.x+(i-t.width)/2)),t.width=i,t.textPos.x=o,void 0!==n&&n.rowspan>1&&(t.height=t.height*n.rowspan),"middle"===t.styles.valign||"bottom"===t.styles.valign){var l="string"==typeof t.text?t.text.split(/\r\n|\r|\n/g):t.text,c=l.length||1;c>2&&(t.textPos.y-=(2-G)/2*e.row.styles.fontSize*(c-2)/3)}return!0}return!1}function d(e,n,r){if(void 0!==e&&null!==e)if(e.hasAttribute("data-tableexport-canvas")){var i=(new Date).getTime();t(e).attr("data-tableexport-canvas",i),r.images[i]={url:'[data-tableexport-canvas="'+i+'"]',src:null}}else"undefined"!==n&&null!=n&&n.each(function(){if(t(this).is("img")){var n=D(this.src);r.images[n]={url:this.src,src:this.src}}d(e,t(this).children(),r)})}function p(e,n,r){n.each(function(){if(t(this).is("div")){var n=k(P(this,"background-color"),[255,255,255]),i=k(P(this,"border-top-color"),[0,0,0]),o=T(this,"border-top-width",V.jspdf.unit),a=this.getBoundingClientRect(),s=this.offsetLeft*r.wScaleFactor,l=this.offsetTop*r.hScaleFactor,c=a.width*r.wScaleFactor,f=a.height*r.hScaleFactor;r.doc.setDrawColor.apply(void 0,i),r.doc.setFillColor.apply(void 0,n),r.doc.setLineWidth(o),r.doc.rect(e.x+s,e.y+l,c,f,o?"FD":"F")}else if(t(this).is("img")){var h=D(this.src);u(e,this,h,r)}p(e,t(this).children(),r)})}function g(e,n,r){if("function"==typeof r.onAutotableText)r.onAutotableText(r.doc,e,n);else{var i=e.textPos.x,o=e.textPos.y,a={halign:e.styles.halign,valign:e.styles.valign};if(n.length){for(var s=n[0];s.previousSibling;)s=s.previousSibling;for(var l=!1,c=!1;s;){var u=s.innerText||s.textContent||"",f=u.length&&" "===u[0]?" ":"",h=u.length>1&&" "===u[u.length-1]?" ":"";!0!==V.preserve.leadingWS&&(u=f+y(u)),!0!==V.preserve.trailingWS&&(u=b(u)+h),t(s).is("br")&&(i=e.textPos.x,o+=r.doc.internal.getFontSize()),t(s).is("b")?l=!0:t(s).is("i")&&(c=!0),(l||c)&&r.doc.setFontType(l&&c?"bolditalic":l?"bold":"italic");var d=r.doc.getStringUnitWidth(u)*r.doc.internal.getFontSize();if(d){if("linebreak"===e.styles.overflow&&i>e.textPos.x&&i+d>e.textPos.x+e.width){if(".,!%*;:=-".indexOf(u.charAt(0))>=0){var p=u.charAt(0);d=r.doc.getStringUnitWidth(p)*r.doc.internal.getFontSize(),i+d<=e.textPos.x+e.width&&(r.doc.autoTableText(p,i,o,a),u=u.substring(1,u.length)),d=r.doc.getStringUnitWidth(u)*r.doc.internal.getFontSize()}i=e.textPos.x,o+=r.doc.internal.getFontSize()}if("visible"!==e.styles.overflow)for(;u.length&&i+d>e.textPos.x+e.width;)u=u.substring(0,u.length-1),d=r.doc.getStringUnitWidth(u)*r.doc.internal.getFontSize();r.doc.autoTableText(u,i,o,a),i+=d}(l||c)&&(t(s).is("b")?l=!1:t(s).is("i")&&(c=!1),r.doc.setFontType(l||c?l?"bold":"italic":"normal")),s=s.nextSibling}e.textPos.x=i,e.textPos.y=o}else r.doc.autoTableText(e.text,e.textPos.x,e.textPos.y,a)}}function m(t){return null==t?"":t.toString().replace(/([.*+?^=!:${}()|\[\]\/\\])/g,"\\$1")}function v(t,e,n){return null==t?"":t.toString().replace(new RegExp(m(e),"g"),n)}function y(t){return null==t?"":t.toString().replace(/^\s+/,"")}function b(t){return null==t?"":t.toString().replace(/\s+$/,"")}function w(t){if(0===V.date.html.length)return!1;V.date.pattern.lastIndex=0;var e=V.date.pattern.exec(t);if(null==e)return!1;var n=+e[V.date.match_y];if(n<0||n>8099)return!1;var r=1*e[V.date.match_m],i=1*e[V.date.match_d];if(!isFinite(i))return!1;var o=new Date(n,r-1,i,0,0,0);return o.getFullYear()===n&&o.getMonth()===r-1&&o.getDate()===i&&new Date(Date.UTC(n,r-1,i,0,0,0))}function x(t){return t=t||"0",""!==V.numbers.html.thousandsSeparator&&(t=v(t,V.numbers.html.thousandsSeparator,"")),"."!==V.numbers.html.decimalMark&&(t=v(t,V.numbers.html.decimalMark,".")),("number"==typeof t||!1!==jQuery.isNumeric(t))&&t}function S(t){return t.indexOf("%")>-1?!1!==(t=x(t.replace(/%/g,"")))&&(t/=100):t=!1,t}function A(e,n,r,i){var o="",a="text";if(null!==e){var s,l=t(e);if(l.removeData("teUserDefText"),l[0].hasAttribute("data-tableexport-canvas"))s="";else if(l[0].hasAttribute("data-tableexport-value"))s=l.attr("data-tableexport-value"),s=s?s+"":"",l.data("teUserDefText",1);else if(s=l.html(),"function"==typeof V.onCellHtmlData)s=V.onCellHtmlData(l,n,r,s),l.data("teUserDefText",1);else if(""!==s){var c=t.parseHTML(s),u=0,f=0;s="",t.each(c,function(){if(t(this).is("input"))s+=l.find("input").eq(u++).val();else if(t(this).is("select"))s+=l.find("select option:selected").eq(f++).text();else if(t(this).is("br"))s+="<br>";else if(void 0===t(this).html()?s+=t(this).text():(void 0===jQuery().bootstrapTable||!1===t(this).hasClass("fht-cell")&&!1===t(this).hasClass("filterControl")&&0===l.parents(".detail-view").length)&&(s+=t(this).html()),t(this).is("a")){var e=l.find("a").attr("href")||"";"function"==typeof V.onCellHtmlHyperlink?o+=V.onCellHtmlHyperlink(l,n,r,e,s):"href"===V.htmlHyperlink?o+=e:o+=s,s=""}})}if(s&&""!==s&&!0===V.htmlContent)o=t.trim(s);else if(s&&""!==s){var h=l.attr("data-tableexport-cellformat");if(""!==h){var d=s.replace(/\n/g,"\u2028").replace(/(<\s*br([^>]*)>)/gi,""),p=t("<div/>").html(d).contents(),g=!1;if(d="",t.each(p.text().split("\u2028"),function(t,e){t>0&&(d+=" "),!0!==V.preserve.leadingWS&&(e=y(e)),d+=!0!==V.preserve.trailingWS?b(e):e}),t.each(d.split(""),function(t,e){t>0&&(o+="\n"),!0!==V.preserve.leadingWS&&(e=y(e)),!0!==V.preserve.trailingWS&&(e=b(e)),o+=e.replace(/\u00AD/g,"")}),o=o.replace(/\u00A0/g," "),"json"===V.type||"excel"===V.type&&"xmlss"===V.mso.fileFormat||!1===V.numbers.output)!1!==(g=x(o))&&(a="number",o=Number(g));else if((V.numbers.html.decimalMark!==V.numbers.output.decimalMark||V.numbers.html.thousandsSeparator!==V.numbers.output.thousandsSeparator)&&!1!==(g=x(o))){var m=(""+g.substr(g<0?1:0)).split(".");1===m.length&&(m[1]="");var v=m[0].length>3?m[0].length%3:0;a="number",o=(g<0?"-":"")+(V.numbers.output.thousandsSeparator?(v?m[0].substr(0,v)+V.numbers.output.thousandsSeparator:"")+m[0].substr(v).replace(/(\d{3})(?=\d)/g,"$1"+V.numbers.output.thousandsSeparator):m[0])+(m[1].length?V.numbers.output.decimalMark+m[1]:"")}}else o=s}!0===V.escape&&(o=escape(o)),"function"==typeof V.onCellData&&(o=V.onCellData(l,n,r,o,a),l.data("teUserDefText",1))}return void 0!==i&&(i.type=a),o}function N(t){if(t.length>0&&!0===V.preventInjection){if("=+-@".indexOf(t.charAt(0))>=0)return"'"+t}return t}function L(t,e,n){return e+"-"+n.toLowerCase()}function k(t,e){var n=/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,r=n.exec(t),i=e;return r&&(i=[parseInt(r[1]),parseInt(r[2]),parseInt(r[3])]),i}function C(t){var e=P(t,"text-align"),n=P(t,"font-weight"),r=P(t,"font-style"),i="";"start"===e&&(e="rtl"===P(t,"direction")?"right":"left"),n>=700&&(i="bold"),"italic"===r&&(i+=r),""===i&&(i="normal");var o={style:{align:e,bcolor:k(P(t,"background-color"),[255,255,255]),color:k(P(t,"color"),[0,0,0]),fstyle:i},colspan:O(t),rowspan:_(t)};if(null!==t){var a=t.getBoundingClientRect();o.rect={width:a.width,height:a.height}}return o}function O(e){var n=t(e).attr("data-tableexport-colspan");return void 0===n&&t(e).is("[colspan]")&&(n=t(e).attr("colspan")),parseInt(n)||0}function _(e){var n=t(e).attr("data-tableexport-rowspan");return void 0===n&&t(e).is("[rowspan]")&&(n=t(e).attr("rowspan")),parseInt(n)||0}function P(t,e){try{return window.getComputedStyle?(e=e.replace(/([a-z])([A-Z])/,L),window.getComputedStyle(t,null).getPropertyValue(e)):t.currentStyle?t.currentStyle[e]:t.style[e]}catch(t){}return""}function I(t,e,n){var r=document.createElement("div");r.style.overflow="hidden",r.style.visibility="hidden",t.appendChild(r),r.style.width=100+n;var i=100/r.offsetWidth;return t.removeChild(r),e*i}function T(t,e,n){var r=P(t,e),i=r.match(/\d+/);return null!==i?(i=i[0],I(t.parentElement,i,n)):0}function E(e){for(var n,r,i,o,s,c={},u=e.getElementsByTagName("tr"),f={s:{r:0,c:0},e:{r:0,c:0}},h=[],d=0,p=[],g=0,m=0,v=XLSX.SSF.get_table();g<u.length&&m<1e7;++g){var y=u[g],b=!1;if("function"==typeof V.onIgnoreRow&&(b=V.onIgnoreRow(t(y),g)),!0!==b&&(0===V.ignoreRow.length||-1===t.inArray(g,V.ignoreRow)&&-1===t.inArray(g-u.length,V.ignoreRow))&&!1!==a(t(y))){var x=y.children,S=0;for(n=0;n<x.length;++n)s=x[n],o=+O(s)||1,S+=o;var N=0;for(n=r=0;n<x.length;++n){s=x[n],o=+O(s)||1;var L=n+N;if(!l(t(s),S,L+(L<r?r-L:0))){for(N+=o-1,d=0;d<h.length;++d){var k=h[d];k.s.c==r&&k.s.r<=m&&m<=k.e.r&&(r=k.e.c+1,d=-1)}((i=+_(s))>0||o>1)&&h.push({s:{r:m,c:r},e:{r:m+(i||1)-1,c:r+o-1}});var C={type:""},P=A(s,g,n+N,C),I={t:"s",v:P},T="";if(""!==t(s).attr("data-tableexport-cellformat")){var E=parseInt(t(s).attr("data-tableexport-xlsxformatid")||0);0===E&&"function"==typeof V.mso.xslx.formatId.numbers&&(E=V.mso.xslx.formatId.numbers(t(s),g,n+N)),0===E&&"function"==typeof V.mso.xslx.formatId.date&&(E=V.mso.xslx.formatId.date(t(s),g,n+N)),49===E||"@"===E?T="s":"number"===C.type||E>0&&E<14||E>36&&E<41||48===E?T="n":("date"===C.type||E>13&&E<37||E>44&&E<48||56===E)&&(T="d")}else T="s";if(null!=P){var j;if(0===P.length)I.t="z";else if(0===P.trim().length||"s"===T);else if("function"===C.type)I={f:P};else if("TRUE"===P)I={t:"b",v:!0};else if("FALSE"===P)I={t:"b",v:!1};else if(""===T&&t(s).find("a").length)P="href"!==V.htmlHyperlink?P:"",I={f:'=HYPERLINK("'+t(s).find("a").attr("href")+(P.length?'","'+P:"")+'")'};else if("n"===T||isFinite(M(P,V.numbers.output))){var F=M(P,V.numbers.output);0===E&&"function"!=typeof V.mso.xslx.formatId.numbers&&(E=V.mso.xslx.formatId.numbers),(isFinite(F)||isFinite(P))&&(I={t:"n",v:isFinite(F)?F:P,z:"string"==typeof E?E:E in v?v[E]:"0.00"})}else!1===(j=w(P))&&"d"!==T||(0===E&&"function"!=typeof V.mso.xslx.formatId.date&&(E=V.mso.xslx.formatId.date),I={t:"d",v:!1!==j?j:P,z:"string"==typeof E?E:E in v?v[E]:"m/d/yy"})}c[R({c:r,r:m})]=I,f.e.c<r&&(f.e.c=r),r+=o}}++m}}return h.length&&(c["!merges"]=h),p.length&&(c["!rows"]=p),f.e.r=m-1,c["!ref"]=B(f),m>=1e7&&(c["!fullref"]=B((f.e.r=u.length-g+m-1,f))),c}function j(t){return""+(t+1)}function F(t){var e="";for(++t;t;t=Math.floor((t-1)/26))e=String.fromCharCode((t-1)%26+65)+e;return e}function R(t){return F(t.c)+j(t.r)}function B(t,e){return void 0===e||"number"==typeof e?B(t.s,t.e):("string"!=typeof t&&(t=R(t)),"string"!=typeof e&&(e=R(e)),t===e?t:t+":"+e)}function M(t,e){var n=Number(t);if(isFinite(n))return n;var r=1,i=t;return""!==e.thousandsSeparator&&(i=i.replace(new RegExp("([\\d])"+e.thousandsSeparator+"([\\d])","g"),"$1$2")),"."!==e.decimalMark&&(i=i.replace(new RegExp("([\\d])"+e.decimalMark+"([\\d])","g"),"$1.$2")),i=i.replace(/[$]/g,"").replace(/[%]/g,function(){return r*=100,""}),isFinite(n=Number(i))?n/r:(i=i.replace(/[(](.*)[)]/,function(t,e){return r=-r,e}),isFinite(n=Number(i))?n/r:n)}function D(t){var e,n,r,i=0;if(0===t.length)return i;for(e=0,r=t.length;e<r;e++)n=t.charCodeAt(e),i=(i<<5)-i+n,i|=0;return i}function q(t,e,n,r,i,o){var a=!0;if("function"==typeof V.onBeforeSaveToFile&&"boolean"!=typeof(a=V.onBeforeSaveToFile(t,e,n,r,i))&&(a=!0),a)try{$=new Blob([t],{type:n+";charset="+r}),saveAs($,e,!1===o),"function"==typeof V.onAfterSaveToFile&&V.onAfterSaveToFile(t,e)}catch(a){U(e,"data:"+n+(r.length?";charset="+r:"")+(i.length?";"+i:"")+",",o?"\ufeff"+t:t)}}function U(t,e,n){var r=window.navigator.userAgent;if(!1!==t&&window.navigator.msSaveOrOpenBlob)window.navigator.msSaveOrOpenBlob(new Blob([n]),t);else if(!1!==t&&(r.indexOf("MSIE ")>0||r.match(/Trident.*rv\:11\./))){var i=document.createElement("iframe");if(i){document.body.appendChild(i),i.setAttribute("style","display:none"),i.contentDocument.open("txt/plain","replace"),i.contentDocument.write(n),i.contentDocument.close(),i.contentWindow.focus();var o=t.substr(t.lastIndexOf(".")+1);switch(o){case"doc":case"json":case"png":case"pdf":case"xls":case"xlsx":t+=".txt"}i.contentDocument.execCommand("SaveAs",!0,t),document.body.removeChild(i)}}else{var a=document.createElement("a");if(a){var s=null;if(a.style.display="none",!1!==t?a.download=t:a.target="_blank","object"==typeof n){window.URL=window.URL||window.webkitURL;var l=[];l.push(n),s=window.URL.createObjectURL(new Blob(l,{type:e})),a.href=s}else e.toLowerCase().indexOf("base64,")>=0?a.href=e+H(n):a.href=e+encodeURIComponent(n);document.body.appendChild(a),document.createEvent?(null===J&&(J=document.createEvent("MouseEvents")),J.initEvent("click",!0,!1),a.dispatchEvent(J)):document.createEventObject?a.fireEvent("onclick"):"function"==typeof a.onclick&&a.onclick(),setTimeout(function(){s&&window.URL.revokeObjectURL(s),document.body.removeChild(a),"function"==typeof V.onAfterSaveToFile&&V.onAfterSaveToFile(n,t)},100)}}}function z(t){if("string"==typeof t){t=t.replace(/\x0d\x0a/g,"\n");for(var e="",n=0;n<t.length;n++){var r=t.charCodeAt(n);r<128?e+=String.fromCharCode(r):r>127&&r<2048?(e+=String.fromCharCode(r>>6|192),e+=String.fromCharCode(63&r|128)):(e+=String.fromCharCode(r>>12|224),e+=String.fromCharCode(r>>6&63|128),e+=String.fromCharCode(63&r|128))}return e}return t}function H(t){var e,n,r,i,o,a,s,l="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",c="",u=0;for(t=z(t);u<t.length;)e=t.charCodeAt(u++),n=t.charCodeAt(u++),r=t.charCodeAt(u++),i=e>>2,o=(3&e)<<4|n>>4,a=(15&n)<<2|r>>6,s=63&r,isNaN(n)?a=s=64:isNaN(r)&&(s=64),c=c+l.charAt(i)+l.charAt(o)+l.charAt(a)+l.charAt(s);return c}var $,V={csvEnclosure:'"',csvSeparator:",",csvUseBOM:!0,date:{html:"dd/mm/yyyy"},displayTableName:!1,escape:!1,exportHiddenCells:!1,fileName:"tableExport",htmlContent:!1,htmlHyperlink:"content",ignoreColumn:[],ignoreRow:[],jsonScope:"all",jspdf:{orientation:"p",unit:"pt",format:"a4",margins:{left:20,right:10,top:10,bottom:10},onDocCreated:null,autotable:{styles:{cellPadding:2,rowHeight:12,fontSize:8,fillColor:255,textColor:50,fontStyle:"normal",overflow:"ellipsize",halign:"inherit",valign:"middle"},headerStyles:{fillColor:[52,73,94],textColor:255,fontStyle:"bold",halign:"inherit",valign:"middle"},alternateRowStyles:{fillColor:245},tableExport:{doc:null,onAfterAutotable:null,onBeforeAutotable:null,onAutotableText:null,onTable:null,outputImages:!0}}},mso:{fileFormat:"xlshtml",onMsoNumberFormat:null,pageFormat:"a4",pageOrientation:"portrait",rtl:!1,styles:[],worksheetName:"",xslx:{formatId:{date:14,numbers:2}}},numbers:{html:{decimalMark:".",thousandsSeparator:","},output:{decimalMark:".",thousandsSeparator:","}},onAfterSaveToFile:null,onBeforeSaveToFile:null,onCellData:null,onCellHtmlData:null,onCellHtmlHyperlink:null,onIgnoreRow:null,onTableExportBegin:null,onTableExportEnd:null,outputMode:"file",pdfmake:{enabled:!1,docDefinition:{pageOrientation:"portrait",defaultStyle:{font:"Roboto"}},fonts:{}},preserve:{leadingWS:!1,trailingWS:!1},preventInjection:!0,sql:{tableEnclosure:"`",columnEnclosure:"`"},tbodySelector:"tr",tfootSelector:"tr",theadSelector:"tr",tableName:"Table",type:"csv"},W={a0:[2383.94,3370.39],a1:[1683.78,2383.94],a2:[1190.55,1683.78],a3:[841.89,1190.55],a4:[595.28,841.89],a5:[419.53,595.28],a6:[297.64,419.53],a7:[209.76,297.64],a8:[147.4,209.76],a9:[104.88,147.4],a10:[73.7,104.88],b0:[2834.65,4008.19],b1:[2004.09,2834.65],b2:[1417.32,2004.09],b3:[1000.63,1417.32],b4:[708.66,1000.63],b5:[498.9,708.66],b6:[354.33,498.9],b7:[249.45,354.33],b8:[175.75,249.45],b9:[124.72,175.75],b10:[87.87,124.72],c0:[2599.37,3676.54],c1:[1836.85,2599.37],c2:[1298.27,1836.85],c3:[918.43,1298.27],c4:[649.13,918.43],c5:[459.21,649.13],c6:[323.15,459.21],c7:[229.61,323.15],c8:[161.57,229.61],c9:[113.39,161.57],c10:[79.37,113.39],dl:[311.81,623.62],letter:[612,792],"government-letter":[576,756],legal:[612,1008],"junior-legal":[576,360],ledger:[1224,792],tabloid:[792,1224],"credit-card":[153,243]},G=1.15,Y=this,J=null,X=[],K=[],Q=0,Z="",tt=[],et=[],nt=[],rt=!1;if(t.extend(!0,V,e),"xlsx"===V.type&&(V.mso.fileFormat=V.type,V.type="excel"),void 0!==V.excelFileFormat&&"undefined"===V.mso.fileFormat&&(V.mso.fileFormat=V.excelFileFormat),void 0!==V.excelPageFormat&&"undefined"===V.mso.pageFormat&&(V.mso.pageFormat=V.excelPageFormat),void 0!==V.excelPageOrientation&&"undefined"===V.mso.pageOrientation&&(V.mso.pageOrientation=V.excelPageOrientation),void 0!==V.excelRTL&&"undefined"===V.mso.rtl&&(V.mso.rtl=V.excelRTL),void 0!==V.excelstyles&&"undefined"===V.mso.styles&&(V.mso.styles=V.excelstyles),void 0!==V.onMsoNumberFormat&&"undefined"===V.mso.onMsoNumberFormat&&(V.mso.onMsoNumberFormat=V.onMsoNumberFormat),void 0!==V.worksheetName&&"undefined"===V.mso.worksheetName&&(V.mso.worksheetName=V.worksheetName),V.mso.pageOrientation="l"===V.mso.pageOrientation.substr(0,1)?"landscape":"portrait",V.date.html=V.date.html||"",V.date.html.length){var it=[];it.dd="(3[01]|[12][0-9]|0?[1-9])",it.mm="(1[012]|0?[1-9])",it.yyyy="((?:1[6-9]|2[0-2])\\d{2})",it.yy="(\\d{2})";var ot=V.date.html.match(/[^a-zA-Z0-9]/)[0],at=V.date.html.toLowerCase().split(ot);V.date.regex="^\\s*",V.date.regex+=it[at[0]],V.date.regex+="(.)",V.date.regex+=it[at[1]],V.date.regex+="\\2",V.date.regex+=it[at[2]],V.date.regex+="\\s*$",V.date.pattern=new RegExp(V.date.regex,"g");var st=at.indexOf("dd")+1;V.date.match_d=st+(st>1?1:0),st=at.indexOf("mm")+1,V.date.match_m=st+(st>1?1:0),st=(at.indexOf("yyyy")>=0?at.indexOf("yyyy"):at.indexOf("yy"))+1,V.date.match_y=st+(st>1?1:0)}if(tt=o(Y),"function"==typeof V.onTableExportBegin&&V.onTableExportBegin(),"csv"===V.type||"tsv"===V.type||"txt"===V.type){var lt="",ct=0;et=[],Q=0;var ut=function(t,e,n){var r="";if(null!==t){var i=A(t,e,n),o=null===i||""===i?"":i.toString();"tsv"===V.type?(i instanceof Date&&i.toLocaleString(),r=v(o,"\t"," ")):i instanceof Date?r=V.csvEnclosure+i.toLocaleString()+V.csvEnclosure:(r=N(o),r=v(r,V.csvEnclosure,V.csvEnclosure+V.csvEnclosure),(r.indexOf(V.csvSeparator)>=0||/[\r\n ]/g.test(r))&&(r=V.csvEnclosure+r+V.csvEnclosure))}return r},ft=function(e,n,r){return e.each(function(){Z="",c(this,n,Q,r+e.length,function(t,e,n){Z+=ut(t,e,n)+("tsv"===V.type?"\t":V.csvSeparator)}),Z=t.trim(Z).substring(0,Z.length-1),Z.length>0&&(lt.length>0&&(lt+="\n"),lt+=Z),Q++}),e.length};if(ct+=ft(t(Y).find("thead").first().find(V.theadSelector),"th,td",ct),i(t(Y),"tbody").each(function(){ct+=ft(i(t(this),V.tbodySelector),"td,th",ct)}),V.tfootSelector.length&&ft(t(Y).find("tfoot").first().find(V.tfootSelector),"td,th",ct),lt+="\n","string"===V.outputMode)return lt;if("base64"===V.outputMode)return H(lt);if("window"===V.outputMode)return void U(!1,"data:text/"+("csv"===V.type?"csv":"plain")+";charset=utf-8,",lt);q(lt,V.fileName+"."+V.type,"text/"+("csv"===V.type?"csv":"plain"),"utf-8","","csv"===V.type&&V.csvUseBOM)}else if("sql"===V.type){Q=0,et=[];var ht="INSERT INTO "+V.sql.tableEnclosure+V.tableName+V.sql.tableEnclosure+" (";if(X=n(t(Y)),t(X).each(function(){c(this,"th,td",Q,X.length,function(t,e,n){var r=A(t,e,n)||"";r.indexOf(V.sql.columnEnclosure)>-1&&(r=v(r.toString(),V.sql.columnEnclosure,V.sql.columnEnclosure+V.sql.columnEnclosure)),ht+=V.sql.columnEnclosure+r+V.sql.columnEnclosure+","}),Q++,ht=t.trim(ht).substring(0,ht.length-1)}),ht+=") VALUES ",K=r(t(Y)),t(K).each(function(){Z="",c(this,"td,th",Q,X.length+K.length,function(t,e,n){var r=A(t,e,n)||"";r.indexOf("'")>-1&&(r=v(r.toString(),"'","''")),Z+="'"+r+"',"}),Z.length>3&&(ht+="("+Z,ht=t.trim(ht).substring(0,ht.length-1),ht+="),"),Q++}),ht=t.trim(ht).substring(0,ht.length-1),ht+=";","string"===V.outputMode)return ht;if("base64"===V.outputMode)return H(ht);q(ht,V.fileName+".sql","application/sql","utf-8","",!1)}else if("json"===V.type){var dt=[];et=[],X=n(t(Y)),t(X).each(function(){var t=[];c(this,"th,td",Q,X.length,function(e,n,r){t.push(A(e,n,r))}),dt.push(t)});var pt=[];K=r(t(Y)),t(K).each(function(){var e={},n=0;c(this,"td,th",Q,X.length+K.length,function(t,r,i){dt.length?e[dt[dt.length-1][n]]=A(t,r,i):e[n]=A(t,r,i),n++}),!1===t.isEmptyObject(e)&&pt.push(e),Q++});var gt;if(gt="head"===V.jsonScope?JSON.stringify(dt):"data"===V.jsonScope?JSON.stringify(pt):JSON.stringify({header:dt,data:pt}),"string"===V.outputMode)return gt;if("base64"===V.outputMode)return H(gt);q(gt,V.fileName+".json","application/json","utf-8","base64",!1)}else if("xml"===V.type){Q=0,et=[];var mt='<?xml version="1.0" encoding="utf-8"?>';mt+="<tabledata><fields>",X=n(t(Y)),t(X).each(function(){c(this,"th,td",Q,X.length,function(t,e,n){mt+="<field>"+A(t,e,n)+"</field>"}),Q++}),mt+="</fields><data>";var vt=1;if(K=r(t(Y)),t(K).each(function(){var t=1;Z="",c(this,"td,th",Q,X.length+K.length,function(e,n,r){Z+="<column-"+t+">"+A(e,n,r)+"</column-"+t+">",t++}),Z.length>0&&"<column-1></column-1>"!==Z&&(mt+='<row id="'+vt+'">'+Z+"</row>",vt++),Q++}),mt+="</data></tabledata>","string"===V.outputMode)return mt;if("base64"===V.outputMode)return H(mt);q(mt,V.fileName+".xml","application/xml","utf-8","base64",!1)}else if("excel"===V.type&&"xmlss"===V.mso.fileFormat){var yt=[],bt=[];t(Y).filter(function(){return a(t(this))}).each(function(){function e(e,n,r){var i=[];return t(e).each(function(){var n=0,o=0;Z="",c(this,"td,th",Q,r+e.length,function(e,r,a){if(null!==e){var s="",l=A(e,r,a),c="String";if(!1!==jQuery.isNumeric(l))c="Number";else{var u=S(l);!1!==u&&(l=u,c="Number",s+=' ss:StyleID="pct1"')}"Number"!==c&&(l=l.replace(/\n/g,"<br>"));var f=O(e),h=_(e);t.each(i,function(){var t=this;if(Q>=t.s.r&&Q<=t.e.r&&o>=t.s.c&&o<=t.e.c)for(var e=0;e<=t.e.c-t.s.c;++e)o++,n++}),(h||f)&&(h=h||1,f=f||1,i.push({s:{r:Q,c:o},e:{r:Q+h-1,c:o+f-1}})),f>1&&(s+=' ss:MergeAcross="'+(f-1)+'"',o+=f-1),h>1&&(s+=' ss:MergeDown="'+(h-1)+'" ss:StyleID="rsp1"'),n>0&&(s+=' ss:Index="'+(o+1)+'"',n=0),Z+="<Cell"+s+'><Data ss:Type="'+c+'">'+t("<div />").text(l).html()+"</Data></Cell>\r",o++}}),Z.length>0&&(Ft+='<Row ss:AutoFitHeight="0">\r'+Z+"</Row>\r"),Q++}),e.length}var i=t(this),a="";"string"==typeof V.mso.worksheetName&&V.mso.worksheetName.length?a=V.mso.worksheetName+" "+(bt.length+1):void 0!==V.mso.worksheetName[bt.length]&&(a=V.mso.worksheetName[bt.length]),a.length||(a=i.find("caption").text()||""),a.length||(a="Table "+(bt.length+1)),a=t.trim(a.replace(/[\\\/[\]*:?'"]/g,"").substring(0,31)),bt.push(t("<div />").text(a).html()),!1===V.exportHiddenCells&&(nt=i.find("tr, th, td").filter(":hidden"),rt=nt.length>0),Q=0,tt=o(this),+Ft="<Table>\r";var s=e(n(i),"th,td",0);e(r(i),"td,th",s),Ft+="</Table>\r",yt.push(Ft)});for(var wt,xt,St={},At={},Nt=0,Lt=bt.length;Nt<Lt;Nt++)wt=bt[Nt],xt=St[wt],xt=St[wt]=null==xt?1:xt+1,2===xt&&(bt[At[wt]]=bt[At[wt]].substring(0,29)+"-1"),St[wt]>1?bt[Nt]=bt[Nt].substring(0,29)+"-"+St[wt]:At[wt]=Nt;for(var kt=(new Date).toISOString(),Ct='<?xml version="1.0" encoding="UTF-8"?>\r<?mso-application progid="Excel.Sheet"?>\r<Workbook xmlns="urn:schemas-microsoft-com:office:spreadsheet"\r xmlns:o="urn:schemas-microsoft-com:office:office"\r xmlns:x="urn:schemas-microsoft-com:office:excel"\r xmlns:ss="urn:schemas-microsoft-com:office:spreadsheet"\r xmlns:html="http://www.w3.org/TR/REC-html40">\r<DocumentProperties xmlns="urn:schemas-microsoft-com:office:office">\r <Created>'+kt+'</Created>\r</DocumentProperties>\r<OfficeDocumentSettings xmlns="urn:schemas-microsoft-com:office:office">\r <AllowPNG/>\r</OfficeDocumentSettings>\r<ExcelWorkbook xmlns="urn:schemas-microsoft-com:office:excel">\r <WindowHeight>9000</WindowHeight>\r <WindowWidth>13860</WindowWidth>\r <WindowTopX>0</WindowTopX>\r <WindowTopY>0</WindowTopY>\r <ProtectStructure>False</ProtectStructure>\r <ProtectWindows>False</ProtectWindows>\r</ExcelWorkbook>\r<Styles>\r <Style ss:ID="Default" ss:Name="Normal">\r <Alignment ss:Vertical="Bottom"/>\r <Borders/>\r <Font/>\r <Interior/>\r <NumberFormat/>\r <Protection/>\r </Style>\r <Style ss:ID="rsp1">\r <Alignment ss:Vertical="Center"/>\r </Style>\r <Style ss:ID="pct1">\r <NumberFormat ss:Format="Percent"/>\r </Style>\r</Styles>\r',Ot=0;Ot<yt.length;Ot++)Ct+='<Worksheet ss:Name="'+bt[Ot]+'" ss:RightToLeft="'+(V.mso.rtl?"1":"0")+'">\r'+yt[Ot],V.mso.rtl?Ct+='<WorksheetOptions xmlns="urn:schemas-microsoft-com:office:excel">\r<DisplayRightToLeft/>\r</WorksheetOptions>\r':Ct+='<WorksheetOptions xmlns="urn:schemas-microsoft-com:office:excel"/>\r',Ct+="</Worksheet>\r";if(Ct+="</Workbook>\r","string"===V.outputMode)return Ct;if("base64"===V.outputMode)return H(Ct);q(Ct,V.fileName+".xml","application/xml","utf-8","base64",!1)}else if("excel"===V.type&&"xlsx"===V.mso.fileFormat){var _t=[],Pt=XLSX.utils.book_new();t(Y).filter(function(){return a(t(this))}).each(function(){var e=t(this),n=E(this),r="";"string"==typeof V.mso.worksheetName&&V.mso.worksheetName.length?r=V.mso.worksheetName+" "+(_t.length+1):void 0!==V.mso.worksheetName[_t.length]&&(r=V.mso.worksheetName[_t.length]),r.length||(r=e.find("caption").text()||""),r.length||(r="Table "+(_t.length+1)),r=t.trim(r.replace(/[\\\/[\]*:?'"]/g,"").substring(0,31)),_t.push(r),XLSX.utils.book_append_sheet(Pt,n,r)});var It=XLSX.write(Pt,{type:"binary",bookType:V.mso.fileFormat,bookSST:!1});q(function(t){for(var e=new ArrayBuffer(t.length),n=new Uint8Array(e),r=0;r!==t.length;++r)n[r]=255&t.charCodeAt(r);return e}(It),V.fileName+"."+V.mso.fileFormat,"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet","UTF-8","",!1)}else if("excel"===V.type||"xls"===V.type||"word"===V.type||"doc"===V.type){var Tt="excel"===V.type||"xls"===V.type?"excel":"word",Et="excel"===Tt?"xls":"doc",jt='xmlns:x="urn:schemas-microsoft-com:office:'+Tt+'"',Ft="",Rt="";t(Y).filter(function(){return a(t(this))}).each(function(){var e=t(this);""===Rt&&(Rt=V.mso.worksheetName||e.find("caption").text()||"Table",Rt=t.trim(Rt.replace(/[\\\/[\]*:?'"]/g,"").substring(0,31))),!1===V.exportHiddenCells&&(nt=e.find("tr, th, td").filter(":hidden"),rt=nt.length>0),Q=0,et=[],tt=o(this),Ft+="<table><thead>",X=n(e),t(X).each(function(){var e=t(this);Z="",c(this,"th,td",Q,X.length,function(t,n,r){if(null!==t){var i="";if(Z+="<th",V.mso.styles.length){var o=document.defaultView.getComputedStyle(t,null),a=document.defaultView.getComputedStyle(e[0],null);for(var s in V.mso.styles){var l=o[V.mso.styles[s]];""===l&&(l=a[V.mso.styles[s]]),""!==l&&"0px none rgb(0, 0, 0)"!==l&&"rgba(0, 0, 0, 0)"!==l&&(i+=""===i?'style="':";",i+=V.mso.styles[s]+":"+l)}}""!==i&&(Z+=" "+i+'"');var c=O(t);c>0&&(Z+=' colspan="'+c+'"');var u=_(t);u>0&&(Z+=' rowspan="'+u+'"'),Z+=">"+A(t,n,r)+"</th>"}}),Z.length>0&&(Ft+="<tr>"+Z+"</tr>"),Q++}),Ft+="</thead><tbody>",K=r(e),t(K).each(function(){var e=t(this);Z="",c(this,"td,th",Q,X.length+K.length,function(n,r,i){if(null!==n){var o=A(n,r,i),a="",s=t(n).attr("data-tableexport-msonumberformat");if(void 0===s&&"function"==typeof V.mso.onMsoNumberFormat&&(s=V.mso.onMsoNumberFormat(n,r,i)),void 0!==s&&""!==s&&(a="style=\"mso-number-format:'"+s+"'"),V.mso.styles.length){var l=document.defaultView.getComputedStyle(n,null),c=document.defaultView.getComputedStyle(e[0],null);for(var u in V.mso.styles)s=l[V.mso.styles[u]],""===s&&(s=c[V.mso.styles[u]]),""!==s&&"0px none rgb(0, 0, 0)"!==s&&"rgba(0, 0, 0, 0)"!==s&&(a+=""===a?'style="':";",a+=V.mso.styles[u]+":"+s)}Z+="<td",""!==a&&(Z+=" "+a+'"');var f=O(n);f>0&&(Z+=' colspan="'+f+'"');var h=_(n);h>0&&(Z+=' rowspan="'+h+'"'),"string"==typeof o&&""!==o&&(o=N(o),o=o.replace(/\n/g,"<br>")),Z+=">"+o+"</td>"}}),Z.length>0&&(Ft+="<tr>"+Z+"</tr>"),Q++}),V.displayTableName&&(Ft+="<tr><td></td></tr><tr><td></td></tr><tr><td>"+A(t("<p>"+V.tableName+"</p>"))+"</td></tr>"),Ft+="</tbody></table>"});var Bt='<html xmlns:o="urn:schemas-microsoft-com:office:office" '+jt+' xmlns="http://www.w3.org/TR/REC-html40">';if(Bt+='<meta http-equiv="content-type" content="application/vnd.ms-'+Tt+'; charset=UTF-8">',Bt+="<head>","excel"===Tt&&(Bt+="\x3c!--[if gte mso 9]>",Bt+="<xml>",Bt+="<x:ExcelWorkbook>",Bt+="<x:ExcelWorksheets>",Bt+="<x:ExcelWorksheet>",Bt+="<x:Name>",Bt+=Rt,Bt+="</x:Name>",Bt+="<x:WorksheetOptions>",Bt+="<x:DisplayGridlines/>",V.mso.rtl&&(Bt+="<x:DisplayRightToLeft/>"),Bt+="</x:WorksheetOptions>",Bt+="</x:ExcelWorksheet>",Bt+="</x:ExcelWorksheets>",Bt+="</x:ExcelWorkbook>",Bt+="</xml>",Bt+="<![endif]--\x3e"),Bt+="<style>",Bt+="@page { size:"+V.mso.pageOrientation+"; mso-page-orientation:"+V.mso.pageOrientation+"; }",Bt+="@page Section1 {size:"+W[V.mso.pageFormat][0]+"pt "+W[V.mso.pageFormat][1]+"pt",Bt+="; margin:1.0in 1.25in 1.0in 1.25in;mso-header-margin:.5in;mso-footer-margin:.5in;mso-paper-source:0;}",Bt+="div.Section1 {page:Section1;}",Bt+="@page Section2 {size:"+W[V.mso.pageFormat][1]+"pt "+W[V.mso.pageFormat][0]+"pt",Bt+=";mso-page-orientation:"+V.mso.pageOrientation+";margin:1.25in 1.0in 1.25in 1.0in;mso-header-margin:.5in;mso-footer-margin:.5in;mso-paper-source:0;}",Bt+="div.Section2 {page:Section2;}",Bt+="br {mso-data-placement:same-cell;}",Bt+="</style>",Bt+="</head>",Bt+="<body>",Bt+='<div class="Section'+("landscape"===V.mso.pageOrientation?"2":"1")+'">',Bt+=Ft,Bt+="</div>",Bt+="</body>",Bt+="</html>","string"===V.outputMode)return Bt;if("base64"===V.outputMode)return H(Bt);q(Bt,V.fileName+"."+Et,"application/vnd.ms-"+Tt,"","base64",!1)}else if("png"===V.type)html2canvas(t(Y)[0]).then(function(t){for(var e=t.toDataURL(),n=atob(e.substring(22)),r=new ArrayBuffer(n.length),i=new Uint8Array(r),o=0;o<n.length;o++)i[o]=n.charCodeAt(o);return"string"===V.outputMode?n:"base64"===V.outputMode?H(e):"window"===V.outputMode?void window.open(e):void q(r,V.fileName+".png","image/png","","",!1)});else if("pdf"===V.type)if(!0===V.pdfmake.enabled){var Mt=[],Dt=[];Q=0,et=[];var qt=function(e,n,r){var i=0;return t(e).each(function(){var t=[];c(this,n,Q,r,function(e,n,r){if(void 0!==e&&null!==e){var i=O(e),o=_(e),a=A(e,n,r)||" ";i>1||o>1?(i=i||1,o=o||1,t.push({colSpan:i,rowSpan:o,text:a})):t.push(a)}else t.push(" ")}),t.length&&Dt.push(t),i<t.length&&(i=t.length),Q++}),i};X=n(t(this));for(var Ut=qt(X,"th,td",X.length),zt=Mt.length;zt<Ut;zt++)Mt.push("*");K=r(t(this)),qt(K,"th,td",X.length+K.length);var Ht={content:[{table:{headerRows:X.length,widths:Mt,body:Dt}}]};"undefined"!=typeof pdfMake&&(pdfMake.fonts={Roboto:{normal:"Roboto-Regular.ttf",bold:"Roboto-Medium.ttf",italics:"Roboto-Italic.ttf",bolditalics:"Roboto-MediumItalic.ttf"}},pdfMake.vfs.hasOwnProperty("Mirza-Regular.ttf")?(V.pdfmake.docDefinition.defaultStyle.font="Mirza",t.extend(!0,pdfMake.fonts,{Mirza:{normal:"Mirza-Regular.ttf",bold:"Mirza-Bold.ttf",italics:"Mirza-Medium.ttf",bolditalics:"Mirza-SemiBold.ttf"}})):pdfMake.vfs.hasOwnProperty("gbsn00lp.ttf")?(V.pdfmake.docDefinition.defaultStyle.font="gbsn00lp",t.extend(!0,pdfMake.fonts,{gbsn00lp:{normal:"gbsn00lp.ttf",bold:"gbsn00lp.ttf",italics:"gbsn00lp.ttf",bolditalics:"gbsn00lp.ttf"}})):pdfMake.vfs.hasOwnProperty("ZCOOLXiaoWei-Regular.ttf")&&(V.pdfmake.docDefinition.defaultStyle.font="ZCOOLXiaoWei",t.extend(!0,pdfMake.fonts,{ZCOOLXiaoWei:{normal:"ZCOOLXiaoWei-Regular.ttf",bold:"ZCOOLXiaoWei-Regular.ttf",italics:"ZCOOLXiaoWei-Regular.ttf",bolditalics:"ZCOOLXiaoWei-Regular.ttf"}})),t.extend(!0,Ht,V.pdfmake.docDefinition),t.extend(!0,pdfMake.fonts,V.pdfmake.fonts),void 0!==pdfMake.createPdf&&pdfMake.createPdf(Ht).getBuffer(function(t){q(t,V.fileName+".pdf","application/pdf","","",!1)}))}else if(!1===V.jspdf.autotable){var $t={dim:{w:T(t(Y).first().get(0),"width","mm"),h:T(t(Y).first().get(0),"height","mm")},pagesplit:!1},Vt=new jsPDF(V.jspdf.orientation,V.jspdf.unit,V.jspdf.format);Vt.addHTML(t(Y).first(),V.jspdf.margins.left,V.jspdf.margins.top,$t,function(){f(Vt,!1)})}else{var Wt=V.jspdf.autotable.tableExport;if("string"==typeof V.jspdf.format&&"bestfit"===V.jspdf.format.toLowerCase()){var Gt="",Yt="",Jt=0;t(Y).each(function(){if(a(t(this))){var e=T(t(this).get(0),"width","pt");if(e>Jt){e>W.a0[0]&&(Gt="a0",Yt="l");for(var n in W)W.hasOwnProperty(n)&&W[n][1]>e&&(Gt=n,Yt="l",W[n][0]>e&&(Yt="p"));Jt=e}}}),V.jspdf.format=""===Gt?"a4":Gt,V.jspdf.orientation=""===Yt?"w":Yt}null==Wt.doc&&(Wt.doc=new jsPDF(V.jspdf.orientation,V.jspdf.unit,V.jspdf.format),Wt.wScaleFactor=1,Wt.hScaleFactor=1,"function"==typeof V.jspdf.onDocCreated&&V.jspdf.onDocCreated(Wt.doc)),!0===Wt.outputImages&&(Wt.images={}),void 0!==Wt.images&&(t(Y).filter(function(){return a(t(this))}).each(function(){var e=0;et=[],!1===V.exportHiddenCells&&(nt=t(this).find("tr, th, td").filter(":hidden"),rt=nt.length>0),X=n(t(this)),K=r(t(this)),t(K).each(function(){c(this,"td,th",X.length+e,X.length+K.length,function(e){d(e,t(e).children(),Wt)}),e++})}),X=[],K=[]),function(e,n){function r(){n(i)}var i=0,o=0;if(void 0!==e.images)for(var a in e.images)e.images.hasOwnProperty(a)&&function(e){if(e.url)if(e.src){var n=new Image;i=++o,n.crossOrigin="Anonymous",n.onerror=n.onload=function(){if(n.complete&&(0===n.src.indexOf("data:image/")&&(n.width=e.width||n.width||0,n.height=e.height||n.height||0),n.width+n.height)){var t=document.createElement("canvas"),i=t.getContext("2d");t.width=n.width,t.height=n.height,i.drawImage(n,0,0),e.src=t.toDataURL("image/png")}--o||r()},n.src=e.url}else{var a=t(e.url);a.length&&(i=++o,html2canvas(a[0]).then(function(t){e.src=t.toDataURL("image/png"),--o||r()}))}}(e.images[a]);o||r()}(Wt,function(){t(Y).filter(function(){return a(t(this))}).each(function(){var e;if(Q=0,et=[],!1===V.exportHiddenCells&&(nt=t(this).find("tr, th, td").filter(":hidden"),rt=nt.length>0),tt=o(this),Wt.columns=[],Wt.rows=[],Wt.teCells={},"function"==typeof Wt.onTable&&!1===Wt.onTable(t(this),V))return!0;V.jspdf.autotable.tableExport=null;var i=t.extend(!0,{},V.jspdf.autotable);if(V.jspdf.autotable.tableExport=Wt,i.margin={},t.extend(!0,i.margin,V.jspdf.margins),i.tableExport=Wt,"function"!=typeof i.beforePageContent&&(i.beforePageContent=function(e){if(1===e.pageCount){var n=e.table.rows.concat(e.table.headerRow);t.each(n,function(){var t=this;t.height>0&&(t.height+=(2-G)/2*t.styles.fontSize,e.table.height+=(2-G)/2*t.styles.fontSize)})}}),"function"!=typeof i.createdHeaderCell&&(i.createdHeaderCell=function(e,n){if(e.styles=t.extend({},n.row.styles),void 0!==Wt.columns[n.column.dataKey]){var r=Wt.columns[n.column.dataKey];if(void 0!==r.rect){var o;e.contentWidth=r.rect.width,void 0!==Wt.heightRatio&&0!==Wt.heightRatio||(o=n.row.raw[n.column.dataKey].rowspan?n.row.raw[n.column.dataKey].rect.height/n.row.raw[n.column.dataKey].rowspan:n.row.raw[n.column.dataKey].rect.height,Wt.heightRatio=e.styles.rowHeight/o),o=n.row.raw[n.column.dataKey].rect.height*Wt.heightRatio,o>e.styles.rowHeight&&(e.styles.rowHeight=o)}e.styles.halign="inherit"===i.headerStyles.halign?"center":i.headerStyles.halign,e.styles.valign=i.headerStyles.valign,void 0!==r.style&&!0!==r.style.hidden&&("inherit"===i.headerStyles.halign&&(e.styles.halign=r.style.align),"inherit"===i.styles.fillColor&&(e.styles.fillColor=r.style.bcolor),"inherit"===i.styles.textColor&&(e.styles.textColor=r.style.color),"inherit"===i.styles.fontStyle&&(e.styles.fontStyle=r.style.fstyle))}}),"function"!=typeof i.createdCell&&(i.createdCell=function(t,e){var n=Wt.teCells[e.row.index+":"+e.column.dataKey];t.styles.halign="inherit"===i.styles.halign?"center":i.styles.halign,t.styles.valign=i.styles.valign,void 0!==n&&void 0!==n.style&&!0!==n.style.hidden&&("inherit"===i.styles.halign&&(t.styles.halign=n.style.align),"inherit"===i.styles.fillColor&&(t.styles.fillColor=n.style.bcolor),"inherit"===i.styles.textColor&&(t.styles.textColor=n.style.color),"inherit"===i.styles.fontStyle&&(t.styles.fontStyle=n.style.fstyle))}),"function"!=typeof i.drawHeaderCell&&(i.drawHeaderCell=function(t,e){var n=Wt.columns[e.column.dataKey];return(!0!==n.style.hasOwnProperty("hidden")||!0!==n.style.hidden)&&n.rowIndex>=0&&h(t,e,n)}),"function"!=typeof i.drawCell&&(i.drawCell=function(e,n){var r=Wt.teCells[n.row.index+":"+n.column.dataKey];if(!0!==(void 0!==r&&r.isCanvas)){if(h(e,n,r))if(Wt.doc.rect(e.x,e.y,e.width,e.height,e.styles.fillStyle),void 0===r||void 0!==r.hasUserDefText&&!0===r.hasUserDefText||void 0===r.elements||!r.elements.length)g(e,{},Wt);else{var i=e.height/r.rect.height;i>Wt.hScaleFactor&&(Wt.hScaleFactor=i),Wt.wScaleFactor=e.width/r.rect.width;var o=e.textPos.y;p(e,r.elements,Wt),e.textPos.y=o,g(e,r.elements,Wt)}}else{var a=r.elements[0],s=t(a).attr("data-tableexport-canvas"),l=a.getBoundingClientRect();e.width=l.width*Wt.wScaleFactor,e.height=l.height*Wt.hScaleFactor,n.row.height=e.height,u(e,a,s,Wt)}return!1}),Wt.headerrows=[],X=n(t(this)),t(X).each(function(){e=0,Wt.headerrows[Q]=[],c(this,"th,td",Q,X.length,function(t,n,r){var i=C(t);i.title=A(t,n,r),i.key=e++,i.rowIndex=Q,Wt.headerrows[Q].push(i)}),Q++}),Q>0)for(var a=Q-1;a>=0;)t.each(Wt.headerrows[a],function(){var t=this;a>0&&null===this.rect&&(t=Wt.headerrows[a-1][this.key]),null!==t&&t.rowIndex>=0&&(!0!==t.style.hasOwnProperty("hidden")||!0!==t.style.hidden)&&Wt.columns.push(t)}),a=Wt.columns.length>0?-1:a-1;var s=0;K=[],K=r(t(this)),t(K).each(function(){var n=[];e=0,c(this,"td,th",Q,X.length+K.length,function(r,i,o){var a;void 0===Wt.columns[e]&&(a={title:"",key:e,style:{hidden:!0}},Wt.columns.push(a)),n.push(A(r,i,o)),void 0!==r&&null!==r?(a=C(r),a.isCanvas=r.hasAttribute("data-tableexport-canvas"),a.elements=a.isCanvas?t(r):t(r).children(),void 0!==t(r).data("teUserDefText")&&(a.hasUserDefText=!0),Wt.teCells[s+":"+e++]=a):(a=t.extend(!0,{},Wt.teCells[s+":"+(e-1)]),a.colspan=-1,Wt.teCells[s+":"+e++]=a)}),n.length&&(Wt.rows.push(n),s++),Q++}),"function"==typeof Wt.onBeforeAutotable&&Wt.onBeforeAutotable(t(this),Wt.columns,Wt.rows,i),Wt.doc.autoTable(Wt.columns,Wt.rows,i),"function"==typeof Wt.onAfterAutotable&&Wt.onAfterAutotable(t(this),i),V.jspdf.autotable.startY=Wt.doc.autoTableEndPosY()+i.margin.top}),f(Wt.doc,void 0!==Wt.images&&!1===jQuery.isEmptyObject(Wt.images)),void 0!==Wt.headerrows&&(Wt.headerrows.length=0),void 0!==Wt.columns&&(Wt.columns.length=0),void 0!==Wt.rows&&(Wt.rows.length=0),delete Wt.doc,Wt.doc=null})}return"function"==typeof V.onTableExportEnd&&V.onTableExportEnd(),this}}(jQuery),function(t){"function"==typeof define&&define.amd?define(t):t()}(function(){"use strict";function t(e){return(t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(e)}function e(t){var e=0;if(71!==t[e++]||73!==t[e++]||70!==t[e++]||56!==t[e++]||56!=(t[e++]+1&253)||97!==t[e++])throw"Invalid GIF 87a/89a header.";var r=t[e++]|t[e++]<<8,i=t[e++]|t[e++]<<8,o=t[e++],a=o>>7,s=1<<1+(7&o);t[e++],t[e++];var l=null;a&&(l=e,e+=3*s);var c=!0,u=[],f=0,h=null,d=0,p=null;for(this.width=r,this.height=i;c&&e<t.length;)switch(t[e++]){case 33:switch(t[e++]){case 255:if(11!==t[e]||78==t[e+1]&&69==t[e+2]&&84==t[e+3]&&83==t[e+4]&&67==t[e+5]&&65==t[e+6]&&80==t[e+7]&&69==t[e+8]&&50==t[e+9]&&46==t[e+10]&&48==t[e+11]&&3==t[e+12]&&1==t[e+13]&&0==t[e+16])e+=14,p=t[e++]|t[e++]<<8,e++;else for(e+=12;0!==(L=t[e++]);)e+=L;break;case 249:if(4!==t[e++]||0!==t[e+4])throw"Invalid graphics extension block.";var g=t[e++];f=t[e++]|t[e++]<<8,h=t[e++],0==(1&g)&&(h=null),d=g>>2&7,e++;break;case 254:for(;0!==(L=t[e++]);)e+=L;break;default:throw"Unknown graphic control label: 0x"+t[e-1].toString(16)}break;case 44:var m=t[e++]|t[e++]<<8,v=t[e++]|t[e++]<<8,y=t[e++]|t[e++]<<8,b=t[e++]|t[e++]<<8,w=t[e++],x=w>>6&1,S=l,A=!1;w>>7&&(A=!0,S=e,e+=3*(1<<1+(7&w)));var N=e;for(e++;;){var L;if(0===(L=t[e++]))break;e+=L}u.push({x:m,y:v,width:y,height:b,has_local_palette:A,palette_offset:S,data_offset:N,data_length:e-N,transparent_index:h,interlaced:!!x,delay:f,disposal:d});break;case 59:c=!1;break;default:throw"Unknown gif block: 0x"+t[e-1].toString(16)}this.numFrames=function(){return u.length},this.loopCount=function(){return p},this.frameInfo=function(t){if(t<0||t>=u.length)throw"Frame index out of range.";return u[t]},this.decodeAndBlitFrameBGRA=function(e,i){var o=this.frameInfo(e),a=o.width*o.height,s=new Uint8Array(a);n(t,o.data_offset,s,a);var l=o.palette_offset,c=o.transparent_index;null===c&&(c=256);var u=o.width,f=r-u,h=u,d=4*(o.y*r+o.x),p=4*((o.y+o.height)*r+o.x),g=d,m=4*f;!0===o.interlaced&&(m+=4*(u+f)*7);for(var v=8,y=0,b=s.length;y<b;++y){var w=s[y];if(0===h&&(h=u,p<=(g+=m)&&(m=f+4*(u+f)*(v-1),g=d+(u+f)*(v<<1),v>>=1)),w===c)g+=4;else{var x=t[l+3*w],S=t[l+3*w+1],A=t[l+3*w+2];i[g++]=A,i[g++]=S,i[g++]=x,i[g++]=255}--h}},this.decodeAndBlitFrameRGBA=function(e,i){var o=this.frameInfo(e),a=o.width*o.height,s=new Uint8Array(a);n(t,o.data_offset,s,a);var l=o.palette_offset,c=o.transparent_index;null===c&&(c=256);var u=o.width,f=r-u,h=u,d=4*(o.y*r+o.x),p=4*((o.y+o.height)*r+o.x),g=d,m=4*f;!0===o.interlaced&&(m+=4*(u+f)*7);for(var v=8,y=0,b=s.length;y<b;++y){var w=s[y];if(0===h&&(h=u,p<=(g+=m)&&(m=f+4*(u+f)*(v-1),g=d+(u+f)*(v<<1),v>>=1)),w===c)g+=4;else{var x=t[l+3*w],S=t[l+3*w+1],A=t[l+3*w+2];i[g++]=x,i[g++]=S,i[g++]=A,i[g++]=255}--h}}}function n(t,e,n,r){for(var i=t[e++],o=1<<i,a=o+1,s=a+1,l=i+1,c=(1<<l)-1,u=0,f=0,h=0,d=t[e++],p=new Int32Array(4096),g=null;;){for(;u<16&&0!==d;)f|=t[e++]<<u,u+=8,1===d?d=t[e++]:--d;if(u<l)break;var m=f&c;if(f>>=l,u-=l,m!==o){if(m===a)break;for(var v=m<s?m:g,y=0,b=v;o<b;)b=p[b]>>8,++y;var w=b;if(r<h+y+(v!==m?1:0))return void console.log("Warning, gif stream longer than expected.");n[h++]=w;var x=h+=y;for(v!==m&&(n[h++]=w),b=v;y--;)b=p[b],n[--x]=255&b,b>>=8;null!==g&&s<4096&&(p[s++]=g<<8|w,c+1<=s&&l<12&&(++l,c=c<<1|1)),g=m}else s=a+1,c=(1<<(l=i+1))-1,g=null}return h!==r&&console.log("Warning, gif stream shorter than expected."),n}function r(t){function e(t,e){for(var n=0,r=0,i=new Array,o=1;o<=16;o++){for(var a=1;a<=t[o];a++)i[e[r]]=[],i[e[r]][0]=n,i[e[r]][1]=o,r++,n++;n*=2}return i}function n(t){for(var e=t[0],n=t[1]-1;0<=n;)e&1<<n&&(S|=1<<A),n--,--A<0&&(255==S?(r(255),r(0)):r(S),A=7,S=0)}function r(t){x.push(t)}function i(t){r(t>>8&255),r(255&t)}function o(t,e,r,i,o){for(var a,s=o[0],l=o[240],c=function(t,e){var n,r,i,o,a,s,l,c,u,f,h=0;for(u=0;u<8;++u){n=t[h],r=t[h+1],i=t[h+2],o=t[h+3],a=t[h+4],s=t[h+5],l=t[h+6];var d=n+(c=t[h+7]),p=n-c,g=r+l,m=r-l,v=i+s,y=i-s,w=o+a,x=o-a,S=d+w,A=d-w,N=g+v,L=g-v;t[h]=S+N,t[h+4]=S-N;var k=.707106781*(L+A);t[h+2]=A+k,t[h+6]=A-k;var C=.382683433*((S=x+y)-(L=m+p)),O=.5411961*S+C,_=1.306562965*L+C,P=.707106781*(N=y+m),I=p+P,T=p-P;t[h+5]=T+O,t[h+3]=T-O,t[h+1]=I+_,t[h+7]=I-_,h+=8}for(u=h=0;u<8;++u){n=t[h],r=t[h+8],i=t[h+16],o=t[h+24],a=t[h+32],s=t[h+40],l=t[h+48];var E=n+(c=t[h+56]),j=n-c,F=r+l,R=r-l,B=i+s,M=i-s,D=o+a,q=o-a,U=E+D,z=E-D,H=F+B,$=F-B;t[h]=U+H,t[h+32]=U-H;var V=.707106781*($+z);t[h+16]=z+V,t[h+48]=z-V;var W=.382683433*((U=q+M)-($=R+j)),G=.5411961*U+W,Y=1.306562965*$+W,J=.707106781*(H=M+R),X=j+J,K=j-J;t[h+40]=K+G,t[h+24]=K-G,t[h+8]=X+Y,t[h+56]=X-Y,h++}for(u=0;u<64;++u)f=t[u]*e[u],b[u]=0<f?f+.5|0:f-.5|0;return b}(t,e),u=0;u<64;++u)w[_[u]]=c[u];var f=w[0]-r;r=w[0],0==f?n(i[0]):(n(i[y[a=32767+f]]),n(v[a]));for(var h=63;0<h&&0==w[h];h--);if(0==h)return n(s),r;for(var d,p=1;p<=h;){for(var g=p;0==w[p]&&p<=h;++p);var m=p-g;if(16<=m){d=m>>4;for(var x=1;x<=d;++x)n(l);m&=15}a=32767+w[p],n(o[(m<<4)+y[a]]),n(v[a]),p++}return 63!=h&&n(s),r}function a(t){t<=0&&(t=1),100<t&&(t=100),f!=t&&(function(t){for(var e=[16,11,10,16,24,40,51,61,12,12,14,19,26,58,60,55,14,13,16,24,40,57,69,56,14,17,22,29,51,87,80,62,18,22,37,56,68,109,103,77,24,35,55,64,81,104,113,92,49,64,78,87,103,121,120,101,72,92,95,98,112,100,103,99],n=0;n<64;n++){var r=h((e[n]*t+50)/100);r<1?r=1:255<r&&(r=255),d[_[n]]=r}for(var i=[17,18,24,47,99,99,99,99,18,21,26,66,99,99,99,99,24,26,56,99,99,99,99,99,47,66,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99],o=0;o<64;o++){var a=h((i[o]*t+50)/100);a<1?a=1:255<a&&(a=255),p[_[o]]=a}for(var s=[1,1.387039845,1.306562965,1.175875602,1,.785694958,.5411961,.275899379],l=0,c=0;c<8;c++)for(var u=0;u<8;u++)g[l]=1/(d[_[l]]*s[c]*s[u]*8),m[l]=1/(p[_[l]]*s[c]*s[u]*8),l++}(t<50?Math.floor(5e3/t):Math.floor(200-2*t)),f=t)}var s,l,c,u,f,h=Math.floor,d=new Array(64),p=new Array(64),g=new Array(64),m=new Array(64),v=new Array(65535),y=new Array(65535),b=new Array(64),w=new Array(64),x=[],S=0,A=7,N=new Array(64),L=new Array(64),k=new Array(64),C=new Array(256),O=new Array(2048),_=[0,1,5,6,14,15,27,28,2,4,7,13,16,26,29,42,3,8,12,17,25,30,41,43,9,11,18,24,31,40,44,53,10,19,23,32,39,45,52,54,20,22,33,38,46,51,55,60,21,34,37,47,50,56,59,61,35,36,48,49,57,58,62,63],P=[0,0,1,5,1,1,1,1,1,1,0,0,0,0,0,0,0],I=[0,1,2,3,4,5,6,7,8,9,10,11],T=[0,0,2,1,3,3,2,4,3,5,5,4,4,0,0,1,125],E=[1,2,3,0,4,17,5,18,33,49,65,6,19,81,97,7,34,113,20,50,129,145,161,8,35,66,177,193,21,82,209,240,36,51,98,114,130,9,10,22,23,24,25,26,37,38,39,40,41,42,52,53,54,55,56,57,58,67,68,69,70,71,72,73,74,83,84,85,86,87,88,89,90,99,100,101,102,103,104,105,106,115,116,117,118,119,120,121,122,131,132,133,134,135,136,137,138,146,147,148,149,150,151,152,153,154,162,163,164,165,166,167,168,169,170,178,179,180,181,182,183,184,185,186,194,195,196,197,198,199,200,201,202,210,211,212,213,214,215,216,217,218,225,226,227,228,229,230,231,232,233,234,241,242,243,244,245,246,247,248,249,250],j=[0,0,3,1,1,1,1,1,1,1,1,1,0,0,0,0,0],F=[0,1,2,3,4,5,6,7,8,9,10,11],R=[0,0,2,1,2,4,4,3,4,7,5,4,4,0,1,2,119],B=[0,1,2,3,17,4,5,33,49,6,18,65,81,7,97,113,19,34,50,129,8,20,66,145,161,177,193,9,35,51,82,240,21,98,114,209,10,22,36,52,225,37,241,23,24,25,26,38,39,40,41,42,53,54,55,56,57,58,67,68,69,70,71,72,73,74,83,84,85,86,87,88,89,90,99,100,101,102,103,104,105,106,115,116,117,118,119,120,121,122,130,131,132,133,134,135,136,137,138,146,147,148,149,150,151,152,153,154,162,163,164,165,166,167,168,169,170,178,179,180,181,182,183,184,185,186,194,195,196,197,198,199,200,201,202,210,211,212,213,214,215,216,217,218,226,227,228,229,230,231,232,233,234,242,243,244,245,246,247,248,249,250];this.encode=function(t,e){var f,h;(new Date).getTime(),e&&a(e),x=new Array,S=0,A=7,i(65496),i(65504),i(16),r(74),r(70),r(73),r(70),r(0),r(1),r(1),r(0),i(1),i(1),r(0),r(0),function(){i(65499),i(132),r(0);for(var t=0;t<64;t++)r(d[t]);r(1);for(var e=0;e<64;e++)r(p[e])}(),f=t.width,h=t.height,i(65472),i(17),r(8),i(h),i(f),r(3),r(1),r(17),r(0),r(2),r(17),r(1),r(3),r(17),r(1),function(){i(65476),i(418),r(0);for(var t=0;t<16;t++)r(P[t+1]);for(var e=0;e<=11;e++)r(I[e]);r(16);for(var n=0;n<16;n++)r(T[n+1]);for(var o=0;o<=161;o++)r(E[o]);r(1);for(var a=0;a<16;a++)r(j[a+1]);for(var s=0;s<=11;s++)r(F[s]);r(17);for(var l=0;l<16;l++)r(R[l+1]);for(var c=0;c<=161;c++)r(B[c])}(),i(65498),i(12),r(3),r(1),r(0),r(2),r(17),r(3),r(17),r(0),r(63),r(0);var v=0,y=0,b=0;S=0,A=7,this.encode.displayName="_encode_";for(var w,C,_,M,D,q,U,z,H,$=t.data,V=t.width,W=t.height,G=4*V,Y=0;Y<W;){for(w=0;w<G;){for(q=D=G*Y+w,U=-1,H=z=0;H<64;H++)q=D+(z=H>>3)*G+(U=4*(7&H)),W<=Y+z&&(q-=G*(Y+1+z-W)),G<=w+U&&(q-=w+U-G+4),C=$[q++],_=$[q++],M=$[q++],N[H]=(O[C]+O[_+256>>0]+O[M+512>>0]>>16)-128,L[H]=(O[C+768>>0]+O[_+1024>>0]+O[M+1280>>0]>>16)-128,k[H]=(O[C+1280>>0]+O[_+1536>>0]+O[M+1792>>0]>>16)-128;v=o(N,g,v,s,c),y=o(L,m,y,l,u),b=o(k,m,b,l,u),w+=32}Y+=8}if(0<=A){var J=[];J[1]=A+1,J[0]=(1<<A+1)-1,n(J)}return i(65497),new Uint8Array(x)},function(){(new Date).getTime(),t||(t=50),function(){for(var t=String.fromCharCode,e=0;e<256;e++)C[e]=t(e)}(),s=e(P,I),l=e(j,F),c=e(T,E),u=e(R,B),function(){for(var t=1,e=2,n=1;n<=15;n++){for(var r=t;r<e;r++)y[32767+r]=n,v[32767+r]=[],v[32767+r][1]=n,v[32767+r][0]=r;for(var i=-(e-1);i<=-t;i++)y[32767+i]=n,v[32767+i]=[],v[32767+i][1]=n,v[32767+i][0]=e-1+i;t<<=1,e<<=1}}(),function(){for(var t=0;t<256;t++)O[t]=19595*t,O[t+256>>0]=38470*t,O[t+512>>0]=7471*t+32768,O[t+768>>0]=-11059*t,O[t+1024>>0]=-21709*t,O[t+1280>>0]=32768*t+8421375,O[t+1536>>0]=-27439*t,O[t+1792>>0]=-5329*t}(),a(t),(new Date).getTime()}()}function i(t,e){if(this.pos=0,this.buffer=t,this.datav=new DataView(t.buffer),this.is_with_alpha=!!e,this.bottom_up=!0,this.flag=String.fromCharCode(this.buffer[0])+String.fromCharCode(this.buffer[1]),this.pos+=2,-1===["BM","BA","CI","CP","IC","PT"].indexOf(this.flag))throw new Error("Invalid BMP File");this.parseHeader(),this.parseBGR()}!function(e){if("object"!==t(e.console)){e.console={};for(var n,r,i=e.console,o=function(){},a=["memory"],s="assert,clear,count,debug,dir,dirxml,error,exception,group,groupCollapsed,groupEnd,info,log,markTimeline,profile,profiles,profileEnd,show,table,time,timeEnd,timeline,timelineEnd,timeStamp,trace,warn".split(",");n=a.pop();)i[n]||(i[n]={});for(;r=s.pop();)i[r]||(i[r]=o)}var l,c,u,f,h="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";void 0===e.btoa&&(e.btoa=function(t){var e,n,r,i,o,a=0,s=0,l="",c=[];if(!t)return t;for(;e=(o=t.charCodeAt(a++)<<16|t.charCodeAt(a++)<<8|t.charCodeAt(a++))>>18&63,n=o>>12&63,r=o>>6&63,i=63&o,c[s++]=h.charAt(e)+h.charAt(n)+h.charAt(r)+h.charAt(i),a<t.length;);l=c.join("");var u=t.length%3;return(u?l.slice(0,u-3):l)+"===".slice(u||3)}),void 0===e.atob&&(e.atob=function(t){var e,n,r,i,o,a,s=0,l=0,c=[];if(!t)return t;for(t+="";e=(a=h.indexOf(t.charAt(s++))<<18|h.indexOf(t.charAt(s++))<<12|(i=h.indexOf(t.charAt(s++)))<<6|(o=h.indexOf(t.charAt(s++))))>>16&255,n=a>>8&255,r=255&a,c[l++]=64==i?String.fromCharCode(e):64==o?String.fromCharCode(e,n):String.fromCharCode(e,n,r),s<t.length;);return c.join("")}),Array.prototype.map||(Array.prototype.map=function(t){if(null==this||"function"!=typeof t)throw new TypeError;for(var e=Object(this),n=e.length>>>0,r=new Array(n),i=1<arguments.length?arguments[1]:void 0,o=0;o<n;o++)o in e&&(r[o]=t.call(i,e[o],o,e));return r}),Array.isArray||(Array.isArray=function(t){return"[object Array]"===Object.prototype.toString.call(t)}),Array.prototype.forEach||(Array.prototype.forEach=function(t,e){if(null==this||"function"!=typeof t)throw new TypeError;for(var n=Object(this),r=n.length>>>0,i=0;i<r;i++)i in n&&t.call(e,n[i],i,n)}),Array.prototype.find||Object.defineProperty(Array.prototype,"find",{value:function(t){if(null==this)throw new TypeError('"this" is null or not defined');var e=Object(this),n=e.length>>>0;if("function"!=typeof t)throw new TypeError("predicate must be a function");for(var r=arguments[1],i=0;i<n;){var o=e[i];if(t.call(r,o,i,e))return o;i++}},configurable:!0,writable:!0}),Object.keys||(Object.keys=(l=Object.prototype.hasOwnProperty,c=!{toString:null}.propertyIsEnumerable("toString"),f=(u=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"]).length,function(e){if("object"!==t(e)&&("function"!=typeof e||null===e))throw new TypeError;var n,r,i=[];for(n in e)l.call(e,n)&&i.push(n);if(c)for(r=0;r<f;r++)l.call(e,u[r])&&i.push(u[r]);return i})),"function"!=typeof Object.assign&&(Object.assign=function(t){if(null==t)throw new TypeError("Cannot convert undefined or null to object");t=Object(t);for(var e=1;e<arguments.length;e++){var n=arguments[e];if(null!=n)for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}),String.prototype.trim||(String.prototype.trim=function(){return this.replace(/^\s+|\s+$/g,"")}),String.prototype.trimLeft||(String.prototype.trimLeft=function(){return this.replace(/^\s+/g,"")}),String.prototype.trimRight||(String.prototype.trimRight=function(){return this.replace(/\s+$/g,"")}),Number.isInteger=Number.isInteger||function(t){return"number"==typeof t&&isFinite(t)&&Math.floor(t)===t}}("undefined"!=typeof self&&self||"undefined"!=typeof window&&window||"undefined"!=typeof global&&global||Function('return typeof this === "object" && this.content')()||Function("return this")());var o,a,s,l,c,u,f,h,d,p,g,m,v,y,b,w,x,S,A,N,L,k,C,O,_,P,I,T,E,j,F,R,B,M,D,q,U,z,H,$,V,W,G,Y,J,X,K,Q,Z,tt,et,nt,rt,it,ot,at,st,lt,ct,ut,ft,ht,dt=function(e){function n(n){if("object"!==t(n))throw new Error("Invalid Context passed to initialize PubSub (jsPDF-module)");var r={};this.subscribe=function(t,e,n){if(n=n||!1,"string"!=typeof t||"function"!=typeof e||"boolean"!=typeof n)throw new Error("Invalid arguments passed to PubSub.subscribe (jsPDF-module)");r.hasOwnProperty(t)||(r[t]={});var i=Math.random().toString(35);return r[t][i]=[e,!!n],i},this.unsubscribe=function(t){for(var e in r)if(r[e][t])return delete r[e][t],0===Object.keys(r[e]).length&&delete r[e],!0;return!1},this.publish=function(t){if(r.hasOwnProperty(t)){var i=Array.prototype.slice.call(arguments,1),o=[];for(var a in r[t]){var s=r[t][a];try{s[0].apply(n,i)}catch(t){e.console&&console.error("jsPDF PubSub Error",t.message,t)}s[1]&&o.push(a)}o.length&&o.forEach(this.unsubscribe)}},this.getTopics=function(){return r}}function r(i,o,a,s){var l={},c=[],u=1;"object"===t(i)&&(i=(l=i).orientation,o=l.unit||o,a=l.format||a,s=l.compress||l.compressPdf||s,c=l.filters||(!0===s?["FlateEncode"]:c),u="number"==typeof l.userUnit?Math.abs(l.userUnit):1),o=o||"mm",i=(""+(i||"P")).toLowerCase();var f=l.putOnlyUsedFonts||!0,h={},d={internal:{},__private__:{}};d.__private__.PubSub=n;var p="1.3",g=d.__private__.getPdfVersion=function(){return p},m=(d.__private__.setPdfVersion=function(t){p=t},{a0:[2383.94,3370.39],a1:[1683.78,2383.94],a2:[1190.55,1683.78],a3:[841.89,1190.55],a4:[595.28,841.89],a5:[419.53,595.28],a6:[297.64,419.53],a7:[209.76,297.64],a8:[147.4,209.76],a9:[104.88,147.4],a10:[73.7,104.88],b0:[2834.65,4008.19],b1:[2004.09,2834.65],b2:[1417.32,2004.09],b3:[1000.63,1417.32],b4:[708.66,1000.63],b5:[498.9,708.66],b6:[354.33,498.9],b7:[249.45,354.33],b8:[175.75,249.45],b9:[124.72,175.75],b10:[87.87,124.72],c0:[2599.37,3676.54],c1:[1836.85,2599.37],c2:[1298.27,1836.85],c3:[918.43,1298.27],c4:[649.13,918.43],c5:[459.21,649.13],c6:[323.15,459.21],c7:[229.61,323.15],c8:[161.57,229.61],c9:[113.39,161.57],c10:[79.37,113.39],dl:[311.81,623.62],letter:[612,792],"government-letter":[576,756],legal:[612,1008],"junior-legal":[576,360],ledger:[1224,792],tabloid:[792,1224],"credit-card":[153,243]}),v=(d.__private__.getPageFormats=function(){return m},d.__private__.getPageFormat=function(t){return m[t]});"string"==typeof a&&(a=v(a)),a=a||v("a4");var y,b=d.f2=d.__private__.f2=function(t){if(isNaN(t))throw new Error("Invalid argument passed to jsPDF.f2");return t.toFixed(2)},w=d.__private__.f3=function(t){if(isNaN(t))throw new Error("Invalid argument passed to jsPDF.f3");return t.toFixed(3)},x="00000000000000000000000000000000",S=d.__private__.getFileId=function(){return x},A=d.__private__.setFileId=function(t){return t=t||"12345678901234567890123456789012".split("").map(function(){return"ABCDEF0123456789".charAt(Math.floor(16*Math.random()))}).join(""),x=t};d.setFileId=function(t){return A(t),this},d.getFileId=function(){return S()}+;var N=d.__private__.convertDateToPDFDate=function(t){var e=t.getTimezoneOffset(),n=e<0?"+":"-",r=Math.floor(Math.abs(e/60)),i=Math.abs(e%60),o=[n,R(r),"'",R(i),"'"].join("");return["D:",t.getFullYear(),R(t.getMonth()+1),R(t.getDate()),R(t.getHours()),R(t.getMinutes()),R(t.getSeconds()),o].join("")},L=d.__private__.convertPDFDateToDate=function(t){var e=parseInt(t.substr(2,4),10),n=parseInt(t.substr(6,2),10)-1,r=parseInt(t.substr(8,2),10),i=parseInt(t.substr(10,2),10),o=parseInt(t.substr(12,2),10),a=parseInt(t.substr(14,2),10);return parseInt(t.substr(16,2),10),parseInt(t.substr(20,2),10),new Date(e,n,r,i,o,a,0)},k=d.__private__.setCreationDate=function(e){var n;if(void 0===e&&(e=new Date),"object"===t(e)&&"[object Date]"===Object.prototype.toString.call(e))n=N(e);else{if(!/^D:(20[0-2][0-9]|203[0-7]|19[7-9][0-9])(0[0-9]|1[0-2])([0-2][0-9]|3[0-1])(0[0-9]|1[0-9]|2[0-3])(0[0-9]|[1-5][0-9])(0[0-9]|[1-5][0-9])(\+0[0-9]|\+1[0-4]|\-0[0-9]|\-1[0-1])\'(0[0-9]|[1-5][0-9])\'?$/.test(e))throw new Error("Invalid argument passed to jsPDF.setCreationDate");n=e}return y=n},C=d.__private__.getCreationDate=function(t){var e=y;return"jsDate"===t&&(e=L(y)),e};d.setCreationDate=function(t){return k(t),this},d.getCreationDate=function(t){return C(t)};var O,_,P,I,T,E,j,F,R=d.__private__.padd2=function(t){return("0"+parseInt(t)).slice(-2)},B=!1,M=[],D=[],q=0,U=(d.__private__.setCustomOutputDestination=function(t){_=t},d.__private__.resetCustomOutputDestination=function(t){_=void 0},d.__private__.out=function(t){var e;return t="string"==typeof t?t:t.toString(),(e=void 0===_?B?M[O]:D:_).push(t),B||(q+=t.length+1),e}),z=d.__private__.write=function(t){return U(1===arguments.length?t.toString():Array.prototype.join.call(arguments," "))},H=d.__private__.getArrayBuffer=function(t){for(var e=t.length,n=new ArrayBuffer(e),r=new Uint8Array(n);e--;)r[e]=t.charCodeAt(e);return n},$=[["Helvetica","helvetica","normal","WinAnsiEncoding"],["Helvetica-Bold","helvetica","bold","WinAnsiEncoding"],["Helvetica-Oblique","helvetica","italic","WinAnsiEncoding"],["Helvetica-BoldOblique","helvetica","bolditalic","WinAnsiEncoding"],["Courier","courier","normal","WinAnsiEncoding"],["Courier-Bold","courier","bold","WinAnsiEncoding"],["Courier-Oblique","courier","italic","WinAnsiEncoding"],["Courier-BoldOblique","courier","bolditalic","WinAnsiEncoding"],["Times-Roman","times","normal","WinAnsiEncoding"],["Times-Bold","times","bold","WinAnsiEncoding"],["Times-Italic","times","italic","WinAnsiEncoding"],["Times-BoldItalic","times","bolditalic","WinAnsiEncoding"],["ZapfDingbats","zapfdingbats","normal",null],["Symbol","symbol","normal",null]],V=(d.__private__.getStandardFonts=function(t){return $},l.fontSize||16),W=(d.__private__.setFontSize=d.setFontSize=function(t){return V=t,this},d.__private__.getFontSize=d.getFontSize=function(){return V}),G=l.R2L||!1,Y=(d.__private__.setR2L=d.setR2L=function(t){return G=t,this},d.__private__.getR2L=d.getR2L=function(t){return G},d.__private__.setZoomMode=function(t){var e=[void 0,null,"fullwidth","fullheight","fullpage","original"];if(/^\d*\.?\d*\%$/.test(t))P=t;else if(isNaN(t)){if(-1===e.indexOf(t))throw new Error('zoom must be Integer (e.g. 2), a percentage Value (e.g. 300%) or fullwidth, fullheight, fullpage, original. "'+t+'" is not recognized.');P=t}else P=parseInt(t,10)}),J=(d.__private__.getZoomMode=function(){return P},d.__private__.setPageMode=function(t){if(-1==[void 0,null,"UseNone","UseOutlines","UseThumbs","FullScreen"].indexOf(t))throw new Error('Page mode must be one of UseNone, UseOutlines, UseThumbs, or FullScreen. "'+t+'" is not recognized.');I=t}),X=(d.__private__.getPageMode=function(){return I},d.__private__.setLayoutMode=function(t){if(-1==[void 0,null,"continuous","single","twoleft","tworight","two"].indexOf(t))throw new Error('Layout mode must be one of continuous, single, twoleft, tworight. "'+t+'" is not recognized.');T=t}),K=(d.__private__.getLayoutMode=function(){return T},d.__private__.setDisplayMode=d.setDisplayMode=function(t,e,n){return Y(t),X(e),J(n),this},{title:"",subject:"",author:"",keywords:"",creator:""}),Q=(d.__private__.getDocumentProperty=function(t){if(-1===Object.keys(K).indexOf(t))throw new Error("Invalid argument passed to jsPDF.getDocumentProperty");return K[t]},d.__private__.getDocumentProperties=function(t){return K},d.__private__.setDocumentProperties=d.setProperties=d.setDocumentProperties=function(t){for(var e in K)K.hasOwnProperty(e)&&t[e]&&(K[e]=t[e]);return this},d.__private__.setDocumentProperty=function(t,e){if(-1===Object.keys(K).indexOf(t))throw new Error("Invalid arguments passed to jsPDF.setDocumentProperty");return K[t]=e},0),Z=[],tt={},et={},nt=0,rt=[],it=[],ot=new n(d),at=l.hotfixes||[],st=d.__private__.newObject=function(){var t=lt();return ct(t,!0),t},lt=d.__private__.newObjectDeferred=function(){return Z[++Q]=function(){return q},Q},ct=function(t,e){return e="boolean"==typeof e&&e,Z[t]=q,e&&U(t+" 0 obj"),t},ut=d.__private__.newAdditionalObject=function(){var t={objId:lt(),content:""};return it.push(t),t},ft=lt(),ht=lt(),dt=d.__private__.decodeColorString=function(t){var e=t.split(" ");if(2===e.length&&("g"===e[1]||"G"===e[1])){var n=parseFloat(e[0]);e=[n,n,n,"r"]}for(var r="#",i=0;i<3;i++)r+=("0"+Math.floor(255*parseFloat(e[i])).toString(16)).slice(-2);return r},pt=d.__private__.encodeColorString=function(e){var n;"string"==typeof e&&(e={ch1:e});var r=e.ch1,i=e.ch2,o=e.ch3,a=e.ch4,s=(e.precision,"draw"===e.pdfColorType?["G","RG","K"]:["g","rg","k"]);if("string"==typeof r&&"#"!==r.charAt(0)){var l=new RGBColor(r);if(l.ok)r=l.toHex();else if(!/^\d*\.?\d*$/.test(r))throw new Error('Invalid color "'+r+'" passed to jsPDF.encodeColorString.')}if("string"==typeof r&&/^#[0-9A-Fa-f]{3}$/.test(r)&&(r="#"+r[1]+r[1]+r[2]+r[2]+r[3]+r[3]),"string"==typeof r&&/^#[0-9A-Fa-f]{6}$/.test(r)){var c=parseInt(r.substr(1),16);r=c>>16&255,i=c>>8&255,o=255&c}if(void 0===i||void 0===a&&r===i&&i===o)if("string"==typeof r)n=r+" "+s[0];else switch(e.precision){case 2:n=b(r/255)+" "+s[0];break;case 3:default:n=w(r/255)+" "+s[0]}else if(void 0===a||"object"===t(a)){if(a&&!isNaN(a.a)&&0===a.a)return n=["1.000","1.000","1.000",s[1]].join(" ");if("string"==typeof r)n=[r,i,o,s[1]].join(" ");else switch(e.precision){case 2:n=[b(r/255),b(i/255),b(o/255),s[1]].join(" ");break;default:case 3:n=[w(r/255),w(i/255),w(o/255),s[1]].join(" ")}}else if("string"==typeof r)n=[r,i,o,a,s[2]].join(" ");else switch(e.precision){case 2:n=[b(r/255),b(i/255),b(o/255),b(a/255),s[2]].join(" ");break;case 3:default:n=[w(r/255),w(i/255),w(o/255),w(a/255),s[2]].join(" ")}return n},gt=d.__private__.getFilters=function(){return c},mt=d.__private__.putStream=function(t){var e=(t=t||{}).data||"",n=t.filters||gt(),i=t.alreadyAppliedFilters||[],o=t.addLength1||!1,a=e.length,s={};!0===n&&(n=["FlateEncode"]);var l=t.additionalKeyValues||[],c=(s=void 0!==r.API.processDataByFilters?r.API.processDataByFilters(e,n):{data:e,reverseChain:[]}).reverseChain+(Array.isArray(i)?i.join(" "):i.toString());0!==s.data.length&&(l.push({key:"Length",value:s.data.length}),!0===o&&l.push({key:"Length1",value:a})),0!=c.length&&(c.split("/").length-1==1?l.push({key:"Filter",value:c}):l.push({key:"Filter",value:"["+c+"]"})),U("<<");for(var u=0;u<l.length;u++)U("/"+l[u].key+" "+l[u].value);U(">>"),0!==s.data.length&&(U("stream"),U(s.data),U("endstream"))},vt=d.__private__.putPage=function(t){t.mediaBox;var e=t.number,n=t.data,r=t.objId,i=t.contentsObjId;ct(r,!0),rt[O].mediaBox.topRightX,rt[O].mediaBox.bottomLeftX,rt[O].mediaBox.topRightY,rt[O].mediaBox.bottomLeftY,U("<</Type /Page"),U("/Parent "+t.rootDictionaryObjId+" 0 R"),U("/Resources "+t.resourceDictionaryObjId+" 0 R"),U("/MediaBox ["+parseFloat(b(t.mediaBox.bottomLeftX))+" "+parseFloat(b(t.mediaBox.bottomLeftY))+" "+b(t.mediaBox.topRightX)+" "+b(t.mediaBox.topRightY)+"]"),null!==t.cropBox&&U("/CropBox ["+b(t.cropBox.bottomLeftX)+" "+b(t.cropBox.bottomLeftY)+" "+b(t.cropBox.topRightX)+" "+b(t.cropBox.topRightY)+"]"),null!==t.bleedBox&&U("/BleedBox ["+b(t.bleedBox.bottomLeftX)+" "+b(t.bleedBox.bottomLeftY)+" "+b(t.bleedBox.topRightX)+" "+b(t.bleedBox.topRightY)+"]"),null!==t.trimBox&&U("/TrimBox ["+b(t.trimBox.bottomLeftX)+" "+b(t.trimBox.bottomLeftY)+" "+b(t.trimBox.topRightX)+" "+b(t.trimBox.topRightY)+"]"),null!==t.artBox&&U("/ArtBox ["+b(t.artBox.bottomLeftX)+" "+b(t.artBox.bottomLeftY)+" "+b(t.artBox.topRightX)+" "+b(t.artBox.topRightY)+"]"),"number"==typeof t.userUnit&&1!==t.userUnit&&U("/UserUnit "+t.userUnit),ot.publish("putPage",{objId:r,pageContext:rt[e],pageNumber:e,page:n}),U("/Contents "+i+" 0 R"),U(">>"),U("endobj");var o=n.join("\n");return ct(i,!0),mt({data:o,filters:gt()}),U("endobj"),r},yt=d.__private__.putPages=function(){var t,e,n=[];for(t=1;t<=nt;t++)rt[t].objId=lt(),rt[t].contentsObjId=lt();for(t=1;t<=nt;t++)n.push(vt({number:t,data:M[t],objId:rt[t].objId,contentsObjId:rt[t].contentsObjId,mediaBox:rt[t].mediaBox,cropBox:rt[t].cropBox,bleedBox:rt[t].bleedBox,trimBox:rt[t].trimBox,artBox:rt[t].artBox,userUnit:rt[t].userUnit,rootDictionaryObjId:ft,resourceDictionaryObjId:ht}));ct(ft,!0),U("<</Type /Pages");var r="/Kids [";for(e=0;e<nt;e++)r+=n[e]+" 0 R ";U(r+"]"),U("/Count "+nt),U(">>"),U("endobj"),ot.publish("postPutPages")},bt=function(){!function(){for(var t in tt)tt.hasOwnProperty(t)&&(!1===f||!0===f&&h.hasOwnProperty(t))&&(e=tt[t],ot.publish("putFont",{font:e,out:U,newObject:st,putStream:mt}),!0!==e.isAlreadyPutted&&(e.objectNumber=st(),U("<<"),U("/Type /Font"),U("/BaseFont /"+e.postScriptName),U("/Subtype /Type1"),"string"==typeof e.encoding&&U("/Encoding /"+e.encoding),U("/FirstChar 32"),U("/LastChar 255"),U(">>"),U("endobj")));var e}(),ot.publish("putResources"),ct(ht,!0),U("<<"),function(){for(var t in U("/ProcSet [/PDF /Text /ImageB /ImageC /ImageI]"),U("/Font <<"),tt)tt.hasOwnProperty(t)&&(!1===f||!0===f&&h.hasOwnProperty(t))&&U("/"+t+" "+tt[t].objectNumber+" 0 R");U(">>"),U("/XObject <<"),ot.publish("putXobjectDict"),U(">>")}(),U(">>"),U("endobj"),ot.publish("postPutResources")},wt=function(t,e,n){et.hasOwnProperty(e)||(et[e]={}),et[e][n]=t},xt=function(t,e,n,r,i){i=i||!1;var o="F"+(Object.keys(tt).length+1).toString(10),a={id:o,postScriptName:t,fontName:e,fontStyle:n,encoding:r,isStandardFont:i,metadata:{}};return ot.publish("addFont",{font:a,instance:this}),void 0!==o&&(tt[o]=a,wt(o,e,n)),o},St=d.__private__.pdfEscape=d.pdfEscape=function(t,e){return function(t,e){var n,r,i,o,a,s,l,c,u;if(i=(e=e||{}).sourceEncoding||"Unicode",a=e.outputEncoding,(e.autoencode||a)&&tt[E].metadata&&tt[E].metadata[i]&&tt[E].metadata[i].encoding&&(o=tt[E].metadata[i].encoding,!a&&tt[E].encoding&&(a=tt[E].encoding),!a&&o.codePages&&(a=o.codePages[0]),"string"==typeof a&&(a=o[a]),a)){for(l=!1,s=[],n=0,r=t.length;n<r;n++)(c=a[t.charCodeAt(n)])?s.push(String.fromCharCode(c)):s.push(t[n]),s[n].charCodeAt(0)>>8&&(l=!0);t=s.join("")}for(n=t.length;void 0===l&&0!==n;)t.charCodeAt(n-1)>>8&&(l=!0),n--;if(!l)return t;for(s=e.noBOM?[]:[254,255],n=0,r=t.length;n<r;n++){if((u=(c=t.charCodeAt(n))>>8)>>8)throw new Error("Character at position "+n+" of string '"+t+"' exceeds 16bits. Cannot be encoded into UCS-2 BE");s.push(u),s.push(c-(u<<8))}return String.fromCharCode.apply(void 0,s)}(t,e).replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},At=d.__private__.beginPage=function(t,e){var n,r="string"==typeof e&&e.toLowerCase();if("string"==typeof t&&(n=v(t.toLowerCase()))&&(t=n[0],e=n[1]),Array.isArray(t)&&(e=t[1],t=t[0]),(isNaN(t)||isNaN(e))&&(t=a[0],e=a[1]),r){switch(r.substr(0,1)){case"l":t<e&&(r="s");break;case"p":e<t&&(r="s")}"s"===r&&(n=t,t=e,e=n)}(14400<t||14400<e)&&(console.warn("A page in a PDF can not be wider or taller than 14400 userUnit. jsPDF limits the width/height to 14400"),t=Math.min(14400,t),e=Math.min(14400,e)),a=[t,e],B=!0,M[++nt]=[],rt[nt]={objId:0,contentsObjId:0,userUnit:Number(u),artBox:null,bleedBox:null,cropBox:null,trimBox:null,mediaBox:{bottomLeftX:0,bottomLeftY:0,topRightX:Number(t),topRightY:Number(e)}},Lt(nt)},Nt=function(){At.apply(this,arguments),Vt($t),U(Zt),0!==oe&&U(oe+" J"),0!==se&&U(se+" j"),ot.publish("addPage",{pageNumber:nt})},Lt=function(t){0<t&&t<=nt&&(O=t)},kt=d.__private__.getNumberOfPages=d.getNumberOfPages=function(){return M.length-1},Ct=function(t,e,n){var r,i=void 0;return n=n||{},t=void 0!==t?t:tt[E].fontName,e=void 0!==e?e:tt[E].fontStyle,r=t.toLowerCase(),void 0!==et[r]&&void 0!==et[r][e]?i=et[r][e]:void 0!==et[t]&&void 0!==et[t][e]?i=et[t][e]:!1===n.disableWarning&&console.warn("Unable to look up font label for font '"+t+"', '"+e+"'. Refer to getFontList() for available fonts."),i||n.noFallback||null==(i=et.times[e])&&(i=et.times.normal),i},Ot=d.__private__.putInfo=function(){for(var t in st(),U("<<"),U("/Producer (jsPDF "+r.version+")"),K)K.hasOwnProperty(t)&&K[t]&&U("/"+t.substr(0,1).toUpperCase()+t.substr(1)+" ("+St(K[t])+")");U("/CreationDate ("+y+")"),U(">>"),U("endobj")},Pt=d.__private__.putCatalog=function(t){var e=(t=t||{}).rootDictionaryObjId||ft;switch(st(),U("<<"),U("/Type /Catalog"),U("/Pages "+e+" 0 R"),P||(P="fullwidth"),P){case"fullwidth":U("/OpenAction [3 0 R /FitH null]");break;case"fullheight":U("/OpenAction [3 0 R /FitV null]");break;case"fullpage":U("/OpenAction [3 0 R /Fit]");break;case"original":U("/OpenAction [3 0 R /XYZ null null 1]");break;default:var n=""+P;"%"===n.substr(n.length-1)&&(P=parseInt(P)/100),"number"==typeof P&&U("/OpenAction [3 0 R /XYZ null null "+b(P)+"]")}switch(T||(T="continuous"),T){case"continuous":U("/PageLayout /OneColumn");break;case"single":U("/PageLayout /SinglePage");break;case"two":case"twoleft":U("/PageLayout /TwoColumnLeft");break;case"tworight":U("/PageLayout /TwoColumnRight")}I&&U("/PageMode /"+I),ot.publish("putCatalog"),U(">>"),U("endobj")},It=d.__private__.putTrailer=function(){U("trailer"),U("<<"),U("/Size "+(Q+1)),U("/Root "+Q+" 0 R"),U("/Info "+(Q-1)+" 0 R"),U("/ID [ <"+x+"> <"+x+"> ]"),U(">>")},Tt=d.__private__.putHeader=function(){U("%PDF-"+p),U("%ºß¬à")},Et=d.__private__.putXRef=function(){var t=1,e="0000000000";for(U("xref"),U("0 "+(Q+1)),U("0000000000 65535 f "),t=1;t<=Q;t++)U("function"==typeof Z[t]?(e+Z[t]()).slice(-10)+" 00000 n ":void 0!==Z[t]?(e+Z[t]).slice(-10)+" 00000 n ":"0000000000 00000 n ")},jt=d.__private__.buildDocument=function(){B=!1,q=Q=0,D=[],Z=[],it=[],ft=lt(),ht=lt(),ot.publish("buildDocument"),Tt(),yt(),function(){ot.publish("putAdditionalObjects");for(var t=0;t<it.length;t++){var e=it[t];ct(e.objId,!0),U(e.content),U("endobj")}ot.publish("postPutAdditionalObjects")}(),bt(),Ot(),Pt();var t=q;return Et(),It(),U("startxref"),U(""+t),U("%%EOF"),B=!0,D.join("\n")},Ft=d.__private__.getBlob=function(t){return new Blob([H(t)],{type:"application/pdf"})},Rt=d.output=d.__private__.output=((F=function(t,n){n=n||{};var r=jt();switch("string"==typeof n?n={filename:n}:n.filename=n.filename||"generated.pdf",t){case void 0:return r;case"save":d.save(n.filename);break;case"arraybuffer":return H(r);case"blob":return Ft(r);case"bloburi":case"bloburl":if(void 0!==e.URL&&"function"==typeof e.URL.createObjectURL)return e.URL&&e.URL.createObjectURL(Ft(r))||void 0;console.warn("bloburl is not supported by your system, because URL.createObjectURL is not supported by your browser.");break;case"datauristring":case"dataurlstring":return"data:application/pdf;filename="+n.filename+";base64,"+btoa(r);case"dataurlnewwindow":var i='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><iframe src="'+this.output("datauristring")+'"></iframe></body></html>',o=e.open();if(null!==o&&o.document.write(i),o||"undefined"==typeof safari)return o;case"datauri":case"dataurl":return e.document.location.href="data:application/pdf;filename="+n.filename+";base64,"+btoa(r);default:return null}}).foo=function(){try{return F.apply(this,arguments)}catch(r){var t=r.stack||"";~t.indexOf(" at ")&&(t=t.split(" at ")[1]);var n="Error in function "+t.split("\n")[0].split("<")[0]+": "+r.message;if(!e.console)throw new Error(n);e.console.error(n,r),e.alert&&alert(n)}},(F.foo.bar=F).foo),Bt=function(t){return!0===Array.isArray(at)&&-1<at.indexOf(t)};switch(o){case"pt":j=1;break;case"mm":j=72/25.4;break;case"cm":j=72/2.54;break;case"in":j=72;break;case"px":j=1==Bt("px_scaling")?.75:96/72;break;case"pc":case"em":j=12;break;case"ex":j=6;break;default:throw new Error("Invalid unit: "+o)}k(),A();var Mt=d.__private__.getPageInfo=function(t){if(isNaN(t)||t%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfo");return{objId:rt[t].objId,pageNumber:t,pageContext:rt[t]}},Dt=d.__private__.getPageInfoByObjId=function(t){for(var e in rt)if(rt[e].objId===t)break;if(isNaN(t)||t%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfoByObjId");return Mt(e)},qt=d.__private__.getCurrentPageInfo=function(){return{objId:rt[O].objId,pageNumber:O,pageContext:rt[O]}};d.addPage=function(){return Nt.apply(this,arguments),this},d.setPage=function(){return Lt.apply(this,arguments),this},d.insertPage=function(t){return this.addPage(),this.movePage(O,t),this},d.movePage=function(t,e){if(e<t){for(var n=M[t],r=rt[t],i=t;e<i;i--)M[i]=M[i-1],rt[i]=rt[i-1];M[e]=n,rt[e]=r,this.setPage(e)}else if(t<e){for(n=M[t],r=rt[t],i=t;i<e;i++)M[i]=M[i+1],rt[i]=rt[i+1];M[e]=n,rt[e]=r,this.setPage(e)}return this},d.deletePage=function(){return function(t){0<t&&t<=nt&&(M.splice(t,1),--nt<O&&(O=nt),this.setPage(O))}.apply(this,arguments),this},d.__private__.text=d.text=function(e,n,r,i){function o(t){for(var e,n=t.concat(),r=[],i=n.length;i--;)"string"==typeof(e=n.shift())?r.push(e):Array.isArray(t)&&1===e.length?r.push(e[0]):r.push([e[0],e[1],e[2]]);return r}function a(t,e){var n;if("string"==typeof t)n=e(t)[0];else if(Array.isArray(t)){for(var r,i,o=t.concat(),a=[],s=o.length;s--;)"string"==typeof(r=o.shift())?a.push(e(r)[0]):Array.isArray(r)&&"string"===r[0]&&(i=e(r[0],r[1],r[2]),a.push([i[0],i[1],i[2]]));n=a}return n}var s;"number"!=typeof e||"number"!=typeof n||"string"!=typeof r&&!Array.isArray(r)||(s=r,r=n,n=e,e=s);var l=arguments[3],c=arguments[4],u=arguments[5];if("object"===t(l)&&null!==l||("string"==typeof c&&(u=c,c=null),"string"==typeof l&&(u=l,l=null),"number"==typeof l&&(c=l,l=null),i={flags:l,angle:c,align:u}),(l=l||{}).noBOM=l.noBOM||!0,l.autoencode=l.autoencode||!0,isNaN(n)||isNaN(r)||null==e)throw new Error("Invalid arguments passed to jsPDF.text");if(0===e.length)return g;var f,d="",p="number"==typeof i.lineHeightFactor?i.lineHeightFactor:Ht,g=i.scope||this,m=!1,v=!0;if("string"==typeof e)m=!0;else if(Array.isArray(e)){for(var y,x=e.concat(),S=[],A=x.length;A--;)("string"!=typeof(y=x.shift())||Array.isArray(y)&&"string"!=typeof y[0])&&(v=!1);m=v}if(!1===m)throw new Error('Type of text must be string or Array. "'+e+'" is not recognized.');var N=tt[E].encoding;"WinAnsiEncoding"!==N&&"StandardEncoding"!==N||(e=a(e,function(t,e,n){return[(r=t,r=r.split("\t").join(Array(i.TabLen||9).join(" ")),St(r,l)),e,n];var r})),"string"==typeof e&&(e=e.match(/[\r?\n]/)?e.split(/\r\n|\r|\n/g):[e]);var L=V/g.internal.scaleFactor,k=L*(Ht-1);switch(i.baseline){case"bottom":r-=k;break;case"top":r+=L-k;break;case"hanging":r+=L-2*k;break;case"middle":r+=L/2-k}0<(z=i.maxWidth||0)&&("string"==typeof e?e=g.splitTextToSize(e,z):"[object Array]"===Object.prototype.toString.call(e)&&(e=g.splitTextToSize(e.join(" "),z)));var C={text:e,x:n,y:r,options:i,mutex:{pdfEscape:St,activeFontKey:E,fonts:tt,activeFontSize:V}};ot.publish("preProcessText",C),e=C.text,c=(i=C.options).angle;var O=g.internal.scaleFactor,_=[];if(c){c*=Math.PI/180;var P=Math.cos(c),I=Math.sin(c);_=[b(P),b(I),b(-1*I),b(P)]}void 0!==(q=i.charSpace)&&(d+=w(q*O)+" Tc\n"),i.lang;var T=-1,j=void 0!==i.renderingMode?i.renderingMode:i.stroke,F=g.internal.getCurrentPageInfo().pageContext;switch(j){case 0:case!1:case"fill":T=0;break;case 1:case!0:case"stroke":T=1;break;case 2:case"fillThenStroke":T=2;break;case 3:case"invisible":T=3;break;case 4:case"fillAndAddForClipping":T=4;break;case 5:case"strokeAndAddPathForClipping":T=5;break;case 6:case"fillThenStrokeAndAddToPathForClipping":T=6;break;case 7:case"addToPathForClipping":T=7}var R=void 0!==F.usedRenderingMode?F.usedRenderingMode:-1;-1!==T?d+=T+" Tr\n":-1!==R&&(d+="0 Tr\n"),-1!==T&&(F.usedRenderingMode=T),u=i.align||"left";var B=V*p,M=g.internal.pageSize.getWidth(),D=(O=g.internal.scaleFactor,tt[E]),q=i.charSpace||re,z=i.maxWidth||0,H=(l={},[]);if("[object Array]"===Object.prototype.toString.call(e)){var $,W;S=o(e),"left"!==u&&(W=S.map(function(t){return g.getStringUnitWidth(t,{font:D,charSpace:q,fontSize:V})*V/O}));var Y,J=(Math.max.apply(Math,W),0);if("right"===u){n-=W[0],e=[];var X=0;for(A=S.length;X<A;X++)W[X],$=0===X?(Y=Jt(n),Xt(r)):(Y=(J-W[X])*O,-B),e.push([S[X],Y,$]),J=W[X]}else if("center"===u)for(n-=W[0]/2,e=[],X=0,A=S.length;X<A;X++)W[X],$=0===X?(Y=Jt(n),Xt(r)):(Y=(J-W[X])/2*O,-B),e.push([S[X],Y,$]),J=W[X];else if("left"===u)for(e=[],X=0,A=S.length;X<A;X++)$=0===X?Xt(r):-B,Y=0===X?Jt(n):0,e.push(S[X]);else{if("justify"!==u)throw new Error('Unrecognized alignment option, use "left", "center", "right" or "justify".');for(e=[],z=0!==z?z:M,X=0,A=S.length;X<A;X++)$=0===X?Xt(r):-B,Y=0===X?Jt(n):0,X<A-1&&H.push(((z-W[X])/(S[X].split(" ").length-1)*O).toFixed(2)),e.push([S[X],Y,$])}}!0===("boolean"==typeof i.R2L?i.R2L:G)&&(e=a(e,function(t,e,n){return[t.split("").reverse().join(""),e,n]})),C={text:e,x:n,y:r,options:i,mutex:{pdfEscape:St,activeFontKey:E,fonts:tt,activeFontSize:V}},ot.publish("postProcessText",C),e=C.text,f=C.mutex.isHex,S=o(e),e=[];var K,Q,Z,et=0,nt=(A=S.length,"");for(X=0;X<A;X++)nt="",Array.isArray(S[X])?(K=parseFloat(S[X][1]),Q=parseFloat(S[X][2]),Z=(f?"<":"(")+S[X][0]+(f?">":")"),et=1):(K=Jt(n),Q=Xt(r),Z=(f?"<":"(")+S[X]+(f?">":")")),void 0!==H&&void 0!==H[X]&&(nt=H[X]+" Tw\n"),0!==_.length&&0===X?e.push(nt+_.join(" ")+" "+K.toFixed(2)+" "+Q.toFixed(2)+" Tm\n"+Z):1===et||0===et&&0===X?e.push(nt+K.toFixed(2)+" "+Q.toFixed(2)+" Td\n"+Z):e.push(nt+Z);e=0===et?e.join(" Tj\nT* "):e.join(" Tj\n"),e+=" Tj\n";var rt="BT\n/"+E+" "+V+" Tf\n"+(V*p).toFixed(2)+" TL\n"+ee+"\n";return rt+=d,rt+=e,U(rt+="ET"),h[E]=!0,g},d.__private__.lstext=d.lstext=function(t,e,n,r){return console.warn("jsPDF.lstext is deprecated"),this.text(t,e,n,{charSpace:r})},d.__private__.clip=d.clip=function(t){U("evenodd"===t?"W*":"W"),U("n")},d.__private__.clip_fixed=d.clip_fixed=function(t){console.log("clip_fixed is deprecated"),d.clip(t)};var Ut=d.__private__.isValidStyle=function(t){var e=!1;return-1!==[void 0,null,"S","F","DF","FD","f","f*","B","B*"].indexOf(t)&&(e=!0),e},zt=d.__private__.getStyle=function(t){var e="S";return"F"===t?e="f":"FD"===t||"DF"===t?e="B":"f"!==t&&"f*"!==t&&"B"!==t&&"B*"!==t||(e=t),e};d.__private__.line=d.line=function(t,e,n,r){if(isNaN(t)||isNaN(e)||isNaN(n)||isNaN(r))throw new Error("Invalid arguments passed to jsPDF.line");return this.lines([[n-t,r-e]],t,e)},d.__private__.lines=d.lines=function(t,e,n,r,i,o){var a,s,l,c,u,f,h,d,p,g,m,v;if("number"==typeof t&&(v=n,n=e,e=t,t=v),r=r||[1,1],o=o||!1,isNaN(e)||isNaN(n)||!Array.isArray(t)||!Array.isArray(r)||!Ut(i)||"boolean"!=typeof o)throw new Error("Invalid arguments passed to jsPDF.lines");for(U(w(Jt(e))+" "+w(Xt(n))+" m "),a=r[0],s=r[1],c=t.length,g=e,m=n,l=0;l<c;l++)2===(u=t[l]).length?(g=u[0]*a+g,m=u[1]*s+m,U(w(Jt(g))+" "+w(Xt(m))+" l")):(f=u[0]*a+g,h=u[1]*s+m,d=u[2]*a+g,p=u[3]*s+m,g=u[4]*a+g,m=u[5]*s+m,U(w(Jt(f))+" "+w(Xt(h))+" "+w(Jt(d))+" "+w(Xt(p))+" "+w(Jt(g))+" "+w(Xt(m))+" c"));return o&&U(" h"),null!==i&&U(zt(i)),this},d.__private__.rect=d.rect=function(t,e,n,r,i){if(isNaN(t)||isNaN(e)||isNaN(n)||isNaN(r)||!Ut(i))throw new Error("Invalid arguments passed to jsPDF.rect");return U([b(Jt(t)),b(Xt(e)),b(n*j),b(-r*j),"re"].join(" ")),null!==i&&U(zt(i)),this},d.__private__.triangle=d.triangle=function(t,e,n,r,i,o,a){if(isNaN(t)||isNaN(e)||isNaN(n)||isNaN(r)||isNaN(i)||isNaN(o)||!Ut(a))throw new Error("Invalid arguments passed to jsPDF.triangle");return this.lines([[n-t,r-e],[i-n,o-r],[t-i,e-o]],t,e,[1,1],a,!0),this},d.__private__.roundedRect=d.roundedRect=function(t,e,n,r,i,o,a){if(isNaN(t)||isNaN(e)||isNaN(n)||isNaN(r)||isNaN(i)||isNaN(o)||!Ut(a))throw new Error("Invalid arguments passed to jsPDF.roundedRect");var s=4/3*(Math.SQRT2-1);return this.lines([[n-2*i,0],[i*s,0,i,o-o*s,i,o],[0,r-2*o],[0,o*s,-i*s,o,-i,o],[2*i-n,0],[-i*s,0,-i,-o*s,-i,-o],[0,2*o-r],[0,-o*s,i*s,-o,i,-o]],t+i,e,[1,1],a),this},d.__private__.ellipse=d.ellipse=function(t,e,n,r,i){if(isNaN(t)||isNaN(e)||isNaN(n)||isNaN(r)||!Ut(i))throw new Error("Invalid arguments passed to jsPDF.ellipse");var o=4/3*(Math.SQRT2-1)*n,a=4/3*(Math.SQRT2-1)*r;return U([b(Jt(t+n)),b(Xt(e)),"m",b(Jt(t+n)),b(Xt(e-a)),b(Jt(t+o)),b(Xt(e-r)),b(Jt(t)),b(Xt(e-r)),"c"].join(" ")),U([b(Jt(t-o)),b(Xt(e-r)),b(Jt(t-n)),b(Xt(e-a)),b(Jt(t-n)),b(Xt(e)),"c"].join(" ")),U([b(Jt(t-n)),b(Xt(e+a)),b(Jt(t-o)),b(Xt(e+r)),b(Jt(t)),b(Xt(e+r)),"c"].join(" ")),U([b(Jt(t+o)),b(Xt(e+r)),b(Jt(t+n)),b(Xt(e+a)),b(Jt(t+n)),b(Xt(e)),"c"].join(" ")),null!==i&&U(zt(i)),this},d.__private__.circle=d.circle=function(t,e,n,r){if(isNaN(t)||isNaN(e)||isNaN(n)||!Ut(r))throw new Error("Invalid arguments passed to jsPDF.circle");return this.ellipse(t,e,n,n,r)},d.setFont=function(t,e){return E=Ct(t,e,{disableWarning:!1}),this},d.setFontStyle=d.setFontType=function(t){return E=Ct(void 0,t),this},d.__private__.getFontList=d.getFontList=function(){var t,e,n,r={};for(t in et)if(et.hasOwnProperty(t))for(e in r[t]=n=[],et[t])et[t].hasOwnProperty(e)&&n.push(e);return r},d.addFont=function(t,e,n,r){xt.call(this,t,e,n,r=r||"Identity-H")};var Ht,$t=l.lineWidth||.200025,Vt=d.__private__.setLineWidth=d.setLineWidth=function(t){return U((t*j).toFixed(2)+" w"),this},Wt=(d.__private__.setLineDash=r.API.setLineDash=function(t,e){if(t=t||[],e=e||0,isNaN(e)||!Array.isArray(t))throw new Error("Invalid arguments passed to jsPDF.setLineDash");return t=t.map(function(t){return(t*j).toFixed(3)}).join(" "),e=parseFloat((e*j).toFixed(3)),U("["+t+"] "+e+" d"),this},d.__private__.getLineHeight=d.getLineHeight=function(){return V*Ht}),Gt=(Wt=d.__private__.getLineHeight=d.getLineHeight=function(){return V*Ht},d.__private__.setLineHeightFactor=d.setLineHeightFactor=function(t){return"number"==typeof(t=t||1.15)&&(Ht=t),this}),Yt=d.__private__.getLineHeightFactor=d.getLineHeightFactor=function(){return Ht};Gt(l.lineHeight);var Jt=d.__private__.getHorizontalCoordinate=function(t){return t*j},Xt=d.__private__.getVerticalCoordinate=function(t){return rt[O].mediaBox.topRightY-rt[O].mediaBox.bottomLeftY-t*j},Kt=d.__private__.getHorizontalCoordinateString=function(t){return b(t*j)},Qt=d.__private__.getVerticalCoordinateString=function(t){return b(rt[O].mediaBox.topRightY-rt[O].mediaBox.bottomLeftY-t*j)},Zt=l.strokeColor||"0 G",te=(d.__private__.getStrokeColor=d.getDrawColor=function(){return dt(Zt)},d.__private__.setStrokeColor=d.setDrawColor=function(t,e,n,r){return Zt=pt({ch1:t,ch2:e,ch3:n,ch4:r,pdfColorType:"draw",precision:2}),U(Zt),this},l.fillColor||"0 g"),ee=(d.__private__.getFillColor=d.getFillColor=function(){return dt(te)},d.__private__.setFillColor=d.setFillColor=function(t,e,n,r){return te=pt({ch1:t,ch2:e,ch3:n,ch4:r,pdfColorType:"fill",precision:2}),U(te),this},l.textColor||"0 g"),ne=d.__private__.getTextColor=d.getTextColor=function(){return dt(ee)},re=(d.__private__.setTextColor=d.setTextColor=function(t,e,n,r){return ee=pt({ch1:t,ch2:e,ch3:n,ch4:r,pdfColorType:"text",precision:3}),this},l.charSpace||0),ie=d.__private__.getCharSpace=d.getCharSpace=function(){return re},oe=(d.__private__.setCharSpace=d.setCharSpace=function(t){if(isNaN(t))throw new Error("Invalid argument passed to jsPDF.setCharSpace");return re=t,this},0);d.CapJoinStyles={0:0,butt:0,but:0,miter:0,1:1,round:1,rounded:1,circle:1,2:2,projecting:2,project:2,square:2,bevel:2},d.__private__.setLineCap=d.setLineCap=function(t){var e=d.CapJoinStyles[t];if(void 0===e)throw new Error("Line cap style of '"+t+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return U((oe=e)+" J"),this};var ae,se=0;d.__private__.setLineJoin=d.setLineJoin=function(t){var e=d.CapJoinStyles[t];if(void 0===e)throw new Error("Line join style of '"+t+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return U((se=e)+" j"),this},d.__private__.setMiterLimit=d.setMiterLimit=function(t){if(t=t||0,isNaN(t))throw new Error("Invalid argument passed to jsPDF.setMiterLimit");return ae=parseFloat(b(t*j)),U(ae+" M"),this};for(var le in d.save=function(t,n){if(t=t||"generated.pdf",(n=n||{}).returnPromise=n.returnPromise||!1,!1!==n.returnPromise)return new Promise(function(n,r){try{var i=_t(Ft(jt()),t);"function"==typeof _t.unload&&e.setTimeout&&setTimeout(_t.unload,911),n(i)}catch(n){r(n.message)}});_t(Ft(jt()),t),"function"==typeof _t.unload&&e.setTimeout&&setTimeout(_t.unload,911)},r.API)r.API.hasOwnProperty(le)&&("events"===le&&r.API.events.length?function(t,e){var n,r,i;for(i=e.length-1;-1!==i;i--)n=e[i][0],r=e[i][1],t.subscribe.apply(t,[n].concat("function"==typeof r?[r]:r))}(ot,r.API.events):d[le]=r.API[le]);return d.internal={pdfEscape:St,getStyle:zt,getFont:function(){return tt[Ct.apply(d,arguments)]},getFontSize:W,getCharSpace:ie,getTextColor:ne,getLineHeight:Wt,getLineHeightFactor:Yt,write:z,getHorizontalCoordinate:Jt,getVerticalCoordinate:Xt,getCoordinateString:Kt,getVerticalCoordinateString:Qt,collections:{},newObject:st,newAdditionalObject:ut,newObjectDeferred:lt,newObjectDeferredBegin:ct,getFilters:gt,putStream:mt,events:ot,scaleFactor:j,pageSize:{getWidth:function(){return(rt[O].mediaBox.topRightX-rt[O].mediaBox.bottomLeftX)/j},setWidth:function(t){rt[O].mediaBox.topRightX=t*j+rt[O].mediaBox.bottomLeftX},getHeight:function(){return(rt[O].mediaBox.topRightY-rt[O].mediaBox.bottomLeftY)/j},setHeight:function(t){rt[O].mediaBox.topRightY=t*j+rt[O].mediaBox.bottomLeftY}},output:Rt,getNumberOfPages:kt,pages:M,out:U,f2:b,f3:w,getPageInfo:Mt,getPageInfoByObjId:Dt,getCurrentPageInfo:qt,getPDFVersion:g,hasHotfix:Bt},Object.defineProperty(d.internal.pageSize,"width",{get:function(){return(rt[O].mediaBox.topRightX-rt[O].mediaBox.bottomLeftX)/j},set:function(t){rt[O].mediaBox.topRightX=t*j+rt[O].mediaBox.bottomLeftX},enumerable:!0,configurable:!0}),Object.defineProperty(d.internal.pageSize,"height",{get:function(){return(rt[O].mediaBox.topRightY-rt[O].mediaBox.bottomLeftY)/j},set:function(t){rt[O].mediaBox.topRightY=t*j+rt[O].mediaBox.bottomLeftY},enumerable:!0,configurable:!0}),function(t){for(var e=0,n=$.length;e<n;e++){var r=xt(t[e][0],t[e][1],t[e][2],$[e][3],!0);h[r]=!0;var i=t[e][0].split("-");wt(r,i[0],i[1]||"")}ot.publish("addFonts",{fonts:tt,dictionary:et})}($),E="F1",Nt(a,i),ot.publish("initialized"),d}return r.API={events:[]},r.version="1.5.3","function"==typeof define&&define.amd?define("jsPDF",function(){return r}):"undefined"!=typeof module&&module.exports?(module.exports=r,module.exports.jsPDF=r):e.jsPDF=r,r}("undefined"!=typeof self&&self||"undefined"!=typeof window&&window||"undefined"!=typeof global&&global||Function('return typeof this === "object" && this.content')()||Function("return this")());(function(e,n){var r,i=1,o=function(t){return t.replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},a=function(t){return t.replace(/\\\\/g,"\\").replace(/\\\(/g,"(").replace(/\\\)/g,")")},s=function(t){if(isNaN(t))throw new Error("Invalid argument passed to jsPDF.f2");return t.toFixed(2)},l=function(t){if(isNaN(t))throw new Error("Invalid argument passed to jsPDF.f2");return t.toFixed(5)};e.__acroform__={};var c=function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t},u=function(t){return t*i},f=function(t){return t/i},h=function(t){var e=new j,n=Y.internal.getHeight(t)||0,r=Y.internal.getWidth(t)||0;return e.BBox=[0,0,Number(s(r)),Number(s(n))],e},d=e.__acroform__.setBit=function(t,e){if(t=t||0,e=e||0,isNaN(t)||isNaN(e))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBit");return t|=1<<e},p=e.__acroform__.clearBit=function(t,e){if(t=t||0,e=e||0,+isNaN(t)||isNaN(e))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBit");return t&=~(1<<e)},g=e.__acroform__.getBit=function(t,e){if(isNaN(t)||isNaN(e))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBit");return 0==(t&1<<e)?0:1},m=e.__acroform__.getBitForPdf=function(t,e){if(isNaN(t)||isNaN(e))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBitForPdf");return g(t,e-1)},v=e.__acroform__.setBitForPdf=function(t,e){if(isNaN(t)||isNaN(e))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBitForPdf");return d(t,e-1)},y=e.__acroform__.clearBitForPdf=function(t,e,n){if(isNaN(t)||isNaN(e))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBitForPdf");return p(t,e-1)},b=e.__acroform__.calculateCoordinates=function(t){var e=this.internal.getHorizontalCoordinate,n=this.internal.getVerticalCoordinate,r=t[0],i=t[1],o=t[2],a=t[3],l={};return l.lowerLeft_X=e(r)||0,l.lowerLeft_Y=n(i+a)||0,l.upperRight_X=e(r+o)||0,l.upperRight_Y=n(i)||0,[Number(s(l.lowerLeft_X)),Number(s(l.lowerLeft_Y)),Number(s(l.upperRight_X)),Number(s(l.upperRight_Y))]},w=function(t){if(t.appearanceStreamContent)return t.appearanceStreamContent;if(t.V||t.DV){var e=[],n=t.V||t.DV,i=x(t,n),o=r.internal.getFont(t.fontName,t.fontStyle).id;e.push("/Tx BMC"),e.push("q"),e.push("BT"),e.push(r.__private__.encodeColorString(t.color)),e.push("/"+o+" "+s(i.fontSize)+" Tf"),e.push("1 0 0 1 0 0 Tm"),e.push(i.text),e.push("ET"),e.push("Q"),e.push("EMC");var a=new h(t);return a.stream=e.join("\n"),a}},x=function(t,e){var n=t.maxFontSize||12,i=(t.fontName,{text:"",fontSize:""}),a=(e=")"==(e="("==e.substr(0,1)?e.substr(1):e).substr(e.length-1)?e.substr(0,e.length-1):e).split(" "),l=(r.__private__.encodeColorString(t.color),n),c=Y.internal.getHeight(t)||0;c=c<0?-c:c;var u=Y.internal.getWidth(t)||0;u=u<0?-u:u;l++;t:for(;;){e="";var f=S("3",t,--l).height,h=t.multiline?c-l:(c-f)/2,d=-2,p=h+=2,g=0,m=0,v=0;if(l<=0){e="(...) Tj\n",e+="% Width of Text: "+S(e,t,l=12).width+", FieldWidth:"+u+"\n";break}v=S(a[0]+" ",t,l).width;var y="",b=0;for(var w in a)if(a.hasOwnProperty(w)){y=" "==(y+=a[w]+" ").substr(y.length-1)?y.substr(0,y.length-1):y;var x=parseInt(w);v=S(y+" ",t,l).width;var A=function(e,n,r){if(e+1<a.length){var i=n+" "+a[e+1];return S(i,t,r).width<=u-4}return!1}(x,y,l),N=w>=a.length-1;if(A&&!N){y+=" ";continue}if(A||N){if(N)m=x;else if(t.multiline&&c<(f+2)*(b+2)+2)continue t}else{if(!t.multiline)continue t;if(c<(f+2)*(b+2)+2)continue t;m=x}for(var L="",k=g;k<=m;k++)L+=a[k]+" ";switch(L=" "==L.substr(L.length-1)?L.substr(0,L.length-1):L,v=S(L,t,l).width,t.textAlign){case"right":d=u-v-2;break;case"center":d=(u-v)/2;break;case"left":default:d=2}e+=s(d)+" "+s(p)+" Td\n",e+="("+o(L)+") Tj\n",e+=-s(d)+" 0 Td\n",p=-(l+2),v=0,g=m+1,b++,y=""}break}return i.text=e,i.fontSize=l,i},S=function(t,e,n){var i=r.internal.getFont(e.fontName,e.fontStyle),o=r.getStringUnitWidth(t,{font:i,fontSize:parseFloat(n),charSpace:0})*parseFloat(n);return{height:r.getStringUnitWidth("3",{font:i,fontSize:parseFloat(n),charSpace:0})*parseFloat(n)*1.5,width:o}},A={fields:[],xForms:[],acroFormDictionaryRoot:null,printedOut:!1,internal:null,isInitialized:!1},N=function(){r.internal.acroformPlugin.acroFormDictionaryRoot.objId=void 0;var t=r.internal.acroformPlugin.acroFormDictionaryRoot.Fields;for(var e in t)if(t.hasOwnProperty(e)){var n=t[e];n.objId=void 0,n.hasAnnotation&&L.call(r,n)}},L=function(t){var e={type:"reference",object:t};void 0===r.internal.getPageInfo(t.page).pageContext.annotations.find(function(t){return t.type===e.type&&t.object===e.object})&&r.internal.getPageInfo(t.page).pageContext.annotations.push(e)},k=function(){if(void 0===r.internal.acroformPlugin.acroFormDictionaryRoot)throw new Error("putCatalogCallback: Root missing.");r.internal.write("/AcroForm "+r.internal.acroformPlugin.acroFormDictionaryRoot.objId+" 0 R")},C=function(){r.internal.events.unsubscribe(r.internal.acroformPlugin.acroFormDictionaryRoot._eventID),delete r.internal.acroformPlugin.acroFormDictionaryRoot._eventID,r.internal.acroformPlugin.printedOut=!0},O=function(e){var n=!e;e||(r.internal.newObjectDeferredBegin(r.internal.acroformPlugin.acroFormDictionaryRoot.objId,!0),r.internal.acroformPlugin.acroFormDictionaryRoot.putStream()),e=e||r.internal.acroformPlugin.acroFormDictionaryRoot.Kids;for(var i in e)if(e.hasOwnProperty(i)){var o=e[i],a=[],s=o.Rect;if(o.Rect&&(o.Rect=b.call(this,o.Rect)),r.internal.newObjectDeferredBegin(o.objId,!0),o.DA=Y.createDefaultAppearanceStream(o),"object"===t(o)&&"function"==typeof o.getKeyValueListForStream&&(a=o.getKeyValueListForStream()),o.Rect=s,o.hasAppearanceStream&&!o.appearanceStreamContent){var l=w.call(this,o);a.push({key:"AP",value:"<</N "+l+">>"}),r.internal.acroformPlugin.xForms.push(l)}if(o.appearanceStreamContent){var c="";for(var u in o.appearanceStreamContent)if(o.appearanceStreamContent.hasOwnProperty(u)){var f=o.appearanceStreamContent[u];if(c+="/"+u+" ",c+="<<",1<=Object.keys(f).length||Array.isArray(f))for(var i in f){var h;f.hasOwnProperty(i)&&("function"==typeof(h=f[i])&&(h=h.call(this,o)),c+="/"+i+" "+h+" ",0<=r.internal.acroformPlugin.xForms.indexOf(h)||r.internal.acroformPlugin.xForms.push(h))}else"function"==typeof(h=f)&&(h=h.call(this,o)),c+="/"+i+" "+h,0<=r.internal.acroformPlugin.xForms.indexOf(h)||r.internal.acroformPlugin.xForms.push(h);c+=">>"}a.push({key:"AP",value:"<<\n"+c+">>"})}r.internal.putStream({additionalKeyValues:a}),r.internal.out("endobj")}n&&_.call(this,r.internal.acroformPlugin.xForms)},_=function(e){for(var n in e)if(e.hasOwnProperty(n)){var i=n,o=e[n];r.internal.newObjectDeferredBegin(o&&o.objId,!0),"object"===t(o)&&"function"==typeof o.putStream&&o.putStream(),delete e[i]}},P=function(){if(void 0!==this.internal&&(void 0===this.internal.acroformPlugin||!1===this.internal.acroformPlugin.isInitialized)){if(r=this,R.FieldNum=0,this.internal.acroformPlugin=JSON.parse(JSON.stringify(A)),this.internal.acroformPlugin.acroFormDictionaryRoot)throw new Error("Exception while creating AcroformDictionary");i=r.internal.scaleFactor,r.internal.acroformPlugin.acroFormDictionaryRoot=new F,r.internal.acroformPlugin.acroFormDictionaryRoot._eventID=r.internal.events.subscribe("postPutResources",C),r.internal.events.subscribe("buildDocument",N),r.internal.events.subscribe("putCatalog",k),r.internal.events.subscribe("postPutPages",O),r.internal.acroformPlugin.isInitialized=!0}},I=e.__acroform__.arrayToPdfArray=function(e){if(Array.isArray(e)){for(var n="[",r=0;r<e.length;r++)switch(0!==r&&(n+=" "),t(e[r])){case"boolean":case"number":case"object":n+=e[r].toString();break;case"string":"/"!==e[r].substr(0,1)?n+="("+o(e[r].toString())+")":n+=e[r].toString()}return n+="]"}throw new Error("Invalid argument passed to jsPDF.__acroform__.arrayToPdfArray")},T=function(t){return(t=t||"").toString(),t="("+o(t)+")"},E=function(){var t;Object.defineProperty(this,"objId",{configurable:!0,get:function(){if(t||(t=r.internal.newObjectDeferred()),!t)throw new Error("AcroFormPDFObject: Couldn't create Object ID");return t},set:function(e){t=e}})};E.prototype.toString=function(){return this.objId+" 0 R"},E.prototype.putStream=function(){var t=this.getKeyValueListForStream();r.internal.putStream({data:this.stream,additionalKeyValues:t}),r.internal.out("endobj")},E.prototype.getKeyValueListForStream=function(){return function(t){var e=[],n=Object.getOwnPropertyNames(t).filter(function(t){return"content"!=t&&"appearanceStreamContent"!=t&&"_"!=t.substring(0,1)});for(var r in n)if(!1===Object.getOwnPropertyDescriptor(t,n[r]).configurable){var i=n[r],o=t[i];o&&(Array.isArray(o)?e.push({key:i,value:I(o)}):o instanceof E?e.push({key:i,value:o.objId+" 0 R"}):"function"!=typeof o&&e.push({key:i,value:o}))}return e}(this)};var j=function(){E.call(this),Object.defineProperty(this,"Type",{value:"/XObject",configurable:!1,writeable:!0}),Object.defineProperty(this,"Subtype",{value:"/Form",configurable:!1,writeable:!0}),Object.defineProperty(this,"FormType",{value:1,configurable:!1,writeable:!0});var t,e=[];Object.defineProperty(this,"BBox",{configurable:!1,writeable:!0,get:function(){return e},set:function(t){e=t}}),Object.defineProperty(this,"Resources",{value:"2 0 R",configurable:!1,writeable:!0}),Object.defineProperty(this,"stream",{enumerable:!1,configurable:!0,set:function(e){t=e.trim()},get:function(){return t||null}})};c(j,E);var F=function(){E.call(this);var t,e=[];Object.defineProperty(this,"Kids",{enumerable:!1,configurable:!0,get:function(){return 0<e.length?e:void 0}}),Object.defineProperty(this,"Fields",{enumerable:!1,configurable:!1,get:function(){return e}}),Object.defineProperty(this,"DA",{enumerable:!1,configurable:!1,get:function(){if(t)return"("+t+")"},set:function(e){t=e}})};c(F,E);var R=function t(){E.call(this);var e=4;Object.defineProperty(this,"F",{enumerable:!1,configurable:!1,get:function(){return e},set:function(t){if(isNaN(t))throw new Error('Invalid value "'+t+'" for attribute F supplied.');e=t}}),Object.defineProperty(this,"showWhenPrinted",{enumerable:!0,configurable:!0,get:function(){return Boolean(m(e,3))},set:function(t){!0===Boolean(t)?this.F=v(e,3):this.F=y(e,3)}});var n=0;Object.defineProperty(this,"Ff",{enumerable:!1,configurable:!1,get:function(){return n},set:function(t){if(isNaN(t))throw new Error('Invalid value "'+t+'" for attribute Ff supplied.');n=t}});var r=[];Object.defineProperty(this,"Rect",{enumerable:!1,configurable:!1,get:function(){if(0!==r.length)return r},set:function(t){r=void 0!==t?t:[]}}),Object.defineProperty(this,"x",{enumerable:!0,configurable:!0,get:function(){return!r||isNaN(r[0])?0:f(r[0])},set:function(t){r[0]=u(t)}}),Object.defineProperty(this,"y",{enumerable:!0,configurable:!0,get:function(){return!r||isNaN(r[1])?0:f(r[1])},set:function(t){r[1]=u(t)}}),Object.defineProperty(this,"width",{enumerable:!0,configurable:!0,get:function(){return!r||isNaN(r[2])?0:f(r[2])},set:function(t){r[2]=u(t)}}),Object.defineProperty(this,"height",{enumerable:!0,configurable:!0,get:function(){return!r||isNaN(r[3])?0:f(r[3])},set:function(t){r[3]=u(t)}});var i="";Object.defineProperty(this,"FT",{enumerable:!0,configurable:!1,get:function(){return i},set:function(t){switch(t){case"/Btn":case"/Tx":case"/Ch":case"/Sig":i=t;break;default:throw new Error('Invalid value "'+t+'" for attribute FT supplied.')}}});var s=null;Object.defineProperty(this,"T",{enumerable:!0,configurable:!1,get:function(){if(!s||s.length<1){if(this instanceof $)return;s="FieldObject"+t.FieldNum++}return"("+o(s)+")"},set:function(t){s=t.toString()}}),Object.defineProperty(this,"fieldName",{configurable:!0,enumerable:!0,get:function(){return s},set:function(t){s=t}});var l="helvetica";Object.defineProperty(this,"fontName",{enumerable:!0,configurable:!0,get:function(){return l},set:function(t){l=t}});var c="normal";Object.defineProperty(this,"fontStyle",{enumerable:!0,configurable:!0,get:function(){return c},set:function(t){c=t}});var h=0;Object.defineProperty(this,"fontSize",{enumerable:!0,configurable:!0,get:function(){return f(h)},set:function(t){h=u(t)}});var d=50;Object.defineProperty(this,"maxFontSize",{enumerable:!0,configurable:!0,get:function(){return f(d)},set:function(t){d=u(t)}});var p="black";Object.defineProperty(this,"color",{enumerable:!0,configurable:!0,get:function(){return p},set:function(t){p=t}});var g="/F1 0 Tf 0 g";Object.defineProperty(this,"DA",{enumerable:!0,configurable:!1,get:function(){if(!(!g||this instanceof $||this instanceof W))return T(g)},set:function(t){t=t.toString(),g=t}});var b=null;Object.defineProperty(this,"DV",{enumerable:!1,configurable:!1,get:function(){if(b)return this instanceof U==0?T(b):b},set:function(t){t=t.toString(),b=this instanceof U==0?a("("===t.substr(0,1)?t.substr(1,t.length-2):t):t}}),Object.defineProperty(this,"defaultValue",{enumerable:!0,configurable:!0,get:function(){return this instanceof U==1?a(b.substr(1,b.length-1)):b},set:function(t){t=t.toString(),b=this instanceof U==1?"/"+t:t}});var w=null;Object.defineProperty(this,"V",{enumerable:!1,configurable:!1,get:function(){if(w)return this instanceof U==0?T(w):w},set:function(t){t=t.toString(),w=this instanceof U==0?a("("===t.substr(0,1)?t.substr(1,t.length-2):t):t}}),Object.defineProperty(this,"value",{enumerable:!0,configurable:!0,get:function(){return this instanceof U==1?a(w.substr(1,w.length-1)):w},set:function(t){t=t.toString(),w=this instanceof U==1?"/"+t:t}}),Object.defineProperty(this,"hasAnnotation",{enumerable:!0,configurable:!0,get:function(){return this.Rect}}),Object.defineProperty(this,"Type",{enumerable:!0,configurable:!1,get:function(){return this.hasAnnotation?"/Annot":null}}),Object.defineProperty(this,"Subtype",{enumerable:!0,configurable:!1,get:function(){return this.hasAnnotation?"/Widget":null}});var x,S=!1;Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,writeable:!0,get:function(){return S},set:function(t){t=Boolean(t),S=t}}),Object.defineProperty(this,"page",{enumerable:!0,configurable:!0,writeable:!0,get:function(){if(x)return x},set:function(t){x=t}}),Object.defineProperty(this,"readOnly",{enumerable:!0,configurable:!0,get:function(){return Boolean(m(this.Ff,1))},set:function(t){!0===Boolean(t)?this.Ff=v(this.Ff,1):this.Ff=y(this.Ff,1)}}),Object.defineProperty(this,"required",{enumerable:!0,configurable:!0,get:function(){return Boolean(m(this.Ff,2))},set:function(t){!0===Boolean(t)?this.Ff=v(this.Ff,2):this.Ff=y(this.Ff,2)}}),Object.defineProperty(this,"noExport",{enumerable:!0,configurable:!0,get:function(){return Boolean(m(this.Ff,3))},set:function(t){!0===Boolean(t)?this.Ff=v(this.Ff,3):this.Ff=y(this.Ff,3)}});var A=null;Object.defineProperty(this,"Q",{enumerable:!0,configurable:!1,get:function(){if(null!==A)return A},set:function(t){if(-1===[0,1,2].indexOf(t))throw new Error('Invalid value "'+t+'" for attribute Q supplied.');A=t}}),Object.defineProperty(this,"textAlign",{get:function(){var t="left";switch(A){case 0:default:t="left";break;case 1:t="center";break;case 2:t="right"}return t},configurable:!0,enumerable:!0,set:function(t){switch(t){case"right":case 2:A=2;break;case"center":case 1:A=1;break;case"left":case 0:default:A=0}}})};c(R,E);var B=function(){R.call(this),this.FT="/Ch",this.V="()",this.fontName="zapfdingbats";var t=0;Object.defineProperty(this,"TI",{enumerable:!0,configurable:!1,get:function(){return t},set:function(e){t=e}}),Object.defineProperty(this,"topIndex",{enumerable:!0,configurable:!0,get:function(){return t},set:function(e){t=e}});var e=[];Object.defineProperty(this,"Opt",{enumerable:!0,configurable:!1,get:function(){return I(e)},set:function(t){var n,r;r=[],"string"==typeof(n=t)&&(r=function(t,e,n){n||(n=1);for(var r,i=[];r=e.exec(t);)i.push(r[n]);return i}(n,/\((.*?)\)/g)),e=r}}),this.getOptions=function(){return e},this.setOptions=function(t){e=t,this.sort&&e.sort()},this.addOption=function(t){t=(t=t||"").toString(),e.push(t),this.sort&&e.sort()},this.removeOption=function(t,n){for(n=n||!1,t=(t=t||"").toString();-1!==e.indexOf(t)&&(e.splice(e.indexOf(t),1),!1!==n););},Object.defineProperty(this,"combo",{enumerable:!0,configurable:!0,get:function(){return Boolean(m(this.Ff,18))},set:function(t){!0===Boolean(t)?this.Ff=v(this.Ff,18):this.Ff=y(this.Ff,18)}}),Object.defineProperty(this,"edit",{enumerable:!0,configurable:!0,get:function(){return Boolean(m(this.Ff,19))},set:function(t){!0===this.combo&&(!0===Boolean(t)?this.Ff=v(this.Ff,19):this.Ff=y(this.Ff,19))}}),Object.defineProperty(this,"sort",{enumerable:!0,configurable:!0,get:function(){return Boolean(m(this.Ff,20))},set:function(t){!0===Boolean(t)?(this.Ff=v(this.Ff,20),e.sort()):this.Ff=y(this.Ff,20)}}),Object.defineProperty(this,"multiSelect",{enumerable:!0,configurable:!0,get:function(){return Boolean(m(this.Ff,22))},set:function(t){!0===Boolean(t)?this.Ff=v(this.Ff,22):this.Ff=y(this.Ff,22)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return Boolean(m(this.Ff,23))},set:function(t){!0===Boolean(t)?this.Ff=v(this.Ff,23):this.Ff=y(this.Ff,23)}}),Object.defineProperty(this,"commitOnSelChange",{enumerable:!0,configurable:!0,get:function(){return Boolean(m(this.Ff,27))},set:function(t){!0===Boolean(t)?this.Ff=v(this.Ff,27):this.Ff=y(this.Ff,27)}}),this.hasAppearanceStream=!1};c(B,R);var M=function(){B.call(this),this.fontName="helvetica",this.combo=!1};c(M,B);var D=function(){M.call(this),this.combo=!0};c(D,M);var q=function(){D.call(this),this.edit=!0};c(q,D);var U=function(){R.call(this),this.FT="/Btn",Object.defineProperty(this,"noToggleToOff",{enumerable:!0,configurable:!0,get:function(){return Boolean(m(this.Ff,15))},set:function(t){!0===Boolean(t)?this.Ff=v(this.Ff,15):this.Ff=y(this.Ff,15)}}),Object.defineProperty(this,"radio",{enumerable:!0,configurable:!0,get:function(){return Boolean(m(this.Ff,16))},set:function(t){!0===Boolean(t)?this.Ff=v(this.Ff,16):this.Ff=y(this.Ff,16)}}),Object.defineProperty(this,"pushButton",{enumerable:!0,configurable:!0,get:function(){return Boolean(m(this.Ff,17))},set:function(t){!0===Boolean(t)?this.Ff=v(this.Ff,17):this.Ff=y(this.Ff,17)}}),Object.defineProperty(this,"radioIsUnison",{enumerable:!0,configurable:!0,get:function(){return Boolean(m(this.Ff,26))},set:function(t){!0===Boolean(t)?this.Ff=v(this.Ff,26):this.Ff=y(this.Ff,26)}});var e,n={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){if(0!==Object.keys(n).length){var t,e=[];for(t in e.push("<<"),n)e.push("/"+t+" ("+n[t]+")");return e.push(">>"),e.join("\n")}},set:function(e){"object"===t(e)&&(n=e)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return n.CA||""},set:function(t){"string"==typeof t&&(n.CA=t)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return e},set:function(t){e=t}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return e.substr(1,e.length-1)},set:function(t){e="/"+t}})};c(U,R);var z=function(){U.call(this),this.pushButton=!0};c(z,U);var H=function(){U.call(this),this.radio=!0,this.pushButton=!1;var t=[];Object.defineProperty(this,"Kids",{enumerable:!0,configurable:!1,get:function(){return t},set:function(e){t=void 0!==e?e:[]}})};c(H,U);var $=function(){var e,n;R.call(this),Object.defineProperty(this,"Parent",{enumerable:!1,configurable:!1,get:function(){return e},set:function(t){e=t}}),Object.defineProperty(this,"optionName",{enumerable:!1,configurable:!0,get:function(){return n},set:function(t){n=t}});var r,i={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var t,e=[];for(t in e.push("<<"),i)e.push("/"+t+" ("+i[t]+")");return e.push(">>"),e.join("\n")},set:function(e){"object"===t(e)&&(i=e)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return i.CA||""},set:function(t){"string"==typeof t&&(i.CA=t)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return r},set:function(t){r=t}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return r.substr(1,r.length-1)},set:function(t){r="/"+t}}),this.optionName=name,this.caption="l",this.appearanceState="Off",this._AppearanceType=Y.RadioButton.Circle,this.appearanceStreamContent=this._AppearanceType.createAppearanceStream(name)};c($,R),H.prototype.setAppearance=function(t){if(!("createAppearanceStream"in t&&"getCA"in t))throw new Error("Couldn't assign Appearance to RadioButton. Appearance was Invalid!");for(var e in this.Kids)if(this.Kids.hasOwnProperty(e)){var n=this.Kids[e];n.appearanceStreamContent=t.createAppearanceStream(n.optionName),n.caption=t.getCA()}},H.prototype.createOption=function(t){this.Kids.length;var e=new $;return e.Parent=this,e.optionName=t,this.Kids.push(e),J.call(this,e),e};var V=function(){U.call(this),this.fontName="zapfdingbats",this.caption="3",this.appearanceState="On",this.value="On",this.textAlign="center",this.appearanceStreamContent=Y.CheckBox.createAppearanceStream()};c(V,U);var W=function(){R.call(this),this.FT="/Tx",Object.defineProperty(this,"multiline",{enumerable:!0,configurable:!0,get:function(){return Boolean(m(this.Ff,13))},set:function(t){!0===Boolean(t)?this.Ff=v(this.Ff,13):this.Ff=y(this.Ff,13)}}),Object.defineProperty(this,"fileSelect",{enumerable:!0,configurable:!0,get:function(){return Boolean(m(this.Ff,21))},set:function(t){!0===Boolean(t)?this.Ff=v(this.Ff,21):this.Ff=y(this.Ff,21)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return Boolean(m(this.Ff,23))},set:function(t){!0===Boolean(t)?this.Ff=v(this.Ff,23):this.Ff=y(this.Ff,23)}}),Object.defineProperty(this,"doNotScroll",{enumerable:!0,configurable:!0,get:function(){return Boolean(m(this.Ff,24))},set:function(t){!0===Boolean(t)?this.Ff=v(this.Ff,24):this.Ff=y(this.Ff,24)}}),Object.defineProperty(this,"comb",{enumerable:!0,configurable:!0,get:function(){return Boolean(m(this.Ff,25))},set:function(t){!0===Boolean(t)?this.Ff=v(this.Ff,25):this.Ff=y(this.Ff,25)}}),Object.defineProperty(this,"richText",{enumerable:!0,configurable:!0,get:function(){return Boolean(m(this.Ff,26))},set:function(t){!0===Boolean(t)?this.Ff=v(this.Ff,26):this.Ff=y(this.Ff,26)}});var t=null;Object.defineProperty(this,"MaxLen",{enumerable:!0,configurable:!1,get:function(){return t},set:function(e){t=e}}),Object.defineProperty(this,"maxLength",{enumerable:!0,configurable:!0,get:function(){return t},set:function(e){Number.isInteger(e)&&(t=e)}}),Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return this.V||this.DV}})};c(W,R);var G=function(){W.call(this),Object.defineProperty(this,"password",{enumerable:!0,configurable:!0,get:function(){return Boolean(m(this.Ff,14))},set:function(t){!0===Boolean(t)?this.Ff=v(this.Ff,14):this.Ff=y(this.Ff,14)}}),this.password=!0};c(G,W);var Y={CheckBox:{createAppearanceStream:function(){return{N:{On:Y.CheckBox.YesNormal},D:{On:Y.CheckBox.YesPushDown,Off:Y.CheckBox.OffPushDown}}},YesPushDown:function(t){var e=h(t),n=[],i=r.internal.getFont(t.fontName,t.fontStyle).id,o=r.__private__.encodeColorString(t.color),a=x(t,t.caption);return n.push("0.749023 g"),n.push("0 0 "+s(Y.internal.getWidth(t))+" "+s(Y.internal.getHeight(t))+" re"),n.push("f"),n.push("BMC"),n.push("q"),n.push("0 0 1 rg"),n.push("/"+i+" "+s(a.fontSize)+" Tf "+o),n.push("BT"),n.push(a.text),n.push("ET"),n.push("Q"),n.push("EMC"),e.stream=n.join("\n"),e},YesNormal:function(t){var e=h(t),n=r.internal.getFont(t.fontName,t.fontStyle).id,i=r.__private__.encodeColorString(t.color),o=[],a=Y.internal.getHeight(t),l=Y.internal.getWidth(t),c=x(t,t.caption);return o.push("1 g"),o.push("0 0 "+s(l)+" "+s(a)+" re"),o.push("f"),o.push("q"),o.push("0 0 1 rg"),o.push("0 0 "+s(l-1)+" "+s(a-1)+" re"),o.push("W"),o.push("n"),o.push("0 g"),o.push("BT"),o.push("/"+n+" "+s(c.fontSize)+" Tf "+i),o.push(c.text),o.push("ET"),o.push("Q"),e.stream=o.join("\n"),e},OffPushDown:function(t){var e=h(t),n=[];return n.push("0.749023 g"),n.push("0 0 "+s(Y.internal.getWidth(t))+" "+s(Y.internal.getHeight(t))+" re"),n.push("f"),e.stream=n.join("\n"),e}},RadioButton:{Circle:{createAppearanceStream:function(t){var e={D:{Off:Y.RadioButton.Circle.OffPushDown},N:{}};return e.N[t]=Y.RadioButton.Circle.YesNormal,e.D[t]=Y.RadioButton.Circle.YesPushDown,e},getCA:function(){return"l"},YesNormal:function(t){var e=h(t),n=[],r=Y.internal.getWidth(t)<=Y.internal.getHeight(t)?Y.internal.getWidth(t)/4:Y.internal.getHeight(t)/4;r=Number((.9*r).toFixed(5));var i=Y.internal.Bezier_C,o=Number((r*i).toFixed(5));return n.push("q"),n.push("1 0 0 1 "+l(Y.internal.getWidth(t)/2)+" "+l(Y.internal.getHeight(t)/2)+" cm"),n.push(r+" 0 m"),n.push(r+" "+o+" "+o+" "+r+" 0 "+r+" c"),n.push("-"+o+" "+r+" -"+r+" "+o+" -"+r+" 0 c"),n.push("-"+r+" -"+o+" -"+o+" -"+r+" 0 -"+r+" c"),n.push(o+" -"+r+" "+r+" -"+o+" "+r+" 0 c"),n.push("f"),n.push("Q"),e.stream=n.join("\n"),e},YesPushDown:function(t){var e=h(t),n=[],r=Y.internal.getWidth(t)<=Y.internal.getHeight(t)?Y.internal.getWidth(t)/4:Y.internal.getHeight(t)/4,i=(r=Number((.9*r).toFixed(5)),Number((2*r).toFixed(5))),o=Number((i*Y.internal.Bezier_C).toFixed(5)),a=Number((r*Y.internal.Bezier_C).toFixed(5));return n.push("0.749023 g"),n.push("q"),n.push("1 0 0 1 "+l(Y.internal.getWidth(t)/2)+" "+l(Y.internal.getHeight(t)/2)+" cm"),n.push(i+" 0 m"),n.push(i+" "+o+" "+o+" "+i+" 0 "+i+" c"),n.push("-"+o+" "+i+" -"+i+" "+o+" -"+i+" 0 c"),n.push("-"+i+" -"+o+" -"+o+" -"+i+" 0 -"+i+" c"),n.push(o+" -"+i+" "+i+" -"+o+" "+i+" 0 c"),n.push("f"),n.push("Q"),n.push("0 g"),n.push("q"),n.push("1 0 0 1 "+l(Y.internal.getWidth(t)/2)+" "+l(Y.internal.getHeight(t)/2)+" cm"),n.push(r+" 0 m"),n.push(r+" "+a+" "+a+" "+r+" 0 "+r+" c"),n.push("-"+a+" "+r+" -"+r+" "+a+" -"+r+" 0 c"),n.push("-"+r+" -"+a+" -"+a+" -"+r+" 0 -"+r+" c"),n.push(a+" -"+r+" "+r+" -"+a+" "+r+" 0 c"),n.push("f"),n.push("Q"),e.stream=n.join("\n"),e},OffPushDown:function(t){var e=h(t),n=[],r=Y.internal.getWidth(t)<=Y.internal.getHeight(t)?Y.internal.getWidth(t)/4:Y.internal.getHeight(t)/4,i=(r=Number((.9*r).toFixed(5)),Number((2*r).toFixed(5))),o=Number((i*Y.internal.Bezier_C).toFixed(5));return n.push("0.749023 g"),n.push("q"),n.push("1 0 0 1 "+l(Y.internal.getWidth(t)/2)+" "+l(Y.internal.getHeight(t)/2)+" cm"),n.push(i+" 0 m"),n.push(i+" "+o+" "+o+" "+i+" 0 "+i+" c"),n.push("-"+o+" "+i+" -"+i+" "+o+" -"+i+" 0 c"),n.push("-"+i+" -"+o+" -"+o+" -"+i+" 0 -"+i+" c"),n.push(o+" -"+i+" "+i+" -"+o+" "+i+" 0 c"),n.push("f"),n.push("Q"),e.stream=n.join("\n"),e}},Cross:{createAppearanceStream:function(t){var e={D:{Off:Y.RadioButton.Cross.OffPushDown},N:{}};return e.N[t]=Y.RadioButton.Cross.YesNormal,e.D[t]=Y.RadioButton.Cross.YesPushDown,e},getCA:function(){return"8"},YesNormal:function(t){var e=h(t),n=[],r=Y.internal.calculateCross(t);return n.push("q"),n.push("1 1 "+s(Y.internal.getWidth(t)-2)+" "+s(Y.internal.getHeight(t)-2)+" re"),n.push("W"),n.push("n"),n.push(s(r.x1.x)+" "+s(r.x1.y)+" m"),n.push(s(r.x2.x)+" "+s(r.x2.y)+" l"),n.push(s(r.x4.x)+" "+s(r.x4.y)+" m"),n.push(s(r.x3.x)+" "+s(r.x3.y)+" l"),n.push("s"),n.push("Q"),e.stream=n.join("\n"),e},YesPushDown:function(t){var e=h(t),n=Y.internal.calculateCross(t),r=[];return r.push("0.749023 g"),r.push("0 0 "+s(Y.internal.getWidth(t))+" "+s(Y.internal.getHeight(t))+" re"),r.push("f"),r.push("q"),r.push("1 1 "+s(Y.internal.getWidth(t)-2)+" "+s(Y.internal.getHeight(t)-2)+" re"),r.push("W"),r.push("n"),r.push(s(n.x1.x)+" "+s(n.x1.y)+" m"),r.push(s(n.x2.x)+" "+s(n.x2.y)+" l"),r.push(s(n.x4.x)+" "+s(n.x4.y)+" m"),r.push(s(n.x3.x)+" "+s(n.x3.y)+" l"),r.push("s"),r.push("Q"),e.stream=r.join("\n"),e},OffPushDown:function(t){var e=h(t),n=[];return n.push("0.749023 g"),n.push("0 0 "+s(Y.internal.getWidth(t))+" "+s(Y.internal.getHeight(t))+" re"),n.push("f"),e.stream=n.join("\n"),e}}},createDefaultAppearanceStream:function(t){var e=r.internal.getFont(t.fontName,t.fontStyle).id,n=r.__private__.encodeColorString(t.color);return"/"+e+" "+t.fontSize+" Tf "+n}};Y.internal={Bezier_C:.551915024494,calculateCross:function(t){var e=Y.internal.getWidth(t),n=Y.internal.getHeight(t),r=Math.min(e,n);return{x1:{x:(e-r)/2,y:(n-r)/2+r},x2:{x:(e-r)/2+r,y:(n-r)/2},x3:{x:(e-r)/2,y:(n-r)/2},x4:{x:(e-r)/2+r,y:(n-r)/2+r}}}},Y.internal.getWidth=function(e){var n=0;return"object"===t(e)&&(n=u(e.Rect[2])),n},Y.internal.getHeight=function(e){var n=0;return"object"===t(e)&&(n=u(e.Rect[3])),n};var J=e.addField=function(t){if(P.call(this),!(t instanceof R))throw new Error("Invalid argument passed to jsPDF.addField.");return function(t){r.internal.acroformPlugin.printedOut&&(r.internal.acroformPlugin.printedOut=!1,r.internal.acroformPlugin.acroFormDictionaryRoot=null),r.internal.acroformPlugin.acroFormDictionaryRoot||P.call(r),r.internal.acroformPlugin.acroFormDictionaryRoot.Fields.push(t)}.call(this,t),t.page=r.internal.getCurrentPageInfo().pageNumber,this};e.addButton=function(t){if(t instanceof U==0)throw new Error("Invalid argument passed to jsPDF.addButton.");return J.call(this,t)},e.addTextField=function(t){if(t instanceof W==0)throw new Error("Invalid argument passed to jsPDF.addTextField.");return J.call(this,t)},e.addChoiceField=function(t){if(t instanceof B==0)throw new Error("Invalid argument passed to jsPDF.addChoiceField.");return J.call(this,t)},"object"==t(n)&&void 0===n.ChoiceField&&void 0===n.ListBox&&void 0===n.ComboBox&&void 0===n.EditBox&&void 0===n.Button&&void 0===n.PushButton&&void 0===n.RadioButton&&void 0===n.CheckBox&&void 0===n.TextField&&void 0===n.PasswordField?(n.ChoiceField=B,n.ListBox=M,n.ComboBox=D,n.EditBox=q,n.Button=U,n.PushButton=z,n.RadioButton=H,n.CheckBox=V,n.TextField=W,n.PasswordField=G,n.AcroForm={Appearance:Y}):console.warn("AcroForm-Classes are not populated into global-namespace, because the class-Names exist already."),e.AcroFormChoiceField=B,e.AcroFormListBox=M,e.AcroFormComboBox=D,e.AcroFormEditBox=q,e.AcroFormButton=U,e.AcroFormPushButton=z,e.AcroFormRadioButton=H,e.AcroFormCheckBox=V,e.AcroFormTextField=W,e.AcroFormPasswordField=G,e.AcroFormAppearance=Y,e.AcroForm={ChoiceField:B,ListBox:M,ComboBox:D,EditBox:q,Button:U,PushButton:z,RadioButton:H,CheckBox:V,TextField:W,PasswordField:G,Appearance:Y}})((window.tmp=dt).API,"undefined"!=typeof window&&window||"undefined"!=typeof global&&global),function(e){var n="addImage_",r={PNG:[[137,80,78,71]],TIFF:[[77,77,0,42],[73,73,42,0]],JPEG:[[255,216,255,224,void 0,void 0,74,70,73,70,0],[255,216,255,225,void 0,void 0,69,120,105,102,0,0]],JPEG2000:[[0,0,0,12,106,80,32,32]],GIF87a:[[71,73,70,56,55,97]],GIF89a:[[71,73,70,56,57,97]],BMP:[[66,77],[66,65],[67,73],[67,80],[73,67],[80,84]]},i=e.getImageFileTypeByImageData=function(t,n){var i,o;n=n||"UNKNOWN";var a,s,l,c="UNKNOWN";for(l in e.isArrayBufferView(t)&&(t=e.arrayBufferToBinaryString(t)),r)for(a=r[l],i=0;i<a.length;i+=1){for(s=!0,o=0;o<a[i].length;o+=1)if(void 0!==a[i][o]&&a[i][o]!==t.charCodeAt(o)){s=!1;break}if(!0===s){c=l;break}}return"UNKNOWN"===c&&"UNKNOWN"!==n&&(console.warn('FileType of Image not recognized. Processing image as "'+n+'".'),c=n),c},o=function t(e){for(var n=this.internal.newObject(),r=this.internal.write,i=this.internal.putStream,o=(0,this.internal.getFilters)();-1!==o.indexOf("FlateEncode");)o.splice(o.indexOf("FlateEncode"),1);e.n=n;var a=[];if(a.push({key:"Type",value:"/XObject"}),a.push({key:"Subtype",value:"/Image"}),a.push({key:"Width",value:e.w}),a.push({key:"Height",value:e.h}),e.cs===this.color_spaces.INDEXED?a.push({key:"ColorSpace",value:"[/Indexed /DeviceRGB "+(e.pal.length/3-1)+" "+("smask"in e?n+2:n+1)+" 0 R]"}):(a.push({key:"ColorSpace",value:"/"+e.cs}),e.cs===this.color_spaces.DEVICE_CMYK&&a.push({key:"Decode",value:"[1 0 1 0 1 0 1 0]"})),a.push({key:"BitsPerComponent",value:e.bpc}),"dp"in e&&a.push({key:"DecodeParms",value:"<<"+e.dp+">>"}),"trns"in e&&e.trns.constructor==Array){for(var s="",l=0,c=e.trns.length;l<c;l++)s+=e.trns[l]+" "+e.trns[l]+" ";a.push({key:"Mask",value:"["+s+"]"})}"smask"in e&&a.push({key:"SMask",value:n+1+" 0 R"});var u=void 0!==e.f?["/"+e.f]:void 0;if(i({data:e.data,additionalKeyValues:a,alreadyAppliedFilters:u}),r("endobj"),"smask"in e){var f="/Predictor "+e.p+" /Colors 1 /BitsPerComponent "+e.bpc+" /Columns "+e.w,h={w:e.w,h:e.h,cs:"DeviceGray",bpc:e.bpc,dp:f,data:e.smask};"f"in e&&(h.f=e.f),t.call(this,h)}e.cs===this.color_spaces.INDEXED&&(this.internal.newObject(),i({data:this.arrayBufferToBinaryString(new Uint8Array(e.pal))}),r("endobj"))},a=function(){var t=this.internal.collections[n+"images"];for(var e in t)o.call(this,t[e])},s=function(){var t,e=this.internal.collections[n+"images"],r=this.internal.write;for(var i in e)r("/I"+(t=e[i]).i,t.n,"0","R")},l=function(t){return"function"==typeof e["process"+t.toUpperCase()]},c=function(e){return"object"===t(e)&&1===e.nodeType},u=function(t,n){if("IMG"===t.nodeName&&t.hasAttribute("src")){var r=""+t.getAttribute("src");if(0===r.indexOf("data:image/"))return unescape(r)+;var i=e.loadFile(r);if(void 0!==i)return btoa(i)}if("CANVAS"===t.nodeName){var o=t;return t.toDataURL("image/jpeg",1)}(o=document.createElement("canvas")).width=t.clientWidth||t.width,o.height=t.clientHeight||t.height;var a=o.getContext("2d");if(!a)throw"addImage requires canvas to be supported by browser.";return a.drawImage(t,0,0,o.width,o.height),o.toDataURL("png"==(""+n).toLowerCase()?"image/png":"image/jpeg")},f=function(t,e){var n;if(e)for(var r in e)if(t===e[r].alias){n=e[r];break}return n};e.color_spaces={DEVICE_RGB:"DeviceRGB",DEVICE_GRAY:"DeviceGray",DEVICE_CMYK:"DeviceCMYK",CAL_GREY:"CalGray",CAL_RGB:"CalRGB",LAB:"Lab",ICC_BASED:"ICCBased",INDEXED:"Indexed",PATTERN:"Pattern",SEPARATION:"Separation",DEVICE_N:"DeviceN"},e.decode={DCT_DECODE:"DCTDecode",FLATE_DECODE:"FlateDecode",LZW_DECODE:"LZWDecode",JPX_DECODE:"JPXDecode",JBIG2_DECODE:"JBIG2Decode",ASCII85_DECODE:"ASCII85Decode",ASCII_HEX_DECODE:"ASCIIHexDecode",RUN_LENGTH_DECODE:"RunLengthDecode",CCITT_FAX_DECODE:"CCITTFaxDecode"},e.image_compression={NONE:"NONE",FAST:"FAST",MEDIUM:"MEDIUM",SLOW:"SLOW"},e.sHashCode=function(t){var e,n=0;if(0===(t=t||"").length)return n;for(e=0;e<t.length;e++)n=(n<<5)-n+t.charCodeAt(e),n|=0;return n},e.isString=function(t){return"string"==typeof t},e.validateStringAsBase64=function(t){(t=t||"").toString().trim();var e=!0;return 0===t.length&&(e=!1),t.length%4!=0&&(e=!1),!1===/^[A-Za-z0-9+\/]+$/.test(t.substr(0,t.length-2))&&(e=!1),!1===/^[A-Za-z0-9\/][A-Za-z0-9+\/]|[A-Za-z0-9+\/]=|==$/.test(t.substr(-2))&&(e=!1),e},e.extractInfoFromBase64DataURI=function(t){return/^data:([\w]+?\/([\w]+?));\S*;*base64,(.+)$/g.exec(t)},e.extractImageFromDataUrl=function(t){var e=(t=t||"").split("base64,"),n=null;if(2===e.length){var r=/^data:(\w*\/\w*);*(charset=[\w=-]*)*;*$/.exec(e[0]);Array.isArray(r)&&(n={mimeType:r[1],charset:r[2],data:e[1]})}return n},e.supportsArrayBuffer=function(){return"undefined"!=typeof ArrayBuffer&&"undefined"!=typeof Uint8Array},e.isArrayBuffer=function(t){return!!this.supportsArrayBuffer()&&t instanceof ArrayBuffer},e.isArrayBufferView=function(t){return!!this.supportsArrayBuffer()&&"undefined"!=typeof Uint32Array&&(t instanceof Int8Array||t instanceof Uint8Array||"undefined"!=typeof Uint8ClampedArray&&t instanceof Uint8ClampedArray||t instanceof Int16Array||t instanceof Uint16Array||t instanceof Int32Array||t instanceof Uint32Array||t instanceof Float32Array||t instanceof Float64Array)},e.binaryStringToUint8Array=function(t){for(var e=t.length,n=new Uint8Array(e),r=0;r<e;r++)n[r]=t.charCodeAt(r);return n},e.arrayBufferToBinaryString=function(t){if("function"==typeof atob)return atob(this.arrayBufferToBase64(t))},e.arrayBufferToBase64=function(t){for(var e,n="",r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",i=new Uint8Array(t),o=i.byteLength,a=o%3,s=o-a,l=0;l<s;l+=3)n+=r[(16515072&(e=i[l]<<16|i[l+1]<<8|i[l+2]))>>18]+r[(258048&e)>>12]+r[(4032&e)>>6]+r[63&e];return 1==a?n+=r[(252&(e=i[s]))>>2]+r[(3&e)<<4]+"==":2==a&&(n+=r[(64512&(e=i[s]<<8|i[s+1]))>>10]+r[(1008&e)>>4]+r[(15&e)<<2]+"="),n},e.createImageInfo=function(t,e,n,r,i,o,a,s,l,c,u,f,h){var d={alias:s,w:e,h:n,cs:r,bpc:i,i:a,data:t};return o&&(d.f=o),l&&(d.dp=l),c&&(d.trns=c),u&&(d.pal=u),f&&(d.smask=f),h&&(d.p=h),d},e.addImage=function(r,i,o,h,d,p,g,m,v){var y="";if("string"!=typeof i){var b=p;p=d,d=h,h=o,o=i,i=b}if("object"===t(r)&&!c(r)&&"imageData"in r){var w=r;r=w.imageData,i=w.format||i||"UNKNOWN",o=w.x||o||0,h=w.y||h||0,d=w.w||d,p=w.h||p,g=w.alias||g,m=w.compression||m,v=w.rotation||w.angle||v}var x=this.internal.getFilters();if(void 0===m&&-1!==x.indexOf("FlateEncode")&&(m="SLOW"),"string"==typeof r&&(r=unescape(r)),isNaN(o)||isNaN(h))throw console.error("jsPDF.addImage: Invalid coordinates",arguments),new Error("Invalid coordinates passed to jsPDF.addImage");var S,A,N,L,k,C,O,_=function(){var t=this.internal.collections[n+"images"];return t||(this.internal.collections[n+"images"]=t={},this.internal.events.subscribe("putResources",a),this.internal.events.subscribe("putXobjectDict",s)),t}.call(this);if(!((S=f(r,_))||(c(r)&&(r=u(r,i)),(null==(O=g)||0===O.length)&&(g="string"==typeof(C=r)?e.sHashCode(C):e.isArrayBufferView(C)?e.sHashCode(e.arrayBufferToBinaryString(C)):null),S=f(g,_)))){if(this.isString(r)&&(""!==(y=this.convertStringToImageData(r))?r=y:void 0!==(y=e.loadFile(r))&&(r=y)),i=this.getImageFileTypeByImageData(r,i),!l(i))throw new Error("addImage does not support files of type '"+i+"', please ensure that a plugin for '"+i+"' support is added.");if(this.supportsArrayBuffer()&&(r instanceof Uint8Array||(A=r,r=this.binaryStringToUint8Array(r))),!(S=this["process"+i.toUpperCase()](r,(k=0,(L=_)&&(k=Object.keys?Object.keys(L).length:function(t){var e=0;for(var n in t)t.hasOwnProperty(n)&&e++;return e}(L)),k),g,((N=m)&&"string"==typeof N&&(N=N.toUpperCase()),N in e.image_compression?N:e.image_compression.NONE),A)))throw new Error("An unknown error occurred whilst processing the image")}return function(t,e,n,r,i,o,a,s){var l=function(t,e,n){return t||e||(e=t=-96),t<0&&(t=-1*n.w*72/t/this.internal.scaleFactor),e<0&&(e=-1*n.h*72/e/this.internal.scaleFactor),0===t&&(t=e*n.w/n.h),0===e&&(e=t*n.h/n.w),[t,e]}.call(this,n,r,i),c=this.internal.getCoordinateString,u=this.internal.getVerticalCoordinateString;if(n=l[0],r=l[1],a[o]=i,s){s*=Math.PI/180;var f=Math.cos(s),h=Math.sin(s),d=function(t){return t.toFixed(4)},p=[d(f),d(h),d(-1*h),d(f),0,0,"cm"]}this.internal.write("q"),s?(this.internal.write([1,"0","0",1,c(t),u(e+r),"cm"].join(" ")),this.internal.write(p.join(" ")),this.internal.write([c(n),"0","0",c(r),"0","0","cm"].join(" "))):this.internal.write([c(n),"0","0",c(r),c(t),u(e+r),"cm"].join(" ")),this.internal.write("/I"+i.i+" Do"),this.internal.write("Q")}.call(this,o,h,d,p,S,S.i,_,v),this},e.convertStringToImageData=function(t){var n,r="";if(this.isString(t)){var i;n=null!==(i=this.extractImageFromDataUrl(t))?i.data:t;try{r=atob(n)}catch(t){throw e.validateStringAsBase64(n)?new Error("atob-Error in jsPDF.convertStringToImageData "+t.message):new Error("Supplied Data is not a valid base64-String jsPDF.convertStringToImageData ")}}return r};var h=function(t,e){return t.subarray(e,e+5)};e.processJPEG=function(t,e,n,r,o,a){var s,l=this.decode.DCT_DECODE;if(!this.isString(t)&&!this.isArrayBuffer(t)&&!this.isArrayBufferView(t))return null;if(this.isString(t)&&(s=function(t){var e;if("JPEG"!==i(t))throw new Error("getJpegSize requires a binary string jpeg file");for(var n=256*t.charCodeAt(4)+t.charCodeAt(5),r=4,o=t.length;r<o;){if(r+=n,255!==t.charCodeAt(r))throw new Error("getJpegSize could not find the size of the image");if(192===t.charCodeAt(r+1)||193===t.charCodeAt(r+1)||194===t.charCodeAt(r+1)||195===t.charCodeAt(r+1)||196===t.charCodeAt(r+1)||197===t.charCodeAt(r+1)||198===t.charCodeAt(r+1)||199===t.charCodeAt(r+1))return e=256*t.charCodeAt(r+5)+t.charCodeAt(r+6),[256*t.charCodeAt(r+7)+t.charCodeAt(r+8),e,t.charCodeAt(r+9)];r+=2,n=256*t.charCodeAt(r)+t.charCodeAt(r+1)}}(t)),this.isArrayBuffer(t)&&(t=new Uint8Array(t)),this.isArrayBufferView(t)&&(s=function(t){if(65496!=(t[0]<<8|t[1]))throw new Error("Supplied data is not a JPEG");for(var e,n=t.length,r=(t[4]<<8)+t[5],i=4;i<n;){if(r=((e=h(t,i+=r))[2]<<8)+e[3],(192===e[1]||194===e[1])&&255===e[0]&&7<r)return{width:((e=h(t,i+5))[2]<<8)+e[3],height:(e[0]<<8)+e[1],numcomponents:e[4]};i+=2}throw new Error("getJpegSizeFromBytes could not find the size of the image")}(t),t=o||this.arrayBufferToBinaryString(t)),void 0===a)switch(s.numcomponents){case 1:a=this.color_spaces.DEVICE_GRAY;break;case 4:a=this.color_spaces.DEVICE_CMYK;break;default:case 3:a=this.color_spaces.DEVICE_RGB}return this.createImageInfo(t,s.width,s.height,a,8,l,e,n)},e.processJPG=function(){return this.processJPEG.apply(this,arguments)},e.getImageProperties=function(t){var n,r,i="";if(c(t)&&(t=u(t)),this.isString(t)&&(""!==(i=this.convertStringToImageData(t))?t=i:void 0!==(i=e.loadFile(t))&&(t=i)),r=this.getImageFileTypeByImageData(t),!l(r))throw new Error("addImage does not support files of type '"+r+"', please ensure that a plugin for '"+r+"' support is added.");if(this.supportsArrayBuffer()&&(t instanceof Uint8Array||(t=this.binaryStringToUint8Array(t))),!(n=this["process"+r.toUpperCase()](t)))throw new Error("An unknown error occurred whilst processing the image");return{fileType:r,width:n.w,height:n.h,colorSpace:n.cs,compressionMode:n.f,bitsPerComponent:n.bpc}}}(dt.API),o=dt.API,dt.API.events.push(["addPage",function(t){this.internal.getPageInfo(t.pageNumber).pageContext.annotations=[]}]),o.events.push(["putPage",function(t){for(var e=this.internal.getPageInfoByObjId(t.objId),n=t.pageContext.annotations,r=function(t){if(void 0!==t&&""!=t)return!0},i=!1,o=0;o<n.length&&!i;o++)switch((l=n[o]).type){case"link":if(r(l.options.url)||r(l.options.pageNumber)){i=!0;break}case"reference":case"text":case"freetext":i=!0}if(0!=i){this.internal.write("/Annots ["),this.internal.pageSize.height;var a=this.internal.getCoordinateString,s=this.internal.getVerticalCoordinateString;for(o=0;o<n.length;o++){var l;switch((l=n[o]).type){case"reference":this.internal.write(" "+l.object.objId+" 0 R ");break;case"text":var c=this.internal.newAdditionalObject(),u=this.internal.newAdditionalObject(),f=l.title||"Note";m="<</Type /Annot /Subtype /Text "+(d="/Rect ["+a(l.bounds.x)+" "+s(l.bounds.y+l.bounds.h)+" "+a(l.bounds.x+l.bounds.w)+" "+s(l.bounds.y)+"] ")+"/Contents ("+l.contents+")",m+=" /Popup "+u.objId+" 0 R",m+=" /P "+e.objId+" 0 R",m+=" /T ("+f+") >>",c.content=m;var h=c.objId+" 0 R";m="<</Type /Annot /Subtype /Popup "+(d="/Rect ["+a(l.bounds.x+30)+" "+s(l.bounds.y+l.bounds.h)+" "+a(l.bounds.x+l.bounds.w+30)+" "+s(l.bounds.y)+"] ")+" /Parent "+h,l.open&&(m+=" /Open true"),m+=" >>",u.content=m,this.internal.write(c.objId,"0 R",u.objId,"0 R");break;case"freetext":var d="/Rect ["+a(l.bounds.x)+" "+s(l.bounds.y)+" "+a(l.bounds.x+l.bounds.w)+" "+s(l.bounds.y+l.bounds.h)+"] ",p=l.color||"#000000";m="<</Type /Annot /Subtype /FreeText "+d+"/Contents ("+l.contents+")",m+=" /DS(font: Helvetica,sans-serif 12.0pt; text-align:left; color:#"+p+")",m+=" /Border [0 0 0]",m+=" >>",this.internal.write(m);break;case"link":if(l.options.name){var g=this.annotations._nameMap[l.options.name];l.options.pageNumber=g.page,l.options.top=g.y}else l.options.top||(l.options.top=0);d="/Rect ["+a(l.x)+" "+s(l.y)+" "+a(l.x+l.w)+" "+s(l.y+l.h)+"] ";var m="";if(l.options.url)m="<</Type /Annot /Subtype /Link "+d+"/Border [0 0 0] /A <</S /URI /URI ("+l.options.url+") >>";else if(l.options.pageNumber)switch(m="<</Type /Annot /Subtype /Link "+d+"/Border [0 0 0] /Dest ["+this.internal.getPageInfo(l.options.pageNumber).objId+" 0 R",l.options.magFactor=l.options.magFactor||"XYZ",l.options.magFactor){case"Fit":m+=" /Fit]";break;case"FitH":m+=" /FitH "+l.options.top+"]";break;case"FitV":l.options.left=l.options.left||0,m+=" /FitV "+l.options.left+"]";break;case"XYZ":default:var v=s(l.options.top);l.options.left=l.options.left||0,void 0===l.options.zoom&&(l.options.zoom=0),m+=" /XYZ "+l.options.left+" "+v+" "+l.options.zoom+"]"}""!=m&&(m+=" >>",this.internal.write(m))}}this.internal.write("]")}}]),o.createAnnotation=function(t){var e=this.internal.getCurrentPageInfo();switch(t.type){case"link":this.link(t.bounds.x,t.bounds.y,t.bounds.w,t.bounds.h,t);break;case"text":case"freetext":e.pageContext.annotations.push(t)}},o.link=function(t,e,n,r,i){this.internal.getCurrentPageInfo().pageContext.annotations.push({x:t,y:e,w:n,h:r,options:i,type:"link"})},o.textWithLink=function(t,e,n,r){var i=this.getTextWidth(t),o=this.internal.getLineHeight()/this.internal.scaleFactor;return this.text(t,e,n),n+=.2*o,this.link(e,n-o,i,o,r),i},o.getTextWidth=function(t){var e=this.internal.getFontSize();return this.getStringUnitWidth(t)*e/this.internal.scaleFactor},function(t){var e={1569:[65152],1570:[65153,65154],1571:[65155,65156],1572:[65157,65158],1573:[65159,65160],1574:[65161,65162,65163,65164],1575:[65165,65166],1576:[65167,65168,65169,65170],1577:[65171,65172],1578:[65173,65174,65175,65176],1579:[65177,65178,65179,65180],1580:[65181,65182,65183,65184],1581:[65185,65186,65187,65188],1582:[65189,65190,65191,65192],1583:[65193,65194],1584:[65195,65196],1585:[65197,65198],1586:[65199,65200],1587:[65201,65202,65203,65204],1588:[65205,65206,65207,65208],1589:[65209,65210,65211,65212],1590:[65213,65214,65215,65216],1591:[65217,65218,65219,65220],1592:[65221,65222,65223,65224],1593:[65225,65226,65227,65228],1594:[65229,65230,65231,65232],1601:[65233,65234,65235,65236],1602:[65237,65238,65239,65240],1603:[65241,65242,65243,65244],1604:[65245,65246,65247,65248],1605:[65249,65250,65251,65252],1606:[65253,65254,65255,65256],1607:[65257,65258,65259,65260],1608:[65261,65262],1609:[65263,65264,64488,64489],1610:[65265,65266,65267,65268],1649:[64336,64337],1655:[64477],1657:[64358,64359,64360,64361],1658:[64350,64351,64352,64353],1659:[64338,64339,64340,64341],1662:[64342,64343,64344,64345],1663:[64354,64355,64356,64357],1664:[64346,64347,64348,64349],1667:[64374,64375,64376,64377],1668:[64370,64371,64372,64373],1670:[64378,64379,64380,64381],1671:[64382,64383,64384,64385],1672:[64392,64393],1676:[64388,64389],1677:[64386,64387],1678:[64390,64391],1681:[64396,64397],1688:[64394,64395],1700:[64362,64363,64364,64365],1702:[64366,64367,64368,64369],1705:[64398,64399,64400,64401],1709:[64467,64468,64469,64470],1711:[64402,64403,64404,64405],1713:[64410,64411,64412,64413],1715:[64406,64407,64408,64409],1722:[64414,64415],1723:[64416,64417,64418,64419],1726:[64426,64427,64428,64429],1728:[64420,64421],1729:[64422,64423,64424,64425],1733:[64480,64481],1734:[64473,64474],1735:[64471,64472],1736:[64475,64476],1737:[64482,64483],1739:[64478,64479],1740:[64508,64509,64510,64511],1744:[64484,64485,64486,64487],1746:[64430,64431],1747:[64432,64433]},n={65247:{65154:65269,65156:65271,65160:65273,65166:65275},65248:{65154:65270,65156:65272,65160:65274,65166:65276},65165:{65247:{65248:{65258:65010}}},1617:{1612:64606,1613:64607,1614:64608,1615:64609,1616:64610}},r={1612:64606,1613:64607,1614:64608,1615:64609,1616:64610},i=[1570,1571,1573,1575];t.__arabicParser__={};var o=t.__arabicParser__.isInArabicSubstitutionA=function(t){return void 0!==e[t.charCodeAt(0)]},a=t.__arabicParser__.isArabicLetter=function(t){return"string"==typeof t&&/^[\u0600-\u06FF\u0750-\u077F\u08A0-\u08FF\uFB50-\uFDFF\uFE70-\uFEFF]+$/.test(t)},s=t.__arabicParser__.isArabicEndLetter=function(t){return a(t)&&o(t)&&e[t.charCodeAt(0)].length<=2},l=t.__arabicParser__.isArabicAlfLetter=function(t){return a(t)&&0<=i.indexOf(t.charCodeAt(0))},c=(t.__arabicParser__.arabicLetterHasIsolatedForm=function(t){return a(t)&&o(t)&&1<=e[t.charCodeAt(0)].length},t.__arabicParser__.arabicLetterHasFinalForm=function(t){return a(t)&&o(t)&&2<=e[t.charCodeAt(0)].length}),u=(t.__arabicParser__.arabicLetterHasInitialForm=function(t){return a(t)&&o(t)&&3<=e[t.charCodeAt(0)].length},t.__arabicParser__.arabicLetterHasMedialForm=function(t){return a(t)&&o(t)&&4==e[t.charCodeAt(0)].length}),f=t.__arabicParser__.resolveLigatures=function(t){var e=0,r=n,i=0,o="",a=0;for(e=0;e<t.length;e+=1)void 0!==r[t.charCodeAt(e)]?(a++,"number"==typeof(r=r[t.charCodeAt(e)])&&(i=-1!==(i=h(t.charAt(e),t.charAt(e-a),t.charAt(e+1)))?i:0,o+=String.fromCharCode(r),r=n,a=0),e===t.length-1&&(r=n,o+=t.charAt(e-(a-1)),e-=a-1,a=0)):(r=n,o+=t.charAt(e-a),e-=a,a=0);return o},h=(t.__arabicParser__.isArabicDiacritic=function(t){return void 0!==t&&void 0!==r[t.charCodeAt(0)]},t.__arabicParser__.getCorrectForm=function(t,e,n){return a(t)?!1===o(t)?-1:!c(t)||!a(e)&&!a(n)||!a(n)&&s(e)||s(t)&&!a(e)||s(t)&&l(e)||s(t)&&s(e)?0:u(t)&&a(e)&&!s(e)&&a(n)&&c(n)?3:s(t)||!a(n)?1:2:-1}),d=t.__arabicParser__.processArabic=t.processArabic=function(t){var n=0,r=0,i=0,o="",s="",l="",c=(t=t||"").split("\\s+"),u=[];for(n=0;n<c.length;n+=1){for(u.push(""),r=0;r<c[n].length;r+=1)o=c[n][r],s=c[n][r-1],l=c[n][r+1],a(o)?(i=h(o,s,l),u[n]+=-1!==i?String.fromCharCode(e[o.charCodeAt(0)][i]):o):u[n]+=o;u[n]=f(u[n])}return u.join(" ")};t.events.push(["preProcessText",function(t){var e=t.text,n=(t.x,t.y,t.options,t.mutex,[]);if("[object Array]"===Object.prototype.toString.call(e)){var r=0;for(n=[],r=0;r<e.length;r+=1)"[object Array]"===Object.prototype.toString.call(e[r])?n.push([d(e[r][0]),e[r][1],e[r][2]]):n.push([d(e[r])]);t.text=n}else t.text=d(e)}])}(dt.API),dt.API.autoPrint=function(t){var e;switch((t=t||{}).variant=t.variant||"non-conform",t.variant){case"javascript":this.addJS("print({});");break;case"non-conform":default:this.internal.events.subscribe("postPutResources",function(){e=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /Named"),this.internal.out("/Type /Action"),this.internal.out("/N /Print"),this.internal.out(">>"),this.internal.out("endobj")}),this.internal.events.subscribe("putCatalog",function(){this.internal.out("/OpenAction "+e+" 0 R")})}return this},a=dt.API,(s=function(){var t=void 0;Object.defineProperty(this,"pdf",{get:function(){return t},set:function(e){t=e}});var e=150;Object.defineProperty(this,"width",{get:function(){return e},set:function(t){e=isNaN(t)||!1===Number.isInteger(t)||t<0?150:t,this.getContext("2d").pageWrapXEnabled&&(this.getContext("2d").pageWrapX=e+1)}});var n=300;Object.defineProperty(this,"height",{get:function(){return n},set:function(t){n=isNaN(t)||!1===Number.isInteger(t)||t<0?300:t,this.getContext("2d").pageWrapYEnabled&&(this.getContext("2d").pageWrapY=n+1)}});var r=[];Object.defineProperty(this,"childNodes",{get:function(){return r},set:function(t){r=t}});var i={};Object.defineProperty(this,"style",{get:function(){return i},set:function(t){i=t}}),Object.defineProperty(this,"parentNode",{get:function(){return!1}})}).prototype.getContext=function(t,e){var n;if("2d"!==(t=t||"2d"))return null;for(n in e)this.pdf.context2d.hasOwnProperty(n)&&(this.pdf.context2d[n]=e[n]);return(this.pdf.context2d._canvas=this).pdf.context2d},s.prototype.toDataURL=function(){throw new Error("toDataURL is not implemented.")},a.events.push(["initialized",function(){this.canvas=new s,this.canvas.pdf=this}]),l=dt.API,u={x:void 0,y:void 0,w:void 0,h:void 0,ln:void 0},f=1,h=function(t,e,n,r,i){u={x:t,y:e,w:n,h:r,ln:i}},d=function(){return u},p={left:0,top:0,bottom:0},l.setHeaderFunction=function(t){c=t},l.getTextDimensions=function(t,e){var n=this.table_font_size||this.internal.getFontSize(),r=(this.internal.getFont().fontStyle,(e=e||{}).scaleFactor||this.internal.scaleFactor),i=0,o=0,a=0;if("string"==typeof t)0!=(i=this.getStringUnitWidth(t)*n)&&(o=1);else{if("[object Array]"!==Object.prototype.toString.call(t))throw new Error("getTextDimensions expects text-parameter to be of type String or an Array of Strings.");for(var s=0;s<t.length;s++)i<(a=this.getStringUnitWidth(t[s])*n)&&(i=a);0!==i&&(o=t.length)}return{w:i/=r,h:Math.max((o*n*this.getLineHeightFactor()-n*(this.getLineHeightFactor()-1))/r,0)}},l.cellAddPage=function(){var t=this.margins||p;this.addPage(),h(t.left,t.top,void 0,void 0),f+=1},l.cellInitialize=function(){u={x:void 0,y:void 0,w:void 0,h:void 0,ln:void 0},f=1},l.cell=function(t,e,n,r,i,o,a){var s=d(),l=!1;if(void 0!==s.ln)if(s.ln===o)t=s.x+s.w,e=s.y;else{var c=this.margins||p;s.y+s.h+r+13>=this.internal.pageSize.getHeight()-c.bottom&&(this.cellAddPage(),l=!0,this.printHeaders&&this.tableHeaderRow&&this.printHeaderRow(o,!0)),e=d().y+d().h,l&&(e=23)}if(void 0!==i[0])if(this.printingHeaderRow?this.rect(t,e,n,r,"FD"):this.rect(t,e,n,r),"right"===a){i instanceof Array||(i=[i]);for(var u=0;u<i.length;u++){var f=i[u],g=this.getStringUnitWidth(f)*this.internal.getFontSize()/this.internal.scaleFactor;this.text(f,t+n-g-3,e+this.internal.getLineHeight()*(u+1))}}else this.text(i,t+3,e+this.internal.getLineHeight());return h(t,e,n,r,o),this},l.arrayMax=function(t,e){var n,r,i,o=t[0];for(n=0,r=t.length;n<r;n+=1)i=t[n],e?-1===e(o,i)&&(o=i):o<i&&(o=i);return o},l.table=function(t,e,n,r,i){if(!n)throw"No data for PDF table";var o,a,s,c,h,d,g,m,v,y,b=[],w=[],x={},S={},A=[],N=[],L=!1,k=!0,C=12,O=p;if(O.width=this.internal.pageSize.getWidth(),i&&(!0===i.autoSize&&(L=!0),!1===i.printHeaders&&(k=!1),i.fontSize&&(C=i.fontSize),i.css&&void 0!==i.css["font-size"]&&(C=16*i.css["font-size"]),i.margins&&(O=i.margins)),this.lnMod=0,u={x:void 0,y:void 0,w:void 0,h:void 0,ln:void 0},f=1,this.printHeaders=k,this.margins=O,this.setFontSize(C),this.table_font_size=C,null==r)b=Object.keys(n[0]);else if(r[0]&&"string"!=typeof r[0])for(a=0,s=r.length;a<s;a+=1)o=r[a],b.push(o.name),w.push(o.prompt),S[o.name]=o.width*(19.049976/25.4);else b=r;if(L)for(y=function(t){return t[o]},a=0,s=b.length;a<s;a+=1){for(x[o=b[a]]=n.map(y),A.push(this.getTextDimensions(w[a]||o,{scaleFactor:1}).w),g=0,c=(d=x[o]).length;g<c;g+=1)h=d[g],A.push(this.getTextDimensions(h,{scaleFactor:1}).w);S[o]=l.arrayMax(A),A=[]}if(k){var _=this.calculateLineHeight(b,S,w.length?w:b);for(a=0,s=b.length;a<s;a+=1)o=b[a],N.push([t,e,S[o],_,String(w.length?w[a]:o)]);this.setTableHeaderRow(N),this.printHeaderRow(1,!1)}for(a=0,s=n.length;a<s;a+=1)for(m=n[a],_=this.calculateLineHeight(b,S,m),g=0,v=b.length;g<v;g+=1)o=b[g],this.cell(t,e,S[o],_,m[o],a+2,o.align);return this.lastCellPos=u,this.table_x=t,this.table_y=e,this},l.calculateLineHeight=function(t,e,n){for(var r,i=0,o=0;o<t.length;o++){n[r=t[o]]=this.splitTextToSize(String(n[r]),e[r]-3);var a=this.internal.getLineHeight()*n[r].length+3;i<a&&(i=a)}return i},l.setTableHeaderRow=function(t){this.tableHeaderRow=t},l.printHeaderRow=function(t,e){if(!this.tableHeaderRow)throw"Property tableHeaderRow does not exist.";var n,r,i,o;if(this.printingHeaderRow=!0,void 0!==c){var a=c(this,f);h(a[0],a[1],a[2],a[3],-1)}this.setFontStyle("bold");var s=[];for(i=0,o=this.tableHeaderRow.length;i<o;i+=1)this.setFillColor(200,200,200),n=this.tableHeaderRow[i],e&&(this.margins.top=13,n[1]=this.margins&&this.margins.top||0,s.push(n)),r=[].concat(n),this.cell.apply(this,r.concat(t));0<s.length&&this.setTableHeaderRow(s),this.setFontStyle("normal"),this.printingHeaderRow=!1},function(e,n){var r,i,o,a,s,l=function(t){return t=t||{},this.isStrokeTransparent=t.isStrokeTransparent||!1,this.strokeOpacity=t.strokeOpacity||1,this.strokeStyle=t.strokeStyle||"#000000",this.fillStyle=t.fillStyle||"#000000",this.isFillTransparent=t.isFillTransparent||!1,this.fillOpacity=t.fillOpacity||1,this.font=t.font||"10px sans-serif",this.textBaseline=t.textBaseline||"alphabetic",this.textAlign=t.textAlign||"left",this.lineWidth=t.lineWidth||1,this.lineJoin=t.lineJoin||"miter",this.lineCap=t.lineCap||"butt",this.path=t.path||[],this.transform=void 0!==t.transform?t.transform.clone():new F,this.globalCompositeOperation=t.globalCompositeOperation||"normal",this.globalAlpha=t.globalAlpha||1,this.clip_path=t.clip_path||[],this.currentPoint=t.currentPoint||new E,this.miterLimit=t.miterLimit||10,this.lastPoint=t.lastPoint||new E,this.ignoreClearRect="boolean"!=typeof t.ignoreClearRect||t.ignoreClearRect,this};e.events.push(["initialized",function(){this.context2d=new c(this),r=this.internal.f2,this.internal.f3,i=this.internal.getCoordinateString,o=this.internal.getVerticalCoordinateString,a=this.internal.getHorizontalCoordinate,s=this.internal.getVerticalCoordinate}]);var c=function(t){Object.defineProperty(this,"canvas",{get:function(){return{parentNode:!1,style:!1}}}),Object.defineProperty(this,"pdf",{get:function(){return t}});var e=!1;Object.defineProperty(this,"pageWrapXEnabled",{get:function(){return e},set:function(t){e=Boolean(t)}});var n=!1;Object.defineProperty(this,"pageWrapYEnabled",{get:function(){return n},set:function(t){n=Boolean(t)}});var r=0;Object.defineProperty(this,"posX",{get:function(){return r},set:function(t){isNaN(t)||(r=t)}});var i=0;Object.defineProperty(this,"posY",{get:function(){return i},set:function(t){isNaN(t)||(i=t)}});var o=!1;Object.defineProperty(this,"autoPaging",{get:function(){return o},set:function(t){o=Boolean(t)}});var a=0;Object.defineProperty(this,"lastBreak",{get:function(){return a},set:function(t){a=t}});var s=[];Object.defineProperty(this,"pageBreaks",{get:function(){return s},set:function(t){s=t}});var c=new l;Object.defineProperty(this,"ctx",{get:function(){return c},set:function(t){t instanceof l&&(c=t)}}),Object.defineProperty(this,"path",{get:function(){return c.path},set:function(t){c.path=t}});var f=[];Object.defineProperty(this,"ctxStack",{get:function(){return f},set:function(t){f=t}}),Object.defineProperty(this,"fillStyle",{get:function(){return this.ctx.fillStyle},set:function(t){var e;e=u(t),this.ctx.fillStyle=e.style,this.ctx.isFillTransparent=0===e.a,this.ctx.fillOpacity=e.a,this.pdf.setFillColor(e.r,e.g,e.b,{a:e.a}),this.pdf.setTextColor(e.r,e.g,e.b,{a:e.a})}}),Object.defineProperty(this,"strokeStyle",{get:function(){return this.ctx.strokeStyle},set:function(t){var e=u(t);this.ctx.strokeStyle=e.style,this.ctx.isStrokeTransparent=0===e.a,this.ctx.strokeOpacity=e.a,0===e.a?this.pdf.setDrawColor(255,255,255):(e.a,this.pdf.setDrawColor(e.r,e.g,e.b))}}),Object.defineProperty(this,"lineCap",{get:function(){return this.ctx.lineCap},set:function(t){-1!==["butt","round","square"].indexOf(t)&&(this.ctx.lineCap=t,this.pdf.setLineCap(t))}}),Object.defineProperty(this,"lineWidth",{get:function(){return this.ctx.lineWidth},set:function(t){isNaN(t)||(this.ctx.lineWidth=t,this.pdf.setLineWidth(t))}}),Object.defineProperty(this,"lineJoin",{get:function(){return this.ctx.lineJoin},set:function(t){-1!==["bevel","round","miter"].indexOf(t)&&(this.ctx.lineJoin=t,this.pdf.setLineJoin(t))}}),Object.defineProperty(this,"miterLimit",{get:function(){return this.ctx.miterLimit},set:function(t){isNaN(t)||(this.ctx.miterLimit=t,this.pdf.setMiterLimit(t))}}),Object.defineProperty(this,"textBaseline",{get:function(){return this.ctx.textBaseline},set:function(t){this.ctx.textBaseline=t}}),Object.defineProperty(this,"textAlign",{get:function(){return this.ctx.textAlign},set:function(t){-1!==["right","end","center","left","start"].indexOf(t)&&(this.ctx.textAlign=t)}}),Object.defineProperty(this,"font",{get:function(){return this.ctx.font},set:function(t){var e;if(this.ctx.font=t,null!==(e=/^\s*(?=(?:(?:[-a-z]+\s*){0,2}(italic|oblique))?)(?=(?:(?:[-a-z]+\s*){0,2}(small-caps))?)(?=(?:(?:[-a-z]+\s*){0,2}(bold(?:er)?|lighter|[1-9]00))?)(?:(?:normal|\1|\2|\3)\s*){0,3}((?:xx?-)?(?:small|large)|medium|smaller|larger|[.\d]+(?:\%|in|[cem]m|ex|p[ctx]))(?:\s*\/\s*(normal|[.\d]+(?:\%|in|[cem]m|ex|p[ctx])))?\s*([-_,\"\'\sa-z]+?)\s*$/i.exec(t))){var n=e[1],r=(e[2],e[3]),i=e[4],o=e[5],a=e[6];i="px"===o?Math.floor(parseFloat(i)):"em"===o?Math.floor(parseFloat(i)*this.pdf.getFontSize()):Math.floor(parseFloat(i)),this.pdf.setFontSize(i);var s="";("bold"===r||700<=parseInt(r,10)||"bold"===n)&&(s="bold"),"italic"===n&&(s+="italic"),0===s.length&&(s="normal");for(var l="",c=a.toLowerCase().replace(/"|'/g,"").split(/\s*,\s*/),u={arial:"Helvetica",verdana:"Helvetica",helvetica:"Helvetica","sans-serif":"Helvetica",fixed:"Courier",monospace:"Courier",terminal:"Courier",courier:"Courier",times:"Times",cursive:"Times",fantasy:"Times",serif:"Times"},f=0;f<c.length;f++){if(void 0!==this.pdf.internal.getFont(c[f],s,{noFallback:!0,disableWarning:!0})){l=c[f];break}if("bolditalic"===s&&void 0!==this.pdf.internal.getFont(c[f],"bold",{noFallback:!0,disableWarning:!0}))l=c[f],s="bold";else if(void 0!==this.pdf.internal.getFont(c[f],"normal",{noFallback:!0,disableWarning:!0})){l=c[f],s="normal";break}}if(""===l)for(f=0;f<c.length;f++)if(u[c[f]]){l=u[c[f]];break}l=""===l?"Times":l,this.pdf.setFont(l,s)}}}),Object.defineProperty(this,"globalCompositeOperation",{get:function(){return this.ctx.globalCompositeOperation},set:function(t){this.ctx.globalCompositeOperation=t}}),Object.defineProperty(this,"globalAlpha",{get:function(){return this.ctx.globalAlpha},set:function(t){this.ctx.globalAlpha=t}}),Object.defineProperty(this,"ignoreClearRect",{get:function(){return this.ctx.ignoreClearRect},set:function(t){this.ctx.ignoreClearRect=Boolean(t)}})};c.prototype.fill=function(){m.call(this,"fill",!1)},c.prototype.stroke=function(){m.call(this,"stroke",!1)},c.prototype.beginPath=function(){this.path=[{type:"begin"}]},c.prototype.moveTo=function(t,e){if(isNaN(t)||isNaN(e))throw console.error("jsPDF.context2d.moveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.moveTo");var n=this.ctx.transform.applyToPoint(new E(t,e));this.path.push({type:"mt",x:n.x,y:n.y}),this.ctx.lastPoint=new E(t,e)},c.prototype.closePath=function(){var e=new E(0,0),n=0;for(n=this.path.length-1;-1!==n;n--)if("begin"===this.path[n].type&&"object"===t(this.path[n+1])&&"number"==typeof this.path[n+1].x){e=new E(this.path[n+1].x,this.path[n+1].y),this.path.push({type:"lt",x:e.x,y:e.y});break}"object"===t(this.path[n+2])&&"number"==typeof this.path[n+2].x&&this.path.push(JSON.parse(JSON.stringify(this.path[n+2]))),this.path.push({type:"close"}),this.ctx.lastPoint=new E(e.x,e.y)},c.prototype.lineTo=function(t,e){if(isNaN(t)||isNaN(e))throw console.error("jsPDF.context2d.lineTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.lineTo");var n=this.ctx.transform.applyToPoint(new E(t,e));this.path.push({type:"lt",x:n.x,y:n.y}),this.ctx.lastPoint=new E(n.x,n.y)},c.prototype.clip=function(){this.ctx.clip_path=JSON.parse(JSON.stringify(this.path)),m.call(this,null,!0)},c.prototype.quadraticCurveTo=function(t,e,n,r){if(isNaN(n)||isNaN(r)||isNaN(t)||isNaN(e))throw console.error("jsPDF.context2d.quadraticCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.quadraticCurveTo");var i=this.ctx.transform.applyToPoint(new E(n,r)),o=this.ctx.transform.applyToPoint(new E(t,e));this.path.push({type:"qct",x1:o.x,y1:o.y,x:i.x,y:i.y}),this.ctx.lastPoint=new E(i.x,i.y)},c.prototype.bezierCurveTo=function(t,e,n,r,i,o){if(isNaN(i)||isNaN(o)||isNaN(t)||isNaN(e)||isNaN(n)||isNaN(r))throw console.error("jsPDF.context2d.bezierCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.bezierCurveTo");var a=this.ctx.transform.applyToPoint(new E(i,o)),s=this.ctx.transform.applyToPoint(new E(t,e)),l=this.ctx.transform.applyToPoint(new E(n,r));this.path.push({type:"bct",x1:s.x,y1:s.y,x2:l.x,y2:l.y,x:a.x,y:a.y}),this.ctx.lastPoint=new E(a.x,a.y)},c.prototype.arc=function(t,e,n,r,i,o){if(isNaN(t)||isNaN(e)||isNaN(n)||isNaN(r)||isNaN(i))throw console.error("jsPDF.context2d.arc: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.arc");if(o=Boolean(o),!this.ctx.transform.isIdentity){var a=this.ctx.transform.applyToPoint(new E(t,e));t=a.x,e=a.y;var s=this.ctx.transform.applyToPoint(new E(0,n)),l=this.ctx.transform.applyToPoint(new E(0,0));n=Math.sqrt(Math.pow(s.x-l.x,2)+Math.pow(s.y-l.y,2))}Math.abs(i-r)>=2*Math.PI&&(r=0,i=2*Math.PI),this.path.push({type:"arc",x:t,y:e,radius:n,startAngle:r,endAngle:i,counterclockwise:o})},c.prototype.arcTo=function(t,e,n,r,i){throw new Error("arcTo not implemented.")},c.prototype.rect=function(t,e,n,r){if(isNaN(t)||isNaN(e)||isNaN(n)||isNaN(r))throw console.error("jsPDF.context2d.rect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rect");this.moveTo(t,e),this.lineTo(t+n,e),this.lineTo(t+n,e+r),this.lineTo(t,e+r),this.lineTo(t,e),this.lineTo(t+n,e),this.lineTo(t,e)},c.prototype.fillRect=function(t,e,n,r){if(isNaN(t)||isNaN(e)||isNaN(n)||isNaN(r))throw console.error("jsPDF.context2d.fillRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillRect");if(!f.call(this)){var i={};"butt"!==this.lineCap&&(i.lineCap=this.lineCap,this.lineCap="butt"),"miter"!==this.lineJoin&&(i.lineJoin=this.lineJoin,this.lineJoin="miter"),this.beginPath(),this.rect(t,e,n,r),this.fill(),i.hasOwnProperty("lineCap")&&(this.lineCap=i.lineCap),i.hasOwnProperty("lineJoin")&&(this.lineJoin=i.lineJoin)}},c.prototype.strokeRect=function(t,e,n,r){+if(isNaN(t)||isNaN(e)||isNaN(n)||isNaN(r))throw console.error("jsPDF.context2d.strokeRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeRect");h.call(this)||(this.beginPath(),this.rect(t,e,n,r),this.stroke())},c.prototype.clearRect=function(t,e,n,r){if(isNaN(t)||isNaN(e)||isNaN(n)||isNaN(r))throw console.error("jsPDF.context2d.clearRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.clearRect");this.ignoreClearRect||(this.fillStyle="#ffffff",this.fillRect(t,e,n,r))},c.prototype.save=function(t){t="boolean"!=typeof t||t;for(var e=this.pdf.internal.getCurrentPageInfo().pageNumber,n=0;n<this.pdf.internal.getNumberOfPages();n++)this.pdf.setPage(n+1),this.pdf.internal.out("q");if(this.pdf.setPage(e),t){this.ctx.fontSize=this.pdf.internal.getFontSize();var r=new l(this.ctx);this.ctxStack.push(this.ctx),this.ctx=r}},c.prototype.restore=function(t){t="boolean"!=typeof t||t;for(var e=this.pdf.internal.getCurrentPageInfo().pageNumber,n=0;n<this.pdf.internal.getNumberOfPages();n++)this.pdf.setPage(n+1),this.pdf.internal.out("Q");this.pdf.setPage(e),t&&0!==this.ctxStack.length&&(this.ctx=this.ctxStack.pop(),this.fillStyle=this.ctx.fillStyle,this.strokeStyle=this.ctx.strokeStyle,this.font=this.ctx.font,this.lineCap=this.ctx.lineCap,this.lineWidth=this.ctx.lineWidth,this.lineJoin=this.ctx.lineJoin)},c.prototype.toDataURL=function(){throw new Error("toDataUrl not implemented.")};var u=function(t){var e,n,r,i;if(!0===t.isCanvasGradient&&(t=t.getColor()),!t)return{r:0,g:0,b:0,a:0,style:t};if(/transparent|rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*0+\s*\)/.test(t))i=r=n=e=0;else{var o=/rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/.exec(t);if(null!==o)e=parseInt(o[1]),n=parseInt(o[2]),r=parseInt(o[3]),i=1;else if(null!==(o=/rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*([\d\.]+)\s*\)/.exec(t)))e=parseInt(o[1]),n=parseInt(o[2]),r=parseInt(o[3]),i=parseFloat(o[4]);else{if(i=1,"string"==typeof t&&"#"!==t.charAt(0)){var a=new RGBColor(t);t=a.ok?a.toHex():"#000000"}4===t.length?(e=t.substring(1,2),e+=e,n=t.substring(2,3),n+=n,r=t.substring(3,4),r+=r):(e=t.substring(1,3),n=t.substring(3,5),r=t.substring(5,7)),e=parseInt(e,16),n=parseInt(n,16),r=parseInt(r,16)}}return{r:e,g:n,b:r,a:i,style:t}},f=function(){return this.ctx.isFillTransparent||0==this.globalAlpha},h=function(){return Boolean(this.ctx.isStrokeTransparent||0==this.globalAlpha)};c.prototype.fillText=function(t,e,n,r){if(isNaN(e)||isNaN(n)||"string"!=typeof t)throw console.error("jsPDF.context2d.fillText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillText");if(r=isNaN(r)?void 0:r,!f.call(this)){n=y.call(this,n);var i=_(this.ctx.transform.rotation),o=this.ctx.transform.scaleX;A.call(this,{text:t,x:e,y:n,scale:o,angle:i,align:this.textAlign,maxWidth:r})}},c.prototype.strokeText=function(t,e,n,r){if(isNaN(e)||isNaN(n)||"string"!=typeof t)throw console.error("jsPDF.context2d.strokeText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeText");if(!h.call(this)){r=isNaN(r)?void 0:r,n=y.call(this,n);var i=_(this.ctx.transform.rotation),o=this.ctx.transform.scaleX;A.call(this,{text:t,x:e,y:n,scale:o,renderingMode:"stroke",angle:i,align:this.textAlign,maxWidth:r})}},c.prototype.measureText=function(t){if("string"!=typeof t)throw console.error("jsPDF.context2d.measureText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.measureText");var e=this.pdf,n=this.pdf.internal.scaleFactor,r=e.internal.getFontSize(),i=e.getStringUnitWidth(t)*r/e.internal.scaleFactor;return new function(t){var e=(t=t||{}).width||0;return Object.defineProperty(this,"width",{get:function(){return e}}),this}({width:i*=Math.round(96*n/72*1e4)/1e4})},c.prototype.scale=function(t,e){if(isNaN(t)||isNaN(e))throw console.error("jsPDF.context2d.scale: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.scale");var n=new F(t,0,0,e,0,0);this.ctx.transform=this.ctx.transform.multiply(n)},c.prototype.rotate=function(t){if(isNaN(t))throw console.error("jsPDF.context2d.rotate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rotate");var e=new F(Math.cos(t),Math.sin(t),-Math.sin(t),Math.cos(t),0,0);this.ctx.transform=this.ctx.transform.multiply(e)},c.prototype.translate=function(t,e){if(isNaN(t)||isNaN(e))throw console.error("jsPDF.context2d.translate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.translate");var n=new F(1,0,0,1,t,e);this.ctx.transform=this.ctx.transform.multiply(n)},c.prototype.transform=function(t,e,n,r,i,o){if(isNaN(t)||isNaN(e)||isNaN(n)||isNaN(r)||isNaN(i)||isNaN(o))throw console.error("jsPDF.context2d.transform: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.transform");var a=new F(t,e,n,r,i,o);this.ctx.transform=this.ctx.transform.multiply(a)},c.prototype.setTransform=function(t,e,n,r,i,o){t=isNaN(t)?1:t,e=isNaN(e)?0:e,n=isNaN(n)?0:n,r=isNaN(r)?1:r,i=isNaN(i)?0:i,o=isNaN(o)?0:o,this.ctx.transform=new F(t,e,n,r,i,o)},c.prototype.drawImage=function(t,e,n,r,i,o,a,s,l){var c=this.pdf.getImageProperties(t),u=1,f=1,h=1,p=1;void 0!==r&&void 0!==s&&(h=s/r,p=l/i,u=c.width/r*s/r,f=c.height/i*l/i),void 0===o&&(o=e,a=n,n=e=0),void 0!==r&&void 0===s&&(s=r,l=i),void 0===r&&void 0===s&&(s=c.width,l=c.height);var m=this.ctx.transform.decompose(),y=_(m.rotate.shx);m.scale.sx,m.scale.sy;for(var b,w=new F,x=((w=(w=(w=w.multiply(m.translate)).multiply(m.skew)).multiply(m.scale)).applyToPoint(new E(s,l)),w.applyToRectangle(new j(o-e*h,a-n*p,r*u,i*f))),S=d.call(this,x),A=[],N=0;N<S.length;N+=1)-1===A.indexOf(S[N])&&A.push(S[N]);if(A.sort(),this.autoPaging)for(var L=A[0],k=A[A.length-1],C=L;C<k+1;C++){if(this.pdf.setPage(C),0!==this.ctx.clip_path.length){var O=this.path;b=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=g(b,this.posX,-1*this.pdf.internal.pageSize.height*(C-1)+this.posY),v.call(this,"fill",!0),this.path=O}var P=JSON.parse(JSON.stringify(x));P=g([P],this.posX,-1*this.pdf.internal.pageSize.height*(C-1)+this.posY)[0],this.pdf.addImage(t,"jpg",P.x,P.y,P.w,P.h,null,null,y)}else this.pdf.addImage(t,"jpg",x.x,x.y,x.w,x.h,null,null,y)};var d=function(t,e,n){var r=[];switch(e=e||this.pdf.internal.pageSize.width,n=n||this.pdf.internal.pageSize.height,t.type){default:case"mt":case"lt":r.push(Math.floor((t.y+this.posY)/n)+1);break;case"arc":r.push(Math.floor((t.y+this.posY-t.radius)/n)+1),r.push(Math.floor((t.y+this.posY+t.radius)/n)+1);break;case"qct":var i=I(this.ctx.lastPoint.x,this.ctx.lastPoint.y,t.x1,t.y1,t.x,t.y);r.push(Math.floor(i.y/n)+1),r.push(Math.floor((i.y+i.h)/n)+1);break;case"bct":var o=T(this.ctx.lastPoint.x,this.ctx.lastPoint.y,t.x1,t.y1,t.x2,t.y2,t.x,t.y);r.push(Math.floor(o.y/n)+1),r.push(Math.floor((o.y+o.h)/n)+1);break;case"rect":r.push(Math.floor((t.y+this.posY)/n)+1),r.push(Math.floor((t.y+t.h+this.posY)/n)+1)}for(var a=0;a<r.length;a+=1)for(;this.pdf.internal.getNumberOfPages()<r[a];)p.call(this);return r},p=function(){var t=this.fillStyle,e=this.strokeStyle,n=this.font,r=this.lineCap,i=this.lineWidth,o=this.lineJoin;this.pdf.addPage(),this.fillStyle=t,this.strokeStyle=e,this.font=n,this.lineCap=r,this.lineWidth=i,this.lineJoin=o},g=function(t,e,n){for(var r=0;r<t.length;r++)switch(t[r].type){case"bct":t[r].x2+=e,t[r].y2+=n;case"qct":t[r].x1+=e,t[r].y1+=n;case"mt":case"lt":case"arc":default:t[r].x+=e,t[r].y+=n}return t},m=function(t,e){for(var n,r,i=this.fillStyle,o=this.strokeStyle,a=(this.font,this.lineCap),s=this.lineWidth,l=this.lineJoin,c=JSON.parse(JSON.stringify(this.path)),u=JSON.parse(JSON.stringify(this.path)),f=[],h=0;h<u.length;h++)if(void 0!==u[h].x)for(var m=d.call(this,u[h]),y=0;y<m.length;y+=1)-1===f.indexOf(m[y])&&f.push(m[y]);for(h=0;h<f.length;h++)for(;this.pdf.internal.getNumberOfPages()<f[h];)p.call(this);if(f.sort(),this.autoPaging){var b=f[0],w=f[f.length-1];for(h=b;h<w+1;h++){if(this.pdf.setPage(h),this.fillStyle=i,this.strokeStyle=o,this.lineCap=a,this.lineWidth=s,this.lineJoin=l,0!==this.ctx.clip_path.length){var x=this.path;n=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=g(n,this.posX,-1*this.pdf.internal.pageSize.height*(h-1)+this.posY),v.call(this,t,!0),this.path=x}r=JSON.parse(JSON.stringify(c)),this.path=g(r,this.posX,-1*this.pdf.internal.pageSize.height*(h-1)+this.posY),!1!==e&&0!==h||v.call(this,t,e)}}else v.call(this,t,e);this.path=c},v=function(t,e){if(("stroke"!==t||e||!h.call(this))&&("stroke"===t||e||!f.call(this))){var n=[];this.ctx.globalAlpha,this.ctx.fillOpacity<1&&this.ctx.fillOpacity;for(var r,i=this.path,o=0;o<i.length;o++){var a=i[o];switch(a.type){case"begin":n.push({begin:!0});break;case"close":n.push({close:!0});break;case"mt":n.push({start:a,deltas:[],abs:[]});break;case"lt":var s=n.length;if(!isNaN(i[o-1].x)){var l=[a.x-i[o-1].x,a.y-i[o-1].y];if(0<s)for(;0<=s;s--)if(!0!==n[s-1].close&&!0!==n[s-1].begin){n[s-1].deltas.push(l),n[s-1].abs.push(a);break}}break;case"bct":l=[a.x1-i[o-1].x,a.y1-i[o-1].y,a.x2-i[o-1].x,a.y2-i[o-1].y,a.x-i[o-1].x,a.y-i[o-1].y],n[n.length-1].deltas.push(l);break;case"qct":var c=i[o-1].x+2/3*(a.x1-i[o-1].x),u=i[o-1].y+2/3*(a.y1-i[o-1].y),d=a.x+2/3*(a.x1-a.x),p=a.y+2/3*(a.y1-a.y),g=a.x,m=a.y;l=[c-i[o-1].x,u-i[o-1].y,d-i[o-1].x,p-i[o-1].y,g-i[o-1].x,m-i[o-1].y],n[n.length-1].deltas.push(l);break;case"arc":n.push({deltas:[],abs:[],arc:!0}),Array.isArray(n[n.length-1].abs)&&n[n.length-1].abs.push(a)}}for(r=e?null:"stroke"===t?"stroke":"fill",o=0;o<n.length;o++){if(n[o].arc)for(var v=n[o].abs,y=0;y<v.length;y++){var S=v[y];if(void 0!==S.startAngle){var A=_(S.startAngle),k=_(S.endAngle),C=S.x,O=S.y;b.call(this,C,O,S.radius,A,k,S.counterclockwise,r,e)}else N.call(this,S.x,S.y)}n[o].arc||!0===n[o].close||!0===n[o].begin||(C=n[o].start.x,O=n[o].start.y,L.call(this,n[o].deltas,C,O,null,null))}r&&w.call(this,r),e&&x.call(this)}},y=function(t){var e=this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor,n=e*(this.pdf.internal.getLineHeightFactor()-1);switch(this.ctx.textBaseline){case"bottom":return t-n;case"top":return t+e-n;case"hanging":return t+e-2*n;case"middle":return t+e/2-n;case"ideographic":return t;case"alphabetic":default:return t}};c.prototype.createLinearGradient=function(){var t=function(){};return t.colorStops=[],t.addColorStop=function(t,e){this.colorStops.push([t,e])},t.getColor=function(){return 0===this.colorStops.length?"#000000":this.colorStops[0][1]},t.isCanvasGradient=!0,t},c.prototype.createPattern=function(){return this.createLinearGradient()},c.prototype.createRadialGradient=function(){return this.createLinearGradient()};var b=function(t,e,n,r,i,o,a,s){this.pdf.internal.scaleFactor;for(var l=P(r),c=P(i),u=C.call(this,n,l,c,o),f=0;f<u.length;f++){var h=u[f];0===f&&S.call(this,h.x1+t,h.y1+e),k.call(this,t,e,h.x2,h.y2,h.x3,h.y3,h.x4,h.y4)}s?x.call(this):w.call(this,a)},w=function(t){switch(t){case"stroke":this.pdf.internal.out("S");break;case"fill":this.pdf.internal.out("f")}},x=function(){this.pdf.clip()},S=function(t,e){this.pdf.internal.out(i(t)+" "+o(e)+" m")},A=function(t){var e;switch(t.align){case"right":case"end":e="right";break;case"center":e="center";break;case"left":case"start":default:e="left"}var n=this.ctx.transform.applyToPoint(new E(t.x,t.y)),r=this.ctx.transform.decompose(),i=new F;i=(i=(i=i.multiply(r.translate)).multiply(r.skew)).multiply(r.scale);for(var o,a=this.pdf.getTextDimensions(t.text),s=this.ctx.transform.applyToRectangle(new j(t.x,t.y,a.w,a.h)),l=i.applyToRectangle(new j(t.x,t.y-a.h,a.w,a.h)),c=d.call(this,l),u=[],f=0;f<c.length;f+=1)-1===u.indexOf(c[f])&&u.push(c[f]);if(u.sort(),!0===this.autoPaging)for(var h=u[0],p=u[u.length-1],m=h;m<p+1;m++){if(this.pdf.setPage(m),0!==this.ctx.clip_path.length){var y=this.path;o=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=g(o,this.posX,-1*this.pdf.internal.pageSize.height*(m-1)+this.posY),v.call(this,"fill",!0),this.path=y}var b=JSON.parse(JSON.stringify(s));if(b=g([b],this.posX,-1*this.pdf.internal.pageSize.height*(m-1)+this.posY)[0],.01<=t.scale){var w=this.pdf.internal.getFontSize();this.pdf.setFontSize(w*t.scale)}this.pdf.text(t.text,b.x,b.y,{angle:t.angle,align:e,renderingMode:t.renderingMode,maxWidth:t.maxWidth}),.01<=t.scale&&this.pdf.setFontSize(w)}else.01<=t.scale&&(w=this.pdf.internal.getFontSize(),this.pdf.setFontSize(w*t.scale)),this.pdf.text(t.text,n.x+this.posX,n.y+this.posY,{angle:t.angle,align:e,renderingMode:t.renderingMode,maxWidth:t.maxWidth}),.01<=t.scale&&this.pdf.setFontSize(w)},N=function(t,e,n,r){n=n||0,r=r||0,this.pdf.internal.out(i(t+n)+" "+o(e+r)+" l")},L=function(t,e,n){return this.pdf.lines(t,e,n,null,null)},k=function(t,e,n,i,o,l,c,u){this.pdf.internal.out([r(a(n+t)),r(s(i+e)),r(a(o+t)),r(s(l+e)),r(a(c+t)),r(s(u+e)),"c"].join(" "))},C=function(t,e,n,r){var i=2*Math.PI,o=e;(o<i||i<o)&&(o%=i);var a=n;(a<i||i<a)&&(a%=i);for(var s=[],l=Math.PI/2,c=r?-1:1,u=e,f=Math.min(i,Math.abs(a-o));1e-5<f;){var h=u+c*Math.min(f,l);s.push(O.call(this,t,u,h)),f-=Math.abs(h-u),u=h}return s},O=function(t,e,n){var r=(n-e)/2,i=t*Math.cos(r),o=t*Math.sin(r),a=i,s=-o,l=a*a+s*s,c=l+a*i+s*o,u=4/3*(Math.sqrt(2*l*c)-c)/(a*o-s*i),f=a-u*s,h=s+u*a,d=f,p=-h,g=r+e,m=Math.cos(g),v=Math.sin(g);return{x1:t*Math.cos(e),y1:t*Math.sin(e),x2:f*m-h*v,y2:f*v+h*m,x3:d*m-p*v,y3:d*v+p*m,x4:t*Math.cos(n),y4:t*Math.sin(n)}},_=function(t){return 180*t/Math.PI},P=function(t){return t*Math.PI/180},I=function(t,e,n,r,i,o){var a=t+.5*(n-t),s=e+.5*(r-e),l=i+.5*(n-i),c=o+.5*(r-o),u=Math.min(t,i,a,l),f=Math.max(t,i,a,l),h=Math.min(e,o,s,c),d=Math.max(e,o,s,c);return new j(u,h,f-u,d-h)},T=function(t,e,n,r,i,o,a,s){for(var l,c,u,f,h,d,p,g,m,v,y,b,w,x=n-t,S=r-e,A=i-n,N=o-r,L=a-i,k=s-o,C=0;C<41;C++)g=(d=(c=t+(l=C/40)*x)+l*((f=n+l*A)-c))+l*(f+l*(i+l*L-f)-d),m=(p=(u=e+l*S)+l*((h=r+l*N)-u))+l*(h+l*(o+l*k-h)-p),w=0==C?(b=v=g,y=m):(v=Math.min(v,g),y=Math.min(y,m),b=Math.max(b,g),Math.max(w,m));return new j(Math.round(v),Math.round(y),Math.round(b-v),Math.round(w-y))},E=function(t,e){var n=t||0;Object.defineProperty(this,"x",{enumerable:!0,get:function(){return n},set:function(t){isNaN(t)||(n=parseFloat(t))}});var r=e||0;Object.defineProperty(this,"y",{enumerable:!0,get:function(){return r},set:function(t){isNaN(t)||(r=parseFloat(t))}});var i="pt";return Object.defineProperty(this,"type",{enumerable:!0,get:function(){return i},set:function(t){i=t.toString()}}),this},j=function(t,e,n,r){E.call(this,t,e),this.type="rect";var i=n||0;Object.defineProperty(this,"w",{enumerable:!0,get:function(){return i},set:function(t){isNaN(t)||(i=parseFloat(t))}});var o=r||0;return Object.defineProperty(this,"h",{enumerable:!0,get:function(){return o},set:function(t){isNaN(t)||(o=parseFloat(t))}}),this},F=function(t,e,n,r,i,o){var a=[];return Object.defineProperty(this,"sx",{get:function(){return a[0]},set:function(t){a[0]=Math.round(1e5*t)/1e5}}),Object.defineProperty(this,"shy",{get:function(){return a[1]},set:function(t){a[1]=Math.round(1e5*t)/1e5}}),Object.defineProperty(this,"shx",{get:function(){return a[2]},set:function(t){a[2]=Math.round(1e5*t)/1e5}}),Object.defineProperty(this,"sy",{get:function(){return a[3]},set:function(t){a[3]=Math.round(1e5*t)/1e5}}),Object.defineProperty(this,"tx",{get:function(){return a[4]},set:function(t){a[4]=Math.round(1e5*t)/1e5}}),Object.defineProperty(this,"ty",{get:function(){return a[5]},set:function(t){a[5]=Math.round(1e5*t)/1e5}}),Object.defineProperty(this,"rotation",{get:function(){return Math.atan2(this.shx,this.sx)}}),Object.defineProperty(this,"scaleX",{get:function(){return this.decompose().scale.sx}}),Object.defineProperty(this,"scaleY",{get:function(){return this.decompose().scale.sy}}),Object.defineProperty(this,"isIdentity",{get:function(){return 1===this.sx&&0===this.shy&&0===this.shx&&1===this.sy&&0===this.tx&&0===this.ty}}),this.sx=isNaN(t)?1:t,this.shy=isNaN(e)?0:e,this.shx=isNaN(n)?0:n,this.sy=isNaN(r)?1:r,this.tx=isNaN(i)?0:i,this.ty=isNaN(o)?0:o,this};F.prototype.multiply=function(t){var e=t.sx*this.sx+t.shy*this.shx,n=t.sx*this.shy+t.shy*this.sy,r=t.shx*this.sx+t.sy*this.shx,i=t.shx*this.shy+t.sy*this.sy,o=t.tx*this.sx+t.ty*this.shx+this.tx,a=t.tx*this.shy+t.ty*this.sy+this.ty;return new F(e,n,r,i,o,a)},F.prototype.decompose=function(){var t=this.sx,e=this.shy,n=this.shx,r=this.sy,i=this.tx,o=this.ty,a=Math.sqrt(t*t+e*e),s=(t/=a)*n+(e/=a)*r;n-=t*s,r-=e*s;var l=Math.sqrt(n*n+r*r);return s/=l,t*(r/=l)<e*(n/=l)&&(t=-t,e=-e,s=-s,a=-a),{scale:new F(a,0,0,l,0,0),translate:new F(1,0,0,1,i,o),rotate:new F(t,e,-e,t,0,0),skew:new F(1,0,s,1,0,0)}},F.prototype.applyToPoint=function(t){var e=t.x*this.sx+t.y*this.shx+this.tx,n=t.x*this.shy+t.y*this.sy+this.ty;return new E(e,n)},F.prototype.applyToRectangle=function(t){var e=this.applyToPoint(t),n=this.applyToPoint(new E(t.x+t.w,t.y+t.h));return new j(e.x,e.y,n.x-e.x,n.y-e.y)},F.prototype.clone=function(){var t=this.sx,e=this.shy,n=this.shx,r=this.sy,i=this.tx,o=this.ty;return new F(t,e,n,r,i,o)}}(dt.API,"undefined"!=typeof self&&self||"undefined"!=typeof window&&window||"undefined"!=typeof global&&global||Function('return typeof this === "object" && this.content')()||Function("return this")()),g=dt.API,m=function(t){var e,n,r,i,o,a,s,l,c,u;for(/[^\x00-\xFF]/.test(t),n=[],r=0,i=(t+=e="\0\0\0\0".slice(t.length%4||4)).length;r<i;r+=4)0!==(o=(t.charCodeAt(r)<<24)+(t.charCodeAt(r+1)<<16)+(t.charCodeAt(r+2)<<8)+t.charCodeAt(r+3))?(a=(o=((o=((o=((o=(o-(u=o%85))/85)-(c=o%85))/85)-(l=o%85))/85)-(s=o%85))/85)%85,n.push(a+33,s+33,l+33,c+33,u+33)):n.push(122);return function(t,n){for(var r=e.length;0<r;r--)t.pop()}(n),String.fromCharCode.apply(String,n)+"~>"},v=function(t){var e,n,r,i,o,a=String,s="length",l="charCodeAt",c="slice",u="replace";for(t[c](-2),t=t[c](0,-2)[u](/\s/g,"")[u]("z","!!!!!"),r=[],i=0,o=(t+=e="uuuuu"[c](t[s]%5||5))[s];i<o;i+=5)n=52200625*(t[l](i)-33)+614125*(t[l](i+1)-33)+7225*(t[l](i+2)-33)+85*(t[l](i+3)-33)+(t[l](i+4)-33),r.push(255&n>>24,255&n>>16,255&n>>8,255&n);return function(t,n){for(var r=e[s];0<r;r--)t.pop()}(r),a.fromCharCode.apply(a,r)},y=function(t){for(var e="",n=0;n<t.length;n+=1)e+=("0"+t.charCodeAt(n).toString(16)).slice(-2);return e+=">"},b=function(t){var e=new RegExp(/^([0-9A-Fa-f]{2})+$/);if(-1!==(t=t.replace(/\s/g,"")).indexOf(">")&&(t=t.substr(0,t.indexOf(">"))),t.length%2&&(t+="0"),!1===e.test(t))return"";for(var n="",r=0;r<t.length;r+=2)n+=String.fromCharCode("0x"+(t[r]+t[r+1]));return n},w=function(t,e){e=Object.assign({predictor:1,colors:1,bitsPerComponent:8,columns:1},e);for(var n,r,i=[],o=t.length;o--;)i[o]=t.charCodeAt(o);return n=g.adler32cs.from(t),(r=new Deflater(6)).append(new Uint8Array(i)),t=r.flush(),(i=new Uint8Array(t.length+6)).set(new Uint8Array([120,156])),i.set(t,2),i.set(new Uint8Array([255&n,n>>8&255,n>>16&255,n>>24&255]),t.length+2),t=String.fromCharCode.apply(null,i)},g.processDataByFilters=function(t,e){var n=0,r=t||"",i=[];for("string"==typeof(e=e||[])&&(e=[e]),n=0;n<e.length;n+=1)switch(e[n]){case"ASCII85Decode":case"/ASCII85Decode":r=v(r),i.push("/ASCII85Encode");break;case"ASCII85Encode":case"/ASCII85Encode":r=m(r),i.push("/ASCII85Decode");break;case"ASCIIHexDecode":case"/ASCIIHexDecode":r=b(r),i.push("/ASCIIHexEncode");break;case"ASCIIHexEncode":case"/ASCIIHexEncode":r=y(r),i.push("/ASCIIHexDecode");break;case"FlateEncode":case"/FlateEncode":r=w(r),i.push("/FlateDecode");break;default:throw'The filter: "'+e[n]+'" is not implemented'}return{data:r,reverseChain:i.reverse().join(" ")}},(x=dt.API).loadFile=function(t,e,n){var r;e=e||!0,n=n||function(){};try{r=function(t,e,n){var r=new XMLHttpRequest,i=[],o=0,a=function(t){var e=t.length,n=String.fromCharCode;for(o=0;o<e;o+=1)i.push(n(255&t.charCodeAt(o)));return i.join("")};if(r.open("GET",t,!e),r.overrideMimeType("text/plain; charset=x-user-defined"),!1===e&&(r.onload=function(){return a(this.responseText)}),r.send(null),200===r.status)return e?a(r.responseText):void 0;console.warn('Unable to load file "'+t+'"')}(t,e)}catch(t){r=void 0}return r},x.loadImageFile=x.loadFile,S=dt.API,A="undefined"!=typeof window&&window||"undefined"!=typeof global&&global,N=function(e){var n=t(e);return"undefined"===n?"undefined":"string"===n||e instanceof String?"string":"number"===n||e instanceof Number?"number":"function"===n||e instanceof Function?"function":e&&e.constructor===Array?"array":e&&1===e.nodeType?"element":"object"===n?"object":"unknown"},L=function(t,e){var n=document.createElement(t);if(e.className&&(n.className=e.className),e.innerHTML){n.innerHTML=e.innerHTML;for(var r=n.getElementsByTagName("script"),i=r.length;0<i--;null)r[i].parentNode.removeChild(r[i])}for(var o in e.style)n.style[o]=e.style[o];return n},(((k=function t(e){var n=Object.assign(t.convert(Promise.resolve()),JSON.parse(JSON.stringify(t.template))),r=t.convert(Promise.resolve(),n);return r=(r=r.setProgress(1,t,1,[t])).set(e)}).prototype=Object.create(Promise.prototype)).constructor=k).convert=function(t,e){return t.__proto__=e||k.prototype,t},k.template={prop:{src:null,container:null,overlay:null,canvas:null,img:null,pdf:null,pageSize:null,callback:function(){}},progress:{val:0,state:null,n:0,stack:[]},opt:{filename:"file.pdf",margin:[0,0,0,0],enableLinks:!0,x:0,y:0,html2canvas:{},jsPDF:{}}},k.prototype.from=function(t,e){return this.then(function(){switch(e=e||function(t){switch(N(t)){case"string":return"string";case"element":return"canvas"===t.nodeName.toLowerCase?"canvas":"element";default:return"unknown"}}(t)){case"string":return this.set({src:L("div",{innerHTML:t})});case"element":return this.set({src:t});case"canvas":return this.set({canvas:t});case"img":return this.set({img:t});default:return this.error("Unknown source type.")}})},k.prototype.to=function(t){switch(t){case"container":return this.toContainer();case"canvas":return this.toCanvas();case"img":return this.toImg();case"pdf":return this.toPdf();default:return this.error("Invalid target.")}},k.prototype.toContainer=function(){return this.thenList([function(){return this.prop.src||this.error("Cannot duplicate - no source HTML.")},function(){return this.prop.pageSize||this.setPageSize()}]).then(function(){var t={position:"relative",display:"inline-block",width:Math.max(this.prop.src.clientWidth,this.prop.src.scrollWidth,this.prop.src.offsetWidth)+"px",left:0,right:0,top:0,margin:"auto",backgroundColor:"white"},e=function t(e,n){for(var r=3===e.nodeType?document.createTextNode(e.nodeValue):e.cloneNode(!1),i=e.firstChild;i;i=i.nextSibling)!0!==n&&1===i.nodeType&&"SCRIPT"===i.nodeName||r.appendChild(t(i,n));return 1===e.nodeType&&("CANVAS"===e.nodeName?(r.width=e.width,r.height=e.height,r.getContext("2d").drawImage(e,0,0)):"TEXTAREA"!==e.nodeName&&"SELECT"!==e.nodeName||(r.value=e.value),r.addEventListener("load",function(){r.scrollTop=e.scrollTop,r.scrollLeft=e.scrollLeft},!0)),r}(this.prop.src,this.opt.html2canvas.javascriptEnabled);"BODY"===e.tagName&&(t.height=Math.max(document.body.scrollHeight,document.body.offsetHeight,document.documentElement.clientHeight,document.documentElement.scrollHeight,document.documentElement.offsetHeight)+"px"),this.prop.overlay=L("div",{className:"html2pdf__overlay",style:{position:"fixed",overflow:"hidden",zIndex:1e3,left:"-100000px",right:0,bottom:0,top:0}}),this.prop.container=L("div",{className:"html2pdf__container",style:t}),this.prop.container.appendChild(e),this.prop.container.firstChild.appendChild(L("div",{style:{clear:"both",border:"0 none transparent",margin:0,padding:0,height:0}})),this.prop.container.style.float="none",this.prop.overlay.appendChild(this.prop.container),document.body.appendChild(this.prop.overlay),this.prop.container.firstChild.style.position="relative",this.prop.container.height=Math.max(this.prop.container.firstChild.clientHeight,this.prop.container.firstChild.scrollHeight,this.prop.container.firstChild.offsetHeight)+"px"})},k.prototype.toCanvas=function(){var t=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(t).then(function(){var t=Object.assign({},this.opt.html2canvas);if(delete t.onrendered,this.isHtml2CanvasLoaded())return html2canvas(this.prop.container,t)}).then(function(t){(this.opt.html2canvas.onrendered||function(){})(t),this.prop.canvas=t,document.body.removeChild(this.prop.overlay)})},k.prototype.toContext2d=function(){var t=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(t).then(function(){var t=this.opt.jsPDF,e=Object.assign({async:!0,allowTaint:!0,backgroundColor:"#ffffff",imageTimeout:15e3,logging:!0,proxy:null,removeContainer:!0,foreignObjectRendering:!1,useCORS:!1},this.opt.html2canvas);if(delete e.onrendered,t.context2d.autoPaging=!0,t.context2d.posX=this.opt.x,t.context2d.posY=this.opt.y,e.windowHeight=e.windowHeight||0,e.windowHeight=0==e.windowHeight?Math.max(this.prop.container.clientHeight,this.prop.container.scrollHeight,this.prop.container.offsetHeight):e.windowHeight,this.isHtml2CanvasLoaded())return html2canvas(this.prop.container,e)}).then(function(t){(this.opt.html2canvas.onrendered||function(){})(t),this.prop.canvas=t,document.body.removeChild(this.prop.overlay)})},k.prototype.toImg=function(){return this.thenList([function(){return this.prop.canvas||this.toCanvas()}]).then(function(){var t=this.prop.canvas.toDataURL("image/"+this.opt.image.type,this.opt.image.quality);this.prop.img=document.createElement("img"),this.prop.img.src=t})},k.prototype.toPdf=function(){return this.thenList([function(){return this.toContext2d()}]).then(function(){this.prop.pdf=this.prop.pdf||this.opt.jsPDF})},k.prototype.output=function(t,e,n){return"img"===(n=n||"pdf").toLowerCase()||"image"===n.toLowerCase()?this.outputImg(t,e):this.outputPdf(t,e)},k.prototype.outputPdf=function(t,e){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then(function(){return this.prop.pdf.output(t,e)})},k.prototype.outputImg=function(t,e){return this.thenList([function(){return this.prop.img||this.toImg()}]).then(function(){switch(t){case void 0:case"img":return this.prop.img;case"datauristring":case"dataurlstring":return this.prop.img.src;case"datauri":case"dataurl":return document.location.href=this.prop.img.src;default:throw'Image output type "'+t+'" is not supported.'}})},k.prototype.isHtml2CanvasLoaded=function(){var t=void 0!==A.html2canvas;return t||console.error("html2canvas not loaded."),t},k.prototype.save=function(t){if(this.isHtml2CanvasLoaded())return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).set(t?{filename:t}:null).then(function(){this.prop.pdf.save(this.opt.filename)})},k.prototype.doCallback=function(t){if(this.isHtml2CanvasLoaded())return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then(function(){this.prop.callback(this.prop.pdf)})},k.prototype.set=function(t){if("object"!==N(t))return this;var e=Object.keys(t||{}).map(function(e){if(e in k.template.prop)return function(){this.prop[e]=t[e]};switch(e){case"margin":return this.setMargin.bind(this,t.margin);case"jsPDF":return function(){return this.opt.jsPDF=t.jsPDF,this.setPageSize()};case"pageSize":return this.setPageSize.bind(this,t.pageSize);default:return function(){this.opt[e]=t[e]}}},this);return this.then(function(){return this.thenList(e)})},k.prototype.get=function(t,e){return this.then(function(){var n=t in k.template.prop?this.prop[t]:this.opt[t];return e?e(n):n})},k.prototype.setMargin=function(t){return this.then(function(){switch(N(t)){case"number":t=[t,t,t,t];case"array":if(2===t.length&&(t=[t[0],t[1],t[0],t[1]]),4===t.length)break;default:return this.error("Invalid margin array.")}this.opt.margin=t}).then(this.setPageSize)},k.prototype.setPageSize=function(t){function e(t,e){return Math.floor(t*e/72*96)}return this.then(function(){(t=t||dt.getPageSize(this.opt.jsPDF)).hasOwnProperty("inner")||(t.inner={width:t.width-this.opt.margin[1]-this.opt.margin[3],height:t.height-this.opt.margin[0]-this.opt.margin[2]},t.inner.px={width:e(t.inner.width,t.k),height:e(t.inner.height,t.k)},t.inner.ratio=t.inner.height/t.inner.width),this.prop.pageSize=t})},k.prototype.setProgress=function(t,e,n,r){return null!=t&&(this.progress.val=t),null!=e&&(this.progress.state=e),null!=n&&(this.progress.n=n),null!=r&&(this.progress.stack=r),this.progress.ratio=this.progress.val/this.progress.state,this},k.prototype.updateProgress=function(t,e,n,r){return this.setProgress(t?this.progress.val+t:null,e||null,n?this.progress.n+n:null,r?this.progress.stack.concat(r):null)},k.prototype.then=function(t,e){var n=this;return this.thenCore(t,e,function(t,e){return n.updateProgress(null,null,1,[t]),Promise.prototype.then.call(this,function(e){return n.updateProgress(null,t),e}).then(t,e).then(function(t){return n.updateProgress(1),t})})},k.prototype.thenCore=function(t,e,n){n=n||Promise.prototype.then;var r=this;t&&(t=t.bind(r)),e&&(e=e.bind(r));var i=-1!==Promise.toString().indexOf("[native code]")&&"Promise"===Promise.name?r:k.convert(Object.assign({},r),Promise.prototype),o=n.call(i,t,e);return k.convert(o,r.__proto__)},k.prototype.thenExternal=function(t,e){return Promise.prototype.then.call(this,t,e)},k.prototype.thenList=function(t){var e=this;return t.forEach(function(t){e=e.thenCore(t)}),e},k.prototype.catch=function(t){t&&(t=t.bind(this));var e=Promise.prototype.catch.call(this,t);return k.convert(e,this)},k.prototype.catchExternal=function(t){return Promise.prototype.catch.call(this,t)},k.prototype.error=function(t){return this.then(function(){throw new Error(t)})},k.prototype.using=k.prototype.set,k.prototype.saveAs=k.prototype.save,k.prototype.export=k.prototype.output,k.prototype.run=k.prototype.then,dt.getPageSize=function(e,n,r){if("object"===t(e)){var i=e;e=i.orientation,n=i.unit||n,r=i.format||r}n=n||"mm",r=r||"a4",e=(""+(e||"P")).toLowerCase();var o=(""+r).toLowerCase(),a={a0:[2383.94,3370.39],a1:[1683.78,2383.94],a2:[1190.55,1683.78],a3:[841.89,1190.55],a4:[595.28,841.89],a5:[419.53,595.28],a6:[297.64,419.53],a7:[209.76,297.64],a8:[147.4,209.76],a9:[104.88,147.4],a10:[73.7,104.88],b0:[2834.65,4008.19],b1:[2004.09,2834.65],b2:[1417.32,2004.09],b3:[1000.63,1417.32],b4:[708.66,1000.63],b5:[498.9,708.66],b6:[354.33,498.9],b7:[249.45,354.33],b8:[175.75,249.45],b9:[124.72,175.75],b10:[87.87,124.72],c0:[2599.37,3676.54],c1:[1836.85,2599.37],c2:[1298.27,1836.85],c3:[918.43,1298.27],c4:[649.13,918.43],c5:[459.21,649.13],c6:[323.15,459.21],c7:[229.61,323.15],c8:[161.57,229.61],c9:[113.39,161.57],c10:[79.37,113.39],dl:[311.81,623.62],letter:[612,792],"government-letter":[576,756],legal:[612,1008],"junior-legal":[576,360],ledger:[1224,792],tabloid:[792,1224],"credit-card":[153,243]};switch(n){case"pt":var s=1;break;case"mm":s=72/25.4;break;case"cm":s=72/2.54;break;case"in":s=72;break;case"px":s=.75;break;case"pc":case"em":s=12;break;case"ex":s=6;break;default:throw"Invalid unit: "+n}if(a.hasOwnProperty(o))var l=a[o][1]/s,c=a[o][0]/s;else try{l=r[1],c=r[0]}catch(e){throw new Error("Invalid format: "+r)}if("p"===e||"portrait"===e){if(e="p",l<c){var u=c;c=l,l=u}}else{if("l"!==e&&"landscape"!==e)throw"Invalid orientation: "+e;e="l",c<l&&(u=c,c=l,l=u)}return{width:c,height:l,unit:n,k:s}},S.html=function(t,e){(e=e||{}).callback=e.callback||function(){},e.html2canvas=e.html2canvas||{},e.html2canvas.canvas=e.html2canvas.canvas||this.canvas,e.jsPDF=e.jsPDF||this,e.jsPDF;var n=new k(e);return e.worker?n:n.from(t).doCallback()},dt.API.addJS=function(t){return _=t,this.internal.events.subscribe("postPutResources",function(t){C=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/Names [(EmbeddedJS) "+(C+1)+" 0 R]"),this.internal.out(">>"),this.internal.out("endobj"),O=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /JavaScript"),this.internal.out("/JS ("+_+")"),this.internal.out(">>"),this.internal.out("endobj")}),this.internal.events.subscribe("putCatalog",function(){void 0!==C&&void 0!==O&&this.internal.out("/Names <</JavaScript "+C+" 0 R>>")+}),this},(P=dt.API).events.push(["postPutResources",function(){var t=this,e=/^(\d+) 0 obj$/;if(0<this.outline.root.children.length)for(var n=t.outline.render().split(/\r\n/),r=0;r<n.length;r++){var i=n[r],o=e.exec(i);if(null!=o){var a=o[1];t.internal.newObjectDeferredBegin(a,!1)}t.internal.write(i)}if(this.outline.createNamedDestinations){var s=this.internal.pages.length,l=[];for(r=0;r<s;r++){var c=t.internal.newObject();l.push(c);var u=t.internal.getPageInfo(r+1);t.internal.write("<< /D["+u.objId+" 0 R /XYZ null null null]>> endobj")}var f=t.internal.newObject();for(t.internal.write("<< /Names [ "),r=0;r<l.length;r++)t.internal.write("(page_"+(r+1)+")"+l[r]+" 0 R");t.internal.write(" ] >>","endobj"),t.internal.newObject(),t.internal.write("<< /Dests "+f+" 0 R"),t.internal.write(">>","endobj")}}]),P.events.push(["putCatalog",function(){0<this.outline.root.children.length&&(this.internal.write("/Outlines",this.outline.makeRef(this.outline.root)),this.outline.createNamedDestinations&&this.internal.write("/Names "+namesOid+" 0 R"))}]),P.events.push(["initialized",function(){var t=this;t.outline={createNamedDestinations:!1,root:{children:[]}},t.outline.add=function(t,e,n){var r={title:e,options:n,children:[]};return null==t&&(t=this.root),t.children.push(r),r},t.outline.render=function(){return this.ctx={},this.ctx.val="",this.ctx.pdf=t,this.genIds_r(this.root),this.renderRoot(this.root),this.renderItems(this.root),this.ctx.val},t.outline.genIds_r=function(e){e.id=t.internal.newObjectDeferred();for(var n=0;n<e.children.length;n++)this.genIds_r(e.children[n])},t.outline.renderRoot=function(t){this.objStart(t),this.line("/Type /Outlines"),0<t.children.length&&(this.line("/First "+this.makeRef(t.children[0])),this.line("/Last "+this.makeRef(t.children[t.children.length-1]))),this.line("/Count "+this.count_r({count:0},t)),this.objEnd()},t.outline.renderItems=function(e){this.ctx.pdf.internal.getCoordinateString;for(var n=this.ctx.pdf.internal.getVerticalCoordinateString,r=0;r<e.children.length;r++){var i=e.children[r];this.objStart(i),this.line("/Title "+this.makeString(i.title)),this.line("/Parent "+this.makeRef(e)),0<r&&this.line("/Prev "+this.makeRef(e.children[r-1])),r<e.children.length-1&&this.line("/Next "+this.makeRef(e.children[r+1])),0<i.children.length&&(this.line("/First "+this.makeRef(i.children[0])),this.line("/Last "+this.makeRef(i.children[i.children.length-1])));var o=this.count=this.count_r({count:0},i);if(0<o&&this.line("/Count "+o),i.options&&i.options.pageNumber){var a=t.internal.getPageInfo(i.options.pageNumber);this.line("/Dest ["+a.objId+" 0 R /XYZ 0 "+n(0)+" 0]")}this.objEnd()}for(r=0;r<e.children.length;r++)i=e.children[r],this.renderItems(i)},t.outline.line=function(t){this.ctx.val+=t+"\r\n"},t.outline.makeRef=function(t){return t.id+" 0 R"},t.outline.makeString=function(e){return"("+t.internal.pdfEscape(e)+")"},t.outline.objStart=function(t){this.ctx.val+="\r\n"+t.id+" 0 obj\r\n<<\r\n"},t.outline.objEnd=function(t){this.ctx.val+=">> \r\nendobj\r\n"},t.outline.count_r=function(t,e){for(var n=0;n<e.children.length;n++)t.count++,this.count_r(t,e.children[n]);return t.count}}]),I=dt.API,T=function(){var t="function"==typeof Deflater;if(!t)throw new Error("requires deflate.js for compression");return t},E=function(t,e,n,r){var i=5,o=D;switch(r){case I.image_compression.FAST:i=3,o=M;break;case I.image_compression.MEDIUM:i=6,o=q;break;case I.image_compression.SLOW:i=9,o=U}t=R(t,e,n,o);var a=new Uint8Array(j(i)),s=F(t),l=new Deflater(i),c=l.append(t),u=l.flush(),f=a.length+c.length+u.length,h=new Uint8Array(f+4);return h.set(a),h.set(c,a.length),h.set(u,a.length+c.length),h[f++]=s>>>24&255,h[f++]=s>>>16&255,h[f++]=s>>>8&255,h[f++]=255&s,I.arrayBufferToBinaryString(h)},j=function(t,e){var n=Math.LOG2E*Math.log(32768)-8<<4|8,r=n<<8;return r|=Math.min(3,(e-1&255)>>1)<<6,r|=0,[n,255&(r+=31-r%31)]},F=function(t,e){for(var n,r=1,i=0,o=t.length,a=0;0<o;){for(o-=n=e<o?e:o;i+=r+=t[a++],--n;);r%=65521,i%=65521}return(i<<16|r)>>>0},R=function(t,e,n,r){for(var i,o,a,s=t.length/e,l=new Uint8Array(t.length+s),c=H(),u=0;u<s;u++){if(a=u*e,i=t.subarray(a,a+e),r)l.set(r(i,n,o),a+u);else{for(var f=0,h=c.length,d=[];f<h;f++)d[f]=c[f](i,n,o);var p=$(d.concat());l.set(d[p],a+u)}o=i}return l},B=function(t,e,n){var r=Array.apply([],t);return r.unshift(0),r},M=function(t,e,n){var r,i=[],o=0,a=t.length;for(i[0]=1;o<a;o++)r=t[o-e]||0,i[o+1]=t[o]-r+256&255;return i},D=function(t,e,n){var r,i=[],o=0,a=t.length;for(i[0]=2;o<a;o++)r=n&&n[o]||0,i[o+1]=t[o]-r+256&255;return i},q=function(t,e,n){var r,i,o=[],a=0,s=t.length;for(o[0]=3;a<s;a++)r=t[a-e]||0,i=n&&n[a]||0,o[a+1]=t[a]+256-(r+i>>>1)&255;return o},U=function(t,e,n){var r,i,o,a,s=[],l=0,c=t.length;for(s[0]=4;l<c;l++)r=t[l-e]||0,i=n&&n[l]||0,o=n&&n[l-e]||0,a=z(r,i,o),s[l+1]=t[l]-a+256&255;return s},z=function(t,e,n){var r=t+e-n,i=Math.abs(r-t),o=Math.abs(r-e),a=Math.abs(r-n);return i<=o&&i<=a?t:o<=a?e:n},H=function(){return[B,M,D,q,U]},$=function(t){for(var e,n,r,i=0,o=t.length;i<o;)((e=V(t[i].slice(1)))<n||!n)&&(n=e,r=i),i++;return r},V=function(t){for(var e=0,n=t.length,r=0;e<n;)r+=Math.abs(t[e++]);return r},I.processPNG=function(t,e,n,r,i){var o,a,s,l,c,u,f=this.color_spaces.DEVICE_RGB,h=this.decode.FLATE_DECODE,d=8;if(this.isArrayBuffer(t)&&(t=new Uint8Array(t)),this.isArrayBufferView(t)){if("function"!=typeof PNG||"function"!=typeof It)throw new Error("PNG support requires png.js and zlib.js");if(t=(o=new PNG(t)).imgData,d=o.bits,f=o.colorSpace,l=o.colors,-1!==[4,6].indexOf(o.colorType)){if(8===o.bits)for(var p,g=(k=32==o.pixelBitlength?new Uint32Array(o.decodePixels().buffer):16==o.pixelBitlength?new Uint16Array(o.decodePixels().buffer):new Uint8Array(o.decodePixels().buffer)).length,m=new Uint8Array(g*o.colors),v=new Uint8Array(g),y=o.pixelBitlength-o.bits,b=0,w=0;b<g;b++){for(x=k[b],p=0;p<y;)m[w++]=x>>>p&255,p+=o.bits;v[b]=x>>>p&255}if(16===o.bits){g=(k=new Uint32Array(o.decodePixels().buffer)).length,m=new Uint8Array(g*(32/o.pixelBitlength)*o.colors),v=new Uint8Array(g*(32/o.pixelBitlength));for(var x,S=1<o.colors,A=w=b=0;b<g;)x=k[b++],m[w++]=x>>>0&255,S&&(m[w++]=x>>>16&255,x=k[b++],m[w++]=x>>>0&255),v[A++]=x>>>16&255;d=8}r!==I.image_compression.NONE&&T()?(t=E(m,o.width*o.colors,o.colors,r),u=E(v,o.width,1,r)):(t=m,u=v,h=null)}if(3===o.colorType&&(f=this.color_spaces.INDEXED,c=o.palette,o.transparency.indexed)){var N=o.transparency.indexed,L=0;for(b=0,g=N.length;b<g;++b)L+=N[b];if((L/=255)==g-1&&-1!==N.indexOf(0))s=[N.indexOf(0)];else if(L!==g){var k=o.decodePixels();for(v=new Uint8Array(k.length),b=0,g=k.length;b<g;b++)v[b]=N[k[b]];u=E(v,o.width,1)}}var C=function(t){var e;switch(t){case I.image_compression.FAST:e=11;break;case I.image_compression.MEDIUM:e=13;break;case I.image_compression.SLOW:e=14;break;default:e=12}return e}(r);return a=h===this.decode.FLATE_DECODE?"/Predictor "+C+" /Colors "+l+" /BitsPerComponent "+d+" /Columns "+o.width:"/Colors "+l+" /BitsPerComponent "+d+" /Columns "+o.width,(this.isArrayBuffer(t)||this.isArrayBufferView(t))&&(t=this.arrayBufferToBinaryString(t)),(u&&this.isArrayBuffer(u)||this.isArrayBufferView(u))&&(u=this.arrayBufferToBinaryString(u)),this.createImageInfo(t,o.width,o.height,f,d,h,e,n,a,s,c,u,C)}throw new Error("Unsupported PNG image data, try using JPEG instead.")},(W=dt.API).processGIF89A=function(t,n,i,o,a){var s=new e(t),l=s.width,c=s.height,u=[];s.decodeAndBlitFrameRGBA(0,u);var f={data:u,width:l,height:c},h=new r(100).encode(f,100);return W.processJPEG.call(this,h,n,i,o)},W.processGIF87A=W.processGIF89A,(G=dt.API).processBMP=function(t,e,n,o,a){var s=new i(t,!1),l=s.width,c=s.height,u={data:s.getData(),width:l,height:c},f=new r(100).encode(u,100);return G.processJPEG.call(this,f,e,n,o)},dt.API.setLanguage=function(t){return void 0===this.internal.languageSettings&&(this.internal.languageSettings={},this.internal.languageSettings.isSubscribed=!1),void 0!=={af:"Afrikaans",sq:"Albanian",ar:"Arabic (Standard)","ar-DZ":"Arabic (Algeria)","ar-BH":"Arabic (Bahrain)","ar-EG":"Arabic (Egypt)","ar-IQ":"Arabic (Iraq)","ar-JO":"Arabic (Jordan)","ar-KW":"Arabic (Kuwait)","ar-LB":"Arabic (Lebanon)","ar-LY":"Arabic (Libya)","ar-MA":"Arabic (Morocco)","ar-OM":"Arabic (Oman)","ar-QA":"Arabic (Qatar)","ar-SA":"Arabic (Saudi Arabia)","ar-SY":"Arabic (Syria)","ar-TN":"Arabic (Tunisia)","ar-AE":"Arabic (U.A.E.)","ar-YE":"Arabic (Yemen)",an:"Aragonese",hy:"Armenian",as:"Assamese",ast:"Asturian",az:"Azerbaijani",eu:"Basque",be:"Belarusian",bn:"Bengali",bs:"Bosnian",br:"Breton",bg:"Bulgarian",my:"Burmese",ca:"Catalan",ch:"Chamorro",ce:"Chechen",zh:"Chinese","zh-HK":"Chinese (Hong Kong)","zh-CN":"Chinese (PRC)","zh-SG":"Chinese (Singapore)","zh-TW":"Chinese (Taiwan)",cv:"Chuvash",co:"Corsican",cr:"Cree",hr:"Croatian",cs:"Czech",da:"Danish",nl:"Dutch (Standard)","nl-BE":"Dutch (Belgian)",en:"English","en-AU":"English (Australia)","en-BZ":"English (Belize)","en-CA":"English (Canada)","en-IE":"English (Ireland)","en-JM":"English (Jamaica)","en-NZ":"English (New Zealand)","en-PH":"English (Philippines)","en-ZA":"English (South Africa)","en-TT":"English (Trinidad & Tobago)","en-GB":"English (United Kingdom)","en-US":"English (United States)","en-ZW":"English (Zimbabwe)",eo:"Esperanto",et:"Estonian",fo:"Faeroese",fj:"Fijian",fi:"Finnish",fr:"French (Standard)","fr-BE":"French (Belgium)","fr-CA":"French (Canada)","fr-FR":"French (France)","fr-LU":"French (Luxembourg)","fr-MC":"French (Monaco)","fr-CH":"French (Switzerland)",fy:"Frisian",fur:"Friulian",gd:"Gaelic (Scots)","gd-IE":"Gaelic (Irish)",gl:"Galacian",ka:"Georgian",de:"German (Standard)","de-AT":"German (Austria)","de-DE":"German (Germany)","de-LI":"German (Liechtenstein)","de-LU":"German (Luxembourg)","de-CH":"German (Switzerland)",el:"Greek",gu:"Gujurati",ht:"Haitian",he:"Hebrew",hi:"Hindi",hu:"Hungarian",is:"Icelandic",id:"Indonesian",iu:"Inuktitut",ga:"Irish",it:"Italian (Standard)","it-CH":"Italian (Switzerland)",ja:"Japanese",kn:"Kannada",ks:"Kashmiri",kk:"Kazakh",km:"Khmer",ky:"Kirghiz",tlh:"Klingon",ko:"Korean","ko-KP":"Korean (North Korea)","ko-KR":"Korean (South Korea)",la:"Latin",lv:"Latvian",lt:"Lithuanian",lb:"Luxembourgish",mk:"FYRO Macedonian",ms:"Malay",ml:"Malayalam",mt:"Maltese",mi:"Maori",mr:"Marathi",mo:"Moldavian",nv:"Navajo",ng:"Ndonga",ne:"Nepali",no:"Norwegian",nb:"Norwegian (Bokmal)",nn:"Norwegian (Nynorsk)",oc:"Occitan",or:"Oriya",om:"Oromo",fa:"Persian","fa-IR":"Persian/Iran",pl:"Polish",pt:"Portuguese","pt-BR":"Portuguese (Brazil)",pa:"Punjabi","pa-IN":"Punjabi (India)","pa-PK":"Punjabi (Pakistan)",qu:"Quechua",rm:"Rhaeto-Romanic",ro:"Romanian","ro-MO":"Romanian (Moldavia)",ru:"Russian","ru-MO":"Russian (Moldavia)",sz:"Sami (Lappish)",sg:"Sango",sa:"Sanskrit",sc:"Sardinian",sd:"Sindhi",si:"Singhalese",sr:"Serbian",sk:"Slovak",sl:"Slovenian",so:"Somani",sb:"Sorbian",es:"Spanish","es-AR":"Spanish (Argentina)","es-BO":"Spanish (Bolivia)","es-CL":"Spanish (Chile)","es-CO":"Spanish (Colombia)","es-CR":"Spanish (Costa Rica)","es-DO":"Spanish (Dominican Republic)","es-EC":"Spanish (Ecuador)","es-SV":"Spanish (El Salvador)","es-GT":"Spanish (Guatemala)","es-HN":"Spanish (Honduras)","es-MX":"Spanish (Mexico)","es-NI":"Spanish (Nicaragua)","es-PA":"Spanish (Panama)","es-PY":"Spanish (Paraguay)","es-PE":"Spanish (Peru)","es-PR":"Spanish (Puerto Rico)","es-ES":"Spanish (Spain)","es-UY":"Spanish (Uruguay)","es-VE":"Spanish (Venezuela)",sx:"Sutu",sw:"Swahili",sv:"Swedish","sv-FI":"Swedish (Finland)","sv-SV":"Swedish (Sweden)",ta:"Tamil",tt:"Tatar",te:"Teluga",th:"Thai",tig:"Tigre",ts:"Tsonga",tn:"Tswana",tr:"Turkish",tk:"Turkmen",uk:"Ukrainian",hsb:"Upper Sorbian",ur:"Urdu",ve:"Venda",vi:"Vietnamese",vo:"Volapuk",wa:"Walloon",cy:"Welsh",xh:"Xhosa",ji:"Yiddish",zu:"Zulu"}[t]&&(this.internal.languageSettings.languageCode=t,!1===this.internal.languageSettings.isSubscribed&&(this.internal.events.subscribe("putCatalog",function(){this.internal.write("/Lang ("+this.internal.languageSettings.languageCode+")")}),this.internal.languageSettings.isSubscribed=!0)),this},Y=dt.API,J=Y.getCharWidthsArray=function(t,e){var n,r,i,o=(e=e||{}).font||this.internal.getFont(),a=e.fontSize||this.internal.getFontSize(),s=e.charSpace||this.internal.getCharSpace(),l=e.widths?e.widths:o.metadata.Unicode.widths,c=l.fof?l.fof:1,u=e.kerning?e.kerning:o.metadata.Unicode.kerning,f=u.fof?u.fof:1,h=0,d=l[0]||c,p=[];for(n=0,r=t.length;n<r;n++)i=t.charCodeAt(n),"function"==typeof o.metadata.widthOfString?p.push((o.metadata.widthOfGlyph(o.metadata.characterToGlyph(i))+s*(1e3/a)||0)/1e3):p.push((l[i]||d)/c+(u[i]&&u[i][h]||0)/f),h=i;return p},X=Y.getArraySum=function(t){for(var e=t.length,n=0;e;)n+=t[--e];return n},K=Y.getStringUnitWidth=function(t,e){var n=(e=e||{}).fontSize||this.internal.getFontSize(),r=e.font||this.internal.getFont(),i=e.charSpace||this.internal.getCharSpace();return"function"==typeof r.metadata.widthOfString?r.metadata.widthOfString(t,n,i)/n:X(J.apply(this,arguments))},Q=function(t,e,n,r){for(var i=[],o=0,a=t.length,s=0;o!==a&&s+e[o]<n;)s+=e[o],o++;i.push(t.slice(0,o));var l=o;for(s=0;o!==a;)s+e[o]>r&&(i.push(t.slice(l,o)),s=0,l=o),s+=e[o],o++;return l!==o&&i.push(t.slice(l,o)),i},Z=function(t,e,n){n||(n={});var r,i,o,a,s,l,c=[],u=[c],f=n.textIndent||0,h=0,d=0,p=t.split(" "),g=J.apply(this,[" ",n])[0];if(l=-1===n.lineIndent?p[0].length+2:n.lineIndent||0){var m=Array(l).join(" "),v=[];p.map(function(t){1<(t=t.split(/\s*\n/)).length?v=v.concat(t.map(function(t,e){return(e&&t.length?"\n":"")+t})):v.push(t[0])}),p=v,l=K.apply(this,[m,n])}for(o=0,a=p.length;o<a;o++){var y=0;if(r=p[o],l&&"\n"==r[0]&&(r=r.substr(1),y=1),i=J.apply(this,[r,n]),e<f+h+(d=X(i))||y){if(e<d){for(s=Q.apply(this,[r,i,e-(f+h),e]),c.push(s.shift()),c=[s.pop()];s.length;)u.push([s.shift()]);d=X(i.slice(r.length-(c[0]?c[0].length:0)))}else c=[r];u.push(c),f=d+l,h=g}else c.push(r),f+=h+d,h=g}if(l)var b=function(t,e){return(e?m:"")+t.join(" ")};else b=function(t){return t.join(" ")};return u.map(b)},Y.splitTextToSize=function(t,e,n){var r,i=(n=n||{}).fontSize||this.internal.getFontSize(),o=function(t){var e={0:1},n={};if(t.widths&&t.kerning)return{widths:t.widths,kerning:t.kerning};var r=this.internal.getFont(t.fontName,t.fontStyle),i="Unicode";return r.metadata[i]?{widths:r.metadata[i].widths||e,kerning:r.metadata[i].kerning||n}:{font:r.metadata,fontSize:this.internal.getFontSize(),charSpace:this.internal.getCharSpace()}}.call(this,n);r=Array.isArray(t)?t:t.split(/\r?\n/);var a=1*this.internal.scaleFactor*e/i;o.textIndent=n.textIndent?1*n.textIndent*this.internal.scaleFactor/i:0,o.lineIndent=n.lineIndent;var s,l,c=[];for(s=0,l=r.length;s<l;s++)c=c.concat(Z.apply(this,[r[s],a,o]));return c},tt=dt.API,nt={codePages:["WinAnsiEncoding"],WinAnsiEncoding:(et=function(t){for(var e="klmnopqrstuvwxyz",n={},r=0;r<e.length;r++)n[e[r]]="0123456789abcdef"[r];var i,o,a,s,l,c={},u=1,f=c,h=[],d="",p="",g=t.length-1;for(r=1;r!=g;)l=t[r],r+=1,"'"==l?o=o?(s=o.join(""),i):[]:o?o.push(l):"{"==l?(h.push([f,s]),f={},s=i):"}"==l?((a=h.pop())[0][a[1]]=f,s=i,f=a[0]):"-"==l?u=-1:s===i?n.hasOwnProperty(l)?(d+=n[l],s=parseInt(d,16)*u,u=1,d=""):d+=l:n.hasOwnProperty(l)?(p+=n[l],f[s]=parseInt(p,16)*u,u=1,s=i,p=""):p+=l;return c})("{19m8n201n9q201o9r201s9l201t9m201u8m201w9n201x9o201y8o202k8q202l8r202m9p202q8p20aw8k203k8t203t8v203u9v2cq8s212m9t15m8w15n9w2dw9s16k8u16l9u17s9z17x8y17y9y}")},rt={Unicode:{Courier:nt,"Courier-Bold":nt,"Courier-BoldOblique":nt,"Courier-Oblique":nt,Helvetica:nt,"Helvetica-Bold":nt,"Helvetica-BoldOblique":nt,"Helvetica-Oblique":nt,"Times-Roman":nt,"Times-Bold":nt,"Times-BoldItalic":nt,"Times-Italic":nt}},it={Unicode:{"Courier-Oblique":et("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-BoldItalic":et("{'widths'{k3o2q4ycx2r201n3m201o6o201s2l201t2l201u2l201w3m201x3m201y3m2k1t2l2r202m2n2n3m2o3m2p5n202q6o2r1w2s2l2t2l2u3m2v3t2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w3t3x3t3y3t3z3m4k5n4l4m4m4m4n4m4o4s4p4m4q4m4r4s4s4y4t2r4u3m4v4m4w3x4x5t4y4s4z4s5k3x5l4s5m4m5n3r5o3x5p4s5q4m5r5t5s4m5t3x5u3x5v2l5w1w5x2l5y3t5z3m6k2l6l3m6m3m6n2w6o3m6p2w6q2l6r3m6s3r6t1w6u1w6v3m6w1w6x4y6y3r6z3m7k3m7l3m7m2r7n2r7o1w7p3r7q2w7r4m7s3m7t2w7u2r7v2n7w1q7x2n7y3t202l3mcl4mal2ram3man3mao3map3mar3mas2lat4uau1uav3maw3way4uaz2lbk2sbl3t'fof'6obo2lbp3tbq3mbr1tbs2lbu1ybv3mbz3mck4m202k3mcm4mcn4mco4mcp4mcq5ycr4mcs4mct4mcu4mcv4mcw2r2m3rcy2rcz2rdl4sdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek3mel3mem3men3meo3mep3meq4ser2wes2wet2weu2wev2wew1wex1wey1wez1wfl3rfm3mfn3mfo3mfp3mfq3mfr3tfs3mft3rfu3rfv3rfw3rfz2w203k6o212m6o2dw2l2cq2l3t3m3u2l17s3x19m3m}'kerning'{cl{4qu5kt5qt5rs17ss5ts}201s{201ss}201t{cks4lscmscnscoscpscls2wu2yu201ts}201x{2wu2yu}2k{201ts}2w{4qx5kx5ou5qx5rs17su5tu}2x{17su5tu5ou}2y{4qx5kx5ou5qx5rs17ss5ts}'fof'-6ofn{17sw5tw5ou5qw5rs}7t{cksclscmscnscoscps4ls}3u{17su5tu5os5qs}3v{17su5tu5os5qs}7p{17su5tu}ck{4qu5kt5qt5rs17ss5ts}4l{4qu5kt5qt5rs17ss5ts}cm{4qu5kt5qt5rs17ss5ts}cn{4qu5kt5qt5rs17ss5ts}co{4qu5kt5qt5rs17ss5ts}cp{4qu5kt5qt5rs17ss5ts}6l{4qu5ou5qw5rt17su5tu}5q{ckuclucmucnucoucpu4lu}5r{ckuclucmucnucoucpu4lu}7q{cksclscmscnscoscps4ls}6p{4qu5ou5qw5rt17sw5tw}ek{4qu5ou5qw5rt17su5tu}el{4qu5ou5qw5rt17su5tu}em{4qu5ou5qw5rt17su5tu}en{4qu5ou5qw5rt17su5tu}eo{4qu5ou5qw5rt17su5tu}ep{4qu5ou5qw5rt17su5tu}es{17ss5ts5qs4qu}et{4qu5ou5qw5rt17sw5tw}eu{4qu5ou5qw5rt17ss5ts}ev{17ss5ts5qs4qu}6z{17sw5tw5ou5qw5rs}fm{17sw5tw5ou5qw5rs}7n{201ts}fo{17sw5tw5ou5qw5rs}fp{17sw5tw5ou5qw5rs}fq{17sw5tw5ou5qw5rs}7r{cksclscmscnscoscps4ls}fs{17sw5tw5ou5qw5rs}ft{17su5tu}fu{17su5tu}fv{17su5tu}fw{17su5tu}fz{cksclscmscnscoscps4ls}}}"),"Helvetica-Bold":et("{'widths'{k3s2q4scx1w201n3r201o6o201s1w201t1w201u1w201w3m201x3m201y3m2k1w2l2l202m2n2n3r2o3r2p5t202q6o2r1s2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v2l3w3u3x3u3y3u3z3x4k6l4l4s4m4s4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3r4v4s4w3x4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v2l5w1w5x2l5y3u5z3r6k2l6l3r6m3x6n3r6o3x6p3r6q2l6r3x6s3x6t1w6u1w6v3r6w1w6x5t6y3x6z3x7k3x7l3x7m2r7n3r7o2l7p3x7q3r7r4y7s3r7t3r7u3m7v2r7w1w7x2r7y3u202l3rcl4sal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3xbq3rbr1wbs2lbu2obv3rbz3xck4s202k3rcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw1w2m2zcy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3res3ret3reu3rev3rew1wex1wey1wez1wfl3xfm3xfn3xfo3xfp3xfq3xfr3ufs3xft3xfu3xfv3xfw3xfz3r203k6o212m6o2dw2l2cq2l3t3r3u2l17s4m19m3r}'kerning'{cl{4qs5ku5ot5qs17sv5tv}201t{2ww4wy2yw}201w{2ks}201x{2ww4wy2yw}2k{201ts201xs}2w{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}2x{5ow5qs}2y{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}'fof'-6o7p{17su5tu5ot}ck{4qs5ku5ot5qs17sv5tv}4l{4qs5ku5ot5qs17sv5tv}cm{4qs5ku5ot5qs17sv5tv}cn{4qs5ku5ot5qs17sv5tv}co{4qs5ku5ot5qs17sv5tv}cp{4qs5ku5ot5qs17sv5tv}6l{17st5tt5os}17s{2kwclvcmvcnvcovcpv4lv4wwckv}5o{2kucltcmtcntcotcpt4lt4wtckt}5q{2ksclscmscnscoscps4ls4wvcks}5r{2ks4ws}5t{2kwclvcmvcnvcovcpv4lv4wwckv}eo{17st5tt5os}fu{17su5tu5ot}6p{17ss5ts}ek{17st5tt5os}el{17st5tt5os}em{17st5tt5os}en{17st5tt5os}6o{201ts}ep{17st5tt5os}es{17ss5ts}et{17ss5ts}eu{17ss5ts}ev{17ss5ts}6z{17su5tu5os5qt}fm{17su5tu5os5qt}fn{17su5tu5os5qt}fo{17su5tu5os5qt}fp{17su5tu5os5qt}fq{17su5tu5os5qt}fs{17su5tu5os5qt}ft{17su5tu5ot}7m{5os}fv{17su5tu5ot}fw{17su5tu5ot}}}"),Courier:et("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-BoldOblique":et("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Bold":et("{'widths'{k3q2q5ncx2r201n3m201o6o201s2l201t2l201u2l201w3m201x3m201y3m2k1t2l2l202m2n2n3m2o3m2p6o202q6o2r1w2s2l2t2l2u3m2v3t2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w3t3x3t3y3t3z3m4k5x4l4s4m4m4n4s4o4s4p4m4q3x4r4y4s4y4t2r4u3m4v4y4w4m4x5y4y4s4z4y5k3x5l4y5m4s5n3r5o4m5p4s5q4s5r6o5s4s5t4s5u4m5v2l5w1w5x2l5y3u5z3m6k2l6l3m6m3r6n2w6o3r6p2w6q2l6r3m6s3r6t1w6u2l6v3r6w1w6x5n6y3r6z3m7k3r7l3r7m2w7n2r7o2l7p3r7q3m7r4s7s3m7t3m7u2w7v2r7w1q7x2r7y3o202l3mcl4sal2lam3man3mao3map3mar3mas2lat4uau1yav3maw3tay4uaz2lbk2sbl3t'fof'6obo2lbp3rbr1tbs2lbu2lbv3mbz3mck4s202k3mcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw2r2m3rcy2rcz2rdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3rek3mel3mem3men3meo3mep3meq4ser2wes2wet2weu2wev2wew1wex1wey1wez1wfl3rfm3mfn3mfo3mfp3mfq3mfr3tfs3mft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3m3u2l17s4s19m3m}'kerning'{cl{4qt5ks5ot5qy5rw17sv5tv}201t{cks4lscmscnscoscpscls4wv}2k{201ts}2w{4qu5ku7mu5os5qx5ru17su5tu}2x{17su5tu5ou5qs}2y{4qv5kv7mu5ot5qz5ru17su5tu}'fof'-6o7t{cksclscmscnscoscps4ls}3u{17su5tu5os5qu}3v{17su5tu5os5qu}fu{17su5tu5ou5qu}7p{17su5tu5ou5qu}ck{4qt5ks5ot5qy5rw17sv5tv}4l{4qt5ks5ot5qy5rw17sv5tv}cm{4qt5ks5ot5qy5rw17sv5tv}cn{4qt5ks5ot5qy5rw17sv5tv}co{4qt5ks5ot5qy5rw17sv5tv}cp{4qt5ks5ot5qy5rw17sv5tv}6l{17st5tt5ou5qu}17s{ckuclucmucnucoucpu4lu4wu}5o{ckuclucmucnucoucpu4lu4wu}5q{ckzclzcmzcnzcozcpz4lz4wu}5r{ckxclxcmxcnxcoxcpx4lx4wu}5t{ckuclucmucnucoucpu4lu4wu}7q{ckuclucmucnucoucpu4lu}6p{17sw5tw5ou5qu}ek{17st5tt5qu}el{17st5tt5ou5qu}em{17st5tt5qu}en{17st5tt5qu}eo{17st5tt5qu}ep{17st5tt5ou5qu}es{17ss5ts5qu}et{17sw5tw5ou5qu}eu{17sw5tw5ou5qu}ev{17ss5ts5qu}6z{17sw5tw5ou5qu5rs}fm{17sw5tw5ou5qu5rs}fn{17sw5tw5ou5qu5rs}fo{17sw5tw5ou5qu5rs}fp{17sw5tw5ou5qu5rs}fq{17sw5tw5ou5qu5rs}7r{cktcltcmtcntcotcpt4lt5os}fs{17sw5tw5ou5qu5rs}ft{17su5tu5ou5qu}7m{5os}fv{17su5tu5ou5qu}fw{17su5tu5ou5qu}fz{cksclscmscnscoscps4ls}}}"),Symbol:et("{'widths'{k3uaw4r19m3m2k1t2l2l202m2y2n3m2p5n202q6o3k3m2s2l2t2l2v3r2w1t3m3m2y1t2z1wbk2sbl3r'fof'6o3n3m3o3m3p3m3q3m3r3m3s3m3t3m3u1w3v1w3w3r3x3r3y3r3z2wbp3t3l3m5v2l5x2l5z3m2q4yfr3r7v3k7w1o7x3k}'kerning'{'fof'-6o}}"),Helvetica:et("{'widths'{k3p2q4mcx1w201n3r201o6o201s1q201t1q201u1q201w2l201x2l201y2l2k1w2l1w202m2n2n3r2o3r2p5t202q6o2r1n2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v1w3w3u3x3u3y3u3z3r4k6p4l4m4m4m4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3m4v4m4w3r4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v1w5w1w5x1w5y2z5z3r6k2l6l3r6m3r6n3m6o3r6p3r6q1w6r3r6s3r6t1q6u1q6v3m6w1q6x5n6y3r6z3r7k3r7l3r7m2l7n3m7o1w7p3r7q3m7r4s7s3m7t3m7u3m7v2l7w1u7x2l7y3u202l3rcl4mal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3rbr1wbs2lbu2obv3rbz3xck4m202k3rcm4mcn4mco4mcp4mcq6ocr4scs4mct4mcu4mcv4mcw1w2m2ncy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3mes3ret3reu3rev3rew1wex1wey1wez1wfl3rfm3rfn3rfo3rfp3rfq3rfr3ufs3xft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3r3u1w17s4m19m3r}'kerning'{5q{4wv}cl{4qs5kw5ow5qs17sv5tv}201t{2wu4w1k2yu}201x{2wu4wy2yu}17s{2ktclucmucnu4otcpu4lu4wycoucku}2w{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}2x{17sy5ty5oy5qs}2y{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}'fof'-6o7p{17sv5tv5ow}ck{4qs5kw5ow5qs17sv5tv}4l{4qs5kw5ow5qs17sv5tv}cm{4qs5kw5ow5qs17sv5tv}cn{4qs5kw5ow5qs17sv5tv}co{4qs5kw5ow5qs17sv5tv}cp{4qs5kw5ow5qs17sv5tv}6l{17sy5ty5ow}do{17st5tt}4z{17st5tt}7s{fst}dm{17st5tt}dn{17st5tt}5o{ckwclwcmwcnwcowcpw4lw4wv}dp{17st5tt}dq{17st5tt}7t{5ow}ds{17st5tt}5t{2ktclucmucnu4otcpu4lu4wycoucku}fu{17sv5tv5ow}6p{17sy5ty5ow5qs}ek{17sy5ty5ow}el{17sy5ty5ow}em{17sy5ty5ow}en{5ty}eo{17sy5ty5ow}ep{17sy5ty5ow}es{17sy5ty5qs}et{17sy5ty5ow5qs}eu{17sy5ty5ow5qs}ev{17sy5ty5ow5qs}6z{17sy5ty5ow5qs}fm{17sy5ty5ow5qs}fn{17sy5ty5ow5qs}fo{17sy5ty5ow5qs}fp{17sy5ty5qs}fq{17sy5ty5ow5qs}7r{5ow}fs{17sy5ty5ow5qs}ft{17sv5tv5ow}7m{5ow}fv{17sv5tv5ow}fw{17sv5tv5ow}}}"),"Helvetica-BoldOblique":et("{'widths'{k3s2q4scx1w201n3r201o6o201s1w201t1w201u1w201w3m201x3m201y3m2k1w2l2l202m2n2n3r2o3r2p5t202q6o2r1s2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v2l3w3u3x3u3y3u3z3x4k6l4l4s4m4s4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3r4v4s4w3x4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v2l5w1w5x2l5y3u5z3r6k2l6l3r6m3x6n3r6o3x6p3r6q2l6r3x6s3x6t1w6u1w6v3r6w1w6x5t6y3x6z3x7k3x7l3x7m2r7n3r7o2l7p3x7q3r7r4y7s3r7t3r7u3m7v2r7w1w7x2r7y3u202l3rcl4sal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3xbq3rbr1wbs2lbu2obv3rbz3xck4s202k3rcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw1w2m2zcy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3res3ret3reu3rev3rew1wex1wey1wez1wfl3xfm3xfn3xfo3xfp3xfq3xfr3ufs3xft3xfu3xfv3xfw3xfz3r203k6o212m6o2dw2l2cq2l3t3r3u2l17s4m19m3r}'kerning'{cl{4qs5ku5ot5qs17sv5tv}201t{2ww4wy2yw}201w{2ks}201x{2ww4wy2yw}2k{201ts201xs}2w{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}2x{5ow5qs}2y{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}'fof'-6o7p{17su5tu5ot}ck{4qs5ku5ot5qs17sv5tv}4l{4qs5ku5ot5qs17sv5tv}cm{4qs5ku5ot5qs17sv5tv}cn{4qs5ku5ot5qs17sv5tv}co{4qs5ku5ot5qs17sv5tv}cp{4qs5ku5ot5qs17sv5tv}6l{17st5tt5os}17s{2kwclvcmvcnvcovcpv4lv4wwckv}5o{2kucltcmtcntcotcpt4lt4wtckt}5q{2ksclscmscnscoscps4ls4wvcks}5r{2ks4ws}5t{2kwclvcmvcnvcovcpv4lv4wwckv}eo{17st5tt5os}fu{17su5tu5ot}6p{17ss5ts}ek{17st5tt5os}el{17st5tt5os}em{17st5tt5os}en{17st5tt5os}6o{201ts}ep{17st5tt5os}es{17ss5ts}et{17ss5ts}eu{17ss5ts}ev{17ss5ts}6z{17su5tu5os5qt}fm{17su5tu5os5qt}fn{17su5tu5os5qt}fo{17su5tu5os5qt}fp{17su5tu5os5qt}fq{17su5tu5os5qt}fs{17su5tu5os5qt}ft{17su5tu5ot}7m{5os}fv{17su5tu5ot}fw{17su5tu5ot}}}"),ZapfDingbats:et("{'widths'{k4u2k1w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-Bold":et("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Italic":et("{'widths'{k3n2q4ycx2l201n3m201o5t201s2l201t2l201u2l201w3r201x3r201y3r2k1t2l2l202m2n2n3m2o3m2p5n202q5t2r1p2s2l2t2l2u3m2v4n2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w4n3x4n3y4n3z3m4k5w4l3x4m3x4n4m4o4s4p3x4q3x4r4s4s4s4t2l4u2w4v4m4w3r4x5n4y4m4z4s5k3x5l4s5m3x5n3m5o3r5p4s5q3x5r5n5s3x5t3r5u3r5v2r5w1w5x2r5y2u5z3m6k2l6l3m6m3m6n2w6o3m6p2w6q1w6r3m6s3m6t1w6u1w6v2w6w1w6x4s6y3m6z3m7k3m7l3m7m2r7n2r7o1w7p3m7q2w7r4m7s2w7t2w7u2r7v2s7w1v7x2s7y3q202l3mcl3xal2ram3man3mao3map3mar3mas2lat4wau1vav3maw4nay4waz2lbk2sbl4n'fof'6obo2lbp3mbq3obr1tbs2lbu1zbv3mbz3mck3x202k3mcm3xcn3xco3xcp3xcq5tcr4mcs3xct3xcu3xcv3xcw2l2m2ucy2lcz2ldl4mdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek3mel3mem3men3meo3mep3meq4mer2wes2wet2weu2wev2wew1wex1wey1wez1wfl3mfm3mfn3mfo3mfp3mfq3mfr4nfs3mft3mfu3mfv3mfw3mfz2w203k6o212m6m2dw2l2cq2l3t3m3u2l17s3r19m3m}'kerning'{cl{5kt4qw}201s{201sw}201t{201tw2wy2yy6q-t}201x{2wy2yy}2k{201tw}2w{7qs4qy7rs5ky7mw5os5qx5ru17su5tu}2x{17ss5ts5os}2y{7qs4qy7rs5ky7mw5os5qx5ru17su5tu}'fof'-6o6t{17ss5ts5qs}7t{5os}3v{5qs}7p{17su5tu5qs}ck{5kt4qw}4l{5kt4qw}cm{5kt4qw}cn{5kt4qw}co{5kt4qw}cp{5kt4qw}6l{4qs5ks5ou5qw5ru17su5tu}17s{2ks}5q{ckvclvcmvcnvcovcpv4lv}5r{ckuclucmucnucoucpu4lu}5t{2ks}6p{4qs5ks5ou5qw5ru17su5tu}ek{4qs5ks5ou5qw5ru17su5tu}el{4qs5ks5ou5qw5ru17su5tu}em{4qs5ks5ou5qw5ru17su5tu}en{4qs5ks5ou5qw5ru17su5tu}eo{4qs5ks5ou5qw5ru17su5tu}ep{4qs5ks5ou5qw5ru17su5tu}es{5ks5qs4qs}et{4qs5ks5ou5qw5ru17su5tu}eu{4qs5ks5qw5ru17su5tu}ev{5ks5qs4qs}ex{17ss5ts5qs}6z{4qv5ks5ou5qw5ru17su5tu}fm{4qv5ks5ou5qw5ru17su5tu}fn{4qv5ks5ou5qw5ru17su5tu}fo{4qv5ks5ou5qw5ru17su5tu}fp{4qv5ks5ou5qw5ru17su5tu}fq{4qv5ks5ou5qw5ru17su5tu}7r{5os}fs{4qv5ks5ou5qw5ru17su5tu}ft{17su5tu5qs}fu{17su5tu5qs}fv{17su5tu5qs}fw{17su5tu5qs}}}"),"Times-Roman":et("{'widths'{k3n2q4ycx2l201n3m201o6o201s2l201t2l201u2l201w2w201x2w201y2w2k1t2l2l202m2n2n3m2o3m2p5n202q6o2r1m2s2l2t2l2u3m2v3s2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v1w3w3s3x3s3y3s3z2w4k5w4l4s4m4m4n4m4o4s4p3x4q3r4r4s4s4s4t2l4u2r4v4s4w3x4x5t4y4s4z4s5k3r5l4s5m4m5n3r5o3x5p4s5q4s5r5y5s4s5t4s5u3x5v2l5w1w5x2l5y2z5z3m6k2l6l2w6m3m6n2w6o3m6p2w6q2l6r3m6s3m6t1w6u1w6v3m6w1w6x4y6y3m6z3m7k3m7l3m7m2l7n2r7o1w7p3m7q3m7r4s7s3m7t3m7u2w7v3k7w1o7x3k7y3q202l3mcl4sal2lam3man3mao3map3mar3mas2lat4wau1vav3maw3say4waz2lbk2sbl3s'fof'6obo2lbp3mbq2xbr1tbs2lbu1zbv3mbz2wck4s202k3mcm4scn4sco4scp4scq5tcr4mcs3xct3xcu3xcv3xcw2l2m2tcy2lcz2ldl4sdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek2wel2wem2wen2weo2wep2weq4mer2wes2wet2weu2wev2wew1wex1wey1wez1wfl3mfm3mfn3mfo3mfp3mfq3mfr3sfs3mft3mfu3mfv3mfw3mfz3m203k6o212m6m2dw2l2cq2l3t3m3u1w17s4s19m3m}'kerning'{cl{4qs5ku17sw5ou5qy5rw201ss5tw201ws}201s{201ss}201t{ckw4lwcmwcnwcowcpwclw4wu201ts}2k{201ts}2w{4qs5kw5os5qx5ru17sx5tx}2x{17sw5tw5ou5qu}2y{4qs5kw5os5qx5ru17sx5tx}'fof'-6o7t{ckuclucmucnucoucpu4lu5os5rs}3u{17su5tu5qs}3v{17su5tu5qs}7p{17sw5tw5qs}ck{4qs5ku17sw5ou5qy5rw201ss5tw201ws}4l{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cm{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cn{4qs5ku17sw5ou5qy5rw201ss5tw201ws}co{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cp{4qs5ku17sw5ou5qy5rw201ss5tw201ws}6l{17su5tu5os5qw5rs}17s{2ktclvcmvcnvcovcpv4lv4wuckv}5o{ckwclwcmwcnwcowcpw4lw4wu}5q{ckyclycmycnycoycpy4ly4wu5ms}5r{cktcltcmtcntcotcpt4lt4ws}5t{2ktclvcmvcnvcovcpv4lv4wuckv}7q{cksclscmscnscoscps4ls}6p{17su5tu5qw5rs}ek{5qs5rs}el{17su5tu5os5qw5rs}em{17su5tu5os5qs5rs}en{17su5qs5rs}eo{5qs5rs}ep{17su5tu5os5qw5rs}es{5qs}et{17su5tu5qw5rs}eu{17su5tu5qs5rs}ev{5qs}6z{17sv5tv5os5qx5rs}fm{5os5qt5rs}fn{17sv5tv5os5qx5rs}fo{17sv5tv5os5qx5rs}fp{5os5qt5rs}fq{5os5qt5rs}7r{ckuclucmucnucoucpu4lu5os}fs{17sv5tv5os5qx5rs}ft{17ss5ts5qs}fu{17sw5tw5qs}fv{17sw5tw5qs}fw{17ss5ts5qs}fz{ckuclucmucnucoucpu4lu5os5rs}}}"),"Helvetica-Oblique":et("{'widths'{k3p2q4mcx1w201n3r201o6o201s1q201t1q201u1q201w2l201x2l201y2l2k1w2l1w202m2n2n3r2o3r2p5t202q6o2r1n2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v1w3w3u3x3u3y3u3z3r4k6p4l4m4m4m4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3m4v4m4w3r4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v1w5w1w5x1w5y2z5z3r6k2l6l3r6m3r6n3m6o3r6p3r6q1w6r3r6s3r6t1q6u1q6v3m6w1q6x5n6y3r6z3r7k3r7l3r7m2l7n3m7o1w7p3r7q3m7r4s7s3m7t3m7u3m7v2l7w1u7x2l7y3u202l3rcl4mal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3rbr1wbs2lbu2obv3rbz3xck4m202k3rcm4mcn4mco4mcp4mcq6ocr4scs4mct4mcu4mcv4mcw1w2m2ncy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3mes3ret3reu3rev3rew1wex1wey1wez1wfl3rfm3rfn3rfo3rfp3rfq3rfr3ufs3xft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3r3u1w17s4m19m3r}'kerning'{5q{4wv}cl{4qs5kw5ow5qs17sv5tv}201t{2wu4w1k2yu}201x{2wu4wy2yu}17s{2ktclucmucnu4otcpu4lu4wycoucku}2w{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}2x{17sy5ty5oy5qs}2y{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}'fof'-6o7p{17sv5tv5ow}ck{4qs5kw5ow5qs17sv5tv}4l{4qs5kw5ow5qs17sv5tv}cm{4qs5kw5ow5qs17sv5tv}cn{4qs5kw5ow5qs17sv5tv}co{4qs5kw5ow5qs17sv5tv}cp{4qs5kw5ow5qs17sv5tv}6l{17sy5ty5ow}do{17st5tt}4z{17st5tt}7s{fst}dm{17st5tt}dn{17st5tt}5o{ckwclwcmwcnwcowcpw4lw4wv}dp{17st5tt}dq{17st5tt}7t{5ow}ds{17st5tt}5t{2ktclucmucnu4otcpu4lu4wycoucku}fu{17sv5tv5ow}6p{17sy5ty5ow5qs}ek{17sy5ty5ow}el{17sy5ty5ow}em{17sy5ty5ow}en{5ty}eo{17sy5ty5ow}ep{17sy5ty5ow}es{17sy5ty5qs}et{17sy5ty5ow5qs}eu{17sy5ty5ow5qs}ev{17sy5ty5ow5qs}6z{17sy5ty5ow5qs}fm{17sy5ty5ow5qs}fn{17sy5ty5ow5qs}fo{17sy5ty5ow5qs}fp{17sy5ty5qs}fq{17sy5ty5ow5qs}7r{5ow}fs{17sy5ty5ow5qs}ft{17sv5tv5ow}7m{5ow}fv{17sv5tv5ow}fw{17sv5tv5ow}}}")}},tt.events.push(["addFont",function(t){var e,n,r,i=t.font,o="Unicode";(e=it[o][i.postScriptName])&&((n=i.metadata[o]?i.metadata[o]:i.metadata[o]={}).widths=e.widths,n.kerning=e.kerning),(r=rt[o][i.postScriptName])&&((n=i.metadata[o]?i.metadata[o]:i.metadata[o]={}).encoding=r).codePages&&r.codePages.length&&(i.encoding=r.codePages[0])}]),ot=dt,"undefined"!=typeof self&&self||"undefined"!=typeof global&&global||"undefined"!=typeof window&&window||Function("return this")(),ot.API.events.push(["addFont",function(t){var e=t.font,n=t.instance;if(void 0!==n&&n.existsFileInVFS(e.postScriptName)){var r=n.getFileFromVFS(e.postScriptName);if("string"!=typeof r)throw new Error("Font is not stored as string-data in vFS, import fonts or remove declaration doc.addFont('"+e.postScriptName+"').");e.metadata=ot.API.TTFFont.open(e.postScriptName,e.fontName,r,e.encoding),e.metadata.Unicode=e.metadata.Unicode||{encoding:{},kerning:{},widths:[]},e.metadata.glyIdsUsed=[0]}else if(!1===e.isStandardFont)throw new Error("Font does not exist in vFS, import fonts or remove declaration doc.addFont('"+e.postScriptName+"').")}]),(at=dt.API).addSvg=function(t,e,n,r,i){if(void 0===e||void 0===n)throw new Error("addSVG needs values for 'x' and 'y'");var o,a,s,l,c,u,f,h,d=(l=document,h=l.createElement("iframe"),c=".jsPDF_sillysvg_iframe {display:none;position:absolute;}",(f=(u=l).createElement("style")).type="text/css",f.styleSheet?f.styleSheet.cssText=c:f.appendChild(u.createTextNode(c)),u.getElementsByTagName("head")[0].appendChild(f),h.name="childframe",h.setAttribute("width",0),h.setAttribute("height",0),h.setAttribute("frameborder","0"),h.setAttribute("scrolling","no"),h.setAttribute("seamless","seamless"),+h.setAttribute("class","jsPDF_sillysvg_iframe"),l.body.appendChild(h),h),p=(o=t,(s=((a=d).contentWindow||a.contentDocument).document).write(o),s.close(),s.getElementsByTagName("svg")[0]),g=[1,1],m=parseFloat(p.getAttribute("width")),v=parseFloat(p.getAttribute("height"));m&&v&&(r&&i?g=[r/m,i/v]:r?g=[r/m,r/m]:i&&(g=[i/v,i/v]));var y,b,w,x,S=p.childNodes;for(y=0,b=S.length;y<b;y++)(w=S[y]).tagName&&"PATH"===w.tagName.toUpperCase()&&((x=function(t){for(var e=parseFloat(t[1]),n=parseFloat(t[2]),r=[],i=3,o=t.length;i<o;)"c"===t[i]?(r.push([parseFloat(t[i+1]),parseFloat(t[i+2]),parseFloat(t[i+3]),parseFloat(t[i+4]),parseFloat(t[i+5]),parseFloat(t[i+6])]),i+=7):"l"===t[i]?(r.push([parseFloat(t[i+1]),parseFloat(t[i+2])]),i+=3):i+=1;return[e,n,r]}(w.getAttribute("d").split(" ")))[0]=x[0]*g[0]+e,x[1]=x[1]*g[1]+n,this.lines.call(this,x[2],x[0],x[1],g));return this},at.addSVG=at.addSvg,at.addSvgAsImage=function(t,e,n,r,i,o,a,s){if(isNaN(e)||isNaN(n))throw console.error("jsPDF.addSvgAsImage: Invalid coordinates",arguments),new Error("Invalid coordinates passed to jsPDF.addSvgAsImage");if(isNaN(r)||isNaN(i))throw console.error("jsPDF.addSvgAsImage: Invalid measurements",arguments),new Error("Invalid measurements (width and/or height) passed to jsPDF.addSvgAsImage");var l=document.createElement("canvas");l.width=r,l.height=i;var c=l.getContext("2d");return c.fillStyle="#fff",c.fillRect(0,0,l.width,l.height),canvg(l,t,{ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0,ignoreClear:!0}),this.addImage(l.toDataURL("image/jpeg",1),e,n,r,i,a,s),this},dt.API.putTotalPages=function(t){var e,n=0;n=parseInt(this.internal.getFont().id.substr(1),10)<15?(e=new RegExp(t,"g"),this.internal.getNumberOfPages()):(e=new RegExp(this.pdfEscape16(t,this.internal.getFont()),"g"),this.pdfEscape16(this.internal.getNumberOfPages()+"",this.internal.getFont()));for(var r=1;r<=this.internal.getNumberOfPages();r++)for(var i=0;i<this.internal.pages[r].length;i++)this.internal.pages[r][i]=this.internal.pages[r][i].replace(e,n);return this},dt.API.viewerPreferences=function(e,n){function r(t,e){var n,r=!1;for(n=0;n<t.length;n+=1)t[n]===e&&(r=!0);return r}var i;e=e||{},n=n||!1;var o,a,s={HideToolbar:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},HideMenubar:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},HideWindowUI:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},FitWindow:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},CenterWindow:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},DisplayDocTitle:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.4},NonFullScreenPageMode:{defaultValue:"UseNone",value:"UseNone",type:"name",explicitSet:!1,valueSet:["UseNone","UseOutlines","UseThumbs","UseOC"],pdfVersion:1.3},Direction:{defaultValue:"L2R",value:"L2R",type:"name",explicitSet:!1,valueSet:["L2R","R2L"],pdfVersion:1.3},ViewArea:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},ViewClip:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintArea:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintClip:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintScaling:{defaultValue:"AppDefault",value:"AppDefault",type:"name",explicitSet:!1,valueSet:["AppDefault","None"],pdfVersion:1.6},Duplex:{defaultValue:"",value:"none",type:"name",explicitSet:!1,valueSet:["Simplex","DuplexFlipShortEdge","DuplexFlipLongEdge","none"],pdfVersion:1.7},PickTrayByPDFSize:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.7},PrintPageRange:{defaultValue:"",value:"",type:"array",explicitSet:!1,valueSet:null,pdfVersion:1.7},NumCopies:{defaultValue:1,value:1,type:"integer",explicitSet:!1,valueSet:null,pdfVersion:1.7}},l=Object.keys(s),c=[],u=0,f=0,h=0,d=!0;if(void 0===this.internal.viewerpreferences&&(this.internal.viewerpreferences={},this.internal.viewerpreferences.configuration=JSON.parse(JSON.stringify(s)),this.internal.viewerpreferences.isSubscribed=!1),i=this.internal.viewerpreferences.configuration,"reset"===e||!0===n){var p=l.length;for(h=0;h<p;h+=1)i[l[h]].value=i[l[h]].defaultValue,i[l[h]].explicitSet=!1}if("object"===t(e))for(o in e)if(a=e[o],r(l,o)&&void 0!==a){if("boolean"===i[o].type&&"boolean"==typeof a)i[o].value=a;else if("name"===i[o].type&&r(i[o].valueSet,a))i[o].value=a;else if("integer"===i[o].type&&Number.isInteger(a))i[o].value=a;else if("array"===i[o].type){for(u=0;u<a.length;u+=1)if(d=!0,1===a[u].length&&"number"==typeof a[u][0])c.push(String(a[u]-1));else if(1<a[u].length){for(f=0;f<a[u].length;f+=1)"number"!=typeof a[u][f]&&(d=!1);!0===d&&c.push([a[u][0]-1,a[u][1]-1].join(" "))}i[o].value="["+c.join(" ")+"]"}else i[o].value=i[o].defaultValue;i[o].explicitSet=!0}return!1===this.internal.viewerpreferences.isSubscribed&&(this.internal.events.subscribe("putCatalog",function(){var t,e=[];for(t in i)!0===i[t].explicitSet&&("name"===i[t].type?e.push("/"+t+" /"+i[t].value):e.push("/"+t+" "+i[t].value));0!==e.length&&this.internal.write("/ViewerPreferences\n<<\n"+e.join("\n")+"\n>>")}),this.internal.viewerpreferences.isSubscribed=!0),this.internal.viewerpreferences.configuration=i,this},st=dt.API,ut=ct=lt="",st.addMetadata=function(t,e){return ct=e||"http://jspdf.default.namespaceuri/",lt=t,this.internal.events.subscribe("postPutResources",function(){if(lt){var t='<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"><rdf:Description rdf:about="" xmlns:jspdf="'+ct+'"><jspdf:metadata>',e=unescape(encodeURIComponent('<x:xmpmeta xmlns:x="adobe:ns:meta/">')),n=unescape(encodeURIComponent(t)),r=unescape(encodeURIComponent(lt)),i=unescape(encodeURIComponent("</jspdf:metadata></rdf:Description></rdf:RDF>")),o=unescape(encodeURIComponent("</x:xmpmeta>")),a=n.length+r.length+i.length+e.length+o.length;ut=this.internal.newObject(),this.internal.write("<< /Type /Metadata /Subtype /XML /Length "+a+" >>"),this.internal.write("stream"),this.internal.write(e+n+r+i+o),this.internal.write("endstream"),this.internal.write("endobj")}else ut=""}),this.internal.events.subscribe("putCatalog",function(){ut&&this.internal.write("/Metadata "+ut+" 0 R")}),this},function(t,e){var n=t.API,r=n.pdfEscape16=function(t,e){for(var n,r=e.metadata.Unicode.widths,i=["","0","00","000","0000"],o=[""],a=0,s=t.length;a<s;++a){if(n=e.metadata.characterToGlyph(t.charCodeAt(a)),e.metadata.glyIdsUsed.push(n),e.metadata.toUnicode[n]=t.charCodeAt(a),-1==r.indexOf(n)&&(r.push(n),r.push([parseInt(e.metadata.widthOfGlyph(n),10)])),"0"==n)return o.join("");n=n.toString(16),o.push(i[4-n.length],n)}return o.join("")},i=function(t){var e,n,r,i,o,a,s;for(o="/CIDInit /ProcSet findresource begin\n12 dict begin\nbegincmap\n/CIDSystemInfo <<\n /Registry (Adobe)\n /Ordering (UCS)\n /Supplement 0\n>> def\n/CMapName /Adobe-Identity-UCS def\n/CMapType 2 def\n1 begincodespacerange\n<0000><ffff>\nendcodespacerange",r=[],a=0,s=(n=Object.keys(t).sort(function(t,e){return t-e})).length;a<s;a++)e=n[a],100<=r.length&&(o+="\n"+r.length+" beginbfchar\n"+r.join("\n")+"\nendbfchar",r=[]),i=("0000"+t[e].toString(16)).slice(-4),e=("0000"+(+e).toString(16)).slice(-4),r.push("<"+e+"><"+i+">");return r.length&&(o+="\n"+r.length+" beginbfchar\n"+r.join("\n")+"\nendbfchar\n"),o+="endcmap\nCMapName currentdict /CMap defineresource pop\nend\nend"};n.events.push(["putFont",function(e){!function(e,n,r,o){if(e.metadata instanceof t.API.TTFFont&&"Identity-H"===e.encoding){for(var a=e.metadata.Unicode.widths,s=e.metadata.subset.encode(e.metadata.glyIdsUsed,1),l="",c=0;c<s.length;c++)l+=String.fromCharCode(s[c]);var u=r();o({data:l,addLength1:!0}),n("endobj");var f=r();o({data:i(e.metadata.toUnicode),addLength1:!0}),n("endobj");var h=r();n("<<"),n("/Type /FontDescriptor"),n("/FontName /"+e.fontName),n("/FontFile2 "+u+" 0 R"),n("/FontBBox "+t.API.PDFObject.convert(e.metadata.bbox)),n("/Flags "+e.metadata.flags),n("/StemV "+e.metadata.stemV),n("/ItalicAngle "+e.metadata.italicAngle),n("/Ascent "+e.metadata.ascender),n("/Descent "+e.metadata.decender),n("/CapHeight "+e.metadata.capHeight),n(">>"),n("endobj");var d=r();n("<<"),n("/Type /Font"),n("/BaseFont /"+e.fontName),n("/FontDescriptor "+h+" 0 R"),n("/W "+t.API.PDFObject.convert(a)),n("/CIDToGIDMap /Identity"),n("/DW 1000"),n("/Subtype /CIDFontType2"),n("/CIDSystemInfo"),n("<<"),n("/Supplement 0"),n("/Registry (Adobe)"),n("/Ordering ("+e.encoding+")"),n(">>"),n(">>"),n("endobj"),e.objectNumber=r(),n("<<"),n("/Type /Font"),n("/Subtype /Type0"),n("/ToUnicode "+f+" 0 R"),n("/BaseFont /"+e.fontName),n("/Encoding /"+e.encoding),n("/DescendantFonts ["+d+" 0 R]"),n(">>"),n("endobj"),e.isAlreadyPutted=!0}}(e.font,e.out,e.newObject,e.putStream)}]),n.events.push(["putFont",function(e){!function(e,n,r,o){if(e.metadata instanceof t.API.TTFFont&&"WinAnsiEncoding"===e.encoding){e.metadata.Unicode.widths;for(var a=e.metadata.rawData,s="",l=0;l<a.length;l++)s+=String.fromCharCode(a[l]);var c=r();o({data:s,addLength1:!0}),n("endobj");var u=r();o({data:i(e.metadata.toUnicode),addLength1:!0}),n("endobj");var f=r();for(n("<<"),n("/Descent "+e.metadata.decender),n("/CapHeight "+e.metadata.capHeight),n("/StemV "+e.metadata.stemV),n("/Type /FontDescriptor"),n("/FontFile2 "+c+" 0 R"),n("/Flags 96"),n("/FontBBox "+t.API.PDFObject.convert(e.metadata.bbox)),n("/FontName /"+e.fontName),n("/ItalicAngle "+e.metadata.italicAngle),n("/Ascent "+e.metadata.ascender),n(">>"),n("endobj"),e.objectNumber=r(),l=0;l<e.metadata.hmtx.widths.length;l++)e.metadata.hmtx.widths[l]=parseInt(e.metadata.hmtx.widths[l]*(1e3/e.metadata.head.unitsPerEm));n("<</Subtype/TrueType/Type/Font/ToUnicode "+u+" 0 R/BaseFont/"+e.fontName+"/FontDescriptor "+f+" 0 R/Encoding/"+e.encoding+" /FirstChar 29 /LastChar 255 /Widths "+t.API.PDFObject.convert(e.metadata.hmtx.widths)+">>"),n("endobj"),e.isAlreadyPutted=!0}}(e.font,e.out,e.newObject,e.putStream)}]);var o=function(t){var e,n,i=t.text||"",o=t.x,a=t.y,s=t.options||{},l=t.mutex||{},c=l.pdfEscape,u=l.activeFontKey,f=l.fonts,h=(l.activeFontSize,""),d=0,p="",g=f[n=u].encoding;if("Identity-H"!==f[n].encoding)return{text:i,x:o,y:a,options:s,mutex:l};for(p=i,n=u,"[object Array]"===Object.prototype.toString.call(i)&&(p=i[0]),d=0;d<p.length;d+=1)f[n].metadata.hasOwnProperty("cmap")&&(e=f[n].metadata.cmap.unicode.codeMap[p[d].charCodeAt(0)]),e?h+=p[d]:p[d].charCodeAt(0)<256&&f[n].metadata.hasOwnProperty("Unicode")?h+=p[d]:h+="";var m="";return parseInt(n.slice(1))<14||"WinAnsiEncoding"===g?m=function(t){for(var e="",n=0;n<t.length;n++)e+=""+t.charCodeAt(n).toString(16);return e}(c(h,n)):"Identity-H"===g&&(m=r(h,f[n])),l.isHex=!0,{text:m,x:o,y:a,options:s,mutex:l}};n.events.push(["postProcessText",function(t){var e=t.text||"",n=t.x,r=t.y,i=t.options,a=t.mutex,s=(i.lang,[]),l={text:e,x:n,y:r,options:i,mutex:a};if("[object Array]"===Object.prototype.toString.call(e)){var c=0;for(c=0;c<e.length;c+=1)"[object Array]"===Object.prototype.toString.call(e[c])&&3===e[c].length?s.push([o(Object.assign({},l,{text:e[c][0]})).text,e[c][1],e[c][2]]):s.push(o(Object.assign({},l,{text:e[c]})).text);t.text=s}else t.text=o(Object.assign({},l,{text:e})).text}])}(dt,"undefined"!=typeof self&&self||"undefined"!=typeof global&&global||"undefined"!=typeof window&&window||Function("return this")()),ft=dt.API,ht=function(t){return void 0!==t&&(void 0===t.vFS&&(t.vFS={}),!0)},ft.existsFileInVFS=function(t){return!!ht(this.internal)&&void 0!==this.internal.vFS[t]},ft.addFileToVFS=function(t,e){return ht(this.internal),this.internal.vFS[t]=e,this},ft.getFileFromVFS=function(t){return ht(this.internal),void 0!==this.internal.vFS[t]?this.internal.vFS[t]:null},dt.API.addHTML=function(t,e,n,r,i){if("undefined"==typeof html2canvas&&"undefined"==typeof rasterizeHTML)throw new Error("You need either https://github.com/niklasvh/html2canvas or https://github.com/cburgmer/rasterizeHTML.js");"number"!=typeof e&&(r=e,i=n),"function"==typeof r&&(i=r,r=null),"function"!=typeof i&&(i=function(){});var o=this.internal,a=o.scaleFactor,s=o.pageSize.getWidth(),l=o.pageSize.getHeight();if((r=r||{}).onrendered=function(t){e=parseInt(e)||0,n=parseInt(n)||0;var o=r.dim||{},c=Object.assign({top:0,right:0,bottom:0,left:0,useFor:"content"},r.margin),u=o.h||Math.min(l,t.height/a),f=o.w||Math.min(s,t.width/a)-e,h=r.format||"JPEG",d=r.imageCompression||"SLOW";if(t.height>l-c.top-c.bottom&&r.pagesplit){var p=function(t,e,n,i,o){var a=document.createElement("canvas");a.height=o,a.width=i;var s=a.getContext("2d");return s.mozImageSmoothingEnabled=!1,s.webkitImageSmoothingEnabled=!1,s.msImageSmoothingEnabled=!1,s.imageSmoothingEnabled=!1,s.fillStyle=r.backgroundColor||"#ffffff",s.fillRect(0,0,i,o),s.drawImage(t,e,n,i,o,0,0,i,o),a},g=function(){for(var r,o,u=0,g=0,m={},v=!1;;){var y;if(g=0,m.top=0!==u?c.top:n,m.left=0!==u?c.left:e,v=(s-c.left-c.right)*a<t.width,"content"===c.useFor?0===u?(r=Math.min((s-c.left)*a,t.width),o=Math.min((l-c.top)*a,t.height-u)):(r=Math.min(s*a,t.width),o=Math.min(l*a,t.height-u),m.top=0):(r=Math.min((s-c.left-c.right)*a,t.width),o=Math.min((l-c.bottom-c.top)*a,t.height-u)),v)for(;;){"content"===c.useFor&&(0===g?r=Math.min((s-c.left)*a,t.width):(r=Math.min(s*a,t.width-g),m.left=0));var b=[y=p(t,g,u,r,o),m.left,m.top,y.width/a,y.height/a,h,null,d];if(this.addImage.apply(this,b),(g+=r)>=t.width)break;this.addPage()}else b=[y=p(t,0,u,r,o),m.left,m.top,y.width/a,y.height/a,h,null,d],this.addImage.apply(this,b);if((u+=o)>=t.height)break;this.addPage()}i(f,u,null,b)}.bind(this);if("CANVAS"===t.nodeName){var m=new Image;m.onload=g,m.src=t.toDataURL("image/png"),t=m}else g()}else{var v=Math.random().toString(35),y=[t,e,n,f,u,h,v,d];this.addImage.apply(this,y),i(f,u,v,y)}}.bind(this),"undefined"!=typeof html2canvas&&!r.rstz)return html2canvas(t,r);if("undefined"==typeof rasterizeHTML)return null;var c="drawDocument";return"string"==typeof t&&(c=/^http/.test(t)?"drawURL":"drawHTML"),r.width=r.width||s*a,rasterizeHTML[c](t,void 0,r).then(function(t){r.onrendered(t.image)},function(t){i(null,t)})},function(e){var n,r,i,o,a,s,l,c,u,f,h,d,p,g,m,v,y,b,w,x;n=function(){function t(){}return function(e){return t.prototype=e,new t}}(),f=function(t){var e,n,r,i,o,a,s;for(n=0,r=t.length,e=void 0,a=i=!1;!i&&n!==r;)(e=t[n]=t[n].trimLeft())&&(i=!0),n++;for(n=r-1;r&&!a&&-1!==n;)(e=t[n]=t[n].trimRight())&&(a=!0),n--;for(o=/\s+$/g,s=!0,n=0;n!==r;)"\u2028"!=t[n]&&(e=t[n].replace(/\s+/g," "),s&&(e=e.trimLeft()),e&&(s=o.test(e)),t[n]=e),n++;return t},d=function(t){var e,n,r;for(e=void 0,n=(r=t.split(",")).shift();!e&&n;)e=i[n.trim().toLowerCase()],n=r.shift();return e},p=function(t){var e;return-1<(t="auto"===t?"0px":t).indexOf("em")&&!isNaN(Number(t.replace("em","")))&&(t=18.719*Number(t.replace("em",""))+"px"),-1<t.indexOf("pt")&&!isNaN(Number(t.replace("pt","")))&&(t=1.333*Number(t.replace("pt",""))+"px"),(e=g[t])?e:void 0!==(e={"xx-small":9,"x-small":11,small:13,medium:16,large:19,"x-large":23,"xx-large":28,auto:0}[t])?g[t]=e/16:(e=parseFloat(t))?g[t]=e/16:(e=t.match(/([\d\.]+)(px)/),Array.isArray(e)&&3===e.length?g[t]=parseFloat(e[1])/16:g[t]=1)},u=function(t){var e,n,r,i,u;return u=t,i=document.defaultView&&document.defaultView.getComputedStyle?document.defaultView.getComputedStyle(u,null):u.currentStyle?u.currentStyle:u.style,n=void 0,(e={})["font-family"]=d((r=function(t){return t=t.replace(/-\D/g,function(t){return t.charAt(1).toUpperCase()}),i[t]})("font-family"))||"times",e["font-style"]=o[r("font-style")]||"normal",e["text-align"]=a[r("text-align")]||"left","bold"===(n=s[r("font-weight")]||"normal")&&("normal"===e["font-style"]?e["font-style"]=n:e["font-style"]=n+e["font-style"]),e["font-size"]=p(r("font-size"))||1,e["line-height"]=p(r("line-height"))||1,e.display="inline"===r("display")?"inline":"block",n="block"===e.display,e["margin-top"]=n&&p(r("margin-top"))||0,e["margin-bottom"]=n&&p(r("margin-bottom"))||0,e["padding-top"]=n&&p(r("padding-top"))||0,e["padding-bottom"]=n&&p(r("padding-bottom"))||0,e["margin-left"]=n&&p(r("margin-left"))||0,e["margin-right"]=n&&p(r("margin-right"))||0,e["padding-left"]=n&&p(r("padding-left"))||0,e["padding-right"]=n&&p(r("padding-right"))||0,e["page-break-before"]=r("page-break-before")||"auto",e.float=l[r("cssFloat")]||"none",e.clear=c[r("clear")]||"none",e.color=r("color"),e},m=function(t,e,n){var r,i,o,a,s;if(o=!1,a=i=void 0,r=n["#"+t.id])if("function"==typeof r)o=r(t,e);else for(i=0,a=r.length;!o&&i!==a;)o=r[i](t,e),i++;if(r=n[t.nodeName],!o&&r)if("function"==typeof r)o=r(t,e);else for(i=0,a=r.length;!o&&i!==a;)o=r[i](t,e),i++;for(s="string"==typeof t.className?t.className.split(" "):[],i=0;i<s.length;i++)if(r=n["."+s[i]],!o&&r)if("function"==typeof r)o=r(t,e);else for(i=0,a=r.length;!o&&i!==a;)o=r[i](t,e),i++;return o},x=function(t,e){var n,r,i,o,a,s,l,c,u;for(n=[],r=[],i=0,u=t.rows[0].cells.length,l=t.clientWidth;i<u;)c=t.rows[0].cells[i],r[i]={name:c.textContent.toLowerCase().replace(/\s+/g,""),prompt:c.textContent.replace(/\r?\n/g,""),width:c.clientWidth/l*e.pdf.internal.pageSize.getWidth()},i++;for(i=1;i<t.rows.length;){for(s=t.rows[i],a={},o=0;o<s.cells.length;)a[r[o].name]=s.cells[o].textContent.replace(/\r?\n/g,""),o++;n.push(a),i++}return{rows:n,headers:r}};var S={SCRIPT:1,STYLE:1,NOSCRIPT:1,OBJECT:1,EMBED:1,SELECT:1},A=1;r=function(e,i,o){var a,s,l,c,f,h,d,p;for(s=e.childNodes,a=void 0,(f="block"===(l=u(e)).display)&&(i.setBlockBoundary(),i.setBlockStyle(l)),c=0,h=s.length;c<h;){if("object"===t(a=s[c])){if(i.executeWatchFunctions(a),1===a.nodeType&&"HEADER"===a.nodeName){var g=a,y=i.pdf.margins_doc.top;i.pdf.internal.events.subscribe("addPage",function(t){i.y=y,r(g,i,o),i.pdf.margins_doc.top=i.y+10,i.y+=10},!1)}if(8===a.nodeType&&"#comment"===a.nodeName)~a.textContent.indexOf("ADD_PAGE")&&(i.pdf.addPage(),i.y=i.pdf.margins_doc.top);else if(1!==a.nodeType||S[a.nodeName])if(3===a.nodeType){var b=a.nodeValue;if(a.nodeValue&&"LI"===a.parentNode.nodeName)if("OL"===a.parentNode.parentNode.nodeName)b=A+++". "+b;else{var w=l["font-size"],N=(3-.75*w)*i.pdf.internal.scaleFactor,L=.75*w*i.pdf.internal.scaleFactor,k=1.74*w/i.pdf.internal.scaleFactor;p=function(t,e){this.pdf.circle(t+N,e+L,k,"FD")}}16&a.ownerDocument.body.compareDocumentPosition(a)&&i.addText(b,l)}else"string"==typeof a&&i.addText(a,l);else{var C;if("IMG"===a.nodeName){var O=a.getAttribute("src");C=v[i.pdf.sHashCode(O)||O]}if(C){i.pdf.internal.pageSize.getHeight()-i.pdf.margins_doc.bottom<i.y+a.height&&i.y>i.pdf.margins_doc.top&&(i.pdf.addPage(),i.y=i.pdf.margins_doc.top,i.executeWatchFunctions(a));var _=u(a),P=i.x,I=12/i.pdf.internal.scaleFactor,T=(_["margin-left"]+_["padding-left"])*I,E=(_["margin-right"]+_["padding-right"])*I,j=(_["margin-top"]+_["padding-top"])*I,F=(_["margin-bottom"]+_["padding-bottom"])*I;void 0!==_.float&&"right"===_.float?P+=i.settings.width-a.width-E:P+=T,i.pdf.addImage(C,P,i.y+j,a.width,a.height),C=void 0,"right"===_.float||"left"===_.float?(i.watchFunctions.push(function(t,e,n,r){return i.y>=e?(i.x+=t,i.settings.width+=n,!0):!!(r&&1===r.nodeType&&!S[r.nodeName]&&i.x+r.width>i.pdf.margins_doc.left+i.pdf.margins_doc.width)&&(i.x+=t,i.y=e,i.settings.width+=n,!0)}.bind(this,"left"===_.float?-a.width-T-E:0,i.y+a.height+j+F,a.width)),i.watchFunctions.push(function(t,e,n){return!(i.y<t&&e===i.pdf.internal.getNumberOfPages())||1===n.nodeType&&"both"===u(n).clear&&(i.y=t,!0)}.bind(this,i.y+a.height,i.pdf.internal.getNumberOfPages())),i.settings.width-=a.width+T+E,"left"===_.float&&(i.x+=a.width+T+E)):i.y+=a.height+j+F}else if("TABLE"===a.nodeName)d=x(a,i),i.y+=10,i.pdf.table(i.x,i.y,d.rows,d.headers,{autoSize:!1,printHeaders:o.printHeaders,margins:i.pdf.margins_doc,css:u(a)}),i.y=i.pdf.lastCellPos.y+i.pdf.lastCellPos.h+20;else if("OL"===a.nodeName||"UL"===a.nodeName)A=1,m(a,i,o)||r(a,i,o),i.y+=10;else if("LI"===a.nodeName){var R=i.x;i.x+=20/i.pdf.internal.scaleFactor,i.y+=3,m(a,i,o)||r(a,i,o),i.x=R}else"BR"===a.nodeName?(i.y+=l["font-size"]*i.pdf.internal.scaleFactor,i.addText("\u2028",n(l))):m(a,i,o)||r(a,i,o)}}c++}if(o.outY=i.y,f)return i.setBlockBoundary(p)},v={},y=function(t,e,n,r){function i(){e.pdf.internal.events.publish("imagesLoaded"),r(o)}for(var o,a=t.getElementsByTagName("img"),s=a.length,l=0;s--;)!function(t,n,r){if(t){var a=new Image;o=++l,a.crossOrigin="",a.onerror=a.onload=function(){if(a.complete&&(0===a.src.indexOf("data:image/")&&(a.width=n||a.width||0,a.height=r||a.height||0),a.width+a.height)){var o=e.pdf.sHashCode(t)||t;v[o]=v[o]||a}--l||i()},a.src=t}}(a[s].getAttribute("src"),a[s].width,a[s].height);return l||i()},b=function(t,e,n){var i=t.getElementsByTagName("footer");if(0<i.length){i=i[0];var o=e.pdf.internal.write,a=e.y;e.pdf.internal.write=function(){},r(i,e,n);var s=Math.ceil(e.y-a)+5;e.y=a,e.pdf.internal.write=o,e.pdf.margins_doc.bottom+=s;for(var l=function(t){var o=void 0!==t?t.pageNumber:1,a=e.y;e.y=e.pdf.internal.pageSize.getHeight()-e.pdf.margins_doc.bottom,e.pdf.margins_doc.bottom-=s;for(var l=i.getElementsByTagName("span"),c=0;c<l.length;++c)-1<(" "+l[c].className+" ").replace(/[\n\t]/g," ").indexOf(" pageCounter ")&&(l[c].innerHTML=o),-1<(" "+l[c].className+" ").replace(/[\n\t]/g," ").indexOf(" totalPages ")&&(l[c].innerHTML="###jsPDFVarTotalPages###");r(i,e,n),e.pdf.margins_doc.bottom+=s,e.y=a},c=i.getElementsByTagName("span"),u=0;u<c.length;++u)-1<(" "+c[u].className+" ").replace(/[\n\t]/g," ").indexOf(" totalPages ")&&e.pdf.internal.events.subscribe("htmlRenderingFinished",e.pdf.putTotalPages.bind(e.pdf,"###jsPDFVarTotalPages###"),!0);e.pdf.internal.events.subscribe("addPage",l,!1),l(),S.FOOTER=1}},w=function(t,e,n,i,o,a){if(!e)return!1;var s,l,c,u;"string"==typeof e||e.parentNode||(e=""+e.innerHTML),"string"==typeof e&&(s=e.replace(/<\/?script[^>]*?>/gi,""),u="jsPDFhtmlText"+Date.now().toString()+(1e3*Math.random()).toFixed(0),(c=document.createElement("div")).style.cssText="position: absolute !important;clip: rect(1px 1px 1px 1px); /* IE6, IE7 */clip: rect(1px, 1px, 1px, 1px);padding:0 !important;border:0 !important;height: 1px !important;width: 1px !important; top:auto;left:-100px;overflow: hidden;",c.innerHTML='<iframe style="height:1px;width:1px" name="'+u+'" />',document.body.appendChild(c),(l=window.frames[u]).document.open(),l.document.writeln(s),l.document.close(),e=l.document.body);var f,d=new h(t,n,i,o);return y.call(this,e,d,o.elementHandlers,function(t){b(e,d,o.elementHandlers),r(e,d,o.elementHandlers),d.pdf.internal.events.publish("htmlRenderingFinished"),f=d.dispose(),"function"==typeof a?a(f):t&&console.error("jsPDF Warning: rendering issues? provide a callback to fromHTML!")}),f||{x:d.x,y:d.y}},(h=function(t,e,n,r){return this.pdf=t,this.x=e,this.y=n,this.settings=r,this.watchFunctions=[],this.init(),this}).prototype.init=function(){return this.paragraph={text:[],style:[]},this.pdf.internal.write("q")},h.prototype.dispose=function(){return this.pdf.internal.write("Q"),{x:this.x,y:this.y,ready:!0}},h.prototype.executeWatchFunctions=function(t){var e=!1,n=[];if(0<this.watchFunctions.length){for(var r=0;r<this.watchFunctions.length;++r)!0===this.watchFunctions[r](t)?e=!0:n.push(this.watchFunctions[r]);this.watchFunctions=n}return e},h.prototype.splitFragmentsIntoLines=function(t,e){var r,i,o,a,s,l,c,u,f,h,d,p,g,m;for(h=this.pdf.internal.scaleFactor,a={},l=c=u=m=s=o=f=i=void 0,p=[d=[]],r=0,g=this.settings.width;t.length;)if(s=t.shift(),m=e.shift(),s)if((o=a[(i=m["font-family"])+(f=m["font-style"])])||(o=this.pdf.internal.getFont(i,f).metadata.Unicode,a[i+f]=o),u={widths:o.widths,kerning:o.kerning,fontSize:12*m["font-size"],textIndent:r},c=this.pdf.getStringUnitWidth(s,u)*u.fontSize/h,"\u2028"==s)d=[],p.push(d);else if(g<r+c){for(l=this.pdf.splitTextToSize(s,g,u),d.push([l.shift(),m]);l.length;)d=[[l.shift(),m]],p.push(d);r=this.pdf.getStringUnitWidth(d[0][0],u)*u.fontSize/h}else d.push([s,m]),r+=c;if(void 0!==m["text-align"]&&("center"===m["text-align"]||"right"===m["text-align"]||"justify"===m["text-align"]))for(var v=0;v<p.length;++v){var y=this.pdf.getStringUnitWidth(p[v][0][0],u)*u.fontSize/h;0<v&&(p[v][0][1]=n(p[v][0][1]));var b=g-y;if("right"===m["text-align"])p[v][0][1]["margin-left"]=b;else if("center"===m["text-align"])p[v][0][1]["margin-left"]=b/2;else if("justify"===m["text-align"]){var w=p[v][0][0].split(" ").length-1;p[v][0][1]["word-spacing"]=b/w,v===p.length-1&&(p[v][0][1]["word-spacing"]=0)}}return p},h.prototype.RenderTextFragment=function(t,e){var n,r;r=0,this.pdf.internal.pageSize.getHeight()-this.pdf.margins_doc.bottom<this.y+this.pdf.internal.getFontSize()&&(this.pdf.internal.write("ET","Q"),this.pdf.addPage(),this.y=this.pdf.margins_doc.top,this.pdf.internal.write("q","BT",this.getPdfColor(e.color),this.pdf.internal.getCoordinateString(this.x),this.pdf.internal.getVerticalCoordinateString(this.y),"Td"),r=Math.max(r,e["line-height"],e["font-size"]),this.pdf.internal.write(0,(-12*r).toFixed(2),"Td")),n=this.pdf.internal.getFont(e["font-family"],e["font-style"]);var i=this.getPdfColor(e.color);i!==this.lastTextColor&&(this.pdf.internal.write(i),this.lastTextColor=i),void 0!==e["word-spacing"]&&0<e["word-spacing"]&&this.pdf.internal.write(e["word-spacing"].toFixed(2),"Tw"),this.pdf.internal.write("/"+n.id,(12*e["font-size"]).toFixed(2),"Tf","("+this.pdf.internal.pdfEscape(t)+") Tj"),void 0!==e["word-spacing"]&&this.pdf.internal.write(0,"Tw")},h.prototype.getPdfColor=function(t){var e,n,r,i=/rgb\s*\(\s*(\d+),\s*(\d+),\s*(\d+\s*)\)/.exec(t);if(null!=i)e=parseInt(i[1]),n=parseInt(i[2]),r=parseInt(i[3]);else{if("string"==typeof t&&"#"!=t.charAt(0)){var o=new RGBColor(t);t=o.ok?o.toHex():"#000000"}e=t.substring(1,3),e=parseInt(e,16),n=t.substring(3,5),n=parseInt(n,16),r=t.substring(5,7),r=parseInt(r,16)}if("string"==typeof e&&/^#[0-9A-Fa-f]{6}$/.test(e)){var a=parseInt(e.substr(1),16);e=a>>16&255,n=a>>8&255,r=255&a}var s=this.f3;return 0===e&&0===n&&0===r||void 0===n?s(e/255)+" g":[s(e/255),s(n/255),s(r/255),"rg"].join(" ")},h.prototype.f3=function(t){return t.toFixed(3)},h.prototype.renderParagraph=function(t){var e,n,r,i,o,a,s,l,c,u,h,d,p;if(r=f(this.paragraph.text),d=this.paragraph.style,e=this.paragraph.blockstyle,this.paragraph.priorblockstyle,this.paragraph={text:[],style:[],blockstyle:{},priorblockstyle:e},r.join("").trim()){s=this.splitFragmentsIntoLines(r,d),l=a=void 0,n=12/this.pdf.internal.scaleFactor,this.priorMarginBottom=this.priorMarginBottom||0,h=(Math.max((e["margin-top"]||0)-this.priorMarginBottom,0)+(e["padding-top"]||0))*n,u=((e["margin-bottom"]||0)+(e["padding-bottom"]||0))*n,this.priorMarginBottom=e["margin-bottom"]||0,"always"===e["page-break-before"]&&(this.pdf.addPage(),this.y=0,h=((e["margin-top"]||0)+(e["padding-top"]||0))*n),c=this.pdf.internal.write,o=i=void 0,this.y+=h,c("q","BT 0 g",this.pdf.internal.getCoordinateString(this.x),this.pdf.internal.getVerticalCoordinateString(this.y),"Td");for(var g=0;s.length;){for(i=l=0,o=(a=s.shift()).length;i!==o;)a[i][0].trim()&&(l=Math.max(l,a[i][1]["line-height"],a[i][1]["font-size"]),p=7*a[i][1]["font-size"]),i++;var m=0,v=0;for(void 0!==a[0][1]["margin-left"]&&0<a[0][1]["margin-left"]&&(m=(v=this.pdf.internal.getCoordinateString(a[0][1]["margin-left"]))-g,g=v),c(m+Math.max(e["margin-left"]||0,0)*n,(-12*l).toFixed(2),"Td"),i=0,o=a.length;i!==o;)a[i][0]&&this.RenderTextFragment(a[i][0],a[i][1]),i++;if(this.y+=l*n,this.executeWatchFunctions(a[0][1])&&0<s.length){var y=[],b=[];s.forEach(function(t){for(var e=0,n=t.length;e!==n;)t[e][0]&&(y.push(t[e][0]+" "),b.push(t[e][1])),++e}),s=this.splitFragmentsIntoLines(f(y),b),c("ET","Q"),c("q","BT 0 g",this.pdf.internal.getCoordinateString(this.x),this.pdf.internal.getVerticalCoordinateString(this.y),"Td")}}return t&&"function"==typeof t&&t.call(this,this.x-9,this.y-p/2),c("ET","Q"),this.y+=u}},h.prototype.setBlockBoundary=function(t){return this.renderParagraph(t)},h.prototype.setBlockStyle=function(t){return this.paragraph.blockstyle=t},h.prototype.addText=function(t,e){return this.paragraph.text.push(t),this.paragraph.style.push(e)},i={helvetica:"helvetica","sans-serif":"helvetica","times new roman":"times",serif:"times",times:"times",monospace:"courier",courier:"courier"},s={100:"normal",200:"normal",300:"normal",400:"normal",500:"bold",600:"bold",700:"bold",800:"bold",900:"bold",normal:"normal",bold:"bold",bolder:"bold",lighter:"normal"},o={normal:"normal",italic:"italic",oblique:"italic"},a={left:"left",right:"right",center:"center",justify:"justify"},l={none:"none",right:"right",left:"left"},c={none:"none",both:"both"},g={normal:1},e.fromHTML=function(t,e,n,r,i,o){return this.margins_doc=o||{top:0,bottom:0},r||(r={}),r.elementHandlers||(r.elementHandlers={}),w(this,t,isNaN(e)?4:e,isNaN(n)?4:n,r,i)}}(dt.API),dt.API,("undefined"!=typeof window&&window||"undefined"!=typeof global&&global).html2pdf=function(t,e,n){var r=e.canvas;if(r){var i,o;if((r.pdf=e).annotations={_nameMap:[],createAnnotation:function(t,n){var r,i=e.context2d._wrapX(n.left),o=e.context2d._wrapY(n.top),a=(e.context2d._page(n.top),t.indexOf("#"));r=0<=a?{name:t.substring(a+1)}:{url:t},e.link(i,o,n.right-n.left,n.bottom-n.top,r)},setName:function(t,n){var r=e.context2d._wrapX(n.left),i=e.context2d._wrapY(n.top),o=e.context2d._page(n.top);this._nameMap[t]={page:o,x:r,y:i}}},r.annotations=e.annotations,e.context2d._pageBreakAt=function(t){this.pageBreaks.push(t)},e.context2d._gotoPage=function(t){for(;e.internal.getNumberOfPages()<t;)e.addPage();e.setPage(t)},"string"==typeof t){t=t.replace(/<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi,"");var a,s,l=document.createElement("iframe");document.body.appendChild(l),null!=(a=l.contentDocument)&&null!=a||(a=l.contentWindow.document),a.open(),a.write(t),a.close(),i=a.body,s=a.body||{},t=a.documentElement||{},o=Math.max(s.scrollHeight,s.offsetHeight,t.clientHeight,t.scrollHeight,t.offsetHeight)}else s=(i=t).body||{},o=Math.max(s.scrollHeight,s.offsetHeight,t.clientHeight,t.scrollHeight,t.offsetHeight);var c={async:!0,allowTaint:!0,backgroundColor:"#ffffff",canvas:r,imageTimeout:15e3,logging:!0,proxy:null,removeContainer:!0,foreignObjectRendering:!1,useCORS:!1,windowHeight:o=e.internal.pageSize.getHeight(),scrollY:o};e.context2d.pageWrapYEnabled=!0,e.context2d.pageWrapY=e.internal.pageSize.getHeight(),html2canvas(i,c).then(function(t){n&&(l&&l.parentElement.removeChild(l),n(e))})}else alert("jsPDF canvas plugin not installed")},window.tmp=html2pdf,function(t){function e(t){return t.map(function(t){if(t.buffer instanceof ArrayBuffer){var e=t.buffer;if(t.byteLength!==e.byteLength){var n=new Uint8Array(t.byteLength);n.set(new Uint8Array(e,t.byteOffset,t.byteLength)),e=n.buffer}return e}return t})}function n(t,n){n=n||{};var r=new o;return e(t).forEach(function(t){r.append(t)}),n.type?r.getBlob(n.type):r.getBlob()}function r(t,n){return new a(e(t),n||{})}function i(){var e=!!t.ActiveXObject||"-ms-scroll-limit"in document.documentElement.style&&"-ms-ime-align"in document.documentElement.style,n=t.XMLHttpRequest&&t.XMLHttpRequest.prototype.send;e&&n&&(XMLHttpRequest.prototype.send=function(t){t instanceof Blob&&this.setRequestHeader("Content-Type",t.type),n.call(this,t)});try{new File([],"")}catch(e){try{var r=new Function('class File extends Blob {constructor(chunks, name, opts) {opts = opts || {};super(chunks, opts || {});this.name = name;this.lastModifiedDate = opts.lastModified ? new Date(opts.lastModified) : new Date;this.lastModified = +this.lastModifiedDate;}};return new File([], ""), File')();t.File=r}catch(e){r=function(t,e,n){var r=new Blob(t,n),i=n&&void 0!==n.lastModified?new Date(n.lastModified):new Date;return r.name=e,r.lastModifiedDate=i,r.lastModified=+i,+r.toString=function(){return"[object File]"},c&&(r[c]="File"),r},t.File=r}}}var o=t.BlobBuilder||t.WebKitBlobBuilder||t.MSBlobBuilder||t.MozBlobBuilder;t.URL=t.URL||t.webkitURL||function(t,e){return(e=document.createElement("a")).href=t,e};var a=t.Blob,s=URL.createObjectURL,l=URL.revokeObjectURL,c=t.Symbol&&t.Symbol.toStringTag,u=!1,f=!1,h=!!t.ArrayBuffer,d=o&&o.prototype.append&&o.prototype.getBlob;try{u=2===new Blob(["ä"]).size,f=2===new Blob([new Uint8Array([1,2])]).size}catch(u){}if(t.Blob&&(n.prototype=Blob.prototype,r.prototype=Blob.prototype),c)try{File.prototype[c]="File",Blob.prototype[c]="Blob",FileReader.prototype[c]="FileReader"}catch(u){}u?(i(),t.Blob=f?t.Blob:r):d?(i(),t.Blob=n):function(){function e(t){for(var e=[],n=0;n<t.length;n++){var r=t.charCodeAt(n);r<128?e.push(r):r<2048?e.push(192|r>>6,128|63&r):r<55296||57344<=r?e.push(224|r>>12,128|r>>6&63,128|63&r):(n++,r=65536+((1023&r)<<10|1023&t.charCodeAt(n)),e.push(240|r>>18,128|r>>12&63,128|r>>6&63,128|63&r))}return e}function n(t){var e,n,r,i,o,a;for(e="",r=t.length,n=0;n<r;)switch((i=t[n++])>>4){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:e+=String.fromCharCode(i);break;case 12:case 13:o=t[n++],e+=String.fromCharCode((31&i)<<6|63&o);break;case 14:o=t[n++],a=t[n++],e+=String.fromCharCode((15&i)<<12|(63&o)<<6|(63&a)<<0)}return e}function r(t){for(var e=new Array(t.byteLength),n=new Uint8Array(t),r=e.length;r--;)e[r]=n[r];return e}function i(t){for(var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",n=[],r=0;r<t.length;r+=3){var i=t[r],o=r+1<t.length,a=o?t[r+1]:0,s=r+2<t.length,l=s?t[r+2]:0,c=i>>2,u=(3&i)<<4|a>>4,f=(15&a)<<2|l>>6,h=63&l;s||(h=64,o||(f=64)),n.push(e[c],e[u],e[f],e[h])}return n.join("")}function o(t,n){for(var i=0,a=(t=t||[]).length;i<a;i++){var s=t[i];s instanceof o?t[i]=s._buffer:"string"==typeof s?t[i]=e(s):h&&(ArrayBuffer.prototype.isPrototypeOf(s)||p(s))?t[i]=r(s):h&&(l=s)&&DataView.prototype.isPrototypeOf(l)?t[i]=r(s.buffer):t[i]=e(String(s))}var l;this._buffer=[].concat.apply([],t),this.size=this._buffer.length,this.type=n&&n.type||""}function a(t,e,n){var r=o.call(this,t,n=n||{})||this;return r.name=e,r.lastModifiedDate=n.lastModified?new Date(n.lastModified):new Date,r.lastModified=+r.lastModifiedDate,r}function c(){if(!(this instanceof c))throw new TypeError("Failed to construct 'FileReader': Please use the 'new' operator, this DOM object constructor cannot be called as a function.");var t=document.createDocumentFragment();this.addEventListener=t.addEventListener,this.dispatchEvent=function(e){var n=this["on"+e.type];"function"==typeof n&&n(e),t.dispatchEvent(e)},this.removeEventListener=t.removeEventListener}function u(t,e,n){if(!(e instanceof o))throw new TypeError("Failed to execute '"+n+"' on 'FileReader': parameter 1 is not of type 'Blob'.");t.result="",setTimeout(function(){this.readyState=c.LOADING,t.dispatchEvent(new Event("load")),t.dispatchEvent(new Event("loadend"))})}var f=Object.create||function(t){function e(){}return e.prototype=t,new e};if(h)var d=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],p=ArrayBuffer.isView||function(t){return t&&-1<d.indexOf(Object.prototype.toString.call(t))};if(o.prototype.slice=function(t,e,n){return new o([this._buffer.slice(t||0,e||this._buffer.length)],{type:n})},o.prototype.toString=function(){return"[object Blob]"},(a.prototype=f(o.prototype)).constructor=a,Object.setPrototypeOf)Object.setPrototypeOf(a,o);else try{a.__proto__=o}catch(f){}a.prototype.toString=function(){return"[object File]"},c.EMPTY=0,c.LOADING=1,c.DONE=2,c.prototype.error=null,c.prototype.onabort=null,c.prototype.onerror=null,c.prototype.onload=null,c.prototype.onloadend=null,c.prototype.onloadstart=null,c.prototype.onprogress=null,c.prototype.readAsDataURL=function(t){u(this,t,"readAsDataURL"),this.result="data:"+t.type+";base64,"+i(t._buffer)},c.prototype.readAsText=function(t){u(this,t,"readAsText"),this.result=n(t._buffer)},c.prototype.readAsArrayBuffer=function(t){u(this,t,"readAsText"),this.result=t._buffer.slice()},c.prototype.abort=function(){},URL.createObjectURL=function(t){return t instanceof o?"data:"+t.type+";base64,"+i(t._buffer):s.call(URL,t)},URL.revokeObjectURL=function(t){l&&l.call(URL,t)};var g=t.XMLHttpRequest&&t.XMLHttpRequest.prototype.send;g&&(XMLHttpRequest.prototype.send=function(t){t instanceof o?(this.setRequestHeader("Content-Type",t.type),g.call(this,n(t._buffer))):g.call(this,t)}),t.FileReader=c,t.File=a,t.Blob=o}()}("undefined"!=typeof self&&self||"undefined"!=typeof window&&window||"undefined"!=typeof global&&global||Function('return typeof this === "object" && this.content')()||Function("return this")());var pt,gt,mt,vt,yt,bt,wt,xt,St,At,Nt,Lt,kt,Ct,Ot,_t=_t||function(t){if(!(void 0===t||"undefined"!=typeof navigator&&/MSIE [1-9]\./.test(navigator.userAgent))){var e=t.document,n=function(){return t.URL||t.webkitURL||t},r=e.createElementNS("http://www.w3.org/1999/xhtml","a"),i="download"in r,o=/constructor/i.test(t.HTMLElement)||t.safari,a=/CriOS\/[\d]+/.test(navigator.userAgent),s=t.setImmediate||t.setTimeout,l=function(t){s(function(){throw t},0)},c=function(t){setTimeout(function(){"string"==typeof t?n().revokeObjectURL(t):t.remove()},4e4)},u=function(t){return/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(t.type)?new Blob([String.fromCharCode(65279),t],{type:t.type}):t},f=function(e,f,h){h||(e=u(e));var d,p=this,g="application/octet-stream"===e.type,m=function(){!function(t,e,n){for(var r=(e=[].concat(e)).length;r--;){var i=t["on"+e[r]];if("function"==typeof i)try{i.call(t,t)}catch(t){l(t)}}}(p,"writestart progress write writeend".split(" "))};if(p.readyState=p.INIT,i)return d=n().createObjectURL(e),void s(function(){var t,e;r.href=d,r.download=f,t=r,e=new MouseEvent("click"),t.dispatchEvent(e),m(),c(d),p.readyState=p.DONE},0);!function(){if((a||g&&o)&&t.FileReader){var r=new FileReader;return r.onloadend=function(){var e=a?r.result:r.result.replace(/^data:[^;]*;/,"data:attachment/file;");t.open(e,"_blank")||(t.location.href=e),e=void 0,p.readyState=p.DONE,m()},r.readAsDataURL(e),p.readyState=p.INIT}d||(d=n().createObjectURL(e)),g?t.location.href=d:t.open(d,"_blank")||(t.location.href=d),p.readyState=p.DONE,m(),c(d)}()},h=f.prototype;return"undefined"!=typeof navigator&&navigator.msSaveOrOpenBlob?function(t,e,n){return e=e||t.name||"download",n||(t=u(t)),navigator.msSaveOrOpenBlob(t,e)}:(h.abort=function(){},h.readyState=h.INIT=0,h.WRITING=1,h.DONE=2,h.error=h.onwritestart=h.onprogress=h.onwrite=h.onabort=h.onerror=h.onwriteend=null,function(t,e,n){return new f(t,e||t.name||"download",n)})}}("undefined"!=typeof self&&self||"undefined"!=typeof window&&window||void 0);try{exports.GifWriter=function(t,e,n,r){function i(t){var e=t.length;if(e<2||256<e||e&e-1)throw"Invalid code/color length, must be power of 2 and 2 .. 256.";return e}var o=0,a=void 0===(r=void 0===r?{}:r).loop?null:r.loop,s=void 0===r.palette?null:r.palette;if(e<=0||n<=0||65535<e||65535<n)throw"Width/Height invalid.";t[o++]=71,t[o++]=73,t[o++]=70,t[o++]=56,t[o++]=57,t[o++]=97;var l=0,c=0;if(null!==s){for(var u=i(s);u>>=1;)++l;if(u=1<<l,--l,void 0!==r.background){if(u<=(c=r.background))throw"Background index out of range.";if(0===c)throw"Background index explicitly passed as 0."}}if(t[o++]=255&e,t[o++]=e>>8&255,t[o++]=255&n,t[o++]=n>>8&255,t[o++]=(null!==s?128:0)|l,t[o++]=c,t[o++]=0,null!==s)for(var f=0,h=s.length;f<h;++f){var d=s[f];t[o++]=d>>16&255,t[o++]=d>>8&255,t[o++]=255&d}if(null!==a){if(a<0||65535<a)throw"Loop count invalid.";t[o++]=33,t[o++]=255,t[o++]=11,t[o++]=78,t[o++]=69,t[o++]=84,t[o++]=83,t[o++]=67,t[o++]=65,t[o++]=80,t[o++]=69,t[o++]=50,t[o++]=46,t[o++]=48,t[o++]=3,t[o++]=1,t[o++]=255&a,t[o++]=a>>8&255,t[o++]=0}var p=!1;this.addFrame=function(e,n,r,a,l,c){if(!0===p&&(--o,p=!1),c=void 0===c?{}:c,e<0||n<0||65535<e||65535<n)throw"x/y invalid.";if(r<=0||a<=0||65535<r||65535<a)throw"Width/Height invalid.";if(l.length<r*a)throw"Not enough pixels for the frame size.";var u=!0,f=c.palette;if(null==f&&(u=!1,f=s),null==f)throw"Must supply either a local or global palette.";for(var h=i(f),d=0;h>>=1;)++d;h=1<<d;var g=void 0===c.delay?0:c.delay,m=void 0===c.disposal?0:c.disposal;if(m<0||3<m)throw"Disposal out of range.";var v=!1,y=0;if(void 0!==c.transparent&&null!==c.transparent&&(v=!0,(y=c.transparent)<0||h<=y))throw"Transparent color index.";if((0!==m||v||0!==g)&&(t[o++]=33,t[o++]=249,t[o++]=4,t[o++]=m<<2|(!0===v?1:0),t[o++]=255&g,t[o++]=g>>8&255,t[o++]=y,t[o++]=0),t[o++]=44,t[o++]=255&e,t[o++]=e>>8&255,t[o++]=255&n,t[o++]=n>>8&255,t[o++]=255&r,t[o++]=r>>8&255,t[o++]=255&a,t[o++]=a>>8&255,t[o++]=!0===u?128|d-1:0,!0===u)for(var b=0,w=f.length;b<w;++b){var x=f[b];t[o++]=x>>16&255,t[o++]=x>>8&255,t[o++]=255&x}o=function(t,e,n,r){function i(n){for(;n<=h;)t[e++]=255&d,d>>=8,h-=8,e===a+256&&(t[a]=255,a=e++)}function o(t){d|=t<<h,h+=f,i(8)}t[e++]=n;var a=e++,s=1<<n,l=s-1,c=s+1,u=c+1,f=n+1,h=0,d=0,p=r[0]&l,g={};o(s);for(var m=1,v=r.length;m<v;++m){var y=r[m]&l,b=p<<8|y,w=g[b];if(void 0===w){for(d|=p<<h,h+=f;8<=h;)t[e++]=255&d,d>>=8,h-=8,e===a+256&&(t[a]=255,a=e++);4096===u?(o(s),u=c+1,f=n+1,g={}):(1<<f<=u&&++f,g[b]=u++),p=y}else p=w}return o(p),o(c),i(1),a+1===e?t[a]=0:(t[a]=e-a-1,t[e++]=0),e}(t,o,d<2?2:d,l)},this.end=function(){return!1===p&&(t[o++]=59,p=!0),o}},exports.GifReader=e}catch(o){}window.tmp=e,dt.API.adler32cs=(bt="function"==typeof ArrayBuffer&&"function"==typeof Uint8Array,wt=null,xt=function(){if(!bt)return function(){return!1};try{var t={};"function"==typeof t.Buffer&&(wt=t.Buffer)}catch(t){}return function(t){return t instanceof ArrayBuffer||null!==wt&&t instanceof wt}}(),St=null!==wt?function(t){return new wt(t,"utf8").toString("binary")}:function(t){return unescape(encodeURIComponent(t))},At=function(t,e){for(var n=65535&t,r=t>>>16,i=0,o=e.length;i<o;i++)n=(n+(255&e.charCodeAt(i)))%65521,r=(r+n)%65521;return(r<<16|n)>>>0},Nt=function(t,e){for(var n=65535&t,r=t>>>16,i=0,o=e.length;i<o;i++)n=(n+e[i])%65521,r=(r+n)%65521;return(r<<16|n)>>>0},kt=(Lt={}).Adler32=(((yt=(vt=function(t){if(!(this instanceof vt))throw new TypeError("Constructor cannot called be as a function.");if(!isFinite(t=null==t?1:+t))throw new Error("First arguments needs to be a finite number.");this.checksum=t>>>0}).prototype={}).constructor=vt).from=((pt=function(t){if(!(this instanceof vt))throw new TypeError("Constructor cannot called be as a function.");if(null==t)throw new Error("First argument needs to be a string.");this.checksum=At(1,t.toString())}).prototype=yt,pt),vt.fromUtf8=((gt=function(t){if(!(this instanceof vt))throw new TypeError("Constructor cannot called be as a function.");if(null==t)throw new Error("First argument needs to be a string.");var e=St(t.toString());this.checksum=At(1,e)}).prototype=yt,gt),bt&&(vt.fromBuffer=((mt=function(t){if(!(this instanceof vt))throw new TypeError("Constructor cannot called be as a function.");if(!xt(t))throw new Error("First argument needs to be ArrayBuffer.");var e=new Uint8Array(t);return this.checksum=Nt(1,e)}).prototype=yt,mt)),yt.update=function(t){if(null==t)throw new Error("First argument needs to be a string.");return t=t.toString(),this.checksum=At(this.checksum,t)},yt.updateUtf8=function(t){if(null==t)throw new Error("First argument needs to be a string.");var e=St(t.toString());return this.checksum=At(this.checksum,e)},bt&&(yt.updateBuffer=function(t){if(!xt(t))throw new Error("First argument needs to be ArrayBuffer.");var e=new Uint8Array(t);return this.checksum=Nt(this.checksum,e)}),yt.clone=function(){return new kt(this.checksum)},vt),Lt.from=function(t){if(null==t)throw new Error("First argument needs to be a string.");return At(1,t.toString())},Lt.fromUtf8=function(t){if(null==t)throw new Error("First argument needs to be a string.");var e=St(t.toString());return At(1,e)},bt&&(Lt.fromBuffer=function(t){if(!xt(t))throw new Error("First argument need to be ArrayBuffer.");var e=new Uint8Array(t);return Nt(1,e)}),Lt),function(t){t.__bidiEngine__=t.prototype.__bidiEngine__=function(t){var n,r,i,o,a,s,l,c=e,u=[[0,3,0,1,0,0,0],[0,3,0,1,2,2,0],[0,3,0,17,2,0,1],[0,3,5,5,4,1,0],[0,3,21,21,4,0,1],[0,3,5,5,4,2,0]],f=[[2,0,1,1,0,1,0],[2,0,1,1,0,2,0],[2,0,2,1,3,2,0],[2,0,2,33,3,1,1]],h={L:0,R:1,EN:2,AN:3,N:4,B:5,S:6},d={0:0,5:1,6:2,7:3,32:4,251:5,254:6,255:7},p=["(",")","(","<",">","<","[","]","[","{","}","{","«","»","«","‹","›","‹","⁅","⁆","⁅","⁽","⁾","⁽","₍","₎","₍","≤","≥","≤","〈","〉","〈","﹙","﹚","﹙","﹛","﹜","﹛","﹝","﹞","﹝","﹤","﹥","﹤"],g=new RegExp(/^([1-4|9]|1[0-9]|2[0-9]|3[0168]|4[04589]|5[012]|7[78]|159|16[0-9]|17[0-2]|21[569]|22[03489]|250)$/),m=!1,v=0;this.__bidiEngine__={};var y=function(t){var e=t.charCodeAt(),n=e>>8,r=d[n];return void 0!==r?c[256*r+(255&e)]:252===n||253===n?"AL":g.test(n)?"L":8===n?"R":"N"},b=function(t){for(var e,n=0;n<t.length;n++){if("L"===(e=y(t.charAt(n))))return!1;if("R"===e)return!0}return!1},w=function(t,e,a,s){var l,c,u,f,h=e[s];switch(h){case"L":case"R":m=!1;break;case"N":case"AN":break;case"EN":m&&(h="AN");break;case"AL":m=!0,h="R";break;case"WS":h="N";break;case"CS":s<1||s+1>=e.length||"EN"!==(l=a[s-1])&&"AN"!==l||"EN"!==(c=e[s+1])&&"AN"!==c?h="N":m&&(c="AN"),h=c===l?c:"N";break;case"ES":h="EN"===(l=0<s?a[s-1]:"B")&&s+1<e.length&&"EN"===e[s+1]?"EN":"N";break;case"ET":if(0<s&&"EN"===a[s-1]){h="EN";break}if(m){h="N";break}for(u=s+1,f=e.length;u<f&&"ET"===e[u];)u++;h=u<f&&"EN"===e[u]?"EN":"N";break;case"NSM":if(i&&!o){for(f=e.length,u=s+1;u<f&&"NSM"===e[u];)u++;if(u<f){var d=t[s],p=1425<=d&&d<=2303||64286===d;if(l=e[u],p&&("R"===l||"AL"===l)){h="R";break}}}h=s<1||"B"===(l=e[s-1])?"N":a[s-1];break;case"B":n=!(m=!1),h=v;break;case"S":r=!0,h="N";break;case"LRE":case"RLE":case"LRO":case"RLO":case"PDF":m=!1;break;case"BN":h="N"}return h},x=function(t,e,n){var r=t.split("");return n&&S(r,n,{hiLevel:v}),r.reverse(),e&&e.reverse(),r.join("")},S=function(t,e,i){var o,a,s,l,c,d=-1,p=t.length,g=0,b=[],x=v?f:u,S=[];for(r=n=m=!1,a=0;a<p;a++)S[a]=y(t[a]);for(s=0;s<p;s++){if(c=g,b[s]=w(t,S,b,s),o=240&(g=x[c][h[b[s]]]),g&=15,e[s]=l=x[g][5],0<o)if(16===o){for(a=d;a<s;a++)e[a]=1;d=-1}else d=-1;if(x[g][6])-1===d&&(d=s);else if(-1<d){for(a=d;a<s;a++)e[a]=l;d=-1}"B"===S[s]&&(e[s]=0),i.hiLevel|=l}r&&function(t,e,n){for(var r=0;r<n;r++)if("S"===t[r]){e[r]=v;for(var i=r-1;0<=i&&"WS"===t[i];i--)e[i]=v}}(S,e,p)},A=function(t,e,r,i,o){if(!(o.hiLevel<t)){if(1===t&&1===v&&!n)return e.reverse(),void(r&&r.reverse());for(var a,s,l,c,u=e.length,f=0;f<u;){if(i[f]>=t){for(l=f+1;l<u&&i[l]>=t;)l++;for(c=f,s=l-1;c<s;c++,s--)a=e[c],e[c]=e[s],e[s]=a,r&&(a=r[c],r[c]=r[s],r[s]=a);f=l}f++}}},N=function(t,e,n){var r=t.split(""),i={hiLevel:v};return n||(n=[]),S(r,n,i),function(t,e,n){if(0!==n.hiLevel&&l)for(var r,i=0;i<t.length;i++)1===e[i]&&0<=(r=p.indexOf(t[i]))&&(t[i]=p[r+1])}(r,n,i),A(2,r,e,n,i),A(1,r,e,n,i),r.join("")};return this.__bidiEngine__.doBidiReorder=function(t,e,n){if(function(t,e){if(e)for(var n=0;n<t.length;n++)e[n]=n;void 0===o&&(o=b(t)),void 0===s&&(s=b(t))}(t,e),i||!a||s)if(i&&a&&o^s)v=o?1:0,t=x(t,e,n);else if(!i&&a&&s)v=o?1:0,t=N(t,e,n),t=x(t,e);else if(!i||o||a||s){if(i&&!a&&o^s)t=x(t,e),t=o?(v=0,N(t,e,n)):(v=1,t=N(t,e,n),x(t,e));else if(i&&o&&!a&&s)v=1,t=N(t,e,n),t=x(t,e);else if(!i&&!a&&o^s){var r=l;o?(v=1,t=N(t,e,n),v=0,l=!1,t=N(t,e,n),l=r):(v=0,t=N(t,e,n),t=x(t,e),l=!(v=1),t=N(t,e,n),l=r,t=x(t,e))}}else v=0,t=N(t,e,n);else v=o?1:0,t=N(t,e,n);return t},this.__bidiEngine__.setOptions=function(t){t&&(i=t.isInputVisual,a=t.isOutputVisual,o=t.isInputRtl,s=t.isOutputRtl,l=t.isSymmetricSwapping)},this.__bidiEngine__.setOptions(t),this.__bidiEngine__};var e=["BN","BN","BN","BN","BN","BN","BN","BN","BN","S","B","S","WS","B","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","B","B","B","S","WS","N","N","ET","ET","ET","N","N","N","N","N","ES","CS","ES","CS","CS","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","CS","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","BN","BN","BN","BN","BN","BN","B","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","CS","N","ET","ET","ET","ET","N","N","N","N","L","N","N","BN","N","N","ET","ET","EN","EN","N","L","N","N","N","EN","L","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","N","N","N","N","N","ET","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","R","NSM","R","NSM","NSM","R","NSM","NSM","R","NSM","N","N","N","N","N","N","N","N","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","N","N","N","N","N","R","R","R","R","R","N","N","N","N","N","N","N","N","N","N","N","AN","AN","AN","AN","AN","AN","N","N","AL","ET","ET","AL","CS","AL","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AL","AL","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AN","AN","AN","AN","AN","AN","AN","AN","AN","AN","ET","AN","AN","AL","AL","AL","NSM","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AN","N","NSM","NSM","NSM","NSM","NSM","NSM","AL","AL","NSM","NSM","N","NSM","NSM","NSM","NSM","AL","AL","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","AL","AL","NSM","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AL","N","N","N","N","N","N","N","N","N","N","N","N","N","N","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","R","R","N","N","N","N","R","N","N","N","N","N","WS","WS","WS","WS","WS","WS","WS","WS","WS","WS","WS","BN","BN","BN","L","R","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","WS","B","LRE","RLE","PDF","LRO","RLO","CS","ET","ET","ET","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","CS","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","WS","BN","BN","BN","BN","BN","N","LRI","RLI","FSI","PDI","BN","BN","BN","BN","BN","BN","EN","L","N","N","EN","EN","EN","EN","EN","EN","ES","ES","N","N","N","L","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","ES","ES","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","L","L","N","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","N","N","N","N","N","R","NSM","R","R","R","R","R","R","R","R","R","R","ES","R","R","R","R","R","R","R","R","R","R","R","R","R","N","R","R","R","R","R","N","R","N","R","R","N","R","R","N","R","R","R","R","R","R","R","R","R","R","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","CS","N","CS","N","N","CS","N","N","N","N","N","N","N","N","N","ET","N","N","ES","ES","N","N","N","N","N","ET","ET","N","N","N","N","N","AL","AL","AL","AL","AL","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","N","BN","N","N","N","ET","ET","ET","N","N","N","N","N","ES","CS","ES","CS","CS","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","CS","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","L","L","L","L","L","L","N","N","L","L","L","L","L","L","N","N","L","L","L","L","L","L","N","N","L","L","L","N","N","N","ET","ET","N","N","N","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N"],n=new t.__bidiEngine__({isInputVisual:!0});t.API.events.push(["postProcessText",function(t){var e=t.text,r=(t.x,t.y,t.options,t.mutex,[]);if("[object Array]"===Object.prototype.toString.call(e)){var i=0;for(r=[],i=0;i<e.length;i+=1)"[object Array]"===Object.prototype.toString.call(e[i])?r.push([n.doBidiReorder(e[i][0]),e[i][1],e[i][2]]):r.push([n.doBidiReorder(e[i])]);t.text=r}else t.text=n.doBidiReorder(e)}])}(dt),window.tmp=r,i.prototype.parseHeader=function(){if(this.fileSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.reserved=this.datav.getUint32(this.pos,!0),this.pos+=4,this.offset=this.datav.getUint32(this.pos,!0),this.pos+=4,this.headerSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.width=this.datav.getUint32(this.pos,!0),this.pos+=4,this.height=this.datav.getInt32(this.pos,!0),this.pos+=4,this.planes=this.datav.getUint16(this.pos,!0),this.pos+=2,this.bitPP=this.datav.getUint16(this.pos,!0),this.pos+=2,this.compress=this.datav.getUint32(this.pos,!0),this.pos+=4,this.rawSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.hr=this.datav.getUint32(this.pos,!0),this.pos+=4,this.vr=this.datav.getUint32(this.pos,!0),this.pos+=4,this.colors=this.datav.getUint32(this.pos,!0),this.pos+=4,this.importantColors=this.datav.getUint32(this.pos,!0),this.pos+=4,16===this.bitPP&&this.is_with_alpha&&(this.bitPP=15),this.bitPP<15){var t=0===this.colors?1<<this.bitPP:this.colors;this.palette=new Array(t);for(var e=0;e<t;e++){var n=this.datav.getUint8(this.pos++,!0),r=this.datav.getUint8(this.pos++,!0),i=this.datav.getUint8(this.pos++,!0),o=this.datav.getUint8(this.pos++,!0);this.palette[e]={red:i,green:r,blue:n,quad:o}}}this.height<0&&(this.height*=-1,this.bottom_up=!1)},i.prototype.parseBGR=function(){this.pos=this.offset;try{var t="bit"+this.bitPP,e=this.width*this.height*4;this.data=new Uint8Array(e),this[t]()}catch(t){console.log("bit decode error:"+t)}},i.prototype.bit1=function(){var t=Math.ceil(this.width/8),e=t%4,n=0<=this.height?this.height-1:-this.height;for(n=this.height-1;0<=n;n--){for(var r=this.bottom_up?n:this.height-1-n,i=0;i<t;i++)for(var o=this.datav.getUint8(this.pos++,!0),a=r*this.width*4+8*i*4,s=0;s<8&&8*i+s<this.width;s++){var l=this.palette[o>>7-s&1];this.data[a+4*s]=l.blue,this.data[a+4*s+1]=l.green,this.data[a+4*s+2]=l.red,this.data[a+4*s+3]=255}0!=e&&(this.pos+=4-e)}},i.prototype.bit4=function(){for(var t=Math.ceil(this.width/2),e=t%4,n=this.height-1;0<=n;n--){for(var r=this.bottom_up?n:this.height-1-n,i=0;i<t;i++){var o=this.datav.getUint8(this.pos++,!0),a=r*this.width*4+2*i*4,s=o>>4,l=15&o,c=this.palette[s];if(this.data[a]=c.blue,this.data[a+1]=c.green,this.data[a+2]=c.red,this.data[a+3]=255,2*i+1>=this.width)break;c=this.palette[l],this.data[a+4]=c.blue,this.data[a+4+1]=c.green,this.data[a+4+2]=c.red,this.data[a+4+3]=255}0!=e&&(this.pos+=4-e)}},i.prototype.bit8=function(){for(var t=this.width%4,e=this.height-1;0<=e;e--){for(var n=this.bottom_up?e:this.height-1-e,r=0;r<this.width;r++){var i=this.datav.getUint8(this.pos++,!0),o=n*this.width*4+4*r;if(i<this.palette.length){var a=this.palette[i];this.data[o]=a.red,this.data[o+1]=a.green,this.data[o+2]=a.blue,this.data[o+3]=255}else this.data[o]=255,this.data[o+1]=255,this.data[o+2]=255,this.data[o+3]=255}0!=t&&(this.pos+=4-t)}},i.prototype.bit15=function(){for(var t=this.width%3,e=parseInt("11111",2),n=this.height-1;0<=n;n--){for(var r=this.bottom_up?n:this.height-1-n,i=0;i<this.width;i++){var o=this.datav.getUint16(this.pos,!0);this.pos+=2;var a=(o&e)/e*255|0,s=(o>>5&e)/e*255|0,l=(o>>10&e)/e*255|0,c=o>>15?255:0,u=r*this.width*4+4*i;this.data[u]=l,this.data[u+1]=s,this.data[u+2]=a,this.data[u+3]=c}this.pos+=t}},i.prototype.bit16=function(){for(var t=this.width%3,e=parseInt("11111",2),n=parseInt("111111",2),r=this.height-1;0<=r;r--){for(var i=this.bottom_up?r:this.height-1-r,o=0;o<this.width;o++){var a=this.datav.getUint16(this.pos,!0);this.pos+=2;var s=(a&e)/e*255|0,l=(a>>5&n)/n*255|0,c=(a>>11)/e*255|0,u=i*this.width*4+4*o;this.data[u]=c,this.data[u+1]=l,this.data[u+2]=s,this.data[u+3]=255}this.pos+=t}},i.prototype.bit24=function(){for(var t=this.height-1;0<=t;t--){for(var e=this.bottom_up?t:this.height-1-t,n=0;n<this.width;n++){var r=this.datav.getUint8(this.pos++,!0),i=this.datav.getUint8(this.pos++,!0),o=this.datav.getUint8(this.pos++,!0),a=e*this.width*4+4*n;this.data[a]=o,this.data[a+1]=i,this.data[a+2]=r,this.data[a+3]=255}this.pos+=this.width%4}},i.prototype.bit32=function(){for(var t=this.height-1;0<=t;t--)for(var e=this.bottom_up?t:this.height-1-t,n=0;n<this.width;n++){var r=this.datav.getUint8(this.pos++,!0),i=this.datav.getUint8(this.pos++,!0),o=this.datav.getUint8(this.pos++,!0),a=this.datav.getUint8(this.pos++,!0),s=e*this.width*4+4*n;this.data[s]=o,this.data[s+1]=i,this.data[s+2]=r,this.data[s+3]=a}},i.prototype.getData=function(){return this.data},window.tmp=i,function(t){function e(){function t(t,e){for(var n=0;n|=1&t,t>>>=1,n<<=1,0<--e;);return n>>>1}var e=this;e.build_tree=function(n){var r,i,o,a=e.dyn_tree,c=e.stat_desc.static_tree,u=e.stat_desc.elems,f=-1;for(n.heap_len=0,n.heap_max=l,r=0;r<u;r++)0!==a[2*r]?(n.heap[++n.heap_len]=f=r,n.depth[r]=0):a[2*r+1]=0;for(;n.heap_len<2;)a[2*(o=n.heap[++n.heap_len]=f<2?++f:0)]=1,n.depth[o]=0,n.opt_len--,c&&(n.static_len-=c[2*o+1]);for(e.max_code=f,r=Math.floor(n.heap_len/2);1<=r;r--)n.pqdownheap(a,r);for(o=u;r=n.heap[1],n.heap[1]=n.heap[n.heap_len--],n.pqdownheap(a,1),i=n.heap[1],n.heap[--n.heap_max]=r,n.heap[--n.heap_max]=i,a[2*o]=a[2*r]+a[2*i],n.depth[o]=Math.max(n.depth[r],n.depth[i])+1,a[2*r+1]=a[2*i+1]=o,n.heap[1]=o++,n.pqdownheap(a,1),2<=n.heap_len;);n.heap[--n.heap_max]=n.heap[1],function(t){var n,r,i,o,a,c,u=e.dyn_tree,f=e.stat_desc.static_tree,h=e.stat_desc.extra_bits,d=e.stat_desc.extra_base,p=e.stat_desc.max_length,g=0;for(o=0;o<=s;o++)t.bl_count[o]=0;for(u[2*t.heap[t.heap_max]+1]=0,n=t.heap_max+1;n<l;n++)p<(o=u[2*u[2*(r=t.heap[n])+1]+1]+1)&&(o=p,g++),u[2*r+1]=o,r>e.max_code||(t.bl_count[o]++,a=0,d<=r&&(a=h[r-d]),c=u[2*r],t.opt_len+=c*(o+a),f&&(t.static_len+=c*(f[2*r+1]+a)));if(0!==g){do{for(o=p-1;0===t.bl_count[o];)o--;t.bl_count[o]--,t.bl_count[o+1]+=2,t.bl_count[p]--,g-=2}while(0<g);for(o=p;0!==o;o--)for(r=t.bl_count[o];0!==r;)(i=t.heap[--n])>e.max_code||(u[2*i+1]!=o&&(t.opt_len+=(o-u[2*i+1])*u[2*i],u[2*i+1]=o),r--)}}(n),function(e,n,r){var i,o,a,l=[],c=0;for(i=1;i<=s;i++)l[i]=c=c+r[i-1]<<1;for(o=0;o<=n;o++)0!==(a=e[2*o+1])&&(e[2*o]=t(l[a]++,a))}(a,e.max_code,n.bl_count)}}function n(t,e,n,r,i){this.static_tree=t,this.extra_bits=e,this.extra_base=n,this.elems=r,this.max_length=i}function r(t,e,n,r,i){this.good_length=t,this.max_lazy=e,this.nice_length=n,this.max_chain=r,this.func=i}function i(t,e,n,r){var i=t[2*e],o=t[2*n];return i<o||i==o&&r[e]<=r[n]}function o(){function t(){var t+;for(t=0;t<286;t++)Q[2*t]=0;for(t=0;t<30;t++)Z[2*t]=0;for(t=0;t<19;t++)tt[2*t]=0;Q[512]=1,ct.opt_len=ct.static_len=0,rt=ot=0}function r(t,e){var n,r,i=-1,o=t[1],a=0,s=7,l=4;for(0===o&&(s=138,l=3),t[2*(e+1)+1]=65535,n=0;n<=e;n++)r=o,o=t[2*(n+1)+1],++a<s&&r==o||(a<l?tt[2*r]+=a:0!==r?(r!=i&&tt[2*r]++,tt[32]++):a<=10?tt[34]++:tt[36]++,i=r,l=(a=0)===o?(s=138,3):r==o?(s=6,3):(s=7,4))}function o(t){ct.pending_buf[ct.pending++]=t}function a(t){o(255&t),o(t>>>8&255)}function s(t,e){var n,r=e;16-r<lt?(a(st|=(n=t)<<lt&65535),st=n>>>16-lt,lt+=r-16):(st|=t<<lt&65535,lt+=r)}function l(t,e){var n=2*t;s(65535&e[n],65535&e[n+1])}function c(t,e){var n,r,i=-1,o=t[1],a=0,c=7,u=4;for(0===o&&(c=138,u=3),n=0;n<=e;n++)if(r=o,o=t[2*(n+1)+1],!(++a<c&&r==o)){if(a<u)for(;l(r,tt),0!=--a;);else 0!==r?(r!=i&&(l(r,tt),a--),l(16,tt),s(a-3,2)):a<=10?(l(17,tt),s(a-3,3)):(l(18,tt),s(a-11,7));i=r,u=(a=0)===o?(c=138,3):r==o?(c=6,3):(c=7,4)}}function h(){16==lt?(a(st),lt=st=0):8<=lt&&(o(255&st),st>>>=8,lt-=8)}function d(t,n){var r,i,o;if(ct.pending_buf[it+2*rt]=t>>>8&255,ct.pending_buf[it+2*rt+1]=255&t,ct.pending_buf[et+rt]=255&n,rt++,0===t?Q[2*n]++:(ot++,t--,Q[2*(e._length_code[n]+256+1)]++,Z[2*e.d_code(t)]++),0==(8191&rt)&&2<Y){for(r=8*rt,i=z-M,o=0;o<30;o++)r+=Z[2*o]*(5+e.extra_dbits[o]);if(r>>>=3,ot<Math.floor(rt/2)&&r<Math.floor(i/2))return!0}return rt==nt-1}function p(t,n){var r,i,o,a,c=0;if(0!==rt)for(;r=ct.pending_buf[it+2*c]<<8&65280|255&ct.pending_buf[it+2*c+1],i=255&ct.pending_buf[et+c],c++,0===r?l(i,t):(l((o=e._length_code[i])+256+1,t),0!==(a=e.extra_lbits[o])&&s(i-=e.base_length[o],a),l(o=e.d_code(--r),n),0!==(a=e.extra_dbits[o])&&s(r-=e.base_dist[o],a)),c<rt;);l(256,t),at=t[513]}function g(){8<lt?a(st):0<lt&&o(255&st),lt=st=0}function m(t,e,n){var r,i,o;s(0+(n?1:0),3),r=t,i=e,o=!0,g(),at=8,o&&(a(i),a(~i)),ct.pending_buf.set(_.subarray(r,r+i),ct.pending),ct.pending+=i}function v(i,o,a){var l,u,f=0;0<Y?(ut.build_tree(ct),ft.build_tree(ct),f=function(){var t;for(r(Q,ut.max_code),r(Z,ft.max_code),ht.build_tree(ct),t=18;3<=t&&0===tt[2*e.bl_order[t]+1];t--);return ct.opt_len+=3*(t+1)+5+5+4,t}(),l=ct.opt_len+3+7>>>3,(u=ct.static_len+3+7>>>3)<=l&&(l=u)):l=u=o+5,o+4<=l&&-1!=i?m(i,o,a):u==l?(s(2+(a?1:0),3),p(n.static_ltree,n.static_dtree)):(s(4+(a?1:0),3),function(t,n,r){var i;for(s(t-257,5),s(n-1,5),s(r-4,4),i=0;i<r;i++)s(tt[2*e.bl_order[i]+1],3);c(Q,t-1),c(Z,n-1)}(ut.max_code+1,ft.max_code+1,f+1),p(Q,Z)),t(),a&&g()}function y(t){v(0<=M?M:-1,z-M,t),M=z,S.flush_pending()}function b(){var t,e,n,r;do{if(0==(r=P-$-z)&&0===z&&0===$)r=k;else if(-1==r)r--;else if(k+k-262<=z){for(_.set(_.subarray(k,k+k),0),H-=k,z-=k,M-=k,n=t=j;e=65535&T[--n],T[n]=k<=e?e-k:0,0!=--t;);for(n=t=k;e=65535&I[--n],I[n]=k<=e?e-k:0,0!=--t;);r+=k}if(0===S.avail_in)return;t=S.read_buf(_,z+$,r),3<=($+=t)&&(E=((E=255&_[z])<<B^255&_[z+1])&R)}while($<262&&0!==S.avail_in)}function w(t){var e,n,r=W,i=z,o=V,a=k-262<z?z-(k-262):0,s=K,l=O,c=z+258,u=_[i+o-1],f=_[i+o];X<=V&&(r>>=2),$<s&&(s=$);do{if(_[(e=t)+o]==f&&_[e+o-1]==u&&_[e]==_[i]&&_[++e]==_[i+1]){i+=2,e++;do{}while(_[++i]==_[++e]&&_[++i]==_[++e]&&_[++i]==_[++e]&&_[++i]==_[++e]&&_[++i]==_[++e]&&_[++i]==_[++e]&&_[++i]==_[++e]&&_[++i]==_[++e]&&i<c);if(n=258-(c-i),i=c-258,o<n){if(H=t,s<=(o=n))break;u=_[i+o-1],f=_[i+o]}}}while((t=65535&I[t&l])>a&&0!=--r);return o<=$?o:$}function x(e){return e.total_in=e.total_out=0,e.msg=null,ct.pending=0,ct.pending_out=0,A=113,L=0,ut.dyn_tree=Q,ut.stat_desc=n.static_l_desc,ft.dyn_tree=Z,ft.stat_desc=n.static_d_desc,ht.dyn_tree=tt,ht.stat_desc=n.static_bl_desc,lt=st=0,at=8,t(),function(){var t;for(P=2*k,t=T[j-1]=0;t<j-1;t++)T[t]=0;G=u[Y].max_lazy,X=u[Y].good_length,K=u[Y].nice_length,W=u[Y].max_chain,D=V=2,E=U=$=M=z=0}(),0}var S,A,N,L,k,C,O,_,P,I,T,E,j,F,R,B,M,D,q,U,z,H,$,V,W,G,Y,J,X,K,Q,Z,tt,et,nt,rt,it,ot,at,st,lt,ct=this,ut=new e,ft=new e,ht=new e;ct.depth=[],ct.bl_count=[],ct.heap=[],Q=[],Z=[],tt=[],ct.pqdownheap=function(t,e){for(var n=ct.heap,r=n[e],o=e<<1;o<=ct.heap_len&&(o<ct.heap_len&&i(t,n[o+1],n[o],ct.depth)&&o++,!i(t,r,n[o],ct.depth));)n[e]=n[o],e=o,o<<=1;n[e]=r},ct.deflateInit=function(t,e,n,r,i,o){return r||(r=8),i||(i=8),o||(o=0),t.msg=null,-1==e&&(e=6),i<1||9<i||8!=r||n<9||15<n||e<0||9<e||o<0||2<o?-2:(t.dstate=ct,O=(k=1<<(C=n))-1,R=(j=1<<(F=i+7))-1,B=Math.floor((F+3-1)/3),_=new Uint8Array(2*k),I=[],T=[],nt=1<<i+6,ct.pending_buf=new Uint8Array(4*nt),N=4*nt,it=Math.floor(nt/2),et=3*nt,Y=e,J=o,x(t))},ct.deflateEnd=function(){return 42!=A&&113!=A&&666!=A?-2:(ct.pending_buf=null,_=I=T=null,ct.dstate=null,113==A?-3:0)},ct.deflateParams=function(t,e,n){var r=0;return-1==e&&(e=6),e<0||9<e||n<0||2<n?-2:(u[Y].func!=u[e].func&&0!==t.total_in&&(r=t.deflate(1)),Y!=e&&(G=u[Y=e].max_lazy,X=u[Y].good_length,K=u[Y].nice_length,W=u[Y].max_chain),J=n,r)},ct.deflateSetDictionary=function(t,e,n){var r,i=n,o=0;if(!e||42!=A)return-2;if(i<3)return 0;for(k-262<i&&(o=n-(i=k-262)),_.set(e.subarray(o,o+i),0),M=z=i,E=((E=255&_[0])<<B^255&_[1])&R,r=0;r<=i-3;r++)E=(E<<B^255&_[r+2])&R,I[r&O]=T[E],T[E]=r;return 0},ct.deflate=function(t,e){var r,i,a,c,p,g;if(4<e||e<0)return-2;if(!t.next_out||!t.next_in&&0!==t.avail_in||666==A&&4!=e)return t.msg=f[4],-2;if(0===t.avail_out)return t.msg=f[7],-5;if(S=t,c=L,L=e,42==A&&(i=8+(C-8<<4)<<8,3<(a=(Y-1&255)>>1)&&(a=3),i|=a<<6,0!==z&&(i|=32),A=113,o((g=i+=31-i%31)>>8&255),o(255&g)),0!==ct.pending){if(S.flush_pending(),0===S.avail_out)return L=-1,0}else if(0===S.avail_in&&e<=c&&4!=e)return S.msg=f[7],-5;if(666==A&&0!==S.avail_in)return t.msg=f[7],-5;if(0!==S.avail_in||0!==$||0!=e&&666!=A){switch(p=-1,u[Y].func){case 0:p=function(t){var e,n=65535;for(N-5<n&&(n=N-5);;){if($<=1){if(b(),0===$&&0==t)return 0;if(0===$)break}if(z+=$,e=M+n,(($=0)===z||e<=z)&&($=z-e,z=e,y(!1),0===S.avail_out))return 0;if(k-262<=z-M&&(y(!1),0===S.avail_out))return 0}return y(4==t),0===S.avail_out?4==t?2:0:4==t?3:1}(e);break;case 1:p=function(t){for(var e,n=0;;){if($<262){if(b(),$<262&&0==t)return 0;if(0===$)break}if(3<=$&&(E=(E<<B^255&_[z+2])&R,n=65535&T[E],I[z&O]=T[E],T[E]=z),0!==n&&(z-n&65535)<=k-262&&2!=J&&(D=w(n)),3<=D)if(e=d(z-H,D-3),$-=D,D<=G&&3<=$){for(D--;E=(E<<B^255&_[++z+2])&R,n=65535&T[E],I[z&O]=T[E],T[E]=z,0!=--D;);z++}else z+=D,D=0,E=((E=255&_[z])<<B^255&_[z+1])&R;else e=d(0,255&_[z]),$--,z++;if(e&&(y(!1),0===S.avail_out))return 0}return y(4==t),0===S.avail_out?4==t?2:0:4==t?3:1}(e);break;case 2:p=function(t){for(var e,n,r=0;;){if($<262){if(b(),$<262&&0==t)return 0;if(0===$)break}if(3<=$&&(E=(E<<B^255&_[z+2])&R,r=65535&T[E],I[z&O]=T[E],T[E]=z),V=D,q=H,D=2,0!==r&&V<G&&(z-r&65535)<=k-262&&(2!=J&&(D=w(r)),D<=5&&(1==J||3==D&&4096<z-H)&&(D=2)),3<=V&&D<=V){for(n=z+$-3,e=d(z-1-q,V-3),$-=V-1,V-=2;++z<=n&&(E=(E<<B^255&_[z+2])&R,r=65535&T[E],I[z&O]=T[E],T[E]=z),0!=--V;);if(U=0,D=2,z++,e&&(y(!1),0===S.avail_out))return 0}else if(0!==U){if((e=d(0,255&_[z-1]))&&y(!1),z++,$--,0===S.avail_out)return 0}else U=1,z++,$--}return 0!==U&&(e=d(0,255&_[z-1]),U=0),y(4==t),0===S.avail_out?4==t?2:0:4==t?3:1}(e)}if(2!=p&&3!=p||(A=666),0==p||2==p)return 0===S.avail_out&&(L=-1),0;if(1==p){if(1==e)s(2,3),l(256,n.static_ltree),h(),1+at+10-lt<9&&(s(2,3),l(256,n.static_ltree),h()),at=7;else if(m(0,0,!1),3==e)for(r=0;r<j;r++)T[r]=0;if(S.flush_pending(),0===S.avail_out)return L=-1,0}}return 4!=e?0:1}}function a(){this.next_in_index=0,this.next_out_index=0,this.avail_in=0,this.total_in=0,this.avail_out=0,this.total_out=0}var s=15,l=573,c=[0,1,2,3,4,4,5,5,6,6,6,6,7,7,7,7,8,8,8,8,8,8,8,8,9,9,9,9,9,9,9,9,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,0,0,16,17,18,18,19,19,20,20,20,20,21,21,21,21,22,22,22,22,22,22,22,22,23,23,23,23,23,23,23,23,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29];e._length_code=[0,1,2,3,4,5,6,7,8,8,9,9,10,10,11,11,12,12,12,12,13,13,13,13,14,14,14,14,15,15,15,15,16,16,16,16,16,16,16,16,17,17,17,17,17,17,17,17,18,18,18,18,18,18,18,18,19,19,19,19,19,19,19,19,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,28],e.base_length=[0,1,2,3,4,5,6,7,8,10,12,14,16,20,24,28,32,40,48,56,64,80,96,112,128,160,192,224,0],e.base_dist=[0,1,2,3,4,6,8,12,16,24,32,48,64,96,128,192,256,384,512,768,1024,1536,2048,3072,4096,6144,8192,12288,16384,24576],e.d_code=function(t){return t<256?c[t]:c[256+(t>>>7)]},e.extra_lbits=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],e.extra_dbits=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],e.extra_blbits=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],e.bl_order=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],n.static_ltree=[12,8,140,8,76,8,204,8,44,8,172,8,108,8,236,8,28,8,156,8,92,8,220,8,60,8,188,8,124,8,252,8,2,8,130,8,66,8,194,8,34,8,162,8,98,8,226,8,18,8,146,8,82,8,210,8,50,8,178,8,114,8,242,8,10,8,138,8,74,8,202,8,42,8,170,8,106,8,234,8,26,8,154,8,90,8,218,8,58,8,186,8,122,8,250,8,6,8,134,8,70,8,198,8,38,8,166,8,102,8,230,8,22,8,150,8,86,8,214,8,54,8,182,8,118,8,246,8,14,8,142,8,78,8,206,8,46,8,174,8,110,8,238,8,30,8,158,8,94,8,222,8,62,8,190,8,126,8,254,8,1,8,129,8,65,8,193,8,33,8,161,8,97,8,225,8,17,8,145,8,81,8,209,8,49,8,177,8,113,8,241,8,9,8,137,8,73,8,201,8,41,8,169,8,105,8,233,8,25,8,153,8,89,8,217,8,57,8,185,8,121,8,249,8,5,8,133,8,69,8,197,8,37,8,165,8,101,8,229,8,21,8,149,8,85,8,213,8,53,8,181,8,117,8,245,8,13,8,141,8,77,8,205,8,45,8,173,8,109,8,237,8,29,8,157,8,93,8,221,8,61,8,189,8,125,8,253,8,19,9,275,9,147,9,403,9,83,9,339,9,211,9,467,9,51,9,307,9,179,9,435,9,115,9,371,9,243,9,499,9,11,9,267,9,139,9,395,9,75,9,331,9,203,9,459,9,43,9,299,9,171,9,427,9,107,9,363,9,235,9,491,9,27,9,283,9,155,9,411,9,91,9,347,9,219,9,475,9,59,9,315,9,187,9,443,9,123,9,379,9,251,9,507,9,7,9,263,9,135,9,391,9,71,9,327,9,199,9,455,9,39,9,295,9,167,9,423,9,103,9,359,9,231,9,487,9,23,9,279,9,151,9,407,9,87,9,343,9,215,9,471,9,55,9,311,9,183,9,439,9,119,9,375,9,247,9,503,9,15,9,271,9,143,9,399,9,79,9,335,9,207,9,463,9,47,9,303,9,175,9,431,9,111,9,367,9,239,9,495,9,31,9,287,9,159,9,415,9,95,9,351,9,223,9,479,9,63,9,319,9,191,9,447,9,127,9,383,9,255,9,511,9,0,7,64,7,32,7,96,7,16,7,80,7,48,7,112,7,8,7,72,7,40,7,104,7,24,7,88,7,56,7,120,7,4,7,68,7,36,7,100,7,20,7,84,7,52,7,116,7,3,8,131,8,67,8,195,8,35,8,163,8,99,8,227,8],n.static_dtree=[0,5,16,5,8,5,24,5,4,5,20,5,12,5,28,5,2,5,18,5,10,5,26,5,6,5,22,5,14,5,30,5,1,5,17,5,9,5,25,5,5,5,21,5,13,5,29,5,3,5,19,5,11,5,27,5,7,5,23,5],n.static_l_desc=new n(n.static_ltree,e.extra_lbits,257,286,s),n.static_d_desc=new n(n.static_dtree,e.extra_dbits,0,30,s),n.static_bl_desc=new n(null,e.extra_blbits,0,19,7);var u=[new r(0,0,0,0,0),new r(4,4,8,4,1),new r(4,5,16,8,1),new r(4,6,32,32,1),new r(4,4,16,16,2),new r(8,16,32,32,2),new r(8,16,128,128,2),new r(8,32,128,256,2),new r(32,128,258,1024,2),new r(32,258,258,4096,2)],f=["need dictionary","stream end","","","stream error","data error","","buffer error","",""];a.prototype={deflateInit:function(t,e){return this.dstate=new o,e||(e=s),this.dstate.deflateInit(this,t,e)},deflate:function(t){return this.dstate?this.dstate.deflate(this,t):-2},deflateEnd:function(){if(!this.dstate)return-2;var t=this.dstate.deflateEnd();return this.dstate=null,t},deflateParams:function(t,e){return this.dstate?this.dstate.deflateParams(this,t,e):-2},deflateSetDictionary:function(t,e){return this.dstate?this.dstate.deflateSetDictionary(this,t,e):-2},read_buf:function(t,e,n){var r=this.avail_in;return n<r&&(r=n),0===r?0:(this.avail_in-=r,t.set(this.next_in.subarray(this.next_in_index,this.next_in_index+r),e),this.next_in_index+=r,this.total_in+=r,r)},flush_pending:function(){var t=this,e=t.dstate.pending;e>t.avail_out&&(e=t.avail_out),0!==e&&(t.next_out.set(t.dstate.pending_buf.subarray(t.dstate.pending_out,t.dstate.pending_out+e),t.next_out_index),t.next_out_index+=e,t.dstate.pending_out+=e,t.total_out+=e,t.avail_out-=e,t.dstate.pending-=e,0===t.dstate.pending&&(t.dstate.pending_out=0))}};var h=t.zip||t;h.Deflater=h._jzlib_Deflater=function(t){var e=new a,n=new Uint8Array(512),r=t?t.level:-1;void 0===r&&(r=-1),e.deflateInit(r),e.next_out=n,this.append=function(t,r){var i,o=[],a=0,s=0,l=0;if(t.length){e.next_in_index=0,e.next_in=t,e.avail_in=t.length;do{if(e.next_out_index=0,e.avail_out=512,0!=e.deflate(0))throw new Error("deflating: "+e.msg);e.next_out_index&&(512==e.next_out_index?o.push(new Uint8Array(n)):o.push(new Uint8Array(n.subarray(0,e.next_out_index)))),l+=e.next_out_index,r&&0<e.next_in_index&&e.next_in_index!=a&&(r(e.next_in_index),a=e.next_in_index)}while(0<e.avail_in||0===e.avail_out);return i=new Uint8Array(l),o.forEach(function(t){i.set(t,s),s+=t.length}),i}},this.flush=function(){var t,r,i=[],o=0,a=0;do{if(e.next_out_index=0,e.avail_out=512,1!=(t=e.deflate(4))&&0!=t)throw new Error("deflating: "+e.msg);0<512-e.avail_out&&i.push(new Uint8Array(n.subarray(0,e.next_out_index))),a+=e.next_out_index}while(0<e.avail_in||0===e.avail_out);return e.deflateEnd(),r=new Uint8Array(a),i.forEach(function(t){r.set(t,o),o+=t.length}),r}}}("undefined"!=typeof self&&self||"undefined"!=typeof window&&window||"undefined"!=typeof global&&global||Function('return typeof this === "object" && this.content')()||Function("return this")()),("undefined"!=typeof self&&self||"undefined"!=typeof window&&window||"undefined"!=typeof global&&global||Function('return typeof this === "object" && this.content')()||Function("return this")()).RGBColor=function(t){var e;t=t||"",this.ok=!1,"#"==t.charAt(0)&&(t=t.substr(1,6)),t=(t=t.replace(/ /g,"")).toLowerCase();var n={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dodgerblue:"1e90ff",feldspar:"d19275",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgrey:"d3d3d3",lightgreen:"90ee90",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslateblue:"8470ff",lightslategray:"778899",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"00ff00",limegreen:"32cd32",linen:"faf0e6",magenta:"ff00ff",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370d8",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"d87093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",red:"ff0000",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",violetred:"d02090",wheat:"f5deb3",white:"ffffff",whitesmoke:"f5f5f5",yellow:"ffff00",yellowgreen:"9acd32"};for(var r in n)t==r&&(t=n[r]);for(var i=[{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,example:["rgb(123, 234, 45)","rgb(255,234,245)"],process:function(t){return[parseInt(t[1]),parseInt(t[2]),parseInt(t[3])]}},{re:/^(\w{2})(\w{2})(\w{2})$/,example:["#00ff00","336699"],process:function(t){return[parseInt(t[1],16),parseInt(t[2],16),parseInt(t[3],16)]}},{re:/^(\w{1})(\w{1})(\w{1})$/,example:["#fb0","f0f"],process:function(t){return[parseInt(t[1]+t[1],16),parseInt(t[2]+t[2],16),parseInt(t[3]+t[3],16)]}}],o=0;o<i.length;o++){var a=i[o].re,s=i[o].process,l=a.exec(t);l&&(e=s(l),this.r=e[0],this.g=e[1],this.b=e[2],this.ok=!0)}this.r=this.r<0||isNaN(this.r)?0:255<this.r?255:this.r,this.g=this.g<0||isNaN(this.g)?0:255<this.g?255:this.g,this.b=this.b<0||isNaN(this.b)?0:255<this.b?255:this.b,this.toRGB=function(){return"rgb("+this.r+", "+this.g+", "+this.b+")"},this.toHex=function(){var t=this.r.toString(16),e=this.g.toString(16),n=this.b.toString(16);return 1==t.length&&(t="0"+t),1==e.length&&(e="0"+e),1==n.length&&(n="0"+n),"#"+t+e+n}},function(t){var e="+".charCodeAt(0),n="/".charCodeAt(0),r="0".charCodeAt(0),i="a".charCodeAt(0),o="A".charCodeAt(0),a="-".charCodeAt(0),s="_".charCodeAt(0),l=function(t){var l=t.charCodeAt(0);return l===e||l===a?62:l===n||l===s?63:l<r?-1:l<r+10?l-r+26+26:l<o+26?l-o:l<i+26?l-i+26:void 0};t.API.TTFFont=function(){function t(t,e,n){var r;if(this.rawData=t,r=this.contents=new u(t),this.contents.pos=4,"ttcf"===r.readString(4)){if(!e)throw new Error("Must specify a font name for TTC files.");throw new Error("Font "+e+" not found in TTC file.")}r.pos=0,this.parse(),this.subset=new _(this),this.registerTTF()}return t.open=function(e,n,r,i){if("string"!=typeof r)throw new Error("Invalid argument supplied in TTFFont.open");return new t(function(t){function e(t){s[u++]=t}var n,r,i,o,a,s;if(0<t.length%4)throw new Error("Invalid string. Length must be a multiple of 4");var c=t.length;a="="===t.charAt(c-2)?2:"="===t.charAt(c-1)?1:0,s=new Uint8Array(3*t.length/4-a),i=0<a?t.length-4:t.length;var u=0;for(r=n=0;n<i;n+=4,r+=3)e((16711680&(o=l(t.charAt(n))<<18|l(t.charAt(n+1))<<12|l(t.charAt(n+2))<<6|l(t.charAt(n+3))))>>16),e((65280&o)>>8),e(255&o);return 2===a?e(255&(o=l(t.charAt(n))<<2|l(t.charAt(n+1))>>4)):1===a&&(e((o=l(t.charAt(n))<<10|l(t.charAt(n+1))<<4|l(t.charAt(n+2))>>2)>>8&255),e(255&o)),s}(r),n,i)},t.prototype.parse=function(){return this.directory=new f(this.contents),this.head=new p(this),this.name=new x(this),this.cmap=new m(this),this.toUnicode=new Map,this.hhea=new v(this),this.maxp=new S(this),this.hmtx=new A(this),this.post=new b(this),this.os2=new y(this),this.loca=new O(this),this.glyf=new L(this),this.ascender=this.os2.exists&&this.os2.ascender||this.hhea.ascender,this.decender=this.os2.exists&&this.os2.decender||this.hhea.decender,this.lineGap=this.os2.exists&&this.os2.lineGap||this.hhea.lineGap,this.bbox=[this.head.xMin,this.head.yMin,this.head.xMax,this.head.yMax]},t.prototype.registerTTF=function(){var t,e,n,r,i;if(this.scaleFactor=1e3/this.head.unitsPerEm,this.bbox=function(){var e,n,r,i;for(i=[],e=0,n=(r=this.bbox).length;e<n;e++)t=r[e],i.push(Math.round(t*this.scaleFactor));return i}.call(this),this.stemV=0,this.post.exists?(n=255&(r=this.post.italic_angle),!0&(e=r>>16)&&(e=-(1+(65535^e))),this.italicAngle=+(e+"."+n)):this.italicAngle=0,this.ascender=Math.round(this.ascender*this.scaleFactor),this.decender=Math.round(this.decender*this.scaleFactor),this.lineGap=Math.round(this.lineGap*this.scaleFactor),this.capHeight=this.os2.exists&&this.os2.capHeight||this.ascender,this.xHeight=this.os2.exists&&this.os2.xHeight||0,this.familyClass=(this.os2.exists&&this.os2.familyClass||0)>>8,this.isSerif=1===(i=this.familyClass)||2===i||3===i||4===i||5===i||7===i,this.isScript=10===this.familyClass,this.flags=0,this.post.isFixedPitch&&(this.flags|=1),this.isSerif&&(this.flags|=2),this.isScript&&(this.flags|=8),0!==this.italicAngle&&(this.flags|=64),this.flags|=32,!this.cmap.unicode)throw new Error("No unicode cmap for font")},t.prototype.characterToGlyph=function(t){var e;return(null!=(e=this.cmap.unicode)?e.codeMap[t]:void 0)||0},t.prototype.widthOfGlyph=function(t){var e;return e=1e3/this.head.unitsPerEm,this.hmtx.forGlyph(t).advance*e},t.prototype.widthOfString=function(t,e,n){var r,i,o,a,s;for(i=a=o=0,s=(t=""+t).length;0<=s?a<s:s<a;i=0<=s?++a:--a)r=t.charCodeAt(i),o+=this.widthOfGlyph(this.characterToGlyph(r))+n*(1e3/e)||0;return o*(e/1e3)},t.prototype.lineHeight=function(t,e){var n;return null==e&&(e=!1),n=e?this.lineGap:0,(this.ascender+n-this.decender)/1e3*t},t}();var c,u=function(){function t(t){this.data=null!=t?t:[],this.pos=0,this.length=this.data.length}return t.prototype.readByte=function(){return this.data[this.pos++]},t.prototype.writeByte=function(t){return this.data[this.pos++]=t},t.prototype.readUInt32=function(){return 16777216*this.readByte()+(this.readByte()<<16)+(this.readByte()<<8)+this.readByte()},t.prototype.writeUInt32=function(t){return this.writeByte(t>>>24&255),this.writeByte(t>>16&255),this.writeByte(t>>8&255),this.writeByte(255&t)},t.prototype.readInt32=function(){var t;return 2147483648<=(t=this.readUInt32())?t-4294967296:t},t.prototype.writeInt32=function(t){return t<0&&(t+=4294967296),this.writeUInt32(t)},t.prototype.readUInt16=function(){return this.readByte()<<8|this.readByte()},t.prototype.writeUInt16=function(t){return this.writeByte(t>>8&255),this.writeByte(255&t)},t.prototype.readInt16=function(){var t;return 32768<=(t=this.readUInt16())?t-65536:t},t.prototype.writeInt16=function(t){return t<0&&(t+=65536),this.writeUInt16(t)},t.prototype.readString=function(t){var e,n,r;for(n=[],e=r=0;0<=t?r<t:t<r;e=0<=t?++r:--r)n[e]=String.fromCharCode(this.readByte());return n.join("")},t.prototype.writeString=function(t){var e,n,r,i;for(i=[],e=n=0,r=t.length;0<=r?n<r:r<n;e=0<=r?++n:--n)i.push(this.writeByte(t.charCodeAt(e)));return i},t.prototype.readShort=function(){return this.readInt16()},t.prototype.writeShort=function(t){return this.writeInt16(t)},t.prototype.readLongLong=function(){var t,e,n,r,i,o,a,s;return t=this.readByte(),e=this.readByte(),n=this.readByte(),r=this.readByte(),i=this.readByte(),o=this.readByte(),a=this.readByte(),s=this.readByte(),128&t?-1*(72057594037927940*(255^t)+281474976710656*(255^e)+1099511627776*(255^n)+4294967296*(255^r)+16777216*(255^i)+65536*(255^o)+256*(255^a)+(255^s)+1):72057594037927940*t+281474976710656*e+1099511627776*n+4294967296*r+16777216*i+65536*o+256*a+s},t.prototype.writeLongLong=function(t){var e,n;return e=Math.floor(t/4294967296),n=4294967295&t,this.writeByte(e>>24&255),this.writeByte(e>>16&255),this.writeByte(e>>8&255),this.writeByte(255&e),this.writeByte(n>>24&255),this.writeByte(n>>16&255),this.writeByte(n>>8&255),this.writeByte(255&n)},t.prototype.readInt=function(){return this.readInt32()},t.prototype.writeInt=function(t){return this.writeInt32(t)},t.prototype.read=function(t){var e,n;for(e=[],n=0;0<=t?n<t:t<n;0<=t?++n:--n)e.push(this.readByte());return e},t.prototype.write=function(t){var e,n,r,i;for(i=[],n=0,r=t.length;n<r;n++)e=t[n],i.push(this.writeByte(e));return i},t}(),f=function(){function t(t){var e,n,r;for(this.scalarType=t.readInt(),this.tableCount=t.readShort(),this.searchRange=t.readShort(),this.entrySelector=t.readShort(),this.rangeShift=t.readShort(),this.tables={},n=0,r=this.tableCount;0<=r?n<r:r<n;0<=r?++n:--n)e={tag:t.readString(4),checksum:t.readInt(),offset:t.readInt(),length:t.readInt()},this.tables[e.tag]=e}var e;return t.prototype.encode=function(t){var n,r,i,o,a,s,l,c,f,h,d,p,g;for(g in d=Object.keys(t).length,s=Math.log(2),f=16*Math.floor(Math.log(d)/s),o=Math.floor(f/s),c=16*d-f,(r=new u).writeInt(this.scalarType),r.writeShort(d),r.writeShort(f),r.writeShort(o),r.writeShort(c),i=16*d,l=r.pos+i,a=null,p=[],t)for(h=t[g],r.writeString(g),r.writeInt(e(h)),r.writeInt(l),r.writeInt(h.length),p=p.concat(h),"head"===g&&(a=l),l+=h.length;l%4;)p.push(0),l++;return r.write(p),n=2981146554-e(r.data),r.pos=a+8,r.writeUInt32(n),r.data},e=function(t){var e,n,r,i;for(t=N.call(t);t.length%4;)t.push(0);for(n=new u(t),r=e=0,i=t.length;r<i;r+=4)e+=n.readUInt32();return 4294967295&e},t}(),h={}.hasOwnProperty,d=function(t,e){function n(){this.constructor=t}for(var r in e)h.call(e,r)&&(t[r]=e[r]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t};c=function(){function t(t){var e;this.file=t,e=this.file.directory.tables[this.tag],this.exists=!!e,e&&(this.offset=e.offset,this.length=e.length,this.parse(this.file.contents))}return t.prototype.parse=function(){},t.prototype.encode=function(){},t.prototype.raw=function(){return this.exists?(this.file.contents.pos=this.offset,this.file.contents.read(this.length)):null},t}();var p=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return d(e,c),e.prototype.tag="head",e.prototype.parse=function(t){return t.pos=this.offset,this.version=t.readInt(),this.revision=t.readInt(),this.checkSumAdjustment=t.readInt(),this.magicNumber=t.readInt(),this.flags=t.readShort(),this.unitsPerEm=t.readShort(),this.created=t.readLongLong(),this.modified=t.readLongLong(),this.xMin=t.readShort(),this.yMin=t.readShort(),this.xMax=t.readShort(),this.yMax=t.readShort(),this.macStyle=t.readShort(),this.lowestRecPPEM=t.readShort(),this.fontDirectionHint=t.readShort(),this.indexToLocFormat=t.readShort(),this.glyphDataFormat=t.readShort()},e.prototype.encode=function(t){var e;return(e=new u).writeInt(this.version),e.writeInt(this.revision),e.writeInt(this.checkSumAdjustment),e.writeInt(this.magicNumber),e.writeShort(this.flags),e.writeShort(this.unitsPerEm),e.writeLongLong(this.created),e.writeLongLong(this.modified),e.writeShort(this.xMin),e.writeShort(this.yMin),e.writeShort(this.xMax),e.writeShort(this.yMax),e.writeShort(this.macStyle),e.writeShort(this.lowestRecPPEM),e.writeShort(this.fontDirectionHint),e.writeShort(t),e.writeShort(this.glyphDataFormat),e.data},e}(),g=function(){function t(t,e){var n,r,i,o,a,s,l,c,u,f,h,d,p,g,m,v,y,b;switch(this.platformID=t.readUInt16(),this.encodingID=t.readShort(),this.offset=e+t.readInt(),u=t.pos,t.pos=this.offset,this.format=t.readUInt16(),this.length=t.readUInt16(),this.language=t.readUInt16(),this.isUnicode=3===this.platformID&&1===this.encodingID&&4===this.format||0===this.platformID&&4===this.format,this.codeMap={},this.format){case 0:for(s=m=0;m<256;s=++m)this.codeMap[s]=t.readByte();break;case 4:for(h=t.readUInt16(),f=h/2,t.pos+=6,i=function(){var e,n;for(n=[],s=e=0;0<=f?e<f:f<e;s=0<=f?++e:--e)n.push(t.readUInt16());return n}(),t.pos+=2,p=function(){var e,n;for(n=[],s=e=0;0<=f?e<f:f<e;s=0<=f?++e:--e)n.push(t.readUInt16());return n}(),l=function(){var e,n;for(n=[],s=e=0;0<=f?e<f:f<e;s=0<=f?++e:--e)n.push(t.readUInt16());return n}(),c=function(){var e,n;for(n=[],s=e=0;0<=f?e<f:f<e;s=0<=f?++e:--e)n.push(t.readUInt16());return n}(),r=(this.length-t.pos+this.offset)/2,a=function(){var e,n;for(n=[],s=e=0;0<=r?e<r:r<e;s=0<=r?++e:--e)n.push(t.readUInt16());return n}(),s=v=0,b=i.length;v<b;s=++v)for(g=i[s],n=y=d=p[s];d<=g?y<=g:g<=y;n=d<=g?++y:--y)0===c[s]?o=n+l[s]:0!==(o=a[c[s]/2+(n-d)-(f-s)]||0)&&(o+=l[s]),this.codeMap[n]=65535&o}t.pos=u}return t.encode=function(t,e){var n,r,i,o,a,s,l,c,f,h,d,p,g,m,v,y,b,w,x,S,A,N,L,k,C,O,_,P,I,T,E,j,F,R,B,M,D,q,U,z,H,$,V,W,G,Y;switch(P=new u,o=Object.keys(t).sort(function(t,e){return t-e}),e){case"macroman":for(g=0,m=function(){var t,e;for(e=[],p=t=0;t<256;p=++t)e.push(0);return e}(),y={0:0},i={},I=0,F=o.length;I<F;I++)null==y[V=t[r=o[I]]]&&(y[V]=++g),i[r]={old:t[r],new:y[t[r]]},m[r]=y[t[r]];return P.writeUInt16(1),P.writeUInt16(0),P.writeUInt32(12),P.writeUInt16(0),P.writeUInt16(262),P.writeUInt16(0),P.write(m),{charMap:i,subtable:P.data,maxGlyphID:g+1};case"unicode":for(O=[],f=[],y={},n={},v=l=null,T=b=0,R=o.length;T<R;T++)null==y[x=t[r=o[T]]]&&(y[x]=++b),n[r]={old:x,new:y[x]},a=y[x]-r,null!=v&&a===l||(v&&f.push(v),O.push(r),l=a),v=r;for(v&&f.push(v),f.push(65535),O.push(65535),k=2*(L=O.length),N=2*Math.pow(Math.log(L)/Math.LN2,2),h=Math.log(N/2)/Math.LN2,A=2*L-N,s=[],S=[],d=[],p=E=0,B=O.length;E<B;p=++E){if(C=O[p],c=f[p],65535===C){s.push(0),S.push(0);break}if(32768<=C-(_=n[C].new))for(s.push(0),S.push(2*(d.length+L-p)),r=j=C;C<=c?j<=c:c<=j;r=C<=c?++j:--j)d.push(n[r].new);else s.push(_-C),S.push(0)}for(P.writeUInt16(3),P.writeUInt16(1),P.writeUInt32(12),P.writeUInt16(4),P.writeUInt16(16+8*L+2*d.length),P.writeUInt16(0),P.writeUInt16(k),P.writeUInt16(N),P.writeUInt16(h),P.writeUInt16(A),H=0,M=f.length;H<M;H++)r=f[H],P.writeUInt16(r);for(P.writeUInt16(0),$=0,D=O.length;$<D;$++)r=O[$],P.writeUInt16(r);for(W=0,q=s.length;W<q;W++)a=s[W],P.writeUInt16(a);for(G=0,U=S.length;G<U;G++)w=S[G],P.writeUInt16(w);for(Y=0,z=d.length;Y<z;Y++)g=d[Y],P.writeUInt16(g);return{charMap:n,subtable:P.data,maxGlyphID:b+1}}},t}(),m=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return d(e,c),e.prototype.tag="cmap",e.prototype.parse=function(t){var e,n,r;for(t.pos=this.offset,this.version=t.readUInt16(),n=t.readUInt16(),this.tables=[],this.unicode=null,r=0;0<=n?r<n:n<r;0<=n?++r:--r)e=new g(t,this.offset),this.tables.push(e),e.isUnicode&&null==this.unicode&&(this.unicode=e);return!0},e.encode=function(t,e){var n,r;return null==e&&(e="macroman"),n=g.encode(t,e),(r=new u).writeUInt16(0),r.writeUInt16(1),n.table=r.data.concat(n.subtable),n},e}(),v=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return d(e,c),e.prototype.tag="hhea",e.prototype.parse=function(t){return t.pos=this.offset,this.version=t.readInt(),this.ascender=t.readShort(),this.decender=t.readShort(),this.lineGap=t.readShort(),this.advanceWidthMax=t.readShort(),this.minLeftSideBearing=t.readShort(),this.minRightSideBearing=t.readShort(),this.xMaxExtent=t.readShort(),this.caretSlopeRise=t.readShort(),this.caretSlopeRun=t.readShort(),this.caretOffset=t.readShort(),t.pos+=8,this.metricDataFormat=t.readShort(),this.numberOfMetrics=t.readUInt16()},e}(),y=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return d(e,c),e.prototype.tag="OS/2",e.prototype.parse=function(t){if(t.pos=this.offset,this.version=t.readUInt16(),this.averageCharWidth=t.readShort(),this.weightClass=t.readUInt16(),+this.widthClass=t.readUInt16(),this.type=t.readShort(),this.ySubscriptXSize=t.readShort(),this.ySubscriptYSize=t.readShort(),this.ySubscriptXOffset=t.readShort(),this.ySubscriptYOffset=t.readShort(),this.ySuperscriptXSize=t.readShort(),this.ySuperscriptYSize=t.readShort(),this.ySuperscriptXOffset=t.readShort(),this.ySuperscriptYOffset=t.readShort(),this.yStrikeoutSize=t.readShort(),this.yStrikeoutPosition=t.readShort(),this.familyClass=t.readShort(),this.panose=function(){var e,n;for(n=[],e=0;e<10;++e)n.push(t.readByte());return n}(),this.charRange=function(){var e,n;for(n=[],e=0;e<4;++e)n.push(t.readInt());return n}(),this.vendorID=t.readString(4),this.selection=t.readShort(),this.firstCharIndex=t.readShort(),this.lastCharIndex=t.readShort(),0<this.version&&(this.ascent=t.readShort(),this.descent=t.readShort(),this.lineGap=t.readShort(),this.winAscent=t.readShort(),this.winDescent=t.readShort(),this.codePageRange=function(){var e,n;for(n=[],e=0;e<2;++e)n.push(t.readInt());return n}(),1<this.version))return this.xHeight=t.readShort(),this.capHeight=t.readShort(),this.defaultChar=t.readShort(),this.breakChar=t.readShort(),this.maxContext=t.readShort()},e}(),b=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return d(e,c),e.prototype.tag="post",e.prototype.parse=function(t){var e,n,r,i;switch(t.pos=this.offset,this.format=t.readInt(),this.italicAngle=t.readInt(),this.underlinePosition=t.readShort(),this.underlineThickness=t.readShort(),this.isFixedPitch=t.readInt(),this.minMemType42=t.readInt(),this.maxMemType42=t.readInt(),this.minMemType1=t.readInt(),this.maxMemType1=t.readInt(),this.format){case 65536:break;case 131072:for(n=t.readUInt16(),this.glyphNameIndex=[],r=0;0<=n?r<n:n<r;0<=n?++r:--r)this.glyphNameIndex.push(t.readUInt16());for(this.names=[],i=[];t.pos<this.offset+this.length;)e=t.readByte(),i.push(this.names.push(t.readString(e)));return i;case 151552:return n=t.readUInt16(),this.offsets=t.read(n);case 196608:break;case 262144:return this.map=function(){var e,n,r;for(r=[],e=0,n=this.file.maxp.numGlyphs;0<=n?e<n:n<e;0<=n?++e:--e)r.push(t.readUInt32());return r}.call(this)}},e}(),w=function(t,e){this.raw=t,this.length=t.length,this.platformID=e.platformID,this.encodingID=e.encodingID,this.languageID=e.languageID},x=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return d(e,c),e.prototype.tag="name",e.prototype.parse=function(t){var e,n,r,i,o,a,s,l,c,u,f,h;for(t.pos=this.offset,t.readShort(),e=t.readShort(),a=t.readShort(),n=[],i=c=0;0<=e?c<e:e<c;i=0<=e?++c:--c)n.push({platformID:t.readShort(),encodingID:t.readShort(),languageID:t.readShort(),nameID:t.readShort(),length:t.readShort(),offset:this.offset+a+t.readShort()});for(s={},i=u=0,f=n.length;u<f;i=++u)r=n[i],t.pos=r.offset,l=t.readString(r.length),o=new w(l,r),null==s[h=r.nameID]&&(s[h]=[]),s[r.nameID].push(o);this.strings=s,this.copyright=s[0],this.fontFamily=s[1],this.fontSubfamily=s[2],this.uniqueSubfamily=s[3],this.fontName=s[4],this.version=s[5];try{this.postscriptName=s[6][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}catch(t){this.postscriptName=s[4][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}return this.trademark=s[7],this.manufacturer=s[8],this.designer=s[9],this.description=s[10],this.vendorUrl=s[11],this.designerUrl=s[12],this.license=s[13],this.licenseUrl=s[14],this.preferredFamily=s[15],this.preferredSubfamily=s[17],this.compatibleFull=s[18],this.sampleText=s[19]},e}(),S=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return d(e,c),e.prototype.tag="maxp",e.prototype.parse=function(t){return t.pos=this.offset,this.version=t.readInt(),this.numGlyphs=t.readUInt16(),this.maxPoints=t.readUInt16(),this.maxContours=t.readUInt16(),this.maxCompositePoints=t.readUInt16(),this.maxComponentContours=t.readUInt16(),this.maxZones=t.readUInt16(),this.maxTwilightPoints=t.readUInt16(),this.maxStorage=t.readUInt16(),this.maxFunctionDefs=t.readUInt16(),this.maxInstructionDefs=t.readUInt16(),this.maxStackElements=t.readUInt16(),this.maxSizeOfInstructions=t.readUInt16(),this.maxComponentElements=t.readUInt16(),this.maxComponentDepth=t.readUInt16()},e}(),A=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return d(e,c),e.prototype.tag="hmtx",e.prototype.parse=function(t){var e,n,r,i,o,a,s;for(t.pos=this.offset,this.metrics=[],i=0,a=this.file.hhea.numberOfMetrics;0<=a?i<a:a<i;0<=a?++i:--i)this.metrics.push({advance:t.readUInt16(),lsb:t.readInt16()});for(n=this.file.maxp.numGlyphs-this.file.hhea.numberOfMetrics,this.leftSideBearings=function(){var e,r;for(r=[],e=0;0<=n?e<n:n<e;0<=n?++e:--e)r.push(t.readInt16());return r}(),this.widths=function(){var t,e,n,i;for(i=[],t=0,e=(n=this.metrics).length;t<e;t++)r=n[t],i.push(r.advance);return i}.call(this),e=this.widths[this.widths.length-1],s=[],o=0;0<=n?o<n:n<o;0<=n?++o:--o)s.push(this.widths.push(e));return s},e.prototype.forGlyph=function(t){return t in this.metrics?this.metrics[t]:{advance:this.metrics[this.metrics.length-1].advance,lsb:this.leftSideBearings[t-this.metrics.length]}},e}(),N=[].slice,L=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return d(e,c),e.prototype.tag="glyf",e.prototype.parse=function(t){return this.cache={}},e.prototype.glyphFor=function(t){var e,n,r,i,o,a,s,l,c,f;return(t=t)in this.cache?this.cache[t]:(i=this.file.loca,e=this.file.contents,n=i.indexOf(t),0===(r=i.lengthOf(t))?this.cache[t]=null:(e.pos=this.offset+n,o=(a=new u(e.read(r))).readShort(),l=a.readShort(),f=a.readShort(),s=a.readShort(),c=a.readShort(),this.cache[t]=-1===o?new C(a,l,f,s,c):new k(a,o,l,f,s,c),this.cache[t]))},e.prototype.encode=function(t,e,n){var r,i,o,a,s;for(o=[],i=[],a=0,s=e.length;a<s;a++)r=t[e[a]],i.push(o.length),r&&(o=o.concat(r.encode(n)));return i.push(o.length),{table:o,offsets:i}},e}(),k=function(){function t(t,e,n,r,i,o){this.raw=t,this.numberOfContours=e,this.xMin=n,this.yMin=r,this.xMax=i,this.yMax=o,this.compound=!1}return t.prototype.encode=function(){return this.raw.data},t}(),C=function(){function t(t,e,n,r,i){var o,a;for(this.raw=t,this.xMin=e,this.yMin=n,this.xMax=r,this.yMax=i,this.compound=!0,this.glyphIDs=[],this.glyphOffsets=[],o=this.raw;a=o.readShort(),this.glyphOffsets.push(o.pos),this.glyphIDs.push(o.readShort()),32&a;)o.pos+=1&a?4:2,128&a?o.pos+=8:64&a?o.pos+=4:8&a&&(o.pos+=2)}return t.prototype.encode=function(t){var e,n,r,i,o;for(n=new u(N.call(this.raw.data)),e=r=0,i=(o=this.glyphIDs).length;r<i;e=++r)o[e],n.pos=this.glyphOffsets[e];return n.data},t}(),O=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return d(e,c),e.prototype.tag="loca",e.prototype.parse=function(t){var e;return t.pos=this.offset,e=this.file.head.indexToLocFormat,this.offsets=0===e?function(){var e,n,r;for(r=[],e=0,n=this.length;e<n;e+=2)r.push(2*t.readUInt16());return r}.call(this):function(){var e,n,r;for(r=[],e=0,n=this.length;e<n;e+=4)r.push(t.readUInt32());return r}.call(this)},e.prototype.indexOf=function(t){return this.offsets[t]},e.prototype.lengthOf=function(t){return this.offsets[t+1]-this.offsets[t]},e.prototype.encode=function(t,e){for(var n=new Uint32Array(this.offsets.length),r=0,i=0,o=0;o<n.length;++o)if(n[o]=r,i<e.length&&e[i]==o){++i,n[o]=r;var a=this.offsets[o],s=this.offsets[o+1]-a;0<s&&(r+=s)}for(var l=new Array(4*n.length),c=0;c<n.length;++c)l[4*c+3]=255&n[c],l[4*c+2]=(65280&n[c])>>8,l[4*c+1]=(16711680&n[c])>>16,l[4*c]=(4278190080&n[c])>>24;return l},e}(),_=function(){function t(t){this.font=t,this.subset={},this.unicodes={},this.next=33}return t.prototype.generateCmap=function(){var t,e,n,r,i;for(e in r=this.font.cmap.tables[0].codeMap,t={},i=this.subset)n=i[e],t[e]=r[n];return t},t.prototype.glyphsFor=function(t){var e,n,r,i,o,a,s;for(r={},o=0,a=t.length;o<a;o++)r[i=t[o]]=this.font.glyf.glyphFor(i);for(i in e=[],r)(null!=(n=r[i])?n.compound:void 0)&&e.push.apply(e,n.glyphIDs);if(0<e.length)for(i in s=this.glyphsFor(e))n=s[i],r[i]=n;return r},t.prototype.encode=function(t,e){var n,r,i,o,a,s,l,c,u,f,h,d,p,g,v;for(r in n=m.encode(this.generateCmap(),"unicode"),o=this.glyphsFor(t),h={0:0},v=n.charMap)h[(s=v[r]).old]=s.new;for(d in f=n.maxGlyphID,o)d in h||(h[d]=f++);return c=function(t){var e,n;for(e in n={},t)n[t[e]]=e;return n}(h),u=Object.keys(c).sort(function(t,e){return t-e}),p=function(){var t,e,n;for(n=[],t=0,e=u.length;t<e;t++)a=u[t],n.push(c[a]);return n}(),i=this.font.glyf.encode(o,p,h),l=this.font.loca.encode(i.offsets,p),g={cmap:this.font.cmap.raw(),glyf:i.table,loca:l,hmtx:this.font.hmtx.raw(),hhea:this.font.hhea.raw(),maxp:this.font.maxp.raw(),post:this.font.post.raw(),name:this.font.name.raw(),head:this.font.head.encode(e)},this.font.os2.exists&&(g["OS/2"]=this.font.os2.raw()),this.font.directory.encode(g)},t}();t.API.PDFObject=function(){function t(){}var e;return e=function(t,e){return(Array(e+1).join("0")+t).slice(-e)},t.convert=function(n){var r,i,o,a;if(Array.isArray(n))return"["+function(){var e,i,o;for(o=[],e=0,i=n.length;e<i;e++)r=n[e],o.push(t.convert(r));return o}().join(" ")+"]";if("string"==typeof n)return"/"+n;if(null!=n?n.isString:void 0)return"("+n+")";if(n instanceof Date)return"(D:"+e(n.getUTCFullYear(),4)+e(n.getUTCMonth(),2)+e(n.getUTCDate(),2)+e(n.getUTCHours(),2)+e(n.getUTCMinutes(),2)+e(n.getUTCSeconds(),2)+"Z)";if("[object Object]"!=={}.toString.call(n))return""+n;for(i in o=["<<"],n)a=n[i],o.push("/"+i+" "+t.convert(a));return o.push(">>"),o.join("\n")},t}()}(dt),Ct="undefined"!=typeof self&&self||"undefined"!=typeof window&&window||"undefined"!=typeof global&&global||Function('return typeof this === "object" && this.content')()||Function("return this")(),Ot=function(){function t(t){var e,n,r,i,o,a,s,l,c,u,f,h,d,p;for(this.data=t,this.pos=8,this.palette=[],this.imgData=[],this.transparency={},this.animation=null,this.text={},a=null;;){switch(e=this.readUInt32(),c=function(){var t,e;for(e=[],t=0;t<4;++t)e.push(String.fromCharCode(this.data[this.pos++]));return e}.call(this).join("")){case"IHDR":this.width=this.readUInt32(),this.height=this.readUInt32(),this.bits=this.data[this.pos++],this.colorType=this.data[this.pos++],this.compressionMethod=this.data[this.pos++],this.filterMethod=this.data[this.pos++],this.interlaceMethod=this.data[this.pos++];break;case"acTL":this.animation={numFrames:this.readUInt32(),numPlays:this.readUInt32()||1/0,frames:[]};break;case"PLTE":this.palette=this.read(e);break;case"fcTL":a&&this.animation.frames.push(a),this.pos+=4,a={width:this.readUInt32(),height:this.readUInt32(),xOffset:this.readUInt32(),yOffset:this.readUInt32()},o=this.readUInt16(),i=this.readUInt16()||100,a.delay=1e3*o/i,a.disposeOp=this.data[this.pos++],a.blendOp=this.data[this.pos++],a.data=[];break;case"IDAT":case"fdAT":for("fdAT"===c&&(this.pos+=4,e-=4),t=(null!=a?a.data:void 0)||this.imgData,h=0;0<=e?h<e:e<h;0<=e?++h:--h)t.push(this.data[this.pos++]);break;case"tRNS":switch(this.transparency={},this.colorType){case 3:if(r=this.palette.length/3,this.transparency.indexed=this.read(e),this.transparency.indexed.length>r)throw new Error("More transparent colors than palette size");if(0<(u=r-this.transparency.indexed.length))for(d=0;0<=u?d<u:u<d;0<=u?++d:--d)this.transparency.indexed.push(255);break;case 0:this.transparency.grayscale=this.read(e)[0];break;case 2:this.transparency.rgb=this.read(e)}break;case"tEXt":s=(f=this.read(e)).indexOf(0),l=String.fromCharCode.apply(String,f.slice(0,s)),this.text[l]=String.fromCharCode.apply(String,f.slice(s+1));break;case"IEND":return a&&this.animation.frames.push(a),this.colors=function(){switch(this.colorType){case 0:case 3:case 4:return 1;case 2:case 6:return 3}}.call(this),this.hasAlphaChannel=4===(p=this.colorType)||6===p,n=this.colors+(this.hasAlphaChannel?1:0),this.pixelBitlength=this.bits*n,this.colorSpace=function(){switch(this.colors){case 1:return"DeviceGray";case 3:return"DeviceRGB"}}.call(this),void(this.imgData=new Uint8Array(this.imgData));default:this.pos+=e}if(this.pos+=4,this.pos>this.data.length)throw new Error("Incomplete or corrupt PNG file")}}var e,n,r;t.load=function(e,n,r){var i;return"function"==typeof n&&(r=n),(i=new XMLHttpRequest).open("GET",e,!0),i.responseType="arraybuffer",i.onload=function(){var e;return e=new t(new Uint8Array(i.response||i.mozResponseArrayBuffer)),"function"==typeof(null!=n?n.getContext:void 0)&&e.render(n),"function"==typeof r?r(e):void 0},i.send(null)},t.prototype.read=function(t){var e,n;for(n=[],e=0;0<=t?e<t:t<e;0<=t?++e:--e)n.push(this.data[this.pos++]);return n},t.prototype.readUInt32=function(){return this.data[this.pos++]<<24|this.data[this.pos++]<<16|this.data[this.pos++]<<8|this.data[this.pos++]},t.prototype.readUInt16=function(){return this.data[this.pos++]<<8|this.data[this.pos++]},t.prototype.decodePixels=function(t){function e(e,a,s,l){var c,u,f,h,d,p,g,m,v,y,b,w,x,S,A,N,L,k,C,O,_,P=Math.ceil((o.width-e)/s),I=Math.ceil((o.height-a)/l),T=o.width==P&&o.height==I;for(S=n*P,w=T?r:new Uint8Array(S*I),p=t.length,u=x=0;x<I&&i<p;){switch(t[i++]){case 0:for(h=L=0;L<S;h=L+=1)w[u++]=t[i++];break;case 1:for(h=k=0;k<S;h=k+=1)c=t[i++],d=h<n?0:w[u-n],w[u++]=(c+d)%256;break;case 2:for(h=C=0;C<S;h=C+=1)c=t[i++],f=(h-h%n)/n,A=x&&w[(x-1)*S+f*n+h%n],w[u++]=(A+c)%256;break;case 3:for(h=O=0;O<S;h=O+=1)c=t[i++],f=(h-h%n)/n,d=h<n?0:w[u-n],A=x&&w[(x-1)*S+f*n+h%n],w[u++]=(c+Math.floor((d+A)/2))%256;break;case 4:for(h=_=0;_<S;h=_+=1)c=t[i++],f=(h-h%n)/n,d=h<n?0:w[u-n],0===x?A=N=0:(A=w[(x-1)*S+f*n+h%n],N=f&&w[(x-1)*S+(f-1)*n+h%n]),g=d+A-N,m=Math.abs(g-d),y=Math.abs(g-A),b=Math.abs(g-N),v=m<=y&&m<=b?d:y<=b?A:N,w[u++]=(c+v)%256;break;default:throw new Error("Invalid filter algorithm: "+t[i-1])}if(!T){var E=((a+x*l)*o.width+e)*n,j=x*S;for(h=0;h<P;h+=1){for(var F=0;F<n;F+=1)r[E++]=w[j++];E+=(s-1)*n}}x++}}var n=this.pixelBitlength/8,r=new Uint8Array(this.width*this.height*n),i=0,o=this;return null==t&&(t=this.imgData),0===t.length?new Uint8Array(0):(t=(t=new It(t)).getBytes(),1==o.interlaceMethod?(e(0,0,8,8),e(4,0,8,8),e(0,4,4,8),e(2,0,4,4),e(0,2,2,4),e(1,0,2,2),e(0,1,1,2)):e(0,0,1,1),r)},t.prototype.decodePalette=function(){var t,e,n,r,i,o,a,s,l;for(n=this.palette,o=this.transparency.indexed||[],i=new Uint8Array((o.length||0)+n.length),r=0,n.length,e=a=t=0,s=n.length;a<s;e=a+=3)i[r++]=n[e],i[r++]=n[e+1],i[r++]=n[e+2],i[r++]=null!=(l=o[t++])?l:255;return i},t.prototype.copyToImageData=function(t,e){var n,r,i,o,a,s,l,c,u,f,h;if(r=this.colors,u=null,n=this.hasAlphaChannel,this.palette.length&&(u=null!=(h=this._decodedPalette)?h:this._decodedPalette=this.decodePalette(),r=4,n=!0),c=(i=t.data||t).length,a=u||e,o=s=0,1===r)for(;o<c;)l=u?4*e[o/4]:s,f=a[l++],i[o++]=f,i[o++]=f,i[o++]=f,i[o++]=n?a[l++]:255,s=l;else for(;o<c;)l=u?4*e[o/4]:s,i[o++]=a[l++],i[o++]=a[l++],i[o++]=a[l++],i[o++]=n?a[l++]:255,s=l},t.prototype.decode=function(){var t;return t=new Uint8Array(this.width*this.height*4),this.copyToImageData(t,this.decodePixels()),t};try{n=Ct.document.createElement("canvas"),r=n.getContext("2d")}catch(t){return-1}return e=function(t){var e;return r.width=t.width,r.height=t.height,r.clearRect(0,0,t.width,t.height),r.putImageData(t,0,0),(e=new Image).src=n.toDataURL(),e},t.prototype.decodeFrames=function(t){var n,r,i,o,a,s,l,c;if(this.animation){for(c=[],r=a=0,s=(l=this.animation.frames).length;a<s;r=++a)n=l[r],i=t.createImageData(n.width,n.height),o=this.decodePixels(new Uint8Array(n.data)),this.copyToImageData(i,o),n.imageData=i,c.push(n.image=e(i));return c}},t.prototype.renderFrame=function(t,e){var n,r,i;return n=(r=this.animation.frames)[e],i=r[e-1],0===e&&t.clearRect(0,0,this.width,this.height),1===(null!=i?i.disposeOp:void 0)?t.clearRect(i.xOffset,i.yOffset,i.width,i.height):2===(null!=i?i.disposeOp:void 0)&&t.putImageData(i.imageData,i.xOffset,i.yOffset),0===n.blendOp&&t.clearRect(n.xOffset,n.yOffset,n.width,n.height),t.drawImage(n.image,n.xOffset,n.yOffset)},t.prototype.animate=function(t){var e,n,r,i,o,a,s=this;return n=0,a=this.animation,i=a.numFrames,r=a.frames,o=a.numPlays,(e=function(){var a,l;if(a=n++%i,l=r[a],s.renderFrame(t,a),1<i&&n/i<o)return s.animation._timeout=setTimeout(e,l.delay)})()},t.prototype.stopAnimation=function(){var t;return clearTimeout(null!=(t=this.animation)?t._timeout:void 0)},t.prototype.render=function(t){var e,n;return t._png&&t._png.stopAnimation(),t._png=this,t.width=this.width,t.height=this.height,e=t.getContext("2d"),this.animation?(this.decodeFrames(e),this.animate(e)):(n=e.createImageData(this.width,this.height),this.copyToImageData(n,this.decodePixels()),e.putImageData(n,0,0))},t}(),Ct.PNG=Ot;var Pt=function(){function t(){this.pos=0,this.bufferLength=0,this.eof=!1,this.buffer=null}return t.prototype={ensureBuffer:function(t){var e=this.buffer,n=e?e.byteLength:0;if(t<n)return e;for(var r=512;r<t;)r<<=1;for(var i=new Uint8Array(r),o=0;o<n;++o)i[o]=e[o];return this.buffer=i},getByte:function(){for(var t=this.pos;this.bufferLength<=t;){if(this.eof)return null;this.readBlock()}return this.buffer[this.pos++]},getBytes:function(t){var e=this.pos;if(t){this.ensureBuffer(e+t);for(var n=e+t;!this.eof&&this.bufferLength<n;)this.readBlock();var r=this.bufferLength;r<n&&(n=r)}else{for(;!this.eof;)this.readBlock();n=this.bufferLength}return this.pos=n,this.buffer.subarray(e,n)},lookChar:function(){for(var t=this.pos;this.bufferLength<=t;){if(this.eof)return null;this.readBlock()}return String.fromCharCode(this.buffer[this.pos])},getChar:function(){for(var t=this.pos;this.bufferLength<=t;){if(this.eof)return null;this.readBlock()}return String.fromCharCode(this.buffer[this.pos++])},makeSubStream:function(t,e,n){for(var r=t+e;this.bufferLength<=r&&!this.eof;)this.readBlock();return new Stream(this.buffer,t,e,n)},skip:function(t){t||(t=1),this.pos+=t},reset:function(){this.pos=0}},t}(),It=function(){function t(t){throw new Error(t)}function e(e){var n=0,r=e[n++],i=e[n++];-1!=r&&-1!=i||t("Invalid header in flate stream"),8!=(15&r)&&t("Unknown compression method in flate stream"),((r<<8)+i)%31!=0&&t("Bad FCHECK in flate stream"),32&i&&t("FDICT bit set in flate stream"),this.bytes=e,this.bytesPos=2,this.codeSize=0,this.codeBuf=0,Pt.call(this)}if("undefined"!=typeof Uint32Array){var n=new Uint32Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),r=new Uint32Array([3,4,5,6,7,8,9,10,65547,65549,65551,65553,131091,131095,131099,131103,196643,196651,196659,196667,262211,262227,262243,262259,327811,327843,327875,327907,258,258,258]),i=new Uint32Array([1,2,3,4,65541,65543,131081,131085,196625,196633,262177,262193,327745,327777,393345,393409,459009,459137,524801,525057,590849,591361,657409,658433,724993,727041,794625,798721,868353,876545]),o=[new Uint32Array([459008,524368,524304,524568,459024,524400,524336,590016,459016,524384,524320,589984,524288,524416,524352,590048,459012,524376,524312,589968,459028,524408,524344,590032,459020,524392,524328,59e4,524296,524424,524360,590064,459010,524372,524308,524572,459026,524404,524340,590024,459018,524388,524324,589992,524292,524420,524356,590056,459014,524380,524316,589976,459030,524412,524348,590040,459022,524396,524332,590008,524300,524428,524364,590072,459009,524370,524306,524570,459025,524402,524338,590020,459017,524386,524322,589988,524290,524418,524354,590052,459013,524378,524314,589972,459029,524410,524346,590036,459021,524394,524330,590004,524298,524426,524362,590068,459011,524374,524310,524574,459027,524406,524342,590028,459019,524390,524326,589996,524294,524422,524358,590060,459015,524382,524318,589980,459031,524414,524350,590044,459023,524398,524334,590012,524302,524430,524366,590076,459008,524369,524305,524569,459024,524401,524337,590018,459016,524385,524321,589986,524289,524417,524353,590050,459012,524377,524313,589970,459028,524409,524345,590034,459020,524393,524329,590002,524297,524425,524361,590066,459010,524373,524309,524573,459026,524405,524341,590026,459018,524389,524325,589994,524293,524421,524357,590058,459014,524381,524317,589978,459030,524413,524349,590042,459022,524397,524333,590010,524301,524429,524365,590074,459009,524371,524307,524571,459025,524403,524339,590022,459017,524387,524323,589990,524291,524419,524355,590054,459013,524379,524315,589974,459029,524411,524347,590038,459021,524395,524331,590006,524299,524427,524363,590070,459011,524375,524311,524575,459027,524407,524343,590030,459019,524391,524327,589998,524295,524423,524359,590062,459015,524383,524319,589982,459031,524415,524351,590046,459023,524399,524335,590014,524303,524431,524367,590078,459008,524368,524304,524568,459024,524400,524336,590017,459016,524384,524320,589985,524288,524416,524352,590049,459012,524376,524312,589969,459028,524408,524344,590033,459020,524392,524328,590001,524296,524424,524360,590065,459010,524372,524308,524572,459026,524404,524340,590025,459018,524388,524324,589993,524292,524420,524356,590057,459014,524380,524316,589977,459030,524412,524348,590041,459022,524396,524332,590009,524300,524428,524364,590073,459009,524370,524306,524570,459025,524402,524338,590021,459017,524386,524322,589989,524290,524418,524354,590053,459013,524378,524314,589973,459029,524410,524346,590037,459021,524394,524330,590005,524298,524426,524362,590069,459011,524374,524310,524574,459027,524406,524342,590029,459019,524390,524326,589997,524294,524422,524358,590061,459015,524382,524318,589981,459031,524414,524350,590045,459023,524398,524334,590013,524302,524430,524366,590077,459008,524369,524305,524569,459024,524401,524337,590019,459016,524385,524321,589987,524289,524417,524353,590051,459012,524377,524313,589971,459028,524409,524345,590035,459020,524393,524329,590003,524297,524425,524361,590067,459010,524373,524309,524573,459026,524405,524341,590027,459018,524389,524325,589995,524293,524421,524357,590059,459014,524381,524317,589979,459030,524413,524349,590043,459022,524397,524333,590011,524301,524429,524365,590075,459009,524371,524307,524571,459025,524403,524339,590023,459017,524387,524323,589991,524291,524419,524355,590055,459013,524379,524315,589975,459029,524411,524347,590039,459021,524395,524331,590007,524299,524427,524363,590071,459011,524375,524311,524575,459027,524407,524343,590031,459019,524391,524327,589999,524295,524423,524359,590063,459015,524383,524319,589983,459031,524415,524351,590047,459023,524399,524335,590015,524303,524431,524367,590079]),9],a=[new Uint32Array([327680,327696,327688,327704,327684,327700,327692,327708,327682,327698,327690,327706,327686,327702,327694,0,327681,327697,327689,327705,327685,327701,327693,327709,327683,327699,327691,327707,327687,327703,327695,0]),5];return(e.prototype=Object.create(Pt.prototype)).getBits=function(e){for(var n,r=this.codeSize,i=this.codeBuf,o=this.bytes,a=this.bytesPos;r<e;)void 0===(n=o[a++])&&t("Bad encoding in flate stream"),i|=n<<r,r+=8;return n=i&(1<<e)-1,this.codeBuf=i>>e,this.codeSize=r-=e,this.bytesPos=a,n},e.prototype.getCode=function(e){for(var n=e[0],r=e[1],i=this.codeSize,o=this.codeBuf,a=this.bytes,s=this.bytesPos;i<r;){var l;void 0===(l=a[s++])&&t("Bad encoding in flate stream"),o|=l<<i,i+=8}var c=n[o&(1<<r)-1],u=c>>16,f=65535&c;return(0==i||i<u||0==u)&&t("Bad encoding in flate stream"),this.codeBuf=o>>u,this.codeSize=i-u,this.bytesPos=s,f},e.prototype.generateHuffmanTable=function(t){for(var e=t.length,n=0,r=0;r<e;++r)t[r]>n&&(n=t[r]);for(var i=1<<n,o=new Uint32Array(i),a=1,s=0,l=2;a<=n;++a,s<<=1,l<<=1)for(var c=0;c<e;++c)if(t[c]==a){var u=0,f=s;for(r=0;r<a;++r)u=u<<1|1&f,f>>=1;for(r=u;r<i;r+=l)o[r]=a<<16|c;++s}return[o,n]},e.prototype.readBlock=function(){function e(t,e,n,r,i){for(var o=t.getBits(n)+r;0<o--;)e[p++]=i}var s=this.getBits(3);if(1&s&&(this.eof=!0),0!=(s>>=1)){var l,c;if(1==s)l=o,c=a;else if(2==s){for(var u=this.getBits(5)+257,f=this.getBits(5)+1,h=this.getBits(4)+4,d=Array(n.length),p=0;p<h;)d[n[p++]]=this.getBits(3);for(var g=this.generateHuffmanTable(d),m=0,v=(p=0,u+f),y=new Array(v);p<v;){var b=this.getCode(g);16==b?e(this,y,2,3,m):17==b?e(this,y,3,3,m=0):18==b?e(this,y,7,11,m=0):y[p++]=m=b}l=this.generateHuffmanTable(y.slice(0,u)),c=this.generateHuffmanTable(y.slice(u,v))}else t("Unknown block type in flate stream");for(var w=(T=this.buffer)?T.length:0,x=this.bufferLength;;){var S=this.getCode(l);if(S<256)w<=x+1&&(w=(T=this.ensureBuffer(x+1)).length),T[x++]=S;else{if(256==S)return void(this.bufferLength=x);var A=(S=r[S-=257])>>16;0<A&&(A=this.getBits(A)),m=(65535&S)+A,S=this.getCode(c),0<(A=(S=i[S])>>16)&&(A=this.getBits(A));var N=(65535&S)+A;w<=x+m&&(w=(T=this.ensureBuffer(x+m)).length);for(var L=0;L<m;++L,++x)T[x]=T[x-N]}}}else{var k,C=this.bytes,O=this.bytesPos;void 0===(k=C[O++])&&t("Bad block header in flate stream");var _=k;void 0===(k=C[O++])&&t("Bad block header in flate stream"),_|=k<<8,void 0===(k=C[O++])&&t("Bad block header in flate stream");var P=k;void 0===(k=C[O++])&&t("Bad block header in flate stream"),(P|=k<<8)!=(65535&~_)&&t("Bad uncompressed block length in flate stream"),this.codeBuf=0,this.codeSize=0;var I=this.bufferLength,T=this.ensureBuffer(I+_),E=I+_;this.bufferLength=E;for(var j=I;j<E;++j){if(void 0===(k=C[O++])){this.eof=!0;break}T[j]=k}this.bytesPos=O}},e}}();window.tmp=It});try{module.exports=jsPDF}catch(t){}!function(t){"use strict";function e(t){var e=d(S(),t);void 0!==e.extendWidth&&(e.tableWidth=e.extendWidth?"auto":"wrap",console.error("Use of deprecated option: extendWidth, use tableWidth instead.")),void 0!==e.margins&&(void 0===e.margin&&(e.margin=e.margins),console.error("Use of deprecated option: margins, use margin instead.")),[["padding","cellPadding"],["lineHeight","rowHeight"],"fontSize","overflow"].forEach(function(t){var n="string"==typeof t?t:t[0],r="string"==typeof t?t:t[1];void 0!==e[n]&&(void 0===e.styles[r]&&(e.styles[r]=e[n]),console.error("Use of deprecated option: "+n+", use the style "+r+" instead."))});var n=e.margin;return e.margin={},"number"==typeof n.horizontal&&(n.right=n.horizontal,n.left=n.horizontal),"number"==typeof n.vertical&&(n.top=n.vertical,n.bottom=n.vertical),["top","right","bottom","left"].forEach(function(t,r){if("number"==typeof n)e.margin[t]=n;else{var i=Array.isArray(n)?r:t;e.margin[t]="number"==typeof n[i]?n[i]:40}}),e}function n(t,e){y=new Table,y.x=m.margin.left;var n=/\r\n|\r|\n/g,r=new Row(t);r.index=-1;var i=d(w,x[m.theme].table,x[m.theme].header);r.styles=d(i,m.styles,m.headerStyles),t.forEach(function(t,e){"object"==typeof t&&(e=void 0!==t.dataKey?t.dataKey:t.key),void 0!==t.width&&console.error("Use of deprecated option: column.width, use column.styles.columnWidth instead.");var i=new Column(e);i.styles=m.columnStyles[i.dataKey]||{},y.columns.push(i);var o=new Cell;o.raw="object"==typeof t?t.title:t,o.styles=r.styles,o.text=""+o.raw,o.contentWidth=2*o.styles.cellPadding+h(o.text,o.styles),o.text=o.text.split(n),r.cells[e]=o,m.createdHeaderCell(o,{column:i,row:r,settings:m})}),y.headerRow=r,e.forEach(function(t,e){var r=new Row(t),i=e%2==0,o=d(w,x[m.theme].table,i?x[m.theme].alternateRow:{}),a=d(m.styles,m.bodyStyles,i?m.alternateRowStyles:{});r.styles=d(o,a),r.index=e,y.columns.forEach(function(e){var i=new Cell;i.raw=t[e.dataKey],i.styles=d(r.styles,e.styles),i.text=void 0!==i.raw?""+i.raw:"",r.cells[e.dataKey]=i,m.createdCell(i,u({column:e,row:r})),i.contentWidth=2*i.styles.cellPadding+h(i.text,i.styles),i.text=i.text.split(n)}),y.rows.push(r)})}function r(){var t=0;y.columns.forEach(function(e){e.contentWidth=y.headerRow.cells[e.dataKey].contentWidth,y.rows.forEach(function(t){var n=t.cells[e.dataKey].contentWidth;n>e.contentWidth&&(e.contentWidth=n)}),e.width=e.contentWidth,t+=e.contentWidth}),y.contentWidth=t;var e=p.internal.pageSize.width-m.margin.left-m.margin.right,n=e;"number"==typeof m.tableWidth?n=m.tableWidth:"wrap"===m.tableWidth&&(n=y.contentWidth),y.width=n<e?n:e;var r=[],o=0,a=y.width/y.columns.length,s=0;y.columns.forEach(function(t){var e=d(w,x[m.theme].table,m.styles,t.styles);"wrap"===e.columnWidth?t.width=t.contentWidth:"number"==typeof e.columnWidth?t.width=e.columnWidth:(e.columnWidth,t.contentWidth<=a&&y.contentWidth>y.width?t.width=t.contentWidth:(r.push(t),o+=t.contentWidth,t.width=0)),s+=t.width}),i(r,s,o,a),y.height=0,y.rows.concat(y.headerRow).forEach(function(t,e){var n=0,r=y.x;y.columns.forEach(function(e){var i=t.cells[e.dataKey];e.x=r,c(i.styles);var o=e.width-2*i.styles.cellPadding;"linebreak"===i.styles.overflow?i.text=p.splitTextToSize(i.text,o+1,{fontSize:i.styles.fontSize}):"ellipsize"===i.styles.overflow?i.text=f(i.text,o,i.styles):"visible"===i.styles.overflow||("hidden"===i.styles.overflow?i.text=f(i.text,o,i.styles,""):"function"==typeof i.styles.overflow?i.text=i.styles.overflow(i.text,o):console.error("Unrecognized overflow type: "+i.styles.overflow));var a=Array.isArray(i.text)?i.text.length-1:0;a>n&&(n=a),r+=e.width}),t.heightStyle=t.styles.rowHeight,t.height=t.heightStyle+n*t.styles.fontSize*b,y.height+=t.height})}function i(t,e,n,r){for(var o=y.width-e-n,a=0;a<t.length;a++){var s=t[a],l=s.contentWidth/n,c=s.contentWidth+o*l<r;if(o<0&&c){t.splice(a,1),n-=s.contentWidth,s.width=r,e+=s.width,i(t,e,n,r);break}s.width=s.contentWidth+o*l}}function o(){y.rows.forEach(function(t,e){if(s(t.height)){a()}t.y=g.y,!1!==m.drawRow(t,u({row:t}))&&l(t,m.drawCell)})}function a(){m.afterPageContent(u()),p.addPage(),v++,g={x:m.margin.left,y:m.margin.top},m.beforePageContent(u()),!1!==m.drawHeaderRow(y.headerRow,u({row:y.headerRow}))&&l(y.headerRow,m.drawHeaderCell)}function s(t){return g.y+t+m.margin.bottom>=p.internal.pageSize.height}function l(t,e){for(var n=0;n<y.columns.length;n++){var r=y.columns[n],i=t.cells[r.dataKey];if(i){c(i.styles),i.x=r.x,i.y=g.y,i.height=t.height,i.width=r.width,"top"===i.styles.valign?i.textPos.y=g.y+i.styles.cellPadding:"bottom"===i.styles.valign?i.textPos.y=g.y+t.height-i.styles.cellPadding:i.textPos.y=g.y+t.height/2,"right"===i.styles.halign?i.textPos.x=i.x+i.width-i.styles.cellPadding:"center"===i.styles.halign?i.textPos.x=i.x+i.width/2:i.textPos.x=i.x+i.styles.cellPadding;!1!==e(i,u({column:r,row:t}))&&(p.rect(i.x,i.y,i.width,i.height,i.styles.fillStyle),p.autoTableText(i.text,i.textPos.x,i.textPos.y,{halign:i.styles.halign,valign:i.styles.valign}))}}g.y+=t.height}function c(t){[{func:p.setFillColor,value:t.fillColor},{func:p.setTextColor,value:t.textColor},{func:p.setFontStyle,value:t.fontStyle},{func:p.setDrawColor,value:t.lineColor},{func:p.setLineWidth,value:t.lineWidth},{func:p.setFont,value:t.font},{func:p.setFontSize,value:t.fontSize}].forEach(function(t){void 0!==t.value&&(t.value.constructor===Array?t.func.apply(this,t.value):t.func(t.value))})}function u(t){t=t||{};var e={pageCount:v,settings:m,table:y,cursor:g};for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}function f(t,e,n,r){if(r=void 0!==r?r:"...",Array.isArray(t))return t.forEach(function(i,o){t[o]=f(i,e,n,r)}),t;if(e>=h(t,n))return t;for(;e<h(t+r,n)&&!(t.length<2);)t=t.substring(0,t.length-1);return t.trim()+r}function h(t,e){return c(e),p.getStringUnitWidth(t)*e.fontSize}function d(t){var e,n={};for(e in t)t.hasOwnProperty(e)&&(n[e]=t[e]);for(var r=1;r<arguments.length;r++){var i=arguments[r];for(e in i)i.hasOwnProperty(e)&&("object"!=typeof i[e]||Array.isArray(i[e]),n[e]=i[e])}return n}var p,g,m,v,y,b=1.15,w={cellPadding:5,fontSize:10,font:"helvetica",lineColor:200,lineWidth:.1,fontStyle:"normal",overflow:"ellipsize",fillColor:255,textColor:20,halign:"left",valign:"top",fillStyle:"F",rowHeight:20,columnWidth:"auto"},x={striped:{table:{fillColor:255,textColor:80,fontStyle:"normal",fillStyle:"F"},header:{textColor:255,fillColor:[41,128,185],rowHeight:23,fontStyle:"bold"},body:{},alternateRow:{fillColor:245}},grid:{table:{fillColor:255,textColor:80,fontStyle:"normal",lineWidth:.1,fillStyle:"DF"},header:{textColor:255,fillColor:[26,188,156],rowHeight:23,fillStyle:"F",fontStyle:"bold"},body:{},alternateRow:{}},plain:{header:{fontStyle:"bold"}}},S=function(){return{theme:"striped",styles:{},headerStyles:{},bodyStyles:{},alternateRowStyles:{},columnStyles:{},startY:!1,margin:40,pageBreak:"auto",tableWidth:"auto",createdHeaderCell:function(t,e){},createdCell:function(t,e){},drawHeaderRow:function(t,e){},drawRow:function(t,e){},+drawHeaderCell:function(t,e){},drawCell:function(t,e){},beforePageContent:function(t){},afterPageContent:function(t){}}};t.autoTable=function(t,i,a){p=this,m=e(a||{}),v=1,g={y:!1===m.startY?m.margin.top:m.startY};var s={textColor:30,fontSize:p.internal.getFontSize(),fontStyle:p.internal.getFont().fontStyle};n(t,i),r();var f=y.rows[0]&&"auto"===m.pageBreak?y.rows[0].height:0,h=m.startY+m.margin.bottom+y.headerRow.height+f;return"avoid"===m.pageBreak&&(h+=y.height),("always"===m.pageBreak&&!1!==m.startY||!1!==m.startY&&h>p.internal.pageSize.height)&&(p.addPage(),g.y=m.margin.top),c(s),m.beforePageContent(u()),!1!==m.drawHeaderRow(y.headerRow,u({row:y.headerRow}))&&l(y.headerRow,m.drawHeaderCell),c(s),o(),m.afterPageContent(u()),c(s),this},t.autoTableEndPosY=function(){return void 0===g||void 0===g.y?0:g.y},t.autoTableHtmlToJson=function(t){var e,n,r,i,o=[],a=[],s=t.rows[0];for(r=0;r<s.cells.length;r++)a.push(void 0!==s.cells[r]?s.cells[r].textContent:"");for(r=1;r<t.rows.length;r++){for(e=t.rows[r],n=[],i=0;i<s.cells.length;i++)n.push(void 0!==e.cells[i]?e.cells[i].textContent:"");o.push(n)}return{columns:a,data:o,rows:o}},t.autoTableText=function(t,e,n,r){"number"==typeof e&&"number"==typeof n||console.error("The x and y parameters are required. Missing for the text: ",t);var i=p.internal.getFontSize()/p.internal.scaleFactor,o=b,a=/\r\n|\r|\n/g,s=null,l=1;if("middle"!==r.valign&&"bottom"!==r.valign&&"center"!==r.halign&&"right"!==r.halign||(s="string"==typeof t?t.split(a):t,l=s.length||1),n+=i*(2-o),"middle"===r.valign?n-=l/2*i:"bottom"===r.valign&&(n-=l*i),"center"===r.halign||"right"===r.halign){var c=i;if("center"===r.halign&&(c*=.5),l>=1){for(var u=0;u<s.length;u++)p.text(s[u],e-p.getStringUnitWidth(s[u])*c,n),n+=i;return p}e-=p.getStringUnitWidth(t)*c}return p.text(t,e,n),p}}(jsPDF.API);var Table=function t(){_classCallCheck(this,t),this.height=0,this.width=0,this.x=0,this.y=0,this.contentWidth=0,this.rows=[],this.columns=[],this.headerRow=null,this.settings={}},Row=function t(e){_classCallCheck(this,t),this.raw=e||{},this.index=0,this.styles={},this.cells={},this.height=0,this.y=0},Cell=function t(e){_classCallCheck(this,t),this.raw=e,this.styles={},this.text="",this.contentWidth=0,this.textPos={},this.height=0,this.width=0,this.x=0,this.y=0},Column=function t(e){_classCallCheck(this,t),this.dataKey=e,this.options={},this.styles={},this.contentWidth=0,this.width=0,this.x=0};!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(require("jquery")):"function"==typeof define&&define.amd?define(["jquery"],e):(t=t||self,e(t.jQuery))}(this,function(t){"use strict";function e(t,e){return e={exports:{}},t(e,e.exports),e.exports}function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function i(t,e,n){return e&&r(t.prototype,e),n&&r(t,n),t}function o(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&s(t,e)}function a(t){return(a=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function s(t,e){return(s=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function l(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function c(t,e){return!e||"object"!=typeof e&&"function"!=typeof e?l(t):e}function u(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=a(t)););return t}function f(t,e,n){return(f="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=u(t,e);if(r){var i=Object.getOwnPropertyDescriptor(r,e);return i.get?i.get.call(n):i.value}})(t,e,n||t)}t=t&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t;var h="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},d=function(t){return t&&t.Math==Math&&t},p=d("object"==typeof globalThis&&globalThis)||d("object"==typeof window&&window)||d("object"==typeof self&&self)||d("object"==typeof h&&h)||Function("return this")(),g=function(t){try{return!!t()}catch(t){return!0}},m=!g(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}),v={}.propertyIsEnumerable,y=Object.getOwnPropertyDescriptor,b=y&&!v.call({1:2},1),w=b?function(t){var e=y(this,t);return!!e&&e.enumerable}:v,x={f:w},S=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},A={}.toString,N=function(t){return A.call(t).slice(8,-1)},L="".split,k=g(function(){return!Object("z").propertyIsEnumerable(0)})?function(t){return"String"==N(t)?L.call(t,""):Object(t)}:Object,C=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t},O=function(t){return k(C(t))},_=function(t){return"object"==typeof t?null!==t:"function"==typeof t},P=function(t,e){if(!_(t))return t;var n,r;if(e&&"function"==typeof(n=t.toString)&&!_(r=n.call(t)))return r;if("function"==typeof(n=t.valueOf)&&!_(r=n.call(t)))return r;if(!e&&"function"==typeof(n=t.toString)&&!_(r=n.call(t)))return r;throw TypeError("Can't convert object to primitive value")},I={}.hasOwnProperty,T=function(t,e){return I.call(t,e)},E=p.document,j=_(E)&&_(E.createElement),F=function(t){return j?E.createElement(t):{}},R=!m&&!g(function(){return 7!=Object.defineProperty(F("div"),"a",{get:function(){return 7}}).a}),B=Object.getOwnPropertyDescriptor,M=m?B:function(t,e){if(t=O(t),e=P(e,!0),R)try{return B(t,e)}catch(t){}if(T(t,e))return S(!x.f.call(t,e),t[e])},D={f:M},q=function(t){if(!_(t))throw TypeError(String(t)+" is not an object");return t},U=Object.defineProperty,z=m?U:function(t,e,n){if(q(t),e=P(e,!0),q(n),R)try{return U(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(t[e]=n.value),t},H={f:z},$=m?function(t,e,n){return H.f(t,e,S(1,n))}:function(t,e,n){return t[e]=n,t},V=function(t,e){try{$(p,t,e)}catch(n){p[t]=e}return e},W=p["__core-js_shared__"]||V("__core-js_shared__",{}),G=W,Y=Function.toString;"function"!=typeof G.inspectSource&&(G.inspectSource=function(t){return Y.call(t)});var J,X,K,Q=G.inspectSource,Z=p.WeakMap,tt="function"==typeof Z&&/native code/.test(Q(Z)),et=e(function(t){(t.exports=function(t,e){return G[t]||(G[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.6.0",mode:"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})}),nt=0,rt=Math.random(),it=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++nt+rt).toString(36)},ot=et("keys"),at=function(t){return ot[t]||(ot[t]=it(t))},st={},lt=p.WeakMap,ct=function(t){return K(t)?X(t):J(t,{})},ut=function(t){return function(e){var n;if(!_(e)||(n=X(e)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return n}};if(tt){var ft=new lt,ht=ft.get,dt=ft.has,pt=ft.set;J=function(t,e){return pt.call(ft,t,e),e},X=function(t){return ht.call(ft,t)||{}},K=function(t){return dt.call(ft,t)}}else{var gt=at("state");st[gt]=!0,J=function(t,e){return $(t,gt,e),e},X=function(t){return T(t,gt)?t[gt]:{}},K=function(t){return T(t,gt)}}var mt,vt,yt={set:J,get:X,has:K,enforce:ct,getterFor:ut},bt=e(function(t){var e=yt.get,n=yt.enforce,r=String(String).split("String");(t.exports=function(t,e,i,o){var a=!!o&&!!o.unsafe,s=!!o&&!!o.enumerable,l=!!o&&!!o.noTargetGet;if("function"==typeof i&&("string"!=typeof e||T(i,"name")||$(i,"name",e),n(i).source=r.join("string"==typeof e?e:"")),t===p)return void(s?t[e]=i:V(e,i));a?!l&&t[e]&&(s=!0):delete t[e],s?t[e]=i:$(t,e,i)})(Function.prototype,"toString",function(){return"function"==typeof this&&e(this).source||Q(this)})}),wt=p,xt=function(t){return"function"==typeof t?t:void 0},St=function(t,e){return arguments.length<2?xt(wt[t])||xt(p[t]):wt[t]&&wt[t][e]||p[t]&&p[t][e]},At=Math.ceil,Nt=Math.floor,Lt=function(t){return isNaN(t=+t)?0:(t>0?Nt:At)(t)},kt=Math.min,Ct=function(t){return t>0?kt(Lt(t),9007199254740991):0},Ot=Math.max,_t=Math.min,Pt=function(t,e){var n=Lt(t);return n<0?Ot(n+e,0):_t(n,e)},It=function(t){return function(e,n,r){var i,o=O(e),a=Ct(o.length),s=Pt(r,a);if(t&&n!=n){for(;a>s;)if((i=o[s++])!=i)return!0}else for(;a>s;s++)if((t||s in o)&&o[s]===n)return t||s||0;return!t&&-1}},Tt={includes:It(!0),indexOf:It(!1)},Et=Tt.indexOf,jt=function(t,e){var n,r=O(t),i=0,o=[];for(n in r)!T(st,n)&&T(r,n)&&o.push(n);for(;e.length>i;)T(r,n=e[i++])&&(~Et(o,n)||o.push(n));return o},Ft=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Rt=Ft.concat("length","prototype"),Bt=Object.getOwnPropertyNames||function(t){return jt(t,Rt)},Mt={f:Bt},Dt=Object.getOwnPropertySymbols,qt={f:Dt},Ut=St("Reflect","ownKeys")||function(t){var e=Mt.f(q(t)),n=qt.f;return n?e.concat(n(t)):e},zt=function(t,e){for(var n=Ut(e),r=H.f,i=D.f,o=0;o<n.length;o++){var a=n[o];T(t,a)||r(t,a,i(e,a))}},Ht=/#|\.prototype\./,$t=function(t,e){var n=Wt[Vt(t)];return n==Yt||n!=Gt&&("function"==typeof e?g(e):!!e)},Vt=$t.normalize=function(t){return String(t).replace(Ht,".").toLowerCase()},Wt=$t.data={},Gt=$t.NATIVE="N",Yt=$t.POLYFILL="P",Jt=$t,Xt=D.f,Kt=function(t,e){var n,r,i,o,a,s=t.target,l=t.global,c=t.stat;if(n=l?p:c?p[s]||V(s,{}):(p[s]||{}).prototype)for(r in e){if(o=e[r],t.noTargetGet?(a=Xt(n,r),i=a&&a.value):i=n[r],!Jt(l?r:s+(c?".":"#")+r,t.forced)&&void 0!==i){if(typeof o==typeof i)continue;zt(o,i)}(t.sham||i&&i.sham)&&$(o,"sham",!0),bt(n,r,o,t)}},Qt=Array.isArray||function(t){return"Array"==N(t)},Zt=function(t){return Object(C(t))},te=function(t,e,n){var r=P(e);r in t?H.f(t,r,S(0,n)):t[r]=n},ee=!!Object.getOwnPropertySymbols&&!g(function(){return!String(Symbol())}),ne=ee&&!Symbol.sham&&"symbol"==typeof Symbol(),re=et("wks"),ie=p.Symbol,oe=ne?ie:it,ae=function(t){return T(re,t)||(ee&&T(ie,t)?re[t]=ie[t]:re[t]=oe("Symbol."+t)),re[t]},se=ae("species"),le=function(t,e){var n;return Qt(t)&&(n=t.constructor,"function"!=typeof n||n!==Array&&!Qt(n.prototype)?_(n)&&null===(n=n[se])&&(n=void 0):n=void 0),new(void 0===n?Array:n)(0===e?0:e)},ce=St("navigator","userAgent")||"",ue=p.process,fe=ue&&ue.versions,he=fe&&fe.v8;he?(mt=he.split("."),vt=mt[0]+mt[1]):ce&&(!(mt=ce.match(/Edge\/(\d+)/))||mt[1]>=74)&&(mt=ce.match(/Chrome\/(\d+)/))&&(vt=mt[1]);var de=vt&&+vt,pe=ae("species"),ge=ae("isConcatSpreadable"),me=de>=51||!g(function(){var t=[];return t[ge]=!1,t.concat()[0]!==t}),ve=function(t){return de>=51||!g(function(){var e=[],n=e.constructor={};return n[pe]=function(){return{foo:1}},1!==e[t](Boolean).foo})}("concat"),ye=function(t){if(!_(t))return!1;var e=t[ge];return void 0!==e?!!e:Qt(t)};Kt({target:"Array",proto:!0,forced:!me||!ve},{concat:function(t){var e,n,r,i,o,a=Zt(this),s=le(a,0),l=0;for(e=-1,r=arguments.length;e<r;e++)if(o=-1===e?a:arguments[e],ye(o)){if(i=Ct(o.length),l+i>9007199254740991)throw TypeError("Maximum allowed index exceeded");for(n=0;n<i;n++,l++)n in o&&te(s,l,o[n])}else{if(l>=9007199254740991)throw TypeError("Maximum allowed index exceeded");te(s,l++,o)}return s.length=l,s}});var be,we=function(t){if("function"!=typeof t)throw TypeError(String(t)+" is not a function");return t},xe=function(t,e,n){if(we(t),void 0===e)return t;switch(n){case 0:return function(){return t.call(e)};case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,i){return t.call(e,n,r,i)}}return function(){return t.apply(e,arguments)}},Se=[].push,Ae=function(t){var e=1==t,n=2==t,r=3==t,i=4==t,o=6==t,a=5==t||o;return function(s,l,c,u){for(var f,h,d=Zt(s),p=k(d),g=xe(l,c,3),m=Ct(p.length),v=0,y=u||le,b=e?y(s,m):n?y(s,0):void 0;m>v;v++)if((a||v in p)&&(f=p[v],h=g(f,v,d),t))if(e)b[v]=h;else if(h)switch(t){case 3:return!0;case 5:return f;case 6:return v;case 2:Se.call(b,f)}else if(i)return!1;return o?-1:r||i?i:b}},Ne={forEach:Ae(0),map:Ae(1),filter:Ae(2),some:Ae(3),every:Ae(4),find:Ae(5),findIndex:Ae(6)},Le=Object.keys||function(t){return jt(t,Ft)},ke=m?Object.defineProperties:function(t,e){q(t);for(var n,r=Le(e),i=r.length,o=0;i>o;)H.f(t,n=r[o++],e[n]);return t},Ce=St("document","documentElement"),Oe=at("IE_PROTO"),_e=function(){},Pe=function(t){return"<script>"+t+"<\/script>"},Ie=function(t){t.write(Pe("")),t.close();var e=t.parentWindow.Object;return t=null,e},Te=function(){var t,e=F("iframe");return e.style.display="none",Ce.appendChild(e),e.src=String("javascript:"),t=e.contentWindow.document,t.open(),t.write(Pe("document.F=Object")),t.close(),t.F},Ee=function(){try{be=document.domain&&new ActiveXObject("htmlfile")}catch(t){}Ee=be?Ie(be):Te();for(var t=Ft.length;t--;)delete Ee.prototype[Ft[t]];return Ee()};st[Oe]=!0;var je=Object.create||function(t,e){var n;return null!==t?(_e.prototype=q(t),n=new _e,_e.prototype=null,n[Oe]=t):n=Ee(),void 0===e?n:ke(n,e)},Fe=ae("unscopables"),Re=Array.prototype;void 0==Re[Fe]&&H.f(Re,Fe,{configurable:!0,value:je(null)});var Be=Ne.find,Me=!0;"find"in[]&&Array(1).find(function(){Me=!1}),Kt({target:"Array",proto:!0,forced:Me},{find:function(t){return Be(this,t,arguments.length>1?arguments[1]:void 0)}}),function(t){Re[Fe][t]=!0}("find");var De=t.fn.bootstrapTable.utils;t.extend(t.fn.bootstrapTable.defaults,{stickyHeader:!1,stickyHeaderOffsetY:0,stickyHeaderOffsetLeft:0,stickyHeaderOffsetRight:0}),t.BootstrapTable=function(e){function r(){return n(this,r),c(this,a(r).apply(this,arguments))}return o(r,e),i(r,[{key:"initHeader",value:function(){for(var e,n=this,i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];if((e=f(a(r.prototype),"initHeader",this)).call.apply(e,[this].concat(o)),this.options.stickyHeader){this.$tableBody.find(".sticky-header-container,.sticky_anchor_begin,.sticky_anchor_end").remove(),this.$el.before('<div class="sticky-header-container"></div>'),this.$el.before('<div class="sticky_anchor_begin"></div>'),this.$el.after('<div class="sticky_anchor_end"></div>'),this.$header.addClass("sticky-header"),this.$stickyContainer=this.$tableBody.find(".sticky-header-container"),this.$stickyBegin=this.$tableBody.find(".sticky_anchor_begin"),this.$stickyEnd=this.$tableBody.find(".sticky_anchor_end"),this.$stickyHeader=this.$header.clone(!0,!0);var l=De.getEventName("resize.sticky-header-table",this.$el.attr("id")),c=De.getEventName("scroll.sticky-header-table",this.$el.attr("id"));t(window).off(l).on(l,function(){return n.renderStickyHeader()}),t(window).off(c).on(c,function(){return n.renderStickyHeader()}),this.$tableBody.off("scroll").on("scroll",function(){return n.matchPositionX()})}}},{key:"onColumnSearch",value:function(t){var e=t.currentTarget,n=t.keyCode;f(a(r.prototype),"onColumnSearch",this).call(this,{currentTarget:e,keyCode:n}),this.renderStickyHeader()}},{key:"resetView",value:function(){for(var e,n=this,i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];(e=f(a(r.prototype),"resetView",this)).call.apply(e,[this].concat(o)),t(".bootstrap-table.fullscreen").off("scroll").on("scroll",function(){return n.renderStickyHeader()})}},{key:"horizontalScroll",value:function(){var t=this;f(a(r.prototype),"horizontalScroll",this).call(this),this.$tableBody.on("scroll",function(){return t.matchPositionX()})}},{key:"renderStickyHeader",value:function(){var e=this,n=this;this.$stickyHeader=this.$header.clone(!0,!0),this.options.filterControl&&t(this.$stickyHeader).off("keyup change mouseup").on("keyup change mouse",function(e){var r=t(e.target),i=r.val(),o=r.parents("th").data("field"),a=n.$header.find('th[data-field="'+o+'"]');if(r.is("input"))a.find("input").val(i);else if(r.is("select")){var s=a.find("select");s.find("option[selected]").removeAttr("selected"),s.find('option[value="'+i+'"]').attr("selected",!0)}n.triggerSearch()});var r=t(window).scrollTop(),i=this.$stickyBegin.offset().top-this.options.stickyHeaderOffsetY,o=this.$stickyEnd.offset().top-this.options.stickyHeaderOffsetY-this.$header.height();if(r>i&&r<=o){this.$stickyHeader.find("tr:eq(0)").find("th").each(function(n,r){t(r).css("min-width",e.$header.find("tr:eq(0)").find("th").eq(n).css("width"))}),this.$stickyContainer.show().addClass("fix-sticky fixed-table-container");var a=this.options.stickyHeaderOffsetLeft,s=this.options.stickyHeaderOffsetRight;this.$el.closest(".bootstrap-table").hasClass("fullscreen")&&(a=0,s=0),this.$stickyContainer.css("top","".concat(this.options.stickyHeaderOffsetY)),this.$stickyContainer.css("left","".concat(a)),this.$stickyContainer.css("right","".concat(s)),this.$stickyTable=t("<table/>"),this.$stickyTable.addClass(this.options.classes),this.$stickyContainer.html(this.$stickyTable.append(this.$stickyHeader)),this.matchPositionX()}else this.$stickyContainer.removeClass("fix-sticky").hide()}},{key:"matchPositionX",value:function(){this.$stickyContainer.scrollLeft(this.$tableBody.scrollLeft())}}]),r}(t.BootstrapTable)}),function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(require("jquery")):"function"==typeof define&&define.amd?define(["jquery"],e):(t=t||self,e(t.jQuery))}(this,function(t){"use strict";function e(t,e){return e={exports:{}},t(e,e.exports),e.exports}function n(t,e){return RegExp(t,e)}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function o(t,e,n){return e&&i(t.prototype,e),n&&i(t,n),t}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&l(t,e)}function s(t){return(s=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function l(t,e){return(l=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function c(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function u(t,e){return!e||"object"!=typeof e&&"function"!=typeof e?c(t):e}function f(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=s(t)););return t}function h(t,e,n){return(h="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=f(t,e);if(r){var i=Object.getOwnPropertyDescriptor(r,e);return i.get?i.get.call(n):i.value}})(t,e,n||t)}function d(t,e){return m(t)||y(t,e)||w()}function p(t){return g(t)||v(t)||b()}function g(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e<t.length;e++)n[e]=t[e];return n}}function m(t){if(Array.isArray(t))return t}function v(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}function y(t,e){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t)){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(t){i=!0,o=t}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}}function b(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function w(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}t=t&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t;var x="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},S=function(t){return t&&t.Math==Math&&t},A=S("object"==typeof globalThis&&globalThis)||S("object"==typeof window&&window)||S("object"==typeof self&&self)||S("object"==typeof x&&x)||Function("return this")(),N=function(t){try{return!!t()}catch(t){return!0}},L=!N(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}),k={}.propertyIsEnumerable,C=Object.getOwnPropertyDescriptor,O=C&&!k.call({1:2},1),_=O?function(t){var e=C(this,t);return!!e&&e.enumerable}:k,P={f:_},I=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},T={}.toString,E=function(t){return T.call(t).slice(8,-1)},j="".split,F=N(function(){return!Object("z").propertyIsEnumerable(0)})?function(t){return"String"==E(t)?j.call(t,""):Object(t)}:Object,R=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t},B=function(t){return F(R(t))},M=function(t){return"object"==typeof t?null!==t:"function"==typeof t},D=function(t,e){if(!M(t))return t;var n,r;if(e&&"function"==typeof(n=t.toString)&&!M(r=n.call(t)))return r;if("function"==typeof(n=t.valueOf)&&!M(r=n.call(t)))return r;if(!e&&"function"==typeof(n=t.toString)&&!M(r=n.call(t)))return r;throw TypeError("Can't convert object to primitive value")},q={}.hasOwnProperty,U=function(t,e){return q.call(t,e)},z=A.document,H=M(z)&&M(z.createElement),$=function(t){return H?z.createElement(t):{}},V=!L&&!N(function(){return 7!=Object.defineProperty($("div"),"a",{get:function(){return 7}}).a}),W=Object.getOwnPropertyDescriptor,G=L?W:function(t,e){if(t=B(t),e=D(e,!0),V)try{return W(t,e)}catch(t){}if(U(t,e))return I(!P.f.call(t,e),t[e])},Y={f:G},J=function(t){if(!M(t))throw TypeError(String(t)+" is not an object");return t},X=Object.defineProperty,K=L?X:function(t,e,n){if(J(t),e=D(e,!0),J(n),V)try{return X(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(t[e]=n.value),t},Q={f:K},Z=L?function(t,e,n){return Q.f(t,e,I(1,n))}:function(t,e,n){return t[e]=n,t},tt=function(t,e){try{Z(A,t,e)}catch(n){A[t]=e}return e},et=A["__core-js_shared__"]||tt("__core-js_shared__",{}),nt=et,rt=Function.toString;"function"!=typeof nt.inspectSource&&(nt.inspectSource=function(t){return rt.call(t)});var it,ot,at,st=nt.inspectSource,lt=A.WeakMap,ct="function"==typeof lt&&/native code/.test(st(lt)),ut=e(function(t){(t.exports=function(t,e){return nt[t]||(nt[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.6.0",mode:"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})}),ft=0,ht=Math.random(),dt=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++ft+ht).toString(36)},pt=ut("keys"),gt=function(t){return pt[t]||(pt[t]=dt(t))},mt={},vt=A.WeakMap,yt=function(t){return at(t)?ot(t):it(t,{})},bt=function(t){return function(e){var n;if(!M(e)||(n=ot(e)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return n}};if(ct){var wt=new vt,xt=wt.get,St=wt.has,At=wt.set;it=function(t,e){return At.call(wt,t,e),e},ot=function(t){return xt.call(wt,t)||{}},at=function(t){return St.call(wt,t)}}else{var Nt=gt("state");mt[Nt]=!0,it=function(t,e){return Z(t,Nt,e),e},ot=function(t){return U(t,Nt)?t[Nt]:{}},at=function(t){return U(t,Nt)}}var Lt,kt={set:it,get:ot,has:at,enforce:yt,getterFor:bt},Ct=e(function(t){var e=kt.get,n=kt.enforce,r=String(String).split("String");(t.exports=function(t,e,i,o){var a=!!o&&!!o.unsafe,s=!!o&&!!o.enumerable,l=!!o&&!!o.noTargetGet;if("function"==typeof i&&("string"!=typeof e||U(i,"name")||Z(i,"name",e),n(i).source=r.join("string"==typeof e?e:"")),t===A)return void(s?t[e]=i:tt(e,i));a?!l&&t[e]&&(s=!0):delete t[e],s?t[e]=i:Z(t,e,i)})(Function.prototype,"toString",function(){return"function"==typeof this&&e(this).source||st(this)})}),Ot=A,_t=function(t){return"function"==typeof t?t:void 0},Pt=function(t,e){return arguments.length<2?_t(Ot[t])||_t(A[t]):Ot[t]&&Ot[t][e]||A[t]&&A[t][e]},It=Math.ceil,Tt=Math.floor,Et=function(t){return isNaN(t=+t)?0:(t>0?Tt:It)(t)},jt=Math.min,Ft=function(t){return t>0?jt(Et(t),9007199254740991):0},Rt=Math.max,Bt=Math.min,Mt=function(t,e){var n=Et(t);return n<0?Rt(n+e,0):Bt(n,e)},Dt=function(t){return function(e,n,r){var i,o=B(e),a=Ft(o.length),s=Mt(r,a);if(t&&n!=n){for(;a>s;)if((i=o[s++])!=i)return!0}else for(;a>s;s++)if((t||s in o)&&o[s]===n)return t||s||0;return!t&&-1}},qt={includes:Dt(!0),indexOf:Dt(!1)},Ut=qt.indexOf,zt=function(t,e){var n,r=B(t),i=0,o=[];for(n in r)!U(mt,n)&&U(r,n)&&o.push(n);for(;e.length>i;)U(r,n=e[i++])&&(~Ut(o,n)||o.push(n));return o},Ht=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],$t=Ht.concat("length","prototype"),Vt=Object.getOwnPropertyNames||function(t){return zt(t,$t)},Wt={f:Vt},Gt=Object.getOwnPropertySymbols,Yt={f:Gt},Jt=Pt("Reflect","ownKeys")||function(t){var e=Wt.f(J(t)),n=Yt.f;return n?e.concat(n(t)):e},Xt=function(t,e){for(var n=Jt(e),r=Q.f,i=Y.f,o=0;o<n.length;o++){var a=n[o];U(t,a)||r(t,a,i(e,a))}},Kt=/#|\.prototype\./,Qt=function(t,e){var n=te[Zt(t)];return n==ne||n!=ee&&("function"==typeof e?N(e):!!e)},Zt=Qt.normalize=function(t){return String(t).replace(Kt,".").toLowerCase()},te=Qt.data={},ee=Qt.NATIVE="N",ne=Qt.POLYFILL="P",re=Qt,ie=Y.f,oe=function(t,e){var n,r,i,o,a,s=t.target,l=t.global,c=t.stat;if(n=l?A:c?A[s]||tt(s,{}):(A[s]||{}).prototype)for(r in e){if(o=e[r],t.noTargetGet?(a=ie(n,r),i=a&&a.value):i=n[r],!re(l?r:s+(c?".":"#")+r,t.forced)&&void 0!==i){if(typeof o==typeof i)continue;Xt(o,i)}(t.sham||i&&i.sham)&&Z(o,"sham",!0),Ct(n,r,o,t)}},ae=!!Object.getOwnPropertySymbols&&!N(function(){return!String(Symbol())}),se=ae&&!Symbol.sham&&"symbol"==typeof Symbol(),le=Array.isArray||function(t){return"Array"==E(t)},ce=function(t){return Object(R(t))},ue=Object.keys||function(t){return zt(t,Ht)},fe=L?Object.defineProperties:function(t,e){J(t);for(var n,r=ue(e),i=r.length,o=0;i>o;)Q.f(t,n=r[o++],e[n]);return t},he=Pt("document","documentElement"),de=gt("IE_PROTO"),pe=function(){},ge=function(t){return"<script>"+t+"<\/script>"},me=function(t){t.write(ge("")),t.close();var e=t.parentWindow.Object;return t=null,e},ve=function(){var t,e=$("iframe");return e.style.display="none",he.appendChild(e),e.src=String("javascript:"),t=e.contentWindow.document,t.open(),t.write(ge("document.F=Object")),t.close(),t.F},ye=function(){try{Lt=document.domain&&new ActiveXObject("htmlfile")}catch(t){}ye=Lt?me(Lt):ve();for(var t=Ht.length;t--;)delete ye.prototype[Ht[t]];return ye()};mt[de]=!0;var be=Object.create||function(t,e){var n;return null!==t?(pe.prototype=J(t),n=new pe,pe.prototype=null,n[de]=t):n=ye(),void 0===e?n:fe(n,e)},we=Wt.f,xe={}.toString,Se="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],Ae=function(t){try{return we(t)}catch(t){return Se.slice()}},Ne=function(t){return Se&&"[object Window]"==xe.call(t)?Ae(t):we(B(t))},Le={f:Ne},ke=ut("wks"),Ce=A.Symbol,Oe=se?Ce:dt,_e=function(t){return U(ke,t)||(ae&&U(Ce,t)?ke[t]=Ce[t]:ke[t]=Oe("Symbol."+t)),ke[t]},Pe=_e,Ie={f:Pe},Te=Q.f,Ee=function(t){var e=Ot.Symbol||(Ot.Symbol={});U(e,t)||Te(e,t,{value:Ie.f(t)})},je=Q.f,Fe=_e("toStringTag"),Re=function(t,e,n){t&&!U(t=n?t:t.prototype,Fe)&&je(t,Fe,{configurable:!0,value:e})},Be=function(t){if("function"!=typeof t)throw TypeError(String(t)+" is not a function");return t},Me=function(t,e,n){if(Be(t),void 0===e)return t;switch(n){case 0:return function(){return t.call(e)};case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,i){return t.call(e,n,r,i)}}return function(){return t.apply(e,arguments)}},De=_e("species"),qe=function(t,e){var n;return le(t)&&(n=t.constructor,"function"!=typeof n||n!==Array&&!le(n.prototype)?M(n)&&null===(n=n[De])&&(n=void 0):n=void 0),new(void 0===n?Array:n)(0===e?0:e)},Ue=[].push,ze=function(t){var e=1==t,n=2==t,r=3==t,i=4==t,o=6==t,a=5==t||o;return function(s,l,c,u){for(var f,h,d=ce(s),p=F(d),g=Me(l,c,3),m=Ft(p.length),v=0,y=u||qe,b=e?y(s,m):n?y(s,0):void 0;m>v;v++)if((a||v in p)&&(f=p[v],h=g(f,v,d),t))if(e)b[v]=h;else if(h)switch(t){case 3:return!0;case 5:return f;case 6:return v;case 2:Ue.call(b,f)}else if(i)return!1;return o?-1:r||i?i:b}},He={forEach:ze(0),map:ze(1),filter:ze(2),some:ze(3),every:ze(4),find:ze(5),findIndex:ze(6)},$e=He.forEach,Ve=gt("hidden"),We=_e("toPrimitive"),Ge=kt.set,Ye=kt.getterFor("Symbol"),Je=Object.prototype,Xe=A.Symbol,Ke=Pt("JSON","stringify"),Qe=Y.f,Ze=Q.f,tn=Le.f,en=P.f,nn=ut("symbols"),rn=ut("op-symbols"),on=ut("string-to-symbol-registry"),an=ut("symbol-to-string-registry"),sn=ut("wks"),ln=A.QObject,cn=!ln||!ln.prototype||!ln.prototype.findChild,un=L&&N(function(){return 7!=be(Ze({},"a",{get:function(){return Ze(this,"a",{value:7}).a}})).a})?function(t,e,n){var r=Qe(Je,e);r&&delete Je[e],Ze(t,e,n),r&&t!==Je&&Ze(Je,e,r)}:Ze,fn=function(t,e){var n=nn[t]=be(Xe.prototype);return Ge(n,{type:"Symbol",tag:t,description:e}),L||(n.description=e),n},hn=ae&&"symbol"==typeof Xe.iterator?function(t){return"symbol"==typeof t}:function(t){return Object(t)instanceof Xe},dn=function(t,e,n){t===Je&&dn(rn,e,n),J(t);var r=D(e,!0);return J(n),U(nn,r)?(n.enumerable?(U(t,Ve)&&t[Ve][r]&&(t[Ve][r]=!1),n=be(n,{enumerable:I(0,!1)})):(U(t,Ve)||Ze(t,Ve,I(1,{})),t[Ve][r]=!0),un(t,r,n)):Ze(t,r,n)},pn=function(t,e){J(t);var n=B(e),r=ue(n).concat(bn(n));return $e(r,function(e){L&&!mn.call(n,e)||dn(t,e,n[e])}),t},gn=function(t,e){return void 0===e?be(t):pn(be(t),e)},mn=function(t){var e=D(t,!0),n=en.call(this,e);return!(this===Je&&U(nn,e)&&!U(rn,e))&&(!(n||!U(this,e)||!U(nn,e)||U(this,Ve)&&this[Ve][e])||n)},vn=function(t,e){var n=B(t),r=D(e,!0);if(n!==Je||!U(nn,r)||U(rn,r)){var i=Qe(n,r);return!i||!U(nn,r)||U(n,Ve)&&n[Ve][r]||(i.enumerable=!0),i}},yn=function(t){var e=tn(B(t)),n=[];return $e(e,function(t){U(nn,t)||U(mt,t)||n.push(t)}),n},bn=function(t){var e=t===Je,n=tn(e?rn:B(t)),r=[];return $e(n,function(t){!U(nn,t)||e&&!U(Je,t)||r.push(nn[t])}),r};if(ae||(Xe=function(){if(this instanceof Xe)throw TypeError("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?String(arguments[0]):void 0,e=dt(t),n=function(t){this===Je&&n.call(rn,t),U(this,Ve)&&U(this[Ve],e)&&(this[Ve][e]=!1),un(this,e,I(1,t))};return L&&cn&&un(Je,e,{configurable:!0,set:n}),fn(e,t)},Ct(Xe.prototype,"toString",function(){return Ye(this).tag}),P.f=mn,Q.f=dn,Y.f=vn,Wt.f=Le.f=yn,Yt.f=bn,L&&(Ze(Xe.prototype,"description",{configurable:!0,get:function(){return Ye(this).description}}),Ct(Je,"propertyIsEnumerable",mn,{unsafe:!0}))),se||(Ie.f=function(t){return fn(_e(t),t)}),oe({global:!0,wrap:!0,forced:!ae,sham:!ae},{Symbol:Xe}),$e(ue(sn),function(t){Ee(t)}),oe({target:"Symbol",stat:!0,forced:!ae},{for:function(t){var e=String(t);if(U(on,e))return on[e];var n=Xe(e);return on[e]=n,an[n]=e,n},keyFor:function(t){if(!hn(t))throw TypeError(t+" is not a symbol");if(U(an,t))return an[t]},useSetter:function(){cn=!0},useSimple:function(){cn=!1}}),oe({target:"Object",stat:!0,forced:!ae,sham:!L},{create:gn,defineProperty:dn,defineProperties:pn,getOwnPropertyDescriptor:vn}),oe({target:"Object",stat:!0,forced:!ae},{getOwnPropertyNames:yn,getOwnPropertySymbols:bn}),oe({target:"Object",stat:!0,forced:N(function(){Yt.f(1)})},{getOwnPropertySymbols:function(t){return Yt.f(ce(t))}}),Ke){var wn=!ae||N(function(){var t=Xe();return"[null]"!=Ke([t])||"{}"!=Ke({a:t})||"{}"!=Ke(Object(t))});oe({target:"JSON",stat:!0,forced:wn},{stringify:function(t,e,n){for(var r,i=[t],o=1;arguments.length>o;)i.push(arguments[o++]);if(r=e,(M(e)||void 0!==t)&&!hn(t))return le(e)||(e=function(t,e){if("function"==typeof r&&(e=r.call(this,t,e)),!hn(e))return e}),i[1]=e,Ke.apply(null,i)}})}Xe.prototype[We]||Z(Xe.prototype,We,Xe.prototype.valueOf),Re(Xe,"Symbol"),mt[Ve]=!0;var xn=Q.f,Sn=A.Symbol;if(L&&"function"==typeof Sn&&(!("description"in Sn.prototype)||void 0!==Sn().description)){var An={},Nn=function(){var t=arguments.length<1||void 0===arguments[0]?void 0:String(arguments[0]),e=this instanceof Nn?new Sn(t):void 0===t?Sn():Sn(t);return""===t&&(An[e]=!0),e};Xt(Nn,Sn);var Ln=Nn.prototype=Sn.prototype;Ln.constructor=Nn;var kn=Ln.toString,Cn="Symbol(test)"==String(Sn("test")),On=/^Symbol\((.*)\)[^)]+$/;xn(Ln,"description",{configurable:!0,get:function(){var t=M(this)?this.valueOf():this,e=kn.call(t);if(U(An,t))return"";var n=Cn?e.slice(7,-1):e.replace(On,"$1");return""===n?void 0:n}}),oe({global:!0,forced:!0},{Symbol:Nn})}Ee("iterator")+;var _n,Pn,In=function(t,e,n){var r=D(e);r in t?Q.f(t,r,I(0,n)):t[r]=n},Tn=Pt("navigator","userAgent")||"",En=A.process,jn=En&&En.versions,Fn=jn&&jn.v8;Fn?(_n=Fn.split("."),Pn=_n[0]+_n[1]):Tn&&(!(_n=Tn.match(/Edge\/(\d+)/))||_n[1]>=74)&&(_n=Tn.match(/Chrome\/(\d+)/))&&(Pn=_n[1]);var Rn=Pn&&+Pn,Bn=_e("species"),Mn=function(t){return Rn>=51||!N(function(){var e=[],n=e.constructor={};return n[Bn]=function(){return{foo:1}},1!==e[t](Boolean).foo})},Dn=_e("isConcatSpreadable"),qn=Rn>=51||!N(function(){var t=[];return t[Dn]=!1,t.concat()[0]!==t}),Un=Mn("concat"),zn=function(t){if(!M(t))return!1;var e=t[Dn];return void 0!==e?!!e:le(t)};oe({target:"Array",proto:!0,forced:!qn||!Un},{concat:function(t){var e,n,r,i,o,a=ce(this),s=qe(a,0),l=0;for(e=-1,r=arguments.length;e<r;e++)if(o=-1===e?a:arguments[e],zn(o)){if(i=Ft(o.length),l+i>9007199254740991)throw TypeError("Maximum allowed index exceeded");for(n=0;n<i;n++,l++)n in o&&In(s,l,o[n])}else{if(l>=9007199254740991)throw TypeError("Maximum allowed index exceeded");In(s,l++,o)}return s.length=l,s}});var Hn=He.filter,$n=Mn("filter"),Vn=$n&&!N(function(){[].filter.call({length:-1,0:1},function(t){throw t})});oe({target:"Array",proto:!0,forced:!$n||!Vn},{filter:function(t){return Hn(this,t,arguments.length>1?arguments[1]:void 0)}});var Wn=_e("unscopables"),Gn=Array.prototype;void 0==Gn[Wn]&&Q.f(Gn,Wn,{configurable:!0,value:be(null)});var Yn=function(t){Gn[Wn][t]=!0},Jn=He.find,Xn=!0;"find"in[]&&Array(1).find(function(){Xn=!1}),oe({target:"Array",proto:!0,forced:Xn},{find:function(t){return Jn(this,t,arguments.length>1?arguments[1]:void 0)}}),Yn("find");var Kn=qt.includes;oe({target:"Array",proto:!0},{includes:function(t){return Kn(this,t,arguments.length>1?arguments[1]:void 0)}}),Yn("includes");var Qn=function(t,e){var n=[][t];return!n||!N(function(){n.call(null,e||function(){throw 1},1)})},Zn=qt.indexOf,tr=[].indexOf,er=!!tr&&1/[1].indexOf(1,-0)<0,nr=Qn("indexOf");oe({target:"Array",proto:!0,forced:er||nr},{indexOf:function(t){return er?tr.apply(this,arguments)||0:Zn(this,t,arguments.length>1?arguments[1]:void 0)}});var rr,ir,or,ar=!N(function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}),sr=gt("IE_PROTO"),lr=Object.prototype,cr=ar?Object.getPrototypeOf:function(t){return t=ce(t),U(t,sr)?t[sr]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?lr:null},ur=_e("iterator"),fr=!1,hr=function(){return this};[].keys&&(or=[].keys(),"next"in or?(ir=cr(cr(or)))!==Object.prototype&&(rr=ir):fr=!0),void 0==rr&&(rr={}),U(rr,ur)||Z(rr,ur,hr);var dr={IteratorPrototype:rr,BUGGY_SAFARI_ITERATORS:fr},pr=dr.IteratorPrototype,gr=function(t,e,n){var r=e+" Iterator";return t.prototype=be(pr,{next:I(1,n)}),Re(t,r,!1),t},mr=function(t){if(!M(t)&&null!==t)throw TypeError("Can't set "+String(t)+" as a prototype");return t},vr=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{t=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set,t.call(n,[]),e=n instanceof Array}catch(t){}return function(n,r){return J(n),mr(r),e?t.call(n,r):n.__proto__=r,n}}():void 0),yr=dr.IteratorPrototype,br=dr.BUGGY_SAFARI_ITERATORS,wr=_e("iterator"),xr=function(){return this},Sr=function(t,e,n,r,i,o,a){gr(n,e,r);var s,l,c,u=function(t){if(t===i&&g)return g;if(!br&&t in d)return d[t];switch(t){case"keys":case"values":case"entries":return function(){return new n(this,t)}}return function(){return new n(this)}},f=e+" Iterator",h=!1,d=t.prototype,p=d[wr]||d["@@iterator"]||i&&d[i],g=!br&&p||u(i),m="Array"==e?d.entries||p:p;if(m&&(s=cr(m.call(new t)),yr!==Object.prototype&&s.next&&(cr(s)!==yr&&(vr?vr(s,yr):"function"!=typeof s[wr]&&Z(s,wr,xr)),Re(s,f,!0))),"values"==i&&p&&"values"!==p.name&&(h=!0,g=function(){return p.call(this)}),d[wr]!==g&&Z(d,wr,g),i)if(l={values:u("values"),keys:o?g:u("keys"),entries:u("entries")},a)for(c in l)!br&&!h&&c in d||Ct(d,c,l[c]);else oe({target:e,proto:!0,forced:br||h},l);return l},Ar=kt.set,Nr=kt.getterFor("Array Iterator"),Lr=Sr(Array,"Array",function(t,e){Ar(this,{type:"Array Iterator",target:B(t),index:0,kind:e})},function(){var t=Nr(this),e=t.target,n=t.kind,r=t.index++;return!e||r>=e.length?(t.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:e[r],done:!1}:{value:[r,e[r]],done:!1}},"values");Yn("keys"),Yn("values"),Yn("entries");var kr=[].join,Cr=F!=Object,Or=Qn("join",",");oe({target:"Array",proto:!0,forced:Cr||Or},{join:function(t){return kr.call(B(this),void 0===t?",":t)}});var _r=Object.assign,Pr=Object.defineProperty,Ir=!_r||N(function(){if(L&&1!==_r({b:1},_r(Pr({},"a",{enumerable:!0,get:function(){Pr(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},e={},n=Symbol(),r="abcdefghijklmnopqrst";return t[n]=7,r.split("").forEach(function(t){e[t]=t}),7!=_r({},t)[n]||ue(_r({},e)).join("")!=r})?function(t,e){for(var n=ce(t),r=arguments.length,i=1,o=Yt.f,a=P.f;r>i;)for(var s,l=F(arguments[i++]),c=o?ue(l).concat(o(l)):ue(l),u=c.length,f=0;u>f;)s=c[f++],L&&!a.call(l,s)||(n[s]=l[s]);return n}:_r;oe({target:"Object",stat:!0,forced:Object.assign!==Ir},{assign:Ir});var Tr=P.f,Er=function(t){return function(e){for(var n,r=B(e),i=ue(r),o=i.length,a=0,s=[];o>a;)n=i[a++],L&&!Tr.call(r,n)||s.push(t?[n,r[n]]:r[n]);return s}},jr={entries:Er(!0),values:Er(!1)},Fr=jr.entries;oe({target:"Object",stat:!0},{entries:function(t){return Fr(t)}});var Rr=_e("toStringTag"),Br={};Br[Rr]="z";var Mr="[object z]"===String(Br),Dr=_e("toStringTag"),qr="Arguments"==E(function(){return arguments}()),Ur=function(t,e){try{return t[e]}catch(t){}},zr=Mr?E:function(t){var e,n,r;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=Ur(e=Object(t),Dr))?n:qr?E(e):"Object"==(r=E(e))&&"function"==typeof e.callee?"Arguments":r},Hr=Mr?{}.toString:function(){return"[object "+zr(this)+"]"};Mr||Ct(Object.prototype,"toString",Hr,{unsafe:!0});var $r=function(){var t=J(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e},Vr=N(function(){var t=n("a","y");return t.lastIndex=2,null!=t.exec("abcd")}),Wr=N(function(){var t=n("^r","gy");return t.lastIndex=2,null!=t.exec("str")}),Gr={UNSUPPORTED_Y:Vr,BROKEN_CARET:Wr},Yr=RegExp.prototype.exec,Jr=String.prototype.replace,Xr=Yr,Kr=function(){var t=/a/,e=/b*/g;return Yr.call(t,"a"),Yr.call(e,"a"),0!==t.lastIndex||0!==e.lastIndex}(),Qr=Gr.UNSUPPORTED_Y||Gr.BROKEN_CARET,Zr=void 0!==/()??/.exec("")[1];(Kr||Zr||Qr)&&(Xr=function(t){var e,n,r,i,o=this,a=Qr&&o.sticky,s=$r.call(o),l=o.source,c=0,u=t;return a&&(s=s.replace("y",""),-1===s.indexOf("g")&&(s+="g"),u=String(t).slice(o.lastIndex),o.lastIndex>0&&(!o.multiline||o.multiline&&"\n"!==t[o.lastIndex-1])&&(l="(?: "+l+")",u=" "+u,c++),n=new RegExp("^(?:"+l+")",s)),Zr&&(n=new RegExp("^"+l+"$(?!\\s)",s)),Kr&&(e=o.lastIndex),r=Yr.call(a?n:o,u),a?r?(r.input=r.input.slice(c),r[0]=r[0].slice(c),r.index=o.lastIndex,o.lastIndex+=r[0].length):o.lastIndex=0:Kr&&r&&(o.lastIndex=o.global?r.index+r[0].length:e),Zr&&r&&r.length>1&&Jr.call(r[0],n,function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(r[i]=void 0)}),r});var ti=Xr;oe({target:"RegExp",proto:!0,forced:/./.exec!==ti},{exec:ti});var ei=_e("match"),ni=function(t){var e;return M(t)&&(void 0!==(e=t[ei])?!!e:"RegExp"==E(t))},ri=function(t){if(ni(t))throw TypeError("The method doesn't accept regular expressions");return t},ii=_e("match");oe({target:"String",proto:!0,forced:!function(t){var e=/./;try{"/./"[t](e)}catch(n){try{return e[ii]=!1,"/./"[t](e)}catch(t){}}return!1}("includes")},{includes:function(t){return!!~String(R(this)).indexOf(ri(t),arguments.length>1?arguments[1]:void 0)}});var oi=function(t){return function(e,n){var r,i,o=String(R(e)),a=Et(n),s=o.length;return a<0||a>=s?t?"":void 0:(r=o.charCodeAt(a),r<55296||r>56319||a+1===s||(i=o.charCodeAt(a+1))<56320||i>57343?t?o.charAt(a):r:t?o.slice(a,a+2):i-56320+(r-55296<<10)+65536)}},ai={codeAt:oi(!1),charAt:oi(!0)},si=ai.charAt,li=kt.set,ci=kt.getterFor("String Iterator");Sr(String,"String",function(t){li(this,{type:"String Iterator",string:String(t),index:0})},function(){var t,e=ci(this),n=e.string,r=e.index;return r>=n.length?{value:void 0,done:!0}:(t=si(n,r),e.index+=t.length,{value:t,done:!1})});var ui=_e("species"),fi=!N(function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")}),hi=function(){return"$0"==="a".replace(/./,"$0")}(),di=!N(function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var n="ab".split(t);return 2!==n.length||"a"!==n[0]||"b"!==n[1]}),pi=Object.is||function(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e},gi=function(t,e){var n=t.exec;if("function"==typeof n){var r=n.call(t,e);if("object"!=typeof r)throw TypeError("RegExp exec method returned something other than an Object or null");return r}if("RegExp"!==E(t))throw TypeError("RegExp#exec called on incompatible receiver");return ti.call(t,e)};!function(t,e,n,r){var i=_e(t),o=!N(function(){var e={};return e[i]=function(){return 7},7!=""[t](e)}),a=o&&!N(function(){var e=!1,n=/a/;return"split"===t&&(n={},n.constructor={},n.constructor[ui]=function(){return n},n.flags="",n[i]=/./[i]),n.exec=function(){return e=!0,null},n[i](""),!e});if(!o||!a||"replace"===t&&(!fi||!hi)||"split"===t&&!di){var s=/./[i],l=n(i,""[t],function(t,e,n,r,i){return e.exec===ti?o&&!i?{done:!0,value:s.call(e,n,r)}:{done:!0,value:t.call(n,e,r)}:{done:!1}},{REPLACE_KEEPS_$0:hi}),c=l[0],u=l[1];Ct(String.prototype,t,c),Ct(RegExp.prototype,i,2==e?function(t,e){return u.call(t,this,e)}:function(t){return u.call(t,this)})}r&&Z(RegExp.prototype[i],"sham",!0)}("search",1,function(t,e,n){return[function(e){var n=R(this),r=void 0==e?void 0:e[t];return void 0!==r?r.call(e,n):new RegExp(e)[t](String(n))},function(t){var r=n(e,t,this);if(r.done)return r.value;var i=J(t),o=String(this),a=i.lastIndex;pi(a,0)||(i.lastIndex=0);var s=gi(i,o);return pi(i.lastIndex,a)||(i.lastIndex=a),null===s?-1:s.index}]});var mi="\t\n\v\f\r \u2028\u2029\ufeff",vi="["+mi+"]",yi=RegExp("^"+vi+vi+"*"),bi=RegExp(vi+vi+"*$"),wi=function(t){return function(e){var n=String(R(e));return 1&t&&(n=n.replace(yi,"")),2&t&&(n=n.replace(bi,"")),n}},xi={start:wi(1),end:wi(2),trim:wi(3)},Si=" ",Ai=xi.trim;oe({target:"String",proto:!0,forced:function(t){return N(function(){return!!mi[t]()||Si[t]()!=Si||mi[t].name!==t})}("trim")},{trim:function(){return Ai(this)}});var Ni={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},Li=_e("iterator"),ki=_e("toStringTag"),Ci=Lr.values;for(var Oi in Ni){var _i=A[Oi],Pi=_i&&_i.prototype;if(Pi){if(Pi[Li]!==Ci)try{Z(Pi,Li,Ci)}catch(t){Pi[Li]=Ci}if(Pi[ki]||Z(Pi,ki,Oi),Ni[Oi])for(var Ii in Lr)if(Pi[Ii]!==Lr[Ii])try{Z(Pi,Ii,Lr[Ii])}catch(t){Pi[Ii]=Lr[Ii]}}}var Ti=t.fn.bootstrapTable.utils,Ei={bootstrap3:{icons:{advancedSearchIcon:"glyphicon-chevron-down"},html:{modal:'\n <div id="avdSearchModal_%s" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="mySmallModalLabel" aria-hidden="true">\n <div class="modal-dialog modal-xs">\n <div class="modal-content">\n <div class="modal-header">\n <h4 class="modal-title">%s</h4>\n <button type="button" class="close" data-dismiss="modal" aria-label="Close">\n <span aria-hidden="true">×</span>\n </button>\n </div>\n <div class="modal-body modal-body-custom">\n <div class="container-fluid" id="avdSearchModalContent_%s"\n style="padding-right: 0px; padding-left: 0px;" >\n </div>\n </div>\n <div class="modal-footer">\n <button type="button" id="btnCloseAvd_%s" class="btn btn-%s">%s</button>\n </div>\n </div>\n </div>\n </div>\n '}},bootstrap4:{icons:{advancedSearchIcon:"fa-chevron-down"},html:{modal:'\n <div id="avdSearchModal_%s" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="mySmallModalLabel" aria-hidden="true">\n <div class="modal-dialog modal-xs">\n <div class="modal-content">\n <div class="modal-header">\n <h4 class="modal-title">%s</h4>\n <button type="button" class="close" data-dismiss="modal" aria-label="Close">\n <span aria-hidden="true">×</span>\n </button>\n </div>\n <div class="modal-body modal-body-custom">\n <div class="container-fluid" id="avdSearchModalContent_%s"\n style="padding-right: 0; padding-left: 0;" >\n </div>\n </div>\n <div class="modal-footer">\n <button type="button" id="btnCloseAvd_%s" class="btn btn-%s">%s</button>\n </div>\n </div>\n </div>\n </div>\n '}},bootstrap5:{icons:{advancedSearchIcon:"fa-chevron-down"},html:{modal:'\n <div id="avdSearchModal_%s" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="mySmallModalLabel" aria-hidden="true">\n <div class="modal-dialog modal-xs">\n <div class="modal-content">\n <div class="modal-header">\n <h4 class="modal-title">%s</h4>\n <button type="button" class="close" data-dismiss="modal" aria-label="Close">\n <span aria-hidden="true">×</span>\n </button>\n </div>\n <div class="modal-body modal-body-custom">\n <div class="container-fluid" id="avdSearchModalContent_%s"\n style="padding-right: 0; padding-left: 0;" >\n </div>\n </div>\n <div class="modal-footer">\n <button type="button" id="btnCloseAvd_%s" class="btn btn-%s">%s</button>\n </div>\n </div>\n </div>\n </div>\n '}},bulma:{icons:{advancedSearchIcon:"fa-chevron-down"},html:{modal:'\n <div class="modal" id="avdSearchModal_%s">\n <div class="modal-background"></div>\n <div class="modal-card">\n <header class="modal-card-head">\n <p class="modal-card-title">%s</p>\n <button class="delete" aria-label="close"></button>\n </header>\n <section class="modal-card-body" id="avdSearchModalContent_%s"></section>\n <footer class="modal-card-foot">\n <button class="button" id="btnCloseAvd_%s" data-close="btn btn-%s">%s</button>\n </footer>\n </div>\n </div>\n '}},foundation:{icons:{advancedSearchIcon:"fa-chevron-down"},html:{modal:'\n <div class="reveal" id="avdSearchModal_%s" data-reveal>\n <h1>%s</h1>\n <div id="avdSearchModalContent_%s">\n\n </div>\n <button class="close-button" data-close aria-label="Close modal" type="button">\n <span aria-hidden="true">×</span>\n </button>\n\n <button id="btnCloseAvd_%s" class="%s" type="button">%s</button>\n </div>\n '}},materialize:{icons:{advancedSearchIcon:"expand_more"},html:{modal:'\n <div id="avdSearchModal_%s" class="modal">\n <div class="modal-content">\n <h4>%s</h4>\n <div id="avdSearchModalContent_%s">\n\n </div>\n </div>\n <div class="modal-footer">\n <a href="javascript:void(0)"" id="btnCloseAvd_%s" class="modal-close waves-effect waves-green btn-flat %s">%s</a>\n </div>\n </div>\n '}},semantic:{icons:{advancedSearchIcon:"fa-chevron-down"},html:{modal:'\n <div class="ui modal" id="avdSearchModal_%s">\n <i class="close icon"></i>\n <div class="header">\n %s\n </div>\n <div class="image content ui form" id="avdSearchModalContent_%s"></div>\n <div class="actions">\n <div id="btnCloseAvd_%s" class="ui black deny button %s">%s</div>\n </div>\n </div>\n '}}}[t.fn.bootstrapTable.theme];t.extend(t.fn.bootstrapTable.defaults,{advancedSearch:!1,idForm:"advancedSearch",actionForm:"",idTable:void 0,onColumnAdvancedSearch:function(t,e){return!1}}),t.extend(t.fn.bootstrapTable.defaults.icons,{advancedSearchIcon:Ei.icons.advancedSearchIcon}),t.extend(t.fn.bootstrapTable.Constructor.EVENTS,{"column-advanced-search.bs.table":"onColumnAdvancedSearch"}),t.extend(t.fn.bootstrapTable.locales,{formatAdvancedSearch:function(){return"Advanced search"},formatAdvancedCloseButton:function(){return"Close"}}),t.extend(t.fn.bootstrapTable.defaults,t.fn.bootstrapTable.locales),t.BootstrapTable=function(e){function n(){return r(this,n),u(this,s(n).apply(this,arguments))}return a(n,e),o(n,[{key:"initToolbar",value:function(){var t=this.options;this.showToolbar=this.showToolbar||t.search&&t.advancedSearch&&t.idTable,t.search&&t.advancedSearch&&t.idTable&&(this.buttons=Object.assign(this.buttons,{advancedSearch:{text:this.options.formatAdvancedSearch(),icon:this.options.icons.advancedSearchIcon,event:this.showAvdSearch,attributes:{"aria-label":this.options.formatAdvancedSearch(),title:this.options.formatAdvancedSearch()}}})),h(s(n.prototype),"initToolbar",this).call(this)}},{key:"showAvdSearch",value:function(){var e=this,n=this.options,r="#avdSearchModal_"+n.idTable;if(t(r).length<=0){t("body").append(Ti.sprintf(Ei.html.modal,n.idTable,n.formatAdvancedSearch(),n.idTable,n.idTable,n.buttonsClass,n.formatAdvancedCloseButton()));var i=0;t("#avdSearchModalContent_".concat(n.idTable)).append(this.createFormAvd().join("")),t("#".concat(n.idForm)).off("keyup blur","input").on("keyup blur","input",function(t){"server"===n.sidePagination?e.onColumnAdvancedSearch(t):(clearTimeout(i),i=setTimeout(function(){e.onColumnAdvancedSearch(t)},n.searchTimeOut))}),t("#btnCloseAvd_".concat(n.idTable)).click(function(){return e.hideModal()}),"bulma"===t.fn.bootstrapTable.theme&&t(r).find(".delete").off("click").on("click",function(){return e.hideModal()}),this.showModal()}else this.showModal()}},{key:"showModal",value:function(){var e="#avdSearchModal_"+this.options.idTable;-1!==t.inArray(t.fn.bootstrapTable.theme,["bootstrap3","bootstrap4"])?t(e).modal():"bootstrap5"===t.fn.bootstrapTable.theme?(this.toolbarModal||(this.toolbarModal=new bootstrap.Modal(document.getElementById("avdSearchModal_"+this.options.idTable),{})),this.toolbarModal.show()):"bulma"===t.fn.bootstrapTable.theme?t(e).toggleClass("is-active"):"foundation"===t.fn.bootstrapTable.theme?(this.toolbarModal||(this.toolbarModal=new Foundation.Reveal(t(e))),this.toolbarModal.open()):"materialize"===t.fn.bootstrapTable.theme?(t(e).modal(),t(e).modal("open")):"semantic"===t.fn.bootstrapTable.theme&&t(e).modal("show")}},{key:"hideModal",value:function(){var e=t("#avdSearchModal_".concat(this.options.idTable)),n="#avdSearchModal_"+this.options.idTable;-1!==t.inArray(t.fn.bootstrapTable.theme,["bootstrap3","bootstrap4"])?e.modal("hide"):"bootstrap5"===t.fn.bootstrapTable.theme?this.toolbarModal.hide():"bulma"===t.fn.bootstrapTable.theme?(t("html").toggleClass("is-clipped"),t(n).toggleClass("is-active")):"foundation"===t.fn.bootstrapTable.theme?this.toolbarModal.close():"materialize"===t.fn.bootstrapTable.theme?t(n).modal("open"):"semantic"===t.fn.bootstrapTable.theme&&t(n).modal("close"),"server"===this.options.sidePagination&&(this.options.pageNumber=1,this.updatePagination(),this.trigger("column-advanced-search",this.filterColumnsPartial))}},{key:"createFormAvd",value:function(){var t=this.options,e=['<form class="form-horizontal" id="'.concat(t.idForm,'" action="').concat(t.actionForm,'">')],n=!0,r=!1,i=void 0;try{for(var o,a=this.columns[Symbol.iterator]();!(n=(o=a.next()).done);n=!0){var s=o.value;!s.checkbox&&s.visible&&s.searchable&&e.push('\n <div class="form-group row">\n <label class="col-sm-4 control-label">'.concat(s.title,'</label>\n <div class="col-sm-6">\n <input type="text" class="form-control ').concat(this.constants.classes.input,'" name="').concat(s.field,'" placeholder="').concat(s.title,'" id="').concat(s.field,'">\n </div>\n </div>\n '))}}catch(t){r=!0,i=t}finally{try{n||null==a.return||a.return()}finally{if(r)throw i}}return e.push("</form>"),e}},{key:"initSearch",value:function(){var e=this;if(h(s(n.prototype),"initSearch",this).call(this),this.options.advancedSearch&&"server"!==this.options.sidePagination){var r=t.isEmptyObject(this.filterColumnsPartial)?null:this.filterColumnsPartial;this.data=r?this.data.filter(function(t,n){for(var i=0,o=Object.entries(r);i<o.length;i++){var a=d(o[i],2),s=a[0],l=a[1],c=l.toLowerCase(),u=t[s],f=e.header.fields.indexOf(s);if(u=Ti.calculateObjectValue(e.header,e.header.formatters[f],[u,t,n],u),-1===f||"string"!=typeof u&&"number"!=typeof u||!"".concat(u).toLowerCase().includes(c))return!1}return!0}):this.data,this.unsortedData=p(this.data)}}},{key:"onColumnAdvancedSearch",value:function(e){var n=t.trim(t(e.currentTarget).val()),r=t(e.currentTarget)[0].id;t.isEmptyObject(this.filterColumnsPartial)&&(this.filterColumnsPartial={}),n?this.filterColumnsPartial[r]=n:delete this.filterColumnsPartial[r],"server"!==this.options.sidePagination&&(this.options.pageNumber=1,this.onSearch(e),this.updatePagination(),this.trigger("column-advanced-search",r,n))}}]),n}(t.BootstrapTable)});