{"version":3,"sourceRoot":"/cv/scripts/DAC0/eng/include/lib","sources":["datatables.js"],"sourcesContent":["/*\r\n * This combined file was created by the DataTables downloader builder:\r\n * https://datatables.net/download\r\n *\r\n * To rebuild or modify this file with the latest versions of the included\r\n * software please visit:\r\n * https://datatables.net/download/#bs/dt-1.10.24/b-1.7.0/fh-3.1.8/sl-1.3.3\r\n *\r\n * Included libraries:\r\n * DataTables 1.10.24, Buttons 1.7.0, FixedHeader 3.1.8, Select 1.3.3\r\n */\r\n\r\n/*! DataTables 1.10.24\r\n * ©2008-2021 SpryMedia Ltd - datatables.net/license\r\n */\r\n\r\n/**\r\n * @summary DataTables\r\n * @description Paginate, search and order HTML tables\r\n * @version 1.10.24\r\n * @file jquery.dataTables.js\r\n * @author SpryMedia Ltd\r\n * @contact www.datatables.net\r\n * @copyright Copyright 2008-2021 SpryMedia Ltd.\r\n *\r\n * This source file is free software, available under the following license:\r\n * MIT license - http://datatables.net/license\r\n *\r\n * This source file is distributed in the hope that it will be useful, but\r\n * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY\r\n * or FITNESS FOR A PARTICULAR PURPOSE. See the license files for details.\r\n *\r\n * For details please refer to: http://www.datatables.net\r\n */\r\n\r\n/*jslint evil: true, undef: true, browser: true */\r\n/*globals $,require,jQuery,define,_selector_run,_selector_opts,_selector_first,_selector_row_indexes,_ext,_Api,_api_register,_api_registerPlural,_re_new_lines,_re_html,_re_formatted_numeric,_re_escape_regex,_empty,_intVal,_numToDecimal,_isNumber,_isHtml,_htmlNumeric,_pluck,_pluck_order,_range,_stripHtml,_unique,_fnBuildAjax,_fnAjaxUpdate,_fnAjaxParameters,_fnAjaxUpdateDraw,_fnAjaxDataSrc,_fnAddColumn,_fnColumnOptions,_fnAdjustColumnSizing,_fnVisibleToColumnIndex,_fnColumnIndexToVisible,_fnVisbleColumns,_fnGetColumns,_fnColumnTypes,_fnApplyColumnDefs,_fnHungarianMap,_fnCamelToHungarian,_fnLanguageCompat,_fnBrowserDetect,_fnAddData,_fnAddTr,_fnNodeToDataIndex,_fnNodeToColumnIndex,_fnGetCellData,_fnSetCellData,_fnSplitObjNotation,_fnGetObjectDataFn,_fnSetObjectDataFn,_fnGetDataMaster,_fnClearTable,_fnDeleteIndex,_fnInvalidate,_fnGetRowElements,_fnCreateTr,_fnBuildHead,_fnDrawHead,_fnDraw,_fnReDraw,_fnAddOptionsHtml,_fnDetectHeader,_fnGetUniqueThs,_fnFeatureHtmlFilter,_fnFilterComplete,_fnFilterCustom,_fnFilterColumn,_fnFilter,_fnFilterCreateSearch,_fnEscapeRegex,_fnFilterData,_fnFeatureHtmlInfo,_fnUpdateInfo,_fnInfoMacros,_fnInitialise,_fnInitComplete,_fnLengthChange,_fnFeatureHtmlLength,_fnFeatureHtmlPaginate,_fnPageChange,_fnFeatureHtmlProcessing,_fnProcessingDisplay,_fnFeatureHtmlTable,_fnScrollDraw,_fnApplyToChildren,_fnCalculateColumnWidths,_fnThrottle,_fnConvertToWidth,_fnGetWidestNode,_fnGetMaxLenString,_fnStringToCss,_fnSortFlatten,_fnSort,_fnSortAria,_fnSortListener,_fnSortAttachListener,_fnSortingClasses,_fnSortData,_fnSaveState,_fnLoadState,_fnSettingsFromNode,_fnLog,_fnMap,_fnBindAction,_fnCallbackReg,_fnCallbackFire,_fnLengthOverflow,_fnRenderer,_fnDataSource,_fnRowAttributes*/\r\n\r\n(function( factory ) {\r\n\t\"use strict\";\r\n\r\n\tif ( typeof define === 'function' && define.amd ) {\r\n\t\t// AMD\r\n\t\tdefine( ['jquery'], function ( $ ) {\r\n\t\t\treturn factory( $, window, document );\r\n\t\t} );\r\n\t}\r\n\telse if ( typeof exports === 'object' ) {\r\n\t\t// CommonJS\r\n\t\tmodule.exports = function (root, $) {\r\n\t\t\tif ( ! root ) {\r\n\t\t\t\t// CommonJS environments without a window global must pass a\r\n\t\t\t\t// root. This will give an error otherwise\r\n\t\t\t\troot = window;\r\n\t\t\t}\r\n\r\n\t\t\tif ( ! $ ) {\r\n\t\t\t\t$ = typeof window !== 'undefined' ? // jQuery's factory checks for a global window\r\n\t\t\t\t\trequire('jquery') :\r\n\t\t\t\t\trequire('jquery')( root );\r\n\t\t\t}\r\n\r\n\t\t\treturn factory( $, root, root.document );\r\n\t\t};\r\n\t}\r\n\telse {\r\n\t\t// Browser\r\n\t\tfactory( jQuery, window, document );\r\n\t}\r\n}\r\n(function( $, window, document, undefined ) {\r\n\t\"use strict\";\r\n\r\n\t/**\r\n\t * DataTables is a plug-in for the jQuery Javascript library. It is a highly\r\n\t * flexible tool, based upon the foundations of progressive enhancement,\r\n\t * which will add advanced interaction controls to any HTML table. For a\r\n\t * full list of features please refer to\r\n\t * [DataTables.net](href=\"http://datatables.net).\r\n\t *\r\n\t * Note that the `DataTable` object is not a global variable but is aliased\r\n\t * to `jQuery.fn.DataTable` and `jQuery.fn.dataTable` through which it may\r\n\t * be accessed.\r\n\t *\r\n\t * @class\r\n\t * @param {object} [init={}] Configuration object for DataTables. Options\r\n\t * are defined by {@link DataTable.defaults}\r\n\t * @requires jQuery 1.7+\r\n\t *\r\n\t * @example\r\n\t * // Basic initialisation\r\n\t * $(document).ready( function {\r\n\t * $('#example').dataTable();\r\n\t * } );\r\n\t *\r\n\t * @example\r\n\t * // Initialisation with configuration options - in this case, disable\r\n\t * // pagination and sorting.\r\n\t * $(document).ready( function {\r\n\t * $('#example').dataTable( {\r\n\t * \"paginate\": false,\r\n\t * \"sort\": false\r\n\t * } );\r\n\t * } );\r\n\t */\r\n\tvar DataTable = function ( options )\r\n\t{\r\n\t\t/**\r\n\t\t * Perform a jQuery selector action on the table's TR elements (from the tbody) and\r\n\t\t * return the resulting jQuery object.\r\n\t\t * @param {string|node|jQuery} sSelector jQuery selector or node collection to act on\r\n\t\t * @param {object} [oOpts] Optional parameters for modifying the rows to be included\r\n\t\t * @param {string} [oOpts.filter=none] Select TR elements that meet the current filter\r\n\t\t * criterion (\"applied\") or all TR elements (i.e. no filter).\r\n\t\t * @param {string} [oOpts.order=current] Order of the TR elements in the processed array.\r\n\t\t * Can be either 'current', whereby the current sorting of the table is used, or\r\n\t\t * 'original' whereby the original order the data was read into the table is used.\r\n\t\t * @param {string} [oOpts.page=all] Limit the selection to the currently displayed page\r\n\t\t * (\"current\") or not (\"all\"). If 'current' is given, then order is assumed to be\r\n\t\t * 'current' and filter is 'applied', regardless of what they might be given as.\r\n\t\t * @returns {object} jQuery object, filtered by the given selector.\r\n\t\t * @dtopt API\r\n\t\t * @deprecated Since v1.10\r\n\t\t *\r\n\t\t * @example\r\n\t\t * $(document).ready(function() {\r\n\t\t * var oTable = $('#example').dataTable();\r\n\t\t *\r\n\t\t * // Highlight every second row\r\n\t\t * oTable.$('tr:odd').css('backgroundColor', 'blue');\r\n\t\t * } );\r\n\t\t *\r\n\t\t * @example\r\n\t\t * $(document).ready(function() {\r\n\t\t * var oTable = $('#example').dataTable();\r\n\t\t *\r\n\t\t * // Filter to rows with 'Webkit' in them, add a background colour and then\r\n\t\t * // remove the filter, thus highlighting the 'Webkit' rows only.\r\n\t\t * oTable.fnFilter('Webkit');\r\n\t\t * oTable.$('tr', {\"search\": \"applied\"}).css('backgroundColor', 'blue');\r\n\t\t * oTable.fnFilter('');\r\n\t\t * } );\r\n\t\t */\r\n\t\tthis.$ = function ( sSelector, oOpts )\r\n\t\t{\r\n\t\t\treturn this.api(true).$( sSelector, oOpts );\r\n\t\t};\r\n\t\t\r\n\t\t\r\n\t\t/**\r\n\t\t * Almost identical to $ in operation, but in this case returns the data for the matched\r\n\t\t * rows - as such, the jQuery selector used should match TR row nodes or TD/TH cell nodes\r\n\t\t * rather than any descendants, so the data can be obtained for the row/cell. If matching\r\n\t\t * rows are found, the data returned is the original data array/object that was used to\r\n\t\t * create the row (or a generated array if from a DOM source).\r\n\t\t *\r\n\t\t * This method is often useful in-combination with $ where both functions are given the\r\n\t\t * same parameters and the array indexes will match identically.\r\n\t\t * @param {string|node|jQuery} sSelector jQuery selector or node collection to act on\r\n\t\t * @param {object} [oOpts] Optional parameters for modifying the rows to be included\r\n\t\t * @param {string} [oOpts.filter=none] Select elements that meet the current filter\r\n\t\t * criterion (\"applied\") or all elements (i.e. no filter).\r\n\t\t * @param {string} [oOpts.order=current] Order of the data in the processed array.\r\n\t\t * Can be either 'current', whereby the current sorting of the table is used, or\r\n\t\t * 'original' whereby the original order the data was read into the table is used.\r\n\t\t * @param {string} [oOpts.page=all] Limit the selection to the currently displayed page\r\n\t\t * (\"current\") or not (\"all\"). If 'current' is given, then order is assumed to be\r\n\t\t * 'current' and filter is 'applied', regardless of what they might be given as.\r\n\t\t * @returns {array} Data for the matched elements. If any elements, as a result of the\r\n\t\t * selector, were not TR, TD or TH elements in the DataTable, they will have a null\r\n\t\t * entry in the array.\r\n\t\t * @dtopt API\r\n\t\t * @deprecated Since v1.10\r\n\t\t *\r\n\t\t * @example\r\n\t\t * $(document).ready(function() {\r\n\t\t * var oTable = $('#example').dataTable();\r\n\t\t *\r\n\t\t * // Get the data from the first row in the table\r\n\t\t * var data = oTable._('tr:first');\r\n\t\t *\r\n\t\t * // Do something useful with the data\r\n\t\t * alert( \"First cell is: \"+data[0] );\r\n\t\t * } );\r\n\t\t *\r\n\t\t * @example\r\n\t\t * $(document).ready(function() {\r\n\t\t * var oTable = $('#example').dataTable();\r\n\t\t *\r\n\t\t * // Filter to 'Webkit' and get all data for\r\n\t\t * oTable.fnFilter('Webkit');\r\n\t\t * var data = oTable._('tr', {\"search\": \"applied\"});\r\n\t\t *\r\n\t\t * // Do something with the data\r\n\t\t * alert( data.length+\" rows matched the search\" );\r\n\t\t * } );\r\n\t\t */\r\n\t\tthis._ = function ( sSelector, oOpts )\r\n\t\t{\r\n\t\t\treturn this.api(true).rows( sSelector, oOpts ).data();\r\n\t\t};\r\n\t\t\r\n\t\t\r\n\t\t/**\r\n\t\t * Create a DataTables Api instance, with the currently selected tables for\r\n\t\t * the Api's context.\r\n\t\t * @param {boolean} [traditional=false] Set the API instance's context to be\r\n\t\t * only the table referred to by the `DataTable.ext.iApiIndex` option, as was\r\n\t\t * used in the API presented by DataTables 1.9- (i.e. the traditional mode),\r\n\t\t * or if all tables captured in the jQuery object should be used.\r\n\t\t * @return {DataTables.Api}\r\n\t\t */\r\n\t\tthis.api = function ( traditional )\r\n\t\t{\r\n\t\t\treturn traditional ?\r\n\t\t\t\tnew _Api(\r\n\t\t\t\t\t_fnSettingsFromNode( this[ _ext.iApiIndex ] )\r\n\t\t\t\t) :\r\n\t\t\t\tnew _Api( this );\r\n\t\t};\r\n\t\t\r\n\t\t\r\n\t\t/**\r\n\t\t * Add a single new row or multiple rows of data to the table. Please note\r\n\t\t * that this is suitable for client-side processing only - if you are using\r\n\t\t * server-side processing (i.e. \"bServerSide\": true), then to add data, you\r\n\t\t * must add it to the data source, i.e. the server-side, through an Ajax call.\r\n\t\t * @param {array|object} data The data to be added to the table. This can be:\r\n\t\t * \r\n\t\t * @param {bool} [redraw=true] redraw the table or not\r\n\t\t * @returns {array} An array of integers, representing the list of indexes in\r\n\t\t * aoData ({@link DataTable.models.oSettings}) that have been added to\r\n\t\t * the table.\r\n\t\t * @dtopt API\r\n\t\t * @deprecated Since v1.10\r\n\t\t *\r\n\t\t * @example\r\n\t\t * // Global var for counter\r\n\t\t * var giCount = 2;\r\n\t\t *\r\n\t\t * $(document).ready(function() {\r\n\t\t * $('#example').dataTable();\r\n\t\t * } );\r\n\t\t *\r\n\t\t * function fnClickAddRow() {\r\n\t\t * $('#example').dataTable().fnAddData( [\r\n\t\t * giCount+\".1\",\r\n\t\t * giCount+\".2\",\r\n\t\t * giCount+\".3\",\r\n\t\t * giCount+\".4\" ]\r\n\t\t * );\r\n\t\t *\r\n\t\t * giCount++;\r\n\t\t * }\r\n\t\t */\r\n\t\tthis.fnAddData = function( data, redraw )\r\n\t\t{\r\n\t\t\tvar api = this.api( true );\r\n\t\t\r\n\t\t\t/* Check if we want to add multiple rows or not */\r\n\t\t\tvar rows = Array.isArray(data) && ( Array.isArray(data[0]) || $.isPlainObject(data[0]) ) ?\r\n\t\t\t\tapi.rows.add( data ) :\r\n\t\t\t\tapi.row.add( data );\r\n\t\t\r\n\t\t\tif ( redraw === undefined || redraw ) {\r\n\t\t\t\tapi.draw();\r\n\t\t\t}\r\n\t\t\r\n\t\t\treturn rows.flatten().toArray();\r\n\t\t};\r\n\t\t\r\n\t\t\r\n\t\t/**\r\n\t\t * This function will make DataTables recalculate the column sizes, based on the data\r\n\t\t * contained in the table and the sizes applied to the columns (in the DOM, CSS or\r\n\t\t * through the sWidth parameter). This can be useful when the width of the table's\r\n\t\t * parent element changes (for example a window resize).\r\n\t\t * @param {boolean} [bRedraw=true] Redraw the table or not, you will typically want to\r\n\t\t * @dtopt API\r\n\t\t * @deprecated Since v1.10\r\n\t\t *\r\n\t\t * @example\r\n\t\t * $(document).ready(function() {\r\n\t\t * var oTable = $('#example').dataTable( {\r\n\t\t * \"sScrollY\": \"200px\",\r\n\t\t * \"bPaginate\": false\r\n\t\t * } );\r\n\t\t *\r\n\t\t * $(window).on('resize', function () {\r\n\t\t * oTable.fnAdjustColumnSizing();\r\n\t\t * } );\r\n\t\t * } );\r\n\t\t */\r\n\t\tthis.fnAdjustColumnSizing = function ( bRedraw )\r\n\t\t{\r\n\t\t\tvar api = this.api( true ).columns.adjust();\r\n\t\t\tvar settings = api.settings()[0];\r\n\t\t\tvar scroll = settings.oScroll;\r\n\t\t\r\n\t\t\tif ( bRedraw === undefined || bRedraw ) {\r\n\t\t\t\tapi.draw( false );\r\n\t\t\t}\r\n\t\t\telse if ( scroll.sX !== \"\" || scroll.sY !== \"\" ) {\r\n\t\t\t\t/* If not redrawing, but scrolling, we want to apply the new column sizes anyway */\r\n\t\t\t\t_fnScrollDraw( settings );\r\n\t\t\t}\r\n\t\t};\r\n\t\t\r\n\t\t\r\n\t\t/**\r\n\t\t * Quickly and simply clear a table\r\n\t\t * @param {bool} [bRedraw=true] redraw the table or not\r\n\t\t * @dtopt API\r\n\t\t * @deprecated Since v1.10\r\n\t\t *\r\n\t\t * @example\r\n\t\t * $(document).ready(function() {\r\n\t\t * var oTable = $('#example').dataTable();\r\n\t\t *\r\n\t\t * // Immediately 'nuke' the current rows (perhaps waiting for an Ajax callback...)\r\n\t\t * oTable.fnClearTable();\r\n\t\t * } );\r\n\t\t */\r\n\t\tthis.fnClearTable = function( bRedraw )\r\n\t\t{\r\n\t\t\tvar api = this.api( true ).clear();\r\n\t\t\r\n\t\t\tif ( bRedraw === undefined || bRedraw ) {\r\n\t\t\t\tapi.draw();\r\n\t\t\t}\r\n\t\t};\r\n\t\t\r\n\t\t\r\n\t\t/**\r\n\t\t * The exact opposite of 'opening' a row, this function will close any rows which\r\n\t\t * are currently 'open'.\r\n\t\t * @param {node} nTr the table row to 'close'\r\n\t\t * @returns {int} 0 on success, or 1 if failed (can't find the row)\r\n\t\t * @dtopt API\r\n\t\t * @deprecated Since v1.10\r\n\t\t *\r\n\t\t * @example\r\n\t\t * $(document).ready(function() {\r\n\t\t * var oTable;\r\n\t\t *\r\n\t\t * // 'open' an information row when a row is clicked on\r\n\t\t * $('#example tbody tr').click( function () {\r\n\t\t * if ( oTable.fnIsOpen(this) ) {\r\n\t\t * oTable.fnClose( this );\r\n\t\t * } else {\r\n\t\t * oTable.fnOpen( this, \"Temporary row opened\", \"info_row\" );\r\n\t\t * }\r\n\t\t * } );\r\n\t\t *\r\n\t\t * oTable = $('#example').dataTable();\r\n\t\t * } );\r\n\t\t */\r\n\t\tthis.fnClose = function( nTr )\r\n\t\t{\r\n\t\t\tthis.api( true ).row( nTr ).child.hide();\r\n\t\t};\r\n\t\t\r\n\t\t\r\n\t\t/**\r\n\t\t * Remove a row for the table\r\n\t\t * @param {mixed} target The index of the row from aoData to be deleted, or\r\n\t\t * the TR element you want to delete\r\n\t\t * @param {function|null} [callBack] Callback function\r\n\t\t * @param {bool} [redraw=true] Redraw the table or not\r\n\t\t * @returns {array} The row that was deleted\r\n\t\t * @dtopt API\r\n\t\t * @deprecated Since v1.10\r\n\t\t *\r\n\t\t * @example\r\n\t\t * $(document).ready(function() {\r\n\t\t * var oTable = $('#example').dataTable();\r\n\t\t *\r\n\t\t * // Immediately remove the first row\r\n\t\t * oTable.fnDeleteRow( 0 );\r\n\t\t * } );\r\n\t\t */\r\n\t\tthis.fnDeleteRow = function( target, callback, redraw )\r\n\t\t{\r\n\t\t\tvar api = this.api( true );\r\n\t\t\tvar rows = api.rows( target );\r\n\t\t\tvar settings = rows.settings()[0];\r\n\t\t\tvar data = settings.aoData[ rows[0][0] ];\r\n\t\t\r\n\t\t\trows.remove();\r\n\t\t\r\n\t\t\tif ( callback ) {\r\n\t\t\t\tcallback.call( this, settings, data );\r\n\t\t\t}\r\n\t\t\r\n\t\t\tif ( redraw === undefined || redraw ) {\r\n\t\t\t\tapi.draw();\r\n\t\t\t}\r\n\t\t\r\n\t\t\treturn data;\r\n\t\t};\r\n\t\t\r\n\t\t\r\n\t\t/**\r\n\t\t * Restore the table to it's original state in the DOM by removing all of DataTables\r\n\t\t * enhancements, alterations to the DOM structure of the table and event listeners.\r\n\t\t * @param {boolean} [remove=false] Completely remove the table from the DOM\r\n\t\t * @dtopt API\r\n\t\t * @deprecated Since v1.10\r\n\t\t *\r\n\t\t * @example\r\n\t\t * $(document).ready(function() {\r\n\t\t * // This example is fairly pointless in reality, but shows how fnDestroy can be used\r\n\t\t * var oTable = $('#example').dataTable();\r\n\t\t * oTable.fnDestroy();\r\n\t\t * } );\r\n\t\t */\r\n\t\tthis.fnDestroy = function ( remove )\r\n\t\t{\r\n\t\t\tthis.api( true ).destroy( remove );\r\n\t\t};\r\n\t\t\r\n\t\t\r\n\t\t/**\r\n\t\t * Redraw the table\r\n\t\t * @param {bool} [complete=true] Re-filter and resort (if enabled) the table before the draw.\r\n\t\t * @dtopt API\r\n\t\t * @deprecated Since v1.10\r\n\t\t *\r\n\t\t * @example\r\n\t\t * $(document).ready(function() {\r\n\t\t * var oTable = $('#example').dataTable();\r\n\t\t *\r\n\t\t * // Re-draw the table - you wouldn't want to do it here, but it's an example :-)\r\n\t\t * oTable.fnDraw();\r\n\t\t * } );\r\n\t\t */\r\n\t\tthis.fnDraw = function( complete )\r\n\t\t{\r\n\t\t\t// Note that this isn't an exact match to the old call to _fnDraw - it takes\r\n\t\t\t// into account the new data, but can hold position.\r\n\t\t\tthis.api( true ).draw( complete );\r\n\t\t};\r\n\t\t\r\n\t\t\r\n\t\t/**\r\n\t\t * Filter the input based on data\r\n\t\t * @param {string} sInput String to filter the table on\r\n\t\t * @param {int|null} [iColumn] Column to limit filtering to\r\n\t\t * @param {bool} [bRegex=false] Treat as regular expression or not\r\n\t\t * @param {bool} [bSmart=true] Perform smart filtering or not\r\n\t\t * @param {bool} [bShowGlobal=true] Show the input global filter in it's input box(es)\r\n\t\t * @param {bool} [bCaseInsensitive=true] Do case-insensitive matching (true) or not (false)\r\n\t\t * @dtopt API\r\n\t\t * @deprecated Since v1.10\r\n\t\t *\r\n\t\t * @example\r\n\t\t * $(document).ready(function() {\r\n\t\t * var oTable = $('#example').dataTable();\r\n\t\t *\r\n\t\t * // Sometime later - filter...\r\n\t\t * oTable.fnFilter( 'test string' );\r\n\t\t * } );\r\n\t\t */\r\n\t\tthis.fnFilter = function( sInput, iColumn, bRegex, bSmart, bShowGlobal, bCaseInsensitive )\r\n\t\t{\r\n\t\t\tvar api = this.api( true );\r\n\t\t\r\n\t\t\tif ( iColumn === null || iColumn === undefined ) {\r\n\t\t\t\tapi.search( sInput, bRegex, bSmart, bCaseInsensitive );\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tapi.column( iColumn ).search( sInput, bRegex, bSmart, bCaseInsensitive );\r\n\t\t\t}\r\n\t\t\r\n\t\t\tapi.draw();\r\n\t\t};\r\n\t\t\r\n\t\t\r\n\t\t/**\r\n\t\t * Get the data for the whole table, an individual row or an individual cell based on the\r\n\t\t * provided parameters.\r\n\t\t * @param {int|node} [src] A TR row node, TD/TH cell node or an integer. If given as\r\n\t\t * a TR node then the data source for the whole row will be returned. If given as a\r\n\t\t * TD/TH cell node then iCol will be automatically calculated and the data for the\r\n\t\t * cell returned. If given as an integer, then this is treated as the aoData internal\r\n\t\t * data index for the row (see fnGetPosition) and the data for that row used.\r\n\t\t * @param {int} [col] Optional column index that you want the data of.\r\n\t\t * @returns {array|object|string} If mRow is undefined, then the data for all rows is\r\n\t\t * returned. If mRow is defined, just data for that row, and is iCol is\r\n\t\t * defined, only data for the designated cell is returned.\r\n\t\t * @dtopt API\r\n\t\t * @deprecated Since v1.10\r\n\t\t *\r\n\t\t * @example\r\n\t\t * // Row data\r\n\t\t * $(document).ready(function() {\r\n\t\t * oTable = $('#example').dataTable();\r\n\t\t *\r\n\t\t * oTable.$('tr').click( function () {\r\n\t\t * var data = oTable.fnGetData( this );\r\n\t\t * // ... do something with the array / object of data for the row\r\n\t\t * } );\r\n\t\t * } );\r\n\t\t *\r\n\t\t * @example\r\n\t\t * // Individual cell data\r\n\t\t * $(document).ready(function() {\r\n\t\t * oTable = $('#example').dataTable();\r\n\t\t *\r\n\t\t * oTable.$('td').click( function () {\r\n\t\t * var sData = oTable.fnGetData( this );\r\n\t\t * alert( 'The cell clicked on had the value of '+sData );\r\n\t\t * } );\r\n\t\t * } );\r\n\t\t */\r\n\t\tthis.fnGetData = function( src, col )\r\n\t\t{\r\n\t\t\tvar api = this.api( true );\r\n\t\t\r\n\t\t\tif ( src !== undefined ) {\r\n\t\t\t\tvar type = src.nodeName ? src.nodeName.toLowerCase() : '';\r\n\t\t\r\n\t\t\t\treturn col !== undefined || type == 'td' || type == 'th' ?\r\n\t\t\t\t\tapi.cell( src, col ).data() :\r\n\t\t\t\t\tapi.row( src ).data() || null;\r\n\t\t\t}\r\n\t\t\r\n\t\t\treturn api.data().toArray();\r\n\t\t};\r\n\t\t\r\n\t\t\r\n\t\t/**\r\n\t\t * Get an array of the TR nodes that are used in the table's body. Note that you will\r\n\t\t * typically want to use the '$' API method in preference to this as it is more\r\n\t\t * flexible.\r\n\t\t * @param {int} [iRow] Optional row index for the TR element you want\r\n\t\t * @returns {array|node} If iRow is undefined, returns an array of all TR elements\r\n\t\t * in the table's body, or iRow is defined, just the TR element requested.\r\n\t\t * @dtopt API\r\n\t\t * @deprecated Since v1.10\r\n\t\t *\r\n\t\t * @example\r\n\t\t * $(document).ready(function() {\r\n\t\t * var oTable = $('#example').dataTable();\r\n\t\t *\r\n\t\t * // Get the nodes from the table\r\n\t\t * var nNodes = oTable.fnGetNodes( );\r\n\t\t * } );\r\n\t\t */\r\n\t\tthis.fnGetNodes = function( iRow )\r\n\t\t{\r\n\t\t\tvar api = this.api( true );\r\n\t\t\r\n\t\t\treturn iRow !== undefined ?\r\n\t\t\t\tapi.row( iRow ).node() :\r\n\t\t\t\tapi.rows().nodes().flatten().toArray();\r\n\t\t};\r\n\t\t\r\n\t\t\r\n\t\t/**\r\n\t\t * Get the array indexes of a particular cell from it's DOM element\r\n\t\t * and column index including hidden columns\r\n\t\t * @param {node} node this can either be a TR, TD or TH in the table's body\r\n\t\t * @returns {int} If nNode is given as a TR, then a single index is returned, or\r\n\t\t * if given as a cell, an array of [row index, column index (visible),\r\n\t\t * column index (all)] is given.\r\n\t\t * @dtopt API\r\n\t\t * @deprecated Since v1.10\r\n\t\t *\r\n\t\t * @example\r\n\t\t * $(document).ready(function() {\r\n\t\t * $('#example tbody td').click( function () {\r\n\t\t * // Get the position of the current data from the node\r\n\t\t * var aPos = oTable.fnGetPosition( this );\r\n\t\t *\r\n\t\t * // Get the data array for this row\r\n\t\t * var aData = oTable.fnGetData( aPos[0] );\r\n\t\t *\r\n\t\t * // Update the data array and return the value\r\n\t\t * aData[ aPos[1] ] = 'clicked';\r\n\t\t * this.innerHTML = 'clicked';\r\n\t\t * } );\r\n\t\t *\r\n\t\t * // Init DataTables\r\n\t\t * oTable = $('#example').dataTable();\r\n\t\t * } );\r\n\t\t */\r\n\t\tthis.fnGetPosition = function( node )\r\n\t\t{\r\n\t\t\tvar api = this.api( true );\r\n\t\t\tvar nodeName = node.nodeName.toUpperCase();\r\n\t\t\r\n\t\t\tif ( nodeName == 'TR' ) {\r\n\t\t\t\treturn api.row( node ).index();\r\n\t\t\t}\r\n\t\t\telse if ( nodeName == 'TD' || nodeName == 'TH' ) {\r\n\t\t\t\tvar cell = api.cell( node ).index();\r\n\t\t\r\n\t\t\t\treturn [\r\n\t\t\t\t\tcell.row,\r\n\t\t\t\t\tcell.columnVisible,\r\n\t\t\t\t\tcell.column\r\n\t\t\t\t];\r\n\t\t\t}\r\n\t\t\treturn null;\r\n\t\t};\r\n\t\t\r\n\t\t\r\n\t\t/**\r\n\t\t * Check to see if a row is 'open' or not.\r\n\t\t * @param {node} nTr the table row to check\r\n\t\t * @returns {boolean} true if the row is currently open, false otherwise\r\n\t\t * @dtopt API\r\n\t\t * @deprecated Since v1.10\r\n\t\t *\r\n\t\t * @example\r\n\t\t * $(document).ready(function() {\r\n\t\t * var oTable;\r\n\t\t *\r\n\t\t * // 'open' an information row when a row is clicked on\r\n\t\t * $('#example tbody tr').click( function () {\r\n\t\t * if ( oTable.fnIsOpen(this) ) {\r\n\t\t * oTable.fnClose( this );\r\n\t\t * } else {\r\n\t\t * oTable.fnOpen( this, \"Temporary row opened\", \"info_row\" );\r\n\t\t * }\r\n\t\t * } );\r\n\t\t *\r\n\t\t * oTable = $('#example').dataTable();\r\n\t\t * } );\r\n\t\t */\r\n\t\tthis.fnIsOpen = function( nTr )\r\n\t\t{\r\n\t\t\treturn this.api( true ).row( nTr ).child.isShown();\r\n\t\t};\r\n\t\t\r\n\t\t\r\n\t\t/**\r\n\t\t * This function will place a new row directly after a row which is currently\r\n\t\t * on display on the page, with the HTML contents that is passed into the\r\n\t\t * function. This can be used, for example, to ask for confirmation that a\r\n\t\t * particular record should be deleted.\r\n\t\t * @param {node} nTr The table row to 'open'\r\n\t\t * @param {string|node|jQuery} mHtml The HTML to put into the row\r\n\t\t * @param {string} sClass Class to give the new TD cell\r\n\t\t * @returns {node} The row opened. Note that if the table row passed in as the\r\n\t\t * first parameter, is not found in the table, this method will silently\r\n\t\t * return.\r\n\t\t * @dtopt API\r\n\t\t * @deprecated Since v1.10\r\n\t\t *\r\n\t\t * @example\r\n\t\t * $(document).ready(function() {\r\n\t\t * var oTable;\r\n\t\t *\r\n\t\t * // 'open' an information row when a row is clicked on\r\n\t\t * $('#example tbody tr').click( function () {\r\n\t\t * if ( oTable.fnIsOpen(this) ) {\r\n\t\t * oTable.fnClose( this );\r\n\t\t * } else {\r\n\t\t * oTable.fnOpen( this, \"Temporary row opened\", \"info_row\" );\r\n\t\t * }\r\n\t\t * } );\r\n\t\t *\r\n\t\t * oTable = $('#example').dataTable();\r\n\t\t * } );\r\n\t\t */\r\n\t\tthis.fnOpen = function( nTr, mHtml, sClass )\r\n\t\t{\r\n\t\t\treturn this.api( true )\r\n\t\t\t\t.row( nTr )\r\n\t\t\t\t.child( mHtml, sClass )\r\n\t\t\t\t.show()\r\n\t\t\t\t.child()[0];\r\n\t\t};\r\n\t\t\r\n\t\t\r\n\t\t/**\r\n\t\t * Change the pagination - provides the internal logic for pagination in a simple API\r\n\t\t * function. With this function you can have a DataTables table go to the next,\r\n\t\t * previous, first or last pages.\r\n\t\t * @param {string|int} mAction Paging action to take: \"first\", \"previous\", \"next\" or \"last\"\r\n\t\t * or page number to jump to (integer), note that page 0 is the first page.\r\n\t\t * @param {bool} [bRedraw=true] Redraw the table or not\r\n\t\t * @dtopt API\r\n\t\t * @deprecated Since v1.10\r\n\t\t *\r\n\t\t * @example\r\n\t\t * $(document).ready(function() {\r\n\t\t * var oTable = $('#example').dataTable();\r\n\t\t * oTable.fnPageChange( 'next' );\r\n\t\t * } );\r\n\t\t */\r\n\t\tthis.fnPageChange = function ( mAction, bRedraw )\r\n\t\t{\r\n\t\t\tvar api = this.api( true ).page( mAction );\r\n\t\t\r\n\t\t\tif ( bRedraw === undefined || bRedraw ) {\r\n\t\t\t\tapi.draw(false);\r\n\t\t\t}\r\n\t\t};\r\n\t\t\r\n\t\t\r\n\t\t/**\r\n\t\t * Show a particular column\r\n\t\t * @param {int} iCol The column whose display should be changed\r\n\t\t * @param {bool} bShow Show (true) or hide (false) the column\r\n\t\t * @param {bool} [bRedraw=true] Redraw the table or not\r\n\t\t * @dtopt API\r\n\t\t * @deprecated Since v1.10\r\n\t\t *\r\n\t\t * @example\r\n\t\t * $(document).ready(function() {\r\n\t\t * var oTable = $('#example').dataTable();\r\n\t\t *\r\n\t\t * // Hide the second column after initialisation\r\n\t\t * oTable.fnSetColumnVis( 1, false );\r\n\t\t * } );\r\n\t\t */\r\n\t\tthis.fnSetColumnVis = function ( iCol, bShow, bRedraw )\r\n\t\t{\r\n\t\t\tvar api = this.api( true ).column( iCol ).visible( bShow );\r\n\t\t\r\n\t\t\tif ( bRedraw === undefined || bRedraw ) {\r\n\t\t\t\tapi.columns.adjust().draw();\r\n\t\t\t}\r\n\t\t};\r\n\t\t\r\n\t\t\r\n\t\t/**\r\n\t\t * Get the settings for a particular table for external manipulation\r\n\t\t * @returns {object} DataTables settings object. See\r\n\t\t * {@link DataTable.models.oSettings}\r\n\t\t * @dtopt API\r\n\t\t * @deprecated Since v1.10\r\n\t\t *\r\n\t\t * @example\r\n\t\t * $(document).ready(function() {\r\n\t\t * var oTable = $('#example').dataTable();\r\n\t\t * var oSettings = oTable.fnSettings();\r\n\t\t *\r\n\t\t * // Show an example parameter from the settings\r\n\t\t * alert( oSettings._iDisplayStart );\r\n\t\t * } );\r\n\t\t */\r\n\t\tthis.fnSettings = function()\r\n\t\t{\r\n\t\t\treturn _fnSettingsFromNode( this[_ext.iApiIndex] );\r\n\t\t};\r\n\t\t\r\n\t\t\r\n\t\t/**\r\n\t\t * Sort the table by a particular column\r\n\t\t * @param {int} iCol the data index to sort on. Note that this will not match the\r\n\t\t * 'display index' if you have hidden data entries\r\n\t\t * @dtopt API\r\n\t\t * @deprecated Since v1.10\r\n\t\t *\r\n\t\t * @example\r\n\t\t * $(document).ready(function() {\r\n\t\t * var oTable = $('#example').dataTable();\r\n\t\t *\r\n\t\t * // Sort immediately with columns 0 and 1\r\n\t\t * oTable.fnSort( [ [0,'asc'], [1,'asc'] ] );\r\n\t\t * } );\r\n\t\t */\r\n\t\tthis.fnSort = function( aaSort )\r\n\t\t{\r\n\t\t\tthis.api( true ).order( aaSort ).draw();\r\n\t\t};\r\n\t\t\r\n\t\t\r\n\t\t/**\r\n\t\t * Attach a sort listener to an element for a given column\r\n\t\t * @param {node} nNode the element to attach the sort listener to\r\n\t\t * @param {int} iColumn the column that a click on this node will sort on\r\n\t\t * @param {function} [fnCallback] callback function when sort is run\r\n\t\t * @dtopt API\r\n\t\t * @deprecated Since v1.10\r\n\t\t *\r\n\t\t * @example\r\n\t\t * $(document).ready(function() {\r\n\t\t * var oTable = $('#example').dataTable();\r\n\t\t *\r\n\t\t * // Sort on column 1, when 'sorter' is clicked on\r\n\t\t * oTable.fnSortListener( document.getElementById('sorter'), 1 );\r\n\t\t * } );\r\n\t\t */\r\n\t\tthis.fnSortListener = function( nNode, iColumn, fnCallback )\r\n\t\t{\r\n\t\t\tthis.api( true ).order.listener( nNode, iColumn, fnCallback );\r\n\t\t};\r\n\t\t\r\n\t\t\r\n\t\t/**\r\n\t\t * Update a table cell or row - this method will accept either a single value to\r\n\t\t * update the cell with, an array of values with one element for each column or\r\n\t\t * an object in the same format as the original data source. The function is\r\n\t\t * self-referencing in order to make the multi column updates easier.\r\n\t\t * @param {object|array|string} mData Data to update the cell/row with\r\n\t\t * @param {node|int} mRow TR element you want to update or the aoData index\r\n\t\t * @param {int} [iColumn] The column to update, give as null or undefined to\r\n\t\t * update a whole row.\r\n\t\t * @param {bool} [bRedraw=true] Redraw the table or not\r\n\t\t * @param {bool} [bAction=true] Perform pre-draw actions or not\r\n\t\t * @returns {int} 0 on success, 1 on error\r\n\t\t * @dtopt API\r\n\t\t * @deprecated Since v1.10\r\n\t\t *\r\n\t\t * @example\r\n\t\t * $(document).ready(function() {\r\n\t\t * var oTable = $('#example').dataTable();\r\n\t\t * oTable.fnUpdate( 'Example update', 0, 0 ); // Single cell\r\n\t\t * oTable.fnUpdate( ['a', 'b', 'c', 'd', 'e'], $('tbody tr')[0] ); // Row\r\n\t\t * } );\r\n\t\t */\r\n\t\tthis.fnUpdate = function( mData, mRow, iColumn, bRedraw, bAction )\r\n\t\t{\r\n\t\t\tvar api = this.api( true );\r\n\t\t\r\n\t\t\tif ( iColumn === undefined || iColumn === null ) {\r\n\t\t\t\tapi.row( mRow ).data( mData );\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tapi.cell( mRow, iColumn ).data( mData );\r\n\t\t\t}\r\n\t\t\r\n\t\t\tif ( bAction === undefined || bAction ) {\r\n\t\t\t\tapi.columns.adjust();\r\n\t\t\t}\r\n\t\t\r\n\t\t\tif ( bRedraw === undefined || bRedraw ) {\r\n\t\t\t\tapi.draw();\r\n\t\t\t}\r\n\t\t\treturn 0;\r\n\t\t};\r\n\t\t\r\n\t\t\r\n\t\t/**\r\n\t\t * Provide a common method for plug-ins to check the version of DataTables being used, in order\r\n\t\t * to ensure compatibility.\r\n\t\t * @param {string} sVersion Version string to check for, in the format \"X.Y.Z\". Note that the\r\n\t\t * formats \"X\" and \"X.Y\" are also acceptable.\r\n\t\t * @returns {boolean} true if this version of DataTables is greater or equal to the required\r\n\t\t * version, or false if this version of DataTales is not suitable\r\n\t\t * @method\r\n\t\t * @dtopt API\r\n\t\t * @deprecated Since v1.10\r\n\t\t *\r\n\t\t * @example\r\n\t\t * $(document).ready(function() {\r\n\t\t * var oTable = $('#example').dataTable();\r\n\t\t * alert( oTable.fnVersionCheck( '1.9.0' ) );\r\n\t\t * } );\r\n\t\t */\r\n\t\tthis.fnVersionCheck = _ext.fnVersionCheck;\r\n\t\t\r\n\r\n\t\tvar _that = this;\r\n\t\tvar emptyInit = options === undefined;\r\n\t\tvar len = this.length;\r\n\r\n\t\tif ( emptyInit ) {\r\n\t\t\toptions = {};\r\n\t\t}\r\n\r\n\t\tthis.oApi = this.internal = _ext.internal;\r\n\r\n\t\t// Extend with old style plug-in API methods\r\n\t\tfor ( var fn in DataTable.ext.internal ) {\r\n\t\t\tif ( fn ) {\r\n\t\t\t\tthis[fn] = _fnExternApiFunc(fn);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tthis.each(function() {\r\n\t\t\t// For each initialisation we want to give it a clean initialisation\r\n\t\t\t// object that can be bashed around\r\n\t\t\tvar o = {};\r\n\t\t\tvar oInit = len > 1 ? // optimisation for single table case\r\n\t\t\t\t_fnExtend( o, options, true ) :\r\n\t\t\t\toptions;\r\n\r\n\t\t\t/*global oInit,_that,emptyInit*/\r\n\t\t\tvar i=0, iLen, j, jLen, k, kLen;\r\n\t\t\tvar sId = this.getAttribute( 'id' );\r\n\t\t\tvar bInitHandedOff = false;\r\n\t\t\tvar defaults = DataTable.defaults;\r\n\t\t\tvar $this = $(this);\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t/* Sanity check */\r\n\t\t\tif ( this.nodeName.toLowerCase() != 'table' )\r\n\t\t\t{\r\n\t\t\t\t_fnLog( null, 0, 'Non-table node initialisation ('+this.nodeName+')', 2 );\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t/* Backwards compatibility for the defaults */\r\n\t\t\t_fnCompatOpts( defaults );\r\n\t\t\t_fnCompatCols( defaults.column );\r\n\t\t\t\r\n\t\t\t/* Convert the camel-case defaults to Hungarian */\r\n\t\t\t_fnCamelToHungarian( defaults, defaults, true );\r\n\t\t\t_fnCamelToHungarian( defaults.column, defaults.column, true );\r\n\t\t\t\r\n\t\t\t/* Setting up the initialisation object */\r\n\t\t\t_fnCamelToHungarian( defaults, $.extend( oInit, $this.data() ), true );\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t/* Check to see if we are re-initialising a table */\r\n\t\t\tvar allSettings = DataTable.settings;\r\n\t\t\tfor ( i=0, iLen=allSettings.length ; i').appendTo($this);\r\n\t\t\t\t}\r\n\t\t\t\toSettings.nTHead = thead[0];\r\n\t\t\t\r\n\t\t\t\tvar tbody = $this.children('tbody');\r\n\t\t\t\tif ( tbody.length === 0 ) {\r\n\t\t\t\t\ttbody = $('').appendTo($this);\r\n\t\t\t\t}\r\n\t\t\t\toSettings.nTBody = tbody[0];\r\n\t\t\t\r\n\t\t\t\tvar tfoot = $this.children('tfoot');\r\n\t\t\t\tif ( tfoot.length === 0 && captions.length > 0 && (oSettings.oScroll.sX !== \"\" || oSettings.oScroll.sY !== \"\") ) {\r\n\t\t\t\t\t// If we are a scrolling table, and no footer has been given, then we need to create\r\n\t\t\t\t\t// a tfoot element for the caption element to be appended to\r\n\t\t\t\t\ttfoot = $('').appendTo($this);\r\n\t\t\t\t}\r\n\t\t\t\r\n\t\t\t\tif ( tfoot.length === 0 || tfoot.children().length === 0 ) {\r\n\t\t\t\t\t$this.addClass( oClasses.sNoFooter );\r\n\t\t\t\t}\r\n\t\t\t\telse if ( tfoot.length > 0 ) {\r\n\t\t\t\t\toSettings.nTFoot = tfoot[0];\r\n\t\t\t\t\t_fnDetectHeader( oSettings.aoFooter, oSettings.nTFoot );\r\n\t\t\t\t}\r\n\t\t\t\r\n\t\t\t\t/* Check if there is data passing into the constructor */\r\n\t\t\t\tif ( oInit.aaData ) {\r\n\t\t\t\t\tfor ( i=0 ; i/g;\r\n\t\r\n\t// This is not strict ISO8601 - Date.parse() is quite lax, although\r\n\t// implementations differ between browsers.\r\n\tvar _re_date = /^\\d{2,4}[\\.\\/\\-]\\d{1,2}[\\.\\/\\-]\\d{1,2}([T ]{1}\\d{1,2}[:\\.]\\d{2}([\\.:]\\d{2})?)?$/;\r\n\t\r\n\t// Escape regular expression special characters\r\n\tvar _re_escape_regex = new RegExp( '(\\\\' + [ '/', '.', '*', '+', '?', '|', '(', ')', '[', ']', '{', '}', '\\\\', '$', '^', '-' ].join('|\\\\') + ')', 'g' );\r\n\t\r\n\t// http://en.wikipedia.org/wiki/Foreign_exchange_market\r\n\t// - \\u20BD - Russian ruble.\r\n\t// - \\u20a9 - South Korean Won\r\n\t// - \\u20BA - Turkish Lira\r\n\t// - \\u20B9 - Indian Rupee\r\n\t// - R - Brazil (R$) and South Africa\r\n\t// - fr - Swiss Franc\r\n\t// - kr - Swedish krona, Norwegian krone and Danish krone\r\n\t// - \\u2009 is thin space and \\u202F is narrow no-break space, both used in many\r\n\t// - Ƀ - Bitcoin\r\n\t// - Ξ - Ethereum\r\n\t// standards as thousands separators.\r\n\tvar _re_formatted_numeric = /['\\u00A0,$£€¥%\\u2009\\u202F\\u20BD\\u20a9\\u20BArfkɃΞ]/gi;\r\n\t\r\n\t\r\n\tvar _empty = function ( d ) {\r\n\t\treturn !d || d === true || d === '-' ? true : false;\r\n\t};\r\n\t\r\n\t\r\n\tvar _intVal = function ( s ) {\r\n\t\tvar integer = parseInt( s, 10 );\r\n\t\treturn !isNaN(integer) && isFinite(s) ? integer : null;\r\n\t};\r\n\t\r\n\t// Convert from a formatted number with characters other than `.` as the\r\n\t// decimal place, to a Javascript number\r\n\tvar _numToDecimal = function ( num, decimalPoint ) {\r\n\t\t// Cache created regular expressions for speed as this function is called often\r\n\t\tif ( ! _re_dic[ decimalPoint ] ) {\r\n\t\t\t_re_dic[ decimalPoint ] = new RegExp( _fnEscapeRegex( decimalPoint ), 'g' );\r\n\t\t}\r\n\t\treturn typeof num === 'string' && decimalPoint !== '.' ?\r\n\t\t\tnum.replace( /\\./g, '' ).replace( _re_dic[ decimalPoint ], '.' ) :\r\n\t\t\tnum;\r\n\t};\r\n\t\r\n\t\r\n\tvar _isNumber = function ( d, decimalPoint, formatted ) {\r\n\t\tvar strType = typeof d === 'string';\r\n\t\r\n\t\t// If empty return immediately so there must be a number if it is a\r\n\t\t// formatted string (this stops the string \"k\", or \"kr\", etc being detected\r\n\t\t// as a formatted number for currency\r\n\t\tif ( _empty( d ) ) {\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\r\n\t\tif ( decimalPoint && strType ) {\r\n\t\t\td = _numToDecimal( d, decimalPoint );\r\n\t\t}\r\n\t\r\n\t\tif ( formatted && strType ) {\r\n\t\t\td = d.replace( _re_formatted_numeric, '' );\r\n\t\t}\r\n\t\r\n\t\treturn !isNaN( parseFloat(d) ) && isFinite( d );\r\n\t};\r\n\t\r\n\t\r\n\t// A string without HTML in it can be considered to be HTML still\r\n\tvar _isHtml = function ( d ) {\r\n\t\treturn _empty( d ) || typeof d === 'string';\r\n\t};\r\n\t\r\n\t\r\n\tvar _htmlNumeric = function ( d, decimalPoint, formatted ) {\r\n\t\tif ( _empty( d ) ) {\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\r\n\t\tvar html = _isHtml( d );\r\n\t\treturn ! html ?\r\n\t\t\tnull :\r\n\t\t\t_isNumber( _stripHtml( d ), decimalPoint, formatted ) ?\r\n\t\t\t\ttrue :\r\n\t\t\t\tnull;\r\n\t};\r\n\t\r\n\t\r\n\tvar _pluck = function ( a, prop, prop2 ) {\r\n\t\tvar out = [];\r\n\t\tvar i=0, ien=a.length;\r\n\t\r\n\t\t// Could have the test in the loop for slightly smaller code, but speed\r\n\t\t// is essential here\r\n\t\tif ( prop2 !== undefined ) {\r\n\t\t\tfor ( ; i')\r\n\t\t\t\t.css( {\r\n\t\t\t\t\tposition: 'fixed',\r\n\t\t\t\t\ttop: 0,\r\n\t\t\t\t\tleft: $(window).scrollLeft()*-1, // allow for scrolling\r\n\t\t\t\t\theight: 1,\r\n\t\t\t\t\twidth: 1,\r\n\t\t\t\t\toverflow: 'hidden'\r\n\t\t\t\t} )\r\n\t\t\t\t.append(\r\n\t\t\t\t\t$('
')\r\n\t\t\t\t\t\t.css( {\r\n\t\t\t\t\t\t\tposition: 'absolute',\r\n\t\t\t\t\t\t\ttop: 1,\r\n\t\t\t\t\t\t\tleft: 1,\r\n\t\t\t\t\t\t\twidth: 100,\r\n\t\t\t\t\t\t\toverflow: 'scroll'\r\n\t\t\t\t\t\t} )\r\n\t\t\t\t\t\t.append(\r\n\t\t\t\t\t\t\t$('
')\r\n\t\t\t\t\t\t\t\t.css( {\r\n\t\t\t\t\t\t\t\t\twidth: '100%',\r\n\t\t\t\t\t\t\t\t\theight: 10\r\n\t\t\t\t\t\t\t\t} )\r\n\t\t\t\t\t\t)\r\n\t\t\t\t)\r\n\t\t\t\t.appendTo( 'body' );\r\n\t\r\n\t\t\tvar outer = n.children();\r\n\t\t\tvar inner = outer.children();\r\n\t\r\n\t\t\t// Numbers below, in order, are:\r\n\t\t\t// inner.offsetWidth, inner.clientWidth, outer.offsetWidth, outer.clientWidth\r\n\t\t\t//\r\n\t\t\t// IE6 XP: 100 100 100 83\r\n\t\t\t// IE7 Vista: 100 100 100 83\r\n\t\t\t// IE 8+ Windows: 83 83 100 83\r\n\t\t\t// Evergreen Windows: 83 83 100 83\r\n\t\t\t// Evergreen Mac with scrollbars: 85 85 100 85\r\n\t\t\t// Evergreen Mac without scrollbars: 100 100 100 100\r\n\t\r\n\t\t\t// Get scrollbar width\r\n\t\t\tbrowser.barWidth = outer[0].offsetWidth - outer[0].clientWidth;\r\n\t\r\n\t\t\t// IE6/7 will oversize a width 100% element inside a scrolling element, to\r\n\t\t\t// include the width of the scrollbar, while other browsers ensure the inner\r\n\t\t\t// element is contained without forcing scrolling\r\n\t\t\tbrowser.bScrollOversize = inner[0].offsetWidth === 100 && outer[0].clientWidth !== 100;\r\n\t\r\n\t\t\t// In rtl text layout, some browsers (most, but not all) will place the\r\n\t\t\t// scrollbar on the left, rather than the right.\r\n\t\t\tbrowser.bScrollbarLeft = Math.round( inner.offset().left ) !== 1;\r\n\t\r\n\t\t\t// IE8- don't provide height and width for getBoundingClientRect\r\n\t\t\tbrowser.bBounding = n[0].getBoundingClientRect().width ? true : false;\r\n\t\r\n\t\t\tn.remove();\r\n\t\t}\r\n\t\r\n\t\t$.extend( settings.oBrowser, DataTable.__browser );\r\n\t\tsettings.oScroll.iBarWidth = DataTable.__browser.barWidth;\r\n\t}\r\n\t\r\n\t\r\n\t/**\r\n\t * Array.prototype reduce[Right] method, used for browsers which don't support\r\n\t * JS 1.6. Done this way to reduce code size, since we iterate either way\r\n\t * @param {object} settings dataTables settings object\r\n\t * @memberof DataTable#oApi\r\n\t */\r\n\tfunction _fnReduce ( that, fn, init, start, end, inc )\r\n\t{\r\n\t\tvar\r\n\t\t\ti = start,\r\n\t\t\tvalue,\r\n\t\t\tisSet = false;\r\n\t\r\n\t\tif ( init !== undefined ) {\r\n\t\t\tvalue = init;\r\n\t\t\tisSet = true;\r\n\t\t}\r\n\t\r\n\t\twhile ( i !== end ) {\r\n\t\t\tif ( ! that.hasOwnProperty(i) ) {\r\n\t\t\t\tcontinue;\r\n\t\t\t}\r\n\t\r\n\t\t\tvalue = isSet ?\r\n\t\t\t\tfn( value, that[i], i, that ) :\r\n\t\t\t\tthat[i];\r\n\t\r\n\t\t\tisSet = true;\r\n\t\t\ti += inc;\r\n\t\t}\r\n\t\r\n\t\treturn value;\r\n\t}\r\n\t\r\n\t/**\r\n\t * Add a column to the list used for the table with default values\r\n\t * @param {object} oSettings dataTables settings object\r\n\t * @param {node} nTh The th element for this column\r\n\t * @memberof DataTable#oApi\r\n\t */\r\n\tfunction _fnAddColumn( oSettings, nTh )\r\n\t{\r\n\t\t// Add column to aoColumns array\r\n\t\tvar oDefaults = DataTable.defaults.column;\r\n\t\tvar iCol = oSettings.aoColumns.length;\r\n\t\tvar oCol = $.extend( {}, DataTable.models.oColumn, oDefaults, {\r\n\t\t\t\"nTh\": nTh ? nTh : document.createElement('th'),\r\n\t\t\t\"sTitle\": oDefaults.sTitle ? oDefaults.sTitle : nTh ? nTh.innerHTML : '',\r\n\t\t\t\"aDataSort\": oDefaults.aDataSort ? oDefaults.aDataSort : [iCol],\r\n\t\t\t\"mData\": oDefaults.mData ? oDefaults.mData : iCol,\r\n\t\t\tidx: iCol\r\n\t\t} );\r\n\t\toSettings.aoColumns.push( oCol );\r\n\t\r\n\t\t// Add search object for column specific search. Note that the `searchCols[ iCol ]`\r\n\t\t// passed into extend can be undefined. This allows the user to give a default\r\n\t\t// with only some of the parameters defined, and also not give a default\r\n\t\tvar searchCols = oSettings.aoPreSearchCols;\r\n\t\tsearchCols[ iCol ] = $.extend( {}, DataTable.models.oSearch, searchCols[ iCol ] );\r\n\t\r\n\t\t// Use the default column options function to initialise classes etc\r\n\t\t_fnColumnOptions( oSettings, iCol, $(nTh).data() );\r\n\t}\r\n\t\r\n\t\r\n\t/**\r\n\t * Apply options for a column\r\n\t * @param {object} oSettings dataTables settings object\r\n\t * @param {int} iCol column index to consider\r\n\t * @param {object} oOptions object with sType, bVisible and bSearchable etc\r\n\t * @memberof DataTable#oApi\r\n\t */\r\n\tfunction _fnColumnOptions( oSettings, iCol, oOptions )\r\n\t{\r\n\t\tvar oCol = oSettings.aoColumns[ iCol ];\r\n\t\tvar oClasses = oSettings.oClasses;\r\n\t\tvar th = $(oCol.nTh);\r\n\t\r\n\t\t// Try to get width information from the DOM. We can't get it from CSS\r\n\t\t// as we'd need to parse the CSS stylesheet. `width` option can override\r\n\t\tif ( ! oCol.sWidthOrig ) {\r\n\t\t\t// Width attribute\r\n\t\t\toCol.sWidthOrig = th.attr('width') || null;\r\n\t\r\n\t\t\t// Style attribute\r\n\t\t\tvar t = (th.attr('style') || '').match(/width:\\s*(\\d+[pxem%]+)/);\r\n\t\t\tif ( t ) {\r\n\t\t\t\toCol.sWidthOrig = t[1];\r\n\t\t\t}\r\n\t\t}\r\n\t\r\n\t\t/* User specified column options */\r\n\t\tif ( oOptions !== undefined && oOptions !== null )\r\n\t\t{\r\n\t\t\t// Backwards compatibility\r\n\t\t\t_fnCompatCols( oOptions );\r\n\t\r\n\t\t\t// Map camel case parameters to their Hungarian counterparts\r\n\t\t\t_fnCamelToHungarian( DataTable.defaults.column, oOptions, true );\r\n\t\r\n\t\t\t/* Backwards compatibility for mDataProp */\r\n\t\t\tif ( oOptions.mDataProp !== undefined && !oOptions.mData )\r\n\t\t\t{\r\n\t\t\t\toOptions.mData = oOptions.mDataProp;\r\n\t\t\t}\r\n\t\r\n\t\t\tif ( oOptions.sType )\r\n\t\t\t{\r\n\t\t\t\toCol._sManualType = oOptions.sType;\r\n\t\t\t}\r\n\t\r\n\t\t\t// `class` is a reserved word in Javascript, so we need to provide\r\n\t\t\t// the ability to use a valid name for the camel case input\r\n\t\t\tif ( oOptions.className && ! oOptions.sClass )\r\n\t\t\t{\r\n\t\t\t\toOptions.sClass = oOptions.className;\r\n\t\t\t}\r\n\t\t\tif ( oOptions.sClass ) {\r\n\t\t\t\tth.addClass( oOptions.sClass );\r\n\t\t\t}\r\n\t\r\n\t\t\t$.extend( oCol, oOptions );\r\n\t\t\t_fnMap( oCol, oOptions, \"sWidth\", \"sWidthOrig\" );\r\n\t\r\n\t\t\t/* iDataSort to be applied (backwards compatibility), but aDataSort will take\r\n\t\t\t * priority if defined\r\n\t\t\t */\r\n\t\t\tif ( oOptions.iDataSort !== undefined )\r\n\t\t\t{\r\n\t\t\t\toCol.aDataSort = [ oOptions.iDataSort ];\r\n\t\t\t}\r\n\t\t\t_fnMap( oCol, oOptions, \"aDataSort\" );\r\n\t\t}\r\n\t\r\n\t\t/* Cache the data get and set functions for speed */\r\n\t\tvar mDataSrc = oCol.mData;\r\n\t\tvar mData = _fnGetObjectDataFn( mDataSrc );\r\n\t\tvar mRender = oCol.mRender ? _fnGetObjectDataFn( oCol.mRender ) : null;\r\n\t\r\n\t\tvar attrTest = function( src ) {\r\n\t\t\treturn typeof src === 'string' && src.indexOf('@') !== -1;\r\n\t\t};\r\n\t\toCol._bAttrSrc = $.isPlainObject( mDataSrc ) && (\r\n\t\t\tattrTest(mDataSrc.sort) || attrTest(mDataSrc.type) || attrTest(mDataSrc.filter)\r\n\t\t);\r\n\t\toCol._setter = null;\r\n\t\r\n\t\toCol.fnGetData = function (rowData, type, meta) {\r\n\t\t\tvar innerData = mData( rowData, type, undefined, meta );\r\n\t\r\n\t\t\treturn mRender && type ?\r\n\t\t\t\tmRender( innerData, type, rowData, meta ) :\r\n\t\t\t\tinnerData;\r\n\t\t};\r\n\t\toCol.fnSetData = function ( rowData, val, meta ) {\r\n\t\t\treturn _fnSetObjectDataFn( mDataSrc )( rowData, val, meta );\r\n\t\t};\r\n\t\r\n\t\t// Indicate if DataTables should read DOM data as an object or array\r\n\t\t// Used in _fnGetRowElements\r\n\t\tif ( typeof mDataSrc !== 'number' ) {\r\n\t\t\toSettings._rowReadObject = true;\r\n\t\t}\r\n\t\r\n\t\t/* Feature sorting overrides column specific when off */\r\n\t\tif ( !oSettings.oFeatures.bSort )\r\n\t\t{\r\n\t\t\toCol.bSortable = false;\r\n\t\t\tth.addClass( oClasses.sSortableNone ); // Have to add class here as order event isn't called\r\n\t\t}\r\n\t\r\n\t\t/* Check that the class assignment is correct for sorting */\r\n\t\tvar bAsc = $.inArray('asc', oCol.asSorting) !== -1;\r\n\t\tvar bDesc = $.inArray('desc', oCol.asSorting) !== -1;\r\n\t\tif ( !oCol.bSortable || (!bAsc && !bDesc) )\r\n\t\t{\r\n\t\t\toCol.sSortingClass = oClasses.sSortableNone;\r\n\t\t\toCol.sSortingClassJUI = \"\";\r\n\t\t}\r\n\t\telse if ( bAsc && !bDesc )\r\n\t\t{\r\n\t\t\toCol.sSortingClass = oClasses.sSortableAsc;\r\n\t\t\toCol.sSortingClassJUI = oClasses.sSortJUIAscAllowed;\r\n\t\t}\r\n\t\telse if ( !bAsc && bDesc )\r\n\t\t{\r\n\t\t\toCol.sSortingClass = oClasses.sSortableDesc;\r\n\t\t\toCol.sSortingClassJUI = oClasses.sSortJUIDescAllowed;\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\toCol.sSortingClass = oClasses.sSortable;\r\n\t\t\toCol.sSortingClassJUI = oClasses.sSortJUI;\r\n\t\t}\r\n\t}\r\n\t\r\n\t\r\n\t/**\r\n\t * Adjust the table column widths for new data. Note: you would probably want to\r\n\t * do a redraw after calling this function!\r\n\t * @param {object} settings dataTables settings object\r\n\t * @memberof DataTable#oApi\r\n\t */\r\n\tfunction _fnAdjustColumnSizing ( settings )\r\n\t{\r\n\t\t/* Not interested in doing column width calculation if auto-width is disabled */\r\n\t\tif ( settings.oFeatures.bAutoWidth !== false )\r\n\t\t{\r\n\t\t\tvar columns = settings.aoColumns;\r\n\t\r\n\t\t\t_fnCalculateColumnWidths( settings );\r\n\t\t\tfor ( var i=0 , iLen=columns.length ; i